vendor: 14,972 bytes, line 1
1var Tbe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kkt=Tbe((Hkt,sy)=>{function Ebe(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[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 a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function fT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function hce(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var kO={exports:{}},yb={};var bK;function Mbe(){if(bK)return yb;bK=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:s,ref:i!==void 0?i:null,props:a}}return yb.Fragment=e,yb.jsx=n,yb.jsxs=n,yb}var wK;function Cbe(){return wK||(wK=1,kO.exports=Mbe()),kO.exports}var x=Cbe(),LO={exports:{}},Kr={};var SK;function Nbe(){if(SK)return Kr;SK=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function p(oe){return oe===null||typeof oe!="object"?null:(oe=h&&oe[h]||oe["@@iterator"],typeof oe=="function"?oe:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function T(oe,te,he){this.props=oe,this.context=te,this.refs=w,this.updater=he||A}T.prototype.isReactComponent={},T.prototype.setState=function(oe,te){if(typeof oe!="object"&&typeof oe!="function"&&oe!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,oe,te,"setState")},T.prototype.forceUpdate=function(oe){this.updater.enqueueForceUpdate(this,oe,"forceUpdate")};function C(){}C.prototype=T.prototype;function M(oe,te,he){this.props=oe,this.context=te,this.refs=w,this.updater=he||A}var D=M.prototype=new C;D.constructor=M,g(D,T.prototype),D.isPureReactComponent=!0;var k=Array.isArray;function I(){}var L={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function B(oe,te,he){var me=he.ref;return{$$typeof:t,type:oe,key:te,ref:me!==void 0?me:null,props:he}}function G(oe,te){return B(oe.type,te,oe.props)}function j(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function z(oe){var te={"=":"=0",":":"=2"};return"$"+oe.replace(/[=:]/g,function(he){return te[he]})}var Q=/\/+/g;function ee(oe,te){return typeof oe=="object"&&oe!==null&&oe.key!=null?z(""+oe.key):te.toString(36)}function Z(oe){switch(oe.status){case"fulfilled":return oe.value;case"rejected":throw oe.reason;default:switch(typeof oe.status=="string"?oe.then(I,I):(oe.status="pending",oe.then(function(te){oe.status==="pending"&&(oe.status="fulfilled",oe.value=te)},function(te){oe.status==="pending"&&(oe.status="rejected",oe.reason=te)})),oe.status){case"fulfilled":return oe.value;case"rejected":throw oe.reason}}throw oe}function X(oe,te,he,me,de){var Ae=typeof oe;(Ae==="undefined"||Ae==="boolean")&&(oe=null);var Se=!1;if(oe===null)Se=!0;else switch(Ae){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(oe.$$typeof){case t:case e:Se=!0;break;case u:return Se=oe._init,X(Se(oe._payload),te,he,me,de)}}if(Se)return de=de(oe),Se=me===""?"."+ee(oe,0):me,k(de)?(he="",Se!=null&&(he=Se.replace(Q,"$&/")+"/"),X(de,te,he,"",function(Fe){return Fe})):de!=null&&(j(de)&&(de=G(de,he+(de.key==null||oe&&oe.key===de.key?"":(""+de.key).replace(Q,"$&/")+"/")+Se)),te.push(de)),1;Se=0;var Re=me===""?".":me+":";if(k(oe))for(var Ne=0;Ne<oe.length;Ne++)me=oe[Ne],Ae=Re+ee(me,Ne),Se+=X(me,te,he,Ae,de);else if(Ne=p(oe),typeof Ne=="function")for(oe=Ne.call(oe),Ne=0;!(me=oe.next()).done;)me=me.value,Ae=Re+ee(me,Ne++),Se+=X(me,te,he,Ae,de);else if(Ae==="object"){if(typeof oe.then=="function")return X(Z(oe),te,he,me,de);throw te=String(oe),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(oe).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(oe,te,he){if(oe==null)return oe;var me=[],de=0;return X(oe,me,"","",function(Ae){return te.call(he,Ae,de++)}),me}function se(oe){if(oe._status===-1){var te=oe._result;te=te(),te.then(function(he){(oe._status===0||oe._status===-1)&&(oe._status=1,oe._result=he)},function(he){(oe._status===0||oe._status===-1)&&(oe._status=2,oe._result=he)}),oe._status===-1&&(oe._status=0,oe._result=te)}if(oe._status===1)return oe._result.default;throw oe._result}var ae=typeof reportError=="function"?reportError:function(oe){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof oe=="object"&&oe!==null&&typeof oe.message=="string"?String(oe.message):String(oe),error:oe});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",oe);return}console.error(oe)},J={map:K,forEach:function(oe,te,he){K(oe,function(){te.apply(this,arguments)},he)},count:function(oe){var te=0;return K(oe,function(){te++}),te},toArray:function(oe){return K(oe,function(te){return te})||[]},only:function(oe){if(!j(oe))throw Error("React.Children.only expected to receive a single React element child.");return oe}};return Kr.Activity=f,Kr.Children=J,Kr.Component=T,Kr.Fragment=n,Kr.Profiler=i,Kr.PureComponent=M,Kr.StrictMode=r,Kr.Suspense=l,Kr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Kr.__COMPILER_RUNTIME={__proto__:null,c:function(oe){return L.H.useMemoCache(oe)}},Kr.cache=function(oe){return function(){return oe.apply(null,arguments)}},Kr.cacheSignal=function(){return null},Kr.cloneElement=function(oe,te,he){if(oe==null)throw Error("The argument must be a React element, but you passed "+oe+".");var me=g({},oe.props),de=oe.key;if(te!=null)for(Ae in te.key!==void 0&&(de=""+te.key),te)!O.call(te,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&te.ref===void 0||(me[Ae]=te[Ae]);var Ae=arguments.length-2;if(Ae===1)me.children=he;else if(1<Ae){for(var Se=Array(Ae),Re=0;Re<Ae;Re++)Se[Re]=arguments[Re+2];me.children=Se}return B(oe.type,de,me)},Kr.createContext=function(oe){return oe={$$typeof:s,_currentValue:oe,_currentValue2:oe,_threadCount:0,Provider:null,Consumer:null},oe.Provider=oe,oe.Consumer={$$typeof:a,_context:oe},oe},Kr.createElement=function(oe,te,he){var me,de={},Ae=null;if(te!=null)for(me in te.key!==void 0&&(Ae=""+te.key),te)O.call(te,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(de[me]=te[me]);var Se=arguments.length-2;if(Se===1)de.children=he;else if(1<Se){for(var Re=Array(Se),Ne=0;Ne<Se;Ne++)Re[Ne]=arguments[Ne+2];de.children=Re}if(oe&&oe.defaultProps)for(me in Se=oe.defaultProps,Se)de[me]===void 0&&(de[me]=Se[me]);return B(oe,Ae,de)},Kr.createRef=function(){return{current:null}},Kr.forwardRef=function(oe){return{$$typeof:o,render:oe}},Kr.isValidElement=j,Kr.lazy=function(oe){return{$$typeof:u,_payload:{_status:-1,_result:oe},_init:se}},Kr.memo=function(oe,te){return{$$typeof:c,type:oe,compare:te===void 0?null:te}},Kr.startTransition=function(oe){var te=L.T,he={};L.T=he;try{var me=oe(),de=L.S;de!==null&&de(he,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(I,ae)}catch(Ae){ae(Ae)}finally{te!==null&&he.types!==null&&(te.types=he.types),L.T=te}},Kr.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Kr.use=function(oe){return L.H.use(oe)},Kr.useActionState=function(oe,te,he){return L.H.useActionState(oe,te,he)},Kr.useCallback=function(oe,te){return L.H.useCallback(oe,te)},Kr.useContext=function(oe){return L.H.useContext(oe)},Kr.useDebugValue=function(){},Kr.useDeferredValue=function(oe,te){return L.H.useDeferredValue(oe,te)},Kr.useEffect=function(oe,te){return L.H.useEffect(oe,te)},Kr.useEffectEvent=function(oe){return L.H.useEffectEvent(oe)},Kr.useId=function(){return L.H.useId()},Kr.useImperativeHandle=function(oe,te,he){return L.H.useImperativeHandle(oe,te,he)},Kr.useInsertionEffect=function(oe,te){return L.H.useInsertionEffect(oe,te)},Kr.useLayoutEffect=function(oe,te){return L.H.useLayoutEffect(oe,te)},Kr.useMemo=function(oe,te){return L.H.useMemo(oe,te)},Kr.useOptimistic=function(oe,te){return L.H.useOptimistic(oe,te)},Kr.useReducer=function(oe,te,he){return L.H.useReducer(oe,te,he)},Kr.useRef=function(oe){return L.H.useRef(oe)},Kr.useState=function(oe){return L.H.useState(oe)},Kr.useSyncExternalStore=function(oe,te,he){return L.H.useSyncExternalStore(oe,te,he)},Kr.useTransition=function(){return L.H.useTransition()},Kr.version="19.2.4",Kr}var TK;function GD(){return TK||(TK=1,LO.exports=Nbe()),LO.exports}var b=GD();const wt=fT(b),pN=Ebe({__proto__:null,default:wt},[b]);var OO={exports:{}},_b={},FO={exports:{}},IO={};var EK;function Rbe(){return EK||(EK=1,(function(t){function e(X,K){var se=X.length;X.push(K);e:for(;0<se;){var ae=se-1>>>1,J=X[ae];if(0<i(J,K))X[ae]=K,X[se]=J,se=ae;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var K=X[0],se=X.pop();if(se!==K){X[0]=se;e:for(var ae=0,J=X.length,oe=J>>>1;ae<oe;){var te=2*(ae+1)-1,he=X[te],me=te+1,de=X[me];if(0>i(he,se))me<J&&0>i(de,he)?(X[ae]=de,X[me]=se,ae=me):(X[ae]=he,X[te]=se,ae=te);else if(me<J&&0>i(de,se))X[ae]=de,X[me]=se,ae=me;else break e}}return K}function i(X,K){var se=X.sortIndex-K.sortIndex;return se!==0?se:X.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],u=1,f=null,h=3,p=!1,A=!1,g=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function D(X){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=X)r(c),K.sortIndex=K.expirationTime,e(l,K);else break;K=n(c)}}function k(X){if(g=!1,D(X),!A)if(n(l)!==null)A=!0,I||(I=!0,z());else{var K=n(c);K!==null&&Z(k,K.startTime-X)}}var I=!1,L=-1,O=5,B=-1;function G(){return w?!0:!(t.unstable_now()-B<O)}function j(){if(w=!1,I){var X=t.unstable_now();B=X;var K=!0;try{e:{A=!1,g&&(g=!1,C(L),L=-1),p=!0;var se=h;try{t:{for(D(X),f=n(l);f!==null&&!(f.expirationTime>X&&G());){var ae=f.callback;if(typeof ae=="function"){f.callback=null,h=f.priorityLevel;var J=ae(f.expirationTime<=X);if(X=t.unstable_now(),typeof J=="function"){f.callback=J,D(X),K=!0;break t}f===n(l)&&r(l),D(X)}else r(l);f=n(l)}if(f!==null)K=!0;else{var oe=n(c);oe!==null&&Z(k,oe.startTime-X),K=!1}}break e}finally{f=null,h=se,p=!1}K=void 0}}finally{K?z():I=!1}}}var z;if(typeof M=="function")z=function(){M(j)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ee=Q.port2;Q.port1.onmessage=j,z=function(){ee.postMessage(null)}}else z=function(){T(j,0)};function Z(X,K){L=T(function(){X(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(X){X.callback=null},t.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<X?Math.floor(1e3/X):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(X){switch(h){case 1:case 2:case 3:var K=3;break;default:K=h}var se=h;h=K;try{return X()}finally{h=se}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(X,K){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var se=h;h=X;try{return K()}finally{h=se}},t.unstable_scheduleCallback=function(X,K,se){var ae=t.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ae+se:ae):se=ae,X){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=se+J,X={id:u++,callback:K,priorityLevel:X,startTime:se,expirationTime:J,sortIndex:-1},se>ae?(X.sortIndex=se,e(c,X),n(l)===null&&X===n(c)&&(g?(C(L),L=-1):g=!0,Z(k,se-ae))):(X.sortIndex=J,e(l,X),A||p||(A=!0,I||(I=!0,z()))),X},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(X){var K=h;return function(){var se=h;h=K;try{return X.apply(this,arguments)}finally{h=se}}}})(IO)),IO}var MK;function Dbe(){return MK||(MK=1,FO.exports=Rbe()),FO.exports}var BO={exports:{}},Mc={};var CK;function Pbe(){if(CK)return Mc;CK=1;var t=GD();function e(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(l,c,u){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:f==null?null:""+f,children:l,containerInfo:c,implementation:u}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
vendor: 5,486 bytes, line 1
1function o(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Mc.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Mc.createPortal=function(l,c){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(e(299));return a(l,c,null,u)},Mc.flushSync=function(l){var c=s.T,u=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=c,r.p=u,r.d.f()}},Mc.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},Mc.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},Mc.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var u=c.as,f=o(u,c.crossOrigin),h=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;u==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:p}):u==="script"&&r.d.X(l,{crossOrigin:f,integrity:h,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Mc.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var u=o(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},Mc.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var u=c.as,f=o(u,c.crossOrigin);r.d.L(l,u,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Mc.preloadModule=function(l,c){if(typeof l=="string")if(c){var u=o(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},Mc.requestFormReset=function(l){r.d.r(l)},Mc.unstable_batchedUpdates=function(l,c){return l(c)},Mc.useFormState=function(l,c,u){return s.H.useFormState(l,c,u)},Mc.useFormStatus=function(){return s.H.useHostTransitionStatus()},Mc.version="19.2.4",Mc}var NK;function pce(){if(NK)return BO.exports;NK=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),BO.exports=Pbe(),BO.exports}var RK;function kbe(){if(RK)return _b;RK=1;var t=Dbe(),e=GD(),n=pce();function r(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)m+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(d){return!(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)}function a(d){var m=d,E=d;if(d.alternate)for(;m.return;)m=m.return;else{d=m;do m=d,(m.flags&4098)!==0&&(E=m.return),d=m.return;while(d)}return m.tag===3?E:null}function s(d){if(d.tag===13){var m=d.memoizedState;if(m===null&&(d=d.alternate,d!==null&&(m=d.memoizedState)),m!==null)return m.dehydrated}return null}function o(d){if(d.tag===31){var m=d.memoizedState;if(m===null&&(d=d.alternate,d!==null&&(m=d.memoizedState)),m!==null)return m.dehydrated}return null}function l(d){if(a(d)!==d)throw Error(r(188))}function c(d){var m=d.alternate;if(!m){if(m=a(d),m===null)throw Error(r(188));return m!==d?null:d}for(var E=d,P=m;;){var H=E.return;if(H===null)break;var q=H.alternate;if(q===null){if(P=H.return,P!==null){E=P;continue}break}if(H.child===q.child){for(q=H.child;q;){if(q===E)return l(H),d;if(q===P)return l(H),m;q=q.sibling}throw Error(r(188))}if(E.return!==P.return)E=H,P=q;else{for(var fe=!1,Ce=H.child;Ce;){if(Ce===E){fe=!0,E=H,P=q;break}if(Ce===P){fe=!0,P=H,E=q;break}Ce=Ce.sibling}if(!fe){for(Ce=q.child;Ce;){if(Ce===E){fe=!0,E=q,P=H;break}if(Ce===P){fe=!0,P=q,E=H;break}Ce=Ce.sibling}if(!fe)throw Error(r(189))}}if(E.alternate!==P)throw Error(r(190))}if(E.tag!==3)throw Error(r(188));return E.stateNode.current===E?d:m}function u(d){var m=d.tag;if(m===5||m===26||m===27||m===6)return d;for(d=d.child;d!==null;){if(m=u(d),m!==null)return m;d=d.sibling}return null}var f=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),M=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function z(d){return d===null||typeof d!="object"?null:(d=j&&d[j]||d["@@iterator"],typeof d=="function"?d:null)}var Q=Symbol.for("react.client.reference");function ee(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===Q?null:d.displayName||d.name||null;
vendor: 11,109 bytes, lines 1-8
1if(typeof d=="string")return d;switch(d){case g:return"Fragment";case T:return"Profiler";case w:return"StrictMode";case k:return"Suspense";case I:return"SuspenseList";case B:return"Activity"}if(typeof d=="object")switch(d.$$typeof){case A:return"Portal";case M:return d.displayName||"Context";case C:return(d._context.displayName||"Context")+".Consumer";case D:var m=d.render;return d=d.displayName,d||(d=m.displayName||m.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case L:return m=d.displayName||null,m!==null?m:ee(d.type)||"Memo";case O:m=d._payload,d=d._init;try{return ee(d(m))}catch{}}return null}var Z=Array.isArray,X=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ae=[],J=-1;function oe(d){return{current:d}}function te(d){0>J||(d.current=ae[J],ae[J]=null,J--)}function he(d,m){J++,ae[J]=d.current,d.current=m}var me=oe(null),de=oe(null),Ae=oe(null),Se=oe(null);function Re(d,m){switch(he(Ae,m),he(de,d),he(me,null),m.nodeType){case 9:case 11:d=(d=m.documentElement)&&(d=d.namespaceURI)?$Q(d):0;break;default:if(d=m.tagName,m=m.namespaceURI)m=$Q(m),d=qQ(m,d);else switch(d){case"svg":d=1;break;case"math":d=2;break;default:d=0}}te(me),he(me,d)}function Ne(){te(me),te(de),te(Ae)}function Fe(d){d.memoizedState!==null&&he(Se,d);var m=me.current,E=qQ(m,d.type);m!==E&&(he(de,d),he(me,E))}function Qe(d){de.current===d&&(te(me),te(de)),Se.current===d&&(te(Se),Ab._currentValue=se)}var ge,Ie;function De(d){if(ge===void 0)try{throw Error()}catch(E){var m=E.stack.trim().match(/\n( *(at )?)/);ge=m&&m[1]||"",Ie=-1<E.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<E.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+ge+d+Ie}var Xe=!1;function Ye(d,m){if(!d||Xe)return"";Xe=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var P={DetermineComponentFrameRoot:function(){try{if(m){var cn=function(){throw Error()};if(Object.defineProperty(cn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(cn,[])}catch($t){var Ut=$t}Reflect.construct(d,[],cn)}else{try{cn.call()}catch($t){Ut=$t}d.call(cn.prototype)}}else{try{throw Error()}catch($t){Ut=$t}(cn=d())&&typeof cn.catch=="function"&&cn.catch(function(){})}}catch($t){if($t&&Ut&&typeof $t.stack=="string")return[$t.stack,Ut.stack]}return[null,null]}};P.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var H=Object.getOwnPropertyDescriptor(P.DetermineComponentFrameRoot,"name");H&&H.configurable&&Object.defineProperty(P.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var q=P.DetermineComponentFrameRoot(),fe=q[0],Ce=q[1];if(fe&&Ce){var et=fe.split(` 4`),Ft=Ce.split(` 5`);for(H=P=0;P<et.length&&!et[P].includes("DetermineComponentFrameRoot");)P++;for(;H<Ft.length&&!Ft[H].includes("DetermineComponentFrameRoot");)H++;if(P===et.length||H===Ft.length)for(P=et.length-1,H=Ft.length-1;1<=P&&0<=H&&et[P]!==Ft[H];)H--;for(;1<=P&&0<=H;P--,H--)if(et[P]!==Ft[H]){if(P!==1||H!==1)do if(P--,H--,0>H||et[P]!==Ft[H]){var Jt=` 6`+et[P].replace(" at new "," at ");return d.displayName&&Jt.includes("<anonymous>")&&(Jt=Jt.replace("<anonymous>",d.displayName)),Jt}while(1<=P&&0<=H);break}}}finally{Xe=!1,Error.prepareStackTrace=E}return(E=d?d.displayName||d.name:"")?De(E):""}function Me(d,m){switch(d.tag){case 26:case 27:case 5:return De(d.type);case 16:return De("Lazy");case 13:return d.child!==m&&m!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Ye(d.type,!1);case 11:return Ye(d.type.render,!1);case 1:return Ye(d.type,!0);case 31:return De("Activity");default:return""}}function lt(d){try{var m="",E=null;do m+=Me(d,E),E=d,d=d.return;while(d);return m}catch(P){return` 7Error generating stack: `+P.message+` 8`+P.stack}}var Ht=Object.prototype.hasOwnProperty,Le=t.unstable_scheduleCallback,Nt=t.unstable_cancelCallback,Ct=t.unstable_shouldYield,It=t.unstable_requestPaint,nt=t.unstable_now,ht=t.unstable_getCurrentPriorityLevel,ve=t.unstable_ImmediatePriority,ce=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,dt=t.unstable_LowPriority,ft=t.unstable_IdlePriority,at=t.log,St=t.unstable_setDisableYieldValue,ut=null,gt=null;function Vt(d){if(typeof at=="function"&&St(d),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(ut,d)}catch{}}var Zt=Math.clz32?Math.clz32:We,Wt=Math.log,qt=Math.LN2;function We(d){return d>>>=0,d===0?32:31-(Wt(d)/qt|0)|0}var yn=256,vn=262144,Ge=4194304;function kt(d){var m=d&42;if(m!==0)return m;switch(d&-d){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return d&261888;case 262144:case 524288:case 1048576:case 2097152:return d&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return d&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return d}}function _t(d,m,E){var P=d.pendingLanes;if(P===0)return 0;var H=0,q=d.suspendedLanes,fe=d.pingedLanes;d=d.warmLanes;var Ce=P&134217727;return Ce!==0?(P=Ce&~q,P!==0?H=kt(P):(fe&=Ce,fe!==0?H=kt(fe):E||(E=Ce&~d,E!==0&&(H=kt(E))))):(Ce=P&~q,Ce!==0?H=kt(Ce):fe!==0?H=kt(fe):E||(E=P&~d,E!==0&&(H=kt(E)))),H===0?0:m!==0&&m!==H&&(m&q)===0&&(q=H&-H,E=m&-m,q>=E||q===32&&(E&4194048)!==0)?m:H}function Dt(d,m){return(d.pendingLanes&~(d.suspendedLanes&~d.pingedLanes)&m)===0}function jt(d,m){switch(d){case 1:case 2:case 4:case 8:case 64:return m+250;case 16:case 32: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 m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lt(){var d=Ge;return Ge<<=1,(Ge&62914560)===0&&(Ge=4194304),d}function Bt(d){for(var m=[],E=0;31>E;E++)m.push(d);return m}function Gt(d,m){d.pendingLanes|=m,m!==268435456&&(d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0)}function hn(d,m,E,P,H,q){var fe=d.pendingLanes;d.pendingLanes=E,d.suspendedLanes=0,d.pingedLanes=0,d.warmLanes=0,d.expiredLanes&=E,d.entangledLanes&=E,d.errorRecoveryDisabledLanes&=E,d.shellSuspendCounter=0;var Ce=d.entanglements,et=d.expirationTimes,Ft=d.hiddenUpdates;for(E=fe&~E;0<E;){var Jt=31-Zt(E),cn=1<<Jt;Ce[Jt]=0,et[Jt]=-1;var Ut=Ft[Jt];if(Ut!==null)for(Ft[Jt]=null,Jt=0;Jt<Ut.length;Jt++){var $t=Ut[Jt];$t!==null&&($t.lane&=-536870913)}E&=~cn}P!==0&&Ve(d,P,0),q!==0&&H===0&&d.tag!==0&&(d.suspendedLanes|=q&~(fe&~m))}function Ve(d,m,E){d.pendingLanes|=m,d.suspendedLanes&=~m;var P=31-Zt(m);d.entangledLanes|=m,d.entanglements[P]=d.entanglements[P]|1073741824|E&261930}function pt(d,m){var E=d.entangledLanes|=m;for(d=d.entanglements;E;){var P=31-Zt(E),H=1<<P;H&m|d[P]&m&&(d[P]|=m),E&=~H}}function Tt(d,m){var E=m&-m;return E=(E&42)!==0?1:xt(E),(E&(d.suspendedLanes|m))!==0?0:E}function xt(d){switch(d){case 2:d=1;break;case 8:d=4;break;case 32:d=16;break;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:d=128;break;case 268435456:d=134217728;break;default:d=0}return d}function v(d){return d&=-d,2<d?8<d?(d&134217727)!==0?32:268435456:8:2}function W(){var d=K.p;return d!==0?d:(d=window.event,d===void 0?32:mK(d.type))}function Te(d,m){var E=K.p;try{return K.p=d,m()}finally{K.p=E}}var _e=Math.random().toString(36).slice(2),be="__reactFiber$"+_e,xe="__reactProps$"+_e,we="__reactContainer$"+_e,tt="__reactEvents$"+_e,ot="__reactListeners$"+_e,ze="__reactHandles$"+_e,Ke="__reactResources$"+_e,rt="__reactMarker$"+_e;function Rt(d){delete d[be],delete d[xe],delete d[tt],delete d[ot],delete d[ze]}function Xt(d){var m=d[be];if(m)return m;for(var E=d.parentNode;E;){if(m=E[we]||E[be]){if(E=m.alternate,m.child!==null||E!==null&&E.child!==null)for(d=JQ(d);d!==null;){if(E=d[be])return E;d=JQ(d)}return m}d=E,E=d.parentNode}return null}function rn(d){if(d=d[be]||d[we]){var m=d.tag;if(m===5||m===6||m===13||m===31||m===26||m===27||m===3)return d}return null}function en(d){var m=d.tag;if(m===5||m===26||m===27||m===6)return d.stateNode;throw Error(r(33))}function Qt(d){var m=d[Ke];return m||(m=d[Ke]={hoistableStyles:new Map,hoistableScripts:new Map}),m}function sn(d){d[rt]=!0}var ur=new Set,ye={};function He(d,m){ue(d,m),ue(d+"Capture",m)}function ue(d,m){for(ye[d]=m,d=0;d<m.length;d++)ur.add(m[d])}var Ze=RegExp("^[: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]*$"),yt={},_n={};function Sn(d){return Ht.call(_n,d)?!0:Ht.call(yt,d)?!1:Ze.test(d)?_n[d]=!0:(yt[d]=!0,!1)}function pn(d,m,E){if(Sn(m))if(E===null)d.removeAttribute(m);else{switch(typeof E){case"undefined":case"function":case"symbol":d.removeAttribute(m);return;case"boolean":var P=m.toLowerCase().slice(0,5);if(P!=="data-"&&P!=="aria-"){d.removeAttribute(m);return}}d.setAttribute(m,""+E)}}function wn(d,m,E){if(E===null)d.removeAttribute(m);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(m);return}d.setAttribute(m,""+E)}}function pe(d,m,E,P){if(P===null)d.removeAttribute(E);else{switch(typeof P){case"undefined":case"function":case"symbol":case"boolean":d.removeAttribute(E);return}d.setAttributeNS(m,E,""+P)}}function Hn(d){switch(typeof d){case"bigint":case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function Tn(d){var m=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function bn(d,m,E){var P=Object.getOwnPropertyDescriptor(d.constructor.prototype,m);if(!d.hasOwnProperty(m)&&typeof P<"u"&&typeof P.get=="function"&&typeof P.set=="function"){var H=P.get,q=P.set;return Object.defineProperty(d,m,{configurable:!0,get:function(){return H.call(this)},set:function(fe){E=""+fe,q.call(this,fe)}}),Object.defineProperty(d,m,{enumerable:P.enumerable}),{getValue:function(){return E},setValue:function(fe){E=""+fe},stopTracking:function(){d._valueTracker=null,delete d[m]}}}}function vr(d){if(!d._valueTracker){var m=Tn(d)?"checked":"value";d._valueTracker=bn(d,m,""+d[m])}}function Zr(d){if(!d)return!1;var m=d._valueTracker;if(!m)return!0;var E=m.getValue(),P="";return d&&(P=Tn(d)?d.checked?"true":"false":d.value),d=P,d!==E?(m.setValue(d),!0):!1}function kn(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}
vendor: 4,548 bytes, line 8
8catch{return d.body}}var ti=/[\n"\\]/g;function Qr(d){return d.replace(ti,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Cn(d,m,E,P,H,q,fe,Ce){d.name="",fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"?d.type=fe:d.removeAttribute("type"),m!=null?fe==="number"?(m===0&&d.value===""||d.value!=m)&&(d.value=""+Hn(m)):d.value!==""+Hn(m)&&(d.value=""+Hn(m)):fe!=="submit"&&fe!=="reset"||d.removeAttribute("value"),m!=null?or(d,fe,Hn(m)):E!=null?or(d,fe,Hn(E)):P!=null&&d.removeAttribute("value"),H==null&&q!=null&&(d.defaultChecked=!!q),H!=null&&(d.checked=H&&typeof H!="function"&&typeof H!="symbol"),Ce!=null&&typeof Ce!="function"&&typeof Ce!="symbol"&&typeof Ce!="boolean"?d.name=""+Hn(Ce):d.removeAttribute("name")}function zi(d,m,E,P,H,q,fe,Ce){if(q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(d.type=q),m!=null||E!=null){if(!(q!=="submit"&&q!=="reset"||m!=null)){vr(d);return}E=E!=null?""+Hn(E):"",m=m!=null?""+Hn(m):E,Ce||m===d.value||(d.value=m),d.defaultValue=m}P=P??H,P=typeof P!="function"&&typeof P!="symbol"&&!!P,d.checked=Ce?d.checked:!!P,d.defaultChecked=!!P,fe!=null&&typeof fe!="function"&&typeof fe!="symbol"&&typeof fe!="boolean"&&(d.name=fe),vr(d)}function or(d,m,E){m==="number"&&kn(d.ownerDocument)===d||d.defaultValue===""+E||(d.defaultValue=""+E)}function ja(d,m,E,P){if(d=d.options,m){m={};for(var H=0;H<E.length;H++)m["$"+E[H]]=!0;for(E=0;E<d.length;E++)H=m.hasOwnProperty("$"+d[E].value),d[E].selected!==H&&(d[E].selected=H),H&&P&&(d[E].defaultSelected=!0)}else{for(E=""+Hn(E),m=null,H=0;H<d.length;H++){if(d[H].value===E){d[H].selected=!0,P&&(d[H].defaultSelected=!0);return}m!==null||d[H].disabled||(m=d[H])}m!==null&&(m.selected=!0)}}function Vs(d,m,E){if(m!=null&&(m=""+Hn(m),m!==d.value&&(d.value=m),E==null)){d.defaultValue!==m&&(d.defaultValue=m);return}d.defaultValue=E!=null?""+Hn(E):""}function Nl(d,m,E,P){if(m==null){if(P!=null){if(E!=null)throw Error(r(92));if(Z(P)){if(1<P.length)throw Error(r(93));P=P[0]}E=P}E==null&&(E=""),m=E}E=Hn(m),d.defaultValue=E,P=d.textContent,P===E&&P!==""&&P!==null&&(d.value=P),vr(d)}function to(d,m){if(m){var E=d.firstChild;if(E&&E===d.lastChild&&E.nodeType===3){E.nodeValue=m;return}}d.textContent=m}var Ri=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function na(d,m,E){var P=m.indexOf("--")===0;E==null||typeof E=="boolean"||E===""?P?d.setProperty(m,""):m==="float"?d.cssFloat="":d[m]="":P?d.setProperty(m,E):typeof E!="number"||E===0||Ri.has(m)?m==="float"?d.cssFloat=E:d[m]=(""+E).trim():d[m]=E+"px"}function ou(d,m,E){if(m!=null&&typeof m!="object")throw Error(r(62));if(d=d.style,E!=null){for(var P in E)!E.hasOwnProperty(P)||m!=null&&m.hasOwnProperty(P)||(P.indexOf("--")===0?d.setProperty(P,""):P==="float"?d.cssFloat="":d[P]="");for(var H in m)P=m[H],m.hasOwnProperty(H)&&E[H]!==P&&na(d,H,P)}else for(var q in m)m.hasOwnProperty(q)&&na(d,q,m[q])}function Si(d){if(d.indexOf("-")===-1)return!1;switch(d){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 tl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),si=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vc(d){return si.test(""+d)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":d}function nl(){}var kf=null;function Lf(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var I0=null,$u=null;function Vd(d){var m=rn(d);if(m&&(d=m.stateNode)){var E=d[xe]||null;e:switch(d=m.stateNode,m.type){case"input":if(Cn(d,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name),m=E.name,E.type==="radio"&&m!=null){for(E=d;E.parentNode;)E=E.parentNode;for(E=E.querySelectorAll('input[name="'+Qr(""+m)+'"][type="radio"]'),m=0;m<E.length;m++){var P=E[m];if(P!==d&&P.form===d.form){var H=P[xe]||null;if(!H)throw Error(r(90));Cn(P,H.value,H.defaultValue,H.defaultValue,H.checked,H.defaultChecked,H.type,H.name)}}for(m=0;m<E.length;m++)P=E[m],P.form===d.form&&Zr(P)}break e;case"textarea":Vs(d,E.value,E.defaultValue);break e;case"select":m=E.value,m!=null&&ja(d,!!E.multiple,m,!1)}}}var Of=!1;function jd(d,m,E){if(Of)return d(m,E);Of=!0;try{var P=d(m);return P}finally{if(Of=!1,(I0!==null||$u!==null)&&(rM(),I0&&(m=I0,d=$u,$u=I0=null,Vd(m),d)))for(m=0;m<d.length;m++)Vd(d[m])}}function Ff(d,m){var E=d.stateNode;if(E===null)return null;var P=E[xe]||null;if(P===null)return null;E=P[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(P=!P.disabled)||(d=d.type,P=!(d==="button"||d==="input"||d==="select"||d==="textarea")),d=!P;break e;default:d=!1}if(d)return null;if(E&&typeof E!="function")throw Error(r(231,m,typeof E));return E}var Rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),B0=!1;if(Rl)try{var If={};Object.defineProperty(If,"passive",{get:function(){B0=!0}}),window.addEventListener("test",If,If),window.removeEventListener("test",If,If)}catch{B0=!1}var rl=null,qu=null,Hd=null;function Bf(){if(Hd)return Hd;var d,m=qu,E=m.length,P,H="value"in rl?rl.value:rl.textContent,q=H.length;for(d=0;d<E&&m[d]===H[d];d++);var fe=E-d;for(P=1;P<=fe&&m[E-P]===H[q-P];P++);return Hd=H.slice(d,1<P?1-P:void 0)}function Wu(d){var m=d.keyCode;
vendor: 2,828 bytes, line 8
8return"charCode"in d?(d=d.charCode,d===0&&m===13&&(d=13)):d=m,d===10&&(d=13),32<=d||d===13?d:0}function Zu(){return!0}function Gd(){return!1}function xo(d){function m(E,P,H,q,fe){this._reactName=E,this._targetInst=H,this.type=P,this.nativeEvent=q,this.target=fe,this.currentTarget=null;for(var Ce in d)d.hasOwnProperty(Ce)&&(E=d[Ce],this[Ce]=E?E(q):q[Ce]);return this.isDefaultPrevented=(q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1)?Zu:Gd,this.isPropagationStopped=Gd,this}return f(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var E=this.nativeEvent;E&&(E.preventDefault?E.preventDefault():typeof E.returnValue!="unknown"&&(E.returnValue=!1),this.isDefaultPrevented=Zu)},stopPropagation:function(){var E=this.nativeEvent;E&&(E.stopPropagation?E.stopPropagation():typeof E.cancelBubble!="unknown"&&(E.cancelBubble=!0),this.isPropagationStopped=Zu)},persist:function(){},isPersistent:Zu}),m}var yc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(d){return d.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},U0=xo(yc),Na=f({},yc,{view:0,detail:0}),_c=xo(Na),Cs,An,Wn,mr=f({},Na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:D6,button:0,buttons:0,relatedTarget:function(d){return d.relatedTarget===void 0?d.fromElement===d.srcElement?d.toElement:d.fromElement:d.relatedTarget},movementX:function(d){return"movementX"in d?d.movementX:(d!==Wn&&(Wn&&d.type==="mousemove"?(Cs=d.screenX-Wn.screenX,An=d.screenY-Wn.screenY):An=Cs=0,Wn=d),Cs)},movementY:function(d){return"movementY"in d?d.movementY:An}}),$r=xo(mr),Vi=f({},mr,{dataTransfer:0}),ra=xo(Vi),ji=f({},Na,{relatedTarget:0}),ha=xo(ji),vo=f({},yc,{animationName:0,elapsedTime:0,pseudoElement:0}),mE=xo(vo),AE=f({},yc,{clipboardData:function(d){return"clipboardData"in d?d.clipboardData:window.clipboardData}}),Jy=xo(AE),Vp=f({},yc,{data:0}),zd=xo(Vp),gE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xE={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"},R6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kk(d){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(d):(d=R6[d])?!!m[d]:!1}function D6(){return Kk}var vE=f({},Na,{key:function(d){if(d.key){var m=gE[d.key]||d.key;if(m!=="Unidentified")return m}
vendor: 5,186 bytes, line 8
8return d.type==="keypress"?(d=Wu(d),d===13?"Enter":String.fromCharCode(d)):d.type==="keydown"||d.type==="keyup"?xE[d.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:D6,charCode:function(d){return d.type==="keypress"?Wu(d):0},keyCode:function(d){return d.type==="keydown"||d.type==="keyup"?d.keyCode:0},which:function(d){return d.type==="keypress"?Wu(d):d.type==="keydown"||d.type==="keyup"?d.keyCode:0}}),Jk=xo(vE),eL=f({},mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yE=xo(eL),tL=f({},Na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:D6}),nL=xo(tL),_E=f({},yc,{propertyName:0,elapsedTime:0,pseudoElement:0}),rL=xo(_E),iL=f({},mr,{deltaX:function(d){return"deltaX"in d?d.deltaX:"wheelDeltaX"in d?-d.wheelDeltaX:0},deltaY:function(d){return"deltaY"in d?d.deltaY:"wheelDeltaY"in d?-d.wheelDeltaY:"wheelDelta"in d?-d.wheelDelta:0},deltaZ:0,deltaMode:0}),e4=xo(iL),aL=f({},yc,{newState:0,oldState:0}),sL=xo(aL),oL=[9,13,27,32],jp=Rl&&"CompositionEvent"in window,xx=null;Rl&&"documentMode"in document&&(xx=document.documentMode);var P6=Rl&&"TextEvent"in window&&!xx,k6=Rl&&(!jp||xx&&8<xx&&11>=xx),Hp=" ",bE=!1;function t4(d,m){switch(d){case"keyup":return oL.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L6(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var W2=!1;function wE(d,m){switch(d){case"compositionend":return L6(m);case"keypress":return m.which!==32?null:(bE=!0,Hp);case"textInput":return d=m.data,d===Hp&&bE?null:d;default:return null}}function lL(d,m){if(W2)return d==="compositionend"||!jp&&t4(d,m)?(d=Bf(),Hd=qu=rl=null,W2=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return k6&&m.locale!=="ko"?null:m.data;default:return null}}var cL={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 n4(d){var m=d&&d.nodeName&&d.nodeName.toLowerCase();return m==="input"?!!cL[d.type]:m==="textarea"}function SE(d,m,E,P){I0?$u?$u.push(P):$u=[P]:I0=P,m=uM(m,"onChange"),0<m.length&&(E=new U0("onChange","change",null,E,P),d.push({event:E,listeners:m}))}var Gp=null,zp=null;function vx(d){UQ(d,0)}function Yi(d){var m=en(d);if(Zr(m))return d}function TE(d,m){if(d==="change")return m}var O6=!1;if(Rl){var r4;if(Rl){var F6="oninput"in document;if(!F6){var EE=document.createElement("div");EE.setAttribute("oninput","return;"),F6=typeof EE.oninput=="function"}r4=F6}else r4=!1;O6=r4&&(!document.documentMode||9<document.documentMode)}function ME(){Gp&&(Gp.detachEvent("onpropertychange",CE),zp=Gp=null)}function CE(d){if(d.propertyName==="value"&&Yi(zp)){var m=[];SE(m,zp,d,Lf(d)),jd(vx,m)}}function bc(d,m,E){d==="focusin"?(ME(),Gp=m,zp=E,Gp.attachEvent("onpropertychange",CE)):d==="focusout"&&ME()}function I6(d){if(d==="selectionchange"||d==="keyup"||d==="keydown")return Yi(zp)}function $p(d,m){if(d==="click")return Yi(m)}function uL(d,m){if(d==="input"||d==="change")return Yi(m)}function B6(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var lu=typeof Object.is=="function"?Object.is:B6;function Dl(d,m){if(lu(d,m))return!0;if(typeof d!="object"||d===null||typeof m!="object"||m===null)return!1;var E=Object.keys(d),P=Object.keys(m);if(E.length!==P.length)return!1;for(P=0;P<E.length;P++){var H=E[P];if(!Ht.call(m,H)||!lu(d[H],m[H]))return!1}return!0}function i4(d){for(;d&&d.firstChild;)d=d.firstChild;return d}function a4(d,m){var E=i4(d);d=0;for(var P;E;){if(E.nodeType===3){if(P=d+E.textContent.length,d<=m&&P>=m)return{node:E,offset:m-d};d=P}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=i4(E)}}function qp(d,m){return d&&m?d===m?!0:d&&d.nodeType===3?!1:m&&m.nodeType===3?qp(d,m.parentNode):"contains"in d?d.contains(m):d.compareDocumentPosition?!!(d.compareDocumentPosition(m)&16):!1:!1}function n1(d){d=d!=null&&d.ownerDocument!=null&&d.ownerDocument.defaultView!=null?d.ownerDocument.defaultView:window;for(var m=kn(d.document);m instanceof d.HTMLIFrameElement;){try{var E=typeof m.contentWindow.location.href=="string"}catch{E=!1}if(E)d=m.contentWindow;else break;m=kn(d.document)}return m}function r1(d){var m=d&&d.nodeName&&d.nodeName.toLowerCase();return m&&(m==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||m==="textarea"||d.contentEditable==="true")}var fL=Rl&&"documentMode"in document&&11>=document.documentMode,Wp=null,U6=null,Zp=null,V6=!1;function NE(d,m,E){var P=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;V6||Wp==null||Wp!==kn(P)||(P=Wp,"selectionStart"in P&&r1(P)?P={start:P.selectionStart,end:P.selectionEnd}:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection(),P={anchorNode:P.anchorNode,anchorOffset:P.anchorOffset,focu
vendor: 16,610 bytes, line 8
8sNode:P.focusNode,focusOffset:P.focusOffset}),Zp&&Dl(Zp,P)||(Zp=P,P=uM(U6,"onSelect"),0<P.length&&(m=new U0("onSelect","select",null,m,E),d.push({event:m,listeners:P}),m.target=Wp)))}function $d(d,m){var E={};return E[d.toLowerCase()]=m.toLowerCase(),E["Webkit"+d]="webkit"+m,E["Moz"+d]="moz"+m,E}var Yp={animationend:$d("Animation","AnimationEnd"),animationiteration:$d("Animation","AnimationIteration"),animationstart:$d("Animation","AnimationStart"),transitionrun:$d("Transition","TransitionRun"),transitionstart:$d("Transition","TransitionStart"),transitioncancel:$d("Transition","TransitionCancel"),transitionend:$d("Transition","TransitionEnd")},yx={},Z2={};Rl&&(Z2=document.createElement("div").style,"AnimationEvent"in window||(delete Yp.animationend.animation,delete Yp.animationiteration.animation,delete Yp.animationstart.animation),"TransitionEvent"in window||delete Yp.transitionend.transition);function Yu(d){if(yx[d])return yx[d];if(!Yp[d])return d;var m=Yp[d],E;for(E in m)if(m.hasOwnProperty(E)&&E in Z2)return yx[d]=m[E];return d}var wc=Yu("animationend"),RE=Yu("animationiteration"),Y2=Yu("animationstart"),dL=Yu("transitionrun"),hL=Yu("transitionstart"),pL=Yu("transitioncancel"),j6=Yu("transitionend"),DE=new Map,H6="abort auxClick beforeToggle 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(" ");H6.push("scrollEnd");function V0(d,m){DE.set(d,m),He(m,[d])}var Xp=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},cu=[],i1=0,G6=0;function s4(){for(var d=i1,m=G6=i1=0;m<d;){var E=cu[m];cu[m++]=null;var P=cu[m];cu[m++]=null;var H=cu[m];cu[m++]=null;var q=cu[m];if(cu[m++]=null,P!==null&&H!==null){var fe=P.pending;fe===null?H.next=H:(H.next=fe.next,fe.next=H),P.pending=H}q!==0&&PE(E,H,q)}}function o4(d,m,E,P){cu[i1++]=d,cu[i1++]=m,cu[i1++]=E,cu[i1++]=P,G6|=P,d.lanes|=P,d=d.alternate,d!==null&&(d.lanes|=P)}function z6(d,m,E,P){return o4(d,m,E,P),l4(d)}function Qp(d,m){return o4(d,null,null,m),l4(d)}function PE(d,m,E){d.lanes|=E;var P=d.alternate;P!==null&&(P.lanes|=E);for(var H=!1,q=d.return;q!==null;)q.childLanes|=E,P=q.alternate,P!==null&&(P.childLanes|=E),q.tag===22&&(d=q.stateNode,d===null||d._visibility&1||(H=!0)),d=q,q=q.return;return d.tag===3?(q=d.stateNode,H&&m!==null&&(H=31-Zt(E),d=q.hiddenUpdates,P=d[H],P===null?d[H]=[m]:P.push(m),m.lane=E|536870912),q):null}function l4(d){if(50<cb)throw cb=0,rO=null,Error(r(185));for(var m=d.return;m!==null;)d=m,m=d.return;return d.tag===3?d.stateNode:null}var Kp={};function mL(d,m,E,P){this.tag=d,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sc(d,m,E,P){return new mL(d,m,E,P)}function j0(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Uf(d,m){var E=d.alternate;return E===null?(E=Sc(d.tag,m,d.key,d.mode),E.elementType=d.elementType,E.type=d.type,E.stateNode=d.stateNode,E.alternate=d,d.alternate=E):(E.pendingProps=m,E.type=d.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=d.flags&65011712,E.childLanes=d.childLanes,E.lanes=d.lanes,E.child=d.child,E.memoizedProps=d.memoizedProps,E.memoizedState=d.memoizedState,E.updateQueue=d.updateQueue,m=d.dependencies,E.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},E.sibling=d.sibling,E.index=d.index,E.ref=d.ref,E.refCleanup=d.refCleanup,E}function kE(d,m){d.flags&=65011714;var E=d.alternate;return E===null?(d.childLanes=0,d.lanes=m,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=E.childLanes,d.lanes=E.lanes,d.child=E.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=E.memoizedProps,d.memoizedState=E.memoizedState,d.updateQueue=E.updateQueue,d.type=E.type,m=E.dependencies,d.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),d}function c4(d,m,E,P,H,q){var fe=0;if(P=d,typeof d=="function")j0(d)&&(fe=1);else if(typeof d=="string")fe=hbe(d,E,me.current)?26:d==="html"||d==="head"||d==="body"?27:5;else e:switch(d){case B:return d=Sc(31,E,m,H),d.elementType=B,d.lanes=q,d;case g:return Jp(E.children,H,q,m);case w:fe=8,H|=24;break;case T:return d=Sc(12,E,m,H|2),d.elementType=T,d.lanes=q,d;case k:return d=Sc(13,E,m,H),d.elementType=k,d.lanes=q,d;case I:return d=Sc(19,E,m,H),d.elementType=I,d.lanes=q,d;default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case M:fe=10;break e;case C:fe=9;break e;case D:fe=11;break e;case L:fe=14;break e;case O:fe=16,P=null;break e}fe=29,E=Error(r(130,d===null?"null":typeof d,"")),P=null}return m=Sc(fe,E,m,H),m.elementType=d,m.type=P,m.lanes=q,m}function Jp(d,m,E,P){return d=Sc(7,d,P,m),d.lanes=E,d}function $6(d,m,E){return d=Sc(6,d,null,m),d.lanes=E,d}function LE(d){var m=Sc(18,null,null,0);return m.stateNode=d,m}function Vf(d,m,E){return m=Sc(4,d.children!==null?d.children:[],d.key,m),m.lanes=E,m.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},m}var u4=new WeakMap;function Xu(d,m){if(typeof d=="object"&&d!==null){var E=u4.get(d);return E!==void 0?E:(m={value:d,source:m,stack:lt(m)},u4.set(d,m),m)}return{value:d,source:m,stack:lt(m)}}var qd=[],em=0,f4=null,_x=0,Pl=[],uu=0,Qu=null,Ku=1,Ju="";function jf(d,m){qd[em++]=_x,qd[em++]=f4,f4=d,_x=m}function bx(d,m,E){Pl[uu++]=Ku,Pl[uu++]=Ju,Pl[uu++]=Qu,Qu=d;var P=Ku;d=Ju;var H=32-Zt(P)-1;P&=~(1<<H),E+=1;var q=32-Zt(m)+H;if(30<q){var fe=H-H%5;q=(P&(1<<fe)-1).toString(32),P>>=fe,H-=fe,Ku=1<<32-Zt(m)+H|E<<H|P,Ju=q+d}else Ku=1<<q|E<<H|P,Ju=d}function d4(d){d.return!==null&&(jf(d,1),bx(d,1,0))}function q6(d){for(;d===f4;)f4=qd[--em],qd[em]=null,_x=qd[--em],qd[em]=null;for(;d===Qu;)Qu=Pl[--uu],Pl[uu]=null,Ju=Pl[--uu],Pl[uu]=null,Ku=Pl[--uu],Pl[uu]=null}function OE(d,m){Pl[uu++]=Ku,Pl[uu++]=Ju,Pl[uu++]=Qu,Ku=m.id,Ju=m.overflow,Qu=d}var il=null,Xa=null,Ti=!1,a1=null,e0=!1,W6=Error(r(519));function s1(d){var m=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wd(Xu(m,d)),W6}function Z6(d){var m=d.stateNode,E=d.type,P=d.memoizedProps;switch(m[be]=d,m[xe]=P,E){case"dialog":Mi("cancel",m),Mi("close",m);break;case"iframe":case"object":case"embed":Mi("load",m);break;case"video":case"audio":for(E=0;E<fb.length;E++)Mi(fb[E],m);break;case"source":Mi("error",m);break;case"img":case"image":case"link":Mi("error",m),Mi("load",m);break;case"details":Mi("toggle",m);break;case"input":Mi("invalid",m),zi(m,P.value,P.defaultValue,P.checked,P.defaultChecked,P.type,P.name,!0);break;case"select":Mi("invalid",m);break;case"textarea":Mi("invalid",m),Nl(m,P.value,P.defaultValue,P.children)}E=P.children,typeof E!="string"&&typeof E!="number"&&typeof E!="bigint"||m.textContent===""+E||P.suppressHydrationWarning===!0||GQ(m.textContent,E)?(P.popover!=null&&(Mi("beforetoggle",m),Mi("toggle",m)),P.onScroll!=null&&Mi("scroll",m),P.onScrollEnd!=null&&Mi("scrollend",m),P.onClick!=null&&(m.onclick=nl),m=!0):m=!1,m||s1(d,!0)}function Y6(d){for(il=d.return;il;)switch(il.tag){case 5:case 31:case 13:e0=!1;return;case 27:case 3:e0=!0;return;default:il=il.return}}function Qa(d){if(d!==il)return!1;if(!Ti)return Y6(d),Ti=!0,!1;var m=d.tag,E;if((E=m!==3&&m!==27)&&((E=m===5)&&(E=d.type,E=!(E!=="form"&&E!=="button")||xO(d.type,d.memoizedProps)),E=!E),E&&Xa&&s1(d),Y6(d),m===13){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));Xa=KQ(d)}else if(m===31){if(d=d.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));Xa=KQ(d)}else m===27?(m=Xa,sA(d.type)?(d=wO,wO=null,Xa=d):Xa=m):Xa=il?$f(d.stateNode.nextSibling):null;return!0}function tm(){Xa=il=null,Ti=!1}function X6(){var d=a1;return d!==null&&(i0===null?i0=d:i0.push.apply(i0,d),a1=null),d}function Wd(d){a1===null?a1=[d]:a1.push(d)}var Tc=oe(null),nm=null,Zd=null;function Yd(d,m,E){he(Tc,m._currentValue),m._currentValue=E}function Hf(d){d._currentValue=Tc.current,te(Tc)}function h4(d,m,E){for(;d!==null;){var P=d.alternate;if((d.childLanes&m)!==m?(d.childLanes|=m,P!==null&&(P.childLanes|=m)):P!==null&&(P.childLanes&m)!==m&&(P.childLanes|=m),d===E)break;d=d.return}}function p4(d,m,E,P){var H=d.child;for(H!==null&&(H.return=d);H!==null;){var q=H.dependencies;if(q!==null){var fe=H.child;q=q.firstContext;e:for(;q!==null;){var Ce=q;q=H;for(var et=0;et<m.length;et++)if(Ce.context===m[et]){q.lanes|=E,Ce=q.alternate,Ce!==null&&(Ce.lanes|=E),h4(q.return,E,d),P||(fe=null);break e}q=Ce.next}}else if(H.tag===18){if(fe=H.return,fe===null)throw Error(r(341));fe.lanes|=E,q=fe.alternate,q!==null&&(q.lanes|=E),h4(fe,E,d),fe=null}else fe=H.child;if(fe!==null)fe.return=H;else for(fe=H;fe!==null;){if(fe===d){fe=null;break}if(H=fe.sibling,H!==null){H.return=fe.return,fe=H;break}fe=fe.return}H=fe}}function rm(d,m,E,P){d=null;for(var H=m,q=!1;H!==null;){if(!q){if((H.flags&524288)!==0)q=!0;else if((H.flags&262144)!==0)break}if(H.tag===10){var fe=H.alternate;if(fe===null)throw Error(r(387));if(fe=fe.memoizedProps,fe!==null){var Ce=H.type;lu(H.pendingProps.value,fe.value)||(d!==null?d.push(Ce):d=[Ce])}}else if(H===Se.current){if(fe=H.alternate,fe===null)throw Error(r(387));fe.memoizedState.memoizedState!==H.memoizedState.memoizedState&&(d!==null?d.push(Ab):d=[Ab])}H=H.return}d!==null&&p4(m,d,E,P),m.flags|=262144}function m4(d){for(d=d.firstContext;d!==null;){if(!lu(d.context._currentValue,d.memoizedValue))return!0;d=d.next}return!1}function im(d){nm=d,Zd=null,d=d.dependencies,d!==null&&(d.firstContext=null)}function al(d){return Xd(nm,d)}function A4(d,m){return nm===null&&im(d),Xd(d,m)}function Xd(d,m){var E=m._currentValue;if(m={context:m,memoizedValue:E,next:null},Zd===null){if(d===null)throw Error(r(308));Zd=m,d.dependencies={lanes:0,firstContext:m},d.flags|=524288}else Zd=Zd.next=m;return E}var Gf=typeof AbortController<"u"?AbortController:function(){var d=[],m=this.signal={aborted:!1,addEventListener:function(E,P){d.push(P)}};this.abort=function(){m.aborted=!0,d.forEach(function(E){return E()})}},pr=t.unstable_scheduleCallback,Ec=t.unstable_NormalPriority,On={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function no(){return{controller:new Gf,data:new Map,refCount:0}}function X2(d){d.refCount--,d.refCount===0&&pr(Ec,function(){d.controller.abort()})}var am=null,zf=0,Q2=0,fs=null;function K2(d,m){if(am===null){var E=am=[];zf=0,Q2=cO(),fs={status:"pending",value:void 0,then:function(P){E.push(P)}}}return zf++,m.then(sm,sm),m}function sm(){if(--zf===0&&am!==null){fs!==null&&(fs.status="fulfilled");var d=am;am=null,Q2=0,fs=null;for(var m=0;m<d.length;m++)(0,d[m])()}}function FE(d,m){var E=[],P={status:"pending",value:null,reason:null,then:function(H){E.push(H)}};return d.then(function(){P.status="fulfilled",P.value=m;for(var H=0;H<E.length;H++)(0,E[H])(m)},function(H){for(P.status="rejected",P.reason=H,H=0;H<E.length;H++)(0,E[H])(void 0)}),P}var on=X.S;X.S=function(d,m){hQ=nt(),typeof m=="object"&&m!==null&&typeof m.then=="function"&&K2(d,m),on!==null&&on(d,m)};var mn=oe(null);function wx(){var d=mn.current;return d!==null?d:Ka.pooledCache}function Sx(d,m){m===null?he(mn,mn.current):he(mn,m.pool)}function Tx(){var d=wx();return d===null?null:{parent:On._currentValue,pool:d}}var Qd=Error(r(460)),o1=Error(r(474)),H0=Error(r(542)),Ex={then:function(){}};function Kd(d){return d=d.status,d==="fulfilled"||d==="rejected"}function _(d,m,E){switch(E=d[E],E===void 0?d.push(m):E!==m&&(m.then(nl,nl),m=E),m.status){case"fulfilled":return m.value;case"rejected":throw d=m.reason,R(d),d;default:if(typeof m.status=="string")m.then(nl,nl);else{if(d=Ka,d!==null&&100<d.shellSuspendCounter)throw Error(r(482));d=m,d.status="pending",d.then(function(P){if(m.status==="pending"){var H=m;H.status="fulfilled",H.value=P}},function(P){if(m.status==="pending"){var H=m;H.status="rejected",H.reason=P}})}switch(m.status){case"fulfilled":return m.value;case"rejected":throw d=m.reason,R(d),d}throw S=m,Qd}}function y(d){try{var m=d._init;return m(d._payload)}catch(E){throw E!==null&&typeof E=="object"&&typeof E.then=="function"?(S=E,Qd):E}}var S=null;function N(){if(S===null)throw Error(r(459));var d=S;return S=null,d}function R(d){if(d===Qd||d===H0)throw Error(r(483))}var F=null,U=0;function V(d){var m=U;return U+=1,F===null&&(F=[]),_(F,d,m)}function Y(d,m){m=m.props.ref,d.ref=m!==void 0?m:null}function ne(d,m){throw m.$$typeof===h?Error(r(525)):(d=Object.prototype.toString.call(m),Error(r(31,d==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":d)))}function le(d){function m(Mt,mt){if(d){var Ot=Mt.deletions;Ot===null?(Mt.deletions=[mt],Mt.flags|=16):Ot.push(mt)}}function E(Mt,mt){if(!d)return null;for(;mt!==null;)m(Mt,mt),mt=mt.sibling;return null}function P(Mt){for(var mt=new Map;Mt!==null;)Mt.key!==null?mt.set(Mt.key,Mt):mt.set(Mt.index,Mt),Mt=Mt.sibling;return mt}function H(Mt,mt){return Mt=Uf(Mt,mt),Mt.index=0,Mt.sibling=null,Mt}function q(Mt,mt,Ot){return Mt.index=Ot,d?(Ot=Mt.alternate,Ot!==null?(Ot=Ot.index,Ot<mt?(Mt.flags|=67108866,mt):Ot):(Mt.flags|=67108866,mt)):(Mt.flags|=1048576,mt)}function fe(Mt){return d&&Mt.alternate===null&&(Mt.flags|=67108866),Mt}function Ce(Mt,mt,Ot,an){return mt===null||mt.tag!==6?(mt=$6(Ot,Mt.mode,an),mt.return=Mt,mt):(mt=H(mt,Ot),mt.return=Mt,mt)}function et(Mt,mt,Ot,an){var wr=Ot.type;return wr===g?Jt(Mt,mt,Ot.props.children,an,Ot.key):mt!==null&&(mt.elementType===wr||typeof wr=="object"&&wr!==null&&wr.$$typeof===O&&y(wr)===mt.type)?(mt=H(mt,Ot.props),Y(mt,Ot),mt.return=Mt,mt):(mt=c4(Ot.type,Ot.key,Ot.props,null,Mt.mode,an),Y(mt,Ot),mt.return=Mt,mt)}function Ft(Mt,mt,Ot,an){return mt===null||mt.tag!==4||mt.stateNode.containerInfo!==Ot.containerInfo||mt.stateNode.implementation!==Ot.implementation?(mt=Vf(Ot,Mt.mode,an),mt.return=Mt,mt):(mt=H(mt,Ot.children||[]),mt.return=Mt,mt)}function Jt(Mt,mt,Ot,an,wr){return mt===null||mt.tag!==7?(mt=Jp(Ot,Mt.mode,an,wr),mt.return=Mt,mt):(mt=H(mt,Ot),mt.return=Mt,mt)}function cn(Mt,mt,Ot){if(typeof mt=="string"&&mt!==""||typeof mt=="number"||typeof mt=="bigint")return mt=$6(""+mt,Mt.mode,Ot),mt.return=Mt,mt;if(typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case p:return Ot=c4(mt.type,mt.key,mt.props,null,Mt.mode,Ot),Y(Ot,mt),Ot.return=Mt,Ot;case A:return mt=Vf(mt,Mt.mode,Ot),mt.return=Mt,mt;case O:return mt=y(mt),cn(Mt,mt,Ot)}if(Z(mt)||z(mt))return mt=Jp(mt,Mt.mode,Ot,null),mt.return=Mt,mt;if(typeof mt.then=="function")return cn(Mt,V(mt),Ot);if(mt.$$typeof===M)return cn(Mt,A4(Mt,mt),Ot);ne(Mt,mt)}return null}function Ut(Mt,mt,Ot,an){var wr=mt!==null?mt.key:null;if(typeof Ot=="string"&&Ot!==""||typeof Ot=="number"||typeof Ot=="bigint")return wr!==null?null:Ce(Mt,mt,""+Ot,an);if(typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case p:return Ot.key===wr?et(Mt,mt,Ot,an):null;case A:return Ot.key===wr?Ft(Mt,mt,Ot,an):null;case O:return Ot=y(Ot),Ut(Mt,mt,Ot,an)}if(Z(Ot)||z(Ot))return wr!==null?null:Jt(Mt,mt,Ot,an,null);if(typeof Ot.then=="function")return Ut(Mt,mt,V(Ot),an);if(Ot.$$typeof===M)return Ut(Mt,mt,A4(Mt,Ot),an);ne(Mt,Ot)}return null}function $t(Mt,mt,Ot,an,wr){if(typeof an=="string"&&an!==""||typeof an=="number"||typeof an=="bigint")return Mt=Mt.get(Ot)||null,Ce(mt,Mt,""+an,wr);if(typeof an=="object"&&an!==null){switch(an.$$typeof){case p:return Mt=Mt.get(an.key===null?Ot:an.key)||null,et(mt,Mt,an,wr);case A:return Mt=Mt.get(an.key===null?Ot:an.key)||null,Ft(mt,Mt,an,wr);case O:return an=y(an),$t(Mt,mt,Ot,an,wr)}if(Z(an)||z(an))return Mt=Mt.get(Ot)||null,Jt(mt,Mt,an,wr,null);if(typeof an.then=="function")return $t(Mt,mt,Ot,V(an),wr);
vendor: 5,770 bytes, line 8
8if(an.$$typeof===M)return $t(Mt,mt,Ot,A4(mt,an),wr);ne(mt,an)}return null}function tr(Mt,mt,Ot,an){for(var wr=null,ia=null,fr=mt,oi=mt=0,Pi=null;fr!==null&&oi<Ot.length;oi++){fr.index>oi?(Pi=fr,fr=null):Pi=fr.sibling;var aa=Ut(Mt,fr,Ot[oi],an);if(aa===null){fr===null&&(fr=Pi);break}d&&fr&&aa.alternate===null&&m(Mt,fr),mt=q(aa,mt,oi),ia===null?wr=aa:ia.sibling=aa,ia=aa,fr=Pi}if(oi===Ot.length)return E(Mt,fr),Ti&&jf(Mt,oi),wr;if(fr===null){for(;oi<Ot.length;oi++)fr=cn(Mt,Ot[oi],an),fr!==null&&(mt=q(fr,mt,oi),ia===null?wr=fr:ia.sibling=fr,ia=fr);return Ti&&jf(Mt,oi),wr}for(fr=P(fr);oi<Ot.length;oi++)Pi=$t(fr,Mt,oi,Ot[oi],an),Pi!==null&&(d&&Pi.alternate!==null&&fr.delete(Pi.key===null?oi:Pi.key),mt=q(Pi,mt,oi),ia===null?wr=Pi:ia.sibling=Pi,ia=Pi);return d&&fr.forEach(function(fA){return m(Mt,fA)}),Ti&&jf(Mt,oi),wr}function Or(Mt,mt,Ot,an){if(Ot==null)throw Error(r(151));for(var wr=null,ia=null,fr=mt,oi=mt=0,Pi=null,aa=Ot.next();fr!==null&&!aa.done;oi++,aa=Ot.next()){fr.index>oi?(Pi=fr,fr=null):Pi=fr.sibling;var fA=Ut(Mt,fr,aa.value,an);if(fA===null){fr===null&&(fr=Pi);break}d&&fr&&fA.alternate===null&&m(Mt,fr),mt=q(fA,mt,oi),ia===null?wr=fA:ia.sibling=fA,ia=fA,fr=Pi}if(aa.done)return E(Mt,fr),Ti&&jf(Mt,oi),wr;if(fr===null){for(;!aa.done;oi++,aa=Ot.next())aa=cn(Mt,aa.value,an),aa!==null&&(mt=q(aa,mt,oi),ia===null?wr=aa:ia.sibling=aa,ia=aa);return Ti&&jf(Mt,oi),wr}for(fr=P(fr);!aa.done;oi++,aa=Ot.next())aa=$t(fr,Mt,oi,aa.value,an),aa!==null&&(d&&aa.alternate!==null&&fr.delete(aa.key===null?oi:aa.key),mt=q(aa,mt,oi),ia===null?wr=aa:ia.sibling=aa,ia=aa);return d&&fr.forEach(function(Sbe){return m(Mt,Sbe)}),Ti&&jf(Mt,oi),wr}function za(Mt,mt,Ot,an){if(typeof Ot=="object"&&Ot!==null&&Ot.type===g&&Ot.key===null&&(Ot=Ot.props.children),typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case p:e:{for(var wr=Ot.key;mt!==null;){if(mt.key===wr){if(wr=Ot.type,wr===g){if(mt.tag===7){E(Mt,mt.sibling),an=H(mt,Ot.props.children),an.return=Mt,Mt=an;break e}}else if(mt.elementType===wr||typeof wr=="object"&&wr!==null&&wr.$$typeof===O&&y(wr)===mt.type){E(Mt,mt.sibling),an=H(mt,Ot.props),Y(an,Ot),an.return=Mt,Mt=an;break e}E(Mt,mt);break}else m(Mt,mt);mt=mt.sibling}Ot.type===g?(an=Jp(Ot.props.children,Mt.mode,an,Ot.key),an.return=Mt,Mt=an):(an=c4(Ot.type,Ot.key,Ot.props,null,Mt.mode,an),Y(an,Ot),an.return=Mt,Mt=an)}return fe(Mt);case A:e:{for(wr=Ot.key;mt!==null;){if(mt.key===wr)if(mt.tag===4&&mt.stateNode.containerInfo===Ot.containerInfo&&mt.stateNode.implementation===Ot.implementation){E(Mt,mt.sibling),an=H(mt,Ot.children||[]),an.return=Mt,Mt=an;break e}else{E(Mt,mt);break}else m(Mt,mt);mt=mt.sibling}an=Vf(Ot,Mt.mode,an),an.return=Mt,Mt=an}return fe(Mt);case O:return Ot=y(Ot),za(Mt,mt,Ot,an)}if(Z(Ot))return tr(Mt,mt,Ot,an);if(z(Ot)){if(wr=z(Ot),typeof wr!="function")throw Error(r(150));return Ot=wr.call(Ot),Or(Mt,mt,Ot,an)}if(typeof Ot.then=="function")return za(Mt,mt,V(Ot),an);if(Ot.$$typeof===M)return za(Mt,mt,A4(Mt,Ot),an);ne(Mt,Ot)}return typeof Ot=="string"&&Ot!==""||typeof Ot=="number"||typeof Ot=="bigint"?(Ot=""+Ot,mt!==null&&mt.tag===6?(E(Mt,mt.sibling),an=H(mt,Ot),an.return=Mt,Mt=an):(E(Mt,mt),an=$6(Ot,Mt.mode,an),an.return=Mt,Mt=an),fe(Mt)):E(Mt,mt)}return function(Mt,mt,Ot,an){try{U=0;var wr=za(Mt,mt,Ot,an);return F=null,wr}catch(fr){if(fr===Qd||fr===H0)throw fr;var ia=Sc(29,fr,null,Mt.mode);return ia.lanes=an,ia.return=Mt,ia}}}var Ee=le(!0),Be=le(!1),Oe=!1;function Ue(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function st(d,m){d=d.updateQueue,m.updateQueue===d&&(m.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,callbacks:null})}function At(d){return{lane:d,tag:0,payload:null,callback:null,next:null}}function Pt(d,m,E){var P=d.updateQueue;if(P===null)return null;if(P=P.shared,(pa&2)!==0){var H=P.pending;return H===null?m.next=m:(m.next=H.next,H.next=m),P.pending=m,m=l4(d),PE(d,null,E),m}return o4(d,P,m,E),l4(d)}function Et(d,m,E){if(m=m.updateQueue,m!==null&&(m=m.shared,(E&4194048)!==0)){var P=m.lanes;P&=d.pendingLanes,E|=P,m.lanes=E,pt(d,E)}}function bt(d,m){var E=d.updateQueue,P=d.alternate;if(P!==null&&(P=P.updateQueue,E===P)){var H=null,q=null;if(E=E.firstBaseUpdate,E!==null){do{var fe={lane:E.lane,tag:E.tag,payload:E.payload,callback:null,next:null};q===null?H=q=fe:q=q.next=fe,E=E.next}while(E!==null);q===null?H=q=m:q=q.next=m}else H=q=m;E={baseState:P.baseState,firstBaseUpdate:H,lastBaseUpdate:q,shared:P.shared,callbacks:P.callbacks},d.updateQueue=E;return}d=E.lastBaseUpdate,d===null?E.firstBaseUpdate=m:d.next=m,E.lastBaseUpdate=m}var ct=!1;function gn(){if(ct){var d=fs;if(d!==null)throw d}}function Yn(d,m,E,P){ct=!1;var H=d.updateQueue;Oe=!1;var q=H.firstBaseUpdate,fe=H.lastBaseUpdate,Ce=H.shared.pending;if(Ce!==null){H.shared.pending=null;var et=Ce,Ft=et.next;et.next=null,fe===null?q=Ft:fe.next=Ft,fe=et;var Jt=d.alternate;Jt!==null&&(Jt=Jt.updateQueue,Ce=Jt.lastBaseUpdate,Ce!==fe&&(Ce===null?Jt.firstBaseUpdate=Ft:Ce.next=Ft,Jt.lastBaseUpdate=et))}if(q!==null){var cn=H.baseState;fe=0,Jt=Ft=et=null,Ce=q;do{var Ut=Ce.lane&-536870913,$t=Ut!==Ce.lane;if($t?(Di&Ut)===Ut:(P&Ut)===Ut){Ut!==0&&Ut===Q2&&(ct=!0),Jt!==null&&(Jt=Jt.next={lane:0,tag:Ce.tag,payload:Ce.payload,callback:null,next:null});e:{var tr=d,Or=Ce;Ut=m;var za=E;switch(Or.tag){case 1:if(tr=Or.payload,typeof tr=="function"){cn=tr.call(za,cn,Ut);break e}cn=tr;break e;case 3:tr.flags=tr.flags&-65537|128;case 0:if(tr=Or.payload,Ut=typeof tr=="function"?tr.call(za,cn,Ut):tr,Ut==null)break e;cn=f({},cn,Ut);break e;case 2:Oe=!0}}Ut=Ce.callback,Ut!==null&&(d.flags|=64,$t&&(d.flags|=8192),$t=H.callbacks,$t===null?H.callbacks=[Ut]:$t.push(Ut))}
vendor: 5,579 bytes, line 8
8else $t={lane:Ut,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},Jt===null?(Ft=Jt=$t,et=cn):Jt=Jt.next=$t,fe|=Ut;if(Ce=Ce.next,Ce===null){if(Ce=H.shared.pending,Ce===null)break;$t=Ce,Ce=$t.next,$t.next=null,H.lastBaseUpdate=$t,H.shared.pending=null}}while(!0);Jt===null&&(et=cn),H.baseState=et,H.firstBaseUpdate=Ft,H.lastBaseUpdate=Jt,q===null&&(H.shared.lanes=0),tA|=fe,d.lanes=fe,d.memoizedState=cn}}function jn(d,m){if(typeof d!="function")throw Error(r(191,d));d.call(m)}function Ir(d,m){var E=d.callbacks;if(E!==null)for(d.callbacks=null,d=0;d<E.length;d++)jn(E[d],m)}var Nr=oe(null),Yr=oe(0);function Mr(d,m){d=mm,he(Yr,d),he(Nr,m),mm=d|m.baseLanes}function Jn(){he(Yr,mm),he(Nr,Nr.current)}function xn(){mm=Yr.current,te(Nr),te(Yr)}var yr=oe(null),ni=null;function Cr(d){var m=d.alternate;he(yo,yo.current&1),he(yr,d),ni===null&&(m===null||Nr.current!==null||m.memoizedState!==null)&&(ni=d)}function Xi(d){he(yo,yo.current),he(yr,d),ni===null&&(ni=d)}function kl(d){d.tag===22?(he(yo,yo.current),he(yr,d),ni===null&&(ni=d)):Jd()}function Jd(){he(yo,yo.current),he(yr,yr.current)}function G0(d){te(yr),ni===d&&(ni=null),te(yo)}var yo=oe(0);function IE(d){for(var m=d;m!==null;){if(m.tag===13){var E=m.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||_O(E)||bO(E)))return m}else if(m.tag===19&&(m.memoizedProps.revealOrder==="forwards"||m.memoizedProps.revealOrder==="backwards"||m.memoizedProps.revealOrder==="unstable_legacy-backwards"||m.memoizedProps.revealOrder==="together")){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===d)break;for(;m.sibling===null;){if(m.return===null||m.return===d)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var om=0,ri=null,Ha=null,ko=null,BE=!1,g4=!1,Mx=!1,UE=0,Q6=0,x4=null,p6e=0;function ro(){throw Error(r(321))}function AL(d,m){if(m===null)return!1;for(var E=0;E<m.length&&E<d.length;E++)if(!lu(d[E],m[E]))return!1;return!0}function gL(d,m,E,P,H,q){return om=q,ri=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,X.H=d===null||d.memoizedState===null?SX:PL,Mx=!1,q=E(P,H),Mx=!1,g4&&(q=GY(m,E,P,H)),HY(d),q}function HY(d){X.H=eb;var m=Ha!==null&&Ha.next!==null;if(om=0,ko=Ha=ri=null,BE=!1,Q6=0,x4=null,m)throw Error(r(300));d===null||Lo||(d=d.dependencies,d!==null&&m4(d)&&(Lo=!0))}function GY(d,m,E,P){ri=d;var H=0;do{if(g4&&(x4=null),Q6=0,g4=!1,25<=H)throw Error(r(301));if(H+=1,ko=Ha=null,d.updateQueue!=null){var q=d.updateQueue;q.lastEffect=null,q.events=null,q.stores=null,q.memoCache!=null&&(q.memoCache.index=0)}X.H=TX,q=m(E,P)}while(g4);return q}function m6e(){var d=X.H,m=d.useState()[0];return m=typeof m.then=="function"?K6(m):m,d=d.useState()[0],(Ha!==null?Ha.memoizedState:null)!==d&&(ri.flags|=1024),m}function xL(){var d=UE!==0;return UE=0,d}function vL(d,m,E){m.updateQueue=d.updateQueue,m.flags&=-2053,d.lanes&=~E}function yL(d){if(BE){for(d=d.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}BE=!1}om=0,ko=Ha=ri=null,g4=!1,Q6=UE=0,x4=null}function fu(){var d={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ko===null?ri.memoizedState=ko=d:ko=ko.next=d,ko}function _o(){if(Ha===null){var d=ri.alternate;d=d!==null?d.memoizedState:null}else d=Ha.next;var m=ko===null?ri.memoizedState:ko.next;if(m!==null)ko=m,Ha=d;else{if(d===null)throw ri.alternate===null?Error(r(467)):Error(r(310));Ha=d,d={memoizedState:Ha.memoizedState,baseState:Ha.baseState,baseQueue:Ha.baseQueue,queue:Ha.queue,next:null},ko===null?ri.memoizedState=ko=d:ko=ko.next=d}return ko}function VE(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function K6(d){var m=Q6;return Q6+=1,x4===null&&(x4=[]),d=_(x4,d,m),m=ri,(ko===null?m.memoizedState:ko.next)===null&&(m=m.alternate,X.H=m===null||m.memoizedState===null?SX:PL),d}function jE(d){if(d!==null&&typeof d=="object"){if(typeof d.then=="function")return K6(d);if(d.$$typeof===M)return al(d)}throw Error(r(438,String(d)))}function _L(d){var m=null,E=ri.updateQueue;if(E!==null&&(m=E.memoCache),m==null){var P=ri.alternate;P!==null&&(P=P.updateQueue,P!==null&&(P=P.memoCache,P!=null&&(m={data:P.data.map(function(H){return H.slice()}),index:0})))}if(m==null&&(m={data:[],index:0}),E===null&&(E=VE(),ri.updateQueue=E),E.memoCache=m,E=m.data[m.index],E===void 0)for(E=m.data[m.index]=Array(d),P=0;P<d;P++)E[P]=G;return m.index++,E}function lm(d,m){return typeof m=="function"?m(d):m}function HE(d){var m=_o();return bL(m,Ha,d)}function bL(d,m,E){var P=d.queue;if(P===null)throw Error(r(311));P.lastRenderedReducer=E;var H=d.baseQueue,q=P.pending;if(q!==null){if(H!==null){var fe=H.next;H.next=q.next,q.next=fe}m.baseQueue=H=q,P.pending=null}if(q=d.baseState,H===null)d.memoizedState=q;else{m=H.next;var Ce=fe=null,et=null,Ft=m,Jt=!1;do{var cn=Ft.lane&-536870913;if(cn!==Ft.lane?(Di&cn)===cn:(om&cn)===cn){var Ut=Ft.revertLane;if(Ut===0)et!==null&&(et=et.next={lane:0,revertLane:0,gesture:null,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null}),cn===Q2&&(Jt=!0);else if((om&Ut)===Ut){Ft=Ft.next,Ut===Q2&&(Jt=!0);continue}else cn={lane:0,revertLane:Ft.revertLane,gesture:null,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},et===null?(Ce=et=cn,fe=q):et=et.next=cn,ri.lanes|=Ut,tA|=Ut;cn=Ft.action,Mx&&E(q,cn),q=Ft.hasEagerState?Ft.eagerState:E(q,cn)}else Ut={lane:cn,revertLane:Ft.revertLane,gesture:Ft.gesture,action:Ft.action,hasEagerState:Ft.hasEagerState,eagerState:Ft.eagerState,next:null},et===null?(Ce=et=Ut,fe=q):et=et.next=Ut,ri.lanes|=cn,tA|=cn;Ft=Ft.next}
vendor: 5,548 bytes, line 8
8while(Ft!==null&&Ft!==m);if(et===null?fe=q:et.next=Ce,!lu(q,d.memoizedState)&&(Lo=!0,Jt&&(E=fs,E!==null)))throw E;d.memoizedState=q,d.baseState=fe,d.baseQueue=et,P.lastRenderedState=q}return H===null&&(P.lanes=0),[d.memoizedState,P.dispatch]}function wL(d){var m=_o(),E=m.queue;if(E===null)throw Error(r(311));E.lastRenderedReducer=d;var P=E.dispatch,H=E.pending,q=m.memoizedState;if(H!==null){E.pending=null;var fe=H=H.next;do q=d(q,fe.action),fe=fe.next;while(fe!==H);lu(q,m.memoizedState)||(Lo=!0),m.memoizedState=q,m.baseQueue===null&&(m.baseState=q),E.lastRenderedState=q}return[q,P]}function zY(d,m,E){var P=ri,H=_o(),q=Ti;if(q){if(E===void 0)throw Error(r(407));E=E()}else E=m();var fe=!lu((Ha||H).memoizedState,E);if(fe&&(H.memoizedState=E,Lo=!0),H=H.queue,EL(WY.bind(null,P,H,d),[d]),H.getSnapshot!==m||fe||ko!==null&&ko.memoizedState.tag&1){if(P.flags|=2048,v4(9,{destroy:void 0},qY.bind(null,P,H,E,m),null),Ka===null)throw Error(r(349));q||(om&127)!==0||$Y(P,m,E)}return E}function $Y(d,m,E){d.flags|=16384,d={getSnapshot:m,value:E},m=ri.updateQueue,m===null?(m=VE(),ri.updateQueue=m,m.stores=[d]):(E=m.stores,E===null?m.stores=[d]:E.push(d))}function qY(d,m,E,P){m.value=E,m.getSnapshot=P,ZY(m)&&YY(d)}function WY(d,m,E){return E(function(){ZY(m)&&YY(d)})}function ZY(d){var m=d.getSnapshot;d=d.value;try{var E=m();return!lu(d,E)}catch{return!0}}function YY(d){var m=Qp(d,2);m!==null&&a0(m,d,2)}function SL(d){var m=fu();if(typeof d=="function"){var E=d;if(d=E(),Mx){Vt(!0);try{E()}finally{Vt(!1)}}}return m.memoizedState=m.baseState=d,m.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:d},m}function XY(d,m,E,P){return d.baseState=E,bL(d,Ha,typeof P=="function"?P:lm)}function A6e(d,m,E,P,H){if($E(d))throw Error(r(485));if(d=m.action,d!==null){var q={payload:H,action:d,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(fe){q.listeners.push(fe)}};X.T!==null?E(!0):q.isTransition=!1,P(q),E=m.pending,E===null?(q.next=m.pending=q,QY(m,q)):(q.next=E.next,m.pending=E.next=q)}}function QY(d,m){var E=m.action,P=m.payload,H=d.state;if(m.isTransition){var q=X.T,fe={};X.T=fe;try{var Ce=E(H,P),et=X.S;et!==null&&et(fe,Ce),KY(d,m,Ce)}catch(Ft){TL(d,m,Ft)}finally{q!==null&&fe.types!==null&&(q.types=fe.types),X.T=q}}else try{q=E(H,P),KY(d,m,q)}catch(Ft){TL(d,m,Ft)}}function KY(d,m,E){E!==null&&typeof E=="object"&&typeof E.then=="function"?E.then(function(P){JY(d,m,P)},function(P){return TL(d,m,P)}):JY(d,m,E)}function JY(d,m,E){m.status="fulfilled",m.value=E,eX(m),d.state=E,m=d.pending,m!==null&&(E=m.next,E===m?d.pending=null:(E=E.next,m.next=E,QY(d,E)))}function TL(d,m,E){var P=d.pending;if(d.pending=null,P!==null){P=P.next;do m.status="rejected",m.reason=E,eX(m),m=m.next;while(m!==P)}d.action=null}function eX(d){d=d.listeners;for(var m=0;m<d.length;m++)(0,d[m])()}function tX(d,m){return m}function nX(d,m){if(Ti){var E=Ka.formState;if(E!==null){e:{var P=ri;if(Ti){if(Xa){t:{for(var H=Xa,q=e0;H.nodeType!==8;){if(!q){H=null;break t}if(H=$f(H.nextSibling),H===null){H=null;break t}}q=H.data,H=q==="F!"||q==="F"?H:null}if(H){Xa=$f(H.nextSibling),P=H.data==="F!";break e}}s1(P)}P=!1}P&&(m=E[0])}}return E=fu(),E.memoizedState=E.baseState=m,P={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tX,lastRenderedState:m},E.queue=P,E=_X.bind(null,ri,P),P.dispatch=E,P=SL(!1),q=DL.bind(null,ri,!1,P.queue),P=fu(),H={state:m,dispatch:null,action:d,pending:null},P.queue=H,E=A6e.bind(null,ri,H,q,E),H.dispatch=E,P.memoizedState=d,[m,E,!1]}function rX(d){var m=_o();return iX(m,Ha,d)}function iX(d,m,E){if(m=bL(d,m,tX)[0],d=HE(lm)[0],typeof m=="object"&&m!==null&&typeof m.then=="function")try{var P=K6(m)}catch(fe){throw fe===Qd?H0:fe}else P=m;m=_o();var H=m.queue,q=H.dispatch;return E!==m.memoizedState&&(ri.flags|=2048,v4(9,{destroy:void 0},g6e.bind(null,H,E),null)),[P,q,d]}function g6e(d,m){d.action=m}function aX(d){var m=_o(),E=Ha;if(E!==null)return iX(m,E,d);_o(),m=m.memoizedState,E=_o();var P=E.queue.dispatch;return E.memoizedState=d,[m,P,!1]}function v4(d,m,E,P){return d={tag:d,create:E,deps:P,inst:m,next:null},m=ri.updateQueue,m===null&&(m=VE(),ri.updateQueue=m),E=m.lastEffect,E===null?m.lastEffect=d.next=d:(P=E.next,E.next=d,d.next=P,m.lastEffect=d),d}function sX(){return _o().memoizedState}function GE(d,m,E,P){var H=fu();ri.flags|=d,H.memoizedState=v4(1|m,{destroy:void 0},E,P===void 0?null:P)}function zE(d,m,E,P){var H=_o();P=P===void 0?null:P;var q=H.memoizedState.inst;Ha!==null&&P!==null&&AL(P,Ha.memoizedState.deps)?H.memoizedState=v4(m,q,E,P):(ri.flags|=d,H.memoizedState=v4(1|m,q,E,P))}function oX(d,m){GE(8390656,8,d,m)}function EL(d,m){zE(2048,8,d,m)}function x6e(d){ri.flags|=4;var m=ri.updateQueue;if(m===null)m=VE(),ri.updateQueue=m,m.events=[d];else{var E=m.events;E===null?m.events=[d]:E.push(d)}}function lX(d){var m=_o().memoizedState;return x6e({ref:m,nextImpl:d}),function(){if((pa&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}function cX(d,m){return zE(4,2,d,m)}function uX(d,m){return zE(4,4,d,m)}function fX(d,m){if(typeof m=="function"){d=d();var E=m(d);return function(){typeof E=="function"?E():m(null)}}if(m!=null)return d=d(),m.current=d,function(){m.current=null}}function dX(d,m,E){E=E!=null?E.concat([d]):null,zE(4,4,fX.bind(null,m,d),E)}function ML(){}function hX(d,m){var E=_o();m=m===void 0?null:m;var P=E.memoizedState;return m!==null&&AL(m,P[1])?P[0]:(E.memoizedState=[d,m],d)}function pX(d,m){var E=_o();m=m===void 0?null:m;var P=E.memoizedState;if(m!==null&&AL(m,P[1]))return P[0];
vendor: 4,036 bytes, line 8
8if(P=d(),Mx){Vt(!0);try{d()}finally{Vt(!1)}}return E.memoizedState=[P,m],P}function CL(d,m,E){return E===void 0||(om&1073741824)!==0&&(Di&261930)===0?d.memoizedState=m:(d.memoizedState=E,d=mQ(),ri.lanes|=d,tA|=d,E)}function mX(d,m,E,P){return lu(E,m)?E:Nr.current!==null?(d=CL(d,E,P),lu(d,m)||(Lo=!0),d):(om&42)===0||(om&1073741824)!==0&&(Di&261930)===0?(Lo=!0,d.memoizedState=E):(d=mQ(),ri.lanes|=d,tA|=d,m)}function AX(d,m,E,P,H){var q=K.p;K.p=q!==0&&8>q?q:8;var fe=X.T,Ce={};X.T=Ce,DL(d,!1,m,E);try{var et=H(),Ft=X.S;if(Ft!==null&&Ft(Ce,et),et!==null&&typeof et=="object"&&typeof et.then=="function"){var Jt=FE(et,P);J6(d,m,Jt,q0(d))}else J6(d,m,P,q0(d))}catch(cn){J6(d,m,{then:function(){},status:"rejected",reason:cn},q0())}finally{K.p=q,fe!==null&&Ce.types!==null&&(fe.types=Ce.types),X.T=fe}}function v6e(){}function NL(d,m,E,P){if(d.tag!==5)throw Error(r(476));var H=gX(d).queue;AX(d,H,m,se,E===null?v6e:function(){return xX(d),E(P)})}function gX(d){var m=d.memoizedState;if(m!==null)return m;m={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:se},next:null};var E={};return m.next={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:E},next:null},d.memoizedState=m,d=d.alternate,d!==null&&(d.memoizedState=m),m}function xX(d){var m=gX(d);m.next===null&&(m=d.alternate.memoizedState),J6(d,m.next.queue,{},q0())}function RL(){return al(Ab)}function vX(){return _o().memoizedState}function yX(){return _o().memoizedState}function y6e(d){for(var m=d.return;m!==null;){switch(m.tag){case 24:case 3:var E=q0();d=At(E);var P=Pt(m,d,E);P!==null&&(a0(P,m,E),Et(P,m,E)),m={cache:no()},d.payload=m;return}m=m.return}}function _6e(d,m,E){var P=q0();E={lane:P,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},$E(d)?bX(m,E):(E=z6(d,m,E,P),E!==null&&(a0(E,d,P),wX(E,m,P)))}function _X(d,m,E){var P=q0();J6(d,m,E,P)}function J6(d,m,E,P){var H={lane:P,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null};if($E(d))bX(m,H);else{var q=d.alternate;if(d.lanes===0&&(q===null||q.lanes===0)&&(q=m.lastRenderedReducer,q!==null))try{var fe=m.lastRenderedState,Ce=q(fe,E);if(H.hasEagerState=!0,H.eagerState=Ce,lu(Ce,fe))return o4(d,m,H,0),Ka===null&&s4(),!1}catch{}if(E=z6(d,m,H,P),E!==null)return a0(E,d,P),wX(E,m,P),!0}return!1}function DL(d,m,E,P){if(P={lane:2,revertLane:cO(),gesture:null,action:P,hasEagerState:!1,eagerState:null,next:null},$E(d)){if(m)throw Error(r(479))}else m=z6(d,E,P,2),m!==null&&a0(m,d,2)}function $E(d){var m=d.alternate;return d===ri||m!==null&&m===ri}function bX(d,m){g4=BE=!0;var E=d.pending;E===null?m.next=m:(m.next=E.next,E.next=m),d.pending=m}function wX(d,m,E){if((E&4194048)!==0){var P=m.lanes;P&=d.pendingLanes,E|=P,m.lanes=E,pt(d,E)}}var eb={readContext:al,use:jE,useCallback:ro,useContext:ro,useEffect:ro,useImperativeHandle:ro,useLayoutEffect:ro,useInsertionEffect:ro,useMemo:ro,useReducer:ro,useRef:ro,useState:ro,useDebugValue:ro,useDeferredValue:ro,useTransition:ro,useSyncExternalStore:ro,useId:ro,useHostTransitionStatus:ro,useFormState:ro,useActionState:ro,useOptimistic:ro,useMemoCache:ro,useCacheRefresh:ro};eb.useEffectEvent=ro;var SX={readContext:al,use:jE,useCallback:function(d,m){return fu().memoizedState=[d,m===void 0?null:m],d},useContext:al,useEffect:oX,useImperativeHandle:function(d,m,E){E=E!=null?E.concat([d]):null,GE(4194308,4,fX.bind(null,m,d),E)},useLayoutEffect:function(d,m){return GE(4194308,4,d,m)},useInsertionEffect:function(d,m){GE(4,2,d,m)},useMemo:function(d,m){var E=fu();m=m===void 0?null:m;var P=d();if(Mx){Vt(!0);try{d()}finally{Vt(!1)}}return E.memoizedState=[P,m],P},useReducer:function(d,m,E){var P=fu();if(E!==void 0){var H=E(m);if(Mx){Vt(!0);try{E(m)}finally{Vt(!1)}}}else H=m;return P.memoizedState=P.baseState=H,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:H},P.queue=d,d=d.dispatch=_6e.bind(null,ri,d),[P.memoizedState,d]}
vendor: 17,827 bytes, line 8
8,useRef:function(d){var m=fu();return d={current:d},m.memoizedState=d},useState:function(d){d=SL(d);var m=d.queue,E=_X.bind(null,ri,m);return m.dispatch=E,[d.memoizedState,E]},useDebugValue:ML,useDeferredValue:function(d,m){var E=fu();return CL(E,d,m)},useTransition:function(){var d=SL(!1);return d=AX.bind(null,ri,d.queue,!0,!1),fu().memoizedState=d,[!1,d]},useSyncExternalStore:function(d,m,E){var P=ri,H=fu();if(Ti){if(E===void 0)throw Error(r(407));E=E()}else{if(E=m(),Ka===null)throw Error(r(349));(Di&127)!==0||$Y(P,m,E)}H.memoizedState=E;var q={value:E,getSnapshot:m};return H.queue=q,oX(WY.bind(null,P,q,d),[d]),P.flags|=2048,v4(9,{destroy:void 0},qY.bind(null,P,q,E,m),null),E},useId:function(){var d=fu(),m=Ka.identifierPrefix;if(Ti){var E=Ju,P=Ku;E=(P&~(1<<32-Zt(P)-1)).toString(32)+E,m="_"+m+"R_"+E,E=UE++,0<E&&(m+="H"+E.toString(32)),m+="_"}else E=p6e++,m="_"+m+"r_"+E.toString(32)+"_";return d.memoizedState=m},useHostTransitionStatus:RL,useFormState:nX,useActionState:nX,useOptimistic:function(d){var m=fu();m.memoizedState=m.baseState=d;var E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=E,m=DL.bind(null,ri,!0,E),E.dispatch=m,[d,m]},useMemoCache:_L,useCacheRefresh:function(){return fu().memoizedState=y6e.bind(null,ri)},useEffectEvent:function(d){var m=fu(),E={impl:d};return m.memoizedState=E,function(){if((pa&2)!==0)throw Error(r(440));return E.impl.apply(void 0,arguments)}}},PL={readContext:al,use:jE,useCallback:hX,useContext:al,useEffect:EL,useImperativeHandle:dX,useInsertionEffect:cX,useLayoutEffect:uX,useMemo:pX,useReducer:HE,useRef:sX,useState:function(){return HE(lm)},useDebugValue:ML,useDeferredValue:function(d,m){var E=_o();return mX(E,Ha.memoizedState,d,m)},useTransition:function(){var d=HE(lm)[0],m=_o().memoizedState;return[typeof d=="boolean"?d:K6(d),m]},useSyncExternalStore:zY,useId:vX,useHostTransitionStatus:RL,useFormState:rX,useActionState:rX,useOptimistic:function(d,m){var E=_o();return XY(E,Ha,d,m)},useMemoCache:_L,useCacheRefresh:yX};PL.useEffectEvent=lX;var TX={readContext:al,use:jE,useCallback:hX,useContext:al,useEffect:EL,useImperativeHandle:dX,useInsertionEffect:cX,useLayoutEffect:uX,useMemo:pX,useReducer:wL,useRef:sX,useState:function(){return wL(lm)},useDebugValue:ML,useDeferredValue:function(d,m){var E=_o();return Ha===null?CL(E,d,m):mX(E,Ha.memoizedState,d,m)},useTransition:function(){var d=wL(lm)[0],m=_o().memoizedState;return[typeof d=="boolean"?d:K6(d),m]},useSyncExternalStore:zY,useId:vX,useHostTransitionStatus:RL,useFormState:aX,useActionState:aX,useOptimistic:function(d,m){var E=_o();return Ha!==null?XY(E,Ha,d,m):(E.baseState=d,[d,E.queue.dispatch])},useMemoCache:_L,useCacheRefresh:yX};TX.useEffectEvent=lX;function kL(d,m,E,P){m=d.memoizedState,E=E(P,m),E=E==null?m:f({},m,E),d.memoizedState=E,d.lanes===0&&(d.updateQueue.baseState=E)}var LL={enqueueSetState:function(d,m,E){d=d._reactInternals;var P=q0(),H=At(P);H.payload=m,E!=null&&(H.callback=E),m=Pt(d,H,P),m!==null&&(a0(m,d,P),Et(m,d,P))},enqueueReplaceState:function(d,m,E){d=d._reactInternals;var P=q0(),H=At(P);H.tag=1,H.payload=m,E!=null&&(H.callback=E),m=Pt(d,H,P),m!==null&&(a0(m,d,P),Et(m,d,P))},enqueueForceUpdate:function(d,m){d=d._reactInternals;var E=q0(),P=At(E);P.tag=2,m!=null&&(P.callback=m),m=Pt(d,P,E),m!==null&&(a0(m,d,E),Et(m,d,E))}};function EX(d,m,E,P,H,q,fe){return d=d.stateNode,typeof d.shouldComponentUpdate=="function"?d.shouldComponentUpdate(P,q,fe):m.prototype&&m.prototype.isPureReactComponent?!Dl(E,P)||!Dl(H,q):!0}function MX(d,m,E,P){d=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(E,P),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(E,P),m.state!==d&&LL.enqueueReplaceState(m,m.state,null)}function Cx(d,m){var E=m;if("ref"in m){E={};for(var P in m)P!=="ref"&&(E[P]=m[P])}if(d=d.defaultProps){E===m&&(E=f({},E));for(var H in d)E[H]===void 0&&(E[H]=d[H])}return E}function CX(d){Xp(d)}function NX(d){console.error(d)}function RX(d){Xp(d)}function qE(d,m){try{var E=d.onUncaughtError;E(m.value,{componentStack:m.stack})}catch(P){setTimeout(function(){throw P})}}function DX(d,m,E){try{var P=d.onCaughtError;P(E.value,{componentStack:E.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(H){setTimeout(function(){throw H})}}function OL(d,m,E){return E=At(E),E.tag=3,E.payload={element:null},E.callback=function(){qE(d,m)},E}function PX(d){return d=At(d),d.tag=3,d}function kX(d,m,E,P){var H=E.type.getDerivedStateFromError;if(typeof H=="function"){var q=P.value;d.payload=function(){return H(q)},d.callback=function(){DX(m,E,P)}}var fe=E.stateNode;fe!==null&&typeof fe.componentDidCatch=="function"&&(d.callback=function(){DX(m,E,P),typeof H!="function"&&(nA===null?nA=new Set([this]):nA.add(this));var Ce=P.stack;this.componentDidCatch(P.value,{componentStack:Ce!==null?Ce:""})})}function b6e(d,m,E,P,H){if(E.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){if(m=E.alternate,m!==null&&rm(m,E,H,!0),E=yr.current,E!==null){switch(E.tag){case 31:case 13:return ni===null?iM():E.alternate===null&&io===0&&(io=3),E.flags&=-257,E.flags|=65536,E.lanes=H,P===Ex?E.flags|=16384:(m=E.updateQueue,m===null?E.updateQueue=new Set([P]):m.add(P),sO(d,P,H)),!1;case 22:return E.flags|=65536,P===Ex?E.flags|=16384:(m=E.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([P])},E.updateQueue=m):(E=m.retryQueue,E===null?m.retryQueue=new Set([P]):E.add(P)),sO(d,P,H)),!1}throw Error(r(435,E.tag))}return sO(d,P,H),iM(),!1}if(Ti)return m=yr.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=H,P!==W6&&(d=Error(r(422),{cause:P}),Wd(Xu(d,E)))):(P!==W6&&(m=Error(r(423),{cause:P}),Wd(Xu(m,E))),d=d.current.alternate,d.flags|=65536,H&=-H,d.lanes|=H,P=Xu(P,E),H=OL(d.stateNode,P,H),bt(d,H),io!==4&&(io=2)),!1;var q=Error(r(520),{cause:P});if(q=Xu(q,E),lb===null?lb=[q]:lb.push(q),io!==4&&(io=2),m===null)return!0;P=Xu(P,E),E=m;do{switch(E.tag){case 3:return E.flags|=65536,d=H&-H,E.lanes|=d,d=OL(E.stateNode,P,d),bt(E,d),!1;case 1:if(m=E.type,q=E.stateNode,(E.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(nA===null||!nA.has(q))))return E.flags|=65536,H&=-H,E.lanes|=H,H=PX(H),kX(H,d,E,P),bt(E,H),!1}E=E.return}while(E!==null);return!1}var FL=Error(r(461)),Lo=!1;function Yl(d,m,E,P){m.child=d===null?Be(m,null,E,P):Ee(m,d.child,E,P)}function LX(d,m,E,P,H){E=E.render;var q=m.ref;if("ref"in P){var fe={};for(var Ce in P)Ce!=="ref"&&(fe[Ce]=P[Ce])}else fe=P;return im(m),P=gL(d,m,E,fe,q,H),Ce=xL(),d!==null&&!Lo?(vL(d,m,H),cm(d,m,H)):(Ti&&Ce&&d4(m),m.flags|=1,Yl(d,m,P,H),m.child)}function OX(d,m,E,P,H){if(d===null){var q=E.type;return typeof q=="function"&&!j0(q)&&q.defaultProps===void 0&&E.compare===null?(m.tag=15,m.type=q,FX(d,m,q,P,H)):(d=c4(E.type,null,P,m,m.mode,H),d.ref=m.ref,d.return=m,m.child=d)}if(q=d.child,!zL(d,H)){var fe=q.memoizedProps;if(E=E.compare,E=E!==null?E:Dl,E(fe,P)&&d.ref===m.ref)return cm(d,m,H)}return m.flags|=1,d=Uf(q,P),d.ref=m.ref,d.return=m,m.child=d}function FX(d,m,E,P,H){if(d!==null){var q=d.memoizedProps;if(Dl(q,P)&&d.ref===m.ref)if(Lo=!1,m.pendingProps=P=q,zL(d,H))(d.flags&131072)!==0&&(Lo=!0);else return m.lanes=d.lanes,cm(d,m,H)}return IL(d,m,E,P,H)}function IX(d,m,E,P){var H=P.children,q=d!==null?d.memoizedState:null;if(d===null&&m.stateNode===null&&(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),P.mode==="hidden"){if((m.flags&128)!==0){if(q=q!==null?q.baseLanes|E:E,d!==null){for(P=m.child=d.child,H=0;P!==null;)H=H|P.lanes|P.childLanes,P=P.sibling;P=H&~q}else P=0,m.child=null;return BX(d,m,q,E,P)}if((E&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},d!==null&&Sx(m,q!==null?q.cachePool:null),q!==null?Mr(m,q):Jn(),kl(m);else return P=m.lanes=536870912,BX(d,m,q!==null?q.baseLanes|E:E,E,P)}else q!==null?(Sx(m,q.cachePool),Mr(m,q),Jd(),m.memoizedState=null):(d!==null&&Sx(m,null),Jn(),Jd());return Yl(d,m,H,E),m.child}function tb(d,m){return d!==null&&d.tag===22||m.stateNode!==null||(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.sibling}function BX(d,m,E,P,H){var q=wx();return q=q===null?null:{parent:On._currentValue,pool:q},m.memoizedState={baseLanes:E,cachePool:q},d!==null&&Sx(m,null),Jn(),kl(m),d!==null&&rm(d,m,P,!0),m.childLanes=H,null}function WE(d,m){return m=YE({mode:m.mode,children:m.children},d.mode),m.ref=d.ref,d.child=m,m.return=d,m}function UX(d,m,E){return Ee(m,d.child,null,E),d=WE(m,m.pendingProps),d.flags|=2,G0(m),m.memoizedState=null,d}function w6e(d,m,E){var P=m.pendingProps,H=(m.flags&128)!==0;if(m.flags&=-129,d===null){if(Ti){if(P.mode==="hidden")return d=WE(m,P),m.lanes=536870912,tb(null,d);if(Xi(m),(d=Xa)?(d=QQ(d,e0),d=d!==null&&d.data==="&"?d:null,d!==null&&(m.memoizedState={dehydrated:d,treeContext:Qu!==null?{id:Ku,overflow:Ju}:null,retryLane:536870912,hydrationErrors:null},E=LE(d),E.return=m,m.child=E,il=m,Xa=null)):d=null,d===null)throw s1(m);return m.lanes=536870912,null}return WE(m,P)}var q=d.memoizedState;if(q!==null){var fe=q.dehydrated;if(Xi(m),H)if(m.flags&256)m.flags&=-257,m=UX(d,m,E);else if(m.memoizedState!==null)m.child=d.child,m.flags|=128,m=null;else throw Error(r(558));else if(Lo||rm(d,m,E,!1),H=(E&d.childLanes)!==0,Lo||H){if(P=Ka,P!==null&&(fe=Tt(P,E),fe!==0&&fe!==q.retryLane))throw q.retryLane=fe,Qp(d,fe),a0(P,d,fe),FL;iM(),m=UX(d,m,E)}else d=q.treeContext,Xa=$f(fe.nextSibling),il=m,Ti=!0,a1=null,e0=!1,d!==null&&OE(m,d),m=WE(m,P),m.flags|=4096;return m}return d=Uf(d.child,{mode:P.mode,children:P.children}),d.ref=m.ref,m.child=d,d.return=m,d}function ZE(d,m){var E=m.ref;if(E===null)d!==null&&d.ref!==null&&(m.flags|=4194816);else{if(typeof E!="function"&&typeof E!="object")throw Error(r(284));(d===null||d.ref!==E)&&(m.flags|=4194816)}}function IL(d,m,E,P,H){return im(m),E=gL(d,m,E,P,void 0,H),P=xL(),d!==null&&!Lo?(vL(d,m,H),cm(d,m,H)):(Ti&&P&&d4(m),m.flags|=1,Yl(d,m,E,H),m.child)}function VX(d,m,E,P,H,q){return im(m),m.updateQueue=null,E=GY(m,P,E,H),HY(d),P=xL(),d!==null&&!Lo?(vL(d,m,q),cm(d,m,q)):(Ti&&P&&d4(m),m.flags|=1,Yl(d,m,E,q),m.child)}function jX(d,m,E,P,H){if(im(m),m.stateNode===null){var q=Kp,fe=E.contextType;typeof fe=="object"&&fe!==null&&(q=al(fe)),q=new E(P,q),m.memoizedState=q.state!==null&&q.state!==void 0?q.state:null,q.updater=LL,m.stateNode=q,q._reactInternals=m,q=m.stateNode,q.props=P,q.state=m.memoizedState,q.refs={},Ue(m),fe=E.contextType,q.context=typeof fe=="object"&&fe!==null?al(fe):Kp,q.state=m.memoizedState,fe=E.getDerivedStateFromProps,typeof fe=="function"&&(kL(m,E,fe,P),q.state=m.memoizedState),typeof E.getDerivedStateFromProps=="function"||typeof q.getSnapshotBeforeUpdate=="function"||typeof q.UNSAFE_componentWillMount!="function"&&typeof q.componentWillMount!="function"||(fe=q.state,typeof q.componentWillMount=="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount=="function"&&q.UNSAFE_componentWillMount(),fe!==q.state&&LL.enqueueReplaceState(q,q.state,null),Yn(m,P,q,H),gn(),q.state=m.memoizedState),typeof q.componentDidMount=="function"&&(m.flags|=4194308),P=!0}else if(d===null){q=m.stateNode;var Ce=m.memoizedProps,et=Cx(E,Ce);q.props=et;var Ft=q.context,Jt=E.contextType;fe=Kp,typeof Jt=="object"&&Jt!==null&&(fe=al(Jt));var cn=E.getDerivedStateFromProps;Jt=typeof cn=="function"||typeof q.getSnapshotBeforeUpdate=="function",Ce=m.pendingProps!==Ce,Jt||typeof q.UNSAFE_componentWillReceiveProps!="function"&&typeof q.componentWillReceiveProps!="function"||(Ce||Ft!==fe)&&MX(m,q,P,fe),Oe=!1;var Ut=m.memoizedState;q.state=Ut,Yn(m,P,q,H),gn(),Ft=m.memoizedState,Ce||Ut!==Ft||Oe?(typeof cn=="function"&&(kL(m,E,cn,P),Ft=m.memoizedState),(et=Oe||EX(m,E,et,P,Ut,Ft,fe))?(Jt||typeof q.UNSAFE_componentWillMount!="function"&&typeof q.componentWillMount!="function"||(typeof q.componentWillMount=="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount=="function"&&q.UNSAFE_componentWillMount()),typeof q.componentDidMount=="function"&&(m.flags|=4194308)):(typeof q.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=P,m.memoizedState=Ft),q.props=P,q.state=Ft,q.context=fe,P=et):(typeof q.componentDidMount=="function"&&(m.flags|=4194308),P=!1)}else{q=m.stateNode,st(d,m),fe=m.memoizedProps,Jt=Cx(E,fe),q.props=Jt,cn=m.pendingProps,Ut=q.context,Ft=E.contextType,et=Kp,typeof Ft=="object"&&Ft!==null&&(et=al(Ft)),Ce=E.getDerivedStateFromProps,(Ft=typeof Ce=="function"||typeof q.getSnapshotBeforeUpdate=="function")||typeof q.UNSAFE_componentWillReceiveProps!="function"&&typeof q.componentWillReceiveProps!="function"||(fe!==cn||Ut!==et)&&MX(m,q,P,et),Oe=!1,Ut=m.memoizedState,q.state=Ut,Yn(m,P,q,H),gn();var $t=m.memoizedState;fe!==cn||Ut!==$t||Oe||d!==null&&d.dependencies!==null&&m4(d.dependencies)?(typeof Ce=="function"&&(kL(m,E,Ce,P),$t=m.memoizedState),(Jt=Oe||EX(m,E,Jt,P,Ut,$t,et)||d!==null&&d.dependencies!==null&&m4(d.dependencies))?(Ft||typeof q.UNSAFE_componentWillUpdate!="function"&&typeof q.componentWillUpdate!="function"||(typeof q.componentWillUpdate=="function"&&q.componentWillUpdate(P,$t,et),typeof q.UNSAFE_componentWillUpdate=="function"&&q.UNSAFE_componentWillUpdate(P,$t,et)),typeof q.componentDidUpdate=="function"&&(m.flags|=4),typeof q.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof q.componentDidUpdate!="function"||fe===d.memoizedProps&&Ut===d.memoizedState||(m.flags|=4),typeof q.getSnapshotBeforeUpdate!="function"||fe===d.memoizedProps&&Ut===d.memoizedState||(m.flags|=1024),m.memoizedProps=P,m.memoizedState=$t),q.props=P,q.state=$t,q.context=et,P=Jt):(typeof q.componentDidUpdate!="function"||fe===d.memoizedProps&&Ut===d.memoizedState||(m.flags|=4),typeof q.getSnapshotBeforeUpdate!="function"||fe===d.memoizedProps&&Ut===d.memoizedState||(m.flags|=1024),P=!1)}return q=P,ZE(d,m),P=(m.flags&128)!==0,q||P?(q=m.stateNode,E=P&&typeof E.getDerivedStateFromError!="function"?null:q.render(),m.flags|=1,d!==null&&P?(m.child=Ee(m,d.child,null,H),m.child=Ee(m,null,E,H)):Yl(d,m,E,H),m.memoizedState=q.state,d=m.child):d=cm(d,m,H),d}function HX(d,m,E,P){return tm(),m.flags|=256,Yl(d,m,E,P),m.child}var BL={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function UL(d){return{baseLanes:d,cachePool:Tx()}}function VL(d,m,E){return d=d!==null?d.childLanes&~E:0,m&&(d|=$0),d}function GX(d,m,E){var P=m.pendingProps,H=!1,q=(m.flags&128)!==0,fe;if((fe=q)||(fe=d!==null&&d.memoizedState===null?!1:(yo.current&2)!==0),fe&&(H=!0,m.flags&=-129),fe=(m.flags&32)!==0,m.flags&=-33,d===null){if(Ti){if(H?Cr(m):Jd(),(d=Xa)?(d=QQ(d,e0),d=d!==null&&d.data!=="&"?d:null,d!==null&&(m.memoizedState={dehydrated:d,treeContext:Qu!==null?{id:Ku,overflow:Ju}:null,retryLane:536870912,hydrationErrors:null},E=LE(d),E.return=m,m.child=E,il=m,Xa=null)):d=null,d===null)throw s1(m);return bO(d)?m.lanes=32:m.lanes=536870912,null}var Ce=P.children;return P=P.fallback,H?(Jd(),H=m.mode,Ce=YE({mode:"hidden",children:Ce},H),P=Jp(P,H,E,null),Ce.return=m,P.return=m,Ce.sibling=P,m.child=Ce,P=m.child,P.memoizedState=UL(E),P.childLanes=VL(d,fe,E),m.memoizedState=BL,tb(null,P)):(Cr(m),jL(m,Ce))}var et=d.memoizedState;if(et!==null&&(Ce=et.dehydrated,Ce!==null)){if(q)m.flags&256?(Cr(m),m.flags&=-257,m=HL(d,m,E)):m.memoizedState!==null?(Jd(),m.child=d.child,m.flags|=128,m=null):(Jd(),Ce=P.fallback,H=m.mode,P=YE({mode:"visible",children:P.children},H),Ce=Jp(Ce,H,E,null),Ce.flags|=2,P.return=m,Ce.return=m,P.sibling=Ce,m.child=P,Ee(m,d.child,null,E),P=m.child,P.memoizedState=UL(E),P.childLanes=VL(d,fe,E),m.memoizedState=BL,m=tb(null,P));else if(Cr(m),bO(Ce)){if(fe=Ce.nextSibling&&Ce.nextSibling.dataset,fe)var Ft=fe.dgst;fe=Ft,P=Error(r(419)),P.stack="",P.digest=fe,Wd({value:P,source:null,stack:null}),m=HL(d,m,E)}else if(Lo||rm(d,m,E,!1),fe=(E&d.childLanes)!==0,Lo||fe){if(fe=Ka,fe!==null&&(P=Tt(fe,E),P!==0&&P!==et.retryLane))throw et.retryLane=P,Qp(d,P),a0(fe,d,P),FL;_O(Ce)||iM(),m=HL(d,m,E)}else _O(Ce)?(m.flags|=192,m.child=d.child,m=null):(d=et.treeContext,Xa=$f(Ce.nextSibling),il=m,Ti=!0,a1=null,e0=!1,d!==null&&OE(m,d),m=jL(m,P.children),m.flags|=4096);return m}return H?(Jd(),Ce=P.fallback,H=m.mode,et=d.child,Ft=et.sibling,P=Uf(et,{mode:"hidden",children:P.children}),P.subtreeFlags=et.subtreeFlags&65011712,Ft!==null?Ce=Uf(Ft,Ce):(Ce=Jp(Ce,H,E,null),Ce.flags|=2),Ce.return=m,P.return=m,P.sibling=Ce,m.child=P,tb(null,P),P=m.child,Ce=d.child.memoizedState,Ce===null?Ce=UL(E):(H=Ce.cachePool,H!==null?(et=On._currentValue,H=H.parent!==et?{parent:et,pool:et}:H):H=Tx(),Ce={baseLanes:Ce.baseLanes|E,cachePool:H}),P.memoizedState=Ce,P.childLanes=VL(d,fe,E),m.memoizedState=BL,tb(d.child,P)):(Cr(m),E=d.child,d=E.sibling,E=Uf(E,{mode:"visible",children:P.children}),E.return=m,E.sibling=null,d!==null&&(fe=m.deletions,fe===null?(m.deletions=[d],m.flags|=16):fe.push(d)),m.child=E,m.memoizedState=null,E)}function jL(d,m){return m=YE({mode:"visible",children:m},d.mode),m.return=d,d.child=m}function YE(d,m){return d=Sc(22,d,null,m),d.lanes=0,d}function HL(d,m,E){return Ee(m,d.child,null,E),d=jL(m,m.pendingProps.children),d.flags|=2,m.memoizedState=null,d}function zX(d,m,E){d.lanes|=m;var P=d.alternate;P!==null&&(P.lanes|=m),h4(d.return,m,E)}function GL(d,m,E,P,H,q){var fe=d.memoizedState;fe===null?d.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:P,tail:E,tailMode:H,treeForkCount:q}:(fe.isBackwards=m,fe.rendering=null,fe.renderingStartTime=0,fe.last=P,fe.tail=E,fe.tailMode=H,fe.treeForkCount=q)}function $X(d,m,E){var P=m.pendingProps,H=P.revealOrder,q=P.tail;P=P.children;var fe=yo.current,Ce=(fe&2)!==0;if(Ce?(fe=fe&1|2,m.flags|=128):fe&=1,he(yo,fe),Yl(d,m,P,E),P=Ti?_x:0,!Ce&&d!==null&&(d.flags&128)!==0)e:for(d=m.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&zX(d,E,m);else if(d.tag===19)zX(d,E,m);
vendor: 4,658 bytes, line 8
8else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===m)break e;for(;d.sibling===null;){if(d.return===null||d.return===m)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}switch(H){case"forwards":for(E=m.child,H=null;E!==null;)d=E.alternate,d!==null&&IE(d)===null&&(H=E),E=E.sibling;E=H,E===null?(H=m.child,m.child=null):(H=E.sibling,E.sibling=null),GL(m,!1,H,E,q,P);break;case"backwards":case"unstable_legacy-backwards":for(E=null,H=m.child,m.child=null;H!==null;){if(d=H.alternate,d!==null&&IE(d)===null){m.child=H;break}d=H.sibling,H.sibling=E,E=H,H=d}GL(m,!0,E,null,q,P);break;case"together":GL(m,!1,null,null,void 0,P);break;default:m.memoizedState=null}return m.child}function cm(d,m,E){if(d!==null&&(m.dependencies=d.dependencies),tA|=m.lanes,(E&m.childLanes)===0)if(d!==null){if(rm(d,m,E,!1),(E&m.childLanes)===0)return null}else return null;if(d!==null&&m.child!==d.child)throw Error(r(153));if(m.child!==null){for(d=m.child,E=Uf(d,d.pendingProps),m.child=E,E.return=m;d.sibling!==null;)d=d.sibling,E=E.sibling=Uf(d,d.pendingProps),E.return=m;E.sibling=null}return m.child}function zL(d,m){return(d.lanes&m)!==0?!0:(d=d.dependencies,!!(d!==null&&m4(d)))}function S6e(d,m,E){switch(m.tag){case 3:Re(m,m.stateNode.containerInfo),Yd(m,On,d.memoizedState.cache),tm();break;case 27:case 5:Fe(m);break;case 4:Re(m,m.stateNode.containerInfo);break;case 10:Yd(m,m.type,m.memoizedProps.value);break;case 31:if(m.memoizedState!==null)return m.flags|=128,Xi(m),null;break;case 13:var P=m.memoizedState;if(P!==null)return P.dehydrated!==null?(Cr(m),m.flags|=128,null):(E&m.child.childLanes)!==0?GX(d,m,E):(Cr(m),d=cm(d,m,E),d!==null?d.sibling:null);Cr(m);break;case 19:var H=(d.flags&128)!==0;if(P=(E&m.childLanes)!==0,P||(rm(d,m,E,!1),P=(E&m.childLanes)!==0),H){if(P)return $X(d,m,E);m.flags|=128}if(H=m.memoizedState,H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),he(yo,yo.current),P)break;return null;case 22:return m.lanes=0,IX(d,m,E,m.pendingProps);case 24:Yd(m,On,d.memoizedState.cache)}return cm(d,m,E)}function qX(d,m,E){if(d!==null)if(d.memoizedProps!==m.pendingProps)Lo=!0;else{if(!zL(d,E)&&(m.flags&128)===0)return Lo=!1,S6e(d,m,E);Lo=(d.flags&131072)!==0}else Lo=!1,Ti&&(m.flags&1048576)!==0&&bx(m,_x,m.index);switch(m.lanes=0,m.tag){case 16:e:{var P=m.pendingProps;if(d=y(m.elementType),m.type=d,typeof d=="function")j0(d)?(P=Cx(d,P),m.tag=1,m=jX(null,m,d,P,E)):(m.tag=0,m=IL(null,m,d,P,E));else{if(d!=null){var H=d.$$typeof;if(H===D){m.tag=11,m=LX(null,m,d,P,E);break e}else if(H===L){m.tag=14,m=OX(null,m,d,P,E);break e}}throw m=ee(d)||d,Error(r(306,m,""))}}return m;case 0:return IL(d,m,m.type,m.pendingProps,E);case 1:return P=m.type,H=Cx(P,m.pendingProps),jX(d,m,P,H,E);case 3:e:{if(Re(m,m.stateNode.containerInfo),d===null)throw Error(r(387));P=m.pendingProps;var q=m.memoizedState;H=q.element,st(d,m),Yn(m,P,null,E);var fe=m.memoizedState;if(P=fe.cache,Yd(m,On,P),P!==q.cache&&p4(m,[On],E,!0),gn(),P=fe.element,q.isDehydrated)if(q={element:P,isDehydrated:!1,cache:fe.cache},m.updateQueue.baseState=q,m.memoizedState=q,m.flags&256){m=HX(d,m,P,E);break e}else if(P!==H){H=Xu(Error(r(424)),m),Wd(H),m=HX(d,m,P,E);break e}else for(d=m.stateNode.containerInfo,d.nodeType===9?d=d.body:d=d.nodeName==="HTML"?d.ownerDocument.body:d,Xa=$f(d.firstChild),il=m,Ti=!0,a1=null,e0=!0,E=Be(m,null,P,E),m.child=E;E;)E.flags=E.flags&-3|4096,E=E.sibling;else{if(tm(),P===H){m=cm(d,m,E);break e}Yl(d,m,P,E)}m=m.child}return m;case 26:return ZE(d,m),d===null?(E=rK(m.type,null,m.pendingProps,null))?m.memoizedState=E:Ti||(E=m.type,d=m.pendingProps,P=fM(Ae.current).createElement(E),P[be]=m,P[xe]=d,Xl(P,E,d),sn(P),m.stateNode=P):m.memoizedState=rK(m.type,d.memoizedProps,m.pendingProps,d.memoizedState),null;case 27:return Fe(m),d===null&&Ti&&(P=m.stateNode=eK(m.type,m.pendingProps,Ae.current),il=m,e0=!0,H=Xa,sA(m.type)?(wO=H,Xa=$f(P.firstChild)):Xa=H),Yl(d,m,m.pendingProps.children,E),ZE(d,m),d===null&&(m.flags|=4194304),m.child;case 5:return d===null&&Ti&&((H=P=Xa)&&(P=ebe(P,m.type,m.pendingProps,e0),P!==null?(m.stateNode=P,il=m,Xa=$f(P.firstChild),e0=!1,H=!0):H=!1),H||s1(m)),Fe(m),H=m.type,q=m.pendingProps,fe=d!==null?d.memoizedProps:null,P=q.children,xO(H,q)?P=null:fe!==null&&xO(H,fe)&&(m.flags|=32),m.memoizedState!==null&&(H=gL(d,m,m6e,null,null,E),Ab._currentValue=H),ZE(d,m),Yl(d,m,P,E),m.child;case 6:return d===null&&Ti&&((d=E=Xa)&&(E=tbe(E,m.pendingProps,e0),E!==null?(m.stateNode=E,il=m,Xa=null,d=!0):d=!1),d||s1(m)),null;case 13:return GX(d,m,E);case 4:return Re(m,m.stateNode.containerInfo),P=m.pendingProps,d===null?m.child=Ee(m,null,P,E):Yl(d,m,P,E),m.child;case 11:return LX(d,m,m.type,m.pendingProps,E);
vendor: 4,546 bytes, line 8
8case 7:return Yl(d,m,m.pendingProps,E),m.child;case 8:return Yl(d,m,m.pendingProps.children,E),m.child;case 12:return Yl(d,m,m.pendingProps.children,E),m.child;case 10:return P=m.pendingProps,Yd(m,m.type,P.value),Yl(d,m,P.children,E),m.child;case 9:return H=m.type._context,P=m.pendingProps.children,im(m),H=al(H),P=P(H),m.flags|=1,Yl(d,m,P,E),m.child;case 14:return OX(d,m,m.type,m.pendingProps,E);case 15:return FX(d,m,m.type,m.pendingProps,E);case 19:return $X(d,m,E);case 31:return w6e(d,m,E);case 22:return IX(d,m,E,m.pendingProps);case 24:return im(m),P=al(On),d===null?(H=wx(),H===null&&(H=Ka,q=no(),H.pooledCache=q,q.refCount++,q!==null&&(H.pooledCacheLanes|=E),H=q),m.memoizedState={parent:P,cache:H},Ue(m),Yd(m,On,H)):((d.lanes&E)!==0&&(st(d,m),Yn(m,null,null,E),gn()),H=d.memoizedState,q=m.memoizedState,H.parent!==P?(H={parent:P,cache:P},m.memoizedState=H,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=H),Yd(m,On,P)):(P=q.cache,Yd(m,On,P),P!==H.cache&&p4(m,[On],E,!0))),Yl(d,m,m.pendingProps.children,E),m.child;case 29:throw m.pendingProps}throw Error(r(156,m.tag))}function um(d){d.flags|=4}function $L(d,m,E,P,H){if((m=(d.mode&32)!==0)&&(m=!1),m){if(d.flags|=16777216,(H&335544128)===H)if(d.stateNode.complete)d.flags|=8192;else if(vQ())d.flags|=8192;else throw S=Ex,o1}else d.flags&=-16777217}function WX(d,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)d.flags&=-16777217;else if(d.flags|=16777216,!lK(m))if(vQ())d.flags|=8192;else throw S=Ex,o1}function XE(d,m){m!==null&&(d.flags|=4),d.flags&16384&&(m=d.tag!==22?Lt():536870912,d.lanes|=m,w4|=m)}function nb(d,m){if(!Ti)switch(d.tailMode){case"hidden":m=d.tail;for(var E=null;m!==null;)m.alternate!==null&&(E=m),m=m.sibling;E===null?d.tail=null:E.sibling=null;break;case"collapsed":E=d.tail;for(var P=null;E!==null;)E.alternate!==null&&(P=E),E=E.sibling;P===null?m||d.tail===null?d.tail=null:d.tail.sibling=null:P.sibling=null}}function ds(d){var m=d.alternate!==null&&d.alternate.child===d.child,E=0,P=0;if(m)for(var H=d.child;H!==null;)E|=H.lanes|H.childLanes,P|=H.subtreeFlags&65011712,P|=H.flags&65011712,H.return=d,H=H.sibling;else for(H=d.child;H!==null;)E|=H.lanes|H.childLanes,P|=H.subtreeFlags,P|=H.flags,H.return=d,H=H.sibling;return d.subtreeFlags|=P,d.childLanes=E,m}function T6e(d,m,E){var P=m.pendingProps;switch(q6(m),m.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ds(m),null;case 1:return ds(m),null;case 3:return E=m.stateNode,P=null,d!==null&&(P=d.memoizedState.cache),m.memoizedState.cache!==P&&(m.flags|=2048),Hf(On),Ne(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(d===null||d.child===null)&&(Qa(m)?um(m):d===null||d.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,X6())),ds(m),null;case 26:var H=m.type,q=m.memoizedState;return d===null?(um(m),q!==null?(ds(m),WX(m,q)):(ds(m),$L(m,H,null,P,E))):q?q!==d.memoizedState?(um(m),ds(m),WX(m,q)):(ds(m),m.flags&=-16777217):(d=d.memoizedProps,d!==P&&um(m),ds(m),$L(m,H,d,P,E)),null;case 27:if(Qe(m),E=Ae.current,H=m.type,d!==null&&m.stateNode!=null)d.memoizedProps!==P&&um(m);else{if(!P){if(m.stateNode===null)throw Error(r(166));return ds(m),null}d=me.current,Qa(m)?Z6(m):(d=eK(H,P,E),m.stateNode=d,um(m))}return ds(m),null;case 5:if(Qe(m),H=m.type,d!==null&&m.stateNode!=null)d.memoizedProps!==P&&um(m);else{if(!P){if(m.stateNode===null)throw Error(r(166));return ds(m),null}if(q=me.current,Qa(m))Z6(m);else{var fe=fM(Ae.current);switch(q){case 1:q=fe.createElementNS("http://www.w3.org/2000/svg",H);break;case 2:q=fe.createElementNS("http://www.w3.org/1998/Math/MathML",H);break;default:switch(H){case"svg":q=fe.createElementNS("http://www.w3.org/2000/svg",H);break;case"math":q=fe.createElementNS("http://www.w3.org/1998/Math/MathML",H);break;case"script":q=fe.createElement("div"),q.innerHTML="<script><\/script>",q=q.removeChild(q.firstChild);break;case"select":q=typeof P.is=="string"?fe.createElement("select",{is:P.is}):fe.createElement("select"),P.multiple?q.multiple=!0:P.size&&(q.size=P.size);break;default:q=typeof P.is=="string"?fe.createElement(H,{is:P.is}):fe.createElement(H)}}q[be]=m,q[xe]=P;e:for(fe=m.child;fe!==null;){if(fe.tag===5||fe.tag===6)q.appendChild(fe.stateNode);else if(fe.tag!==4&&fe.tag!==27&&fe.child!==null){fe.child.return=fe,fe=fe.child;continue}if(fe===m)break e;for(;fe.sibling===null;){if(fe.return===null||fe.return===m)break e;fe=fe.return}fe.sibling.return=fe.return,fe=fe.sibling}m.stateNode=q;e:switch(Xl(q,H,P),H){case"button":case"input":case"select":case"textarea":P=!!P.autoF
vendor: 22,554 bytes, line 8
8ocus;break e;case"img":P=!0;break e;default:P=!1}P&&um(m)}}return ds(m),$L(m,m.type,d===null?null:d.memoizedProps,m.pendingProps,E),null;case 6:if(d&&m.stateNode!=null)d.memoizedProps!==P&&um(m);else{if(typeof P!="string"&&m.stateNode===null)throw Error(r(166));if(d=Ae.current,Qa(m)){if(d=m.stateNode,E=m.memoizedProps,P=null,H=il,H!==null)switch(H.tag){case 27:case 5:P=H.memoizedProps}d[be]=m,d=!!(d.nodeValue===E||P!==null&&P.suppressHydrationWarning===!0||GQ(d.nodeValue,E)),d||s1(m,!0)}else d=fM(d).createTextNode(P),d[be]=m,m.stateNode=d}return ds(m),null;case 31:if(E=m.memoizedState,d===null||d.memoizedState!==null){if(P=Qa(m),E!==null){if(d===null){if(!P)throw Error(r(318));if(d=m.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(557));d[be]=m}else tm(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;ds(m),d=!1}else E=X6(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=E),d=!0;if(!d)return m.flags&256?(G0(m),m):(G0(m),null);if((m.flags&128)!==0)throw Error(r(558))}return ds(m),null;case 13:if(P=m.memoizedState,d===null||d.memoizedState!==null&&d.memoizedState.dehydrated!==null){if(H=Qa(m),P!==null&&P.dehydrated!==null){if(d===null){if(!H)throw Error(r(318));if(H=m.memoizedState,H=H!==null?H.dehydrated:null,!H)throw Error(r(317));H[be]=m}else tm(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;ds(m),H=!1}else H=X6(),d!==null&&d.memoizedState!==null&&(d.memoizedState.hydrationErrors=H),H=!0;if(!H)return m.flags&256?(G0(m),m):(G0(m),null)}return G0(m),(m.flags&128)!==0?(m.lanes=E,m):(E=P!==null,d=d!==null&&d.memoizedState!==null,E&&(P=m.child,H=null,P.alternate!==null&&P.alternate.memoizedState!==null&&P.alternate.memoizedState.cachePool!==null&&(H=P.alternate.memoizedState.cachePool.pool),q=null,P.memoizedState!==null&&P.memoizedState.cachePool!==null&&(q=P.memoizedState.cachePool.pool),q!==H&&(P.flags|=2048)),E!==d&&E&&(m.child.flags|=8192),XE(m,m.updateQueue),ds(m),null);case 4:return Ne(),d===null&&hO(m.stateNode.containerInfo),ds(m),null;case 10:return Hf(m.type),ds(m),null;case 19:if(te(yo),P=m.memoizedState,P===null)return ds(m),null;if(H=(m.flags&128)!==0,q=P.rendering,q===null)if(H)nb(P,!1);else{if(io!==0||d!==null&&(d.flags&128)!==0)for(d=m.child;d!==null;){if(q=IE(d),q!==null){for(m.flags|=128,nb(P,!1),d=q.updateQueue,m.updateQueue=d,XE(m,d),m.subtreeFlags=0,d=E,E=m.child;E!==null;)kE(E,d),E=E.sibling;return he(yo,yo.current&1|2),Ti&&jf(m,P.treeForkCount),m.child}d=d.sibling}P.tail!==null&&nt()>tM&&(m.flags|=128,H=!0,nb(P,!1),m.lanes=4194304)}else{if(!H)if(d=IE(q),d!==null){if(m.flags|=128,H=!0,d=d.updateQueue,m.updateQueue=d,XE(m,d),nb(P,!0),P.tail===null&&P.tailMode==="hidden"&&!q.alternate&&!Ti)return ds(m),null}else 2*nt()-P.renderingStartTime>tM&&E!==536870912&&(m.flags|=128,H=!0,nb(P,!1),m.lanes=4194304);P.isBackwards?(q.sibling=m.child,m.child=q):(d=P.last,d!==null?d.sibling=q:m.child=q,P.last=q)}return P.tail!==null?(d=P.tail,P.rendering=d,P.tail=d.sibling,P.renderingStartTime=nt(),d.sibling=null,E=yo.current,he(yo,H?E&1|2:E&1),Ti&&jf(m,P.treeForkCount),d):(ds(m),null);case 22:case 23:return G0(m),xn(),P=m.memoizedState!==null,d!==null?d.memoizedState!==null!==P&&(m.flags|=8192):P&&(m.flags|=8192),P?(E&536870912)!==0&&(m.flags&128)===0&&(ds(m),m.subtreeFlags&6&&(m.flags|=8192)):ds(m),E=m.updateQueue,E!==null&&XE(m,E.retryQueue),E=null,d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(E=d.memoizedState.cachePool.pool),P=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(P=m.memoizedState.cachePool.pool),P!==E&&(m.flags|=2048),d!==null&&te(mn),null;case 24:return E=null,d!==null&&(E=d.memoizedState.cache),m.memoizedState.cache!==E&&(m.flags|=2048),Hf(On),ds(m),null;case 25:return null;case 30:return null}throw Error(r(156,m.tag))}function E6e(d,m){switch(q6(m),m.tag){case 1:return d=m.flags,d&65536?(m.flags=d&-65537|128,m):null;case 3:return Hf(On),Ne(),d=m.flags,(d&65536)!==0&&(d&128)===0?(m.flags=d&-65537|128,m):null;case 26:case 27:case 5:return Qe(m),null;case 31:if(m.memoizedState!==null){if(G0(m),m.alternate===null)throw Error(r(340));tm()}return d=m.flags,d&65536?(m.flags=d&-65537|128,m):null;case 13:if(G0(m),d=m.memoizedState,d!==null&&d.dehydrated!==null){if(m.alternate===null)throw Error(r(340));tm()}return d=m.flags,d&65536?(m.flags=d&-65537|128,m):null;case 19:return te(yo),null;case 4:return Ne(),null;case 10:return Hf(m.type),null;case 22:case 23:return G0(m),xn(),d!==null&&te(mn),d=m.flags,d&65536?(m.flags=d&-65537|128,m):null;case 24:return Hf(On),null;case 25:return null;default:return null}}function ZX(d,m){switch(q6(m),m.tag){case 3:Hf(On),Ne();break;case 26:case 27:case 5:Qe(m);break;case 4:Ne();break;case 31:m.memoizedState!==null&&G0(m);break;case 13:G0(m);break;case 19:te(yo);break;case 10:Hf(m.type);break;case 22:case 23:G0(m),xn(),d!==null&&te(mn);break;case 24:Hf(On)}}function rb(d,m){try{var E=m.updateQueue,P=E!==null?E.lastEffect:null;if(P!==null){var H=P.next;E=H;do{if((E.tag&d)===d){P=void 0;var q=E.create,fe=E.inst;P=q(),fe.destroy=P}E=E.next}while(E!==H)}}catch(Ce){Da(m,m.return,Ce)}}function J2(d,m,E){try{var P=m.updateQueue,H=P!==null?P.lastEffect:null;if(H!==null){var q=H.next;P=q;do{if((P.tag&d)===d){var fe=P.inst,Ce=fe.destroy;if(Ce!==void 0){fe.destroy=void 0,H=m;var et=E,Ft=Ce;try{Ft()}catch(Jt){Da(H,et,Jt)}}}P=P.next}while(P!==q)}}catch(Jt){Da(m,m.return,Jt)}}function YX(d){var m=d.updateQueue;if(m!==null){var E=d.stateNode;try{Ir(m,E)}catch(P){Da(d,d.return,P)}}}function XX(d,m,E){E.props=Cx(d.type,d.memoizedProps),E.state=d.memoizedState;try{E.componentWillUnmount()}catch(P){Da(d,m,P)}}function ib(d,m){try{var E=d.ref;if(E!==null){switch(d.tag){case 26:case 27:case 5:var P=d.stateNode;break;case 30:P=d.stateNode;break;default:P=d.stateNode}typeof E=="function"?d.refCleanup=E(P):E.current=P}}catch(H){Da(d,m,H)}}function l1(d,m){var E=d.ref,P=d.refCleanup;if(E!==null)if(typeof P=="function")try{P()}catch(H){Da(d,m,H)}finally{d.refCleanup=null,d=d.alternate,d!=null&&(d.refCleanup=null)}else if(typeof E=="function")try{E(null)}catch(H){Da(d,m,H)}else E.current=null}function QX(d){var m=d.type,E=d.memoizedProps,P=d.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":E.autoFocus&&P.focus();break e;case"img":E.src?P.src=E.src:E.srcSet&&(P.srcset=E.srcSet)}}catch(H){Da(d,d.return,H)}}function qL(d,m,E){try{var P=d.stateNode;Z6e(P,d.type,E,m),P[xe]=m}catch(H){Da(d,d.return,H)}}function KX(d){return d.tag===5||d.tag===3||d.tag===26||d.tag===27&&sA(d.type)||d.tag===4}function WL(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||KX(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.tag===27&&sA(d.type)||d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function ZL(d,m,E){var P=d.tag;if(P===5||P===6)d=d.stateNode,m?(E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E).insertBefore(d,m):(m=E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E,m.appendChild(d),E=E._reactRootContainer,E!=null||m.onclick!==null||(m.onclick=nl));else if(P!==4&&(P===27&&sA(d.type)&&(E=d.stateNode,m=null),d=d.child,d!==null))for(ZL(d,m,E),d=d.sibling;d!==null;)ZL(d,m,E),d=d.sibling}function QE(d,m,E){var P=d.tag;if(P===5||P===6)d=d.stateNode,m?E.insertBefore(d,m):E.appendChild(d);else if(P!==4&&(P===27&&sA(d.type)&&(E=d.stateNode),d=d.child,d!==null))for(QE(d,m,E),d=d.sibling;d!==null;)QE(d,m,E),d=d.sibling}function JX(d){var m=d.stateNode,E=d.memoizedProps;try{for(var P=d.type,H=m.attributes;H.length;)m.removeAttributeNode(H[0]);Xl(m,P,E),m[be]=d,m[xe]=E}catch(q){Da(d,d.return,q)}}var fm=!1,Oo=!1,YL=!1,eQ=typeof WeakSet=="function"?WeakSet:Set,Ll=null;function M6e(d,m){if(d=d.containerInfo,AO=xM,d=n1(d),r1(d)){if("selectionStart"in d)var E={start:d.selectionStart,end:d.selectionEnd};else e:{E=(E=d.ownerDocument)&&E.defaultView||window;var P=E.getSelection&&E.getSelection();if(P&&P.rangeCount!==0){E=P.anchorNode;var H=P.anchorOffset,q=P.focusNode;P=P.focusOffset;try{E.nodeType,q.nodeType}catch{E=null;break e}var fe=0,Ce=-1,et=-1,Ft=0,Jt=0,cn=d,Ut=null;t:for(;;){for(var $t;cn!==E||H!==0&&cn.nodeType!==3||(Ce=fe+H),cn!==q||P!==0&&cn.nodeType!==3||(et=fe+P),cn.nodeType===3&&(fe+=cn.nodeValue.length),($t=cn.firstChild)!==null;)Ut=cn,cn=$t;for(;;){if(cn===d)break t;if(Ut===E&&++Ft===H&&(Ce=fe),Ut===q&&++Jt===P&&(et=fe),($t=cn.nextSibling)!==null)break;cn=Ut,Ut=cn.parentNode}cn=$t}E=Ce===-1||et===-1?null:{start:Ce,end:et}}else E=null}E=E||{start:0,end:0}}else E=null;for(gO={focusedElem:d,selectionRange:E},xM=!1,Ll=m;Ll!==null;)if(m=Ll,d=m.child,(m.subtreeFlags&1028)!==0&&d!==null)d.return=m,Ll=d;else for(;Ll!==null;){switch(m=Ll,q=m.alternate,d=m.flags,m.tag){case 0:if((d&4)!==0&&(d=m.updateQueue,d=d!==null?d.events:null,d!==null))for(E=0;E<d.length;E++)H=d[E],H.ref.impl=H.nextImpl;break;case 11:case 15:break;case 1:if((d&1024)!==0&&q!==null){d=void 0,E=m,H=q.memoizedProps,q=q.memoizedState,P=E.stateNode;try{var tr=Cx(E.type,H);d=P.getSnapshotBeforeUpdate(tr,q),P.__reactInternalSnapshotBeforeUpdate=d}catch(Or){Da(E,E.return,Or)}}break;case 3:if((d&1024)!==0){if(d=m.stateNode.containerInfo,E=d.nodeType,E===9)yO(d);else if(E===1)switch(d.nodeName){case"HEAD":case"HTML":case"BODY":yO(d);break;default:d.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error(r(163))}if(d=m.sibling,d!==null){d.return=m.return,Ll=d;break}Ll=m.return}}function tQ(d,m,E){var P=E.flags;switch(E.tag){case 0:case 11:case 15:hm(d,E),P&4&&rb(5,E);break;case 1:if(hm(d,E),P&4)if(d=E.stateNode,m===null)try{d.componentDidMount()}catch(fe){Da(E,E.return,fe)}else{var H=Cx(E.type,m.memoizedProps);m=m.memoizedState;try{d.componentDidUpdate(H,m,d.__reactInternalSnapshotBeforeUpdate)}catch(fe){Da(E,E.return,fe)}}P&64&&YX(E),P&512&&ib(E,E.return);break;case 3:if(hm(d,E),P&64&&(d=E.updateQueue,d!==null)){if(m=null,E.child!==null)switch(E.child.tag){case 27:case 5:m=E.child.stateNode;break;case 1:m=E.child.stateNode}try{Ir(d,m)}catch(fe){Da(E,E.return,fe)}}break;case 27:m===null&&P&4&&JX(E);case 26:case 5:hm(d,E),m===null&&P&4&&QX(E),P&512&&ib(E,E.return);break;case 12:hm(d,E);break;case 31:hm(d,E),P&4&&iQ(d,E);break;case 13:hm(d,E),P&4&&aQ(d,E),P&64&&(d=E.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&(E=F6e.bind(null,E),nbe(d,E))));break;case 22:if(P=E.memoizedState!==null||fm,!P){m=m!==null&&m.memoizedState!==null||Oo,H=fm;var q=Oo;fm=P,(Oo=m)&&!q?pm(d,E,(E.subtreeFlags&8772)!==0):hm(d,E),fm=H,Oo=q}break;case 30:break;default:hm(d,E)}}function nQ(d){var m=d.alternate;m!==null&&(d.alternate=null,nQ(m)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(m=d.stateNode,m!==null&&Rt(m)),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}var Ns=null,t0=!1;function dm(d,m,E){for(E=E.child;E!==null;)rQ(d,m,E),E=E.sibling}function rQ(d,m,E){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ut,E)}catch{}switch(E.tag){case 26:Oo||l1(E,m),dm(d,m,E),E.memoizedState?E.memoizedState.count--:E.stateNode&&(E=E.stateNode,E.parentNode.removeChild(E));break;case 27:Oo||l1(E,m);var P=Ns,H=t0;sA(E.type)&&(Ns=E.stateNode,t0=!1),dm(d,m,E),hb(E.stateNode),Ns=P,t0=H;break;case 5:Oo||l1(E,m);case 6:if(P=Ns,H=t0,Ns=null,dm(d,m,E),Ns=P,t0=H,Ns!==null)if(t0)try{(Ns.nodeType===9?Ns.body:Ns.nodeName==="HTML"?Ns.ownerDocument.body:Ns).removeChild(E.stateNode)}catch(q){Da(E,m,q)}else try{Ns.removeChild(E.stateNode)}catch(q){Da(E,m,q)}break;case 18:Ns!==null&&(t0?(d=Ns,YQ(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,E.stateNode),D4(d)):YQ(Ns,E.stateNode));break;case 4:P=Ns,H=t0,Ns=E.stateNode.containerInfo,t0=!0,dm(d,m,E),Ns=P,t0=H;break;case 0:case 11:case 14:case 15:J2(2,E,m),Oo||J2(4,E,m),dm(d,m,E);break;case 1:Oo||(l1(E,m),P=E.stateNode,typeof P.componentWillUnmount=="function"&&XX(E,m,P)),dm(d,m,E);break;case 21:dm(d,m,E);break;case 22:Oo=(P=Oo)||E.memoizedState!==null,dm(d,m,E),Oo=P;break;default:dm(d,m,E)}}function iQ(d,m){if(m.memoizedState===null&&(d=m.alternate,d!==null&&(d=d.memoizedState,d!==null))){d=d.dehydrated;try{D4(d)}catch(E){Da(m,m.return,E)}}}function aQ(d,m){if(m.memoizedState===null&&(d=m.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null))))try{D4(d)}catch(E){Da(m,m.return,E)}}function C6e(d){switch(d.tag){case 31:case 13:case 19:var m=d.stateNode;return m===null&&(m=d.stateNode=new eQ),m;case 22:return d=d.stateNode,m=d._retryCache,m===null&&(m=d._retryCache=new eQ),m;default:throw Error(r(435,d.tag))}}function KE(d,m){var E=C6e(d);m.forEach(function(P){if(!E.has(P)){E.add(P);var H=I6e.bind(null,d,P);P.then(H,H)}})}function n0(d,m){var E=m.deletions;if(E!==null)for(var P=0;P<E.length;P++){var H=E[P],q=d,fe=m,Ce=fe;e:for(;Ce!==null;){switch(Ce.tag){case 27:if(sA(Ce.type)){Ns=Ce.stateNode,t0=!1;break e}break;case 5:Ns=Ce.stateNode,t0=!1;break e;case 3:case 4:Ns=Ce.stateNode.containerInfo,t0=!0;break e}Ce=Ce.return}if(Ns===null)throw Error(r(160));rQ(q,fe,H),Ns=null,t0=!1,q=H.alternate,q!==null&&(q.return=null),H.return=null}if(m.subtreeFlags&13886)for(m=m.child;m!==null;)sQ(m,d),m=m.sibling}var eh=null;function sQ(d,m){var E=d.alternate,P=d.flags;switch(d.tag){case 0:case 11:case 14:case 15:n0(m,d),r0(d),P&4&&(J2(3,d,d.return),rb(3,d),J2(5,d,d.return));break;case 1:n0(m,d),r0(d),P&512&&(Oo||E===null||l1(E,E.return)),P&64&&fm&&(d=d.updateQueue,d!==null&&(P=d.callbacks,P!==null&&(E=d.shared.hiddenCallbacks,d.shared.hiddenCallbacks=E===null?P:E.concat(P))));break;case 26:var H=eh;if(n0(m,d),r0(d),P&512&&(Oo||E===null||l1(E,E.return)),P&4){var q=E!==null?E.memoizedState:null;if(P=d.memoizedState,E===null)if(P===null)if(d.stateNode===null){e:{P=d.type,E=d.memoizedProps,H=H.ownerDocument||H;t:switch(P){case"title":q=H.getElementsByTagName("title")[0],(!q||q[rt]||q[be]||q.namespaceURI==="http://www.w3.org/2000/svg"||q.hasAttribute("itemprop"))&&(q=H.createElement(P),H.head.insertBefore(q,H.querySelector("head > title"))),Xl(q,P,E),q[be]=d,sn(q),P=q;break e;case"link":var fe=sK("link","href",H).get(P+(E.href||""));if(fe){for(var Ce=0;Ce<fe.length;Ce++)if(q=fe[Ce],q.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&q.getAttribute("rel")===(E.rel==null?null:E.rel)&&q.getAttribute("title")===(E.title==null?null:E.title)&&q.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){fe.splice(Ce,1);break t}}q=H.createElement(P),Xl(q,P,E),H.head.appendChild(q);break;case"meta":if(fe=sK("meta","content",H).get(P+(E.content||""))){for(Ce=0;Ce<fe.length;Ce++)if(q=fe[Ce],q.getAttribute("content")===(E.content==null?null:""+E.content)&&q.getAttribute("name")===(E.name==null?null:E.name)&&q.getAttribute("property")===(E.property==null?null:E.property)&&q.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&q.getAttribute("charset")===(E.charSet==null?null:E.charSet)){fe.splice(Ce,1);break t}}q=H.createElement(P),Xl(q,P,E),H.head.appendChild(q);break;default:throw Error(r(468,P))}q[be]=d,sn(q),P=q}d.stateNode=P}else oK(H,d.type,d.stateNode);else d.stateNode=aK(H,P,d.memoizedProps);else q!==P?(q===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):q.count--,P===null?oK(H,d.type,d.stateNode):aK(H,P,d.memoizedProps)):P===null&&d.stateNode!==null&&qL(d,d.memoizedProps,E.memoizedProps)}break;case 27:n0(m,d),r0(d),P&512&&(Oo||E===null||l1(E,E.return)),E!==null&&P&4&&qL(d,d.memoizedProps,E.memoizedProps);break;case 5:if(n0(m,d),r0(d),P&512&&(Oo||E===null||l1(E,E.return)),d.flags&32){H=d.stateNode;try{to(H,"")}catch(tr){Da(d,d.return,tr)}}P&4&&d.stateNode!=null&&(H=d.memoizedProps,qL(d,H,E!==null?E.memoizedProps:H)),P&1024&&(YL=!0);break;case 6:if(n0(m,d),r0(d),P&4){if(d.stateNode===null)throw Error(r(162));P=d.memoizedProps,E=d.stateNode;try{E.nodeValue=P}catch(tr){Da(d,d.return,tr)}}break;case 3:if(pM=null,H=eh,eh=dM(m.containerInfo),n0(m,d),eh=H,r0(d),P&4&&E!==null&&E.memoizedState.isDehydrated)try{D4(m.containerInfo)}catch(tr){Da(d,d.return,tr)}YL&&(YL=!1,oQ(d));break;case 4:P=eh,eh=dM(d.stateNode.containerInfo),n0(m,d),r0(d),eh=P;break;case 12:n0(m,d),r0(d);break;case 31:n0(m,d),r0(d),P&4&&(P=d.updateQueue,P!==null&&(d.updateQueue=null,KE(d,P)));break;case 13:n0(m,d),r0(d),d.child.flags&8192&&d.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(eM=nt()),P&4&&(P=d.updateQueue,P!==null&&(d.updateQueue=null,KE(d,P)));break;case 22:H=d.memoizedState!==null;var et=E!==null&&E.memoizedState!==null,Ft=fm,Jt=Oo;if(fm=Ft||H,Oo=Jt||et,n0(m,d),Oo=Jt,fm=Ft,r0(d),P&8192)e:for(m=d.stateNode,m._visibility=H?m._visibility&-2:m._visibility|1,H&&(E===null||et||fm||Oo||Nx(d)),E=null,m=d;;){if(m.tag===5||m.tag===26){if(E===null){et=E=m;try{if(q=et.stateNode,H)fe=q.style,typeof fe.setProperty=="function"?fe.setProperty("display","none","important"):fe.display="none";else{Ce=et.stateNode;var cn=et.memoizedProps.style,Ut=cn!=null&&cn.hasOwnProperty("display")?cn.display:null;Ce.style.display=Ut==null||typeof Ut=="boolean"?"":(""+Ut).trim()}}catch(tr){Da(et,et.return,tr)}}}else if(m.tag===6){if(E===null){et=m;try{et.stateNode.nodeValue=H?"":et.memoizedProps}catch(tr){Da(et,et.return,tr)}}}else if(m.tag===18){if(E===null){et=m;try{var $t=et.stateNode;H?XQ($t,!0):XQ(et.stateNode,!1)}catch(tr){Da(et,et.return,tr)}}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===d)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===d)break e;for(;m.sibling===null;){if(m.return===null||m.return===d)break e;E===m&&(E=null),m=m.return}E===m&&(E=null),m.sibling.return=m.return,m=m.sibling}P&4&&(P=d.updateQueue,P!==null&&(E=P.retryQueue,E!==null&&(P.retryQueue=null,KE(d,E))));break;case 19:n0(m,d),r0(d),P&4&&(P=d.updateQueue,P!==null&&(d.updateQueue=null,KE(d,P)));break;case 30:break;case 21:break;default:n0(m,d),r0(d)}}function r0(d){var m=d.flags;if(m&2){try{for(var E,P=d.return;P!==null;){if(KX(P)){E=P;break}P=P.return}if(E==null)throw Error(r(160));switch(E.tag){case 27:var H=E.stateNode,q=WL(d);QE(d,q,H);break;case 5:var fe=E.stateNode;E.flags&32&&(to(fe,""),E.flags&=-33);var Ce=WL(d);QE(d,Ce,fe);break;case 3:case 4:var et=E.stateNode.containerInfo,Ft=WL(d);ZL(d,Ft,et);break;default:throw Error(r(161))}}catch(Jt){Da(d,d.return,Jt)}d.flags&=-3}m&4096&&(d.flags&=-4097)}function oQ(d){if(d.subtreeFlags&1024)for(d=d.child;d!==null;){var m=d;oQ(m),m.tag===5&&m.flags&1024&&m.stateNode.reset(),d=d.sibling}}function hm(d,m){if(m.subtreeFlags&8772)for(m=m.child;m!==null;)tQ(d,m.alternate,m),m=m.sibling}function Nx(d){for(d=d.child;d!==null;){var m=d;switch(m.tag){case 0:case 11:case 14:case 15:J2(4,m,m.return),Nx(m);break;case 1:l1(m,m.return);var E=m.stateNode;typeof E.componentWillUnmount=="function"&&XX(m,m.return,E),Nx(m);break;case 27:hb(m.stateNode);case 26:case 5:l1(m,m.return),Nx(m);break;case 22:m.memoizedState===null&&Nx(m);break;case 30:Nx(m);break;default:Nx(m)}d=d.sibling}}function pm(d,m,E){for(E=E&&(m.subtreeFlags&8772)!==0,m=m.child;m!==null;){var P=m.alternate,H=d,q=m,fe=q.flags;switch(q.tag){case 0:case 11:case 15:pm(H,q,E),rb(4,q);break;case 1:if(pm(H,q,E),P=q,H=P.stateNode,typeof H.componentDidMount=="function")try{H.componentDidMount()}catch(Ft){Da(P,P.return,Ft)}if(P=q,H=P.updateQueue,H!==null){var Ce=P.stateNode;try{var et=H.shared.hiddenCallbacks;if(et!==null)for(H.shared.hiddenCallbacks=null,H=0;H<et.length;H++)jn(et[H],Ce)}catch(Ft){Da(P,P.return,Ft)}}E&&fe&64&&YX(q),ib(q,q.return);break;case 27:JX(q);case 26:case 5:pm(H,q,E),E&&P===null&&fe&4&&QX(q),ib(q,q.return);break;case 12:pm(H,q,E);break;case 31:pm(H,q,E),E&&fe&4&&iQ(H,q);break;case 13:pm(H,q,E),E&&fe&4&&aQ(H,q);break;case 22:q.memoizedState===null&&pm(H,q,E),ib(q,q.return);break;case 30:break;default:pm(H,q,E)}m=m.sibling}}function XL(d,m){var E=null;d!==null&&d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(E=d.memoizedState.cachePool.pool),d=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(d=m.memoizedState.cachePool.pool),d!==E&&(d!=null&&d.refCount++,E!=null&&X2(E))}function QL(d,m){d=null,m.alternate!==null&&(d=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==d&&(m.refCount++,d!=null&&X2(d))}function th(d,m,E,P){if(m.subtreeFlags&10256)for(m=m.child;m!==null;)lQ(d,m,E,P),m=m.sibling}function lQ(d,m,E,P){var H=m.flags;switch(m.tag){case 0:case 11:case 15:th(d,m,E,P),H&2048&&rb(9,m);break;case 1:th(d,m,E,P);break;case 3:th(d,m,E,P),H&2048&&(d=null,m.alternate!==null&&(d=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==d&&(m.refCount++,d!=null&&X2(d)));break;case 12:if(H&2048){th(d,m,E,P),d=m.stateNode;try{var q=m.memoizedProps,fe=q.id,Ce=q.onPostCommit;typeof Ce=="function"&&Ce(fe,m.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(et){Da(m,m.return,et)}}else th(d,m,E,P);break;case 31:th(d,m,E,P);break;case 13:th(d,m,E,P);break;case 23:break;case 22:q=m.stateNode,fe=m.alternate,m.memoizedState!==null?q._visibility&2?th(d,m,E,P):ab(d,m):q._visibility&2?th(d,m,E,P):(q._visibility|=2,y4(d,m,E,P,(m.subtreeFlags&10256)!==0||!1)),H&2048&&XL(fe,m);break;case 24:th(d,m,E,P),H&2048&&QL(m.alternate,m);break;default:th(d,m,E,P)}}function y4(d,m,E,P,H){for(H=H&&((m.subtreeFlags&10256)!==0||!1),m=m.child;m!==null;){var q=d,fe=m,Ce=E,et=P,Ft=fe.flags;switch(fe.tag){case 0:case 11:case 15:y4(q,fe,Ce,et,H),rb(8,fe);break;case 23:break;case 22:var Jt=fe.stateNode;fe.memoizedState!==null?Jt._visibility&2?y4(q,fe,Ce,et,H):ab(q,fe):(Jt._visibility|=2,y4(q,fe,Ce,et,H)),H&&Ft&2048&&XL(fe.alternate,fe);break;case 24:y4(q,fe,Ce,et,H),H&&Ft&2048&&QL(fe.alternate,fe);break;default:y4(q,fe,Ce,et,H)}m=m.sibling}}function ab(d,m){if(m.subtreeFlags&10256)for(m=m.child;m!==null;){var E=d,P=m,H=P.flags;switch(P.tag){case 22:ab(E,P),H&2048&&XL(P.alternate,P);break;case 24:ab(E,P),H&2048&&QL(P.alternate,P);break;default:ab(E,P)}m=m.sibling}}var sb=8192;function _4(d,m,E){if(d.subtreeFlags&sb)for(d=d.child;d!==null;)cQ(d,m,E),d=d.sibling}function cQ(d,m,E){switch(d.tag){case 26:_4(d,m,E),d.flags&sb&&d.memoizedState!==null&&pbe(E,eh,d.memoizedState,d.memoizedProps);break;case 5:_4(d,m,E);break;case 3:case 4:var P=eh;eh=dM(d.stateNode.containerInfo),_4(d,m,E),eh=P;break;case 22:d.memoizedState===null&&(P=d.alternate,P!==null&&P.memoizedState!==null?(P=sb,sb=16777216,_4(d,m,E),sb=P):_4(d,m,E));break;default:_4(d,m,E)}}function uQ(d){var m=d.alternate;if(m!==null&&(d=m.child,d!==null)){m.child=null;do m=d.sibling,d.sibling=null,d=m;while(d!==null)}}
vendor: 5,827 bytes, line 8
8function ob(d){var m=d.deletions;if((d.flags&16)!==0){if(m!==null)for(var E=0;E<m.length;E++){var P=m[E];Ll=P,dQ(P,d)}uQ(d)}if(d.subtreeFlags&10256)for(d=d.child;d!==null;)fQ(d),d=d.sibling}function fQ(d){switch(d.tag){case 0:case 11:case 15:ob(d),d.flags&2048&&J2(9,d,d.return);break;case 3:ob(d);break;case 12:ob(d);break;case 22:var m=d.stateNode;d.memoizedState!==null&&m._visibility&2&&(d.return===null||d.return.tag!==13)?(m._visibility&=-3,JE(d)):ob(d);break;default:ob(d)}}function JE(d){var m=d.deletions;if((d.flags&16)!==0){if(m!==null)for(var E=0;E<m.length;E++){var P=m[E];Ll=P,dQ(P,d)}uQ(d)}for(d=d.child;d!==null;){switch(m=d,m.tag){case 0:case 11:case 15:J2(8,m,m.return),JE(m);break;case 22:E=m.stateNode,E._visibility&2&&(E._visibility&=-3,JE(m));break;default:JE(m)}d=d.sibling}}function dQ(d,m){for(;Ll!==null;){var E=Ll;switch(E.tag){case 0:case 11:case 15:J2(8,E,m);break;case 23:case 22:if(E.memoizedState!==null&&E.memoizedState.cachePool!==null){var P=E.memoizedState.cachePool.pool;P!=null&&P.refCount++}break;case 24:X2(E.memoizedState.cache)}if(P=E.child,P!==null)P.return=E,Ll=P;else e:for(E=d;Ll!==null;){P=Ll;var H=P.sibling,q=P.return;if(nQ(P),P===E){Ll=null;break e}if(H!==null){H.return=q,Ll=H;break e}Ll=q}}}var N6e={getCacheForType:function(d){var m=al(On),E=m.data.get(d);return E===void 0&&(E=d(),m.data.set(d,E)),E},cacheSignal:function(){return al(On).controller.signal}},R6e=typeof WeakMap=="function"?WeakMap:Map,pa=0,Ka=null,Ei=null,Di=0,Ra=0,z0=null,eA=!1,b4=!1,KL=!1,mm=0,io=0,tA=0,Rx=0,JL=0,$0=0,w4=0,lb=null,i0=null,eO=!1,eM=0,hQ=0,tM=1/0,nM=null,nA=null,sl=0,rA=null,S4=null,Am=0,tO=0,nO=null,pQ=null,cb=0,rO=null;function q0(){return(pa&2)!==0&&Di!==0?Di&-Di:X.T!==null?cO():W()}function mQ(){if($0===0)if((Di&536870912)===0||Ti){var d=vn;vn<<=1,(vn&3932160)===0&&(vn=262144),$0=d}else $0=536870912;return d=yr.current,d!==null&&(d.flags|=32),$0}function a0(d,m,E){(d===Ka&&(Ra===2||Ra===9)||d.cancelPendingCommit!==null)&&(T4(d,0),iA(d,Di,$0,!1)),Gt(d,E),((pa&2)===0||d!==Ka)&&(d===Ka&&((pa&2)===0&&(Rx|=E),io===4&&iA(d,Di,$0,!1)),c1(d))}function AQ(d,m,E){if((pa&6)!==0)throw Error(r(327));var P=!E&&(m&127)===0&&(m&d.expiredLanes)===0||Dt(d,m),H=P?k6e(d,m):aO(d,m,!0),q=P;do{if(H===0){b4&&!P&&iA(d,m,0,!1);break}else{if(E=d.current.alternate,q&&!D6e(E)){H=aO(d,m,!1),q=!1;continue}if(H===2){if(q=m,d.errorRecoveryDisabledLanes&q)var fe=0;else fe=d.pendingLanes&-536870913,fe=fe!==0?fe:fe&536870912?536870912:0;if(fe!==0){m=fe;e:{var Ce=d;H=lb;var et=Ce.current.memoizedState.isDehydrated;if(et&&(T4(Ce,fe).flags|=256),fe=aO(Ce,fe,!1),fe!==2){if(KL&&!et){Ce.errorRecoveryDisabledLanes|=q,Rx|=q,H=4;break e}q=i0,i0=H,q!==null&&(i0===null?i0=q:i0.push.apply(i0,q))}H=fe}if(q=!1,H!==2)continue}}if(H===1){T4(d,0),iA(d,m,0,!0);break}e:{switch(P=d,q=H,q){case 0:case 1:throw Error(r(345));case 4:if((m&4194048)!==m)break;case 6:iA(P,m,$0,!eA);break e;case 2:i0=null;break;case 3:case 5:break;default:throw Error(r(329))}if((m&62914560)===m&&(H=eM+300-nt(),10<H)){if(iA(P,m,$0,!eA),_t(P,0,!0)!==0)break e;Am=m,P.timeoutHandle=WQ(gQ.bind(null,P,E,i0,nM,eO,m,$0,Rx,w4,eA,q,"Throttled",-0,0),H);break e}gQ(P,E,i0,nM,eO,m,$0,Rx,w4,eA,q,null,-0,0)}}break}while(!0);c1(d)}function gQ(d,m,E,P,H,q,fe,Ce,et,Ft,Jt,cn,Ut,$t){if(d.timeoutHandle=-1,cn=m.subtreeFlags,cn&8192||(cn&16785408)===16785408){cn={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nl},cQ(m,q,cn);var tr=(q&62914560)===q?eM-nt():(q&4194048)===q?hQ-nt():0;if(tr=mbe(cn,tr),tr!==null){Am=q,d.cancelPendingCommit=tr(TQ.bind(null,d,m,q,E,P,H,fe,Ce,et,Jt,cn,null,Ut,$t)),iA(d,q,fe,!Ft);return}}TQ(d,m,q,E,P,H,fe,Ce,et)}function D6e(d){for(var m=d;;){var E=m.tag;if((E===0||E===11||E===15)&&m.flags&16384&&(E=m.updateQueue,E!==null&&(E=E.stores,E!==null)))for(var P=0;P<E.length;P++){var H=E[P],q=H.getSnapshot;H=H.value;try{if(!lu(q(),H))return!1}catch{return!1}}if(E=m.child,m.subtreeFlags&16384&&E!==null)E.return=m,m=E;else{if(m===d)break;for(;m.sibling===null;){if(m.return===null||m.return===d)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function iA(d,m,E,P){m&=~JL,m&=~Rx,d.suspendedLanes|=m,d.pingedLanes&=~m,P&&(d.warmLanes|=m),P=d.expirationTimes;for(var H=m;0<H;){var q=31-Zt(H),fe=1<<q;P[q]=-1,H&=~fe}E!==0&&Ve(d,E,m)}function rM(){return(pa&6)===0?(ub(0),!1):!0}function iO(){if(Ei!==null){if(Ra===0)var d=Ei.return;else d=Ei,Zd=nm=null,yL(d),F=null,U=0,d=Ei;for(;d!==null;)ZX(d.alternate,d),d=d.return;Ei=null}}function T4(d,m){var E=d.timeoutHandle;E!==-1&&(d.timeoutHandle=-1,Q6e(E)),E=d.cancelPendingCommit,E!==null&&(d.cancelPendingCommit=null,E()),Am=0,iO(),Ka=d,Ei=E=Uf(d.current,null),Di=m,Ra=0,z0=null,eA=!1,b4=Dt(d,m),KL=!1,w4=$0=JL=Rx=tA=io=0,i0=lb=null,eO=!1,(m&8)!==0&&(m|=m&32);var P=d.entangledLanes;if(P!==0)for(d=d.entanglements,P&=m;0<P;){var H=31-Zt(P),q=1<<H;m|=d[H],P&=~q}return mm=m,s4(),E}function xQ(d,m){ri=null,X.H=eb,m===Qd||m===H0?(m=N(),Ra=3):m===o1?(m=N(),Ra=4):Ra=m===FL?8:m!==null&&typeof m=="object"&&typeof m.then=="function"?6:1,z0=m,Ei===null&&(io=1,qE(d,Xu(m,d.current)))}function vQ(){var d=yr.current;return d===null?!0:(Di&4194048)===Di?ni===null:(Di&62914560)===Di||(Di&536870912)!==0?d===ni:!1}function yQ(){var d=X.H;return X.H=eb,d===null?eb:d}function _Q(){var d=X.A;return X.A=N6e,d}function iM(){io=4,eA||(Di&4194048)!==Di&&yr.current!==null||(b4=!0),(tA&134217727)===0&&(Rx&134217727)===0||Ka===null||iA(Ka,Di,$0,!1)}function aO(d,m,E){var P=pa;pa|=2;var H=yQ(),q=_Q();(Ka!==d||Di!==m)&&(nM=null,T4(d,m)),m=!1;var fe=io;e:do try{if(Ra!==0&&Ei!==null){var Ce=Ei,et=z0;switch(Ra){case 8:iO(),fe=6;break e;case 3:case 2:case 9:case 6:yr.current===null&&(m=!0);var Ft=Ra;if(Ra=0,z0=null,E4(d,Ce,et,Ft),E&&b4){fe=0;break e}break;default:Ft=Ra,Ra=0,z0=null,E4(d,Ce,et,Ft)}}
vendor: 4,429 bytes, line 8
8P6e(),fe=io;break}catch(Jt){xQ(d,Jt)}while(!0);return m&&d.shellSuspendCounter++,Zd=nm=null,pa=P,X.H=H,X.A=q,Ei===null&&(Ka=null,Di=0,s4()),fe}function P6e(){for(;Ei!==null;)bQ(Ei)}function k6e(d,m){var E=pa;pa|=2;var P=yQ(),H=_Q();Ka!==d||Di!==m?(nM=null,tM=nt()+500,T4(d,m)):b4=Dt(d,m);e:do try{if(Ra!==0&&Ei!==null){m=Ei;var q=z0;t:switch(Ra){case 1:Ra=0,z0=null,E4(d,m,q,1);break;case 2:case 9:if(Kd(q)){Ra=0,z0=null,wQ(m);break}m=function(){Ra!==2&&Ra!==9||Ka!==d||(Ra=7),c1(d)},q.then(m,m);break e;case 3:Ra=7;break e;case 4:Ra=5;break e;case 7:Kd(q)?(Ra=0,z0=null,wQ(m)):(Ra=0,z0=null,E4(d,m,q,7));break;case 5:var fe=null;switch(Ei.tag){case 26:fe=Ei.memoizedState;case 5:case 27:var Ce=Ei;if(fe?lK(fe):Ce.stateNode.complete){Ra=0,z0=null;var et=Ce.sibling;if(et!==null)Ei=et;else{var Ft=Ce.return;Ft!==null?(Ei=Ft,aM(Ft)):Ei=null}break t}}Ra=0,z0=null,E4(d,m,q,5);break;case 6:Ra=0,z0=null,E4(d,m,q,6);break;case 8:iO(),io=6;break e;default:throw Error(r(462))}}L6e();break}catch(Jt){xQ(d,Jt)}while(!0);return Zd=nm=null,X.H=P,X.A=H,pa=E,Ei!==null?0:(Ka=null,Di=0,s4(),io)}function L6e(){for(;Ei!==null&&!Ct();)bQ(Ei)}function bQ(d){var m=qX(d.alternate,d,mm);d.memoizedProps=d.pendingProps,m===null?aM(d):Ei=m}function wQ(d){var m=d,E=m.alternate;switch(m.tag){case 15:case 0:m=VX(E,m,m.pendingProps,m.type,void 0,Di);break;case 11:m=VX(E,m,m.pendingProps,m.type.render,m.ref,Di);break;case 5:yL(m);default:ZX(E,m),m=Ei=kE(m,mm),m=qX(E,m,mm)}d.memoizedProps=d.pendingProps,m===null?aM(d):Ei=m}function E4(d,m,E,P){Zd=nm=null,yL(m),F=null,U=0;var H=m.return;try{if(b6e(d,H,m,E,Di)){io=1,qE(d,Xu(E,d.current)),Ei=null;return}}catch(q){if(H!==null)throw Ei=H,q;io=1,qE(d,Xu(E,d.current)),Ei=null;return}m.flags&32768?(Ti||P===1?d=!0:b4||(Di&536870912)!==0?d=!1:(eA=d=!0,(P===2||P===9||P===3||P===6)&&(P=yr.current,P!==null&&P.tag===13&&(P.flags|=16384))),SQ(m,d)):aM(m)}function aM(d){var m=d;do{if((m.flags&32768)!==0){SQ(m,eA);return}d=m.return;var E=T6e(m.alternate,m,mm);if(E!==null){Ei=E;return}if(m=m.sibling,m!==null){Ei=m;return}Ei=m=d}while(m!==null);io===0&&(io=5)}function SQ(d,m){do{var E=E6e(d.alternate,d);if(E!==null){E.flags&=32767,Ei=E;return}if(E=d.return,E!==null&&(E.flags|=32768,E.subtreeFlags=0,E.deletions=null),!m&&(d=d.sibling,d!==null)){Ei=d;return}Ei=d=E}while(d!==null);io=6,Ei=null}function TQ(d,m,E,P,H,q,fe,Ce,et){d.cancelPendingCommit=null;do sM();while(sl!==0);if((pa&6)!==0)throw Error(r(327));if(m!==null){if(m===d.current)throw Error(r(177));if(q=m.lanes|m.childLanes,q|=G6,hn(d,E,q,fe,Ce,et),d===Ka&&(Ei=Ka=null,Di=0),S4=m,rA=d,Am=E,tO=q,nO=H,pQ=P,(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?(d.callbackNode=null,d.callbackPriority=0,B6e(je,function(){return RQ(),null})):(d.callbackNode=null,d.callbackPriority=0),P=(m.flags&13878)!==0,(m.subtreeFlags&13878)!==0||P){P=X.T,X.T=null,H=K.p,K.p=2,fe=pa,pa|=4;try{M6e(d,m,E)}finally{pa=fe,K.p=H,X.T=P}}sl=1,EQ(),MQ(),CQ()}}function EQ(){if(sl===1){sl=0;var d=rA,m=S4,E=(m.flags&13878)!==0;if((m.subtreeFlags&13878)!==0||E){E=X.T,X.T=null;var P=K.p;K.p=2;var H=pa;pa|=4;try{sQ(m,d);var q=gO,fe=n1(d.containerInfo),Ce=q.focusedElem,et=q.selectionRange;if(fe!==Ce&&Ce&&Ce.ownerDocument&&qp(Ce.ownerDocument.documentElement,Ce)){if(et!==null&&r1(Ce)){var Ft=et.start,Jt=et.end;if(Jt===void 0&&(Jt=Ft),"selectionStart"in Ce)Ce.selectionStart=Ft,Ce.selectionEnd=Math.min(Jt,Ce.value.length);else{var cn=Ce.ownerDocument||document,Ut=cn&&cn.defaultView||window;if(Ut.getSelection){var $t=Ut.getSelection(),tr=Ce.textContent.length,Or=Math.min(et.start,tr),za=et.end===void 0?Or:Math.min(et.end,tr);!$t.extend&&Or>za&&(fe=za,za=Or,Or=fe);var Mt=a4(Ce,Or),mt=a4(Ce,za);if(Mt&&mt&&($t.rangeCount!==1||$t.anchorNode!==Mt.node||$t.anchorOffset!==Mt.offset||$t.focusNode!==mt.node||$t.focusOffset!==mt.offset)){var Ot=cn.createRange();Ot.setStart(Mt.node,Mt.offset),$t.removeAllRanges(),Or>za?($t.addRange(Ot),$t.extend(mt.node,mt.offset)):(Ot.setEnd(mt.node,mt.offset),$t.addRange(Ot))}}}}for(cn=[],$t=Ce;$t=$t.parentNode;)$t.nodeType===1&&cn.push({element:$t,left:$t.scrollLeft,top:$t.scrollTop});for(typeof Ce.focus=="function"&&Ce.focus(),Ce=0;Ce<cn.length;Ce++){var an=cn[Ce];an.element.scrollLeft=an.left,an.element.scrollTop=an.top}}xM=!!AO,gO=AO=null}finally{pa=H,K.p=P,X.T=E}}d.current=m,sl=2}}function MQ(){if(sl===2){sl=0;var d=rA,m=S4,E=(m.flags&8772)!==0;if((m.subtreeFlags&8772)!==0||E){E=X.T,X.T=null;var P=K.p;K.p=2;var H=pa;pa|=4;
vendor: 10,172 bytes, line 8
8try{tQ(d,m.alternate,m)}finally{pa=H,K.p=P,X.T=E}}sl=3}}function CQ(){if(sl===4||sl===3){sl=0,It();var d=rA,m=S4,E=Am,P=pQ;(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?sl=5:(sl=0,S4=rA=null,NQ(d,d.pendingLanes));var H=d.pendingLanes;if(H===0&&(nA=null),v(E),m=m.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(ut,m,void 0,(m.current.flags&128)===128)}catch{}if(P!==null){m=X.T,H=K.p,K.p=2,X.T=null;try{for(var q=d.onRecoverableError,fe=0;fe<P.length;fe++){var Ce=P[fe];q(Ce.value,{componentStack:Ce.stack})}}finally{X.T=m,K.p=H}}(Am&3)!==0&&sM(),c1(d),H=d.pendingLanes,(E&261930)!==0&&(H&42)!==0?d===rO?cb++:(cb=0,rO=d):cb=0,ub(0)}}function NQ(d,m){(d.pooledCacheLanes&=m)===0&&(m=d.pooledCache,m!=null&&(d.pooledCache=null,X2(m)))}function sM(){return EQ(),MQ(),CQ(),RQ()}function RQ(){if(sl!==5)return!1;var d=rA,m=tO;tO=0;var E=v(Am),P=X.T,H=K.p;try{K.p=32>E?32:E,X.T=null,E=nO,nO=null;var q=rA,fe=Am;if(sl=0,S4=rA=null,Am=0,(pa&6)!==0)throw Error(r(331));var Ce=pa;if(pa|=4,fQ(q.current),lQ(q,q.current,fe,E),pa=Ce,ub(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(ut,q)}catch{}return!0}finally{K.p=H,X.T=P,NQ(d,m)}}function DQ(d,m,E){m=Xu(E,m),m=OL(d.stateNode,m,2),d=Pt(d,m,2),d!==null&&(Gt(d,2),c1(d))}function Da(d,m,E){if(d.tag===3)DQ(d,d,E);else for(;m!==null;){if(m.tag===3){DQ(m,d,E);break}else if(m.tag===1){var P=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof P.componentDidCatch=="function"&&(nA===null||!nA.has(P))){d=Xu(E,d),E=PX(2),P=Pt(m,E,2),P!==null&&(kX(E,P,m,d),Gt(P,2),c1(P));break}}m=m.return}}function sO(d,m,E){var P=d.pingCache;if(P===null){P=d.pingCache=new R6e;var H=new Set;P.set(m,H)}else H=P.get(m),H===void 0&&(H=new Set,P.set(m,H));H.has(E)||(KL=!0,H.add(E),d=O6e.bind(null,d,m,E),m.then(d,d))}function O6e(d,m,E){var P=d.pingCache;P!==null&&P.delete(m),d.pingedLanes|=d.suspendedLanes&E,d.warmLanes&=~E,Ka===d&&(Di&E)===E&&(io===4||io===3&&(Di&62914560)===Di&&300>nt()-eM?(pa&2)===0&&T4(d,0):JL|=E,w4===Di&&(w4=0)),c1(d)}function PQ(d,m){m===0&&(m=Lt()),d=Qp(d,m),d!==null&&(Gt(d,m),c1(d))}function F6e(d){var m=d.memoizedState,E=0;m!==null&&(E=m.retryLane),PQ(d,E)}function I6e(d,m){var E=0;switch(d.tag){case 31:case 13:var P=d.stateNode,H=d.memoizedState;H!==null&&(E=H.retryLane);break;case 19:P=d.stateNode;break;case 22:P=d.stateNode._retryCache;break;default:throw Error(r(314))}P!==null&&P.delete(m),PQ(d,E)}function B6e(d,m){return Le(d,m)}var oM=null,M4=null,oO=!1,lM=!1,lO=!1,aA=0;function c1(d){d!==M4&&d.next===null&&(M4===null?oM=M4=d:M4=M4.next=d),lM=!0,oO||(oO=!0,V6e())}function ub(d,m){if(!lO&&lM){lO=!0;do for(var E=!1,P=oM;P!==null;){if(d!==0){var H=P.pendingLanes;if(H===0)var q=0;else{var fe=P.suspendedLanes,Ce=P.pingedLanes;q=(1<<31-Zt(42|d)+1)-1,q&=H&~(fe&~Ce),q=q&201326741?q&201326741|1:q?q|2:0}q!==0&&(E=!0,FQ(P,q))}else q=Di,q=_t(P,P===Ka?q:0,P.cancelPendingCommit!==null||P.timeoutHandle!==-1),(q&3)===0||Dt(P,q)||(E=!0,FQ(P,q));P=P.next}while(E);lO=!1}}function U6e(){kQ()}function kQ(){lM=oO=!1;var d=0;aA!==0&&X6e()&&(d=aA);for(var m=nt(),E=null,P=oM;P!==null;){var H=P.next,q=LQ(P,m);q===0?(P.next=null,E===null?oM=H:E.next=H,H===null&&(M4=E)):(E=P,(d!==0||(q&3)!==0)&&(lM=!0)),P=H}sl!==0&&sl!==5||ub(d),aA!==0&&(aA=0)}function LQ(d,m){for(var E=d.suspendedLanes,P=d.pingedLanes,H=d.expirationTimes,q=d.pendingLanes&-62914561;0<q;){var fe=31-Zt(q),Ce=1<<fe,et=H[fe];et===-1?((Ce&E)===0||(Ce&P)!==0)&&(H[fe]=jt(Ce,m)):et<=m&&(d.expiredLanes|=Ce),q&=~Ce}if(m=Ka,E=Di,E=_t(d,d===m?E:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),P=d.callbackNode,E===0||d===m&&(Ra===2||Ra===9)||d.cancelPendingCommit!==null)return P!==null&&P!==null&&Nt(P),d.callbackNode=null,d.callbackPriority=0;if((E&3)===0||Dt(d,E)){if(m=E&-E,m===d.callbackPriority)return m;switch(P!==null&&Nt(P),v(E)){case 2:case 8:E=ce;break;case 32:E=je;break;case 268435456:E=ft;break;default:E=je}return P=OQ.bind(null,d),E=Le(E,P),d.callbackPriority=m,d.callbackNode=E,m}return P!==null&&P!==null&&Nt(P),d.callbackPriority=2,d.callbackNode=null,2}function OQ(d,m){if(sl!==0&&sl!==5)return d.callbackNode=null,d.callbackPriority=0,null;var E=d.callbackNode;if(sM()&&d.callbackNode!==E)return null;var P=Di;return P=_t(d,d===Ka?P:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),P===0?null:(AQ(d,P,m),LQ(d,nt()),d.callbackNode!=null&&d.callbackNode===E?OQ.bind(null,d):null)}function FQ(d,m){if(sM())return null;AQ(d,m,!0)}function V6e(){K6e(function(){(pa&6)!==0?Le(ve,U6e):kQ()})}function cO(){if(aA===0){var d=Q2;d===0&&(d=yn,yn<<=1,(yn&261888)===0&&(yn=256)),aA=d}return aA}function IQ(d){return d==null||typeof d=="symbol"||typeof d=="boolean"?null:typeof d=="function"?d:vc(""+d)}function BQ(d,m){var E=m.ownerDocument.createElement("input");return E.name=m.name,E.value=m.value,d.id&&E.setAttribute("form",d.id),m.parentNode.insertBefore(E,m),d=new FormData(d),E.parentNode.removeChild(E),d}function j6e(d,m,E,P,H){if(m==="submit"&&E&&E.stateNode===H){var q=IQ((H[xe]||null).action),fe=P.submitter;fe&&(m=(m=fe[xe]||null)?IQ(m.formAction):fe.getAttribute("formAction"),m!==null&&(q=m,fe=null));var Ce=new U0("action","action",null,P,H);d.push({event:Ce,listeners:[{instance:null,listener:function(){if(P.defaultPrevented){if(aA!==0){var et=fe?BQ(H,fe):new FormData(H);NL(E,{pending:!0,data:et,method:H.method,action:q},null,et)}}else typeof q=="function"&&(Ce.preventDefault(),et=fe?BQ(H,fe):new FormData(H),NL(E,{pending:!0,data:et,method:H.method,action:q},q,et))},currentTarget:H}]})}}for(var uO=0;uO<H6.length;uO++){var fO=H6[uO],H6e=fO.toLowerCase(),G6e=fO[0].toUpperCase()+fO.slice(1);V0(H6e,"on"+G6e)}V0(wc,"onAnimationEnd"),V0(RE,"onAnimationIteration"),V0(Y2,"onAnimationStart"),V0("dblclick","onDoubleClick"),V0("focusin","onFocus"),V0("focusout","onBlur"),V0(dL,"onTransitionRun"),V0(hL,"onTransitionStart"),V0(pL,"onTransitionCancel"),V0(j6,"onTransitionEnd"),ue("onMouseEnter",["mouseout","mouseover"]),ue("onMouseLeave",["mouseout","mouseover"]),ue("onPointerEnter",["pointerout","pointerover"]),ue("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fb="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(" "),z6e=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fb));function UQ(d,m){m=(m&4)!==0;for(var E=0;E<d.length;E++){var P=d[E],H=P.event;P=P.listeners;e:{var q=void 0;if(m)for(var fe=P.length-1;0<=fe;fe--){var Ce=P[fe],et=Ce.instance,Ft=Ce.currentTarget;if(Ce=Ce.listener,et!==q&&H.isPropagationStopped())break e;q=Ce,H.currentTarget=Ft;try{q(H)}catch(Jt){Xp(Jt)}H.currentTarget=null,q=et}else for(fe=0;fe<P.length;fe++){if(Ce=P[fe],et=Ce.instance,Ft=Ce.currentTarget,Ce=Ce.listener,et!==q&&H.isPropagationStopped())break e;q=Ce,H.currentTarget=Ft;try{q(H)}catch(Jt){Xp(Jt)}H.currentTarget=null,q=et}}}}function Mi(d,m){var E=m[tt];E===void 0&&(E=m[tt]=new Set);var P=d+"__bubble";E.has(P)||(VQ(m,d,2,!1),E.add(P))}function dO(d,m,E){var P=0;m&&(P|=4),VQ(E,d,P,m)}var cM="_reactListening"+Math.random().toString(36).slice(2);function hO(d){if(!d[cM]){d[cM]=!0,ur.forEach(function(E){E!=="selectionchange"&&(z6e.has(E)||dO(E,!1,d),dO(E,!0,d))});var m=d.nodeType===9?d:d.ownerDocument;m===null||m[cM]||(m[cM]=!0,dO("selectionchange",!1,m))}}function VQ(d,m,E,P){switch(mK(m)){case 2:var H=xbe;break;case 8:H=vbe;break;default:H=CO}E=H.bind(null,m,E,d),H=void 0,!B0||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(H=!0),P?H!==void 0?d.addEventListener(m,E,{capture:!0,passive:H}):d.addEventListener(m,E,!0):H!==void 0?d.addEventListener(m,E,{passive:H}):d.addEventListener(m,E,!1)}function pO(d,m,E,P,H){var q=P;if((m&1)===0&&(m&2)===0&&P!==null)e:for(;;){if(P===null)return;var fe=P.tag;if(fe===3||fe===4){var Ce=P.stateNode.containerInfo;if(Ce===H)break;if(fe===4)for(fe=P.return;fe!==null;){var et=fe.tag;if((et===3||et===4)&&fe.stateNode.containerInfo===H)return;fe=fe.return}for(;Ce!==null;){if(fe=Xt(Ce),fe===null)return;if(et=fe.tag,et===5||et===6||et===26||et===27){P=q=fe;continue e}Ce=Ce.parentNode}}P=P.return}jd(function(){var Ft=q,Jt=Lf(E),cn=[];e:{var Ut=DE.get(d);if(Ut!==void 0){var $t=U0,tr=d;switch(d){case"keypress":if(Wu(E)===0)break e;case"keydown":case"keyup":$t=Jk;break;case"focusin":tr="focus",$t=ha;break;case"focusout":tr="blur",$t=ha;break;case"beforeblur":case"afterblur":$t=ha;break;case"click":if(E.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$t=$r;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$t=ra;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$t=nL;break;case wc:case RE:case Y2:$t=mE;break;case j6:$t=rL;break;case"scroll":case"scrollend":$t=_c;break;case"wheel":$t=e4;break;case"copy":case"cut":case"paste":$t=Jy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$t=yE;break;case"toggle":case"beforetoggle":$t=sL}var Or=(m&4)!==0,za=!Or&&(d==="scroll"||d==="scrollend"),Mt=Or?Ut!==null?Ut+"Capture":null:Ut;Or=[];for(var mt=Ft,Ot;mt!==null;){var an=mt;if(Ot=an.stateNode,an=an.tag,an!==5&&an!==26&&an!==27||Ot===null||Mt===null||(an=Ff(mt,Mt),an!=null&&Or.push(db(mt,an,Ot))),za)break;mt=mt.return}0<Or.length&&(Ut=new $t(Ut,tr,null,E,Jt),cn.push({event:Ut,listeners:Or}))}}
vendor: 1,132 bytes, line 8
8if((m&7)===0){e:{if(Ut=d==="mouseover"||d==="pointerover",$t=d==="mouseout"||d==="pointerout",Ut&&E!==kf&&(tr=E.relatedTarget||E.fromElement)&&(Xt(tr)||tr[we]))break e;if(($t||Ut)&&(Ut=Jt.window===Jt?Jt:(Ut=Jt.ownerDocument)?Ut.defaultView||Ut.parentWindow:window,$t?(tr=E.relatedTarget||E.toElement,$t=Ft,tr=tr?Xt(tr):null,tr!==null&&(za=a(tr),Or=tr.tag,tr!==za||Or!==5&&Or!==27&&Or!==6)&&(tr=null)):($t=null,tr=Ft),$t!==tr)){if(Or=$r,an="onMouseLeave",Mt="onMouseEnter",mt="mouse",(d==="pointerout"||d==="pointerover")&&(Or=yE,an="onPointerLeave",Mt="onPointerEnter",mt="pointer"),za=$t==null?Ut:en($t),Ot=tr==null?Ut:en(tr),Ut=new Or(an,mt+"leave",$t,E,Jt),Ut.target=za,Ut.relatedTarget=Ot,an=null,Xt(Jt)===Ft&&(Or=new Or(Mt,mt+"enter",tr,E,Jt),Or.target=Ot,Or.relatedTarget=za,an=Or),za=an,$t&&tr)t:{for(Or=$6e,Mt=$t,mt=tr,Ot=0,an=Mt;an;an=Or(an))Ot++;an=0;for(var wr=mt;wr;wr=Or(wr))an++;for(;0<Ot-an;)Mt=Or(Mt),Ot--;for(;0<an-Ot;)mt=Or(mt),an--;for(;Ot--;){if(Mt===mt||mt!==null&&Mt===mt.alternate){Or=Mt;break t}Mt=Or(Mt),mt=Or(mt)}Or=null}else Or=null;$t!==null&&jQ(cn,Ut,$t,Or,!1),tr!==null&&za!==null&&jQ(cn,za,tr,Or,!0)}}
vendor: 5,269 bytes, lines 8-9
8e:{if(Ut=Ft?en(Ft):window,$t=Ut.nodeName&&Ut.nodeName.toLowerCase(),$t==="select"||$t==="input"&&Ut.type==="file")var ia=TE;else if(n4(Ut))if(O6)ia=uL;else{ia=I6;var fr=bc}else $t=Ut.nodeName,!$t||$t.toLowerCase()!=="input"||Ut.type!=="checkbox"&&Ut.type!=="radio"?Ft&&Si(Ft.elementType)&&(ia=TE):ia=$p;if(ia&&(ia=ia(d,Ft))){SE(cn,ia,E,Jt);break e}fr&&fr(d,Ut,Ft),d==="focusout"&&Ft&&Ut.type==="number"&&Ft.memoizedProps.value!=null&&or(Ut,"number",Ut.value)}switch(fr=Ft?en(Ft):window,d){case"focusin":(n4(fr)||fr.contentEditable==="true")&&(Wp=fr,U6=Ft,Zp=null);break;case"focusout":Zp=U6=Wp=null;break;case"mousedown":V6=!0;break;case"contextmenu":case"mouseup":case"dragend":V6=!1,NE(cn,E,Jt);break;case"selectionchange":if(fL)break;case"keydown":case"keyup":NE(cn,E,Jt)}var oi;if(jp)e:{switch(d){case"compositionstart":var Pi="onCompositionStart";break e;case"compositionend":Pi="onCompositionEnd";break e;case"compositionupdate":Pi="onCompositionUpdate";break e}Pi=void 0}else W2?t4(d,E)&&(Pi="onCompositionEnd"):d==="keydown"&&E.keyCode===229&&(Pi="onCompositionStart");Pi&&(k6&&E.locale!=="ko"&&(W2||Pi!=="onCompositionStart"?Pi==="onCompositionEnd"&&W2&&(oi=Bf()):(rl=Jt,qu="value"in rl?rl.value:rl.textContent,W2=!0)),fr=uM(Ft,Pi),0<fr.length&&(Pi=new zd(Pi,d,null,E,Jt),cn.push({event:Pi,listeners:fr}),oi?Pi.data=oi:(oi=L6(E),oi!==null&&(Pi.data=oi)))),(oi=P6?wE(d,E):lL(d,E))&&(Pi=uM(Ft,"onBeforeInput"),0<Pi.length&&(fr=new zd("onBeforeInput","beforeinput",null,E,Jt),cn.push({event:fr,listeners:Pi}),fr.data=oi)),j6e(cn,d,Ft,E,Jt)}UQ(cn,m)})}function db(d,m,E){return{instance:d,listener:m,currentTarget:E}}function uM(d,m){for(var E=m+"Capture",P=[];d!==null;){var H=d,q=H.stateNode;if(H=H.tag,H!==5&&H!==26&&H!==27||q===null||(H=Ff(d,E),H!=null&&P.unshift(db(d,H,q)),H=Ff(d,m),H!=null&&P.push(db(d,H,q))),d.tag===3)return P;d=d.return}return[]}function $6e(d){if(d===null)return null;do d=d.return;while(d&&d.tag!==5&&d.tag!==27);return d||null}function jQ(d,m,E,P,H){for(var q=m._reactName,fe=[];E!==null&&E!==P;){var Ce=E,et=Ce.alternate,Ft=Ce.stateNode;if(Ce=Ce.tag,et!==null&&et===P)break;Ce!==5&&Ce!==26&&Ce!==27||Ft===null||(et=Ft,H?(Ft=Ff(E,q),Ft!=null&&fe.unshift(db(E,Ft,et))):H||(Ft=Ff(E,q),Ft!=null&&fe.push(db(E,Ft,et)))),E=E.return}fe.length!==0&&d.push({event:m,listeners:fe})}var q6e=/\r\n?/g,W6e=/\u0000|\uFFFD/g;function HQ(d){return(typeof d=="string"?d:""+d).replace(q6e,` 9`).replace(W6e,"")}function GQ(d,m){return m=HQ(m),HQ(d)===m}function Ga(d,m,E,P,H,q){switch(E){case"children":typeof P=="string"?m==="body"||m==="textarea"&&P===""||to(d,P):(typeof P=="number"||typeof P=="bigint")&&m!=="body"&&to(d,""+P);break;case"className":wn(d,"class",P);break;case"tabIndex":wn(d,"tabindex",P);break;case"dir":case"role":case"viewBox":case"width":case"height":wn(d,E,P);break;case"style":ou(d,P,q);break;case"data":if(m!=="object"){wn(d,"data",P);break}case"src":case"href":if(P===""&&(m!=="a"||E!=="href")){d.removeAttribute(E);break}if(P==null||typeof P=="function"||typeof P=="symbol"||typeof P=="boolean"){d.removeAttribute(E);break}P=vc(""+P),d.setAttribute(E,P);break;case"action":case"formAction":if(typeof P=="function"){d.setAttribute(E,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof q=="function"&&(E==="formAction"?(m!=="input"&&Ga(d,m,"name",H.name,H,null),Ga(d,m,"formEncType",H.formEncType,H,null),Ga(d,m,"formMethod",H.formMethod,H,null),Ga(d,m,"formTarget",H.formTarget,H,null)):(Ga(d,m,"encType",H.encType,H,null),Ga(d,m,"method",H.method,H,null),Ga(d,m,"target",H.target,H,null)));if(P==null||typeof P=="symbol"||typeof P=="boolean"){d.removeAttribute(E);break}P=vc(""+P),d.setAttribute(E,P);break;case"onClick":P!=null&&(d.onclick=nl);break;case"onScroll":P!=null&&Mi("scroll",d);break;case"onScrollEnd":P!=null&&Mi("scrollend",d);break;case"dangerouslySetInnerHTML":if(P!=null){if(typeof P!="object"||!("__html"in P))throw Error(r(61));if(E=P.__html,E!=null){if(H.children!=null)throw Error(r(60));d.innerHTML=E}}break;case"multiple":d.multiple=P&&typeof P!="function"&&typeof P!="symbol";break;case"muted":d.muted=P&&typeof P!="function"&&typeof P!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(P==null||typeof P=="function"||typeof P=="boolean"||typeof P=="symbol"){d.removeAttribute("xlink:href");break}E=vc(""+P),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",E);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":P!=null&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(E,""+P):d.removeAttribute(E);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":P&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(E,""):d.removeAttribute(E);break;case"capture":case"download":P===!0?d.setAttribute(E,""):P!==!1&&P!=null&&typeof P!="function"&&typeof P!="symbol"?d.setAttribute(E,P):d.removeAttribute(E);break;case"cols":case"rows":case"size":case"span":P!=null&&typeof P!="function"&&typeof P!="symbol"&&!isNaN(P)&&1<=P?d.setAttribute(E,P):d.removeAttribute(E);break;case"rowSpan":case"start":P==null||typeof P=="function"||typeof P=="symbol"||isNaN(P)?d.removeAttribute(E):d.setAttribute(E,P);break;case"popover":Mi("beforetoggle",d),Mi("toggle",d),pn(d,"popover",P);break;case"xlinkActuate":pe(d,"http://www.w3.org/1999/xlink","xlink:actuate",P);break;case"xlinkArcrole":pe(d,"http://www.w3.org/1999/xlink","xlink:arcrole",P);break;case"xlinkRole":pe(d,"http://www.w3.org/1999/xlink","xlink:role",P);break;case"xlinkShow":pe(d,"http://www.w3.org/1999/xlink","xlink:show",P);break;case"xlinkTitle":pe(d,"http://www.w3.org/1999/xlink","xlink:title",P);break;case"xlinkType":pe(d,"http://www.w3.org/1999/xlink","xlink:type",P);break;case"xmlBase":pe(d,"http://www.w3.org/XML/1998/namespace","xml:base",P);break;case"xmlLang":pe(d,"http://www.w3.org/XML/1998/namespace","xml:lang",P);break;case"xmlSpace":pe(d,"http://www.w3.org/XML/1998/namespace","xml:space",P);break;case"is":pn(d,"is",P);break;case"innerText":case"textContent":break;default:(!(2<E.length)||E[0]!=="o"&&E[0]!=="O"||E[1]!=="n"&&E[1]!=="N")&&(E=tl.get(E)||E,pn(d,E,P))}}function mO(d,m,E,P,H,q){switch(E){case"style":ou(d,P,q);break;case"dangerouslySetInnerHTML":if(P!=null){if(typeof P!="object"||!("__html"in P))throw Error(r(61));if(E=P.__html,E!=null){if(H.children!=null)throw Error(r(60));d.innerHTML=E}}break;case"children":typeof P=="string"?to(d,P):(typeof P=="number"||typeof P=="bigint")&&to(d,""+P);break;case"onScroll":P!=null&&Mi("scroll",d);break;case"onScrollEnd":P!=null&&Mi("scrollend",d);break;case"onClick":P!=null&&(d.onclick=nl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ye.hasOwnProperty(E))e:{if(E[0]==="o"&&E[1]==="n"&&(H=E.endsWith("Capture"),m=E.slice(2,H?E.length-7:void 0),q=d[xe]||null,q=q!=null?q[E]:null,typeof q=="function"&&d.removeEventListener(m,q,H),typeof P=="function")){typeof q!="function"&&q!==null&&(E in d?d[E]=null:d.hasAttribute(E)&&d.removeAttribute(E)),d.addEventListener(m,P,H);break e}E in d?d[E]=P:P===!0?d.setAttribute(E,""):pn(d,E,P)}}}function Xl(d,m,E){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mi("error",d),Mi("load",d);var P=!1,H=!1,q;for(q in E)if(E.hasOwnProperty(q)){var fe=E[q];if(fe!=null)switch(q){case"src":P=!0;break;case"srcSet":H=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,m));default:Ga(d,m,q,fe,E,null)}}H&&Ga(d,m,"srcSet",E.srcSet,E,null),P&&Ga(d,m,"src",E.src,E,null);return;case"input":Mi("invalid",d);var Ce=q=fe=H=null,et=null,Ft=null;for(P in E)if(E.hasOwnProperty(P)){var Jt=E[P];if(Jt!=null)switch(P){case"name":H=Jt;break;case"type":fe=Jt;break;case"checked":et=Jt;break;case"defaultChecked":Ft=Jt;break;case"value":q=Jt;break;case"defaultValue":Ce=Jt;break;case"children":case"dangerouslySetInnerHTML":if(Jt!=null)throw Error(r(137,m));break;default:Ga(d,m,P,Jt,E,null)}}zi(d,q,Ce,et,Ft,fe,H,!1);return;case"select":Mi("invalid",d),P=fe=q=null;for(H in E)if(E.hasOwnProperty(H)&&(Ce=E[H],Ce!=null))switch(H){case"value":q=Ce;break;case"defaultValue":fe=Ce;break;case"multiple":P=Ce;default:Ga(d,m,H,Ce,E,null)}m=q,E=fe,d.multiple=!!P,m!=null?ja(d,!!P,m,!1):E!=null&&ja(d,!!P,E,!0);return;case"textarea":Mi("invalid",d),q=H=P=null;for(fe in E)if(E.hasOwnProperty(fe)&&(Ce=E[fe],Ce!=null))switch(fe){case"value":P=Ce;break;case"defaultValue":H=Ce;break;case"children":q=Ce;break;case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(91));break;default:Ga(d,m,fe,Ce,E,null)}Nl(d,P,H,q);return;case"option":for(et in E)E.hasOwnProperty(et)&&(P=E[et],P!=null)&&(et==="selected"?d.selected=P&&typeof P!="function"&&typeof P!="symbol":Ga(d,m,et,P,E,null));return;case"dialog":Mi("beforetoggle",d),Mi("toggle",d),Mi("cancel",d),Mi("close",d);break;case"iframe":case"object":Mi("load",d);break;case"video":case"audio":for(P=0;P<fb.length;P++)Mi(fb[P],d);break;case"image":Mi("error",d),Mi("load",d);break;case"details":Mi("toggle",d);break;case"embed":case"source":case"link":Mi("error",d),Mi("load",d);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ft in E)if(E.hasOwnProperty(Ft)&&(P=E[Ft],P!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,m));default:Ga(d,m,Ft,P,E,null)}return;default:if(Si(m)){for(Jt in E)E.hasOwnProperty(Jt)&&(P=E[Jt],P!==void 0&&mO(d,m,Jt,P,E,void 0));return}}for(Ce in E)E.hasOwnProperty(Ce)&&(P=E[Ce],P!=null&&Ga(d,m,Ce,P,E,null))}function Z6e(d,m,E,P){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var H=null,q=null,fe=null,Ce=null,et=null,Ft=null,Jt=null;for($t in E){var cn=E[$t];if(E.hasOwnProperty($t)&&cn!=null)switch($t){case"checked":break;case"value":break;case"defaultValue":et=cn;default:P.hasOwnProperty($t)||Ga(d,m,$t,null,P,cn)}}for(var Ut in P){var $t=P[Ut];if(cn=E[Ut],P.hasOwnProperty(Ut)&&($t!=null||cn!=null))switch(Ut){case"type":q=$t;break;case"name":H=$t;break;case"checked":Ft=$t;break;case"defaultChecked":Jt=$t;break;case"value":fe=$t;break;case"defaultValue":Ce=$t;break;case"children":case"dangerouslySetInnerHTML":if($t!=null)throw Error(r(137,m));break;default:$t!==cn&&Ga(d,m,Ut,$t,P,cn)}}Cn(d,fe,Ce,et,Ft,Jt,q,H);return;case"select":$t=fe=Ce=Ut=null;for(q in E)if(et=E[q],E.hasOwnProperty(q)&&et!=null)switch(q){case"value":break;case"multiple":$t=et;default:P.hasOwnProperty(q)||Ga(d,m,q,null,P,et)}for(H in P)if(q=P[H],et=E[H],P.hasOwnProperty(H)&&(q!=null||et!=null))switch(H){case"value":Ut=q;break;case"defaultValue":Ce=q;break;case"multiple":fe=q;default:q!==et&&Ga(d,m,H,q,P,et)}m=Ce,E=fe,P=$t,Ut!=null?ja(d,!!E,Ut,!1):!!P!=!!E&&(m!=null?ja(d,!!E,m,!0):ja(d,!!E,E?[]:"",!1));return;case"textarea":$t=Ut=null;for(Ce in E)if(H=E[Ce],E.hasOwnProperty(Ce)&&H!=null&&!P.hasOwnProperty(Ce))switch(Ce){case"value":break;case"children":break;default:Ga(d,m,Ce,null,P,H)}for(fe in P)if(H=P[fe],q=E[fe],P.hasOwnProperty(fe)&&(H!=null||q!=null))switch(fe){case"value":Ut=H;break;case"defaultValue":$t=H;break;case"children":break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(91));break;default:H!==q&&Ga(d,m,fe,H,P,q)}Vs(d,Ut,$t);return;case"option":for(var tr in E)Ut=E[tr],E.hasOwnProperty(tr)&&Ut!=null&&!P.hasOwnProperty(tr)&&(tr==="selected"?d.selected=!1:Ga(d,m,tr,null,P,Ut));for(et in P)Ut=P[et],$t=E[et],P.hasOwnProperty(et)&&Ut!==$t&&(Ut!=null||$t!=null)&&(et==="selected"?d.selected=Ut&&typeof Ut!="function"&&typeof Ut!="symbol":Ga(d,m,et,Ut,P,$t));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Or in E)Ut=E[Or],E.hasOwnProperty(Or)&&Ut!=null&&!P.hasOwnProperty(Or)&&Ga(d,m,Or,null,P,Ut);for(Ft in P)if(Ut=P[Ft],$t=E[Ft],P.hasOwnProperty(Ft)&&Ut!==$t&&(Ut!=null||$t!=null))switch(Ft){case"children":case"dangerouslySetInnerHTML":if(Ut!=null)throw Error(r(137,m));break;default:Ga(d,m,Ft,Ut,P,$t)}return;default:if(Si(m)){for(var za in E)Ut=E[za],E.hasOwnProperty(za)&&Ut!==void 0&&!P.hasOwnProperty(za)&&mO(d,m,za,void 0,P,Ut);for(Jt in P)Ut=P[Jt],$t=E[Jt],!P.hasOwnProperty(Jt)||Ut===$t||Ut===void 0&&$t===void 0||mO(d,m,Jt,Ut,P,$t);return}}for(var Mt in E)Ut=E[Mt],E.hasOwnProperty(Mt)&&Ut!=null&&!P.hasOwnProperty(Mt)&&Ga(d,m,Mt,null,P,Ut);for(cn in P)Ut=P[cn],$t=E[cn],!P.hasOwnProperty(cn)||Ut===$t||Ut==null&&$t==null||Ga(d,m,cn,Ut,P,$t)}function zQ(d){switch(d){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y6e(){if(typeof performance.getEntriesByType=="function"){for(var d=0,m=0,E=performance.getEntriesByType("resource"),P=0;P<E.length;P++){var H=E[P],q=H.transferSize,fe=H.initiatorType,Ce=H.duration;if(q&&Ce&&zQ(fe)){for(fe=0,Ce=H.responseEnd,P+=1;P<E.length;P++){var et=E[P],Ft=et.startTime;if(Ft>Ce)break;var Jt=et.transferSize,cn=et.initiatorType;Jt&&zQ(cn)&&(et=et.responseEnd,fe+=Jt*(et<Ce?1:(Ce-Ft)/(et-Ft)))}if(--P,m+=8*(q+fe)/(H.duration/1e3),d++,10<d)break}}if(0<d)return m/d/1e6}return navigator.connection&&(d=navigator.connection.downlink,typeof d=="number")?d:5}var AO=null,gO=null;function fM(d){return d.nodeType===9?d:d.ownerDocument}function $Q(d){switch(d){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qQ(d,m){if(d===0)switch(m){case"svg":return 1;case"math":return 2;default:return 0}return d===1&&m==="foreignObject"?0:d}function xO(d,m){return d==="textarea"||d==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.children=="bigint"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var vO=null;function X6e(){var d=window.event;return d&&d.type==="popstate"?d===vO?!1:(vO=d,!0):(vO=null,!1)}var WQ=typeof setTimeout=="function"?setTimeout:void 0,Q6e=typeof clearTimeout=="function"?clearTimeout:void 0,ZQ=typeof Promise=="function"?Promise:void 0,K6e=typeof queueMicrotask=="function"?queueMicrotask:typeof ZQ<"u"?function(d){return ZQ.resolve(null).then(d).catch(J6e)}:WQ;function J6e(d){setTimeout(function(){throw d})}function sA(d){return d==="head"}function YQ(d,m){var E=m,P=0;do{var H=E.nextSibling;if(d.removeChild(E),H&&H.nodeType===8)if(E=H.data,E==="/$"||E==="/&"){if(P===0){d.removeChild(H),D4(m);return}P--}else if(E==="$"||E==="$?"||E==="$~"||E==="$!"||E==="&")P++;else if(E==="html")hb(d.ownerDocument.documentElement);else if(E==="head"){E=d.ownerDocument.head,hb(E);for(var q=E.firstChild;q;){var fe=q.nextSibling,Ce=q.nodeName;q[rt]||Ce==="SCRIPT"||Ce==="STYLE"||Ce==="LINK"&&q.rel.toLowerCase()==="stylesheet"||E.removeChild(q),q=fe}}else E==="body"&&hb(d.ownerDocument.body);E=H}while(E);D4(m)}function XQ(d,m){var E=d;d=0;do{var P=E.nextSibling;if(E.nodeType===1?m?(E._stashedDisplay=E.style.display,E.style.display="none"):(E.style.display=E._stashedDisplay||"",E.getAttribute("style")===""&&E.removeAttribute("style")):E.nodeType===3&&(m?(E._stashedText=E.nodeValue,E.nodeValue=""):E.nodeValue=E._stashedText||""),P&&P.nodeType===8)if(E=P.data,E==="/$"){if(d===0)break;d--}else E!=="$"&&E!=="$?"&&E!=="$~"&&E!=="$!"||d++;E=P}while(E)}function yO(d){var m=d.firstChild;for(m&&m.nodeType===10&&(m=m.nextSibling);m;){var E=m;switch(m=m.nextSibling,E.nodeName){case"HTML":case"HEAD":case"BODY":yO(E),Rt(E);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(E.rel.toLowerCase()==="stylesheet")continue}d.removeChild(E)}}function ebe(d,m,E,P){for(;d.nodeType===1;){var H=E;if(d.nodeName.toLowerCase()!==m.toLowerCase()){if(!P&&(d.nodeName!=="INPUT"||d.type!=="hidden"))break}else if(P){if(!d[rt])switch(m){case"meta":if(!d.hasAttribute("itemprop"))break;return d;case"link":if(q=d.getAttribute("rel"),q==="stylesheet"&&d.hasAttribute("data-precedence"))break;if(q!==H.rel||d.getAttribute("href")!==(H.href==null||H.href===""?null:H.href)||d.getAttribute("crossorigin")!==(H.crossOrigin==null?null:H.crossOrigin)||d.getAttribute("title")!==(H.title==null?null:H.title))break;return d;case"style":if(d.hasAttribute("data-precedence"))break;return d;case"script":if(q=d.getAttribute("src"),(q!==(H.src==null?null:H.src)||d.getAttribute("type")!==(H.type==null?null:H.type)||d.getAttribute("crossorigin")!==(H.crossOrigin==null?null:H.crossOrigin))&&q&&d.hasAttribute("async")&&!d.hasAttribute("itemprop"))break;return d;default:return d}}else if(m==="input"&&d.type==="hidden"){var q=H.name==null?null:""+H.name;if(H.type==="hidden"&&d.getAttribute("name")===q)return d}else return d;if(d=$f(d.nextSibling),d===null)break}return null}function tbe(d,m,E){if(m==="")return null;for(;d.nodeType!==3;)if((d.nodeType!==1||d.nodeName!=="INPUT"||d.type!=="hidden")&&!E||(d=$f(d.nextSibling),d===null))return null;return d}function QQ(d,m){for(;d.nodeType!==8;)if((d.nodeType!==1||d.nodeName!=="INPUT"||d.type!=="hidden")&&!m||(d=$f(d.nextSibling),d===null))return null;return d}function _O(d){return d.data==="$?"||d.data==="$~"}
vendor: 4,382 bytes, line 9
9function bO(d){return d.data==="$!"||d.data==="$?"&&d.ownerDocument.readyState!=="loading"}function nbe(d,m){var E=d.ownerDocument;if(d.data==="$~")d._reactRetry=m;else if(d.data!=="$?"||E.readyState!=="loading")m();else{var P=function(){m(),E.removeEventListener("DOMContentLoaded",P)};E.addEventListener("DOMContentLoaded",P),d._reactRetry=P}}function $f(d){for(;d!=null;d=d.nextSibling){var m=d.nodeType;if(m===1||m===3)break;if(m===8){if(m=d.data,m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"||m==="F!"||m==="F")break;if(m==="/$"||m==="/&")return null}}return d}var wO=null;function KQ(d){d=d.nextSibling;for(var m=0;d;){if(d.nodeType===8){var E=d.data;if(E==="/$"||E==="/&"){if(m===0)return $f(d.nextSibling);m--}else E!=="$"&&E!=="$!"&&E!=="$?"&&E!=="$~"&&E!=="&"||m++}d=d.nextSibling}return null}function JQ(d){d=d.previousSibling;for(var m=0;d;){if(d.nodeType===8){var E=d.data;if(E==="$"||E==="$!"||E==="$?"||E==="$~"||E==="&"){if(m===0)return d;m--}else E!=="/$"&&E!=="/&"||m++}d=d.previousSibling}return null}function eK(d,m,E){switch(m=fM(E),d){case"html":if(d=m.documentElement,!d)throw Error(r(452));return d;case"head":if(d=m.head,!d)throw Error(r(453));return d;case"body":if(d=m.body,!d)throw Error(r(454));return d;default:throw Error(r(451))}}function hb(d){for(var m=d.attributes;m.length;)d.removeAttributeNode(m[0]);Rt(d)}var qf=new Map,tK=new Set;function dM(d){return typeof d.getRootNode=="function"?d.getRootNode():d.nodeType===9?d:d.ownerDocument}var gm=K.d;K.d={f:rbe,r:ibe,D:abe,C:sbe,L:obe,m:lbe,X:ube,S:cbe,M:fbe};function rbe(){var d=gm.f(),m=rM();return d||m}function ibe(d){var m=rn(d);m!==null&&m.tag===5&&m.type==="form"?xX(m):gm.r(d)}var C4=typeof document>"u"?null:document;function nK(d,m,E){var P=C4;if(P&&typeof m=="string"&&m){var H=Qr(m);H='link[rel="'+d+'"][href="'+H+'"]',typeof E=="string"&&(H+='[crossorigin="'+E+'"]'),tK.has(H)||(tK.add(H),d={rel:d,crossOrigin:E,href:m},P.querySelector(H)===null&&(m=P.createElement("link"),Xl(m,"link",d),sn(m),P.head.appendChild(m)))}}function abe(d){gm.D(d),nK("dns-prefetch",d,null)}function sbe(d,m){gm.C(d,m),nK("preconnect",d,m)}function obe(d,m,E){gm.L(d,m,E);var P=C4;if(P&&d&&m){var H='link[rel="preload"][as="'+Qr(m)+'"]';m==="image"&&E&&E.imageSrcSet?(H+='[imagesrcset="'+Qr(E.imageSrcSet)+'"]',typeof E.imageSizes=="string"&&(H+='[imagesizes="'+Qr(E.imageSizes)+'"]')):H+='[href="'+Qr(d)+'"]';var q=H;switch(m){case"style":q=N4(d);break;case"script":q=R4(d)}qf.has(q)||(d=f({rel:"preload",href:m==="image"&&E&&E.imageSrcSet?void 0:d,as:m},E),qf.set(q,d),P.querySelector(H)!==null||m==="style"&&P.querySelector(pb(q))||m==="script"&&P.querySelector(mb(q))||(m=P.createElement("link"),Xl(m,"link",d),sn(m),P.head.appendChild(m)))}}function lbe(d,m){gm.m(d,m);var E=C4;if(E&&d){var P=m&&typeof m.as=="string"?m.as:"script",H='link[rel="modulepreload"][as="'+Qr(P)+'"][href="'+Qr(d)+'"]',q=H;switch(P){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":q=R4(d)}if(!qf.has(q)&&(d=f({rel:"modulepreload",href:d},m),qf.set(q,d),E.querySelector(H)===null)){switch(P){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(E.querySelector(mb(q)))return}P=E.createElement("link"),Xl(P,"link",d),sn(P),E.head.appendChild(P)}}}function cbe(d,m,E){gm.S(d,m,E);var P=C4;if(P&&d){var H=Qt(P).hoistableStyles,q=N4(d);m=m||"default";var fe=H.get(q);if(!fe){var Ce={loading:0,preload:null};if(fe=P.querySelector(pb(q)))Ce.loading=5;else{d=f({rel:"stylesheet",href:d,"data-precedence":m},E),(E=qf.get(q))&&SO(d,E);var et=fe=P.createElement("link");sn(et),Xl(et,"link",d),et._p=new Promise(function(Ft,Jt){et.onload=Ft,et.onerror=Jt}),et.addEventListener("load",function(){Ce.loading|=1}),et.addEventListener("error",function(){Ce.loading|=2}),Ce.loading|=4,hM(fe,m,P)}fe={type:"stylesheet",instance:fe,count:1,state:Ce},H.set(q,fe)}}}function ube(d,m){gm.X(d,m);var E=C4;if(E&&d){var P=Qt(E).hoistableScripts,H=R4(d),q=P.get(H);q||(q=E.querySelector(mb(H)),q||(d=f({src:d,async:!0},m),(m=qf.get(H))&&TO(d,m),q=E.createElement("script"),sn(q),Xl(q,"link",d),E.head.appendChild(q)),q={type:"script",instance:q,count:1,state:null},P.set(H,q))}}function fbe(d,m){gm.M(d,m);var E=C4;if(E&&d){var P=Qt(E).hoistableScripts,H=R4(d),q=P.get(H);q||(q=E.querySelector(mb(H)),q||(d=f({src:d,async:!0,type:"module"}
vendor: 5,016 bytes, line 9
9,m),(m=qf.get(H))&&TO(d,m),q=E.createElement("script"),sn(q),Xl(q,"link",d),E.head.appendChild(q)),q={type:"script",instance:q,count:1,state:null},P.set(H,q))}}function rK(d,m,E,P){var H=(H=Ae.current)?dM(H):null;if(!H)throw Error(r(446));switch(d){case"meta":case"title":return null;case"style":return typeof E.precedence=="string"&&typeof E.href=="string"?(m=N4(E.href),E=Qt(H).hoistableStyles,P=E.get(m),P||(P={type:"style",instance:null,count:0,state:null},E.set(m,P)),P):{type:"void",instance:null,count:0,state:null};case"link":if(E.rel==="stylesheet"&&typeof E.href=="string"&&typeof E.precedence=="string"){d=N4(E.href);var q=Qt(H).hoistableStyles,fe=q.get(d);if(fe||(H=H.ownerDocument||H,fe={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},q.set(d,fe),(q=H.querySelector(pb(d)))&&!q._p&&(fe.instance=q,fe.state.loading=5),qf.has(d)||(E={rel:"preload",as:"style",href:E.href,crossOrigin:E.crossOrigin,integrity:E.integrity,media:E.media,hrefLang:E.hrefLang,referrerPolicy:E.referrerPolicy},qf.set(d,E),q||dbe(H,d,E,fe.state))),m&&P===null)throw Error(r(528,""));return fe}if(m&&P!==null)throw Error(r(529,""));return null;case"script":return m=E.async,E=E.src,typeof E=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=R4(E),E=Qt(H).hoistableScripts,P=E.get(m),P||(P={type:"script",instance:null,count:0,state:null},E.set(m,P)),P):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,d))}}function N4(d){return'href="'+Qr(d)+'"'}function pb(d){return'link[rel="stylesheet"]['+d+"]"}function iK(d){return f({},d,{"data-precedence":d.precedence,precedence:null})}function dbe(d,m,E,P){d.querySelector('link[rel="preload"][as="style"]['+m+"]")?P.loading=1:(m=d.createElement("link"),P.preload=m,m.addEventListener("load",function(){return P.loading|=1}),m.addEventListener("error",function(){return P.loading|=2}),Xl(m,"link",E),sn(m),d.head.appendChild(m))}function R4(d){return'[src="'+Qr(d)+'"]'}function mb(d){return"script[async]"+d}function aK(d,m,E){if(m.count++,m.instance===null)switch(m.type){case"style":var P=d.querySelector('style[data-href~="'+Qr(E.href)+'"]');if(P)return m.instance=P,sn(P),P;var H=f({},E,{"data-href":E.href,"data-precedence":E.precedence,href:null,precedence:null});return P=(d.ownerDocument||d).createElement("style"),sn(P),Xl(P,"style",H),hM(P,E.precedence,d),m.instance=P;case"stylesheet":H=N4(E.href);var q=d.querySelector(pb(H));if(q)return m.state.loading|=4,m.instance=q,sn(q),q;P=iK(E),(H=qf.get(H))&&SO(P,H),q=(d.ownerDocument||d).createElement("link"),sn(q);var fe=q;return fe._p=new Promise(function(Ce,et){fe.onload=Ce,fe.onerror=et}),Xl(q,"link",P),m.state.loading|=4,hM(q,E.precedence,d),m.instance=q;case"script":return q=R4(E.src),(H=d.querySelector(mb(q)))?(m.instance=H,sn(H),H):(P=E,(H=qf.get(q))&&(P=f({},E),TO(P,H)),d=d.ownerDocument||d,H=d.createElement("script"),sn(H),Xl(H,"link",P),d.head.appendChild(H),m.instance=H);case"void":return null;default:throw Error(r(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(P=m.instance,m.state.loading|=4,hM(P,E.precedence,d));return m.instance}function hM(d,m,E){for(var P=E.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),H=P.length?P[P.length-1]:null,q=H,fe=0;fe<P.length;fe++){var Ce=P[fe];if(Ce.dataset.precedence===m)q=Ce;else if(q!==H)break}q?q.parentNode.insertBefore(d,q.nextSibling):(m=E.nodeType===9?E.head:E,m.insertBefore(d,m.firstChild))}function SO(d,m){d.crossOrigin==null&&(d.crossOrigin=m.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=m.referrerPolicy),d.title==null&&(d.title=m.title)}function TO(d,m){d.crossOrigin==null&&(d.crossOrigin=m.crossOrigin),d.referrerPolicy==null&&(d.referrerPolicy=m.referrerPolicy),d.integrity==null&&(d.integrity=m.integrity)}var pM=null;function sK(d,m,E){if(pM===null){var P=new Map,H=pM=new Map;H.set(E,P)}else H=pM,P=H.get(E),P||(P=new Map,H.set(E,P));if(P.has(d))return P;for(P.set(d,null),E=E.getElementsByTagName(d),H=0;H<E.length;H++){var q=E[H];if(!(q[rt]||q[be]||d==="link"&&q.getAttribute("rel")==="stylesheet")&&q.namespaceURI!=="http://www.w3.org/2000/svg"){var fe=q.getAttribute(m)||"";fe=d+fe;var Ce=P.get(fe);Ce?Ce.push(q):P.set(fe,[q])}}return P}function oK(d,m,E){d=d.ownerDocument||d,d.head.insertBefore(E,m==="title"?d.querySelector("head > title"):null)}function hbe(d,m,E){if(E===1||m.itemProp!=null)return!1;switch(d){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;return m.rel==="stylesheet"?(d=m.disabled,typeof m.precedence=="string"&&d==null):!0;case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function lK(d){return!(d.type==="stylesheet"&&(d.state.loading&3)===0)}function pbe(d,m,E,P){if(E.type==="stylesheet"&&(typeof P.media!="str
9ing"||matchMedia(P.media).matches!==!1)&&(E.state.loading&4)===0){if(E.instance===null){var H=N4(P.href),q=m.querySelector(pb(H));if(q){m=q._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(d.count++,d=mM.bind(d),m.then(d,d)),E.state.loading|=4,E.instance=q,sn(q);return}q=m.ownerDocument||m,P=iK(P),(H=qf.get(H))&&SO(P,H),q=q.createElement("link"),sn(q);var fe=q;fe._p=new Promise(function(Ce,et){fe.onload=Ce,fe.onerror=et}),Xl(q,"link",P),E.instance=q}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(E,m),(m=E.state.preload)&&(E.state.loading&3)===0&&(d.count++,E=mM.bind(d),m.addEventListener("load",E),m.addEventListener("error",E))}}var EO=0;function mbe(d,m){return d.stylesheets&&d.count===0&&gM(d,d.stylesheets),0<d.count||0<d.imgCount?function(E){var P=setTimeout(function(){if(d.stylesheets&&gM(d,d.stylesheets),d.unsuspend){var q=d.unsuspend;d.unsuspend=null,q()}},6e4+m);0<d.imgBytes&&EO===0&&(EO=62500*Y6e());var H=setTimeout(function(){if(d.waitingForImages=!1,d.count===0&&(d.stylesheets&&gM(d,d.stylesheets),d.unsuspend)){var q=d.unsuspend;d.unsuspend=null,q()}},(d.imgBytes>EO?50:800)+m);return d.unsuspend=E,function(){d.unsuspend=null,clearTimeout(P),clearTimeout(H)}}:null}function mM(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gM(this,this.stylesheets);else if(this.unsuspend){var d=this.unsuspend;this.unsuspend=null,d()}}}var AM=null;function gM(d,m){d.stylesheets=null,d.unsuspend!==null&&(d.count++,AM=new Map,m.forEach(Abe,d),AM=null,mM.call(d))}function Abe(d,m){if(!(m.state.loading&4)){var E=AM.get(d);if(E)var P=E.get(null);else{E=new Map,AM.set(d,E);for(var H=d.querySelectorAll("link[data-precedence],style[data-precedence]"),q=0;q<H.length;q++){var fe=H[q];(fe.nodeName==="LINK"||fe.getAttribute("media")!=="not all")&&(E.set(fe.dataset.precedence,fe),P=fe)}P&&E.set(null,P)}H=m.instance,fe=H.getAttribute("data-precedence"),q=E.get(fe)||P,q===P&&E.set(null,H),E.set(fe,H),this.count++,P=mM.bind(this),H.addEventListener("load",P),H.addEventListener("error",P),q?q.parentNode.insertBefore(H,q.nextSibling):(d=d.nodeType===9?d.head:d,d.insertBefore(H,d.firstChild)),m.state.loading|=4}}var Ab={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function gbe(d,m,E,P,H,q,fe,Ce,et){this.tag=1,this.containerInfo=d,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.hiddenUpdates=Bt(null),this.identifierPrefix=P,this.onUncaughtError=H,this.onCaughtError=q,this.onRecoverableError=fe,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=et,this.incompleteTransitions=new Map}function cK(d,m,E,P,H,q,fe,Ce,et,Ft,Jt,cn){return d=new gbe(d,m,E,fe,et,Ft,Jt,cn,Ce),m=1,q===!0&&(m|=24),q=Sc(3,null,null,m),d.current=q,q.stateNode=d,m=no(),m.refCount++,d.pooledCache=m,m.refCount++,q.memoizedState={element:P,isDehydrated:E,cache:m},Ue(q),d}function uK(d){return d?(d=Kp,d):Kp}function fK(d,m,E,P,H,q){H=uK(H),P.context===null?P.context=H:P.pendingContext=H,P=At(m),P.payload={element:E},q=q===void 0?null:q,q!==null&&(P.callback=q),E=Pt(d,P,m),E!==null&&(a0(E,d,m),Et(E,d,m))}function dK(d,m){if(d=d.memoizedState,d!==null&&d.dehydrated!==null){var E=d.retryLane;d.retryLane=E!==0&&E<m?E:m}}function MO(d,m){dK(d,m),(d=d.alternate)&&dK(d,m)}function hK(d){if(d.tag===13||d.tag===31){var m=Qp(d,67108864);m!==null&&a0(m,d,67108864),MO(d,67108864)}}function pK(d){if(d.tag===13||d.tag===31){var m=q0();m=xt(m);var E=Qp(d,m);E!==null&&a0(E,d,m),MO(d,m)}}var xM=!0;function xbe(d,m,E,P){var H=X.T;X.T=null;var q=K.p;try{K.p=2,CO(d,m,E,P)}finally{K.p=q,X.T=H}}function vbe(d,m,E,P){var H=X.T;X.T=null;var q=K.p;try{K.p=8,CO(d,m,E,P)}finally{K.p=q,X.T=H}}function CO(d,m,E,P){if(xM){var H=NO(P);if(H===null)pO(d,m,P,vM,E),AK(d,P);else if(_be(H,d,m,E,P))P.stopPropagation();else if(AK(d,P),m&4&&-1<ybe.indexOf(d)){for(;H!==null;){var q=rn(H);if(q!==null)switch(q.tag){case 3:if(q=q.stateNode,q.current.memoizedState.isDehydrated){var fe=kt(q.pendingLanes);if(fe!==0){var Ce=q;for(Ce.pendingLanes|=2,Ce.entangledLanes|=2;fe;){var et=1<<31-Zt(fe);Ce.entanglements[1]|=et,fe&=~et}c1(q),(pa&6)===0&&(tM=nt()+500,ub(0))}}break;case 31:case 13:Ce=Qp(q,2),Ce!==null&&a0(Ce,q,2),rM(),MO(q,2)}if(q=NO(P),q===null&&pO(d,m,P,vM,E),q===H)break;H=q}H!==null&&P.stopPropagation()}else pO(d,m,P,null,E)}}function NO(d){return d=Lf(d),RO(d)}var vM=null;function RO(d){if(vM=null,d=Xt(d),d!==null){var m=a(d);if(m===null)d=null;else{var E=m.tag;if(E===13){if(d=s(m),d!==null)return d;d=null}else if(E===31){if(d=o(m),d!==null)return d;d=null}else if(E===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;d=null}else m!==d&&(d=null)}}return vM=d,null}function mK(d){switch(d){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,676 bytes, line 9
9: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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ht()){case ve:return 2;case ce:return 8;case je:case dt:return 32;case ft:return 268435456;default:return 32}default:return 32}}var DO=!1,oA=null,lA=null,cA=null,gb=new Map,xb=new Map,uA=[],ybe="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".split(" ");function AK(d,m){switch(d){case"focusin":case"focusout":oA=null;break;case"dragenter":case"dragleave":lA=null;break;case"mouseover":case"mouseout":cA=null;break;case"pointerover":case"pointerout":gb.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":xb.delete(m.pointerId)}}function vb(d,m,E,P,H,q){return d===null||d.nativeEvent!==q?(d={blockedOn:m,domEventName:E,eventSystemFlags:P,nativeEvent:q,targetContainers:[H]},m!==null&&(m=rn(m),m!==null&&hK(m)),d):(d.eventSystemFlags|=P,m=d.targetContainers,H!==null&&m.indexOf(H)===-1&&m.push(H),d)}function _be(d,m,E,P,H){switch(m){case"focusin":return oA=vb(oA,d,m,E,P,H),!0;case"dragenter":return lA=vb(lA,d,m,E,P,H),!0;case"mouseover":return cA=vb(cA,d,m,E,P,H),!0;case"pointerover":var q=H.pointerId;return gb.set(q,vb(gb.get(q)||null,d,m,E,P,H)),!0;case"gotpointercapture":return q=H.pointerId,xb.set(q,vb(xb.get(q)||null,d,m,E,P,H)),!0}return!1}function gK(d){var m=Xt(d.target);if(m!==null){var E=a(m);if(E!==null){if(m=E.tag,m===13){if(m=s(E),m!==null){d.blockedOn=m,Te(d.priority,function(){pK(E)});return}}else if(m===31){if(m=o(E),m!==null){d.blockedOn=m,Te(d.priority,function(){pK(E)});return}}else if(m===3&&E.stateNode.current.memoizedState.isDehydrated){d.blockedOn=E.tag===3?E.stateNode.containerInfo:null;return}}}d.blockedOn=null}function yM(d){if(d.blockedOn!==null)return!1;for(var m=d.targetContainers;0<m.length;){var E=NO(d.nativeEvent);if(E===null){E=d.nativeEvent;var P=new E.constructor(E.type,E);kf=P,E.target.dispatchEvent(P),kf=null}else return m=rn(E),m!==null&&hK(m),d.blockedOn=E,!1;m.shift()}return!0}function xK(d,m,E){yM(d)&&E.delete(m)}function bbe(){DO=!1,oA!==null&&yM(oA)&&(oA=null),lA!==null&&yM(lA)&&(lA=null),cA!==null&&yM(cA)&&(cA=null),gb.forEach(xK),xb.forEach(xK)}function _M(d,m){d.blockedOn===m&&(d.blockedOn=null,DO||(DO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,bbe)))}var bM=null;function vK(d){bM!==d&&(bM=d,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){bM===d&&(bM=null);for(var m=0;m<d.length;m+=3){var E=d[m],P=d[m+1],H=d[m+2];if(typeof P!="function"){if(RO(P||E)===null)continue;break}var q=rn(E);q!==null&&(d.splice(m,3),m-=3,NL(q,{pending:!0,data:H,method:E.method,action:P},P,H))}}))}function D4(d){function m(et){return _M(et,d)}oA!==null&&_M(oA,d),lA!==null&&_M(lA,d),cA!==null&&_M(cA,d),gb.forEach(m),xb.forEach(m);for(var E=0;E<uA.length;E++){var P=uA[E];P.blockedOn===d&&(P.blockedOn=null)}for(;0<uA.length&&(E=uA[0],E.blockedOn===null);)gK(E),E.blockedOn===null&&uA.shift();if(E=(d.ownerDocument||d).$$reactFormReplay,E!=null)for(P=0;P<E.length;P+=3){var H=E[P],q=E[P+1],fe=H[xe]||null;if(typeof q=="function")fe||vK(E);else if(fe){var Ce=null;if(q&&q.hasAttribute("formAction")){if(H=q,fe=q[xe]||null)Ce=fe.formAction;else if(RO(H)!==null)continue}else Ce=fe.action;typeof Ce=="function"?E[P+1]=Ce:(E.splice(P,3),P-=3),vK(E)}}}function yK(){function d(q){q.canIntercept&&q.info==="react-transition"&&q.intercept({handler:function(){return new Promise(function(fe){return H=fe})},focusReset:"manual",scroll:"manual"})}function m(){H!==null&&(H(),H=null),P||setTimeout(E,20)}
9function E(){if(!P&&!navigation.transition){var q=navigation.currentEntry;q&&q.url!=null&&navigation.navigate(q.url,{state:q.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var P=!1,H=null;return navigation.addEventListener("navigate",d),navigation.addEventListener("navigatesuccess",m),navigation.addEventListener("navigateerror",m),setTimeout(E,100),function(){P=!0,navigation.removeEventListener("navigate",d),navigation.removeEventListener("navigatesuccess",m),navigation.removeEventListener("navigateerror",m),H!==null&&(H(),H=null)}}}function PO(d){this._internalRoot=d}wM.prototype.render=PO.prototype.render=function(d){var m=this._internalRoot;if(m===null)throw Error(r(409));var E=m.current,P=q0();fK(E,P,d,m,null,null)},wM.prototype.unmount=PO.prototype.unmount=function(){var d=this._internalRoot;if(d!==null){this._internalRoot=null;var m=d.containerInfo;fK(d.current,2,null,d,null,null),rM(),m[we]=null}};function wM(d){this._internalRoot=d}wM.prototype.unstable_scheduleHydration=function(d){if(d){var m=W();d={blockedOn:null,target:d,priority:m};for(var E=0;E<uA.length&&m!==0&&m<uA[E].priority;E++);uA.splice(E,0,d),E===0&&gK(d)}};var _K=e.version;if(_K!=="19.2.4")throw Error(r(527,_K,"19.2.4"));K.findDOMNode=function(d){var m=d._reactInternals;if(m===void 0)throw typeof d.render=="function"?Error(r(188)):(d=Object.keys(d).join(","),Error(r(268,d)));return d=c(m),d=d!==null?u(d):null,d=d===null?null:d.stateNode,d};var wbe={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var SM=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!SM.isDisabled&&SM.supportsFiber)try{ut=SM.inject(wbe),gt=SM}catch{}}return _b.createRoot=function(d,m){if(!i(d))throw Error(r(299));var E=!1,P="",H=CX,q=NX,fe=RX;return m!=null&&(m.unstable_strictMode===!0&&(E=!0),m.identifierPrefix!==void 0&&(P=m.identifierPrefix),m.onUncaughtError!==void 0&&(H=m.onUncaughtError),m.onCaughtError!==void 0&&(q=m.onCaughtError),m.onRecoverableError!==void 0&&(fe=m.onRecoverableError)),m=cK(d,1,!1,null,null,E,P,null,H,q,fe,yK),d[we]=m.current,hO(d),new PO(m)},_b.hydrateRoot=function(d,m,E){if(!i(d))throw Error(r(299));var P=!1,H="",q=CX,fe=NX,Ce=RX,et=null;return E!=null&&(E.unstable_strictMode===!0&&(P=!0),E.identifierPrefix!==void 0&&(H=E.identifierPrefix),E.onUncaughtError!==void 0&&(q=E.onUncaughtError),E.onCaughtError!==void 0&&(fe=E.onCaughtError),E.onRecoverableError!==void 0&&(Ce=E.onRecoverableError),E.formState!==void 0&&(et=E.formState)),m=cK(d,1,!0,m,E??null,P,H,et,q,fe,Ce,yK),m.context=uK(null),E=m.current,P=q0(),P=xt(P),H=At(P),H.callback=null,Pt(E,H,P),E=P,m.current.lanes=E,Gt(m,E),c1(m),d[we]=m.current,hO(d),new wM(m)},_b.version="19.2.4",_b}var DK;function Lbe(){if(DK)return OO.exports;DK=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),OO.exports=kbe(),OO.exports}var Obe=Lbe(),UO={exports:{}},VO={};var PK;function Fbe(){if(PK)return VO;PK=1;var t=GD().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return VO.c=function(e){return t.H.useMemoCache(e)},VO}var kK;function Ibe(){return kK||(kK=1,UO.exports=Fbe()),UO.exports}var Dn=Ibe();var LK="popstate";function OK(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Bbe(t={}){function e(r,i){let a=i.state?.masked,{pathname:s,search:o,hash:l}=a||r.location;return _U("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:US(i)}return Vbe(e,n,null,t)}function Qs(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Vh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Ube(){return Math.random().toString(36).substring(2,10)}function FK(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function _U(t,e,n=null,r,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Y_(e):e,state:n,key:e&&e.key||r||Ube(),unstable_mask:i}}function US({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Y_(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Vbe(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function f(){o="POP";let w=u(),T=w==null?null:w-c;c=w,l&&l({action:o,location:g.location,delta:T})}function h(w,T){o="PUSH";let C=OK(w)?w:_U(g.location,w,T);c=u()+1;let M=FK(C,c),D=g.createHref(C.unstable_mask||C);try{s.pushState(M,"",D)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(D)}a&&l&&l({action:o,location:g.location,delta:1})}function p(w,T){o="REPLACE";let C=OK(w)?w:_U(g.location,w,T);c=u();let M=FK(C,c),D=g.createHref(C.unstable_mask||C);s.replaceState(M,"",D),a&&l&&l({action:o,location:g.location,delta:0})}function A(w){return jbe(w)}let g={get action(){return o},get location(){return t(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(LK,f),l=w,()=>{i.removeEventListener(LK,f),l=null}},createHref(w){return e(i,w)},createURL:A,encodeLocation(w){let T=A(w);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:h,replace:p,go(w){return s.go(w)}};return g}function jbe(t,e=!1){let n="http://localhost";
9typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Qs(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:US(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function mce(t,e,n="/"){return Hbe(t,e,n,!1)}function Hbe(t,e,n,r){let i=typeof e=="string"?Y_(e):e,a=A2(i.pathname||"/",n);if(a==null)return null;let s=Ace(t);Gbe(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let c=ewe(a);o=Kbe(s[l],c,r)}return o}function Ace(t,e=[],n=[],r="",i=!1){let a=(s,o,l=i,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Qs(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let f=ep([r,u.relativePath]),h=n.concat(u);s.children&&s.children.length>0&&(Qs(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Ace(s.children,e,h,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:Xbe(f,s.index),routesMeta:h})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of gce(s.path))a(s,o,!0,l)}),e}function gce(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=gce(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function Gbe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Qbe(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var zbe=/^:[\w-]+$/,$be=3,qbe=2,Wbe=1,Zbe=10,Ybe=-2,IK=t=>t==="*";function Xbe(t,e){let n=t.split("/"),r=n.length;return n.some(IK)&&(r+=Ybe),e&&(r+=qbe),n.filter(i=>!IK(i)).reduce((i,a)=>i+(zbe.test(a)?$be:a===""?Wbe:Zbe),r)}function Qbe(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Kbe(t,e,n=!1){let{routesMeta:r}=t,i={},a="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],c=o===r.length-1,u=a==="/"?e:e.slice(a.length)||"/",f=mN({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=mN({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!f)return null;
9Object.assign(i,f.params),s.push({params:i,pathname:ep([a,f.pathname]),pathnameBase:iwe(ep([a,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(a=ep([a,f.pathnameBase]))}return s}function mN(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Jbe(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:f},h)=>{if(u==="*"){let A=o[h]||"";s=a.slice(0,a.length-A.length).replace(/(.)\/+$/,"$1")}const p=o[h];return f&&!p?c[u]=void 0:c[u]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function Jbe(t,e=!1,n=!0){Vh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,c,u)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let f=u.charAt(c+s.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function ewe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Vh(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function A2(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var twe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function nwe(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Y_(t):t,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=BK(n.substring(1),"/"):a=BK(n,e)):a=e,{pathname:a,search:awe(r),hash:swe(i)}}function BK(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function jO(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rwe(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function xce(t){let e=rwe(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function lG(t,e,n,r=!1){let i;typeof t=="string"?i=Y_(t):(i={...t},Qs(!i.pathname||!i.pathname.includes("?"),jO("?","pathname","search",i)),Qs(!i.pathname||!i.pathname.includes("#"),jO("#","pathname","hash",i)),Qs(!i.search||!i.search.includes("#"),jO("#","search","hash",i)));let a=t===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}o=f>=0?e[f]:"/"}let l=nwe(i,o),c=s&&s!=="/"&&s.endsWith("/"),u=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var ep=t=>t.join("/").replace(/\/\/+/g,"/"),iwe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),awe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,swe=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,owe=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function lwe(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function cwe(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yce(t,e){let n=t;
9if(typeof n!="string"||!twe.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(vce)try{let a=new URL(window.location.href),s=n.startsWith("//")?new URL(a.protocol+n):new URL(n),o=A2(s.pathname,e);s.origin===a.origin&&o!=null?n=o+s.search+s.hash:i=!0}catch{Vh(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _ce=["POST","PUT","PATCH","DELETE"];new Set(_ce);var uwe=["GET",..._ce];new Set(uwe);var X_=b.createContext(null);X_.displayName="DataRouter";var zD=b.createContext(null);zD.displayName="DataRouterState";var fwe=b.createContext(!1),bce=b.createContext({isTransitioning:!1});bce.displayName="ViewTransition";var dwe=b.createContext(new Map);dwe.displayName="Fetchers";var hwe=b.createContext(null);hwe.displayName="Await";var Rd=b.createContext(null);Rd.displayName="Navigation";var dT=b.createContext(null);dT.displayName="Location";var Cp=b.createContext({outlet:null,matches:[],isDataRoute:!1});Cp.displayName="Route";var cG=b.createContext(null);cG.displayName="RouteError";var wce="REACT_ROUTER_ERROR",pwe="REDIRECT",mwe="ROUTE_ERROR_RESPONSE";function Awe(t){if(t.startsWith(`${wce}:${pwe}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function gwe(t){if(t.startsWith(`${wce}:${mwe}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new owe(e.status,e.statusText,e.data)}catch{}}function xwe(t,{relative:e}={}){Qs(hT(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Rd),{hash:i,pathname:a,search:s}=mT(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:ep([n,a])),r.createHref({pathname:o,search:s,hash:i})}function hT(){return b.useContext(dT)!=null}function Dd(){return Qs(hT(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(dT).location}var Sce="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tce(t){b.useContext(Rd).static||b.useLayoutEffect(t)}function Ss(){let{isDataRoute:t}=b.useContext(Cp);return t?Dwe():vwe()}function vwe(){Qs(hT(),"useNavigate() may be used only in the context of a <Router> component.");let t=b.useContext(X_),{basename:e,navigator:n}=b.useContext(Rd),{matches:r}=b.useContext(Cp),{pathname:i}=Dd(),a=JSON.stringify(xce(r)),s=b.useRef(!1);return Tce(()=>{s.current=!0}),b.useCallback((l,c={})=>{if(Vh(s.current,Sce),!s.current)return;if(typeof l=="number"){n.go(l);return}let u=lG(l,JSON.parse(a),i,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:ep([e,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[e,n,a,i,t])}b.createContext(null);function pT(){let{matches:t}=b.useContext(Cp),e=t[t.length-1];return e?e.params:{}}function mT(t,{relative:e}={}){let{matches:n}=b.useContext(Cp),{pathname:r}=Dd(),i=JSON.stringify(xce(n));return b.useMemo(()=>lG(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function ywe(t,e){return Ece(t,e)}function Ece(t,e,n){Qs(hT(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=b.useContext(Rd),{matches:i}=b.useContext(Cp),a=i[i.length-1],s=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route;{let w=c&&c.path||"";Cce(o,!c||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 10 11Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let u=Dd(),f;if(e){let w=typeof e=="string"?Y_(e):e;Qs(l==="/"||w.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${w.pathname}" was given in the \`location\` prop.`),f=w}else f=u;let h=f.pathname||"/",p=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let A=mce(t,{pathname:p});Vh(c||A!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Vh(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Twe(A&&A.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:ep([l,r.encodeLocation?r.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ep([l,r.encodeLocation?r.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),i,n);return e&&g?b.createElement(dT.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...f},navigationType:"POP"}},g):g}function _we(){let t=Rwe(),e=lwe(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=b.createElement(b.Fragment,null,b.createElement("p",null,"ð¿ Hey developer ð"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:a},"ErrorBoundary")," or"," ",b.createElement("code",{style:a},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
11Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),n?b.createElement("pre",{style:i},n):null,s)}var bwe=b.createElement(_we,null),Mce=class extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=gwe(t.digest);n&&(t=n)}let e=t!==void 0?b.createElement(Cp.Provider,{value:this.props.routeContext},b.createElement(cG.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?b.createElement(wwe,{error:t},e):e}};Mce.contextType=fwe;var HO=new WeakMap;function wwe({children:t,error:e}){let{basename:n}=b.useContext(Rd);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Awe(e.digest);if(r){let i=HO.get(e);if(i)throw i;let a=yce(r.location,n);if(vce&&!HO.get(e))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw HO.set(e,s),s}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return t}function Swe({routeContext:t,match:e,children:n}){let r=b.useContext(X_);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),b.createElement(Cp.Provider,{value:t},n)}function Twe(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,a=r?.errors;if(a!=null){let u=i.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);Qs(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,o=-1;if(n&&r){s=r.renderFallback;for(let u=0;u<i.length;u++){let f=i[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(o=u),f.route.id){let{loaderData:h,errors:p}=r,A=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||A){n.isStatic&&(s=!0),o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}}let l=n?.onError,c=r&&l?(u,f)=>{l(u,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:cwe(r.matches),errorInfo:f})}:void 0;return i.reduceRight((u,f,h)=>{let p,A=!1,g=null,w=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||bwe,s&&(o<0&&h===0?(Cce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,w=null):o===h&&(A=!0,w=f.route.hydrateFallbackElement||null)));let T=e.concat(i.slice(0,h+1)),C=()=>{let M;return p?M=g:A?M=w:f.route.Component?M=b.createElement(f.route.Component,null):f.route.element?M=f.route.element:M=u,b.createElement(Swe,{match:f,routeContext:{outlet:u,matches:T,isDataRoute:r!=null},children:M})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(Mce,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:C(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:c}):C()},null)}function uG(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ewe(t){let e=b.useContext(X_);return Qs(e,uG(t)),e}function Mwe(t){let e=b.useContext(zD);return Qs(e,uG(t)),e}function Cwe(t){let e=b.useContext(Cp);return Qs(e,uG(t)),e}function fG(t){let e=Cwe(t),n=e.matches[e.matches.length-1];return Qs(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Nwe(){return fG("useRouteId")}function Rwe(){let t=b.useContext(cG),e=Mwe("useRouteError"),n=fG("useRouteError");return t!==void 0?t:e.errors?.[n]}function Dwe(){let{router:t}=Ewe("useNavigate"),e=fG("useNavigate"),n=b.useRef(!1);return Tce(()=>{n.current=!0}),b.useCallback(async(i,a={})=>{Vh(n.current,Sce),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var UK={};function Cce(t,e,n){!e&&!UK[t]&&(UK[t]=!0,Vh(!1,n))}b.memo(Pwe);function Pwe({routes:t,future:e,state:n,isStatic:r,onError:i}){return Ece(t,void 0,{state:n,isStatic:r,onError:i})}function hs(t){Qs(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function kwe({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){Qs(!hT(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=t.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:o,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[o,i,a,s]);typeof n=="string"&&(n=Y_(n));let{pathname:c="/",search:u="",hash:f="",state:h=null,key:p="default",unstable_mask:A}=n,g=b.useMemo(()=>{let w=A2(c,o);
11return w==null?null:{location:{pathname:w,search:u,hash:f,state:h,key:p,unstable_mask:A},navigationType:r}},[o,c,u,f,h,p,r,A]);return Vh(g!=null,`<Router basename="${o}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:b.createElement(Rd.Provider,{value:l},b.createElement(dT.Provider,{children:e,value:g}))}function Lwe({children:t,location:e}){return ywe(bU(t),e)}function bU(t,e=[]){let n=[];return b.Children.forEach(t,(r,i)=>{if(!b.isValidElement(r))return;let a=[...e,i];if(r.type===b.Fragment){n.push.apply(n,bU(r.props.children,a));return}Qs(r.type===hs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qs(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=bU(r.props.children,a)),n.push(s)}),n}var r9="get",i9="application/x-www-form-urlencoded";function $D(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Owe(t){return $D(t)&&t.tagName.toLowerCase()==="button"}function Fwe(t){return $D(t)&&t.tagName.toLowerCase()==="form"}function Iwe(t){return $D(t)&&t.tagName.toLowerCase()==="input"}function Bwe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Uwe(t,e){return t.button===0&&(!e||e==="_self")&&!Bwe(t)}function wU(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Vwe(t,e){let n=wU(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(a=>{n.append(i,a)})}),n}var TM=null;function jwe(){if(TM===null)try{new FormData(document.createElement("form"),0),TM=!1}catch{TM=!0}return TM}var Hwe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function GO(t){return t!=null&&!Hwe.has(t)?(Vh(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${i9}"`),null):t}function Gwe(t,e){let n,r,i,a,s;if(Fwe(t)){let o=t.getAttribute("action");r=o?A2(o,e):null,n=t.getAttribute("method")||r9,i=GO(t.getAttribute("enctype"))||i9,a=new FormData(t)}else if(Owe(t)||Iwe(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?A2(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||r9,i=GO(t.getAttribute("formenctype"))||GO(o.getAttribute("enctype"))||i9,a=new FormData(o,t),!jwe()){let{name:c,type:u,value:f}=t;if(u==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,f)}}else{if($D(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=r9,r=null,i=i9,s=t}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dG(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function zwe(t,e,n,r){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:e&&A2(i.pathname,e)==="/"?i.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function $we(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function qwe(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Wwe(t,e,n){let r=await Promise.all(t.map(async i=>{let a=e.routes[i.route.id];if(a){let s=await $we(a,n);return s.links?s.links():[]}return[]}));return Qwe(r.flat(1).filter(qwe).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function VK(t,e,n,r,i,a){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,o=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return a==="assets"?e.filter((l,c)=>s(l,c)||o(l,c)):a==="data"?e.filter((l,c)=>{let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||o(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParam
11s:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Zwe(t,e,{includeHydrateFallback:n}={}){return Ywe(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function Ywe(t){return[...new Set(t)]}function Xwe(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Qwe(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let a=JSON.stringify(Xwe(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function Nce(){let t=b.useContext(X_);return dG(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Kwe(){let t=b.useContext(zD);return dG(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var hG=b.createContext(void 0);hG.displayName="FrameworkContext";function Rce(){let t=b.useContext(hG);return dG(t,"You must render this element inside a <HydratedRouter> element"),t}function Jwe(t,e){let n=b.useContext(hG),[r,i]=b.useState(!1),[a,s]=b.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:f}=e,h=b.useRef(null);b.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let g=T=>{T.forEach(C=>{s(C.isIntersecting)})},w=new IntersectionObserver(g,{threshold:.5});return h.current&&w.observe(h.current),()=>{w.disconnect()}}},[t]),b.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let p=()=>{i(!0)},A=()=>{i(!1),s(!1)};return n?t!=="intent"?[a,h,{}]:[a,h,{onFocus:bb(o,p),onBlur:bb(l,A),onMouseEnter:bb(c,p),onMouseLeave:bb(u,A),onTouchStart:bb(f,p)}]:[!1,h,{}]}function bb(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function eSe({page:t,...e}){let{router:n}=Nce(),r=b.useMemo(()=>mce(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?b.createElement(nSe,{page:t,matches:r,...e}):null}function tSe(t){let{manifest:e,routeModules:n}=Rce(),[r,i]=b.useState([]);return b.useEffect(()=>{let a=!1;return Wwe(t,e,n).then(s=>{a||i(s)}),()=>{a=!0}},[t,e,n]),r}function nSe({page:t,matches:e,...n}){let r=Dd(),{future:i,manifest:a,routeModules:s}=Rce(),{basename:o}=Nce(),{loaderData:l,matches:c}=Kwe(),u=b.useMemo(()=>VK(t,e,c,a,r,"data"),[t,e,c,a,r]),f=b.useMemo(()=>VK(t,e,c,a,r,"assets"),[t,e,c,a,r]),h=b.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let g=new Set,w=!1;if(e.forEach(C=>{let M=a.routes[C.route.id];!M||!M.hasLoader||(!u.some(D=>D.route.id===C.route.id)&&C.route.id in l&&s[C.route.id]?.shouldRevalidate||M.hasClientLoader?w=!0:g.add(C.route.id))}),g.size===0)return[];let T=zwe(t,o,i.unstable_trailingSlashAwareDataRequests,"data");return w&&g.size>0&&T.searchParams.set("_routes",e.filter(C=>g.has(C.route.id)).map(C=>C.route.id).join(",")),[T.pathname+T.search]},[o,i.unstable_trailingSlashAwareDataRequests,l,r,a,u,e,t,s]),p=b.useMemo(()=>Zwe(f,a),[f,a]),A=tSe(f);return b.createElement(b.Fragment,null,h.map(g=>b.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>b.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),A.map(({key:g,link:w})=>b.createElement("link",{key:g,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function rSe(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var iSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iSe&&(window.__reactRouterVersion="7.13.1")}catch{}function aSe({basename:t,children:e,unstable_useTransitions:n,window:r}){let i=b.useRef();i.current==null&&(i.current=Bbe({window:r,v5Compat:!0}));let a=i.current,[s,o]=b.useState({action:a.action,location:a.location}),l=b.useCallback(c=>{n===!1?o(c):b.startTransition(()=>o(c))},[n]);return b.useLayoutEffect(()=>a.listen(l),[a,l]),b.createElement(kwe,{basename:t,children:e,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:n})}var Dce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AN=b.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,unstable_mask:o,state:l,target:c,to:u,preventScrollReset:f,viewTransition:h,unstable_defaultShouldRevalidate:p,...A},g){let{basename:w,navigator:T,unstable_useTransitions:C}=b.useContext(Rd),M=typeof u=="string"&&Dce.test(u),D=yce(u,w);u=D.to;let k=xwe(u,{relative:i}),I=Dd(),L=null;if(o){let Z=lG(o,[],I.unstable_mask?I.unstable_mask.pathname:"/",!0);w!=="/"&&(Z.pathname=Z.pathname==="/"?w:ep([w,Z.pathname])),L=T.createHref(Z)}let[O,B,G]=Jwe(r,A),j=cSe(u,{replace:s,unstable_mask:o,state:l,target:c,preventScrollReset:f,relative:i,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:C});function z(Z){e&&e(Z),Z.defaultPrevented||j(Z)}let Q=!(D.isExternal||a),ee=b.createElement("a",{...A,...G,href:(Q?L:void 0)||D.absoluteURL||k,onClick:Q?z:e,ref:rSe(g,B),target:c,"data-discover":!M&&n==="render"?"true":void 0});return O&&!M?b.createElement(b.Fragment,null,ee,b.createElement(eSe,{page:k})):ee});AN.displayName="Link";var sSe=b.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:o,children:l,...c},u){let f=mT(s,{relative:c.relative}),h=Dd(),p=b.useContext(zD),{navigator:A,basename:g}=b.useContext(Rd),w=p!=null&&pSe(f)&&o===!0,T=A.encodeLocation?A.encodeLocation(f).pathname:f.pathname,C=h.pathname,M=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(C=C.toLowerCase(),M=M?M.toLowerCase():null,T=T.toLowerCase()),M&&g&&(M=A2(M,g)||M);const D=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let k=C===T||!i&&C.startsWith(T)&&C.charAt(D)==="/",I=M!=null&&(M===T||!i&&M.startsWith(T)&&M.charAt(T.length)==="/"),L={isActive:k,isPending:I,isTransitioning:w},O=k?e:void 0,B;typeof r=="function"?B=r(L):B=[r,k?"active":null,I?"pending":null,w?"transitioning":null].filter(
11Boolean).join(" ");let G=typeof a=="function"?a(L):a;return b.createElement(AN,{...c,"aria-current":O,className:B,ref:u,style:G,to:s,viewTransition:o},typeof l=="function"?l(L):l)});sSe.displayName="NavLink";var oSe=b.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:a,method:s=r9,action:o,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:h,...p},A)=>{let{unstable_useTransitions:g}=b.useContext(Rd),w=dSe(),T=hSe(o,{relative:c}),C=s.toLowerCase()==="get"?"get":"post",M=typeof o=="string"&&Dce.test(o),D=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,L=I?.getAttribute("formmethod")||s,O=()=>w(I||k.currentTarget,{fetcherKey:e,method:L,navigate:n,replace:i,state:a,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:h});g&&n!==!1?b.startTransition(()=>O()):O()};return b.createElement("form",{ref:A,method:C,action:T,onSubmit:r?l:D,...p,"data-discover":!M&&t==="render"?"true":void 0})});oSe.displayName="Form";function lSe(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pce(t){let e=b.useContext(X_);return Qs(e,lSe(t)),e}function cSe(t,{target:e,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Ss(),f=Dd(),h=mT(t,{relative:s});return b.useCallback(p=>{if(Uwe(p,e)){p.preventDefault();let A=n!==void 0?n:US(f)===US(h),g=()=>u(t,{replace:A,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:l});c?b.startTransition(()=>g()):g()}},[f,u,h,n,r,i,e,t,a,s,o,l,c])}function AT(t){Vh(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=b.useRef(wU(t)),n=b.useRef(!1),r=Dd(),i=b.useMemo(()=>Vwe(r.search,n.current?null:e.current),[r.search]),a=Ss(),s=b.useCallback((o,l)=>{const c=wU(typeof o=="function"?o(new URLSearchParams(i)):o);n.current=!0,a("?"+c,l)},[a,i]);return[i,s]}var uSe=0,fSe=()=>`__${String(++uSe)}__`;function dSe(){let{router:t}=Pce("useSubmit"),{basename:e}=b.useContext(Rd),n=Nwe(),r=t.fetch,i=t.navigate;return b.useCallback(async(a,s={})=>{let{action:o,method:l,encType:c,formData:u,body:f}=Gwe(a,e);if(s.navigate===!1){let h=s.fetcherKey||fSe();await r(h,n,s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:f,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await i(s.action||o,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:f,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,i,e,n])}function hSe(t,{relative:e}={}){let{basename:n}=b.useContext(Rd),r=b.useContext(Cp);Qs(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...mT(t||".",{relative:e})},s=Dd();if(t==null){a.search=s.search;let o=new URLSearchParams(a.search),l=o.getAll("index");if(l.some(u=>u==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let u=o.toString();a.search=u?`?${u}
11`:""}}return(!t||t===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:ep([n,a.pathname])),US(a)}function pSe(t,{relative:e}={}){let n=b.useContext(bce);Qs(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Pce("useViewTransitionState"),i=mT(t,{relative:e});if(!n.isTransitioning)return!1;let a=A2(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=A2(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mN(i.pathname,s)!=null||mN(i.pathname,a)!=null}var pG=pce();const mSe=fT(pG),mG=b.createContext({});function AG(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const ASe=typeof window<"u",kce=ASe?b.useLayoutEffect:b.useEffect,qD=b.createContext(null);function gG(t,e){t.indexOf(e)===-1&&t.push(e)}function gN(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const mp=(t,e,n)=>n>e?e:n<t?t:n;let xG=()=>{};const g2={},Lce=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Oce(t){return typeof t=="object"&&t!==null}const Fce=t=>/^0[^.\s]+$/u.test(t);function Ice(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ad=t=>t,gSe=(t,e)=>n=>e(t(n)),gT=(...t)=>t.reduce(gSe),VS=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class vG{constructor(){this.subscriptions=[]}add(e){return gG(this.subscriptions,e),()=>gN(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Nh=t=>t*1e3,ld=t=>t/1e3;function Bce(t,e){return e?t*(1e3/e):0}const Uce=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,xSe=1e-7,vSe=12;function ySe(t,e,n,r,i){let a,s,o=0;do s=e+(n-e)/2,a=Uce(s,r,i)-t,a>0?n=s:e=s;while(Math.abs(a)>xSe&&++o<vSe);return s}function xT(t,e,n,r){if(t===e&&n===r)return Ad;const i=a=>ySe(a,0,1,t,n);return a=>a===0||a===1?a:Uce(i(a),e,r)}const Vce=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jce=t=>e=>1-t(1-e),Hce=xT(.33,1.53,.69,.99),yG=jce(Hce),Gce=Vce(yG),zce=t=>(t*=2)<1?.5*yG(t):.5*(2-Math.pow(2,-10*(t-1))),_G=t=>1-Math.sin(Math.acos(t)),$ce=jce(_G),qce=Vce(_G),_Se=xT(.42,0,1,1),bSe=xT(0,0,.58,1),Wce=xT(.42,0,.58,1),wSe=t=>Array.isArray(t)&&typeof t[0]!="number",Zce=t=>Array.isArray(t)&&typeof t[0]=="number",SSe={linear:Ad,easeIn:_Se,easeInOut:Wce,easeOut:bSe,circIn:_G,circInOut:qce,circOut:$ce,backIn:yG,backInOut:Gce,backOut:Hce,anticipate:zce},TSe=t=>typeof t=="string",jK=t=>{if(Zce(t)){xG(t.length===4);const[e,n,r,i]=t;return xT(e,n,r,i)}else if(TSe(t))return SSe[t];return t},EM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ESe(t,e){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),t()),u(o)}const c={schedule:(u,f=!1,h=!1)=>{const A=h&&i?n:r;return f&&s.add(u),A.has(u)||A.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(o=u,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,c.process(u))}};return c}const MSe=40;function Yce(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=EM.reduce((M,D)=>(M[D]=ESe(a),M),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:h,render:p,postRender:A}=s,g=()=>{const M=g2.useManualTiming?i.timestamp:performance.now();n=!1,g2.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(M-i.timestamp,MSe),1)),i.timestamp=M,i.isProcessing=!0,o.process(i),l.process(i),c.process(i),u.process(i),f.process(i),h.process(i),p.process(i),A.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(g))},w=()=>{n=!0,r=!0,i.isProcessing||t(g)};return{schedule:EM.reduce((M,D)=>{const k=s[D];return M[D]=(I,L=!1,O=!1)=>(n||w(),k.schedule(I,L,O)),M},{}),cancel:M=>{for(let D=0;D<EM.length;D++)s[EM[D]].cancel(M)},state:i,steps:s}}const{schedule:cs,cancel:Fg,state:tc,steps:zO}=Yce(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ad,!0);let a9;function CSe(){a9=void 0}const ku={now:()=>(a9===void 0&&ku.set(tc.isProcessing||g2.useManualTiming?tc.timestamp:performance.now()),a9),set:t=>{a9=t,queueMicrotask(CSe)}}
vendor: 18,122 bytes, line 11
11,Xce=t=>e=>typeof e=="string"&&e.startsWith(t),Qce=Xce("--"),NSe=Xce("var(--"),bG=t=>NSe(t)?RSe.test(t.split("/*")[0].trim()):!1,RSe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function HK(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Q_={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jS={...Q_,transform:t=>mp(0,1,t)},MM={...Q_,default:1},$w=t=>Math.round(t*1e5)/1e5,wG=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function DSe(t){return t==null}const PSe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,SG=(t,e)=>n=>!!(typeof n=="string"&&PSe.test(n)&&n.startsWith(t)||e&&!DSe(n)&&Object.prototype.hasOwnProperty.call(n,e)),Kce=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(wG);return{[t]:parseFloat(i),[e]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},kSe=t=>mp(0,255,t),$O={...Q_,transform:t=>Math.round(kSe(t))},xv={test:SG("rgb","red"),parse:Kce("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+$O.transform(t)+", "+$O.transform(e)+", "+$O.transform(n)+", "+$w(jS.transform(r))+")"};function LSe(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const SU={test:SG("#"),parse:LSe,transform:xv.transform},vT=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),kA=vT("deg"),tp=vT("%"),ar=vT("px"),OSe=vT("vh"),FSe=vT("vw"),GK={...tp,parse:t=>tp.parse(t)/100,transform:t=>tp.transform(t*100)},k8={test:SG("hsl","hue"),parse:Kce("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+tp.transform($w(e))+", "+tp.transform($w(n))+", "+$w(jS.transform(r))+")"},Ho={test:t=>xv.test(t)||SU.test(t)||k8.test(t),parse:t=>xv.test(t)?xv.parse(t):k8.test(t)?k8.parse(t):SU.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?xv.transform(t):k8.transform(t),getAnimatableNone:t=>{const e=Ho.parse(t);return e.alpha=0,Ho.transform(e)}},ISe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BSe(t){return isNaN(t)&&typeof t=="string"&&(t.match(wG)?.length||0)+(t.match(ISe)?.length||0)>0}const Jce="number",eue="color",USe="var",VSe="var(",zK="${}",jSe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function HS(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=e.replace(jSe,l=>(Ho.test(l)?(r.color.push(a),i.push(eue),n.push(Ho.parse(l))):l.startsWith(VSe)?(r.var.push(a),i.push(USe),n.push(l)):(r.number.push(a),i.push(Jce),n.push(parseFloat(l))),++a,zK)).split(zK);return{values:n,split:o,indexes:r,types:i}}function tue(t){return HS(t).values}function nue(t){const{split:e,types:n}=HS(t),r=e.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=e[s],i[s]!==void 0){const o=n[s];o===Jce?a+=$w(i[s]):o===eue?a+=Ho.transform(i[s]):a+=i[s]}return a}}const HSe=t=>typeof t=="number"?0:Ho.test(t)?Ho.getAnimatableNone(t):t;function GSe(t){const e=tue(t);return nue(t)(e.map(HSe))}const Rh={test:BSe,parse:tue,createTransformer:nue,getAnimatableNone:GSe};function qO(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function zSe({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,a=0,s=0;if(!e)i=a=s=n;else{const o=n<.5?n*(1+e):n+e-n*e,l=2*n-o;i=qO(l,o,t+1/3),a=qO(l,o,t),s=qO(l,o,t-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function xN(t,e){return n=>n>0?e:t}const $s=(t,e,n)=>t+(e-t)*n,WO=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},$Se=[SU,xv,k8],qSe=t=>$Se.find(e=>e.test(t));function $K(t){const e=qSe(t);if(!e)return!1;let n=e.parse(t);return e===k8&&(n=zSe(n)),n}const qK=(t,e)=>{const n=$K(t),r=$K(e);if(!n||!r)return xN(t,e);const i={...n};return a=>(i.red=WO(n.red,r.red,a),i.green=WO(n.green,r.green,a),i.blue=WO(n.blue,r.blue,a),i.alpha=$s(n.alpha,r.alpha,a),xv.transform(i))},TU=new Set(["none","hidden"]);function WSe(t,e){return TU.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ZSe(t,e){return n=>$s(t,e,n)}function TG(t){return typeof t=="number"?ZSe:typeof t=="string"?bG(t)?xN:Ho.test(t)?qK:QSe:Array.isArray(t)?rue:typeof t=="object"?Ho.test(t)?qK:YSe:xN}function rue(t,e){const n=[...t],r=n.length,i=t.map((a,s)=>TG(a)(a,e[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function YSe(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=TG(t[i])(t[i],e[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function XSe(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][r[a]],o=t.values[s]??0;n[i]=o,r[a]++}return n}const QSe=(t,e)=>{const n=Rh.createTransformer(e),r=HS(t),i=HS(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?TU.has(t)&&!i.values.length||TU.has(e)&&!r.values.length?WSe(t,e):gT(rue(XSe(r,i),i.values),n):xN(t,e)};function iue(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?$s(t,e,n):TG(t)(t,e)}const KSe=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>cs.update(e,n),stop:()=>Fg(e),now:()=>tc.isProcessing?tc.timestamp:ku.now()}},aue=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let a=0;a<i;a++)r+=Math.round(t(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},vN=2e4;function EG(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<vN;)e+=n,r=t.next(e);return e>=vN?1/0:e}function JSe(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(EG(r),vN);return{type:"keyframes",ease:a=>r.next(i*a).value/e,duration:ld(i)}}const e5e=5;function sue(t,e,n){const r=Math.max(e-e5e,0);return Bce(n-t(r),e-r)}const so={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ZO=.001;function t5e({duration:t=so.duration,bounce:e=so.bounce,velocity:n=so.velocity,mass:r=so.mass}){let i,a,s=1-e;s=mp(so.minDamping,so.maxDamping,s),t=mp(so.minDuration,so.maxDuration,ld(t)),s<1?(i=c=>{const u=c*s,f=u*t,h=u-n,p=EU(c,s),A=Math.exp(-f);return ZO-h/p*A},a=c=>{const f=c*s*t,h=f*n+n,p=Math.pow(s,2)*Math.pow(c,2)*t,A=Math.exp(-f),g=EU(Math.pow(c,2),s);return(-i(c)+ZO>0?-1:1)*((h-p)*A)/g}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-ZO+u*f},a=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const o=5/t,l=r5e(i,a,o);if(t=Nh(t),isNaN(l))return{stiffness:so.stiffness,damping:so.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const n5e=12;function r5e(t,e,n){let r=n;for(let i=1;i<n5e;i++)r=r-t(r)/e(r);return r}function EU(t,e){return t*Math.sqrt(1-e*e)}const i5e=["duration","bounce"],a5e=["stiffness","damping","mass"];function WK(t,e){return e.some(n=>t[n]!==void 0)}function s5e(t){let e={velocity:so.velocity,stiffness:so.stiffness,damping:so.damping,mass:so.mass,isResolvedFromDuration:!1,...t};if(!WK(t,a5e)&&WK(t,i5e))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*mp(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:so.mass,stiffness:i,damping:a}}else{const n=t5e({...t,velocity:0});e={...e,...n,mass:so.mass},e.isResolvedFromDuration=!0}return e}function yN(t=so.visualDuration,e=so.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=s5e({...n,velocity:-ld(n.velocity||0)}),A=h||0,g=c/(2*Math.sqrt(l*u)),w=s-a,T=ld(Math.sqrt(l/u)),C=Math.abs(w)<5;r||(r=C?so.restSpeed.granular:so.restSpeed.default),i||(i=C?so.restDelta.granular:so.restDelta.default);let M;if(g<1){const k=EU(T,g);M=I=>{const L=Math.exp(-g*T*I);return s-L*((A+g*T*w)/k*Math.sin(k*I)+w*Math.cos(k*I))}}else if(g===1)M=k=>s-Math.exp(-T*k)*(w+(A+T*w)*k);else{const k=T*Math.sqrt(g*g-1);M=I=>{const L=Math.exp(-g*T*I),O=Math.min(k*I,300);return s-L*((A+g*T*w)*Math.sinh(O)+k*w*Math.cosh(O))/k}}const D={calculatedDuration:p&&f||null,next:k=>{const I=M(k);if(p)o.done=k>=f;else{let L=k===0?A:0;g<1&&(L=k===0?Nh(A):sue(M,k,I));const O=Math.abs(L)<=r,B=Math.abs(s-I)<=i;o.done=O&&B}return o.value=o.done?s:I,o},toString:()=>{const k=Math.min(EG(D),vN),I=aue(L=>D.next(k*L).value,k,30);return k+"ms "+I},toTransition:()=>{}};return D}yN.applyToOptions=t=>{const e=JSe(t,100,yN);return t.ease=e.ease,t.duration=Nh(e.duration),t.type="keyframes",t};function MU({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},p=O=>o!==void 0&&O<o||l!==void 0&&O>l,A=O=>o===void 0?l:l===void 0||Math.abs(o-O)<Math.abs(l-O)?o:l;let g=n*e;const w=f+g,T=s===void 0?w:s(w);T!==w&&(g=T-f);const C=O=>-g*Math.exp(-O/r),M=O=>T+C(O),D=O=>{const B=C(O),G=M(O);h.done=Math.abs(B)<=c,h.value=h.done?T:G};let k,I;const L=O=>{p(h.value)&&(k=O,I=yN({keyframes:[h.value,A(h.value)],velocity:sue(M,O,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return L(0),{calculatedDuration:null,next:O=>{let B=!1;return!I&&k===void 0&&(B=!0,D(O),L(O)),k!==void 0&&O>=k?I.next(O-k):(!B&&D(O),h)}}}function o5e(t,e,n){const r=[],i=n||g2.mix||iue,a=t.length-1;for(let s=0;s<a;s++){let o=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||Ad:e;o=gT(l,o)}r.push(o)}return r}function l5e(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const a=t.length;if(xG(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=o5e(e,r,i),l=o.length,c=u=>{if(s&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const h=VS(t[f],t[f+1],u);return o[f](h)};return n?u=>c(mp(t[0],t[a-1],u)):c}function c5e(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=VS(0,e,r);t.push($s(n,1,i))}}function u5e(t){const e=[0];return c5e(e,t.length-1),e}function f5e(t,e){return t.map(n=>n*e)}function d5e(t,e){return t.map(()=>e||Wce).splice(0,t.length-1)}function qw({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=wSe(r)?r.map(jK):jK(r),a={done:!1,value:e[0]},s=f5e(n&&n.length===e.length?n:u5e(e),t),o=l5e(s,e,{ease:Array.isArray(i)?i:d5e(e,i)});return{calculatedDuration:t,next:l=>(a.value=o(l),a.done=l>=t,a)}}const h5e=t=>t!==null;function MG(t,{repeat:e,repeatType:n="loop"},r,i=1){const a=t.filter(h5e),o=i<0||e&&n!=="loop"&&e%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const p5e={decay:MU,inertia:MU,tween:qw,keyframes:qw,spring:yN};function oue(t){typeof t.type=="string"&&(t.type=p5e[t.type])}class CG{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const m5e=t=>t/100;class NG extends CG{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ku.now()&&this.tick(ku.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;oue(e);const{type:n=qw,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=e;let{keyframes:o}=e;const l=n||qw;l!==qw&&typeof o[0]!="number"&&(this.mixKeyframes=gT(m5e,iue(o[0],o[1])),o=[0,100]);const c=l({...e,keyframes:o});a==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...o].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=EG(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:A,onUpdate:g,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let M=this.currentTime,D=r;if(f){const O=Math.min(this.currentTime,i)/o;let B=Math.floor(O),G=O%1;!G&&O>=1&&(G=1),G===1&&B--,B=Math.min(B,f+1),B%2&&(h==="reverse"?(G=1-G,p&&(G-=p/o)):h==="mirror"&&(D=s)),M=mp(0,1,G)*o}const k=C?{done:!1,value:u[0]}:D.next(M);a&&(k.value=a(k.value));let{done:I}=k;!C&&l!==null&&(I=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return L&&A!==MU&&(k.value=MG(u,this.options,w,this.speed)),g&&g(k.value),L&&this.finish(),k}then(e,n){return this.finished.then(e,n)}get duration(){return ld(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ld(e)}get time(){return ld(this.currentTime)}set time(e){e=Nh(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ku.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=ld(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=KSe,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ku.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function A5e(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const vv=t=>t*180/Math.PI,CU=t=>{const e=vv(Math.atan2(t[1],t[0]));return NU(e)},g5e={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:CU,rotateZ:CU,skewX:t=>vv(Math.atan(t[1])),skewY:t=>vv(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},NU=t=>(t=t%360,t<0&&(t+=360),t),ZK=CU,YK=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),XK=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),x5e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:YK,scaleY:XK,scale:t=>(YK(t)+XK(t))/2,rotateX:t=>NU(vv(Math.atan2(t[6],t[5]))),rotateY:t=>NU(vv(Math.atan2(-t[2],t[0]))),rotateZ:ZK,rotate:ZK,skewX:t=>vv(Math.atan(t[4])),skewY:t=>vv(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function RU(t){return t.includes("scale")?1:0}function DU(t,e){if(!t||t==="none")return RU(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=x5e,i=n;else{const o=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=g5e,i=o}if(!i)return RU(e);const a=r[e],s=i[1].split(",").map(y5e);return typeof a=="function"?a(s):s[a]}const v5e=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return DU(n,e)};function y5e(t){return parseFloat(t.trim())}const K_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],J_=new Set(K_),QK=t=>t===Q_||t===ar,_5e=new Set(["x","y","z"]),b5e=K_.filter(t=>!_5e.has(t));function w5e(t){const e=[];return b5e.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const XA={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>DU(e,"x"),y:(t,{transform:e})=>DU(e,"y")};XA.translateX=XA.x;XA.translateY=XA.y;const Fv=new Set;let PU=!1,kU=!1,LU=!1;function lue(){if(kU){const t=Array.from(Fv).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=w5e(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);
vendor: 1,596 bytes, line 11
11i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}kU=!1,PU=!1,Fv.forEach(t=>t.complete(LU)),Fv.clear()}function cue(){Fv.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(kU=!0)})}function S5e(){LU=!0,cue(),lue(),LU=!1}class RG{constructor(e,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Fv.add(this),PU||(PU=!0,cs.read(cue),cs.resolveKeyframes(lue))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const a=i?.get(),s=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(e[0]=o)}e[0]===void 0&&(e[0]=s),i&&a===void 0&&i.set(e[0])}A5e(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fv.delete(this)}cancel(){this.state==="scheduled"&&(Fv.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const T5e=t=>t.startsWith("--");function E5e(t,e,n){T5e(e)?t.style.setProperty(e,n):t.style[e]=n}const M5e={};function uue(t,e){const n=Ice(t);return()=>M5e[e]??n()}const C5e=uue(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),fue=uue(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 9,056 bytes, line 11
11,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mw=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,KK={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mw([0,.65,.55,1]),circOut:mw([.55,0,1,.45]),backIn:mw([.31,.01,.66,-.59]),backOut:mw([.33,1.53,.69,.99])};function due(t,e){if(t)return typeof t=="function"?fue()?aue(t,e):"ease-out":Zce(t)?mw(t):Array.isArray(t)?t.map(n=>due(n,e)||KK.easeOut):KK[t]}function N5e(t,e,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const f=due(o,i);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(u,h)}function hue(t){return typeof t=="function"&&"applyToOptions"in t}function R5e({type:t,...e}){return hue(t)&&fue()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class pue extends CG{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=e,xG(typeof e.type!="string");const c=R5e(e);this.animation=N5e(n,r,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=MG(i,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(u),E5e(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return ld(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ld(e)}get time(){return ld(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Nh(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&C5e()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ad):i(this)}}const mue={anticipate:zce,backInOut:Gce,circInOut:qce};function D5e(t){return t in mue}function P5e(t){typeof t.ease=="string"&&D5e(t.ease)&&(t.ease=mue[t.ease])}const YO=10;class k5e extends pue{constructor(e){P5e(e),oue(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const o=new NG({...s,autoplay:!1}),l=Math.max(YO,ku.now()-this.startTime),c=mp(0,YO,l-YO);n.setWithVelocity(o.sample(Math.max(0,l-c)).value,o.sample(l).value,c),o.stop()}}const JK=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Rh.test(t)||t==="0")&&!t.startsWith("url("));function L5e(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function O5e(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],s=JK(i,e),o=JK(a,e);return!s||!o?!1:L5e(t)||(n==="spring"||hue(n))&&r}function OU(t){t.duration=0,t.type="keyframes"}const F5e=new Set(["opacity","clipPath","filter","transform"]),I5e=Ice(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function B5e(t){const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return I5e()&&n&&F5e.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const U5e=40;class V5e extends CG{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ku.now();const h={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:l,motionValue:c,element:u,...f},p=u?.KeyframeResolver||RG;this.keyframeResolver=new p(o,(A,g,w)=>this.onKeyframesResolved(A,g,h,!w),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ku.now(),O5e(e,a,s,o)||((g2.instantAnimations||!l)&&u?.(MG(e,r,n)),e[0]=e[e.length-1],OU(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>U5e?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},p=!c&&B5e(h),A=h.motionValue?.owner?.current,g=p?new k5e({...h,element:A}):new NG(h);g.finished.then(()=>{this.notifyFinished()}).catch(Ad),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S5e()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Aue(t,e,n,r=0,i=1){const a=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),s=t.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}const j5e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function H5e(t){const e=j5e.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function gue(t,e,n=1){const[r,i]=H5e(t);if(!r)return;const a=window.getComputedStyle(e).getPropertyValue(r);if(a){const s=a.trim();return Lce(s)?parseFloat(s):s}return bG(i)?gue(i,e,n+1):i}const G5e={type:"spring",stiffness:500,damping:25,restSpeed:10},z5e=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),$5e={type:"keyframes",duration:.8},q5e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W5e=(t,{keyframes:e})=>e.length>2?$5e:J_.has(t)?t.startsWith("scale")?z5e(e[1]):G5e:q5e,Z5e=t=>t!==null;function Y5e(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Z5e),a=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[a]}function xue(t,e){if(t?.inherit&&e){const{inherit:n,...r}=t;return{...e,...r}}return t}function DG(t,e){const n=t?.[e]??t?.default??t;return n!==t?xue(n,t):n}function X5e({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const PG=(t,e,n,r={},i,a)=>s=>{const o=DG(r,t)||{},l=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Nh(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-c,onUpdate:h=>{e.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:a?void 0:i};X5e(o)||Object.assign(u,W5e(t,u)),u.duration&&(u.duration=Nh(u.duration)),u.repeatDelay&&(u.repeatDelay=Nh(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(OU(u),u.delay===0&&(f=!0)),(g2.instantAnimations||g2.skipAnimations||i?.shouldSkipAnimations)&&(f=!0,OU(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,f&&!a&&e.get()!==void 0){const h=Y5e(u.keyframes,o);if(h!==void 0){cs.update(()=>{u.onUpdate(h),u.onComplete()});return}}return o.isSync?new NG(u):new V5e(u)};function eJ(t){const e=[{},{}];
vendor: 20,523 bytes, line 11
11return t?.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function kG(t,e,n,r){if(typeof e=="function"){const[i,a]=eJ(r);e=e(n!==void 0?n:t.custom,i,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,a]=eJ(r);e=e(n!==void 0?n:t.custom,i,a)}return e}function X8(t,e,n){const r=t.getProps();return kG(r,e,n!==void 0?n:r.custom,t)}const vue=new Set(["width","height","top","left","right","bottom",...K_]),tJ=30,Q5e=t=>!isNaN(parseFloat(t));class K5e{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=ku.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ku.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Q5e(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new vG);const r=this.events[e].add(n);return e==="change"?()=>{r(),cs.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ku.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>tJ)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,tJ);return Bce(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function C3(t,e){return new K5e(t,e)}const FU=t=>Array.isArray(t);function J5e(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,C3(n))}function eTe(t){return FU(t)?t[t.length-1]||0:t}function tTe(t,e){const n=X8(t,e);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=eTe(a[s]);J5e(t,s,o)}}const $c=t=>!!(t&&t.getVelocity);function nTe(t){return!!($c(t)&&t.add)}function IU(t,e){const n=t.getValue("willChange");if(nTe(n))return n.add(e);if(!n&&g2.WillChange){const r=new g2.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function LG(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const rTe="framerAppearId",yue="data-"+LG(rTe);function _ue(t){return t.props[yue]}function iTe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function bue(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:s,...o}=e;const l=t.getDefaultTransition();a=a?xue(a,l):l;const c=a?.reduceMotion;r&&(a=r);const u=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const h in o){const p=t.getValue(h,t.latestValues[h]??null),A=o[h];if(A===void 0||f&&iTe(f,h))continue;const g={delay:n,...DG(a||{},h)},w=p.get();if(w!==void 0&&!p.isAnimating&&!Array.isArray(A)&&A===w&&!g.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const D=_ue(t);if(D){const k=window.MotionHandoffAnimation(D,h,cs);k!==null&&(g.startTime=k,T=!0)}}IU(t,h);const C=c??t.shouldReduceMotion;p.start(PG(h,p,A,C&&vue.has(h)?{type:!1}:g,t,T));const M=p.animation;M&&u.push(M)}if(s){const h=()=>cs.update(()=>{s&&tTe(t,s)});u.length?Promise.all(u).then(h):h()}return u}function BU(t,e,n={}){const r=X8(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(bue(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return aTe(t,e,l,c,u,f,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,c]=o==="beforeChildren"?[a,s]:[s,a];return l().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function aTe(t,e,n=0,r=0,i=0,a=1,s){const o=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),o.push(BU(l,e,{...s,delay:n+(typeof r=="function"?0:r)+Aue(t.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}function sTe(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(a=>BU(t,a,n));r=Promise.all(i)}else if(typeof e=="string")r=BU(t,e,n);else{const i=typeof e=="function"?X8(t,e,n.custom):e;r=Promise.all(bue(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const oTe={test:t=>t==="auto",parse:t=>t},wue=t=>e=>e.test(t),Sue=[Q_,ar,tp,kA,FSe,OSe,oTe],nJ=t=>Sue.find(wue(t));function lTe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Fce(t):!0}const cTe=new Set(["brightness","contrast","saturate","opacity"]);function uTe(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(wG)||[];if(!r)return t;const i=n.replace(r,"");let a=cTe.has(e)?1:0;return r!==n&&(a*=100),e+"("+a+i+")"}const fTe=/\b([a-z-]*)\(.*?\)/gu,UU={...Rh,getAnimatableNone:t=>{const e=t.match(fTe);return e?e.map(uTe).join(" "):t}},VU={...Rh,getAnimatableNone:t=>{const e=Rh.parse(t);return Rh.createTransformer(t)(e.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},rJ={...Q_,transform:Math.round},dTe={rotate:kA,rotateX:kA,rotateY:kA,rotateZ:kA,scale:MM,scaleX:MM,scaleY:MM,scaleZ:MM,skew:kA,skewX:kA,skewY:kA,distance:ar,translateX:ar,translateY:ar,translateZ:ar,x:ar,y:ar,z:ar,perspective:ar,transformPerspective:ar,opacity:jS,originX:GK,originY:GK,originZ:ar},OG={borderWidth:ar,borderTopWidth:ar,borderRightWidth:ar,borderBottomWidth:ar,borderLeftWidth:ar,borderRadius:ar,borderTopLeftRadius:ar,borderTopRightRadius:ar,borderBottomRightRadius:ar,borderBottomLeftRadius:ar,width:ar,maxWidth:ar,height:ar,maxHeight:ar,top:ar,right:ar,bottom:ar,left:ar,inset:ar,insetBlock:ar,insetBlockStart:ar,insetBlockEnd:ar,insetInline:ar,insetInlineStart:ar,insetInlineEnd:ar,padding:ar,paddingTop:ar,paddingRight:ar,paddingBottom:ar,paddingLeft:ar,paddingBlock:ar,paddingBlockStart:ar,paddingBlockEnd:ar,paddingInline:ar,paddingInlineStart:ar,paddingInlineEnd:ar,margin:ar,marginTop:ar,marginRight:ar,marginBottom:ar,marginLeft:ar,marginBlock:ar,marginBlockStart:ar,marginBlockEnd:ar,marginInline:ar,marginInlineStart:ar,marginInlineEnd:ar,fontSize:ar,backgroundPositionX:ar,backgroundPositionY:ar,...dTe,zIndex:rJ,fillOpacity:jS,strokeOpacity:jS,numOctaves:rJ},hTe={...OG,color:Ho,backgroundColor:Ho,outlineColor:Ho,fill:Ho,stroke:Ho,borderColor:Ho,borderTopColor:Ho,borderRightColor:Ho,borderBottomColor:Ho,borderLeftColor:Ho,filter:UU,WebkitFilter:UU,mask:VU,WebkitMask:VU},Tue=t=>hTe[t],pTe=new Set([UU,VU]);function Eue(t,e){let n=Tue(t);return pTe.has(n)||(n=Rh),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mTe=new Set(["auto","none","0"]);function ATe(t,e,n){let r=0,i;for(;r<t.length&&!i;){const a=t[r];typeof a=="string"&&!mTe.has(a)&&HS(a).values.length&&(i=t[r]),r++}if(i&&n)for(const a of e)t[a]=Eue(n,i)}class gTe extends RG{constructor(e,n,r,i,a){super(e,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),bG(f))){const h=gue(f,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!vue.has(r)||e.length!==2)return;const[i,a]=e,s=nJ(i),o=nJ(a),l=HK(i),c=HK(a);if(l!==c&&XA[r]){this.needsMeasurement=!0;return}if(s!==o)if(QK(s)&&QK(o))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else XA[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||lTe(e[i]))&&r.push(i);r.length&&ATe(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=XA[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=XA[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,l])=>{e.getValue(o).set(l)}),this.resolveNoneKeyframes()}}const xTe=new Set(["opacity","clipPath","filter","transform"]);function Mue(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=n?.[t]??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(r=>r!=null)}const Cue=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function jU(t){return Oce(t)&&"offsetHeight"in t}const{schedule:FG}=Yce(queueMicrotask,!1),mh={x:!1,y:!1};function Nue(){return mh.x||mh.y}function vTe(t){return t==="x"||t==="y"?mh[t]?null:(mh[t]=!0,()=>{mh[t]=!1}):mh.x||mh.y?null:(mh.x=mh.y=!0,()=>{mh.x=mh.y=!1})}function Rue(t,e){const n=Mue(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function yTe(t){return!(t.pointerType==="touch"||Nue())}function _Te(t,e,n={}){const[r,i,a]=Rue(t,n);return r.forEach(s=>{let o=!1,l=!1,c;const u=()=>{s.removeEventListener("pointerleave",A)},f=w=>{c&&(c(w),c=void 0),u()},h=w=>{o=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(w))},p=()=>{o=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},A=w=>{if(w.pointerType!=="touch"){if(o){l=!0;return}f(w)}},g=w=>{if(!yTe(w))return;l=!1;const T=e(s,w);typeof T=="function"&&(c=T,s.addEventListener("pointerleave",A,i))};s.addEventListener("pointerenter",g,i),s.addEventListener("pointerdown",p,i)}),a}const Due=(t,e)=>e?t===e?!0:Due(t,e.parentElement):!1,IG=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,bTe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wTe(t){return bTe.has(t.tagName)||t.isContentEditable===!0}const STe=new Set(["INPUT","SELECT","TEXTAREA"]);function TTe(t){return STe.has(t.tagName)||t.isContentEditable===!0}const s9=new WeakSet;function iJ(t){return e=>{e.key==="Enter"&&t(e)}}function XO(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ETe=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=iJ(()=>{if(s9.has(n))return;XO(n,"down");const i=iJ(()=>{XO(n,"up")}),a=()=>XO(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",a,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function aJ(t){return IG(t)&&!Nue()}const sJ=new WeakSet;function MTe(t,e,n={}){const[r,i,a]=Rue(t,n),s=o=>{const l=o.currentTarget;if(!aJ(o)||sJ.has(o))return;s9.add(l),n.stopPropagation&&sJ.add(o);const c=e(l,o),u=(p,A)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),s9.has(l)&&s9.delete(l),aJ(p)&&typeof c=="function"&&c(p,{success:A})},f=p=>{u(p,l===window||l===document||n.useGlobalTarget||Due(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),jU(o)&&(o.addEventListener("focus",c=>ETe(c,i)),!wTe(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function BG(t){return Oce(t)&&"ownerSVGElement"in t}const o9=new WeakMap;let l9;const Pue=(t,e,n)=>(r,i)=>i&&i[0]?i[0][t+"Size"]:BG(r)&&"getBBox"in r?r.getBBox()[e]:r[n],CTe=Pue("inline","width","offsetWidth"),NTe=Pue("block","height","offsetHeight");function RTe({target:t,borderBoxSize:e}){o9.get(t)?.forEach(n=>{n(t,{get width(){return CTe(t,e)},get height(){return NTe(t,e)}})})}function DTe(t){t.forEach(RTe)}function PTe(){typeof ResizeObserver>"u"||(l9=new ResizeObserver(DTe))}function kTe(t,e){l9||PTe();const n=Mue(t);return n.forEach(r=>{let i=o9.get(r);i||(i=new Set,o9.set(r,i)),i.add(e),l9?.observe(r)}),()=>{n.forEach(r=>{const i=o9.get(r);i?.delete(e),i?.size||l9?.unobserve(r)})}}const c9=new Set;let L8;function LTe(){L8=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};c9.forEach(e=>e(t))},window.addEventListener("resize",L8)}function OTe(t){return c9.add(t),L8||LTe(),()=>{c9.delete(t),!c9.size&&typeof L8=="function"&&(window.removeEventListener("resize",L8),L8=void 0)}}function oJ(t,e){return typeof t=="function"?OTe(t):kTe(t,e)}function FTe(t){return BG(t)&&t.tagName==="svg"}const ITe=[...Sue,Ho,Rh],BTe=t=>ITe.find(wue(t)),lJ=()=>({translate:0,scale:1,origin:0,originPoint:0}),O8=()=>({x:lJ(),y:lJ()}),cJ=()=>({min:0,max:0}),ul=()=>({x:cJ(),y:cJ()}),UTe=new WeakMap;function WD(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function GS(t){return typeof t=="string"||Array.isArray(t)}const UG=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],VG=["initial",...UG];function ZD(t){return WD(t.animate)||VG.some(e=>GS(t[e]))}function kue(t){return!!(ZD(t)||t.variants)}function VTe(t,e,n){for(const r in e){const i=e[r],a=n[r];if($c(i))t.addValue(r,i);else if($c(a))t.addValue(r,C3(i,{owner:t}));else if(a!==i)if(t.hasValue(r)){const s=t.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=t.getStaticValue(r);t.addValue(r,C3(s!==void 0?s:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const HU={current:null},Lue={current:!1},jTe=typeof window<"u";function HTe(){if(Lue.current=!0,!!jTe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>HU.current=t.matches;t.addEventListener("change",e),e()}else HU.current=!1}const uJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let _N={};function Oue(t){_N=t}function GTe(){return _N}class zTe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=RG,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=ku.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,cs.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=ZD(n),this.isVariantNode=kue(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const A=h[p];c[p]!==void 0&&$c(A)&&A.set(c[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,UTe.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Lue.current||HTe(),this.shouldReduceMotion=HU.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Fg(this.notifyUpdate),Fg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&xTe.has(e)&&this.current instanceof HTMLElement){const{factory:s,keyframes:o,times:l,ease:c,duration:u}=n.accelerate,f=new pue({element:this.current,name:e,keyframes:o,times:l,ease:c,duration:Nh(u)}),h=s(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const r=J_.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&cs.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in _N){const n=_N[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ul()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<uJ.length;r++){const i=uJ[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=e[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=VTe(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 9,674 bytes, line 11
11addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=C3(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Lce(r)||Fce(r))?r=parseFloat(r):!BTe(r)&&Rh.test(n)&&(r=Eue(e,n)),this.setBaseTarget(e,$c(r)?r.get():r)),$c(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=kG(this.props,n,this.presenceContext?.custom);a&&(r=a[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!$c(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new vG),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){FG.render(this.render)}}class Fue extends zTe{constructor(){super(...arguments),this.KeyframeResolver=gTe}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const r=e.style;return r?r[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$c(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class tx{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Iue({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function $Te({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qTe(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function QO(t){return t===void 0||t===1}function GU({scale:t,scaleX:e,scaleY:n}){return!QO(t)||!QO(e)||!QO(n)}function Jx(t){return GU(t)||Bue(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Bue(t){return fJ(t.x)||fJ(t.y)}function fJ(t){return t&&t!=="0%"}function bN(t,e,n){const r=t-n,i=e*r;return n+i}function dJ(t,e,n,r,i){return i!==void 0&&(t=bN(t,i,r)),bN(t,n,r)+e}function zU(t,e=0,n=1,r,i){t.min=dJ(t.min,e,n,r,i),t.max=dJ(t.max,e,n,r,i)}function Uue(t,{x:e,y:n}){zU(t.x,e.translate,e.scale,e.originPoint),zU(t.y,n.translate,n.scale,n.originPoint)}const hJ=.999999999999,pJ=1.0000000000001;function WTe(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&I8(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Uue(t,s)),r&&Jx(a.latestValues)&&I8(t,a.latestValues))}e.x<pJ&&e.x>hJ&&(e.x=1),e.y<pJ&&e.y>hJ&&(e.y=1)}function F8(t,e){t.min=t.min+e,t.max=t.max+e}function mJ(t,e,n,r,i=.5){const a=$s(t.min,t.max,i);zU(t,e,n,a,r)}function AJ(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function I8(t,e){mJ(t.x,AJ(e.x,t.x),e.scaleX,e.scale,e.originX),mJ(t.y,AJ(e.y,t.y),e.scaleY,e.scale,e.originY)}function Vue(t,e){return Iue(qTe(t.getBoundingClientRect(),e))}function ZTe(t,e,n){const r=Vue(t,n),{scroll:i}=e;return i&&(F8(r.x,i.offset.x),F8(r.y,i.offset.y)),r}const YTe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XTe=K_.length;function QTe(t,e,n){let r="",i=!0;for(let a=0;a<XTe;a++){const s=K_[a],o=t[s];if(o===void 0)continue;let l=!0;if(typeof o=="number")l=o===(s.startsWith("scale")?1:0);else{const c=parseFloat(o);l=s.startsWith("scale")?c===1:c===0}if(!l||n){const c=Cue(o,OG[s]);if(!l){i=!1;const u=YTe[s]||s;r+=`${u}(${c}) `}n&&(e[s]=c)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function jG(t,e,n){const{style:r,vars:i,transformOrigin:a}=t;let s=!1,o=!1;for(const l in e){const c=e[l];if(J_.has(l)){s=!0;continue}else if(Qce(l)){i[l]=c;continue}else{const u=Cue(c,OG[l]);l.startsWith("origin")?(o=!0,a[l]=u):r[l]=u}}if(e.transform||(s||n?r.transform=QTe(e,t.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:c="50%",originZ:u=0}=a;r.transformOrigin=`${l} ${c} ${u}`}}function jue(t,{style:e,vars:n},r,i){const a=t.style;let s;for(s in e)a[s]=e[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function gJ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wb={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ar.test(t))t=parseFloat(t);else return t;const n=gJ(t,e.target.x),r=gJ(t,e.target.y);return`${n}% ${r}%`}},KTe={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Rh.parse(t);if(i.length>5)return r;const a=Rh.createTransformer(t),s=typeof i[0]!="number"?1:0,o=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=o,i[1+s]/=l;const c=$s(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),a(i)}},$U={borderRadius:{...wb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wb,borderTopRightRadius:wb,borderBottomLeftRadius:wb,borderBottomRightRadius:wb,boxShadow:KTe};function Hue(t,{layout:e,layoutId:n}){return J_.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!$U[t]||t==="opacity")}function HG(t,e,n){const r=t.style,i=e?.style,a={};if(!r)return a;for(const s in r)($c(r[s])||i&&$c(i[s])||Hue(s,t)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}function JTe(t){return window.getComputedStyle(t)}class eEe extends Fue{constructor(){super(...arguments),this.type="html",this.renderInstance=jue}readValueFromInstance(e,n){if(J_.has(n))return this.projection?.isProjecting?RU(n):v5e(e,n);{const r=JTe(e),i=(Qce(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Vue(e,n)}build(e,n,r){jG(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return HG(e,n,r)}}const tEe={offset:"stroke-dashoffset",array:"stroke-dasharray"},nEe={offset:"strokeDashoffset",array:"strokeDasharray"};function rEe(t,e,n=1,r=0,i=!0){t.pathLength=1;const a=i?tEe:nEe;t[a.offset]=`${-r}`,t[a.array]=`${e} ${n}`}const iEe=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Gue(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},l,c,u){if(jG(t,o,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const p of iEe)f[p]!==void 0&&(h[p]=f[p],delete f[p]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&rEe(f,i,a,s,!1)}const zue=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),$ue=t=>typeof t=="string"&&t.toLowerCase()==="svg";function aEe(t,e,n,r){jue(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(zue.has(i)?i:LG(i),e.attrs[i])}function que(t,e,n){const r=HG(t,e,n);for(const i in t)if($c(t[i])||$c(e[i])){const a=K_.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=t[i]}return r}class sEe extends Fue{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ul}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(J_.has(n)){const r=Tue(n);return r&&r.default||0}return n=zue.has(n)?n:LG(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return que(e,n,r)}build(e,n,r){Gue(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){aEe(e,n,r,i)}mount(e){this.isSVGTag=$ue(e.tagName),super.mount(e)}}const oEe=VG.length;function Wue(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Wue(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<oEe;n++){const r=VG[n],i=t.props[r];(GS(i)||i===!1)&&(e[r]=i)}return e}function Zue(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const lEe=[...UG].reverse(),cEe=UG.length;function uEe(t){return e=>Promise.all(e.map(({animation:n,options:r})=>sTe(t,n,r)))}function fEe(t){let e=uEe(t),n=xJ(),r=!0,i=!1;const a=c=>(u,f)=>{const h=X8(t,f,c==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:A,...g}=h;u={...u,...g,...A}}return u};function s(c){e=c(t)}function o(c){const{props:u}=t,f=Wue(t.parent)||{},h=[],p=new Set;let A={},g=1/0;for(let T=0;T<cEe;
vendor: 8,895 bytes, line 11
11T++){const C=lEe[T],M=n[C],D=u[C]!==void 0?u[C]:f[C],k=GS(D),I=C===c?M.isActive:null;I===!1&&(g=T);let L=D===f[C]&&D!==u[C]&&k;if(L&&(r||i)&&t.manuallyAnimateOnMount&&(L=!1),M.protectedKeys={...A},!M.isActive&&I===null||!D&&!M.prevProp||WD(D)||typeof D=="boolean")continue;if(C==="exit"&&M.isActive&&I!==!0){M.prevResolvedValues&&(A={...A,...M.prevResolvedValues});continue}const O=dEe(M.prevProp,D);let B=O||C===c&&M.isActive&&!L&&k||T>g&&k,G=!1;const j=Array.isArray(D)?D:[D];let z=j.reduce(a(C),{});I===!1&&(z={});const{prevResolvedValues:Q={}}=M,ee={...Q,...z},Z=se=>{B=!0,p.has(se)&&(G=!0,p.delete(se)),M.needsAnimating[se]=!0;const ae=t.getValue(se);ae&&(ae.liveStyle=!1)};for(const se in ee){const ae=z[se],J=Q[se];if(A.hasOwnProperty(se))continue;let oe=!1;FU(ae)&&FU(J)?oe=!Zue(ae,J):oe=ae!==J,oe?ae!=null?Z(se):p.add(se):ae!==void 0&&p.has(se)?Z(se):M.protectedKeys[se]=!0}M.prevProp=D,M.prevResolvedValues=z,M.isActive&&(A={...A,...z}),(r||i)&&t.blockInitialAnimation&&(B=!1);const X=L&&O;B&&(!X||G)&&h.push(...j.map(se=>{const ae={type:C};if(typeof se=="string"&&(r||i)&&!X&&t.manuallyAnimateOnMount&&t.parent){const{parent:J}=t,oe=X8(J,se);if(J.enteringChildren&&oe){const{delayChildren:te}=oe.transition||{};ae.delay=Aue(J.enteringChildren,t,te)}}return{animation:se,options:ae}}))}if(p.size){const T={};if(typeof u.initial!="boolean"){const C=X8(t,Array.isArray(u.initial)?u.initial[0]:u.initial);C&&C.transition&&(T.transition=C.transition)}p.forEach(C=>{const M=t.getBaseTarget(C),D=t.getValue(C);D&&(D.liveStyle=!0),T[C]=M??null}),h.push({animation:T})}let w=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(w=!1),r=!1,i=!1,w?e(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const f=o(c);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=xJ(),i=!0}}}function dEe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Zue(e,t):!1}function Dx(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xJ(){return{animate:Dx(!0),whileInView:Dx(),whileHover:Dx(),whileTap:Dx(),whileDrag:Dx(),whileFocus:Dx(),exit:Dx()}}function vJ(t,e){t.min=e.min,t.max=e.max}function nh(t,e){vJ(t.x,e.x),vJ(t.y,e.y)}function yJ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Yue=1e-4,hEe=1-Yue,pEe=1+Yue,Xue=.01,mEe=0-Xue,AEe=0+Xue;function Lu(t){return t.max-t.min}function gEe(t,e,n){return Math.abs(t-e)<=n}function _J(t,e,n,r=.5){t.origin=r,t.originPoint=$s(e.min,e.max,t.origin),t.scale=Lu(n)/Lu(e),t.translate=$s(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hEe&&t.scale<=pEe||isNaN(t.scale))&&(t.scale=1),(t.translate>=mEe&&t.translate<=AEe||isNaN(t.translate))&&(t.translate=0)}function Ww(t,e,n,r){_J(t.x,e.x,n.x,r?r.originX:void 0),_J(t.y,e.y,n.y,r?r.originY:void 0)}function bJ(t,e,n){t.min=n.min+e.min,t.max=t.min+Lu(e)}function xEe(t,e,n){bJ(t.x,e.x,n.x),bJ(t.y,e.y,n.y)}function wJ(t,e,n){t.min=e.min-n.min,t.max=t.min+Lu(e)}function wN(t,e,n){wJ(t.x,e.x,n.x),wJ(t.y,e.y,n.y)}function SJ(t,e,n,r,i){return t-=e,t=bN(t,1/n,r),i!==void 0&&(t=bN(t,1/i,r)),t}function vEe(t,e=0,n=1,r=.5,i,a=t,s=t){if(tp.test(e)&&(e=parseFloat(e),e=$s(s.min,s.max,e/100)-s.min),typeof e!="number")return;let o=$s(a.min,a.max,r);t===a&&(o-=e),t.min=SJ(t.min,e,n,o,i),t.max=SJ(t.max,e,n,o,i)}function TJ(t,e,[n,r,i],a,s){vEe(t,e[n],e[r],e[i],e.scale,a,s)}const yEe=["x","scaleX","originX"],_Ee=["y","scaleY","originY"];function EJ(t,e,n,r){TJ(t.x,e,yEe,n?n.x:void 0,r?r.x:void 0),TJ(t.y,e,_Ee,n?n.y:void 0,r?r.y:void 0)}function MJ(t){return t.translate===0&&t.scale===1}function Que(t){return MJ(t.x)&&MJ(t.y)}function CJ(t,e){return t.min===e.min&&t.max===e.max}function bEe(t,e){return CJ(t.x,e.x)&&CJ(t.y,e.y)}function NJ(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Kue(t,e){return NJ(t.x,e.x)&&NJ(t.y,e.y)}function RJ(t){return Lu(t.x)/Lu(t.y)}function DJ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function E1(t){return[t("x"),t("y")]}function wEe(t,e,n){let r="";const i=t.x.translate/e.x,a=t.y.translate/e.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:h,skewX:p,skewY:A}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),A&&(r+=`skewY(${A}deg) `)}const o=t.x.scale*e.x,l=t.y.scale*e.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const Jue=["TopLeft","TopRight","BottomLeft","BottomRight"],SEe=Jue.length,PJ=t=>typeof t=="string"?parseFloat(t):t,kJ=t=>typeof t=="number"||ar.test(t);function TEe(t,e,n,r,i,a){i?(t.opacity=$s(0,n.opacity??1,EEe(r)),t.opacityExit=$s(e.opacity??1,0,MEe(r))):a&&(t.opacity=$s(e.opacity??1,n.opacity??1,r));for(let s=0;s<SEe;s++){const o=`border${Jue[s]}Radius`;let l=LJ(e,o),c=LJ(n,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||kJ(l)===kJ(c)?(t[o]=Math.max($s(PJ(l),PJ(c),r),0),(tp.test(c)||tp.test(l))&&(t[o]+="%")):t[o]=c}(e.rotate||n.rotate)&&(t.rotate=$s(e.rotate||0,n.rotate||0,r))}function LJ(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const EEe=e0e(0,.5,$ce),MEe=e0e(.5,.95,Ad);function e0e(t,e,n){return r=>r<t?0:r>e?1:n(VS(t,e,r))}function CEe(t,e,n){const r=$c(t)?t:C3(t);return r.start(PG("",r,e,n)),r.animation}function zS(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const NEe=(t,e)=>t.depth-e.depth;class REe{constructor(){this.children=[],this.isDirty=!1}add(e){gG(this.children,e),this.isDirty=!0}remove(e){gN(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(NEe),this.isDirty=!1,this.children.forEach(e)}}function DEe(t,e){const n=ku.now(),r=({timestamp:i})=>{const a=i-n;a>=e&&(Fg(r),t(a-e))};return cs.setup(r,!0),()=>Fg(r)}function u9(t){return $c(t)?t.get():t}class PEe{constructor(){this.members=[]}add(e){gG(this.members,e);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===e||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(gN(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(gN(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:a}=e.options;(i===void 0||i!==a)&&(e.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const f9={hasAnimatedSinceResize:!0,hasEverUpdated:!1},KO=["","X","Y","Z"],kEe=1e3;let LEe=0;function JO(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function t0e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=_ue(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",cs,!(i||a))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&t0e(r)}function n0e({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=e?.()){this.id=LEe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 10,443 bytes, line 11
11{this.projectionUpdateScheduled=!1,this.nodes.forEach(IEe),this.nodes.forEach(jEe),this.nodes.forEach(HEe),this.nodes.forEach(BEe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new REe)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new vG),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=BG(s)&&!FTe(s),this.instance=s;const{layoutId:o,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),t){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;cs.read(()=>{f=window.innerWidth}),t(s,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=DEe(h,250),f9.hasAnimatedSinceResize&&(f9.hasAnimatedSinceResize=!1,this.nodes.forEach(IJ)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||c.getDefaultTransition()||WEe,{onLayoutAnimationStart:g,onLayoutAnimationComplete:w}=c.getProps(),T=!this.targetLayout||!Kue(this.targetLayout,p),C=!f&&h;if(this.options.layoutRoot||this.resumeFrom||C||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...DG(A,"layout"),onPlay:g,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(u,C)}else f||IJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Fg(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GEe),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&t0e(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(OJ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(FJ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(VEe),this.nodes.forEach(OEe),this.nodes.forEach(FEe)):this.nodes.forEach(FJ),this.clearAllSnapshots();const o=ku.now();tc.delta=mp(0,1e3/60,o-tc.timestamp),tc.timestamp=o,tc.isProcessing=!0,zO.update.process(tc),zO.preRender.process(tc),zO.render.process(tc),tc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,FG.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UEe),this.sharedNodes.forEach(zEe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,cs.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){cs.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Lu(this.snapshot.measuredBox.x)&&!Lu(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ul(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Que(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&this.instance&&(o||Jx(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),ZEe(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ul();const o=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(YEe))){const{scroll:c}=this.root;c&&(F8(o.x,c.offset.x),F8(o.y,c.offset.y))}return o}removeElementScroll(s){const o=ul();if(nh(o,s),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;c!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&nh(o,s),F8(o.x,u.offset.x),F8(o.y,u.offset.y))}return o}applyTransform(s,o=!1){const l=ul();nh(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!o&&u.options.layoutScroll&&u.scroll&&u!==u.root&&I8(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Jx(u.latestValues)&&I8(l,u.latestValues)}return Jx(this.latestValues)&&I8(l,this.latestValues),l}removeTransform(s){const o=ul();nh(o,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Jx(c.latestValues))continue;GU(c.latestValues)&&c.updateSnapshot();const u=ul(),f=c.measurePageBox();nh(u,f),EJ(o,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Jx(this.latestValues)&&EJ(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=tc.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ul(),this.targetWithTransforms=ul()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xEe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nh(this.target,this.layout.layoutBox),Uue(this.target,this.targetDelta)):nh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||GU(this.parent.latestValues)||Bue(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,o,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ul(),this.relativeTargetOrigin=ul(),wN(this.relativeTargetOrigin,o,l),nh(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),o=!!this.resumingFrom||this!==s;let l=!0;
vendor: 4,777 bytes, line 11
11if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===tc.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;nh(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;WTe(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ul());const{target:p}=s;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yJ(this.prevProjectionDelta.x,this.projectionDelta.x),yJ(this.prevProjectionDelta.y,this.projectionDelta.y)),Ww(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!DJ(this.projectionDelta.x,this.prevProjectionDelta.x)||!DJ(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=O8(),this.projectionDelta=O8(),this.projectionDeltaWithTransform=O8()}setAnimationOrigin(s,o=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=O8();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=ul(),p=l?l.source:void 0,A=this.layout?this.layout.source:void 0,g=p!==A,w=this.getStack(),T=!w||w.members.length<=1,C=!!(g&&!T&&this.options.crossfade===!0&&!this.path.some(qEe));this.animationProgress=0;let M;this.mixTargetDelta=D=>{const k=D/1e3;BJ(f.x,s.x,k),BJ(f.y,s.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wN(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$Ee(this.relativeTarget,this.relativeTargetOrigin,h,k),M&&bEe(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=ul()),nh(M,this.relativeTarget)),g&&(this.animationValues=u,TEe(u,c,this.latestValues,k,C,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Fg(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=cs.update(()=>{f9.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=C3(0)),this.motionValue.jump(0,!1),this.currentAnimation=CEe(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kEe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:u}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&r0e(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ul();const f=Lu(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const h=Lu(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}nh(o,l),I8(o,u),Ww(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new PEe),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;
vendor: 13,709 bytes, lines 11-19
11return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const c={};l.z&&JO("z",s,c,this.animationValues);for(let u=0;u<KO.length;u++)JO(`rotate${KO[u]}`,s,c,this.animationValues),JO(`skew${KO[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=u9(o?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=u9(o?.pointerEvents)||""),this.hasProjected&&!Jx(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=wEe(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),s.transform=f;const{x:h,y:p}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?s.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const A in $U){if(u[A]===void 0)continue;const{correct:g,applyTo:w,isCSSVariable:T}=$U[A],C=f==="none"?u[A]:g(u[A],c);if(w){const M=w.length;for(let D=0;D<M;D++)s[w[D]]=C}else T?this.options.visualElement.renderState.vars[A]=C:s[A]=C}this.options.layoutId&&(s.pointerEvents=c===this?u9(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(OJ),this.root.sharedNodes.clear()}}}function OEe(t){t.updateLayout()}function FEe(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=t.layout,{animationType:i}=t.options,a=e.source!==t.layout.source;i==="size"?E1(u=>{const f=a?e.measuredBox[u]:e.layoutBox[u],h=Lu(f);f.min=n[u].min,f.max=f.min+h}):r0e(i,e.layoutBox,n)&&E1(u=>{const f=a?e.measuredBox[u]:e.layoutBox[u],h=Lu(n[u]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const s=O8();Ww(s,n,e.layoutBox);const o=O8();a?Ww(o,t.applyTransform(r,!0),e.measuredBox):Ww(o,n,e.layoutBox);const l=!Que(s);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=ul();wN(p,e.layoutBox,f.layoutBox);const A=ul();wN(A,n,h.layoutBox),Kue(p,A)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=A,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function IEe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function BEe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function UEe(t){t.clearSnapshot()}function OJ(t){t.clearMeasurements()}function FJ(t){t.isLayoutDirty=!1}function VEe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function IJ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jEe(t){t.resolveTargetDelta()}function HEe(t){t.calcProjection()}function GEe(t){t.resetSkewAndRotation()}function zEe(t){t.removeLeadSnapshot()}function BJ(t,e,n){t.translate=$s(e.translate,0,n),t.scale=$s(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function UJ(t,e,n,r){t.min=$s(e.min,n.min,r),t.max=$s(e.max,n.max,r)}function $Ee(t,e,n,r){UJ(t.x,e.x,n.x,r),UJ(t.y,e.y,n.y,r)}function qEe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const WEe={duration:.45,ease:[.4,0,.1,1]},VJ=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jJ=VJ("applewebkit/")&&!VJ("chrome/")?Math.round:Ad;function HJ(t){t.min=jJ(t.min),t.max=jJ(t.max)}function ZEe(t){HJ(t.x),HJ(t.y)}function r0e(t,e,n){return t==="position"||t==="preserve-aspect"&&!gEe(RJ(e),RJ(n),.2)}function YEe(t){return t!==t.root&&t.scroll?.wasRoot}const XEe=n0e({attachResizeListener:(t,e)=>zS(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eF={current:void 0},i0e=n0e({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eF.current){const t=new XEe({});t.mount(window),t.setOptions({layoutScroll:!0}),eF.current=t}return eF.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),GG=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function GJ(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function QEe(...t){return e=>{let n=!1;const r=t.map(i=>{const a=GJ(i,e);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():GJ(t[i],null)}}}}function KEe(...t){return b.useCallback(QEe(...t),t)}class JEe extends b.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=jU(r)&&r.offsetWidth||0,a=jU(r)&&r.offsetHeight||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left,s.bottom=a-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function eMe({children:t,isPresent:e,anchorX:n,anchorY:r,root:i,pop:a}){const s=b.useId(),o=b.useRef(null),l=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=b.useContext(GG),u=t.props?.ref??t?.ref,f=KEe(o,u);return b.useInsertionEffect(()=>{const{width:h,height:p,top:A,left:g,right:w,bottom:T}=l.current;if(e||a===!1||!o.current||!h||!p)return;const C=n==="left"?`left: ${g}`:`right: ${w}`,M=r==="bottom"?`bottom: ${T}`:`top: ${A}`;o.current.dataset.motionPopId=s;const D=document.createElement("style");c&&(D.nonce=c);const k=i??document.head;return k.appendChild(D),D.sheet&&D.sheet.insertRule(` 12 [data-motion-pop-id="${s}"] { 13 position: absolute !important; 14 width: ${h}px !important; 15 height: ${p}px !important; 16 ${C}px !important; 17 ${M}px !important; 18 } 19 `),()=>{k.contains(D)&&k.removeChild(D)}},[e]),x.jsx(JEe,{isPresent:e,childRef:o,sizeRef:l,pop:a,children:a===!1?t:b.cloneElement(t,{ref:f})})}const tMe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s,anchorX:o,anchorY:l,root:c})=>{const u=AG(nMe),f=b.useId();let h=!0,p=b.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:A=>{u.set(A,!0);for(const g of u.values())if(!g)return;r&&r()},register:A=>(u.set(A,!1),()=>u.delete(A))}),[n,u,r]);return a&&h&&(p={...p}),b.useMemo(()=>{u.forEach((A,g)=>u.set(g,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),t=x.jsx(eMe,{pop:s==="popLayout",isPresent:n,anchorX:o,anchorY:l,root:c,children:t}),x.jsx(qD.Provider,{value:p,children:t})};function nMe(){return new Map}function a0e(t=!0){const e=b.useContext(qD);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,a=b.useId();b.useEffect(()=>{if(t)return i(a)},[t]);const s=b.useCallback(()=>t&&r&&r(a),[a,r,t]);return!n&&r?[!1,s]:[!0]}const CM=t=>t.key||"";function zJ(t){const e=[];return b.Children.forEach(t,n=>{b.isValidElement(n)&&e.push(n)}),e}const Np=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1,anchorX:o="left",anchorY:l="top",root:c})=>{const[u,f]=a0e(s),h=b.useMemo(()=>zJ(t),[t]),p=s&&!u?[]:h.map(CM),A=b.useRef(!0),g=b.useRef(h),w=AG(()=>new Map),T=b.useRef(new Set),[C,M]=b.useState(h),[D,k]=b.useState(h);kce(()=>{A.current=!1,g.current=h;for(let O=0;O<D.length;O++){const B=CM(D[O]);p.includes(B)?(w.delete(B),T.current.delete(B)):w.get(B)!==!0&&w.set(B,!1)}},[D,p.length,p.join("-")]);const I=[];if(h!==C){let O=[...h];for(let B=0;B<D.length;B++){const G=D[B],j=CM(G);p.includes(j)||(O.splice(B,0,G),I.push(G))}return a==="wait"&&I.length&&(O=I),k(zJ(O)),M(h),null}const{forceRender:L}=b.useContext(mG);return x.jsx(x.Fragment,{children:D.map(O=>{const B=CM(O),G=s&&!u?!1:h===D||p.includes(B),j=()=>{if(T.current.has(B))return;if(T.current.add(B),w.has(B))w.set(B,!0);else return;let z=!0;w.forEach(Q=>{Q||(z=!1)}),z&&(L?.(),k(g.current),s&&f?.(),r&&r())};return x.jsx(tMe,{isPresent:G,initial:!A.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:G?void 0:j,anchorX:o,anchorY:l,children:O},B)})})},s0e=b.createContext({strict:!1}),$J={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let qJ=!1;function rMe(){if(qJ)return;const t={};for(const e in $J)t[e]={isEnabled:n=>$J[e].some(r=>!!n[r])};Oue(t),qJ=!0}function o0e(){return rMe(),GTe()}function iMe(t){const e=o0e();for(const n in t)e[n]={...e[n],...t[n]};Oue(e)}const aMe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function SN(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||aMe.has(t)}let l0e=t=>!SN(t);function sMe(t){typeof t=="function"&&(l0e=e=>e.startsWith("on")?!SN(e):t(e))}try{sMe(require("@emotion/is-prop-valid").default)}catch{}function oMe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(l0e(i)||n===!0&&SN(i)||!e&&!SN(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const YD=b.createContext({});function lMe(t,e){if(ZD(t)){const{initial:n,animate:r}=t;return{initial:n===!1||GS(n)?n:void 0,animate:GS(r)?r:void 0}}return t.inherit!==!1?e:{}}function cMe(t){const{initial:e,animate:n}=lMe(t,b.useContext(YD));return b.useMemo(()=>({initial:e,animate:n}),[WJ(e),WJ(n)])}function WJ(t){return Array.isArray(t)?t.join(" "):t}const zG=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c0e(t,e,n){for(const r in e)!$c(e[r])&&!Hue(r,n)&&(t[r]=e[r])}function uMe({transformTemplate:t},e){return b.useMemo(()=>{const n=zG();return jG(n,e,t),Object.assign({},n.vars,n.style)},[e])}function fMe(t,e){const n=t.style||{},r={};return c0e(r,n,t),Object.assign(r,uMe(t,e)),r}function dMe(t,e){const n={},r=fMe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const u0e=()=>({...zG(),attrs:{}});function hMe(t,e,n,r){const i=b.useMemo(()=>{const a=u0e();return Gue(a,e,$ue(r),t.transformTemplate,t.style),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};c0e(a,t.style,t),i.style={...a,...i.style}}return i}const pMe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function $G(t){return typeof t!="string"||t.includes("-")?!1:!!(pMe.indexOf(t)>-1||/[A-Z]/u.test(t))}function mMe(t,e,n,{latestValues:r},i,a=!1,s){const l=(s??$G(t)?hMe:dMe)(e,r,i,t),c=oMe(e,typeof t=="string",a),u=t!==b.Fragment?{...c,...l,ref:n}:{},{children:f}=e,h=b.useMemo(()=>$c(f)?f.get():f,[f]);return b.createElement(t,{...u,children:h})}function AMe({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:gMe(n,r,i,t),renderState:e()}}function gMe(t,e,n,r){const i={}
vendor: 20,295 bytes, line 19
19,a=r(t,{});for(const h in a)i[h]=u9(a[h]);let{initial:s,animate:o}=t;const l=ZD(t),c=kue(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),o===void 0&&(o=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?o:s;if(f&&typeof f!="boolean"&&!WD(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const A=kG(t,h[p]);if(A){const{transitionEnd:g,transition:w,...T}=A;for(const C in T){let M=T[C];if(Array.isArray(M)){const D=u?M.length-1:0;M=M[D]}M!==null&&(i[C]=M)}for(const C in g)i[C]=g[C]}}}return i}const f0e=t=>(e,n)=>{const r=b.useContext(YD),i=b.useContext(qD),a=()=>AMe(t,e,r,i);return n?a():AG(a)},xMe=f0e({scrapeMotionValuesFromProps:HG,createRenderState:zG}),vMe=f0e({scrapeMotionValuesFromProps:que,createRenderState:u0e}),yMe=Symbol.for("motionComponentSymbol");function _Me(t,e,n){const r=b.useRef(n);b.useInsertionEffect(()=>{r.current=n});const i=b.useRef(null);return b.useCallback(a=>{a&&t.onMount?.(a);const s=r.current;if(typeof s=="function")if(a){const o=s(a);typeof o=="function"&&(i.current=o)}else i.current?(i.current(),i.current=null):s(a);else s&&(s.current=a);e&&(a?e.mount(a):e.unmount())},[e])}const d0e=b.createContext({});function S8(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function bMe(t,e,n,r,i,a){const{visualElement:s}=b.useContext(YD),o=b.useContext(s0e),l=b.useContext(qD),c=b.useContext(GG),u=c.reducedMotion,f=c.skipAnimations,h=b.useRef(null),p=b.useRef(!1);r=r||o.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:a}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const A=h.current,g=b.useContext(d0e);A&&!A.projection&&i&&(A.type==="html"||A.type==="svg")&&wMe(h.current,n,i,g);const w=b.useRef(!1);b.useInsertionEffect(()=>{A&&w.current&&A.update(n,l)});const T=n[yue],C=b.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return kce(()=>{p.current=!0,A&&(w.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),C.current&&A.animationState&&A.animationState.animateChanges())}),b.useEffect(()=>{A&&(!C.current&&A.animationState&&A.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),C.current=!1),A.enteringChildren=void 0)}),A}function wMe(t,e,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:h0e(t.parent)),t.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&S8(o),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function h0e(t){if(t)return t.options.allowProjection!==!1?t.projection:h0e(t.parent)}function tF(t,{forwardMotionProps:e=!1,type:n}={},r,i){r&&iMe(r);const a=n?n==="svg":$G(t),s=a?vMe:xMe;function o(c,u){let f;const h={...b.useContext(GG),...c,layoutId:SMe(c)},{isStatic:p}=h,A=cMe(c),g=s(c,p);if(!p&&typeof window<"u"){TMe();const w=EMe(h);f=w.MeasureLayout,A.visualElement=bMe(t,g,h,i,w.ProjectionNode,a)}return x.jsxs(YD.Provider,{value:A,children:[f&&A.visualElement?x.jsx(f,{visualElement:A.visualElement,...h}):null,mMe(t,c,_Me(g,A.visualElement,u),g,p,e,a)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=b.forwardRef(o);return l[yMe]=t,l}function SMe({layoutId:t}){const e=b.useContext(mG).id;return e&&t!==void 0?e+"-"+t:t}function TMe(t,e){b.useContext(s0e).strict}function EMe(t){const e=o0e(),{drag:n,layout:r}=e;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n?.isEnabled(t)||r?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function MMe(t,e){if(typeof Proxy>"u")return tF;const n=new Map,r=(a,s)=>tF(a,s,t,e),i=(a,s)=>r(a,s);return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,tF(s,void 0,t,e)),n.get(s))})}const CMe=(t,e)=>e.isSVG??$G(t)?new sEe(e):new eEe(e,{allowProjection:t!==b.Fragment});class NMe extends tx{constructor(e){super(e),e.animationState||(e.animationState=fEe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();WD(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let RMe=0;class DMe extends tx{constructor(){super(...arguments),this.id=RMe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const PMe={animation:{Feature:NMe},exit:{Feature:DMe}};function yT(t){return{point:{x:t.pageX,y:t.pageY}}}const kMe=t=>e=>IG(e)&&t(e,yT(e));function Zw(t,e,n,r){return zS(t,e,kMe(n),r)}const p0e=({current:t})=>t?t.ownerDocument.defaultView:null,ZJ=(t,e)=>Math.abs(t-e);function LMe(t,e){const n=ZJ(t.x,e.x),r=ZJ(t.y,e.y);return Math.sqrt(n**2+r**2)}const YJ=new Set(["auto","scroll"]);class m0e{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=rF(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,g=LMe(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!g)return;const{point:w}=p,{timestamp:T}=tc;this.history.push({...w,timestamp:T});const{onStart:C,onMove:M}=this.handlers;A||(C&&C(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,p)},this.handlePointerMove=(p,A)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=nF(A,this.transformPagePoint),cs.update(this.updatePoint,!0)},this.handlePointerUp=(p,A)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=rF(p.type==="pointercancel"?this.lastMoveEventInfo:nF(A,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,C),w&&w(p,C)},!IG(e))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const l=yT(e),c=nF(l,this.transformPagePoint),{point:u}=c,{timestamp:f}=tc;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,rF(c,this.history)),this.removeListeners=gT(Zw(this.contextWindow,"pointermove",this.handlePointerMove),Zw(this.contextWindow,"pointerup",this.handlePointerUp),Zw(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let n=e.parentElement;for(;n;){const r=getComputedStyle(n);(YJ.has(r.overflowX)||YJ.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const r=e===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:i.x-n.x,y:i.y-n.y};a.x===0&&a.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,i),cs.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Fg(this.updatePoint)}}function nF(t,e){return e?{point:e(t.point)}:t}function XJ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rF({point:t},e){return{point:t,delta:XJ(t,A0e(e)),offset:XJ(t,OMe(e)),velocity:FMe(e,.1)}}function OMe(t){return t[0]}function A0e(t){return t[t.length-1]}function FMe(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=A0e(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Nh(e)));)n--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&i.timestamp-r.timestamp>Nh(e)*2&&(r=t[1]);const a=ld(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function IMe(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?$s(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?$s(n,t,r.max):Math.min(t,n)),t}function QJ(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function BMe(t,{top:e,left:n,bottom:r,right:i}){return{x:QJ(t.x,n,i),y:QJ(t.y,e,r)}}function KJ(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function UMe(t,e){return{x:KJ(t.x,e.x),y:KJ(t.y,e.y)}}function VMe(t,e){let n=.5;const r=Lu(t),i=Lu(e);return i>r?n=VS(e.min,e.max-r,t.min):r>i&&(n=VS(t.min,t.max-i,e.min)),mp(0,1,n)}function jMe(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const qU=.35;function HMe(t=qU){return t===!1?t=0:t===!0&&(t=qU),{x:JJ(t,"left","right"),y:JJ(t,"top","bottom")}}function JJ(t,e,n){return{min:eee(t,e),max:eee(t,n)}}function eee(t,e){return typeof t=="number"?t:t[e]||0}const GMe=new WeakMap;class zMe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ul(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=f=>{n&&this.snapToCursor(yT(f).point),this.stopAnimation()},s=(f,h)=>{const{drag:p,dragPropagation:A,onDragStart:g}=this.getProps();if(p&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vTe(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),E1(T=>{let C=this.getAxisMotionValue(T).get()||0;if(tp.test(C)){const{projection:M}=this.visualElement;if(M&&M.layout){const D=M.layout.layoutBox[T];D&&(C=Lu(D)*(parseFloat(C)/100))}}this.originPoint[T]=C}),g&&cs.update(()=>g(f,h),!1,!0),IU(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:A,onDirectionLock:g,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=h;if(A&&this.currentDirection===null){this.currentDirection=qMe(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),w&&cs.update(()=>w(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new m0e(e,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:p0e(this.visualElement),element:this.visualElement.current})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&cs.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!NM(e,i,this.currentDirection))return;const a=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=IMe(s,this.constraints[e],this.elastic[e])),a.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&S8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=BMe(r.layoutBox,e):this.constraints=!1,this.elastic=HMe(n),i!==this.constraints&&!S8(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&E1(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=jMe(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!S8(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=ZTe(r,i.root,this.visualElement.getTransformPagePoint());let s=UMe(i.layout.layoutBox,a);if(n){const o=n($Te(s));this.hasMutatedConstraints=!!o,o&&(s=Iue(o))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=E1(u=>{if(!NM(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,A={type:"inertia",velocity:r?e[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(u,A)});return Promise.all(c).then(o)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return IU(this.visualElement,e),r.start(PG(e,r,0,n,this.visualElement,!1))}stopAnimation(){E1(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){E1(n=>{const{drag:r}=this.getProps();if(!NM(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n],l=a.get()||0;a.set(e[n]-$s(s,o,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!S8(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};E1(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();i[s]=VMe({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),E1(s=>{if(!NM(s,e,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set($s(l,c,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;GMe.set(this.visualElement,this);const e=this.visualElement.current,n=Zw(e,"pointerdown",c=>{const{drag:u,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==e&&TTe(h);u&&f&&!p&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();S8(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=$Me(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,s=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),cs.read(i);const o=zS(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(E1(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),l&&l(),r&&r()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=qU,dragMomentum:o=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function tee(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function $Me(t,e,n){const r=oJ(t,tee(n)),i=oJ(e,tee(n));return()=>{r(),i()}}function NM(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function qMe(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class WMe extends tx{constructor(e){super(e),this.removeGroupControls=Ad,this.removeListeners=Ad,this.controls=new zMe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ad}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const iF=t=>(e,n)=>{t&&cs.update(()=>t(e,n),!1,!0)};class ZMe extends tx{constructor(){super(...arguments),this.removePointerDownListener=Ad}onPointerDown(e){this.session=new m0e(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:p0e(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:iF(e),onStart:iF(n),onMove:iF(r),onEnd:(a,s)=>{delete this.session,i&&cs.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Zw(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let aF=!1;class YMe extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=e;a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),aF&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),f9.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,e.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),aF=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||cs.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),FG.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;aF=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function g0e(t){const[e,n]=a0e(),r=b.useContext(mG);return x.jsx(YMe,{...t,layoutGroup:r,switchLayoutGroup:b.useContext(d0e),isPresent:e,safeToRemove:n})}
19const XMe={pan:{Feature:ZMe},drag:{Feature:WMe,ProjectionNode:i0e,MeasureLayout:g0e}};function nee(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&cs.postRender(()=>a(e,yT(e)))}class QMe extends tx{mount(){const{current:e}=this.node;e&&(this.unmount=_Te(e,(n,r)=>(nee(this.node,r,"Start"),i=>nee(this.node,i,"End"))))}unmount(){}}class KMe extends tx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gT(zS(this.node.current,"focus",()=>this.onFocus()),zS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ree(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&cs.postRender(()=>a(e,yT(e)))}class JMe extends tx{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=MTe(e,(i,a)=>(ree(this.node,a,"Start"),(s,{success:o})=>ree(this.node,s,o?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const WU=new WeakMap,sF=new WeakMap,e7e=t=>{const e=WU.get(t.target);e&&e(t)},t7e=t=>{t.forEach(e7e)};function n7e({root:t,...e}){const n=t||document;sF.has(n)||sF.set(n,{});const r=sF.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(t7e,{root:t,...e})),r[i]}function r7e(t,e,n){const r=n7e(e);return WU.set(t,n),r.observe(t),()=>{WU.delete(t),r.unobserve(t)}}const i7e={some:0,all:1};class a7e extends tx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:i7e[i]},o=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return r7e(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(s7e(e,n))&&this.startObserver()}unmount(){}}function s7e({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const o7e={inView:{Feature:a7e},tap:{Feature:JMe},focus:{Feature:KMe},hover:{Feature:QMe}},l7e={layout:{ProjectionNode:i0e,MeasureLayout:g0e}},c7e={...PMe,...o7e,...XMe,...l7e},ql=MMe(c7e,CMe);var oF={exports:{}},lF,iee;function u7e(){if(iee)return lF;iee=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lF=t,lF}var cF,aee;function f7e(){if(aee)return cF;aee=1;var t=u7e();function e(){}function n(){}return n.resetWarningCache=e,cF=function(){function r(s,o,l,c,u,f){if(f!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},cF}var see;function d7e(){return see||(see=1,oF.exports=f7e()()),oF.exports}var h7e=d7e();const re=fT(h7e),p7e=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},m7e=(t,e)=>({classGroupId:t,validator:e}),x0e=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),TN="-",oee=[],A7e="arbitrary..",g7e=t=>{const e=v7e(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return x7e(s);const o=s.split(TN),l=o[0]===""&&o.length>1?1:0;return v0e(o,l,e)},getConflictingClassGroupIds:(s,o)=>
vendor: 7,931 bytes, line 19
19{if(o){const l=r[s],c=n[s];return l?c?p7e(c,l):l:c||oee}return n[s]||oee}}},v0e=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],a=n.nextPart.get(i);if(a){const c=v0e(t,e+1,a);if(c)return c}const s=n.validators;if(s===null)return;const o=e===0?t.join(TN):t.slice(e).join(TN),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(o))return u.classGroupId}},x7e=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?A7e+r:void 0})(),v7e=t=>{const{theme:e,classGroups:n}=t;return y7e(n,e)},y7e=(t,e)=>{const n=x0e();for(const r in t){const i=t[r];qG(i,n,r,e)}return n},qG=(t,e,n,r)=>{const i=t.length;for(let a=0;a<i;a++){const s=t[a];_7e(s,e,n,r)}},_7e=(t,e,n,r)=>{if(typeof t=="string"){b7e(t,e,n);return}if(typeof t=="function"){w7e(t,e,n,r);return}S7e(t,e,n,r)},b7e=(t,e,n)=>{const r=t===""?e:y0e(e,t);r.classGroupId=n},w7e=(t,e,n,r)=>{if(T7e(t)){qG(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(m7e(n,t))},S7e=(t,e,n,r)=>{const i=Object.entries(t),a=i.length;for(let s=0;s<a;s++){const[o,l]=i[s];qG(l,y0e(e,o),n,r)}},y0e=(t,e)=>{let n=t;const r=e.split(TN),i=r.length;for(let a=0;a<i;a++){const s=r[a];let o=n.nextPart.get(s);o||(o=x0e(),n.nextPart.set(s,o)),n=o}return n},T7e=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,E7e=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},ZU="!",lee=":",M7e=[],cee=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),C7e=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const a=[];let s=0,o=0,l=0,c;const u=i.length;for(let g=0;g<u;g++){const w=i[g];if(s===0&&o===0){if(w===lee){a.push(i.slice(l,g)),l=g+1;continue}if(w==="/"){c=g;continue}}w==="["?s++:w==="]"?s--:w==="("?o++:w===")"&&o--}const f=a.length===0?i:i.slice(l);let h=f,p=!1;f.endsWith(ZU)?(h=f.slice(0,-1),p=!0):f.startsWith(ZU)&&(h=f.slice(1),p=!0);const A=c&&c>l?c-l:void 0;return cee(a,p,h,A)};if(e){const i=e+lee,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):cee(M7e,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},N7e=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],o=s[0]==="[",l=e.has(s);o||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},R7e=t=>({cache:E7e(t.cacheSize),parseClassName:C7e(t),sortModifiers:N7e(t),...g7e(t)}),D7e=/\s+/,P7e=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=e,s=[],o=t.trim().split(D7e);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:A,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let w=!!g,T=r(w?A.substring(0,g):A);if(!T){if(!w){l=u+(l.length>0?" "+l:l);continue}if(T=r(A),!T){l=u+(l.length>0?" "+l:l);continue}w=!1}const C=h.length===0?"":h.length===1?h[0]:a(h).join(":"),M=p?C+ZU:C,D=M+T;if(s.indexOf(D)>-1)continue;s.push(D);const k=i(T,w);for(let I=0;I<k.length;++I){const L=k[I];s.push(M+L)}l=u+(l.length>0?" "+l:l)}return l},k7e=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=_0e(n))&&(i&&(i+=" "),i+=r);return i},_0e=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=_0e(t[r]))&&(n&&(n+=" "),n+=e);return n},L7e=(t,...e)=>{let n,r,i,a;const s=l=>{const c=e.reduce((u,f)=>f(u),t());return n=R7e(c),r=n.cache.get,i=n.cache.set,a=o,o(l)},o=l=>{const c=r(l);if(c)return c;const u=P7e(l,n);return i(l,u),u};return a=s,(...l)=>a(k7e(...l))},O7e=[],ol=t=>{const e=n=>n[t]||O7e;return e.isThemeGetter=!0,e},b0e=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w0e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,F7e=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,I7e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,B7e=/\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$/,U7e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,V7e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j7e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dA=t=>F7e.test(t),di=t=>!!t&&!Number.isNaN(Number(t)),hA=t=>!!t&&Number.isInteger(Number(t)),uF=t=>t.endsWith("%")&&di(t.slice(0,-1)),xm=t=>I7e.test(t),S0e=()=>!0,H7e=t=>B7e.test(t)&&!U7e.test(t),WG=()=>!1,G7e=t=>V7e.test(t),z7e=t=>j7e.test(t),$7e=t=>!ir(t)&&!lr(t),q7e=t=>nx(t,M0e,WG),ir=t=>b0e.test(t),Px=t=>nx(t,C0e,H7e),uee=t=>nx(t,eCe,di),W7e=t=>nx(t,R0e,S0e),Z7e=t=>nx(t,N0e,WG),fee=t=>nx(t,T0e,WG),Y7e=t=>nx(t,E0e,z7e),RM=t=>nx(t,D0e,G7e),lr=t=>w0e.test(t),Sb=t=>Ny(t,C0e),X7e=t=>Ny(t,N0e),dee=t=>Ny(t,T0e),Q7e=t=>Ny(t,M0e),K7e=t=>Ny(t,E0e),DM=t=>Ny(t,D0e,!0),J7e=t=>Ny(t,R0e,!0),nx=(t,e,n)=>{const r=b0e.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Ny=(t,e,n=!1)=>{const r=w0e.exec(t);return r?r[1]?e(r[1]):n:!1},T0e=t=>t==="position"||t==="percentage",E0e=t=>t==="image"||t==="url",M0e=t=>t==="length"||t==="size"||t==="bg-size",C0e=t=>t==="length",eCe=t=>t==="number",N0e=t=>t==="family-name",R0e=t=>t==="number"||t==="weight",D0e=t=>t==="shadow",tCe=()=>{const t=ol("color"),e=ol("font"),n=ol("text"),r=ol("font-weight"),i=ol("tracking"),a=ol("leading"),s=ol("breakpoint"),o=ol("container"),l=ol("spacing"),c=ol("radius"),u=ol("shadow"),f=ol("inset-shadow"),h=ol("text-shadow"),p=ol("drop-shadow"),A=ol("blur"),g=ol("perspective"),w=ol("aspect"),T=ol("ease"),C=ol("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...D(),lr,ir],I=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],O=()=>[lr,ir,l],B=()=>[dA,"full","auto",...O()],G=()=>[hA,"none","subgrid",lr,ir],j=()=>["auto",{span:["full",hA,lr,ir]},hA,lr,ir],z=()=>[hA,"auto",lr,ir],Q=()=>["auto","min","max","fr",lr,ir],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...O()],K=()=>[dA,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],se=()=>[dA,"screen","full","dvw","lvw","svw","min","max","fit",...O()],ae=()=>[dA,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],J=()=>[t,lr,ir],oe=()=>[...D(),dee,fee,{position:[lr,ir]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Q7e,q7e,{size:[lr,ir]}],me=()=>[uF,Sb,Px],de=()=>["","none","full",c,lr,ir],Ae=()=>["",di,Sb,Px],Se=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[di,uF,dee,fee],Fe=()=>["","none",A,lr,ir],Qe=()=>["none",di,lr,ir],ge=()=>["none",di,lr,ir],Ie=()=>[di,lr,ir],De=()=>[dA,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xm],breakpoint:[xm],color:[S0e],container:[xm],"drop-shadow":[xm],ease:["in","out","in-out"],font:[$7e],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xm],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xm],shadow:[xm],spacing:["px",di],text:[xm],"text-shadow":[xm],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",dA,ir,lr,w]}
vendor: 6,111 bytes, line 19
19],container:["container"],columns:[{columns:[di,ir,lr,o]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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"],sr:["sr-only","not-sr-only"],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:k()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[hA,"auto",lr,ir]}],basis:[{basis:[dA,"full","auto",o,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[di,dA,"auto","initial","none",ir]}],grow:[{grow:["",di,lr,ir]}],shrink:[{shrink:["",di,lr,ir]}],order:[{order:[hA,"first","last","none",lr,ir]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mbs:[{mbs:X()}],mbe:[{mbe:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...se()]}],"min-inline-size":[{"min-inline":["auto",...se()]}],"max-inline-size":[{"max-inline":["none",...se()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[o,"screen",...K()]}],"min-w":[{"min-w":[o,"screen","none",...K()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,Sb,Px]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,J7e,W7e]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uF,ir]}],"font-family":[{font:[X7e,Z7e,e]}],"font-features":[{"font-features":[ir]}],"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-fractions"],tracking:[{tracking:[i,lr,ir]}],"line-clamp":[{"line-clamp":[di,"none",lr,uee]}],leading:[{leading:[a,...O()]}],"list-image":[{"list-image":["none",lr,ir]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",lr,ir]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[di,"from-font","auto",lr,Px]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[di,"auto",lr,ir]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lr,ir]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lr,ir]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hA,lr,ir],radial:["",lr,ir],conic:[hA,lr,ir]},K7e,Y7e]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:me()}
vendor: 7,405 bytes, line 19
19],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-bs":[{"border-bs":Ae()}],"border-w-be":[{"border-be":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[di,lr,ir]}],"outline-w":[{outline:["",di,Sb,Px]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",u,DM,RM]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",f,DM,RM]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[di,Px]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",h,DM,RM]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[di,lr,ir]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[di]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[lr,ir]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[di]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",lr,ir]}],filter:[{filter:["","none",lr,ir]}],blur:[{blur:Fe()}],brightness:[{brightness:[di,lr,ir]}],contrast:[{contrast:[di,lr,ir]}],"drop-shadow":[{"drop-shadow":["","none",p,DM,RM]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",di,lr,ir]}],"hue-rotate":[{"hue-rotate":[di,lr,ir]}],invert:[{invert:["",di,lr,ir]}],saturate:[{saturate:[di,lr,ir]}],sepia:[{sepia:["",di,lr,ir]}],"backdrop-filter":[{"backdrop-filter":["","none",lr,ir]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[di,lr,ir]}],"backdrop-contrast":[{"backdrop-contrast":[di,lr,ir]}],"backdrop-grayscale":[{"backdrop-grayscale":["",di,lr,ir]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[di,lr,ir]}],"backdrop-invert":[{"backdrop-invert":["",di,lr,ir]}],"backdrop-opacity":[{"backdrop-opacity":[di,lr,ir]}],"backdrop-saturate":[{"backdrop-saturate":[di,lr,ir]}],"backdrop-sepia":[{"backdrop-sepia":["",di,lr,ir]}],"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:["","all","colors","opacity","shadow","transform","none",lr,ir]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[di,"initial",lr,ir]}],ease:[{ease:["linear","initial",T,lr,ir]}],delay:[{delay:[di,lr,ir]}],animate:[{animate:["none",C,lr,ir]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,lr,ir]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[lr,ir,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:De()}],"translate-x":[{"translate-x":De()}],"translate-y":[{"translate-y":De()}],"translate-z":[{"translate-z":De()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}
19],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",lr,ir]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",lr,ir]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[di,Sb,Px,uee]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},N3=L7e(tCe);function gr(t){const e=Dn.c(20);let n,r,i,a,s;e[0]!==t?({btnText:n,variant:s,onClick:i,className:r,...a}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5]);const l=`app-button app-button-${s} text-center ${nCe(s)} px-4 py-2 rounded-[50px] cursor-pointer select-none ${r}`;let c;e[6]!==l?(c=N3(l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==s?(u=s==="disabled"?{}:{scale:1.04,y:-2},e[8]=s,e[9]=u):u=e[9];let f;
19e[10]===Symbol.for("react.memo_cache_sentinel")?(f={duration:.18,ease:"easeOut"},e[10]=f):f=e[10];let h;e[11]!==s?(h=s==="disabled"?{x:[-8,8,-6,6,-3,3,0]}:{scale:.92},e[11]=s,e[12]=h):h=e[12];let p;return e[13]!==n||e[14]!==i||e[15]!==a||e[16]!==c||e[17]!==u||e[18]!==h?(p=x.jsx(ql.div,{className:c,onClick:i,whileHover:u,transition:f,whileTap:h,...a,children:n}),e[13]=n,e[14]=i,e[15]=a,e[16]=c,e[17]=u,e[18]=h,e[19]=p):p=e[19],p}function nCe(t){switch(t){case"primary":return"bg-[var(--primary-color)] text-white";case"secondary":return"bg-[var(--secondary-color)] text-white";case"red":return"bg-[var(--red-color)] text-white";case"outlined":return"border border-[var(--outlined-color)] text-[var(--outlined-color)]";case"outlined-gray":return"border border-[var(--outlined-gray-color)] text-[var(--outlined-gray-color)]";case"outlined-secondary":return"border border-[var(--outlined-secondary-color)] text-[var(--outlined-secondary-color)]";case"disabled":return"bg-[#e6e6e6] text-[#bfbfbf]";default:return"bg-[var(--primary-color)] text-white"}}gr.defaultProps={variant:"primary",btnText:"button",className:""};gr.propTypes={btnText:re.string.isRequired,variant:re.oneOf(["primary","secondary","red","outlined","outlined-gray","outlined-secondary"]).isRequired,onClick:re.func.isRequired,className:re.string};function rCe(){const t=Dn.c(3),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("h1",{children:"Page 1"}),t[0]=n):n=t[0];let r;return t[1]!==e?(r=x.jsx(x.Fragment,{children:x.jsxs("div",{className:"bg-red-500 h-100",children:[n,x.jsx(gr,{btnText:"click",onClick:()=>e("/pagetwo")})]})}),t[1]=e,t[2]=r):r=t[2],r}function iCe(){const t=Dn.c(3),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("h1",{children:"Page 2"}),t[0]=n):n=t[0];let r;return t[1]!==e?(r=x.jsx(x.Fragment,{children:x.jsxs("div",{className:"bg-blue-500 h-100",children:[n,x.jsx(gr,{btnText:"click",onClick:()=>e("/pageone")})]})}),t[1]=e,t[2]=r):r=t[2],r}const EN="IVS_B2B_USER_AUTH",S0="IVS_B2B_USER_PROFILE",P0e="IVS_B2B_USER_THEME",YU="IVS_B2B_USER_WALLET_BALANCE",d9="IVS_B2B_EMULATED_AUTH",k0e="IVS_B2B_LOGGEDIN_USERID",Ou="YYYY-MM-DD",hee="YYYY-MM-DD HH:mm:ss",aCe="DD MMM, YYYY HH:MM",pee="DD MMM, YYYY",L0e="TODAY_DATE",O0e="YYYY/MM/DD",Zn={LOGIN:"/",AGENT_REGISTRATION:"/agent-registration",SEARCH_PAGE:"/search",SEARCH_RESULTS_PAGE:"/visa-results",BOOKING_PAGE:"/visa-booking",ACCOUNTS:"/accounts",INVOICE:"/invoice/:visaApplicationId",CUSTOMER_INVOICE:"/customer-invoice/:visaApplicationId",VISA_ORDER_DETAILS:"/visa-order-details/:visaApplicationId",VISA_CALENDER:"/visa-calender",CONTACT_US:"/contact-us",PG:{RAZORPAY_PAYMENT:"/payments/razorpay",PAYMENT_SUCCESS:"/payments/success/:status/:bookingId/:message",PAYMENT_FAILED:"/payments/failed/:status/:bookingId/:message"},ABOUT:"/about-us",PRIVACY_POLICY:"/privacy-policy",TERMS_CONDITIONS:"/terms-and-conditions",PRIVACY_POLICY_IVS:"/privacy-policy-ivs",TERMS_CONDITIONS_IVS:"/terms-and-conditions-ivs",VISA_TYPES_STATIC:"/visa-types",PRESS_RELEASE:"/press-release",COMING_SOON:"/coming-soon",VISA_TYPES_STATIC:"/visa-types-info"},Fm={ADMIN_STAFF:"adminstaff",AGENT_STAFF:"agentstaff",ADMIN:"admin"},sCe=[{label:"Mstr",value:"Mstr"},{label:"Ms",value:"Ms"}],XD=[{label:"Mr",value:"Mr"},{label:"Ms",value:"Ms"},{label:"Mrs",value:"Mrs"}],F0e=[{value:[],label:"All Visa Types"},{value:"TOURIST",label:"Tourist"},{value:"BUSINESS",label:"Business"},{value:"STUDENT",label:"Student"},{value:"TRANSIT",label:"Transit"}],fF={title:"",firstName:"",lastName:"",dob:"",passportNumber:"",occupation:"",passportExpiry:"",visaDocumentList:[]},oCe=[{label:"Other",value:"Other"},{label:"Self Employed",value:"Self Employed"},{label:"Employee",value:"Employee"},{label:"Student",value:"Student"},{label:"Housewife",value:"Housewife"},{label:"Retired",value:"Retired"}],I0e=b.forwardRef((t,e)=>{const{alt:n,color:r="currentColor",size:i="1em",weight:a="regular",mirrored:s=!1,children:o,weights:l,...c}=t;return b.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:r,viewBox:"0 0 256 256",transform:s?"scale(-1, 1)":void 0,...c},!!n&&b.createElement("title",null,n),o,l.get(a))});I0e.displayName="SSRBase";const lCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,20H64A20,20,0,0,0,44,40V60H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v32H32a12,12,0,0,0,0,24H44v20a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V40A20,20,0,0,0,208,20Zm-4,192H68V44H204ZM100.8,171.37a48,48,0,0,1,70.4,0,12,12,0,0,0,17.6-16.32,72,72,0,0,0-19.21-14.68,44,44,0,1,0-67.19,0,72.12,72.12,0,0,0-19.2,14.68,12,12,0,0,0,17.6,16.32ZM116,112a20,20,0,1,1,20,20A20,20,0,0,1,116,112Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H64a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V40A8,8,0,0,0,208,32ZM136,144a32,32,0,1,1,32-32A32,32,0,0,1,136,144Z",opacity:"0.2"}),b.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M160,112a24,24,0,1,1-24-24A24,24,0,0,1,160,112Zm64-72V216a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V192H32a8,8,0,0,1,0-16H48V136H32a8,8,0,0,1,0-16H48V80H32a8,8,0,0,1,0-16H48V40A16,16,0,0,1,64,24H208A16,16,0,0,1,224,40ZM190.4,163.2A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2a8,8,0,1,0,12.8,9.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M159.11,142.13a38,38,0,1,0-46.22,0A65.75,65.75,0,0,0,83.2,164.4a6,6,0,0,0,9.6,7.2,54,54,0,0,1,86.4,0,6,6,0,0,0,9.6-7.2A65.75,65.75,0,0,0,159.11,142.13ZM110,112a26,26,0,1,1,26,26A26,26,0,0,1,110,
19112Zm98-86H64A14,14,0,0,0,50,40V66H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v44H32a6,6,0,0,0,0,12H50v26a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V40A14,14,0,0,0,208,26Zm2,190a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M83.19,174.4a8,8,0,0,0,11.21-1.6,52,52,0,0,1,83.2,0,8,8,0,1,0,12.8-9.6A67.88,67.88,0,0,0,163,141.51a40,40,0,1,0-53.94,0A67.88,67.88,0,0,0,81.6,163.2,8,8,0,0,0,83.19,174.4ZM112,112a24,24,0,1,1,24,24A24,24,0,0,1,112,112Zm96-88H64A16,16,0,0,0,48,40V64H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v40H32a8,8,0,0,0,0,16H48v24a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V40A16,16,0,0,0,208,24Zm0,192H64V40H208Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M154.7,142.75a36,36,0,1,0-37.4,0A63.61,63.61,0,0,0,84.8,165.6a4,4,0,0,0,6.4,4.8,56,56,0,0,1,89.6,0,4,4,0,0,0,6.4-4.8A63.65,63.65,0,0,0,154.7,142.75ZM108,112a28,28,0,1,1,28,28A28,28,0,0,1,108,112ZM208,28H64A12,12,0,0,0,52,40V68H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v48H32a4,4,0,0,0,0,8H52v28a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V40A12,12,0,0,0,208,28Zm4,188a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),cCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200.49,72.48,93,180h75a12,12,0,0,1,0,24H64a12,12,0,0,1-12-12V88a12,12,0,0,1,24,0v75L183.51,55.51a12,12,0,0,1,17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,192H64V88Z",opacity:"0.2"}),b.createElement("path",{d:"M197.66,58.34a8,8,0,0,0-11.32,0L116,128.69,69.66,82.34A8,8,0,0,0,56,88V192a8,8,0,0,0,8,8H168a8,8,0,0,0,5.66-13.66L127.31,140l70.35-70.34A8,8,0,0,0,197.66,58.34ZM72,184V107.31l38.34,38.34h0L148.69,184Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M197.66,69.66,127.31,140l46.35,46.34A8,8,0,0,1,168,200H64a8,8,0,0,1-8-8V88a8,8,0,0,1,13.66-5.66L116,128.69l70.34-70.35a8,8,0,0,1,11.32,11.32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M196.24,68.24,78.48,186H168a6,6,0,0,1,0,12H64a6,6,0,0,1-6-6V88a6,6,0,0,1,12,0v89.52L187.76,59.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M197.66,69.66,83.31,184H168a8,8,0,0,1,0,16H64a8,8,0,0,1-8-8V88a8,8,0,0,1,16,0v84.69L186.34,58.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M194.83,66.83,73.66,188H168a4,4,0,0,1,0,8H64a4,4,0,0,1-4-4V88a4,4,0,0,1,8,0v94.34L189.17,61.17a4,4,0,1,1,5.66,5.66Z"}))]]),uCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),b.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),fCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),b.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),dCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),b.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,
19120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]),hCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),b.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),pCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),b.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),mCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,48V208H80V48Z",opacity:"0.2"}),b.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z"}))]]),ACe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M24,108H44v48H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24H212V108h20a12,12,0,0,0,6.29-22.22l-104-64a12,12,0,0,0-12.58,0l-104,64A12,12,0,0,0,24,108Zm44,0H92v48H68Zm72,0v48H116V108Zm48,48H164V108h24ZM128,46.09,189.6,84H66.4ZM252,208a12,12,0,0,1-12,12H16a12,12,0,0,1,0-24H240A12,12,0,0,1,252,208Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,96H24L128,32Z",opacity:"0.2"}),b.createElement("path",{d:"M24,104H48v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16H208V104h24a8,8,0,0,0,4.19-14.81l-104-64a8,8,0,0,0-8.38,0l-104,64A8,8,0,0,0,24,104Zm40,0H96v64H64Zm80,0v64H112V104Zm48,64H160V104h32ZM128,41.39,203.74,88H52.26ZM248,208a8,8,0,0,1-8,8H16a8,8,0,0,1,0-16H240A8,8,0,0,1,248,208Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M248,208a8,8,0,0,1-8,8H16a8,8,0,0,1,0-16H240A8,8,0,0,1,248,208ZM16.3,98.18a8,8,0,0,1,3.51-9l104-64a8,8,0,0,1,8.38,0l104,64A8,8,0,0,1,232,104H208v64h16a8,8,0,0,1,0,16H32a8,8,0,0,1,0-16H48V104H24A8,8,0,0,1,16.3,98.18ZM144,160a8,8,0,0,0,16,0V112a8,8,0,0,0-16,0Zm-48,0a8,8,0,0,0,16,0V112a8,8,0,0,0-16,0Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M24,102H50v68H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12H206V102h26a6,6,0,0,0,3.14-11.11l-104-64a6,6,0,0,0-6.28,0l-104,64A6,6,0,0,0,24,102Zm38,0H98v68H62Zm84,0v68H110V102Zm48,68H158V102h36ZM128,39l82.8,51H45.2ZM246,208a6,6,0,0,1-6,6H16a6,6,0,0,1,0-12H240A6,6,0,0,1,246,208Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M24,104H48v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16H208V104h24a8,8,0,0,0,4.19-14.81l-104-64a8,8,0,0,0-8.38,0l-104,64A8,8,0,0,0,24,104Zm40,0H96v64H64Zm80,0v64H112V104Zm48,64H160V104h32ZM128,41.39,203.74,88H52.26ZM248,208a8,8,0,0,1-8,8H16a8,8,0,0,1,0-16H240A8,8,0,0,1,248,208Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M24,100H52v72H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8H204V100h28a4,4,0,0,0,2.1-7.41l-104-64a4,4,0,0,0-4.2,0l-104,64A4,4,0,0,0,24,100Zm36,0h40v72H60Zm88,0v72H108V100Zm48,72H156V100h40ZM128,36.7,217.87,92H38.13ZM244,208a4,4,0,0,1-4,4H16a4,4,0,0,1,0-8H240A4,4,0,0,1,244,208Z"}))]]),gCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M244,204H232V99.3A12,12,0,0,0,228,76H188V51.3A12,12,0,0,0,184,28H40a12,12,0,0,0-4,23.3V204H24a12,12,0,0,0,0,24H244a12,12,0,0,0,0-24ZM208,100V204H188V100ZM60,52H164V204H148V160a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v44H60Zm64,152H100V172h24ZM72,80A12,12,0,0,1,84,68h8a12,12,0,0,1,0,24H84A12,12,0,0,1,72,80Zm48,0a12,12,0,0,1,12-12h8a12,12,0,0,1,0,24h-8A12,12,0,0,1,120,80ZM72,120a12,12,0,0,1,12-12h8a12,12,0,0,1,0,24H84A12,12,0,0,1,72,120Zm48,0a12,12,0,0,1,12-12h8a12,12,0,0,1,0,24h-8A12,12,0,0,1,120,120Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,40V216H136V160H88v56H48V40Z",opacity:"0.2"}),b.createElement("path",{d:"M248,208H232V96a8,8,0,0,0,0-16H184V48a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16V208H24a8,8,0,0,0,0,16H248a8,8,0,0,0,0-16ZM216,96V208H184V96ZM56,48H168V208H144V160a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v48H56Zm72,160H96V168h32ZM72,80a8,8,0,0,1,8-8H96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,80Zm48,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H128A8,8,0,0,1,120,80ZM72,120a8,8,0,0,1,8-8H96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,120Zm48,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H128A8,8,0,0,1,120,120Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M248,208H232V96a8,8,0,0,0,0-16H184V48a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16V208H24a8,8,0,0,0,0,16H248a8,8,0,0,0,0-16ZM80,72H96a8,8,0,0,1,0,16H80a8,8,0,0,1,0-16Zm-8,48a8,8,0,0,1,8-8H96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,120Zm64,88H88V160h48Zm8-80H128a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-40H128a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm72,120H184V96h32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M248,210H230V94h2a6,6,0,0,0,0-12H182V46h2a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12h2V210H24a6,6,0,0,0,0,12H248a6,6,0,0,0,0-12ZM218,94V210H182V94ZM54,46H170V210H142V160a6,6,0,0,0-6-6H88a6,6,0,0,0-6,6v50H54Zm76,164H94V166h36Z
19M74,80a6,6,0,0,1,6-6H96a6,6,0,0,1,0,12H80A6,6,0,0,1,74,80Zm48,0a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H128A6,6,0,0,1,122,80ZM80,126a6,6,0,0,1,0-12H96a6,6,0,0,1,0,12Zm42-6a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H128A6,6,0,0,1,122,120Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M248,208H232V96a8,8,0,0,0,0-16H184V48a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16V208H24a8,8,0,0,0,0,16H248a8,8,0,0,0,0-16ZM216,96V208H184V96ZM56,48H168V208H144V160a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v48H56Zm72,160H96V168h32ZM72,80a8,8,0,0,1,8-8H96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,80Zm48,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H128A8,8,0,0,1,120,80ZM72,120a8,8,0,0,1,8-8H96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,120Zm48,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H128A8,8,0,0,1,120,120Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M248,212H228V92h4a4,4,0,0,0,0-8H180V44h4a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8h4V212H24a4,4,0,0,0,0,8H248a4,4,0,0,0,0-8ZM220,92V212H180V92ZM52,44H172V212H140V160a4,4,0,0,0-4-4H88a4,4,0,0,0-4,4v52H52Zm80,168H92V164h40ZM76,80a4,4,0,0,1,4-4H96a4,4,0,0,1,0,8H80A4,4,0,0,1,76,80Zm48,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H128A4,4,0,0,1,124,80ZM80,124a4,4,0,0,1,0-8H96a4,4,0,0,1,0,8Zm44-4a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H128A4,4,0,0,1,124,120Z"}))]]),xCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),b.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),vCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),yCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm92-76a16,16,0,1,1-16-16A16,16,0,0,1,144,128Zm48,0a16,16,0,1,1-16-16A16,16,0,0,1,192,128ZM96,176a16,16,0,1,1-16-16A16,16,0,0,1,96,176Zm48,0a16,16,0,1,1-16-16A16,16,0,0,1,144,176Zm48,0a16,16,0,1,1-16-16A16,16,0,0,1,192,176Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-68-76a12,12,0,1,1-12-12A12,12,0,0,1,140,132Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,132ZM96,172a12,12,0,1,1-12-12A12,12,0,0,1,96,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,172Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM84,184a12,12,0,1,1,12-12A12,12,0,0,1,84,184Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,184Zm0-40a12,12,0,1,1,12-12A12,12,0,0,1,128,144Zm44,40a12,12,0,1,1,12-12A12,12,0,0,1,172,184Zm0-40a12,12,0,1,1,12-12A12,12,0,0,1,172,144Zm36-64H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-70-78a10,10,0,1,1-10-10A10,10,0,0,1,138,132Zm44,0a10,
1910,0,1,1-10-10A10,10,0,0,1,182,132ZM94,172a10,10,0,1,1-10-10A10,10,0,0,1,94,172Zm44,0a10,10,0,1,1-10-10A10,10,0,0,1,138,172Zm44,0a10,10,0,1,1-10-10A10,10,0,0,1,182,172Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-68-76a12,12,0,1,1-12-12A12,12,0,0,1,140,132Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,132ZM96,172a12,12,0,1,1-12-12A12,12,0,0,1,96,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,172Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,172Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Zm-72-80a8,8,0,1,1-8-8A8,8,0,0,1,136,132Zm44,0a8,8,0,1,1-8-8A8,8,0,0,1,180,132ZM92,172a8,8,0,1,1-8-8A8,8,0,0,1,92,172Zm44,0a8,8,0,1,1-8-8A8,8,0,0,1,136,172Zm44,0a8,8,0,1,1-8-8A8,8,0,0,1,180,172Z"}))]]),_Ce=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),b.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),bCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),b.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),wCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),b.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}
19))]]),SCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),TCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M132,20A104.11,104.11,0,0,0,28,124v84a20,20,0,0,0,20,20h84a104,104,0,0,0,0-208Zm0,184H52V124a80,80,0,1,1,80,80Zm-8-76a16,16,0,1,1-16-16A16,16,0,0,1,124,128Zm48,0a16,16,0,1,1-16-16A16,16,0,0,1,172,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,124h0a92,92,0,0,1-92,92H48a8,8,0,0,1-8-8V124a92,92,0,0,1,92-92h0A92,92,0,0,1,224,124Z",opacity:"0.2"}),b.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200Zm0,184H48V124a84,84,0,1,1,84,84Zm12-80a12,12,0,1,1-12-12A12,12,0,0,1,144,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,100,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,188,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200ZM88,140a12,12,0,1,1,12-12A12,12,0,0,1,88,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,132,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,176,140Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M142,128a10,10,0,1,1-10-10A10,10,0,0,1,142,128ZM88,118a10,10,0,1,0,10,10A10,10,0,0,0,88,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,176,118Zm54,6a98.11,98.11,0,0,1-98,98H48a14,14,0,0,1-14-14V124a98,98,0,0,1,196,0Zm-12,0a86,86,0,0,0-172,0v84a2,2,0,0,0,2,2h84A86.1,86.1,0,0,0,218,124Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M132,24A100.11,100.11,0,0,0,32,124v84a16,16,0,0,0,16,16h84a100,100,0,0,0,0-200Zm0,184H48V124a84,84,0,1,1,84,84Zm12-80a12,12,0,1,1-12-12A12,12,0,0,1,144,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,100,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,188,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M140,128a8,8,0,1,1-8-8A8,8,0,0,1,140,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,88,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,176,120Zm52,4a96.11,96.11,0,0,1-96,96H48a12,12,0,0,1-12-12V124a96,96,0,0,1,192,0Zm-8,0a88,88,0,0,0-176,0v84a4,4,0,0,0,4,4h84A88.1,88.1,0,0,0,220,124Z"}))]]),ECe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",o
19pacity:"0.2"}),b.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),MCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),CCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M246.15,65.46l-.07-.08L222.15,41.85a20,20,0,0,0-28.23-.05l-90,88.83L70.06,97.78a20,20,0,0,0-28.21.08l-24,24a20,20,0,0,0,0,28.26l71.62,72a20,20,0,0,0,28.29,0L246.15,93.74A20,20,0,0,0,246.15,65.46ZM103.61,202.33,37.64,136,56,117.61,95.65,156a12,12,0,0,0,16.78-.08L208,61.61l18.32,18Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M237.66,85.26l-128.4,128.4a8,8,0,0,1-11.32,0l-71.6-72a8,8,0,0,1,0-11.31l24-24a8,8,0,0,1,11.32,0L104,147.43l98.34-97.09a8,8,0,0,1,11.32,0l24,23.6A8,8,0,0,1,237.66,85.26Z",opacity:"0.2"}),b.createElement("path",{d:"M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M243.31,90.91l-128.4,128.4a16,16,0,0,1-22.62,0l-71.62-72a16,16,0,0,1,0-22.61l20-20a16,16,0,0,1,22.58,0L104,144.22l96.76-95.57a16,16,0,0,1,22.59,0l19.95,19.54A16,16,0,0,1,243.31,90.91Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M241.87,69.66l-24-23.56a14,14,0,0,0-19.77,0L104,139,65.9,102.1a14,14,0,0,0-19.8,0l-24,24a14,14,0,0,0,0,19.79l71.62,72a14,14,0,0,0,19.8,0L241.91,89.5A14,14,0,0,0,241.87,69.66ZM233.42,81,105,209.41a2,2,0,0,1-2.81,0l-71.62-72a2,2,0,0,1,0-2.82l24-24A2,2,0,0,1,56,
19110a2.12,2.12,0,0,1,1.5.64l42.35,41.08a6,6,0,0,0,8.39,0l98.37-97.11a2,2,0,0,1,2.87,0l24,23.56A2,2,0,0,1,233.42,81Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M243.28,68.24l-24-23.56a16,16,0,0,0-22.59,0L104,136.23l-36.69-35.6a16,16,0,0,0-22.58.05l-24,24a16,16,0,0,0,0,22.61l71.62,72a16,16,0,0,0,22.63,0L243.33,90.91A16,16,0,0,0,243.28,68.24ZM103.62,208,32,136l24-24a.6.6,0,0,1,.08.08l42.35,41.09a8,8,0,0,0,11.19,0L208.06,56,232,79.6Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240.47,71.09l-24-23.58a12,12,0,0,0-17,0L104,141.83l-39.5-38.32a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l71.61,72a12,12,0,0,0,17,0L240.49,88.08A12,12,0,0,0,240.47,71.09Zm-5.63,11.34L106.43,210.83a4,4,0,0,1-5.65,0l-71.61-72a4,4,0,0,1,0-5.66l24-24A3.94,3.94,0,0,1,56,108a4.11,4.11,0,0,1,2.89,1.21l42.35,41.08a4,4,0,0,0,5.59,0l98.37-97.1a4,4,0,0,1,5.68,0l24,23.58A4,4,0,0,1,234.84,82.43Z"}))]]),NCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]),RCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M236,137A108.13,108.13,0,1,1,119,20,12,12,0,0,1,121,44,84.12,84.12,0,1,0,212,135,12,12,0,1,1,236,137ZM116,76v52a12,12,0,0,0,12,12h52a12,12,0,0,0,0-24H140V76a12,12,0,0,0-24,0Zm92,20a16,16,0,1,0-16-16A16,16,0,0,0,208,96ZM176,64a16,16,0,1,0-16-16A16,16,0,0,0,176,64Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M232,136.66A104.12,104.12,0,1,1,119.34,24,8,8,0,0,1,120.66,40,88.12,88.12,0,1,0,216,135.34,8,8,0,0,1,232,136.66ZM120,72v56a8,8,0,0,0,8,8h56a8,8,0,0,0,0-16H136V72a8,8,0,0,0-16,0Zm40-24a12,12,0,1,0-12-12A12,12,0,0,0,160,48Zm36,24a12,12,0,1,0-12-12A12,12,0,0,0,196,72Zm24,36a12,12,0,1,0-12-12A12,12,0,0,0,220,108Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,96a12,12,0,1,1,12,12A12,12,0,0,1,208,96ZM196,72a12,12,0,1,0-12-12A12,12,0,0,0,196,72Zm28.66,56a8,8,0,0,0-8.63,7.31A88.12,88.12,0,1,1,120.66,40,8,8,0,0,0,119.34,24,104.12,104.12,0,1,0,232,136.66,8,8,0,0,0,224.66,128ZM128,56a72,72,0,1,1-72,72A72.08,72.08,0,0,1,128,56Zm-8,72a8,8,0,0,0,8,8h48a8,8,0,0,0,0-16H136V80a8,8,0,0,0-16,0Zm40-80a12,12,0,1,0-12-12A12,12,0,0,0,160,48Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230,136.49A102.12,102.12,0,1,1,119.51,26a6,6,0,0,1,1,12A90.13,90.13,0,1,0,218,135.51a6,6,0,1,1,12,1ZM122,72v56a6,6,0,0,0,6,6h56a6,6,0,0,0,0-12H134V72a6,6,0,0,0-12,0Zm38-26a10,10,0,1,0-10-10A10,10,0,0,0,160,46Zm36,24a10,10,0,1,0-10-10A10,10,0,0,0,196,70Zm24,36a10,10,0,1,0-10-10A10,10,0,0,0,220,106Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,136.66A104.12,104.12,0,1,1,119.34,24,8,8,0,0,1,120.66,40,88.12,88.12,0,1,0,216,135.34,8,8,0,0,1,232,136.66ZM120,72v56a8,8,0,0,0,8,8h56a8,8,0,0,0,0-16H136V72a8,8,0,0,0-16,0Zm40-24a12,12,0,1,0-12-12A12,12,0,0,0,160,48Zm36,24a12,12,0,1,0-12-12A12,12,0,0,0,196,72Zm24,36a12,12,0,1,0-12-12A12,12,0,0,0,220,108Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,136.33A100.13,100.13,0,1,1,119.67,28a4,4,0,1,1,.66,8A92.13,92.13,0,1,0,220,135.67a4,4,0,1,1,8,.66ZM128,132h56a4,4,0,0,0,0-8H132V72a4,4,0,0,0-8,0v56A4,4,0,0,0,128,132Zm32-88a8,8,0,1,0-8-8A8,8,0,0,0,160,44Zm36,24a8,8,0,1,0-8-8A8,8,0,0,0,196,68Zm24,36a8,8,0,1,0-8-8A8,8,0,0,0,220,104Z"}))]]),DCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M212,80a12,12,0,0,1-12,12H172a64.07,64.07,0,0,1-64,64h-5l65,59.12a12,12,0,1,1-16.14,17.76l-88-80A12,12,0,0,1,72,132h36a40,40,0,0,0,40-40H72a12,12,0,0,1,0-24h68a40,40,0,0,0-32-16H72a12,12,0,0,1,0-24H200a12,12,0,0,1,0,24H157.91a64,64,0,0,1,9.4,16
19H200A12,12,0,0,1,212,80Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M160,92a52,52,0,0,1-52,52H72V40h36A52,52,0,0,1,160,92Z",opacity:"0.2"}),b.createElement("path",{d:"M208,80a8,8,0,0,1-8,8H167.85c.09,1.32.15,2.65.15,4a60.07,60.07,0,0,1-60,60H92.69l72.69,66.08a8,8,0,1,1-10.76,11.84l-88-80A8,8,0,0,1,72,136h36a44.05,44.05,0,0,0,44-44c0-1.35-.07-2.68-.19-4H72a8,8,0,0,1,0-16h75.17A44,44,0,0,0,108,48H72a8,8,0,0,1,0-16H200a8,8,0,0,1,0,16H148.74a60.13,60.13,0,0,1,15.82,24H200A8,8,0,0,1,208,80Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm38.32,72H176a8,8,0,0,1,0,16h-8.19A44.06,44.06,0,0,1,124,152H111.32l53.59,41.69a8,8,0,1,1-9.82,12.62l-72-56A8,8,0,0,1,88,136h36a28,28,0,0,0,27.71-24H88a8,8,0,0,1,0-16h61.29A28,28,0,0,0,124,80H88a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16H157.92A43.87,43.87,0,0,1,166.32,96Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M206,80a6,6,0,0,1-6,6H165.69a59.36,59.36,0,0,1,.31,6,58.07,58.07,0,0,1-58,58H87.52L164,219.56a6,6,0,0,1-8.08,8.88l-88-80A6,6,0,0,1,72,138h36a46.06,46.06,0,0,0,46-46,47.61,47.61,0,0,0-.4-6H72a6,6,0,0,1,0-12h78.33A46.08,46.08,0,0,0,108,46H72a6,6,0,0,1,0-12H200a6,6,0,0,1,0,12H143.27a58.25,58.25,0,0,1,19.86,28H200A6,6,0,0,1,206,80Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,80a8,8,0,0,1-8,8H167.85c.09,1.32.15,2.65.15,4a60.07,60.07,0,0,1-60,60H92.69l72.69,66.08a8,8,0,1,1-10.76,11.84l-88-80A8,8,0,0,1,72,136h36a44.05,44.05,0,0,0,44-44c0-1.35-.07-2.68-.19-4H72a8,8,0,0,1,0-16h75.17A44,44,0,0,0,108,48H72a8,8,0,0,1,0-16H200a8,8,0,0,1,0,16H148.74a60.13,60.13,0,0,1,15.82,24H200A8,8,0,0,1,208,80Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M204,80a4,4,0,0,1-4,4H163.42a57,57,0,0,1,.58,8,56.06,56.06,0,0,1-56,56H82.35l80.34,73a4,4,0,1,1-5.38,5.92l-88-80A4,4,0,0,1,72,140h36a48,48,0,0,0,47.32-56H72a4,4,0,0,1,0-8h81.25A48.09,48.09,0,0,0,108,44H72a4,4,0,0,1,0-8H200a4,4,0,0,1,0,8H136.81a56.24,56.24,0,0,1,24.85,32H200A4,4,0,0,1,204,80Z"}))]]),PCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),kCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,56l-96,88L32,56Z",o
19pacity:"0.2"}),b.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),LCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),b.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.
1961,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),OCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),b.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.
1911,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),FCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm12,191.13V156h20a12,12,0,0,0,0-24H140V112a12,12,0,0,1,12-12h16a12,12,0,0,0,0-24H152a36,36,0,0,0-36,36v20H96a12,12,0,0,0,0,24h20v55.13a84,84,0,1,1,24,0Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm8,191.63V152h24a8,8,0,0,0,0-16H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,0-16H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0,0,16h24v63.63a88,88,0,1,1,16,0Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,128a104.16,104.16,0,0,1-91.55,103.26,4,4,0,0,1-4.45-4V152h24a8,8,0,0,0,8-8.53,8.17,8.17,0,0,0-8.25-7.47H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,8-8.53A8.17,8.17,0,0,0,167.73,80H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0-8,8.53A8.17,8.17,0,0,0,96.27,152H120v75.28a4,4,0,0,1-4.44,4A104.15,104.15,0,0,1,24.07,124.09c2-54,45.74-97.9,99.78-100A104.12,104.12,0,0,1,232,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm6,191.8V150h26a6,6,0,0,0,0-12H134V112a18,18,0,0,1,18-18h16a6,6,0,0,0,0-12H152a30,30,0,0,0-30,30v26H96a6,6,0,0,0,0,12h26v67.8a90,90,0,1,1,12,0Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm8,191.63V152h24a8,8,0,0,0,0-16H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,0-16H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0,0,16h24v63.63a88,88,0,1,1,16,0Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm4,191.91V148h28a4,4,0,0,0,0-8H132V112a20,20,0,0,1,20-20h16a4,4,0,0,0,0-8H152a28,28,0,0,0-28,28v28H96a4,4,0,0,0,0,8h28v71.91a92,92,0,1,1,8,0Z"}))]]),ICe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),b.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.
1915A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),BCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),b.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
19Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
19Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),UCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220.49,59.51l-40-40A12,12,0,0,0,172,16H92A20,20,0,0,0,72,36V56H56A20,20,0,0,0,36,76V216a20,20,0,0,0,20,20H164a20,20,0,0,0,20-20V196h20a20,20,0,0,0,20-20V68A12,12,0,0,0,220.49,59.51ZM160,212H60V80h67l33,33Zm40-40H184V108a12,12,0,0,0-3.51-8.49l-40-40A12,12,0,0,0,132,56H96V40h71l33,33Zm-56-28a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h44A12,12,0,0,1,144,144Zm0,40a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h44A12,12,0,0,1,144,184Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,72V184a8,8,0,0,1-8,8H176V104L136,64H80V40a8,8,0,0,1,8-8h80Z",opacity:"0.2"}),b.createElement("path",{d:"M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM168,216H56V72h76.69L168,107.31v84.53c0,.06,0,.11,0,.16s0,.1,0,.16V216Zm32-32H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Zm-56-32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,152Zm0,32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,184Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM136,192H88a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-32H88a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm64,24H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M212.24,67.76l-40-40A6,6,0,0,0,168,26H88A14,14,0,0,0,74,40V58H56A14,14,0,0,0,42,72V216a14,14,0,0,0,14,14H168a14,14,0,0,0,14-14V198h18a14,14,0,0,0,14-14V72A6,6,0,0,0,212.24,67.76ZM170,216a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h77.51L170,106.49Zm32-32a2,2,0,0,1-2,2H182V104a6,6,0,0,0-1.76-4.24l-40-40A6,6,0,0,0,136,58H86V40a2,2,0,0,1,2-2h77.51L202,74.49Zm-60-32a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h48A6,6,0,0,1,142,152Zm0,32a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h48A6,6,0,0,1,142,184Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM168,216H56V72h76.69L168,107.31v84.53c0,.06,0,.11,0,.16s0,.1,0,.16V216Zm32-32H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Zm-56-32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,152Zm0,32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,184Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.83,69.17l-40-40A4,4,0,0,0,168,28H88A12,12,0,0,0,76,40V60H56A12,12,0,0,0,44,72V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V196h20a12,12,0,0,0,12-12V72A4,4,0,0,0,210.83,69.17ZM172,216a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h78.34L172,105.66Zm32-32a4,4,0,0,1-4,4H180V104a4,4,0,0,0-1.17-2.83l-40-40A4,4,0,0,0,136,60H84V40a4,4,0,0,1,4-4h78.34L204,73.66Zm-64-32a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h48A4,4,0,0,1,140,152Zm0,32a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h48A4,4,0,0,1,140,184Z"}))]]),VCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,28H83.31a19.86,19.86,0,0,0-14.14,5.86L33.86,69.17A19.86,19.86,0,0,0,28,83.31V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM92,52h72V72H92ZM204,204H52V85L68,69v7A20,20,0,0,0,88,96h80a20,20,0,0,0,20-20V52h16Zm-76-96a42,42,0,1,0,42,42A42,42,0,0,0,128,108Zm0,60a18,18,0,1,1,18-18A18,18,0,0,1,128,168Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,40H176V80a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V40.73a8,8,0,0,0-2.34,1.61L42.34,77.66A8,8,0,0,0,40,83.31V208a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40ZM128,184a32,32,0,1,1,32-32A32,32,0,0,1,128,184Z",opacity:"0.2"}),b.createElement("path",{d:"M208,32H83.31A15.86,15.86,0,0,0,72,36.69L36.69,72A15.86,15.86,0,0,0,32,83.31V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM88,48h80V80H88ZM208,208H48V83.31l24-24V80A16,16,0,0,0,88,96h80a16,16,0,0,0,16-16V48h24Zm-80-96a40,40,0,1,0,40,40A40,40,0,0,0,128,112Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,176Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H83.31A15.86,15.86,0,0,0,72,36.69L36.69,72A15.86,15.86,0,0,0,32,83.31V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM128,184a32,32,0,1,1,32-32A32,32,0,0,1,128,184ZM172,80a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V48h88Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,34H83.31a13.94,13.94,0,0,0-9.9,4.1L38.1,73.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM86,46h84V80a2,2,0,0,1-2,2H88a2,2,0,0,1-2-2ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V83.31a2,2,0,0,1,.59-1.41L74,54.48V80A14,14,0,0,0,88,94h80a14,14,0,0,0,14-14V46h26a2,2,0,0,1,2,2Zm-82-94a38,38,0,1,0,38,38A38,38,0,0,0,128,114Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,178Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H83.31A15.86,15.86,0,0,0,72,36.69L36.69,72A15.86,15.86,0,0,0,32,83.31V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM88,48h80V80H88ZM208,208H48V83.31l24-24V80A16,16,0,0,0,88,96h80a16,16,0,0,0,16-16V48h24Zm-80-96a40,40,0,1,0,40,40A40,40,0,0,0,128,112Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,176Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,36H83.31a12,12,0,0,0-8.48,3.51L39.52,74.83A11.9,11.9,0,0,0,36,83.31V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM84,44h88V80a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V83.31a4,4,0,0,1,1.17-2.82L76,49.66V80A12,12,0,0,0,88,92h80a12,12,0,0,0,12-12V44h28a4,4,0,0,1,4,4Zm-84-92a36,36,0,1,0,36,36A36,36,0,0,0,128,116Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,180Z"}))]]),jCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H2
1906.77Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z",opacity:"0.2"}),b.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z"}))]]),HCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),b.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32
19-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),GCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H80a4,4,0,0,1-4-4V97.94a36,36,0,1,0-24,0V112a28,28,0,0,0,28,28h36v18.06a36,36,0,1,0,24,0V140h36a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,228,64ZM64,52A12,12,0,1,1,52,64,12,12,0,0,1,64,52Zm64,152a12,12,0,1,1,12-12A12,12,0,0,1,128,204ZM192,76a12,12,0,1,1,12-12A12,12,0,0,1,192,76Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M88,64A24,24,0,1,1,64,40,24,24,0,0,1,88,64ZM192,40a24,24,0,1,0,24,24A24,24,0,0,0,192,40Z",opacity:"0.2"}),b.createElement("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM144,192a16,16,0,1,1-16-16A16,16,0,0,1,144,192Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H80a10,10,0,0,1-10-10V93.4a30,30,0,1,0-12,0V112a22,22,0,0,0,22,22h42v28.6a30,30,0,1,0,12,0V134h42a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,222,64ZM46,64A18,18,0,1,1,64,82,18,18,0,0,1,46,64ZM146,192a18,18,0,1,1-18-18A18,18,0,0,1,146,192ZM192,82a18,18,0,1,1,18-18A18,18,0,0,1,192,82Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H80a8,8,0,0,1-8-8V95a32,32,0,1,0-16,0v17a24,24,0,0,0,24,24h40v25a32,32,0,1,0,16,0V136h40a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,224,64ZM48,64A16,16,0,1,1,64,80,16,16,0,0,1,48,64Zm96,128a16,16,0,1,1-16-16A16,16,0,0,1,144,192ZM192,80a16,16,0,1,1,16-16A16,16,0,0,1,192,80Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H80a12,12,0,0,1-12-12V91.71a28,28,0,1,0-8,0V112a20,20,0,0,0,20,20h44v32.29a28,28,0,1,0,8,0V132h44a20,20,0,0,0,20-20V91.71A28,28,0,0,0,220,64ZM44,64A20,20,0,1,1,64,84,20,20,0,0,1,44,64ZM148,192a20,20,0,1,1-20-20A20,20,0,0,1,148,192ZM192,84a20,20,0,1,1,20-20A20,20,0,0,1,192,84Z"}))]]),zCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.64,83.64,0,0,1-4.47,27L167,130a19.65,19.65,0,0,0-7.8-2.78l-22.82-3.08A20.14,20.14,0,0,0,117.72,132h-4.07l-2.71-5.6a19.88,19.88,0,0,0-13.8-10.84L94.46,115l4-7h14.39a20,20,0,0,0,9.66-2.49l12.25-6.76a20.57,20.57,0,0,0,3.74-2.68l26.92-24.33A20,20,0,0,0,172,56.49,84,84,0,0,1,212,128ZM140.76,45l6.2,11.1L122.75,78l-10.93,6H96.14A20.05,20.05,0,0,0,78.78,94.06l-4.49,7.85L67.68,84.28l9.91-23.42A83.91,83.91,0,0,1,140.76,45ZM44,128a83.52,83.52,0,0,1,4.4-26.77l7.74,20.65a19.89,19.89,0,0,0,14.52,12.53l19.53,4.2,3,6.1a20.11,20.11,0,0,0,13.55,10.77l-5,11.12a20,20,0,0,0,3.58,21.71l.21.22,18.16,18.7-.89,4.59A84.09,84.09,0,0,1,44,128Zm103.65,81.66a20.11,20.11,0,0,0-5-17.3l-.21-.22-17.72-18.25,11.37-25.52,19,2.56,41.43,25.48A84.2,84.2,0,0,1,147.65,209.66Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M213.09,172.48a96,96,0,0,1-80.41,51.41l3.17-16.44a8,8,0,0,0-2-6.95l-19.74-20.33a8,8,0,0,1-1.44-8.69l13.7-30.74a8,8,0,0,1,8.38-4.67l22.82,3.08a8.11,8.11,0,0,1,3.12,1.11ZM116.71,95,129,88.24a7.46,7.46,0,0,0,1.5-1.07l26.91-24.33A8,8,0,0,0,159,53l-10.5-18.81A96.62,96.62,0,0,0,128,32,95.61,95.61,0,0,0,67.78,53.23L56,81.08A8,8,0,0,0,55.88,87l11.5,30.67a8,8,0,0,0,5.81,5l2.69.58L89.2,100a8,8,0,0,1,6.94-4h16.71A7.9,7.9,0,0,0,116.71,95Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm90,102a89.55,89.55,0,0,1-7.46,35.86l
19-46.69-28.71a13.94,13.94,0,0,0-5.46-2l-22.82-3.07A14.06,14.06,0,0,0,121.06,138h-9.92a2,2,0,0,1-1.8-1.13l-3.8-7.86a13.94,13.94,0,0,0-9.66-7.59l-10.71-2.3L94.4,103a2,2,0,0,1,1.74-1h16.71a13.9,13.9,0,0,0,6.76-1.75l12.25-6.75a14.73,14.73,0,0,0,2.62-1.88l26.91-24.33a13.93,13.93,0,0,0,2.83-17.21L161,44.25A90.16,90.16,0,0,1,218,128ZM144.6,39.54l9.15,16.39a2,2,0,0,1-.41,2.46L126.43,82.72a1.84,1.84,0,0,1-.37.27l-12.25,6.76a2,2,0,0,1-1,.25H96.14A14,14,0,0,0,84,97L73.18,115.91a2,2,0,0,1-.19-.35L61.5,84.89a2,2,0,0,1,0-1.48L72.68,57.06A89.9,89.9,0,0,1,144.6,39.54ZM38,128A89.52,89.52,0,0,1,49.38,84.23a13.85,13.85,0,0,0,.89,4.87l11.49,30.67a13.94,13.94,0,0,0,10.16,8.78l21.44,4.6a2,2,0,0,1,1.38,1.09l3.8,7.86a14.07,14.07,0,0,0,12.6,7.9h4.56l-8.49,19a14,14,0,0,0,2.51,15.2l.1.11,19.68,20.26a2,2,0,0,1,.46,1.7L127.7,218A90.1,90.1,0,0,1,38,128Zm102.08,89.19,1.67-8.6a14.07,14.07,0,0,0-3.47-12.16l-.1-.11L118.5,176.06a2,2,0,0,1-.33-2.14l13.7-30.73A2,2,0,0,1,134,142l22.82,3.08a2,2,0,0,1,.78.27L205,174.55A90.18,90.18,0,0,1,140.08,217.19Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.44,91.44,0,0,1-8.58,38.76L162.8,136.85a12.07,12.07,0,0,0-4.68-1.67l-22.82-3.07a12,12,0,0,0-12.56,7l-.4.88h-11.2a4,4,0,0,1-3.6-2.26l-3.8-7.86a11.93,11.93,0,0,0-8.28-6.5L82.07,120.5,92.67,102a4,4,0,0,1,3.47-2h16.71a12,12,0,0,0,5.8-1.5l12.24-6.76a11.79,11.79,0,0,0,2.25-1.6L160.05,65.8a12,12,0,0,0,2.43-14.75l-5.86-10.49A92.17,92.17,0,0,1,220,128ZM145.89,37.75l9.6,17.2a4,4,0,0,1-.81,4.92L127.77,84.21a4.41,4.41,0,0,1-.75.53L114.78,91.5a4,4,0,0,1-1.93.5H96.14a12,12,0,0,0-10.41,6l-11.86,20.7a4,4,0,0,1-2.75-2.47L59.63,85.6a4,4,0,0,1,.06-3L71,55.81A91.51,91.51,0,0,1,128,36,92.53,92.53,0,0,1,145.89,37.75ZM36,128A91.52,91.52,0,0,1,56,70.77l-3.71,8.75a12,12,0,0,0-.18,8.88l11.49,30.67a11.93,11.93,0,0,0,8.72,7.52l21.43,4.61a4,4,0,0,1,2.76,2.17l3.8,7.86a12.07,12.07,0,0,0,10.8,6.77h7.64L109,169.85A12,12,0,0,0,111.26,183l19.68,20.26a4,4,0,0,1,1,3.47L129.36,220,128,220A92.1,92.1,0,0,1,36,128Zm101.6,91.5,2.18-11.29a12.08,12.08,0,0,0-3-10.49l-19.68-20.26a4,4,0,0,1-.71-4.35l13.7-30.74a4,4,0,0,1,4.18-2.33l22.82,3.07a4.12,4.12,0,0,1,1.56.56l49.11,30.2A92.12,92.12,0,0,1,137.6,219.5Z"}))]]),$Ce=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm83.13,96H179.56a144.3,144.3,0,0,0-21.35-66.36A84.22,84.22,0,0,1,211.13,116ZM128,207c-9.36-10.81-24.46-33.13-27.45-67h54.94a119.74,119.74,0,0,1-17.11,52.77A108.61,108.61,0,0,1,128,207Zm-27.45-91a119.74,119.74,0,0,1,17.11-52.77A108.61,108.61,0,0,1,128,49c9.36,10.81,24.46,33.13,27.45,67ZM97.79,49.64A144.3,144.3,0,0,0,76.44,116H44.87A84.22,84.22,0,0,1,97.79,49.64ZM44.87,140H76.44a144.3,144.3,0,0,0,21.35,66.36A84.22,84.22,0,0,1,44.87,140Zm113.34,66.36A144.3,144.3,0,0,0,179.56,140h31.57A84.22,84.22,0,0,1,158.21,206.36Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm11.36-77.6C96.06,57.67,82,83.49,8
190.21,120H40.37A88.19,88.19,0,0,1,107.59,42.4ZM40.37,136H80.21c1.82,36.51,15.85,62.33,27.38,77.6A88.19,88.19,0,0,1,40.37,136Zm108,77.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm52.18,93.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm89.8,96H173.89c-1.54-40.77-18.48-68.23-30.43-82.67A90.19,90.19,0,0,1,217.8,122ZM128,215.83a110,110,0,0,1-15.19-19.45A128.37,128.37,0,0,1,94.13,134h67.74a128.37,128.37,0,0,1-18.68,62.38A110,110,0,0,1,128,215.83ZM94.13,122a128.37,128.37,0,0,1,18.68-62.38A110,110,0,0,1,128,40.17a110,110,0,0,1,15.19,19.45A128.37,128.37,0,0,1,161.87,122Zm18.41-82.67c-12,14.44-28.89,41.9-30.43,82.67H38.2A90.19,90.19,0,0,1,112.54,39.33ZM38.2,134H82.11c1.54,40.77,18.48,68.23,30.43,82.67A90.19,90.19,0,0,1,38.2,134Zm105.26,82.67c11.95-14.44,28.89-41.9,30.43-82.67H217.8A90.19,90.19,0,0,1,143.46,216.67Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm87.62,96H175.79C174,83.49,159.94,57.67,148.41,42.4A88.19,88.19,0,0,1,215.63,120ZM96.23,136h63.54c-2.31,41.61-22.23,67.11-31.77,77C118.45,203.1,98.54,177.6,96.23,136Zm0-16C98.54,78.39,118.46,52.89,128,43c9.55,9.93,29.46,35.43,31.77,77Zm11.36-77.6C96.06,57.67,82,83.49,80.21,120H40.37A88.19,88.19,0,0,1,107.59,42.4ZM40.37,136H80.21c1.82,36.51,15.85,62.33,27.38,77.6A88.19,88.19,0,0,1,40.37,136Zm108,77.6c11.53-15.27,25.56-41.09,27.38-77.6h39.84A88.19,88.19,0,0,1,148.41,213.6Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm91.9,96h-48c-1.15-45.55-21.74-74.52-33.48-87.4A92.14,92.14,0,0,1,219.91,124ZM128,218.61c-8.32-8-34.57-37.13-35.93-86.61h71.86C162.57,181.48,136.32,210.61,128,218.61ZM92.07,124C93.43,74.52,119.68,45.39,128,37.39c8.32,8,34.57,37.13,35.93,86.61Zm25.47-87.4C105.8,49.48,85.21,78.45,84.06,124h-48A92.14,92.14,0,0,1,117.54,36.6ZM36.09,132h48c1.15,45.55,21.74,74.52,33.48,87.4A92.14,92.14,0,0,1,36.09,132Zm102.37,87.4c11.74-12.88,32.33-41.85,33.48-87.4h48A92.14,92.14,0,0,1,138.46,219.4Z"}))]]),qCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M253.88,108.11l-25.53-51a20,20,0,0,0-26.83-9L178.34,59.7,131.7,44.58a12.14,12.14,0,0,0-7.4,0L77.66,59.7,54.48,48.11a20,20,0,0,0-26.83,9L2.12,108.11a20,20,0,0,0,9,26.83l26.67,13.34,51.18,37.41A12.15,12.15,0,0,0,93,187.62l62,16a12.27,12.27,0,0,0,3,.38,12,12,0,0,0,8.48-3.52l52.62-52.62,25.83-12.92a20,20,0,0,0,8.95-26.83Zm-58.12,29.15-27.52-26a12,12,0,0,0-16.76.26c-9.66,9.74-25.06,16.81-40.81,9.55l38.19-37h22.72l25.81,51.63ZM47.32,71.37,60.59,78l-22,43.9-13.27-6.63Zm107,107.3L101.23,165l-42-30.66L85.17,82.5,128,68.61l1.69.55L90,107.68l-.13.12a20,20,0,0,0,3.4,31c20.95,13.39,46,12.07,66.33-2.73l19.2,18.15Zm63-56.77-22-43.9,13.27-6.63,21.95,43.9ZM118.55,219a12,12,0,0,1-14.62,8.62l-26.6-6.87a12,12,0,0,1-4.08-1.93L48.92,201a12,12,0,0,1,14.16-19.37l22.47,16.42,24.38,6.29A12,12,0,0,1,118.55,219Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,152l-40,40L96,176,40,136,72.68,70.63,128,56l55.32,14.63L183.6,72H144L98.34,116.29a8,8,0,0,0,1.38,12.42C117.23,139.9,141,139.13,160,120Z",opacity:"0.2"}),b.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l40-40,15.08-15.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41Zm-41.87,41.86L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm-25.72,34.8a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M252.51,108.8,227,57.75a14,14,0,0,0-18.78-6.27L182.66,64.26,129.53,50.2a6.1,6.1,0,0,0-3.06,0L73.34,64.26,47.79,51.48A14,14,0,0,0,29,57.75L3.49,108.8a14,14,0,0,0,6.26,18.78L36.9,141.16l55.61,39.72a6,6,0,0,0,2,.94l64,16A6.08,6.08,0,0,0,160,198a6,6,0,0,0,4.24-1.76l55.31-55.31,26.7-13.35a14,14,0,0,0,6.26-18.78Zm-53,35.16-35.8-28.68a6,6,0,0,0-8,.45c-18.65,18.79-39.5,16.42-52.79,7.92a2,2,0,0,1-.94-1.5,1.9,1.9,0,0,1,.51-1.55L146.43,78h33.86l28.41,56.82ZM14.11,115.69a2,2,0,0,1,.11-1.52L39.74,63.11a2,2,0,0,1,1.8-1.1,2,2,0,0,1,.89.21l22.21,11.1L37.32,128l-22.21-11.1A2,2,0,0,1,14.11,115.69Zm144.05,69.67-59.6-14.9L47.66,134.1,76.84,75.75,128,62.21l14.8,3.92a5.92,5.92,0,0,0-3,1.57L94.1,112.05a14,14,0,0,0,2.39,21.72c20.22,12.92,44.75,10.49,63.8-5.89L191,152.5Zm83.73-69.67a2,2,0,0,1-1,1.16L218.68,128,191.36,73.32l22.21-11.1a2,2,0,0,1,1.53-.11,2,2,0,0,1,1.16,1l25.52,51.06A2,2,0,0,1,241.89,115.69Zm-112,101.76a6,6,0,0,1-7.27,4.37L80.89,211.39a5.88,5.88,0,0,1-2-.94L52.52,191.64a6,6,0,1,1,7-9.77L84.91,200l40.61,10.15A6,6,0,0,1,129.88,217.45Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M254.3,107.91,228.78,56.85a16,16,0,0,0-21.47-7.15L182.44,62.13,130.05,48.27a8.14,8.14,0,0,0-4.1,0L73.56,62.13,48.69,49.7a16,16,0,0,0-21.47,7.15L1.7,107.9a16,16,0,0,0,7.15,21.47l27,13.51,55.49,39.63a8.06,8.06,0,0,0,2.71,1.25l64,16a8,8,0,0,0,7.6-2.1l55.07-55.08,26.42-13.21a16,16,0,0,0,7.15-21.46Zm-54.89,33.37L165,113.72a8,8,0,0,0-10.68.61C136.51,132.27,116.66,130,104,122L147.24,80h31.81l27.21,54.41ZM41.53,64,62,74.22,36.43,125.27,16,115.06Zm116,119.13L99.42,168.61l-49.2-35.14,28-56L128,64.28l9.8,2.59-45,43.68-.08.09a16,16,0,0,0,2.72,24.81c20.56,13.13,45.37,11,64.91-5L188,152.66Zm62-57.87-25.52-51L214.47,64,240,115.06Zm-87.75,92.67a8,8,0,0,1-7.75,6.06,8.13,8.13,0,0,1-1.95-.24L80.41,213.33a7.89,7.89,0,0,1-2.71-1.25L51.35,193.26a8,8,0,0,1,9.3-13l25.11,17.94L126,208.24A8,8,0,0,1,131.82,217.94Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M250.73,109.69l-25.53-51a12,12,0,0,0-16.1-5.37L182.88,66.38,129,52.14a3.92,3.92,0,0,0-2,0L73.12,66.38,46.9,53.27a12,12,0,0,0-16.1,5.37L5.27,109.69a12,12,0,0,0,5.37,16.1l27.29,13.65,55.75,39.82a3.87,3.87,0,0,0,1.35.62l64,16a4,4,0,0,0,3.8-1l55.54-55.54,27-13.5a12,12,0,0,0,5.37-16.1Zm-51,36.95-37.2-29.8a4,4,0,0,0-5.34.3c-19.49,19.64-41.34,17.11-55.29,8.2a4.07,4.07,0,0,1-1.85-3,3.91,3.91,0,0,1,1.11-3.21L145.62,76h35.91l29.6,59.21ZM12.21,116.32a4,4,0,0,1,.22-3L38,62.22h0A4,4,0,0,1,41.54,60a4,4,0,0,1,1.78.43l24,12L38.21,130.64l-24-12A4,4,0,0,1,12.21,116.32Zm146.56,71.25L97.71,172.3l-52.6-37.57L75.45,74,128,60.14,157.72,68H144a4,4,0,0,0-2.79,1.13l-45.7,44.33a12,12,0,0,0,2.06,18.62c19.88,12.71,44.13,10,62.66-6.81L194,152.33Zm85-71.25a4,4,0,0,1-2,2.32l-24,12L188.68,72.43l24-12A4,4,0,0,1,218,62.22l25.53,51.05A4,4,0,0,1,243.79,116.32ZM127.94,217a4,4,0,0,1-3.88,3,4.09,4.09,0,0,1-1-.12L81.38,209.45a4,4,0,0,1-1.36-.62L53.68,190a4,4,0,0,1,4.65-6.51l25.72,18.37,41,10.25A4,4,0,0,1,127.94,217Z"}))]]),WCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M204.73,51.85A108.07,108.07,0,0,0,20,128v56a28,28,0,0,0,28,28H64a28,28,0,0,0,28-28V144a28,28,0,0,0-28-28H44.84A84.05,84.05,0,0,1,128,44h.64a83.7,83.7,0,0,1,82.52,72H192a28,28,0,0,0-28,28v40a28,28,0,0,0,28,28h19.6A20,20,0,0,1,192,228H136a12,12,0,0,0,0,24h56a44.05,44.05,0,0,0,44-44V128A107.34,107.34,0,0,0,204.73,51.85ZM64,140a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V140Zm124,44V144a4,4,0,0,1,4-4h20v48H192A4,4,0,0,1,188,184Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M80,144v40a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V128H64A16,16,0,0,1,80,144Zm112-16a16,16,0,0,0-16,16v40a16,16,0,0,0,16,16h32V128Z",opacity:"0.2"}),b.createElement("path",{d:"M201.89,54.66A104.08,104.08,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,128v80a40,40,0,0,1-40,40H136a8,8,0,0,1,0-16h56a24,24,0,0,0,24-24H192a24,24,0,0,1-24-24V144a24,24,0,0,1,24-24h23.65A88,88,0,0,0,66,
1965.54,87.29,87.29,0,0,0,40.36,120H64a24,24,0,0,1,24,24v40a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V128A104.11,104.11,0,0,1,201.89,54.66,103.41,103.41,0,0,1,232,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200.47,56.07A101.37,101.37,0,0,0,128.77,26H128A102,102,0,0,0,26,128v56a22,22,0,0,0,22,22H64a22,22,0,0,0,22-22V144a22,22,0,0,0-22-22H38.2A90,90,0,0,1,128,38h.68a89.71,89.71,0,0,1,89.13,84H192a22,22,0,0,0-22,22v40a22,22,0,0,0,22,22h26v2a26,26,0,0,1-26,26H136a6,6,0,0,0,0,12h56a38,38,0,0,0,38-38V128A101.44,101.44,0,0,0,200.47,56.07ZM64,134a10,10,0,0,1,10,10v40a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V134Zm118,50V144a10,10,0,0,1,10-10h26v60H192A10,10,0,0,1,182,184Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M201.89,54.66A103.43,103.43,0,0,0,128.79,24H128A104,104,0,0,0,24,128v56a24,24,0,0,0,24,24H64a24,24,0,0,0,24-24V144a24,24,0,0,0-24-24H40.36A88.12,88.12,0,0,1,190.54,65.93,87.39,87.39,0,0,1,215.65,120H192a24,24,0,0,0-24,24v40a24,24,0,0,0,24,24h24a24,24,0,0,1-24,24H136a8,8,0,0,0,0,16h56a40,40,0,0,0,40-40V128A103.41,103.41,0,0,0,201.89,54.66ZM64,136a8,8,0,0,1,8,8v40a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V136Zm128,56a8,8,0,0,1-8-8V144a8,8,0,0,1,8-8h24v56Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M199.05,57.48A100.07,100.07,0,0,0,28,128v56a20,20,0,0,0,20,20H64a20,20,0,0,0,20-20V144a20,20,0,0,0-20-20H36.08A92,92,0,0,1,128,36h.7a91.75,91.75,0,0,1,91.22,88H192a20,20,0,0,0-20,20v40a20,20,0,0,0,20,20h28v4a28,28,0,0,1-28,28H136a4,4,0,0,0,0,8h56a36,36,0,0,0,36-36V128A99.44,99.44,0,0,0,199.05,57.48ZM64,132a12,12,0,0,1,12,12v40a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V132Zm116,52V144a12,12,0,0,1,12-12h28v64H192A12,12,0,0,1,180,184Z"}))]]),ZCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M148,108a12,12,0,0,1,12-12h28a12,12,0,0,1,0,24H160A12,12,0,0,1,148,108Zm40,28H168a12,12,0,0,0,0,24h20a12,12,0,0,0,0-24Zm48-80V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212ZM58.28,159.37A43.82,43.82,0,0,1,71.53,142a36,36,0,1,1,56.94,0,43.84,43.84,0,0,1,13.26,17.37,12,12,0,0,1-22.15,9.26C116.48,161.19,108.42,156,100,156s-16.47,5.2-19.59,12.63a12,12,0,1,1-22.13-9.26ZM88,120a12,12,0,1,0,12-12A12,12,0,0,0,88,120Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM96,144a24,24,0,1,1,24-24A24,24,0,0,1,96,144Z",opacity:"0.2"}),b.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M112,120a16,16,0,1,1-16-16A16,16,0,0,1,112,120ZM232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM135.75,166a39.76,39.76,0,0,0-17.19-23.34,32,32,0,1,0-45.12,0A39.84,39.84,0,0,0,56.25,166a8,8,0,0,0,15.5,4c2.64-10.25,13.06-18,24.25-18s21.62,7.73,24.25,18a8,8,0,1,0,15.5-4ZM200,144a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,144Zm0-32a8,8,0,0,0-8-8H152a8,8,0,0,0,0,16h40A8,8,0,0,0,200,112Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M198,112a6,6,0,0,1-6,6H152a6,6,0,0,1,0-12h40A6,6,0,0,1,198,112Zm-6,26H152a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm38-82V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2ZM133.81,166.51a6,6,0,0,1-11.62,3C119.34,158.38,108.08,150,96,150s-23.33,8.38-26.19,19.5a6,6,0,0,1-11.62-3A38,38,0,0,1,76.78,143a30,30,0,1,1,38.45,0A38,38,0,0,1,133.81,166.51ZM96,138a18,18,0,1,0-18-18A18,18,0,0,0,96,138Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,112a8,8,0,0,1-8,8H152a8,8,0,0,1,0-16h40A8,8,0,0,1,200,112Zm-8,24H152a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm40-80V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Zm-80.26-34a8,8,0,1,1-15.5,4c-2.63-10.26-13.06-18-24.25-18s-21.61,7.74-24.25,18a8,8,0,1,1-15.5-4,39.84,39.84,0,0,1,17.19-23.34,32,32,0,1,1,45.12,0A39.76,39.76,0,0,1,135.75,166ZM96,136a16,16,0,1,0-16-16A16,16,0,0,0,96,136Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M196,112a4,4,0,0,1-4,4H152a4,4,0,0,1,0-8h40A4,4,0,0,1,196,112Zm-4,28H152a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8Zm36-84V200a12,12,0,0,1-12,12H4
190a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4ZM131.87,167a4,4,0,1,1-7.74,2C121.06,157,109,148,96,148s-25,9-28.13,21A4,4,0,0,1,64,172a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,60.13,167a36.28,36.28,0,0,1,20.43-23.66,28,28,0,1,1,30.88,0A36.2,36.2,0,0,1,131.87,167ZM96,140a20,20,0,1,0-20-20A20,20,0,0,0,96,140Z"}))]]),YCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),b.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"}))]]),XCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),QCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,152ZM176,20H80A60.07,60.07,0,0,0,20,80v96a60.07,60.07,0,0,0,60,60h96a60.07,60.07,0,0,0,60-60V80A60.07,60.07,0,0,0,176,20Zm36,156a36,36,0,0,1-36,36H80a36,36,0,0,1-36-36V80A36,36,0,0,1,80,44h96a36,36,0,0,1,36,36ZM196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,32H80A48,48,0,0,0,32,80v96a48,48,0,0,0,48,48h96a48,48,0,0,0,48-48V80A48,48,0,0,0,176,32ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),b.createElement("path",{d:"M176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24Zm40,152a40,40,0,0,1-40,40H80a40,40,0,0,1-40-40V80A40,40,0,0,1,80,40h96a40,40,0,0,1,40,40ZM128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm64-84a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24ZM128,176a48,48,0,1,1,48-48A48.05,48.05,0,0,1,128,176Zm60-96a12,12,0,1,1,12-12A12,12,0,0,1,188,80Zm-28,48a32,32,0,1,1-32-32A32,32,0,0,1,160,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM176,26H80A54.06,54.06,0,0,0,26,80v96a54.06,54.06,0,0,0,54,54h96a54.06,54.06,0,0,0,54-54V80A54.06,54.06,0,0,0,176,26Zm42,150a42,42,0,0,1-42,42H80a42,42,0,0,1-42-42V80A42,42,0,0,1,80,38h96a42,42,0,0,1,42,42ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160ZM176,24H80A56.06,56.06,0,0,0,24,80v96a56.06,56.06,0,0,0,56,56h96a56.06,56.06,0,0,0,56-56V80A56.06,56.06,0,0,0,176,24Zm40,152a40,40,0,0,1-40,40H80a40,40,0,0,1-40-40V80A40,40,0,0,1,80,40h96a40,40,0,0,1,40,40ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164ZM176,28H80A52.06,52.06,0,0,0,28,80v96a52.06,52.06,0,0,0,52,52h96a52.06,52.06,0,0,0,52-52V80A52.06,52.06,0,0,0,176,28Zm44,148a44.05,44.05,0,0,1-44,44H80a44.05,44.05,0,0,1-44-44V80A44.05,44.05,0,0,1,80,36h96a44.05,44.05,0,0,1,44,44ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),KCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H4
190a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),JCe=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),b.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),e9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M156,112a12,12,0,0,1-12,12H124v20a12,12,0,0,1-24,0V124H80a12,12,0,0,1,0-24h20V80a12,12,0,0,1,24,0v20h20A12,12,0,0,1,156,112Zm76.49,120.49a12,12,0,0,1-17,0L168,185a92.12,92.12,0,1,1,17-17l47.54,47.53A12,12,0,0,1,232.49,232.49ZM112,180a68,68,0,1,0-68-68A68.08,68.08,0,0,0,112,180Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),b.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Zm112,0a8,8,0,0,1-8,8H120v24a8,8,0,0,1-16,0V120H80a8,8,0,0,1,0-16h24V80a8,8,0,0,1,16,0v24h24A8,8,0,0,1,152,112Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM144,120H120v24a8,8,0,0,1-16,0V120H80a8,8,0,0,1,0-16h24V80a8,8,0,0,1,16,0v24h24a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M150,112a6,6,0,0,1-6,6H118v26a6,6,0,0,1-12,0V118H80a6,6,0,0,1,0-12h26V80a6,6,0,0,1,12,0v26h26A6,6,0,0,1,150,112Zm78.24,116.24a6,6,0,0,1-8.48,0l-51.38-51.38a86.15,86.15,0,1,1,8.48-8.48l51.38,51.38A6,6,0,0,1,228.24,228.24ZM112,186a74,74,0,1,0-74-74A74.09,74.09,0,0,0,112,186Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M152,112a8,8,0,0,1-8,8H120v24a8,8,0,0,1-16,0V120H80a8,8,0,0,1,0-16h24V80a8,8,0,0,1,16,0v24h24A8,8,0,0,1,152,112Zm77.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88.11,88.11,0,1,1,11.31-11.31l50.07,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M148,112a4,4,0,0,1-4,4H116v28a4,4,0,0,1-8,0V116H80a4,4,0,0,1,0-8h28V80a4,4,0,0,1,8,0v28h28A4,4,0,0,1,148,112Zm78.83,114.83a4,4,0,0,1-5.66,0l-52.7-52.7a84.1,84.1,0,1,1,5.66-5.66l52.7,52.7A4,4,0,0,1,226.83,226.83ZM112,188a76,76,0,1,0-76-76A76.08,76.08,0,0,0,112,188Z"}))]]),t9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24a80,80,0,0,0-80,80c0,72,80,128,80,128s80-56,80-128A80,80,0,0,0,128,24Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,128,136Z",opacity:"0.2"}),b.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,66a38,38,0,1,0,38,38A38,38,0,0,0,128,66Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,130Zm0-112a86.1,86.1,0,0,0-86,86c0,30.91,14.34,63.74,41.47,94.94a252.32,252.32,0,0,0,41.09,38,6,6,0,0,0,6.88,0,252.32,252.32,0,0,0,41.09-38c27.13-31.2,41.47-64,41.47-94.94A86.1,86.1,0,0,0,128,18Zm0,206.51C113,212.93,54,163.62,54,104a74,74,0,0,1,148,0C202,163.62,143,212.93,128,224.51Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,68a36,36,0,1,0,36,36A36,36,0,0,0,128,68Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,132Zm0-112a84.09,84.09,0,0,0-84,84c0,30.42,14.17,62.79,41,93.62a250,250,0,0,0,40.73,37.66,4,4,0,0,0,4.58,0A250,250,0,0,0,171,197.62c26.81-30.83,41-63.2,41-93.62A84.09,84.09,0,0,0,128,20Zm37.1,172.23A254.62,254.62,0,0,1,128,227a254.62,254.62,0,0,1-37.1-34.81C73.15,171.8,52,139.9,52,104a76,76,0,0,1,152,0C204,139.9,182.85,171.8,165.1,192.23Z"}))]]),n9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,20H72A20,20,0,0,0,52,40V56H36A20,20,0,0,0,16,76V180a20,20,0,0,0,20,20H52v16a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V40A20,20,0,0,0,200,20Zm-32,88h28v40H168Zm28-24H168V76a20,20,0,0,0-20-20V44h48ZM76,44h48V56H76ZM40,80H144v96H40ZM76,200h48v12H76Zm72,12V200a20,20,0,0,0,20-20v-8h28v40ZM64.32,161.22a12,12,0,0,1-1.54-16.9L76.38,128l-13.6-16.32A12,12,0,1,1,81.22,96.32L92,109.25l10.78-12.93a12,12,0,0,1,18.44,15.36L107.62,128l13.6,16.32a12,12,0,1,1-18.44,15.36L92,146.75,81.22,159.68a12,12,0,0,1-16.9,1.54Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M152,80v96a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H144A8,8,0,0,1,152,80Z",opacity:"0.2"}),b.createElement("path",{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm-40,80h40v48H160Zm40-16H160V80a16,16,0,0,0-16-16V40h56ZM72,40h56V64H72ZM40,80H144v79.83c0,.06,0,.11,0,.17s0,.11,0,.17V176H40ZM72,192h56v24H72Zm72,24V192a16,16,0,0,0,16-16v-8h40v48ZM65.85,146.88,81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12a8,8,0,0,1-12.3-10.24Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,26H72A14,14,0,0,0,58,40V66H40A14,14,0,0,0,26,80v96a14,14,0,0,0,14,14H58v26a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V40A14,14,0,0,0,200,26Zm-42,76h44v52H158Zm44-62V90H158V80a14,14,0,0,0-14-14h-2V38h58A2,2,0,0,1,202,40ZM70,40a2,2,0,0,1,2-2h58V66H70ZM38,176V80a2,2,0,0,1,2-2H144a2,2,0,0,1,2,2v96a2,2,0,0,1-2,2H40A2,2,0,0,1,38,176Zm32,40V190h60v28H72A2,2,0,0,1,70,216Zm130,2H142V190h2a14,14,0,0,0,14-14V166h44v50A2,2,0,0,1,200,218ZM67.39,148.16,84.19,128l-16.8-20.16a6,6,0,1,1,9.22-7.68L92,118.63l15.39-18.47a6,6,0,0,1,9.22,7.68L99.81,128l16.8,20.16a6,6,0,1,1-9.22,7.68L92,137.37,76.61,155.84a6,6,0,0,1-9.22-7.68Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24Zm-40,80h40v48H160Zm40-16H160V80a16,16,0,0,0-16-16V40h56ZM72,40h56V64H72ZM40,80H144v79.83c0,.06,0,.11,0,.17s0,.11,0,.17V176H40ZM72,192h56v24H72Zm72,24V192a16,16,0,0,0,16-16v-8h40v48ZM65.85,146.88,81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12a8,8,0,0,1-12.3-10.24Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M200,28H72A12,12,0,0,0,60,40V68H40A12,12,0,0,0,28,80v96a12,12,0,0,0,12,12H60v28a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V40A12,12,0,0,0,200,28Zm-44,72h48v56H156Zm48-60V92H156V80a12,12,0,0,0-12-12h-4V36h60A4,4,0,0,1,204,40ZM68,40a4,4,0,0,1,4-4h60V68H68ZM36,176V80a4,4,0,0,1,4-4H144a4,4,0,0,1,4,4v96a4,4,0,0,1-4,4H40A4,4,0,0,1,36,176Zm32,40V188h64v32H72A4,4,0,0,1,68,216Zm132,4H140V188h4a12,12,0,0,0,12-12V164h48v52A4,4,0,0,1,200,220ZM68.93,149.44,86.79,128,68.93,106.56a4,4,0,0,1,6.14-5.12L92,121.75l16.93-20.31a4,4,0,1,1,6.14,5.12L97.21,128l17.86,21.44a4,4,0,1,1-6.14,5.12L92,134.25,75.07,154.56A4,4,0,0,1,72,156a3.94,3.94,0,0,1-2.56-.93A4,4,0,0,1,68.93,149.44Z"}))]]),B0e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H4
190a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z"}))]]),h9=b.forwardRef((t,e)=>b.createElement(I0e,{ref:e,...t,weights:B0e}));h9.displayName="MinusIcon";const r9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M180,128a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h80A12,12,0,0,1,180,128Zm56,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm40,112H88a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M174,128a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,128Zm56,0A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,128a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,128Zm56,0A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M172,128a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,128Zm56,0A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),i9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),b.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,
19106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),a9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M108,108a12,12,0,0,1,12-12h56a12,12,0,0,1,0,24H120A12,12,0,0,1,108,108Zm68,28H120a12,12,0,0,0,0,24h56a12,12,0,0,0,0-24Zm52-88V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28H208A20,20,0,0,1,228,48ZM52,204H68V52H52ZM204,52H92V204H204Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M80,40V216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8Z",opacity:"0.2"}),b.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM80,208H48V48H80Zm96-56H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H112a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M182,112a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h64A6,6,0,0,1,182,112Zm-6,26H112a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm46-90V208a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34H208A14,14,0,0,1,222,48ZM48,210H74V46H48a2,2,0,0,0-2,2V208A2,2,0,0,0,48,210ZM210,48a2,2,0,0,0-2-2H86V210H208a2,2,0,0,0,2-2Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M184,112a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h64A8,8,0,0,1,184,112Zm-8,24H112a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm48-88V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H72V48H48Zm160,0V48H88V208H208Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M180,112a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h64A4,4,0,0,1,180,112Zm-4,28H112a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm44-92V208a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36H208A12,12,0,0,1,220,48ZM48,212H76V44H48a4,4,0,0,0-4,4V208A4,4,0,0,0,48,212ZM212,48a4,4,0,0,0-4-4H84V212H208a4,4,0,0,0,4-4Z"}))]]),s9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),b.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),o9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,154.8l-47.09-21.11-.18-.08a19.94,19.94,0,0,0-19,1.75,13.08,13.08,0,0,0-1.12.84l-22.31,19c-13-7.05-26.43-20.37-33.49-33.21l19.06-22.66a11.76,11.76,0,0,0,.85-1.15,20,20,0,0,0,1.66-18.83,1.42,1.42,0,0,1-.08-.18L101.2,32A20.06,20.06,0,0,0,80.42,20.15,60.27,60.27,0,0,0,28,80c0,81.61,66.39,148,148,148a60.27,60.27,0,0,0,59.85-52.42A20.06,20.06,0,0,0,224,154.8ZM176,204A124.15,124.15,0,0,1,52,80,36.29,36.29,0,0,1,80.48,44.46l18.82,42L80.14,109.28a12,12,0,0,0-.86,1.16A20,20,0,0,0,78,130.08c9.42,19.28,28.83,38.56,48.31,48A20,20,0,0,0,146,176.63a11.63,11.63,0,0,0,1.11-.85l22.43-19.07,42,18.81A36.29,36.29,0,0,1,176,204Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M223.94,174.08A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59l25-21.3a8,8,0,0,1,7.59-.69l47.16,21.13A8,8,0,0,1,223.94,174.08Z",opacity:"0.2"}),b.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32
19-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.59,160.3l-47.24-21.17a14,14,0,0,0-13.28,1.22,4.81,4.81,0,0,0-.56.42l-24.69,21a1.88,1.88,0,0,1-1.68.06c-15.87-7.66-32.31-24-40-39.65a1.91,1.91,0,0,1,0-1.68l21.07-25a6.13,6.13,0,0,0,.42-.58,14,14,0,0,0,1.12-13.27L95.73,34.49a14,14,0,0,0-14.56-8.38A54.24,54.24,0,0,0,34,80c0,78.3,63.7,142,142,142a54.25,54.25,0,0,0,53.89-47.17A14,14,0,0,0,221.59,160.3ZM176,210C104.32,210,46,151.68,46,80A42.23,42.23,0,0,1,82.67,38h.23a2,2,0,0,1,1.84,1.31l21.1,47.11a2,2,0,0,1,0,1.67L84.73,113.15a4.73,4.73,0,0,0-.43.57,14,14,0,0,0-.91,13.73c8.87,18.16,27.17,36.32,45.53,45.19a14,14,0,0,0,13.77-1c.19-.13.38-.27.56-.42l24.68-21a1.92,1.92,0,0,1,1.6-.1l47.25,21.17a2,2,0,0,1,1.21,2A42.24,42.24,0,0,1,176,210Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220.78,162.13,173.56,141A12,12,0,0,0,162.18,142a3.37,3.37,0,0,0-.38.28L137,163.42a3.93,3.93,0,0,1-3.7.21c-16.24-7.84-33.05-24.52-40.89-40.57a3.9,3.9,0,0,1,.18-3.69l21.2-25.21c.1-.12.19-.25.28-.38a12,12,0,0,0,1-11.36L93.9,35.28a12,12,0,0,0-12.48-7.19A52.25,52.25,0,0,0,36,80c0,77.2,62.8,140,140,140a52.25,52.25,0,0,0,51.91-45.42A12,12,0,0,0,220.78,162.13ZM220,173.58A44.23,44.23,0,0,1,176,212C103.22,212,44,152.78,44,80A44.23,44.23,0,0,1,82.42,36a3.87,3.87,0,0,1,.48,0,4,4,0,0,1,3.67,2.49l21.11,47.14a4,4,0,0,1-.23,3.6l-21.19,25.2c-.1.13-.2.25-.29.39a12,12,0,0,0-.78,11.75c8.69,17.79,26.61,35.58,44.6,44.27a12,12,0,0,0,11.79-.87l.37-.28,24.83-21.12a3.93,3.93,0,0,1,3.57-.27l47.21,21.16A4,4,0,0,1,220,173.58Z"}))]]),l9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}
19))]]),c9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm52-84a12,12,0,0,1-12,12H140v28a12,12,0,0,1-24,0V140H88a12,12,0,0,1,0-24h28V88a12,12,0,0,1,24,0v28h28A12,12,0,0,1,180,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm40,112H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm46-90a6,6,0,0,1-6,6H134v34a6,6,0,0,1-12,0V134H88a6,6,0,0,1,0-12h34V88a6,6,0,0,1,12,0v34h34A6,6,0,0,1,174,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm48-88a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32A8,8,0,0,1,176,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm44-92a4,4,0,0,1-4,4H132v36a4,4,0,0,1-8,0V132H88a4,4,0,0,1,0-8h36V88a4,4,0,0,1,8,0v36h36A4,4,0,0,1,172,128Z"}))]]),u9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z",opacity:"0.2"}),b.createElement("path",{d:"M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z"}))]]),f9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M211.48,35.32l-130.25-23A20,20,0,0,0,58.05,28.54l-29.75,169a20,20,0,0,0,16.22,23.16l130.25,23h0a20.1,20.1,0,0,0,3.52.31A20,20,0,0,0,198,227.46l29.75-169A20,20,0,0,0,211.48,35.32ZM175,219.36,52.63,197.75,81,36.64,203.37,58.25ZM91.9,67a12,12,0,0,1,13.9-9.73L173,69.14A12,12,0,0,1,171,93a12.59,12.59,0,0,1-2.1-.18L101.63,80.9A12,12,0,0,1,91.9,67ZM85,106.39a12,12,0,0,1,13.91-9.73l67.22,11.88A12,12,0,0,1,164,132.35a12.5,12.5,0,0,1-2.1-.18L94.69,120.29A12,12,0,0,1,85,106.39ZM78,145.78a12,12,0,0,1,13.9-9.73L125.54,142a12,12,0,0,1-2.07,23.82,11.63,11.63,0,0,1-2.1-.19l-33.61-5.93A12,12,0,0,1,78,145.78Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M215.88,56.39l-29.75,169a8,8,0,0,1-9.27,6.49l-130.25-23a8,8,0,0,1-6.49-9.26l29.75-169a8,8,0,0,1,9.27-6.49l130.25,23A8,8,0,0,1,215.88,56.39Z",opacity:"0.2"}),b.createElement("path",{d:"M210.78,39.25l-130.25-23A16,16,0,0,0,62,29.23l-29.75,169a16,16,0,0,0,13,18.53l130.25,23h0a16,16,0,0,0,18.54-13l29.75-169A16,16,0,0,0,210.78,39.25ZM178.26,224h0L48,201,77.75,32,208,55ZM89.34,58.42a8,8,0,0,1,9.27-6.48l83,14.65a8,8,0,0,1-1.39,15.88,8.36,8.36,0,0,1-1.4-.12l-83-14.66A8,8,0,0,1,89.34,58.42ZM83.8,89.94a8,8,0,0,1,9.27-6.49l83,14.66A8,8,0,0,1,174.67,114a7.55,7.55,0,0,1-1.41-.13l-83-14.65A8,8,0,0,1,83.8,89.94Zm-5.55,31.51A8,8,0,0,1,87.52,115L129,122.29a8,8,0,0,1-1.38,15.88,8.27,8.27,0,0,1-1.4-.12l-41.5-7.33A8,8,0,0,1,78.25,121.45Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.78,39.25l-130.25-23A16,16,0,0,0,62,29.23l-29.75,169a16,16,0,0,0,13,18.53l130.25,23a16,16,0,0,0,18.54-13l29.75-169A16,16,0,0,0,210.78,39.25ZM135.5,131.56a8,8,0,0,1-7.87,
196.61,8.27,8.27,0,0,1-1.4-.12l-41.5-7.33A8,8,0,0,1,87.52,115L129,122.29A8,8,0,0,1,135.5,131.56Zm47-24.18a8,8,0,0,1-7.86,6.61,7.55,7.55,0,0,1-1.41-.13l-83-14.65a8,8,0,0,1,2.79-15.76l83,14.66A8,8,0,0,1,182.53,107.38Zm5.55-31.52a8,8,0,0,1-7.87,6.61,8.36,8.36,0,0,1-1.4-.12l-83-14.66a8,8,0,1,1,2.78-15.75l83,14.65A8,8,0,0,1,188.08,75.86Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.43,41.22l-130.25-23A14,14,0,0,0,64,29.58l-29.75,169a14,14,0,0,0,11.36,16.22l130.25,23h0a13.64,13.64,0,0,0,2.46.22A14,14,0,0,0,192,226.42l29.75-169A14,14,0,0,0,210.43,41.22ZM210,55.36l-29.75,169a2,2,0,0,1-.82,1.3,2,2,0,0,1-1.49.33L47.65,203A2,2,0,0,1,46,200.64l29.75-169a2,2,0,0,1,.82-1.3A2.06,2.06,0,0,1,78.1,30L208.35,53A2,2,0,0,1,210,55.36ZM186.11,75.51a6,6,0,0,1-5.9,5,6.2,6.2,0,0,1-1.05-.09l-83-14.66a6,6,0,1,1,2.09-11.81l83,14.65A6,6,0,0,1,186.11,75.51ZM180.56,107a6,6,0,0,1-5.9,5,5.48,5.48,0,0,1-1-.1l-83-14.65a6,6,0,0,1,2.09-11.82l83,14.66A6,6,0,0,1,180.56,107Zm-47,24.19a6,6,0,0,1-5.91,4.95,6.38,6.38,0,0,1-1.05-.09l-41.49-7.33a6,6,0,1,1,2.09-11.81l41.49,7.32A6,6,0,0,1,133.53,131.22Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.78,39.25l-130.25-23A16,16,0,0,0,62,29.23l-29.75,169a16,16,0,0,0,13,18.53l130.25,23h0a16,16,0,0,0,18.54-13l29.75-169A16,16,0,0,0,210.78,39.25ZM178.26,224h0L48,201,77.75,32,208,55ZM89.34,58.42a8,8,0,0,1,9.27-6.48l83,14.65a8,8,0,0,1-1.39,15.88,8.36,8.36,0,0,1-1.4-.12l-83-14.66A8,8,0,0,1,89.34,58.42ZM83.8,89.94a8,8,0,0,1,9.27-6.49l83,14.66A8,8,0,0,1,174.67,114a7.55,7.55,0,0,1-1.41-.13l-83-14.65A8,8,0,0,1,83.8,89.94Zm-5.55,31.51A8,8,0,0,1,87.52,115L129,122.29a8,8,0,0,1-1.38,15.88,8.27,8.27,0,0,1-1.4-.12l-41.5-7.33A8,8,0,0,1,78.25,121.45Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M210.09,43.19l-130.25-23a12,12,0,0,0-13.91,9.73l-29.75,169a12,12,0,0,0,9.73,13.9l130.26,23a11.58,11.58,0,0,0,2.11.19,12,12,0,0,0,11.79-9.92l29.75-169A12,12,0,0,0,210.09,43.19Zm1.85,12.51-29.75,169a4,4,0,0,1-4.63,3.25l-130.26-23a4,4,0,0,1-3.24-4.63l29.75-169a4,4,0,0,1,4.63-3.25l130.26,23A4,4,0,0,1,211.94,55.7Zm-27.8,19.47a4,4,0,0,1-3.93,3.3,4.14,4.14,0,0,1-.7-.06l-83-14.66a4,4,0,1,1,1.39-7.88l83,14.66A4,4,0,0,1,184.14,75.17Zm-5.54,31.51a4,4,0,0,1-3.94,3.31,3.39,3.39,0,0,1-.7-.07L91,95.27a4,4,0,1,1,1.39-7.88l83,14.66A4,4,0,0,1,178.6,106.68Zm-47,24.19a4,4,0,0,1-3.94,3.3,4.23,4.23,0,0,1-.7-.06l-41.49-7.33a4,4,0,1,1,1.39-7.87l41.49,7.32A4,4,0,0,1,131.56,130.87Z"}))]]),d9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M68,100A12,12,0,0,1,80,88h96a12,12,0,0,1,0,24H80A12,12,0,0,1,68,100Zm12,52h96a12,12,0,0,0,0-24H80a12,12,0,0,0,0,24ZM236,56V208a12,12,0,0,1-17.37,10.73L192,205.42l-26.63,13.31a12,12,0,0,1-10.74,0L128,205.42l-26.63,13.31a12,12,0,0,1-10.74,0L64,205.42,37.37,218.73A12,12,0,0,1,20,208V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V188.58l14.63-7.31a12,12,0,0,1,10.74,0L96,194.58l26.63-13.31a12,12,0,0,1,10.74,0L160,194.58l26.63-13.31a12,12,0,0,1,10.74,0L212,188.58Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,56V208l-32-16-32,16-32-16L96,208,64,192,32,208V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),b.createElement("path",{d:"M72,104a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,104Zm8,40h96a8,8,0,0,0,0-16H80a8,8,0,0,0,0,16ZM232,56V208a8,8,0,0,1-11.58,7.15L192,200.94l-28.42,14.21a8,8,0,0,1-7.16,0L128,200.94,99.58,215.15a8,8,0,0,1-7.16,0L64,200.94,35.58,215.15A8,8,0,0,1,24,208V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V195.06l20.42-10.22a8,8,0,0,1,7.16,0L96,199.06l28.42-14.22a8,8,0,0,1,7.16,0L160,199.06l28.42-14.22a8,8,0,0,1,7.16,0L216,195.06Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V208a8,8,0,0,0,11.58,7.15L64,200.94l28.42,14.21a8,8,0,0,0,7.16,0L128,200.94l28.42,14.21a8,8,0,0,0,7.16,0L192,200.94l28.42,14.21A8,8,0,0,0,232,208V56A16,16,0,0,0,216,40ZM176,144H80a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm0-32H80a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M182,104a6,6,0,0,1-6,6H80a6,6,0,0,1,0-12h96A6,6,0,0,1,182,104Zm-6,26H80a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Zm54-74V208a6,6,0,0,1-2.85,5.1,5.93,5.93,0,0,1-3.15.9,6,6,0,0,1-2.68-.63L192,198.71l-29.32,14.66a6,6,0,0,1-5.36,0L128,198.71,98.68,213.37a6,6,0,0,1-5.36,0L64,198.71,34.68,213.37A6,6,0,0,1,26,208V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V198.29l23.32-11.66a6,6,0,0,1,5.36,0L96,201.29l29.32-14.66a6,6,0,0,1,5.36,0L160,201.29l29.32-14.66a6,6,0,0,1,5.36,0L218,198.29Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M72,104a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,104Zm8,40h96a8,8,0,0,0,0-16H80a8,8,0,0,0,0,16ZM232,56V208a8,8,0,0,1-11.58,7.15L192,200.94l-28.42,14.21a8,8,0,0,1-7.16,0L128,200.94,99.58,215.15a8,8,0,0,1-7.16,0L64,200.94,35.58,215.15A8,8,0,0,1,24,208V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V195.06l20.42-10.22a8,8,0,0,1,7.16,0L96,199.06l28.42-14.22a8,8,0,0,1,7.16,0L160,199.06l28.42-14.22a8,8,0,0,1,7.16,0L216,195.06Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M180,104a4,4,0,0,1-4,4H80a4,4,0,0,1,0-8h96A4,4,0,0,1,180,104Zm-4,28H80a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Zm52-76V208a4,4,0,0,1-4,4,4.05,4.05,0,0,1-1.79-.42L192,196.47l-30.21,15.11a4,4,0,0,1-3.58,0L128,196.47,97.79,211.58a4,4,0,0,1-3.58,0L64,196.47,33.79,211.58A4,4,0,0,1,28,208V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V201.53l26.21-13.11a4,4,0,0,1,3.58,0L96,203.53l30.21-15.11a4,4,0,0,1,3.58,0L160,203.53l30.21-15.11a4,4,0,0,1,3.58,0L220,201.53Z"}))]]),h9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"}),b.createElement("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.3
196,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"}))]]),p9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18
19-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.65-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"}),b.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-52.2,6.84-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68
19-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2
19-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88Zm-46.37-43.71a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),m9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z",opacity:"0.2"}),b.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z"}))]]),A9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204ZM79.51,144.49a12,12,0,1,1,17-17L112,143l47.51-47.52a12,12,0,0,1,17,17l-56,56a12,12,0,0,1-17,0Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),b.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm-34.32,69.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.26,47,25.53a8,8,0,0,0,4.2,0c1-.27,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0ZM82.34,141.66a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32l-56,56a8,8,0,0,1-11.32,0Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-41.17-10.83a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),g9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",o
19pacity:"0.2"}),b.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),x9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),v9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,80l-96,56L32,80l96-56Z",opacity:"0.2"}),b.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z"}),b.createElement("path",{d:"M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z"}),b.createElement("path",{d:"M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z"}))]]),y9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),b.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),_9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H4
190a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),b9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),b.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),w9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M152.5,156.54a72,72,0,1,0-89,0,124,124,0,0,0-48.69,35.74,12,12,0,0,0,18.38,15.44C46.88,191.42,71,172,108,172s61.12,19.42,74.81,35.72a12,12,0,1,0,18.38-15.44A123.89,123.89,0,0,0,152.5,156.54ZM60,100a48,48,0,1,1,48,48A48.05,48.05,0,0,1,60,100Zm192.49,36.49-32,32a12,12,0,0,1-17,0l-16-16a12,12,0,0,1,17-17L212,143l23.51-23.52a12,12,0,1,1,17,17Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),b.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,0,0,12.25,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.25-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,
19100Zm197.66,33.66-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L216,148.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M253.66,133.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L216,148.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M139,158.25a66,66,0,1,0-62,0c-22,6.23-41.88,19.16-57.61,37.89a6,6,0,0,0,9.18,7.72C49.11,179.44,77.31,166,108,166s58.9,13.44,79.41,37.86a6,6,0,1,0,9.18-7.72C180.86,177.41,161,164.48,139,158.25ZM54,100a54,54,0,1,1,54,54A54.06,54.06,0,0,1,54,100Zm198.24,32.24-32,32a6,6,0,0,1-8.48,0l-16-16a6,6,0,0,1,8.48-8.48L216,151.51l27.76-27.75a6,6,0,1,1,8.48,8.48Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17a8,8,0,0,0,12.25,10.3C50.25,181.19,77.91,168,108,168s57.75,13.19,77.87,37.15a8,8,0,0,0,12.25-10.3C183.18,177.07,164.6,164.44,144,157.68ZM56,100a52,52,0,1,1,52,52A52.06,52.06,0,0,1,56,
19100Zm197.66,33.66-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L216,148.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M133.17,158.84a64,64,0,1,0-50.34,0c-23.76,5.46-45.18,18.69-61.89,38.59a4,4,0,1,0,6.12,5.14C48,177.7,76.71,164,108,164s60,13.7,80.94,38.57a4,4,0,0,0,6.12-5.14C178.35,177.53,156.93,164.3,133.17,158.84ZM52,100a56,56,0,1,1,56,56A56.06,56.06,0,0,1,52,100Zm198.83,30.83-32,32a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,5.66-5.66L216,154.34l29.17-29.17a4,4,0,1,1,5.66,5.66Z"}))]]),S9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),T9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z",opacity:"0.2"}),b.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-
1957.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z"}))]]),E9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M164.38,181.1a52,52,0,1,0-72.76,0,75.89,75.89,0,0,0-30,28.89,12,12,0,0,0,20.78,12,53,53,0,0,1,91.22,0,12,12,0,1,0,20.78-12A75.89,75.89,0,0,0,164.38,181.1ZM100,144a28,28,0,1,1,28,28A28,28,0,0,1,100,144Zm147.21,9.59a12,12,0,0,1-16.81-2.39c-8.33-11.09-19.85-19.59-29.33-21.64a12,12,0,0,1-1.82-22.91,20,20,0,1,0-24.78-28.3,12,12,0,1,1-21-11.6,44,44,0,1,1,73.28,48.35,92.18,92.18,0,0,1,22.85,21.69A12,12,0,0,1,247.21,153.59Zm-192.28-24c-9.48,2.05-21,10.55-29.33,21.65A12,12,0,0,1,6.41,136.79,92.37,92.37,0,0,1,29.26,115.1a44,44,0,1,1,73.28-48.35,12,12,0,1,1-21,11.6,20,20,0,1,0-24.78,28.3,12,12,0,0,1-1.82,22.91Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168,144a40,40,0,1,1-40-40A40,40,0,0,1,168,144ZM64,56A32,32,0,1,0,96,88,32,32,0,0,0,64,56Zm128,0a32,32,0,1,0,32,32A32,32,0,0,0,192,56Z",opacity:"0.2"}),b.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1,0-16,24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.85,8,57,57,0,0,0-98.15,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M64.12,147.8a4,4,0,0,1-4,4.2H16a8,8,0,0,1-7.8-6.17,8.35,8.35,0,0,1,1.62-6.93A67.79,67.79,0,0,1,37,117.51a40,40,0,1,1,66.46-35.8,3.94,3.94,0,0,1-2.27,4.18A64.08,64.08,0,0,0,64,144C64,145.28,64,146.54,64.12,147.8Zm182-8.91A67.76,67.76,0,0,0,219,117.51a40,40,0,1,0-66.46-35.8,3.94,3.94,0,0,0,2.27,4.18A64.08,64.08,0,0,1,192,144c0,1.28,0,2.54-.12,3.8a4,4,0,0,0,4,4.2H240a8,8,0,0,0,7.8-6.17A8.33,8.33,0,0,0,246.17,138.89Zm-89,43.18a48,48,0,1,0-58.37,0A72.13,72.13,0,0,0,65.07,212,8,8,0,0,0,72,224H184a8,8,0,0,0,6.93-12A72.15,72.15,0,0,0,157.19,182.07Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M243.6,148.8a6,6,0,0,1-8.4-1.2A53.58,53.58,0,0,0,192,126a6,6,0,0,1,0-12,26,26,0,1,0-25.18-32.5,6,6,0,0,1-11.62-3,38,38,0,1,1,59.91,39.63A65.69,65.69,0,0,1,244.8,140.4,6,6,0,0,1,243.6,148.8ZM189.19,213a6,6,0,0,1-2.19,8.2,5.9,5.9,0,0,1-3,.81,6,6,0,0,1-5.2-3,59,59,0,0,0-101.62,0,6,6,0,1,1-10.38-6A70.1,70.1,0,0,1,103,182.55a46,46,0,1,1,50.1,0A70.1,70.1,0,0,1,189.19,213ZM128,178a34,34,0,1,0-34-34A34,34,0,0,0,128,178ZM70,120a6,6,0,0,0-6-6A26,26,0,1,1,89.18,81.49a6,6,0,1,0,11.62-3,38,38,0,1,0-59.91,39.63A65.69,65.69,0,0,0,11.2,140.4a6,6,0,1,0,9.6,7.2A53.58,53.58,0,0,1,64,126,6,6,0,0,0,70,120Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M237,147.44a4,4,0,0,1-5.48-1.4c-8.33-14-20.93-22-34.56-22a4,4,0,0,1-1.2-.2,36.76,36.76,0,0,1-3.8.2,4,4,0,0,1,0-8,28,28,0,1,0-27.12-35,4,4,0,0,1-7.75-2,36,36,0,1,1,54,39.48c10.81,3.85,20.51,12,27.31,23.48A4,4,0,0,1,237,147.44ZM187.46,214a4,4,0,0,1-1.46,5.46,3.93,3.93,0,0,1-2,.54,4,4,0,0,1-3.46-2,61,61,0,0,0-105.08,0,4,4,0,0,1-6.92-4,68.35,68.35,0,0,1,39.19-31,44,44,0,1,1,40.54,0A68.35,68.35,0,0,1,187.46,214ZM128,180a36,36,0,1,0-36-36A36,36,0,0,0,128,180ZM64,116A28,28,0,1,1,91.12,81a4,4,0,0,0,7.75-2A36,36,0,1,0,45.3,118.75,63.55,63.55,0,0,0,12.8,141.6a4,4,0,0,0,6.4,4.8A55.55,55.55,0,0,1,64,124a4,4,0,0,0,0-8Z"}))]]),M9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M196,136a16,16,0,1,1-16-16A16,16,0,0,1,196,136Zm40-36v80a32,32,0,0,1-32,32H60a32,32,0,0,1-32-32V60.92A32,32,0,0,1,60,28H192a12,12,0,0,1,0,24H60a8,8,0,0,0-8,8.26v.08A8.32,8.32,0,0,0,60.48,68H204A32,32,0,0,1,236,100Zm-24,0a8,8,0,0,0-8-8H60.48A33.72,33.72,0,0,1,52,90.92V180a8,8,0,0,0,8,8H204a8,8,0,0,0,8-8Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,80V192a8,8,0,0,1-8,8H56a16,16,0,0,1-16-16V56A16,16,0,0,0,56,72H216A8,8,0,0,1,224,80Z",opacity:"0.2"}
19),b.createElement("path",{d:"M216,64H56a8,8,0,0,1,0-16H192a8,8,0,0,0,0-16H56A24,24,0,0,0,32,56V184a24,24,0,0,0,24,24H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64Zm0,128H56a8,8,0,0,1-8-8V78.63A23.84,23.84,0,0,0,56,80H216Zm-48-60a12,12,0,1,1,12,12A12,12,0,0,1,168,132Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,64H56a8,8,0,0,1,0-16H192a8,8,0,0,0,0-16H56A24,24,0,0,0,32,56V184a24,24,0,0,0,24,24H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64Zm-36,80a12,12,0,1,1,12-12A12,12,0,0,1,180,144Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,66H56a10,10,0,0,1,0-20H192a6,6,0,0,0,0-12H56A22,22,0,0,0,34,56V184a22,22,0,0,0,22,22H216a14,14,0,0,0,14-14V80A14,14,0,0,0,216,66Zm2,126a2,2,0,0,1-2,2H56a10,10,0,0,1-10-10V75.59A21.84,21.84,0,0,0,56,78H216a2,2,0,0,1,2,2Zm-28-60a10,10,0,1,1-10-10A10,10,0,0,1,190,132Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,64H56a8,8,0,0,1,0-16H192a8,8,0,0,0,0-16H56A24,24,0,0,0,32,56V184a24,24,0,0,0,24,24H216a16,16,0,0,0,16-16V80A16,16,0,0,0,216,64Zm0,128H56a8,8,0,0,1-8-8V78.63A23.84,23.84,0,0,0,56,80H216Zm-48-60a12,12,0,1,1,12,12A12,12,0,0,1,168,132Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,68H56a12,12,0,0,1,0-24H192a4,4,0,0,0,0-8H56A20,20,0,0,0,36,56V184a20,20,0,0,0,20,20H216a12,12,0,0,0,12-12V80A12,12,0,0,0,216,68Zm4,124a4,4,0,0,1-4,4H56a12,12,0,0,1-12-12V72a19.86,19.86,0,0,0,12,4H216a4,4,0,0,1,4,4Zm-32-60a8,8,0,1,1-8-8A8,8,0,0,1,188,132Z"}))]]),C9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),N9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M187.3,159.06A36.09,36.09,0,0,1,152,188a84.09,84.09,0,0,1-84-84A36.09,36.09,0,0,1,96.94,68.7,12,12,0,0,1,110,75.1l11.48,23a12,12,0,0,1-.75,12l-8.52,12.78a44.56,44.56,0,0,0,20.91,20.91l12.78-8.52a12,12,0,0,1,12-.75l23,11.48A12,12,0,0,1,187.3,159.06ZM236,128A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,32A96,96,0,0,0,44.89,176.07L32.42,213.46a8,8,0,0,0,10.12,10.12l37.39-12.47A96,96,0,1,0,128,32Zm24,152a80,80,0,0,1-80-80,32,32,0,0,1,32-32l16,32-12.32,18.47a48.19,48.19,0,0,0,25.85,25.85L152,136l32,16A32,32,0,0,1,152,184Z",opacity:"0.2"}),b.createElement("path",{d:"M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.62-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24
19-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M186.68,146.63l-32-16a6,6,0,0,0-6,.38L133,141.46A42.49,42.49,0,0,1,114.54,123L125,107.33a6,6,0,0,0,.38-6l-16-32A6,6,0,0,0,104,66a38,38,0,0,0-38,38,86.1,86.1,0,0,0,86,86,38,38,0,0,0,38-38A6,6,0,0,0,186.68,146.63ZM152,178a74.09,74.09,0,0,1-74-74,26,26,0,0,1,22.42-25.75l12.66,25.32-10.39,15.58a6,6,0,0,0-.54,5.63,54.43,54.43,0,0,0,29.07,29.07,6,6,0,0,0,5.63-.54l15.58-10.39,25.32,12.66A26,26,0,0,1,152,178ZM128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M185.79,148.42l-32-16a4,4,0,0,0-4,.25l-16.64,11.1a44.56,44.56,0,0,1-20.91-20.91l11.1-16.64a4,4,0,0,0,.25-4l-16-32A4,4,0,0,0,104,68a36,36,0,0,0-36,36,84.09,84.09,0,0,0,84,84,36,36,0,0,0,36-36A4,4,0,0,0,185.79,148.42ZM152,180a76.08,76.08,0,0,1-76-76,28,28,0,0,1,25.58-27.9l13.8,27.61-11,16.54A4,4,0,0,0,104,124a52.43,52.43,0,0,0,28,28,4,4,0,0,0,3.76-.37l16.54-11,27.61,13.8A28,28,0,0,1,152,180ZM128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]),R9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),b.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),D9e=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),b.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),P9e=b.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Ln=b.forwardRef((t,e)=>{const{alt:n,color:r,size:i,weight:a,mirrored:s,children:o,weights:l,...c}=t,{color:u="currentColor",size:f,weight:h="regular",mirrored:p=!1,...A}=b.useContext(P9e);return b.createElement("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:i??f,height:i??f,fill:r??u,viewBox:"0 0 256 256",transform:s||p?"scale(-1, 1)":void 0,...A,...c},!!n&&b.createElement("title",null,n),o,l.get(a??h))});Ln.displayName="IconBase";const U0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:lCe}));U0e.displayName="AddressBookIcon";const V0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:cCe}));V0e.displayName="ArrowDownLeftIcon";const Ap=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:uCe}));Ap.displayName="ArrowLeftIcon";const ms=b.forwardRef((t,e)=>
19b.createElement(Ln,{ref:e,...t,weights:fCe}));ms.displayName="ArrowRightIcon";const j0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:dCe}));j0e.displayName="ArrowUpIcon";const H0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:hCe}));H0e.displayName="ArrowUpRightIcon";const G0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:pCe}));G0e.displayName="ArrowsClockwiseIcon";const z0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:mCe}));z0e.displayName="ArrowsDownUpIcon";const $0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:ACe}));$0e.displayName="BankIcon";const XU=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:gCe}));XU.displayName="BuildingOfficeIcon";const q0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:xCe}));q0e.displayName="BuildingsIcon";const W0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:vCe}));W0e.displayName="CalendarBlankIcon";const QD=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:yCe}));QD.displayName="CalendarDotsIcon";const KD=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:_Ce}));KD.displayName="CaretDownIcon";const Z0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:bCe}));Z0e.displayName="CaretLeftIcon";const ZG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:wCe}));ZG.displayName="CaretRightIcon";const Y0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:SCe}));Y0e.displayName="ChatCircleTextIcon";const YG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:TCe}));YG.displayName="ChatTeardropDotsIcon";const X0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:ECe}));X0e.displayName="CheckIcon";const _T=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:MCe}));_T.displayName="CheckCircleIcon";const Aw=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:CCe}));Aw.displayName="CheckFatIcon";const Q0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:NCe}));Q0e.displayName="ClockIcon";const K0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:RCe}));K0e.displayName="ClockCountdownIcon";const J0e=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:DCe}));J0e.displayName="CurrencyInrIcon";const efe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:PCe}));efe.displayName="DownloadSimpleIcon";const Ry=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:kCe}));Ry.displayName="EnvelopeSimpleIcon";const tfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:LCe}));tfe.displayName="EyeIcon";const nfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:OCe}));nfe.displayName="EyeSlashIcon";const rfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:FCe}));rfe.displayName="FacebookLogoIcon";const ife=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:ICe}));ife.displayName="FilePdfIcon";const Dy=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:BCe}));Dy.displayName="FileTextIcon";const k9e=Dy,afe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:UCe}));afe.displayName="FilesIcon";const XG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:VCe}));XG.displayName="FloppyDiskBackIcon";const sfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:jCe}));sfe.displayName="FunnelIcon";const ofe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:HCe}));ofe.displayName="GearIcon";const lfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:GCe}));lfe.displayName="GitForkIcon";const cfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:zCe}));cfe.displayName="GlobeHemisphereWestIcon";const L9e=cfe,ufe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:$Ce}));ufe.displayName="GlobeSimpleIcon";const ffe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:qCe}));ffe.displayName="HandshakeIcon";const QU=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:WCe}));QU.displayName="HeadsetIcon";const QG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:ZCe}));QG.displayName="IdentificationCardIcon";const p9=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:YCe}));p9.displayName="ImageIcon";const JD=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:XCe}));JD.displayName="InfoIcon";const dfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:QCe}));dfe.displayName="InstagramLogoIcon";const eP=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:KCe}));eP.displayName="ListIcon";const O9e=eP,hfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:JCe}));hfe.displayName="MagnifyingGlassIcon";const pfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:e9e}));pfe.displayName="MagnifyingGlassPlusIcon";const tP=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:t9e}));tP.displayName="MapPinIcon";const mfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:n9e}));mfe.displayName="MicrosoftExcelLogoIcon";const m9=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:B0e}));m9.displayName="MinusIcon";const KG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:r9e}));KG.displayName="MinusCircleIcon";const KU=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:i9e}));KU.displayName="MoonIcon";const $S=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:a9e}));$S.displayName="NotebookIcon";const bT=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:s9e}));bT.displayName="PencilIcon";const wT=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:o9e}));wT.displayName="PhoneIcon";const Iv=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:l9e}));Iv.displayName="PlusIcon";const nP=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:c9e}));nP.displayName="PlusCircleIcon";const JG=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:u9e}));JG.displayName="PrinterIcon";const Afe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:f9e}));Afe.displayName="ReadCvLogoIcon";const ez=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:d9e}));
19ez.displayName="ReceiptIcon";const gfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:h9e}));gfe.displayName="RocketLaunchIcon";const xfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:p9e}));xfe.displayName="SealCheckIcon";const vfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:m9e}));vfe.displayName="ShareNetworkIcon";const yfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:A9e}));yfe.displayName="ShieldCheckIcon";const F9e=yfe,_fe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:g9e}));_fe.displayName="SignOutIcon";const ST=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:x9e}));ST.displayName="SpinnerIcon";const bfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:v9e}));bfe.displayName="StackIcon";const JU=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:y9e}));JU.displayName="SunIcon";const TT=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:_9e}));TT.displayName="UploadSimpleIcon";const Yw=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:b9e}));Yw.displayName="UserIcon";const wfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:w9e}));wfe.displayName="UserCheckIcon";const tz=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:S9e}));tz.displayName="UserCircleIcon";const Sfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:T9e}));Sfe.displayName="UserPlusIcon";const Tfe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:E9e}));Tfe.displayName="UsersThreeIcon";const R3=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:M9e}));R3.displayName="WalletIcon";const qS=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:C9e}));qS.displayName="WarningCircleIcon";const Efe=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:N9e}));Efe.displayName="WhatsappLogoIcon";const rx=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:R9e}));rx.displayName="XIcon";const I9e=rx,nz=b.forwardRef((t,e)=>b.createElement(Ln,{ref:e,...t,weights:D9e}));nz.displayName="XCircleIcon";function fi(t){const e=Dn.c(26);let n,r,i,a,s,o,l,c;e[0]!==t?({btnText:n,variant:c,onClick:o,children:r,iconPosition:s,className:i,disabled:a,...l}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8]);const f=`app-button app-button-${c} ${B9e(c)} px-4 py-2 rounded-[50px] flex items-center justify-center gap-2 select-none ${a?"cursor-not-allowed":"cursor-pointer"} ${i}`;let h;e[9]!==f?(h=N3(f),e[9]=f,e[10]=h):h=e[10];const p=a?void 0:o;let A;e[11]!==a||e[12]!==c?(A=c==="disabled"||a?{}:{scale:1.04,y:-2},e[11]=a,e[12]=c,e[13]=A):A=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g={duration:.18,ease:"easeOut"},e[14]=g):g=e[14];let w;e[15]!==c?(w=c==="disabled"?{x:[-8,8,-6,6,-3,3,0]}:{scale:.92},e[15]=c,e[16]=w):w=e[16];const T=s==="left"&&r,C=s==="right"&&r;let M;return e[17]!==n||e[18]!==l||e[19]!==h||e[20]!==p||e[21]!==A||e[22]!==w||e[23]!==T||e[24]!==C?(M=x.jsxs(ql.div,{className:h,onClick:p,whileHover:A,transition:g,whileTap:w,type:"button",...l,children:[T," ",n,C]}),e[17]=n,e[18]=l,e[19]=h,e[20]=p,e[21]=A,e[22]=w,e[23]=T,e[24]=C,e[25]=M):M=e[25],M}function B9e(t){switch(t){case"primary":return"bg-[var(--primary-color)] text-white";case"secondary":return"bg-[var(--secondary-color)] text-white";case"red":return"bg-[var(--red-color)] text-white";case"outlined":return"border border-[var(--outlined-color)] text-[var(--outlined-color)]";case"outlined-gray":return"border border-[var(--outlined-gray-color)] text-[var(--outlined-gray-color)] ";case"outlined-secondary":return"border border-[var(--outlined-secondary-color)] text-[var(--outlined-secondary-color)]";case"disabled":return"bg-[#e6e6e6] text-[#bfbfbf]";default:return"bg-[var(--primary-color)] text-white"}}fi.defaultProps={variant:"primary",btnText:"button",iconPosition:"right",className:""};fi.propTypes={btnText:re.string.isRequired,variant:re.oneOf(["primary","secondary","red","outlined","outlined-gray","outlined-secondary"]).isRequired,onClick:re.func.isRequired,iconPosition:re.oneOf(["left","right"]).isRequired,className:re.string};function Dm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mfe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var xf={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},WS={duration:.5,overwrite:!1,delay:0},rz,dc,Os,cd=1e8,ts=1/cd,eV=Math.PI*2,U9e=eV/4,V9e=0,Cfe=Math.sqrt,j9e=Math.cos,H9e=Math.sin,Wl=function(e){return typeof e=="string"},uo=function(e){return typeof e=="function"},x2=function(e){return typeof e=="number"},iz=function(e){return typeof e>"u"},gp=function(e){return typeof e=="object"},T0=function(e){return e!==!1},az=function(){return typeof window<"u"},PM=function(e){return uo(e)||Wl(e)},Nfe=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Qc=Array.isArray,G9e=/random\([^)]+\)/g,z9e=/,\s*/g,mee=/(?:-?\.?\d|\.)+/gi,Rfe=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,B8=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,dF=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Dfe=/[+-]=-?[.\d]+/,$9e=/[^,'"\[\]\s]+/gi,q9e=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,zs,C1,tV,sz,bf={},MN={},Pfe,kfe=function(e){return(MN=D3(e,bf))&&D0},oz=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},ZS=function(e,n){return!n&&console.warn(e)},Lfe=function(e,n){return e&&(bf[e]=n)&&MN&&(MN[e]=n)||bf},YS=function(){return 0},W9e={suppressEvents:!0,isStart:!0,kill:!1},A9={suppressEvents:!0,kill:!1},Z9e={suppressEvents:!0},lz={},gg=[],nV={},Ofe,of={},hF={},Aee=30,g9=[],cz="",uz=function(e){var n=e[0],r,i;if(gp(n)||uo(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=g9.length;i--&&!g9[i].targetTest(n););r=g9[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new rde(e[i],r)))||e.splice(i,1);return e},Bv=function(e){return e._gsap||uz(ud(e))[0]._gsap},Ffe=function(e,n,r){return(r=e[n])&&uo(r)?e[n]():iz(r)&&e.getAttribute&&e.getAttribute(n)||r}
vendor: 4,154 bytes, line 19
19,E0=function(e,n){return(e=e.split(",")).forEach(n)||e},To=function(e){return Math.round(e*1e5)/1e5||0},Gs=function(e){return Math.round(e*1e7)/1e7||0},Q8=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},Y9e=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},CN=function(){var e=gg.length,n=gg.slice(0),r,i;for(nV={},gg.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},fz=function(e){return!!(e._initted||e._startAt||e.add)},Ife=function(e,n,r,i){gg.length&&!dc&&CN(),e.render(n,r,!!(dc&&n<0&&fz(e))),gg.length&&!dc&&CN()},Bfe=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match($9e).length<2?n:Wl(e)?e.trim():e},Ufe=function(e){return e},wf=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},X9e=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},D3=function(e,n){for(var r in n)e[r]=n[r];return e},gee=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=gp(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},NN=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},Xw=function(e){var n=e.parent||zs,r=e.keyframes?X9e(Qc(e.keyframes)):wf;if(T0(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},Q9e=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},Vfe=function(e,n,r,i,a){var s=e[i],o;if(a)for(o=n[a];s&&s[a]>o;)s=s._prev;return s?(n._next=s._next,s._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=s,n.parent=n._dp=e,n},rP=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var a=n._prev,s=n._next;a?a._next=s:e[r]===n&&(e[r]=s),s?s._prev=a:e[i]===n&&(e[i]=a),n._next=n._prev=n.parent=null},Ig=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Uv=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},K9e=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},rV=function(e,n,r,i){return e._startAt&&(dc?e._startAt.revert(A9):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},J9e=function t(e){return!e||e._ts&&t(e.parent)},xee=function(e){return e._repeat?P3(e._tTime,e=e.duration()+e._rDelay)*e:0},P3=function(e,n){var r=Math.floor(e=Gs(e/n));return e&&r===e?r-1:r},RN=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},iP=function(e){return e._end=Gs(e._start+(e._tDur/Math.abs(e._ts||e._rts||ts)||0))},aP=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Gs(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),iP(e),r._dirty||Uv(r,e)),e},jfe=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=RN(e.rawTime(),n),(!n._dur||ET(0,n.totalDuration(),r)-n._tTime>ts)&&n.render(r,!0)),Uv(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-ts}},I1=function(e,n,r,i){return n.parent&&Ig(n),n._start=Gs((x2(r)?r:r||e!==zs?Qf(e,r,n):e._time)+n._delay),n._end=Gs(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Vfe(e,n,"_first","_last",e._sort?"_start":0),iV(n)||(e._recent=n),i||jfe(e,n),e._ts<0&&aP(e,e._tTime),e},Hfe=function(e,n){return(bf.ScrollTrigger||oz("scrollTrigger",n))&&bf.ScrollTrigger.create(n,e)},Gfe=function(e,n,r,i,a){if(hz(e,n,a),!e._initted)return 1;if(!r&&e._pt&&!dc&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ofe!==df.frame)return gg.push(e),e._lazy=[a,i],1},eNe=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},iV=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},tNe=function(e,n,r,i){var a=e.ratio,s=n<0||!n&&(!e._start&&eNe(e)&&!(!e._initted&&iV(e))||(e._ts<0||e._dp._ts<0)&&!iV(e))?0:1,o=e._rDelay,l=0,c,u,f;if(o&&e._repeat&&(l=ET(0,e._tDur,n),u=P3(l,o),e._yoyo&&u&1&&(s=1-s),u!==P3(e._tTime,o)&&(a=1-s,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 8,325 bytes, line 19
19date())),s!==a||dc||i||e._zTime===ts||!n&&e._zTime){if(!e._initted&&Gfe(e,n,i,r,l))return;for(f=e._zTime,e._zTime=n||(r?ts:0),r||(r=n&&!f),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,c=e._pt;c;)c.r(s,c.d),c=c._next;n<0&&rV(e,n,r,!0),e._onUpdate&&!r&&Af(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&Af(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===s&&(s&&Ig(e,1),!r&&!dc&&(Af(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},nNe=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)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}},k3=function(e,n,r,i){var a=e._repeat,s=Gs(n)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=a?a<0?1e10:Gs(s*(a+1)+e._rDelay*a):s,o>0&&!i&&aP(e,e._tTime=e._tDur*o),e.parent&&iP(e),r||Uv(e.parent,e),e},vee=function(e){return e instanceof m0?Uv(e):k3(e,e._dur)},rNe={_start:0,endTime:YS,totalDuration:YS},Qf=function t(e,n,r){var i=e.labels,a=e._recent||rNe,s=e.duration()>=cd?a.endTime(!1):e._dur,o,l,c;return Wl(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",o=n.indexOf("="),l==="<"||l===">"?(o>=0&&(n=n.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(o<0?a:r).totalDuration()/100:1)):o<0?(n in i||(i[n]=s),i[n]):(l=parseFloat(n.charAt(o-1)+n.substr(o+1)),c&&r&&(l=l/100*(Qc(r)?r[0]:r).totalDuration()),o>1?t(e,n.substr(0,o-1),r)+l:s+l)):n==null?s:+n},Qw=function(e,n,r){var i=x2(n[1]),a=(i?2:1)+(e<2?0:1),s=n[a],o,l;if(i&&(s.duration=n[1]),s.parent=r,e){for(o=s,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=T0(l.vars.inherit)&&l.parent;s.immediateRender=T0(o.immediateRender),e<2?s.runBackwards=1:s.startAt=n[a-1]}return new zo(n[0],s,n[a+1])},ix=function(e,n){return e||e===0?n(e):n},ET=function(e,n,r){return r<e?e:r>n?n:r},Vc=function(e,n){return!Wl(e)||!(n=q9e.exec(e))?"":n[1]},iNe=function(e,n,r){return ix(r,function(i){return ET(e,n,i)})},aV=[].slice,zfe=function(e,n){return e&&gp(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&gp(e[0]))&&!e.nodeType&&e!==C1},aNe=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var a;return Wl(i)&&!n||zfe(i,1)?(a=r).push.apply(a,ud(i)):r.push(i)})||r},ud=function(e,n,r){return Os&&!n&&Os.selector?Os.selector(e):Wl(e)&&!r&&(tV||!L3())?aV.call((n||sz).querySelectorAll(e),0):Qc(e)?aNe(e,r):zfe(e)?aV.call(e,0):e?[e]:[]},sV=function(e){return e=ud(e)[0]||ZS("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return ud(n,r.querySelectorAll?r:r===e?ZS("Invalid scope")||sz.createElement("div"):e)}},$fe=function(e){return e.sort(function(){return .5-Math.random()})},qfe=function(e){if(uo(e))return e;var n=gp(e)?e:{each:e},r=Vv(n.ease),i=n.from||0,a=parseFloat(n.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,c=n.axis,u=i,f=i;return Wl(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(u=i[0],f=i[1]),function(h,p,A){var g=(A||n).length,w=s[g],T,C,M,D,k,I,L,O,B;if(!w){if(B=n.grid==="auto"?0:(n.grid||[1,cd])[1],!B){for(L=-cd;L<(L=A[B++].getBoundingClientRect().left)&&B<g;);B<g&&B--}for(w=s[g]=[],T=l?Math.min(B,g)*u-.5:i%B,C=B===cd?0:l?g*f/B-.5:i/B|0,L=0,O=cd,I=0;I<g;I++)M=I%B-T,D=C-(I/B|0),w[I]=k=c?Math.abs(c==="y"?D:M):Cfe(M*M+D*D),k>L&&(L=k),k<O&&(O=k);i==="random"&&$fe(w),w.max=L-O,w.min=O,w.v=g=(parseFloat(n.amount)||parseFloat(n.each)*(B>g?g-1:c?c==="y"?g/B:B:Math.max(B,g/B))||0)*(i==="edges"?-1:1),w.b=g<0?a-g:a,w.u=Vc(n.amount||n.each)||0,r=r&&g<0?xNe(r):r}return g=(w[h]-w.min)/w.max||0,Gs(w.b+(r?r(g):g)*w.v)+w.u}},oV=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Gs(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(x2(r)?0:Vc(r))}},Wfe=function(e,n){var r=Qc(e),i,a;return!r&&gp(e)&&(i=r=e.radius||cd,e.values?(e=ud(e.values),(a=!x2(e[0]))&&(i*=i)):e=oV(e.increment)),ix(n,r?uo(e)?function(s){return a=e(s),Math.abs(a-s)<=i?a:s}:function(s){for(var o=parseFloat(a?s.x:s),l=parseFloat(a?s.y:0),c=cd,u=0,f=e.length,h,p;f--;)a?(h=e[f].x-o,p=e[f].y-l,h=h*h+p*p):h=Math.abs(e[f]-o),h<c&&(c=h,u=f);return u=!i||c<=i?e[u]:s,a||u===s||x2(s)?u:u+Vc(s)}:oV(e))},Zfe=function(e,n,r,i){return ix(Qc(e)?!n:r===!0?!!(r=0):!i,function(){return Qc(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})},sNe=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(a,s){return s(a)},i)}},oNe=function(e,n){return function(r){return e(parseFloat(r))+(n||Vc(r))}},lNe=function(e,n,r){return Xfe(e,n,0,1,r)},Yfe=function(e,n,r){return ix(r,function(i){return e[~~n(i)]})},cNe=function t(e,n,r){var i=n-e;return Qc(e)?Yfe(e,t(0,e.length),n):ix(r,function(a){return(i+(a-e)%i)%i+e})},uNe=function t(e,n,r){var i=n-e,a=i*2;return Qc(e)?Yfe(e,t(0,e.length-1),n):ix(r,function(s){return s=(a+(s-e)%a)%a||0,e+(s>i?a-s:s)})},XS=function(e){return e.replace(G9e,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(z9e);return Zfe(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},Xfe=function(e,n,r,i,a){var s=n-e,o=i-r;return ix(a,function(l){return r+((l-e)/s*o||0)})},fNe=function t(e,n,r,i){var a=isNaN(e+n)?0:function(p){return(1-p)*e+p*n};if(!a){var s=Wl(e),o={},l,c,u,f,h;if(r===!0&&(i=1)&&(r=null),s)e={p:e},n={p:n};else if(Qc(e)&&!Qc(n)){for(u=[],f=e.length,h=f-2,c=1;c<f;c++)u.push(t(e[c-1],e[c]));f--,a=function(A){A*=f;var g=Math.min(h,~~A);return u[g](A-g)},r=n}else i||(e=D3(Qc(e)?[]:{},e));if(!u){for(l in n)dz.call(o,e,l,"get",n[l]);a=function(A){return Az(A,o)||(s?e.p:e)}}}return ix(r,a)},yee=function(e,n,r){var i=e.labels,a=cd,s,o,l;for(s in i)o=i[s]-n,o<0==!!r&&o&&a>(o=Math.abs(o))&&(l=s,a=o);return l},Af=function(e,n,r){var i=e.vars,a=i[n],s=Os,o=e._ctx,l,c,u;if(a)return l=i[n+"Params"],c=i.callbackScope||e,r&&gg.length&&CN(),o&&(Os=o),u=l?a.apply(c,l):a.call(c),Os=s,u},gw=function(e){return Ig(e),e.scrollTrigger&&e.scrollTrigger.kill(!!dc),e.progress()<1&&Af(e,"onInterrupt"),e},U8,Qfe=[],Kfe=function(e){if(e)if(e=!e.name&&e.default||e,az()||e.headless){var n=e.name,r=uo(e),i=n&&!r&&e.init?function(){this._props=[]}:e,a={init:YS,render:Az,add:dz,kill:CNe,modifier:MNe,rawVars:0},s={targetTest:0,get:0,getSetter:mz,aliases:{},register:0};if(L3(),e!==i){if(of[n])return;wf(i,wf(NN(e,a),s)),D3(i.prototype,D3(a,NN(e,s))),of[i.prop=n]=i,e.targetTest&&(g9.push(i),lz[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Lfe(n,i),e.register&&e.register(D0,i,M0)}else Qfe.push(e)},Ja=255,xw={aqua:[0,Ja,Ja],lime:[0,Ja,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ja],navy:[0,0,128],white:[Ja,Ja,Ja],olive:[128,128,0],yellow:[Ja,Ja,0],orange:[Ja,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ja,0,0],pink:[Ja,192,203],cyan:[0,Ja,Ja],transparent:[Ja,Ja,Ja,0]},pF=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*Ja+.5|0},Jfe=function(e,n,r){var i=e?x2(e)?[e>>16,e>>8&Ja,e&Ja]:0:xw.black,a,s,o,l,c,u,f,h,p,A;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),xw[e])i=xw[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+a+a+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Ja,i&Ja,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Ja,e&Ja]}else if(e.substr(0,3)==="hsl"){if(i=A=e.match(mee),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,s=u<=.5?u*(c+1):u+c-u*c,a=u*2-s,i.length>3&&(i[3]*=1),i[0]=pF(l+1/3,a,s),i[1]=pF(l,a,s),i[2]=pF(l-1/3,a,s);else if(~e.indexOf("="))return i=e.match(Rfe),r&&i.length<4&&(i[3]=1),i}else i=e.match(mee)||xw.transparent;i=i.map(Number)}return n&&!A&&(a=i[0]/Ja,s=i[1]/Ja,o=i[2]/Ja,f=Math.max(a,s,o),h=Math.min(a,s,o),u=(f+h)/2,f===h?l=c=0:(p=f-h,c=u>.5?p/(2-f-h):p/(f+h),l=f===a?(s-o)/p+(s<o?6:0):f===s?(o-a)/p+2:(a-s)/p+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},ede=function(e){var n=[],r=[],i=-1;return e.split(xg).forEach(function(a){var s=a.match(B8)||[];n.push.apply(n,s),r.push(i+=s.length+1)}),n.c=r,n},_ee=function(e,n,r){var i="",a=(e+i).match(xg),s=n?"hsla(":"rgba(",o=0,l,c,u,f;if(!a)return e;
vendor: 4,466 bytes, line 19
19if(a=a.map(function(h){return(h=Jfe(h,n,1))&&s+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(u=ede(e),l=r.c,l.join(i)!==u.c.join(i)))for(c=e.replace(xg,"1").split(B8),f=c.length-1;o<f;o++)i+=c[o]+(~l.indexOf(o)?a.shift()||s+"0,0,0,0)":(u.length?u:a.length?a:r).shift());if(!c)for(c=e.split(xg),f=c.length-1;o<f;o++)i+=c[o]+a[o];return i+c[f]},xg=(function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in xw)t+="|"+e+"\\b";return new RegExp(t+")","gi")})(),dNe=/hsl[a]?\(/,tde=function(e){var n=e.join(" "),r;if(xg.lastIndex=0,xg.test(n))return r=dNe.test(n),e[1]=_ee(e[1],r),e[0]=_ee(e[0],r,ede(e[1])),!0},QS,df=(function(){var t=Date.now,e=500,n=33,r=t(),i=r,a=1e3/240,s=a,o=[],l,c,u,f,h,p,A=function g(w){var T=t()-i,C=w===!0,M,D,k,I;if((T>e||T<0)&&(r+=T-n),i+=T,k=i-r,M=k-s,(M>0||C)&&(I=++f.frame,h=k-f.time*1e3,f.time=k=k/1e3,s+=M+(M>=a?4:a-M),D=1),C||(l=c(g)),D)for(p=0;p<o.length;p++)o[p](k,h,I,w)};return f={time:0,frame:0,tick:function(){A(!0)},deltaRatio:function(w){return h/(1e3/(w||60))},wake:function(){Pfe&&(!tV&&az()&&(C1=tV=window,sz=C1.document||{},bf.gsap=D0,(C1.gsapVersions||(C1.gsapVersions=[])).push(D0.version),kfe(MN||C1.GreenSockGlobals||!C1.gsap&&C1||{}),Qfe.forEach(Kfe)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(w){return setTimeout(w,s-f.time*1e3+1|0)},QS=1,A(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),QS=0,c=YS},lagSmoothing:function(w,T){e=w||1/0,n=Math.min(T||33,e)},fps:function(w){a=1e3/(w||240),s=f.time*1e3+a},add:function(w,T,C){var M=T?function(D,k,I,L){w(D,k,I,L),f.remove(M)}:w;return f.remove(w),o[C?"unshift":"push"](M),L3(),M},remove:function(w,T){~(T=o.indexOf(w))&&o.splice(T,1)&&p>=T&&p--},_listeners:o},f})(),L3=function(){return!QS&&df.wake()},Gi={},hNe=/^[\d.\-M][\d.\-,\s]/,pNe=/["']/g,mNe=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],a=1,s=r.length,o,l,c;a<s;a++)l=r[a],o=a!==s-1?l.lastIndexOf(","):l.length,c=l.substr(0,o),n[i]=isNaN(c)?c.replace(pNe,"").trim():+c,i=l.substr(o+1).trim();return n},ANe=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},gNe=function(e){var n=(e+"").split("("),r=Gi[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[mNe(n[1])]:ANe(e).split(",").map(Bfe)):Gi._CE&&hNe.test(e)?Gi._CE("",e):r},xNe=function(e){return function(n){return 1-e(1-n)}},Vv=function(e,n){return e&&(uo(e)?e:Gi[e]||gNe(e))||n},Py=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 a={easeIn:n,easeOut:r,easeInOut:i},s;return E0(e,function(o){Gi[o]=bf[o]=a,Gi[s=o.toLowerCase()]=r;for(var l in a)Gi[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Gi[o+"."+l]=a[l]}),a},nde=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},mF=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/eV*(Math.asin(1/i)||0),o=function(u){return u===1?1:i*Math.pow(2,-10*u)*H9e((u-s)*a)+1},l=e==="out"?o:e==="in"?function(c){return 1-o(1-c)}:nde(o);return a=eV/a,l.config=function(c,u){return t(e,c,u)},l},AF=function t(e,n){n===void 0&&(n=1.70158);var r=function(s){return s?--s*s*((n+1)*s+n)+1:0},i=e==="out"?r:e==="in"?function(a){return 1-r(1-a)}:nde(r);return i.config=function(a){return t(e,a)},i};E0("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Py(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})});Gi.Linear.easeNone=Gi.none=Gi.Linear.easeIn;Py("Elastic",mF("in"),mF("out"),mF());(function(t,e){var n=1/e,r=2*n,i=2.5*n,a=function(o){return o<n?t*o*o:o<r?t*Math.pow(o-1.5/e,2)+.75:o<i?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};Py("Bounce",function(s){return 1-a(1-s)},a)})(7.5625,2.75);Py("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Py("Circ",function(t){return-(Cfe(1-t*t)-1)});Py("Sine",function(t){return t===1?1:-j9e(t*U9e)+1});Py("Back",AF("in"),AF("out"),AF());Gi.SteppedEase=Gi.steps=bf.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),a=n?1:0,s=1-ts;return function(o){return((i*ET(0,s,o)|0)+a)*r}}};WS.ease=Gi["quad.out"];E0("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return cz+=t+","+t+"Param
19s,"});var rde=function(e,n){this.id=V9e++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Ffe,this.set=n?n.getSetter:mz},KS=(function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,k3(this,+n.duration,1,1),this.data=n.data,Os&&(this._ctx=Os,Os.data.push(this)),QS||df.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,k3(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(L3(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(aP(this,r),!a._dp||a.parent||jfe(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&I1(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===ts||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ife(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+xee(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&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+xee(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*a,i):this._repeat?P3(this._tTime,a)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-ts?0:this._rts;if(this._rts===r)return this;var a=this.parent&&this._ts?RN(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-ts?0:this._rts,this.totalTime(ET(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),iP(this),K9e(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):(L3(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ts&&(this._tTime-=ts)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=Gs(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&I1(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(T0(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?RN(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Z9e);var i=dc;return dc=r,fz(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),dc=i,this},e.globalTime=function(r){for(var i=this,a=arguments.length?r:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):a},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,vee(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,vee(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(Qf(this,r),T0(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,T0(i)),this._dur||(this._zTime=-ts),this},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?-ts:0)),this):this._rts<0}
vendor: 17,024 bytes, line 19
19,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ts,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,a;return!!(!r||this._ts&&this._initted&&r.isActive()&&(a=r.rawTime(!0))>=i&&a<this.endTime(!0)-ts)},e.eventCallback=function(r,i,a){var s=this.vars;return arguments.length>1?(i?(s[r]=i,a&&(s[r+"Params"]=a),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this,a=i._prom;return new Promise(function(s){var o=uo(r)?r:Ufe,l=function(){var u=i.then;i.then=null,a&&a(),uo(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),s(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){gw(this)},t})();wf(KS.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:-ts,_prom:0,_ps:!1,_rts:1});var m0=(function(t){Mfe(e,t);function e(r,i){var a;return r===void 0&&(r={}),a=t.call(this,r)||this,a.labels={},a.smoothChildTiming=!!r.smoothChildTiming,a.autoRemoveChildren=!!r.autoRemoveChildren,a._sort=T0(r.sortChildren),zs&&I1(r.parent||zs,Dm(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),r.scrollTrigger&&Hfe(Dm(a),r.scrollTrigger),a}var n=e.prototype;return n.to=function(i,a,s){return Qw(0,arguments,this),this},n.from=function(i,a,s){return Qw(1,arguments,this),this},n.fromTo=function(i,a,s,o){return Qw(2,arguments,this),this},n.set=function(i,a,s){return a.duration=0,a.parent=this,Xw(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new zo(i,a,Qf(this,s),1),this},n.call=function(i,a,s){return I1(this,zo.delayedCall(0,i,a),s)},n.staggerTo=function(i,a,s,o,l,c,u){return s.duration=a,s.stagger=s.stagger||o,s.onComplete=c,s.onCompleteParams=u,s.parent=this,new zo(i,s,Qf(this,l)),this},n.staggerFrom=function(i,a,s,o,l,c,u){return s.runBackwards=1,Xw(s).immediateRender=T0(s.immediateRender),this.staggerTo(i,a,s,o,l,c,u)},n.staggerFromTo=function(i,a,s,o,l,c,u,f){return o.startAt=s,Xw(o).immediateRender=T0(o.immediateRender),this.staggerTo(i,a,o,l,c,u,f)},n.render=function(i,a,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:Gs(i),f=this._zTime<0!=i<0&&(this._initted||!c),h,p,A,g,w,T,C,M,D,k,I,L;if(this!==zs&&u>l&&i>=0&&(u=l),u!==this._tTime||s||f){if(o!==this._time&&c&&(u+=this._time-o,i+=this._time-o),h=u,D=this._start,M=this._ts,T=!M,f&&(c||(o=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(I=this._yoyo,w=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(w*100+i,a,s);if(h=Gs(u%w),u===l?(g=this._repeat,h=c):(k=Gs(u/w),g=~~k,g&&g===k&&(h=c,g--),h>c&&(h=c)),k=P3(this._tTime,w),!o&&this._tTime&&k!==g&&this._tTime-k*w-this._dur<=0&&(k=g),I&&g&1&&(h=c-h,L=1),g!==k&&!this._lock){var O=I&&k&1,B=O===(I&&g&1);if(g<k&&(O=!O),o=O?0:u%c?c:u,this._lock=1,this.render(o||(L?0:Gs(g*w)),a,!c)._lock=0,this._tTime=u,!a&&this.parent&&Af(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1,k=g),o&&o!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,B&&(this._lock=2,o=O?c:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!T)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(C=nNe(this,Gs(o),Gs(h)),C&&(u-=h-(h=C._start))),this._tTime=u,this._time=h,this._act=!!M,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&u&&c&&!a&&!k&&(Af(this,"onStart"),this._tTime!==u))return this;if(h>=o&&i>=0)for(p=this._first;p;){if(A=p._next,(p._act||h>=p._start)&&p._ts&&C!==p){if(p.parent!==this)return this.render(i,a,s);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,s),h!==this._time||!this._ts&&!T){C=0,A&&(u+=this._zTime=-ts);break}}p=A}else{p=this._last;for(var G=i<0?i:h;p;){if(A=p._prev,(p._act||G<=p._end)&&p._ts&&C!==p){if(p.parent!==this)return this.render(i,a,s);if(p.render(p._ts>0?(G-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(G-p._start)*p._ts,a,s||dc&&fz(p)),h!==this._time||!this._ts&&!T){C=0,A&&(u+=this._zTime=G?-ts:ts);break}}p=A}}if(C&&!a&&(this.pause(),C.render(h>=o?0:-ts)._zTime=h>=o?1:-1,this._ts))return this._start=D,iP(this),this.render(i,a,s);this._onUpdate&&!a&&Af(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&o)&&(D===this._start||Math.abs(M)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Ig(this,1),!a&&!(i<0&&!o)&&(u||o||!l)&&(Af(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,a){var s=this;if(x2(a)||(a=Qf(this,a,i)),!(i instanceof KS)){if(Qc(i))return i.forEach(function(o){return s.add(o,a)}),this;if(Wl(i))return this.addLabel(i,a);if(uo(i))i=zo.delayedCall(0,i);else return this}return this!==i?I1(this,i,a):this},n.getChildren=function(i,a,s,o){i===void 0&&(i=!0),a===void 0&&(a=!0),s===void 0&&(s=!0),o===void 0&&(o=-cd);for(var l=[],c=this._first;c;)c._start>=o&&(c instanceof zo?a&&l.push(c):(s&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,a,s)))),c=c._next;return l},n.getById=function(i){for(var a=this.getChildren(1,1,1),s=a.length;s--;)if(a[s].vars.id===i)return a[s]},n.remove=function(i){return Wl(i)?this.removeLabel(i):uo(i)?this.killTweensOf(i):(i.parent===this&&rP(this,i),i===this._recent&&(this._recent=this._last),Uv(this))},n.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Gs(df.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},n.addLabel=function(i,a){return this.labels[i]=Qf(this,a),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,a,s){var o=zo.delayedCall(0,a||YS,s);return o.data="isPause",this._hasPause=1,I1(this,o,Qf(this,i))},n.removePause=function(i){var a=this._first;for(i=Qf(this,i);a;)a._start===i&&a.data==="isPause"&&Ig(a),a=a._next},n.killTweensOf=function(i,a,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)QA!==o[l]&&o[l].kill(i,a);return this},n.getTweensOf=function(i,a){for(var s=[],o=ud(i),l=this._first,c=x2(a),u;l;)l instanceof zo?Y9e(l._targets,o)&&(c?(!QA||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&s.push(l):(u=l.getTweensOf(o,a)).length&&s.push.apply(s,u),l=l._next;return s},n.tweenTo=function(i,a){a=a||{};var s=this,o=Qf(s,i),l=a,c=l.startAt,u=l.onStart,f=l.onStartParams,h=l.immediateRender,p,A=zo.to(s,wf({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:a.duration||Math.abs((o-(c&&"time"in c?c.time:s._time))/s.timeScale())||ts,onStart:function(){if(s.pause(),!p){var w=a.duration||Math.abs((o-(c&&"time"in c?c.time:s._time))/s.timeScale());A._dur!==w&&k3(A,w,0,1).render(A._time,!0,!0),p=1}u&&u.apply(A,f||[])}},a));return h?A.render(0):A},n.tweenFromTo=function(i,a,s){return this.tweenTo(a,wf({startAt:{time:Qf(this,i)}},s))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),yee(this,Qf(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),yee(this,Qf(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+ts)},n.shiftChildren=function(i,a,s){s===void 0&&(s=0);var o=this._first,l=this.labels,c;for(i=Gs(i);o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(a)for(c in l)l[c]>=s&&(l[c]+=i);return Uv(this)},n.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,s;a;)s=a._next,this.remove(a),a=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Uv(this)},n.totalDuration=function(i){var a=0,s=this,o=s._last,l=cd,c,u,f;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(f=s.parent;o;)c=o._prev,o._dirty&&o.totalDuration(),u=o._start,u>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,I1(s,o,u-o._delay,1)._lock=0):l=u,u<0&&o._ts&&(a-=u,(!f&&!s._dp||f&&f.smoothChildTiming)&&(s._start+=Gs(u/s._ts),s._time-=u,s._tTime-=u),s.shiftChildren(-u,!1,-1/0),l=0),o._end>a&&o._ts&&(a=o._end),o=c;k3(s,s===zs&&s._time>a?s._time:a,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(zs._ts&&(Ife(zs,RN(i,zs)),Ofe=df.frame),df.frame>=Aee){Aee+=xf.autoSleep||120;var a=zs._first;if((!a||!a._ts)&&xf.autoSleep&&df._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||df.sleep()}}},e})(KS);wf(m0.prototype,{_lock:0,_hasPause:0,_forcing:0});var vNe=function(e,n,r,i,a,s,o){var l=new M0(this._pt,e,n,0,1,cde,null,a),c=0,u=0,f,h,p,A,g,w,T,C;for(l.b=r,l.e=i,r+="",i+="",(T=~i.indexOf("random("))&&(i=XS(i)),s&&(C=[r,i],s(C,e,n),r=C[0],i=C[1]),h=r.match(dF)||[];f=dF.exec(i);)A=f[0],g=i.substring(c,f.index),p?p=(p+1)%5:g.substr(-5)==="rgba("&&(p=1),A!==h[u++]&&(w=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:w,c:A.charAt(1)==="="?Q8(w,A)-w:parseFloat(A)-w,m:p&&p<4?Math.round:0},c=dF.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=o,(Dfe.test(i)||T)&&(l.e=0),this._pt=l,l},dz=function(e,n,r,i,a,s,o,l,c,u){uo(i)&&(i=i(a||0,e,s));var f=e[n],h=r!=="get"?r:uo(f)?c?e[n.indexOf("set")||!uo(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():f,p=uo(f)?c?SNe:ode:pz,A;if(Wl(i)&&(~i.indexOf("random(")&&(i=XS(i)),i.charAt(1)==="="&&(A=Q8(h,i)+(Vc(h)||0),(A||A===0)&&(i=A))),!u||h!==i||lV)return!isNaN(h*i)&&i!==""?(A=new M0(this._pt,e,n,+h||0,i-(h||0),typeof f=="boolean"?ENe:lde,0,p),c&&(A.fp=c),o&&A.modifier(o,this,e),this._pt=A):(!f&&!(n in e)&&oz(n,i),vNe.call(this,e,n,h,i,p,l||xf.stringFilter,c))},yNe=function(e,n,r,i,a){if(uo(e)&&(e=Kw(e,a,n,r,i)),!gp(e)||e.style&&e.nodeType||Qc(e)||Nfe(e))return Wl(e)?Kw(e,a,n,r,i):e;var s={},o;for(o in e)s[o]=Kw(e[o],a,n,r,i);return s},ide=function(e,n,r,i,a,s){var o,l,c,u;if(of[e]&&(o=new of[e]).init(a,o.rawVars?n[e]:yNe(n[e],i,a,s,r),r,i,s)!==!1&&(r._pt=l=new M0(r._pt,a,e,0,1,o.render,o,0,o.priority),r!==U8))for(c=r._ptLookup[r._targets.indexOf(a)],u=o._props.length;u--;)c[o._props[u]]=l;return o},QA,lV,hz=function t(e,n,r){var i=e.vars,a=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,A=e._dur,g=e._startAt,w=e._targets,T=e.parent,C=T&&T.data==="nested"?T.vars.targets:w,M=e._overwrite==="auto"&&!rz,D=e.timeline,k=i.easeReverse||f,I,L,O,B,G,j,z,Q,ee,Z,X,K,se;if(D&&(!h||!a)&&(a="none"),e._ease=Vv(a,WS.ease),e._rEase=k&&(Vv(k)||e._ease),e._from=!D&&!!i.runBackwards,e._from&&(e.ratio=1),!D||h&&!i.stagger){if(Q=w[0]?Bv(w[0]).harness:0,K=Q&&i[Q.prop],I=NN(i,lz),g&&(g._zTime<0&&g.progress(1),n<0&&u&&o&&!p?g.render(-1,!0):g.revert(u&&A?A9:W9e),g._lazy=0),s){if(Ig(e._startAt=zo.set(w,wf({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!g&&T0(l),startAt:null,delay:0,onUpdate:c&&function(){return Af(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(dc||!o&&!p)&&e._startAt.revert(A9),o&&A&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(u&&A&&!g){if(n&&(o=!1),O=wf({overwrite:!1,data:"isFromStart",lazy:o&&!g&&T0(l),immediateRender:o,stagger:0,parent:T},I),K&&(O[Q.prop]=K),Ig(e._startAt=zo.set(w,O)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(dc?e._startAt.revert(A9):e._startAt.render(-1,!0)),e._zTime=n,!o)t(e._startAt,ts,ts);else if(!n)return}for(e._pt=e._ptCache=0,l=A&&T0(l)||l&&!A,L=0;L<w.length;L++){if(G=w[L],z=G._gsap||uz(w)[L]._gsap,e._ptLookup[L]=Z={},nV[z.id]&&gg.length&&CN(),X=C===w?L:C.indexOf(G),Q&&(ee=new Q).init(G,K||I,e,X,C)!==!1&&(e._pt=B=new M0(e._pt,G,ee.name,0,1,ee.render,ee,0,ee.priority),ee._props.forEach(function(ae){Z[ae]=B}),ee.priority&&(j=1)),!Q||K)for(O in I)of[O]&&(ee=ide(O,I,e,X,G,C))?ee.priority&&(j=1):Z[O]=B=dz.call(e,G,O,"get",I[O],X,C,0,i.stringFilter);e._op&&e._op[L]&&e.kill(G,e._op[L]),M&&e._pt&&(QA=e,zs.killTweensOf(G,Z,e.globalTime(n)),se=!e.parent,QA=0),e._pt&&l&&(nV[z.id]=1)}j&&ude(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!se,h&&n<=0&&D.render(cd,!0,!0)},_Ne=function(e,n,r,i,a,s,o,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],u,f,h,p;if(!c)for(c=e._ptCache[n]=[],h=e._ptLookup,p=e._targets.length;p--;){if(u=h[p][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 lV=1,e.vars[n]="+=0",hz(e,o),lV=0,l?ZS(n+" not eligible for reset. Try splitting into individual properties"):1;c.push(u)}for(p=c.length;p--;)f=c[p],u=f._pt||f,u.s=(i||i===0)&&!a?i:u.s+(i||0)+s*u.c,u.c=r-u.s,f.e&&(f.e=To(r)+Vc(f.e)),f.b&&(f.b=u.s+Vc(f.b))},bNe=function(e,n){var r=e[0]?Bv(e[0]).harness:0,i=r&&r.aliases,a,s,o,l;if(!i)return n;a=D3({},n);for(s in i)if(s in a)for(l=i[s].split(","),o=l.length;o--;)a[l[o]]=a[s];return a},wNe=function(e,n,r,i){var a=n.ease||i||"power1.inOut",s,o;if(Qc(n))o=r[e]||(r[e]=[]),n.forEach(function(l,c){return o.push({t:c/(n.length-1)*100,v:l,e:a})});else for(s in n)o=r[s]||(r[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:n[s],e:a})},Kw=function(e,n,r,i,a){return uo(e)?e.call(n,r,i,a):Wl(e)&&~e.indexOf("random(")?XS(e):e},ade=cz+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",sde={};E0(ade+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return sde[t]=1});var zo=(function(t){Mfe(e,t);function e(r,i,a,s){var o;typeof i=="number"&&(a.duration=i,i=a,a=null),o=t.call(this,s?i:Xw(i))||this;var l=o.vars,c=l.duration,u=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,A=l.keyframes,g=l.defaults,w=l.scrollTrigger,T=i.parent||zs,C=(Qc(r)||Nfe(r)?x2(r[0]):"length"in i)?[r]:ud(r),M,D,k,I,L,O,B,G;if(o._targets=C.length?uz(C):ZS("GSAP target "+r+" not found. https://gsap.com",!xf.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=p,A||h||PM(c)||PM(u)){i=o.vars;var j=i.easeReverse||i.yoyoEase;if(M=o.timeline=new m0({data:"nested",defaults:g||{},targets:T&&T.data==="nested"?T.vars.targets:C}),M.kill(),M.parent=M._dp=Dm(o),M._start=0,h||PM(c)||PM(u)){if(I=C.length,B=h&&qfe(h),gp(h))for(L in h)~ade.indexOf(L)&&(G||(G={}),G[L]=h[L]);for(D=0;D<I;D++)k=NN(i,sde),k.stagger=0,j&&(k.easeReverse=j),G&&D3(k,G),O=C[D],k.duration=+Kw(c,Dm(o),D,O,C),k.delay=(+Kw(u,Dm(o),D,O,C)||0)-o._delay,!h&&I===1&&k.delay&&(o._delay=u=k.delay,o._start+=u,k.delay=0),M.to(O,k,B?B(D,O,C):0),M._ease=Gi.none;M.duration()?c=u=0:o.timeline=0}else if(A){Xw(wf(M.vars.defaults,{ease:"none"})),M._ease=Vv(A.ease||i.ease||"none");var z=0,Q,ee,Z;if(Qc(A))A.forEach(function(X){return M.to(C,X,">")}),M.duration();else{k={};for(L in A)L==="ease"||L==="easeEach"||wNe(L,A[L],k,A.easeEach);for(L in k)for(Q=k[L].sort(function(X,K){return X.t-K.t}),z=0,D=0;D<Q.length;D++)ee=Q[D],Z={ease:ee.e,duration:(ee.t-(D?Q[D-1].t:0))/100*c},Z[L]=ee.v,M.to(C,Z,z),z+=Z.duration;M.duration()<c&&M.to({},{duration:c-M.duration()})}}c||o.duration(c=M.duration())}else o.timeline=0;return p===!0&&!rz&&(QA=Dm(o),zs.killTweensOf(C),QA=0),I1(T,Dm(o),a),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(f||!c&&!A&&o._start===Gs(T._time)&&T0(f)&&J9e(Dm(o))&&T.data!=="nested")&&(o._tTime=-ts,o.render(Math.max(0,-u)||0)),w&&Hfe(Dm(o),w),o}var n=e.prototype;return n.render=function(i,a,s){var o=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-ts&&!u?l:i<ts?0:i,h,p,A,g,w,T,C,M;if(!c)tNe(this,i,a,s);else if(f!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(h=f,M=this.timeline,this._repeat){if(g=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(g*100+i,a,s);if(h=Gs(f%g),f===l?(A=this._repeat,h=c):(w=Gs(f/g),A=~~w,A&&A===w?(h=c,A--):h>c&&(h=c)),T=this._yoyo&&A&1,T&&(h=c-h),w=P3(this._tTime,g),h===o&&!s&&this._initted&&A===w)return this._tTime=f,this;A!==w&&this.vars.repeatRefresh&&!T&&!this._lock&&h!==g&&this._initted&&(this._lock=s=1,this.render(Gs(g*A),!0).invalidate()._lock=0)}if(!this._initted){if(Gfe(this,u?i:h,s,a,f))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&A!==w))return this;if(c!==this._dur)return this.render(i,a,s)}if(this._rEase){var D=h<o;if(D!==this._inv){var k=D?o:c-o;this._inv=D,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=o,this._invRecip=k?(D?-1:1)/k:0,this._invScale=D?-this.ratio:1-this.ratio,this._invEase=D?this._rEase:this._ease}this.ratio=C=this._invRatio+this._invScale*this._invEase((h-this._invTime)*this._invRecip)}else this.ratio=C=this._ease(h/c);if(this._from&&(this.ratio=C=1-C),this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),!o&&f&&!a&&!w&&(Af(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(C,p.d),p=p._next;M&&M.render(i<0?i:M._dur*M._ease(h/this._dur),a,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(u&&rV(this,i,a,s),Af(this,"onUpdate")),this._repeat&&A!==w&&this.vars.onRepeat&&!a&&this.parent&&Af(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&rV(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>
vendor: 11,001 bytes, line 19
190||!f&&this._ts<0)&&Ig(this,1),!a&&!(u&&!o)&&(f||o||T)&&(Af(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(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,a,s,o,l){QS||df.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||hz(this,c),u=this._ease(c/this._dur),_Ne(this,i,a,s,o,u,c,l)?this.resetTo(i,a,s,o,1):(aP(this,0),this.parent||Vfe(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?gw(this):this.scrollTrigger&&this.scrollTrigger.kill(!!dc),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,QA&&QA.vars.overwrite!==!0)._first||gw(this),this.parent&&s!==this.timeline.totalDuration()&&k3(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?ud(i):o,c=this._ptLookup,u=this._pt,f,h,p,A,g,w,T;if((!a||a==="all")&&Q9e(o,l))return a==="all"&&(this._pt=0),gw(this);for(f=this._op=this._op||[],a!=="all"&&(Wl(a)&&(g={},E0(a,function(C){return g[C]=1}),a=g),a=bNe(o,a)),T=o.length;T--;)if(~l.indexOf(o[T])){h=c[T],a==="all"?(f[T]=a,A=h,p={}):(p=f[T]=f[T]||{},A=a);for(g in A)w=h&&h[g],w&&((!("kill"in w.d)||w.d.kill(g)===!0)&&rP(this,w,"_pt"),delete h[g]),p!=="all"&&(p[g]=1)}return this._initted&&!this._pt&&u&&gw(this),this},e.to=function(i,a){return new e(i,a,arguments[2])},e.from=function(i,a){return Qw(1,arguments)},e.delayedCall=function(i,a,s,o){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,a,s){return Qw(2,arguments)},e.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(i,a)},e.killTweensOf=function(i,a,s){return zs.killTweensOf(i,a,s)},e})(KS);wf(zo.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});E0("staggerTo,staggerFrom,staggerFromTo",function(t){zo[t]=function(){var e=new m0,n=aV.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var pz=function(e,n,r){return e[n]=r},ode=function(e,n,r){return e[n](r)},SNe=function(e,n,r,i){return e[n](i.fp,r)},TNe=function(e,n,r){return e.setAttribute(n,r)},mz=function(e,n){return uo(e[n])?ode:iz(e[n])&&e.setAttribute?TNe:pz},lde=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},ENe=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},cde=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)},Az=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},MNe=function(e,n,r,i){for(var a=this._pt,s;a;)s=a._next,a.p===i&&a.modifier(e,n,r),a=s},CNe=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?rP(this,n,"_pt"):n.dep||(r=1),n=i;return!r},NNe=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},ude=function(e){for(var n=e._pt,r,i,a,s;n;){for(r=n._next,i=a;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:s)?n._prev._next=n:a=n,(n._next=i)?i._prev=n:s=n,n=r}e._pt=a},M0=(function(){function t(n,r,i,a,s,o,l,c,u){this.t=r,this.s=a,this.c=s,this.p=i,this.r=o||lde,this.d=l||this,this.set=c||pz,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,a){this.mSet=this.mSet||this.set,this.set=NNe,this.m=r,this.mt=a,this.tween=i},t})();E0(cz+"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,easeReverse",function(t){return lz[t]=1});bf.TweenMax=bf.TweenLite=zo;bf.TimelineLite=bf.TimelineMax=m0;zs=new m0({sortChildren:!1,defaults:WS,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});xf.stringFilter=tde;var jv=[],x9={},RNe=[],bee=0,DNe=0,gF=function(e){return(x9[e]||RNe).map(function(n){return n()})},cV=function(){var e=Date.now(),n=[];e-bee>2&&(gF("matchMediaInit"),jv.forEach(function(r){var i=r.queries,a=r.conditions,s,o,l,c;for(o in i)s=C1.matchMedia(i[o]).matches,s&&(l=1),s!==a[o]&&(a[o]=s,c=1);c&&(r.revert(),l&&n.push(r))}),gF("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),bee=e,gF("matchMedia"))},fde=(function(){function t(n,r){this.selector=r&&sV(r),this.data=[],this._r=[],this.isReverted=!1,this.id=DNe++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,a){uo(r)&&(a=i,i=r,r=uo);var s=this,o=function(){var c=Os,u=s.selector,f;return c&&c!==s&&c.data.push(s),a&&(s.selector=sV(a)),Os=s,f=i.apply(s,arguments),uo(f)&&s._r.push(f),Os=c,s.selector=u,s.isReverted=!1,f};return s.last=o,r===uo?o(s,function(l){return s.add(null,l)}):r?s[r]=o:o},e.ignore=function(r){var i=Os;Os=null,r(this),Os=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof zo&&!(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 a=this;if(r?(function(){for(var o=a.getTweens(),l=a.data.length,c;l--;)c=a.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return o.splice(o.indexOf(u),1)}));for(o.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,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=a.data.length;l--;)c=a.data[l],c instanceof m0?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof zo)&&c.revert&&c.revert(r);a._r.forEach(function(u){return u(r,a)}),a.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=jv.length;s--;)jv[s].id===this.id&&jv.splice(s,1)},e.revert=function(r){this.kill(r||{})},t})(),PNe=(function(){function t(n){this.contexts=[],this.scope=n,Os&&Os.data.push(this)}var e=t.prototype;return e.add=function(r,i,a){gp(r)||(r={matches:r});var s=new fde(0,a||this.scope),o=s.conditions={},l,c,u;Os&&!s.selector&&(s.selector=Os.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(c in r)c==="all"?u=1:(l=C1.matchMedia(r[c]),l&&(jv.indexOf(s)<0&&jv.push(s),(o[c]=l.matches)&&(u=1),l.addListener?l.addListener(cV):l.addEventListener("change",cV)));return u&&i(s,function(f){return s.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t})(),DN={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return Kfe(i)})},timeline:function(e){return new m0(e)},getTweensOf:function(e,n){return zs.getTweensOf(e,n)},getProperty:function(e,n,r,i){Wl(e)&&(e=ud(e)[0]);var a=Bv(e||{}).get,s=r?Ufe:Bfe;return r==="native"&&(r=""),e&&(n?s((of[n]&&of[n].get||a)(e,n,r,i)):function(o,l,c){return s((of[o]&&of[o].get||a)(e,o,l,c))})},quickSetter:function(e,n,r){if(e=ud(e),e.length>1){var i=e.map(function(u){return D0.quickSetter(u,n,r)}),a=i.length;return function(u){for(var f=a;f--;)i[f](u)}}e=e[0]||{};var s=of[n],o=Bv(e),l=o.harness&&(o.harness.aliases||{})[n]||n,c=s?function(u){var f=new s;U8._pt=0,f.init(e,r?u+r:u,U8,0,[e]),f.render(1,f),U8._pt&&Az(1,U8)}:o.set(e,l);return s?c:function(u){return c(e,l,r?u+r:u,o,1)}},quickTo:function(e,n,r){var i,a=D0.to(e,wf((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,c,u){return a.resetTo(n,l,c,u)};return s.tween=a,s},isTweening:function(e){return zs.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Vv(e.ease,WS.ease)),gee(WS,e||{})},config:function(e){return gee(xf,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,a=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!of[o]&&!bf[o]&&ZS(n+" effect requires "+o+" plugin.")}),hF[n]=function(o,l,c){return r(ud(o),wf(l||{},a),c)},s&&(m0.prototype[n]=function(o,l,c){return this.add(hF[n](o,gp(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){Gi[e]=Vv(n)},parseEase:function(e,n){return arguments.length?Vv(e,n):Gi},getById:function(e){return zs.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new m0(e),i,a;for(r.smoothChildTiming=T0(e.smoothChildTiming),zs.remove(r),r._dp=0,r._time=r._tTime=zs._time,i=zs._first;i;)a=i._next,(n||!(!i._dur&&i instanceof zo&&i.vars.onComplete===i._targets[0]))&&I1(r,i,i._start-i._delay),i=a;return I1(zs,r,0),r},context:function(e,n){return e?new fde(e,n):Os},matchMedia:function(e){return new PNe(e)},matchMediaRefresh:function(){return jv.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||cV()},addEventListener:function(e,n){var r=x9[e]||(x9[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=x9[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:cNe,wrapYoyo:uNe,distribute:qfe,random:Zfe,snap:Wfe,normalize:lNe,getUnit:Vc,clamp:iNe,splitColor:Jfe,toArray:ud,selector:sV,mapRange:Xfe,pipe:sNe,unitize:oNe,interpolate:fNe,shuffle:$fe},install:kfe,effects:hF,ticker:df,updateRoot:m0.updateRoot,plugins:of,globalTimeline:zs,core:{PropTween:M0,globals:Lfe,Tween:zo,Timeline:m0,Animation:KS,getCache:Bv,_removeLinkedListItem:rP,reverting:function(){return dc},context:function(e){return e&&Os&&(Os.data.push(e),e._ctx=Os),Os},suppressOverwrites:function(e){return rz=e}}};E0("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return DN[t]=zo[t]});df.add(m0.updateRoot);U8=DN.to({},{duration:0});var kNe=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},LNe=function(e,n){var r=e._targets,i,a,s;for(i in n)for(a=r.length;a--;)s=e._ptLookup[a][i],s&&(s=s.d)&&(s._pt&&(s=kNe(s,i)),s&&s.modifier&&s.modifier(n[i],e,r[a],i))},xF=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,a,s){s._onInit=function(o){var l,c;if(Wl(a)&&(l={},E0(a,function(u){return l[u]=1}),a=l),n){l={};for(c in a)l[c]=n(a[c]);a=l}LNe(o,a)}}}},D0=DN.registerPlugin({name:"attr",init:function(e,n,r,i,a){var s,o,l;this.tween=r;for(s in n)l=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(l||0)+"",n[s],i,a,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(e,n){for(var r=n._pt;r;)dc?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,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)}},xF("roundProps",oV),xF("modifiers"),xF("snap",Wfe))||DN;zo.version=m0.version=D0.version="3.15.0";Pfe=1;az()&&L3();Gi.Power0;Gi.Power1;Gi.Power2;Gi.Power3;Gi.Power4;Gi.Linear;Gi.Quad;
vendor: 6,868 bytes, line 19
19Gi.Cubic;Gi.Quart;Gi.Quint;Gi.Strong;Gi.Elastic;Gi.Back;Gi.SteppedEase;Gi.Bounce;Gi.Sine;Gi.Expo;Gi.Circ;var wee,KA,K8,gz,yv,See,xz,ONe=function(){return typeof window<"u"},v2={},ev=180/Math.PI,J8=Math.PI/180,P4=Math.atan2,Tee=1e8,vz=/([A-Z])/g,FNe=/(left|right|width|margin|padding|x)/i,INe=/[\s,\(]\S/,z1={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},uV=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},BNe=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)},UNe=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)},VNe=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},jNe=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},dde=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},hde=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},HNe=function(e,n,r){return e.style[n]=r},GNe=function(e,n,r){return e.style.setProperty(n,r)},zNe=function(e,n,r){return e._gsap[n]=r},$Ne=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},qNe=function(e,n,r,i,a){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(a,s)},WNe=function(e,n,r,i,a){var s=e._gsap;s[n]=r,s.renderTransform(a,s)},qs="transform",C0=qs+"Origin",ZNe=function t(e,n){var r=this,i=this.target,a=i.style,s=i._gsap;if(e in v2&&a){if(this.tfm=this.tfm||{},e!=="transform")e=z1[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Im(i,o)}):this.tfm[e]=s.x?s[e]:Im(i,e),e===C0&&(this.tfm.zOrigin=s.zOrigin);else return z1.transform.split(",").forEach(function(o){return t.call(r,o,n)});if(this.props.indexOf(qs)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(C0,n,"")),e=qs}(a||n)&&this.props.push(e,n,a[e])},pde=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},YNe=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,a,s;for(a=0;a<e.length;a+=3)e[a+1]?e[a+1]===2?n[e[a]](e[a+2]):n[e[a]]=e[a+2]:e[a+2]?r[e[a]]=e[a+2]:r.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(vz,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),a=xz(),(!a||!a.isStart)&&!r[qs]&&(pde(r),i.zOrigin&&r[C0]&&(r[C0]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},mde=function(e,n){var r={target:e,props:[],revert:YNe,save:ZNe};return e._gsap||D0.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},Ade,fV=function(e,n){var r=KA.createElementNS?KA.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):KA.createElement(e);return r&&r.style?r:KA.createElement(e)},gf=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(vz,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,O3(n)||n,1)||""},Eee="O,Moz,ms,Ms,Webkit".split(","),O3=function(e,n,r){var i=n||yv,a=i.style,s=5;if(e in a&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Eee[s]+e in a););return s<0?null:(s===3?"ms":s>=0?Eee[s]:"")+e},dV=function(){ONe()&&window.document&&(wee=window,KA=wee.document,K8=KA.documentElement,yv=fV("div")||{style:{}},fV("div"),qs=O3(qs),C0=qs+"Origin",yv.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ade=!!O3("perspective"),xz=D0.core.reverting,gz=1)},Mee=function(e){var n=e.ownerSVGElement,r=fV("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),a;i.style.display="block",r.appendChild(i),K8.appendChild(r);try{a=i.getBBox()}catch{}return r.removeChild(i),K8.removeChild(r),a},Cee=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},gde=function(e){var n,r;try{n=e.getBBox()}catch{n=Mee(e),r=1}return n&&(n.width||n.height)||r||(n=Mee(e)),n&&!n.width&&!n.x&&!n.y?{x:+Cee(e,["x","cx","x1"])||0,y:+Cee(e,["y","cy","y1"])||0,width:0,height:0}:n},xde=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&gde(e))},Bg=function(e,n){if(n){var r=e.style,i;n in v2&&n!==C0&&(n=qs),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(vz,"-$1").toLowerCase())):r.removeAttribute(n)}},JA=function(e,n,r,i,a,s){var o=new M0(e._pt,n,r,0,1,s?hde:dde);return e._pt=o,o.b=i,o.e=a,e._props.push(r),o},Nee={deg:1,rad:1,turn:1},XNe={grid:1,flex:1},Ug=function t(e,n,r,i){var a=parseFloat(r)||0,s=(r+"").trim().substr((a+"").length)||"px",o=yv.style,l=FNe.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",A,g,w,T;if(i===s||!a||Nee[i]||Nee[s])return a;if(s!=="px"&&!h&&(a=t(e,n,r,"px")),T=e.getCTM&&xde(e),(p||s==="%")&&(v2[n]||~n.indexOf("adius")))return A=T?e.getBBox()[l?"width":"height"]:e[u],To(p?a/A*f:a/100*A);if(o[l?"width":"height"]=f+(h?s:i),g=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,T&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===KA||!g.appendChild)&&(g=KA.body),w=g._gsap,w&&p&&w.width&&l&&w.time===df.time&&!w.uncache)return To(a/w.width*f);if(p&&(n==="height"||n==="width")){var C=e.style[n];e.style[n]=f+i,A=e[u],C?e.style[n]=C:Bg(e,n)}else(p||s==="%")&&!XNe[gf(g,"display")]&&(o.position=gf(e,"position")),g===e&&(o.position="static"),g.appendChild(yv),A=yv[u],g.removeChild(yv),o.position="absolute";return l&&p&&(w=Bv(g),w.time=df.time,w.width=g[u]),To(h?A*a/f:A&&a?f/A*a:0)},Im=function(e,n,r,i){var a;return gz||dV(),n in z1&&n!=="transform"&&(n=z1[n],~n.indexOf(",")&&(n=n.split(",")[0])),v2[n]&&n!=="transform"?(a=e5(e,i),a=n!=="transformOrigin"?a[n]:a.svg?a.origin:kN(gf(e,C0))+" "+a.zOrigin+"px"):(a=e.style[n],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=PN[n]&&PN[n](e,n,r)||gf(e,n)||Ffe(e,n)||(n==="opacity"?1:0))),r&&!~(a+"").trim().indexOf(" ")?Ug(e,n,a,r)+r:a},QNe=function(e,n,r,i){if(!r||r==="none"){var a=O3(n,e,1),s=a&&gf(e,a,1);s&&s!==r?(n=a,r=s):n==="borderColor"&&(r=gf(e,"borderTopColor"))}var o=new M0(this._pt,e.style,n,0,1,cde),l=0,c=0,u,f,h,p,A,g,w,T,C,M,D,k;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=gf(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(g=e.style[n],e.style[n]=i,i=gf(e,n)||i,g?e.style[n]=g:Bg(e,n)),u=[r,i],tde(u),r=u[0],i=u[1],h=r.match(B8)||[],k=i.match(B8)||[],k.length){for(;f=B8.exec(i);)w=f[0],C=i.substring(l,f.index),A?A=(A+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(A=1),w!==(g=h[c++]||"")&&(p=parseFloat(g)||0,D=g.substr((p+"").length),w.charAt(1)==="="&&(w=Q8(p,w)+D),T=parseFloat(w),M=w.substr((T+"").length),l=B8.lastIndex-M.length,M||(M=M||xf.units[n]||D,l===i.length&&(i+=M,o.e+=M)),D!==M&&(p=Ug(e,n,g,M)||0),o._pt={_next:o._pt,p:C||c===1?C:",",s:p,c:T-p,m:A&&A<4||n==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}
vendor: 5,026 bytes, line 19
19else o.r=n==="display"&&i==="none"?hde:dde;return Dfe.test(i)&&(o.e=0),this._pt=o,o},Ree={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},KNe=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=Ree[r]||r,n[1]=Ree[i]||i,n.join(" ")},JNe=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,a=n.u,s=r._gsap,o,l,c;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),c=a.length;--c>-1;)o=a[c],v2[o]&&(l=1,o=o==="transformOrigin"?C0:qs),Bg(r,o);l&&(Bg(r,qs),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",e5(r,1),s.uncache=1,pde(i)))}},PN={clearProps:function(e,n,r,i,a){if(a.data!=="isFromStart"){var s=e._pt=new M0(e._pt,n,r,0,0,JNe);return s.u=i,s.pr=-10,s.tween=a,e._props.push(r),1}}},JS=[1,0,0,1,0,0],vde={},yde=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Dee=function(e){var n=gf(e,qs);return yde(n)?JS:n.substr(7).match(Rfe).map(To)},yz=function(e,n){var r=e._gsap||Bv(e),i=e.style,a=Dee(e),s,o,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?JS:a):(a===JS&&!e.offsetParent&&e!==K8&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,K8.appendChild(e)),a=Dee(e),l?i.display=l:Bg(e,"display"),c&&(o?s.insertBefore(e,o):s?s.appendChild(e):K8.removeChild(e))),n&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},hV=function(e,n,r,i,a,s){var o=e._gsap,l=a||yz(e,!0),c=o.xOrigin||0,u=o.yOrigin||0,f=o.xOffset||0,h=o.yOffset||0,p=l[0],A=l[1],g=l[2],w=l[3],T=l[4],C=l[5],M=n.split(" "),D=parseFloat(M[0])||0,k=parseFloat(M[1])||0,I,L,O,B;r?l!==JS&&(L=p*w-A*g)&&(O=D*(w/L)+k*(-g/L)+(g*C-w*T)/L,B=D*(-A/L)+k*(p/L)-(p*C-A*T)/L,D=O,k=B):(I=gde(e),D=I.x+(~M[0].indexOf("%")?D/100*I.width:D),k=I.y+(~(M[1]||M[0]).indexOf("%")?k/100*I.height:k)),i||i!==!1&&o.smooth?(T=D-c,C=k-u,o.xOffset=f+(T*p+C*g)-T,o.yOffset=h+(T*A+C*w)-C):o.xOffset=o.yOffset=0,o.xOrigin=D,o.yOrigin=k,o.smooth=!!i,o.origin=n,o.originIsAbsolute=!!r,e.style[C0]="0px 0px",s&&(JA(s,o,"xOrigin",c,D),JA(s,o,"yOrigin",u,k),JA(s,o,"xOffset",f,o.xOffset),JA(s,o,"yOffset",h,o.yOffset)),e.setAttribute("data-svg-origin",D+" "+k)},e5=function(e,n){var r=e._gsap||new rde(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,a=r.scaleX<0,s="px",o="deg",l=getComputedStyle(e),c=gf(e,C0)||"0",u,f,h,p,A,g,w,T,C,M,D,k,I,L,O,B,G,j,z,Q,ee,Z,X,K,se,ae,J,oe,te,he,me,de;return u=f=h=g=w=T=C=M=D=0,p=A=1,r.svg=!!(e.getCTM&&xde(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[qs]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[qs]!=="none"?l[qs]:"")),i.scale=i.rotate=i.translate="none"),L=yz(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),c=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",K=""):K=!n&&e.getAttribute("data-svg-origin"),hV(e,K||c,!!K||r.originIsAbsolute,r.smooth!==!1,L)),k=r.xOrigin||0,I=r.yOrigin||0,L!==JS&&(j=L[0],z=L[1],Q=L[2],ee=L[3],u=Z=L[4],f=X=L[5],L.length===6?(p=Math.sqrt(j*j+z*z),A=Math.sqrt(ee*ee+Q*Q),g=j||z?P4(z,j)*ev:0,C=Q||ee?P4(Q,ee)*ev+g:0,C&&(A*=Math.abs(Math.cos(C*J8))),r.svg&&(u-=k-(k*j+I*Q),f-=I-(k*z+I*ee))):(de=L[6],he=L[7],J=L[8],oe=L[9],te=L[10],me=L[11],u=L[12],f=L[13],h=L[14],O=P4(de,te),w=O*ev,O&&(B=Math.cos(-O),G=Math.sin(-O),K=Z*B+J*G,se=X*B+oe*G,ae=de*B+te*G,J=Z*-G+J*B,oe=X*-G+oe*B,te=de*-G+te*B,me=he*-G+me*B,Z=K,X=se,de=ae),O=P4(-Q,te),T=O*ev,O&&(B=Math.cos(-O),G=Math.sin(-O),K=j*B-J*G,se=z*B-oe*G,ae=Q*B-te*G,me=ee*G+me*B,j=K,z=se,Q=ae),O=P4(z,j),g=O*ev,O&&(B=Math.cos(O),G=Math.sin(O),K=j*B+z*G,se=Z*B+X*G,z=z*B-j*G,X=X*B-Z*G,j=K,Z=se),w&&Math.abs(w)+Math.abs(g)>359.9&&(w=g=0,T=180-T),p=To(Math.sqrt(j*j+z*z+Q*Q)),A=To(Math.sqrt(X*X+de*de)),O=P4(Z,X),C=Math.abs(O)>2e-4?O*ev:0,D=me?1/(me<0?-me:me):0),r.svg&&(K=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!yde(gf(e,qs)),K&&e.setAttribute("transform",K))),Math.abs(C)>90&&Math.abs(C)<270&&(a?(p*=-1,C+=g<=0?180:-180,g+=g<=0?180:-180):(A*=-1,C+=C<=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)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=h+s,r.scaleX=To(p),r.scaleY=To(A),r.rotation=To(g)+o,r.rotationX=To(w)+o,r.rotationY=To(T)+o,r.skewX=C+o,r.skewY=M+o,r.transformPerspective=D+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[C0]=kN(c)),r.xOffset=r.yOffset=0,r.force3D=xf.force3D,r.renderTransform=r.svg?tRe:Ade?_de:eRe,r.uncache=0,r},kN=function(e){return(e=e.split(" "))[0]+" "+e[1]},vF=function(e,n,r){var i=Vc(n);return To(parseFloat(n)+parseFloat(Ug(e,"x",r+"px",i)))+i}
vendor: 11,236 bytes, line 19
19,eRe=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,_de(e,n)},kx="0deg",Tb="0px",Lx=") ",_de=function(e,n){var r=n||this,i=r.xPercent,a=r.yPercent,s=r.x,o=r.y,l=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,h=r.skewX,p=r.skewY,A=r.scaleX,g=r.scaleY,w=r.transformPerspective,T=r.force3D,C=r.target,M=r.zOrigin,D="",k=T==="auto"&&e&&e!==1||T===!0;if(M&&(f!==kx||u!==kx)){var I=parseFloat(u)*J8,L=Math.sin(I),O=Math.cos(I),B;I=parseFloat(f)*J8,B=Math.cos(I),s=vF(C,s,L*B*-M),o=vF(C,o,-Math.sin(I)*-M),l=vF(C,l,O*B*-M+M)}w!==Tb&&(D+="perspective("+w+Lx),(i||a)&&(D+="translate("+i+"%, "+a+"%) "),(k||s!==Tb||o!==Tb||l!==Tb)&&(D+=l!==Tb||k?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Lx),c!==kx&&(D+="rotate("+c+Lx),u!==kx&&(D+="rotateY("+u+Lx),f!==kx&&(D+="rotateX("+f+Lx),(h!==kx||p!==kx)&&(D+="skew("+h+", "+p+Lx),(A!==1||g!==1)&&(D+="scale("+A+", "+g+Lx),C.style[qs]=D||"translate(0, 0)"},tRe=function(e,n){var r=n||this,i=r.xPercent,a=r.yPercent,s=r.x,o=r.y,l=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,h=r.scaleY,p=r.target,A=r.xOrigin,g=r.yOrigin,w=r.xOffset,T=r.yOffset,C=r.forceCSS,M=parseFloat(s),D=parseFloat(o),k,I,L,O,B;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=J8,c*=J8,k=Math.cos(l)*f,I=Math.sin(l)*f,L=Math.sin(l-c)*-h,O=Math.cos(l-c)*h,c&&(u*=J8,B=Math.tan(c-u),B=Math.sqrt(1+B*B),L*=B,O*=B,u&&(B=Math.tan(u),B=Math.sqrt(1+B*B),k*=B,I*=B)),k=To(k),I=To(I),L=To(L),O=To(O)):(k=f,O=h,I=L=0),(M&&!~(s+"").indexOf("px")||D&&!~(o+"").indexOf("px"))&&(M=Ug(p,"x",s,"px"),D=Ug(p,"y",o,"px")),(A||g||w||T)&&(M=To(M+A-(A*k+g*L)+w),D=To(D+g-(A*I+g*O)+T)),(i||a)&&(B=p.getBBox(),M=To(M+i/100*B.width),D=To(D+a/100*B.height)),B="matrix("+k+","+I+","+L+","+O+","+M+","+D+")",p.setAttribute("transform",B),C&&(p.style[qs]=B)},nRe=function(e,n,r,i,a){var s=360,o=Wl(a),l=parseFloat(a)*(o&&~a.indexOf("rad")?ev:1),c=l-i,u=i+c+"deg",f,h;return o&&(f=a.split("_")[1],f==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),f==="cw"&&c<0?c=(c+s*Tee)%s-~~(c/s)*s:f==="ccw"&&c>0&&(c=(c-s*Tee)%s-~~(c/s)*s)),e._pt=h=new M0(e._pt,n,r,i,c,BNe),h.e=u,h.u="deg",e._props.push(r),h},Pee=function(e,n){for(var r in n)e[r]=n[r];return e},rRe=function(e,n,r){var i=Pee({},r._gsap),a="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,c,u,f,h,p,A;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[qs]=n,o=e5(r,1),Bg(r,qs),r.setAttribute("transform",c)):(c=getComputedStyle(r)[qs],s[qs]=n,o=e5(r,1),s[qs]=c);for(l in v2)c=i[l],u=o[l],c!==u&&a.indexOf(l)<0&&(p=Vc(c),A=Vc(u),f=p!==A?Ug(r,l,c,A):parseFloat(c),h=parseFloat(u),e._pt=new M0(e._pt,o,l,f,h-f,uV),e._pt.u=A||0,e._props.push(l));Pee(o,i)};E0("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(o){return e<2?t+o:"border"+o+t});PN[e>1?"border"+t:t]=function(o,l,c,u,f){var h,p;if(arguments.length<4)return h=s.map(function(A){return Im(o,A,c)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(u+"").split(" "),p={},s.forEach(function(A,g){return p[A]=h[g]=h[g]||h[(g-1)/2|0]}),o.init(l,p,f)}});var bde={name:"css",register:dV,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,a){var s=this._props,o=e.style,l=r.vars.startAt,c,u,f,h,p,A,g,w,T,C,M,D,k,I,L,O,B;gz||dV(),this.styles=this.styles||mde(e),O=this.styles.props,this.tween=r;for(g in n)if(g!=="autoRound"&&(u=n[g],!(of[g]&&ide(g,n,r,i,e,a)))){if(p=typeof u,A=PN[g],p==="function"&&(u=u.call(r,i,e,a),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=XS(u)),A)A(this,e,g,u,r)&&(L=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",xg.lastIndex=0,xg.test(c)||(w=Vc(c),T=Vc(u),T?w!==T&&(c=Ug(e,g,c,T)+T):w&&(u+=w)),this.add(o,"setProperty",c,u,i,a,0,0,g),s.push(g),O.push(g,0,o[g]);else if(p!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(r,i,e,a):l[g],Wl(c)&&~c.indexOf("random(")&&(c=XS(c)),Vc(c+"")||c==="auto"||(c+=xf.units[g]||Vc(Im(e,g))||""),(c+"").charAt(1)==="="&&(c=Im(e,g))):c=Im(e,g),h=parseFloat(c),C=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),C&&(u=u.substr(2)),f=parseFloat(u),g in z1&&(g==="autoAlpha"&&(h===1&&Im(e,"visibility")==="hidden"&&f&&(h=0),O.push("visibility",0,o.visibility),JA(this,o,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),g!=="scale"&&g!=="transform"&&(g=z1[g],~g.indexOf(",")&&(g=g.split(",")[0]))),M=g in v2,M){if(this.styles.save(g),B=u,p==="string"&&u.substring(0,6)==="var(--"){if(u=gf(e,u.substring(4,u.indexOf(")"))),u.substring(0,5)==="calc("){var G=e.style.perspective;e.style.perspective=u,u=gf(e,"perspective"),G?e.style.perspective=G:Bg(e,"perspective")}f=parseFloat(u)}if(D||(k=e._gsap,k.renderTransform&&!n.parseTransform||e5(e,n.parseTransform),I=n.smoothOrigin!==!1&&k.smooth,D=this._pt=new M0(this._pt,o,qs,0,1,k.renderTransform,k,0,-1),D.dep=1),g==="scale")this._pt=new M0(this._pt,k,"scaleY",k.scaleY,(C?Q8(k.scaleY,C+f):f)-k.scaleY||0,uV),this._pt.u=0,s.push("scaleY",g),g+="X";else if(g==="transformOrigin"){O.push(C0,0,o[C0]),u=KNe(u),k.svg?hV(e,u,0,I,0,this):(T=parseFloat(u.split(" ")[2])||0,T!==k.zOrigin&&JA(this,k,"zOrigin",k.zOrigin,T),JA(this,o,g,kN(c),kN(u)));continue}else if(g==="svgOrigin"){hV(e,u,1,I,0,this);continue}else if(g in vde){nRe(this,k,g,h,C?Q8(h,C+u):u);continue}else if(g==="smoothOrigin"){JA(this,k,"smooth",k.smooth,u);continue}else if(g==="force3D"){k[g]=u;continue}else if(g==="transform"){rRe(this,u,e);continue}}else g in o||(g=O3(g)||g);if(M||(f||f===0)&&(h||h===0)&&!INe.test(u)&&g in o)w=(c+"").substr((h+"").length),f||(f=0),T=Vc(u)||(g in xf.units?xf.units[g]:w),w!==T&&(h=Ug(e,g,c,T)),this._pt=new M0(this._pt,M?k:o,g,h,(C?Q8(h,C+f):f)-h,!M&&(T==="px"||g==="zIndex")&&n.autoRound!==!1?jNe:uV),this._pt.u=T||0,M&&B!==u?(this._pt.b=c,this._pt.e=B,this._pt.r=VNe):w!==T&&T!=="%"&&(this._pt.b=c,this._pt.r=UNe);else if(g in o)QNe.call(this,e,g,c,C?C+u:u);else if(g in e)this.add(e,g,c||e[g],C?C+u:u,i,a);else if(g!=="parseTransform"){oz(g,u);continue}M||(g in o?O.push(g,0,o[g]):typeof e[g]=="function"?O.push(g,2,e[g]()):O.push(g,1,c||e[g])),s.push(g)}}L&&ude(this)},render:function(e,n){if(n.tween._time||!xz())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:Im,aliases:z1,getSetter:function(e,n,r){var i=z1[n];return i&&i.indexOf(",")<0&&(n=i),n in v2&&n!==C0&&(e._gsap.x||Im(e,"x"))?r&&See===r?n==="scale"?$Ne:zNe:(See=r||{})&&(n==="scale"?qNe:WNe):e.style&&!iz(e.style[n])?HNe:~n.indexOf("-")?GNe:mz(e,n)},core:{_removeProperty:Bg,_getMatrix:yz}};D0.utils.checkPrefix=O3;D0.core.getStyleSaver=mde;(function(t,e,n,r){var i=E0(t+","+e+","+n,function(a){v2[a]=1});E0(e,function(a){xf.units[a]="deg",vde[a]=1}),z1[i[13]]=t+","+e,E0(r,function(a){var s=a.split(":");z1[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");E0("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){xf.units[t]="px"});D0.registerPlugin(bde);var zr=D0.registerPlugin(bde)||D0;zr.core.Tween;function iRe(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 aRe(t,e,n){return e&&iRe(t.prototype,e),t}var lc,v9,hf,eg,tg,e3,wde,tv,t3,Sde,$m,hh,Tde,Ede=function(){return lc||typeof window<"u"&&(lc=window.gsap)&&lc.registerPlugin&&lc},Mde=1,V8=[],yi=[],np=[],Jw=Date.now,pV=function(e,n){return n},sRe=function(){var e=t3.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,yi),i.push.apply(i,np),yi=r,np=i,pV=function(s,o){return n[s](o)}},vg=function(e,n){return~np.indexOf(e)&&np[np.indexOf(e)+1][n]},eS=function(e){return!!~Sde.indexOf(e)},mu=function(e,n,r,i,a){return e.addEventListener(n,r,{passive:i!==!1,capture:!!a})},du=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},kM="scrollLeft",LM="scrollTop",mV=function(){return $m&&$m.isPressed||yi.cache++},LN=function(e,n){var r=function i(a){if(a||a===0){Mde&&(hf.history.scrollRestoration="manual");var s=$m&&$m.isPressed;a=i.v=Math.round(a)||($m&&$m.iOS?1:0),e(a),i.cacheID=yi.cache,s&&pV("ss",a)}else(n||yi.cache!==i.cacheID||pV("ref"))&&(i.cacheID=yi.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},Ru={s:kM,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:LN(function(t){return arguments.length?hf.scrollTo(t,pl.sc()):hf.pageXOffset||eg[kM]||tg[kM]||e3[kM]||0})},pl={s:LM,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ru,sc:LN(function(t){return arguments.length?hf.scrollTo(Ru.sc(),t):hf.pageYOffset||eg[LM]||tg[LM]||e3[LM]||0})},u0=function(e,n){return(n&&n._ctx&&n._ctx.selector||lc.utils.toArray)(e)[0]||(typeof e=="string"&&lc.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},oRe=function(e,n){for(var r=n.length;r--;)if(n[r]===e||n[r].contains(e))return!0;return!1},Vg=function(e,n){var r=n.s,i=n.sc;eS(e)&&(e=eg.scrollingElement||tg);var a=yi.indexOf(e),s=i===pl.sc?1:2;!~a&&(a=yi.push(e)-1),yi[a+s]||mu(e,"scroll",mV);var o=yi[a+s],l=o||(yi[a+s]=LN(vg(e,r),!0)||(eS(e)?i:LN(function(c){return arguments.length?e[r]=c:e[r]})));return l.target=e,o||(l.smooth=lc.getProperty(e,"scrollBehavior")==="smooth"),l},AV=function(e,n,r){var i=e,a=e,s=Jw(),o=s,l=n||50,c=Math.max(500,l*3),u=function(A,g){var w=Jw();g||w-s>l?(a=i,i=A,o=s,s=w):r?i+=A:i=a+(A-a)/(w-o)*(s-o)},f=function(){a=i=r?0:i,o=s=0},h=function(A){var g=o,w=a,T=Jw();return(A||A===0)&&A!==i&&u(A),s===o||T-o>c?0:(i+(r?w:-w))/((r?T:s)-g)*1e3};return{update:u,reset:f,getVelocity:h}},Eb=function(e,n){return n&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},kee=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},Cde=function(){t3=lc.core.globals().ScrollTrigger,t3&&t3.core&&sRe()},Nde=function(e){return lc=e||Ede(),!v9&&lc&&typeof document<"u"&&document.body&&(hf=window,eg=document,tg=eg.documentElement,e3=eg.body,Sde=[hf,eg,tg,e3],lc.utils.clamp,Tde=lc.core.context||function(){},tv="onpointerenter"in e3?"pointer":"mouse",wde=Eo.isTouch=hf.matchMedia&&hf.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in hf||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,hh=Eo.eventTypes=("ontouchstart"in tg?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in tg?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Mde=0},500),v9=1),t3||Cde(),v9};Ru.op=pl;yi.cache=0;var Eo=(function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){v9||Nde(lc)||console.warn("Please gsap.registerPlugin(Observer)"),t3||Cde();var i=r.tolerance,a=r.dragMinimum,s=r.type,o=r.target,l=r.lineHeight,c=r.debounce,u=r.preventDefault,f=r.onStop,h=r.onStopDelay,p=r.ignore,A=r.wheelSpeed,g=r.event,w=r.onDragStart,T=r.onDragEnd,C=r.onDrag,M=r.onPress,D=r.onRelease,k=r.onRight,I=r.onLeft,L=r.onUp,O=r.onDown,B=r.onChangeX,G=r.onChangeY,j=r.onChange,z
vendor: 7,011 bytes, line 19
19=r.onToggleX,Q=r.onToggleY,ee=r.onHover,Z=r.onHoverEnd,X=r.onMove,K=r.ignoreCheck,se=r.isNormalizer,ae=r.onGestureStart,J=r.onGestureEnd,oe=r.onWheel,te=r.onEnable,he=r.onDisable,me=r.onClick,de=r.scrollSpeed,Ae=r.capture,Se=r.allowClicks,Re=r.lockAxis,Ne=r.onLockAxis;this.target=o=u0(o)||tg,this.vars=r,p&&(p=lc.utils.toArray(p)),i=i||1e-9,a=a||0,A=A||1,de=de||1,s=s||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(hf.getComputedStyle(e3).lineHeight)||22);var Fe,Qe,ge,Ie,De,Xe,Ye,Me=this,lt=0,Ht=0,Le=r.passive||!u&&r.passive!==!1,Nt=Vg(o,Ru),Ct=Vg(o,pl),It=Nt(),nt=Ct(),ht=~s.indexOf("touch")&&!~s.indexOf("pointer")&&hh[0]==="pointerdown",ve=eS(o),ce=o.ownerDocument||eg,je=[0,0,0],dt=[0,0,0],ft=0,at=function(){return ft=Jw()},St=function(Gt,hn){return(Me.event=Gt)&&p&&oRe(Gt.target,p)||hn&&ht&&Gt.pointerType!=="touch"||K&&K(Gt,hn)},ut=function(){Me._vx.reset(),Me._vy.reset(),Qe.pause(),f&&f(Me)},gt=function(){var Gt=Me.deltaX=kee(je),hn=Me.deltaY=kee(dt),Ve=Math.abs(Gt)>=i,pt=Math.abs(hn)>=i;j&&(Ve||pt)&&j(Me,Gt,hn,je,dt),Ve&&(k&&Me.deltaX>0&&k(Me),I&&Me.deltaX<0&&I(Me),B&&B(Me),z&&Me.deltaX<0!=lt<0&&z(Me),lt=Me.deltaX,je[0]=je[1]=je[2]=0),pt&&(O&&Me.deltaY>0&&O(Me),L&&Me.deltaY<0&&L(Me),G&&G(Me),Q&&Me.deltaY<0!=Ht<0&&Q(Me),Ht=Me.deltaY,dt[0]=dt[1]=dt[2]=0),(Ie||ge)&&(X&&X(Me),ge&&(w&&ge===1&&w(Me),C&&C(Me),ge=0),Ie=!1),Xe&&!(Xe=!1)&&Ne&&Ne(Me),De&&(oe(Me),De=!1),Fe=0},Vt=function(Gt,hn,Ve){je[Ve]+=Gt,dt[Ve]+=hn,Me._vx.update(Gt),Me._vy.update(hn),c?Fe||(Fe=requestAnimationFrame(gt)):gt()},Zt=function(Gt,hn){Re&&!Ye&&(Me.axis=Ye=Math.abs(Gt)>Math.abs(hn)?"x":"y",Xe=!0),Ye!=="y"&&(je[2]+=Gt,Me._vx.update(Gt,!0)),Ye!=="x"&&(dt[2]+=hn,Me._vy.update(hn,!0)),c?Fe||(Fe=requestAnimationFrame(gt)):gt()},Wt=function(Gt){if(!St(Gt,1)){Gt=Eb(Gt,u);var hn=Gt.clientX,Ve=Gt.clientY,pt=hn-Me.x,Tt=Ve-Me.y,xt=Me.isDragging;Me.x=hn,Me.y=Ve,(xt||(pt||Tt)&&(Math.abs(Me.startX-hn)>=a||Math.abs(Me.startY-Ve)>=a))&&(ge||(ge=xt?2:1),xt||(Me.isDragging=!0),Zt(pt,Tt))}},qt=Me.onPress=function(Bt){St(Bt,1)||Bt&&Bt.button||(Me.axis=Ye=null,Qe.pause(),Me.isPressed=!0,Bt=Eb(Bt),lt=Ht=0,Me.startX=Me.x=Bt.clientX,Me.startY=Me.y=Bt.clientY,Me._vx.reset(),Me._vy.reset(),mu(se?o:ce,hh[1],Wt,Le,!0),Me.deltaX=Me.deltaY=0,M&&M(Me))},We=Me.onRelease=function(Bt){if(!St(Bt,1)){du(se?o:ce,hh[1],Wt,!0);var Gt=!isNaN(Me.y-Me.startY),hn=Me.isDragging,Ve=hn&&(Math.abs(Me.x-Me.startX)>3||Math.abs(Me.y-Me.startY)>3),pt=Eb(Bt);!Ve&&Gt&&(Me._vx.reset(),Me._vy.reset(),u&&Se&&lc.delayedCall(.08,function(){if(Jw()-ft>300&&!Bt.defaultPrevented){if(Bt.target.click)Bt.target.click();else if(ce.createEvent){var Tt=ce.createEvent("MouseEvents");Tt.initMouseEvent("click",!0,!0,hf,1,pt.screenX,pt.screenY,pt.clientX,pt.clientY,!1,!1,!1,!1,0,null),Bt.target.dispatchEvent(Tt)}}})),Me.isDragging=Me.isGesturing=Me.isPressed=!1,f&&hn&&!se&&Qe.restart(!0),ge&>(),T&&hn&&T(Me),D&&D(Me,Ve)}},yn=function(Gt){return Gt.touches&&Gt.touches.length>1&&(Me.isGesturing=!0)&&ae(Gt,Me.isDragging)},vn=function(){return(Me.isGesturing=!1)||J(Me)},Ge=function(Gt){if(!St(Gt)){var hn=Nt(),Ve=Ct();Vt((hn-It)*de,(Ve-nt)*de,1),It=hn,nt=Ve,f&&Qe.restart(!0)}},kt=function(Gt){if(!St(Gt)){Gt=Eb(Gt,u),oe&&(De=!0);var hn=(Gt.deltaMode===1?l:Gt.deltaMode===2?hf.innerHeight:1)*A;Vt(Gt.deltaX*hn,Gt.deltaY*hn,0),f&&!se&&Qe.restart(!0)}},_t=function(Gt){if(!St(Gt)){var hn=Gt.clientX,Ve=Gt.clientY,pt=hn-Me.x,Tt=Ve-Me.y;Me.x=hn,Me.y=Ve,Ie=!0,f&&Qe.restart(!0),(pt||Tt)&&Zt(pt,Tt)}},Dt=function(Gt){Me.event=Gt,ee(Me)},jt=function(Gt){Me.event=Gt,Z(Me)},Lt=function(Gt){return St(Gt)||Eb(Gt,u)&&me(Me)};Qe=Me._dc=lc.delayedCall(h||.25,ut).pause(),Me.deltaX=Me.deltaY=0,Me._vx=AV(0,50,!0),Me._vy=AV(0,50,!0),Me.scrollX=Nt,Me.scrollY=Ct,Me.isDragging=Me.isGesturing=Me.isPressed=!1,Tde(this),Me.enable=function(Bt){return Me.isEnabled||(mu(ve?ce:o,"scroll",mV),s.indexOf("scroll")>=0&&mu(ve?ce:o,"scroll",Ge,Le,Ae),s.indexOf("wheel")>=0&&mu(o,"wheel",kt,Le,Ae),(s.indexOf("touch")>=0&&wde||s.indexOf("pointer")>=0)&&(mu(o,hh[0],qt,Le,Ae),mu(ce,hh[2],We),mu(ce,hh[3],We),Se&&mu(o,"click",at,!0,!0),me&&mu(o,"click",Lt),ae&&mu(ce,"gesturestart",yn),J&&mu(ce,"gestureend",vn),ee&&mu(o,tv+"enter",Dt),Z&&mu(o,tv+"leave",jt),X&&mu(o,tv+"move",_t)),Me.isEnabled=!0,Me.isDragging=Me.isGesturing=Me.isPressed=Ie=ge=!1,Me._vx.reset(),Me._vy.reset(),It=Nt(),nt=Ct(),Bt&&Bt.type&&qt(Bt),te&&te(Me)),Me},Me.disable=function(){Me.isEnabled&&(V8.filter(function(Bt){return Bt!==Me&&eS(Bt.target)}).length||du(ve?ce:o,"scroll",mV),Me.isPressed&&(Me._vx.reset(),Me._vy.reset(),du(se?o:ce,hh[1],Wt,!0)),du(ve?ce:o,"scroll",Ge,Ae),du(o,"wheel",kt,Ae),du(o,hh[0],qt,Ae),du(ce,hh[2],We),du(ce,hh[3],We),du(o,"click",at,!0),du(o,"click",Lt),du(ce,"gesturestart",yn),du(ce,"gestureend",vn),du(o,tv+"enter",Dt),du(o,tv+"leave",jt),du(o,tv+"move",_t),Me.isEnabled=Me.isPressed=Me.isDragging=!1,he&&he(Me))},Me.kill=Me.revert=function(){Me.disable();var Bt=V8.indexOf(Me);Bt>=0&&V8.splice(Bt,1),$m===Me&&($m=0)},V8.push(Me),se&&eS(o)&&($m=Me),Me.enable(g)},aRe(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t})();Eo.version="3.15.0";Eo.create=function(t){return new Eo(t)};Eo.register=Nde;Eo.getAll=function(){return V8.slice()};Eo.getById=function(t){return V8.filter(function(e){return e.vars.id===t})[0]};Ede()&&lc.registerPlugin(Eo);var nr,T8,vi,Pa,cf,Ea,_z,ON,t5,tS,vw,OM,Lc,sP,gV,_u,Lee,Oee,E8,Rde,yF,Dde,xu,xV,Pde,kde,LA,vV,bz,n3,wz,nS,yV,_F,FM=1,Bc=Date.now,bF=Bc(),gd=0,yw=0,Fee=function(e,n,r){var i=nf(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},Iee=function(e,n){return n&&(!nf(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},lRe=function t(){return yw&&requestAnimationFrame(t)},Bee=function(){return sP=1},Uee=function(){return sP=0},N1=function(e){return e},_w=function(e){return Math.round(e*1e5)/1e5||0},Lde=function(){return typeof window<"u"},Ode=function(){return nr||Lde()&&(nr=window.gsap)&&nr.registerPlugin&&nr},oy=function(e){return!!~_z.indexOf(e)},Fde=function(e){return(e==="Height"?wz:vi["inner"+e])||cf["client"+e]||Ea["client"+e]},Ide=function(e){return vg(e,"getBoundingClientRect")||(oy(e)?function(){return S9.width=vi.innerWidth,S9.height=wz,S9}:function(){return jm(e)})},cRe=function(e,n,r){var i=r.d,a=r.d2,s=r.a;return(s=vg(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(n?Fde(a):e["client"+a])||0}},uRe=function(e,n){return!n||~np.indexOf(e)?Ide(e):function(){return S9}},$1=function(e,n){var r=n.s,i=n.d2,a=n.d,s=n.a;return Math.max(0,(r="scroll"+i)&&(s=vg(e,r))?s()-Ide(e)()[a]:oy(e)?(cf[r]||Ea[r])-Fde(i):e[r]-e["offset"+i])},IM=function(e,n){for(var r=0;r<E8.length;r+=3)(!n||~n.indexOf(E8[r+1]))&&e(E8[r],E8[r+1],E8[r+2])},nf=function(e){return typeof e=="string"},jc=function(e){return typeof e=="function"},bw=function(e){return typeof e=="number"},nv=function(e){return typeof e=="object"},Mb=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()}
vendor: 5,076 bytes, line 19
19,k4=function(e,n,r){if(e.enabled){var i=e._ctx?e._ctx.add(function(){return n(e,r)}):n(e,r);i&&i.totalTime&&(e.callbackAnimation=i)}},L4=Math.abs,Bde="left",Ude="top",Sz="right",Tz="bottom",Hv="width",Gv="height",rS="Right",iS="Left",aS="Top",sS="Bottom",jo="padding",nd="margin",F3="Width",Ez="Height",cl="px",rd=function(e){return vi.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},fRe=function(e){var n=rd(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},Vee=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},jm=function(e,n){var r=n&&rd(e)[gV]!=="matrix(1, 0, 0, 1, 0, 0)"&&nr.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),i},FN=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},Vde=function(e){var n=[],r=e.labels,i=e.duration(),a;for(a in r)n.push(r[a]/i);return n},dRe=function(e){return function(n){return nr.utils.snap(Vde(e),n)}},Mz=function(e){var n=nr.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,a){return i-a});return r?function(i,a,s){s===void 0&&(s=.001);var o;if(!a)return n(i);if(a>0){for(i-=s,o=0;o<r.length;o++)if(r[o]>=i)return r[o];return r[o-1]}else for(o=r.length,i+=s;o--;)if(r[o]<=i)return r[o];return r[0]}:function(i,a,s){s===void 0&&(s=.001);var o=n(i);return!a||Math.abs(o-i)<s||o-i<0==a<0?o:n(a<0?i-e:i+e)}},hRe=function(e){return function(n,r){return Mz(Vde(e))(n,r.direction)}},BM=function(e,n,r,i){return r.split(",").forEach(function(a){return e(n,a,i)})},Bl=function(e,n,r,i,a){return e.addEventListener(n,r,{passive:!i,capture:!!a})},Il=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},UM=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},jee={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},VM={toggleActions:"play",anticipatePin:0},IN={top:0,left:0,center:.5,bottom:1,right:1},y9=function(e,n){if(nf(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in IN?IN[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},jM=function(e,n,r,i,a,s,o,l){var c=a.startColor,u=a.endColor,f=a.fontSize,h=a.indent,p=a.fontWeight,A=Pa.createElement("div"),g=oy(r)||vg(r,"pinType")==="fixed",w=e.indexOf("scroller")!==-1,T=g?Ea:r.tagName==="IFRAME"?r.contentDocument.body:r,C=e.indexOf("start")!==-1,M=C?c:u,D="border-color:"+M+";font-size:"+f+";color:"+M+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return D+="position:"+((w||l)&&g?"fixed;":"absolute;"),(w||l||!g)&&(D+=(i===pl?Sz:Tz)+":"+(s+parseFloat(h))+"px;"),o&&(D+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),A._isStart=C,A.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),A.style.cssText=D,A.innerText=n||n===0?e+"-"+n:e,T.children[0]?T.insertBefore(A,T.children[0]):T.appendChild(A),A._offset=A["offset"+i.op.d2],_9(A,0,i,C),A},_9=function(e,n,r,i){var a={display:"block"},s=r[i?"os2":"p2"],o=r[i?"p2":"os2"];e._isFlipped=i,a[r.a+"Percent"]=i?-100:0,a[r.a]=i?"1px":0,a["border"+s+F3]=1,a["border"+o+F3]=0,a[r.p]=n+"px",nr.set(e,a)},hi=[],_V={},n5,Hee=function(){return Bc()-gd>34&&(n5||(n5=requestAnimationFrame(t2)))},O4=function(){(!xu||!xu.isPressed||xu.startX>Ea.clientWidth)&&(yi.cache++,xu?n5||(n5=requestAnimationFrame(t2)):t2(),gd||cy("scrollStart"),gd=Bc())},wF=function(){kde=vi.innerWidth,Pde=vi.innerHeight},ww=function(e){yi.cache++,(e===!0||!Lc&&!Dde&&!Pa.fullscreenElement&&!Pa.webkitFullscreenElement&&(!xV||kde!==vi.innerWidth||Math.abs(vi.innerHeight-Pde)>vi.innerHeight*.25))&&ON.restart(!0)},ly={},pRe=[],jde=function t(){return Il(Ai,"scrollEnd",t)||_v(!0)},cy=function(e){return ly[e]&&ly[e].map(function(n){return n()})||pRe},tf=[],Hde=function(e){for(var n=0;n<tf.length;n+=5)(!e||tf[n+4]&&tf[n+4].query===e)&&(tf[n].style.cssText=tf[n+1],tf[n].getBBox&&tf[n].setAttribute("transform",tf[n+2]||""),tf[n+3].uncache=1)},Gde=function(){return yi.forEach(function(e){return jc(e)&&++e.cacheID&&(e.rec=e())})},Cz=function(e,n){var r;for(_u=0;_u<hi.length;_u++)r=hi[_u],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));nS=!0,n&&Hde(n),n||cy("revert")},zde=function(e,n){yi.cache++,(n||!bu)&&yi.forEach(function(r){return jc(r)&&r.cacheID++&&(r.rec=0)}),nf(e)&&(vi.history.scrollRestoration=bz=e)},bu,zv=0,Gee,mRe=function(){if(Gee!==zv){var e=Gee=zv;requestAnimationFrame(function(){return e===zv&&_v(!0)})}},$de=function(){Ea.appendChild(n3),wz=!xu&&n3.offsetHeight||vi.innerHeight,Ea.removeChild(n3)},zee=function(e){return t5(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},_v=function(e,n){if(cf=Pa.documentElement,Ea=Pa.body,_z=[vi,Pa,cf,Ea],gd&&!e&&!nS){Bl(Ai,"scrollEnd",j
vendor: 1,339 bytes, line 19
19de);return}$de(),bu=Ai.isRefreshing=!0,nS||Gde();var r=cy("refreshInit");Rde&&Ai.sort(),n||Cz(),yi.forEach(function(i){jc(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),hi.slice(0).forEach(function(i){return i.refresh()}),nS=!1,hi.forEach(function(i){if(i._subPinOffset&&i.pin){var a=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[a];i.revert(!0,1),i.adjustPinSpacing(i.pin[a]-s),i.refresh()}}),yV=1,zee(!0),hi.forEach(function(i){var a=$1(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>a,o=i._startClamp&&i.start>=a;(s||o)&&i.setPositions(o?a-1:i.start,s?Math.max(o?a:i.start+1,a):i.end,!0)}),zee(!1),yV=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),yi.forEach(function(i){jc(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),zde(bz,1),ON.pause(),zv++,bu=2,t2(2),hi.forEach(function(i){return jc(i.vars.onRefresh)&&i.vars.onRefresh(i)}),bu=Ai.isRefreshing=!1,cy("refresh")},bV=0,b9=1,oS,t2=function(e){if(e===2||!bu&&!nS){Ai.isUpdating=!0,oS&&oS.update(0);var n=hi.length,r=Bc(),i=r-bF>=50,a=n&&hi[0].scroll();if(b9=bV>a?-1:1,bu||(bV=a),i&&(gd&&!sP&&r-gd>200&&(gd=0,cy("scrollEnd")),vw=bF,bF=r),b9<0){for(_u=n;_u-- >0;)hi[_u]&&hi[_u].update(0,i);b9=1}else for(_u=0;_u<n;_u++)hi[_u]&&hi[_u].update(0,i);Ai.isUpdating=!1}n5=0}
vendor: 4,535 bytes, line 19
19,wV=[Bde,Ude,Tz,Sz,nd+sS,nd+rS,nd+aS,nd+iS,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],w9=wV.concat([Hv,Gv,"boxSizing","max"+F3,"max"+Ez,"position",nd,jo,jo+aS,jo+rS,jo+sS,jo+iS]),ARe=function(e,n,r){r3(r);var i=e._gsap;if(i.spacerIsNative)r3(i.spacerState);else if(e._gsap.swappedIn){var a=n.parentNode;a&&(a.insertBefore(e,n),a.removeChild(n))}e._gsap.swappedIn=!1},SF=function(e,n,r,i){if(!e._gsap.swappedIn){for(var a=wV.length,s=n.style,o=e.style,l;a--;)l=wV[a],s[l]=r[l];s.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(s.display="inline-block"),o[Tz]=o[Sz]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[Hv]=FN(e,Ru)+cl,s[Gv]=FN(e,pl)+cl,s[jo]=o[nd]=o[Ude]=o[Bde]="0",r3(i),o[Hv]=o["max"+F3]=r[Hv],o[Gv]=o["max"+Ez]=r[Gv],o[jo]=r[jo],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},gRe=/([A-Z])/g,r3=function(e){if(e){var n=e.t.style,r=e.length,i=0,a,s;for((e.t._gsap||nr.core.getCache(e.t)).uncache=1;i<r;i+=2)s=e[i+1],a=e[i],s?n[a]=s:n[a]&&n.removeProperty(a.replace(gRe,"-$1").toLowerCase())}},HM=function(e){for(var n=w9.length,r=e.style,i=[],a=0;a<n;a++)i.push(w9[a],r[w9[a]]);return i.t=e,i},xRe=function(e,n,r){for(var i=[],a=e.length,s=r?8:0,o;s<a;s+=2)o=e[s],i.push(o,o in n?n[o]:e[s+1]);return i.t=e.t,i},S9={left:0,top:0},$ee=function(e,n,r,i,a,s,o,l,c,u,f,h,p,A){jc(e)&&(e=e(l)),nf(e)&&e.substr(0,3)==="max"&&(e=h+(e.charAt(4)==="="?y9("0"+e.substr(3),r):0));var g=p?p.time():0,w,T,C;if(p&&p.seek(0),isNaN(e)||(e=+e),bw(e))p&&(e=nr.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,h,e)),o&&_9(o,r,i,!0);else{jc(n)&&(n=n(l));var M=(e||"0").split(" "),D,k,I,L;C=u0(n,l)||Ea,D=jm(C)||{},(!D||!D.left&&!D.top)&&rd(C).display==="none"&&(L=C.style.display,C.style.display="block",D=jm(C),L?C.style.display=L:C.style.removeProperty("display")),k=y9(M[0],D[i.d]),I=y9(M[1]||"0",r),e=D[i.p]-c[i.p]-u+k+a-I,o&&_9(o,I,i,r-I<20||o._isStart&&I>20),r-=r-I}if(A&&(l[A]=e||-.001,e<0&&(e=0)),s){var O=e+r,B=s._isStart;w="scroll"+i.d2,_9(s,O,i,B&&O>20||!B&&(f?Math.max(Ea[w],cf[w]):s.parentNode[w])<=O+1),f&&(c=jm(o),f&&(s.style[i.op.p]=c[i.op.p]-i.op.m-s._offset+cl))}return p&&C&&(w=jm(C),p.seek(h),T=jm(C),p._caScrollDist=w[i.p]-T[i.p],e=e/p._caScrollDist*h),p&&p.seek(g),p?e:Math.round(e)},vRe=/(webkit|moz|length|cssText|inset)/i,qee=function(e,n,r,i){if(e.parentNode!==n){var a=e.style,s,o;if(n===Ea){e._stOrig=a.cssText,o=rd(e);for(s in o)!+s&&!vRe.test(s)&&o[s]&&typeof a[s]=="string"&&s!=="0"&&(a[s]=o[s]);a.top=r,a.left=i}else a.cssText=e._stOrig;nr.core.getCache(e).uncache=1,n.appendChild(e)}},qde=function(e,n,r){var i=n,a=i;return function(s){var o=Math.round(e());return o!==i&&o!==a&&Math.abs(o-i)>3&&Math.abs(o-a)>3&&(s=o,r&&r()),a=i,i=Math.round(s),i}},GM=function(e,n,r){var i={};i[n.p]="+="+r,nr.set(e,i)},Wee=function(e,n){var r=Vg(e,n),i="_scroll"+n.p2,a=function s(o,l,c,u,f){var h=s.tween,p=l.onComplete,A={};c=c||r();var g=qde(r,c,function(){h.kill(),s.tween=0});return f=u&&f||0,u=u||o-c,h&&h.kill(),l[i]=o,l.inherit=!1,l.modifiers=A,A[i]=function(){return g(c+u*h.ratio+f*h.ratio*h.ratio)},l.onUpdate=function(){yi.cache++,s.tween&&t2()},l.onComplete=function(){s.tween=0,p&&p.call(h)},h=s.tween=nr.to(e,l),h};return e[i]=r,r.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},Bl(e,"wheel",r.wheelHandler),Ai.isTouch&&Bl(e,"touchmove",r.wheelHandler),a},Ai=(function(){function t(n,r){T8||t.register(nr)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),vV(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!yw){this.update=this.refresh=this.kill=N1;return}r=Vee(nf(r)||bw(r)||r.nodeType?{trigger:r}:r,VM);var a=r,s=a.onUpdate,o=a.toggleClass,l=a.id,c=a.onToggle,u=a.onRefresh,f=a.scrub,h=a.trigger,p=a.pin,A=a.pinSpacing,g=a.invalidateOnRefresh,w=a.anticipatePin,T=a.onScrubComplete,C=a.onSnapComplete,M=a.once,D=a.snap,k=a.pinReparent,I=a.pinSpacer,L=a.containerAnimation,O=a.fastScrollEnd,B=a.preventOverlaps,G=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Ru:pl,j=!f&&f!==0,z=u0(r.scroller||vi),Q=nr.core.getCache(z),ee=oy(z),Z=("pinType"in r?r.pinType:vg(z,"pinType")||ee&&"fixed")==="fixed",X=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],K=j&&r.toggleActions.split(" "),se="markers"in r?r.markers:VM.markers,ae=ee?0:parseFloat(rd(z)["border"+G.p2
vendor: 6,168 bytes, line 19
19+F3])||0,J=this,oe=r.onRefreshInit&&function(){return r.onRefreshInit(J)},te=cRe(z,ee,G),he=uRe(z,ee),me=0,de=0,Ae=0,Se=Vg(z,G),Re,Ne,Fe,Qe,ge,Ie,De,Xe,Ye,Me,lt,Ht,Le,Nt,Ct,It,nt,ht,ve,ce,je,dt,ft,at,St,ut,gt,Vt,Zt,Wt,qt,We,yn,vn,Ge,kt,_t,Dt,jt;if(J._startClamp=J._endClamp=!1,J._dir=G,w*=45,J.scroller=z,J.scroll=L?L.time.bind(L):Se,Qe=Se(),J.vars=r,i=i||r.animation,"refreshPriority"in r&&(Rde=1,r.refreshPriority===-9999&&(oS=J)),Q.tweenScroll=Q.tweenScroll||{top:Wee(z,pl),left:Wee(z,Ru)},J.tweenTo=Re=Q.tweenScroll[G.p],J.scrubDuration=function(Ve){yn=bw(Ve)&&Ve,yn?We?We.duration(Ve):We=nr.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:yn,paused:!0,onComplete:function(){return T&&T(J)}}):(We&&We.progress(1).kill(),We=0)},i&&(i.vars.lazy=!1,i._initted&&!J.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),J.animation=i.pause(),i.scrollTrigger=J,J.scrubDuration(f),Wt=0,l||(l=i.vars.id)),D&&((!nv(D)||D.push)&&(D={snapTo:D}),"scrollBehavior"in Ea.style&&nr.set(ee?[Ea,cf]:z,{scrollBehavior:"auto"}),yi.forEach(function(Ve){return jc(Ve)&&Ve.target===(ee?Pa.scrollingElement||cf:z)&&(Ve.smooth=!1)}),Fe=jc(D.snapTo)?D.snapTo:D.snapTo==="labels"?dRe(i):D.snapTo==="labelsDirectional"?hRe(i):D.directional!==!1?function(Ve,pt){return Mz(D.snapTo)(Ve,Bc()-de<500?0:pt.direction)}:nr.utils.snap(D.snapTo),vn=D.duration||{min:.1,max:2},vn=nv(vn)?tS(vn.min,vn.max):tS(vn,vn),Ge=nr.delayedCall(D.delay||yn/2||.1,function(){var Ve=Se(),pt=Bc()-de<500,Tt=Re.tween;if((pt||Math.abs(J.getVelocity())<10)&&!Tt&&!sP&&me!==Ve){var xt=(Ve-Ie)/Nt,v=i&&!j?i.totalProgress():xt,W=pt?0:(v-qt)/(Bc()-vw)*1e3||0,Te=nr.utils.clamp(-xt,1-xt,L4(W/2)*W/.185),_e=xt+(D.inertia===!1?0:Te),be,xe,we=D,tt=we.onStart,ot=we.onInterrupt,ze=we.onComplete;if(be=Fe(_e,J),bw(be)||(be=_e),xe=Math.max(0,Math.round(Ie+be*Nt)),Ve<=De&&Ve>=Ie&&xe!==Ve){if(Tt&&!Tt._initted&&Tt.data<=L4(xe-Ve))return;D.inertia===!1&&(Te=be-xt),Re(xe,{duration:vn(L4(Math.max(L4(_e-v),L4(be-v))*.185/W/.05||0)),ease:D.ease||"power3",data:L4(xe-Ve),onInterrupt:function(){return Ge.restart(!0)&&ot&&k4(J,ot)},onComplete:function(){J.update(),me=Se(),i&&!j&&(We?We.resetTo("totalProgress",be,i._tTime/i._tDur):i.progress(be)),Wt=qt=i&&!j?i.totalProgress():J.progress,C&&C(J),ze&&k4(J,ze)}},Ve,Te*Nt,xe-Ve-Te*Nt),tt&&k4(J,tt,Re.tween)}}else J.isActive&&me!==Ve&&Ge.restart(!0)}).pause()),l&&(_V[l]=J),h=J.trigger=u0(h||p!==!0&&p),jt=h&&h._gsap&&h._gsap.stRevert,jt&&(jt=jt(J)),p=p===!0?h:u0(p),nf(o)&&(o={targets:h,className:o}),p&&(A===!1||A===nd||(A=!A&&p.parentNode&&p.parentNode.style&&rd(p.parentNode).display==="flex"?!1:jo),J.pin=p,Ne=nr.core.getCache(p),Ne.spacer?Ct=Ne.pinState:(I&&(I=u0(I),I&&!I.nodeType&&(I=I.current||I.nativeElement),Ne.spacerIsNative=!!I,I&&(Ne.spacerState=HM(I))),Ne.spacer=ht=I||Pa.createElement("div"),ht.classList.add("pin-spacer"),l&&ht.classList.add("pin-spacer-"+l),Ne.pinState=Ct=HM(p)),r.force3D!==!1&&nr.set(p,{force3D:!0}),J.spacer=ht=Ne.spacer,Zt=rd(p),at=Zt[A+G.os2],ce=nr.getProperty(p),je=nr.quickSetter(p,G.a,cl),SF(p,ht,Zt),nt=HM(p)),se){Ht=nv(se)?Vee(se,jee):jee,Me=jM("scroller-start",l,z,G,Ht,0),lt=jM("scroller-end",l,z,G,Ht,0,Me),ve=Me["offset"+G.op.d2];var Lt=u0(vg(z,"content")||z);Xe=this.markerStart=jM("start",l,Lt,G,Ht,ve,0,L),Ye=this.markerEnd=jM("end",l,Lt,G,Ht,ve,0,L),L&&(Dt=nr.quickSetter([Xe,Ye],G.a,cl)),!Z&&!(np.length&&vg(z,"fixedMarkers")===!0)&&(fRe(ee?Ea:z),nr.set([Me,lt],{force3D:!0}),ut=nr.quickSetter(Me,G.a,cl),Vt=nr.quickSetter(lt,G.a,cl))}if(L){var Bt=L.vars.onUpdate,Gt=L.vars.onUpdateParams;L.eventCallback("onUpdate",function(){J.update(0,0,1),Bt&&Bt.apply(L,Gt||[])})}if(J.previous=function(){return hi[hi.indexOf(J)-1]},J.next=function(){return hi[hi.indexOf(J)+1]},J.revert=function(Ve,pt){if(!pt)return J.kill(!0);var Tt=Ve!==!1||!J.enabled,xt=Lc;Tt!==J.isReverted&&(Tt&&(kt=Math.max(Se(),J.scroll.rec||0),Ae=J.progress,_t=i&&i.progress()),Xe&&[Xe,Ye,Me,lt].forEach(function(v){return v.style.display=Tt?"none":"block"}),Tt&&(Lc=J,J.update(Tt)),p&&(!k||!J.isActive)&&(Tt?ARe(p,ht,Ct):SF(p,ht,rd(p),St)),Tt||J.update(Tt),Lc=xt,J.isReverted=Tt)},J.refresh=function(Ve,pt,Tt,xt){if(!((Lc||!J.enabled)&&!pt)){if(p&&Ve&&gd){Bl(t,"scrollEnd",jde);return}!bu&&oe&&oe(J),Lc=J,Re.tween&&!Tt&&(Re.tween.kill(),Re.tween=0),We&&We.pause(),g&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Sn){return Sn.vars.immediateRender&&Sn.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),J.isReverted||J.revert(!0,!0),J._subPinOffset=!1;var v=te(),W=he(),Te=L?L.duration():$1(z,G),_e=Nt<=.01||!Nt,be=0,xe=xt||0,we=nv(Tt)?Tt.end:r.end,tt=r.endTrigger||h,ot=nv(Tt)?Tt.start:r.start||(r.start===0||!h?0:p?"0 0":"0 100%"),ze=J.pinnedContainer=r.pinnedContainer&&u0(r.pinnedContainer,J),Ke=h&&Math.max(0,hi.indexOf(J))||0,rt=Ke,Rt,Xt,rn,en,Qt,sn,ur,ye,He,ue,Ze,yt,_n;for(se&&nv(Tt)&&(yt=nr.getProperty(Me,G.p),_n=nr.getProperty(lt,G.p));rt-- >0;)sn=hi[rt],sn.end||sn.refresh(0,1)||(Lc=J),ur=sn.pin,ur&&(ur===h||ur===p||ur===ze)&&!sn.isReverted&&(ue||(ue=[]),ue.unshift(sn),sn.revert(!0,!0)),sn!==hi[rt]&&(Ke--,rt--);for(jc(ot)&&(ot=ot(J)),ot=Fee(ot,"start",J),Ie=$ee(ot,h,v,G,Se(),Xe,Me,J,W,ae,Z,Te,L,J._startClamp&&"_startClamp")||(p?-.001:0),jc(we)&&(we=we(J)),nf(we)&&!we.indexOf("+=")&&(~we.indexOf(" ")?we=(nf(ot)?ot.split(" ")[0]:"")+we:(be=y9(we.substr(2),v),we=nf(ot)?ot:(L?nr.utils.mapRange(0,L.duration(),L.scrollTrigger.start,L.scrollTrigger.end,Ie):Ie)+be,tt=h)),we=Fee(we,"end",J),De=Math.max(Ie,$ee(we||(tt?"100% 0":Te),tt,v,G,Se()+be,Ye,lt,J,W,ae,Z,Te,L,J._endClamp&&"_endClamp"))||-.001,be=0,rt=Ke;rt--;)sn=hi[rt]||{},ur=sn.pin,ur&&sn.start-sn._pinPush<=Ie&&!L&&sn.end>0&&(Rt=sn.end-(J._startClamp?Math.max(0,sn.start):sn.start),(ur===h&&sn.start-sn._pinPush<Ie||ur===ze)&&isNaN(ot)&&(be+=Rt*(1-sn.progress)),ur===p&&(xe+=Rt));if(Ie+=be,De+=be,J._startClamp&&(J._startClamp+=be),J._endClamp&&!bu&&(J._endClamp=De||-.001,De=Math.min(De,$1(z,G))),Nt=De-Ie||(Ie-=.01)&&.001,_e&&(Ae=nr.utils.clamp(0,1,nr.utils.normalize(Ie,De,kt))),J._pinPush=xe,Xe&&be&&(Rt={},Rt[G.a]="+="+be,ze&&(Rt[G.p]="-="+Se()),nr.set([Xe,Ye],Rt)),p&&!(yV&&J.end>
vendor: 4,404 bytes, line 19
19=$1(z,G)))Rt=rd(p),en=G===pl,rn=Se(),dt=parseFloat(ce(G.a))+xe,!Te&&De>1&&(Ze=(ee?Pa.scrollingElement||cf:z).style,Ze={style:Ze,value:Ze["overflow"+G.a.toUpperCase()]},ee&&rd(Ea)["overflow"+G.a.toUpperCase()]!=="scroll"&&(Ze.style["overflow"+G.a.toUpperCase()]="scroll")),SF(p,ht,Rt),nt=HM(p),Xt=jm(p,!0),ye=Z&&Vg(z,en?Ru:pl)(),A?(St=[A+G.os2,Nt+xe+cl],St.t=ht,rt=A===jo?FN(p,G)+Nt+xe:0,rt&&(St.push(G.d,rt+cl),ht.style.flexBasis!=="auto"&&(ht.style.flexBasis=rt+cl)),r3(St),ze&&hi.forEach(function(Sn){Sn.pin===ze&&Sn.vars.pinSpacing!==!1&&(Sn._subPinOffset=!0)}),Z&&Se(kt)):(rt=FN(p,G),rt&&ht.style.flexBasis!=="auto"&&(ht.style.flexBasis=rt+cl)),Z&&(Qt={top:Xt.top+(en?rn-Ie:ye)+cl,left:Xt.left+(en?ye:rn-Ie)+cl,boxSizing:"border-box",position:"fixed"},Qt[Hv]=Qt["max"+F3]=Math.ceil(Xt.width)+cl,Qt[Gv]=Qt["max"+Ez]=Math.ceil(Xt.height)+cl,Qt[nd]=Qt[nd+aS]=Qt[nd+rS]=Qt[nd+sS]=Qt[nd+iS]="0",Qt[jo]=Rt[jo],Qt[jo+aS]=Rt[jo+aS],Qt[jo+rS]=Rt[jo+rS],Qt[jo+sS]=Rt[jo+sS],Qt[jo+iS]=Rt[jo+iS],It=xRe(Ct,Qt,k),bu&&Se(0)),i?(He=i._initted,yF(1),i.render(i.duration(),!0,!0),ft=ce(G.a)-dt+Nt+xe,gt=Math.abs(Nt-ft)>1,Z&>&&It.splice(It.length-2,2),i.render(0,!0,!0),He||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),yF(0)):ft=Nt,Ze&&(Ze.value?Ze.style["overflow"+G.a.toUpperCase()]=Ze.value:Ze.style.removeProperty("overflow-"+G.a));else if(h&&Se()&&!L)for(Xt=h.parentNode;Xt&&Xt!==Ea;)Xt._pinOffset&&(Ie-=Xt._pinOffset,De-=Xt._pinOffset),Xt=Xt.parentNode;ue&&ue.forEach(function(Sn){return Sn.revert(!1,!0)}),J.start=Ie,J.end=De,Qe=ge=bu?kt:Se(),!L&&!bu&&(Qe<kt&&Se(kt),J.scroll.rec=0),J.revert(!1,!0),de=Bc(),Ge&&(me=-1,Ge.restart(!0)),Lc=0,i&&j&&(i._initted||_t)&&i.progress()!==_t&&i.progress(_t||0,!0).render(i.time(),!0,!0),(_e||Ae!==J.progress||L||g||i&&!i._initted)&&(i&&!j&&(i._initted||Ae||i.vars.immediateRender!==!1)&&i.totalProgress(L&&Ie<-.001&&!Ae?nr.utils.normalize(Ie,De,0):Ae,!0),J.progress=_e||(Qe-Ie)/Nt===Ae?0:Ae),p&&A&&(ht._pinOffset=Math.round(J.progress*ft)),We&&We.invalidate(),isNaN(yt)||(yt-=nr.getProperty(Me,G.p),_n-=nr.getProperty(lt,G.p),GM(Me,G,yt),GM(Xe,G,yt-(xt||0)),GM(lt,G,_n),GM(Ye,G,_n-(xt||0))),_e&&!bu&&J.update(),u&&!bu&&!Le&&(Le=!0,u(J),Le=!1)}},J.getVelocity=function(){return(Se()-ge)/(Bc()-vw)*1e3||0},J.endAnimation=function(){Mb(J.callbackAnimation),i&&(We?We.progress(1):i.paused()?j||Mb(i,J.direction<0,1):Mb(i,i.reversed()))},J.labelToScroll=function(Ve){return i&&i.labels&&(Ie||J.refresh()||Ie)+i.labels[Ve]/i.duration()*Nt||0},J.getTrailing=function(Ve){var pt=hi.indexOf(J),Tt=J.direction>0?hi.slice(0,pt).reverse():hi.slice(pt+1);return(nf(Ve)?Tt.filter(function(xt){return xt.vars.preventOverlaps===Ve}):Tt).filter(function(xt){return J.direction>0?xt.end<=Ie:xt.start>=De})},J.update=function(Ve,pt,Tt){if(!(L&&!Tt&&!Ve)){var xt=bu===!0?kt:J.scroll(),v=Ve?0:(xt-Ie)/Nt,W=v<0?0:v>1?1:v||0,Te=J.progress,_e,be,xe,we,tt,ot,ze,Ke;if(pt&&(ge=Qe,Qe=L?Se():xt,D&&(qt=Wt,Wt=i&&!j?i.totalProgress():W)),w&&p&&!Lc&&!FM&&gd&&(!W&&Ie<xt+(xt-ge)/(Bc()-vw)*w?W=1e-4:W===1&&De>xt+(xt-ge)/(Bc()-vw)*w&&(W=.9999)),W!==Te&&J.enabled){if(_e=J.isActive=!!W&&W<1,be=!!Te&&Te<1,ot=_e!==be,tt=ot||!!W!=!!Te,J.direction=W>Te?1:-1,J.progress=W,tt&&!Lc&&(xe=W&&!Te?0:W===1?1:Te===1?2:3,j&&(we=!ot&&K[xe+1]!=="none"&&K[xe+1]||K[xe],Ke=i&&(we==="complete"||we==="reset"||we in i))),B&&(ot||Ke)&&(Ke||f||!i)&&(jc(B)?B(J):J.getTrailing(B).forEach(function(rn){return rn.endAnimation()})),j||(We&&!Lc&&!FM?(We._dp._time-We._start!==We._time&&We.render(We._dp._time-We._start),We.resetTo?We.resetTo("totalProgress",W,i._tTime/i._tDur):(We.vars.totalProgress=W,We.invalidate().restart())):i&&i.totalProgress(W,!!(Lc&&(de||Ve)))),p){if(Ve&&A&&(ht.style[A+G.os2]=at),!Z)je(_w(dt+ft*W));else if(tt){if(ze=!Ve&&W>Te&&De+1>xt&&xt+1>=$1(z,G),k)if(!Ve&&(_e||ze)){var rt=jm(p,!0),Rt=xt-Ie;qee(p,Ea,rt.top+(G===pl?Rt:0)+cl,rt.left+(G===pl?0:Rt)+cl)}else qee(p,ht);r3(_e||ze?It:nt),gt&&W<1&&_e||je(dt+(W===1&&!ze?ft:0))}}D&&!Re.tween&&!Lc&&!FM&&Ge.restart(!0),o&&(ot||M&&W&&(W<1||!_F))&&t5(o.targets).forEach(function(rn){return rn.classList[_e||M?"add":"remove"](o.className)}),s&&!j&&!Ve&&s(J),tt&&!Lc?(j&&(Ke&&(we==="complete"?i.pause().totalProgress(1):we==="reset"?i.restart(!0).pause():we==="restart"?i.restart(!0):i[we]()),s&&s(J)),(ot||!_F)&&(c&&ot&&k4(J,c),X[xe]&&k4(J,X[xe]),M&&(W===1?J.kill(!1,1):X[xe]=0),ot||(xe=W===1?1:3,X[xe]&&k4(J,X[xe]))),O&&!_e&&Math.abs(J.getVelocity())>
vendor: 14,309 bytes, line 19
19(bw(O)?O:2500)&&(Mb(J.callbackAnimation),We?We.progress(1):Mb(i,we==="reverse"?1:!W,1))):j&&s&&!Lc&&s(J)}if(Vt){var Xt=L?xt/L.duration()*(L._caScrollDist||0):xt;ut(Xt+(Me._isFlipped?1:0)),Vt(Xt)}Dt&&Dt(-xt/L.duration()*(L._caScrollDist||0))}},J.enable=function(Ve,pt){J.enabled||(J.enabled=!0,Bl(z,"resize",ww),ee||Bl(z,"scroll",O4),oe&&Bl(t,"refreshInit",oe),Ve!==!1&&(J.progress=Ae=0,Qe=ge=me=Se()),pt!==!1&&J.refresh())},J.getTween=function(Ve){return Ve&&Re?Re.tween:We},J.setPositions=function(Ve,pt,Tt,xt){if(L){var v=L.scrollTrigger,W=L.duration(),Te=v.end-v.start;Ve=v.start+Te*Ve/W,pt=v.start+Te*pt/W}J.refresh(!1,!1,{start:Iee(Ve,Tt&&!!J._startClamp),end:Iee(pt,Tt&&!!J._endClamp)},xt),J.update()},J.adjustPinSpacing=function(Ve){if(St&&Ve){var pt=St.indexOf(G.d)+1;St[pt]=parseFloat(St[pt])+Ve+cl,St[1]=parseFloat(St[1])+Ve+cl,r3(St)}},J.disable=function(Ve,pt){if(Ve!==!1&&J.revert(!0,!0),J.enabled&&(J.enabled=J.isActive=!1,pt||We&&We.pause(),kt=0,Ne&&(Ne.uncache=1),oe&&Il(t,"refreshInit",oe),Ge&&(Ge.pause(),Re.tween&&Re.tween.kill()&&(Re.tween=0)),!ee)){for(var Tt=hi.length;Tt--;)if(hi[Tt].scroller===z&&hi[Tt]!==J)return;Il(z,"resize",ww),ee||Il(z,"scroll",O4)}},J.kill=function(Ve,pt){J.disable(Ve,pt),We&&!pt&&We.kill(),l&&delete _V[l];var Tt=hi.indexOf(J);Tt>=0&&hi.splice(Tt,1),Tt===_u&&b9>0&&_u--,Tt=0,hi.forEach(function(xt){return xt.scroller===J.scroller&&(Tt=1)}),Tt||bu||(J.scroll.rec=0),i&&(i.scrollTrigger=null,Ve&&i.revert({kill:!1}),pt||i.kill()),Xe&&[Xe,Ye,Me,lt].forEach(function(xt){return xt.parentNode&&xt.parentNode.removeChild(xt)}),oS===J&&(oS=0),p&&(Ne&&(Ne.uncache=1),Tt=0,hi.forEach(function(xt){return xt.pin===p&&Tt++}),Tt||(Ne.spacer=0)),r.onKill&&r.onKill(J)},hi.push(J),J.enable(!1,!1),jt&&jt(J),i&&i.add&&!Nt){var hn=J.update;J.update=function(){J.update=hn,yi.cache++,Ie||De||J.refresh()},nr.delayedCall(.01,J.update),Nt=.01,Ie=De=0}else J.refresh();p&&mRe()},t.register=function(r){return T8||(nr=r||Ode(),Lde()&&window.document&&t.enable(),T8=yw),T8},t.defaults=function(r){if(r)for(var i in r)VM[i]=r[i];return VM},t.disable=function(r,i){yw=0,hi.forEach(function(s){return s[i?"kill":"disable"](r)}),Il(vi,"wheel",O4),Il(Pa,"scroll",O4),clearInterval(OM),Il(Pa,"touchcancel",N1),Il(Ea,"touchstart",N1),BM(Il,Pa,"pointerdown,touchstart,mousedown",Bee),BM(Il,Pa,"pointerup,touchend,mouseup",Uee),ON.kill(),IM(Il);for(var a=0;a<yi.length;a+=3)UM(Il,yi[a],yi[a+1]),UM(Il,yi[a],yi[a+2])},t.enable=function(){if(vi=window,Pa=document,cf=Pa.documentElement,Ea=Pa.body,nr){if(t5=nr.utils.toArray,tS=nr.utils.clamp,vV=nr.core.context||N1,yF=nr.core.suppressOverwrites||N1,bz=vi.history.scrollRestoration||"auto",bV=vi.pageYOffset||0,nr.core.globals("ScrollTrigger",t),Ea){yw=1,n3=document.createElement("div"),n3.style.height="100vh",n3.style.position="absolute",$de(),lRe(),Eo.register(nr),t.isTouch=Eo.isTouch,LA=Eo.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),xV=Eo.isTouch===1,Bl(vi,"wheel",O4),_z=[vi,Pa,cf,Ea],nr.matchMedia?(t.matchMedia=function(u){var f=nr.matchMedia(),h;for(h in u)f.add(h,u[h]);return f},nr.addEventListener("matchMediaInit",function(){Gde(),Cz()}),nr.addEventListener("matchMediaRevert",function(){return Hde()}),nr.addEventListener("matchMedia",function(){_v(0,1),cy("matchMedia")}),nr.matchMedia().add("(orientation: portrait)",function(){return wF(),wF})):console.warn("Requires GSAP 3.11.0 or later"),wF(),Bl(Pa,"scroll",O4);var r=Ea.hasAttribute("style"),i=Ea.style,a=i.borderTopStyle,s=nr.core.Animation.prototype,o,l;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=jm(Ea),pl.m=Math.round(o.top+pl.sc())||0,Ru.m=Math.round(o.left+Ru.sc())||0,a?i.borderTopStyle=a:i.removeProperty("border-top-style"),r||(Ea.setAttribute("style",""),Ea.removeAttribute("style")),OM=setInterval(Hee,250),nr.delayedCall(.5,function(){return FM=0}),Bl(Pa,"touchcancel",N1),Bl(Ea,"touchstart",N1),BM(Bl,Pa,"pointerdown,touchstart,mousedown",Bee),BM(Bl,Pa,"pointerup,touchend,mouseup",Uee),gV=nr.utils.checkPrefix("transform"),w9.push(gV),T8=Bc(),ON=nr.delayedCall(.2,_v).pause(),E8=[Pa,"visibilitychange",function(){var u=vi.innerWidth,f=vi.innerHeight;Pa.hidden?(Lee=u,Oee=f):(Lee!==u||Oee!==f)&&ww()},Pa,"DOMContentLoaded",_v,vi,"load",_v,vi,"resize",ww],IM(Bl),hi.forEach(function(u){return u.enable(0,1)}),l=0;l<yi.length;l+=3)UM(Il,yi[l],yi[l+1]),UM(Il,yi[l],yi[l+2])}else if(Pa){var c=function u(){t.enable(),Pa.removeEventListener("DOMContentLoaded",u)};Pa.addEventListener("DOMContentLoaded",c)}}},t.config=function(r){"limitCallbacks"in r&&(_F=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(OM)||(OM=i)&&setInterval(Hee,i),"ignoreMobileResize"in r&&(xV=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(IM(Il)||IM(Bl,r.autoRefreshEvents||"none"),Dde=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var a=u0(r),s=yi.indexOf(a),o=oy(a);~s&&yi.splice(s,o?6:2),i&&(o?np.unshift(vi,i,Ea,i,cf,i):np.unshift(a,i))},t.clearMatchMedia=function(r){hi.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,a){var s=(nf(r)?u0(r):r).getBoundingClientRect(),o=s[a?Hv:Gv]*i||0;return a?s.right-o>0&&s.left+o<vi.innerWidth:s.bottom-o>0&&s.top+o<vi.innerHeight},t.positionInViewport=function(r,i,a){nf(r)&&(r=u0(r));var s=r.getBoundingClientRect(),o=s[a?Hv:Gv],l=i==null?o/2:i in IN?IN[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return a?(s.left+l)/vi.innerWidth:(s.top+l)/vi.innerHeight},t.killAll=function(r){if(hi.slice(0).forEach(function(a){return a.vars.id!=="ScrollSmoother"&&a.kill()}),r!==!0){var i=ly.killAll||[];ly={},i.forEach(function(a){return a()})}},t})();Ai.version="3.15.0";Ai.saveStyles=function(t){return t?t5(t).forEach(function(e){if(e&&e.style){var n=tf.indexOf(e);n>=0&&tf.splice(n,5),tf.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),nr.core.getCache(e),vV())}}):tf};Ai.revert=function(t,e){return Cz(!t,e)};Ai.create=function(t,e){return new Ai(t,e)};Ai.refresh=function(t){return t?ww(!0):(T8||Ai.register())&&_v(!0)};Ai.update=function(t){return++yi.cache&&t2(t===!0?2:0)};Ai.clearScrollMemory=zde;Ai.maxScroll=function(t,e){return $1(t,e?Ru:pl)};Ai.getScrollFunc=function(t,e){return Vg(u0(t),e?Ru:pl)};Ai.getById=function(t){return _V[t]};Ai.getAll=function(){return hi.filter(function(t){return t.vars.id!=="ScrollSmoother"})};Ai.isScrolling=function(){return!!gd};Ai.snapDirectional=Mz;Ai.addEventListener=function(t,e){var n=ly[t]||(ly[t]=[]);~n.indexOf(e)||n.push(e)};Ai.removeEventListener=function(t,e){var n=ly[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};Ai.batch=function(t,e){var n=[],r={},i=e.interval||.016,a=e.batchMax||1e9,s=function(c,u){var f=[],h=[],p=nr.delayedCall(i,function(){u(f,h),f=[],h=[]}).pause();return function(A){f.length||p.restart(!0),f.push(A.trigger),h.push(A),a<=f.length&&p.progress(1)}},o;for(o in e)r[o]=o.substr(0,2)==="on"&&jc(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return jc(a)&&(a=a(),Bl(Ai,"refresh",function(){return a=e.batchMax()})),t5(t).forEach(function(l){var c={};for(o in r)c[o]=r[o];c.trigger=l,n.push(Ai.create(c))}),n};var Zee=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},TF=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(Eo.isTouch?" pinch-zoom":""):"none",e===cf&&t(Ea,n)},zM={auto:1,scroll:1},yRe=function(e){var n=e.event,r=e.target,i=e.axis,a=(n.changedTouches?n.changedTouches[0]:n).target,s=a._gsap||nr.core.getCache(a),o=Bc(),l;if(!s._isScrollT||o-s._isScrollT>2e3){for(;a&&a!==Ea&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(zM[(l=rd(a)).overflowY]||zM[l.overflowX]));)a=a.parentNode;s._isScroll=a&&a!==r&&!oy(a)&&(zM[(l=rd(a)).overflowY]||zM[l.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},Wde=function(e,n,r,i){return Eo.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&yRe,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&Bl(Pa,Eo.eventTypes[0],Xee,!1,!0)},onDisable:function(){return Il(Pa,Eo.eventTypes[0],Xee,!0)}})},_Re=/(input|label|select|textarea)/i,Yee,Xee=function(e){var n=_Re.test(e.target.tagName);(n||Yee)&&(e._gsapAllow=!0,Yee=n)},bRe=function(e){nv(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,a=n.allowNestedScroll,s=n.onRelease,o,l,c=u0(e.target)||cf,u=nr.core.globals().ScrollSmoother,f=u&&u.get(),h=LA&&(e.content&&u0(e.content)||f&&e.content!==!1&&!f.smooth()&&f.content()),p=Vg(c,pl),A=Vg(c,Ru),g=1,w=(Eo.isTouch&&vi.visualViewport?vi.visualViewport.scale*vi.visualViewport.width:vi.outerWidth)/vi.innerWidth,T=0,C=jc(i)?function(){return i(o)}:function(){return i||2.8},M,D,k=Wde(c,e.type,!0,a),I=function(){return D=!1},L=N1,O=N1,B=function(){l=$1(c,pl),O=tS(LA?1:0,l),r&&(L=tS(0,$1(c,Ru))),M=zv},G=function(){h._gsap.y=_w(parseFloat(h._gsap.y)+p.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},j=function(){if(D){requestAnimationFrame(I);var se=_w(o.deltaY/2),ae=O(p.v-se);if(h&&ae!==p.v+p.offset){p.offset=ae-p.v;var J=_w((parseFloat(h&&h._gsap.y)||0)-p.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+J+", 0, 1)",h._gsap.y=J+"px",p.cacheID=yi.cache,t2()}return!0}p.offset&&G(),D=!0},z,Q,ee,Z,X=function(){B(),z.isActive()&&z.vars.scrollY>l&&(p()>l?z.progress(1)&&p(l):z.resetTo("scrollY",l))};return h&&nr.set(h,{y:"+=0"}),e.ignoreCheck=function(K){return LA&&K.type==="touchmove"&&j()||g>1.05&&K.type!=="touchstart"||o.isGesturing||K.touches&&K.touches.length>1},e.onPress=function(){D=!1;var K=g;g=_w((vi.visualViewport&&vi.visualViewport.scale||1)/w),z.pause(),K!==g&&TF(c,g>1.01?!0:r?!1:"x"),Q=A(),ee=p(),B(),M=zv},e.onRelease=e.onGestureStart=function(K,se){if(p.offset&&G(),!se)Z.restart(!0);else{yi.cache++;var ae=C(),J,oe;r&&(J=A(),oe=J+ae*.05*-K.velocityX/.227,ae*=Zee(A,J,oe,$1(c,Ru)),z.vars.scrollX=L(oe)),J=p(),oe=J+ae*.05*-K.velocityY/.227,ae*=Zee(p,J,oe,$1(c,pl)),z.vars.scrollY=O(oe),z.invalidate().duration(ae).play(.01),(LA&&z.vars.scrollY>=l||J>=l-1)&&nr.to({},{onUpdate:X,duration:ae})}s&&s(K)},e.onWheel=function(){z._ts&&z.pause(),Bc()-T>1e3&&(M=0,T=Bc())},e.onChange=function(K,se,ae,J,oe){if(zv!==M&&B(),se&&r&&A(L(J[2]===se?Q+(K.startX-K.x):A()+se-J[1])),ae){p.offset&&G();var te=oe[2]===ae,he=te?ee+K.startY-K.y:p()+ae-oe[1],me=O(he);te&&he!==me&&(ee+=me-he),p(me)}(ae||se)&&t2()},e.onEnable=function(){TF(c,r?!1:"x"),Ai.addEventListener("refresh",X),Bl(vi,"resize",X),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=A.smooth=!1),k.enable()},e.onDisable=function(){TF(c,!0),Il(vi,"resize",X),Ai.removeEventListener("refresh",X),k.kill()},e.lockAxis=e.lockAxis!==!1,o=new Eo(e),o.iOS=LA,LA&&!p()&&p(1),LA&&nr.ticker.add(N1),Z=o._dc,z=nr.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:qde(p,p(),function(){return z.pause()})},onUpdate:t2,onComplete:Z.vars.onComplete}),o};Ai.sort=function(t){if(jc(t))return hi.sort(t);var e=vi.pageYOffset||0;return Ai.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+vi.innerHeight}),hi.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};Ai.observe=function(t){return new Eo(t)};Ai.normalizeScroll=function(t){if(typeof t>"u")return xu;if(t===!0&&xu)return xu.enable();if(t===!1){xu&&xu.kill(),xu=t;return}var e=t instanceof Eo?t:bRe(t);return xu&&xu.target===e.target&&xu.kill(),oy(e.target)&&(xu=e),e};Ai.core={_getVelocityProp:AV,_inputObserver:Wde,_scrollers:yi,_proxies:np,bridge:{ss:function(){gd||cy("scrollStart"),gd=Bc()},ref:function(){return Lc}}};Ode()&&nr.registerPlugin(Ai);zr.registerPlugin(Ai);const SV=Array.from({length:11},(t,e)=>`/images/landingpage/hero-${e+1}.png`),Zde={"Disclaimer Notice":"#","Privacy Policy":Zn.PRIVACY_POLICY_IVS,"Terms & Conditions":Zn.TERMS_CONDITIONS_IVS,"Visa Types":Zn.VISA_TYPES_STATIC},wRe=[{Icon:afe,title:"CALLS",subtitle:"Any Update?"},{Icon:YG,title:"WHATSAPP",subtitle:"Scattered messages"},{Icon:hfe,title:"SPREADSHEET",subtitle:"Multiple sheets to see"},{Icon:qS,title:"EMAIL",subtitle:"Lost attachments"},{Icon:ffe,title:"THIRD PARTIES",subtitle:"Black-box status"},{Icon:wfe,title:"MANUAL CHECKS",subtitle:"Repetitive errors"}],SRe=[{Icon:bfe,title:"CENTRALIZED WORKFLOW",desc:"Structured platform for documents, status tracking, & decisions."},{Icon:YG,title:"BETTER COMMUNICATION",desc:"Keep travellers informed automatically no more 'any update?' messages."},{Icon:lfe,title:"LESS COORDINATION",desc:"Stop juggling third parties and spreadsheets. One source of truth."}],TRe=["Tourist","Business","Transit","Student"],ERe=[{flag:"ð¯ðµ",name:"Japan",img:"https://flagsapi.com/JP/shiny/64.png"},{flag:"ðºð¸",name:"USA",img:"https://flagsapi.com/US/shiny/64.png"},{flag:"ð¬ð§",name:"UK",img:"https://flagsapi.com/GB/shiny/64.png"},{flag:"ð«ð·",name:"France",img:"https://flagsapi.com/FR/shiny/64.png"},{flag:"ð©ðª",name:"Germany",img:"https://flagsapi.com/DE/shiny/64.png"},{flag:"ð¦ðª",name:"UAE",img:"https://flagsapi.com/AE/shiny/64.png"},{flag:"ð¸ð¬",name:"Singapore",img:"https://flagsapi.com/SG/shiny/64.png"},{flag:"ð¨ð¦",name:"Canada",img:"https://flagsapi.com/CA/shiny/64.png"},{flag:"ð¦ðº",name:"Australia",img:"https://flagsapi.com/AU/shiny/64.png"},{flag:"ðªð¸",name:"Spain",img:"https://flagsapi.com/ES/shiny/64.png"},{flag:"ð®ð¹",name:"Italy",img:"https://flagsapi.com/IT/shiny/64.png"},{flag:"ð¨ð",name:"Switzerland",img:"https://flagsapi.com/CH/shiny/64.png"},{flag:"ð³ð±",name:"Netherlands",img:"https://flagsapi.com/NL/shiny/64.png"},{flag:"ð¹ð",name:"Thailand",img:"https://flagsapi.com/TH/shiny/64.png"},{flag:"ð°ð·",name:"Korea",img:"https://flagsapi.com/KR/shiny/64.png"}],MRe=[{image:"/images/landingpage/step1.png",heading:"REGISTER AGENCY",desc:"Create your partner account and gain instant access to our global infrastru
19cture."},{image:"/images/landingpage/step2.png",heading:"SELECT VISA",desc:"Choose from 100+ destinations. Upload traveler docs via our smart-form."},{image:"/images/landingpage/step3.png",heading:"WE DO THE WORK",desc:"Our experts handle the filing, embassy coordination, and real-time tracking."},{image:"/images/landingpage/step4.png",heading:"RECEIVE VISA",desc:"Get final visa confirmation on your dashboard. Ready to deliver."}];typeof window<"u"&&SV.forEach(t=>{const e=new Image;e.src=t});function pA(t){const e=Dn.c(4),{text:n}=t;let r;if(e[0]!==n){const a=n.split(" ");r=a.map((s,o)=>x.jsxs("span",{style:{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},children:[x.jsxs("span",{className:"gsap-word",style:{display:"inline-block",willChange:"transform, opacity"},children:[s,"Â "]}),o<a.length-1&&" "]},o)),e[0]=n,e[1]=r}else r=e[1];let i;return e[2]!==r?(i=x.jsx(x.Fragment,{children:r}),e[2]=r,e[3]=i):i=e[3],i}function CRe(){const t=Dn.c(106),e=Ss(),n=b.useRef(null),r=b.useRef(null),i=b.useRef(null),a=b.useRef(null),s=b.useRef(null),o=b.useRef(null),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),f=b.useRef(null),h=b.useRef(null),p=b.useRef(null),A=b.useRef(null),g=b.useRef(null),[w,T]=b.useState(!1);let C,M;t[0]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const He=()=>T(window.scrollY>300);return window.addEventListener("scroll",He,{passive:!0}),()=>window.removeEventListener("scroll",He)},M=[],t[0]=C,t[1]=M):(C=t[0],M=t[1]),b.useEffect(C,M);let D;t[2]!==e?(D=()=>{e(Zn.AGENT_REGISTRATION)},t[2]=e,t[3]=D):D=t[3];const k=D;let I,L;t[4]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{const He=[],ue=zr.matchMedia(),Ze=zr.context(()=>{ue.add("(min-width: 768px)",()=>{zr.timeline({scrollTrigger:{trigger:r.current,start:"top top",end:"+=100%",pin:!0,scrub:1.5,anticipatePin:1,fastScrollEnd:!0}}).to(r.current,{scale:.84,borderRadius:28,opacity:.6,force3D:!0,ease:"none"}),zr.from(zr.utils.toArray(".gsap-word",c.current),{y:90,opacity:0,duration:.75,ease:"power4.out",stagger:.07,force3D:!0,scrollTrigger:{trigger:c.current,start:"top 85%",toggleActions:"play reverse play reverse"}}),zr.from(zr.utils.toArray(".gsap-word",u.current),{y:90,opacity:0,duration:.75,ease:"power4.out",stagger:.09,force3D:!0,scrollTrigger:{trigger:u.current,start:"top 88%",toggleActions:"play reverse play reverse"}}),zr.from(f.current,{y:40,opacity:0,duration:.9,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:f.current,start:"top 90%",toggleActions:"play reverse play reverse"}}),zr.from(h.current,{y:30,opacity:0,scale:.8,duration:.7,ease:"back.out(2.5)",force3D:!0,scrollTrigger:{trigger:h.current,start:"top 93%",toggleActions:"play reverse play reverse"}}),zr.from(g.current,{scale:9,rotate:-15,opacity:0,duration:1,ease:"power4.in",force3D:!0,delay:2,scrollTrigger:{trigger:g.current,start:"top 90%",toggleActions:"play reverse play reverse"}}),zr.from(p.current,{y:130,opacity:0,duration:1.1,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:p.current,start:"top 95%",toggleActions:"play reverse play reverse"}}),zr.from(A.current,{xPercent:-100,duration:.9,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:r.current,start:"top 20%",toggleActions:"play reverse play reverse"}}),zr.from(".s2-card",{opacity:0,xPercent:-100,stagger:.09,duration:.7,delay:.2,ease:"power3.out",scrollTrigger:{trigger:".s2-card",start:"top 85%",toggleActions:"play none none reverse"}});const yt=i.current.querySelector(".s2-bg");zr.fromTo(yt,{yPercent:-10},{yPercent:10,ease:"none",force3D:!0,scrollTrigger:{trigger:i.current,start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}}),zr.from(zr.utils.toArray(".gsap-word",i.current.querySelector(".s2-heading")),{y:70,opacity:0,stagger:.05,ease:"power4.out",duration:.75,force3D:!0,scrollTrigger:{trigger:i.current.querySelector(".s2-heading"),start:"top 90%",end:"top 40%",scrub:1.2,toggleActions:"play reverse play reverse"}}),zr.from(i.current.querySelector(".s2-subtitle"),{y:30,opacity:0,ease:"none",force3D:!0,scrollTrigger:{trigger:i.current.querySelector(".s2-subtitle"),start:"top 92%",end:"top 62%",scrub:1,invalidateOnRefresh:!0}}),zr.from(zr.utils.toArray(".gsap-word",a.current.querySelector(".s3-heading")),{y:70,opacity:0,duration:.75,stagger:.07,ease:"power4.out",force3D:!0,scrollTrigger:{trigger:a.current.querySelector(".s3-heading"),start:"top 85%",toggleActions:"play reverse play reverse"}}),zr.from(a.current.querySelector(".s3-subtitle"),{y:30,opacity:0,duration:.9,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:a.current.querySelector(".s3-subtitle"),start:"top 88%",toggleActions:"play reverse play reverse"}}),zr.from(zr.utils.toArray(".s3-card",a.current),{y:60,opacity:0,duration:.8,ease:"power3.out",stagger:.15,force3D:!0,scrollTrigger:{trigger:a.current.querySelector(".s3-cards-grid"),start:"top 85%",toggleActions:"play reverse play reverse"}}),zr.utils.toArray(".s3-card",n.current).forEach(wn=>{const pe=()=>zr.to(wn,{y:-8,scale:1.03,duration:.35,ease:"power2.out",force3D:!0}),Hn=()=>zr.to(wn,{y:0,scale:1,duration:.35,ease:"power2.inOut",force3D:!0});wn.addEventListener("mouseenter",pe),wn.addEventListener("mouseleave",Hn),He.push(()=>{wn.removeEventListener("mouseenter",pe),wn.removeEventListener("mouseleave",Hn)})}),zr.from(zr.utils.toArray(".gsap-word",s.current.querySelector(".s4-heading")),{y:70,opacity:0,duration:.75,stagger:.07,ease:"power4.out",force3D:!0,scrollTrigger:{trigger:s.current.querySelector(".s4-heading"),start:"top 85%",toggleActions:"play reverse play reverse"}}),zr.from(s.current.querySelector(".s4-subtitle"),{y:30,opacity:0,duration:.9,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:s.current.querySelector(".s4-subtitle"),start:"top 88%",toggleActions:"play reverse play reverse"}}),zr.from(zr.utils.toArray(".s4-pill",s.current),{x:-20,opacity:0,duration:.5,ease:"power2.out",stagger:.08,force3D:!0,scrollTrigger:{trigger:s.current.querySelector(".s4-pills"),start:"top 88%",toggleActions:"play reverse play reverse"}}),zr.from(".s4-country-card",{x:-500,opacity:0,duration:.6,ease:"power3.out",stagger:.09,force3D:!0,scrollTrigger:{trigger:".s4-pills",start:"top center",end:"bottom top",toggleActions:"play reverse play reverse"}}),zr.utils.toArray(".s4-country-card",n.current).forEach(wn=>{const pe=()=>zr.to(wn,{y:-6,scale:1.05,duration:.3,ease:"power2.out",force3D:!0}),Hn=()=>zr.to(wn,{y:0,scale:1,duration:.3,ease:"power2.inOut",force3D:!0});wn.addEventListener("mouseenter",pe),wn.addEventListener("mouseleave",Hn),He.push(()=>{wn.removeEventListener("mouseenter",pe),wn.removeEventListener("mouseleave",Hn)})});const _n=o.current,Sn=zr.utils.toArray(".s5-card",_n);Sn.forEach((wn,pe)=>{Ai.create({trigger:wn,start:"top 15%",end:"bottom 15%",pin:!0,pinSpacing:!1,endTrigger:Sn[Sn.length-1],onEnter:()=>{zr.to(wn,{scale:1-.04*(Sn.length-1+pe),duration:.4,ease:"power2.out",rotate:-(2+pe),y:pe+1,force3D:!0})},onLeave:()=>{zr.to(wn,{scale:1-.04*(Sn.length-1+pe),duration:.4,ease:"power2.out",force3D:!0,y:pe+1,rotate:-(2+pe)})},onLeaveBack:()=>{zr.to(wn,{scale:1,duration:.3,ease:"power2.out",force3D:!0,y:0,rotate:0,opacity:1})}}),zr.from(wn,{y:100,opacity:0,duration:.8,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:wn,start:"top 85%",toggleActions:"play none none reverse"}})});const pn=l.current;zr.from(pn.querySelector(".s6-card"),{x:-200,y:100,opacity:0,duration:1,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:pn.querySelector(".s6-card"),start:"top 85%",toggleActions:"play reverse play reverse"}}),zr.from(pn.querySelector(".s6-img"),{y:-100,opacity:0,duration:1.1,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:pn.querySelector(".s6-card"),start:"top 80%",toggleActions:"play reverse play reverse"}})})},n);return()=>{Ze.revert(),ue.revert(),He.forEach(URe)}},L=[],t[4]=I,t[5]=L):(I=t[4],L=t[5]),b.useLayoutEffect(I,L);let O;t[6]===Symbol.for("react.memo_cache_sentinel")?(O={colorScheme:"light","--page-bg":"#f3f4f6","--surface-bg":"#ffffff","--surface-border":"#e5e7eb","--body-text":"#1f2937","--muted-text":"#4C545F","--secondary-color-30":"#bdd9f5","--secondary-color-40":"#e9f2fc"},t[6]=O):O=t[6];let B;t[7]===Symbol.for("react.memo_cache_sentinel")?(B={backgroundImage:"url('/images/landingpage/hero.png')",backgroundSize:"cover",backgroundPosition:"center",transformOrigin:"top center",willChange:"transform, opacity"},t[7]=B):B=t[7];let G;t[8]===Symbol.for("react.memo_cache_sentinel")?(G=x.jsx("h1",{ref:c,className:"text-3xl sm:text-5xl md:text-6xl font-black uppercase leading-tight text-(--body-text) tracking-tight",children:x.jsx(pA,{text:"VISA PROCESSING, FINALLY"})}),t[8]=G):G=t[8];let j;t[9]===Symbol.for("react.memo_cache_sentinel")?(j=x.jsx(pA,{text:"BUILT FOR"}),t[9]=j):j=t[9];let z,Q;t[10]===Symbol.for("react.memo_cache_sentinel")?(Q=x.jsxs("h1",{ref:u,className:"text-3xl sm:text-5xl md:text-6xl font-black leading-tight text-(--body-text) tracking-tight mt-1",children:[j," ",x.jsx("span",{className:"gs
19ap-word italic font-semibold",style:{display:"inline-block",color:"var(--primary-color)",willChange:"transform, opacity",textShadow:"2px 2px 2px rgba(0,0,0,0.35)"},children:"Travel Agencies."})]}),z=x.jsx("p",{ref:f,className:"text-(--muted-text) mt-6 max-w-2xl mx-auto text-base leading-relaxed",children:"IVS helps travel agencies manage visa applications online, reduce manual work, and keep clients informed from submission to decision."}),t[10]=z,t[11]=Q):(z=t[10],Q=t[11]);let ee;t[12]===Symbol.for("react.memo_cache_sentinel")?(ee=x.jsx(ms,{size:18}),t[12]=ee):ee=t[12];let Z;t[13]!==k?(Z=x.jsxs("div",{className:"relative z-10 text-center pt-16 px-8",children:[G,Q,z,x.jsx("div",{ref:h,className:"mt-8 flex justify-center",children:x.jsx(fi,{btnText:"Register Now",iconPosition:"right",variant:"secondary",className:"w-80",onClick:k,children:ee})})]}),t[13]=k,t[14]=Z):Z=t[14];let X;t[15]===Symbol.for("react.memo_cache_sentinel")?(X=x.jsx("div",{className:"absolute z-20 left-50 top-130",ref:g,children:x.jsx("img",{src:"/images/landingpage/stamp.png",alt:"hero",className:"w-60 object-cover"})}),t[15]=X):X=t[15];let K;t[16]===Symbol.for("react.memo_cache_sentinel")?(K=x.jsx("div",{ref:p,className:"relative z-10 mt-10 overflow-hidden rotate-[-10deg]",children:x.jsx("div",{className:"cards-marquee flex items-end gap-8 w-max",style:{height:"320px",willChange:"transform"},children:[...SV,...SV].map(BRe)})}),t[16]=K):K=t[16];let se;t[17]===Symbol.for("react.memo_cache_sentinel")?(se={willChange:"transform"},t[17]=se):se=t[17];let ae;t[18]===Symbol.for("react.memo_cache_sentinel")?(ae=x.jsx("div",{ref:A,className:"absolute bottom-0 w-full z-10 overflow-hidden bg-(--primary-color) py-2 alexandria-semi-bold",style:se,children:x.jsx("div",{className:"strip-marquee flex items-center gap-8 w-max",children:[...Array(4)].flatMap(IRe)})}),t[18]=ae):ae=t[18];let J;t[19]!==Z?(J=x.jsxs("section",{ref:r,className:"relative overflow-hidden min-h-screen",style:B,children:[Z,X,K,ae]}),t[19]=Z,t[20]=J):J=t[20];let oe;t[21]===Symbol.for("react.memo_cache_sentinel")?(oe={willChange:"transform"},t[21]=oe):oe=t[21];let te,he;t[22]===Symbol.for("react.memo_cache_sentinel")?(te=x.jsx("div",{className:"s2-bg absolute inset-0 -top-[10%] -bottom-[10%]",style:{backgroundImage:"url('/images/landingpage/whitebg.png')",backgroundSize:"cover",backgroundPosition:"center",willChange:"transform"}}),he=x.jsx("div",{className:"relative z-10 h-1 w-full bg-(--primary-color)"}),t[22]=te,t[23]=he):(te=t[22],he=t[23]);let me;t[24]===Symbol.for("react.memo_cache_sentinel")?(me={willChange:"transform, opacity"},t[24]=me):me=t[24];let de;t[25]===Symbol.for("react.memo_cache_sentinel")?(de=x.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight",children:x.jsx(pA,{text:"TOO MUCH BACK AND FORTH"})}),t[25]=de):de=t[25];let Ae;t[26]===Symbol.for("react.memo_cache_sentinel")?(Ae=x.jsx(pA,{text:"FOR ONE"}),t[26]=Ae):Ae=t[26];let Se;t[27]===Symbol.for("react.memo_cache_sentinel")?(Se=x.jsxs("div",{className:"s2-heading mb-4",style:me,children:[de,x.jsxs("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight mt-1",children:[Ae," ",x.jsx("span",{className:"gsap-word italic font-semibold normal-case",style:{display:"inline-block",color:"var(--primary-color)",textShadow:"1px 1px 2px rgba(0,0,0,0.35)"},children:"Visa."})]})]}),t[27]=Se):Se=t[27];let Re;t[28]===Symbol.for("react.memo_cache_sentinel")?(Re={willChange:"transform, opacity"},t[28]=Re):Re=t[28];let Ne;t[29]===Symbol.for("react.memo_cache_sentinel")?(Ne=x.jsxs("p",{className:"s2-subtitle text-(--muted-text) text-base leading-relaxed max-w-2xl mb-12",style:Re,children:["Agencies juggle between calls, chats, spreadsheets, and third parties for every application.",x.jsx("br",{}),"The result is lost time, unclear status, and clients who feel uncertain."]}),t[29]=Ne):Ne=t[29];let Fe;t[30]===Symbol.for("react.memo_cache_sentinel")?(Fe=x.jsxs("section",{ref:i,className:"relative overflow-hidden",style:oe,children:[te,he,x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12 py-20",children:[Se,Ne,x.jsx("div",{className:"s2-cards-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:wRe.map(FRe)})]})]}),t[30]=Fe):Fe=t[30];let Qe;t[31]===Symbol.for("react.memo_cache_sentinel")?(Qe={backgroundColor:"var(--secondary-color-40)",willChange:"transform"},t[31]=Qe):Qe=t[31];let ge;t[32]===Symbol.for("react.memo_cache_sentinel")?(ge=x.jsx("div",{className:"s2-bg absolute inset-0 -top-[10%] -bottom-[10%]",style:{backgroundImage:"url('/images/landingpage/hero.png')",backgroundSize:"cover",backgroundPosition:"center",willChange:"transform"}}),t[32]=ge):ge=t[32];let Ie;t[33]===Symbol.for("react.memo_cache_sentinel")?(Ie=x.jsx("div",{className:"relative z-10 h-1 w-full",style:{backgroundColor:"var(--secondary-color)"}}),t[33]=Ie):Ie=t[33];let De;t[34]===Symbol.for("react.memo_cache_sentinel")?(De={willChange:"transform, opacity"},t[34]=De):De=t[34];let Xe;t[35]===Symbol.for("react.memo_cache_sentinel")?(Xe=x.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight",children:x.jsx(pA,{text:"ONE PLATFORM."})}),t[35]=Xe):Xe=t[35];let Ye;t[36]===Symbol.for("react.memo_cache_sentinel")?(Ye=x.jsx(pA,{text:"EVERY"}),t[36]=Ye):Ye=t[36];let Me;t[37]===Symbol.for("react.memo_cache_sentinel")?(Me=x.jsxs("div",{className:"s3-heading mb-4",style:De,children:[Xe,x.jsxs("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight mt-1",children:[Ye," ",x.jsx("span",{className:"gs
19ap-word italic font-semibold normal-case",style:{display:"inline-block",color:"var(--secondary-color)"},children:"Visa Case."})]})]}),t[37]=Me):Me=t[37];let lt;t[38]===Symbol.for("react.memo_cache_sentinel")?(lt=x.jsx("p",{className:"s3-subtitle text-(--muted-text) text-base leading-relaxed max-w-2xl mb-16",style:{willChange:"transform, opacity"},children:"IVS brings application intake, document collection, status tracking, and agency-client coordination into one control layer."}),t[38]=lt):lt=t[38];let Ht;t[39]===Symbol.for("react.memo_cache_sentinel")?(Ht=x.jsxs("section",{ref:a,className:"relative overflow-hidden min-h-screen",style:Qe,children:[ge,Ie,x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12 py-20",children:[Me,lt,x.jsx("div",{className:"s3-cards-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:SRe.map(ORe)})]})]}),t[39]=Ht):Ht=t[39];let Le;t[40]===Symbol.for("react.memo_cache_sentinel")?(Le={willChange:"transform"},t[40]=Le):Le=t[40];let Nt;t[41]===Symbol.for("react.memo_cache_sentinel")?(Nt=x.jsx("div",{className:"s4-bg absolute inset-0 -top-[10%] -bottom-[10%]",style:{backgroundImage:"url('/images/landingpage/whitebg.png')",backgroundSize:"cover",backgroundPosition:"center",willChange:"transform"}}),t[41]=Nt):Nt=t[41];let Ct;t[42]===Symbol.for("react.memo_cache_sentinel")?(Ct={willChange:"transform, opacity"},t[42]=Ct):Ct=t[42];let It;t[43]===Symbol.for("react.memo_cache_sentinel")?(It=x.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight",children:x.jsx(pA,{text:"100+ COUNTRIES"})}),t[43]=It):It=t[43];let nt;t[44]===Symbol.for("react.memo_cache_sentinel")?(nt=x.jsx(pA,{text:"EVERY"}),t[44]=nt):nt=t[44];let ht;t[45]===Symbol.for("react.memo_cache_sentinel")?(ht=x.jsxs("div",{className:"s4-heading",style:Ct,children:[It,x.jsxs("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight mt-1",children:[nt," ",x.jsx("span",{className:"gsap-word italic font-semibold normal-case",style:{display:"inline-block",color:"var(--secondary-color)"},children:"Visa Type."})]})]}),t[45]=ht):ht=t[45];let ve;t[46]===Symbol.for("react.memo_cache_sentinel")?(ve=x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 mb-12 items-start",children:[ht,x.jsx("p",{className:"s4-subtitle text-(--muted-text) text-base leading-relaxed md:pt-3",style:{willChange:"transform, opacity"},children:"Manage applications across destinations and categories from a single dashboard built to scale with your agency."})]}),t[46]=ve):ve=t[46];let ce;t[47]===Symbol.for("react.memo_cache_sentinel")?(ce=x.jsx("div",{className:"s4-pills flex flex-wrap gap-3 mb-10",children:TRe.map(LRe)}),t[47]=ce):ce=t[47];let je;t[48]===Symbol.for("react.memo_cache_sentinel")?(je=ERe.map(kRe),t[48]=je):je=t[48];let dt;t[49]===Symbol.for("react.memo_cache_sentinel")?(dt=x.jsxs("section",{ref:s,className:"relative overflow-hidden",style:Le,children:[Nt,x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-12 py-20",children:[ve,ce,x.jsxs("div",{className:"s4-countries-grid grid grid-cols-4 md:grid-cols-8 gap-3 md:gap-4",children:[je,x.jsxs("div",{className:"s4-country-card rounded-2xl flex flex-col items-center justify-center py-2 px-2 cursor-pointer",style:{backgroundColor:"var(--body-text)",willChange:"transform, opacity"},children:[x.jsx("span",{className:"text-2xl font-semibold text-[var(--primary-color)] p-3",children:"100+"}),x.jsx("span",{className:"text-xs font-semibold text-white text-center leading-tight",children:"Countries"})]})]})]})]}),t[49]=dt):dt=t[49];let ft;t[50]===Symbol.for("react.memo_cache_sentinel")?(ft={backgroundImage:"url('/images/landingpage/hero.png')",backgroundSize:"cover",backgroundPosition:"center"},t[50]=ft):ft=t[50];let at;t[51]===Symbol.for("react.memo_cache_sentinel")?(at=x.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight",children:"GET YOUR"}),t[51]=at):at=t[51];let St;t[52]===Symbol.for("react.memo_cache_sentinel")?(St=x.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-12 pt-20 pb-14",children:[at,x.jsx("h2",{className:"text-4xl md:text-5xl font-semibold italic leading-tight mt-1",style:{color:"var(--primary-color)",textShadow:"1px 1px 2px rgba(0,0,0,0.35)"},children:"Visa In Just 4 Steps"}),x.jsx("h2",{className:"text-4xl md:text-5xl font-black uppercase leading-tight text-(--body-text) tracking-tight mt-1",children:"THAT'S IT."})]}),t[52]=St):St=t[52];let ut;t[53]===Symbol.for("react.memo_cache_sentinel")?(ut=x.jsxs("section",{ref:o,className:"relative s5-bg",style:ft,children:[St,x.jsx("div",{className:"max-w-5xl mx-auto px-6 md:px-12 pb-40 flex flex-col gap-6",children:MRe.map(PRe)})]}),t[53]=ut):ut=t[53];let gt;t[54]===Symbol.for("react.memo_cache_sentinel")?(gt={backgroundImage:"url('/images/landingpage/hero.png')",backgroundSize:"cover",backgroundPosition:"center",willChange:"transform"},t[54]=gt):gt=t[54];let Vt;t[55]===Symbol.for("react.memo_cache_sentinel")?(Vt=x.jsx("img",{src:"/images/cap.png",alt:"",className:"hidden md:block absolute z-20 w-32 lg:w-60 -left-25 -top-5 -translate-y-1/3 select-none pointer-events-none drop-shadow-xl"}),t[55]=Vt):Vt=t[55];let Zt;t[56]===Symbol.for("react.memo_cache_sentinel")?(Zt=x.jsx("div",{className:"md:hidden absolute inset-0 rounded-3xl",style:{background:"linear-gradient(90deg, #1d2fc4 0%, #1a76d8 55%, #15a9c9 100%)"}}),t[56]=Zt):Zt=t[56];let Wt;t[57]===Symbol.for("react.memo_cache_sentinel")?(Wt=x.jsx("div",{className:"hidden md:block absolute inset-0 rounded-[30px]",style:{background:"linear-gradient(90deg, #1d2fc4 0%, #1a76d8 55%, #15a9c9 100%)",clipPath:"pol
19ygon(0 0, 100% 0, 100% 200px, 314px 200px, 305.6px 198.3px, 298.4px 193.6px, 293.7px 186.4px, 292px 178px, 292px 134px, 290.3px 125.6px, 285.6px 118.4px, 278.4px 113.7px, 270px 112px, 0 112px)",WebkitClipPath:"polygon(0 0, 100% 0, 100% 200px, 314px 200px, 305.6px 198.3px, 298.4px 193.6px, 293.7px 186.4px, 292px 178px, 292px 134px, 290.3px 125.6px, 285.6px 118.4px, 278.4px 113.7px, 270px 112px, 0 112px)"}}),t[57]=Wt):Wt=t[57];let qt,We;t[58]===Symbol.for("react.memo_cache_sentinel")?(qt=x.jsx("h2",{className:"text-2xl md:text-4xl font-black uppercase leading-tight text-white",children:"Built for travel retailers"}),We=x.jsx("p",{className:"text-white/85 text-sm md:text-base leading-relaxed",children:"One platform. Every visa. Zero chaos."}),t[58]=qt,t[59]=We):(qt=t[58],We=t[59]);let yn;t[60]===Symbol.for("react.memo_cache_sentinel")?(yn={backgroundColor:"#1212e0"},t[60]=yn):yn=t[60];let vn;t[61]!==e?(vn=()=>e(Zn.CONTACT_US),t[61]=e,t[62]=vn):vn=t[62];let Ge;t[63]===Symbol.for("react.memo_cache_sentinel")?(Ge=x.jsx(ms,{size:18}),t[63]=Ge):Ge=t[63];let kt;t[64]!==vn?(kt=x.jsxs("div",{className:"relative z-10 flex flex-col justify-center md:h-full px-8 py-9 md:py-0 md:pl-20 lg:pl-28 md:pr-[34%] md:pb-20",children:[qt,We,x.jsxs("button",{className:"md:hidden mt-7 self-start inline-flex items-center gap-3 px-8 py-3.5 rounded-2xl text-sm font-semibold cursor-pointer text-white",style:yn,onClick:vn,children:["Contact Us ",Ge]})]}),t[64]=vn,t[65]=kt):kt=t[65];let _t;t[66]===Symbol.for("react.memo_cache_sentinel")?(_t={backgroundColor:"#1212e0"},t[66]=_t):_t=t[66];let Dt;t[67]!==e?(Dt=()=>e(Zn.CONTACT_US),t[67]=e,t[68]=Dt):Dt=t[68];let jt;t[69]===Symbol.for("react.memo_cache_sentinel")?(jt=x.jsx(ms,{size:20}),t[69]=jt):jt=t[69];let Lt;t[70]!==Dt?(Lt=x.jsxs("button",{className:"hidden md:inline-flex absolute z-20 left-4 bottom-3 items-center gap-3 px-18 py-5 rounded-2xl text-base font-semibold cursor-pointer text-white",style:_t,onClick:Dt,children:["Contact Us ",jt]}),t[70]=Dt,t[71]=Lt):Lt=t[71];let Bt;t[72]!==kt||t[73]!==Lt?(Bt=x.jsxs("div",{className:"relative md:h-[200px]",children:[Zt,Wt,kt,Lt]}),t[72]=kt,t[73]=Lt,t[74]=Bt):Bt=t[74];let Gt;t[75]===Symbol.for("react.memo_cache_sentinel")?(Gt=x.jsx("img",{src:"/images/boy.png",alt:"Happy traveler",className:"s6-img hidden md:block absolute z-10 bottom-0 right-4 lg:right-12 h-[200%] w-auto object-contain object-bottom select-none pointer-events-none"}),t[75]=Gt):Gt=t[75];let hn;t[76]!==Bt?(hn=x.jsx("section",{ref:l,className:"relative overflow-hidden py-20 md:py-28",style:gt,children:x.jsx("div",{className:"s6-card relative z-10 max-w-5xl mx-auto px-6 md:px-0 mt-12 md:mt-20",children:x.jsxs("div",{className:"relative",children:[Vt,Bt,Gt]})})}),t[76]=Bt,t[77]=hn):hn=t[77];let Ve,pt,Tt;t[78]===Symbol.for("react.memo_cache_sentinel")?(Ve={backgroundImage:"url('/images/landingpage/hero.png')",backgroundSize:"cover",backgroundPosition:"center",willChange:"transform"},pt=x.jsx("img",{src:"/images/landingpage/ribbon.svg",alt:"",className:"w-full"}),Tt={backgroundColor:"#0f0f0f"},t[78]=Ve,t[79]=pt,t[80]=Tt):(Ve=t[78],pt=t[79],Tt=t[80]);let xt,v;t[81]===Symbol.for("react.memo_cache_sentinel")?(xt=x.jsx("img",{src:"/images/app_logo.png",alt:"IVS",className:"h-9 object-contain object-left mb-5"}),v=x.jsx("p",{className:"text-gray-400 text-sm leading-relaxed max-w-[220px]",children:"IVS is the leading visa processing platform for travel agencies worldwide. We simplify complexity and deliver results."}),t[81]=xt,t[82]=v):(xt=t[81],v=t[82]);let W;t[83]===Symbol.for("react.memo_cache_sentinel")?(W=x.jsx("a",{href:"#",className:"w-9 h-9 rounded-full flex items-center justify-center text-white",style:{backgroundColor:"#1a1a1a"},children:x.jsx(rfe,{size:18})}),t[83]=W):W=t[83];let Te,_e;t[84]===Symbol.for("react.memo_cache_sentinel")?(Te=x.jsxs("div",{children:[xt,v,x.jsxs("div",{className:"flex gap-3 mt-6",children:[W,x.jsx("a",{href:"#",className:"w-9 h-9 rounded-full flex items-center justify-center text-white",style:{backgroundColor:"#1a1a1a"},children:x.jsx(dfe,{size:18})})]})]}),_e=x.jsx("p",{className:"text-white font-bold text-sm mb-5",children:"Qu
19ick Links"}),t[84]=Te,t[85]=_e):(Te=t[84],_e=t[85]);let be,xe;t[86]===Symbol.for("react.memo_cache_sentinel")?(be=x.jsxs("div",{children:[_e,x.jsxs("ul",{className:"space-y-3",children:[x.jsx("li",{children:x.jsx("a",{href:"#",className:"text-gray-400 text-sm hover:text-white transition-colors",children:"Visa Concierge"})}),x.jsx("li",{children:x.jsx("a",{href:"#",className:"text-gray-400 text-sm hover:text-white transition-colors",children:"Book a Demo"})})]})]}),xe=x.jsx("p",{className:"text-white font-bold text-sm mb-5",children:"About"}),t[86]=be,t[87]=xe):(be=t[86],xe=t[87]);let we,tt;t[88]===Symbol.for("react.memo_cache_sentinel")?(we=x.jsxs("div",{children:[xe,x.jsx("ul",{className:"space-y-3",children:["Company","News","Partners"].map(DRe)})]}),tt=x.jsx("p",{className:"text-white font-bold text-sm mb-5",children:"Media"}),t[88]=we,t[89]=tt):(we=t[88],tt=t[89]);let ot,ze;t[90]===Symbol.for("react.memo_cache_sentinel")?(ot=x.jsxs("div",{children:[tt,x.jsx("ul",{className:"space-y-3",children:x.jsx("li",{children:x.jsx("a",{href:Zn.PRESS_RELEASE,className:"text-gray-400 text-sm hover:text-white transition-colors",children:"Press Release"})})})]}),ze=x.jsx("p",{className:"text-white font-bold text-sm mb-5",children:"Contact"}),t[90]=ot,t[91]=ze):(ot=t[90],ze=t[91]);let Ke;t[92]===Symbol.for("react.memo_cache_sentinel")?(Ke=x.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-12 py-16 grid grid-cols-1 md:grid-cols-[2fr_1fr_1fr_1fr_1fr_1.5fr] gap-10 md:gap-8",children:[Te,be,we,ot,x.jsxs("div",{children:[ze,x.jsx("ul",{className:"space-y-3",children:x.jsx("li",{className:"text-gray-400 text-sm",children:"[email protected]"})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-white font-bold text-sm mb-5",children:"Address"}),x.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"302, Level 3, Pegasus One Building, Sector-53, Golf Course Road, Gurugram-122023"})]})]}),t[92]=Ke):Ke=t[92];let rt;t[93]===Symbol.for("react.memo_cache_sentinel")?(rt=x.jsx("p",{className:"text-gray-500 text-xs",children:"© 2026 â IVS All Rights Reserved"}),t[93]=rt):rt=t[93];let Rt;t[94]===Symbol.for("react.memo_cache_sentinel")?(Rt=x.jsxs("div",{style:Ve,children:[pt,x.jsxs("footer",{style:Tt,children:[Ke,x.jsx("div",{className:"border-t border-gray-800",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-12 py-5 flex flex-col md:flex-row items-center justify-between gap-4",children:[rt,x.jsx("div",{className:"flex flex-wrap justify-center gap-6",children:Object.keys(Zde).map(RRe)})]})})]})]}),t[94]=Rt):Rt=t[94];const Xt=w?1:0,rn=w?"auto":"none",en=w?"translateY(0)":"translateY(16px)";let Qt;t[95]!==Xt||t[96]!==rn||t[97]!==en?(Qt={backgroundColor:"var(--primary-color)",opacity:Xt,pointerEvents:rn,transform:en},t[95]=Xt,t[96]=rn,t[97]=en,t[98]=Qt):Qt=t[98];let sn;t[99]===Symbol.for("react.memo_cache_sentinel")?(sn=x.jsx(j0e,{size:20,color:"white",weight:"bold"}),t[99]=sn):sn=t[99];let ur;t[100]!==Qt?(ur=x.jsx("button",{onClick:NRe,className:"fixed bottom-8 right-8 z-50 w-12 h-12 rounded-full flex items-center justify-center shadow-lg transition-all duration-300 cursor-pointer",style:Qt,"aria-label":"Scroll to top",children:sn}),t[100]=Qt,t[101]=ur):ur=t[101];let ye;return t[102]!==J||t[103]!==hn||t[104]!==ur?(ye=x.jsxs("div",{ref:n,style:O,children:[J,Fe,Ht,dt,ut,hn,Rt,ur]}),t[102]=J,t[103]=hn,t[104]=ur,t[105]=ye):ye=t[105],ye}function NRe(){return window.scrollTo({top:0,behavior:"smooth"})}function RRe(t){return x.jsx("a",{href:Zde[t]||"#",className:"text-gray-500 text-xs hover:text-gray-300 transition-colors",children:t},t)}function DRe(t){return x.jsx("li",{children:x.jsx("a",{href:t==="Company"?Zn.ABOUT:"#",className:"text-gray-400 text-sm hover:text-white transition-colors",children:t})},t)}function PRe(t,e){return x.jsx("div",{className:"s5-card bg-(--surface-bg) rounded-3xl shadow-2xl overflow-hidden",style:{height:"50vh",minHeight:"400px",willChange:"transform",transformOrigin:"top center",zIndex:100+e,position:"sticky",top:0},children:x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 h-full items-center",children:[x.jsxs("div",{className:"flex flex-col justify-center px-10 md:px-14 py-5",children:[x.jsxs("p",{className:"text-2xl font-black tracking-widest uppercase mb-3",style:{color:"var(--primary-color)"},children:["STEP ",e+1]}),x.jsx("h3",{className:"text-3xl md:text-4xl font-black uppercase text-(--body-text) mb-4 leading-tight",children:t.heading}),x.jsx("p",{className:"text-(--muted-text) leading-relaxed",children:t.desc})]}),x.jsx("div",{className:"hidden md:block mx-auto",children:x.jsx("img",{src:t.image,alt:t.heading,className:"object-contain"})})]})},e)}function kRe(t){const{name:e,img:n}=t;return x.jsxs("div",{className:"s4-country-card bg-(--surface-bg) rounded-2xl flex flex-col items-center justify-center gap-2 py-5 px-2 shadow-sm cursor-pointer",style:{willChange:"transform, opacity"},children:[x.jsx("span",{className:"text-3xl leading-none",children:x.jsx("img",{src:n,alt:""})}),x.jsx("span",{className:"text-xs font-medium text-(--body-text) text-center",children:e})]},e)}function LRe(t){return x.jsx("span",{className:"s4-pill px-5 py-2 rounded-full text-sm font-semibold text-(--body-text) bg-(--surface-bg) border border-(--surface-border) cursor-default select-none",style:{willChange:"transform, opacity"},children:t},t)}function ORe(t){const{Icon:e,title:n,desc:r}=t;return x.jsxs("div",{className:"s3-card bg-(--surface-bg) rounded-2xl p-8 shadow-sm",style:{willChange:"transform, opacity"}
19,children:[x.jsx("div",{className:"w-14 h-14 rounded-xl flex items-center justify-center mb-6",style:{backgroundColor:"rgba(35, 35, 255, 0.08)"},children:x.jsx(e,{size:28,style:{color:"var(--secondary-color)"}})}),x.jsx("p",{className:"font-black text-xl tracking-wide uppercase mb-3",style:{color:"var(--secondary-color)"},children:n}),x.jsx("p",{className:"text-(--muted-text) text-base leading-relaxed",children:r})]},n)}function FRe(t){const{Icon:e,title:n,subtitle:r}=t;return x.jsxs("div",{className:"s2-card flex items-center gap-5 bg-(--surface-bg) rounded-2xl px-6 py-5 shadow-sm",style:{willChange:"transform, opacity"},children:[x.jsx("div",{className:"shrink-0 w-16 h-16 rounded-xl flex items-center justify-center",style:{backgroundColor:"rgba(44, 213, 196, 0.12)"},children:x.jsx(e,{size:32,style:{color:"var(--primary-color)"},weight:"regular"})}),x.jsxs("div",{children:[x.jsx("p",{className:"font-black text-base tracking-wide text-(--body-text)",children:n}),x.jsx("p",{className:"text-(--muted-text) text-sm mt-0.5",children:r})]})]},n)}function IRe(t,e){return["SPEED AND SIMPLICITY","EXPERT QUALITY CHECK","SECURE AND SAFE","AWESOME SUPPORT"].map(n=>x.jsxs("span",{className:"flex items-center gap-8 shrink-0",children:[n,x.jsx("span",{className:"text-white/50",children:"â¢"})]},`${e}-${n}`))}function BRe(t,e){return x.jsx("div",{className:"gsap-card-hover shrink-0 rounded-2xl overflow-hidden cursor-pointer",style:{willChange:"transform",boxShadow:"0px 0px 14.18px 0px #00000026"},children:x.jsx("img",{src:t,alt:"",className:" object-cover",loading:"lazy",decoding:"async",style:{willChange:"transform",boxShadow:"0px 0px 14.18px 0px #00000026"}})},e)}function URe(t){return t()}function dr(t){const e=Dn.c(41);let n,r,i,a,s,o,l,c,u,f,h;e[0]!==t?({type:f,placeholder:l,value:h,onChange:o,errorText:n,labelClassName:a,inputClassName:r,name:s,label:i,required:c,...u}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=h):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11]);const[p,A]=b.useState(!1),g=f==="password",w=g?p?"text":"password":f,T=`text-sm block mb-1 ${a}`;let C;e[12]!==c?(C=c&&x.jsx("span",{className:"text-(--red-color) mx-1",children:"*"}),e[12]=c,e[13]=C):C=e[13];let M;e[14]!==i||e[15]!==s||e[16]!==T||e[17]!==C?(M=x.jsxs("label",{htmlFor:s,className:T,children:[i,C]}),e[14]=i,e[15]=s,e[16]=T,e[17]=C,e[18]=M):M=e[18];const D=`border border-gray-300 dark:border-gray-600 w-full bg-white dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 rounded-[8px] p-2 h-12 focus:outline-none focus:border-[var(--secondary-color)] focus:border-2 transition-all ${n&&n!==""?"border-red-300":""} ${g?"pr-10":""} ${r}`;let k;e[19]!==w||e[20]!==s||e[21]!==o||e[22]!==l||e[23]!==u||e[24]!==D||e[25]!==h?(k=x.jsx("input",{type:w,placeholder:l,value:h,onChange:o,name:s,className:D,...u}),e[19]=w,e[20]=s,e[21]=o,e[22]=l,e[23]=u,e[24]=D,e[25]=h,e[26]=k):k=e[26];let I;e[27]!==g||e[28]!==p?(I=g&&x.jsx("div",{type:"button",onClick:()=>A(VRe),className:"absolute right-2 bottom-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200",tabIndex:-1,children:p?x.jsx(nfe,{size:18}):x.jsx(tfe,{size:18})}),e[27]=g,e[28]=p,e[29]=I):I=e[29];let L;e[30]!==n||e[31]!==g?(L=n&&n!==""&&!g&&x.jsx("div",{className:"absolute right-2 bottom-8 bg-(--red-color) rounded-full p-1",children:x.jsx(rx,{size:10,color:"white",weight:"bold"})}),e[30]=n,e[31]=g,e[32]=L):L=e[32];let O;e[33]!==n?(O=n&&n!==""&&x.jsx("p",{className:"text-red-500 text-xs",children:n}),e[33]=n,e[34]=O):O=e[34];let B;return e[35]!==M||e[36]!==k||e[37]!==I||e[38]!==L||e[39]!==O?(B=x.jsxs("div",{className:"relative app-text-input",children:[M,k,I,L,O]}),e[35]=M,e[36]=k,e[37]=I,e[38]=L,e[39]=O,e[40]=B):B=e[40],B}function VRe(t){return!t}dr.defaultProps={type:"text",placeholder:"",value:"",errorText:"",labelClassName:"",inputClassName:"",name:"",required:!1};dr.propTypes={type:re.string,placeholder:re.string,value:re.string.isRequired,onChange:re.func.isRequired,errorText:re.string,labelClassName:re.string,inputClassName:re.string,name:re.string,required:re.bool};var Yde;function Vn(){return Yde.apply(null,arguments)}function jRe(t){Yde=t}function jh(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function $v(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function oa(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Nz(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;
19for(e in t)if(oa(t,e))return!1;return!0}function o0(t){return t===void 0}function y2(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function MT(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Xde(t,e){var n=[],r,i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function ng(t,e){for(var n in e)oa(e,n)&&(t[n]=e[n]);return oa(e,"toString")&&(t.toString=e.toString),oa(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Rp(t,e,n,r){return vhe(t,e,n,r,!0).utc()}function HRe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function li(t){return t._pf==null&&(t._pf=HRe()),t._pf}var TV;Array.prototype.some?TV=Array.prototype.some:TV=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function Rz(t){var e=null,n=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=li(t),n=TV.call(e.parsedDateParts,function(i){return i!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function oP(t){var e=Rp(NaN);return t!=null?ng(li(e),t):li(e).userInvalidated=!0,e}var Qee=Vn.momentProperties=[],EF=!1;function Dz(t,e){var n,r,i,a=Qee.length;if(o0(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o0(e._i)||(t._i=e._i),o0(e._f)||(t._f=e._f),o0(e._l)||(t._l=e._l),o0(e._strict)||(t._strict=e._strict),o0(e._tzm)||(t._tzm=e._tzm),o0(e._isUTC)||(t._isUTC=e._isUTC),o0(e._offset)||(t._offset=e._offset),o0(e._pf)||(t._pf=li(e)),o0(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)r=Qee[n],i=e[r],o0(i)||(t[r]=i);return t}function CT(t){Dz(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),EF===!1&&(EF=!0,Vn.updateOffset(this),EF=!1)}function Hh(t){return t instanceof CT||t!=null&&t._isAMomentObject!=null}function Qde(t){Vn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Pd(t,e){var n=!0;return ng(function(){if(Vn.deprecationHandler!=null&&Vn.deprecationHandler(null,t),n){var r=[],i,a,s,o=arguments.length;for(a=0;a<o;a++){if(i="",typeof arguments[a]=="object"){i+=` 20[`+a+"] ";for(s in arguments[0])oa(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}Qde(t+` 21Arguments: `+Array.prototype.slice.call(r).join("")+` 22`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var Kee={};function Kde(t,e){Vn.deprecationHandler!=null&&Vn.deprecationHandler(t,e),Kee[t]||(Qde(e),Kee[t]=!0)}Vn.suppressDeprecationWarnings=!1;Vn.deprecationHandler=null;function Dp(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function GRe(t){var e,n;for(n in t)oa(t,n)&&(e=t[n],Dp(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function EV(t,e){var n=ng({},t),r;for(r in e)oa(e,r)&&($v(t[r])&&$v(e[r])?(n[r]={},ng(n[r],t[r]),ng(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)oa(t,r)&&!oa(e,r)&&$v(t[r])&&(n[r]=ng({},n[r]));return n}function Pz(t){t!=null&&this.set(t)}var MV;Object.keys?MV=Object.keys:MV=function(t){var e,n=[];for(e in t)oa(t,e)&&n.push(e);return n};var zRe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $Re(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return Dp(r)?r.call(e,n):r}function xp(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var kz=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 10,808 bytes, line 22
22|x|X|zz?|ZZ?|.)/g,$M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,MF={},i3={};function Tr(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(i3[t]=i),e&&(i3[e[0]]=function(){return xp(i.apply(this,arguments),e[1],e[2])}),n&&(i3[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function qRe(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function WRe(t){var e=t.match(kz),n,r;for(n=0,r=e.length;n<r;n++)i3[e[n]]?e[n]=i3[e[n]]:e[n]=qRe(e[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=Dp(e[s])?e[s].call(i,t):e[s];return a}}function T9(t,e){return t.isValid()?(e=Jde(e,t.localeData()),MF[e]=MF[e]||WRe(e),MF[e](t)):t.localeData().invalidDate()}function Jde(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for($M.lastIndex=0;n>=0&&$M.test(t);)t=t.replace($M,r),$M.lastIndex=0,n-=1;return t}var ZRe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function YRe(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(kz).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var XRe="Invalid date";function QRe(){return this._invalidDate}var KRe="%d",JRe=/\d{1,2}/;function eDe(t){return this._ordinal.replace("%d",t)}var tDe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nDe(t,e,n,r){var i=this._relativeTime[n];return Dp(i)?i(t,e,n,r):i.replace(/%d/i,t)}function rDe(t,e){var n=this._relativeTime[t>0?"future":"past"];return Dp(n)?n(e):n.replace(/%s/i,e)}var Jee={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kd(t){return typeof t=="string"?Jee[t]||Jee[t.toLowerCase()]:void 0}function Lz(t){var e={},n,r;for(r in t)oa(t,r)&&(n=kd(r),n&&(e[n]=t[r]));return e}var iDe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function aDe(t){var e=[],n;for(n in t)oa(t,n)&&e.push({unit:n,priority:iDe[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var ehe=/\d/,Nf=/\d\d/,the=/\d{3}/,Oz=/\d{4}/,lP=/[+-]?\d{6}/,Ts=/\d\d?/,nhe=/\d\d\d\d?/,rhe=/\d\d\d\d\d\d?/,cP=/\d{1,3}/,Fz=/\d{1,4}/,uP=/[+-]?\d{1,6}/,e6=/\d+/,fP=/[+-]?\d+/,sDe=/Z|[+-]\d\d:?\d\d/gi,dP=/Z|[+-]\d\d(?::?\d\d)?/gi,oDe=/[+-]?\d+(\.\d{1,3})?/,NT=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,t6=/^[1-9]\d?/,Iz=/^([1-9]\d|\d)/,BN;BN={};function Qn(t,e,n){BN[t]=Dp(e)?e:function(r,i){return r&&n?n:e}}function lDe(t,e){return oa(BN,t)?BN[t](e._strict,e._locale):new RegExp(cDe(t))}function cDe(t){return n2(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,a){return n||r||i||a}))}function n2(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function id(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Fi(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=id(e)),n}var CV={};function Za(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),y2(e)&&(r=function(a,s){s[e]=Fi(a)}),i=t.length,n=0;n<i;n++)CV[t[n]]=r}function RT(t,e){Za(t,function(n,r,i,a){i._w=i._w||{},e(n,i._w,i,a)})}function uDe(t,e,n){e!=null&&oa(CV,t)&&CV[t](e,n._a,n,t)}function hP(t){return t%4===0&&t%100!==0||t%400===0}var Kc=0,qm=1,B1=2,gl=3,bh=4,Wm=5,bv=6,fDe=7,dDe=8;Tr("Y",0,0,function(){var t=this.year();return t<=9999?xp(t,4):"+"+t});Tr(0,["YY",2],0,function(){return this.year()%100});Tr(0,["YYYY",4],0,"year");Tr(0,["YYYYY",5],0,"year");Tr(0,["YYYYYY",6,!0],0,"year");Qn("Y",fP);Qn("YY",Ts,Nf);Qn("YYYY",Fz,Oz);Qn("YYYYY",uP,lP);Qn("YYYYYY",uP,lP);Za(["YYYYY","YYYYYY"],Kc);Za("YYYY",function(t,e){e[Kc]=t.length===2?Vn.parseTwoDigitYear(t):Fi(t)});Za("YY",function(t,e){e[Kc]=Vn.parseTwoDigitYear(t)});Za("Y",function(t,e){e[Kc]=parseInt(t,10)});function lS(t){return hP(t)?366:365}Vn.parseTwoDigitYear=function(t){return Fi(t)+(Fi(t)>68?1900:2e3)};var ihe=n6("FullYear",!0);function hDe(){return hP(this.year())}function n6(t,e){return function(n){return n!=null?(ahe(this,t,n),Vn.updateOffset(this,e),this):r5(this,t)}}function r5(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ahe(t,e,n){var r,i,a,s,o;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=t.month(),o=t.date(),o=o===29&&s===1&&!hP(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function pDe(t){return t=kd(t),Dp(this[t])?this[t]():this}function mDe(t,e){if(typeof t=="object"){t=Lz(t);var n=aDe(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=kd(t),Dp(this[t]))return this[t](e);return this}function ADe(t,e){return(t%e+e)%e}var wo;Array.prototype.indexOf?wo=Array.prototype.indexOf:wo=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Bz(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ADe(e,12);return t+=(e-n)/12,n===1?hP(t)?29:28:31-n%7%2}Tr("M",["MM",2],"Mo",function(){return this.month()+1});Tr("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});Tr("MMMM",0,0,function(t){return this.localeData().months(this,t)});Qn("M",Ts,t6);Qn("MM",Ts,Nf);Qn("MMM",function(t,e){return e.monthsShortRegex(t)});Qn("MMMM",function(t,e){return e.monthsRegex(t)});Za(["M","MM"],function(t,e){e[qm]=Fi(t)-1});Za(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[qm]=i:li(n).invalidMonth=t});var gDe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),she="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ohe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xDe=NT,vDe=NT;function yDe(t,e){return t?jh(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ohe).test(e)?"format":"standalone"][t.month()]:jh(this._months)?this._months:this._months.standalone}function _De(t,e){return t?jh(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ohe.test(e)?"format":"standalone"][t.month()]:jh(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bDe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Rp([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?e==="MMM"?(i=wo.call(this._shortMonthsParse,s),i!==-1?i:null):(i=wo.call(this._longMonthsParse,s),i!==-1?i:null):e==="MMM"?(i=wo.call(this._shortMonthsParse,s),i!==-1?i:(i=wo.call(this._longMonthsParse,s),i!==-1?i:null)):(i=wo.call(this._longMonthsParse,s),i!==-1?i:(i=wo.call(this._shortMonthsParse,s),i!==-1?i:null))}function wDe(t,e,n){var r,i,a;if(this._monthsParseExact)return bDe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Rp([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function lhe(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Fi(e);else if(e=t.localeData().monthsParse(e),!y2(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,Bz(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function che(t){return t!=null?(lhe(this,t),Vn.updateOffset(this,!0),this):r5(this,"Month")}function SDe(){return Bz(this.year(),this.month())}function TDe(t){return this._monthsParseExact?(oa(this,"_monthsRegex")||uhe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(oa(this,"_monthsShortRegex")||(this._monthsShortRegex=xDe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function EDe(t){return this._monthsParseExact?(oa(this,"_monthsRegex")||uhe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(oa(this,"_monthsRegex")||(this._monthsRegex=vDe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function uhe(){function t(l,c){return c.length-l.length}var e=[],n=[],r=[],i,a,s,o;for(i=0;i<12;i++)a=Rp([2e3,i]),s=n2(this.monthsShort(a,"")),o=n2(this.months(a,"")),e.push(s),n.push(o),r.push(o),r.push(s);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function MDe(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}function i5(t){var e,n;return t<100&&t>
22=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function UN(t,e,n){var r=7+e-n,i=(7+i5(t,0,r).getUTCDay()-e)%7;return-i+r-1}function fhe(t,e,n,r,i){var a=(7+n-r)%7,s=UN(t,r,i),o=1+7*(e-1)+a+s,l,c;return o<=0?(l=t-1,c=lS(l)+o):o>lS(t)?(l=t+1,c=o-lS(t)):(l=t,c=o),{year:l,dayOfYear:c}}function a5(t,e,n){var r=UN(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=t.year()-1,a=i+r2(s,e,n)):i>r2(t.year(),e,n)?(a=i-r2(t.year(),e,n),s=t.year()+1):(s=t.year(),a=i),{week:a,year:s}}function r2(t,e,n){var r=UN(t,e,n),i=UN(t+1,e,n);return(lS(t)-r+i)/7}Tr("w",["ww",2],"wo","week");Tr("W",["WW",2],"Wo","isoWeek");Qn("w",Ts,t6);Qn("ww",Ts,Nf);Qn("W",Ts,t6);Qn("WW",Ts,Nf);RT(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Fi(t)});function CDe(t){return a5(t,this._week.dow,this._week.doy).week}var NDe={dow:0,doy:6};function RDe(){return this._week.dow}function DDe(){return this._week.doy}function PDe(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function kDe(t){var e=a5(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}Tr("d",0,"do","day");Tr("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});Tr("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});Tr("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});Tr("e",0,0,"weekday");Tr("E",0,0,"isoWeekday");Qn("d",Ts);Qn("e",Ts);Qn("E",Ts);Qn("dd",function(t,e){return e.weekdaysMinRegex(t)});Qn("ddd",function(t,e){return e.weekdaysShortRegex(t)});Qn("dddd",function(t,e){return e.weekdaysRegex(t)});RT(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:li(n).invalidWeekday=t});RT(["d","e","E"],function(t,e,n,r){e[r]=Fi(t)});function LDe(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),t
vendor: 14,525 bytes, line 22
22ypeof t=="number"?t:null):parseInt(t,10)}function ODe(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Uz(t,e){return t.slice(e,7).concat(t.slice(0,e))}var FDe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dhe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),IDe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),BDe=NT,UDe=NT,VDe=NT;function jDe(t,e){var n=jh(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Uz(n,this._week.dow):t?n[t.day()]:n}function HDe(t){return t===!0?Uz(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function GDe(t){return t===!0?Uz(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function zDe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Rp([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?e==="dddd"?(i=wo.call(this._weekdaysParse,s),i!==-1?i:null):e==="ddd"?(i=wo.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=wo.call(this._minWeekdaysParse,s),i!==-1?i:null):e==="dddd"?(i=wo.call(this._weekdaysParse,s),i!==-1||(i=wo.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=wo.call(this._minWeekdaysParse,s),i!==-1?i:null)):e==="ddd"?(i=wo.call(this._shortWeekdaysParse,s),i!==-1||(i=wo.call(this._weekdaysParse,s),i!==-1)?i:(i=wo.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=wo.call(this._minWeekdaysParse,s),i!==-1||(i=wo.call(this._weekdaysParse,s),i!==-1)?i:(i=wo.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function $De(t,e,n){var r,i,a;if(this._weekdaysParseExact)return zDe.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Rp([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function qDe(t){if(!this.isValid())return t!=null?this:NaN;var e=r5(this,"Day");return t!=null?(t=LDe(t,this.localeData()),this.add(t-e,"d")):e}function WDe(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function ZDe(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=ODe(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function YDe(t){return this._weekdaysParseExact?(oa(this,"_weekdaysRegex")||Vz.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(oa(this,"_weekdaysRegex")||(this._weekdaysRegex=BDe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function XDe(t){return this._weekdaysParseExact?(oa(this,"_weekdaysRegex")||Vz.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(oa(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=UDe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function QDe(t){return this._weekdaysParseExact?(oa(this,"_weekdaysRegex")||Vz.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(oa(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=VDe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vz(){function t(u,f){return f.length-u.length}var e=[],n=[],r=[],i=[],a,s,o,l,c;for(a=0;a<7;a++)s=Rp([2e3,1]).day(a),o=n2(this.weekdaysMin(s,"")),l=n2(this.weekdaysShort(s,"")),c=n2(this.weekdays(s,"")),e.push(o),n.push(l),r.push(c),i.push(o),i.push(l),i.push(c);e.sort(t),n.sort(t),r.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function jz(){return this.hours()%12||12}function KDe(){return this.hours()||24}Tr("H",["HH",2],0,"hour");Tr("h",["hh",2],0,jz);Tr("k",["kk",2],0,KDe);Tr("hmm",0,0,function(){return""+jz.apply(this)+xp(this.minutes(),2)});Tr("hmmss",0,0,function(){return""+jz.apply(this)+xp(this.minutes(),2)+xp(this.seconds(),2)});Tr("Hmm",0,0,function(){return""+this.hours()+xp(this.minutes(),2)});Tr("Hmmss",0,0,function(){return""+this.hours()+xp(this.minutes(),2)+xp(this.seconds(),2)});function hhe(t,e){Tr(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}hhe("a",!0);hhe("A",!1);function phe(t,e){return e._meridiemParse}Qn("a",phe);Qn("A",phe);Qn("H",Ts,Iz);Qn("h",Ts,t6);Qn("k",Ts,t6);Qn("HH",Ts,Nf);Qn("hh",Ts,Nf);Qn("kk",Ts,Nf);Qn("hmm",nhe);Qn("hmmss",rhe);Qn("Hmm",nhe);Qn("Hmmss",rhe);Za(["H","HH"],gl);Za(["k","kk"],function(t,e,n){var r=Fi(t);e[gl]=r===24?0:r});Za(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});Za(["h","hh"],function(t,e,n){e[gl]=Fi(t),li(n).bigHour=!0});Za("hmm",function(t,e,n){var r=t.length-2;e[gl]=Fi(t.substr(0,r)),e[bh]=Fi(t.substr(r)),li(n).bigHour=!0});Za("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[gl]=Fi(t.substr(0,r)),e[bh]=Fi(t.substr(r,2)),e[Wm]=Fi(t.substr(i)),li(n).bigHour=!0});Za("Hmm",function(t,e,n){var r=t.length-2;e[gl]=Fi(t.substr(0,r)),e[bh]=Fi(t.substr(r))});Za("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[gl]=Fi(t.substr(0,r)),e[bh]=Fi(t.substr(r,2)),e[Wm]=Fi(t.substr(i))});function JDe(t){return(t+"").toLowerCase().charAt(0)==="p"}var ePe=/[ap]\.?m?\.?/i,tPe=n6("Hours",!0);function nPe(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var mhe={calendar:zRe,longDateFormat:ZRe,invalidDate:XRe,ordinal:KRe,dayOfMonthOrdinalParse:JRe,relativeTime:tDe,months:gDe,monthsShort:she,week:NDe,weekdays:FDe,weekdaysMin:IDe,weekdaysShort:dhe,meridiemParse:ePe},Ds={},Cb={},s5;function rPe(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function ete(t){return t&&t.toLowerCase().replace("_","-")}function iPe(t){for(var e=0,n,r,i,a;e<t.length;){for(a=ete(t[e]).split("-"),n=a.length,r=ete(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=pP(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&rPe(a,r)>=n-1)break;n--}e++}return s5}function aPe(t){return!!(t&&t.match("^[^/\\\\]*$"))}function pP(t){var e=null,n;if(Ds[t]===void 0&&typeof sy<"u"&&sy&&sy.exports&&aPe(t))try{e=s5._abbr,n=require,n("./locale/"+t),yg(e)}catch{Ds[t]=null}return Ds[t]}function yg(t,e){var n;return t&&(o0(e)?n=k2(t):n=Hz(t,e),n?s5=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),s5._abbr}function Hz(t,e){if(e!==null){var n,r=mhe;if(e.abbr=t,Ds[t]!=null)Kde("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ds[t]._config;else if(e.parentLocale!=null)if(Ds[e.parentLocale]!=null)r=Ds[e.parentLocale]._config;else if(n=pP(e.parentLocale),n!=null)r=n._config;else return Cb[e.parentLocale]||(Cb[e.parentLocale]=[]),Cb[e.parentLocale].push({name:t,config:e}),null;return Ds[t]=new Pz(EV(r,e)),Cb[t]&&Cb[t].forEach(function(i){Hz(i.name,i.config)}),yg(t),Ds[t]}else return delete Ds[t],null}function sPe(t,e){if(e!=null){var n,r,i=mhe;Ds[t]!=null&&Ds[t].parentLocale!=null?Ds[t].set(EV(Ds[t]._config,e)):(r=pP(t),r!=null&&(i=r._config),e=EV(i,e),r==null&&(e.abbr=t),n=new Pz(e),n.parentLocale=Ds[t],Ds[t]=n),yg(t)}else Ds[t]!=null&&(Ds[t].parentLocale!=null?(Ds[t]=Ds[t].parentLocale,t===yg()&&yg(t)):Ds[t]!=null&&delete Ds[t]);return Ds[t]}function k2(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return s5;if(!jh(t)){if(e=pP(t),e)return e;t=[t]}return iPe(t)}function oPe(){return MV(Ds)}function Gz(t){var e,n=t._a;return n&&li(t).overflow===-2&&(e=n[qm]<0||n[qm]>11?qm:n[B1]<1||n[B1]>Bz(n[Kc],n[qm])?B1:n[gl]<0||n[gl]>24||n[gl]===24&&(n[bh]!==0||n[Wm]!==0||n[bv]!==0)?gl:n[bh]<0||n[bh]>59?bh:n[Wm]<0||n[Wm]>59?Wm:n[bv]<0||n[bv]>999?bv:-1,li(t)._overflowDayOfYear&&(e<Kc||e>B1)&&(e=B1),li(t)._overflowWeeks&&e===-1&&(e=fDe),li(t)._overflowWeekday&&e===-1&&(e=dDe),li(t).overflow=e),t}var lPe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cPe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uPe=/Z|[+-]\d\d(?::?\d\d)?/,qM=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],CF=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fPe=/^\/?Date\((-?\d+)/i,dPe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,hPe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ahe(t){var e,n,r=t._i,i=lPe.exec(r)||cPe.exec(r),a,s,o,l,c=qM.length,u=CF.length;if(i){for(li(t).iso=!0,e=0,n=c;e<n;e++)if(qM[e][1].exec(i[1])){s=qM[e][0],a=qM[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(i[3]){for(e=0,n=u;e<n;e++)if(CF[e][1].exec(i[3])){o=(i[2]||" ")+CF[e][0];break}if(o==null){t._isValid=!1;return}}if(!a&&o!=null){t._isValid=!1;return}if(i[4])if(uPe.exec(i[4]))l="Z";else{t._isValid=!1;return}t._f=s+(o||"")+(l||""),$z(t)}else t._isValid=!1}function pPe(t,e,n,r,i,a){var s=[mPe(t),she.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function mPe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function APe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gPe(t,e,n){if(t){var r=dhe.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return li(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function xPe(t,e,n){if(t)return hPe[t];if(e)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function ghe(t){var e=dPe.exec(APe(t._i)),n;if(e){if(n=pPe(e[4],e[3],e[2],e[5],e[6],e[7]),!gPe(e[1],n,t))return;t._a=n,t._tzm=xPe(e[8],e[9],e[10]),t._d=i5.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),li(t).rfc2822=!0}else t._isValid=!1}function vPe(t){var e=fPe.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(Ahe(t),t._isValid===!1)delete t._isValid;else return;if(ghe(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:Vn.createFromInputFallback(t)}Vn.createFromInputFallback=Pd("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function M8(t,e,n){return t??e??n}function yPe(t){var e=new Date(Vn.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function zz(t){var e,n,r=[],i,a,s;if(!t._d){for(i=yPe(t),t._w&&t._a[B1]==null&&t._a[qm]==null&&_Pe(t),t._dayOfYear!=null&&(s=M8(t._a[Kc],i[Kc]),(t._dayOfYear>lS(s)||t._dayOfYear===0)&&(li(t)._overflowDayOfYear=!0),n=i5(s,0,t._dayOfYear),t._a[qm]=n.getUTCMonth(),t._a[B1]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[gl]===24&&t._a[bh]===0&&t._a[Wm]===0&&t._a[bv]===0&&(t._nextDay=!0,t._a[gl]=0),t._d=(t._useUTC?i5:MDe).apply(null,r),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[gl]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==a&&(li(t).weekdayMismatch=!0)}}function _Pe(t){var e,n,r,i,a,s,o,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(a=1,s=4,n=M8(e.GG,t._a[Kc],a5(bs(),1,4).year),r=M8(e.W,1),i=M8(e.E,1),(i<1||i>7)&&(l=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,c=a5(bs(),a,s),n=M8(e.gg,t._a[Kc],c.year),r=M8(e.w,c.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+a,(e.e<0||e.e>6)&&(l=!0)):i=a),r<1||r>r2(n,a,s)?li(t)._overflowWeeks=!0:l!=null?li(t)._overflowWeekday=!0:(o=fhe(n,r,i,a,s),t._a[Kc]=o.year,t._dayOfYear=o.dayOfYear)}Vn.ISO_8601=function(){};Vn.RFC_2822=function(){};function $z(t){if(t._f===Vn.ISO_8601){Ahe(t);return}if(t._f===Vn.RFC_2822){ghe(t);return}t._a=[],li(t).empty=!0;var e=""+t._i,n,r,i,a,s,o=e.length,l=0,c,u;for(i=Jde(t._f,t._locale).match(kz)||[],u=i.length,n=0;n<u;n++)a=i[n],r=(e.match(lDe(a,t))||[])[0],r&&(s=e.substr(0,e.indexOf(r)),s.length>0&&li(t).unusedInput.push(s),e=e.slice(e.indexOf(r)+r.length),l+=r.length),i3[a]?(r?li(t).empty=!1:li(t).unusedTokens.push(a),uDe(a,r,t)):t._strict&&!r&&li(t).unusedTokens.push(a);li(t).charsLeftOver=o-l,e.length>0&&li(t).unusedInput.push(e),t._a[gl]<=12&&li(t).bigHour===!0&&t._a[gl]>0&&(li(t).bigHour=void 0),li(t).parsedDateParts=t._a.slice(0),li(t).meridiem=t._meridiem,t._a[gl]=bPe(t._locale,t._a[gl],t._meridiem),c=li(t).era,c!==null&&(t._a[Kc]=t._locale.erasConvertYear(c,t._a[Kc])),zz(t),Gz(t)}function bPe(t,e,n){var r;
vendor: 6,162 bytes, line 22
22return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function wPe(t){var e,n,r,i,a,s,o=!1,l=t._f.length;if(l===0){li(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<l;i++)a=0,s=!1,e=Dz({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],$z(e),Rz(e)&&(s=!0),a+=li(e).charsLeftOver,a+=li(e).unusedTokens.length*10,li(e).score=a,o?a<r&&(r=a,n=e):(r==null||a<r||s)&&(r=a,n=e,s&&(o=!0));ng(t,n||e)}function SPe(t){if(!t._d){var e=Lz(t._i),n=e.day===void 0?e.date:e.day;t._a=Xde([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),zz(t)}}function TPe(t){var e=new CT(Gz(xhe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xhe(t){var e=t._i,n=t._f;return t._locale=t._locale||k2(t._l),e===null||n===void 0&&e===""?oP({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Hh(e)?new CT(Gz(e)):(MT(e)?t._d=e:jh(n)?wPe(t):n?$z(t):EPe(t),Rz(t)||(t._d=null),t))}function EPe(t){var e=t._i;o0(e)?t._d=new Date(Vn.now()):MT(e)?t._d=new Date(e.valueOf()):typeof e=="string"?vPe(t):jh(e)?(t._a=Xde(e.slice(0),function(n){return parseInt(n,10)}),zz(t)):$v(e)?SPe(t):y2(e)?t._d=new Date(e):Vn.createFromInputFallback(t)}function vhe(t,e,n,r,i){var a={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),($v(t)&&Nz(t)||jh(t)&&t.length===0)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,TPe(a)}function bs(t,e,n,r){return vhe(t,e,n,r,!1)}var MPe=Pd("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=bs.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:oP()}),CPe=Pd("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=bs.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:oP()});function yhe(t,e){var n,r;if(e.length===1&&jh(e[0])&&(e=e[0]),!e.length)return bs();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function NPe(){var t=[].slice.call(arguments,0);return yhe("isBefore",t)}function RPe(){var t=[].slice.call(arguments,0);return yhe("isAfter",t)}var DPe=function(){return Date.now?Date.now():+new Date},Nb=["year","quarter","month","week","day","hour","minute","second","millisecond"];function PPe(t){var e,n=!1,r,i=Nb.length;for(e in t)if(oa(t,e)&&!(wo.call(Nb,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[Nb[r]]){if(n)return!1;parseFloat(t[Nb[r]])!==Fi(t[Nb[r]])&&(n=!0)}return!0}function kPe(){return this._isValid}function LPe(){return Kh(NaN)}function mP(t){var e=Lz(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=PPe(e),this._milliseconds=+u+c*1e3+l*6e4+o*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=k2(),this._bubble()}function E9(t){return t instanceof mP}function NV(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function OPe(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0,s;for(s=0;s<r;s++)Fi(t[s])!==Fi(e[s])&&a++;return a+i}function _he(t,e){Tr(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+xp(~~(n/60),2)+e+xp(~~n%60,2)})}_he("Z",":");_he("ZZ","");Qn("Z",dP);Qn("ZZ",dP);Za(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=qz(dP,t)});var FPe=/([\+\-]|\d\d)/gi;function qz(t,e){var n=(e||"").match(t),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(FPe)||["-",0,0],a=+(i[1]*60)+Fi(i[2]),a===0?0:i[0]==="+"?a:-a)}function Wz(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Hh(t)||MT(t)?t.valueOf():bs(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Vn.updateOffset(n,!1),n):bs(t).local()}function RV(t){return-Math.round(t._d.getTimezoneOffset())}Vn.updateOffset=function(){};function IPe(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=qz(dP,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=RV(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?She(this,Kh(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Vn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:RV(this)}function BPe(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function UPe(t){return this.utcOffset(0,t)}function VPe(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(RV(this),"m")),this}function jPe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=qz(sDe,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function HPe(t){return this.isValid()?(t=t?bs(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function GPe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zPe(){if(!o0(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Dz(t,this),t=xhe(t),t._a?(e=t._isUTC?Rp(t._a):bs(t._a),this._isDSTShifted=this.isValid()&&OPe(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $Pe(){return this.isValid()?!this._isUTC:!1}function qPe(){return this.isValid()?this._isUTC:!1}function bhe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var WPe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ZPe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kh(t,e){var n=t,r=null,i,a,s;return E9(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:y2(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=WPe.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:Fi(r[B1])*i,h:Fi(r[gl])*i,m:Fi(r[bh])*i,s:Fi(r[Wm])*i,ms:Fi(NV(r[bv]*1e3))*i}):(r=ZPe.exec(t))?(i=r[1]==="-"?-1:1,n={y:Ox(r[2],i),M:Ox(r[3],i),w:Ox(r[4],i),d:Ox(r[5],i),h:Ox(r[6],i),m:Ox(r[7],i),s:Ox(r[8],i)}):n==null?n={}
vendor: 21,860 bytes, line 22
22:typeof n=="object"&&("from"in n||"to"in n)&&(s=YPe(bs(n.from),bs(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new mP(n),E9(t)&&oa(t,"_locale")&&(a._locale=t._locale),E9(t)&&oa(t,"_isValid")&&(a._isValid=t._isValid),a}Kh.fn=mP.prototype;Kh.invalid=LPe;function Ox(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function tte(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function YPe(t,e){var n;return t.isValid()&&e.isValid()?(e=Wz(e,t),t.isBefore(e)?n=tte(t,e):(n=tte(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function whe(t,e){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Kde(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Kh(n,r),She(this,i,t),this}}function She(t,e,n,r){var i=e._milliseconds,a=NV(e._days),s=NV(e._months);t.isValid()&&(r=r??!0,s&&lhe(t,r5(t,"Month")+s*n),a&&ahe(t,"Date",r5(t,"Date")+a*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&Vn.updateOffset(t,a||s))}var XPe=whe(1,"add"),QPe=whe(-1,"subtract");function The(t){return typeof t=="string"||t instanceof String}function KPe(t){return Hh(t)||MT(t)||The(t)||y2(t)||eke(t)||JPe(t)||t===null||t===void 0}function JPe(t){var e=$v(t)&&!Nz(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||oa(t,a);return e&&n}function eke(t){var e=jh(t),n=!1;return e&&(n=t.filter(function(r){return!y2(r)&&The(t)}).length===0),e&&n}function tke(t){var e=$v(t)&&!Nz(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||oa(t,a);return e&&n}function nke(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rke(t,e){arguments.length===1&&(arguments[0]?KPe(arguments[0])?(t=arguments[0],e=void 0):tke(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||bs(),r=Wz(n,this).startOf("day"),i=Vn.calendarFormat(this,r)||"sameElse",a=e&&(Dp(e[i])?e[i].call(this,n):e[i]);return this.format(a||this.localeData().calendar(i,this,bs(n)))}function ike(){return new CT(this)}function ake(t,e){var n=Hh(t)?t:bs(t);return this.isValid()&&n.isValid()?(e=kd(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function ske(t,e){var n=Hh(t)?t:bs(t);return this.isValid()&&n.isValid()?(e=kd(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function oke(t,e,n,r){var i=Hh(t)?t:bs(t),a=Hh(e)?e:bs(e);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function lke(t,e){var n=Hh(t)?t:bs(t),r;return this.isValid()&&n.isValid()?(e=kd(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function cke(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function uke(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function fke(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(r=Wz(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=kd(e),e){case"year":a=M9(this,r)/12;break;case"month":a=M9(this,r);break;case"quarter":a=M9(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:id(a)}function M9(t,e){if(t.date()<e.date())return-M9(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,a;return e-r<0?(i=t.clone().add(n-1,"months"),a=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),a=(e-r)/(i-r)),-(n+a)||0}Vn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Vn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dke(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function hke(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?T9(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dp(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",T9(n,"Z")):T9(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pke(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,a;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]',this.format(n+r+i+a)}function mke(t){t||(t=this.isUtc()?Vn.defaultFormatUtc:Vn.defaultFormat);var e=T9(this,t);return this.localeData().postformat(e)}function Ake(t,e){return this.isValid()&&(Hh(t)&&t.isValid()||bs(t).isValid())?Kh({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function gke(t){return this.from(bs(),t)}function xke(t,e){return this.isValid()&&(Hh(t)&&t.isValid()||bs(t).isValid())?Kh({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function vke(t){return this.to(bs(),t)}function Ehe(t){var e;return t===void 0?this._locale._abbr:(e=k2(t),e!=null&&(this._locale=e),this)}var Mhe=Pd("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Che(){return this._locale}var VN=1e3,a3=60*VN,jN=60*a3,Nhe=(365*400+97)*24*jN;function s3(t,e){return(t%e+e)%e}function Rhe(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Nhe:new Date(t,e,n).valueOf()}function Dhe(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Nhe:Date.UTC(t,e,n)}function yke(t){var e,n;if(t=kd(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dhe:Rhe,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=s3(e+(this._isUTC?0:this.utcOffset()*a3),jN);break;case"minute":e=this._d.valueOf(),e-=s3(e,a3);break;case"second":e=this._d.valueOf(),e-=s3(e,VN);break}return this._d.setTime(e),Vn.updateOffset(this,!0),this}function _ke(t){var e,n;if(t=kd(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dhe:Rhe,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=jN-s3(e+(this._isUTC?0:this.utcOffset()*a3),jN)-1;break;case"minute":e=this._d.valueOf(),e+=a3-s3(e,a3)-1;break;case"second":e=this._d.valueOf(),e+=VN-s3(e,VN)-1;break}return this._d.setTime(e),Vn.updateOffset(this,!0),this}function bke(){return this._d.valueOf()-(this._offset||0)*6e4}function wke(){return Math.floor(this.valueOf()/1e3)}function Ske(){return new Date(this.valueOf())}function Tke(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Eke(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Mke(){return this.isValid()?this.toISOString():null}function Cke(){return Rz(this)}function Nke(){return ng({},li(this))}function Rke(){return li(this).overflow}function Dke(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Tr("N",0,0,"eraAbbr");Tr("NN",0,0,"eraAbbr");Tr("NNN",0,0,"eraAbbr");Tr("NNNN",0,0,"eraName");Tr("NNNNN",0,0,"eraNarrow");Tr("y",["y",1],"yo","eraYear");Tr("y",["yy",2],0,"eraYear");Tr("y",["yyy",3],0,"eraYear");Tr("y",["yyyy",4],0,"eraYear");Qn("N",Zz);Qn("NN",Zz);Qn("NNN",Zz);Qn("NNNN",Hke);Qn("NNNNN",Gke);Za(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?li(n).era=i:li(n).invalidEra=t});Qn("y",e6);Qn("yy",e6);Qn("yyy",e6);Qn("yyyy",e6);Qn("yo",zke);Za(["y","yy","yyy","yyyy"],Kc);Za(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Kc]=n._locale.eraYearOrdinalParse(t,i):e[Kc]=parseInt(t,10)});function Pke(t,e){var n,r,i,a=this._eras||k2("en")._eras;for(n=0,r=a.length;n<r;++n)switch(typeof a[n].since==="string"&&(i=Vn(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=Vn(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}return a}function kke(t,e,n){var r,i,a=this.eras(),s,o,l;for(t=t.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),o=a[r].abbr.toUpperCase(),l=a[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return a[r];break;case"NNNN":if(s===t)return a[r];break;case"NNNNN":if(l===t)return a[r];break}else if([s,o,l].indexOf(t)>=0)return a[r]}function Lke(t,e){var n=t.since<=t.until?1:-1;return e===void 0?Vn(t.since).year():Vn(t.since).year()+(e-t.offset)*n}function Oke(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function Fke(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function Ike(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function Bke(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-Vn(i[t].since).year())*n+i[t].offset;return this.year()}function Uke(t){return oa(this,"_erasNameRegex")||Yz.call(this),t?this._erasNameRegex:this._erasRegex}function Vke(t){return oa(this,"_erasAbbrRegex")||Yz.call(this),t?this._erasAbbrRegex:this._erasRegex}function jke(t){return oa(this,"_erasNarrowRegex")||Yz.call(this),t?this._erasNarrowRegex:this._erasRegex}function Zz(t,e){return e.erasAbbrRegex(t)}function Hke(t,e){return e.erasNameRegex(t)}function Gke(t,e){return e.erasNarrowRegex(t)}function zke(t,e){return e._eraYearOrdinalRegex||e6}function Yz(){var t=[],e=[],n=[],r=[],i,a,s,o,l,c=this.eras();for(i=0,a=c.length;i<a;++i)s=n2(c[i].name),o=n2(c[i].abbr),l=n2(c[i].narrow),e.push(s),t.push(o),n.push(l),r.push(s),r.push(o),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Tr(0,["gg",2],0,function(){return this.weekYear()%100});Tr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function AP(t,e){Tr(0,[t,t.length],0,e)}AP("gggg","weekYear");AP("ggggg","weekYear");AP("GGGG","isoWeekYear");AP("GGGGG","isoWeekYear");Qn("G",fP);Qn("g",fP);Qn("GG",Ts,Nf);Qn("gg",Ts,Nf);Qn("GGGG",Fz,Oz);Qn("gggg",Fz,Oz);Qn("GGGGG",uP,lP);Qn("ggggg",uP,lP);RT(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Fi(t)});RT(["gg","GG"],function(t,e,n,r){e[r]=Vn.parseTwoDigitYear(t)});function $ke(t){return Phe.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qke(t){return Phe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Wke(){return r2(this.year(),1,4)}function Zke(){return r2(this.isoWeekYear(),1,4)}function Yke(){var t=this.localeData()._week;return r2(this.year(),t.dow,t.doy)}function Xke(){var t=this.localeData()._week;return r2(this.weekYear(),t.dow,t.doy)}function Phe(t,e,n,r,i){var a;return t==null?a5(this,r,i).year:(a=r2(t,r,i),e>a&&(e=a),Qke.call(this,t,e,n,r,i))}function Qke(t,e,n,r,i){var a=fhe(t,e,n,r,i),s=i5(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Tr("Q",0,"Qo","quarter");Qn("Q",ehe);Za("Q",function(t,e){e[qm]=(Fi(t)-1)*3});function Kke(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}Tr("D",["DD",2],"Do","date");Qn("D",Ts,t6);Qn("DD",Ts,Nf);Qn("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Za(["D","DD"],B1);Za("Do",function(t,e){e[B1]=Fi(t.match(Ts)[0])});var khe=n6("Date",!0);Tr("DDD",["DDDD",3],"DDDo","dayOfYear");Qn("DDD",cP);Qn("DDDD",the);Za(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Fi(t)});function Jke(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}Tr("m",["mm",2],0,"minute");Qn("m",Ts,Iz);Qn("mm",Ts,Nf);Za(["m","mm"],bh);var eLe=n6("Minutes",!1);Tr("s",["ss",2],0,"second");Qn("s",Ts,Iz);Qn("ss",Ts,Nf);Za(["s","ss"],Wm);var tLe=n6("Seconds",!1);Tr("S",0,0,function(){return~~(this.millisecond()/100)});Tr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Tr(0,["SSS",3],0,"millisecond");Tr(0,["SSSS",4],0,function(){return this.millisecond()*10});Tr(0,["SSSSS",5],0,function(){return this.millisecond()*100});Tr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Tr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Tr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Tr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Qn("S",cP,ehe);Qn("SS",cP,Nf);Qn("SSS",cP,the);var rg,Lhe;for(rg="SSSS";rg.length<=9;rg+="S")Qn(rg,e6);function nLe(t,e){e[bv]=Fi(("0."+t)*1e3)}for(rg="S";rg.length<=9;rg+="S")Za(rg,nLe);Lhe=n6("Milliseconds",!1);Tr("z",0,0,"zoneAbbr");Tr("zz",0,0,"zoneName");function rLe(){return this._isUTC?"UTC":""}function iLe(){return this._isUTC?"Coordinated Universal Time":""}var En=CT.prototype;En.add=XPe;En.calendar=rke;En.clone=ike;En.diff=fke;En.endOf=_ke;En.format=mke;En.from=Ake;En.fromNow=gke;En.to=xke;En.toNow=vke;En.get=pDe;En.invalidAt=Rke;En.isAfter=ake;En.isBefore=ske;En.isBetween=oke;En.isSame=lke;En.isSameOrAfter=cke;En.isSameOrBefore=uke;En.isValid=Cke;En.lang=Mhe;En.locale=Ehe;En.localeData=Che;En.max=CPe;En.min=MPe;En.parsingFlags=Nke;En.set=mDe;En.startOf=yke;En.subtract=QPe;En.toArray=Tke;En.toObject=Eke;En.toDate=Ske;En.toISOString=hke;En.inspect=pke;typeof Symbol<"u"&&Symbol.for!=null&&(En[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});En.toJSON=Mke;En.toString=dke;En.unix=wke;En.valueOf=bke;En.creationData=Dke;En.eraName=Oke;En.eraNarrow=Fke;En.eraAbbr=Ike;En.eraYear=Bke;En.year=ihe;En.isLeapYear=hDe;En.weekYear=$ke;En.isoWeekYear=qke;En.quarter=En.quarters=Kke;En.month=che;En.daysInMonth=SDe;En.week=En.weeks=PDe;En.isoWeek=En.isoWeeks=kDe;En.weeksInYear=Yke;En.weeksInWeekYear=Xke;En.isoWeeksInYear=Wke;En.isoWeeksInISOWeekYear=Zke;En.date=khe;En.day=En.days=qDe;En.weekday=WDe;En.isoWeekday=ZDe;En.dayOfYear=Jke;En.hour=En.hours=tPe;En.minute=En.minutes=eLe;En.second=En.seconds=tLe;En.millisecond=En.milliseconds=Lhe;En.utcOffset=IPe;En.utc=UPe;En.local=VPe;En.parseZone=jPe;En.hasAlignedHourOffset=HPe;En.isDST=GPe;En.isLocal=$Pe;En.isUtcOffset=qPe;En.isUtc=bhe;En.isUTC=bhe;En.zoneAbbr=rLe;En.zoneName=iLe;En.dates=Pd("dates accessor is deprecated. Use date instead.",khe);En.months=Pd("months accessor is deprecated. Use month instead",che);En.years=Pd("years accessor is deprecated. Use year instead",ihe);En.zone=Pd("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",BPe);En.isDSTShifted=Pd("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zPe);function aLe(t){return bs(t*1e3)}function sLe(){return bs.apply(null,arguments).parseZone()}function Ohe(t){return t}var ua=Pz.prototype;ua.calendar=$Re;ua.longDateFormat=YRe;ua.invalidDate=QRe;ua.ordinal=eDe;ua.preparse=Ohe;ua.postformat=Ohe;ua.relativeTime=nDe;ua.pastFuture=rDe;ua.set=GRe;ua.eras=Pke;ua.erasParse=kke;ua.erasConvertYear=Lke;ua.erasAbbrRegex=Vke;ua.erasNameRegex=Uke;ua.erasNarrowRegex=jke;ua.months=yDe;ua.monthsShort=_De;ua.monthsParse=wDe;ua.monthsRegex=EDe;ua.monthsShortRegex=TDe;ua.week=CDe;ua.firstDayOfYear=DDe;ua.firstDayOfWeek=RDe;ua.weekdays=jDe;ua.weekdaysMin=GDe;ua.weekdaysShort=HDe;ua.weekdaysParse=$De;ua.weekdaysRegex=YDe;ua.weekdaysShortRegex=XDe;ua.weekdaysMinRegex=QDe;ua.isPM=JDe;ua.meridiem=nPe;function HN(t,e,n,r){var i=k2(),a=Rp().set(r,e);return i[n](a,t)}function Fhe(t,e,n){if(y2(t)&&(e=t,t=void 0),t=t||"",e!=null)return HN(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=HN(t,r,n,"month");return i}function Xz(t,e,n,r){typeof t=="boolean"?(y2(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,y2(e)&&(n=e,e=void 0),e=e||"");var i=k2(),a=t?i._week.dow:0,s,o=[];if(n!=null)return HN(e,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=HN(e,(s+a)%7,r,"day");return o}function oLe(t,e){return Fhe(t,e,"months")}function lLe(t,e){return Fhe(t,e,"monthsShort")}function cLe(t,e,n){return Xz(t,e,n,"weekdays")}function uLe(t,e,n){return Xz(t,e,n,"weekdaysShort")}function fLe(t,e,n){return Xz(t,e,n,"weekdaysMin")}yg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Fi(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});Vn.lang=Pd("moment.lang is deprecated. Use moment.locale instead.",yg);Vn.langData=Pd("moment.langData is deprecated. Use moment.localeData instead.",k2);var vm=Math.abs;function dLe(){var t=this._data;return this._milliseconds=vm(this._milliseconds),this._days=vm(this._days),this._months=vm(this._months),t.milliseconds=vm(t.milliseconds),t.seconds=vm(t.seconds),t.minutes=vm(t.minutes),t.hours=vm(t.hours),t.months=vm(t.months),t.years=vm(t.years),this}function Ihe(t,e,n,r){var i=Kh(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function hLe(t,e){return Ihe(this,t,e,1)}function pLe(t,e){return Ihe(this,t,e,-1)}function nte(t){return t<0?Math.floor(t):Math.ceil(t)}function mLe(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,a,s,o,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=nte(DV(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=id(t/1e3),r.seconds=i%60,a=id(i/60),r.minutes=a%60,s=id(a/60),r.hours=s%24,e+=id(s/24),l=id(Bhe(e)),n+=l,e-=nte(DV(l)),o=id(n/12),n%=12,r.days=e,r.months=n,r.years=o,this}function Bhe(t){return t*4800/146097}function DV(t){return t*146097/4800}function ALe(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=kd(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+Bhe(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(DV(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function L2(t){return function(){return this.as(t)}}var Uhe=L2("ms"),gLe=L2("s"),xLe=L2("m"),vLe=L2("h"),yLe=L2("d"),_Le=L2("w"),bLe=L2("M"),wLe=L2("Q"),SLe=L2("y"),TLe=Uhe;function ELe(){return Kh(this)}function MLe(t){return t=kd(t),this.isValid()?this[t+"s"]():NaN}function ky(t){return function(){return this.isValid()?this._data[t]:NaN}}var CLe=ky("milliseconds"),NLe=ky("seconds"),RLe=ky("minutes"),DLe=ky("hours"),PLe=ky("days"),kLe=ky("months"),LLe=ky("years");function OLe(){return id(this.days()/7)}var Pm=Math.round,j8={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function FLe(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ILe(t,e,n,r){var i=Kh(t).abs(),a=Pm(i.as("s")),s=Pm(i.as("m")),o=Pm(i.as("h")),l=Pm(i.as("d")),c=Pm(i.as("M")),u=Pm(i.as("w")),f=Pm(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,FLe.apply(null,h)}function BLe(t){return t===void 0?Pm:typeof t=="function"?(Pm=t,!0):!1}function ULe(t,e){return j8[t]===void 0?!1:e===void 0?j8[t]:(j8[t]=e,t==="s"&&(j8.ss=e-1),!0)}function VLe(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=j8,i,a;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},j8,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),a=ILe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var NF=Math.abs;
22function F4(t){return(t>0)-(t<0)||+t}function gP(){if(!this.isValid())return this.localeData().invalidDate();var t=NF(this._milliseconds)/1e3,e=NF(this._days),n=NF(this._months),r,i,a,s,o=this.asSeconds(),l,c,u,f;return o?(r=id(t/60),i=id(r/60),t%=60,r%=60,a=id(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=F4(this._months)!==F4(o)?"-":"",u=F4(this._days)!==F4(o)?"-":"",f=F4(this._milliseconds)!==F4(o)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(e?u+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+s+"S":"")):"P0D"}var Wi=mP.prototype;Wi.isValid=kPe;Wi.abs=dLe;Wi.add=hLe;Wi.subtract=pLe;Wi.as=ALe;Wi.asMilliseconds=Uhe;Wi.asSeconds=gLe;Wi.asMinutes=xLe;Wi.asHours=vLe;Wi.asDays=yLe;Wi.asWeeks=_Le;Wi.asMonths=bLe;Wi.asQuarters=wLe;Wi.asYears=SLe;Wi.valueOf=TLe;Wi._bubble=mLe;Wi.clone=ELe;Wi.get=MLe;Wi.milliseconds=CLe;Wi.seconds=NLe;Wi.minutes=RLe;Wi.hours=DLe;Wi.days=PLe;Wi.weeks=OLe;Wi.months=kLe;Wi.years=LLe;Wi.humanize=VLe;Wi.toISOString=gP;Wi.toString=gP;Wi.toJSON=gP;Wi.locale=Ehe;Wi.localeData=Che;Wi.toIsoString=Pd("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gP);Wi.lang=Mhe;Tr("X",0,0,"unix");Tr("x",0,0,"valueOf");Qn("x",fP);Qn("X",oDe);Za("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});Za("x",function(t,e,n){n._d=new Date(Fi(t))});Vn.version="2.30.1";jRe(bs);Vn.fn=En;Vn.min=NPe;Vn.max=RPe;Vn.now=DPe;Vn.utc=Rp;Vn.unix=aLe;Vn.months=oLe;Vn.isDate=MT;Vn.locale=yg;Vn.invalid=oP;Vn.duration=Kh;Vn.isMoment=Hh;Vn.weekdays=cLe;Vn.parseZone=sLe;Vn.localeData=k2;Vn.isDuration=E9;Vn.monthsShort=lLe;Vn.weekdaysMin=fLe;Vn.defineLocale=Hz;Vn.updateLocale=sPe;Vn.locales=oPe;Vn.weekdaysShort=uLe;Vn.normalizeUnits=kd;Vn.relativeTimeRounding=BLe;Vn.relativeTimeThreshold=ULe;Vn.calendarFormat=nke;Vn.prototype=En;Vn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const jLe=()=>window.innerWidth<599,HLe=t=>t===""||t===null||t===void 0,xr=t=>{try{if(!HLe(t)){const e=Number(t),n=Math.round(e).toFixed(2);return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:0}).format(n)}return""}catch{return""}},Vhe=t=>!t||t===""?!1:/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(t.toUpperCase()),I3=t=>{if(typeof t!="string")return!1;const e=t.trim();return/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e)},Zm=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},O2=()=>{const t=JSON.parse(localStorage.getItem(d9));return t&&t!==""?t:JSON.parse(localStorage.getItem(EN))},uy=t=>{const e=localStorage.getItem(t);return e!==null?JSON.parse(e):null},FA=()=>uy(S0)?.role?.toLowerCase(),GLe=()=>uy(S0)?.userId?.toLowerCase(),PV=(t,e)=>{localStorage.setItem(t,e)},jhe=t=>localStorage.getItem(t),$o=(t,e)=>{try{return t!==""&&t!==void 0&&t!==null?Vn(t,O0e).format(e):""}catch{return""}},zLe=t=>{try{return t===L0e?new Date(Vn().toDate()):new Date(Vn(t,O0e).toDate())}catch{return""}},kV=t=>{const e=new Date(t),n=new Date;let r=n.getFullYear()-e.getFullYear();const i=n.getMonth()-e.getMonth();return(i<0||i===0&&n.getDate()<e.getDate())&&r--,r},$Le=t=>{if(!t)return!1;const e=t.trim().toUpperCase();return/^([A-Z]\d{7}|[A-Z]{2}\d{6})$/.test(e)},Hhe=t=>t?.replace(/_/g," ").toLowerCase().replace(/(^|\s)\S/g,e=>e.toUpperCase())??"",Ghe="%[a-f0-9]{2}",rte=new RegExp("("+Ghe+")|([^%]+?)","gi"),ite=new RegExp("("+Ghe+")+","gi");function LV(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;e=e||1;const n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],LV(n),LV(r))}function qLe(t){try{return decodeURIComponent(t)}catch{let e=t.match(rte)||[];for(let n=1;n<e.length;n++)t=LV(e,n).join(""),e=t.match(rte)||[];return t}}function WLe(t){const e={"%FE%FF":"��","%FF%FE":"��"};let n=ite.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{const i=qLe(n[0]);i!==n[0]&&(e[n[0]]=i)}n=ite.exec(t)}e["%C2"]="�";const r=Object.keys(e);for(const i of r)t=t.replace(new RegExp(i,"g"),e[i]);return t}function ZLe(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return WLe(t)}}function YLe(t,e){const n={};if(Array.isArray(e))for(const r of e){const i=Object.getOwnPropertyDescriptor(t,r);i?.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,r);
22if(i.enumerable){const a=t[r];e(r,a,t)&&Object.defineProperty(n,r,i)}}return n}function zhe(t,e){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||e==="")return[];const n=t.indexOf(e);return n===-1?[]:[t.slice(0,n),t.slice(n+e.length)]}const XLe=t=>t==null,QLe=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),OV=Symbol("encodeFragmentIdentifier");function KLe(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[Bo(e,t),"[",i,"]"].join("")]:[...n,[Bo(e,t),"[",Bo(i,t),"]=",Bo(r,t)].join("")]};case"bracket":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[Bo(e,t),"[]"].join("")]:[...n,[Bo(e,t),"[]=",Bo(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[Bo(e,t),":list="].join("")]:[...n,[Bo(e,t),":list=",Bo(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e=t.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[Bo(n,t),e,Bo(i,t)].join("")]:[[r,Bo(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,Bo(e,t)]:[...n,[Bo(e,t),"=",Bo(r,t)].join("")]}}function JLe(t){let e;switch(t.arrayFormat){case"index":return(n,r,i)=>{if(e=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!e){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][e[1]]=r};case"bracket":return(n,r,i)=>{if(e=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!e){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(e=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!e){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const s=typeof r=="string"&&r.includes(t.arrayFormatSeparator)?r.split(t.arrayFormatSeparator).map(o=>wv(o,t)):r===null?r:wv(r,t);i[n]=s};case"bracket-separator":return(n,r,i)=>{const a=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!a){i[n]=r&&wv(r,t);return}const s=r===null?[]:wv(r,t).split(t.arrayFormatSeparator);if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function $he(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Bo(t,e){return e.encode?e.strict?QLe(t):encodeURIComponent(t):t}function wv(t,e){return e.decode?ZLe(t):t}function qhe(t){return Array.isArray(t)?t.sort():typeof t=="object"?qhe(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function Whe(t){const e=t.indexOf("#");
22return e!==-1&&(t=t.slice(0,e)),t}function eOe(t){let e="";const n=t.indexOf("#");return n!==-1&&(e=t.slice(n)),e}function ate(t,e,n){return n==="string"&&typeof t=="string"?t:typeof n=="function"&&typeof t=="string"?n(t):n==="boolean"&&t===null?!0:n==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":n==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":n==="string[]"&&e.arrayFormat!=="none"&&typeof t=="string"?[t]:n==="number[]"&&e.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:n==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function Qz(t){t=Whe(t);const e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function Kz(t,e){e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...e},$he(e.arrayFormatSeparator);const n=JLe(e),r=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return r;for(const i of t.split("&")){if(i==="")continue;const a=e.decode?i.replaceAll("+"," "):i;let[s,o]=zhe(a,"=");s===void 0&&(s=a),o=o===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:wv(o,e),n(wv(s,e),o,r)}for(const[i,a]of Object.entries(r))if(typeof a=="object"&&a!==null&&e.types[i]!=="string")for(const[s,o]of Object.entries(a)){const l=e.types[i],c=typeof l=="function"?l:l?l.replace("[]",""):void 0;a[s]=ate(o,e,c)}else typeof a=="object"&&a!==null&&e.types[i]==="string"?r[i]=Object.values(a).join(e.arrayFormatSeparator):r[i]=ate(a,e,e.types[i]);return e.sort===!1?r:(e.sort===!0?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((i,a)=>{const s=r[a];return i[a]=s&&typeof s=="object"&&!Array.isArray(s)?qhe(s):s,i},Object.create(null))}function Zhe(t,e){if(!t)return"";e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e},$he(e.arrayFormatSeparator);const n=s=>e.skipNull&&XLe(t[s])||e.skipEmptyString&&t[s]==="",r=KLe(e),i={};for(const[s,o]of Object.entries(t))n(s)||(i[s]=o);const a=Object.keys(i);return e.sort!==!1&&a.sort(e.sort),a.map(s=>{let o=t[s];if(e.replacer&&(o=e.replacer(s,o),o===void 0)||o===void 0)return"";if(o===null)return Bo(s,e);if(Array.isArray(o)){if(o.length===0&&e.arrayFormat==="bracket-separator")return Bo(s,e)+"[]";let l=o;return e.replacer&&(l=o.map((c,u)=>e.replacer(`${s}[${u}]`,c)).filter(c=>c!==void 0)),l.reduce(r(s),[]).join("&")}return Bo(s,e)+"="+Bo(o,e)}).filter(s=>s.length>0).join("&")}function Yhe(t,e){e={decode:!0,...e};let[n,r]=zhe(t,"#");return n===void 0&&(n=t),{url:n?.split("?")?.[0]??"",query:Kz(Qz(t),e),...e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:wv(r,e)}:{}}}function Xhe(t,e){e={encode:!0,strict:!0,[OV]:!0,...e};const n=Whe(t.url).split("?")[0]||"",r=Qz(t.url),i={...Kz(r,{sort:!1,...e}),...t.query};let a=Zhe(i,e);a&&=`?${a}`;let s=eOe(t.url);if(typeof t.fragmentIdentifier=="string"){const o=new URL(n);o.hash=t.fragmentIdentifier,s=e[OV]?o.hash:`#${t.fragmentIdentifier}`}return`${n}${a}${s}`}function Qhe(t,e,n){n={parseFragmentIdentifier:!0,[OV]:!1,...n};const{url:r,query:i,fragmentIdentifier:a}=Yhe(t,n);return Xhe({url:r,query:YLe(i,e),fragmentIdentifier:a},n)}function tOe(t,e,n){const r=Array.isArray(e)?i=>!e.includes(i):(i,a)=>!e(i,a);return Qhe(t,r,n)}const nOe=Object.freeze(Object.defineProperty({__proto__:null,exclude:tOe,extract:Qz,parse:Kz,parseUrl:Yhe,pick:Qhe,stringify:Zhe,stringifyUrl:Xhe},Symbol.toStringTag,{value:"Module"}));var ac=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},vu={searchParams:"URLSearchParams"in ac,iterable:"Symbol"in ac&&"iterator"in Symbol,blob:"FileReader"in ac&&"Blob"in ac&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in ac,arrayBuffer:"ArrayBuffer"in ac};function rOe(t){return t&&DataView.prototype.isPrototypeOf(t)}if(vu.arrayBuffer)var iOe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
22]"],aOe=ArrayBuffer.isView||function(t){return t&&iOe.indexOf(Object.prototype.toString.call(t))>-1};function r6(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Jz(t){return typeof t!="string"&&(t=String(t)),t}function e$(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return vu.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Qo(t){this.map={},t instanceof Qo?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Qo.prototype.append=function(t,e){t=r6(t),e=Jz(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};Qo.prototype.delete=function(t){delete this.map[r6(t)]};Qo.prototype.get=function(t){return t=r6(t),this.has(t)?this.map[t]:null};Qo.prototype.has=function(t){return this.map.hasOwnProperty(r6(t))};Qo.prototype.set=function(t,e){this.map[r6(t)]=Jz(e)};Qo.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};Qo.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),e$(t)};Qo.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),e$(t)};Qo.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),e$(t)};vu.iterable&&(Qo.prototype[Symbol.iterator]=Qo.prototype.entries);function RF(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Khe(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function sOe(t){var e=new FileReader,n=Khe(e);return e.readAsArrayBuffer(t),n}function oOe(t){var e=new FileReader,n=Khe(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}function lOe(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function ste(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Jhe(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:vu.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:vu.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:vu.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():vu.arrayBuffer&&vu.blob&&rOe(t)?(this._bodyArrayBuffer=ste(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):vu.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||aOe(t))?this._bodyArrayBuffer=ste(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):vu.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},vu.blob&&(this.blob=function(){var t=RF(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=RF(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(vu.blob)return this.blob().then(sOe);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=RF(this);if(t)return t;if(this._bodyBlob)return oOe(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(lOe(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},vu.formData&&(this.formData=function(){return this.text().then(fOe)}),this.json=function(){return this.text().then(JSON.parse)},this}var cOe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function uOe(t){var e=t.toUpperCase();return cOe.indexOf(e)>-1?e:t}function jg(t,e){if(!(this instanceof jg))throw new TypeError('Please use the "new" operator, this DOM object c
22onstructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof jg){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Qo(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Qo(e.headers)),this.method=uOe(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||(function(){if("AbortController"in ac){var a=new AbortController;return a.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}jg.prototype.clone=function(){return new jg(this,{body:this._bodyInit})};function fOe(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(a))}}),e}function dOe(t){var e=new Qo,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` 23`)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),a=i.shift().trim();if(a){var s=i.join(":").trim();try{e.append(a,s)}catch(o){console.warn("Response "+o.message)}}}),e}Jhe.call(jg.prototype);function Gh(t,e){if(!(this instanceof Gh))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Qo(e.headers),this.url=e.url||"",this._initBody(t)}Jhe.call(Gh.prototype);Gh.prototype.clone=function(){return new Gh(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Qo(this.headers),url:this.url})};Gh.error=function(){var t=new Gh(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var hOe=[301,302,303,307,308];Gh.redirect=function(t,e){if(hOe.indexOf(e)===-1)throw new RangeError("Invalid status code");return new Gh(null,{status:e,headers:{location:t}})};var jA=ac.DOMException;try{new jA}catch{jA=function(e,n){this.message=e,this.name=n;var r=Error(e);this.stack=r.stack},jA.prototype=Object.create(Error.prototype),jA.prototype.constructor=jA}function t$(t,e){return new Promise(function(n,r){var i=new jg(t,e);if(i.signal&&i.signal.aborted)return r(new jA("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var c={statusText:a.statusText,headers:dOe(a.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(a.status<200||a.status>599)?c.status=200:c.status=a.status,c.url="responseURL"in a?a.responseURL:c.headers.get("X-Request-URL");var u="response"in a?a.response:a.responseText;setTimeout(function(){n(new Gh(u,c))},0)},a.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){r(new jA("Aborted","AbortError"))},0)};function o(c){try{return c===""&&ac.location.href?ac.location.href:c}catch{return c}}if(a.open(i.method,o(i.url),!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(vu.blob?a.responseType="blob":vu.arrayBuffer&&(a.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Qo||ac.Headers&&e.headers instanceof ac.Headers)){var l=[];
23Object.getOwnPropertyNames(e.headers).forEach(function(c){l.push(r6(c)),a.setRequestHeader(c,Jz(e.headers[c]))}),i.headers.forEach(function(c,u){l.indexOf(u)===-1&&a.setRequestHeader(u,c)})}else i.headers.forEach(function(c,u){a.setRequestHeader(u,c)});i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",s)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}t$.polyfill=!0;ac.fetch||(ac.fetch=t$,ac.Headers=Qo,ac.Request=jg,ac.Response=Gh);const pOe=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return jA},Headers:Qo,Request:jg,Response:Gh,fetch:t$},Symbol.toStringTag,{value:"Module"})),mOe=hce(pOe);var DF,ote;function AOe(){return ote||(ote=1,DF=(function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)})([(function(t,e,n){var r=n(1),i=typeof importScripts=="function";t.exports=r(i?self:window)}),(function(t,e,n){function r(s){if(Array.isArray(s)){for(var o=0,l=Array(s.length);o<s.length;o++)l[o]=s[o];return l}else return Array.from(s)}var i=[];function a(s){for(var o=arguments.length,l=Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];var u=i.reduce(function(h,p){return[p].concat(h)},[]),f=Promise.resolve(l);return u.forEach(function(h){var p=h.request,A=h.requestError;(p||A)&&(f=f.then(function(g){return p.apply(void 0,r(g))},A))}),f=f.then(function(h){var p=new(Function.prototype.bind.apply(Request,[null].concat(r(h))));return s(p).then(function(A){return A.request=p,A}).catch(function(A){return A.request=p,Promise.reject(A)})}),u.forEach(function(h){var p=h.response,A=h.responseError;(p||A)&&(f=f.then(p,A))}),f}t.exports=function(o){if(!o.fetch)try{n(2)}catch{throw Error("No fetch available. Unable to register fetch-intercept")}return o.fetch=(function(l){return function(){for(var c=arguments.length,u=Array(c),f=0;f<c;f++)u[f]=arguments[f];return a.apply(void 0,[l].concat(u))}})(o.fetch),{register:function(c){return i.push(c),function(){var u=i.indexOf(c);u>=0&&i.splice(u,1)}},clear:function(){i=[]}}}}),(function(t,e){t.exports=mOe})])),DF}var gOe=AOe();const xOe=fT(gOe),DT="www.ivsource.com",vOe="u8sYp8dX3Lk9Q2mF7rT1vWcZx4aB6nHjKp9sDfGhJkL=",n$=!0;async function e1e(){const t=Uint8Array.from(atob(vOe),e=>e.charCodeAt(0));return crypto.subtle.importKey("raw",t,{name:"AES-GCM"},!1,["encrypt","decrypt"])}async function t1e(t){const e=await e1e(),n=crypto.getRandomValues(new Uint8Array(12)),r=new TextEncoder().encode(t),i=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},e,r),a=new Uint8Array(n.byteLength+i.byteLength);return a.set(n,0),a.set(new Uint8Array(i),n.byteLength),btoa(String.fromCharCode(...a))}async function r$(t){const e=await e1e(),n=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=n.slice(0,12),i=n.slice(12),a=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,i);return new TextDecoder().decode(a)}const yOe=()=>{xOe.register({request(t,e){return[t,e]},requestError(t){return Promise.reject(t)},response(t){return!t.ok&&t.status===401&&(localStorage.clear(),window.location.href=Zn.LOGIN),t},responseError(t){return Promise.reject(t)}})};function i$(t){if(t)return nOe.stringify(t)}const El=async(t,e,n)=>{const r=i$(e);let i=t;r&&(i+=`?${r}`);const a=await t1e(JSON.stringify(n)),s=await fetch(i,{method:"POST",body:a,headers:new Headers({"Content-Type":"application/json","X-Tenant-Host":DT,Authorization:`Bearer ${O2()}`,isEnc:String(n$)})});{const o=await s.json(),l=await r$(o.payload);return JSON.parse(l)}},Ly=async(t,e,n)=>{const r=await t1e(JSON.stringify(n)),i=await fetch(t,{method:"POST",body:r,headers:new Headers({"Content-Type":"application/json","X-Tenant-Host":DT,isEnc:String(n$)})});{const a=await i.json(),s=await r$(a.payload);return JSON.parse(s)}},Rf=async(t,e)=>{const n=i$(e);let r=t;return n&&(r+=`?${n}`),(await fetch(r,{method:"GET",headers:new Headers({"Content-Type":"application/json","X-Tenant-Host":DT,Authorization:`Bearer ${O2()}`})})).json()},_Oe=async(t,e)=>{const n=i$(e);let r=t;return n&&(r+=`?${n}`),(await fetch(r,{method:"DELETE",headers:new Headers({"Content-Type":"application/json","X-Tenant-Host":DT,Authorization:`Bearer ${O2()}`})})).json()},n1e=async(t,e,n)=>{const r=await fetch(t,{method:"PUT",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json","X-Tenant-Host":DT,Authorization:`Bearer ${O2()}`,isEnc:String(n$)})});
23{const i=await r.json(),a=await r$(i.payload);return JSON.parse(a)}},bOe=t=>{const e=localStorage.getItem(t);return e!==null?JSON.parse(e):null},xP="https://www.ivsource.com",wOe=async(t,e)=>{try{return await Ly(`${xP}/ivs/login`,void 0,{email:t,password:e})}catch(n){return console.log(n),n}},SOe=async t=>{try{return await Ly(`${xP}/ivs/verify-mfa`,void 0,t)}catch(e){return console.log(e),e}},TOe=async t=>{try{return await Ly(`${xP}/api/reset/request-reset-otp`,void 0,{email:t})}catch(e){return console.log(e),e}},EOe=async t=>{try{return await Ly(`${xP}/api/reset/reset-password`,void 0,t)}catch(e){return console.log(e),e}};function go(t){const e=Dn.c(4),{isLoading:n}=t;let r;e[0]!==n?(r=n&&x.jsx(ql.div,{className:"fixed py-0 inset-0 z-50 flex items-center justify-center bg-black/70 bg-opacity-60",role:"dialog","aria-modal":"true",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:x.jsx(ql.div,{className:"bg-white rounded-xl min-h-40 overflow-y-auto overflow-x-hidden max-h-full shadow-lg w-full max-w-40 mx-4 absolute top-50 flex items-center justify-center",initial:{opacity:0,y:-80},animate:{opacity:1,y:0},exit:{opacity:0,y:-80},transition:{duration:.3,ease:"easeOut"},children:x.jsx("img",{src:"/images/loader.gif",alt:"Logo",width:80,height:80})})}),e[0]=n,e[1]=r):r=e[1];let i;return e[2]!==r?(i=x.jsx(Np,{children:r}),e[2]=r,e[3]=i):i=e[3],i}go.defaultProps={isLoading:!1};go.propTypes={isLoading:re.bool.isRequired};function Do(t){const e=Dn.c(19),{title:n,description:r,variant:i,showIcon:a,autoHideTime:s,onHide:o}=t,l=a===void 0?!0:a,c=s===void 0?5e3:s,u=o===void 0?MOe:o,[f,h]=b.useState(!0);let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{h(!1)},e[0]=p):p=e[0];const A=p;let g;e[1]!==c?(g=()=>{const L=setTimeout(A,c);return()=>clearTimeout(L)},e[1]=c,e[2]=g):g=e[2];let w;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=[],e[3]=w):w=e[3],b.useEffect(g,w);let T;e[4]!==u||e[5]!==f?(T=()=>{if(!f){const L=setTimeout(u,300);return()=>clearTimeout(L)}},e[4]=u,e[5]=f,e[6]=T):T=e[6];let C;e[7]!==f?(C=[f],e[7]=f,e[8]=C):C=e[8],b.useEffect(T,C);let M;e[9]!==l||e[10]!==i?(M=()=>{if(!l)return null;switch(i){case"success":return x.jsx(_T,{color:"green",className:"text-[32px] sm:text-[48px]"});case"error":return x.jsx(qS,{color:"red",className:"text-[32px] sm:text-[48px]"});case"warning":return x.jsx(qS,{color:"yellow",className:"text-[32px] sm:text-[48px]"});default:return null}},e[9]=l,e[10]=i,e[11]=M):M=e[11];const D=M;let k;e[12]!==r||e[13]!==D||e[14]!==f||e[15]!==n?(k=f&&x.jsxs(ql.div,{initial:{x:300,opacity:0},animate:{x:0,opacity:1},exit:{x:300,opacity:0},transition:{type:"spring",stiffness:400,damping:15},className:`fixed z-[9999] flex items-center p-3 rounded-xl shadow-md bg-white dark:bg-gray-800 border-[11px] border-blue-100 dark:border-gray-600 24 right-4 top-1 w-[450px] max-w-full sm:rounded-xl 25 sm:right-4 sm:top-4 26 sm:w-[400px] 27 sm:border-[2px] 28 sm:p-3 29 sm:shadow-md 30 sm:z-[9999] 31 sm:flex 32 sm:items-center 33 sm:justify-start 34 sm:gap-1 35 max-sm:left-0 max-sm:right-0 max-sm:top-0 max-sm:w-full max-sm:rounded-none`,children:[D(),x.jsxs("div",{className:"px-4",children:[x.jsx("h2",{className:"text-lg sm:text-xl font-semibold mb-1 text-gray-800 dark:text-white",children:n}),x.jsx("p",{className:"text-sm sm:text-base text-gray-600 dark:text-gray-300",children:r})]}),x.jsx("div",{children:x.jsx(rx,{className:"text-blue-800 dark:text-gray-300 text-2xl absolute right-2 top-4 cursor-pointer",onClick:A})})]}),e[12]=r,e[13]=D,e[14]=f,e[15]=n,e[16]=k):k=e[16];let I;return e[17]!==k?(I=x.jsx(Np,{children:k}),e[17]=k,e[18]=I):I=e[18],I}function MOe(){}var r1e;function zn(){return r1e.apply(null,arguments)}function COe(t){r1e=t}function zh(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function qv(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function la(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a$(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;
35for(e in t)if(la(t,e))return!1;return!0}function l0(t){return t===void 0}function _2(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function PT(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function i1e(t,e){var n=[],r,i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function ig(t,e){for(var n in e)la(e,n)&&(t[n]=e[n]);return la(e,"toString")&&(t.toString=e.toString),la(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Pp(t,e,n,r){return M1e(t,e,n,r,!0).utc()}function NOe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ci(t){return t._pf==null&&(t._pf=NOe()),t._pf}var FV;Array.prototype.some?FV=Array.prototype.some:FV=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function s$(t){var e=null,n=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=ci(t),n=FV.call(e.parsedDateParts,function(i){return i!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function vP(t){var e=Pp(NaN);return t!=null?ig(ci(e),t):ci(e).userInvalidated=!0,e}var lte=zn.momentProperties=[],PF=!1;function o$(t,e){var n,r,i,a=lte.length;if(l0(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l0(e._i)||(t._i=e._i),l0(e._f)||(t._f=e._f),l0(e._l)||(t._l=e._l),l0(e._strict)||(t._strict=e._strict),l0(e._tzm)||(t._tzm=e._tzm),l0(e._isUTC)||(t._isUTC=e._isUTC),l0(e._offset)||(t._offset=e._offset),l0(e._pf)||(t._pf=ci(e)),l0(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)r=lte[n],i=e[r],l0(i)||(t[r]=i);return t}function kT(t){o$(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),PF===!1&&(PF=!0,zn.updateOffset(this),PF=!1)}function $h(t){return t instanceof kT||t!=null&&t._isAMomentObject!=null}function a1e(t){zn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Ld(t,e){var n=!0;return ig(function(){if(zn.deprecationHandler!=null&&zn.deprecationHandler(null,t),n){var r=[],i,a,s,o=arguments.length;for(a=0;a<o;a++){if(i="",typeof arguments[a]=="object"){i+=` 36[`+a+"] ";for(s in arguments[0])la(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}a1e(t+` 37Arguments: `+Array.prototype.slice.call(r).join("")+` 38`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var cte={};function s1e(t,e){zn.deprecationHandler!=null&&zn.deprecationHandler(t,e),cte[t]||(a1e(e),cte[t]=!0)}zn.suppressDeprecationWarnings=!1;zn.deprecationHandler=null;function kp(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function ROe(t){var e,n;for(n in t)la(t,n)&&(e=t[n],kp(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function IV(t,e){var n=ig({},t),r;for(r in e)la(e,r)&&(qv(t[r])&&qv(e[r])?(n[r]={},ig(n[r],t[r]),ig(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)la(t,r)&&!la(e,r)&&qv(t[r])&&(n[r]=ig({},n[r]));return n}function l$(t){t!=null&&this.set(t)}var BV;Object.keys?BV=Object.keys:BV=function(t){var e,n=[];for(e in t)la(t,e)&&n.push(e);return n};var DOe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function POe(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return kp(r)?r.call(e,n):r}function vp(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var c$=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 10,808 bytes, line 38
38|x|X|zz?|ZZ?|.)/g,WM=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kF={},o3={};function Er(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(o3[t]=i),e&&(o3[e[0]]=function(){return vp(i.apply(this,arguments),e[1],e[2])}),n&&(o3[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function kOe(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function LOe(t){var e=t.match(c$),n,r;for(n=0,r=e.length;n<r;n++)o3[e[n]]?e[n]=o3[e[n]]:e[n]=kOe(e[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=kp(e[s])?e[s].call(i,t):e[s];return a}}function C9(t,e){return t.isValid()?(e=o1e(e,t.localeData()),kF[e]=kF[e]||LOe(e),kF[e](t)):t.localeData().invalidDate()}function o1e(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(WM.lastIndex=0;n>=0&&WM.test(t);)t=t.replace(WM,r),WM.lastIndex=0,n-=1;return t}var OOe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function FOe(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(c$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var IOe="Invalid date";function BOe(){return this._invalidDate}var UOe="%d",VOe=/\d{1,2}/;function jOe(t){return this._ordinal.replace("%d",t)}var HOe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function GOe(t,e,n,r){var i=this._relativeTime[n];return kp(i)?i(t,e,n,r):i.replace(/%d/i,t)}function zOe(t,e){var n=this._relativeTime[t>0?"future":"past"];return kp(n)?n(e):n.replace(/%s/i,e)}var ute={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Od(t){return typeof t=="string"?ute[t]||ute[t.toLowerCase()]:void 0}function u$(t){var e={},n,r;for(r in t)la(t,r)&&(n=Od(r),n&&(e[n]=t[r]));return e}var $Oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function qOe(t){var e=[],n;for(n in t)la(t,n)&&e.push({unit:n,priority:$Oe[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var l1e=/\d/,Df=/\d\d/,c1e=/\d{3}/,f$=/\d{4}/,yP=/[+-]?\d{6}/,Es=/\d\d?/,u1e=/\d\d\d\d?/,f1e=/\d\d\d\d\d\d?/,_P=/\d{1,3}/,d$=/\d{1,4}/,bP=/[+-]?\d{1,6}/,i6=/\d+/,wP=/[+-]?\d+/,WOe=/Z|[+-]\d\d:?\d\d/gi,SP=/Z|[+-]\d\d(?::?\d\d)?/gi,ZOe=/[+-]?\d+(\.\d{1,3})?/,LT=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,a6=/^[1-9]\d?/,h$=/^([1-9]\d|\d)/,GN;GN={};function Kn(t,e,n){GN[t]=kp(e)?e:function(r,i){return r&&n?n:e}}function YOe(t,e){return la(GN,t)?GN[t](e._strict,e._locale):new RegExp(XOe(t))}function XOe(t){return i2(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,a){return n||r||i||a}))}function i2(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ad(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Ii(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=ad(e)),n}var UV={};function Ya(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),_2(e)&&(r=function(a,s){s[e]=Ii(a)}),i=t.length,n=0;n<i;n++)UV[t[n]]=r}function OT(t,e){Ya(t,function(n,r,i,a){i._w=i._w||{},e(n,i._w,i,a)})}function QOe(t,e,n){e!=null&&la(UV,t)&&UV[t](e,n._a,n,t)}function TP(t){return t%4===0&&t%100!==0||t%400===0}var Jc=0,Ym=1,U1=2,xl=3,wh=4,Xm=5,Sv=6,KOe=7,JOe=8;Er("Y",0,0,function(){var t=this.year();return t<=9999?vp(t,4):"+"+t});Er(0,["YY",2],0,function(){return this.year()%100});Er(0,["YYYY",4],0,"year");Er(0,["YYYYY",5],0,"year");Er(0,["YYYYYY",6,!0],0,"year");Kn("Y",wP);Kn("YY",Es,Df);Kn("YYYY",d$,f$);Kn("YYYYY",bP,yP);Kn("YYYYYY",bP,yP);Ya(["YYYYY","YYYYYY"],Jc);Ya("YYYY",function(t,e){e[Jc]=t.length===2?zn.parseTwoDigitYear(t):Ii(t)});Ya("YY",function(t,e){e[Jc]=zn.parseTwoDigitYear(t)});Ya("Y",function(t,e){e[Jc]=parseInt(t,10)});function cS(t){return TP(t)?366:365}zn.parseTwoDigitYear=function(t){return Ii(t)+(Ii(t)>68?1900:2e3)};var d1e=s6("FullYear",!0);function eFe(){return TP(this.year())}function s6(t,e){return function(n){return n!=null?(h1e(this,t,n),zn.updateOffset(this,e),this):o5(this,t)}}function o5(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function h1e(t,e,n){var r,i,a,s,o;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=t.month(),o=t.date(),o=o===29&&s===1&&!TP(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function tFe(t){return t=Od(t),kp(this[t])?this[t]():this}function nFe(t,e){if(typeof t=="object"){t=u$(t);var n=qOe(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=Od(t),kp(this[t]))return this[t](e);return this}function rFe(t,e){return(t%e+e)%e}var So;Array.prototype.indexOf?So=Array.prototype.indexOf:So=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function p$(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=rFe(e,12);return t+=(e-n)/12,n===1?TP(t)?29:28:31-n%7%2}Er("M",["MM",2],"Mo",function(){return this.month()+1});Er("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});Er("MMMM",0,0,function(t){return this.localeData().months(this,t)});Kn("M",Es,a6);Kn("MM",Es,Df);Kn("MMM",function(t,e){return e.monthsShortRegex(t)});Kn("MMMM",function(t,e){return e.monthsRegex(t)});Ya(["M","MM"],function(t,e){e[Ym]=Ii(t)-1});Ya(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[Ym]=i:ci(n).invalidMonth=t});var iFe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),p1e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),m1e=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,aFe=LT,sFe=LT;function oFe(t,e){return t?zh(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||m1e).test(e)?"format":"standalone"][t.month()]:zh(this._months)?this._months:this._months.standalone}function lFe(t,e){return t?zh(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[m1e.test(e)?"format":"standalone"][t.month()]:zh(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function cFe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Pp([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?e==="MMM"?(i=So.call(this._shortMonthsParse,s),i!==-1?i:null):(i=So.call(this._longMonthsParse,s),i!==-1?i:null):e==="MMM"?(i=So.call(this._shortMonthsParse,s),i!==-1?i:(i=So.call(this._longMonthsParse,s),i!==-1?i:null)):(i=So.call(this._longMonthsParse,s),i!==-1?i:(i=So.call(this._shortMonthsParse,s),i!==-1?i:null))}function uFe(t,e,n){var r,i,a;if(this._monthsParseExact)return cFe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Pp([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function A1e(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Ii(e);else if(e=t.localeData().monthsParse(e),!_2(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,p$(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function g1e(t){return t!=null?(A1e(this,t),zn.updateOffset(this,!0),this):o5(this,"Month")}function fFe(){return p$(this.year(),this.month())}function dFe(t){return this._monthsParseExact?(la(this,"_monthsRegex")||x1e.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(la(this,"_monthsShortRegex")||(this._monthsShortRegex=aFe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function hFe(t){return this._monthsParseExact?(la(this,"_monthsRegex")||x1e.call(this),t?this._monthsStrictRegex:this._monthsRegex):(la(this,"_monthsRegex")||(this._monthsRegex=sFe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function x1e(){function t(l,c){return c.length-l.length}var e=[],n=[],r=[],i,a,s,o;for(i=0;i<12;i++)a=Pp([2e3,i]),s=i2(this.monthsShort(a,"")),o=i2(this.months(a,"")),e.push(s),n.push(o),r.push(o),r.push(s);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function pFe(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}function l5(t){var e,n;return t<100&&t>
38=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function zN(t,e,n){var r=7+e-n,i=(7+l5(t,0,r).getUTCDay()-e)%7;return-i+r-1}function v1e(t,e,n,r,i){var a=(7+n-r)%7,s=zN(t,r,i),o=1+7*(e-1)+a+s,l,c;return o<=0?(l=t-1,c=cS(l)+o):o>cS(t)?(l=t+1,c=o-cS(t)):(l=t,c=o),{year:l,dayOfYear:c}}function c5(t,e,n){var r=zN(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=t.year()-1,a=i+a2(s,e,n)):i>a2(t.year(),e,n)?(a=i-a2(t.year(),e,n),s=t.year()+1):(s=t.year(),a=i),{week:a,year:s}}function a2(t,e,n){var r=zN(t,e,n),i=zN(t+1,e,n);return(cS(t)-r+i)/7}Er("w",["ww",2],"wo","week");Er("W",["WW",2],"Wo","isoWeek");Kn("w",Es,a6);Kn("ww",Es,Df);Kn("W",Es,a6);Kn("WW",Es,Df);OT(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Ii(t)});function mFe(t){return c5(t,this._week.dow,this._week.doy).week}var AFe={dow:0,doy:6};function gFe(){return this._week.dow}function xFe(){return this._week.doy}function vFe(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function yFe(t){var e=c5(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}Er("d",0,"do","day");Er("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});Er("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});Er("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});Er("e",0,0,"weekday");Er("E",0,0,"isoWeekday");Kn("d",Es);Kn("e",Es);Kn("E",Es);Kn("dd",function(t,e){return e.weekdaysMinRegex(t)});Kn("ddd",function(t,e){return e.weekdaysShortRegex(t)});Kn("dddd",function(t,e){return e.weekdaysRegex(t)});OT(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:ci(n).invalidWeekday=t});OT(["d","e","E"],function(t,e,n,r){e[r]=Ii(t)});function _Fe(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),t
vendor: 14,525 bytes, line 38
38ypeof t=="number"?t:null):parseInt(t,10)}function bFe(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function m$(t,e){return t.slice(e,7).concat(t.slice(0,e))}var wFe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),y1e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),SFe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),TFe=LT,EFe=LT,MFe=LT;function CFe(t,e){var n=zh(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?m$(n,this._week.dow):t?n[t.day()]:n}function NFe(t){return t===!0?m$(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function RFe(t){return t===!0?m$(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function DFe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Pp([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?e==="dddd"?(i=So.call(this._weekdaysParse,s),i!==-1?i:null):e==="ddd"?(i=So.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=So.call(this._minWeekdaysParse,s),i!==-1?i:null):e==="dddd"?(i=So.call(this._weekdaysParse,s),i!==-1||(i=So.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=So.call(this._minWeekdaysParse,s),i!==-1?i:null)):e==="ddd"?(i=So.call(this._shortWeekdaysParse,s),i!==-1||(i=So.call(this._weekdaysParse,s),i!==-1)?i:(i=So.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=So.call(this._minWeekdaysParse,s),i!==-1||(i=So.call(this._weekdaysParse,s),i!==-1)?i:(i=So.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function PFe(t,e,n){var r,i,a;if(this._weekdaysParseExact)return DFe.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Pp([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function kFe(t){if(!this.isValid())return t!=null?this:NaN;var e=o5(this,"Day");return t!=null?(t=_Fe(t,this.localeData()),this.add(t-e,"d")):e}function LFe(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function OFe(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=bFe(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function FFe(t){return this._weekdaysParseExact?(la(this,"_weekdaysRegex")||A$.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(la(this,"_weekdaysRegex")||(this._weekdaysRegex=TFe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function IFe(t){return this._weekdaysParseExact?(la(this,"_weekdaysRegex")||A$.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(la(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=EFe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function BFe(t){return this._weekdaysParseExact?(la(this,"_weekdaysRegex")||A$.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(la(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=MFe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function A$(){function t(u,f){return f.length-u.length}var e=[],n=[],r=[],i=[],a,s,o,l,c;for(a=0;a<7;a++)s=Pp([2e3,1]).day(a),o=i2(this.weekdaysMin(s,"")),l=i2(this.weekdaysShort(s,"")),c=i2(this.weekdays(s,"")),e.push(o),n.push(l),r.push(c),i.push(o),i.push(l),i.push(c);e.sort(t),n.sort(t),r.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function g$(){return this.hours()%12||12}function UFe(){return this.hours()||24}Er("H",["HH",2],0,"hour");Er("h",["hh",2],0,g$);Er("k",["kk",2],0,UFe);Er("hmm",0,0,function(){return""+g$.apply(this)+vp(this.minutes(),2)});Er("hmmss",0,0,function(){return""+g$.apply(this)+vp(this.minutes(),2)+vp(this.seconds(),2)});Er("Hmm",0,0,function(){return""+this.hours()+vp(this.minutes(),2)});Er("Hmmss",0,0,function(){return""+this.hours()+vp(this.minutes(),2)+vp(this.seconds(),2)});function _1e(t,e){Er(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}_1e("a",!0);_1e("A",!1);function b1e(t,e){return e._meridiemParse}Kn("a",b1e);Kn("A",b1e);Kn("H",Es,h$);Kn("h",Es,a6);Kn("k",Es,a6);Kn("HH",Es,Df);Kn("hh",Es,Df);Kn("kk",Es,Df);Kn("hmm",u1e);Kn("hmmss",f1e);Kn("Hmm",u1e);Kn("Hmmss",f1e);Ya(["H","HH"],xl);Ya(["k","kk"],function(t,e,n){var r=Ii(t);e[xl]=r===24?0:r});Ya(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});Ya(["h","hh"],function(t,e,n){e[xl]=Ii(t),ci(n).bigHour=!0});Ya("hmm",function(t,e,n){var r=t.length-2;e[xl]=Ii(t.substr(0,r)),e[wh]=Ii(t.substr(r)),ci(n).bigHour=!0});Ya("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xl]=Ii(t.substr(0,r)),e[wh]=Ii(t.substr(r,2)),e[Xm]=Ii(t.substr(i)),ci(n).bigHour=!0});Ya("Hmm",function(t,e,n){var r=t.length-2;e[xl]=Ii(t.substr(0,r)),e[wh]=Ii(t.substr(r))});Ya("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[xl]=Ii(t.substr(0,r)),e[wh]=Ii(t.substr(r,2)),e[Xm]=Ii(t.substr(i))});function VFe(t){return(t+"").toLowerCase().charAt(0)==="p"}var jFe=/[ap]\.?m?\.?/i,HFe=s6("Hours",!0);function GFe(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var w1e={calendar:DOe,longDateFormat:OOe,invalidDate:IOe,ordinal:UOe,dayOfMonthOrdinalParse:VOe,relativeTime:HOe,months:iFe,monthsShort:p1e,week:AFe,weekdays:wFe,weekdaysMin:SFe,weekdaysShort:y1e,meridiemParse:jFe},Ps={},Rb={},u5;function zFe(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function fte(t){return t&&t.toLowerCase().replace("_","-")}function $Fe(t){for(var e=0,n,r,i,a;e<t.length;){for(a=fte(t[e]).split("-"),n=a.length,r=fte(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=EP(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&zFe(a,r)>=n-1)break;n--}e++}return u5}function qFe(t){return!!(t&&t.match("^[^/\\\\]*$"))}function EP(t){var e=null,n;if(Ps[t]===void 0&&typeof sy<"u"&&sy&&sy.exports&&qFe(t))try{e=u5._abbr,n=require,n("./locale/"+t),_g(e)}catch{Ps[t]=null}return Ps[t]}function _g(t,e){var n;return t&&(l0(e)?n=F2(t):n=x$(t,e),n?u5=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),u5._abbr}function x$(t,e){if(e!==null){var n,r=w1e;if(e.abbr=t,Ps[t]!=null)s1e("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ps[t]._config;else if(e.parentLocale!=null)if(Ps[e.parentLocale]!=null)r=Ps[e.parentLocale]._config;else if(n=EP(e.parentLocale),n!=null)r=n._config;else return Rb[e.parentLocale]||(Rb[e.parentLocale]=[]),Rb[e.parentLocale].push({name:t,config:e}),null;return Ps[t]=new l$(IV(r,e)),Rb[t]&&Rb[t].forEach(function(i){x$(i.name,i.config)}),_g(t),Ps[t]}else return delete Ps[t],null}function WFe(t,e){if(e!=null){var n,r,i=w1e;Ps[t]!=null&&Ps[t].parentLocale!=null?Ps[t].set(IV(Ps[t]._config,e)):(r=EP(t),r!=null&&(i=r._config),e=IV(i,e),r==null&&(e.abbr=t),n=new l$(e),n.parentLocale=Ps[t],Ps[t]=n),_g(t)}else Ps[t]!=null&&(Ps[t].parentLocale!=null?(Ps[t]=Ps[t].parentLocale,t===_g()&&_g(t)):Ps[t]!=null&&delete Ps[t]);return Ps[t]}function F2(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return u5;if(!zh(t)){if(e=EP(t),e)return e;t=[t]}return $Fe(t)}function ZFe(){return BV(Ps)}function v$(t){var e,n=t._a;return n&&ci(t).overflow===-2&&(e=n[Ym]<0||n[Ym]>11?Ym:n[U1]<1||n[U1]>p$(n[Jc],n[Ym])?U1:n[xl]<0||n[xl]>24||n[xl]===24&&(n[wh]!==0||n[Xm]!==0||n[Sv]!==0)?xl:n[wh]<0||n[wh]>59?wh:n[Xm]<0||n[Xm]>59?Xm:n[Sv]<0||n[Sv]>999?Sv:-1,ci(t)._overflowDayOfYear&&(e<Jc||e>U1)&&(e=U1),ci(t)._overflowWeeks&&e===-1&&(e=KOe),ci(t)._overflowWeekday&&e===-1&&(e=JOe),ci(t).overflow=e),t}var YFe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,XFe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,QFe=/Z|[+-]\d\d(?::?\d\d)?/,ZM=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],LF=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],KFe=/^\/?Date\((-?\d+)/i,JFe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,eIe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function S1e(t){var e,n,r=t._i,i=YFe.exec(r)||XFe.exec(r),a,s,o,l,c=ZM.length,u=LF.length;if(i){for(ci(t).iso=!0,e=0,n=c;e<n;e++)if(ZM[e][1].exec(i[1])){s=ZM[e][0],a=ZM[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(i[3]){for(e=0,n=u;e<n;e++)if(LF[e][1].exec(i[3])){o=(i[2]||" ")+LF[e][0];break}if(o==null){t._isValid=!1;return}}if(!a&&o!=null){t._isValid=!1;return}if(i[4])if(QFe.exec(i[4]))l="Z";else{t._isValid=!1;return}t._f=s+(o||"")+(l||""),_$(t)}else t._isValid=!1}function tIe(t,e,n,r,i,a){var s=[nIe(t),p1e.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function nIe(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function rIe(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function iIe(t,e,n){if(t){var r=y1e.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return ci(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function aIe(t,e,n){if(t)return eIe[t];if(e)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function T1e(t){var e=JFe.exec(rIe(t._i)),n;if(e){if(n=tIe(e[4],e[3],e[2],e[5],e[6],e[7]),!iIe(e[1],n,t))return;t._a=n,t._tzm=aIe(e[8],e[9],e[10]),t._d=l5.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),ci(t).rfc2822=!0}else t._isValid=!1}function sIe(t){var e=KFe.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(S1e(t),t._isValid===!1)delete t._isValid;else return;if(T1e(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:zn.createFromInputFallback(t)}zn.createFromInputFallback=Ld("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function C8(t,e,n){return t??e??n}function oIe(t){var e=new Date(zn.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function y$(t){var e,n,r=[],i,a,s;if(!t._d){for(i=oIe(t),t._w&&t._a[U1]==null&&t._a[Ym]==null&&lIe(t),t._dayOfYear!=null&&(s=C8(t._a[Jc],i[Jc]),(t._dayOfYear>cS(s)||t._dayOfYear===0)&&(ci(t)._overflowDayOfYear=!0),n=l5(s,0,t._dayOfYear),t._a[Ym]=n.getUTCMonth(),t._a[U1]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[xl]===24&&t._a[wh]===0&&t._a[Xm]===0&&t._a[Sv]===0&&(t._nextDay=!0,t._a[xl]=0),t._d=(t._useUTC?l5:pFe).apply(null,r),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xl]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==a&&(ci(t).weekdayMismatch=!0)}}function lIe(t){var e,n,r,i,a,s,o,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(a=1,s=4,n=C8(e.GG,t._a[Jc],c5(ws(),1,4).year),r=C8(e.W,1),i=C8(e.E,1),(i<1||i>7)&&(l=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,c=c5(ws(),a,s),n=C8(e.gg,t._a[Jc],c.year),r=C8(e.w,c.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+a,(e.e<0||e.e>6)&&(l=!0)):i=a),r<1||r>a2(n,a,s)?ci(t)._overflowWeeks=!0:l!=null?ci(t)._overflowWeekday=!0:(o=v1e(n,r,i,a,s),t._a[Jc]=o.year,t._dayOfYear=o.dayOfYear)}zn.ISO_8601=function(){};zn.RFC_2822=function(){};function _$(t){if(t._f===zn.ISO_8601){S1e(t);return}if(t._f===zn.RFC_2822){T1e(t);return}t._a=[],ci(t).empty=!0;var e=""+t._i,n,r,i,a,s,o=e.length,l=0,c,u;for(i=o1e(t._f,t._locale).match(c$)||[],u=i.length,n=0;n<u;n++)a=i[n],r=(e.match(YOe(a,t))||[])[0],r&&(s=e.substr(0,e.indexOf(r)),s.length>0&&ci(t).unusedInput.push(s),e=e.slice(e.indexOf(r)+r.length),l+=r.length),o3[a]?(r?ci(t).empty=!1:ci(t).unusedTokens.push(a),QOe(a,r,t)):t._strict&&!r&&ci(t).unusedTokens.push(a);ci(t).charsLeftOver=o-l,e.length>0&&ci(t).unusedInput.push(e),t._a[xl]<=12&&ci(t).bigHour===!0&&t._a[xl]>0&&(ci(t).bigHour=void 0),ci(t).parsedDateParts=t._a.slice(0),ci(t).meridiem=t._meridiem,t._a[xl]=cIe(t._locale,t._a[xl],t._meridiem),c=ci(t).era,c!==null&&(t._a[Jc]=t._locale.erasConvertYear(c,t._a[Jc])),y$(t),v$(t)}function cIe(t,e,n){var r;
vendor: 5,096 bytes, line 38
38return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function uIe(t){var e,n,r,i,a,s,o=!1,l=t._f.length;if(l===0){ci(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<l;i++)a=0,s=!1,e=o$({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],_$(e),s$(e)&&(s=!0),a+=ci(e).charsLeftOver,a+=ci(e).unusedTokens.length*10,ci(e).score=a,o?a<r&&(r=a,n=e):(r==null||a<r||s)&&(r=a,n=e,s&&(o=!0));ig(t,n||e)}function fIe(t){if(!t._d){var e=u$(t._i),n=e.day===void 0?e.date:e.day;t._a=i1e([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),y$(t)}}function dIe(t){var e=new kT(v$(E1e(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function E1e(t){var e=t._i,n=t._f;return t._locale=t._locale||F2(t._l),e===null||n===void 0&&e===""?vP({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),$h(e)?new kT(v$(e)):(PT(e)?t._d=e:zh(n)?uIe(t):n?_$(t):hIe(t),s$(t)||(t._d=null),t))}function hIe(t){var e=t._i;l0(e)?t._d=new Date(zn.now()):PT(e)?t._d=new Date(e.valueOf()):typeof e=="string"?sIe(t):zh(e)?(t._a=i1e(e.slice(0),function(n){return parseInt(n,10)}),y$(t)):qv(e)?fIe(t):_2(e)?t._d=new Date(e):zn.createFromInputFallback(t)}function M1e(t,e,n,r,i){var a={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(qv(t)&&a$(t)||zh(t)&&t.length===0)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,dIe(a)}function ws(t,e,n,r){return M1e(t,e,n,r,!1)}var pIe=Ld("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ws.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:vP()}),mIe=Ld("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ws.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:vP()});function C1e(t,e){var n,r;if(e.length===1&&zh(e[0])&&(e=e[0]),!e.length)return ws();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function AIe(){var t=[].slice.call(arguments,0);return C1e("isBefore",t)}function gIe(){var t=[].slice.call(arguments,0);return C1e("isAfter",t)}var xIe=function(){return Date.now?Date.now():+new Date},Db=["year","quarter","month","week","day","hour","minute","second","millisecond"];function vIe(t){var e,n=!1,r,i=Db.length;for(e in t)if(la(t,e)&&!(So.call(Db,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[Db[r]]){if(n)return!1;parseFloat(t[Db[r]])!==Ii(t[Db[r]])&&(n=!0)}return!0}function yIe(){return this._isValid}function _Ie(){return Jh(NaN)}function MP(t){var e=u$(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=vIe(e),this._milliseconds=+u+c*1e3+l*6e4+o*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=F2(),this._bubble()}function N9(t){return t instanceof MP}function VV(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function bIe(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0,s;for(s=0;s<r;s++)Ii(t[s])!==Ii(e[s])&&a++;return a+i}function N1e(t,e){Er(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+vp(~~(n/60),2)+e+vp(~~n%60,2)})}N1e("Z",":");N1e("ZZ","");Kn("Z",SP);Kn("ZZ",SP);Ya(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=b$(SP,t)});var wIe=/([\+\-]|\d\d)/gi;function b$(t,e){var n=(e||"").match(t),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(wIe)||["-",0,0],a=+(i[1]*60)+Ii(i[2]),a===0?0:i[0]==="+"?a:-a)}function w$(t,e){var n,r;return e._isUTC?(n=e.clone(),r=($h(t)||PT(t)?t.valueOf():ws(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),zn.updateOffset(n,!1),n):ws(t).local()}function jV(t){return-Math.round(t._d.getTimezoneOffset())}zn.updateOffset=function(){};function SIe(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=b$(SP,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=jV(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?P1e(this,Jh(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,zn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:jV(this)}function TIe(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function EIe(t){return this.utcOffset(0,t)}function MIe(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(jV(this),"m")),this}function CIe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=b$(WOe,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function NIe(t){return this.isValid()?(t=t?ws(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function RIe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}
vendor: 9,968 bytes, line 38
38function DIe(){if(!l0(this._isDSTShifted))return this._isDSTShifted;var t={},e;return o$(t,this),t=E1e(t),t._a?(e=t._isUTC?Pp(t._a):ws(t._a),this._isDSTShifted=this.isValid()&&bIe(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function PIe(){return this.isValid()?!this._isUTC:!1}function kIe(){return this.isValid()?this._isUTC:!1}function R1e(){return this.isValid()?this._isUTC&&this._offset===0:!1}var LIe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,OIe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jh(t,e){var n=t,r=null,i,a,s;return N9(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:_2(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=LIe.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:Ii(r[U1])*i,h:Ii(r[xl])*i,m:Ii(r[wh])*i,s:Ii(r[Xm])*i,ms:Ii(VV(r[Sv]*1e3))*i}):(r=OIe.exec(t))?(i=r[1]==="-"?-1:1,n={y:Fx(r[2],i),M:Fx(r[3],i),w:Fx(r[4],i),d:Fx(r[5],i),h:Fx(r[6],i),m:Fx(r[7],i),s:Fx(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=FIe(ws(n.from),ws(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new MP(n),N9(t)&&la(t,"_locale")&&(a._locale=t._locale),N9(t)&&la(t,"_isValid")&&(a._isValid=t._isValid),a}Jh.fn=MP.prototype;Jh.invalid=_Ie;function Fx(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function dte(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function FIe(t,e){var n;return t.isValid()&&e.isValid()?(e=w$(e,t),t.isBefore(e)?n=dte(t,e):(n=dte(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function D1e(t,e){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(s1e(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Jh(n,r),P1e(this,i,t),this}}function P1e(t,e,n,r){var i=e._milliseconds,a=VV(e._days),s=VV(e._months);t.isValid()&&(r=r??!0,s&&A1e(t,o5(t,"Month")+s*n),a&&h1e(t,"Date",o5(t,"Date")+a*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&zn.updateOffset(t,a||s))}var IIe=D1e(1,"add"),BIe=D1e(-1,"subtract");function k1e(t){return typeof t=="string"||t instanceof String}function UIe(t){return $h(t)||PT(t)||k1e(t)||_2(t)||jIe(t)||VIe(t)||t===null||t===void 0}function VIe(t){var e=qv(t)&&!a$(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||la(t,a);return e&&n}function jIe(t){var e=zh(t),n=!1;return e&&(n=t.filter(function(r){return!_2(r)&&k1e(t)}).length===0),e&&n}function HIe(t){var e=qv(t)&&!a$(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||la(t,a);return e&&n}function GIe(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zIe(t,e){arguments.length===1&&(arguments[0]?UIe(arguments[0])?(t=arguments[0],e=void 0):HIe(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||ws(),r=w$(n,this).startOf("day"),i=zn.calendarFormat(this,r)||"sameElse",a=e&&(kp(e[i])?e[i].call(this,n):e[i]);return this.format(a||this.localeData().calendar(i,this,ws(n)))}function $Ie(){return new kT(this)}function qIe(t,e){var n=$h(t)?t:ws(t);return this.isValid()&&n.isValid()?(e=Od(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function WIe(t,e){var n=$h(t)?t:ws(t);return this.isValid()&&n.isValid()?(e=Od(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function ZIe(t,e,n,r){var i=$h(t)?t:ws(t),a=$h(e)?e:ws(e);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function YIe(t,e){var n=$h(t)?t:ws(t),r;return this.isValid()&&n.isValid()?(e=Od(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function XIe(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function QIe(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function KIe(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(r=w$(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=Od(e),e){case"year":a=R9(this,r)/12;break;case"month":a=R9(this,r);break;case"quarter":a=R9(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ad(a)}function R9(t,e){if(t.date()<e.date())return-R9(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,a;return e-r<0?(i=t.clone().add(n-1,"months"),a=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),a=(e-r)/(i-r)),-(n+a)||0}zn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";zn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function JIe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eBe(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?C9(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kp(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",C9(n,"Z")):C9(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tBe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,a;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]',this.format(n+r+i+a)}function nBe(t){t||(t=this.isUtc()?zn.defaultFormatUtc:zn.defaultFormat);var e=C9(this,t);return this.localeData().postformat(e)}function rBe(t,e){return this.isValid()&&($h(t)&&t.isValid()||ws(t).isValid())?Jh({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function iBe(t){return this.from(ws(),t)}function aBe(t,e){return this.isValid()&&($h(t)&&t.isValid()||ws(t).isValid())?Jh({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sBe(t){return this.to(ws(),t)}function L1e(t){var e;return t===void 0?this._locale._abbr:(e=F2(t),e!=null&&(this._locale=e),this)}var O1e=Ld("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function F1e(){return this._locale}var $N=1e3,l3=60*$N,qN=60*l3,I1e=(365*400+97)*24*qN;function c3(t,e){return(t%e+e)%e}function B1e(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-I1e:new Date(t,e,n).valueOf()}function U1e(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-I1e:Date.UTC(t,e,n)}function oBe(t){var e,n;if(t=Od(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?U1e:B1e,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=c3(e+(this._isUTC?0:this.utcOffset()*l3),qN);break;case"minute":e=this._d.valueOf(),e-=c3(e,l3);break;case"second":e=this._d.valueOf(),e-=c3(e,$N);break}return this._d.setTime(e),zn.updateOffset(this,!0),this}function lBe(t){var e,n;if(t=Od(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?U1e:B1e,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=qN-c3(e+(this._isUTC?0:this.utcOffset()*l3),qN)-1;break;case"minute":e=this._d.valueOf(),e+=l3-c3(e,l3)-1;break;case"second":e=this._d.valueOf(),e+=$N-c3(e,$N)-1;break}return this._d.setTime(e),zn.updateOffset(this,!0),this}function cBe(){return this._d.valueOf()-(this._offset||0)*6e4}function uBe(){return Math.floor(this.valueOf()/1e3)}function fBe(){return new Date(this.valueOf())}function dBe(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function hBe(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function pBe(){return this.isValid()?this.toISOString():null}function mBe(){return s$(this)}function ABe(){return ig({},ci(this))}function gBe(){return ci(this).overflow}function xBe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Er("N",0,0,"eraAbbr");Er("NN",0,0,"eraAbbr");Er("NNN",0,0,"eraAbbr");Er("NNNN",0,0,"eraName");Er("NNNNN",0,0,"eraNarrow");Er("y",["y",1],"yo","eraYear");Er("y",["yy",2],0,"eraYear");Er("y",["yyy",3],0,"eraYear");Er("y",["yyyy",4],0,"eraYear");Kn("N",S$);Kn("NN",S$);Kn("NNN",S$);Kn("NNNN",NBe);Kn("NNNNN",RBe);Ya(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._str
38ict);i?ci(n).era=i:ci(n).invalidEra=t});Kn("y",i6);Kn("yy",i6);Kn("yyy",i6);Kn("yyyy",i6);Kn("yo",DBe);Ya(["y","yy","yyy","yyyy"],Jc);Ya(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Jc]=n._locale.eraYearOrdinalParse(t,i):e[Jc]=parseInt(t,10)});function vBe(t,e){var n,r,i,a=this._eras||F2("en")._eras;for(n=0,r=a.length;n<r;++n)switch(typeof a[n].since==="string"&&(i=zn(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=zn(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}return a}function yBe(t,e,n){var r,i,a=this.eras(),s,o,l;for(t=t.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),o=a[r].abbr.toUpperCase(),l=a[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return a[r];break;case"NNNN":if(s===t)return a[r];break;case"NNNNN":if(l===t)return a[r];break}else if([s,o,l].indexOf(t)>=0)return a[r]}function _Be(t,e){var n=t.since<=t.until?1:-1;return e===void 0?zn(t.since).year():zn(t.since).year()+(e-t.offset)*n}function bBe(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function wBe(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function SBe(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function TBe(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-zn(i[t].since).year())*n+i[t].offset;return this.year()}function EBe(t){return la(this,"_erasNameRegex")||T$.call(this),t?this._erasNameRegex:this._erasRegex}function MBe(t){return la(this,"_erasAbbrRegex")||T$.call(this),t?this._erasAbbrRegex:this._erasRegex}function CBe(t){return la(this,"_erasNarrowRegex")||T$.call(this),t?this._erasNarrowRegex:this._erasRegex}function S$(t,e){return e.erasAbbrRegex(t)}function NBe(t,e){return e.erasNameRegex(t)}function RBe(t,e){return e.erasNarrowRegex(t)}function DBe(t,e){return e._eraYearOrdinalRegex||i6}function T$(){var t=[],e=[],n=[],r=[],i,a,s,o,l,c=this.eras();for(i=0,a=c.length;i<a;++i)s=i2(c[i].name),o=i2(c[i].abbr),l=i2(c[i].narrow),e.push(s),t.push(o),n.push(l),r.push(s),r.push(o),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Er(0,["gg",2],0,function(){return this.weekYear()%100});Er(0,["GG",2],0,function(){return this.isoWeekYear()%100});function CP(t,e){Er(0,[t,t.length],0,e)}CP("gggg","weekYear");CP("ggggg","weekYear");CP("GGGG","isoWeekYear");CP("GGGGG","isoWeekYear");Kn("G",wP);Kn("g",wP);Kn("GG",Es,Df);Kn("gg",Es,Df);Kn("GGGG",d$,f$);Kn("gggg",d$,f$);Kn("GGGGG",bP,yP);Kn("ggggg",bP,yP);OT(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Ii(t)});OT(["gg","GG"],function(t,e,n,r){e[r]=zn.parseTwoDigitYear(t)});function PBe(t){return V1e.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function kBe(t){return V1e.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function LBe(){return a2(this.year(),1,4)}function OBe(){return a2(this.isoWeekYear(),1,4)}function FBe(){var t=this.localeData()._week;return a2(this.year(),t.dow,t.doy)}function IBe(){var t=this.localeData()._week;return a2(this.weekYear(),t.dow,t.doy)}function V1e(t,e,n,r,i){var a;return t==null?c5(this,r,i).year:(a=a2(t,r,i),e>a&&(e=a),BBe.call(this,t,e,n,r,i))}function BBe(t,e,n,r,i){var a=v1e(t,e,n,r,i),s=l5(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Er("Q",0,"Qo","quarter");Kn("Q",l1e);Ya("Q",function(t,e){e[Ym]=(Ii(t)-1)*3});function UBe(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}Er("D",["DD",2],"Do","date");Kn("D",Es,a6);Kn("DD",Es,Df);Kn("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Ya(["D","DD"],U1);Ya("Do",function(t,e){e[U1]=Ii(t.match(Es)[0])});var j1e=s6("Date",!0);Er("DDD",["DDDD",3],"DDDo","dayOfYear");Kn("DDD",_P);Kn("DDDD",c1e);Ya(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Ii(t)});function VBe(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}Er("m",["mm",2],0,"minute");Kn("m",Es,h$);Kn("mm",Es,Df);Ya(["m","mm"],wh);
38var jBe=s6("Minutes",!1);Er("s",["ss",2],0,"second");Kn("s",Es,h$);Kn("ss",Es,Df);Ya(["s","ss"],Xm);var HBe=s6("Seconds",!1);Er("S",0,0,function(){return~~(this.millisecond()/100)});Er(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Er(0,["SSS",3],0,"millisecond");Er(0,["SSSS",4],0,function(){return this.millisecond()*10});Er(0,["SSSSS",5],0,function(){return this.millisecond()*100});Er(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Er(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Er(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Er(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Kn("S",_P,l1e);Kn("SS",_P,Df);Kn("SSS",_P,c1e);var ag,H1e;for(ag="SSSS";ag.length<=9;ag+="S")Kn(ag,i6);function GBe(t,e){e[Sv]=Ii(("0."+t)*1e3)}for(ag="S";ag.length<=9;ag+="S")Ya(ag,GBe);H1e=s6("Milliseconds",!1);Er("z",0,0,"zoneAbbr");Er("zz",0,0,"zoneName");function zBe(){return this._isUTC?"UTC":""}function $Be(){return this._isUTC?"Coordinated Universal Time":""}var Mn=kT.prototype;Mn.add=IIe;Mn.calendar=zIe;Mn.clone=$Ie;Mn.diff=KIe;Mn.endOf=lBe;Mn.format=nBe;Mn.from=rBe;Mn.fromNow=iBe;Mn.to=aBe;Mn.toNow=sBe;Mn.get=tFe;Mn.invalidAt=gBe;Mn.isAfter=qIe;Mn.isBefore=WIe;Mn.isBetween=ZIe;Mn.isSame=YIe;Mn.isSameOrAfter=XIe;Mn.isSameOrBefore=QIe;Mn.isValid=mBe;Mn.lang=O1e;Mn.locale=L1e;Mn.localeData=F1e;Mn.max=mIe;Mn.min=pIe;Mn.parsingFlags=ABe;Mn.set=nFe;Mn.startOf=oBe;Mn.subtract=BIe;Mn.toArray=dBe;Mn.toObject=hBe;Mn.toDate=fBe;Mn.toISOString=eBe;Mn.inspect=tBe;typeof Symbol<"u"&&Symbol.for!=null&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Mn.toJSON=pBe;Mn.toString=JIe;Mn.unix=uBe;Mn.valueOf=cBe;Mn.creationData=xBe;Mn.eraName=bBe;Mn.eraNarrow=wBe;Mn.eraAbbr=SBe;Mn.eraYear=TBe;Mn.year=d1e;Mn.isLeapYear=eFe;Mn.weekYear=PBe;Mn.isoWeekYear=kBe;Mn.quarter=Mn.quarters=UBe;Mn.month=g1e;Mn.daysInMonth=fFe;Mn.week=Mn.weeks=vFe;Mn.isoWeek=Mn.isoWeeks=yFe;Mn.weeksInYear=FBe;Mn.weeksInWeekYear=IBe;Mn.isoWeeksInYear=LBe;Mn.isoWeeksInISOWeekYear=OBe;Mn.date=j1e;Mn.day=Mn.days=kFe;Mn.weekday=LFe;Mn.isoWeekday=OFe;Mn.dayOfYear=VBe;Mn.hour=Mn.hours=HFe;Mn.minute=Mn.minutes=jBe;Mn.second=Mn.seconds=HBe;Mn.millisecond=Mn.milliseconds=H1e;Mn.utcOffset=SIe;Mn.utc=EIe;Mn.local=MIe;Mn.parseZone=CIe;Mn.hasAlignedHourOffset=NIe;Mn.isDST=RIe;Mn.isLocal=PIe;Mn.isUtcOffset=kIe;Mn.isUtc=R1e;Mn.isUTC=R1e;Mn.zoneAbbr=zBe;Mn.zoneName=$Be;Mn.dates=Ld("dates accessor is deprecated. Use date instead.",j1e);Mn.months=Ld("months accessor is deprecated. Use month instead",g1e);Mn.years=Ld("years accessor is deprecated. Use year instead",d1e);Mn.zone=Ld("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TIe);Mn.isDSTShifted=Ld("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",DIe);function qBe(t){return ws(t*1e3)}function WBe(){return ws.apply(null,arguments).parseZone()}function G1e(t){return t}var fa=l$.prototype;fa.calendar=POe;fa.longDateFormat=FOe;fa.invalidDate=BOe;fa.ordinal=jOe;fa.preparse=G1e;fa.postformat=G1e;fa.relativeTime=GOe;fa.pastFuture=zOe;fa.set=ROe;fa.eras=vBe;fa.erasParse=yBe;fa.erasConvertYear=_Be;fa.erasAbbrRegex=MBe;fa.erasNameRegex=EBe;fa.erasNarrowRegex=CBe;fa.months=oFe;fa.monthsShort=lFe;fa.monthsParse=uFe;fa.monthsRegex=hFe;fa.monthsShortRegex=dFe;fa.week=mFe;fa.firstDayOfYear=xFe;fa.firstDayOfWeek=gFe;fa.weekdays=CFe;fa.weekdaysMin=RFe;fa.weekdaysShort=NFe;fa.weekdaysParse=PFe;fa.weekdaysRegex=FFe;fa.weekdaysShortRegex=IFe;fa.weekdaysMinRegex=BFe;fa.isPM=VFe;fa.meridiem=GFe;function WN(t,e,n,r){var i=F2(),a=Pp().set(r,e);return i[n](a,t)}function z1e(t,e,n){if(_2(t)&&(e=t,t=void 0),t=t||"",e!=null)return WN(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=WN(t,r,n,"month");return i}function E$(t,e,n,r){typeof t=="boolean"?(_2(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,_2(e)&&(n=e,e=void 0),e=e||"");var i=F2(),a=t?i._week.dow:0,s,o=[];if(n!=null)return WN(e,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=WN(e,(s+a)%7,r,"day");return o}function ZBe(t,e){return z1e(t,e,"months")}function YBe(t,e){return z1e(t,e,"monthsShort")}function XBe(t,e,n){return E$(t,e,n,"weekdays")}function QBe(t,e,n){return E$(t,e,n,"weekdaysShort")}function KBe(t,e,n){return E$(t,e,n,"weekdaysMin")}_g("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Ii(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});zn.lang=Ld("moment.lang is deprecated. Use moment.locale instead.",_g);zn.langData=Ld("moment.langData is deprecated. Use moment.localeData instead.",F2);var ym=Math.abs;function JBe(){var t=this._data;return this._milliseconds=ym(this._milliseconds),this._days=ym(this._days),this._months=ym(this._months),t.milliseconds=ym(t.milliseconds),t.seconds=ym(t.seconds),t.minutes=ym(t.minutes),t.hours=ym(t.hours),t.months=ym(t.months),t.years=ym(t.years),this}function $1e(t,e,n,r){var i=Jh(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function eUe(t,e){return $1e(this,t,e,1)}function tUe(t,e){return $1e(this,t,e,-1)}function hte(t){return t<0?Math.floor(t):Math.ceil(t)}function nUe(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,a,s,o,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=hte(HV(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=ad(t/1e3),r.seconds=i%60,a=ad(i/60),r.minutes=a%60,s=ad(a/60),r.hours=s%24,e+=ad(s/24),l=ad(q1e(e)),n+=l,e-=hte(HV(l)),o=ad(n/12),n%=12,r.days=e,r.months=n,r.years=o,this}function q1e(t){return t*4800/146097}function HV(t){return t*146097/4800}function rUe(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=Od(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+q1e(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(HV(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function I2(t){return function(){return this.as(t)}}
38var W1e=I2("ms"),iUe=I2("s"),aUe=I2("m"),sUe=I2("h"),oUe=I2("d"),lUe=I2("w"),cUe=I2("M"),uUe=I2("Q"),fUe=I2("y"),dUe=W1e;function hUe(){return Jh(this)}function pUe(t){return t=Od(t),this.isValid()?this[t+"s"]():NaN}function Oy(t){return function(){return this.isValid()?this._data[t]:NaN}}var mUe=Oy("milliseconds"),AUe=Oy("seconds"),gUe=Oy("minutes"),xUe=Oy("hours"),vUe=Oy("days"),yUe=Oy("months"),_Ue=Oy("years");function bUe(){return ad(this.days()/7)}var km=Math.round,H8={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wUe(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function SUe(t,e,n,r){var i=Jh(t).abs(),a=km(i.as("s")),s=km(i.as("m")),o=km(i.as("h")),l=km(i.as("d")),c=km(i.as("M")),u=km(i.as("w")),f=km(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,wUe.apply(null,h)}function TUe(t){return t===void 0?km:typeof t=="function"?(km=t,!0):!1}function EUe(t,e){return H8[t]===void 0?!1:e===void 0?H8[t]:(H8[t]=e,t==="s"&&(H8.ss=e-1),!0)}function MUe(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=H8,i,a;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},H8,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),a=SUe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var OF=Math.abs;function I4(t){return(t>0)-(t<0)||+t}function NP(){if(!this.isValid())return this.localeData().invalidDate();var t=OF(this._milliseconds)/1e3,e=OF(this._days),n=OF(this._months),r,i,a,s,o=this.asSeconds(),l,c,u,f;return o?(r=ad(t/60),i=ad(r/60),t%=60,r%=60,a=ad(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",c=I4(this._months)!==I4(o)?"-":"",u=I4(this._days)!==I4(o)?"-":"",f=I4(this._milliseconds)!==I4(o)?"-":"",l+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(e?u+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+s+"S":"")):"P0D"}var Zi=MP.prototype;Zi.isValid=yIe;Zi.abs=JBe;Zi.add=eUe;Zi.subtract=tUe;Zi.as=rUe;Zi.asMilliseconds=W1e;Zi.asSeconds=iUe;Zi.asMinutes=aUe;Zi.asHours=sUe;Zi.asDays=oUe;Zi.asWeeks=lUe;Zi.asMonths=cUe;Zi.asQuarters=uUe;Zi.asYears=fUe;Zi.valueOf=dUe;Zi._bubble=nUe;Zi.clone=hUe;Zi.get=pUe;Zi.milliseconds=mUe;Zi.seconds=AUe;Zi.minutes=gUe;Zi.hours=xUe;Zi.days=vUe;Zi.weeks=bUe;Zi.months=yUe;Zi.years=_Ue;Zi.humanize=MUe;Zi.toISOString=NP;Zi.toString=NP;Zi.toJSON=NP;Zi.locale=L1e;Zi.localeData=F1e;Zi.toIsoString=Ld("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",NP);Zi.lang=O1e;Er("X",0,0,"unix");Er("x",0,0,"valueOf");Kn("x",wP);Kn("X",ZOe);Ya("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});Ya("x",function(t,e,n){n._d=new Date(Ii(t))});zn.version="2.30.1";COe(ws);zn.fn=Mn;zn.min=AIe;zn.max=gIe;zn.now=xIe;zn.utc=Pp;zn.unix=qBe;zn.months=ZBe;zn.isDate=PT;zn.locale=_g;zn.invalid=vP;zn.duration=Jh;zn.isMoment=$h;zn.weekdays=XBe;zn.parseZone=WBe;zn.localeData=F2;zn.isDuration=N9;zn.monthsShort=YBe;zn.weekdaysMin=KBe;zn.defineLocale=x$;zn.updateLocale=WFe;zn.locales=ZFe;zn.weekdaysShort=QBe;zn.normalizeUnits=Od;zn.relativeTimeRounding=TUe;zn.relativeTimeThreshold=EUe;zn.calendarFormat=GIe;zn.prototype=Mn;zn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var sc=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},yu={searchParams:"URLSearchParams"in sc,iterable:"Symbol"in sc&&"iterator"in Symbol,blob:"FileReader"in sc&&"Blob"in sc&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in sc,arrayBuffer:"ArrayBuffer"in sc};function CUe(t){return t&&DataView.prototype.isPrototypeOf(t)}if(yu.arrayBuffer)var NUe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
38]"],RUe=ArrayBuffer.isView||function(t){return t&&NUe.indexOf(Object.prototype.toString.call(t))>-1};function o6(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function M$(t){return typeof t!="string"&&(t=String(t)),t}function C$(t){var e={next:function(){var n=t.shift();return{done:n===void 0,value:n}}};return yu.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Ko(t){this.map={},t instanceof Ko?t.forEach(function(e,n){this.append(n,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Ko.prototype.append=function(t,e){t=o6(t),e=M$(e);var n=this.map[t];this.map[t]=n?n+", "+e:e};Ko.prototype.delete=function(t){delete this.map[o6(t)]};Ko.prototype.get=function(t){return t=o6(t),this.has(t)?this.map[t]:null};Ko.prototype.has=function(t){return this.map.hasOwnProperty(o6(t))};Ko.prototype.set=function(t,e){this.map[o6(t)]=M$(e)};Ko.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)};Ko.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),C$(t)};Ko.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C$(t)};Ko.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),C$(t)};yu.iterable&&(Ko.prototype[Symbol.iterator]=Ko.prototype.entries);function FF(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function Z1e(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function DUe(t){var e=new FileReader,n=Z1e(e);return e.readAsArrayBuffer(t),n}function PUe(t){var e=new FileReader,n=Z1e(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=r?r[1]:"utf-8";return e.readAsText(t,i),n}function kUe(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}function pte(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Y1e(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:yu.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:yu.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:yu.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():yu.arrayBuffer&&yu.blob&&CUe(t)?(this._bodyArrayBuffer=pte(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yu.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||RUe(t))?this._bodyArrayBuffer=pte(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):yu.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},yu.blob&&(this.blob=function(){var t=FF(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=FF(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(yu.blob)return this.blob().then(DUe);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=FF(this);if(t)return t;if(this._bodyBlob)return PUe(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(kUe(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},yu.formData&&(this.formData=function(){return this.text().then(FUe)}),this.json=function(){return this.text().then(JSON.parse)},this}var LUe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function OUe(t){var e=t.toUpperCase();return LUe.indexOf(e)>-1?e:t}function Hg(t,e){if(!(this instanceof Hg))throw new TypeError('Please use the "new" operator, this DOM object c
38onstructor cannot be called as a function.');e=e||{};var n=e.body;if(t instanceof Hg){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Ko(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!n&&t._bodyInit!=null&&(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Ko(e.headers)),this.method=OUe(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||(function(){if("AbortController"in sc){var a=new AbortController;return a.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Hg.prototype.clone=function(){return new Hg(this,{body:this._bodyInit})};function FUe(t){var e=new FormData;return t.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(a))}}),e}function IUe(t){var e=new Ko,n=t.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` 39`)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),a=i.shift().trim();if(a){var s=i.join(":").trim();try{e.append(a,s)}catch(o){console.warn("Response "+o.message)}}}),e}Y1e.call(Hg.prototype);function qh(t,e){if(!(this instanceof qh))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Ko(e.headers),this.url=e.url||"",this._initBody(t)}Y1e.call(qh.prototype);qh.prototype.clone=function(){return new qh(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ko(this.headers),url:this.url})};qh.error=function(){var t=new qh(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var BUe=[301,302,303,307,308];qh.redirect=function(t,e){if(BUe.indexOf(e)===-1)throw new RangeError("Invalid status code");return new qh(null,{status:e,headers:{location:t}})};var HA=sc.DOMException;try{new HA}catch{HA=function(e,n){this.message=e,this.name=n;var r=Error(e);this.stack=r.stack},HA.prototype=Object.create(Error.prototype),HA.prototype.constructor=HA}function N$(t,e){return new Promise(function(n,r){var i=new Hg(t,e);if(i.signal&&i.signal.aborted)return r(new HA("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var c={statusText:a.statusText,headers:IUe(a.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(a.status<200||a.status>599)?c.status=200:c.status=a.status,c.url="responseURL"in a?a.responseURL:c.headers.get("X-Request-URL");var u="response"in a?a.response:a.responseText;setTimeout(function(){n(new qh(u,c))},0)},a.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){r(new HA("Aborted","AbortError"))},0)};function o(c){try{return c===""&&sc.location.href?sc.location.href:c}catch{return c}}if(a.open(i.method,o(i.url),!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(yu.blob?a.responseType="blob":yu.arrayBuffer&&(a.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Ko||sc.Headers&&e.headers instanceof sc.Headers)){var l=[];
39Object.getOwnPropertyNames(e.headers).forEach(function(c){l.push(o6(c)),a.setRequestHeader(c,M$(e.headers[c]))}),i.headers.forEach(function(c,u){l.indexOf(u)===-1&&a.setRequestHeader(u,c)})}else i.headers.forEach(function(c,u){a.setRequestHeader(u,c)});i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",s)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}N$.polyfill=!0;sc.fetch||(sc.fetch=N$,sc.Headers=Ko,sc.Request=Hg,sc.Response=qh);const UUe=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return HA},Headers:Ko,Request:Hg,Response:qh,fetch:N$},Symbol.toStringTag,{value:"Module"})),VUe=hce(UUe);var IF,mte;function jUe(){return mte||(mte=1,IF=(function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)})([(function(t,e,n){var r=n(1),i=typeof importScripts=="function";t.exports=r(i?self:window)}),(function(t,e,n){function r(s){if(Array.isArray(s)){for(var o=0,l=Array(s.length);o<s.length;o++)l[o]=s[o];return l}else return Array.from(s)}var i=[];function a(s){for(var o=arguments.length,l=Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];var u=i.reduce(function(h,p){return[p].concat(h)},[]),f=Promise.resolve(l);return u.forEach(function(h){var p=h.request,A=h.requestError;(p||A)&&(f=f.then(function(g){return p.apply(void 0,r(g))},A))}),f=f.then(function(h){var p=new(Function.prototype.bind.apply(Request,[null].concat(r(h))));return s(p).then(function(A){return A.request=p,A}).catch(function(A){return A.request=p,Promise.reject(A)})}),u.forEach(function(h){var p=h.response,A=h.responseError;(p||A)&&(f=f.then(p,A))}),f}t.exports=function(o){if(!o.fetch)try{n(2)}catch{throw Error("No fetch available. Unable to register fetch-intercept")}return o.fetch=(function(l){return function(){for(var c=arguments.length,u=Array(c),f=0;f<c;f++)u[f]=arguments[f];return a.apply(void 0,[l].concat(u))}})(o.fetch),{register:function(c){return i.push(c),function(){var u=i.indexOf(c);u>=0&&i.splice(u,1)}},clear:function(){i=[]}}}}),(function(t,e){t.exports=VUe})])),IF}jUe();const e1="https://www.ivsource.com",ax="https://www.ivsource.com/orch/api",R$="www.ivsource.com",ZN=async()=>{try{return await Rf(`${e1}/ivs/fetch/loginuser`,void 0,void 0)}catch(t){return console.log(t),t}},Ate=async()=>{try{return await Rf(`${e1}/ivs/wallet/balance`,void 0,void 0)}catch(t){return console.log(t),t}},HUe=async t=>{try{return await El(`${e1}/ivs/wallet/request`,void 0,t)}catch(e){return console.log(e),e}},GUe=async t=>{try{return await Rf(`${ax}/wallet/ledger`,t)}catch(e){return console.log(e),e}},zUe=async()=>{try{return await El(`${e1}/api/auth/logout`,void 0,void 0)}catch(t){return console.log(t),t}},$Ue=async t=>{try{return await El(`${e1}/agent-staff/register`,void 0,t)}catch(e){return console.log(e),e}},qUe=async t=>{try{const{userId:e}=t;return await n1e(`${e1}/agent-staff/update/${e}`,void 0,t)}catch(e){return console.log(e),e}},WUe=async()=>{try{return await Rf(`${e1}/agent-staff/fetch`,void 0)}catch(t){return console.log(t),t}},ZUe=async()=>{try{return await Rf(`${e1}/ivs/fetch/agents`,void 0)}catch(t){return console.log(t),t}},YUe=async t=>{try{return(await fetch(`${e1}/agent-staff/bulk-upload`,{method:"post",body:t,headers:new Headers({"X-Tenant-Host":R$,Authorization:`Bearer ${O2()}`})})).json()}catch(e){return console.log(e),e}},XUe=async t=>{try{return await El(`${e1}/api/admin/emulate/${t}`,void 0,void 0)}catch(e){return console.log(e),e}},QUe=async()=>{try{return await El(`${e1}/api/admin/stop-emulation`,void 0,void 0)}catch(t){return console.log(t),t}},KUe=async t=>{try{return await El(`${ax}/visa/pgorder/rechargewallet`,void 0,t)}catch(e){return console.log(e),e}},JUe=async()=>{try{return await Rf(`${ax}/agent-markup`,void 0)}catch(t){return console.log(t),t}},eVe=async t=>{try{return await El(`${ax}/agent-markup`,void 0,t)}catch(e){return console.log(e),e}},tVe=async t=>{try{return await _Oe(`${ax}/agent-markup/${t}`,void 0,void 0)}catch(e){return console.log(e),e}},nVe=async t=>{try{return await n1e(`${ax}/agent-markup`,void 0,t)}catch(e){return console.log(e),e}},rVe=async t=>{try{return(await fetch(`${ax}/profile/upload-logo`,{method:"POST",body:t,headers:new Headers({"X-Tenant-Host":R$,Authorization:`Bearer ${O2()}`})})).json()}catch(e){return console.log(e),e}},iVe=async t=>{try{const e=new URLSearchParams(t).toString(),n=await fetch(`${ax}/visa/transaction/report?${e}`,{method:"GET",headers:{"Content-Type":"application/json","X-Tenant-Host":R$,Authorization:`Bearer ${O2()}`}});if(!n.ok)throw new Error("Download failed");return n}catch(e){return console.log(e),e}};function aVe(){const t=Ss(),[e,n]=b.useState(!1),[r,i]=b.useState(null),[a,s]=b.useState(""),[o,l]=b.useState("login"),[c,u]=b.useState({tempToken:"",otp:""}),[f,h]=b.useState({email:"",otp:"",newPassword:"",confirmPassword:""}),p={LOGIN:"login",OTP_VERIFICATION:"otp-verification",FORGOT_PASSWORD:"forgot-password"},[A,g]=b.useState(""),w=async()=>{try{n(!0);const D=await wOe(a,A);if(D.statusCode===200)if(D.result.mfaRequired===!0)u({tempToken:D.result.tempToken,otp:""}),l(p.OTP_VERIFICATION);else{Zm(EN,D.result.accessToken);const k=await ZN();
39k.statusCode===200?(Zm(S0,k.result),PV(k0e,k.result.userId)):i({description:k.message||"Failed to fetch user profile",title:"Error",variant:"error"}),t(Zn.SEARCH_PAGE)}else i({description:D.message,title:"Error",variant:"Error"});n(!1)}catch{i({description:"Something went wrong. Please try again.",title:"Error",variant:"Error"}),n(!1)}};b.useEffect(()=>{localStorage.clear()},[]);const T=async()=>{n(!0);try{const D=await SOe(c);if(D.statusCode===200){Zm(EN,D.result.accessToken);const k=await ZN();k.statusCode===200?(Zm(S0,k.result),t(Zn.SEARCH_PAGE)):i({description:k.message||"Failed to fetch user profile",title:"Error",variant:"error"})}else i({description:D.message,title:"Error",variant:"error"});n(!1)}catch{i({description:"Something went wrong. Please try again.",title:"Error",variant:"Error"}),n(!1)}},C=async()=>{if(!a){i({description:"Please enter your email",title:"Error",variant:"error"});return}n(!0);const D=await TOe(a);D.statusCode===200?(l(p.FORGOT_PASSWORD),h({...f,email:a})):i({description:D.message,title:"Error",variant:"error"}),n(!1)},M=async()=>{try{if(f.newPassword!==f.confirmPassword){i({description:"Passwords do not match",title:"Error",variant:"error"});return}if(f.otp===""){i({description:"Please enter OTP",title:"Error",variant:"error"});return}if(f.newPassword===""){i({description:"Please enter new password",title:"Error",variant:"error"});return}if(f.confirmPassword===""){i({description:"Please enter confirm password",title:"Error",variant:"error"});return}n(!0);const D=await EOe(f);D.statusCode===200?(i({description:D.message,title:"Success",variant:"success"}),l(p.LOGIN)):i({description:D.message,title:"Error",variant:"error"}),n(!1)}catch{i({description:"Something went wrong. Please try again.",title:"Error",variant:"Error"}),n(!1)}};return x.jsxs(x.Fragment,{children:[e&&x.jsx(go,{isLoading:e}),r&&x.jsx(Do,{title:r.title,description:r.description,variant:r.variant,onHide:()=>i(null)}),x.jsxs("div",{className:"w-full max-w-md",children:[o===p.LOGIN&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"mb-8",children:[x.jsx("h2",{className:"text-3xl font-bold text-(--secondary-color)",children:"Lets Start."}),x.jsxs("div",{className:"",children:[x.jsx("p",{className:"text-(--muted-text) text-sm",children:"Launch your agency's visa scaling journey."}),x.jsx("div",{className:"mt-1 w-[50%] h-1 bg-[linear-gradient(90deg,var(--secondary-color)_25%,var(--primary-color)_100%)]"})]})]}),x.jsx(dr,{label:"Username",placeholder:"Enter Username",type:"text",required:!0,inputClassName:"mb-4",value:a,onChange:D=>s(D.target.value)}),x.jsx(dr,{label:"Password",placeholder:"Enter Password",type:"password",required:!0,value:A,onChange:D=>g(D.target.value)}),x.jsx(fi,{btnText:"Get Started",variant:"secondary",iconPosition:"right",className:"mt-8",onClick:()=>w(),children:x.jsx(ms,{size:32})}),x.jsxs("div",{className:"mt-8 text-center text-sm",children:[x.jsxs("p",{className:"text-gray-600 dark:text-gray-300",children:["Don't have an account?"," ",x.jsx("span",{onClick:()=>t(Zn.AGENT_REGISTRATION),className:"text-blue-600 font-bold hover:underline cursor-pointer",children:"Register now"})]}),x.jsx("button",{className:"mt-6 text-gray-400 dark:text-gray-400 hover:text-gray-600 underline cursor-pointer",onClick:()=>C(),children:"Forgot Password"})]})]}),o===p.OTP_VERIFICATION&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"mb-8",children:[x.jsx("h2",{className:"text-3xl font-bold text-gray-800 dark:text-white",children:"OTP Verification."}),x.jsx("div",{className:"mt-1 w-16 h-1 bg-blue-500"})]}),x.jsx(dr,{label:"OTP",placeholder:"Enter OTP",type:"number",required:!0,inputClassName:"mb-4",value:c.otp,onChange:D=>u({...c,otp:D.target.value})}),x.jsx(fi,{btnText:"Verify",variant:"secondary",iconPosition:"right",className:"mt-8",onClick:()=>T(),children:x.jsx(ms,{size:32})})]}),o===p.FORGOT_PASSWORD&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"mb-8",children:[x.jsx("h2",{className:"text-3xl font-bold text-gray-800 dark:text-white",children:"Forgot Password."}),x.jsx("div",{className:"mt-1 w-16 h-1 bg-blue-500"})]}),x.jsx(dr,{label:"Username",placeholder:"Enter Username",type:"text",required:!0,inputClassName:"mb-4",value:f.email,onChange:D=>h({...f,email:D.target.value})}),x.jsx(dr,{label:"OTP",placeholder:"Enter OTP",type:"text",required:!0,inputClassName:"mb-4",value:f.otp,onChange:D=>h({...f,otp:D.target.value})}),x.jsx("div",{className:"mb-4",children:x.jsx(dr,{label:"New Password",placeholder:"Enter New Password",type:"password",required:!0,value:f.newPassword,onChange:D=>h({...f,newPassword:D.target.value})})}),x.jsx(dr,{label:"Confirm Password",placeholder:"Enter Confirm Password",type:"password",required:!0,value:f.confirmPassword,onChange:D=>h({...f,confirmPassword:D.target.value})}),x.jsx(fi,{btnText:"Submit",variant:"secondary",iconPosition:"right",className:"mt-8",onClick:()=>M(),children:x.jsx(ms,{size:32})})]})]})]})}const X1e=b.createContext();function Q1e(t){const e=Dn.c(10),{children:n}=t,[r,i]=b.useState(oVe);let a,s;e[0]!==r?(a=()=>{document.documentElement.classList.toggle("dark",r),localStorage.setItem(P0e,r?"dark":"light")},s=[r],e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]),b.useEffect(a,s);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>i(sVe),e[3]=o):o=e[3];const l=o;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=p=>i(p),e[4]=c):c=e[4];const u=c;let f;e[5]!==r?(f={isDark:r,toggleTheme:l,setTheme:u},e[5]=r,e[6]=f):f=e[6];let h;return e[7]!==n||e[8]!==f?(h=x.jsx(X1e.Provider,{value:f,children:n}),e[7]=n,e[8]=f,e[9]=h):h=e[9],h}function sVe(t){return!t}function oVe(){return localStorage.getItem(P0e)==="dark"}Q1e.propTypes={children:re.node.isRequired};const B2=()=>b.useContext(X1e),lVe=()=>{const t=Dn.c(22),[e,n]=b.useState(!0),{setTheme:r}=B2();let i;t[0]!==r?(i=()=>{r(!1)},t[0]=r,t[1]=i):i=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=[],t[2]=a):a=t[2],b.useEffect(i,a);let s,o;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=()=>
39{if(document.readyState==="complete")n(!1);else{const L=()=>n(!1);return window.addEventListener("load",L),()=>window.removeEventListener("load",L)}},o=[],t[3]=s,t[4]=o):(s=t[3],o=t[4]),b.useEffect(s,o);let l;t[5]!==e?(l=e&&x.jsx(go,{isLoading:e}),t[5]=e,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c={backgroundColor:"var(--secondary-color-40)"},t[7]=c):c=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx("h1",{className:"text-5xl alexandria-semi-bold leading-none text-(--body-text)",children:"Zero Hassle"}),t[8]=u):u=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsxs("div",{className:"px-14",children:[u,x.jsxs("h1",{className:"text-5xl alexandria-semi-bold leading-none mt-2",children:[x.jsx("span",{style:{color:"var(--primary-color)",textShadow:"1px 1px 2px rgba(0,0,0,0.35)"},children:"Effortless"})," Visa Process"]})]}),t[9]=f):f=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx("div",{className:"hidden lg:flex lg:w-[60%] relative overflow-hidden flex-col",style:c,children:x.jsxs("div",{className:"relative z-10 flex flex-col h-full pt-10 pb-10",children:[f,x.jsx("div",{className:"flex-1 relative flex items-end justify-center",children:x.jsx("img",{src:"/images/IVSlogin_2.svg",alt:"IVS Visa",className:"w-full object-contain object-bottom"})})]})}),t[10]=h):h=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsxs("div",{className:"px-15 pt-10 portal-logo",children:[x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"object-contain object-left dark:hidden w-60"}),x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-10 object-contain object-left hidden dark:block"})]}),t[11]=p):p=t[11];let A;t[12]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx("div",{className:"flex-1 flex items-center justify-center px-10 py-8",children:x.jsx(aVe,{})}),t[12]=A):A=t[12];let g;t[13]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx(AN,{to:Zn.TERMS_CONDITIONS_IVS,className:"cursor-pointer hover:underline",style:{color:"var(--outlined-color)"},children:"Terms & Conditions"}),t[13]=g):g=t[13];let w;t[14]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsxs("div",{className:"w-full lg:w-[40%] flex flex-col h-full overflow-y-auto bg-(--surface-bg)",children:[p,A,x.jsx("div",{className:"px-10 pb-8 text-center",children:x.jsxs("p",{className:"text-xs text-(--muted-text)",children:["By proceeding, you agree to the IVS"," ",g," ","and"," ",x.jsx(AN,{to:Zn.PRIVACY_POLICY_IVS,className:"cursor-pointer hover:underline",style:{color:"var(--outlined-color)"},children:"Privacy Policy"}),"."]})})]}),t[14]=w):w=t[14];let T;t[15]===Symbol.for("react.memo_cache_sentinel")?(T={animation:"scrollBounce 2s ease-in-out infinite"},t[15]=T):T=t[15];let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx("rect",{x:"1",y:"1",width:"22",height:"34",rx:"11",stroke:"var(--muted-text)",strokeWidth:"2"}),t[16]=C):C=t[16];let M;t[17]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsxs("svg",{width:"24",height:"36",viewBox:"0 0 24 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C,x.jsx("rect",{x:"11",y:"7",width:"2",height:"7",rx:"1",fill:"var(--muted-text)",style:{animation:"scrollDot 2s ease-in-out infinite"}})]}),t[17]=M):M=t[17];let D,k;t[18]===Symbol.for("react.memo_cache_sentinel")?(D=x.jsxs("div",{className:"flex h-screen relative",children:[h,w,x.jsxs("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-20 flex flex-col items-center gap-2 select-none hidden md:flex",style:T,children:[M,x.jsx("p",{className:"text-xs tracking-widest uppercase",style:{color:"var(--muted-text)"},children:"Scroll Down"})]})]}),k=x.jsx(CRe,{}),t[18]=D,t[19]=k):(D=t[18],k=t[19]);let I;return t[20]!==l?(I=x.jsxs(x.Fragment,{children:[l,D,k]}),t[20]=l,t[21]=I):I=t[21],I};function b2(t){"@babel/helpers - typeof";return b2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b2(t)}function cVe(t,e){if(b2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(b2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function K1e(t){var e=cVe(t,"string");return b2(e)=="symbol"?e:e+""}function Sw(t,e,n){return(e=K1e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gte(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 Pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
39e%2?gte(Object(n),!0).forEach(function(r){Sw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gte(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uVe(t){if(Array.isArray(t))return t}function fVe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function GV(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function J1e(t,e){if(t){if(typeof t=="string")return GV(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GV(t,e):void 0}}function dVe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s2(t,e){return uVe(t)||fVe(t,e)||J1e(t,e)||dVe()}function hVe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function U2(t,e){if(t==null)return{};var n,r,i=hVe(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var pVe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function mVe(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,a=t.defaultValue,s=a===void 0?null:a,o=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,f=t.onMenuClose,h=t.onMenuOpen,p=t.value,A=U2(t,pVe),g=b.useState(o!==void 0?o:n),w=s2(g,2),T=w[0],C=w[1],M=b.useState(l!==void 0?l:i),D=s2(M,2),k=D[0],I=D[1],L=b.useState(p!==void 0?p:s),O=s2(L,2),B=O[0],G=O[1],j=b.useCallback(function(se,ae){typeof c=="function"&&c(se,ae),G(se)},[c]),z=b.useCallback(function(se,ae){var J;typeof u=="function"&&(J=u(se,ae)),C(J!==void 0?J:se)},[u]),Q=b.useCallback(function(){typeof h=="function"&&h(),I(!0)},[h]),ee=b.useCallback(function(){typeof f=="function"&&f(),I(!1)},[f]),Z=o!==void 0?o:T,X=l!==void 0?l:k,K=p!==void 0?p:B;return Pr(Pr({},A),{},{inputValue:Z,menuIsOpen:X,onChange:j,onInputChange:z,onMenuClose:ee,onMenuOpen:Q,value:K})}function cr(){return cr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cr.apply(null,arguments)}function AVe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xte(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,K1e(r.key),r)}}function gVe(t,e,n){return e&&xte(t.prototype,e),n&&xte(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function B3(t,e){return B3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},B3(t,e)}function xVe(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B3(t,e)}function f5(t){return f5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f5(t)}function D$(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D$=function(){return!!t})()}function epe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vVe(t,e){if(e&&(b2(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return epe(t)}function yVe(t){var e=D$();return function(){var n,r=f5(t);if(e){var i=f5(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vVe(this,n)}}function _Ve(t){if(Array.isArray(t))return GV(t)}function bVe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wVe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P$(t){return _Ve(t)||bVe(t)||J1e(t)||wVe()}function SVe(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function TVe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var EVe=(function(){function t(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(TVe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=SVe(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 7,456 bytes, line 41
41,e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),kc="-ms-",YN="-moz-",ma="-webkit-",tpe="comm",k$="rule",L$="decl",MVe="@import",npe="@keyframes",CVe="@layer",NVe=Math.abs,RP=String.fromCharCode,RVe=Object.assign;function DVe(t,e){return nc(t,0)^45?(((e<<2^nc(t,0))<<2^nc(t,1))<<2^nc(t,2))<<2^nc(t,3):0}function rpe(t){return t.trim()}function PVe(t,e){return(t=e.exec(t))?t[0]:t}function xa(t,e,n){return t.replace(e,n)}function zV(t,e){return t.indexOf(e)}function nc(t,e){return t.charCodeAt(e)|0}function d5(t,e,n){return t.slice(e,n)}function D1(t){return t.length}function O$(t){return t.length}function YM(t,e){return e.push(t),t}function kVe(t,e){return t.map(e).join("")}var DP=1,U3=1,ipe=0,P0=0,qo=0,l6="";function PP(t,e,n,r,i,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:DP,column:U3,length:s,return:""}}function Pb(t,e){return RVe(PP("",null,null,"",null,null,0),t,{length:-t.length},e)}function LVe(){return qo}function OVe(){return qo=P0>0?nc(l6,--P0):0,U3--,qo===10&&(U3=1,DP--),qo}function vf(){return qo=P0<ipe?nc(l6,P0++):0,U3++,qo===10&&(U3=1,DP++),qo}function rp(){return nc(l6,P0)}function D9(){return P0}function FT(t,e){return d5(l6,t,e)}function h5(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ape(t){return DP=U3=1,ipe=D1(l6=t),P0=0,[]}function spe(t){return l6="",t}function P9(t){return rpe(FT(P0-1,$V(t===91?t+2:t===40?t+1:t)))}function FVe(t){for(;(qo=rp())&&qo<33;)vf();return h5(t)>2||h5(qo)>3?"":" "}function IVe(t,e){for(;--e&&vf()&&!(qo<48||qo>102||qo>57&&qo<65||qo>70&&qo<97););return FT(t,D9()+(e<6&&rp()==32&&vf()==32))}function $V(t){for(;vf();)switch(qo){case t:return P0;case 34:case 39:t!==34&&t!==39&&$V(qo);break;case 40:t===41&&$V(t);break;case 92:vf();break}return P0}function BVe(t,e){for(;vf()&&t+qo!==57;)if(t+qo===84&&rp()===47)break;return"/*"+FT(e,P0-1)+"*"+RP(t===47?t:vf())}function UVe(t){for(;!h5(rp());)vf();return FT(t,P0)}function VVe(t){return spe(k9("",null,null,null,[""],t=ape(t),0,[0],t))}function k9(t,e,n,r,i,a,s,o,l){for(var c=0,u=0,f=s,h=0,p=0,A=0,g=1,w=1,T=1,C=0,M="",D=i,k=a,I=r,L=M;w;)switch(A=C,C=vf()){case 40:if(A!=108&&nc(L,f-1)==58){zV(L+=xa(P9(C),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:L+=P9(C);break;case 9:case 10:case 13:case 32:L+=FVe(A);break;case 92:L+=IVe(D9()-1,7);continue;case 47:switch(rp()){case 42:case 47:YM(jVe(BVe(vf(),D9()),e,n),l);break;default:L+="/"}break;case 123*g:o[c++]=D1(L)*T;case 125*g:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+u:T==-1&&(L=xa(L,/\f/g,"")),p>0&&D1(L)-f&&YM(p>32?yte(L+";",r,n,f-1):yte(xa(L," ","")+";",r,n,f-2),l);break;case 59:L+=";";default:if(YM(I=vte(L,e,n,c,u,i,o,M,D=[],k=[],f),a),C===123)if(u===0)k9(L,e,I,I,D,a,f,o,k);else switch(h===99&&nc(L,3)===110?100:h){case 100:case 108:case 109:case 115:k9(t,I,I,r&&YM(vte(t,I,I,0,0,i,o,M,i,D=[],f),k),i,k,f,o,r?D:k);break;default:k9(L,I,I,I,[""],k,0,o,k)}}c=u=p=0,g=T=1,M=L="",f=s;break;case 58:f=1+D1(L),p=A;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&OVe()==125)continue}switch(L+=RP(C),C*g){case 38:T=u>0?1:(L+="\f",-1);break;case 44:o[c++]=(D1(L)-1)*T,T=1;break;case 64:rp()===45&&(L+=P9(vf())),h=rp(),u=f=D1(M=L+=UVe(D9())),C++;break;case 45:A===45&&D1(L)==2&&(g=0)}}return a}function vte(t,e,n,r,i,a,s,o,l,c,u){for(var f=i-1,h=i===0?a:[""],p=O$(h),A=0,g=0,w=0;A<r;++A)for(var T=0,C=d5(t,f+1,f=NVe(g=s[A])),M=t;T<p;++T)(M=rpe(g>0?h[T]+" "+C:xa(C,/&\f/g,h[T])))&&(l[w++]=M);return PP(t,e,n,i===0?k$:o,l,c,u)}function jVe(t,e,n){return PP(t,e,n,tpe,RP(LVe()),d5(t,2,-2),0)}function yte(t,e,n,r){return PP(t,e,n,L$,d5(t,0,r),d5(t,r+1,-1),r)}function u3(t,e){for(var n="",r=O$(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function HVe(t,e,n,r){switch(t.type){case CVe:if(t.children.length)break;case MVe:case L$:return t.return=t.return||t.value;case tpe:return"";case npe:return t.return=t.value+"{"+u3(t.children,r)+"}";case k$:t.value=t.props.join(",")}return D1(n=u3(t.children,r))?t.return=t.value+"{"+n+"}":""}function GVe(t){var e=O$(t);return function(n,r,i,a){for(var s="",o=0;o<e;o++)s+=t[o](n,r,i,a)||"";return s}}function zVe(t){return function(e){e.root||(e=e.return)&&t(e)}}function $Ve(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var qVe=function(e,n,r){for(var i=0,a=0;i=a,a=rp(),i===38&&a===12&&(n[r]=1),!h5(a);)vf();return FT(e,P0)},WVe=function(e,n){var r=-1,i=44;do switch(h5(i)){case 0:i===38&&rp()===12&&(n[r]=1),e[r]+=qVe(P0-1,n,r);break;case 2:e[r]+=P9(i);break;case 4:if(i===44){e[++r]=rp()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=RP(i)}while(i=vf());return e},ZVe=function(e,n){return spe(WVe(ape(e),n))},_te=new WeakMap,YVe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!_te.get(r))&&!i){_te.set(e,!0);for(var a=[],s=ZVe(n,a),o=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<o.length;u++,c++)e.props[c]=a[l]?s[l].replace(/&\f/g,o[u]):o[u]+" "+s[l]}}},XVe=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function ope(t,e){switch(DVe(t,e)){case 5103:return ma+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ma+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ma+t+YN+t+kc+t+t;case 6828:case 4268:return ma+t+kc+t+t;case 6165:return ma+t+kc+"flex-"+t+t;case 5187:return ma+t+xa(t,/(\w+).+(:[^]+)/,ma+"box-$1$2"+kc+"flex-$1$2")+t;case 5443:return ma+t+kc+"flex-item-"+xa(t,/flex-|-self/,"")+t;case 4675:return ma+t+kc+"flex-line-pack"+xa(t,/align-content|flex-|-self/,"")+t;case 5548:return ma+t+kc+xa(t,"shrink","negative")+t;case 5292:return ma+t+kc+xa(t,"basis","preferred-size")+t;case 6060:return ma+"box-"+xa(t,"-grow","")+ma+t+kc+xa(t,"grow","positive")+t;case 4554:return ma+xa(t,/([^-])(transform)/g,"$1"+ma+"$2")+t;case 6187:return xa(xa(xa(t,/(zoom-|grab)/,ma+"$1"),/(image-set)/,ma+"$1"),t,"")+t;case 5495:case 3959:return xa(t,/(image-set\([^]*)/,ma+"$1$`$1");case 4968:return xa(xa(t,/(.+:)(flex-)?(.*)/,ma+"box-pack:$3"+kc+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ma+t+t;case 4095:case 3583:case 4068:case 2532:return xa(t,/(.+)-inline(.+)/,ma+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(D1(t)-1-e>6)switch(nc(t,e+1)){case 109:if(nc(t,e+4)!==45)break;case 102:return xa(t,/(.+:)(.+)-([^]+)/,"$1"+ma+"$2-$3$1"+YN+(nc(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~zV(t,"stretch")?ope(xa(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(nc(t,e+1)!==115)break;case 6444:switch(nc(t,D1(t)-3-(~zV(t,"!important")&&10))){case 107:return xa(t,":",":"+ma)+t;case 101:return xa(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ma+(nc(t,14)===45?"inline-":"")+"box$3$1"+ma+"$2$3$1"+kc+"$2box$3")+t}break;case 5936:switch(nc(t,e+11)){case 114:return ma+t+kc+xa(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
41case 108:return ma+t+kc+xa(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ma+t+kc+xa(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ma+t+kc+t+t}return t}var QVe=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case L$:e.return=ope(e.value,e.length);break;case npe:return u3([Pb(e,{value:xa(e.value,"@","@"+ma)})],i);case k$:if(e.length)return kVe(e.props,function(a){switch(PVe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return u3([Pb(e,{props:[xa(a,/:(read-\w+)/,":"+YN+"$1")]})],i);case"::placeholder":return u3([Pb(e,{props:[xa(a,/:(plac\w+)/,":"+ma+"input-$1")]}),Pb(e,{props:[xa(a,/:(plac\w+)/,":"+YN+"$1")]}),Pb(e,{props:[xa(a,/:(plac\w+)/,kc+"input-$1")]})],i)}return""})}},KVe=[QVe],JVe=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var w=g.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||KVe,a={},s,o=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var w=g.getAttribute("data-emotion").split(" "),T=1;T<w.length;T++)a[w[T]]=!0;o.push(g)});var l,c=[YVe,XVe];{var u,f=[HVe,zVe(function(g){u.insert(g)})],h=GVe(c.concat(i,f)),p=function(w){return u3(VVe(w),h)};l=function(w,T,C,M){u=C,p(w?w+"{"+T.styles+"}":T.styles),M&&(A.inserted[T.name]=!0)}}var A={key:n,sheet:new EVe({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return A.sheet.hydrate(o),A},BF={exports:{}},Sa={};var bte;function eje(){if(bte)return Sa;bte=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,T=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function M(k){if(typeof k=="object"&&k!==null){var I=k.$$typeof;switch(I){case e:switch(k=k.type,k){case l:case c:case r:case a:case i:case f:return k;default:switch(k=k&&k.$$typeof,k){case o:case u:case A:case p:case s:return k;default:return I}}case n:return I}}}function D(k){return M(k)===c}return Sa.AsyncMode=l,Sa.ConcurrentMode=c,Sa.ContextConsumer=o,Sa.ContextProvider=s,Sa.Element=e,Sa.ForwardRef=u,Sa.Fragment=r,Sa.Lazy=A,Sa.Memo=p,Sa.Portal=n,Sa.Profiler=a,Sa.StrictMode=i,Sa.Suspense=f,Sa.isAsyncMode=function(k){return D(k)||M(k)===l},Sa.isConcurrentMode=D,Sa.isContextConsumer=function(k){return M(k)===o},Sa.isContextProvider=function(k){return M(k)===s},Sa.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},Sa.isForwardRef=function(k){return M(k)===u},Sa.isFragment=function(k){return M(k)===r},Sa.isLazy=function(k){return M(k)===A},Sa.isMemo=function(k){return M(k)===p},Sa.isPortal=function(k){return M(k)===n},Sa.isProfiler=function(k){return M(k)===a},Sa.isStrictMode=function(k){return M(k)===i},Sa.isSuspense=function(k){return M(k)===f},Sa.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===a||k===i||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===A||k.$$typeof===p||k.$$typeof===s||k.$$typeof===o||k.$$typeof===u||k.$$typeof===w||k.$$typeof===T||k.$$typeof===C||k.$$typeof===g)},Sa.typeOf=M,Sa}var wte;function tje(){return wte||(wte=1,BF.exports=eje()),BF.exports}var UF,Ste;function nje(){if(Ste)return UF;Ste=1;var t=tje(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=r,a[t.Memo]=i;function s(A){return t.isMemo(A)?i:a[A.$$typeof]||e}var o=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(A,g,w){if(typeof g!="string"){if(h){var T=f(g);T&&T!==h&&p(A,T,w)}var C=l(g);c&&(C=C.concat(c(g)));for(var M=s(A),D=s(g),k=0;k<C.length;++k){var I=C[k];
41if(!n[I]&&!(w&&w[I])&&!(D&&D[I])&&!(M&&M[I])){var L=u(g,I);try{o(A,I,L)}catch{}}}}return A}return UF=p,UF}nje();var rje=!0;function ije(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var lpe=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||rje===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},aje=function(e,n,r){lpe(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a=n;do e.insert(n===a?"."+i:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function sje(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var cpe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oje=/[A-Z]|^ms/g,lje=/_EMO_([^_]+?)_([^]*?)_EMO_/g,upe=function(e){return e.charCodeAt(1)===45},Tte=function(e){return e!=null&&typeof e!="boolean"},VF=$Ve(function(t){return upe(t)?t:t.replace(oje,"-$&").toLowerCase()}),Ete=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(lje,function(r,i,a){return P1={name:i,styles:a,next:P1},i})}return cpe[e]!==1&&!upe(e)&&typeof n=="number"&&n!==0?n+"px":n};function p5(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return P1={name:i.name,styles:i.styles,next:P1},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)P1={name:s.name,styles:s.styles,next:P1},s=s.next;var o=a.styles+";";return o}return cje(t,e,n)}case"function":{if(t!==void 0){var l=P1,c=n(t);return P1=l,p5(t,e,c)}break}}var u=n;return u}function cje(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p5(t,e,n[i])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var o=s;Tte(o)&&(r+=VF(a)+":"+Ete(a,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Tte(s[l])&&(r+=VF(a)+":"+Ete(a,s[l])+";");else{var c=p5(t,e,s);switch(a){case"animation":case"animationName":{r+=VF(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var Mte=/label:\s*([^\s;{]+)\s*(;|$)/g,P1;function fpe(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";P1=void 0;var a=t[0];if(a==null||a.raw===void 0)r=!1,i+=p5(n,e,a);else{var s=a;i+=s[0]}for(var o=1;o<t.length;o++)if(i+=p5(n,e,t[o]),r){var l=a;i+=l[o]}Mte.lastIndex=0;for(var c="",u;(u=Mte.exec(i))!==null;)c+="-"+u[1];var f=sje(i)+c;return{name:f,styles:i,next:P1}}var uje=function(e){return e()},fje=pN.useInsertionEffect?pN.useInsertionEffect:!1,dje=fje||uje,dpe=b.createContext(typeof HTMLElement<"u"?JVe({key:"css"}):null);dpe.Provider;var hje=function(e){return b.forwardRef(function(n,r){var i=b.useContext(dpe);return e(n,i,r)})},pje=b.createContext({}),F$={}.hasOwnProperty,qV="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mje=function(e,n){var r={};for(var i in n)F$.call(n,i)&&(r[i]=n[i]);return r[qV]=e,r},Aje=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return lpe(n,r,i),dje(function(){return aje(n,r,i)}),null},gje=hje(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[qV],a=[r],s="";typeof t.className=="string"?s=ije(e.registered,a,t.className):t.className!=null&&(s=t.className+" ");var o=fpe(a,void 0,b.useContext(pje));s+=e.key+"-"+o.name;var l={};for(var c in t)F$.call(t,c)&&c!=="css"&&c!==qV&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),b.createElement(b.Fragment,null,b.createElement(Aje,{cache:e,serialized:o,isStringTag:typeof i=="string"}),b.createElement(i,l))}),xje=gje,Sr=function(e,n){var r=arguments;if(n==null||!F$.call(n,"css"))return b.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=xje,a[1]=mje(e,n);for(var s=2;s<i;s++)a[s]=r[s];return b.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Sr||(Sr={}));function I$(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return fpe(e)}function vje(){var t=I$.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function yje(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const V3=Math.min,Wv=Math.max,XN=Math.round,XM=Math.floor,ip=t=>({x:t,y:t}
vendor: 5,972 bytes, line 41
41),_je={left:"right",right:"left",bottom:"top",top:"bottom"};function bje(t,e,n){return Wv(t,V3(e,n))}function kP(t,e){return typeof t=="function"?t(e):t}function j3(t){return t.split("-")[0]}function IT(t){return t.split("-")[1]}function wje(t){return t==="x"?"y":"x"}function B$(t){return t==="y"?"height":"width"}function Tv(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function U$(t){return wje(Tv(t))}function Sje(t,e,n){n===void 0&&(n=!1);const r=IT(t),i=U$(t),a=B$(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=QN(s)),[s,QN(s)]}function Tje(t){const e=QN(t);return[WV(t),e,WV(e)]}function WV(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Cte=["left","right"],Nte=["right","left"],Eje=["top","bottom"],Mje=["bottom","top"];function Cje(t,e,n){switch(t){case"top":case"bottom":return n?e?Nte:Cte:e?Cte:Nte;case"left":case"right":return e?Eje:Mje;default:return[]}}function Nje(t,e,n,r){const i=IT(t);let a=Cje(j3(t),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(WV)))),a}function QN(t){const e=j3(t);return _je[e]+t.slice(e.length)}function Rje(t){return{top:0,right:0,bottom:0,left:0,...t}}function hpe(t){return typeof t!="number"?Rje(t):{top:t,right:t,bottom:t,left:t}}function KN(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Rte(t,e,n){let{reference:r,floating:i}=t;const a=Tv(e),s=U$(e),o=B$(s),l=j3(e),c=a==="y",u=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[o]/2-i[o]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(IT(e)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}async function Dje(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=kP(e,t),A=hpe(p),w=o[h?f==="floating"?"reference":"floating":f],T=KN(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:l})),C=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),D=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},k=KN(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:C,offsetParent:M,strategy:l}):C);return{top:(T.top-k.top+A.top)/D.y,bottom:(k.bottom-T.bottom+A.bottom)/D.y,left:(T.left-k.left+A.left)/D.x,right:(k.right-T.right+A.right)/D.x}}const Pje=50,kje=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=s.detectOverflow?s:{...s,detectOverflow:Dje},l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=Rte(c,r,l),h=r,p=0;const A={};for(let g=0;g<a.length;g++){const w=a[g];if(!w)continue;const{name:T,fn:C}=w,{x:M,y:D,data:k,reset:I}=await C({x:u,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:A,rects:c,platform:o,elements:{reference:t,floating:e}});u=M??u,f=D??f,A[T]={...A[T],...k},I&&p<Pje&&(p++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):I.rects),{x:u,y:f}=Rte(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:A}},Lje=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=e,{element:c,padding:u=0}=kP(t,e)||{};if(c==null)return{};const f=hpe(u),h={x:n,y:r},p=U$(i),A=B$(p),g=await s.getDimensions(c),w=p==="y",T=w?"top":"left",C=w?"bottom":"right",M=w?"clientHeight":"clientWidth",D=a.reference[A]+a.reference[p]-h[p]-a.floating[A],k=h[p]-a.reference[p],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=I?I[M]:0;(!L||!await(s.isElement==null?void 0:s.isElement(I)))&&(L=o.floating[M]||a.floating[A]);const O=D/2-k/2,B=L/2-g[A]/2-1,G=V3(f[T],B),j=V3(f[C],B),z=G,Q=L-g[A]-j,ee=L/2-g[A]/2+O,Z=bje(z,ee,Q),X=!l.arrow&&IT(i)!=null&&ee!==Z&&a.reference[A]/2-(ee<z?G:j)-g[A]/2<0,K=X?ee<z?ee-z:ee-Q:0;return{[p]:h[p]+K,data:{[p]:Z,centerOffset:ee-Z-K,...X&&{alignmentOffset:K}},reset:X}}}),Oje=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:g=!0,...w}=kP(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const T=j3(i),C=Tv(o),M=j3(o)===o,D=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=h||(M||!g?[QN(o)]:Tje(o)),I=A!=="none";!h&&I&&k.push(...Nje(o,g,A,D));const L=[o,...k],O=await l.detectOverflow(e,w),B=[];let G=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&B.push(O[T]),f){const ee=Sje(i,s,D);B.push(O[ee[0]],O[ee[1]])}if(G=[...G,{placement:i,overflows:B}],!B.every(ee=>ee<=0)){var j,z;const ee=(((j=a.flip)==null?void 0:j.index)||0)+1,Z=L[ee];if(Z&&(!(f==="alignment"?C!==Tv(Z):!1)||G.every(se=>Tv(se.placement)===C?se.overflows[0]>0:!0)))return{data:{index:ee,overflows:G},reset:{placement:Z}};let X=(z=G.filter(K=>K.overflows[0]<=0).sort((K,se)=>K.overflows[1]-se.overflows[1])[0])==null?void 0:z.placement;if(!X)switch(p){case"bestFit":{var Q;const K=(Q=G.filter(se=>{if(I){const ae=Tv(se.placement);return ae===C||ae==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(ae=>ae>0).reduce((ae,J)=>ae+J,0)]).sort((se,ae)=>
41se[1]-ae[1])[0])==null?void 0:Q[0];K&&(X=K);break}case"initialPlacement":X=o;break}if(i!==X)return{reset:{placement:X}}}return{}}}},Fje=new Set(["left","top"]);async function Ije(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=j3(n),o=IT(n),l=Tv(n)==="y",c=Fje.has(s)?-1:1,u=a&&l?-1:1,f=kP(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:A}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof A=="number"&&(p=o==="end"?A*-1:A),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const Bje=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=e,l=await Ije(e,t);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}};function LP(){return typeof window<"u"}function c6(t){return ppe(t)?(t.nodeName||"").toLowerCase():"#document"}function yf(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Lp(t){var e;return(e=(ppe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ppe(t){return LP()?t instanceof Node||t instanceof yf(t).Node:!1}function Fu(t){return LP()?t instanceof Element||t instanceof yf(t).Element:!1}function V2(t){return LP()?t instanceof HTMLElement||t instanceof yf(t).HTMLElement:!1}function Dte(t){return!LP()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof yf(t).ShadowRoot}function BT(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=yd(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function Uje(t){return/^(table|td|th)$/.test(c6(t))}function OP(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Vje=/transform|translate|scale|rotate|perspective|filter/,jje=/paint|layout|strict|content/,Ix=t=>!!t&&t!=="none";let jF;function V$(t){const e=Fu(t)?yd(t):t;return Ix(e.transform)||Ix(e.translate)||Ix(e.scale)||Ix(e.rotate)||Ix(e.perspective)||!j$()&&(Ix(e.backdropFilter)||Ix(e.filter))||Vje.test(e.willChange||"")||jje.test(e.contain||"")}function Hje(t){let e=Gg(t);for(;V2(e)&&!H3(e);){if(V$(e))return e;if(OP(e))return null;e=Gg(e)}return null}function j$(){return jF==null&&(jF=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jF}function H3(t){return/^(html|body|#document)$/.test(c6(t))}function yd(t){return yf(t).getComputedStyle(t)}function FP(t){return Fu(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gg(t){if(c6(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dte(t)&&t.host||Lp(t);return Dte(e)?e.host:e}function mpe(t){const e=Gg(t);return H3(e)?t.ownerDocument?t.ownerDocument.body:t.body:V2(e)&&BT(e)?e:mpe(e)}function m5(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=mpe(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),s=yf(i);if(a){const o=ZV(s);return e.concat(s,s.visualViewport||[],BT(i)?i:[],o&&n?m5(o):[])}else return e.concat(i,m5(i,[],n))}function ZV(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ape(t){const e=yd(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=V2(t),a=i?t.offsetWidth:n,s=i?t.offsetHeight:r,o=XN(n)!==a||XN(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function H$(t){return Fu(t)?t:t.contextElement}function f3(t){const e=H$(t);if(!V2(e))return ip(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=Ape(e);let s=(a?XN(n.width):n.width)/r,o=(a?XN(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const Gje=ip(0);function gpe(t){const e=yf(t);
vendor: 6,941 bytes, line 41
41return!j$()||!e.visualViewport?Gje:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zje(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==yf(t)?!1:e}function fy(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=H$(t);let s=ip(1);e&&(r?Fu(r)&&(s=f3(r)):s=f3(t));const o=zje(a,n,r)?gpe(a):ip(0);let l=(i.left+o.x)/s.x,c=(i.top+o.y)/s.y,u=i.width/s.x,f=i.height/s.y;if(a){const h=yf(a),p=r&&Fu(r)?yf(r):r;let A=h,g=ZV(A);for(;g&&r&&p!==A;){const w=f3(g),T=g.getBoundingClientRect(),C=yd(g),M=T.left+(g.clientLeft+parseFloat(C.paddingLeft))*w.x,D=T.top+(g.clientTop+parseFloat(C.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,f*=w.y,l+=M,c+=D,A=yf(g),g=ZV(A)}}return KN({width:u,height:f,x:l,y:c})}function IP(t,e){const n=FP(t).scrollLeft;return e?e.left+n:fy(Lp(t)).left+n}function xpe(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-IP(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function $je(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",s=Lp(r),o=e?OP(e.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},c=ip(1);const u=ip(0),f=V2(r);if((f||!f&&!a)&&((c6(r)!=="body"||BT(s))&&(l=FP(r)),f)){const p=fy(r);c=f3(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!f&&!a?xpe(s,l):ip(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function qje(t){return Array.from(t.getClientRects())}function Wje(t){const e=Lp(t),n=FP(t),r=t.ownerDocument.body,i=Wv(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Wv(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+IP(t);const o=-n.scrollTop;return yd(r).direction==="rtl"&&(s+=Wv(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}const Pte=25;function Zje(t,e){const n=yf(t),r=Lp(t),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const u=j$();(!u||u&&e==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const c=IP(r);if(c<=0){const u=r.ownerDocument,f=u.body,h=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,A=Math.abs(r.clientWidth-f.clientWidth-p);A<=Pte&&(a-=A)}else c<=Pte&&(a+=c);return{width:a,height:s,x:o,y:l}}function Yje(t,e){const n=fy(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=V2(t)?f3(t):ip(1),s=t.clientWidth*a.x,o=t.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:s,height:o,x:l,y:c}}function kte(t,e,n){let r;if(e==="viewport")r=Zje(t,n);else if(e==="document")r=Wje(Lp(t));else if(Fu(e))r=Yje(e,n);else{const i=gpe(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return KN(r)}function vpe(t,e){const n=Gg(t);return n===e||!Fu(n)||H3(n)?!1:yd(n).position==="fixed"||vpe(n,e)}function Xje(t,e){const n=e.get(t);if(n)return n;let r=m5(t,[],!1).filter(o=>Fu(o)&&c6(o)!=="body"),i=null;const a=yd(t).position==="fixed";let s=a?Gg(t):t;for(;Fu(s)&&!H3(s);){const o=yd(s),l=V$(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||BT(s)&&!l&&vpe(t,s))?r=r.filter(u=>u!==s):i=o,s=Gg(s)}return e.set(t,r),r}function Qje(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?OP(e)?[]:Xje(e,this._c):[].concat(n),r],o=kte(e,s[0],i);let l=o.top,c=o.right,u=o.bottom,f=o.left;for(let h=1;h<s.length;h++){const p=kte(e,s[h],i);l=Wv(p.top,l),c=V3(p.right,c),u=V3(p.bottom,u),f=Wv(p.left,f)}return{width:c-f,height:u-l,x:f,y:l}}function Kje(t){const{width:e,height:n}=Ape(t);return{width:e,height:n}}function Jje(t,e,n){const r=V2(e),i=Lp(e),a=n==="fixed",s=fy(t,!0,a,e);let o={scrollLeft:0,scrollTop:0};const l=ip(0);function c(){l.x=IP(i)}if(r||!r&&!a)if((c6(e)!=="body"||BT(i))&&(o=FP(e)),r){const p=fy(e,!0,a,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else i&&c();a&&!r&&i&&c();const u=i&&!r&&!a?xpe(i,o):ip(0),f=s.left+o.scrollLeft-l.x-u.x,h=s.top+o.scrollTop-l.y-u.y;return{x:f,y:h,width:s.width,height:s.height}}function HF(t){return yd(t).position==="static"}function Lte(t,e){if(!V2(t)||yd(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Lp(t)===n&&(n=n.ownerDocument.body),n}function ype(t,e){const n=yf(t);if(OP(t))return n;if(!V2(t)){let i=Gg(t);for(;i&&!H3(i);){if(Fu(i)&&!HF(i))return i;i=Gg(i)}return n}let r=Lte(t,e);for(;r&&Uje(r)&&HF(r);)r=Lte(r,e);return r&&H3(r)&&HF(r)&&!V$(r)?n:r||Hje(t)||n}const eHe=async function(t){const e=this.getOffsetParent||ype,n=this.getDimensions,r=await n(t.floating);return{reference:Jje(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tHe(t){return yd(t).direction==="rtl"}const nHe={convertOffsetParentRelativeRectToViewportRelativeRect:$je,getDocumentElement:Lp,getClippingRect:Qje,getOffsetParent:ype,getElementRects:eHe,getClientRects:qje,getDimensions:Kje,getScale:f3,isElement:Fu,isRTL:tHe};function _pe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function rHe(t,e){let n=null,r;const i=Lp(t);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(o||e(),!h||!p)return;const A=XM(f),g=XM(i.clientWidth-(u+h)),w=XM(i.clientHeight-(f+p)),T=XM(u),M={rootMargin:-A+"px "+-g+"px "+-w+"px "+-T+"px",threshold:Wv(0,V3(1,l))||1};let D=!0;function k(I){const L=I[0].intersectionRatio;if(L!==l){if(!D)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!_pe(c,t.getBoundingClientRect())&&s(),D=!1}try{n=new IntersectionObserver(k,{...M,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,M)}n.observe(t)}return s(!0),a}function bpe(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=H$(t),u=i||a?[...c?m5(c):[],...e?m5(e):[]]:[];u.forEach(T=>{i&&T.addEventListener("scroll",n,{passive:!0}),a&&T.addEventListener("resize",n)});const f=c&&o?rHe(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(T=>{let[C]=T;C&&C.target===c&&p&&e&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var M;(M=p)==null||M.observe(e)})),n()}),c&&!l&&p.observe(c),e&&p.observe(e));let A,g=l?fy(t):null;l&&w();function w(){const T=fy(t);g&&!_pe(g,T)&&n(),g=T,A=requestAnimationFrame(w)}return n(),()=>{var T;u.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),f?.(),(T=p)==null||T.disconnect(),p=null,l&&cancelAnimationFrame(A)}}const iHe=Bje,aHe=Oje,Ote=Lje,sHe=(t,e,n)=>{const r=new Map,i={platform:nHe,...n},a={...i.platform,_c:r};return kje(t,e,{...i,platform:a})};var YV=b.useLayoutEffect,oHe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","
41setValue","theme"],JN=function(){};function lHe(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function cHe(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=[].concat(r);if(e&&t)for(var s in e)e.hasOwnProperty(s)&&e[s]&&a.push("".concat(lHe(t,s)));return a.filter(function(o){return o}).map(function(o){return String(o).trim()}).join(" ")}var Fte=function(e){return xHe(e)?e.filter(Boolean):b2(e)==="object"&&e!==null?[e]:[]},wpe=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=U2(e,oHe);return Pr({},n)},ho=function(e,n,r){var i=e.cx,a=e.getStyles,s=e.getClassNames,o=e.className;return{css:a(n,e),className:i(r??{},s(n,e),o)}};function BP(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function uHe(t){return BP(t)?window.innerHeight:t.clientHeight}function Spe(t){return BP(t)?window.pageYOffset:t.scrollTop}function eR(t,e){if(BP(t)){window.scrollTo(0,e);return}t.scrollTop=e}function fHe(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function dHe(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function QM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:JN,i=Spe(t),a=e-i,s=10,o=0;function l(){o+=s;var c=dHe(o,i,a,n);eR(t,c),o<n?window.requestAnimationFrame(l):r(t)}l()}function Ite(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=e.offsetHeight/3;r.bottom+i>n.bottom?eR(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i<n.top&&eR(t,Math.max(e.offsetTop-i,0))}function hHe(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Bte(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function pHe(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Tpe=!1,mHe={get passive(){return Tpe=!0}},KM=typeof window<"u"?window:{};KM.addEventListener&&KM.removeEventListener&&(KM.addEventListener("p",JN,mHe),KM.removeEventListener("p",JN,!1));var AHe=Tpe;function gHe(t){return t!=null}function xHe(t){return Array.isArray(t)}function JM(t,e,n){return t?e:n}var vHe=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=Object.entries(e).filter(function(s){var o=s2(s,1),l=o[0];return!r.includes(l)});return a.reduce(function(s,o){var l=s2(o,2),c=l[0],u=l[1];return s[c]=u,s},{})},yHe=["children","innerProps"],_He=["children","innerProps"];function bHe(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,i=t.placement,a=t.shouldScroll,s=t.isFixedPosition,o=t.controlHeight,l=fHe(n),c={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),f=u.height,h=n.getBoundingClientRect(),p=h.bottom,A=h.height,g=h.top,w=n.offsetParent.getBoundingClientRect(),T=w.top,C=s?window.innerHeight:uHe(l),M=Spe(l),D=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),I=T-k,L=C-g,O=I+M,B=f-M-g,G=p-C+M+D,j=M+g-k,z=160;switch(i){case"auto":case"bottom":if(L>=A)return{placement:"bottom",maxHeight:e};if(B>=A&&!s)return a&&QM(l,G,z),{placement:"bottom",maxHeight:e};if(!s&&B>=r||s&&L>=r){a&&QM(l,G,z);var Q=s?L-D:B-D;return{placement:"bottom",maxHeight:Q}}if(i==="auto"||s){var ee=e,Z=s?I:O;return Z>=r&&(ee=Math.min(Z-D-o,e)),{placement:"top",maxHeight:ee}}if(i==="bottom")return a&&eR(l,G),{placement:"bottom",maxHeight:e};break;case"top":if(I>=A)return{placement:"top",maxHeight:e};if(O>=A&&!s)return a&&QM(l,j,z),{placement:"top",maxHeight:e};if(!s&&O>=r||s&&I>=r){var X=e;return(!s&&O>=r||s&&I>=r)&&(X=s?I-k:O-k),a&&QM(l,j,z),{placement:"top",maxHeight:X}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function wHe(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var Epe=function(e){return e==="auto"?"bottom":e},SHe=function(e,n){var r,i=e.placement,a=e.theme,s=a.borderRadius,o=a.spacing,l=a.colors;return Pr((r={label:"menu"},Sw(r,wHe(i),"100%"),Sw(r,"position","absolute"),Sw(r,"width","100%"),Sw(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},Mpe=b.createContext(null),THe=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,a=e.menuPlacement,s=e.menuPosition,o=e.menuShouldScrollIntoView,l=e.theme,c=b.useContext(Mpe)||{},u=c.setPortalPlacement,f=b.useRef(null),h=b.useState(i),p=s2(h,2),A=p[0],g=p[1],w=b.useState(null),T=s2(w,2),C=T[0],M=T[1],D=l.spacing.controlHeight;return YV(function(){var k=f.current;if(k){var I=s==="fixed",L=o&&!I,O=bHe({maxHeight:i,menuEl:k,minHeight:r,placement:a,shouldScroll:L,isFixedPosition:I,controlHeight:D});g(O.maxHeight),M(O.placement),u?.(O.placement)}},[i,a,s,o,r,u,D]),n({ref:f,placerProps:Pr(Pr({},e),{},{placement:C||Epe(a),maxHeight:A})})},EHe=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return Sr("div",cr({},ho(e,"menu",{menu:!0}),{ref:r},i),n)},MHe=EHe,CHe=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return Pr({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},NHe=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,a=e.isMulti;return Sr("div",cr({},ho(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Cpe=function(e,n){var r=e.theme,i=r.spacing.baseUnit,a=r.colors;return Pr({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},RHe=Cpe,DHe=Cpe,PHe=function(e){var n=e.children,r=n===void 0?"No options":n,i=e.innerProps,a=U2(e,yHe);return Sr("div",cr({},ho(Pr(Pr({},a),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},kHe=function(e){var n=e.children,r=n===void 0?"Loading...":n,i=e.innerProps,a=U2(e,_He);return Sr("div",cr({},ho(Pr(Pr({},a),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},LHe=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},OHe=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,a=e.innerProps,s=e.menuPlacement,o=e.menuPosition,l=b.useRef(null),c=b.useRef(null),u=b.useState(Epe(s)),f=s2(u,2),h=f[0],p=f[1],A=b.useMemo(function(){return{setPortalPlacement:p}},[]),g=b.useState(null),w=s2(g,2),T=w[0],C=w[1],M=b.useCallback(function(){if(i){var L=hHe(i),O=o==="fixed"?0:window.pageYOffset,B=L[h]+O;(B!==T?.offset||L.left!==T?.rect.left||L.width!==T?.rect.width)&&C({offset:B,rect:L})}},[i,o,h,T?.offset,T?.rect.left,T?.rect.width]);YV(function(){M()},[M]);var D=b.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=bpe(i,l.current,M,{elementResize:"ResizeObserver"in window}))},[i,M]);YV(function(){D()},[D]);var k=b.useCallback(function(L){l.current=L,D()},[D]);if(!n&&o!=="fixed"||!T)return null;var I=Sr("div",cr({ref:k},ho(Pr(Pr({},e),{},{offset:T.offset,position:o,rect:T.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Sr(Mpe.Provider,{value:A},n?pG.createPortal(I,n):I)},FHe=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}}
41,IHe=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,a=e.isRtl;return Sr("div",cr({},ho(e,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},BHe=function(e,n){var r=e.theme.spacing,i=e.isMulti,a=e.hasValue,s=e.selectProps.controlShouldRenderValue;return Pr({alignItems:"center",display:i&&a&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},UHe=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,a=e.hasValue;return Sr("div",cr({},ho(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},VHe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},jHe=function(e){var n=e.children,r=e.innerProps;return Sr("div",cr({},ho(e,"indicatorsContainer",{indicators:!0}),r),n)},Ute,HHe=["size"],GHe=["innerProps","isRtl","size"],zHe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Npe=function(e){var n=e.size,r=U2(e,HHe);return Sr("svg",cr({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:zHe},r))},G$=function(e){return Sr(Npe,cr({size:20},e),Sr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Rpe=function(e){return Sr(Npe,cr({size:20},e),Sr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Dpe=function(e,n){var r=e.isFocused,i=e.theme,a=i.spacing.baseUnit,s=i.colors;return Pr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2,":hover":{color:r?s.neutral80:s.neutral40}})},$He=Dpe,qHe=function(e){var n=e.children,r=e.innerProps;return Sr("div",cr({},ho(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Sr(Rpe,null))},WHe=Dpe,ZHe=function(e){var n=e.children,r=e.innerProps;return Sr("div",cr({},ho(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Sr(G$,null))},YHe=function(e,n){var r=e.isDisabled,i=e.theme,a=i.spacing.baseUnit,s=i.colors;return Pr({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:a*2,marginTop:a*2})},XHe=function(e){var n=e.innerProps;return Sr("span",cr({},n,ho(e,"indicatorSeparator",{"indicator-separator":!0})))},QHe=vje(Ute||(Ute=yje([` 42 0%, 80%, 100% { opacity: 0; } 43 40% { opacity: 1; } 44`]))),KHe=function(e,n){var r=e.isFocused,i=e.size,a=e.theme,s=a.colors,o=a.spacing.baseUnit;return Pr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2})},GF=function(e){var n=e.delay,r=e.offset;return Sr("span",{css:I$({animation:"".concat(QHe," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},JHe=function(e){var n=e.innerProps,r=e.isRtl,i=e.size,a=i===void 0?4:i,s=U2(e,GHe);return Sr("div",cr({},ho(Pr(Pr({},s),{},{innerProps:n,isRtl:r,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Sr(GF,{delay:0,offset:r}),Sr(GF,{delay:160,offset:!0}),Sr(GF,{delay:320,offset:!r}))},eGe=function(e,n){var r=e.isDisabled,i=e.isFocused,a=e.theme,s=a.colors,o=a.borderRadius,l=a.spacing;return Pr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},tGe=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,a=e.innerRef,s=e.innerProps,o=e.menuIsOpen;return Sr("div",cr({ref:a}
44,ho(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":o}),s,{"aria-disabled":r||void 0}),n)},nGe=tGe,rGe=["data"],iGe=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},aGe=function(e){var n=e.children,r=e.cx,i=e.getStyles,a=e.getClassNames,s=e.Heading,o=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,f=e.selectProps;return Sr("div",cr({},ho(e,"group",{group:!0}),l),Sr(s,cr({},o,{selectProps:f,theme:u,getStyles:i,getClassNames:a,cx:r}),c),Sr("div",null,n))},sGe=function(e,n){var r=e.theme,i=r.colors,a=r.spacing;return Pr({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},oGe=function(e){var n=wpe(e);n.data;var r=U2(n,rGe);return Sr("div",cr({},ho(e,"groupHeading",{"group-heading":!0}),r))},lGe=aGe,cGe=["innerRef","isDisabled","isHidden","inputClassName"],uGe=function(e,n){var r=e.isDisabled,i=e.value,a=e.theme,s=a.spacing,o=a.colors;return Pr(Pr({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},fGe),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:o.neutral80})},Ppe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},fGe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Pr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ppe)},dGe=function(e){return Pr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ppe)},hGe=function(e){var n=e.cx,r=e.value,i=wpe(e),a=i.innerRef,s=i.isDisabled,o=i.isHidden,l=i.inputClassName,c=U2(i,cGe);return Sr("div",cr({},ho(e,"input",{"input-container":!0}),{"data-value":r||""}),Sr("input",cr({className:n({input:!0},l),ref:a,style:dGe(o),disabled:s},c)))},pGe=hGe,mGe=function(e,n){var r=e.theme,i=r.spacing,a=r.borderRadius,s=r.colors;return Pr({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},AGe=function(e,n){var r=e.theme,i=r.borderRadius,a=r.colors,s=e.cropWithEllipsis;return Pr({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},gGe=function(e,n){var r=e.theme,i=r.spacing,a=r.borderRadius,s=r.colors,o=e.isFocused;return Pr({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:o?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},kpe=function(e){var n=e.children,r=e.innerProps;return Sr("div",r,n)},xGe=kpe,vGe=kpe;function yGe(t){var e=t.children,n=t.innerProps;return Sr("div",cr({role:"button"},n),e||Sr(G$,{size:14}))}var _Ge=function(e){var n=e.children,r=e.components,i=e.data,a=e.innerProps,s=e.isDisabled,o=e.removeProps,l=e.selectProps,c=r.Container,u=r.Label,f=r.Remove;return Sr(c,{data:i,innerProps:Pr(Pr({},ho(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},Sr(u,{data:i,innerProps:Pr({},ho(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),Sr(f,{data:i,innerProps:Pr(Pr({},ho(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},o),selectProps:l}))},bGe=_Ge,wGe=function(e,n){var r=e.isDisabled,i=e.isFocused,a=e.isSelected,s=e.theme,o=s.spacing,l=s.colors;return Pr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?l.primary:l.primary50}})},SGe=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,a=e.isSelected,s=e.innerRef,o=e.innerProps;return Sr("div",cr({},ho(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:s,"aria-disabled":r},o),n)},TGe=SGe,EGe=function(e,n){var r=e.theme,i=r.spacing,a=r.colors;return Pr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},MGe=function(e){var n=e.children,r=e.innerProps;return Sr("div",cr({},ho(e,"placeholder",{placeholder:!0}),r),n)},CGe=MGe,NGe=function(e,n){var r=e.isDisabled,i=e.theme,a=i.spacing,s=i.colors;return Pr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},RGe=function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return Sr("div",cr({},ho(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},DGe=RGe,PGe={ClearIndicator:ZHe,Control:nGe,DropdownIndicator:qHe,DownChevron:Rpe,CrossIcon:G$,Group:lGe,GroupHeading:oGe,IndicatorsContainer:jHe,IndicatorSeparator:XHe,Input:pGe,Loa
44dingIndicator:JHe,Menu:MHe,MenuList:NHe,MenuPortal:OHe,LoadingMessage:kHe,NoOptionsMessage:PHe,MultiValue:bGe,MultiValueContainer:xGe,MultiValueLabel:vGe,MultiValueRemove:yGe,Option:TGe,Placeholder:CGe,SelectContainer:IHe,SingleValue:DGe,ValueContainer:UHe},kGe=function(e){return Pr(Pr({},PGe),e.components)},Vte=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function LGe(t,e){return!!(t===e||Vte(t)&&Vte(e))}function OGe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!LGe(t[n],e[n]))return!1;return!0}function FGe(t,e){e===void 0&&(e=OGe);var n=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var s=t.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}var IGe={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},BGe=function(e){return Sr("span",cr({css:IGe},e))},jte=BGe,UGe={guidance:function(e){var n=e.isSearchable,r=e.isMulti,i=e.tabSelectsValue,a=e.context,s=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,r=e.label,i=r===void 0?"":r,a=e.labels,s=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,a=e.label,s=a===void 0?"":a,o=e.selectValue,l=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,f=function(g,w){return g&&g.length?"".concat(g.indexOf(w)+1," of ").concat(g.length):""};if(n==="value"&&o)return"value ".concat(s," focused, ").concat(f(o,r),".");if(n==="menu"&&u){var h=l?" disabled":"",p="".concat(c?" selected":"").concat(h);return"".concat(s).concat(p,", ").concat(f(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},VGe=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,a=e.focusableOptions,s=e.isFocused,o=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,A=l.isMulti,g=l.isOptionDisabled,w=l.isSearchable,T=l.menuIsOpen,C=l.options,M=l.screenReaderStatus,D=l.tabSelectsValue,k=l.isLoading,I=l["aria-label"],L=l["aria-live"],O=b.useMemo(function(){return Pr(Pr({},UGe),f||{})},[f]),B=b.useMemo(function(){var Z="";if(n&&O.onChange){var X=n.option,K=n.options,se=n.removedValue,ae=n.removedValues,J=n.value,oe=function(Re){return Array.isArray(Re)?null:Re},te=se||X||oe(J),he=te?h(te):"",me=K||ae||void 0,de=me?me.map(h):[],Ae=Pr({isDisabled:te&&g(te,o),label:he,labels:de},n);Z=O.onChange(Ae)}return Z},[n,O,g,o,h]),G=b.useMemo(function(){var Z="",X=r||i,K=!!(r&&o&&o.includes(r));if(X&&O.onFocus){var se={focused:X,label:h(X),isDisabled:g(X,o),isSelected:K,options:a,context:X===r?"menu":"value",selectValue:o,isAppleDevice:u};Z=O.onFocus(se)}return Z},[r,i,h,g,O,a,o,u]),j=b.useMemo(function(){var Z="";if(T&&C.length&&!k&&O.onFilter){var X=M({count:a.length});Z=O.onFilter({inputValue:p,resultsMessage:X})}return Z},[a,p,T,O,C,M,k]),z=n?.action==="initial-input-focus",Q=b.useMemo(function(){var Z="";if(O.guidance){var X=i?"value":T?"menu":"input";
44Z=O.guidance({"aria-label":I,context:X,isDisabled:r&&g(r,o),isMulti:A,isSearchable:w,tabSelectsValue:D,isInitialFocus:z})}return Z},[I,r,i,A,g,w,T,O,o,D,z]),ee=Sr(b.Fragment,null,Sr("span",{id:"aria-selection"},B),Sr("span",{id:"aria-focused"},G),Sr("span",{id:"aria-results"},j),Sr("span",{id:"aria-guidance"},Q));return Sr(b.Fragment,null,Sr(jte,{id:c},z&&ee),Sr(jte,{"aria-live":L,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!z&&ee))},jGe=VGe,XV=[{base:"A",letters:"Aâ¶ï¼¡ÃÃÃẦẤẪẨÃÄÄáº°áº®áº´áº²È¦Ç ÃÇẢÃ
ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"ÃǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄÃá¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥ÃÃÃá»áº¾á»á»áº¼Äá¸á¸ÄÄÃẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©ÃÃÃĨĪĬİÃḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅÃá¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâOÃÃÃá»á»á»á»Ãá¹È¬á¹Åá¹á¹ÅȮȰÃȪá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬ÃÇ¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"},{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µÃÃÃŨṸŪṺŬÃÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲÃŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
èéêá»áº¿á»
á»áº½Äá¸á¸ÄÄëẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½Ã¬ÃîĩīÄïḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Åñá¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇøǿÉêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½ÃÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],HGe=new RegExp("["+XV.map(function(t){return t.letters}).join("")+"]","g"),Lpe={};for(var zF=0;zF<XV.length;zF++)for(var $F=XV[zF],qF=0;qF<$F.letters.length;qF++)Lpe[$F.letters[qF]]=$F.base;var Ope=function(e){return e.replace(HGe,function(n){return Lpe[n]})},GGe=FGe(Ope),Hte=function(e){return e.replace(/^\s+|\s+$/g,"")},zGe=function(e){return"".concat(e.label," ").concat(e.value)},$Ge=function(e){return function(n,r){if(n.data.__isNew__)return!0;var i=Pr({ignoreCase:!0,ignoreAccents:!0,stringify:zGe,trim:!0,matchFrom:"any"},e),a=i.ignoreCase,s=i.ignoreAccents,o=i.stringify,l=i.trim,c=i.matchFrom,u=l?Hte(r):r,f=l?Hte(o(n)):o(n);return a&&(u=u.toLowerCase(),f=f.toLowerCase()),s&&(u=GGe(u),f=Ope(f)),c==="start"?f.substr(0,u.length)===u:f.indexOf(u)>-1}},qGe=["innerRef"];function WGe(t){var e=t.innerRef,n=U2(t,qGe),r=vHe(n,"onExited","in","enter","exit","appear");return Sr("input",cr({ref:e},r,{css:I$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ZGe=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function YGe(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,
44i=t.onTopArrive,a=t.onTopLeave,s=b.useRef(!1),o=b.useRef(!1),l=b.useRef(0),c=b.useRef(null),u=b.useCallback(function(w,T){if(c.current!==null){var C=c.current,M=C.scrollTop,D=C.scrollHeight,k=C.clientHeight,I=c.current,L=T>0,O=D-k-M,B=!1;O>T&&s.current&&(r&&r(w),s.current=!1),L&&o.current&&(a&&a(w),o.current=!1),L&&T>O?(n&&!s.current&&n(w),I.scrollTop=D,B=!0,s.current=!0):!L&&-T>M&&(i&&!o.current&&i(w),I.scrollTop=0,B=!0,o.current=!0),B&&ZGe(w)}},[n,r,i,a]),f=b.useCallback(function(w){u(w,w.deltaY)},[u]),h=b.useCallback(function(w){l.current=w.changedTouches[0].clientY},[]),p=b.useCallback(function(w){var T=l.current-w.changedTouches[0].clientY;u(w,T)},[u]),A=b.useCallback(function(w){if(w){var T=AHe?{passive:!1}:!1;w.addEventListener("wheel",f,T),w.addEventListener("touchstart",h,T),w.addEventListener("touchmove",p,T)}},[p,h,f]),g=b.useCallback(function(w){w&&(w.removeEventListener("wheel",f,!1),w.removeEventListener("touchstart",h,!1),w.removeEventListener("touchmove",p,!1))},[p,h,f]);return b.useEffect(function(){if(e){var w=c.current;return A(w),function(){g(w)}}},[e,A,g]),function(w){c.current=w}}var Gte=["boxSizing","height","overflow","paddingRight","position"],zte={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $te(t){t.cancelable&&t.preventDefault()}function qte(t){t.stopPropagation()}function Wte(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function Zte(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yte=!!(typeof window<"u"&&window.document&&window.document.createElement),kb=0,B4={capture:!1,passive:!1};function XGe(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=b.useRef({}),a=b.useRef(null),s=b.useCallback(function(l){if(Yte){var c=document.body,u=c&&c.style;if(r&&Gte.forEach(function(A){var g=u&&u[A];i.current[A]=g}),r&&kb<1){var f=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+f||0;Object.keys(zte).forEach(function(A){var g=zte[A];u&&(u[A]=g)}),u&&(u.paddingRight="".concat(p,"px"))}c&&Zte()&&(c.addEventListener("touchmove",$te,B4),l&&(l.addEventListener("touchstart",Wte,B4),l.addEventListener("touchmove",qte,B4))),kb+=1}},[r]),o=b.useCallback(function(l){if(Yte){var c=document.body,u=c&&c.style;kb=Math.max(kb-1,0),r&&kb<1&&Gte.forEach(function(f){var h=i.current[f];u&&(u[f]=h)}),c&&Zte()&&(c.removeEventListener("touchmove",$te,B4),l&&(l.removeEventListener("touchstart",Wte,B4),l.removeEventListener("touchmove",qte,B4)))}},[r]);return b.useEffect(function(){if(e){var l=a.current;return s(l),function(){o(l)}}},[e,s,o]),function(l){a.current=l}}var QGe=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},KGe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function JGe(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,a=t.onBottomArrive,s=t.onBottomLeave,o=t.onTopArrive,l=t.onTopLeave,c=YGe({isEnabled:i,onBottomArrive:a,onBottomLeave:s,onTopArrive:o,onTopLeave:l}),u=XGe({isEnabled:n}),f=function(p){c(p),u(p)};return Sr(b.Fragment,null,n&&Sr("div",{onClick:QGe,css:KGe}),e(f))}var eze={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tze=function(e){var n=e.name,r=e.onFocus;return Sr("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:eze,value:"",onChange:function(){}})},nze=tze;function z$(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function rze(){return z$(/^iPhone/i)}function Fpe(){return z$(/^Mac/i)}function ize(){return z$(/^iPad/i)||Fpe()&&navigator.maxTouchPoints>1}function aze(){return rze()||ize()}function sze(){return Fpe()||aze()}var oze=function(e){return e.label},lze=function(e){return e.label},cze=function(e){return e.value},uze=function(e){return!!e.isDisabled},fze={clearIndicator:WHe,container:FHe,control:eGe,dropdownIndicator:$He,group:iGe,groupHeading:sGe,indicatorsContainer:VHe,indicatorSeparator:YHe,input:uGe,loadingIndicator:KHe,loadingMessage:DHe,menu:SHe,menuList:CHe,menuPortal:LHe,multiValue:mGe,multiValueLabel:AGe,multiValueRemove:gGe,noOptionsMessage:RHe,option:wGe,placeholder:EGe,singleValue:NGe,valueContainer:BHe},dze={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},hze=4,Ipe=4,pze=38,mze=Ipe*2,Aze={baseUnit:Ipe,controlHeight:pze,menuGutter:mze},WF={borderRadius:hze,colors:dze,spacing:Aze},gze={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Bte(),captureMenuScroll:!Bte(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:$Ge(),formatGroupLabel:oze,getOptionLabel:lze,getOptionValue:cze,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:uze,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!pHe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Xte(t,e,n,r){var i=Vpe(t,e,n),a=jpe(t,e,n),s=Upe(t,e),o=tR(t,e);return{type:"option",data:e,isDisabled:i,isSelected:a,label:s,value:o,index:r}}function L9(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,o){return Xte(t,s,e,o)}).filter(function(s){return Kte(t,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=Xte(t,n,e,r);return Kte(t,a)?a:void 0}).filter(gHe)}function Bpe(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,P$(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function Qte(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,P$(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function xze(t,e){return Bpe(L9(t,e))}function Kte(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,a=e.isSelected,s=e.label,o=e.value;return(!Gpe(t)||!a)&&Hpe(t,{label:s,value:o,data:i},r)}function vze(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var a=e.indexOf(n);if(a>-1)return n;if(i<e.length)return e[i]}return null}function yze(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var ZF=function(e,n){var r,i=(r=e.find(function(a){return a.data===n}))===null||r===void 0?void 0:r.id;return i||null},Upe=function(e,n){return e.getOptionLabel(n)},tR=function(e,n){return e.getOptionValue(n)};function Vpe(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function jpe(t,e,n){if(n.indexOf(e)>-1)return!0;
44if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=tR(t,e);return n.some(function(i){return tR(t,i)===r})}function Hpe(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var Gpe=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},_ze=1,zpe=(function(t){xVe(n,t);var e=yVe(n);function n(r){var i;if(AVe(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,c){var u=i.props,f=u.onChange,h=u.name;c.name=h,i.ariaOnChange(l,c),f(l,c)},i.setValue=function(l,c,u){var f=i.props,h=f.closeMenuOnSelect,p=f.isMulti,A=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:A}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:c,option:u})},i.selectOption=function(l){var c=i.props,u=c.blurInputOnSelect,f=c.isMulti,h=c.name,p=i.state.selectValue,A=f&&i.isOptionSelected(l,p),g=i.isOptionDisabled(l,p);if(A){var w=i.getOptionValue(l);i.setValue(p.filter(function(T){return i.getOptionValue(T)!==w}),"deselect-option",l)}else if(!g)f?i.setValue([].concat(P$(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}u&&i.blurInput()},i.removeValue=function(l){var c=i.props.isMulti,u=i.state.selectValue,f=i.getOptionValue(l),h=u.filter(function(A){return i.getOptionValue(A)!==f}),p=JM(c,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(JM(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,c=i.state.selectValue,u=c[c.length-1],f=c.slice(0,c.length-1),h=JM(l,f,f[0]||null);u&&i.onChange(h,{action:"pop-value",removedValue:u})},i.getFocusedOptionId=function(l){return ZF(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return Qte(L9(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return cHe.apply(void 0,[i.props.classNamePrefix].concat(c))},i.getOptionLabel=function(l){return Upe(i.props,l)},i.getOptionValue=function(l){return tR(i.props,l)},i.getStyles=function(l,c){var u=i.props.unstyled,f=fze[l](c,u);f.boxSizing="border-box";var h=i.props.styles[l];return h?h(f,c):f},i.getClassNames=function(l,c){var u,f;return(u=(f=i.props.classNames)[l])===null||u===void 0?void 0:u.call(f,c)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return kGe(i.props)},i.buildCategorizedOptions=function(){return L9(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Bpe(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,c){i.setState({ariaSelection:Pr({value:l},c)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():c&&i.openMenu("first"):(c&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var c=i.props,u=c.isMulti,f=c.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!u}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&BP(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(i.initialTouchX=u.clientX,i.initialTouchY=u.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var f=Math.abs(u.clientX-i.initialTouchX),h=Math.abs(u.clientY-i.initialTouchY),p=5;i.userIsDragging=f>p||h>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var c=i.props.inputValue,u=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var c=i.getFocusableOptions(),u=c.indexOf(l);
44i.setState({focusedOption:l,focusedOptionId:u>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Gpe(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var c=i.props,u=c.isMulti,f=c.backspaceRemovesValue,h=c.escapeClearsValue,p=c.inputValue,A=c.isClearable,g=c.isDisabled,w=c.menuIsOpen,T=c.onKeyDown,C=c.tabSelectsValue,M=c.openMenuOnFocus,D=i.state,k=D.focusedOption,I=D.focusedValue,L=D.selectValue;if(!g&&!(typeof T=="function"&&(T(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;i.focusValue("previous");break;case"ArrowRight":if(!u||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(I)i.removeValue(I);else{if(!f)return;u?i.popValue():A&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!w||!C||!k||M&&i.isOptionSelected(k,L))return;i.selectOption(k);break;case"Enter":if(l.keyCode===229)break;if(w){if(!k||i.isComposing)return;i.selectOption(k);break}return;case"Escape":w?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):A&&h&&i.clearValue();break;case" ":if(p)return;if(!w){i.openMenu("first");break}if(!k)return;i.selectOption(k);break;case"ArrowUp":w?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":w?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!w)return;i.focusOption("pageup");break;case"PageDown":if(!w)return;i.focusOption("pagedown");break;case"Home":if(!w)return;i.focusOption("first");break;case"End":if(!w)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++_ze),i.state.selectValue=Fte(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),o=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=a,i.state.focusedOption=s[o],i.state.focusedOptionId=ZF(a,s[o])}return i}return gVe(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ite(this.menuListRef,this.focusedOptionRef),sze()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var a=this.props,s=a.isDisabled,o=a.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&o&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ite(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,s=this.state,o=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=i==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(o[0]);f>-1&&(u=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,s=a.selectValue,o=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(o);o||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(i){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,s=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var l=0,c=o.indexOf(s);s||(c=-1),i==="up"?l=c>0?c-1:o.length-1:i==="down"?l=(c+1)%o.length:i==="pageup"?(l=c-a,l<0&&(l=0)):i==="pagedown"?(l=c+a,l>o.length-1&&(l=o.length-1)):i==="last"&&(l=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[l])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(WF):Pr(Pr({},WF),this.props.theme):WF})},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,s=this.getStyles,o=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,f=this.props,h=f.isMulti,p=f.isRtl,A=f.options,g=this.hasValue();return{clearValue:i,cx:a,getStyles:s,getClassNames:o,getValue:l,hasValue:g,isMulti:h,isRtl:p,options:A,selectOption:c,selectProps:f,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,s=i.isMulti;return a===void 0?s:a}},{key:"isOptionDisabled",value:function(i,a){return Vpe(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return jpe(this.props,i,a)}},{key:"filterOption",value:function(i,a){return Hpe(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:s,selectValue:o})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,a=i.isDisabled,s=i.isSearchable,o=i.inputId,l=i.inputValue,c=i.tabIndex,u=i.form,f=i.menuIsOpen,h=i.required,p=this.getComponents(),A=p.Input,g=this.state,w=g.inputIsHidden,T=g.ariaSelection,C=this.commonProps,M=o||this.getElementId("input"),D=Pr(Pr(Pr({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?T?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?b.createElement(A,cr({},C,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:M,innerRef:this.getInputRef,isDisabled:a,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},D)):b.createElement(WGe,cr({id:M,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:JN,onFocus:this.onInputFocus,disabled:a,tabIndex:c,inputMode:"none",form:u,value:""},D))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),s=a.MultiValue,o=a.MultiValueContainer,l=a.MultiValueLabel,c=a.MultiValueRemove,u=a.SingleValue,f=a.Placeholder,h=this.commonProps,p=this.props,A=p.controlShouldRenderValue,g=p.isDisabled,w=p.isMulti,T=p.inputValue,C=p.placeholder,M=this.state,D=M.selectValue,k=M.focusedValue,I=M.isFocused;if(!this.hasValue()||!A)return T?null:b.createElement(f,cr({},h,{key:"placeholder",isDisabled:g,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),C);if(w)return D.map(function(O,B){var G=O===k,j="".concat(i.getOptionLabel(O),"-").concat(i.getOptionValue(O));return b.createElement(s,cr({},h,{components:{Container:o,Label:l,Remove:c},isFocused:G,isDisabled:g,key:j,index:B,removeProps:{onClick:function(){return i.removeValue(O)},onTouchEnd:function(){return i.removeValue(O)},onMouseDown:function(Q){Q.preventDefault()}},data:O}),i.formatOptionLabel(O,"value"))});if(T)return null;var L=D[0];return b.createElement(u,cr({},h,{data:L,isDisabled:g}),this.formatOptionLabel(L,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,s=this.commonProps,o=this.props,l=o.isDisabled,c=o.isLoading,u=this.state.isFocused;if(!this.isClearable()||!a||l||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(a,cr({},s,{innerProps:f,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,s=this.commonProps,o=this.props,l=o.isDisabled,c=o.isLoading,u=this.state.isFocused;if(!a||!c)return null;var f={"aria-hidden":"true"};return b.createElement(a,cr({},s,{innerProps:f,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,s=i.IndicatorSeparator;if(!a||!s)return null;var o=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return b.createElement(s,cr({},o,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var s=this.commonProps,o=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return b.createElement(a,cr({},s,{innerProps:c,isDisabled:o,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),s=a.Group,o=a.GroupHeading,l=a.Menu,c=a.MenuList,u=a.MenuPortal,f=a.LoadingMessage,h=a.NoOptionsMessage,p=a.Option,A=this.commonProps,g=this.state.focusedOption,w=this.props,T=w.captureMenuScroll,C=w.inputValue,M=w.isLoading,D=w.loadingMessage,k=w.minMenuHeight,I=w.maxMenuHeight,L=w.menuIsOpen,O=w.menuPlacement,B=w.menuPosition,G=w.menuPortalTarget,j=w.menuShouldBlockScroll,z=w.menuShouldScrollIntoView,Q=w.noOptionsMessage,ee=w.onMenuScrollToTop,Z=w.onMenuScrollToBottom;if(!L)return null;var X=function(he,me){var de=he.type,Ae=he.data,Se=he.isDisabled,Re=he.isSelected,Ne=he.label,Fe=he.value,Qe=g===Ae,ge=Se?void 0:function(){return i.onOptionHover(Ae)},Ie=Se?void 0:function(){return i.selectOption(Ae)},De="".concat(i.getElementId("option"),"-").concat(me),Xe={id:De,onClick:Ie,onMouseMove:ge,onMouseOver:ge,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:Re};return b.createElement(p,cr({},A,{innerProps:Xe,data:Ae,isDisabled:Se,isSelected:Re,key:De,label:Ne,type:de,value:Fe,isFocused:Qe,innerRef:Qe?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(he.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(te){if(te.type==="group"){var he=te.data,me=te.options,de=te.index,Ae="".concat(i.getElementId("group"),"-").concat(de),Se="".concat(Ae,"-heading");return b.createElement(s,cr({},A,{key:Ae,data:he,options:me,Heading:o,headingProps:{id:Se,data:te.data},label:i.formatGroupLabel(te.data)}),te.options.map(function(Re){return X(Re,"".concat(de,"-").concat(Re.index))}))}else if(te.type==="option")return X(te,"".concat(te.index))});else if(M){var se=D({inputValue:C});if(se===null)return null;K=b.createElement(f,A,se)}else{var ae=Q({inputValue:C});if(ae===null)return null;K=b.createElement(h,A,ae)}var J={minMenuHeight:k,maxMenuHeight:I,menuPlacement:O,menuPosition:B,menuShouldScrollIntoView:z},oe=b.createElement(THe,cr({},A,J),function(te){var he=te.ref,me=te.placerProps,de=me.placement,Ae=me.maxHeight;return b.createElement(l,cr({},A,J,{innerRef:he,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:M,placement:de}),b.createElement(JGe,{captureEnabled:T,onTopArrive:ee,onBottomArrive:Z,lockEnabled:j},function(Se){return b.createElement(c,cr({},A,{innerRef:function(Ne){i.getMenuListRef(Ne),Se(Ne)},innerProps:{role:"listbox","aria-multiselectable":A.isMulti,id:i.getElementId("listbox")},isLoading:M,maxHeight:Ae,focusedOption:g}),K)}))});return G||B==="fixed"?b.createElement(u,cr({},A,{appendTo:G,controlElement:this.controlRef,menuPlacement:O,menuPosition:B}),oe):oe}},{key:"renderFormField",value:function(){var i=this,a=this.props,s=a.delimiter,o=a.isDisabled,l=a.isMulti,c=a.name,u=a.required,f=this.state.selectValue;if(u&&!this.hasValue()&&!o)return b.createElement(nze,{name:c,onFocus:this.onValueInputFocus});if(!(!c||o))if(l)if(s){var h=f.map(function(g){return i.getOptionValue(g)}).join(s);return b.createElement("input",{name:c,type:"hidden",value:h})}else{var p=f.length>0?f.map(function(g,w){return b.createElement("input",{key:"i-".concat(w),name:c,type:"hidden",value:i.getOptionValue(g)})}):b.createElement("input",{name:c,type:"hidden",value:""});return b.createElement("div",null,p)}else{var A=f[0]?this.getOptionValue(f[0]):"";return b.createElement("input",{name:c,type:"hidden",value:A})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,s=a.ariaSelection,o=a.focusedOption,l=a.focusedValue,c=a.isFocused,u=a.selectValue,f=this.getFocusableOptions();return b.createElement(jGe,cr({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:o,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,s=i.IndicatorsContainer,o=i.SelectContainer,l=i.ValueContainer,c=this.props,u=c.className,f=c.id,h=c.isDisabled,p=c.menuIsOpen,A=this.state.isFocused,g=this.commonProps=this.getCommonProps();return b.createElement(o,cr({},g,{className:u,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:A}),this.renderLiveRegion(),b.createElement(a,cr({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:A,menuIsOpen:p}),b.createElement(l,cr({},g,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),b.createElement(s,cr({},g,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var s=a.prevProps,o=a.clearFocusValueOnUpdate,l=a.inputIsHiddenAfterUpdate,c=a.ariaSelection,u=a.isFocused,f=a.prevWasFocused,h=a.instancePrefix,p=i.options,A=i.value,g=i.menuIsOpen,w=i.inputValue,T=i.isMulti,C=Fte(A),M={};if(s&&(A!==s.value||p!==s.options||g!==s.menuIsOpen||w!==s.inputValue)){var D=g?xze(i,C):[],k=g?Qte(L9(i,C),"".concat(h,"-option")):[],I=o?vze(a,C):null,L=yze(a,D),O=ZF(k,L);M={selectValue:C,focusedOption:L,focusedOptionId:O,focusableOptionsWithIds:k,focusedValue:I,clearFocusValueOnUpdate:!1}}var B=l!=null&&i!==s?{inputIsHid
44den:l,inputIsHiddenAfterUpdate:void 0}:{},G=c,j=u&&f;return u&&!j&&(G={value:JM(T,C,C[0]||null),options:C,action:"initial-input-focus"},j=!f),c?.action==="initial-input-focus"&&(G=null),Pr(Pr(Pr({},M),B),{},{prevProps:i,ariaSelection:G,prevWasFocused:j})}}]),n})(b.Component);zpe.defaultProps=gze;var bze=b.forwardRef(function(t,e){var n=mVe(t);return b.createElement(zpe,cr({ref:e},n))}),wze=bze;function Ia(t){const e=Dn.c(61);let n,r,i,a,s,o,l,c,u,f,h,p,A;e[0]!==t?({label:a,labelClassName:s,placeholder:f,className:n,name:l,selectedValue:A,options:u,onSelect:c,errorText:r,required:h,hideDropdownIndicator:i,minHeight:o,...p}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=h,e[12]=p,e[13]=A):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11],p=e[12],A=e[13]);const{isDark:g}=B2();let w;e[14]!==u||e[15]!==A?(w=A===""||A===void 0||A===null||u===void 0?"":u.find(se=>se.value.toString().toLowerCase()===A.toString().toLowerCase()),e[14]=u,e[15]=A,e[16]=w):w=e[16];const T=w,C=`text-sm block mb-1 ${s}`;let M;e[17]!==h?(M=h&&x.jsx("span",{className:"text-red-500",children:"*"}),e[17]=h,e[18]=M):M=e[18];let D;e[19]!==a||e[20]!==C||e[21]!==M?(D=x.jsxs("label",{className:C,children:[a,M]}),e[19]=a,e[20]=C,e[21]=M,e[22]=D):D=e[22];const k=`border rounded-[8px] focus:outline-none focus:border-[var(--secondary-color)] focus:border-2 transition-all ${g?"border-gray-600":"border-gray-300"} ${n}`;let I;e[23]!==l||e[24]!==c?(I=se=>c(se,l),e[23]=l,e[24]=c,e[25]=I):I=e[25];let L;e[26]!==r||e[27]!==g||e[28]!==o?(L=se=>({...se,border:"none",minHeight:o||"48px",borderColor:r?"var(--red-color)":"var(--secondary-color)",boxShadow:"none",borderRadius:"8px",backgroundColor:g?"#374151":se.backgroundColor,"&:hover":{border:"none"}}),e[26]=r,e[27]=g,e[28]=o,e[29]=L):L=e[29];let O,B,G,j,z;e[30]!==g?(j=se=>({...se,backgroundColor:g?"#1f2937":se.backgroundColor,borderColor:g?"#374151":se.borderColor}),z=(se,ae)=>({...se,backgroundColor:ae.isSelected?"#2783de":ae.isFocused?g?"#374151":"#f3f4f6":g?"#1f2937":se.backgroundColor,color:ae.isSelected?"#ffffff":g?"#f9fafb":se.color,"&:active":{backgroundColor:"#2783de"}}),O=se=>({...se,color:g?"#f9fafb":se.color}),B=se=>({...se,color:g?"#9ca3af":se.color}),G=se=>({...se,color:g?"#f9fafb":se.color}),e[30]=g,e[31]=O,e[32]=B,e[33]=G,e[34]=j,e[35]=z):(O=e[31],B=e[32],G=e[33],j=e[34],z=e[35]);let Q;e[36]!==O||e[37]!==B||e[38]!==G||e[39]!==L||e[40]!==j||e[41]!==z?(Q={menuPortal:Mze,control:L,valueContainer:Eze,menu:j,option:z,singleValue:O,placeholder:B,input:G},e[36]=O,e[37]=B,e[38]=G,e[39]=L,e[40]=j,e[41]=z,e[42]=Q):Q=e[42];let ee;e[43]!==i?(ee=i&&{components:{DropdownIndicator:Tze,IndicatorSeparator:Sze}},e[43]=i,e[44]=ee):ee=e[44];let Z;e[45]!==l||e[46]!==u||e[47]!==f||e[48]!==p||e[49]!==T||e[50]!==Q||e[51]!==ee||e[52]!==k||e[53]!==I?(Z=x.jsx(wze,{options:u,placeholder:f,className:k,value:T,onChange:I,name:l,menuPortalTarget:document.body,menuPosition:"fixed",styles:Q,...ee,...p}),e[45]=l,e[46]=u,e[47]=f,e[48]=p,e[49]=T,e[50]=Q,e[51]=ee,e[52]=k,e[53]=I,e[54]=Z):Z=e[54];let X;e[55]!==r?(X=r&&r!==""&&x.jsx("p",{className:"text-red-500 text-xs",children:r}),e[55]=r,e[56]=X):X=e[56];let K;return e[57]!==Z||e[58]!==X||e[59]!==D?(K=x.jsxs("div",{className:"transition-all",children:[D,Z,X]}),e[57]=Z,e[58]=X,e[59]=D,e[60]=K):K=e[60],K}function Sze(){return null}function Tze(){return null}function Eze(t){return{...t,padding:"0 10px"}}function Mze(t){return{...t,zIndex:9999}}Ia.defaultProps={label:"",labelClassName:"",placeholder:"",className:"",name:"",selectedValue:"",errorText:"",required:!1,hideDropdownIndicator:!1,minHeight:"48px"};Ia.propTypes={label:re.string,labelClassName:re.string,placeholder:re.string,className:re.string,name:re.string,selectedValue:re.string,options:re.array.isRequired,onSelect:re.func.isRequired,errorText:re.string,required:re.bool,hideDropdownIndicator:re.bool,minHeight:re.string};function $pe(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=$pe(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function vl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=$pe(t))&&(r&&(r+=" "),r+=e);return r}const qpe=6048e5,Cze=864e5,UP=6e4,VP=36e5,Nze=1e3,Jte=Symbol.for("constructDateFrom");function Va(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Jte in t?t[Jte](e):t instanceof Date?new t.constructor(e):new Date(e)}function hr(t,e){return Va(e||t,t)}function Dh(t,e,n){const r=hr(t,n?.in);return isNaN(e)?Va(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function Wh(t,e,n){const r=hr(t,n?.in);if(isNaN(e))return Va(t,NaN);if(!e)return r;const i=r.getDate(),a=Va(t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Wpe(t,e,n){return Va(t,+hr(t)+e)}function Rze(t,e,n){return Wpe(t,e*VP)}let Dze={};function Fy(){return Dze}function w2(t,e){const n=Fy(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=hr(t,e?.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function G3(t,e){return w2(t,{...e,weekStartsOn:1}
44)}function Zpe(t,e){const n=hr(t,e?.in),r=n.getFullYear(),i=Va(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=G3(i),s=Va(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const o=G3(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function nR(t){const e=hr(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function j2(t,...e){const n=Va.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function dy(t,e){const n=hr(t,e?.in);return n.setHours(0,0,0,0),n}function z3(t,e,n){const[r,i]=j2(n?.in,t,e),a=dy(r),s=dy(i),o=+a-nR(a),l=+s-nR(s);return Math.round((o-l)/Cze)}function Pze(t,e){const n=Zpe(t,e),r=Va(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),G3(r)}function A5(t,e,n){const r=hr(t,n?.in);return r.setTime(r.getTime()+e*UP),r}function $$(t,e,n){return Wh(t,e*3,n)}function kze(t,e,n){return Wpe(t,e*1e3)}function rR(t,e,n){return Dh(t,e*7,n)}function Ph(t,e,n){return Wh(t,e*12,n)}function ene(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=Va.bind(null,i));const a=hr(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),Va(r,n||NaN)}function tne(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=Va.bind(null,i));const a=hr(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),Va(r,n||NaN)}function Lze(t,e,n){const[r,i]=j2(n?.in,t,e);return+dy(r)==+dy(i)}function ap(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $3(t){return!(!ap(t)&&typeof t!="number"||isNaN(+hr(t)))}function iR(t,e,n){const[r,i]=j2(n?.in,t,e),a=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return a*12+s}function sg(t,e){const n=hr(t,e?.in);return Math.trunc(n.getMonth()/3)+1}function aR(t,e,n){const[r,i]=j2(n?.in,t,e),a=r.getFullYear()-i.getFullYear(),s=sg(r)-sg(i);return a*4+s}function sR(t,e,n){const[r,i]=j2(n?.in,t,e);return r.getFullYear()-i.getFullYear()}function Oze(t,e,n){const[r,i]=j2(n?.in,t,e),a=nne(r,i),s=Math.abs(z3(r,i));r.setDate(r.getDate()-a*s);const o=+(nne(r,i)===-a),l=a*(s-o);return l===0?0:l}function nne(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function Ype(t,e){const n=hr(t,e?.in);return n.setHours(23,59,59,999),n}function Xpe(t,e){const n=hr(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function QV(t,e){const n=hr(t,e?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function Qpe(t,e){const n=hr(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Kpe(t,e){const n=hr(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function jP(t,e){const n=hr(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Fze(t,e){const n=Fy(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=hr(t,e?.in),a=i.getDay(),s=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}const Ize={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bze=(t,e,n)=>{let r;const i=Ize[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function YF(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Uze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jze={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hze={date:YF({formats:Uze,defaultWidth:"full"}),time:YF({formats:Vze,defaultWidth:"full"}),dateTime:YF({formats:jze,defaultWidth:"full"})},Gze={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zze=(t,e,n,r)=>Gze[t];
vendor: 15,916 bytes, line 44
44function Lb(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,o=n?.width?String(n.width):s;i=t.formattingValues[o]||t.formattingValues[s]}else{const s=t.defaultWidth,o=n?.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[s]}const a=t.argumentCallback?t.argumentCallback(e):e;return i[a]}}const $ze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qze={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wze={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Zze={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yze={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Xze={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Qze=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Kze={ordinalNumber:Qze,era:Lb({values:$ze,defaultWidth:"wide"}),quarter:Lb({values:qze,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Lb({values:Wze,defaultWidth:"wide"}),day:Lb({values:Zze,defaultWidth:"wide"}),dayPeriod:Lb({values:Yze,defaultWidth:"wide",formattingValues:Xze,defaultFormattingWidth:"wide"})};function Ob(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;const s=a[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?e$e(o,f=>f.test(s)):Jze(o,f=>f.test(s));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(s.length);return{value:c,rest:u}}}function Jze(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function e$e(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function t$e(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=e.slice(i.length);return{value:s,rest:o}}}const n$e=/^(\d+)(th|st|nd|rd)?/i,r$e=/\d+/i,i$e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},a$e={any:[/^b/i,/^(a|c)/i]},s$e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},o$e={any:[/1/i,/2/i,/3/i,/4/i]},l$e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},c$e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},u$e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},f$e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},d$e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},h$e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p$e={ordinalNumber:t$e({matchPattern:n$e,parsePattern:r$e,valueCallback:t=>parseInt(t,10)}),era:Ob({matchPatterns:i$e,defaultMatchWidth:"wide",parsePatterns:a$e,defaultParseWidth:"any"}),quarter:Ob({matchPatterns:s$e,defaultMatchWidth:"wide",parsePatterns:o$e,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ob({matchPatterns:l$e,defaultMatchWidth:"wide",parsePatterns:c$e,defaultParseWidth:"any"}),day:Ob({matchPatterns:u$e,defaultMatchWidth:"wide",parsePatterns:f$e,defaultParseWidth:"any"}),dayPeriod:Ob({matchPatterns:d$e,defaultMatchWidth:"any",parsePatterns:h$e,defaultParseWidth:"any"})},Jpe={code:"en-US",formatDistance:Bze,formatLong:Hze,formatRelative:zze,localize:Kze,match:p$e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function m$e(t,e){const n=hr(t,e?.in);return z3(n,jP(n))+1}function q$(t,e){const n=hr(t,e?.in),r=+G3(n)-+Pze(n);return Math.round(r/qpe)+1}function W$(t,e){const n=hr(t,e?.in),r=n.getFullYear(),i=Fy(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=Va(e?.in||t,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const o=w2(s,e),l=Va(e?.in||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=w2(l,e);return+n>=+o?r+1:+n>=+c?r:r-1}function A$e(t,e){const n=Fy(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=W$(t,e),a=Va(e?.in||t,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),w2(a,e)}function eme(t,e){const n=hr(t,e?.in),r=+w2(n,e)-+A$e(n,e);return Math.round(r/qpe)+1}function ka(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const mA={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ka(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ka(n+1,2)},d(t,e){return ka(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ka(t.getHours()%12||12,e.length)},H(t,e){return ka(t.getHours(),e.length)},m(t,e){return ka(t.getMinutes(),e.length)},s(t,e){return ka(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ka(i,e.length)}},U4={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rne={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return mA.y(t,e)},Y:function(t,e,n,r){const i=W$(t,r),a=i>0?i:1-i;if(e==="YY"){const s=a%100;return ka(s,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):ka(a,e.length)},R:function(t,e){const n=Zpe(t);return ka(n,e.length)},u:function(t,e){const n=t.getFullYear();return ka(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ka(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ka(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return mA.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ka(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=eme(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ka(i,e.length)},I:function(t,e,n){const r=q$(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ka(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):mA.d(t,e)},D:function(t,e,n){const r=m$e(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ka(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return ka(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return ka(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ka(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=U4.noon:r===0?i=U4.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=U4.evening:r>=12?i=U4.afternoon:r>=4?i=U4.morning:i=U4.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return mA.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):mA.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ka(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ka(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):mA.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):mA.s(t,e)},S:function(t,e){return mA.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ane(r);case"XXXX":case"XX":return rv(r);default:return rv(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return ane(r);case"xxxx":case"xx":return rv(r);default:return rv(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ine(r,":");default:return"GMT"+rv(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ine(r,":");default:return"GMT"+rv(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ka(r,e.length)},T:function(t,e,n){return ka(+t,e.length)}};function ine(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+e+ka(a,2)}function ane(t,e){return t%60===0?(t>0?"-":"+")+ka(Math.abs(t)/60,2):rv(t,e)}function rv(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ka(Math.trunc(r/60),2),a=ka(r%60,2);return n+i+e+a}const sne=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},tme=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},g$e=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return sne(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",sne(r,e)).replace("{{time}}",tme(i,e))},KV={p:tme,P:g$e},x$e=/^D+$/,v$e=/^Y+$/,y$e=["D","DD","YY","YYYY"];function _$e(t){return x$e.test(t)}function b$e(t){return v$e.test(t)}function w$e(t,e,n){const r=S$e(t,e,n);if(console.warn(r),y$e.includes(t))throw new RangeError(r)}function S$e(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const T$e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E$e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M$e=/^'([^]*?)'?$/,C$e=/''/g,N$e=/[a-zA-Z]/;function one(t,e,n){const r=Fy(),i=n?.locale??r.locale??Jpe,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=hr(t,n?.in);if(!$3(o))throw new RangeError("Invalid time value");let l=e.match(E$e).map(u=>{const f=u[0];if(f==="p"||f==="P"){const h=KV[f];return h(u,i.formatLong)}return u}).join("").match(T$e).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:R$e(u)};if(rne[f])return{isToken:!0,value:u};
44if(f.match(N$e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&b$e(f)||!n?.useAdditionalDayOfYearTokens&&_$e(f))&&w$e(f,e,String(t));const h=rne[f[0]];return h(o,f,i.localize,c)}).join("")}function R$e(t){const e=t.match(M$e);return e?e[1].replace(C$e,"'"):t}function lne(t,e){return hr(t,e?.in).getDate()}function D$e(t,e){return hr(t,e?.in).getDay()}function P$e(t,e){const n=hr(t,e?.in),r=n.getFullYear(),i=n.getMonth(),a=Va(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function k$e(){return Object.assign({},Fy())}function Oc(t,e){return hr(t,e?.in).getHours()}function L$e(t,e){const n=hr(t,e?.in).getDay();return n===0?7:n}function Fc(t,e){return hr(t,e?.in).getMinutes()}function A0(t,e){return hr(t,e?.in).getMonth()}function bg(t){return hr(t).getSeconds()}function JV(t){return+hr(t)}function Ni(t,e){return hr(t,e?.in).getFullYear()}function o2(t,e){return+hr(t)>+hr(e)}function q1(t,e){return+hr(t)<+hr(e)}function O$e(t,e){return+hr(t)==+hr(e)}function F$e(t,e){const n=I$e(e)?new e(0):Va(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function I$e(t){return typeof t=="function"&&t.prototype?.constructor===t}const B$e=10;class nme{subPriority=0;validate(e,n){return!0}}class U$e extends nme{constructor(e,n,r,i,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=i,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class V$e extends nme{priority=B$e;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>Va(n,r))}set(e,n){return n.timestampIsSet?e:Va(e,F$e(e,this.context))}}class wa{run(e,n,r,i){const a=this.parse(e,n,r,i);return a?{setter:new U$e(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class j$e extends wa{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const Mo={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},V1={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Co(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ws(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function j1(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*VP+a*UP+s*Nze),rest:e.slice(n[0].length)}}function rme(t){return Ws(Mo.anyDigitsSigned,t)}function po(t,e){switch(t){case 1:return Ws(Mo.singleDigit,e);case 2:return Ws(Mo.twoDigits,e);case 3:return Ws(Mo.threeDigits,e);case 4:return Ws(Mo.fourDigits,e);default:return Ws(new RegExp("^\\d{1,"+t+"}"),e)}}function oR(t,e){switch(t){case 1:return Ws(Mo.singleDigitSigned,e);case 2:return Ws(Mo.twoDigitsSigned,e);case 3:return Ws(Mo.threeDigitsSigned,e);case 4:return Ws(Mo.fourDigitsSigned,e);default:return Ws(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Z$(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ime(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;
44else{const a=r+50,s=Math.trunc(a/100)*100,o=t>=a%100;i=t+s-(o?100:0)}return n?i:1-i}function ame(t){return t%400===0||t%4===0&&t%100!==0}class H$e extends wa{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const i=a=>({year:a,isTwoDigitYear:n==="yy"});switch(n){case"y":return Co(po(4,e),i);case"yo":return Co(r.ordinalNumber(e,{unit:"year"}),i);default:return Co(po(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const i=e.getFullYear();if(r.isTwoDigitYear){const s=ime(r.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const a=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class G$e extends wa{priority=130;parse(e,n,r){const i=a=>({year:a,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Co(po(4,e),i);case"Yo":return Co(r.ordinalNumber(e,{unit:"year"}),i);default:return Co(po(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,i){const a=W$(e,i);if(r.isTwoDigitYear){const o=ime(r.year,a);return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),w2(e,i)}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),w2(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class z$e extends wa{priority=130;parse(e,n){return oR(n==="R"?4:n.length,e)}set(e,n,r){const i=Va(e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),G3(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class $$e extends wa{priority=130;parse(e,n){return oR(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class q$e extends wa{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return po(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class W$e extends wa{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return po(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Z$e extends wa{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const i=a=>a-1;switch(n){case"M":return Co(Ws(Mo.month,e),i);case"MM":return Co(po(2,e),i);case"Mo":return Co(r.ordinalNumber(e,{unit:"month"}),i);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Y$e extends wa{priority=110;parse(e,n,r){const i=a=>a-1;switch(n){case"L":return Co(Ws(Mo.month,e),i);case"LL":return Co(po(2,e),i);case"Lo":return Co(r.ordinalNumber(e,{unit:"month"}),i);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function X$e(t,e,n){const r=hr(t,n?.in),i=eme(r,n)-e;return r.setDate(r.getDate()-i*7),hr(r,n?.in)}class Q$e extends wa{priority=100;parse(e,n,r){switch(n){case"w":return Ws(Mo.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return po(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,i){return w2(X$e(e,r,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function K$e(t,e,n){const r=hr(t,n?.in),i=q$(r,n)-e;return r.setDate(r.getDate()-i*7),r}class J$e extends wa{priority=100;parse(e,n,r){switch(n){case"I":return Ws(Mo.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return po(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return G3(K$e(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const eqe=[31,28,31,30,31,30,31,31,30,31,30,31],tqe=[31,29,31,30,31,30,31,31,30,31,30,31];
44class nqe extends wa{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return Ws(Mo.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return po(n.length,e)}}validate(e,n){const r=e.getFullYear(),i=ame(r),a=e.getMonth();return i?n>=1&&n<=tqe[a]:n>=1&&n<=eqe[a]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class rqe extends wa{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return Ws(Mo.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return po(n.length,e)}}validate(e,n){const r=e.getFullYear();return ame(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Y$(t,e,n){const r=Fy(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=hr(t,n?.in),s=a.getDay(),l=(e%7+7)%7,c=7-i,u=e<0||e>6?e-(s+c)%7:(l+c)%7-(s+c)%7;return Dh(a,u,n)}class iqe extends wa{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=Y$(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class aqe extends wa{priority=90;parse(e,n,r,i){const a=s=>{const o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(n){case"e":case"ee":return Co(po(n.length,e),a);case"eo":return Co(r.ordinalNumber(e,{unit:"day"}),a);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=Y$(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class sqe extends wa{priority=90;parse(e,n,r,i){const a=s=>{const o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(n){case"c":case"cc":return Co(po(n.length,e),a);case"co":return Co(r.ordinalNumber(e,{unit:"day"}),a);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=Y$(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function oqe(t,e,n){const r=hr(t,n?.in),i=L$e(r,n),a=e-i;return Dh(r,a,n)}class lqe extends wa{priority=90;parse(e,n,r){const i=a=>a===0?7:a;switch(n){case"i":case"ii":return po(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Co(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return Co(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Co(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return Co(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=oqe(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class cqe extends wa{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Z$(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class uqe extends wa{priority=80;
44parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Z$(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class fqe extends wa{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Z$(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class dqe extends wa{priority=70;parse(e,n,r){switch(n){case"h":return Ws(Mo.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return po(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const i=e.getHours()>=12;return i&&r<12?e.setHours(r+12,0,0,0):!i&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class hqe extends wa{priority=70;parse(e,n,r){switch(n){case"H":return Ws(Mo.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return po(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class pqe extends wa{priority=70;parse(e,n,r){switch(n){case"K":return Ws(Mo.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return po(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class mqe extends wa{priority=70;parse(e,n,r){switch(n){case"k":return Ws(Mo.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return po(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const i=r<=24?r%24:r;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class Aqe extends wa{priority=60;parse(e,n,r){switch(n){case"m":return Ws(Mo.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return po(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class gqe extends wa{priority=50;parse(e,n,r){switch(n){case"s":return Ws(Mo.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return po(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class xqe extends wa{priority=30;parse(e,n){const r=i=>Math.trunc(i*Math.pow(10,-n.length+3));return Co(po(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class vqe extends wa{priority=10;parse(e,n){switch(n){case"X":return j1(V1.basicOptionalMinutes,e);case"XX":return j1(V1.basic,e);case"XXXX":return j1(V1.basicOptionalSeconds,e);case"XXXXX":return j1(V1.extendedOptionalSeconds,e);default:return j1(V1.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Va(e,e.getTime()-nR(e)-r)}incompatibleTokens=["t","T","x"]}class yqe extends wa{priority=10;parse(e,n){switch(n){case"x":return j1(V1.basicOptionalMinutes,e);case"xx":return j1(V1.basic,e);case"xxxx":return j1(V1.basicOptionalSeconds,e);case"xxxxx":return j1(V1.extendedOptionalSeconds,e);default:return j1(V1.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Va(e,e.getTime()-nR(e)-r)}incompatibleTokens=["t","T","X"]}class _qe extends wa{priority=40;parse(e){return rme(e)}set(e,n,r){return[Va(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class bqe extends wa{priority=20;parse(e){return rme(e)}set(e,n,r){return[Va(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const wqe={G:new j$e,y:new H$e,Y:new G$e,R:new z$e,u:new $$e,Q:new q$e,q:new W$e,M:new Z$e,L:new Y$e,w:new Q$e,I:new J$e,d:new nqe,D:new rqe,E:new iqe,e:ne
44w aqe,c:new sqe,i:new lqe,a:new cqe,b:new uqe,B:new fqe,h:new dqe,H:new hqe,K:new pqe,k:new mqe,m:new Aqe,s:new gqe,S:new xqe,X:new vqe,x:new yqe,t:new _qe,T:new bqe},Sqe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tqe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Eqe=/^'([^]*?)'?$/,Mqe=/''/g,Cqe=/\S/,Nqe=/[a-zA-Z]/;function Rqe(t,e,n,r){const i=()=>Va(r?.in||n,NaN),a=k$e(),s=r?.locale??a.locale??Jpe,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!e)return t?i():hr(n,r?.in);const c={firstWeekContainsDate:o,weekStartsOn:l,locale:s},u=[new V$e(r?.in,n)],f=e.match(Tqe).map(w=>{const T=w[0];if(T in KV){const C=KV[T];return C(w,s.formatLong)}return w}).join("").match(Sqe),h=[];for(let w of f){const T=w[0],C=wqe[T];if(C){const{incompatibleTokens:M}=C;if(Array.isArray(M)){const k=h.find(I=>M.includes(I.token)||I.token===T);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${w}\` at the same time`)}else if(C.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${w}\` and any other token at the same time`);h.push({token:T,fullToken:w});const D=C.run(t,w,s.match,c);if(!D)return i();u.push(D.setter),t=D.rest}else{if(T.match(Nqe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(w==="''"?w="'":T==="'"&&(w=Dqe(w)),t.indexOf(w)===0)t=t.slice(w.length);else return i()}}if(t.length>0&&Cqe.test(t))return i();const p=u.map(w=>w.priority).sort((w,T)=>T-w).filter((w,T,C)=>C.indexOf(w)===T).map(w=>u.filter(T=>T.priority===w).sort((T,C)=>C.subPriority-T.subPriority)).map(w=>w[0]);let A=hr(n,r?.in);if(isNaN(+A))return i();const g={};for(const w of p){if(!w.validate(A,c))return i();const T=w.set(A,g,c);Array.isArray(T)?(A=T[0],Object.assign(g,T[1])):A=T}return A}function Dqe(t){return t.match(Eqe)[1].replace(Mqe,"'")}function Pqe(t,e,n){const[r,i]=j2(n?.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function kqe(t,e,n){const[r,i]=j2(n?.in,t,e);return+QV(r)==+QV(i)}function Lqe(t,e,n){const[r,i]=j2(n?.in,t,e);return r.getFullYear()===i.getFullYear()}
44function g5(t,e,n){const r=+hr(t,n?.in),[i,a]=[+hr(e.start,n?.in),+hr(e.end,n?.in)].sort((s,o)=>s-o);return r>=i&&r<=a}function Oqe(t,e,n){return Dh(t,-1,n)}function Fqe(t,e){const n=()=>Va(e?.in,NaN),i=Vqe(t);let a;if(i.date){const c=jqe(i.date,2);a=Hqe(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const s=+a;let o=0,l;if(i.time&&(o=Gqe(i.time),isNaN(o)))return n();if(i.timezone){if(l=zqe(i.timezone),isNaN(l))return n()}else{const c=new Date(s+o),u=hr(0,e?.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return hr(s+o+l,e?.in)}const e7={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Iqe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Bqe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Uqe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vqe(t){const e={},n=t.split(e7.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],e7.timeZoneDelimiter.test(e.date)&&(e.date=t.split(e7.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=e7.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function jqe(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function Hqe(t,e){if(e===null)return new Date(NaN);const n=t.match(Iqe);if(!n)return new Date(NaN);const r=!!n[4],i=Fb(n[1]),a=Fb(n[2])-1,s=Fb(n[3]),o=Fb(n[4]),l=Fb(n[5])-1;if(r)return Yqe(e,o,l)?$qe(e,o,l):new Date(NaN);{const c=new Date(0);return!Wqe(e,a,s)||!Zqe(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,s)),c)}}function Fb(t){return t?parseInt(t):1}function Gqe(t){const e=t.match(Bqe);if(!e)return NaN;const n=XF(e[1]),r=XF(e[2]),i=XF(e[3]);return Xqe(n,r,i)?n*VP+r*UP+i*1e3:NaN}function XF(t){return t&&parseFloat(t.replace(",","."))||0}function zqe(t){if(t==="Z")return 0;const e=t.match(Uqe);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return Qqe(r,i)?n*(r*VP+i*UP):NaN}function $qe(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,a=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const qqe=[31,null,31,30,31,30,31,31,30,31,30,31];function sme(t){return t%400===0||t%4===0&&t%100!==0}function Wqe(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(qqe[e]||(sme(t)?29:28))}function Zqe(t,e){return e>=1&&e<=(sme(t)?366:365)}function Yqe(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Xqe(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Qqe(t,e){return e>=0&&e<=59}function rf(t,e,n){const r=hr(t,n?.in),i=r.getFullYear(),a=r.getDate(),s=Va(t,0);s.setFullYear(i,e,15),s.setHours(0,0,0,0);const o=P$e(s);return r.setMonth(e,Math.min(a,o)),r}function O9(t,e,n){const r=hr(t,n?.in);return r.setHours(e),r}function F9(t,e,n){const r=hr(t,n?.in);return r.setMinutes(e),r}function N8(t,e,n){const r=hr(t,n?.in),i=Math.trunc(r.getMonth()/3)+1,a=e-i;return rf(r,r.getMonth()+a*3)}function I9(t,e,n){const r=hr(t,n?.in);return r.setSeconds(e),r}function R1(t,e,n){const r=hr(t,n?.in);return isNaN(+r)?Va(t,NaN):(r.setFullYear(e),r)}function Zv(t,e,n){return Wh(t,-e,n)}function ome(t,e,n){return $$(t,-1,n)}function cne(t,e,n){return rR(t,-1,n)}function zg(t,e,n){return Ph(t,-e,n)}var Kqe=typeof document<"u",Jqe=function(){},lR=Kqe?b.useLayoutEffect:Jqe;const eWe={...pN},tWe=eWe.useInsertionEffect,nWe=tWe||(t=>t());function rWe(t){const e=b.useRef(()=>{});return nWe(()=>{e.current=t}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var iWe=typeof document<"u",aWe=function(){},B9=iWe?b.useLayoutEffect:aWe;function cR(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!cR(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!cR(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function lme(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function une(t,e){const n=lme(t);return Math.round(e*n)/n}function QF(t){const e=b.useRef(t);return B9(()=>{e.current=t}),e}function sWe(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:c}=t,[u,f]=b.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);cR(h,r)||p(r);const[A,g]=b.useState(null),[w,T]=b.useState(null),C=b.useCallback(se=>{se!==I.current&&(I.current=se,g(se))},[]),M=b.useCallback(se=>{se!==L.current&&(L.current=se,T(se))},[]),D=a||A,k=s||w,I=b.useRef(null),L=b.useRef(null),O=b.useRef(u),B=l!=null,G=QF(l),j=QF(i),z=QF(c),Q=b.useCallback(()=>
44{if(!I.current||!L.current)return;const se={placement:e,strategy:n,middleware:h};j.current&&(se.platform=j.current),sHe(I.current,L.current,se).then(ae=>{const J={...ae,isPositioned:z.current!==!1};ee.current&&!cR(O.current,J)&&(O.current=J,pG.flushSync(()=>{f(J)}))})},[h,e,n,j,z]);B9(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(se=>({...se,isPositioned:!1})))},[c]);const ee=b.useRef(!1);B9(()=>(ee.current=!0,()=>{ee.current=!1}),[]),B9(()=>{if(D&&(I.current=D),k&&(L.current=k),D&&k){if(G.current)return G.current(D,k,Q);Q()}},[D,k,Q,G,B]);const Z=b.useMemo(()=>({reference:I,floating:L,setReference:C,setFloating:M}),[C,M]),X=b.useMemo(()=>({reference:D,floating:k}),[D,k]),K=b.useMemo(()=>{const se={position:n,left:0,top:0};if(!X.floating)return se;const ae=une(X.floating,u.x),J=une(X.floating,u.y);return o?{...se,transform:"translate("+ae+"px, "+J+"px)",...lme(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:J}},[n,o,X.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:Q,refs:Z,elements:X,floatingStyles:K}),[u,Q,Z,X,K])}const oWe=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Ote({element:r.current,padding:i}).fn(n):{}:r?Ote({element:r,padding:i}).fn(n):{}}}},lWe=(t,e)=>{const n=iHe(t);return{name:n.name,fn:n.fn,options:[t,e]}},cWe=(t,e)=>{const n=aHe(t);return{name:n.name,fn:n.fn,options:[t,e]}},uWe=(t,e)=>{const n=oWe(t);return{name:n.name,fn:n.fn,options:[t,e]}},fWe={...pN};let fne=!1,dWe=0;const dne=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dWe++;function hWe(){const[t,e]=b.useState(()=>fne?dne():void 0);return lR(()=>{t==null&&e(dne())},[]),b.useEffect(()=>{fne=!0},[]),t}const pWe=fWe.useId,cme=pWe||hWe,mWe=b.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a,shift:s}},width:o=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:f,stroke:h,d:p,style:{transform:A,...g}={},...w}=e,T=cme(),[C,M]=b.useState(!1);if(lR(()=>{if(!i)return;yd(i).direction==="rtl"&&M(!0)},[i]),!i)return null;const[D,k]=r.split("-"),I=D==="top"||D==="bottom";let L=f;(I&&s!=null&&s.x||!I&&s!=null&&s.y)&&(L=null);const O=u*2,B=O/2,G=o/2*(c/-8+1),j=l/2*c/4,z=!!p,Q=L&&k==="end"?"bottom":"top";let ee=L&&k==="end"?"right":"left";L&&C&&(ee=k==="end"?"left":"right");const Z=a?.x!=null?L||a.x:"",X=a?.y!=null?L||a.y:"",K=p||"M0,0"+(" H"+o)+(" L"+(o-G)+","+(l-j))+(" Q"+o/2+","+l+" "+G+","+(l-j))+" Z",se={top:z?"rotate(180deg)":"",left:z?"rotate(90deg)":"rotate(-90deg)",bottom:z?"":"rotate(180deg)",right:z?"rotate(-90deg)":"rotate(90deg)"}[D];return x.jsxs("svg",{...w,"aria-hidden":!0,ref:n,width:z?o:o+O,height:o,viewBox:"0 0 "+o+" "+(l>o?l:o),style:{position:"absolute",pointerEvents:"none",[ee]:Z,[Q]:X,[D]:I||z?"100%":"calc(100% - "+O/2+"px)",transform:[se,A].filter(ae=>!!ae).join(" "),...g},children:[O>0&&x.jsx("path",{clipPath:"url(#"+T+")",fill:"none",stroke:h,strokeWidth:O+(p?0:1),d:K}),x.jsx("path",{stroke:O&&!p?w.fill:"none",d:K}),x.jsx("clipPath",{id:T,children:x.jsx("rect",{x:-B,y:B*(z?-1:1),width:o+O,height:o})})]})});function AWe(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const gWe=b.createContext(null),xWe=b.createContext(null),vWe=()=>{var t;return((t=b.useContext(gWe))==null?void 0:t.id)||null},yWe=()=>b.useContext(xWe);function _We(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=cme(),a=b.useRef({}),[s]=b.useState(()=>AWe()),o=vWe()!=null,[l,c]=b.useState(r.reference),u=rWe((p,A,g)=>{a.current.openEvent=p?A:void 0,s.emit("openchange",{open:p,event:A,reason:g,nested:o}),n?.(p,A,g)}),f=b.useMemo(()=>({setPositionReference:c}),[]),h=b.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return b.useMemo(()=>({dataRef:a,open:e,onOpenChange:u,elements:h,events:s,floatingId:i,refs:f}),[e,u,h,s,i,f])}function bWe(t){t===void 0&&(t={});const{nodeId:e}
44=t,n=_We({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[a,s]=b.useState(null),[o,l]=b.useState(null),u=i?.domReference||a,f=b.useRef(null),h=yWe();lR(()=>{u&&(f.current=u)},[u]);const p=sWe({...t,elements:{...i,...o&&{reference:o}}}),A=b.useCallback(M=>{const D=Fu(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),getClientRects:()=>M.getClientRects(),contextElement:M}:M;l(D),p.refs.setReference(D)},[p.refs]),g=b.useCallback(M=>{(Fu(M)||M===null)&&(f.current=M,s(M)),(Fu(p.refs.reference.current)||p.refs.reference.current===null||M!==null&&!Fu(M))&&p.refs.setReference(M)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:g,setPositionReference:A,domReference:f}),[p.refs,g,A]),T=b.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),C=b.useMemo(()=>({...p,...r,refs:w,elements:T,nodeId:e}),[p,w,T,e,r]);return lR(()=>{r.dataRef.current.floatingContext=C;const M=h?.nodesRef.current.find(D=>D.id===e);M&&(M.context=C)}),b.useMemo(()=>({...p,context:C,refs:w,elements:T}),[p,w,T,C])}var ej=function(e,n){return ej=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},ej(e,n)};function Ac(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ej(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var pi=function(){return pi=Object.assign||function(n){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];
44for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},pi.apply(this,arguments)};function W1(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var wWe=function(t){var e=t.showTimeSelectOnly,n=e===void 0?!1:e,r=t.showTime,i=r===void 0?!1:r,a=t.className,s=t.children,o=t.inline,l=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return wt.createElement("div",{className:a,"aria-label":l,role:o?void 0:"dialog","aria-modal":o?void 0:"true",translate:"no"},s)},SWe=function(t,e){var n=b.useRef(null),r=b.useRef(t);b.useEffect(function(){r.current=t},[t]);var i=b.useCallback(function(a){var s,o=a.composed&&a.composedPath&&a.composedPath().find(function(l){return l instanceof Node})||a.target;n.current&&!n.current.contains(o)&&(e&&o instanceof HTMLElement&&o.classList.contains(e)||(s=r.current)===null||s===void 0||s.call(r,a))},[e]);return b.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},HP=function(t){var e=t.children,n=t.onClickOutside,r=t.className,i=t.containerRef,a=t.style,s=t.ignoreClass,o=SWe(n,s);return wt.createElement("div",{className:r,style:a,ref:function(l){o.current=l,i&&(i.current=l)}},e)},t7=null,hne=!1;function ume(){if(hne)return t7;hne=!0;try{var t="date-fns-tz";t7=require(t)}catch{t7=null}return t7}function pne(t,e){if(!e)return t;var n=ume();return n?n.toZonedTime(t,e):t}function _m(t,e){if(!e)return t;var n=ume();return n?n.fromZonedTime(t,e):t}var In;(function(t){t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.PageUp="PageUp",t.PageDown="PageDown",t.Home="Home",t.End="End",t.Enter="Enter",t.Space=" ",t.Tab="Tab",t.Escape="Escape",t.Backspace="Backspace",t.X="x"})(In||(In={}));function fme(){var t=typeof window<"u"?window:globalThis;return t}var UT=12;function Ki(t){if(t==null)return new Date;var e=typeof t=="string"?Fqe(t):hr(t);return d0(e)?e:new Date}function Bx(t,e,n,r,i){i===void 0&&(i=Ki());for(var a=q3(n)||q3(X$()),s=Array.isArray(e)?e:[e],o=0,l=s;o<l.length;o++){var c=l[o],u=Rqe(t,c,i,{locale:a});if(d0(u)&&(!r||t===xs(u,c,n)))return u}if(!r&&t&&t.length>=8){var f=new Date(t);if($3(f))return f}return null}function TWe(t,e){if(e===void 0&&(e=Ki()),!t)return null;var n=t.match(/\b(1\d{3}|2\d{3})\b/);if(!n||!n[1])return null;var r=parseInt(n[1],10),i=t.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/),a=i&&i[1]?parseInt(i[1],10)-1:e.getMonth();return new Date(r,a,1)}function d0(t){return $3(t)}function Ev(t){return t==null?null:ap(t)&&$3(t)?t:null}function xs(t,e,n){if(n==="en")return one(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?q3(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),r=r||q3(X$()),one(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function c0(t,e){var n=e.dateFormat,r=e.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return t&&xs(t,i,r)||""}var dme=" - ";function EWe(t,e,n){if(!t&&!e)return"";var r=t?c0(t,n):"",i=e?c0(e,n):"",a=n.rangeSeparator||dme;return"".concat(r).concat(a).concat(i)}function MWe(t,e){if(!t?.length)return"";var n=t[0]?c0(t[0],e):"";if(t.length===1)return n;if(t.length===2&&t[1]){var r=c0(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function bm(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,a=i===void 0?0:i,s=e.second,o=s===void 0?0:s;return O9(F9(I9(t,o),a),r)}function CWe(t){return q$(t)}function NWe(t,e){return xs(t,"ddd",e)}function Tw(t){return dy(t)}function wg(t,e,n){var r=q3(e||X$());return w2(t,{locale:r,weekStartsOn:n})}function l2(t){return Qpe(t)}function Ew(t){return jP(t)}function mne(t){return QV(t)}function Ane(){return dy(Ki())}function gne(t){return Ype(t)}function RWe(t){return Fze(t)}function DWe(t){return Xpe(t)}function k1(t,e){return t&&e?Lqe(t,e):!t&&!e}function wu(t,e){return t&&e?Pqe(t,e):!t&&!e}function uR(t,e){return t&&e?kqe(t,e):!t&&!e}function ki(t,e){return t&&e?Lze(t,e):!t&&!e}function Mv(t,e){return t&&e?O$e(t,e):!t&&!e}function iv(t,e,n){var r,i=dy(e),a=Ype(n);try{r=g5(t,{start:i,end:a})}catch{r=!1}return r}
44function X$(){var t=fme();return t.__localeId__}function q3(t){if(typeof t=="string"){var e=fme();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function PWe(t,e,n){return e(xs(t,"EEEE",n))}function kWe(t,e){return xs(t,"EEEEEE",e)}function LWe(t,e){return xs(t,"EEE",e)}function Q$(t,e){return xs(rf(Ki(),t),"LLLL",e)}function hme(t,e){return xs(rf(Ki(),t),"LLL",e)}function OWe(t,e){return xs(N8(Ki(),t),"QQQ",e)}function sd(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.excludeDateIntervals,o=n.includeDates,l=n.includeDateIntervals,c=n.filterDate,u=n.disabled;return u?!0:VT(t,{minDate:r,maxDate:i})||a&&a.some(function(f){return f instanceof Date?ki(t,f):ki(t,f.date)})||s&&s.some(function(f){var h=f.start,p=f.end;return g5(t,{start:h,end:p})})||o&&!o.some(function(f){return ki(t,f)})||l&&!l.some(function(f){var h=f.start,p=f.end;return g5(t,{start:h,end:p})})||c&&!c(Ki(t))||!1}function K$(t,e){var n=e===void 0?{}:e,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(a){var s=a.start,o=a.end;return g5(t,{start:s,end:o})}):r&&r.some(function(a){var s;return a instanceof Date?ki(t,a):ki(t,(s=a.date)!==null&&s!==void 0?s:new Date)})||!1}function pme(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.includeDates,o=n.filterDate;return VT(t,{minDate:r?Qpe(r):void 0,maxDate:i?Xpe(i):void 0})||a?.some(function(l){return wu(t,l instanceof Date?l:l.date)})||s&&!s.some(function(l){return wu(t,l)})||o&&!o(Ki(t))||!1}function n7(t,e,n,r){var i=Ni(t),a=A0(t),s=Ni(e),o=A0(e),l=Ni(r);return i===s&&i===l?a<=n&&n<=o:i<s?l===i&&a<=n||l===s&&o>=n||l<s&&l>i:!1}function FWe(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.includeDates;return VT(t,{minDate:r,maxDate:i})||a&&a.some(function(o){return wu(o instanceof Date?o:o.date,t)})||s&&!s.some(function(o){return wu(o,t)})||!1}function r7(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.includeDates,o=n.filterDate,l=n.disabled;return l?!0:VT(t,{minDate:r,maxDate:i})||a?.some(function(c){return uR(t,c instanceof Date?c:c.date)})||s&&!s.some(function(c){return uR(t,c)})||o&&!o(Ki(t))||!1}function i7(t,e,n){if(!e||!n||!$3(e)||!$3(n))return!1;var r=Ni(e),i=Ni(n);return r<=t&&i>=t}function U9(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,a=n.excludeDates,s=n.includeDates,o=n.filterDate,l=n.disabled;if(l)return!0;var c=new Date(t,0,1);return VT(c,{minDate:r?jP(r):void 0,maxDate:i?Kpe(i):void 0})||a?.some(function(u){return k1(c,u instanceof Date?u:u.date)})||s&&!s.some(function(u){return k1(c,u)})||o&&!o(Ki(c))||!1}function a7(t,e,n,r){var i=Ni(t),a=sg(t),s=Ni(e),o=sg(e),l=Ni(r);return i===s&&i===l?a<=n&&n<=o:i<s?l===i&&a<=n||l===s&&o>=n||l<s&&l>i:!1}function VT(t,e){var n,r=e===void 0?{}:e,i=r.minDate,a=r.maxDate;return(n=i&&z3(t,i)<0||a&&z3(t,a)>0)!==null&&n!==void 0?n:!1}function xne(t,e){return e.some(function(n){return Oc(n)===Oc(t)&&Fc(n)===Fc(t)&&bg(n)===bg(t)})}function vne(t,e){var n=e===void 0?{}:e,r=n.excludeTimes,i=n.includeTimes,a=n.filterTime;return r&&xne(t,r)||i&&!xne(t,i)||a&&!a(t)||!1}function yne(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=Ki();i=O9(i,Oc(t)),i=F9(i,Fc(t)),i=I9(i,bg(t));var a=Ki();a=O9(a,Oc(n)),a=F9(a,Fc(n)),a=I9(a,bg(n));var s=Ki();s=O9(s,Oc(r)),s=F9(s,Fc(r)),s=I9(s,bg(r));var o;try{o=!g5(i,{start:a,end:s})}catch{o=!1}return o}function _ne(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,a=Zv(t,1);return r&&iR(r,a)>0||i&&i.every(function(s){return iR(s,a)>0})||!1}function bne(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,a=Wh(t,1);return r&&iR(a,r)>0||i&&i.every(function(s){return iR(a,s)>0})||!1}function IWe(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,a=jP(t),s=ome(a);return r&&aR(r,s)>0||i&&i.every(function(o){return aR(o,s)>0})||!1}function BWe(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,a=Kpe(t),s=$$(a,1);return r&&aR(s,r)>0||i&&i.every(function(o){return aR(s,o)>0})||!1}function wne(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,a=zg(t,1);return r&&sR(r,a)>0||i&&i.every(function(s){return sR(s,a)>0})||!1}function UWe(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.yearItemNumber,a=i===void 0?UT:i,s=Ew(zg(t,a)),o=Qm(s,a).endPeriod,l=r&&Ni(r);return l&&l>o||!1}function Sne(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,a=Ph(t,1);return r&&sR(a,r)>0||i&&i.every(function(s){return sR(a,s)>0})||!1}function VWe(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.yearItemNumber,a=i===void 0?UT:i,s=Ph(t,a),o=Qm(s,a).startPeriod,l=r&&Ni(r);return l&&l<o||!1}function mme(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return z3(i,e)>=0});return tne(r)}else return n?tne(n):e}function Ame(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return z3(i,e)<=0});return ene(r)}else return n?ene(n):e}function Tne(t,e){var n;t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,a=t.length;i<a;i++){var s=t[i];if(ap(s)){var o=xs(s,"MM.dd.yyyy"),l=r.get(o)||[];l.includes(e)||(l.push(e),r.set(o,l))}else if(typeof s=="object"){var c=Object.keys(s),u=(n=c[0])!==null&&n!==void 0?n:"",f=s[u];if(typeof u=="string"&&Array.isArray(f))for(var h=0,p=f.length;h<p;h++){var A=f[h];if(A){var o=xs(A,"MM.dd.yyyy"),l=r.get(o)||[];l.includes(u)||(l.push(u),r.set(o,l))}}}}return r}function jWe(t,e){return t.length!==e.length?!1:t.every(function(n,r){return n===e[r]})}function HWe(t,e){t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--holidays");var n=new Map;return t.forEach(function(r){var i=r.date,a=r.holidayName;if(ap(i)){var s=xs(i,"MM.dd.yyyy"),o=n.get(s)||{className:"",holidayNames:[]};if(!("className"in o&&o.className===e&&jWe(o.holidayNames,[a]))){o.className=e;var l=o.holidayNames;o.holidayNames=l?W1(W1([],l,!0),[a],!1):[a],n.set(s,o)}}}),n}function GWe(t,e,n,r,i){for(var a=i.length,s=[],o=0;o<a;o++){var l=t,c=i[o];c&&(l=Rze(l,Oc(c)),l=A5(l,Fc(c)),l=kze(l,bg(c)));var u=A5(t,(n+1)*r);o2(l,e)&&q1(l,u)&&c!=null&&s.push(c)}return s}function V4(t){return t<10?"0".concat(t):"".concat(t)}function Qm(t,e){e===void 0&&(e=UT);var n=Math.ceil(Ni(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function zWe(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+n-+e)/36e5)}function Ene(t){var e=t.getSeconds(),n=t.getMilliseconds();return hr(t.getTime()-e*1e3-n)}function gme(t,e){return Ene(t).getTime()===Ene(e).getTime()}function Mne(t){if(!ap(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function KF(t,e){if(!ap(t)||!ap(e))throw new Error("Invalid date received");var n=Mne(t),r=Mne(e);return q1(n,r)}function xme(t){return t.key===In.Space}var JF=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.inputRef=wt.createRef(),r.onTimeChange=function(i){var a,s;r.setState({time:i});var o=r.props.date,l=o instanceof Date&&!isNaN(+o),c=l?o:new Date;if(i?.includes(":")){var u=i.split(":"),f=u[0],h=u[1];c.setHours(Number(f)),c.setMinutes(Number(h))}(s=(a=r.props).onChange)===null||s===void 0||s.call(a,c)}
44,r.renderTimeInput=function(){var i=r.state.time,a=r.props,s=a.date,o=a.timeString,l=a.customTimeInput;return l?b.cloneElement(l,{date:s,value:i,onChange:r.onTimeChange}):wt.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var c;(c=r.inputRef.current)===null||c===void 0||c.focus()},required:!0,value:i,onChange:function(c){r.onTimeChange(c.target.value||o)}})},r.state={time:r.props.timeString},r}return e.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},e.prototype.render=function(){return wt.createElement("div",{className:"react-datepicker__input-time-container"},wt.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),wt.createElement("div",{className:"react-datepicker-time__input-container"},wt.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e})(b.Component),$We=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.dayEl=b.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,a,s=r.key;s===In.Space&&(r.preventDefault(),r.key=In.Enter),(a=(i=n.props).handleOnKeyDown)===null||a===void 0||a.call(i,r)},n.isSameDay=function(r){return ki(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(s){return n.isSameDayOrWeek(s)}):n.isSameDayOrWeek(n.props.selected),a=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!a},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),sd(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate,disabled:n.props.disabled})},n.isExcluded=function(){return K$(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return ki(n.props.day,wg(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&ki(r,wg(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,a=r.highlightDates;if(!a)return!1;var s=xs(i,"MM.dd.yyyy");return a.get(s)},n.getHolidaysClass=function(){var r,i=n.props,a=i.day,s=i.holidays;if(!s)return[void 0];var o=xs(a,"MM.dd.yyyy");return s.has(o)?[(r=s.get(o))===null||r===void 0?void 0:r.className]:[void 0]},n.isInRange=function(){var r=n.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:iv(i,a,s)},n.isInSelectingRange=function(){var r,i=n.props,a=i.day,s=i.selectsStart,o=i.selectsEnd,l=i.selectsRange,c=i.selectsDisabledDaysInRange,u=i.startDate,f=i.swapRange,h=i.endDate,p=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;if(n.isAfterMonth()||n.isBeforeMonth()||!(s||o||l)||!p||!c&&n.isDisabled())return!1;if(s&&h&&(q1(p,h)||Mv(p,h)))return iv(a,p,h);if(o&&u&&(o2(p,u)||Mv(p,u)))return iv(a,u,p);if(l&&u&&!h){if(Mv(p,u)||o2(p,u))return iv(a,u,p);if(f&&q1(p,u))return iv(a,p,u)}return!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,a=i.day,s=i.startDate,o=i.selectsStart,l=i.swapRange,c=i.selectsRange,u=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return o?ki(a,u):c&&l&&s&&u?ki(a,q1(u,s)?u:s):ki(a,s)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,a=i.day,s=i.endDate,o=i.selectsEnd,l=i.selectsRange,c=i.swapRange,u=i.startDate,f=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return o?ki(a,f):l&&c&&u&&f?ki(a,q1(f,u)?u:f):l?ki(a,f):ki(a,s)}
44,n.isRangeStart=function(){var r=n.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:ki(a,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:ki(s,i)},n.isWeekend=function(){var r=D$e(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===A0(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(A0(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(Ki())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return vl("react-datepicker__day",i,"react-datepicker__day--"+NWe(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,a=r.ariaLabelPrefixWhenEnabled,s=a===void 0?"Choose":a,o=r.ariaLabelPrefixWhenDisabled,l=o===void 0?"Not available":o,c=n.isDisabled()||n.isExcluded()?l:s;return"".concat(c," ").concat(xs(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,a=r.holidays,s=a===void 0?new Map:a,o=r.excludeDates,l=xs(i,"MM.dd.yyyy"),c=[];return s.has(l)&&c.push.apply(c,s.get(l).holidayNames),n.isExcluded()&&c.push(o?.filter(function(u){return u instanceof Date?ki(u,i):ki(u?.date,i)}).map(function(u){if(!(u instanceof Date))return u?.message})),c.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,a=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&ki(i,r))?0:-1;return a},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(lne(n.props.day),n.props.day):lne(n.props.day)},n.render=function(){return wt.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"gridcell",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&wt.createElement("span",{className:"overlay"},n.getTitle()))},n}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&(n=!0),this.isDuplicateDay()&&(n=!1)),n},e.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))}
44,e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e})(b.Component),qWe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.weekNumberEl=b.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,a,s=r.key;s===In.Space&&(r.preventDefault(),r.key=In.Enter),(a=(i=n.props).handleOnKeyDown)===null||a===void 0||a.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ki(n.props.date,n.props.selected)&&ki(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||ki(n.props.date,n.props.selected)&&ki(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!r?.isInputFocused&&ki(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},e.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.isWeekDisabled,a=n.ariaLabelPrefix,s=a===void 0?e.defaultProps.ariaLabelPrefix:a,o=n.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!i,"react-datepicker__week-number--selected":!!o&&ki(this.props.date,this.props.selected)};return wt.createElement("div",{ref:this.weekNumberEl,className:vl(l),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},r)},e})(b.Component),WWe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isDisabled=function(r){return sd(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,a){for(var s,o,l,c=new Date(r),u=0;u<7;u++){var f=new Date(r);f.setDate(f.getDate()+u);var h=!n.isDisabled(f);if(h){c=f;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(c,i,a),n.props.showWeekPicker&&n.handleDayClick(c,a),((s=n.props.shouldCloseOnSelect)!==null&&s!==void 0?s:e.defaultProps.shouldCloseOnSelect)&&((l=(o=n.props).setOpen)===null||l===void 0||l.call(o,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):CWe(r)},n.isWeekDisabled=function(){for(var r=n.startOfWeek(),i=Dh(r,6),a=new Date(r);a<=i;){if(!n.isDisabled(a))return!1;a=Dh(a,1)}return!0},n.renderDays=function(){var r=n.startOfWeek(),i=[],a=n.formatWeekNumber(r);
44if(n.props.showWeekNumber){var s=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,a):void 0;i.push(wt.createElement(qWe,pi({key:"W"},e.defaultProps,n.props,{weekNumber:a,isWeekDisabled:n.isWeekDisabled(),date:r,onClick:s})))}return i.concat([0,1,2,3,4,5,6].map(function(o){var l=Dh(r,o);return wt.createElement($We,pi({},e.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:n.handleDayClick.bind(n,l),onMouseEnter:n.handleDayMouseEnter.bind(n,l)}))}))},n.startOfWeek=function(){return wg(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!ki(n.startOfWeek(),n.props.selected)&&ki(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":ki(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},r=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return wt.createElement("div",{className:vl(n,r),role:"row"},this.renderDays())},e})(b.Component),Ib,ZWe=6,d3={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},eI=(Ib={},Ib[d3.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Ib[d3.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Ib[d3.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Ib),s7=1;function Cne(t,e){return t?d3.FOUR_COLUMNS:e?d3.TWO_COLUMNS:d3.THREE_COLUMNS}var YWe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.MONTH_REFS=W1([],Array(12),!0).map(function(){return b.createRef()}),n.QUARTER_REFS=W1([],Array(4),!0).map(function(){return b.createRef()}),n.isDisabled=function(r){return sd(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate,disabled:n.props.disabled})},n.isExcluded=function(r){return K$(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var a,s;
44(s=(a=n.props).onDayClick)===null||s===void 0||s.call(a,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,a;(a=(i=n.props).onDayMouseEnter)===null||a===void 0||a.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate;return!s||!o?!1:wu(rf(a,r),s)},n.isRangeStartQuarter=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate;return!s||!o?!1:uR(N8(a,r),s)},n.isRangeEndMonth=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate;return!s||!o?!1:wu(rf(a,r),o)},n.isRangeEndQuarter=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate;return!s||!o?!1:uR(N8(a,r),o)},n.isInSelectingRangeMonth=function(r){var i,a=n.props,s=a.day,o=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,u=a.startDate,f=a.endDate,h=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(o||l||c)||!h?!1:o&&f?n7(h,f,r,s):l&&u||c&&u&&!f?n7(u,h,r,s):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var a=n.props,s=a.day,o=a.startDate,l=a.selectsStart,c=rf(s,r),u=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l?wu(c,u):wu(c,o)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var a=n.props,s=a.day,o=a.endDate,l=a.selectsEnd,c=a.selectsRange,u=rf(s,r),f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return l||c?wu(u,f):wu(u,o)},n.isInSelectingRangeQuarter=function(r){var i,a=n.props,s=a.day,o=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,u=a.startDate,f=a.endDate,h=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(o||l||c)||!h?!1:o&&f?a7(h,f,r,s):l&&u||c&&u&&!f?a7(u,h,r,s):!1},n.isWeekInMonth=function(r){var i=n.props.day,a=Dh(r,6);return wu(r,i)||wu(a,i)},n.isCurrentMonth=function(r,i){return Ni(r)===Ni(Ki())&&i===A0(Ki())},n.isCurrentQuarter=function(r,i){return Ni(r)===Ni(Ki())&&i===sg(Ki())},n.isSelectedMonth=function(r,i,a){return A0(a)===i&&Ni(r)===Ni(a)},n.isSelectMonthInList=function(r,i,a){return a.some(function(s){return n.isSelectedMonth(r,i,s)})},n.isSelectedQuarter=function(r,i,a){return sg(a)===i&&Ni(r)===Ni(a)},n.isSelectQuarterInList=function(r,i,a){return a.some(function(s){return n.isSelectedQuarter(r,i,s)})},n.isMonthSelected=function(){var r=n.props,i=r.day,a=r.selected,s=r.selectedDates,o=r.selectsMultiple,l=A0(i);return o?s?.some(function(c){return n.isSelectedMonth(i,l,c)}):!!a&&n.isSelectedMonth(i,l,a)},n.isQuarterSelected=function(){var r=n.props,i=r.day,a=r.selected,s=r.selectedDates,o=r.selectsMultiple,l=sg(i);return o?s?.some(function(c){return n.isSelectedQuarter(i,l,c)}):!!a&&n.isSelectedQuarter(i,l,a)},n.renderWeeks=function(){if(!d0(n.props.day))return[];for(var r=[],i=n.props.fixedHeight,a=0,s=!1,o=wg(l2(n.props.day),n.props.locale,n.props.calendarStartDay),l=function(A){return n.props.showWeekPicker?wg(A,n.props.locale,n.props.calendarStartDay):n.props.preSelection},c=function(A){return n.props.showWeekPicker?wg(A,n.props.locale,n.props.calendarStartDay):n.props.selected},u=n.props.selected?c(n.props.selected):void 0,f=n.props.preSelection?l(n.props.preSelection):void 0;r.push(wt.createElement(WWe,pi({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:a,day:o,month:A0(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:u,preSelection:f,showWeekNumber:n.props.showWeekNumbers}))),!s;){a++,o=rR(o,1);var h=i&&a>=ZWe,p=!i&&!n.isWeekInMonth(o);if(h||p)if(n.props.peekNextMonth)s=!0;else break}return r},n.onMonthClick=function(r,i){var a=n.isMonthDisabledForLabelDate(i),s=a.isDisabled,o=a.labelDate;s||n.handleDayClick(l2(o),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),a=i.isDisabled,s=i.labelDate;a||n.handleDayMouseEnter(l2(s))},n.handleMonthNavigation=function(r,i){var a,s,o,l;(s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,i),(l=(o=n.MONTH_REFS[r])===null||o===void 0?void 0:o.current)===null||l===void 0||l.focus()},n.handleKeyboardNavigation=function(r,i,a){var s,o=n.props,l=o.selected,c=o.preSelection,u=o.setPreSelection,f=o.minDate,h=o.maxDate,p=o.showFourColumnMonthYearPicker,A=o.showTwoColumnMonthYearPicker;if(c){var g=Cne(p,A),w=n.getVerticalOffset(g),T=(s=eI[g])===null||s===void 0?void 0:s.grid,C=function(L,O,B){var G,j,z=O,Q=B;switch(L){case In.ArrowRight:z=Wh(O,s7),Q=B===11?0:B+s7;break;case In.ArrowLeft:z=Zv(O,s7),Q=B===0?11:B-s7;break;case In.ArrowUp:z=Zv(O,w),Q=!((G=T?.[0])===null||G===void 0)&&G.includes(B)?B+12-w:B-w;break;case In.ArrowDown:z=Wh(O,w),Q=!((j=T?.[T.length-1])===null||j===void 0)&&j.includes(B)?B-12+w:B+w;break}return{newCalculatedDate:z,newCalculatedMonth:Q}},M=function(L,O,B){for(var G=40,j=L,z=!1,Q=0,ee=C(j,O,B),Z=ee.newCalculatedDate,X=ee.newCalculatedMonth;!z;){if(Q>=G){Z=O,X=B;break}if(f&&Z<f){j=In.ArrowRight;var K=C(j,Z,X);Z=K.newCalculatedDate,X=K.newCalculatedMonth}if(h&&Z>h){j=In.ArrowLeft;var K=C(j,Z,X);Z=K.newCalculatedDate,X=K.newCalculatedMonth}if(FWe(Z,n.props)){var K=C(j,Z,X);Z=K.newCalculatedDate,X=K.newCalculatedMonth}else z=!0;Q++}return{newCalculatedDate:Z,newCalculatedMonth:X}};if(i===In.Enter){n.isMonthDisabled(a)||(n.onMonthClick(r,a),u?.(l));return}var D=M(i,c,a),k=D.newCalculatedDate,I=D.newCalculatedMonth;switch(i){case In.ArrowRight:case In.ArrowLeft:case In.ArrowUp:case In.ArrowDown:n.handleMonthNavigation(I,k);break}}},n.getVerticalOffset=function(r){var i,a;return(a=(i=eI[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&a!==void 0?a:0},n.onMonthKeyDown=function(r,i){var a=n.props,s=a.disabledKeyboardNavigation,o=a.handleOnMonthKeyDown,l=r.key;l!==In.Tab&&r.preventDefault(),s||n.handleKeyboardNavigation(r,l,i),o&&o(r)}
44,n.onQuarterClick=function(r,i){var a=N8(n.props.day,i);r7(a,n.props)||n.handleDayClick(mne(a),r)},n.onQuarterMouseEnter=function(r){var i=N8(n.props.day,r);r7(i,n.props)||n.handleDayMouseEnter(mne(i))},n.handleQuarterNavigation=function(r,i){var a,s,o,l;n.isDisabled(i)||n.isExcluded(i)||((s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,i),(l=(o=n.QUARTER_REFS[r-1])===null||o===void 0?void 0:o.current)===null||l===void 0||l.focus())},n.onQuarterKeyDown=function(r,i){var a,s,o=r.key;if(!n.props.disabledKeyboardNavigation)switch(o){case In.Enter:n.onQuarterClick(r,i),(s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,n.props.selected);break;case In.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,$$(n.props.preSelection,1));break;case In.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,ome(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,a=n.props,s=a.day,o=a.disabled,l=a.minDate,c=a.maxDate,u=a.excludeDates,f=a.includeDates,h=rf(s,r);return o?{isDisabled:!0,labelDate:rf(s,r)}:{isDisabled:(i=(l||c||u||f)&&pme(h,n.props))!==null&&i!==void 0?i:!1,labelDate:h}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate,l=i.preSelection,c=i.monthClassName,u=c?c(rf(a,r)):void 0,f=n.getSelection();return vl("react-datepicker__month-text","react-datepicker__month-".concat(r),u,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":f?n.isSelectMonthInList(a,r,f):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&l&&n.isSelectedMonth(a,r,l)&&!n.isMonthSelected()&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":s&&o?n7(s,o,r,a):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(a,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=A0(n.props.preSelection),a=n.isMonthDisabledForLabelDate(i).isDisabled,s=r===i&&!(a||n.props.disabledKeyboardNavigation)?"0":"-1";return s},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=sg(n.props.preSelection),a=r7(n.props.day,n.props),s=r===i&&!(a||n.props.disabledKeyboardNavigation)?"0":"-1";return s},n.getAriaLabel=function(r){var i=n.props,a=i.chooseDayAriaLabelPrefix,s=a===void 0?"Choose":a,o=i.disabledDayAriaLabelPrefix,l=o===void 0?"Not available":o,c=i.day,u=i.locale,f=rf(c,r),h=n.isDisabled(f)||n.isExcluded(f)?l:s;return"".concat(h," ").concat(xs(f,"MMMM yyyy",u))},n.getQuarterClassNames=function(r){var i=n.props,a=i.day,s=i.startDate,o=i.endDate,l=i.minDate,c=i.maxDate,u=i.excludeDates,f=i.includeDates,h=i.filterDate,p=i.preSelection,A=i.disabledKeyboardNavigation,g=i.disabled,w=(l||c||u||f||h||g)&&r7(N8(a,r),n.props),T=n.getSelection();return vl("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":w,"react-datepicker__quarter-text--selected":T?n.isSelectQuarterInList(a,r,T):void 0,"react-datepicker__quarter-text--keyboard-selected":!A&&p&&n.isSelectedQuarter(a,r,p)&&!n.isQuarterSelected()&&!w,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":s&&o?a7(s,o,r,a):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":n.isCurrentQuarter(a,r)})},n.getMonthContent=function(r){var i=n.props,a=i.showFullMonthYearPicker,s=i.renderMonthContent,o=i.locale,l=i.day,c=hme(r,o),u=Q$(r,o);return s?s(r,c,u,l):a?u:c},n.getQuarterContent=function(r){var i,a=n.props,s=a.renderQuarterContent,o=a.locale,l=OWe(r,o);return(i=s?.(r,l))!==null&&i!==void 0?i:l},n.renderMonths=function(){var r,i=n.props,a=i.showTwoColumnMonthYearPicker,s=i.showFourColumnMonthYearPicker,o=i.day,l=i.selected,c=(r=eI[Cne(s,a)])===null||r===void 0?void 0:r.grid;return c?.map(function(u,f){return wt.createElement("div",{className:"react-datepicker__month-wrapper",key:f},u.map(function(h,p){return wt.createElement("div",{ref:n.MONTH_REFS[h],key:p,onClick:function(A){n.onMonthClick(A,h)},onKeyDown:function(A){xme(A)&&(A.preventDefault(),A.key=In.Enter),n.onMonthKeyDown(A,h)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(h)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(h)}:void 0,tabIndex:Number(n.getTabIndex(h)),className:n.getMonthClassNames(h),"aria-disabled":n.isMonthDisabled(h),role:"option","aria-label":n.getAriaLabel(h),"aria-current":n.isCurrentMonth(o,h)?"date":void 0,"aria-selected":l?n.isSelectedMonth(o,h,l):void 0},n.getMonthContent(h))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,a=r.selected,s=[1,2,3,4];return wt.createElement("div",{className:"react-datepicker__quarter-wrapper"},s.map(function(o,l){return wt.createElement("div",{key:l,ref:n.QUARTER_REFS[l],role:"option",onClick:function(c){n.onQuarterClick(c,o)},onKeyDown:function(c){n.onQuarterKeyDown(c,o)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(o)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(o)}:void 0,className:n.getQuarterClassNames(o),"aria-selected":a?n.isSelectedQuarter(i,o,a):void 0,tabIndex:Number(n.getQuarterTabIndex(o)),"aria-current":n.isCurrentQuarter(i,o)?"date":void 0},n.getQuarterContent(o))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,a=r.selectsStart,s=r.selectsEnd,o=r.showMonthYearPicker,l=r.showQuarterYearPicker,c=r.showWeekPicker;return vl("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(a||s)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},n}return e.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,a=n.selectsMultiple;if(a)return i;if(r)return[r]},e.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,a=n.day,s=n.ariaLabelPrefix,o=s===void 0?"Month "
44:s,l=o?o.trim()+" ":"",c=d0(a)?"".concat(l).concat(xs(a,"MMMM, yyyy",this.props.locale)):"",u=r||i;return u?wt.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":c,role:"listbox"},r?this.renderMonths():this.renderQuarters()):wt.createElement("div",{role:"table"},this.props.dayNamesHeader&&wt.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&wt.createElement("div",{role:"rowgroup"},this.props.monthHeader),wt.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":c,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&wt.createElement("div",{role:"rowgroup"},this.props.monthFooter))},e})(b.Component),XWe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.monthOptionButtonsRef={},n.isSelectedMonth=function(r){return n.props.month===r},n.handleOptionKeyDown=function(r,i){var a;switch(i.key){case"Enter":i.preventDefault(),n.onChange(r);break;case"Escape":i.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":{i.preventDefault();var s=(r+(i.key==="ArrowUp"?-1:1)+n.props.monthNames.length)%n.props.monthNames.length;(a=n.monthOptionButtonsRef[s])===null||a===void 0||a.focus();break}}},n.renderOptions=function(){return n.monthOptionButtonsRef={},n.props.monthNames.map(function(r,i){return wt.createElement("div",{ref:function(a){n.monthOptionButtonsRef[i]=a,n.isSelectedMonth(i)&&a?.focus()},role:"button",tabIndex:0,className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),onKeyDown:n.handleOptionKeyDown.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?wt.createElement("span",{className:"react-datepicker__month-option--selected"},"â"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return e.prototype.render=function(){return wt.createElement(HP,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e})(b.Component),QWe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,a){return wt.createElement("option",{key:i,value:a},i)})},n.renderSelectMode=function(r){return wt.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return wt.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},wt.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),wt.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return wt.createElement(XWe,pi({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,a=[n.renderReadView(!i,r)];return i&&a.unshift(n.renderDropdown(r)),a},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return hme(a,n.props.locale)}:function(a){return Q$(a,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return wt.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e})(b.Component),Nne=5;function KWe(t,e,n){for(var r=[],i=t??zg(n,Nne),a=e??Ph(n,Nne),s=l2(i),o=l2(a);!o2(s,o);)r.push(Ki(s)),s=Wh(s,1);return r}var JWe=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var a=JV(i),s=k1(r.props.date,i)&&wu(r.props.date,i);return wt.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:r.onChange.bind(r,a),"aria-selected":s?"true":void 0},s?wt.createElement("span",{className:"react-datepicker__month-year-option--selected"},"â"):"",xs(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:KWe(r.props.minDate,r.props.maxDate,r.props.date)},r}return e.prototype.render=function(){var n=vl({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return wt.createElement(HP,{className:n,onClickOutside:this.handleClickOutside},this.renderOptions())},e}
44)(b.Component),Rne=5,eZe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r,i,a=(r=n.props.minDate)!==null&&r!==void 0?r:zg(n.props.date,Rne),s=(i=n.props.maxDate)!==null&&i!==void 0?i:Ph(n.props.date,Rne),o=l2(a),l=l2(s),c=[];!o2(o,l);){var u=JV(o);c.push(wt.createElement("option",{key:u,value:u},xs(o,n.props.dateFormat,n.props.locale))),o=Wh(o,1)}return c},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return wt.createElement("select",{value:JV(l2(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=xs(n.props.date,n.props.dateFormat,n.props.locale);return wt.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},wt.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),wt.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return wt.createElement(JWe,pi({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=Ki(r);k1(n.props.date,i)&&wu(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return wt.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},e})(b.Component),tZe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,a;n.list&&(n.list.scrollTop=(a=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&a!==void 0?a:0)})},n.handleClick=function(r){var i,a;(n.props.minTime||n.props.maxTime)&&yne(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&vne(r,n.props)||(a=(i=n.props).onChange)===null||a===void 0||a.call(i,r)},n.isSelectedTime=function(r){var i=Ev(n.props.selected);return i&&gme(i,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&yne(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&vne(r,n.props)},n.liClasses=function(r){var i,a=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&a.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&a.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(Oc(r)*3600+Fc(r)*60+bg(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},n.handleOnKeyDown=function(r,i){var a,s;r.key===In.Space&&(r.preventDefault(),r.key=In.Enter),(r.key===In.ArrowUp||r.key===In.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===In.ArrowDown||r.key===In.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===In.Enter&&n.handleClick(i),(s=(a=n.props).handleOnKeyDown)===null||s===void 0||s.call(a,r)},n.renderTimes=function(){for(var r,i=[],a=typeof n.props.format=="string"?n.props.format:"p",s=(r=n.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,o=Ev(n.props.selected)||Ev(n.props.openToDate)||Ki(),l=Tw(o),c=n.props.injectTimes&&n.props.injectTimes.sort(function(w,T){return w.getTime()-T.getTime()}),u=60*zWe(o),f=u/s,h=0;h<f;h++){var p=A5(l,h*s);if(i.push(p),c){var A=GWe(l,p,h,s,c);i=i.concat(A)}}var g=i.reduce(function(w,T){return T.getTime()<=o.getTime()?T:w},i[0]);return i.map(function(w){return wt.createElement("li",{key:w.valueOf(),onClick:n.handleClick.bind(n,w),className:n.liClasses(w),ref:function(T){w===g&&(n.centerLi=T)},onKeyDown:function(T){n.handleOnKeyDown(T,w)},tabIndex:w===g?0:-1,role:"option","aria-selected":n.isSelectedTime(w)?"true":void 0,"aria-disabled":n.isDisabledTime(w)?"true":void 0},xs(w,a,n.props.locale))})},n.renderTimeCaption=function(){return n.props.showTimeCaption===!1?wt.createElement(wt.Fragment,null):wt.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){n.header=r}},wt.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}
44},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},e.prototype.componentWillUnmount=function(){var n;(n=this.resizeObserver)===null||n===void 0||n.disconnect()},e.prototype.observeDatePickerHeightChanges=function(){var n=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){n.updateContainerHeight()}),this.resizeObserver.observe(r))},e.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var n=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==n&&this.setState({height:n})}},e.prototype.render=function(){var n=this,r,i=this.state.height;return wt.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),wt.createElement("div",{className:"react-datepicker__time"},wt.createElement("div",{className:"react-datepicker__time-box"},wt.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){n.list=a},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},e})(b.Component),Dne=3,nZe=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.YEAR_REFS=W1([],Array(r.props.yearItemNumber),!0).map(function(){return b.createRef()}),r.isDisabled=function(i){return sd(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return K$(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var a=function(){var s,o;(o=(s=r.YEAR_REFS[i])===null||s===void 0?void 0:s.current)===null||o===void 0||o.focus()};window.requestAnimationFrame(a)},r.handleYearClick=function(i,a){r.props.onDayClick&&r.props.onDayClick(i,a)},r.handleYearNavigation=function(i,a){var s,o,l,c,u=r.props,f=u.date,h=u.yearItemNumber;if(!(f===void 0||h===void 0)){var p=Qm(f,h).startPeriod;r.isDisabled(a)||r.isExcluded(a)||((o=(s=r.props).setPreSelection)===null||o===void 0||o.call(s,a),i-p<0?r.updateFocusOnPaginate(h-(p-i)):i-p>=h?r.updateFocusOnPaginate(Math.abs(h-(i-p))):(c=(l=r.YEAR_REFS[i-p])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},r.isSameDay=function(i,a){return ki(i,a)},r.isCurrentYear=function(i){return i===Ni(Ki())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&k1(R1(Ki(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&k1(R1(Ki(),i),r.props.endDate)},r.isInRange=function(i){return i7(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var a=r.props,s=a.selectsStart,o=a.selectsEnd,l=a.selectsRange,c=a.startDate,u=a.endDate;return!(s||o||l)||!r.selectingDate()?!1:s&&u?i7(i,r.selectingDate(),u):o&&c||l&&c&&!u?i7(i,c,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var a;if(!r.isInSelectingRange(i))return!1;var s=r.props,o=s.startDate,l=s.selectsStart,c=R1(Ki(),i);return l?k1(c,(a=r.selectingDate())!==null&&a!==void 0?a:null):k1(c,o??null)},r.isSelectingRangeEnd=function(i){var a;if(!r.isInSelectingRange(i))return!1;var s=r.props,o=s.endDate,l=s.selectsEnd,c=s.selectsRange,u=R1(Ki(),i);return l||c?k1(u,(a=r.selectingDate())!==null&&a!==void 0?a:null):k1(u,o??null)},r.isKeyboardSelected=function(i){if(!(r.props.disabledKeyboardNavigation||r.props.date===void 0||r.props.preSelection==null)){var a=r.props,s=a.minDate,o=a.maxDate,l=a.excludeDates,c=a.includeDates,u=a.filterDate,f=a.selected,h=Ew(R1(r.props.date,i)),p=(s||o||l||c||u)&&U9(i,r.props),A=!!f&&ki(h,Ew(f)),g=ki(h,Ew(r.props.preSelection));return!r.props.inline&&!A&&g&&!p}},r.isSelectedYear=function(i){var a=r.props,s=a.selectsMultiple,o=a.selected,l=a.selectedDates;return s?l?.some(function(c){return i===Ni(c)}):!!o&&i===Ni(o)},r.onYearClick=function(i,a){var s=r.props.date;s!==void 0&&r.handleYearClick(Ew(R1(s,a)),i)},r.onYearKeyDown=function(i,a){var s,o,l=i.key,c=r.props,u=c.date,f=c.yearItemNumber,h=c.handleOnKeyDown;if(l!==In.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case In.Enter:if(r.props.selected==null)break;r.onYearClick(i,a),(o=(s=r.props).setPreSelection)===null||o===void 0||o.call(s,r.props.selected);break;case In.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(a+1,Ph(r.props.preSelection,1));break;case In.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(a-1,zg(r.props.preSelection,1));break;case In.ArrowUp:{if(u===void 0||f===void 0||r.props.preSelection==null)break;var p=Qm(u,f).startPeriod,A=Dne,g=a-A;if(g<p){var w=f%A;a>=p&&a<p+w?A=w:A+=w,g=a-A}r.handleYearNavigation(g,zg(r.props.preSelection,A));break}case In.ArrowDown:{if(u===void 0||f===void 0||r.props.preSelection==null)break;var T=Qm(u,f).endPeriod,A=Dne,g=a+A;if(g>T){var w=f%A;a<=T&&a>T-w?A=w:A+=w,g=a+A}r.handleYearNavigation(g,Ph(r.props.preSelection,A));break}}h&&h(i)},r.getYearClassNames=function(i){var a=r.props,s=a.date,o=a.disabled,l=a.minDate,c=a.maxDate,u=a.excludeDates,f=a.includeDates,h=a.filterDate,p=a.yearClassName;return vl("react-datepicker__year-text","react-datepicker__year-".concat(i),s?p?.(R1(s,i)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(i),"react-datepicker__year-text--disabled":(l||c||u||f||h||o)&&U9(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.
44isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var a=Ni(r.props.preSelection),s=U9(i,r.props);return i===a&&!s?"0":"-1"},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var n=this,r=[],i=this.props,a=i.date,s=i.yearItemNumber,o=i.onYearMouseEnter,l=i.onYearMouseLeave;if(a===void 0)return null;for(var c=Qm(a,s),u=c.startPeriod,f=c.endPeriod,h=function(g){r.push(wt.createElement("div",{ref:p.YEAR_REFS[g-u],onClick:function(w){n.onYearClick(w,g)},onKeyDown:function(w){xme(w)&&(w.preventDefault(),w.key=In.Enter),n.onYearKeyDown(w,g)},tabIndex:Number(p.getYearTabIndex(g)),className:p.getYearClassNames(g),onMouseEnter:p.props.usePointerEvent?void 0:function(w){return o(w,g)},onPointerEnter:p.props.usePointerEvent?function(w){return o(w,g)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(w){return l(w,g)},onPointerLeave:p.props.usePointerEvent?function(w){return l(w,g)}:void 0,key:g,"aria-current":p.isCurrentYear(g)?"date":void 0},p.getYearContent(g)))},p=this,A=u;A<=f;A++)h(A);return wt.createElement("div",{className:"react-datepicker__year"},wt.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e})(b.Component);function rZe(t,e,n,r){for(var i=[],a=0;a<2*e+1;a++){var s=t+e-a,o=!0;n&&(o=Ni(n)<=s),r&&o&&(o=Ni(r)>=s),o&&i.push(s)}return i}var iZe=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;r.yearOptionButtonsRef={},r.handleOptionKeyDown=function(o,l){var c;switch(l.key){case"Enter":l.preventDefault(),r.onChange(o);break;case"Escape":l.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":{l.preventDefault();var u=o+(l.key==="ArrowUp"?1:-1);r.yearOptionButtonsRef[u]&&((c=r.yearOptionButtonsRef[u])===null||c===void 0||c.focus());break}}},r.renderOptions=function(){r.yearOptionButtonsRef={};var o=r.props.year,l=r.state.yearsList.map(function(f){return wt.createElement("div",{ref:function(h){r.yearOptionButtonsRef[f]=h,f===o&&h?.focus()},role:"button",tabIndex:0,className:o===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:r.onChange.bind(r,f),onKeyDown:r.handleOptionKeyDown.bind(r,f),"aria-selected":o===f?"true":void 0},o===f?wt.createElement("span",{className:"react-datepicker__year-option--selected"},"â"):"",f)}),c=r.props.minDate?Ni(r.props.minDate):null,u=r.props.maxDate?Ni(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(f){return f===u}))&&l.unshift(wt.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},wt.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(f){return f===c}))&&l.push(wt.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},wt.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(o){r.props.onChange(o)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(o){var l=r.state.yearsList.map(function(c){return c+o});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,a=n.scrollableYearDropdown,s=i||(a?10:5);return r.state={yearsList:rZe(r.props.year,s,r.props.minDate,r.props.maxDate)},r.dropdownRef=b.createRef(),r}return e.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(a){return a.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},e.prototype.render=function(){var n=vl({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return wt.createElement(HP,{className:n,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e})(b.Component),aZe=(function(t){Ac(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?Ni(n.props.minDate):1900,i=n.props.maxDate?Ni(n.props.maxDate):2100,a=[],s=r;s<=i;s++)a.push(wt.createElement("option",{key:s,value:s},s));return a},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return wt.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return wt.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:n.toggleDropdown},wt.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),wt.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return wt.createElement(iZe,pi({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)}
44)},n.handleYearChange=function(r,i){var a;(a=n.onSelect)===null||a===void 0||a.call(n,r,i),n.setOpen()},n.onSelect=function(r,i){var a,s;(s=(a=n.props).onSelect)===null||s===void 0||s.call(a,r,i)},n.setOpen=function(){var r,i;(i=(r=n.props).setOpen)===null||i===void 0||i.call(r,!0)},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return wt.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},e})(b.Component),sZe=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],vme="react-datepicker-ignore-onclickoutside",oZe=function(t){var e=(t.className||"").split(/\s+/);return sZe.some(function(n){return e.indexOf(n)>=0})},lZe=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var a,s;oZe(i.target)&&((s=(a=r.props).onDropdownFocus)===null||s===void 0||s.call(a,i))},r.getDateInView=function(){var i=r.props,a=i.preSelection,s=i.selected,o=i.openToDate,l=mme(r.props),c=Ame(r.props),u=Ki(),f=o||s||a;return f||(l&&q1(u,l)?l:c&&o2(u,c)?c:u)},r.increaseMonth=function(){r.setState(function(i){var a=i.date;return{date:Wh(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var a=i.date;return{date:Zv(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,a,s){r.props.onSelect(i,a,s),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,a){r.setState({selectingDate:R1(Ki(),a)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,a)},r.handleYearMouseLeave=function(i,a){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,a)},r.handleYearChange=function(i){var a,s,o,l;(s=(a=r.props).onYearChange)===null||s===void 0||s.call(a,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(l=(o=r.props).setOpen)===null||l===void 0||l.call(o,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!sd(i,r.props))return i;for(var a=l2(i),s=DWe(i),o=Oze(s,a),l=null,c=0;c<=o;c++){var u=Dh(a,c);if(!sd(u,r.props)){l=u;break}}return l},r.handleMonthChange=function(i){var a,s,o,l=(a=r.getEnabledPreSelectionDateForMonth(i))!==null&&a!==void 0?a:i;r.handleCustomMonthChange(l),r.props.adjustDateOnChange&&(r.props.onSelect(l),(o=(s=r.props).setOpen)===null||o===void 0||o.call(s,!0)),r.props.setPreSelection&&r.props.setPreSelection(l)},r.handleCustomMonthChange=function(i){var a,s;(s=(a=r.props).onMonthChange)===null||s===void 0||s.call(a,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(a){var s=a.date;return{date:R1(s,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(a){var s=a.date;return{date:rf(s,Number(i))}},function(){var a,s;r.handleMonthChange(r.state.date),(s=(a=r.props).onMonthSelectedInChange)===null||s===void 0||s.call(a,0)})},r.changeMonthYear=function(i){r.setState(function(a){var s=a.date;return{date:R1(rf(s,A0(i)),Ni(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i,a){if(i===void 0&&(i=r.state.date),a===void 0&&(a=0),!d0(i))return[];var s=r.props.disabled,o=wg(i,r.props.locale,r.props.calendarStartDay),l=[];return r.props.showWeekNumbers&&l.push(wt.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(s?"react-datepicker__day-name--disabled":""),role:"columnheader"},wt.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),wt.createElement("span",{"aria-hidden":"true"},r.props.weekLabel||"#"))),l.concat([0,1,2,3,4,5,6].map(function(c){var u=Dh(o,c),f=r.formatWeekday(u,r.props.locale),h=xs(u,"EEEE",r.props.locale),p=r.props.weekDayClassName?r.props.weekDayClassName(u):void 0;if(r.props.renderCustomDayName){var A=r.props.renderCustomDayName({day:u,shortName:f,fullName:h,locale:r.props.locale,customDayNameCount:a});return wt.createElement("div",{key:c,role:"columnheader",className:vl("react-datepicker__day-name",p,s?"react-datepicker__day-name--disabled":"")},A)}return wt.createElement("div",{key:c,role:"columnheader",className:vl("react-datepicker__day-name",p,s?"react-datepicker__day-name--disabled":"")},wt.createElement("span",{className:"react-datepicker__sr-only"},h),wt.createElement("span",{"aria-hidden":"true"},f))}))},r.formatWeekday=function(i,a){return r.props.formatWeekDay?PWe(i,r.props.formatWeekDay,a):r.props.useWeekdaysShort?LWe(i,a):kWe(i,a)},r.decreaseYear=function(){r.setState(function(i){var a,s=i.date;return{date:zg(s,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i,a,s;if(!r.props.renderCustomHeader){var o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?o-1:0,c=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:l,u=Zv(r.state.date,c),f;switch(!0){case r.props.disabled:f=!0;break;case r.props.showMonthYearPicker:f=wne(r.state.date,r.props);break;case r.props.showYearPicker:f=UWe(r.state.date,r.props);break;case r.props.showQuarterYearPicker:f=IWe(r.state.date,r.props);break;default:f=_ne(u,r.props);break}if(!(!((s=r.props.forceShowMonthNavigation)!==null&&s!==void 0?s:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&f||r.props.showTimeSelectOnly)){var h=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],p=["react-datepicker__navigation","react-datepicker__navigation--previous"],A=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(A=r.decreaseYear),f&&r.props.showDisabledMonthNavigation&&(p.push("react-datepicker__navigation--previous--disabled"),A=void 0);var g=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,w=r.props,T=w.previousMonthButtonLabel,C=T===void 0?e.defaultProps.previousMonthButtonLabel:T,M=w.previousYearButtonLabel,D=M===void 0?e.defaultProps.previousYearButtonLabel:M,k=r.props,I=k.previousMonthAriaLabel,L=I===void 0?typeof C=="string"?C:"Previous Month":I,O=k.previousYearAriaLabel,B=O===void 0?typeof D=="str
44ing"?D:"Previous Year":O;return wt.createElement("button",{type:"button",className:p.join(" "),onClick:A,onKeyDown:r.props.handleOnKeyDown,"aria-label":g?B:L},wt.createElement("span",{className:h.join(" ")},g?D:C))}}},r.increaseYear=function(){r.setState(function(i){var a,s=i.date;return{date:Ph(s,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var a;switch(!0){case r.props.disabled:a=!0;break;case r.props.showMonthYearPicker:a=Sne(r.state.date,r.props);break;case r.props.showYearPicker:a=VWe(r.state.date,r.props);break;case r.props.showQuarterYearPicker:a=BWe(r.state.date,r.props);break;default:a=bne(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&a||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation","react-datepicker__navigation--next"],o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),a&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,f=u.nextMonthButtonLabel,h=f===void 0?e.defaultProps.nextMonthButtonLabel:f,p=u.nextYearButtonLabel,A=p===void 0?e.defaultProps.nextYearButtonLabel:p,g=r.props,w=g.nextMonthAriaLabel,T=w===void 0?typeof h=="string"?h:"Next Month":w,C=g.nextYearAriaLabel,M=C===void 0?typeof A=="string"?A:"Next Year":C;return wt.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?M:T},wt.createElement("span",{className:o.join(" ")},c?A:h))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var a=["react-datepicker__current-month"];return r.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),wt.createElement("h2",{className:a.join(" ")},d0(i)?xs(i,r.props.dateFormat,r.props.locale):"")},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return wt.createElement(aZe,pi({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:Ni(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return wt.createElement(QWe,pi({},e.defaultProps,r.props,{month:A0(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return wt.createElement(eZe,pi({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(Ane(),i),r.props.setPreSelection&&r.props.setPreSelection(Ane())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return wt.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDayNamesHeader=function(i,a){return a===void 0&&(a=0),wt.createElement("div",{className:"react-datepicker__day-names",role:"row"},r.header(i,a))},r.renderDefaultHeader=function(i){var a=i.monthDate,s=i.i,o=wt.createElement("div",{className:vl("react-datepicker__header",{"react-datepicker__header--has-time-select":r.props.showTimeSelect,"react-datepicker__header--middle":r.props.monthHeaderPosition==="middle","react-datepicker__header--bottom":r.props.monthHeaderPosition==="bottom"})},r.renderCurrentMonth(a),wt.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(s!==0),r.renderMonthYearDropdown(s!==0),r.renderYearDropdown(s!==0)));return r.props.monthHeaderPosition==="top"?o:wt.createElement("div",{className:"react-datepicker__header-wrapper"},r.renderPreviousButton()||null,r.renderNextButton()||null,o)},r.renderCustomHeader=function(i){var a,s,o=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var c=r.props,u=c.showYearPicker,f=c.yearItemNumber,h;if(u){var p=Qm(o,f),A=p.startPeriod,g=p.endPeriod;h={startYear:A,endYear:g}}var w=_ne(r.state.date,r.props),T=bne(r.state.date,r.props),C=wne(r.state.date,r.props),M=Sne(r.state.date,r.props);return wt.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(s=(a=r.props).renderCustomHeader)===null||s===void 0?void 0:s.call(a,pi(pi(pi({},r.state),u&&{visibleYearsRange:h}
44),{customHeaderCount:l,monthDate:o,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:w,nextMonthButtonDisabled:T,prevYearButtonDisabled:C,nextYearButtonDisabled:M})))},r.renderYearHeader=function(i){var a=i.monthDate,s=r.props,o=s.showYearPicker,l=s.yearItemNumber,c=l===void 0?e.defaultProps.yearItemNumber:l,u=Qm(a,c),f=u.startPeriod,h=u.endPeriod;return wt.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},o?"".concat(f," - ").concat(h):Ni(a))},r.renderHeader=function(i){var a=i.monthDate,s=i.i,o=s===void 0?0:s,l={monthDate:a,i:o};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,a;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var s=[],o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?o-1:0,c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Ph(r.state.date,l):Zv(r.state.date,l),u=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:l,f=0;f<o;++f){var h=f-u+l,p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Ph(c,h):Wh(c,h),A="month-".concat(f),g=f<o-1,w=f>0;s.push(wt.createElement("div",{key:A,ref:function(T){r.monthContainer=T??void 0},className:"react-datepicker__month-container"},r.props.monthHeaderPosition==="top"&&r.renderHeader({monthDate:p,i:f}),wt.createElement(YWe,pi({},e.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:p,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:f,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:w,dayNamesHeader:r.renderDayNamesHeader(p,f),monthHeader:r.props.monthHeaderPosition==="middle"?r.renderHeader({monthDate:p,i:f}):void 0,monthFooter:r.props.monthHeaderPosition==="bottom"?r.renderHeader({monthDate:p,i:f}):void 0}))))}return s}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return wt.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),wt.createElement(nZe,pi({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return wt.createElement(tZe,pi({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i,a;if(r.props.showTimeInput){if(r.props.selectsRange){var s=r.props,o=s.startDate,l=s.endDate,c=o?new Date(o):void 0,u=c&&d0(c)&&!!o,f=u?"".concat(V4(c.getHours()),":").concat(V4(c.getMinutes())):"",h=l?new Date(l):void 0,p=h&&d0(h)&&!!l,A=p?"".concat(V4(h.getHours()),":").concat(V4(h.getMinutes())):"";return wt.createElement(wt.Fragment,null,wt.createElement(JF,pi({},e.defaultProps,r.props,{date:c,timeString:f,onChange:function(C){var M,D;(D=(M=r.props).onTimeChange)===null||D===void 0||D.call(M,C,"start")},timeInputLabel:((i=r.props.timeInputLabel)!==null&&i!==void 0?i:"Time")+" (Start)"})),wt.createElement(JF,pi({},e.defaultProps,r.props,{date:h,timeString:A,onChange:function(C){var M,D;(D=(M=r.props).onTimeChange)===null||D===void 0||D.call(M,C,"end")},timeInputLabel:((a=r.props.timeInputLabel)!==null&&a!==void 0?a:"Time")+" (End)"})))}var g=r.props.selected?new Date(r.props.selected):void 0,w=g&&d0(g)&&!!r.props.selected,T=w?"".concat(V4(g.getHours()),":").concat(V4(g.getMinutes())):"";return wt.createElement(JF,pi({}
44,e.defaultProps,r.props,{date:g,timeString:T,onChange:function(C){var M,D;(D=(M=r.props).onTimeChange)===null||D===void 0||D.call(M,C)}}))}},r.renderAriaLiveRegion=function(){var i;if(!d0(r.state.date))return wt.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var a=Qm(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),s=a.startPeriod,o=a.endPeriod,l;return r.props.showYearPicker?l="".concat(s," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=Ni(r.state.date):l="".concat(Q$(A0(r.state.date),r.props.locale)," ").concat(Ni(r.state.date)),wt.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return wt.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=b.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:vme,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:UT,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){n.setState({monthContainer:n.monthContainer})})())},e.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&d0(this.props.preSelection)&&(!ki(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!wu(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!ki(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var n=this.props.container||wWe;return wt.createElement(HP,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},wt.createElement("div",{style:{display:"contents"},ref:this.containerRef},wt.createElement(n,{className:vl("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),this.props.monthHeaderPosition==="top"&&this.renderPreviousButton(),this.props.monthHeaderPosition==="top"&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},e})(b.Component),cZe=function(t){var e=t.icon,n=t.className,r=n===void 0?"":n,i=t.onClick,a="react-datepicker__calendar-icon";if(typeof e=="string")return wt.createElement("i",{className:"".concat(a," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i});if(wt.isValidElement(e)){var s=e;return wt.cloneElement(s,{className:"".concat(s.props.className||""," ").concat(a," ").concat(r),onClick:function(o){typeof s.props.onClick=="function"&&s.props.onClick(o),typeof i=="function"&&i(o)}})}return wt.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},wt.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},yme=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return mSe.createPortal(this.props.children,this.el)},e}
44)(b.Component),uZe="[tabindex], a, button, input, select, textarea",fZe=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},_me=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(uZe),1,-1).filter(fZe)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=b.createRef(),r}return e.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:e.defaultProps.enableTabLoop)?wt.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},wt.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,wt.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e})(b.Component);function dZe(t){function e(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,a=b.useRef(null),s=bWe(pi({open:!i,whileElementsMounted:bpe,placement:n.popperPlacement,middleware:W1([cWe({padding:15}),lWe(10),uWe({element:a})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),o=pi(pi({},n),{hidePopper:i,popperProps:pi(pi({},s),{arrowRef:a})});return wt.createElement(t,pi({},o))}return e.displayName="withFloating(".concat(t.displayName||t.name||"Component",")"),e}var hZe=function(t){var e=t.className,n=t.wrapperClassName,r=t.hidePopper,i=r===void 0?!0:r,a=t.popperComponent,s=t.targetComponent,o=t.enableTabLoop,l=t.popperOnKeyDown,c=t.portalId,u=t.portalHost,f=t.popperProps,h=t.showArrow,p=t.popperTargetRef,A=t.monthHeaderPosition;b.useEffect(function(){p?.current&&f.refs.setPositionReference(p.current)},[p,f.refs]);var g=void 0;if(!i){var w=vl("react-datepicker-popper",!h&&"react-datepicker-popper-offset",A==="middle"&&"react-datepicker-popper--header-middle",A==="bottom"&&"react-datepicker-popper--header-bottom",e);g=wt.createElement(_me,{enableTabLoop:o},wt.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:w,"data-placement":f.placement,onKeyDown:l},a,h&&wt.createElement(mWe,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}t.popperContainer&&(g=b.createElement(t.popperContainer,{},g)),c&&!i&&(g=wt.createElement(yme,{portalId:c,portalHost:u},g));var T=vl("react-datepicker-wrapper",n);return wt.createElement(wt.Fragment,null,wt.createElement("div",{ref:f.refs.setReference,className:T},s),g)},pZe=dZe(hZe);function Pne(t,e){return t&&e?A0(t)!==A0(e)||Ni(t)!==Ni(e):t!==e}var tI="Date input not valid.",bme=(function(t){Ac(e,t);function e(n){var r=t.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){var i=r.props.timeZone,a=r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ki();return i?pne(a,i):a},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(a,s){var o=Bx(s.date,"yyyy-MM-dd",void 0,!1);return o?W1(W1([],a,!0),[pi(pi({},s),{date:o})],!1):a},[])},r.calcInitialState=function(){var i=r.props.timeZone,a=r.getPreSelection(),s=mme(r.props),o=Ame(r.props),l=s&&q1(a,Tw(s))?s:o&&o2(a,gne(o))?o:a,c=r.props.selectsRange?r.props.startDate:r.props.selected;return c&&i&&(c=pne(c,i)),{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:c??l,highlightDates:Tne(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.getInputValue=function(){var i,a=r.props,s=a.locale,o=a.startDate,l=a.endDate,c=a.rangeSeparator,u=a.selected,f=a.selectedDates,h=a.selectsMultiple,p=a.selectsRange,A=a.formatMultipleDates,g=a.value,w=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,T=r.state.inputValue;if(typeof g=="string")return g;if(typeof T=="string")return T;if(p)return EWe(o,l,{dateFormat:w,locale:s,rangeSeparator:c});if(h){if(A){var C=function(M){return c0(M,{dateFormat:w,locale:s})};return A(f??[],C)}return MWe(f??[],{dateFormat:w,locale:s})}return c0(u,{dateFormat:w,locale:s})},r.resetHiddenStatus=function(){r.setState(pi(pi({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(pi(pi({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var i,a;(a=(i=r.input)===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i,{preventScroll:!0})},r.setBlur=function(){var i,a;(a=(i=r.input)===null||i===void 0?void 0:i.blur)===null||a===void 0||a.call(i),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(i,a){a===void 0&&(a=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:nI},function(){i||r.setState(function(s){return{focused:a?s.focused:!1}},function(){!a&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return ap(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var a,s,o=r.state.wasHidden,l=o?r.state.open:!0;o&&r.resetHiddenStatus(),r.state.preventFocus||((s=(a=r.props).onFocus)===null||s===void 0||s.call(a,i),l&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})}
44,r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.resetInputValue=function(){r.setState(pi(pi({},r.state),{inputValue:null}))},r.handleBlur=function(i){var a,s;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((s=(a=r.props).onBlur)===null||s===void 0||s.call(a,i));var o=r.state.inputValue;if(typeof o=="string"&&o.length>0){var l=/[a-zA-Z0-9]/.test(o);!l&&r.props.selected&&r.setSelected(null,void 0,!0)}r.resetInputValue(),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var a,s;(s=(a=r.props).onClickOutside)===null||s===void 0||s.call(a,i),!r.props.inline&&!i.defaultPrevented&&r.setOpen(!1),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,a,s,o,l,c,u,f,h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];var A=h[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,h),!A||typeof A.isDefaultPrevented!="function"||A.isDefaultPrevented()))){r.setState({inputValue:A?.target instanceof HTMLInputElement?A.target.value:null,lastPreSelectChange:mZe});var g=r.props,w=g.selectsRange,T=g.startDate,C=g.endDate,M=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,D=(a=r.props.strictParsing)!==null&&a!==void 0?a:e.defaultProps.strictParsing,k=A?.target instanceof HTMLInputElement?A.target.value:"";if(w){var I=r.props.rangeSeparator,L=I.trim(),O=k.split(M.includes(L)?I:L,2).map(function(K){return K.trim()}),B=O[0],G=O[1],j=Bx(B??"",M,r.props.locale,D),z=j?Bx(G??"",M,r.props.locale,D):null,Q=((s=Ev(T))===null||s===void 0?void 0:s.getTime())!==j?.getTime(),ee=((o=Ev(C))===null||o===void 0?void 0:o.getTime())!==z?.getTime();if(!Q&&!ee||j&&sd(j,r.props)||z&&sd(z,r.props))return;j&&r.setState({preSelection:j}),(c=(l=r.props).onChange)===null||c===void 0||c.call(l,[j,z],A)}else{var Z=Bx(k,M,r.props.locale,D,(u=r.props.selected)!==null&&u!==void 0?u:void 0);if(Z||!k)r.setSelected(Z,A,!0);else if(!r.props.inline){var X=TWe(k,(f=r.state.preSelection)!==null&&f!==void 0?f:void 0);X&&(!r.props.minDate||!q1(X,r.props.minDate))&&(!r.props.maxDate||!o2(X,r.props.maxDate))&&r.setState({preSelection:X})}}}},r.handleSelect=function(i,a,s){var o;if(!r.props.readOnly){var l=r.props,c=l.selectsRange,u=l.startDate,f=l.endDate,h=l.locale,p=l.swapRange,A=(o=r.props.dateFormat)!==null&&o!==void 0?o:e.defaultProps.dateFormat,g=!c||u&&!f&&(p||!KF(i,u));if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&g&&r.sendFocusBackToInput(),r.props.onChangeRaw){var w=c0(i,{dateFormat:A,locale:h});r.props.onChangeRaw(a,{date:i,formattedDate:w})}r.setSelected(i,a,!1,s),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(i):g&&r.setOpen(!1)}},r.setSelected=function(i,a,s,o){var l,c,u=r.props.timeZone,f=i;if(f&&u&&(f=_m(f,u)),r.props.showYearPicker){if(f!==null&&U9(Ni(f),r.props))return}else if(r.props.showMonthYearPicker){if(f!==null&&pme(f,r.props))return}else if(f!==null&&sd(f,r.props))return;var h=r.props,p=h.onChange,A=h.selectsRange,g=h.startDate,w=h.endDate,T=h.selectsMultiple,C=h.selectedDates,M=h.minTime,D=h.swapRange;if(!Mv(r.props.selected,f)||r.props.allowSameDay||A||T)if(f!==null&&(r.props.selected&&(!s||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(f=bm(f,{hour:Oc(r.props.selected),minute:Fc(r.props.selected),second:bg(r.props.selected)})),!s&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&M&&(f=bm(f,{hour:M.getHours(),minute:M.getMinutes(),second:M.getSeconds()})),r.props.inline||r.setState({preSelection:f}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),A){var k=p,I=!g&&!w,L=g&&!w,O=!g&&!!w,B=g&&w;I?k?.([f,null],a):L?f===null?k?.([null,null],a):KF(f,g)?k?.(D?[f,g]:[f,null],a):k?.([g,f],a):O&&(f&&KF(f,w)?k?.([f,w],a):k?.([f,null],a)),B&&k?.([f,null],a)}else if(T){var G=p;if(f!==null)if(!C?.length)G?.([f],a);else{var j=C.some(function(Q){return ki(Q,f)});if(j){var z=C.filter(function(Q){return!ki(Q,f)});G?.(z,a)}else G?.(W1(W1([],C,!0),[f],!1),a)}}else p?.(f,a);
44s||((c=(l=r.props).onSelect)===null||c===void 0||c.call(l,f,a),r.setState({inputValue:null}))},r.setPreSelection=function(i){if(!r.props.readOnly){var a=ap(r.props.minDate),s=ap(r.props.maxDate),o=!0;if(i){var l=Tw(i);if(a&&s)o=iv(i,r.props.minDate,r.props.maxDate);else if(a){var c=Tw(r.props.minDate);o=o2(i,c)||Mv(l,c)}else if(s){var u=gne(r.props.maxDate);o=q1(i,u)||Mv(l,u)}}o&&r.setState({preSelection:i})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i,a){var s,o;if(!r.props.selectsMultiple){var l=r.props,c=l.selectsRange,u=l.startDate,f=l.endDate,h=l.onChange,p=l.timeZone;if(c){var A=h;if(a==="start"){if(u){var g=bm(u,{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:g}),p&&(g=_m(g,p)),A?.([g,f?p?_m(f,p):f:null],void 0)}}else if(a==="end"){if(f){var w=bm(f,{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:w}),p&&(w=_m(w,p)),A?.([u?p?_m(u,p):u:null,w],void 0)}}else{var T=u&&!f;if(T){var g=bm(u,{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:g}),p&&(g=_m(g,p)),A?.([g,null],void 0)}else if(u&&f){var w=bm(f,{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:w}),p&&(w=_m(w,p)),A?.([p?_m(u,p):u,w],void 0)}else{var C=bm(r.getPreSelection(),{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:C})}}}else{var M=r.props.selected?r.props.selected:r.getPreSelection(),C=r.props.selected?i:bm(M,{hour:Oc(i),minute:Fc(i)});r.setState({preSelection:C}),C&&p&&(C=_m(C,p)),(o=(s=r.props).onChange)===null||o===void 0||o.call(s,C)}r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,a;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(a=(i=r.props).onInputClick)===null||a===void 0||a.call(i)},r.handleTimeOnlyArrowKey=function(i){var a,s,o,l,c=Ev(r.props.selected)||r.state.preSelection||Ki(),u=(a=r.props.timeIntervals)!==null&&a!==void 0?a:30,f=(s=r.props.dateFormat)!==null&&s!==void 0?s:e.defaultProps.dateFormat,h=Array.isArray(f)?f[0]:f,p=Tw(c),A=Oc(c)*60+Fc(c),g=1440-u,w;if(i===In.ArrowUp){var T=Math.max(0,A-u);w=A5(p,T)}else{var T=Math.min(g,A+u);w=A5(p,T)}var C=xs(w,h||e.defaultProps.dateFormat,r.props.locale);if(r.setState({preSelection:w,inputValue:C}),!(r.props.selectsRange||r.props.selectsMultiple)){var M=r.props.selected?r.props.selected:r.getPreSelection(),D=r.props.selected?w:bm(M,{hour:Oc(w),minute:Fc(w)});(l=(o=r.props).onChange)===null||l===void 0||l.call(o,D),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame(function(){r.scrollToTimeOption(w)})}},r.handleTimeOnlyEnterKey=function(i){var a,s,o,l,c=i.target,u=c.value,f=(a=r.props.dateFormat)!==null&&a!==void 0?a:e.defaultProps.dateFormat,h=r.props.timeFormat||"p",p=r.state.preSelection||Ev(r.props.selected)||Ki(),A=Bx(u,f,r.props.locale,(s=r.props.strictParsing)!==null&&s!==void 0?s:!1,p),g=p;if(A&&d0(A))g=A;else{var w=((o=r.calendar)===null||o===void 0?void 0:o.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");if(w instanceof HTMLElement){var T=(l=w.textContent)===null||l===void 0?void 0:l.trim();if(T){var C=Bx(T,h,r.props.locale,!1,p);C&&d0(C)&&(g=C)}}}r.handleTimeChange(g),r.setOpen(!1),r.sendFocusBackToInput()},r.scrollToTimeOption=function(i){var a,s;if(!((a=r.calendar)===null||a===void 0)&&a.containerRef.current){for(var o=r.calendar.containerRef.current,l=Array.from(o.querySelectorAll(".react-datepicker__time-list-item")),c=null,u=1/0,f=r.props.timeFormat||"p",h=0,p=l;h<p.length;h++){var A=p[h],g=(s=A.textContent)===null||s===void 0?void 0:s.trim();if(g){var w=Bx(g,f,r.props.locale,!1,i);if(w&&d0(w)){if(gme(w,i)){c=A;break}var T=Math.abs(w.getTime()-i.getTime());T<u&&(u=T,c=A)}}}c&&(l.forEach(function(C){C.setAttribute("tabindex","-1")}),c.setAttribute("tabindex","0"),c.scrollIntoView({behavior:"smooth",block:"center"}))}},r.onInputKeyDown=function(i){var a,s,o,l,c,u;(s=(a=r.props).onKeyDown)===null||s===void 0||s.call(a,i);var f=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(f===In.ArrowDown||f===In.ArrowUp||f===In.Enter)&&((o=r.onInputClick)===null||o===void 0||o.call(r));return}if(r.state.open&&r.props.showTimeSelectOnly){if(f===In.ArrowDown||f===In.ArrowUp){i.preventDefault(),r.handleTimeOnlyArrowKey(f);return}if(f===In.Enter){i.preventDefault(),r.handleTimeOnlyEnterKey(i);return}}if(r.state.open){if(f===In.ArrowDown||f===In.ArrowUp){i.preventDefault();var h=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',p=((l=r.calendar)===null||l===void 0?void 0:l.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(h);p instanceof HTMLElement&&p.focus({preventScroll:!0});return}var A=Ki(r.state.preSelection);f===In.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===nI?(r.handleSelect(A,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(A)):r.setOpen(!1)):f===In.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):f===In.Tab&&r.setOpen(!1),r.inputOk()||(u=(c=r.props).onInputError)===null||u===void 0||u.call(c,{code:1,msg:tI})}}
44,r.onPortalKeyDown=function(i){var a=i.key;a===In.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var a,s,o,l,c,u,f=r.props,h=f.minDate,p=f.maxDate,A=f.disabledKeyboardNavigation,g=f.showWeekPicker,w=f.shouldCloseOnSelect,T=f.locale,C=f.calendarStartDay,M=f.adjustDateOnChange,D=f.inline;if((s=(a=r.props).onKeyDown)===null||s===void 0||s.call(a,i),!A){var k=i.key,I=i.shiftKey,L=Ki(r.state.preSelection),O=function(j,z){var Q=z;switch(j){case In.ArrowRight:Q=g?rR(z,1):Dh(z,1);break;case In.ArrowLeft:Q=g?cne(z):Oqe(z);break;case In.ArrowUp:Q=cne(z);break;case In.ArrowDown:Q=rR(z,1);break;case In.PageUp:Q=I?zg(z,1):Zv(z,1);break;case In.PageDown:Q=I?Ph(z,1):Wh(z,1);break;case In.Home:Q=wg(z,T,C);break;case In.End:Q=RWe(z);break}return Q},B=function(j,z){for(var Q=40,ee=j,Z=!1,X=0,K=O(j,z);!Z;){if(X>=Q){K=z;break}h&&K<h&&(ee=In.ArrowRight,K=sd(h,r.props)?O(ee,K):h),p&&K>p&&(ee=In.ArrowLeft,K=sd(p,r.props)?O(ee,K):p),sd(K,r.props)?((ee===In.PageUp||ee===In.Home)&&(ee=In.ArrowRight),(ee===In.PageDown||ee===In.End)&&(ee=In.ArrowLeft),K=O(ee,K)):Z=!0,X++}return K};if(k===In.Enter){i.preventDefault(),r.handleSelect(L,i),!w&&r.setPreSelection(L);return}else if(k===In.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(o=r.props).onInputError)===null||l===void 0||l.call(o,{code:1,msg:tI});return}var G=null;switch(k){case In.ArrowLeft:case In.ArrowRight:case In.ArrowUp:case In.ArrowDown:case In.PageUp:case In.PageDown:case In.Home:case In.End:G=B(k,L);break}if(!G){(u=(c=r.props).onInputError)===null||u===void 0||u.call(c,{code:1,msg:tI});return}i.preventDefault(),r.setState({lastPreSelectChange:nI}),M&&r.setSelected(G),r.setPreSelection(G),D&&r.setState({shouldFocusDayInline:!0})}},r.onPopperKeyDown=function(i){var a=i.key;a===In.Escape&&(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var a=r.props,s=a.selectsRange,o=a.onChange;o?.(s?[null,null]:null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.handleMonthSelectedInChange=function(i){r.setState({monthSelectedIn:i})},r.renderCalendar=function(){var i,a;return!r.props.inline&&!r.isCalendarOpen()?null:wt.createElement(lZe,pi({showMonthYearDropdown:void 0,ref:function(s){r.calendar=s}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:HWe(r.modifyHolidays()),outsideClickIgnoreClass:r.props.outsideClickIgnoreClass,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(a=r.props.dropdownMode)!==null&&a!==void 0?a:e.defaultProps.dropdownMode,onMonthSelectedInChange:r.handleMonthSelectedInChange}),r.props.children)},r.renderAriaLiveRegion=function(){var i,a=r.props.locale,s=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,o=r.props.showTimeInput||r.props.showTimeSelect,l=o?"PPPPp":"PPPP",c;return r.props.selectsRange?c="Selected start date: ".concat(c0(r.props.startDate,{dateFormat:l,locale:a}),". ").concat(r.props.endDate?"End date: "+c0(r.props.endDate,{dateFormat:l,locale:a}):""):r.props.showTimeSelectOnly?c="Selected time: ".concat(c0(r.props.selected,{dateFormat:s,locale:a})):r.props.showYearPicker?c="Selected year: ".concat(c0(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?c="Selected month: ".concat(c0(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?c="Selected quarter: ".concat(c0(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):c="Selected date: ".concat(c0(r.props.selected,{dateFormat:l,locale:a})),wt.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
44ive"},c)},r.renderDateInput=function(){var i,a,s,o,l,c,u,f=vl(r.props.className,(i={},i[r.props.outsideClickIgnoreClass||e.defaultProps.outsideClickIgnoreClass]=r.state.open,i)),h=r.props.customInput||wt.createElement("input",{type:"text"}),p=r.props.customInputRef||"ref",A={},g=(s=r.props["aria-describedby"])!==null&&s!==void 0?s:r.props.ariaDescribedBy,w=(o=r.props["aria-invalid"])!==null&&o!==void 0?o:r.props.ariaInvalid,T=(l=r.props["aria-label"])!==null&&l!==void 0?l:r.props.ariaLabel,C=(c=r.props["aria-labelledby"])!==null&&c!==void 0?c:r.props.ariaLabelledBy,M=(u=r.props["aria-required"])!==null&&u!==void 0?u:r.props.ariaRequired;return g!=null&&(A["aria-describedby"]=g),w!=null&&(A["aria-invalid"]=w),T!=null&&(A["aria-label"]=T),C!=null&&(A["aria-labelledby"]=C),M!=null&&(A["aria-required"]=M),b.cloneElement(h,pi((a={},a[p]=function(D){r.input=D},a.value=r.getInputValue(),a.onBlur=r.handleBlur,a.onChange=r.handleChange,a.onClick=r.onInputClick,a.onFocus=r.handleFocus,a.onKeyDown=r.onInputKeyDown,a.id=r.props.id,a.name=r.props.name,a.form=r.props.form,a.autoFocus=r.props.autoFocus,a.placeholder=r.props.placeholderText,a.disabled=r.props.disabled,a.autoComplete=r.props.autoComplete,a.className=vl(h.props.className,f),a.title=r.props.title,a.readOnly=r.props.readOnly,a.required=r.props.required,a.tabIndex=r.props.tabIndex,a),A))},r.renderClearButton=function(){var i=r.props,a=i.isClearable,s=i.disabled,o=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,f=i.clearButtonClassName,h=f===void 0?"":f,p=i.ariaLabelClose,A=p===void 0?"Close":p,g=i.selectedDates,w=i.readOnly;return a&&!w&&(o!=null||l!=null||c!=null||g?.length)?wt.createElement("button",{type:"button",className:vl("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":A,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:vme,readOnly:!1,rangeSeparator:dme,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:UT,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(n,r){var i,a,s,o;this.props.selectsRange&&Pne(n.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):Pne(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&r.open===!1&&this.state.open===!0&&this.state.monthSelectedIn!==0&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Tne(this.props.highlightDates)}),!r.focused&&!Mv(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((a=(i=this.props).onCalendarOpen)===null||a===void 0||a.call(i)),r.open===!0&&this.state.open===!1&&((o=(s=this.props).onCalendarClose)===null||o===void 0||o.call(s)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,a=n.calendarIconClassname,s=n.calendarIconClassName,o=n.toggleCalendarOnIconClick,l=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),wt.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&wt.createElement(cZe,pi({icon:i,className:vl(s,!s&&a,l&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
44,e.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?wt.createElement(_me,{enableTabLoop:this.props.enableTabLoop},wt.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=wt.createElement(yme,pi({portalId:this.props.portalId},this.props),r)),wt.createElement(wt.Fragment,null,this.renderInputContainer(),r)}return wt.createElement(pZe,pi({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},e})(b.Component),mZe="input",nI="navigate";const AZe=b.forwardRef((t,e)=>{const n=Dn.c(5),{value:r,onClick:i}=t;let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a={cursor:"pointer"},n[0]=a):a=n[0];let s;return n[1]!==i||n[2]!==e||n[3]!==r?(s=x.jsx("input",{value:r,onClick:i,ref:e,readOnly:!0,style:a}),n[1]=i,n[2]=e,n[3]=r,n[4]=s):s=n[4],s});function fd(t){const e=Dn.c(48);let n,r,i,a,s,o,l,c,u,f,h,p,A,g,w;if(e[0]!==t){const{label:Q,name:ee,selectedDate:Z,onChange:X,placeholder:K,minDate:se,maxDate:ae,disabled:J,monthsShown:oe,labelClassName:te,showPreviousMonths:he,showDay:me,required:de,errorText:Ae,isCustomInput:Se,inputClassName:Re,...Ne}=t;a=Q,p=Z,c=X,u=K,o=se,s=ae,n=J,l=oe,g=he,A=me,f=de,r=Ae,i=Se,w=Re,h=Ne,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=h,e[12]=p,e[13]=A,e[14]=g,e[15]=w}else n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11],p=e[12],A=e[13],g=e[14],w=e[15];const T=w===void 0?"":w,C=b.useRef(null);let M;e[16]!==a?(M=x.jsx("label",{className:"text-sm block mb-1",children:a}),e[16]=a,e[17]=M):M=e[17];let D;e[18]!==i?(D=i&&x.jsx(AZe,{}),e[18]=i,e[19]=D):D=e[19];const k=`focus:outline-none bg-transparent dark:text-white w-full ${T}`;let I;e[20]!==n||e[21]!==s||e[22]!==o||e[23]!==l||e[24]!==c||e[25]!==u||e[26]!==f||e[27]!==h||e[28]!==p||e[29]!==A||e[30]!==g||e[31]!==D||e[32]!==k?(I=x.jsx("div",{children:x.jsx(bme,{ref:C,selected:p,onChange:c,monthsShown:l,placeholderText:u,showPreviousMonths:g,showDay:A,required:f,minDate:o,maxDate:s,disabled:n,customInput:D,className:k,...h})}),e[20]=n,e[21]=s,e[22]=o,e[23]=l,e[24]=c,e[25]=u,e[26]=f,e[27]=h,e[28]=p,e[29]=A,e[30]=g,e[31]=D,e[32]=k,e[33]=I):I=e[33];let L;e[34]!==n?(L=()=>!n&&C.current.setOpen(!0),e[34]=n,e[35]=L):L=e[35];let O;e[36]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsx(QD,{size:24}),e[36]=O):O=e[36];let B;e[37]!==L?(B=x.jsx("div",{className:"dark:text-gray-300 absolute right-2 cursor-pointer",onClick:L,children:O}),e[37]=L,e[38]=B):B=e[38];let G;e[39]!==I||e[40]!==B?(G=x.jsx("div",{className:"relative",children:x.jsxs("div",{className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 rounded-[8px] p-2 h-12 focus:outline-none focus:border-[var(--secondary-color)] focus:border-2 flex items-center justify-between",children:[I,B]})}),e[39]=I,e[40]=B,e[41]=G):G=e[41];let j;e[42]!==r?(j=r&&r!==""&&x.jsx("p",{className:"text-red-500 text-xs",children:r}),e[42]=r,e[43]=j):j=e[43];let z;return e[44]!==j||e[45]!==M||e[46]!==G?(z=x.jsxs("div",{children:[M,G,j]}),e[44]=j,e[45]=M,e[46]=G,e[47]=z):z=e[47],z}function kh(t){const e=Dn.c(30);let n,r,i,a,s,o,l,c,u,f,h,p,A;e[0]!==t?({isOpen:a,onModalClose:c,showCloseButton:h,modalTitle:s,showFooter:p,cancelText:n,okText:l,children:r,className:i,styles:A,modalZIndex:o,onOk:u,...f}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c,e[9]=u,e[10]=f,e[11]=h,e[12]=p,e[13]=A):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11],p=e[12],A=e[13]);let g;e[14]!==n||e[15]!==r||e[16]!==i||e[17]!==a||e[18]!==s||e[19]!==o||e[20]!==l||e[21]!==c||e[22]!==u||e[23]!==f||e[24]!==h||e[25]!==p||e[26]!==A?(g=a&&x.jsx(ql.div,{className:`fixed py-0 inset-0 ${o||"z-50"} flex items-center justify-center bg-black/70 bg-opacity-60 ${i}`,role:"dialog","aria-modal":"true",initial:{opacity:0}
44,animate:{opacity:1},exit:{opacity:0},...f,children:x.jsxs(ql.div,{className:`bg-white dark:bg-gray-800 rounded-[20px] ${A?.height?`h-[${A?.height}px]`:"min-h-[500px]"} overflow-y-auto overflow-x-hidden max-h-full shadow-lg w-full max-w-[800px] mx-4 absolute top-10`,style:{height:A?.height?`${A.height}px`:"",maxWidth:A?.width?`${A.width}px`:""},initial:{opacity:0,y:-80},animate:{opacity:1,y:0},exit:{opacity:0,y:-80},transition:{duration:.3,ease:"easeOut"},children:[x.jsxs("div",{className:"flex justify-between items-center border-b border-gray-200 dark:border-gray-700 px-4 py-4 sticky top-0 bg-white dark:bg-gray-800",children:[x.jsx("h2",{className:"text-[#1F3079] dark:text-blue-300 text-xl font-bold",children:s}),h&&x.jsx("button",{type:"button",onClick:()=>c(!1),className:"text-gray-500 dark:text-gray-400 hover:text-gray-800 dark:hover:text-white text-xl cursor-pointer","aria-label":"Close",children:"Ã"})]}),x.jsx("div",{className:"p-4 text-gray-800 dark:text-gray-100",children:r}),p&&x.jsxs("div",{className:"flex justify-end gap-3 px-4 py-3 border-t border-gray-200 dark:border-gray-700",children:[x.jsx(gr,{variant:"secondary",onClick:()=>c(!1),btnText:n}),x.jsx(gr,{variant:"primary",onClick:()=>u(),btnText:l})]})]})}),e[14]=n,e[15]=r,e[16]=i,e[17]=a,e[18]=s,e[19]=o,e[20]=l,e[21]=c,e[22]=u,e[23]=f,e[24]=h,e[25]=p,e[26]=A,e[27]=g):g=e[27];let w;return e[28]!==g?(w=x.jsx(Np,{children:g}),e[28]=g,e[29]=w):w=e[29],w}kh.defaultProps={showFooter:!1,okText:"Apply",cancelText:"Close",className:""};kh.propTypes={isOpen:re.bool.isRequired,showFooter:re.bool,cancelText:re.string,okText:re.string,className:re.string,modalTitle:re.string.isRequired,showCloseButton:re.bool.isRequired,onModalClose:re.func.isRequired,children:re.any.isRequired,onOk:re.func};const gZe={hidden:{opacity:0},visible:{opacity:1},exit:{opacity:0}},xZe={hidden:{x:"100%"},visible:{x:0,transition:{duration:.3,ease:"easeOut"}},exit:{x:"100%",transition:{duration:.25,ease:"easeIn"}}};function qc(t){const e=Dn.c(9),{isOpen:n,sidebarTitle:r,children:i,on
44HideSidebar:a,className:s,modalClassName:o}=t;let l;e[0]!==i||e[1]!==s||e[2]!==n||e[3]!==o||e[4]!==a||e[5]!==r?(l=n&&x.jsx(ql.div,{className:`fixed inset-0 z-50 bg-black/80 flex justify-end ${o}`,variants:gZe,initial:"hidden",animate:"visible",exit:"exit",children:x.jsxs(ql.aside,{className:"bg-white dark:bg-gray-900 w-full sm:max-w-xl h-full overflow-y-auto shadow-xl",variants:xZe,initial:"hidden",animate:"visible",exit:"exit",onClick:vZe,children:[jLe()?x.jsxs("div",{className:"flex items-center gap-2 p-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 sticky top-0 z-10",children:[x.jsx(Ap,{size:22,onClick:a,className:"cursor-pointer"}),x.jsx("div",{className:"text-base font-semibold dark:text-white",children:r})]}):x.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 sticky top-0 z-10",children:[x.jsx("h2",{className:"text-lg font-semibold dark:text-white",children:r}),x.jsx("button",{onClick:a,className:"text-gray-500 hover:text-black dark:text-gray-400 dark:hover:text-white text-2xl leading-none",children:"Ã"})]}),x.jsx("div",{className:`p-4 ${s}`,children:i})]})}),e[0]=i,e[1]=s,e[2]=n,e[3]=o,e[4]=a,e[5]=r,e[6]=l):l=e[6];let c;return e[7]!==l?(c=x.jsx(Np,{children:l}),e[7]=l,e[8]=c):c=e[8],c}function vZe(t){return t.stopPropagation()}qc.defaultProps={className:"",modalClassName:""};qc.propTypes={isOpen:re.bool.isRequired,sidebarTitle:re.string.isRequired,children:re.any.isRequired,onHideSidebar:re.func.isRequired,className:re.string,modalClassName:re.string};function yZe(){const t=Dn.c(45),[e,n]=b.useState(""),[r,i]=b.useState("");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=new Date,t[0]=a):a=t[0];const[s,o]=b.useState(a),[l,c]=b.useState(!1),[u,f]=b.useState(!1),[h,p]=b.useState(!1);let A;t[1]===Symbol.for("react.memo_cache_sentinel")?(A={title:"title",description:"description",variant:"success"},t[1]=A):A=t[1];const[g]=b.useState(A);let w;t[2]!==g?(w=g&&x.jsx(Do,{title:g.title,description:g.description,variant:g.variant}),t[2]=g,t[3]=w):w=t[3];let T;t[4]!==h?(T=x.jsx(go,{isLoading:h}),t[4]=h,t[5]=T):T=t[5];let C;t[6]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx("h1",{children:"Login"}),t[6]=C):C=t[6];let M;t[7]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsxs("div",{className:"flex gap-20",children:[x.jsx(gr,{btnText:"Login",variant:"primary",onClick:kZe}),x.jsx(gr,{btnText:"Login",variant:"secondary",onClick:PZe}),x.jsx(gr,{btnText:"Login",variant:"red",onClick:DZe}),x.jsx(gr,{btnText:"Login",variant:"outlined",onClick:RZe}),x.jsx(gr,{btnText:"Login",variant:"outlined-gray",onClick:NZe}),x.jsx(gr,{btnText:"Login",variant:"outlined-secondary",onClick:CZe}),x.jsx(gr,{btnText:"Login",variant:"disabled",onClick:MZe})]}),t[7]=M):M=t[7];let D;t[8]===Symbol.for("react.memo_cache_sentinel")?(D=x.jsx(fi,{btnText:"Login",variant:"primary",onClick:EZe,iconPosition:"right",children:x.jsx(ms,{size:24})}),t[8]=D):D=t[8];let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsx(fi,{btnText:"Login",variant:"secondary",onClick:TZe,iconPosition:"right",children:x.jsx(ms,{size:24})}),t[9]=k):k=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(fi,{btnText:"Login",variant:"red",onClick:SZe,iconPosition:"right",children:x.jsx(ms,{size:24})}),t[10]=I):I=t[10];let L;t[11]===Symbol.for("react.memo_cache_sentinel")?(L=x.jsx(fi,{btnText:"Login",variant:"outlined",onClick:wZe,iconPosition:"right",children:x.jsx(ms,{size:24})}),t[11]=L):L=t[11];let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsx(fi,{btnText:"Login",variant:"outlined-gray",onClick:bZe,iconPosition:"right",children:x.jsx(ms,{size:24})}),t[12]=O):O=t[12];let B;t[13]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsxs("div",{className:"flex gap-20 mt-5",children:[D,k,I,L,O,x.jsx(fi,{btnText:"Login",variant:"outlined-secondary",onClick:_Ze,iconPosition:"right",children:x.jsx(ms,{size:24})})]}),t[13]=B):B=t[13];let G;t[14]===Symbol.for("react.memo_cache_sentinel")?(G=Re=>{n(Re.target.value)},t[14]=G):G=t[14];let j;t[15]!==e?(j=x.jsx(dr,{type:"text",placeholder:"Username",value:e,onCh
44ange:G,errorText:"",labelClassName:"",inputClassName:"",name:"username",label:"Username"}),t[15]=e,t[16]=j):j=t[16];let z,Q;t[17]===Symbol.for("react.memo_cache_sentinel")?(z=[{value:"chocolate",label:"Chocolate"},{value:"strawberry",label:"Strawberry"},{value:"vanilla",label:"Vanilla"}],Q=Re=>{i(Re.value)},t[17]=z,t[18]=Q):(z=t[17],Q=t[18]);let ee;t[19]!==r?(ee=x.jsx(Ia,{label:"Select",labelClassName:"",placeholder:"Select",className:"w-40",name:"select",selectedValue:r,options:z,onSelect:Q}),t[19]=r,t[20]=ee):ee=t[20];let Z;t[21]===Symbol.for("react.memo_cache_sentinel")?(Z=Re=>{o(Re)},t[21]=Z):Z=t[21];let X;t[22]!==s?(X=x.jsx(fd,{label:"Date",name:"date",selectedDate:s,onChange:Z}),t[22]=s,t[23]=X):X=t[23];let K;t[24]===Symbol.for("react.memo_cache_sentinel")?(K=x.jsx(gr,{btnText:"Modal",onClick:()=>c(!0),variant:"primary"}),t[24]=K):K=t[24];let se;t[25]===Symbol.for("react.memo_cache_sentinel")?(se=x.jsx(gr,{btnText:"Sidebar",onClick:()=>f(!0),variant:"primary"}),t[25]=se):se=t[25];let ae;t[26]===Symbol.for("react.memo_cache_sentinel")?(ae=x.jsx(gr,{btnText:"Loading",onClick:()=>p(!0),variant:"primary"}),t[26]=ae):ae=t[26];let J;t[27]!==j||t[28]!==ee||t[29]!==X?(J=x.jsxs("div",{className:"mt-5 flex gap-20",children:[j,ee,X,K,se,ae]}),t[27]=j,t[28]=ee,t[29]=X,t[30]=J):J=t[30];let oe;t[31]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>c(!1),t[31]=oe):oe=t[31];let te;t[32]===Symbol.for("react.memo_cache_sentinel")?(te=x.jsx("p",{children:"Modal Content"}),t[32]=te):te=t[32];let he;t[33]!==l?(he=x.jsx(kh,{isOpen:l,onModalClose:oe,modalTitle:"Test Modal",showCloseButton:!0,children:te}),t[33]=l,t[34]=he):he=t[34];let me;t[35]===Symbol.for("react.memo_cache_sentinel")?(me=()=>f(!1),t[35]=me):me=t[35];let de;t[36]===Symbol.for("react.memo_cache_sentinel")?(de=x.jsx("p",{children:"Sidebar Content"}),t[36]=de):de=t[36];let Ae;t[37]!==u?(Ae=x.jsx(qc,{onHideSidebar:me,sidebarTitle:"Sidebar",isOpen:u,children:de}),t[37]=u,t[38]=Ae):Ae=t[38];let Se;return t[39]!==w||t[40]!==J||t[41]!==he||t[42]!==Ae||t[43]!==T?(Se=x.jsxs("div",{className:"container mx-auto ",children:[w,T,C,M,B,J,he,Ae]}),t[39]=w,t[40]=J,t[41]=he,t[42]=Ae,t[43]=T,t[44]=Se):Se=t[44],Se}function _Ze(){return console.log("Login")}function bZe(){return console.log("Login")}function wZe(){return console.log("Login")}function SZe(){return console.log("Login")}function TZe(){return console.log("Login")}function EZe(){return console.log("Login")}function MZe(){return console.log("Login")}function CZe(){return console.log("Login")}function NZe(){return console.log("Login")}function RZe(){return console.log("Login")}function DZe(){return console.log("Login")}function PZe(){return console.log("Login")}function kZe(){return console.log("Login")}const LZe={initial:{opacity:0}
44,animate:{opacity:1},exit:{opacity:0}};function OZe(t){const e=Dn.c(4),{children:n}=t;let r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={duration:.2,ease:"easeOut"},i={height:"100%"},e[0]=r,e[1]=i):(r=e[0],i=e[1]);let a;return e[2]!==n?(a=x.jsx(ql.div,{variants:LZe,initial:"initial",animate:"animate",exit:"exit",transition:r,style:i,children:n}),e[2]=n,e[3]=a):a=e[3],a}const Yv=[{value:"IN",label:"India"},{value:"AF",label:"Afghanistan"},{value:"AX",label:"Aland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BH",label:"Bahrain"},{value:"BS",label:"Bahamas"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia, Plurinational State of"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"CV",label:"Cape Verde"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, the Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czech Republic"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See (Vatican City State)"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran, Islamic Republic of"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MK",label:"Macedonia, the Former Yugoslav Republic of"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia, Federated States of"},{value:"MD",label:"Moldova, Republic of"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SZ",label:"Swaziland"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan, Province of China"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom"},{value:"US",label:"United States"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela, Bolivarian Republic of"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands, British"},{value:"VI",label:"Virgin Islands, U.S."},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}],tj=[{value:"IN",label:"India",lat:20.5937,lng:78.9629},{value:"AF",label:"Afghanistan",lat:33.9391,lng:67.71},{value:"AX",label:"Aland Islands",lat:60.1785,lng:19.9156},{value:"AL",label:"Albania",lat:41.1533,lng:20.1683},{value:"DZ",label:"Algeria",lat:28.0339,lng:1.6596},{value:"AS",label:"American Samoa",lat:-14.271,lng:-170.1322},{value:"AD",label:"Andorra",lat:42.5063,lng:1.5218},{value:"AO",label:"Angola",lat:-11.2027,lng:17.8739},{value:"AI",label:"Anguilla",lat:18.2206,lng:-63.0686},{value:"AQ",label:"Antarctica",lat:-75.2509,lng:0},{value:"AG",label:"Antigua and Barbuda",lat:17.0608,lng:-61.7964},{value:"AR",label:"Argentina",lat:-38.4161,lng:-63.6167},{value:"AM",label:"Armenia",lat:40.0691,lng:45.0382},{value:"AW",label:"Aruba",lat:12.5211,lng:-69.9683},{value:"AU",label:"Australia",lat:-25.2744,lng:133.7751},{value:"AT",label:"Austria",lat:47.5162,lng:14.5501},{value:"AZ",label:"Azerbaijan",lat:40.1431,lng:47.5769},{value:"BH",label:"Bahrain",lat:26.0667,lng:50.5577},{value:"BS",label:"Bahamas",lat:25.0343,lng:-77.3963},{value:"BD",label:"Bangladesh",lat:23.685,lng:90.3563},{value:"BB",label:"Barbados",lat:13.1939,lng:-59.5432},{value:"BY",label:"Belarus",lat:53.7098,lng:27.9534},{value:"BE",label:"Belgium",lat:50.8503,lng:4.3517},{value:"BZ",label:"Belize",lat:17.1899,lng:-88.4976},{value:"BJ",label:"Benin",lat:9.3077,lng:2.3158},{value:"BM",label:"Bermuda",lat:32.3078,lng:-64.7505},{value:"BT",label:"Bhutan",lat:27.5142,lng:90.4336},{value:"BO",label:"Bolivia, Plurinational State of",lat:-16.2902,lng:-63.5887},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba",lat:12.1784,lng:-68.2385},{value:"BA",label:"Bosnia and Herzegovina",lat:43.9159,lng:17.6791},{value:"BW",label:"Botswana",lat:-22.3285,lng:24.6849},{value:"BV",label:"Bouvet Island",lat:-54.4208,lng:3.3464},{value:"BR",label:"Brazil",lat:-14.235,lng:-51.9253},{value:"IO",label:"British Indian Ocean Territory",lat:-6.3432,lng:71.8765},{value:"BN",label:"Brunei Darussalam",lat:4.5353,lng:114.7277},{value:"BG",label:"Bulgaria",lat:42.7339,lng:25.4858},{value:"BF",label:"Burkina Faso",lat:12.2383,lng:-1.5616},{value:"BI",label:"Burundi",lat:-3.3731,lng:29.9189},{value:"KH",label:"Cambodia",lat:12.5657,lng:104.991},{value:"CM",label:"Cameroon",lat:7.3697,lng:12.3547},{value:"CA",label:"Canada",lat:56.1304,lng:-106.3468},{value:"CV",label:"Cape Verde",lat:16.5388,lng:-23.0418},{value:"KY",label:"Cayman Islands",lat:19.5135,lng:-80.567},{value:"CF",label:"Central African Republic",lat:6.6111,lng:20.9394},{value:"TD",label:"Chad",lat:15.4542,lng:18.7322},{value:"CL",label:"Chile",lat:-35.6751,lng:-71.543},{value:"CN",label:"China",lat:35.8617,lng:104.1954}
44,{value:"CX",label:"Christmas Island",lat:-10.4475,lng:105.6904},{value:"CC",label:"Cocos (Keeling) Islands",lat:-12.1642,lng:96.871},{value:"CO",label:"Colombia",lat:4.5709,lng:-74.2973},{value:"KM",label:"Comoros",lat:-11.875,lng:43.8722},{value:"CG",label:"Congo",lat:-.228,lng:15.8277},{value:"CD",label:"Congo, the Democratic Republic of the",lat:-4.0383,lng:21.7587},{value:"CK",label:"Cook Islands",lat:-21.2367,lng:-159.7777},{value:"CR",label:"Costa Rica",lat:9.7489,lng:-83.7534},{value:"CI",label:"Côte d'Ivoire",lat:7.54,lng:-5.5471},{value:"HR",label:"Croatia",lat:45.1,lng:15.2},{value:"CU",label:"Cuba",lat:21.5218,lng:-77.7812},{value:"CW",label:"Curaçao",lat:12.1696,lng:-68.99},{value:"CY",label:"Cyprus",lat:35.1264,lng:33.4299},{value:"CZ",label:"Czech Republic",lat:49.8175,lng:15.473},{value:"DK",label:"Denmark",lat:56.2639,lng:9.5018},{value:"DJ",label:"Djibouti",lat:11.8251,lng:42.5903},{value:"DM",label:"Dominica",lat:15.415,lng:-61.371},{value:"DO",label:"Dominican Republic",lat:18.7357,lng:-70.1627},{value:"EC",label:"Ecuador",lat:-1.8312,lng:-78.1834},{value:"EG",label:"Egypt",lat:26.8206,lng:30.8025},{value:"SV",label:"El Salvador",lat:13.7942,lng:-88.8965},{value:"GQ",label:"Equatorial Guinea",lat:1.6508,lng:10.2679},{value:"ER",label:"Eritrea",lat:15.1794,lng:39.7823},{value:"EE",label:"Estonia",lat:58.5953,lng:25.0136},{value:"ET",label:"Ethiopia",lat:9.145,lng:40.4897},{value:"FK",label:"Falkland Islands (Malvinas)",lat:-51.7963,lng:-59.5236},{value:"FO",label:"Faroe Islands",lat:61.8926,lng:-6.9118},{value:"FJ",label:"Fiji",lat:-17.7134,lng:178.065},{value:"FI",label:"Finland",lat:61.9241,lng:25.7482},{value:"FR",label:"France",lat:46.6034,lng:1.8883},{value:"GF",label:"French Guiana",lat:3.9339,lng:-53.1258},{value:"PF",label:"French Polynesia",lat:-17.6797,lng:-149.4068},{value:"TF",label:"French Southern Territories",lat:-49.2804,lng:69.3486},{value:"GA",label:"Gabon",lat:-.8037,lng:11.6094},{value:"GM",label:"Gambia",lat:13.4432,lng:-15.3101},{value:"GE",label:"Georgia",lat:42.3154,lng:43.3569}
44,{value:"DE",label:"Germany",lat:51.1657,lng:10.4515},{value:"GH",label:"Ghana",lat:7.9465,lng:-1.0232},{value:"GI",label:"Gibraltar",lat:36.1408,lng:-5.3536},{value:"GR",label:"Greece",lat:39.0742,lng:21.8243},{value:"GL",label:"Greenland",lat:71.7069,lng:-42.6043},{value:"GD",label:"Grenada",lat:12.1165,lng:-61.679},{value:"GP",label:"Guadeloupe",lat:16.265,lng:-61.551},{value:"GU",label:"Guam",lat:13.4443,lng:144.7937},{value:"GT",label:"Guatemala",lat:15.7835,lng:-90.2308},{value:"GG",label:"Guernsey",lat:49.4657,lng:-2.5853},{value:"GN",label:"Guinea",lat:9.9456,lng:-9.6966},{value:"GW",label:"Guinea-Bissau",lat:11.8037,lng:-15.1804},{value:"GY",label:"Guyana",lat:4.8604,lng:-58.9302},{value:"HT",label:"Haiti",lat:18.9712,lng:-72.2852},{value:"HM",label:"Heard Island and McDonald Islands",lat:-53.0818,lng:73.5042},{value:"VA",label:"Holy See (Vatican City State)",lat:41.9029,lng:12.4534},{value:"HN",label:"Honduras",lat:15.2,lng:-86.2419},{value:"HK",label:"Hong Kong",lat:22.3193,lng:114.1694},{value:"HU",label:"Hungary",lat:47.1625,lng:19.5033},{value:"IS",label:"Iceland",lat:64.9631,lng:-19.0208},{value:"IN",label:"India",lat:20.5937,lng:78.9629},{value:"ID",label:"Indonesia",lat:-.7893,lng:113.9213},{value:"IR",label:"Iran, Islamic Republic of",lat:32.4279,lng:53.688},{value:"IQ",label:"Iraq",lat:33.2232,lng:43.6793},{value:"IE",label:"Ireland",lat:53.1424,lng:-7.6921},{value:"IM",label:"Isle of Man",lat:54.2361,lng:-4.5481},{value:"IL",label:"Israel",lat:31.0461,lng:34.8516},{value:"IT",label:"Italy",lat:41.8719,lng:12.5674},{value:"JM",label:"Jamaica",lat:18.1096,lng:-77.2975},{value:"JP",label:"Japan",lat:36.2048,lng:138.2529},{value:"JE",label:"Jersey",lat:49.2138,lng:-2.1358},{value:"JO",label:"Jordan",lat:30.5852,lng:36.2384},{value:"KZ",label:"Kazakhstan",lat:48.0196,lng:66.9237},{value:"KE",label:"Kenya",lat:-.0236,lng:37.9062},{value:"KI",label:"Kiribati",lat:1.8709,lng:-157.3626},{value:"KP",label:"Korea, Democratic People's Republic of",lat:40.3399,lng:127.5101},{value:"KR",label:"Korea, Republic of",lat:35.9078,lng:127.7669},{value:"KW",label:"Kuwait",lat:29.3117,lng:47.4818},{value:"KG",label:"Kyrgyzstan",lat:41.2044,lng:74.7661},{value:"LA",label:"Lao People's Democratic Republic",lat:19.8563,lng:102.4955},{value:"LV",label:"Latvia",lat:56.8796,lng:24.6032},{value:"LB",label:"Lebanon",lat:33.8547,lng:35.8623},{value:"LS",label:"Lesotho",lat:-29.61,lng:28.2336},{value:"LR",label:"Liberia",lat:6.4281,lng:-9.4295},{value:"LY",label:"Libya",lat:26.3351,lng:17.2283},{value:"LI",label:"Liechtenstein",lat:47.166,lng:9.5554},{value:"LT",label:"Lithuania",lat:55.1694,lng:23.8813},{value:"LU",label:"Luxembourg",lat:49.8153,lng:6.1296},{value:"MO",label:"Macao",lat:22.1987,lng:113.5439},{value:"MK",label:"Macedonia, the Former Yugoslav Republic of",lat:41.5124,lng:21.7453},{value:"MG",label:"Madagascar",lat:-18.7669,lng:46.8691},{value:"MW",label:"Malawi",lat:-13.2543,lng:34.3015},{value:"MY",label:"Malaysia",lat:4.2105,lng:101.9758},{value:"MV",label:"Maldives",lat:3.2028,lng:73.2207},{value:"ML",label:"Mali",lat:17.5707,lng:-3.9962},{value:"MT",label:"Malta",lat:35.9375,lng:14.3754},{value:"MH",label:"Marshall Islands",lat:7.1315,lng:171.1845},{value:"MQ",label:"Martinique",lat:14.6415,lng:-61.0242},{value:"MR",label:"Mauritania",lat:21.0079,lng:-10.9408},{value:"MU",label:"Mauritius",lat:-20.3484,lng:57.5522},{value:"YT",label:"Mayotte",lat:-12.8275,lng:45.1662},{value:"MX",label:"Mexico",lat:23.6345,lng:-102.5528},{value:"FM",label:"Micronesia, Federated States of",lat:7.4256,lng:150.5508},{value:"MD",label:"Moldova, Republic of",lat:47.4116,lng:28.3699},{value:"MC",label:"Monaco",lat:43.7333,lng:7.4167},{value:"MN",label:"Mongolia",lat:46.8625,lng:103.8467},{value:"ME",label:"Montenegro",lat:42.7087,lng:19.3744},{value:"MS",label:"Montserrat",lat:16.7425,lng:-62.1874},{value:"MA",label:"Morocco",lat:31.7917,lng:-7.0926},{value:"MZ",label:"Mozambique",lat:-18.6657,lng:35.5296},{value:"MM",label:"Myanmar",lat:21.9162,lng:95.956},{value:"NA",label:"Namibia",lat:-22.9576,lng:18.4904},{value:"NR",label:"Nauru",lat:-.5228,lng:166.9315},{value:"NP",label:"Nepal",lat:28.3949,lng:84.124},{value:"NL",label:"Netherlands",lat:52.1326,lng:5.2913},{value:"NC",label:"New Caledonia",lat:-20.9043,lng:165.618},{value:"NZ",label:"New Zealand",lat:-40.9006,lng:174.886},{value:"NI",label:"Nicaragua",lat:12.8654,lng:-85.2072},{value:"NE",label:"Niger",lat:17.6078,lng:8.0817},{value:"NG",label:"Nigeria",lat:9.082,lng:8.6753},{value:"NU",label:"Niue",lat:-19.0544,lng:-169.8672},{value:"NF",label:"Norfolk Island",lat:-29.0408,lng:167.9547},{value:"MP",label:"Northern Mariana Islands",lat:15.0979,lng:145.6739},{value:"NO",label:"Norway",lat:60.472,lng:8.4689},{value:"OM",label:"Oman",lat:21.4735,lng:55.9754},{value:"PK",label:"Pakistan",lat:30.3753,lng:69.3451},{value:"PW",label:"Palau",lat:7.515,lng:134.5825},{value:"PS",label:"Palestine, State of",lat:31.9522,lng:35.2332},{value:"PA",label:"Panama",lat:8.538,lng:-80.7821},{value:"PG",label:"Papua New Guinea",lat:-6.315,lng:143.9555},{value:"PY",label:"Paraguay",lat:-23.4425,lng:-58.4438},{value:"PE",label:"Peru",lat:-9.19,lng:-75.0152},{value:"PH",label:"Philippines",lat:12.8797,lng:121.774},{value:"PN",label:"Pitcairn",lat:-24.3768,lng:-128.3242},{value:"PL",label:"Poland",lat:51.9194,lng:19.1451},{value:"PT",label:"Portugal",lat:39.3999,lng:-8.2245},{value:"PR",label:"Puerto Rico",lat:18.2208,lng:-66.5901},{value:"QA",label:"Qatar",lat:25.3548,lng:51.1839},{value:"RE",label:"Réunion",lat:-21.1151,lng:55.5364},{value:"RO",label:"Romania",lat:45.9432,lng:24.9668},{value:"RU",label:"Russian Federation",lat:61.524,lng:105.3188},{value:"RW",label:"Rwanda",lat:-1.9403,lng:29.8739},{value:"BL",label:"Saint Barthélemy",lat:17.9,lng:-62.8333},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha",lat:-15.965,lng:-5.7089},{value:"KN",label:"Saint Kitts and Nevis",lat:17.3578,lng:-62.783},{value:"LC",label:"Saint Lucia",lat:13.9094,lng:-60.9789},{value:"MF",label:"Saint Martin (French part)",lat:18.0708,lng:-63.0501},{value:"PM",label:"Saint Pierre and Miquelon",lat:46.9419,lng:-56.2711},{value:"VC",label:"Saint Vincent and the Grenadines",lat:12.9843,lng:-61.2872},{value:"WS",label:"Samoa",lat:-13.759,lng:-172.1046},{value:"SM",label:"San Marino",lat:43.9424,lng:12.4578},{value:"ST",label:"Sao Tome and Principe",lat:.1864,lng:6.6131},{value:"SA",label:"Saudi Arabia",lat:23.8859,lng:45.0792},{value:"SN",label:"Senegal",lat:14.4974,lng:-14.4524},{value:"RS",label:"Serbia",lat:44.0165,lng:21.0059},{value:"SC",label:"Seychelles",lat:-4.6796,lng:55.492},{value:"SL",label:"Sierra Leone",lat:8.4606,lng:-11.7799},{value:"SG",label:"Singapore",lat:1.3521,lng:103.8198},{value:"SX",label:"Sint Maarten (Dutch part)",lat:18.0425,lng:-63.0548},{value:"SK",label:"Slovakia",lat:48.669,lng:19.699},{value:"SI",label:"Slovenia",lat:46.1512,lng:14.9955},{value:"SB",label:"Solomon Islands",lat:-9.6457,lng:160.1562},{value:"SO",label:"Somalia",lat:5.1521,lng:46.1996},{value:"ZA",label:"South Africa",lat:-30.5595,lng:22.9375},{value:"GS",label:"South Georgia and the South Sandwich Islands",lat:-54.4296,lng:-36.5879},{value:"SS",label:"South Sudan",lat:6.877,lng:31.307},{value:"ES",label:"Spain",lat:40.4637,lng:-3.7492},{value:"LK",label:"Sri Lanka",lat:7.8731,lng:80.7718},{value:"SD",label:"Sudan",lat:12.8628,lng:30.2176},{value:"SR",label:"Suriname",lat:3.9193,lng:-56.0278},{value:"SJ",label:"Svalbard and Jan Mayen",lat:77.5536,lng:23.6703},{value:"SZ",label:"Swaziland",lat:-26.5225,lng:31.4659},{value:"SE",label:"Sweden",lat:60.1282,lng:18.6435},{value:"CH",label:"Switzerland",lat:46.8182,lng:8.2275}
44,{value:"SY",label:"Syrian Arab Republic",lat:34.8021,lng:38.9968},{value:"TW",label:"Taiwan, Province of China",lat:23.6978,lng:120.9605},{value:"TJ",label:"Tajikistan",lat:38.861,lng:71.2761},{value:"TZ",label:"Tanzania, United Republic of",lat:-6.369,lng:34.8888},{value:"TH",label:"Thailand",lat:15.87,lng:100.9925},{value:"TL",label:"Timor-Leste",lat:-8.8742,lng:125.7275},{value:"TG",label:"Togo",lat:8.6195,lng:.8248},{value:"TK",label:"Tokelau",lat:-9.2002,lng:-171.8484},{value:"TO",label:"Tonga",lat:-21.179,lng:-175.1982},{value:"TT",label:"Trinidad and Tobago",lat:10.6918,lng:-61.2225},{value:"TN",label:"Tunisia",lat:33.8869,lng:9.5375},{value:"TR",label:"Turkey",lat:38.9637,lng:35.2433},{value:"TM",label:"Turkmenistan",lat:38.9697,lng:59.5563},{value:"TC",label:"Turks and Caicos Islands",lat:21.694,lng:-71.7979},{value:"TV",label:"Tuvalu",lat:-7.1095,lng:177.6493},{value:"UG",label:"Uganda",lat:1.3733,lng:32.2903},{value:"UA",label:"Ukraine",lat:48.3794,lng:31.1656},{value:"AE",label:"United Arab Emirates",lat:23.4241,lng:53.8478},{value:"GB",label:"United Kingdom",lat:55.3781,lng:-3.436},{value:"US",label:"United States",lat:37.0902,lng:-95.7129},{value:"UM",label:"United States Minor Outlying Islands",lat:19.2823,lng:166.647},{value:"UY",label:"Uruguay",lat:-32.5228,lng:-55.7658},{value:"UZ",label:"Uzbekistan",lat:41.3775,lng:64.5853},{value:"VU",label:"Vanuatu",lat:-15.3767,lng:166.9592},{value:"VE",label:"Venezuela, Bolivarian Republic of",lat:6.4238,lng:-66.5897},{value:"VN",label:"Viet Nam",lat:14.0583,lng:108.2772},{value:"VG",label:"Virgin Islands, British",lat:18.4207,lng:-64.64},{value:"VI",label:"Virgin Islands, U.S.",lat:18.3358,lng:-64.8963},{value:"WF",label:"Wallis and Futuna",lat:-13.7687,lng:-177.1561},{value:"EH",label:"Western Sahara",lat:24.2155,lng:-12.8858},{value:"YE",label:"Yemen",lat:15.5527,lng:48.5164},{value:"ZM",label:"Zambia",lat:-13.1339,lng:27.8493},{value:"ZW",label:"Zimbabwe",lat:-19.0154,lng:29.1549}],GP="https://www.ivsource.com",FZe="www.ivsource.com",IZe=async t=>{try{return await Ly(`${GP}/agent/register`,void 0,t)}catch(e){return console.log(e),e}},kne=async t=>{try{return await Ly(`${GP}/agent/register/verify-email/request`,void 0,{email:t})}catch(e){return console.log(e),e}},BZe=async(t,e)=>{try{return await Ly(`${GP}/agent/register/verify-email/validate`,void 0,{otp:t,verificationToken:e})}catch(n){return console.log(n),n}},UZe=async(t,e,n)=>{try{const r=new URLSearchParams({userId:t,documentId:e});return(await fetch(`${GP}/api/user-documents/upload?${r}`,{method:"post",body:n,headers:new Headers({"X-Tenant-Host":FZe})})).json()}catch(r){return console.log(r),r}};function wme({title:t="Document",description:e="Upload your official document. PDF or JPG, max 5MB.",documentId:n,userId:r,onUploaded:i,onRemoved:a,errorText:s}){const o=b.useRef(null),[l,c]=b.useState(null),[u,f]=b.useState(""),[h,p]=b.useState(!1),[A,g]=b.useState(""),w=async M=>{const D=M.target.files[0];if(!D)return;if(!["image/jpeg","image/jpg","image/png","application/pdf"].includes(D.type)){g("Only JPG, JPEG, PNG, or PDF files are allowed."),o.current&&(o.current.value="");return}if(D.size>5*1024*1024){g("File size must not exceed 5MB."),o.current&&(o.current.value="");return}p(!0),g("");const I=new FormData;I.append("file",D);try{const L=await UZe(r,n,I);L.statusCode===200&&(c(L.result.documentUrl),f(L.result.documentUrl.split("/").pop()),i&&i(n,L.result.documentUrl))}catch{g("Upload failed. Please try again."),o.current&&(o.current.value="")}finally{p(!1)}},T=()=>{c(null),f(""),g(""),o.current&&(o.current.value=""),a&&a(n)},C=s&&s!==""||A&&A!=="";return x.jsxs("div",{className:"w-full",children:[C&&x.jsx("p",{className:"text-red-500 text-sm mb-1",children:A||s}),l?x.jsx("div",{className:"p-6 rounded-2xl border border-green-400 bg-green-50 dark:bg-green-950/20 dark:border-green-700",children:x.jsxs("div",{className:"flex gap-6 relative",children:[x.jsx("img",{src:l,alt:"Uploaded document",className:"w-40 h-52 object-contain rounded border dark:border-gray-600",onError:M=>{M.target.src="/images/docpng.png"}}),x.jsxs("div",{children:[x.jsx("h2",{className:"text-xl font-semibold text-gray-800 dark:text-gray-100",children:t}),x.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dar
44k:text-blue-400 underline mt-2 block text-sm",children:u}),x.jsxs("button",{type:"button",onClick:T,className:"flex items-center gap-2 text-red-500 hover:text-red-600 transition absolute bottom-2 right-2",children:[x.jsx("div",{className:"bg-red-400 text-white rounded-full p-2",children:x.jsx(rx,{size:14,weight:"bold"})}),"Remove & Re-upload"]})]})]})}):x.jsxs("div",{className:`relative flex items-center flex-col md:flex-row gap-6 p-8 rounded-2xl border-2 border-dashed cursor-pointer transition ${C?"border-red-400 bg-red-50 dark:bg-red-950/20 dark:border-red-700":"border-blue-400 bg-blue-50 hover:bg-blue-100 dark:bg-blue-950/20 dark:border-blue-700 dark:hover:bg-blue-950/30"}`,onClick:()=>!h&&o.current?.click(),children:[x.jsx("div",{className:`flex items-center justify-center w-20 h-20 rounded-full text-white ${C?"bg-red-400":"bg-blue-500"}`,children:h?x.jsx(ST,{size:36,className:"animate-spin"}):x.jsx(TT,{size:36,weight:"bold"})}),x.jsxs("div",{children:[x.jsx("h2",{className:"text-xl text-gray-800 dark:text-gray-100",children:t}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 text-sm",children:h?"Uploading...":e})]}),x.jsx("input",{ref:o,type:"file",className:"hidden",accept:".pdf,.jpg,.jpeg,.png",onChange:M=>w(M),disabled:h})]})]})}const J$=[{value:"Andaman and Nicobar Islands",label:"Andaman and Nicobar Islands"},{value:"Andhra Pradesh",label:"Andhra Pradesh"},{value:"Arunachal Pradesh",label:"Arunachal Pradesh"},{value:"Assam",label:"Assam"},{value:"Bihar",label:"Bihar"},{value:"Chandigarh",label:"Chandigarh"},{value:"Chhattisgarh",label:"Chhattisgarh"},{value:"Dadra and Nagar Haveli",label:"Dadra and Nagar Haveli"},{value:"Daman and Diu",label:"Daman and Diu"},{value:"Delhi",label:"Delhi"},{value:"Goa",label:"Goa"},{value:"Gujarat",label:"Gujarat"},{value:"Haryana",label:"Haryana"},{value:"Himachal Pradesh",label:"Himachal Pradesh"},{value:"Jammu and Kashmir",label:"Jammu and Kashmir"},{value:"Jharkhand",label:"Jharkhand"},{value:"Karnataka",label:"Karnataka"},{value:"Kerala",label:"Kerala"},{value:"Lakshadweep",label:"Lakshadweep"},{value:"Madhya Pradesh",label:"Madhya Pradesh"},{value:"Maharashtra",label:"Maharashtra"},{value:"Manipur",label:"Manipur"},{value:"Meghalaya",label:"Meghalaya"},{value:"Mizoram",label:"Mizoram"},{value:"Nagaland",label:"Nagaland"},{value:"Odisha",label:"Odisha"},{value:"Puducherry",label:"Puducherry"},{value:"Punjab",label:"Punjab"},{value:"Rajasthan",label:"Rajasthan"},{value:"Sikkim",label:"Sikkim"},{value:"Tamil Nadu",label:"Tamil Nadu"},{value:"Telangana",label:"Telangana"},{value:"Tripura",label:"Tripura"},{value:"Uttarakhand",label:"Uttarakhand"},{value:"Uttar Pradesh",label:"Uttar Pradesh"},{value:"West Bengal",label:"West Bengal"}];function Sh(t){const e=Dn.c(27);let n,r,i,a,s,o,l,c;e[0]!==t?({id:r,name:s,labelText:a,onChange:o,labelClassName:i,checked:n,radioClassName:l,...c}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8]);const{isDark:u}=B2(),f=` d-flex ${i} fw-500 align-items-center fs-12 app-check-box cursor-pointer`,h=u?"#f9fafb":"#1e1e1e";let p;e[9]!==h?(p={color:h}
44,e[9]=h,e[10]=p):p=e[10];const A=`1px solid ${u?"#6b7280":"#ccc"}`,g=u?"#374151":"transparent";let w;e[11]!==A||e[12]!==g?(w={marginRight:"7px",appearance:"none",width:"15px",minWidth:"15px",height:"15px",borderRadius:"3px",border:A,cursor:"pointer",backgroundColor:g},e[11]=A,e[12]=g,e[13]=w):w=e[13];let T;e[14]!==n||e[15]!==r||e[16]!==s||e[17]!==o||e[18]!==l||e[19]!==c||e[20]!==w?(T=x.jsx("input",{id:r,type:"checkbox",className:l,name:s,checked:n,onChange:o,...c,style:w}),e[14]=n,e[15]=r,e[16]=s,e[17]=o,e[18]=l,e[19]=c,e[20]=w,e[21]=T):T=e[21];let C;return e[22]!==a||e[23]!==f||e[24]!==p||e[25]!==T?(C=x.jsxs("label",{className:f,style:p,children:[T,a]}),e[22]=a,e[23]=f,e[24]=p,e[25]=T,e[26]=C):C=e[26],C}Sh.defaultProps={labelClassName:"",radioClassName:"",labelText:"",checked:!1};Sh.propTypes={checked:re.bool,labelText:re.any,labelClassName:re.string,radioClassName:re.string,id:re.string.isRequired,name:re.string.isRequired,onChange:re.func.isRequired};function VZe(){const t=Dn.c(119),e=Ss(),{isDark:n}=B2(),[r,i]=b.useState(null),[a,s]=b.useState(!1),[o,l]=b.useState(null);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[0]=c):c=t[0];const[u,f]=b.useState(c),[h,p]=b.useState(!1);let A;t[1]===Symbol.for("react.memo_cache_sentinel")?(A=[],t[1]=A):A=t[1];const[g,w]=b.useState(A);let T;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=[{text:"Agency Details",subText:"Provide Your Agency Details",icon:eP,step:1,status:"pending"},{text:"Verification",subText:"Provide Your Agency and ID Proof",icon:Afe,step:2,status:"pending"},{text:"Final Review",subText:"Your details will be reviewed in 24-48 hours",icon:xfe,step:3,status:"pending"}],t[2]=T):T=t[2];const[C,M]=b.useState(T);let D;t[3]===Symbol.for("react.memo_cache_sentinel")?(D={title:"",firstName:"",lastName:"",email:"",phone:"",password:"",company:"",address1:"",address2:"",countryCode:"IN",state:"",city:"",pinCode:"",gstNumber:"",mfaEnabled:!0},t[3]=D):D=t[3];const[k,I]=b.useState(D);let L;t[4]===Symbol.for("react.memo_cache_sentinel")?(L={},t[4]=L):L=t[4];const[O,B]=b.useState(L),[G,j]=b.useState(0),[z,Q]=b.useState(""),[ee,Z]=b.useState(!1),[X,K]=b.useState(""),[se,ae]=b.useState(""),[J,oe]=b.useState("");let te;t[5]===Symbol.for("react.memo_cache_sentinel")?(te=(at,St)=>{M(ut=>ut.map(gt=>gt.step===at?{...gt,status:St}:gt))},t[5]=te):te=t[5];const he=te,me=HZe;let de;t[6]===Symbol.for("react.memo_cache_sentinel")?(de=(at,St)=>{I(ut=>({...ut,[at]:St})),B(ut=>{if(!ut[at])return ut;const gt={...ut};return delete gt[at],gt})},t[6]=de):de=t[6];const Ae=de;let Se;t[7]!==k?(Se=at=>{const St=me(at,k[at]);B(ut=>{const gt={...ut};return St?gt[at]=St:delete gt[at],gt})},t[7]=k,t[8]=Se):Se=t[8];const Re=Se;let Ne;t[9]!==k.email?(Ne=async()=>{if(!I3(k.email)){Q("Enter a valid email address");return}Q(""),s(!0);const at=await kne(k.email);at.statusCode===200?(oe(at.result?.verificationToken??""),Z(!0)):i({title:"Error",description:at.message,variant:"error"}),s(!1)},t[9]=k.email,t[10]=Ne):Ne=t[10];const Fe=Ne;let Qe;t[11]!==X||t[12]!==J?(Qe=async()=>{if(!X){ae("OTP is required");return}ae(""),s(!0),(await BZe(X,J)).result?j(1):ae("Invalid OTP"),s(!1)},t[11]=X,t[12]=J,t[13]=Qe):Qe=t[13];const ge=Qe;let Ie;t[14]!==k.email?(Ie=async()=>{K(""),ae(""),s(!0);const at=await kne(k.email);at.statusCode===200?(oe(at.result?.verificationToken??""),i({title:"Success",description:"OTP resent successfully.",variant:"success"})):i({title:"Error",description:at.message,variant:"error"}),s(!1)},t[14]=k.email,t[15]=Ie):Ie=t[15];const De=Ie;let Xe;t[16]!==k?(Xe=async()=>{const at={};if(k.company===""&&(at.company="Company Name is required"),k.gstNumber===""&&(at.gstNumber="GST Number is required"),Vhe(k.gstNumber)||(at.gstNumber="Invalid GST Number"),k.country===""&&(at.country="Country is required"),k.state===""&&(at.state="State is Required"),k.city===""&&(at.city="City is Required"),k.address1===""&&(at.address1="Address is Required"),k.address2===""&&(at.address2="Address is Required"),k.title===""&&(at.title="Title is Required"),k.firstName===""&&(at.firstName="First name is Required"),k.lastName===""&&(at.lastName="Last name is Required"),k.email===""&&(at.email="Email is Required"),k.pinCode===""&&(at.pinCode="Pin Code is Required"),I3(k.email)||(at.email="Invalid Email"),k.p
44hone===""&&(at.phone="Phone Number is Required"),k.password===""&&(at.password="Password is Required"),Object.keys(at).length>0)return B(at),at;s(!0);const St=await IZe(k);console.log(St),St.statusCode===200?(w(St.result.documentUploads),l(St.result.userId),j(2),he(1,"completed")):i({title:"Error",description:St.message,variant:"error"}),s(!1)},t[16]=k,t[17]=Xe):Xe=t[17];const Ye=Xe;let Me,lt,Ht,Le,Nt,Ct,It,nt,ht;if(t[18]!==h||t[19]!==k||t[20]!==r||t[21]!==Ye||t[22]!==G||t[23]!==g||t[24]!==O||t[25]!==o||t[26]!==Re||t[27]!==De||t[28]!==Fe||t[29]!==ge||t[30]!==n||t[31]!==a||t[32]!==X||t[33]!==se||t[34]!==ee||t[35]!==C||t[36]!==u||t[37]!==z){const at=g.filter(jZe),St=at.length>0&&at.every(Dt=>u.includes(Dt.documentId));let ut;t[47]===Symbol.for("react.memo_cache_sentinel")?(ut=Dt=>f(jt=>[...jt,Dt]),t[47]=ut):ut=t[47];const gt=ut;let Vt;t[48]===Symbol.for("react.memo_cache_sentinel")?(Vt=Dt=>f(jt=>jt.filter(Lt=>Lt!==Dt)),t[48]=Vt):Vt=t[48];const Zt=Vt,Wt=async()=>{if(!at.every(jt=>u.includes(jt.documentId))){i({title:"Error",description:"Please upload all mandatory documents before proceeding.",variant:"error"});return}j(3),he(2,"completed")};t[49]!==a?(nt=a&&x.jsx(go,{isLoading:a}),t[49]=a,t[50]=nt):nt=t[50],t[51]!==r?(ht=r&&x.jsx(Do,{title:r.title,description:r.description,variant:r.variant,onHide:()=>i(null)}),t[51]=r,t[52]=ht):ht=t[52],Ct="grid grid-cols-12 h-screen relative overflow-hidden";const qt=n?"/images/app_logo_white.png":"/images/app_logo_black.png";let We;t[53]!==qt?(We=x.jsx("img",{src:qt,alt:"",className:"app-logo"}),t[53]=qt,t[54]=We):We=t[54];let yn;t[55]===Symbol.for("react.memo_cache_sentinel")?(yn=x.jsxs("div",{className:"text-2xl my-4 font-medium relative",children:["Agent Registration",x.jsx("div",{className:"absolute left-0 w-36 border border-[#007AFF] mt-2"})]}),t[55]=yn):yn=t[55];let vn;if(t[56]!==G||t[57]!==C){let Dt;t[59]!==G||t[60]!==C.length?(Dt=(jt,Lt)=>{const Bt=jt.icon,Gt=G===jt.step,hn=jt.status==="completed";return x.jsx(x.Fragment,{children:x.jsxs("div",{className:"flex gap-5",children:[x.jsxs("div",{className:"flex flex-col items-center",children:[x.jsx("div",{className:`p-4 rounded-full ${hn?"bg-green-500":Gt?"bg-[#007AFF]":"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600"}`,children:x.jsx(Bt,{size:24,color:hn||Gt?"#ffffff":"#D2D4D7"})}),C.length-1!==Lt&&x.jsx("div",{className:"h-14 border border-gray-300 dark:border-gray-600 my-2"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"font-medium",children:jt.text}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:jt.subText})]})]},Lt)})},t[59]=G,t[60]=C.length,t[61]=Dt):Dt=t[61],vn=C.map(Dt),t[56]=G,t[57]=C,t[58]=vn}else vn=t[58];let Ge;t[62]!==vn?(Ge=x.jsx("div",{className:"mt-6",children:vn}),t[62]=vn,t[63]=Ge):Ge=t[63];let kt;t[64]!==We||t[65]!==Ge?(kt=x.jsxs("div",{className:"p-8",children:[We,yn,Ge]}),t[64]=We,t[65]=Ge,t[66]=kt):kt=t[66];let _t;t[67]===Symbol.for("react.memo_cache_sentinel")?(_t=x.jsx("div",{className:"absolute inset-x-0 bottom-0 -z-[1]",children:x.jsx("img",{src:"/images/registration_page_image.png",alt:"",className:"w-full opacity-40"})}),t[67]=_t):_t=t[67],t[68]!==kt?(It=x.jsxs("div",{className:"relative isolate hidden sm:block sm:col-span-4 h-screen overflow-hidden bg-[#F3F4F6] dark:bg-gray-800",children:[kt,_t]}),t[68]=kt,t[69]=It):It=t[69],Nt="col-span-12 sm:col-span-8 overflow-auto bg-white dark:bg-gray-900",Me="p-10",t[70]!==k||t[71]!==G||t[72]!==De||t[73]!==Fe||t[74]!==ge||t[75]!==X||t[76]!==se||t[77]!==ee||t[78]!==z?(lt=G===0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"text-3xl my-2",children:"Verify Your Email"}),x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Enter your email address to receive a one-time verification code."}),x.jsx("div",{className:"my-4 w-full border border-(--secondary-color)"}),x.jsxs("div",{className:"flex gap-3 mb-4 items-center",children:[x.jsx(Ry,{size:24}),x.jsx("div",{children:"Email Verification"})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-5",children:[x.jsx("div",{className:`${ee?"col-span-12":"col-span-8"}`,children:x.jsx(dr,{label:"Email Address",placeholder:"Enter your email address",type:"email",required:!0,name:"email",value:k.email,onChange:Dt=>{I({...k,email:Dt.target.value}),Q("")},errorText:z,disabled:ee})}),!ee&&x.jsx("div",{className:"col-span-4 flex items-end",children:x.jsx(fi,{btnText:"Send OTP",variant:"secondary",onClick:Fe,iconPosition:"right",children:x.jsx(ms,{size:24})})}),ee&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"col-span-12 text-sm text-green-600 dark:text-green-400",children:["OTP sent to ",x.jsx("b",{children:k.email}),". Please check your inbox."]}),x.jsx("div",{className:"col-span-8",children:x.jsx(dr,{label:"Enter OTP",placeholder:"Enter the OTP sent to your email",type:"text",required:!0,name:"otp",value:X,onChange:Dt=>{K(Dt.target.value),ae("")},errorText:se})}),x.jsxs("div",{className:"col-span-12 flex gap-4 items-center flex-wrap",children:[x.jsx(fi,{btnText:"Verify OTP",variant:"secondary",onClick:ge,iconPosition:"right",children:x.jsx(ms,{size:24})}),x.jsx("button",{type:"button",className:"text-sm text-[#007AFF] underline",onClick:De,children:"Resend OTP"})]})]})]})]}),t[70]=k,t[71]=G,t[72]=De,t[73]=Fe,t[74]=ge,t[75]=X,t[76]=se,t[77]=ee,t[78]=z,t[79]=lt):lt=t[79],t[8
440]!==h||t[81]!==k.address1||t[82]!==k.address2||t[83]!==k.city||t[84]!==k.company||t[85]!==k.email||t[86]!==k.firstName||t[87]!==k.gstNumber||t[88]!==k.lastName||t[89]!==k.password||t[90]!==k.phone||t[91]!==k.pinCode||t[92]!==k.state||t[93]!==k.title||t[94]!==Ye||t[95]!==G||t[96]!==O||t[97]!==Re?(Ht=G===1&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"text-3xl my-2",children:"Tell Us About Your Agency"}),x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"This Helps us set up your account."}),x.jsx("div",{className:"my-4 w-full border border-(--secondary-color)"}),x.jsxs("div",{className:"flex gap-3 mb-4",children:[x.jsx("div",{children:x.jsx(XU,{size:24})}),x.jsx("div",{children:"Business/Agency Details"})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-5",children:[x.jsx("div",{className:"col-span-12",children:x.jsx(dr,{label:"Business/Agency Name",placeholder:"Enter Business/Agency Name",type:"text",required:!0,name:"company",value:k.company,onChange:Dt=>Ae("company",Dt.target.value),onBlur:()=>Re("company"),errorText:O.company})}),x.jsx("div",{className:"col-span-12",children:x.jsx(dr,{label:"Business GST Registration Number",placeholder:"Enter Business GST Registration Number",type:"text",required:!0,name:"gstNumber",value:k.gstNumber,onChange:Dt=>Ae("gstNumber",Dt.target.value),onBlur:()=>Re("gstNumber"),errorText:O.gstNumber})}),x.jsx("div",{className:"col-span-6",children:x.jsx(Ia,{label:"State of Registration",options:J$,required:!0,name:"state",selectedValue:k.state,onSelect:Dt=>Ae("state",Dt.value),errorText:O.state})}),x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"City",placeholder:"Enter City Name",type:"text",required:!0,name:"city",value:k.city,onChange:Dt=>Ae("city",Dt.target.value),onBlur:()=>Re("city"),errorText:O.city})}),x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Business Registered Address",placeholder:"Enter Business Registered Address",type:"text",required:!0,name:"address1",value:k.address1,onChange:Dt=>Ae("address1",Dt.target.value),onBlur:()=>Re("address1"),errorText:O.address1})}),x.jsx("div",{className:"col-span-3",children:x.jsx(dr,{label:"Landmark",placeholder:"Enter Landmark",type:"text",required:!0,name:"address2",value:k.address2,onChange:Dt=>Ae("address2",Dt.target.value),onBlur:()=>Re("address2"),errorText:O.address2})}),x.jsx("div",{className:"col-span-3",children:x.jsx(dr,{label:"Pincode",placeholder:"Enter Pincode",type:"number",required:!0,name:"pincode",value:k.pinCode,onChange:Dt=>Ae("pinCode",Dt.target.value),onBlur:()=>Re("pinCode"),errorText:O.pinCode})}),x.jsx("div",{className:"col-span-12",children:x.jsxs("div",{className:"flex gap-2 items-center",children:[x.jsx("div",{children:x.jsx(U0e,{size:24})}),x.jsxs("div",{children:[x.jsx("div",{className:"text-lg",children:"Contact Details"}),x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Contact details will be used for verification and communication with your business or agency."})]})]})}),x.jsx("div",{className:"col-span-3",children:x.jsx(Ia,{label:"Title",options:XD,selectedValue:k.title,onSelect:Dt=>Ae("title",Dt.value),errorText:O.title})}),x.jsx("div",{className:"col-span-3",children:x.jsx(dr,{label:"First Name",placeholder:"Enter First Name",type:"text",required:!0,name:"firstName",value:k.firstName,onChange:Dt=>Ae("firstName",Dt.target.value),onBlur:()=>Re("firstName"),errorText:O.firstName})}),x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Last Name",placeholder:"Enter Last Name",type:"text",required:!0,name:"lastName",value:k.lastName,onChange:Dt=>Ae("lastName",Dt.target.value),onBlur:()=>Re("lastName"),errorText:O.lastName})}),x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Contact Email",placeholder:"[email protected]",type:"email",required:!0,name:"email",value:k.email,errorText:O.email,disabled:!0})}),x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Phone Number",placeholder:"10 digits phone number",type:"number",required:!0,name:"phone",value:k.phone,onChange:Dt=>Ae("phone",Dt.target.value),onBlur:()=>Re("phone"),errorText:O.phone})}),x.jsx("div",{className:"col-span-12",children:x.jsx(dr,{label:"Password",placeholder:"Enter Password",type:"password",required:!0,name:"password",value:k.password,onChange:Dt=>Ae("password",Dt.target.value),onBlur:()=>Re("password"),errorText:O.password})}),x.jsxs("div",{className:"col-span-12",children:[x.jsx("div",{className:"mb-2",children:x.jsx(Sh,{labelText:"Please review your details carefully before submitting. Once submitted, the information cannot be modified.",checked:h,onChange:Dt=>p(Dt.target.checked)})}),x.jsx(fi,{btnText:"Continue to Verification",onClick:()=>Ye(),iconPosition:"right",disabled:!h,variant:h?"secondary":"disabled",children:x.jsx(ms,{size:24})})]})]})]}),t[80]=h,t[81]=k.address1,t[82]=k.address2,t[83]=k.city,t[84]=k.company,t[85]=k.email,t[86]=k.firstName,t[87]=k.gstNumber,t[88]=k.lastName,t[89]=k.password,t[90]=k.phone,t[91]=k.pinCode,t[92]=k.state,t[93]=k.title,t[94]=Ye,t[95]=G,t[96]=O,t[97]=Re,t[98]=Ht):Ht=t[98],Le=G===2&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"text-3xl my-2",children:"Verify Your Business Identity"}),x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Upload documents to verify your agency / business"}),x.jsx("div",{className:"my-4 w-full border border-(--secondary-color)"}),x.jsxs("div",{className:"flex gap-3 mb-4",children:[x.jsx("div",{children:x.jsx(XU,{size:24})}),x.jsx("div",{children:"Business/Agency Verification"})]}),at.map(Dt=>x.jsx("div",{className:"my-2",children:x.jsx(wme,{title:Dt.documentType.replace(/_/g," "),description:`Upload your ${Dt.documentType.replace(/_/g," ")}
44 document. Allowed: ${Dt.allowedFormats}, max 5MB`,documentId:Dt.documentId,userId:o,onUploaded:gt,onRemoved:Zt})},Dt.documentType)),x.jsx("div",{children:x.jsx(fi,{btnText:"Register",variant:"secondary",className:"mt-4",iconPosition:"right",disabled:!St,onClick:()=>Wt(),children:x.jsx(ms,{size:24})})})]}),t[18]=h,t[19]=k,t[20]=r,t[21]=Ye,t[22]=G,t[23]=g,t[24]=O,t[25]=o,t[26]=Re,t[27]=De,t[28]=Fe,t[29]=ge,t[30]=n,t[31]=a,t[32]=X,t[33]=se,t[34]=ee,t[35]=C,t[36]=u,t[37]=z,t[38]=Me,t[39]=lt,t[40]=Ht,t[41]=Le,t[42]=Nt,t[43]=Ct,t[44]=It,t[45]=nt,t[46]=ht}else Me=t[38],lt=t[39],Ht=t[40],Le=t[41],Nt=t[42],Ct=t[43],It=t[44],nt=t[45],ht=t[46];let ve;t[99]!==G||t[100]!==e?(ve=G===3&&x.jsxs("div",{className:"p-20 text-center",children:[x.jsx("div",{className:"flex items-center justify-center",children:x.jsx("div",{className:"bg-green-50 p-4 rounded-full",children:x.jsx(Aw,{size:30,weight:"fill",color:"green"})})}),x.jsx("div",{className:"text-2xl mt-4",children:"Application Submitted Successfully"}),x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm mt-2",children:"Thank you for submitting your documents."}),x.jsxs("div",{className:"text-center my-4 bg-[#F3F4F6] dark:bg-gray-800 p-8 px-20 rounded-2xl",children:[x.jsx("div",{className:"text-xl",children:"Under Review"}),x.jsxs("div",{className:"text-gray-500 dark:text-gray-400 text-sm",children:["Your documents are being reviewed by our team. ",x.jsx("br",{})," This usually takes 24-48 hours."]}),x.jsxs("div",{className:"flex gap-2 items-center my-3 mt-8",children:[x.jsx("div",{className:"bg-(--success) p-2 rounded-full",children:x.jsx(Aw,{size:14,weight:"fill",color:"white"})}),x.jsxs("div",{children:["Uploaded ",x.jsx("b",{children:"Business License / GST document"})]})]}),x.jsxs("div",{className:"flex gap-2 items-center my-3",children:[x.jsx("div",{className:"bg-(--success) p-2 rounded-full",children:x.jsx(Aw,{size:14,weight:"fill",color:"white"})}),x.jsxs("div",{children:["Uploaded ",x.jsx("b",{children:"Aadhaar Card"})]})]}),x.jsxs("div",{className:"flex gap-2 items-center my-3",children:[x.jsx("div",{className:"bg-(--success) p-2 rounded-full",children:x.jsx(Aw,{size:14,weight:"fill",color:"white"})}),x.jsxs("div",{children:["Uploaded ",x.jsx("b",{children:"Pan Card"})]})]}),x.jsxs("div",{className:"flex gap-2 items-center my-3",children:[x.jsx("div",{className:"bg-(--warning) p-2 rounded-full",children:x.jsx(ST,{size:14,weight:"bold",color:"white"})}),x.jsxs("div",{children:["Pending ",x.jsx("b",{children:"IVS Team"})," Review"]})]})]}),x.jsxs("div",{className:"text-left",children:[x.jsx("p",{children:"Next Step"}),x.jsxs("ul",{children:[x.jsx("ol",{children:"1) We will notify you via email when approved"}),x.jsx("ol",{children:"2) Need help? Contact Support at any time."})]})]}),x.jsx(fi,{btnText:"Back to Login",variant:"secondary",className:"mt-4",onClick:()=>e(Zn.LOGIN),iconPosition:"right",children:x.jsx(ms,{size:24})})]}),t[99]=G,t[100]=e,t[101]=ve):ve=t[101];let ce;t[102]!==Me||t[103]!==lt||t[104]!==Ht||t[105]!==Le||t[106]!==ve?(ce=x.jsxs("div",{className:Me,children:[lt,Ht,Le,ve]}),t[102]=Me,t[103]=lt,t[104]=Ht,t[105]=Le,t[106]=ve,t[107]=ce):ce=t[107];let je;t[108]!==Nt||t[109]!==ce?(je=x.jsx("div",{className:Nt,children:ce}),t[108]=Nt,t[109]=ce,t[110]=je):je=t[110];let dt;t[111]!==Ct||t[112]!==It||t[113]!==je?(dt=x.jsxs("div",{className:Ct,children:[It,je]}),t[111]=Ct,t[112]=It,t[113]=je,t[114]=dt):dt=t[114];let ft;return t[115]!==nt||t[116]!==ht||t[117]!==dt?(ft=x.jsxs(x.Fragment,{children:[nt,ht,dt]}),t[115]=nt,t[116]=ht,t[117]=dt,t[118]=ft):ft=t[118],ft}function jZe(t){return t.mandatory}function HZe(t,e){switch(t){case"company":return e?"":"Company Name is required";case"gstNumber":return e?Vhe(e)?"":"Invalid GST Number":"GST Number is required";case"state":return e?"":"State is Required";case"city":return e?"":"City is Required";case"address1":return e?"":"Address is Required";case"address2":return e?"":"Landmark is Required";case"pinCode":return e?"":"Pin Code is Required";case"title":return e?"":"Title is Required";case"firstName":return e?"":"First name is Required";case"lastName":return e?"":"Last name is Required";
44case"email":return e?I3(e)?"":"Invalid Email":"Email is Required";case"phone":return e?"":"Phone Number is Required";case"password":return e?"":"Password is Required";default:return""}}function GZe(){const t=Dn.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[{title:"Live Intelligence",description:"Real-time protocol updates from 150+ global embassies.",icon:L9e},{title:"Error-Shield",description:"Automated compliance checks to guarantee 1st-time approval.",icon:F9e},{title:"One-Click Quotes",description:"Instantly generate branded visa proposals for your clients.",icon:k9e}],t[0]=e):e=t[0];const n=e;let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("div",{className:"bg-[#f3f4f6] dark:bg-gray-900 py-12",children:x.jsx("div",{className:"max-w-7xl mx-auto",children:x.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 divide-y lg:divide-y-0 lg:divide-x divide-gray-300 dark:divide-gray-700",children:n.map(zZe)})})}),t[1]=r):r=t[1],r}function zZe(t,e){const n=t.icon;return x.jsxs("div",{className:`flex items-center gap-5 px-4 py-6 ${e===0?"pl-0":e===2?"pr-0":""}`,children:[x.jsx("div",{children:x.jsx(n,{size:50,weight:"regular",style:{color:"var(--secondary-color)"}})}),x.jsxs("div",{children:[x.jsx("h3",{className:"text-2xl font-semibold text-gray-800 dark:text-gray-100",children:t.title}),x.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400 text-xs leading-relaxed w-[280px]",children:t.description})]})]},e)}const $Ze="www.ivsource.com",Jo="https://www.ivsource.com/orch/api",qZe=async t=>{try{return await El(`${Jo}/visa/search`,void 0,t)}catch(e){return console.log(e),e}},Sme=async()=>{try{return await Rf(`${Jo}/visa/countries`,void 0)}catch(t){return console.log(t),t}},Tme=async t=>{try{return await El(`${Jo}/visa/document/fetch`,void 0,t)}catch(e){return console.log(e),e}},Eme=async t=>{try{return await El(`${Jo}/visa/details`,void 0,t)}catch(e){return console.log(e),e}},WZe=async t=>{try{return await Rf(`${Jo}/visa/pgorder/fetchpgs`,t)}catch(e){return console.log(e),e}},ZZe=async t=>{try{return await El(`${Jo}/applicant-search/by-passport`,void 0,t)}catch(e){return console.log(e),e}},YZe=async t=>{try{return await El(`${Jo}/visa/order/create`,void 0,t)}catch(e){return console.log(e),e}},XZe=async t=>{try{return await El(`${Jo}/visa/order/saveprogress`,void 0,t)}catch(e){return console.log(e),e}},QZe=async(t,e)=>{try{return await El(`${Jo}/visa/pgorder/book`,e,t)}catch(n){return console.log(n),n}},Mme=async(t,e)=>{try{return(await fetch(`${Jo}/visa/document/upload?documentType=${t}`,{method:"post",body:e,headers:new Headers({"X-Tenant-Host":$Ze,Authorization:`Bearer ${O2()}`})})).json()}catch(n){return console.log(n),n}},KZe=async t=>{try{return await Rf(`${Jo}/visa/transaction/fetchbydate`,t)}catch(e){return console.log(e),e}},JZe=async t=>{try{return await Rf(`${Jo}/visa/transaction/by-travel-date`,t)}catch(e){return console.log(e),e}},Xv=async t=>{try{return await Rf(`${Jo}/visa/transaction/${t}`,void 0)}catch(e){return console.log(e),e}},eYe=async t=>{try{return await El(`${Jo}/visa/order/repushdocs`,void 0,t)}catch(e){return console.log(e),e}},tYe=async(t,e)=>{try{return await El(`${Jo}/visa/cancel/${t}`,void 0,e)}catch(n){return console.log(n),n}},nYe=async t=>{try{return await El(`${Jo}/visa/order/fetchStatus`,void 0,t)}catch(e){return console.log(e),e}},rYe=async t=>{try{return await Rf(`${Jo}/visa/order/downloadEvisa/${t}`,void 0)}catch(e){return console.log(e),e}},iYe=async()=>{try{return await Rf(`${Jo}/visa/order/fetchsaveprogress`,void 0)}catch(t){return console.log(t),t}},aYe=async t=>{try{return await El(`${Jo}/visa/order/fetchprogress/${t}`,void 0,void 0)}catch(e){return console.log(e),e}},sYe=async t=>{try{return await El(`${Jo}/visa/order/deleteprogress/${t}`,void 0,void 0)}catch(e){return console.log(e),e}};function oYe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}
44finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function lYe(t,e,n){return e=AYe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lne(t,e){return fYe(t)||oYe(t,e)||Cme(t,e)||pYe()}function cYe(t){return uYe(t)||dYe(t)||Cme(t)||hYe()}function uYe(t){if(Array.isArray(t))return nj(t)}function fYe(t){if(Array.isArray(t))return t}function dYe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Cme(t,e){if(t){if(typeof t=="string")return nj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nj(t,e)}}function nj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hYe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mYe(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function AYe(t){var e=mYe(t,"string");return typeof e=="symbol"?e:String(e)}var gYe=function(e,n){var r=new Set(n);return Object.assign.apply(Object,[{}].concat(cYe(Object.entries(e).filter(function(i){var a=Lne(i,1),s=a[0];return!r.has(s)}).map(function(i){var a=Lne(i,2),s=a[0],o=a[1];return lYe({},s,o)}))))};function rj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function xYe(t){if(Array.isArray(t))return t}function vYe(t){if(Array.isArray(t))return rj(t)}function yYe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _Ye(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function bYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wYe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SYe(t,e){return xYe(t)||_Ye(t,e)||Nme(t,e)||bYe()}function One(t){return vYe(t)||yYe(t)||Nme(t)||wYe()}function Nme(t,e){if(t){if(typeof t=="string")return rj(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rj(t,e):void 0}}function TYe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.wrapperElementType,r=n===void 0?"div":n,i=e.nodeMapper,a=i===void 0?function(u){return u}:i,s=e.methodNames,o=s===void 0?[]:s,l=e.initPropNames,c=l===void 0?[]:l;return b.forwardRef(function(u,f){var h=b.useRef(),p=b.useMemo(function(){var w=Object.fromEntries(c.filter(function(T){return u.hasOwnProperty(T)}).map(function(T){return[T,u[T]]}));return t(w)},[]);Fne(function(){p(a(h.current))},b.useLayoutEffect),Fne(function(){return p._destructor instanceof Function?p._destructor:void 0});var A=b.useCallback(function(w){for(var T=arguments.length,C=new Array(T>1?T-1:0),M=1;M<T;M++)C[M-1]=arguments[M];return p[w]instanceof Function?p[w].apply(p,C):void 0},[p]),g=b.useRef({});return Object.keys(gYe(u,[].concat(One(o),One(c)))).filter(function(w){return g.current[w]!==u[w]}
48).forEach(function(w){return A(w,u[w])}),g.current=u,b.useImperativeHandle(f,function(){return Object.fromEntries(o.map(function(w){return[w,function(){for(var T=arguments.length,C=new Array(T),M=0;M<T;M++)C[M]=arguments[M];return A.apply(void 0,[w].concat(C))}]}))},[A]),wt.createElement(r,{ref:h})})}function Fne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b.useEffect,n=b.useRef(),r=b.useRef(!1),i=b.useRef(!1),a=b.useState(0),s=SYe(a,2);s[0];var o=s[1];r.current&&(i.current=!0),e(function(){return r.current||(n.current=t(),r.current=!0),o(function(l){return l+1}),function(){i.current&&n.current&&n.current()}},[])}const Iy="184",xd={ROTATE:0,DOLLY:1,PAN:2},G8={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Rme=0,ij=1,Dme=2,EYe=0,h3=1,Pme=2,Z1=3,Uu=0,ca=1,Zs=2,_l=0,Hl=1,og=2,lg=3,cg=4,Qv=5,eq=6,oc=100,tq=101,nq=102,kme=103,Lme=104,Bm=200,rq=201,iq=202,aq=203,W3=204,Z3=205,sq=206,oq=207,lq=208,cq=209,uq=210,MYe=211,CYe=212,NYe=213,RYe=214,x5=0,v5=1,y5=2,$g=3,_5=4,b5=5,w5=6,S5=7,jT=0,Ome=1,Fme=2,cc=0,fq=1,dq=2,hq=3,pq=4,Ime=5,mq=6,Aq=7,gq=300,Zh=301,yp=302,p3=303,m3=304,hy=306,py=1e3,x0=1001,my=1002,sa=1003,xq=1004,Km=1005,Ba=1006,A3=1007,v0=1008,DYe=1008,rs=1009,Sg=1010,Tg=1011,dd=1012,Al=1013,_a=1014,os=1015,is=1016,HT=1017,GT=1018,N0=1020,zT=35902,$T=35899,zP=1021,u6=1022,fo=1023,Gl=1026,Wc=1027,f6=1028,By=1029,uc=1030,Uy=1031,Bme=1032,d6=1033,Eg=33776,Mg=33777,Cg=33778,Ng=33779,T5=35840,E5=35841,M5=35842,C5=35843,Y3=36196,X3=37492,Q3=37496,K3=37488,J3=37489,qg=37490,e_=37491,t_=37808,n_=37809,r_=37810,i_=37811,a_=37812,s_=37813,o_=37814,l_=37815,c_=37816,u_=37817,f_=37818,d_=37819,h_=37820,p_=37821,m_=36492,aj=36494,sj=36495,A_=36283,g_=36284,Wg=36285,x_=36286,PYe=0,kYe=1,Ine=2,LYe=3200,Lh=0,Ume=1,g0="",rc="srgb",v_="srgb-linear",y_="linear",Bn="srgb",rI="",Vme="rg",OYe="ga",FYe=0,av=7680,IYe=7681,BYe=7682,UYe=7683,VYe=34055,jYe=34056,HYe=5386,GYe=512,zYe=513,$Ye=514,qYe=515,WYe=516,ZYe=517,YYe=518,oj=519,vq=512,$P=513,yq=514,sx=515,N5=516,_q=517,S2=518,bq=519,__=35044,R5=35048,Bne="300 es",Iu=2e3,_d=2001,Y1={COMPUTE:"compute",RENDER:"render"},Vy={TEXTURE_COMPARE:"depthTextureCompare"};function XYe(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function fR(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function D5(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function jme(){const t=D5("canvas");return t.style.display="block",t}const Une={};function P5(...t){const e="THREE."+t.shift();console.log(e,...t)}function Hme(t){const e=t[0];if(typeof e=="string"&&e.startsWith("TSL:")){const n=t[1];n&&n.isStackTrace?t[0]+=" "+n.getLocation():t[1]='Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.'}return t}function Kt(...t){t=Hme(t);const e="THREE."+t.shift();{const n=t[0];n&&n.isStackTrace?console.warn(n.getError(e)):console.warn(e,...t)}}function nn(...t){t=Hme(t);const e="THREE."+t.shift();{const n=t[0];n&&n.isStackTrace?console.error(n.getError(e)):console.error(e,...t)}}function Fa(...t){const e=t.join(" ");e in Une||(Une[e]=!0,Kt(...t))}function Gme(){return typeof self<"u"&&typeof self.scheduler<"u"&&typeof self.scheduler.yield<"u"?self.scheduler.yield():new Promise(t=>{requestAnimationFrame(t)})}function QYe(t,e,n){return new Promise(function(r,i){function a(){switch(t.clientWaitSync(e,t.SYNC_FLUSH_COMMANDS_BIT,0)){case t.WAIT_FAILED:i();break;case t.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}const wq={[x5]:v5,[y5]:w5,[_5]:S5,[$g]:b5,[v5]:x5,[w5]:y5,[S5]:_5,[b5]:$g};class Fd{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){const r=this._listeners;return r===void 0?!1:r[e]!==void 0&&r[e].indexOf(n)!==-1}removeEventListener(e,n){const r=this._listeners;if(r===void 0)return;const i=r[e];if(i!==void 0){const a=i.indexOf(n);a!==-1&&i.splice(a,1)}}dispatchEvent(e){const n=this._listeners;if(n===void 0)return;const r=n[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let a=0,s=i.length;a<s;a++)i[a].call(this,e);e.target=null}}}const Cc=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","5
485","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let Vne=1234567;const uS=Math.PI/180,Ay=180/Math.PI;function sp(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(Cc[t&255]+Cc[t>>8&255]+Cc[t>>16&255]+Cc[t>>24&255]+"-"+Cc[e&255]+Cc[e>>8&255]+"-"+Cc[e>>16&15|64]+Cc[e>>24&255]+"-"+Cc[n&63|128]+Cc[n>>8&255]+"-"+Cc[n>>16&255]+Cc[n>>24&255]+Cc[r&255]+Cc[r>>8&255]+Cc[r>>16&255]+Cc[r>>24&255]).toLowerCase()}function Hr(t,e,n){return Math.max(e,Math.min(n,t))}function Sq(t,e){return(t%e+e)%e}function KYe(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)}function JYe(t,e,n){return t!==e?(n-t)/(e-t):0}function fS(t,e,n){return(1-n)*t+n*e}function eXe(t,e,n,r){return fS(t,e,1-Math.exp(-n*r))}function tXe(t,e=1){return e-Math.abs(Sq(t,e*2)-e)}function nXe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function rXe(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function iXe(t,e){return t+Math.floor(Math.random()*(e-t+1))}function aXe(t,e){return t+Math.random()*(e-t)}function sXe(t){return t*(.5-Math.random())}function oXe(t){t!==void 0&&(Vne=t);let e=Vne+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function lXe(t){return t*uS}function cXe(t){return t*Ay}function uXe(t){return(t&t-1)===0&&t!==0}function fXe(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function dXe(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function hXe(t,e,n,r,i){const a=Math.cos,s=Math.sin,o=a(n/2),l=s(n/2),c=a((e+r)/2),u=s((e+r)/2),f=a((e-r)/2),h=s((e-r)/2),p=a((r-e)/2),A=s((r-e)/2);switch(i){case"XYX":t.set(o*u,l*f,l*h,o*c);break;case"YZY":t.set(l*h,o*u,l*f,o*c);break;case"ZXZ":t.set(l*f,l*h,o*u,o*c);break;case"XZX":t.set(o*u,l*A,l*p,o*c);break;case"YXY":t.set(l*p,o*u,l*A,o*c);break;case"ZYZ":t.set(l*A,l*p,o*u,o*c);break;default:Kt("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Du(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 ii(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const b_={DEG2RAD:uS,RAD2DEG:Ay,generateUUID:sp,clamp:Hr,euclideanModulo:Sq,mapLinear:KYe,inverseLerp:JYe,lerp:fS,damp:eXe,pingpong:tXe,smoothstep:nXe,smootherstep:rXe,randInt:iXe,randFloat:aXe,randFloatSpread:sXe,seededRandom:oXe,degToRad:lXe,radToDeg:cXe,isPowerOfTwo:uXe,ceilPowerOfTwo:fXe,floorPowerOfTwo:dXe,setQuaternionFromProperEuler:hXe,normalize:ii,denormalize:Du},IY=class IY{constructor(e=0,n=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}
vendor: 9,573 bytes, line 48
48sub(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=Hr(this.x,e.x,n.x),this.y=Hr(this.y,e.y,n.y),this}clampScalar(e,n){return this.x=Hr(this.x,e,n),this.y=Hr(this.y,e,n),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Hr(r,e,n))}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(Hr(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),a=this.x-e.x,s=this.y-e.y;return this.x=a*r-s*i+e.x,this.y=a*i+s*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}};IY.prototype.isVector2=!0;let tn=IY;class bd{constructor(e=0,n=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=r,this._w=i}static slerpFlat(e,n,r,i,a,s,o){let l=r[i+0],c=r[i+1],u=r[i+2],f=r[i+3],h=a[s+0],p=a[s+1],A=a[s+2],g=a[s+3];if(f!==g||l!==h||c!==p||u!==A){let w=l*h+c*p+u*A+f*g;w<0&&(h=-h,p=-p,A=-A,g=-g,w=-w);let T=1-o;if(w<.9995){const C=Math.acos(w),M=Math.sin(C);T=Math.sin(T*C)/M,o=Math.sin(o*C)/M,l=l*T+h*o,c=c*T+p*o,u=u*T+A*o,f=f*T+g*o}else{l=l*T+h*o,c=c*T+p*o,u=u*T+A*o,f=f*T+g*o;const C=1/Math.sqrt(l*l+c*c+u*u+f*f);l*=C,c*=C,u*=C,f*=C}}e[n]=l,e[n+1]=c,e[n+2]=u,e[n+3]=f}static multiplyQuaternionsFlat(e,n,r,i,a,s){const o=r[i],l=r[i+1],c=r[i+2],u=r[i+3],f=a[s],h=a[s+1],p=a[s+2],A=a[s+3];return e[n]=o*A+u*f+l*p-c*h,e[n+1]=l*A+u*h+c*f-o*p,e[n+2]=c*A+u*p+o*h-l*f,e[n+3]=u*A-o*f-l*h-c*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,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,a=e._z,s=e._order,o=Math.cos,l=Math.sin,c=o(r/2),u=o(i/2),f=o(a/2),h=l(r/2),p=l(i/2),A=l(a/2);switch(s){case"XYZ":this._x=h*u*f+c*p*A,this._y=c*p*f-h*u*A,this._z=c*u*A+h*p*f,this._w=c*u*f-h*p*A;break;case"YXZ":this._x=h*u*f+c*p*A,this._y=c*p*f-h*u*A,this._z=c*u*A-h*p*f,this._w=c*u*f+h*p*A;break;case"ZXY":this._x=h*u*f-c*p*A,this._y=c*p*f+h*u*A,this._z=c*u*A+h*p*f,this._w=c*u*f-h*p*A;break;case"ZYX":this._x=h*u*f-c*p*A,this._y=c*p*f+h*u*A,this._z=c*u*A-h*p*f,this._w=c*u*f+h*p*A;break;case"YZX":this._x=h*u*f+c*p*A,this._y=c*p*f+h*u*A,this._z=c*u*A-h*p*f,this._w=c*u*f-h*p*A;break;case"XZY":this._x=h*u*f-c*p*A,this._y=c*p*f-h*u*A,this._z=c*u*A+h*p*f,this._w=c*u*f+h*p*A;break;default:Kt("Quaternion: .setFromEuler() encountered an unknown order: "+s)}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],a=n[8],s=n[1],o=n[5],l=n[9],c=n[2],u=n[6],f=n[10],h=r+o+f;if(h>0){const p=.5/Math.sqrt(h+1);this._w=.25/p,this._x=(u-l)*p,this._y=(a-c)*p,this._z=(s-i)*p}else if(r>o&&r>f){const p=2*Math.sqrt(1+r-o-f);this._w=(u-l)/p,this._x=.25*p,this._y=(i+s)/p,this._z=(a+c)/p}else if(o>f){const p=2*Math.sqrt(1+o-r-f);this._w=(a-c)/p,this._x=(i+s)/p,this._y=.25*p,this._z=(l+u)/p}else{const p=2*Math.sqrt(1+f-r-o);this._w=(s-i)/p,this._x=(a+c)/p,this._y=(l+u)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let r=e.dot(n)+1;return r<1e-8?(r=0,Math.abs(e.x)>Math.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(Hr(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,a=e._z,s=e._w,o=n._x,l=n._y,c=n._z,u=n._w;return this._x=r*u+s*o+i*c-a*l,this._y=i*u+s*l+a*o-r*c,this._z=a*u+s*c+r*l-i*o,this._w=s*u-r*o-i*l-a*c,this._onChangeCallback(),this}slerp(e,n){let r=e._x,i=e._y,a=e._z,s=e._w,o=this.dot(e);o<0&&(r=-r,i=-i,a=-a,s=-s,o=-o);let l=1-n;if(o<.9995){const c=Math.acos(o),u=Math.sin(c);l=Math.sin(l*c)/u,n=Math.sin(n*c)/u,this._x=this._x*l+r*n,this._y=this._y*l+i*n,this._z=this._z*l+a*n,this._w=this._w*l+s*n,this._onChangeCallback()}else this._x=this._x*l+r*n,this._y=this._y*l+i*n,this._z=this._z*l+a*n,this._w=this._w*l+s*n,this.normalize();return 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),a=Math.sqrt(r);return this.set(i*Math.sin(e),i*Math.cos(e),a*Math.sin(n),a*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}}const BY=class BY{constructor(e=0,n=0,r=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(jne.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(jne.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,r=this.y,i=this.z,a=e.elements;
vendor: 2,653 bytes, line 48
48return this.x=a[0]*n+a[3]*r+a[6]*i,this.y=a[1]*n+a[4]*r+a[7]*i,this.z=a[2]*n+a[5]*r+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,r=this.y,i=this.z,a=e.elements,s=1/(a[3]*n+a[7]*r+a[11]*i+a[15]);return this.x=(a[0]*n+a[4]*r+a[8]*i+a[12])*s,this.y=(a[1]*n+a[5]*r+a[9]*i+a[13])*s,this.z=(a[2]*n+a[6]*r+a[10]*i+a[14])*s,this}applyQuaternion(e){const n=this.x,r=this.y,i=this.z,a=e.x,s=e.y,o=e.z,l=e.w,c=2*(s*i-o*r),u=2*(o*n-a*i),f=2*(a*r-s*n);return this.x=n+l*c+s*f-o*u,this.y=r+l*u+o*c-a*f,this.z=i+l*f+a*u-s*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,a=e.elements;return this.x=a[0]*n+a[4]*r+a[8]*i,this.y=a[1]*n+a[5]*r+a[9]*i,this.z=a[2]*n+a[6]*r+a[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=Hr(this.x,e.x,n.x),this.y=Hr(this.y,e.y,n.y),this.z=Hr(this.z,e.z,n.z),this}clampScalar(e,n){return this.x=Hr(this.x,e,n),this.y=Hr(this.y,e,n),this.z=Hr(this.z,e,n),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Hr(r,e,n))}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,a=e.z,s=n.x,o=n.y,l=n.z;
vendor: 69,295 bytes, line 48
48return this.x=i*l-a*o,this.y=a*s-r*l,this.z=r*o-i*s,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 iI.copy(this).projectOnVector(e),this.sub(iI)}reflect(e){return this.sub(iI.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(Hr(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}};BY.prototype.isVector3=!0;let Pe=BY;const iI=new Pe,jne=new bd,UY=class UY{constructor(e,n,r,i,a,s,o,l,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,r,i,a,s,o,l,c)}set(e,n,r,i,a,s,o,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=o,u[3]=n,u[4]=a,u[5]=l,u[6]=r,u[7]=s,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,a=this.elements,s=r[0],o=r[3],l=r[6],c=r[1],u=r[4],f=r[7],h=r[2],p=r[5],A=r[8],g=i[0],w=i[3],T=i[6],C=i[1],M=i[4],D=i[7],k=i[2],I=i[5],L=i[8];return a[0]=s*g+o*C+l*k,a[3]=s*w+o*M+l*I,a[6]=s*T+o*D+l*L,a[1]=c*g+u*C+f*k,a[4]=c*w+u*M+f*I,a[7]=c*T+u*D+f*L,a[2]=h*g+p*C+A*k,a[5]=h*w+p*M+A*I,a[8]=h*T+p*D+A*L,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],a=e[3],s=e[4],o=e[5],l=e[6],c=e[7],u=e[8];return n*s*u-n*o*c-r*a*u+r*o*l+i*a*c-i*s*l}invert(){const e=this.elements,n=e[0],r=e[1],i=e[2],a=e[3],s=e[4],o=e[5],l=e[6],c=e[7],u=e[8],f=u*s-o*c,h=o*l-u*a,p=c*a-s*l,A=n*f+r*h+i*p;if(A===0)return this.set(0,0,0,0,0,0,0,0,0);const g=1/A;return e[0]=f*g,e[1]=(i*c-u*r)*g,e[2]=(o*r-i*s)*g,e[3]=h*g,e[4]=(u*n-i*l)*g,e[5]=(i*a-o*n)*g,e[6]=p*g,e[7]=(r*l-c*n)*g,e[8]=(s*n-r*a)*g,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,a,s,o){const l=Math.cos(a),c=Math.sin(a);return this.set(r*l,r*c,-r*(l*s+c*o)+s+e,-i*c,i*l,-i*(-c*s+l*o)+o+n,0,0,1),this}scale(e,n){return this.premultiply(aI.makeScale(e,n)),this}rotate(e){return this.premultiply(aI.makeRotation(-e)),this}translate(e,n){return this.premultiply(aI.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<9;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}clone(){return new this.constructor().fromArray(this.elements)}};UY.prototype.isMatrix3=!0;let Vr=UY;const aI=new Vr,Hne=new Vr().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Gne=new Vr().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function pXe(){const t={enabled:!0,workingColorSpace:v_,spaces:{},convert:function(i,a,s){return this.enabled===!1||a===s||!a||!s||(this.spaces[a].transfer===Bn&&(i.r=c2(i.r),i.g=c2(i.g),i.b=c2(i.b)),this.spaces[a].primaries!==this.spaces[s].primaries&&(i.applyMatrix3(this.spaces[a].toXYZ),i.applyMatrix3(this.spaces[s].fromXYZ)),this.spaces[s].transfer===Bn&&(i.r=g3(i.r),i.g=g3(i.g),i.b=g3(i.b))),i},workingToColorSpace:function(i,a){return this.convert(i,this.workingColorSpace,a)},colorSpaceToWorking:function(i,a){return this.convert(i,a,this.workingColorSpace)},getPrimaries:function(i){return this.spaces[i].primaries},getTransfer:function(i){return i===g0?y_:this.spaces[i].transfer},getToneMappingMode:function(i){return this.spaces[i].outputColorSpaceConfig.toneMappingMode||"standard"},getLuminanceCoefficients:function(i,a=this.workingColorSpace){return i.fromArray(this.spaces[a].luminanceCoefficients)},define:function(i){Object.assign(this.spaces,i)},_getMatrix:function(i,a,s){return i.copy(this.spaces[a].toXYZ).multiply(this.spaces[s].fromXYZ)},_getDrawingBufferColorSpace:function(i){return this.spaces[i].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(i=this.workingColorSpace){return this.spaces[i].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(i,a){return Fa("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),t.workingToColorSpace(i,a)},toWorkingColorSpace:function(i,a){return Fa("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),t.colorSpaceToWorking(i,a)}},e=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return t.define({[v_]:{primaries:e,whitePoint:r,transfer:y_,toXYZ:Hne,fromXYZ:Gne,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:rc},outputColorSpaceConfig:{drawingBufferColorSpace:rc}},[rc]:{primaries:e,whitePoint:r,transfer:Bn,toXYZ:Hne,fromXYZ:Gne,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:rc}}}),t}const Ar=pXe();function c2(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function g3(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let j4;class mXe{static getDataURL(e,n="image/png"){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let r;if(e instanceof HTMLCanvasElement)r=e;else{j4===void 0&&(j4=D5("canvas")),j4.width=e.width,j4.height=e.height;const i=j4.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),r=j4}return r.toDataURL(n)}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=D5("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),a=i.data;for(let s=0;s<a.length;s++)a[s]=c2(a[s]/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(c2(n[r]/255)*255):n[r]=c2(n[r]);return{data:n,width:e.width,height:e.height}}else return Kt("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let AXe=0;class Tq{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:AXe++}),this.uuid=sp(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){const n=this.data;return typeof HTMLVideoElement<"u"&&n instanceof HTMLVideoElement?e.set(n.videoWidth,n.videoHeight,0):typeof VideoFrame<"u"&&n instanceof VideoFrame?e.set(n.displayWidth,n.displayHeight,0):n!==null?e.set(n.width,n.height,n.depth||0):e.set(0,0,0),e}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 a;if(Array.isArray(i)){a=[];for(let s=0,o=i.length;s<o;s++)i[s].isDataTexture?a.push(sI(i[s].image)):a.push(sI(i[s]))}else a=sI(i);r.url=a}return n||(e.images[this.uuid]=r),r}}function sI(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?mXe.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(Kt("Texture: Unable to serialize Texture."),{})}let gXe=0;const oI=new Pe;class Yo extends Fd{constructor(e=Yo.DEFAULT_IMAGE,n=Yo.DEFAULT_MAPPING,r=x0,i=x0,a=Ba,s=v0,o=fo,l=rs,c=Yo.DEFAULT_ANISOTROPY,u=g0){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:gXe++}),this.uuid=sp(),this.name="",this.source=new Tq(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=s,this.anisotropy=c,this.format=o,this.internalFormat=null,this.type=l,this.offset=new tn(0,0),this.repeat=new tn(1,1),this.center=new tn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Vr,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(e&&e.depth&&e.depth>1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(oI).x}get height(){return this.source.getSize(oI).y}get depth(){return this.source.getSize(oI).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(const n in e){const r=e[n];if(r===void 0){Kt(`Texture.setValues(): parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){Kt(`Texture.setValues(): property '${n}' does not exist.`);continue}i&&r&&i.isVector2&&r.isVector2||i&&r&&i.isVector3&&r.isVector3||i&&r&&i.isMatrix3&&r.isMatrix3?i.copy(r):this[n]=r}}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const r={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(r.userData=this.userData),n||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==gq)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case py:e.x=e.x-Math.floor(e.x);break;case x0:e.x=e.x<0?0:1;break;case my:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case py:e.y=e.y-Math.floor(e.y);break;case x0:e.y=e.y<0?0:1;break;case my: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++}}Yo.DEFAULT_IMAGE=null;Yo.DEFAULT_MAPPING=gq;Yo.DEFAULT_ANISOTROPY=1;const VY=class VY{constructor(e=0,n=0,r=0,i=1){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,a=this.w,s=e.elements;return this.x=s[0]*n+s[4]*r+s[8]*i+s[12]*a,this.y=s[1]*n+s[5]*r+s[9]*i+s[13]*a,this.z=s[2]*n+s[6]*r+s[10]*i+s[14]*a,this.w=s[3]*n+s[7]*r+s[11]*i+s[15]*a,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,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,a;const l=e.elements,c=l[0],u=l[4],f=l[8],h=l[1],p=l[5],A=l[9],g=l[2],w=l[6],T=l[10];if(Math.abs(u-h)<.01&&Math.abs(f-g)<.01&&Math.abs(A-w)<.01){if(Math.abs(u+h)<.1&&Math.abs(f+g)<.1&&Math.abs(A+w)<.1&&Math.abs(c+p+T-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const M=(c+1)/2,D=(p+1)/2,k=(T+1)/2,I=(u+h)/4,L=(f+g)/4,O=(A+w)/4;return M>D&&M>k?M<.01?(r=0,i=.707106781,a=.707106781):(r=Math.sqrt(M),i=I/r,a=L/r):D>k?D<.01?(r=.707106781,i=0,a=.707106781):(i=Math.sqrt(D),r=I/i,a=O/i):k<.01?(r=.707106781,i=.707106781,a=0):(a=Math.sqrt(k),r=L/a,i=O/a),this.set(r,i,a,n),this}let C=Math.sqrt((w-A)*(w-A)+(f-g)*(f-g)+(h-u)*(h-u));return Math.abs(C)<.001&&(C=1),this.x=(w-A)/C,this.y=(f-g)/C,this.z=(h-u)/C,this.w=Math.acos((c+p+T-1)/2),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this.w=n[15],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=Hr(this.x,e.x,n.x),this.y=Hr(this.y,e.y,n.y),this.z=Hr(this.z,e.z,n.z),this.w=Hr(this.w,e.w,n.w),this}clampScalar(e,n){return this.x=Hr(this.x,e,n),this.y=Hr(this.y,e,n),this.z=Hr(this.z,e,n),this.w=Hr(this.w,e,n),this}clampLength(e,n){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Hr(r,e,n))}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}};VY.prototype.isVector4=!0;let kr=VY;class Op extends Fd{constructor(e=1,n=1,r={}){super(),r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ba,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},r),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=r.depth,this.scissor=new kr(0,0,e,n),this.scissorTest=!1,this.viewport=new kr(0,0,e,n),this.textures=[];const i={width:e,height:n,depth:r.depth},a=new Yo(i),s=r.count;for(let o=0;o<s;o++)this.textures[o]=a.clone(),this.textures[o].isRenderTargetTexture=!0,this.textures[o].renderTarget=this;this._setTextureOptions(r),this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.resolveDepthBuffer=r.resolveDepthBuffer,this.resolveStencilBuffer=r.resolveStencilBuffer,this._depthTexture=null,this.depthTexture=r.depthTexture,this.samples=r.samples,this.multiview=r.multiview}_setTextureOptions(e={}){const n={minFilter:Ba,generateMipmaps:!1,flipY:!1,internalFormat:null};e.mapping!==void 0&&(n.mapping=e.mapping),e.wrapS!==void 0&&(n.wrapS=e.wrapS),e.wrapT!==void 0&&(n.wrapT=e.wrapT),e.wrapR!==void 0&&(n.wrapR=e.wrapR),e.magFilter!==void 0&&(n.magFilter=e.magFilter),e.minFilter!==void 0&&(n.minFilter=e.minFilter),e.format!==void 0&&(n.format=e.format),e.type!==void 0&&(n.type=e.type),e.anisotropy!==void 0&&(n.anisotropy=e.anisotropy),e.colorSpace!==void 0&&(n.colorSpace=e.colorSpace),e.flipY!==void 0&&(n.flipY=e.flipY),e.generateMipmaps!==void 0&&(n.generateMipmaps=e.generateMipmaps),e.internalFormat!==void 0&&(n.internalFormat=e.internalFormat);for(let r=0;r<this.textures.length;r++)this.textures[r].setValues(n)}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}set depthTexture(e){this._depthTexture!==null&&(this._depthTexture.renderTarget=null),e!==null&&(e.renderTarget=this),this._depthTexture=e}get depthTexture(){return this._depthTexture}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,a=this.textures.length;i<a;i++)this.textures[i].image.width=e,this.textures[i].image.height=n,this.textures[i].image.depth=r,this.textures[i].isData3DTexture!==!0&&(this.textures[i].isArrayTexture=this.textures[i].image.depth>1);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 n=0,r=e.textures.length;n<r;n++){this.textures[n]=e.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0,this.textures[n].renderTarget=this;const i=Object.assign({},e.textures[n].image);this.textures[n].source=new Tq(i)}return this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this.multiview=e.multiview,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Oh extends Op{constructor(e=1,n=1,r={}){super(e,n,r),this.isWebGLRenderTarget=!0}}class Eq extends Yo{constructor(e=null,n=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=sa,this.minFilter=sa,this.wrapR=x0,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class xXe extends Yo{constructor(e=null,n=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:r,depth:i},this.magFilter=sa,this.minFilter=sa,this.wrapR=x0,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const HD=class HD{constructor(e,n,r,i,a,s,o,l,c,u,f,h,p,A,g,w){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,a,s,o,l,c,u,f,h,p,A,g,w)}set(e,n,r,i,a,s,o,l,c,u,f,h,p,A,g,w){const T=this.elements;return T[0]=e,T[4]=n,T[8]=r,T[12]=i,T[1]=a,T[5]=s,T[9]=o,T[13]=l,T[2]=c,T[6]=u,T[10]=f,T[14]=h,T[3]=p,T[7]=A,T[11]=g,T[15]=w,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 HD().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 this.determinant()===0?(e.set(1,0,0),n.set(0,1,0),r.set(0,0,1),this):(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){if(e.determinant()===0)return this.identity();const n=this.elements,r=e.elements,i=1/H4.setFromMatrixColumn(e,0).length(),a=1/H4.setFromMatrixColumn(e,1).length(),s=1/H4.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]*a,n[5]=r[5]*a,n[6]=r[6]*a,n[7]=0,n[8]=r[8]*s,n[9]=r[9]*s,n[10]=r[10]*s,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,a=e.z,s=Math.cos(r),o=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=Math.cos(a),f=Math.sin(a);if(e.order==="XYZ"){const h=s*u,p=s*f,A=o*u,g=o*f;n[0]=l*u,n[4]=-l*f,n[8]=c,n[1]=p+A*c,n[5]=h-g*c,n[9]=-o*l,n[2]=g-h*c,n[6]=A+p*c,n[10]=s*l}else if(e.order==="YXZ"){const h=l*u,p=l*f,A=c*u,g=c*f;n[0]=h+g*o,n[4]=A*o-p,n[8]=s*c,n[1]=s*f,n[5]=s*u,n[9]=-o,n[2]=p*o-A,n[6]=g+h*o,n[10]=s*l}else if(e.order==="ZXY"){const h=l*u,p=l*f,A=c*u,g=c*f;n[0]=h-g*o,n[4]=-s*f,n[8]=A+p*o,n[1]=p+A*o,n[5]=s*u,n[9]=g-h*o,n[2]=-s*c,n[6]=o,n[10]=s*l}else if(e.order==="ZYX"){const h=s*u,p=s*f,A=o*u,g=o*f;n[0]=l*u,n[4]=A*c-p,n[8]=h*c+g,n[1]=l*f,n[5]=g*c+h,n[9]=p*c-A,n[2]=-c,n[6]=o*l,n[10]=s*l}else if(e.order==="YZX"){const h=s*l,p=s*c,A=o*l,g=o*c;n[0]=l*u,n[4]=g-h*f,n[8]=A*f+p,n[1]=f,n[5]=s*u,n[9]=-o*u,n[2]=-c*u,n[6]=p*f+A,n[10]=h-g*f}else if(e.order==="XZY"){const h=s*l,p=s*c,A=o*l,g=o*c;n[0]=l*u,n[4]=-f,n[8]=c*u,n[1]=h*f+g,n[5]=s*u,n[9]=p*f-A,n[2]=A*f-p,n[6]=o*u,n[10]=g*f+h}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(vXe,e,yXe)}lookAt(e,n,r){const i=this.elements;return W0.subVectors(e,n),W0.lengthSq()===0&&(W0.z=1),W0.normalize(),AA.crossVectors(r,W0),AA.lengthSq()===0&&(Math.abs(r.z)===1?W0.x+=1e-4:W0.z+=1e-4,W0.normalize(),AA.crossVectors(r,W0)),AA.normalize(),o7.crossVectors(W0,AA),i[0]=AA.x,i[4]=o7.x,i[8]=W0.x,i[1]=AA.y,i[5]=o7.y,i[9]=W0.y,i[2]=AA.z,i[6]=o7.z,i[10]=W0.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,a=this.elements,s=r[0],o=r[4],l=r[8],c=r[12],u=r[1],f=r[5],h=r[9],p=r[13],A=r[2],g=r[6],w=r[10],T=r[14],C=r[3],M=r[7],D=r[11],k=r[15],I=i[0],L=i[4],O=i[8],B=i[12],G=i[1],j=i[5],z=i[9],Q=i[13],ee=i[2],Z=i[6],X=i[10],K=i[14],se=i[3],ae=i[7],J=i[11],oe=i[15];return a[0]=s*I+o*G+l*ee+c*se,a[4]=s*L+o*j+l*Z+c*ae,a[8]=s*O+o*z+l*X+c*J,a[12]=s*B+o*Q+l*K+c*oe,a[1]=u*I+f*G+h*ee+p*se,a[5]=u*L+f*j+h*Z+p*ae,a[9]=u*O+f*z+h*X+p*J,a[13]=u*B+f*Q+h*K+p*oe,a[2]=A*I+g*G+w*ee+T*se,a[6]=A*L+g*j+w*Z+T*ae,a[10]=A*O+g*z+w*X+T*J,a[14]=A*B+g*Q+w*K+T*oe,a[3]=C*I+M*G+D*ee+k*se,a[7]=C*L+M*j+D*Z+k*ae,a[11]=C*O+M*z+D*X+k*J,a[15]=C*B+M*Q+D*K+k*oe,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],a=e[12],s=e[1],o=e[5],l=e[9],c=e[13],u=e[2],f=e[6],h=e[10],p=e[14],A=e[3],g=e[7],w=e[11],T=e[15],C=l*p-c*h,M=o*p-c*f,D=o*h-l*f,k=s*p-c*u,I=s*h-l*u,L=s*f-o*u;return n*(g*C-w*M+T*D)-r*(A*C-w*k+T*I)+i*(A*M-g*k+T*L)-a*(A*D-g*I+w*L)}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],a=e[3],s=e[4],o=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],A=e[12],g=e[13],w=e[14],T=e[15],C=n*o-r*s,M=n*l-i*s,D=n*c-a*s,k=r*l-i*o,I=r*c-a*o,L=i*c-a*l,O=u*g-f*A,B=u*w-h*A,G=u*T-p*A,j=f*w-h*g,z=f*T-p*g,Q=h*T-p*w,ee=C*Q-M*z+D*j+k*G-I*B+L*O;if(ee===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const Z=1/ee;return e[0]=(o*Q-l*z+c*j)*Z,e[1]=(i*z-r*Q-a*j)*Z,e[2]=(g*L-w*I+T*k)*Z,e[3]=(h*I-f*L-p*k)*Z,e[4]=(l*G-s*Q-c*B)*Z,e[5]=(n*Q-i*G+a*B)*Z,e[6]=(w*D-A*L-T*M)*Z,e[7]=(u*L-h*D+p*M)*Z,e[8]=(s*z-o*G+c*O)*Z,e[9]=(r*G-n*z-a*O)*Z,e[10]=(A*I-g*D+T*C)*Z,e[11]=(f*D-u*I-p*C)*Z,e[12]=(o*B-s*j-l*O)*Z,e[13]=(n*j-r*B+i*O)*Z,e[14]=(g*M-A*k-w*C)*Z,e[15]=(u*k-f*M+h*C)*Z,this}scale(e){const n=this.elements,r=e.x,i=e.y,a=e.z;return n[0]*=r,n[4]*=i,n[8]*=a,n[1]*=r,n[5]*=i,n[9]*=a,n[2]*=r,n[6]*=i,n[10]*=a,n[3]*=r,n[7]*=i,n[11]*=a,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),a=1-r,s=e.x,o=e.y,l=e.z,c=a*s,u=a*o;return this.set(c*s+r,c*o-i*l,c*l+i*o,0,c*o+i*l,u*o+r,u*l-i*s,0,c*l-i*o,u*l+i*s,a*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,a,s){return this.set(1,r,a,0,e,1,s,0,n,i,1,0,0,0,0,1),this}compose(e,n,r){const i=this.elements,a=n._x,s=n._y,o=n._z,l=n._w,c=a+a,u=s+s,f=o+o,h=a*c,p=a*u,A=a*f,g=s*u,w=s*f,T=o*f,C=l*c,M=l*u,D=l*f,k=r.x,I=r.y,L=r.z;return i[0]=(1-(g+T))*k,i[1]=(p+D)*k,i[2]=(A-M)*k,i[3]=0,i[4]=(p-D)*I,i[5]=(1-(h+T))*I,i[6]=(w+C)*I,i[7]=0,i[8]=(A+M)*L,i[9]=(w-C)*L,i[10]=(1-(h+g))*L,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;e.x=i[12],e.y=i[13],e.z=i[14];const a=this.determinant();if(a===0)return r.set(1,1,1),n.identity(),this;let s=H4.set(i[0],i[1],i[2]).length();const o=H4.set(i[4],i[5],i[6]).length(),l=H4.set(i[8],i[9],i[10]).length();a<0&&(s=-s),rh.copy(this);const c=1/s,u=1/o,f=1/l;return rh.elements[0]*=c,rh.elements[1]*=c,rh.elements[2]*=c,rh.elements[4]*=u,rh.elements[5]*=u,rh.elements[6]*=u,rh.elements[8]*=f,rh.elements[9]*=f,rh.elements[10]*=f,n.setFromRotationMatrix(rh),r.x=s,r.y=o,r.z=l,this}makePerspective(e,n,r,i,a,s,o=Iu,l=!1){const c=this.elements,u=2*a/(n-e),f=2*a/(r-i),h=(n+e)/(n-e),p=(r+i)/(r-i);let A,g;if(l)A=a/(s-a),g=s*a/(s-a);else if(o===Iu)A=-(s+a)/(s-a),g=-2*s*a/(s-a);else if(o===_d)A=-s/(s-a),g=-s*a/(s-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return c[0]=u,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=f,c[9]=p,c[13]=0,c[2]=0,c[6]=0,c[10]=A,c[14]=g,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,n,r,i,a,s,o=Iu,l=!1){const c=this.elements,u=2/(n-e),f=2/(r-i),h=-(n+e)/(n-e),p=-(r+i)/(r-i);let A,g;if(l)A=1/(s-a),g=s/(s-a);else if(o===Iu)A=-2/(s-a),g=-(s+a)/(s-a);else if(o===_d)A=-1/(s-a),g=-a/(s-a);else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return c[0]=u,c[4]=0,c[8]=0,c[12]=h,c[1]=0,c[5]=f,c[9]=0,c[13]=p,c[2]=0,c[6]=0,c[10]=A,c[14]=g,c[3]=0,c[7]=0,c[11]=0,c[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}};HD.prototype.isMatrix4=!0;let Fr=HD;const H4=new Pe,rh=new Fr,vXe=new Pe(0,0,0),yXe=new Pe(1,1,1),AA=new Pe,o7=new Pe,W0=new Pe,zne=new Fr,$ne=new bd;class Sf{constructor(e=0,n=0,r=0,i=Sf.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,a=i[0],s=i[4],o=i[8],l=i[1],c=i[5],u=i[9],f=i[2],h=i[6],p=i[10];switch(n){case"XYZ":this._y=Math.asin(Hr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,p),this._z=Math.atan2(-s,a)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Hr(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,p),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-f,a),this._z=0);break;case"ZXY":this._x=Math.asin(Hr(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-f,p),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-Hr(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(h,p),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-s,c));break;case"YZX":this._z=Math.asin(Hr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-f,a)):(this._x=0,this._y=Math.atan2(o,p));break;case"XZY":this._z=Math.asin(-Hr(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-u,p),this._y=0);break;default:Kt("Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,r){return zne.makeRotationFromQuaternion(e),this.setFromRotationMatrix(zne,n,r)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return $ne.setFromEuler(this),this.setFromQuaternion($ne,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}}Sf.DEFAULT_ORDER="XYZ";class Mq{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let _Xe=0;const qne=new Pe,G4=new bd,wm=new Fr,l7=new Pe,Bb=new Pe,bXe=new Pe,wXe=new bd,Wne=new Pe(1,0,0),Zne=new Pe(0,1,0),Yne=new Pe(0,0,1),Xne={type:"added"},SXe={type:"removed"},z4={type:"childadded",child:null},lI={type:"childremoved",child:null};class ys extends Fd{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:_Xe++}),this.uuid=sp(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ys.DEFAULT_UP.clone();const e=new Pe,n=new Sf,r=new bd,i=new Pe(1,1,1);function a(){r.setFromEuler(n,!1)}function s(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(s),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Fr},normalMatrix:{value:new Vr}}),this.matrix=new Fr,this.matrixWorld=new Fr,this.matrixAutoUpdate=ys.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=ys.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Mq,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.static=!1,this.userData={},this.pivot=null}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return G4.setFromAxisAngle(e,n),this.quaternion.multiply(G4),this}rotateOnWorldAxis(e,n){return G4.setFromAxisAngle(e,n),this.quaternion.premultiply(G4),this}rotateX(e){return this.rotateOnAxis(Wne,e)}rotateY(e){return this.rotateOnAxis(Zne,e)}rotateZ(e){return this.rotateOnAxis(Yne,e)}translateOnAxis(e,n){return qne.copy(e).applyQuaternion(this.quaternion),this.position.add(qne.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(Wne,e)}translateY(e){return this.translateOnAxis(Zne,e)}translateZ(e){return this.translateOnAxis(Yne,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(wm.copy(this.matrixWorld).invert())}lookAt(e,n,r){e.isVector3?l7.copy(e):l7.set(e,n,r);const i=this.parent;this.updateWorldMatrix(!0,!1),Bb.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?wm.lookAt(Bb,l7,this.up):wm.lookAt(l7,Bb,this.up),this.quaternion.setFromRotationMatrix(wm),i&&(wm.extractRotation(i.matrixWorld),G4.setFromRotationMatrix(wm),this.quaternion.premultiply(G4.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(nn("Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(Xne),z4.child=e,this.dispatchEvent(z4),z4.child=null):nn("Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){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(SXe),lI.child=e,this.dispatchEvent(lI),lI.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),wm.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),wm.multiply(e.parent.matrixWorld)),e.applyMatrix4(wm),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(Xne),z4.child=e,this.dispatchEvent(z4),z4.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 s=this.children[r].getObjectByProperty(e,n);if(s!==void 0)return s}}getObjectsByProperty(e,n,r=[]){this[e]===n&&r.push(this);const i=this.children;for(let a=0,s=i.length;a<s;a++)i[a].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(Bb,e,bXe),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Bb,wXe,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);const e=this.pivot;if(e!==null){const n=e.x,r=e.y,i=e.z,a=this.matrix.elements;a[12]+=n-a[0]*n-a[4]*r-a[8]*i,a[13]+=r-a[1]*n-a[5]*r-a[9]*i,a[14]+=i-a[2]*n-a[6]*r-a[10]*i}this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(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++)n[r].updateMatrixWorld(e)}updateWorldMatrix(e,n){const r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),n===!0){const i=this.children;for(let a=0,s=i.length;a<s;a++)i[a].updateWorldMatrix(!1,!0)}}toJSON(e){const n=e===void 0||typeof e=="string",r={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},r.metadata={version:4.7,type:"Object",generator:"Object3D.toJSON"});const i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(i.renderOrder=this.renderOrder),this.static!==!1&&(i.static=this.static),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.pivot!==null&&(i.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(i.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(i.morphTargetInfluences=this.morphTargetInfluences.slice()),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.geometryInfo=this._geometryInfo.map(o=>({...o,boundingBox:o.boundingBox?o.boundingBox.toJSON():void 0,boundingSphere:o.boundingSphere?o.boundingSphere.toJSON():void 0})),i.instanceInfo=this._instanceInfo.map(o=>({...o})),i.availableInstanceIds=this._availableInstanceIds.slice(),i.availableGeometryIds=this._availableGeometryIds.slice(),i.nextIndexStart=this._nextIndexStart,i.nextVertexStart=this._nextVertexStart,i.geometryCount=this._geometryCount,i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.matricesTexture=this._matricesTexture.toJSON(e),i.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(i.boundingBox=this.boundingBox.toJSON()));function a(o,l){return o[l.uuid]===void 0&&(o[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=a(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const l=o.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c<u;c++){const f=l[c];a(e.shapes,f)}else a(e.shapes,l)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(a(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const o=[];for(let l=0,c=this.material.length;l<c;l++)o.push(a(e.materials,this.material[l]));i.material=o}else i.material=a(e.materials,this.material);if(this.children.length>0){i.children=[];for(let o=0;o<this.children.length;o++)i.children.push(this.children[o].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let o=0;o<this.animations.length;o++){const l=this.animations[o];i.animations.push(a(e.animations,l))}}if(n){const o=s(e.geometries),l=s(e.materials),c=s(e.textures),u=s(e.images),f=s(e.shapes),h=s(e.skeletons),p=s(e.animations),A=s(e.nodes);o.length>0&&(r.geometries=o),l.length>0&&(r.materials=l),c.length>0&&(r.textures=c),u.length>0&&(r.images=u),f.length>0&&(r.shapes=f),h.length>0&&(r.skeletons=h),p.length>0&&(r.animations=p),A.length>0&&(r.nodes=A)}return r.object=i,r;function s(o){const l=[];for(const c in o){const u=o[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.pivot=e.pivot!==null?e.pivot.clone():null,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.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let r=0;r<e.children.length;r++){const i=e.children[r];this.add(i.clone())}return this}}ys.DEFAULT_UP=new Pe(0,1,0);ys.DEFAULT_MATRIX_AUTO_UPDATE=!0;ys.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;let y0=class extends ys{constructor(){super(),this.isGroup=!0,this.type="Group"}};const TXe={type:"move"};class V9{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new y0,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new y0,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Pe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Pe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new y0,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Pe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Pe,this._grip.eventsEnabled=!1),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const r of e.hand.values())this._getHandJoint(n,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,r){let i=null,a=null,s=null;const o=this._targetRay,l=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){s=!0;for(const g of e.hand.values()){const w=n.getJointPose(g,r),T=this._getHandJoint(c,g);w!==null&&(T.matrix.fromArray(w.transform.matrix),T.matrix.decompose(T.position,T.rotation,T.scale),T.matrixWorldNeedsUpdate=!0,T.jointRadius=w.radius),T.visible=w!==null}const u=c.joints["index-finger-tip"],f=c.joints["thumb-tip"],h=u.position.distanceTo(f.position),p=.02,A=.005;c.inputState.pinching&&h>p+A?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=p-A&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(a=n.getPose(e.gripSpace,r),a!==null&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1,l.eventsEnabled&&l.dispatchEvent({type:"gripUpdated",data:e,target:this})));o!==null&&(i=n.getPose(e.targetRaySpace,r),i===null&&a!==null&&(i=a),i!==null&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(TXe)))}return o!==null&&(o.visible=i!==null),l!==null&&(l.visible=a!==null),c!==null&&(c.visible=s!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const r=new y0;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[n.jointName]=r,e.add(r)}return e.joints[n.jointName]}}const zme={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},gA={h:0,s:0,l:0},c7={h:0,s:0,l:0};function cI(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}let Xn=class{constructor(e,n,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,r)}set(e,n,r){if(n===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,n,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=rc){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ar.colorSpaceToWorking(this,n),this}setRGB(e,n,r,i=Ar.workingColorSpace){return this.r=e,this.g=n,this.b=r,Ar.colorSpaceToWorking(this,i),this}setHSL(e,n,r,i=Ar.workingColorSpace){if(e=Sq(e,1),n=Hr(n,0,1),r=Hr(r,0,1),n===0)this.r=this.g=this.b=r;else{const a=r<=.5?r*(1+n):r+n-r*n,s=2*r-a;this.r=cI(s,a,e+1/3),this.g=cI(s,a,e),this.b=cI(s,a,e-1/3)}return Ar.colorSpaceToWorking(this,i),this}setStyle(e,n=rc){function r(a){a!==void 0&&parseFloat(a)<1&&Kt("Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const s=i[1],o=i[2];switch(s){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,n);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,n);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,n);break;default:Kt("Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=i[1],s=a.length;if(s===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(a,16),n);Kt("Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=rc){const r=zme[e.toLowerCase()];return r!==void 0?this.setHex(r,n):Kt("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=c2(e.r),this.g=c2(e.g),this.b=c2(e.b),this}copyLinearToSRGB(e){return this.r=g3(e.r),this.g=g3(e.g),this.b=g3(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=rc){return Ar.workingToColorSpace(Nc.copy(this),e),Math.round(Hr(Nc.r*255,0,255))*65536+Math.round(Hr(Nc.g*255,0,255))*256+Math.round(Hr(Nc.b*255,0,255))}getHexString(e=rc){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Ar.workingColorSpace){Ar.workingToColorSpace(Nc.copy(this),n);const r=Nc.r,i=Nc.g,a=Nc.b,s=Math.max(r,i,a),o=Math.min(r,i,a);let l,c;const u=(o+s)/2;if(o===s)l=0,c=0;else{const f=s-o;switch(c=u<=.5?f/(s+o):f/(2-s-o),s){case r:l=(i-a)/f+(i<a?6:0);break;case i:l=(a-r)/f+2;break;case a:l=(r-i)/f+4;break}l/=6}return e.h=l,e.s=c,e.l=u,e}getRGB(e,n=Ar.workingColorSpace){return Ar.workingToColorSpace(Nc.copy(this),n),e.r=Nc.r,e.g=Nc.g,e.b=Nc.b,e}getStyle(e=rc){Ar.workingToColorSpace(Nc.copy(this),e);const n=Nc.r,r=Nc.g,i=Nc.b;return e!==rc?`color(${e} ${n.toFixed(3)} ${r.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(r*255)},${Math.round(i*255)})`}offsetHSL(e,n,r){return this.getHSL(gA),this.setHSL(gA.h+e,gA.s+n,gA.l+r)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,r){return this.r=e.r+(n.r-e.r)*r,this.g=e.g+(n.g-e.g)*r,this.b=e.b+(n.b-e.b)*r,this}lerpHSL(e,n){this.getHSL(gA),e.getHSL(c7);const r=fS(gA.h,c7.h,n),i=fS(gA.s,c7.s,n),a=fS(gA.l,c7.l,n);return this.setHSL(r,i,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,r=this.g,i=this.b,a=e.elements;return this.r=a[0]*n+a[3]*r+a[6]*i,this.g=a[1]*n+a[4]*r+a[7]*i,this.b=a[2]*n+a[5]*r+a[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};const Nc=new Xn;Xn.NAMES=zme;class Cq extends ys{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Sf,this.environmentIntensity=1,this.environmentRotation=new Sf,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(n.object.environmentIntensity=this.environmentIntensity),n.object.environmentRotation=this.environmentRotation.toArray(),n}}const ih=new Pe,Sm=new Pe,uI=new Pe,Tm=new Pe,$4=new Pe,q4=new Pe,Qne=new Pe,fI=new Pe,dI=new Pe,hI=new Pe,pI=new kr,mI=new kr,AI=new kr;class xh{constructor(e=new Pe,n=new Pe,r=new Pe){this.a=e,this.b=n,this.c=r}static getNormal(e,n,r,i){i.subVectors(r,n),ih.subVectors(e,n),i.cross(ih);const a=i.lengthSq();return a>0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,n,r,i,a){ih.subVectors(i,n),Sm.subVectors(r,n),uI.subVectors(e,n);const s=ih.dot(ih),o=ih.dot(Sm),l=ih.dot(uI),c=Sm.dot(Sm),u=Sm.dot(uI),f=s*c-o*o;if(f===0)return a.set(0,0,0),null;const h=1/f,p=(c*l-o*u)*h,A=(s*u-o*l)*h;return a.set(1-p-A,A,p)}static containsPoint(e,n,r,i){return this.getBarycoord(e,n,r,i,Tm)===null?!1:Tm.x>=0&&Tm.y>=0&&Tm.x+Tm.y<=1}static getInterpolation(e,n,r,i,a,s,o,l){return this.getBarycoord(e,n,r,i,Tm)===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(a,Tm.x),l.addScaledVector(s,Tm.y),l.addScaledVector(o,Tm.z),l)}static getInterpolatedAttribute(e,n,r,i,a,s){return pI.setScalar(0),mI.setScalar(0),AI.setScalar(0),pI.fromBufferAttribute(e,n),mI.fromBufferAttribute(e,r),AI.fromBufferAttribute(e,i),s.setScalar(0),s.addScaledVector(pI,a.x),s.addScaledVector(mI,a.y),s.addScaledVector(AI,a.z),s}static isFrontFacing(e,n,r,i){return ih.subVectors(r,n),Sm.subVectors(e,n),ih.cross(Sm).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 ih.subVectors(this.c,this.b),Sm.subVectors(this.a,this.b),ih.cross(Sm).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return xh.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return xh.getBarycoord(e,this.a,this.b,this.c,n)}getInterpolation(e,n,r,i,a){return xh.getInterpolation(e,this.a,this.b,this.c,n,r,i,a)}containsPoint(e){return xh.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return xh.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const r=this.a,i=this.b,a=this.c;let s,o;$4.subVectors(i,r),q4.subVectors(a,r),fI.subVectors(e,r);const l=$4.dot(fI),c=q4.dot(fI);if(l<=0&&c<=0)return n.copy(r);dI.subVectors(e,i);const u=$4.dot(dI),f=q4.dot(dI);if(u>=0&&f<=u)return n.copy(i);const h=l*f-u*c;if(h<=0&&l>=0&&u<=0)return s=l/(l-u),n.copy(r).addScaledVector($4,s);hI.subVectors(e,a);const p=$4.dot(hI),A=q4.dot(hI);if(A>=0&&p<=A)return n.copy(a);const g=p*c-l*A;if(g<=0&&c>=0&&A<=0)return o=c/(c-A),n.copy(r).addScaledVector(q4,o);const w=u*A-p*f;if(w<=0&&f-u>=0&&p-A>=0)return Qne.subVectors(a,i),o=(f-u)/(f-u+(p-A)),n.copy(i).addScaledVector(Qne,o);const T=1/(w+g+h);return s=g*T,o=h*T,n.copy(r).addScaledVector($4,s).addScaledVector(q4,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}class H2{constructor(e=new Pe(1/0,1/0,1/0),n=new Pe(-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(ah.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,r=e.count;n<r;n++)this.expandByPoint(ah.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=ah.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 a=r.getAttribute("position");if(n===!0&&a!==void 0&&e.isInstancedMesh!==!0)for(let s=0,o=a.count;s<o;s++)e.isMesh===!0?e.getVertexPosition(s,ah):ah.fromBufferAttribute(a,s),ah.applyMatrix4(e.matrixWorld),this.expandByPoint(ah);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),u7.copy(e.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),u7.copy(r.boundingBox)),u7.applyMatrix4(e.matrixWorld),this.union(u7)}const i=e.children;for(let a=0,s=i.length;a<s;a++)this.expandByObject(i[a],n);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,ah),ah.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,r;return e.normal.x>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&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ub),f7.subVectors(this.max,Ub),W4.subVectors(e.a,Ub),Z4.subVectors(e.b,Ub),Y4.subVectors(e.c,Ub),xA.subVectors(Z4,W4),vA.subVectors(Y4,Z4),Ux.subVectors(W4,Y4);let n=[0,-xA.z,xA.y,0,-vA.z,vA.y,0,-Ux.z,Ux.y,xA.z,0,-xA.x,vA.z,0,-vA.x,Ux.z,0,-Ux.x,-xA.y,xA.x,0,-vA.y,vA.x,0,-Ux.y,Ux.x,0];return!gI(n,W4,Z4,Y4,f7)||(n=[1,0,0,0,1,0,0,0,1],!gI(n,W4,Z4,Y4,f7))?!1:(d7.crossVectors(xA,vA),n=[d7.x,d7.y,d7.z],gI(n,W4,Z4,Y4,f7))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ah).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(ah).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:(Em[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Em[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Em[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Em[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Em[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Em[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Em[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Em[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Em),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)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}}const Em=[new Pe,new Pe,new Pe,new Pe,new Pe,new Pe,new Pe,new Pe],ah=new Pe,u7=new H2,W4=new Pe,Z4=new Pe,Y4=new Pe,xA=new Pe,vA=new Pe,Ux=new Pe,Ub=new Pe,f7=new Pe,d7=new Pe,Vx=new Pe;function gI(t,e,n,r,i){for(let a=0,s=t.length-3;a<=s;a+=3){Vx.fromArray(t,a);const o=i.x*Math.abs(Vx.x)+i.y*Math.abs(Vx.y)+i.z*Math.abs(Vx.z),l=e.dot(Vx),c=n.dot(Vx),u=r.dot(Vx);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>o)return!1}return!0}const Hm=EXe();function EXe(){const t=new ArrayBuffer(4),e=new Float32Array(t),n=new Uint32Array(t),r=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(r[l]=0,r[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(r[l]=1024>>-c-14,r[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(r[l]=c+15<<10,r[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(r[l]=31744,r[l|256]=64512,i[l]=24,i[l|256]=24):(r[l]=31744,r[l|256]=64512,i[l]=13,i[l|256]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;(c&8388608)===0;)c<<=1,u-=8388608;c&=-8388609,u+=947912704,a[l]=c|u}for(let l=1024;l<2048;++l)a[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)s[l]=l<<23;s[31]=1199570944,s[32]=2147483648;for(let l=33;l<63;++l)s[l]=2147483648+(l-32<<23);s[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(o[l]=1024);return{floatView:e,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}function Z0(t){Math.abs(t)>65504&&Kt("DataUtils.toHalfFloat(): Value out of range."),t=Hr(t,-65504,65504),Hm.floatView[0]=t;const e=Hm.uint32View[0],n=e>>23&511;return Hm.baseTable[n]+((e&8388607)>>Hm.shiftTable[n])}function h7(t){const e=t>>10;return Hm.uint32View[0]=Hm.mantissaTable[Hm.offsetTable[e]+(t&1023)]+Hm.exp
vendor: 5,446 bytes, line 48
48onentTable[e],Hm.floatView[0]}const Fo=new Pe,p7=new tn;let MXe=0;class Is extends Fd{constructor(e,n,r=!1){if(super(),Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:MXe++}),this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=r,this.usage=__,this.updateRanges=[],this.gpuType=os,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}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,a=this.itemSize;i<a;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++)p7.fromBufferAttribute(this,n),p7.applyMatrix3(e),this.setXY(n,p7.x,p7.y);else if(this.itemSize===3)for(let n=0,r=this.count;n<r;n++)Fo.fromBufferAttribute(this,n),Fo.applyMatrix3(e),this.setXYZ(n,Fo.x,Fo.y,Fo.z);return this}applyMatrix4(e){for(let n=0,r=this.count;n<r;n++)Fo.fromBufferAttribute(this,n),Fo.applyMatrix4(e),this.setXYZ(n,Fo.x,Fo.y,Fo.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)Fo.fromBufferAttribute(this,n),Fo.applyNormalMatrix(e),this.setXYZ(n,Fo.x,Fo.y,Fo.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)Fo.fromBufferAttribute(this,n),Fo.transformDirection(e),this.setXYZ(n,Fo.x,Fo.y,Fo.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=Du(r,this.array)),r}setComponent(e,n,r){return this.normalized&&(r=ii(r,this.array)),this.array[e*this.itemSize+n]=r,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=Du(n,this.array)),n}setX(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=Du(n,this.array)),n}setY(e,n){return this.normalized&&(n=ii(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=Du(n,this.array)),n}setZ(e,n){return this.normalized&&(n=ii(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=Du(n,this.array)),n}setW(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,r){return e*=this.itemSize,this.normalized&&(n=ii(n,this.array),r=ii(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=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,this}setXYZW(e,n,r,i,a){return e*=this.itemSize,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array),a=ii(a,this.array)),this.array[e+0]=n,this.array[e+1]=r,this.array[e+2]=i,this.array[e+3]=a,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!==__&&(e.usage=this.usage),e}dispose(){this.dispatchEvent({type:"dispose"})}}class Nq extends Is{constructor(e,n,r){super(new Uint16Array(e),n,r)}}class Rq extends Is{constructor(e,n,r){super(new Uint32Array(e),n,r)}}class $me extends Is{constructor(e,n,r){super(new Uint16Array(e),n,r),this.isFloat16BufferAttribute=!0}getX(e){let n=h7(this.array[e*this.itemSize]);return this.normalized&&(n=Du(n,this.array)),n}setX(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize]=Z0(n),this}getY(e){let n=h7(this.array[e*this.itemSize+1]);return this.normalized&&(n=Du(n,this.array)),n}setY(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize+1]=Z0(n),this}getZ(e){let n=h7(this.array[e*this.itemSize+2]);return this.normalized&&(n=Du(n,this.array)),n}setZ(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize+2]=Z0(n),this}getW(e){let n=h7(this.array[e*this.itemSize+3]);return this.normalized&&(n=Du(n,this.array)),n}setW(e,n){return this.normalized&&(n=ii(n,this.array)),this.array[e*this.itemSize+3]=Z0(n),this}setXY(e,n,r){return e*=this.itemSize,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array)),this.array[e+0]=Z0(n),this.array[e+1]=Z0(r),this}setXYZ(e,n,r,i){return e*=this.itemSize,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array)),this.array[e+0]=Z0(n),this.array[e+1]=Z0(r),this.array[e+2]=Z0(i),this}setXYZW(e,n,r,i,a){return e*=this.itemSize,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array),a=ii(a,this.array)),this.array[e+0]=Z0(n),this.array[e+1]=Z0(r),this.array[e+2]=Z0(i),this.array[e+3]=Z0(a),this}}class Ui extends Is{constructor(e,n,r){super(new Float32Array(e),n,r)}}const CXe=new H2,Vb=new Pe,xI=new Pe;class ox{constructor(e=new Pe,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}
vendor: 19,323 bytes, line 48
48setFromPoints(e,n){const r=this.center;n!==void 0?r.copy(n):CXe.setFromPoints(e).getCenter(r);let i=0;for(let a=0,s=e.length;a<s;a++)i=Math.max(i,r.distanceToSquared(e[a]));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}clampPoint(e,n){const r=this.center.distanceToSquared(e);return n.copy(e),r>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;Vb.subVectors(e,this.center);const n=Vb.lengthSq();if(n>this.radius*this.radius){const r=Math.sqrt(n),i=(r-this.radius)*.5;this.center.addScaledVector(Vb,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):(xI.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Vb.copy(e.center).add(xI)),this.expandByPoint(Vb.copy(e.center).sub(xI))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}}let NXe=0;const Wf=new Fr,vI=new ys,X4=new Pe,Y0=new H2,jb=new H2,Ol=new Pe;class da extends Fd{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:NXe++}),this.uuid=sp(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.indirectOffset=0,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(XYe(e)?Rq:Nq)(e,1):this.index=e,this}setIndirect(e,n=0){return this.indirect=e,this.indirectOffset=n,this}getIndirect(){return this.indirect}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 a=new Vr().getNormalMatrix(e);r.applyNormalMatrix(a),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 Wf.makeRotationFromQuaternion(e),this.applyMatrix4(Wf),this}rotateX(e){return Wf.makeRotationX(e),this.applyMatrix4(Wf),this}rotateY(e){return Wf.makeRotationY(e),this.applyMatrix4(Wf),this}rotateZ(e){return Wf.makeRotationZ(e),this.applyMatrix4(Wf),this}translate(e,n,r){return Wf.makeTranslation(e,n,r),this.applyMatrix4(Wf),this}scale(e,n,r){return Wf.makeScale(e,n,r),this.applyMatrix4(Wf),this}lookAt(e){return vI.lookAt(e),vI.updateMatrix(),this.applyMatrix4(vI.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(X4).negate(),this.translate(X4.x,X4.y,X4.z),this}setFromPoints(e){const n=this.getAttribute("position");if(n===void 0){const r=[];for(let i=0,a=e.length;i<a;i++){const s=e[i];r.push(s.x,s.y,s.z||0)}this.setAttribute("position",new Ui(r,3))}else{const r=Math.min(e.length,n.count);for(let i=0;i<r;i++){const a=e[i];n.setXYZ(i,a.x,a.y,a.z||0)}e.length>n.count&&Kt("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),n.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new H2);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){nn("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new Pe(-1/0,-1/0,-1/0),new Pe(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 a=n[r];Y0.setFromBufferAttribute(a),this.morphTargetsRelative?(Ol.addVectors(this.boundingBox.min,Y0.min),this.boundingBox.expandByPoint(Ol),Ol.addVectors(this.boundingBox.max,Y0.max),this.boundingBox.expandByPoint(Ol)):(this.boundingBox.expandByPoint(Y0.min),this.boundingBox.expandByPoint(Y0.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&nn('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 ox);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){nn("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new Pe,1/0);return}if(e){const r=this.boundingSphere.center;if(Y0.setFromBufferAttribute(e),n)for(let a=0,s=n.length;a<s;a++){const o=n[a];jb.setFromBufferAttribute(o),this.morphTargetsRelative?(Ol.addVectors(Y0.min,jb.min),Y0.expandByPoint(Ol),Ol.addVectors(Y0.max,jb.max),Y0.expandByPoint(Ol)):(Y0.expandByPoint(jb.min),Y0.expandByPoint(jb.max))}Y0.getCenter(r);let i=0;for(let a=0,s=e.count;a<s;a++)Ol.fromBufferAttribute(e,a),i=Math.max(i,r.distanceToSquared(Ol));if(n)for(let a=0,s=n.length;a<s;a++){const o=n[a],l=this.morphTargetsRelative;for(let c=0,u=o.count;c<u;c++)Ol.fromBufferAttribute(o,c),l&&(X4.fromBufferAttribute(e,c),Ol.add(X4)),i=Math.max(i,r.distanceToSquared(Ol))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&nn('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){nn("BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const r=n.position,i=n.normal,a=n.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Is(new Float32Array(4*r.count),4));const s=this.getAttribute("tangent"),o=[],l=[];for(let O=0;O<r.count;O++)o[O]=new Pe,l[O]=new Pe;const c=new Pe,u=new Pe,f=new Pe,h=new tn,p=new tn,A=new tn,g=new Pe,w=new Pe;function T(O,B,G){c.fromBufferAttribute(r,O),u.fromBufferAttribute(r,B),f.fromBufferAttribute(r,G),h.fromBufferAttribute(a,O),p.fromBufferAttribute(a,B),A.fromBufferAttribute(a,G),u.sub(c),f.sub(c),p.sub(h),A.sub(h);const j=1/(p.x*A.y-A.x*p.y);isFinite(j)&&(g.copy(u).multiplyScalar(A.y).addScaledVector(f,-p.y).multiplyScalar(j),w.copy(f).multiplyScalar(p.x).addScaledVector(u,-A.x).multiplyScalar(j),o[O].add(g),o[B].add(g),o[G].add(g),l[O].add(w),l[B].add(w),l[G].add(w))}let C=this.groups;C.length===0&&(C=[{start:0,count:e.count}]);for(let O=0,B=C.length;O<B;++O){const G=C[O],j=G.start,z=G.count;for(let Q=j,ee=j+z;Q<ee;Q+=3)T(e.getX(Q+0),e.getX(Q+1),e.getX(Q+2))}const M=new Pe,D=new Pe,k=new Pe,I=new Pe;function L(O){k.fromBufferAttribute(i,O),I.copy(k);const B=o[O];M.copy(B),M.sub(k.multiplyScalar(k.dot(B))).normalize(),D.crossVectors(I,B);const j=D.dot(l[O])<0?-1:1;s.setXYZW(O,M.x,M.y,M.z,j)}for(let O=0,B=C.length;O<B;++O){const G=C[O],j=G.start,z=G.count;for(let Q=j,ee=j+z;Q<ee;Q+=3)L(e.getX(Q+0)),L(e.getX(Q+1)),L(e.getX(Q+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 Is(new Float32Array(n.count*3),3),this.setAttribute("normal",r);else for(let h=0,p=r.count;h<p;h++)r.setXYZ(h,0,0,0);const i=new Pe,a=new Pe,s=new Pe,o=new Pe,l=new Pe,c=new Pe,u=new Pe,f=new Pe;if(e)for(let h=0,p=e.count;h<p;h+=3){const A=e.getX(h+0),g=e.getX(h+1),w=e.getX(h+2);i.fromBufferAttribute(n,A),a.fromBufferAttribute(n,g),s.fromBufferAttribute(n,w),u.subVectors(s,a),f.subVectors(i,a),u.cross(f),o.fromBufferAttribute(r,A),l.fromBufferAttribute(r,g),c.fromBufferAttribute(r,w),o.add(u),l.add(u),c.add(u),r.setXYZ(A,o.x,o.y,o.z),r.setXYZ(g,l.x,l.y,l.z),r.setXYZ(w,c.x,c.y,c.z)}else for(let h=0,p=n.count;h<p;h+=3)i.fromBufferAttribute(n,h+0),a.fromBufferAttribute(n,h+1),s.fromBufferAttribute(n,h+2),u.subVectors(s,a),f.subVectors(i,a),u.cross(f),r.setXYZ(h+0,u.x,u.y,u.z),r.setXYZ(h+1,u.x,u.y,u.z),r.setXYZ(h+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++)Ol.fromBufferAttribute(e,n),Ol.normalize(),e.setXYZ(n,Ol.x,Ol.y,Ol.z)}toNonIndexed(){function e(o,l){const c=o.array,u=o.itemSize,f=o.normalized,h=new c.constructor(l.length*u);let p=0,A=0;for(let g=0,w=l.length;g<w;g++){o.isInterleavedBufferAttribute?p=l[g]*o.data.stride+o.offset:p=l[g]*u;for(let T=0;T<u;T++)h[A++]=c[p++]}return new Is(h,u,f)}if(this.index===null)return Kt("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new da,r=this.index.array,i=this.attributes;for(const o in i){const l=i[o],c=e(l,r);n.setAttribute(o,c)}const a=this.morphAttributes;for(const o in a){const l=[],c=a[o];for(let u=0,f=c.length;u<f;u++){const h=c[u],p=e(h,r);l.push(p)}n.morphAttributes[o]=l}n.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let o=0,l=s.length;o<l;o++){const c=s[o];n.addGroup(c.start,c.count,c.materialIndex)}return n}toJSON(){const e={metadata:{version:4.7,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const 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 a=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let f=0,h=c.length;f<h;f++){const p=c[f];u.push(p.toJSON(e.data))}u.length>0&&(i[l]=u,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),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());const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(n))}const a=e.morphAttributes;for(const c in a){const u=[],f=a[c];for(let h=0,p=f.length;h<p;h++)u.push(f[h].clone(n));this.morphAttributes[c]=u}this.morphTargetsRelative=e.morphTargetsRelative;const s=e.groups;for(let c=0,u=s.length;c<u;c++){const f=s[c];this.addGroup(f.start,f.count,f.materialIndex)}const o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());const l=e.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Dq{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=__,this.updateRanges=[],this.version=0,this.uuid=sp()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}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.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,n,r){e*=this.stride,r*=n.stride;for(let i=0,a=this.stride;i<a;i++)this.array[e+i]=n.array[r+i];return this}set(e,n=0){return this.array.set(e,n),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=sp()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const n=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),r=new this.constructor(n,this.stride);return r.setUsage(this.usage),r}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=sp()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const hu=new Pe;class X1{constructor(e,n,r,i=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=n,this.offset=r,this.normalized=i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let n=0,r=this.data.count;n<r;n++)hu.fromBufferAttribute(this,n),hu.applyMatrix4(e),this.setXYZ(n,hu.x,hu.y,hu.z);return this}applyNormalMatrix(e){for(let n=0,r=this.count;n<r;n++)hu.fromBufferAttribute(this,n),hu.applyNormalMatrix(e),this.setXYZ(n,hu.x,hu.y,hu.z);return this}transformDirection(e){for(let n=0,r=this.count;n<r;n++)hu.fromBufferAttribute(this,n),hu.transformDirection(e),this.setXYZ(n,hu.x,hu.y,hu.z);return this}getComponent(e,n){let r=this.array[e*this.data.stride+this.offset+n];return this.normalized&&(r=Du(r,this.array)),r}setComponent(e,n,r){return this.normalized&&(r=ii(r,this.array)),this.data.array[e*this.data.stride+this.offset+n]=r,this}setX(e,n){return this.normalized&&(n=ii(n,this.array)),this.data.array[e*this.data.stride+this.offset]=n,this}setY(e,n){return this.normalized&&(n=ii(n,this.array)),this.data.array[e*this.data.stride+this.offset+1]=n,this}setZ(e,n){return this.normalized&&(n=ii(n,this.array)),this.data.array[e*this.data.stride+this.offset+2]=n,this}setW(e,n){return this.normalized&&(n=ii(n,this.array)),this.data.array[e*this.data.stride+this.offset+3]=n,this}getX(e){let n=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(n=Du(n,this.array)),n}getY(e){let n=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(n=Du(n,this.array)),n}getZ(e){let n=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(n=Du(n,this.array)),n}getW(e){let n=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(n=Du(n,this.array)),n}setXY(e,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=r,this}setXYZ(e,n,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=r,this.data.array[e+2]=i,this}setXYZW(e,n,r,i,a){return e=e*this.data.stride+this.offset,this.normalized&&(n=ii(n,this.array),r=ii(r,this.array),i=ii(i,this.array),a=ii(a,this.array)),this.data.array[e+0]=n,this.data.array[e+1]=r,this.data.array[e+2]=i,this.data.array[e+3]=a,this}clone(e){if(e===void 0){P5("InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let r=0;r<this.count;r++){const i=r*this.data.stride+this.offset;for(let a=0;a<this.itemSize;a++)n.push(this.data.array[i+a])}return new Is(new this.array.constructor(n),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new X1(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){P5("InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const n=[];for(let r=0;r<this.count;r++){const i=r*this.data.stride+this.offset;for(let a=0;a<this.itemSize;a++)n.push(this.data.array[i+a])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:n,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}let RXe=0;class nu extends Fd{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:RXe++}),this.uuid=sp(),this.name="",this.type="Material",this.blending=Hl,this.side=Uu,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=W3,this.blendDst=Z3,this.blendEquation=oc,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Xn(0,0,0),this.blendAlpha=0,this.depthFunc=$g,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=oj,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=av,this.stencilZFail=av,this.stencilZPass=av,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}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){Kt(`Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){Kt(`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.7,type:"Material",generator:"Material.toJSON"}};
vendor: 15,059 bytes, line 48
48r.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.sheenColorMap&&this.sheenColorMap.isTexture&&(r.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(r.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),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!==Hl&&(r.blending=this.blending),this.side!==Uu&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==W3&&(r.blendSrc=this.blendSrc),this.blendDst!==Z3&&(r.blendDst=this.blendDst),this.blendEquation!==oc&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==$g&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==oj&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==av&&(r.stencilFail=this.stencilFail),this.stencilZFail!==av&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==av&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(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.allowOverride===!1&&(r.allowOverride=!1),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(a){const s=[];for(const o in a){const l=a[o];delete l.metadata,s.push(l)}return s}if(n){const a=i(e.textures),s=i(e.images);a.length>0&&(r.textures=a),s.length>0&&(r.images=s)}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 a=0;a!==i;++a)r[a]=n[a].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.allowOverride=e.allowOverride,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 DXe extends nu{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new Xn(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Mm=new Pe,yI=new Pe,m7=new Pe,yA=new Pe,_I=new Pe,A7=new Pe,bI=new Pe;class qT{constructor(e=new Pe,n=new Pe(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,Mm)),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=Mm.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Mm.copy(this.origin).addScaledVector(this.direction,n),Mm.distanceToSquared(e))}distanceSqToSegment(e,n,r,i){yI.copy(e).add(n).multiplyScalar(.5),m7.copy(n).sub(e).normalize(),yA.copy(this.origin).sub(yI);const a=e.distanceTo(n)*.5,s=-this.direction.dot(m7),o=yA.dot(this.direction),l=-yA.dot(m7),c=yA.lengthSq(),u=Math.abs(1-s*s);let f,h,p,A;if(u>0)if(f=s*l-o,h=s*o-l,A=a*u,f>=0)if(h>=-A)if(h<=A){const g=1/u;f*=g,h*=g,p=f*(f+s*h+2*o)+h*(s*f+h+2*l)+c}else h=a,f=Math.max(0,-(s*h+o)),p=-f*f+h*(h+2*l)+c;else h=-a,f=Math.max(0,-(s*h+o)),p=-f*f+h*(h+2*l)+c;else h<=-A?(f=Math.max(0,-(-s*a+o)),h=f>0?-a:Math.min(Math.max(-a,-l),a),p=-f*f+h*(h+2*l)+c):h<=A?(f=0,h=Math.min(Math.max(-a,-l),a),p=h*(h+2*l)+c):(f=Math.max(0,-(s*a+o)),h=f>0?a:Math.min(Math.max(-a,-l),a),p=-f*f+h*(h+2*l)+c);else h=s>0?-a:a,f=Math.max(0,-(s*h+o)),p=-f*f+h*(h+2*l)+c;return r&&r.copy(this.origin).addScaledVector(this.direction,f),i&&i.copy(yI).addScaledVector(m7,h),p}intersectSphere(e,n){Mm.subVectors(e.center,this.origin);const r=Mm.dot(this.direction),i=Mm.dot(Mm)-r*r,a=e.radius*e.radius;if(i>a)return null;const s=Math.sqrt(a-i),o=r-s,l=r+s;return l<0?null:o<0?this.at(l,n):this.at(o,n)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/n;return r>=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}intersectBox(e,n){let r,i,a,s,o,l;const c=1/this.direction.x,u=1/this.direction.y,f=1/this.direction.z,h=this.origin;return c>=0?(r=(e.min.x-h.x)*c,i=(e.max.x-h.x)*c):(r=(e.max.x-h.x)*c,i=(e.min.x-h.x)*c),u>=0?(a=(e.min.y-h.y)*u,s=(e.max.y-h.y)*u):(a=(e.max.y-h.y)*u,s=(e.min.y-h.y)*u),r>s||a>i||((a>r||isNaN(r))&&(r=a),(s<i||isNaN(i))&&(i=s),f>=0?(o=(e.min.z-h.z)*f,l=(e.max.z-h.z)*f):(o=(e.max.z-h.z)*f,l=(e.min.z-h.z)*f),r>l||o>i)||((o>r||r!==r)&&(r=o),(l<i||i!==i)&&(i=l),i<0)?null:this.at(r>=0?r:i,n)}intersectsBox(e){return this.intersectBox(e,Mm)!==null}intersectTriangle(e,n,r,i,a){_I.subVectors(n,e),A7.subVectors(r,e),bI.crossVectors(_I,A7);let s=this.direction.dot(bI),o;if(s>0){if(i)return null;o=1}else if(s<0)o=-1,s=-s;else return null;yA.subVectors(this.origin,e);const l=o*this.direction.dot(A7.crossVectors(yA,A7));if(l<0)return null;const c=o*this.direction.dot(_I.cross(yA));if(c<0||l+c>s)return null;const u=-o*yA.dot(bI);return u<0?null:this.at(u/s,a)}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 od extends nu{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Xn(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 Sf,this.combine=jT,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 Kne=new Fr,jx=new qT,g7=new ox,Jne=new Pe,x7=new Pe,v7=new Pe,y7=new Pe,wI=new Pe,_7=new Pe,ere=ne
vendor: 5,532 bytes, line 48
48w Pe,b7=new Pe;class ea extends ys{constructor(e=new da,n=new od){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}getVertexPosition(e,n){const r=this.geometry,i=r.attributes.position,a=r.morphAttributes.position,s=r.morphTargetsRelative;n.fromBufferAttribute(i,e);const o=this.morphTargetInfluences;if(a&&o){_7.set(0,0,0);for(let l=0,c=a.length;l<c;l++){const u=o[l],f=a[l];u!==0&&(wI.fromBufferAttribute(f,e),s?_7.addScaledVector(wI,u):_7.addScaledVector(wI.sub(n),u))}n.add(_7)}return n}raycast(e,n){const r=this.geometry,i=this.material,a=this.matrixWorld;i!==void 0&&(r.boundingSphere===null&&r.computeBoundingSphere(),g7.copy(r.boundingSphere),g7.applyMatrix4(a),jx.copy(e.ray).recast(e.near),!(g7.containsPoint(jx.origin)===!1&&(jx.intersectSphere(g7,Jne)===null||jx.origin.distanceToSquared(Jne)>(e.far-e.near)**2))&&(Kne.copy(a).invert(),jx.copy(e.ray).applyMatrix4(Kne),!(r.boundingBox!==null&&jx.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,n,jx)))}_computeIntersections(e,n,r){let i;const a=this.geometry,s=this.material,o=a.index,l=a.attributes.position,c=a.attributes.uv,u=a.attributes.uv1,f=a.attributes.normal,h=a.groups,p=a.drawRange;if(o!==null)if(Array.isArray(s))for(let A=0,g=h.length;A<g;A++){const w=h[A],T=s[w.materialIndex],C=Math.max(w.start,p.start),M=Math.min(o.count,Math.min(w.start+w.count,p.start+p.count));for(let D=C,k=M;D<k;D+=3){const I=o.getX(D),L=o.getX(D+1),O=o.getX(D+2);i=w7(this,T,e,r,c,u,f,I,L,O),i&&(i.faceIndex=Math.floor(D/3),i.face.materialIndex=w.materialIndex,n.push(i))}}else{const A=Math.max(0,p.start),g=Math.min(o.count,p.start+p.count);for(let w=A,T=g;w<T;w+=3){const C=o.getX(w),M=o.getX(w+1),D=o.getX(w+2);i=w7(this,s,e,r,c,u,f,C,M,D),i&&(i.faceIndex=Math.floor(w/3),n.push(i))}}else if(l!==void 0)if(Array.isArray(s))for(let A=0,g=h.length;A<g;A++){const w=h[A],T=s[w.materialIndex],C=Math.max(w.start,p.start),M=Math.min(l.count,Math.min(w.start+w.count,p.start+p.count));for(let D=C,k=M;D<k;D+=3){const I=D,L=D+1,O=D+2;i=w7(this,T,e,r,c,u,f,I,L,O),i&&(i.faceIndex=Math.floor(D/3),i.face.materialIndex=w.materialIndex,n.push(i))}}else{const A=Math.max(0,p.start),g=Math.min(l.count,p.start+p.count);for(let w=A,T=g;w<T;w+=3){const C=w,M=w+1,D=w+2;i=w7(this,s,e,r,c,u,f,C,M,D),i&&(i.faceIndex=Math.floor(w/3),n.push(i))}}}}function PXe(t,e,n,r,i,a,s,o){let l;if(e.side===ca?l=r.intersectTriangle(s,a,i,!0,o):l=r.intersectTriangle(i,a,s,e.side===Uu,o),l===null)return null;b7.copy(o),b7.applyMatrix4(t.matrixWorld);const c=n.ray.origin.distanceTo(b7);return c<n.near||c>n.far?null:{distance:c,point:b7.clone(),object:t}}function w7(t,e,n,r,i,a,s,o,l,c){t.getVertexPosition(o,x7),t.getVertexPosition(l,v7),t.getVertexPosition(c,y7);const u=PXe(t,e,n,r,x7,v7,y7,ere);if(u){const f=new Pe;xh.getBarycoord(ere,x7,v7,y7,f),i&&(u.uv=xh.getInterpolatedAttribute(i,o,l,c,f,new tn)),a&&(u.uv1=xh.getInterpolatedAttribute(a,o,l,c,f,new tn)),s&&(u.normal=xh.getInterpolatedAttribute(s,o,l,c,f,new Pe),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const h={a:o,b:l,c,normal:new Pe,materialIndex:0};xh.getNormal(x7,v7,y7,h.normal),u.face=h,u.barycoord=f}return u}class Pq extends Yo{constructor(e=null,n=1,r=1,i,a,s,o,l,c=sa,u=sa,f,h){super(null,s,o,l,c,u,i,a,f,h),this.isDataTexture=!0,this.image={data:e,width:n,height:r},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Rg extends Is{constructor(e,n,r,i=1){super(e,n,r),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const SI=new Pe,kXe=new Pe,LXe=new Vr;class L1{constructor(e=new Pe(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=SI.subVectors(r,n).cross(kXe.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,r=!0){const i=e.delta(SI),a=this.normal.dot(i);if(a===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;
vendor: 1,223 bytes, line 48
48const s=-(e.start.dot(this.normal)+this.constant)/a;return r===!0&&(s<0||s>1)?null:n.copy(e.start).addScaledVector(i,s)}intersectsLine(e){const n=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return n<0&&r>0||r<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const r=n||LXe.getNormalMatrix(e),i=this.coplanarPoint(SI).applyMatrix4(e),a=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(a),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 Hx=new ox,OXe=new tn(.5,.5),S7=new Pe;class h6{constructor(e=new L1,n=new L1,r=new L1,i=new L1,a=new L1,s=new L1){this.planes=[e,n,r,i,a,s]}set(e,n,r,i,a,s){const o=this.planes;return o[0].copy(e),o[1].copy(n),o[2].copy(r),o[3].copy(i),o[4].copy(a),o[5].copy(s),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=Iu,r=!1){const i=this.planes,a=e.elements,s=a[0],o=a[1],l=a[2],c=a[3],u=a[4],f=
vendor: 11,446 bytes, line 48
48a[5],h=a[6],p=a[7],A=a[8],g=a[9],w=a[10],T=a[11],C=a[12],M=a[13],D=a[14],k=a[15];if(i[0].setComponents(c-s,p-u,T-A,k-C).normalize(),i[1].setComponents(c+s,p+u,T+A,k+C).normalize(),i[2].setComponents(c+o,p+f,T+g,k+M).normalize(),i[3].setComponents(c-o,p-f,T-g,k-M).normalize(),r)i[4].setComponents(l,h,w,D).normalize(),i[5].setComponents(c-l,p-h,T-w,k-D).normalize();else if(i[4].setComponents(c-l,p-h,T-w,k-D).normalize(),n===Iu)i[5].setComponents(c+l,p+h,T+w,k+D).normalize();else if(n===_d)i[5].setComponents(l,h,w,D).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(),Hx.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Hx.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Hx)}intersectsSprite(e){Hx.center.set(0,0,0);const n=OXe.distanceTo(e.center);return Hx.radius=.7071067811865476+n,Hx.applyMatrix4(e.matrixWorld),this.intersectsSphere(Hx)}intersectsSphere(e){const n=this.planes,r=e.center,i=-e.radius;for(let a=0;a<6;a++)if(n[a].distanceToPoint(r)<i)return!1;return!0}intersectsBox(e){const n=this.planes;for(let r=0;r<6;r++){const i=n[r];if(S7.x=i.normal.x>0?e.max.x:e.min.x,S7.y=i.normal.y>0?e.max.y:e.min.y,S7.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(S7)<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)}}const u1=new Fr,f1=new h6;class kq{constructor(){this.coordinateSystem=Iu}intersectsObject(e,n){if(!n.isArrayCamera||n.cameras.length===0)return!1;for(let r=0;r<n.cameras.length;r++){const i=n.cameras[r];if(u1.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),f1.setFromProjectionMatrix(u1,i.coordinateSystem,i.reversedDepth),f1.intersectsObject(e))return!0}return!1}intersectsSprite(e,n){if(!n||!n.cameras||n.cameras.length===0)return!1;for(let r=0;r<n.cameras.length;r++){const i=n.cameras[r];if(u1.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),f1.setFromProjectionMatrix(u1,i.coordinateSystem,i.reversedDepth),f1.intersectsSprite(e))return!0}return!1}intersectsSphere(e,n){if(!n||!n.cameras||n.cameras.length===0)return!1;for(let r=0;r<n.cameras.length;r++){const i=n.cameras[r];if(u1.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),f1.setFromProjectionMatrix(u1,i.coordinateSystem,i.reversedDepth),f1.intersectsSphere(e))return!0}return!1}intersectsBox(e,n){if(!n||!n.cameras||n.cameras.length===0)return!1;for(let r=0;r<n.cameras.length;r++){const i=n.cameras[r];if(u1.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),f1.setFromProjectionMatrix(u1,i.coordinateSystem,i.reversedDepth),f1.intersectsBox(e))return!0}return!1}containsPoint(e,n){if(!n||!n.cameras||n.cameras.length===0)return!1;for(let r=0;r<n.cameras.length;r++){const i=n.cameras[r];if(u1.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),f1.setFromProjectionMatrix(u1,i.coordinateSystem,i.reversedDepth),f1.containsPoint(e))return!0}return!1}clone(){return new kq}}class p6 extends nu{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Xn(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const dR=new Pe,hR=new Pe,tre=new Fr,Hb=new qT,T7=new ox,TI=new Pe,nre=new Pe;class qP extends ys{constructor(e=new da,n=new p6){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=n,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,r=[0];for(let i=1,a=n.count;i<a;i++)dR.fromBufferAttribute(n,i-1),hR.fromBufferAttribute(n,i),r[i]=r[i-1],r[i]+=dR.distanceTo(hR);e.setAttribute("lineDistance",new Ui(r,1))}else Kt("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,n){const r=this.geometry,i=this.matrixWorld,a=e.params.Line.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),T7.copy(r.boundingSphere),T7.applyMatrix4(i),T7.radius+=a,e.ray.intersectsSphere(T7)===!1)return;tre.copy(i).invert(),Hb.copy(e.ray).applyMatrix4(tre);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),l=o*o,c=this.isLineSegments?2:1,u=r.index,h=r.attributes.position;if(u!==null){const p=Math.max(0,s.start),A=Math.min(u.count,s.start+s.count);for(let g=p,w=A-1;g<w;g+=c){const T=u.getX(g),C=u.getX(g+1),M=E7(this,e,Hb,l,T,C,g);M&&n.push(M)}if(this.isLineLoop){const g=u.getX(A-1),w=u.getX(p),T=E7(this,e,Hb,l,g,w,A-1);T&&n.push(T)}}else{const p=Math.max(0,s.start),A=Math.min(h.count,s.start+s.count);for(let g=p,w=A-1;g<w;g+=c){const T=E7(this,e,Hb,l,g,g+1,g);T&&n.push(T)}if(this.isLineLoop){const g=E7(this,e,Hb,l,A-1,p,A-1);g&&n.push(g)}}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}}function E7(t,e,n,r,i,a,s){const o=t.geometry.attributes.position;if(dR.fromBufferAttribute(o,i),hR.fromBufferAttribute(o,a),n.distanceSqToSegment(dR,hR,TI,nre)>r)return;TI.applyMatrix4(t.matrixWorld);const c=e.ray.origin.distanceTo(TI);if(!(c<e.near||c>e.far))return{distance:c,point:nre.clone().applyMatrix4(t.matrixWorld),index:s,face:null,faceIndex:null,barycoord:null,object:t}}const rre=new Pe,ire=new Pe;class qme extends qP{constructor(e,n){super(e,n),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,r=[];for(let i=0,a=n.count;i<a;i+=2)rre.fromBufferAttribute(n,i),ire.fromBufferAttribute(n,i+1),r[i]=i===0?0:r[i-1],r[i+1]=r[i]+rre.distanceTo(ire);e.setAttribute("lineDistance",new Ui(r,1))}else Kt("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class Lq extends nu{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Xn(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const are=new Fr,lj=new qT,M7=new ox,C7=new Pe;class FXe extends ys{constructor(e=new da,n=new Lq){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=n,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,n){const r=this.geometry,i=this.matrixWorld,a=e.params.Points.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),M7.copy(r.boundingSphere),M7.applyMatrix4(i),M7.radius+=a,e.ray.intersectsSphere(M7)===!1)return;are.copy(i).invert(),lj.copy(e.ray).applyMatrix4(are);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),l=o*o,c=r.index,f=r.attributes.position;if(c!==null){const h=Math.max(0,s.start),p=Math.min(c.count,s.start+s.count);for(let A=h,g=p;A<g;A++){const w=c.getX(A);C7.fromBufferAttribute(f,w),sre(C7,w,l,i,e,n,this)}}else{const h=Math.max(0,s.start),p=Math.min(f.count,s.start+s.count);for(let A=h,g=p;A<g;A++)C7.fromBufferAttribute(f,A),sre(C7,A,l,i,e,n,this)}}updateMorphTargets(){const n=this.geometry.morphAttributes,r=Object.keys(n);if(r.length>0){const i=n[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}}function sre(t,e,n,r,i,a,s){const o=lj.distanceSqToPoint(t);if(o<n){const l=new Pe;lj.closestPointToPoint(t,l),l.applyMatrix4(r);const c=i.ray.origin.distanceTo(l);if(c<i.near||c>i.far)return;a.push({distance:c,distanceToRay:Math.sqrt(o),point:l,index:e,face:null,faceIndex:null,barycoord:null,object:s})}}class Oq extends Yo{constructor(e,n){super({width:e,height:n}),this.isFramebufferTexture=!0,this.magFilter=sa,this.minFilter=sa,this.generateMipmaps=!1,this.needsUpdate=!0}}class m6 extends Yo{constructor(e=[],n=Zh,r,i,a,s,o,l,c,u){super(e,n,r,i,a,s,o,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class hc extends Yo{constructor(e,n,r=_a,i,a,s,o=sa,l=sa,c,u=Gl,f=1){if(u!==Gl&&u!==Wc)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");const h={width:e,height:n,depth:f};super(h,i,a,s,o,l,u,r,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Tq(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}class Wme extends hc{constructor(e,n=_a,r=Zh,i,a,s=sa,o=sa,l,c=Gl){const u={width:e,height:e,depth:1},f=[u,u,u,u,u,u];super(e,e,n,r,i,a,s,o,l,c),this.image=f,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}}class Zme extends Yo{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}}class lx extends da{constructor(e=1,n=1,r=1,i=1,a=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:i,heightSegments:a,depthSegments:s};const o=this;i=Math.floor(i),a=Math.floor(a),s=Math.floor(s);const l=[],c=[],u=[],f=[];let h=0,p=0;A("z","y","x",-1,-1,r,n,e,s,a,0),A("z","y","x",1,-1,r,n,-e,s,a,1),A("x","z","y",1,1,e,r,n,i,s,2),A("x","z","y",1,-1,e,r,-n,i,s,3),A("x","y","z",1,-1,e,n,r,i,a,4),A("x","y","z",-1,-1,e,n,-r,i,a,5),this.setIndex(l),this.setAttribute("position",new Ui(c,3)),this.setAttribute("normal",new Ui(u,3)),this.setAttribute("uv",new Ui(f,2));function A(g,w,T,C,M,D,k,I,L,O,B){const G=D/L,j=k/O,z=D/2,Q=k/2,ee=I/2,Z=L+1,X=O+1;let K=0,se=0;const ae=new Pe;for(let J=0;J<X;J++){const oe=J*j-Q;for(let te=0;te<Z;te++){const he=te*G-z;ae[g]=he*C,ae[w]=oe*M,ae[T]=ee,c.push(ae.x,ae.y,ae.z),ae[g]=0,ae[w]=0,ae[T]=I>0?1:-1,u.push(ae.x,ae.y,ae.z),f.push(te/L),f.push(1-J/O),K+=1}}for(let J=0;J<O;J++)for(let oe=0;oe<L;oe++){const te=h+oe+Z*J,he=h+oe+Z*(J+1),me=h+(oe+1)+Z*(J+1),de=h+(oe+1)+Z*J;l.push(te,he,de),l.push(he,me,de),se+=6}o.addGroup(p,se,B),p+=se,h+=K}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new lx(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}class WP extends da{constructor(e=1,n=32,r=0,i=Math.PI*2){super(),this.type="CircleGeometry",this.parameters={radiu
vendor: 4,903 bytes, line 48
48s:e,segments:n,thetaStart:r,thetaLength:i},n=Math.max(3,n);const a=[],s=[],o=[],l=[],c=new Pe,u=new tn;s.push(0,0,0),o.push(0,0,1),l.push(.5,.5);for(let f=0,h=3;f<=n;f++,h+=3){const p=r+f/n*i;c.x=e*Math.cos(p),c.y=e*Math.sin(p),s.push(c.x,c.y,c.z),o.push(0,0,1),u.x=(s[h]/e+1)/2,u.y=(s[h+1]/e+1)/2,l.push(u.x,u.y)}for(let f=1;f<=n;f++)a.push(f,f+1,0);this.setIndex(a),this.setAttribute("position",new Ui(s,3)),this.setAttribute("normal",new Ui(o,3)),this.setAttribute("uv",new Ui(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new WP(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class ZP extends da{constructor(e=1,n=1,r=1,i=32,a=1,s=!1,o=0,l=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:n,height:r,radialSegments:i,heightSegments:a,openEnded:s,thetaStart:o,thetaLength:l};const c=this;i=Math.floor(i),a=Math.floor(a);const u=[],f=[],h=[],p=[];let A=0;const g=[],w=r/2;let T=0;C(),s===!1&&(e>0&&M(!0),n>0&&M(!1)),this.setIndex(u),this.setAttribute("position",new Ui(f,3)),this.setAttribute("normal",new Ui(h,3)),this.setAttribute("uv",new Ui(p,2));function C(){const D=new Pe,k=new Pe;let I=0;const L=(n-e)/r;for(let O=0;O<=a;O++){const B=[],G=O/a,j=G*(n-e)+e;for(let z=0;z<=i;z++){const Q=z/i,ee=Q*l+o,Z=Math.sin(ee),X=Math.cos(ee);k.x=j*Z,k.y=-G*r+w,k.z=j*X,f.push(k.x,k.y,k.z),D.set(Z,L,X).normalize(),h.push(D.x,D.y,D.z),p.push(Q,1-G),B.push(A++)}g.push(B)}for(let O=0;O<i;O++)for(let B=0;B<a;B++){const G=g[B][O],j=g[B+1][O],z=g[B+1][O+1],Q=g[B][O+1];(e>0||B!==0)&&(u.push(G,j,Q),I+=3),(n>0||B!==a-1)&&(u.push(j,z,Q),I+=3)}c.addGroup(T,I,0),T+=I}function M(D){const k=A,I=new tn,L=new Pe;let O=0;const B=D===!0?e:n,G=D===!0?1:-1;for(let z=1;z<=i;z++)f.push(0,w*G,0),h.push(0,G,0),p.push(.5,.5),A++;const j=A;for(let z=0;z<=i;z++){const ee=z/i*l+o,Z=Math.cos(ee),X=Math.sin(ee);L.x=B*X,L.y=w*G,L.z=B*Z,f.push(L.x,L.y,L.z),h.push(0,G,0),I.x=Z*.5+.5,I.y=X*.5*G+.5,p.push(I.x,I.y),A++}for(let z=0;z<i;z++){const Q=k+z,ee=j+z;D===!0?u.push(ee,ee+1,Q):u.push(ee+1,ee,Q),O+=3}c.addGroup(T,O,D===!0?1:2),T+=O}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new ZP(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class t1{constructor(){this.type="Curve",this.arcLengthDivisions=200,this.needsUpdate=!1,this.cacheArcLengths=null}getPoint(){Kt("Curve: .getPoint() not implemented.")}getPointAt(e,n){const r=this.getUtoTmapping(e);return this.getPoint(r,n)}getPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return n}getSpacedPoints(e=5){const n=[];for(let r=0;r<=e;r++)n.push(this.getPointAt(r/e));return n}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const n=[];let r,i=this.getPoint(0),a=0;n.push(0);for(let s=1;s<=e;s++)r=this.getPoint(s/e),a+=r.distanceTo(i),n.push(a),i=r;return this.cacheArcLengths=n,n}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,n=null){const r=this.getLengths();let i=0;const a=r.length;let s;n?s=n:s=e*r[a-1];let o=0,l=a-1,c;for(;o<=l;)if(i=Math.floor(o+(l-o)/2),c=r[i]-s,c<0)o=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,r[i]===s)return i/(a-1);const u=r[i],h=r[i+1]-u,p=(s-u)/h;return(i+p)/(a-1)}getTangent(e,n){let i=e-1e-4,a=e+1e-4;i<0&&(i=0),a>1&&(a=1);const s=this.getPoint(i),o=this.getPoint(a),l=n||(s.isVector2?new tn:new Pe);return l.copy(o).sub(s).normalize(),l}getTangentAt(e,n){const r=this.getUtoTmapping(e);return this.getTangent(r,n)}computeFrenetFrames(e,n=!1){const r=new Pe,i=[],a=[],s=[],o=new Pe,l=new Fr;for(let p=0;p<=e;p++){const A=p/e;i[p]=this.getTangentAt(A,new Pe)}a[0]=new Pe,s[0]=new Pe;let c=Number.MAX_VALUE;const u=Math.abs(i[0].x),f=Math.abs(i[0].y),h=Math.abs(i[0].z);u<=c&&(c=u,r.set(1,0,0)),f<=c&&(c=f,r.set(0,1,0)),h<=c&&r.set(0,0,1),o.crossVectors(i[0],r).normalize(),a[0].crossVectors(i[0],o),s[0].crossVectors(i[0],a[0]);for(let p=1;p<=e;p++){if(a[p]=a[p-1].clone(),s[p]=s[p-1].clone(),o.crossVectors(i[p-1],i[p]),o.length()>Number.EPSILON){o.normalize();const A=Math.acos(Hr(i[p-1].dot(i[p]),-1,1));a[p].applyMatrix4(l.makeRotationAxis(o,A))}s[p].crossVectors(i[p],a[p])}if(n===!0){let p=Math.acos(Hr(a[0].dot(a[e]),-1,1));p/=e,i[0].dot(o.crossVectors(a[0],a[e]))>0&&(p=-p);for(let A=1;A<=e;A++)a[A].applyMatrix4(l.makeRotationAxis(i[A],p*A)),s[A].crossVectors(i[A],a[A])}return{tangents:i,normals:a,binormals:s}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.7,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.t
vendor: 18,085 bytes, line 48
48ype,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Fq extends t1{constructor(e=0,n=0,r=1,i=1,a=0,s=Math.PI*2,o=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=n,this.xRadius=r,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=s,this.aClockwise=o,this.aRotation=l}getPoint(e,n=new tn){const r=n,i=Math.PI*2;let a=this.aEndAngle-this.aStartAngle;const s=Math.abs(a)<Number.EPSILON;for(;a<0;)a+=i;for(;a>i;)a-=i;a<Number.EPSILON&&(s?a=0:a=i),this.aClockwise===!0&&!s&&(a===i?a=-i:a=a-i);const o=this.aStartAngle+e*a;let l=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){const u=Math.cos(this.aRotation),f=Math.sin(this.aRotation),h=l-this.aX,p=c-this.aY;l=h*u-p*f+this.aX,c=h*f+p*u+this.aY}return r.set(l,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}class IXe extends Fq{constructor(e,n,r,i,a,s){super(e,n,r,r,i,a,s),this.isArcCurve=!0,this.type="ArcCurve"}}function Iq(){let t=0,e=0,n=0,r=0;function i(a,s,o,l){t=a,e=o,n=-3*a+3*s-2*o-l,r=2*a-2*s+o+l}return{initCatmullRom:function(a,s,o,l,c){i(s,o,c*(o-a),c*(l-s))},initNonuniformCatmullRom:function(a,s,o,l,c,u,f){let h=(s-a)/c-(o-a)/(c+u)+(o-s)/u,p=(o-s)/u-(l-s)/(u+f)+(l-o)/f;h*=u,p*=u,i(s,o,h,p)},calc:function(a){const s=a*a,o=s*a;return t+e*a+n*s+r*o}}}const ore=new Pe,lre=new Pe,EI=new Iq,MI=new Iq,CI=new Iq;class BXe extends t1{constructor(e=[],n=!1,r="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=n,this.curveType=r,this.tension=i}getPoint(e,n=new Pe){const r=n,i=this.points,a=i.length,s=(a-(this.closed?0:1))*e;let o=Math.floor(s),l=s-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/a)+1)*a:l===0&&o===a-1&&(o=a-2,l=1);let c,u;this.closed||o>0?c=i[(o-1)%a]:(lre.subVectors(i[0],i[1]).add(i[0]),c=lre);const f=i[o%a],h=i[(o+1)%a];if(this.closed||o+2<a?u=i[(o+2)%a]:(ore.subVectors(i[a-1],i[a-2]).add(i[a-1]),u=ore),this.curveType==="centripetal"||this.curveType==="chordal"){const p=this.curveType==="chordal"?.5:.25;let A=Math.pow(c.distanceToSquared(f),p),g=Math.pow(f.distanceToSquared(h),p),w=Math.pow(h.distanceToSquared(u),p);g<1e-4&&(g=1),A<1e-4&&(A=g),w<1e-4&&(w=g),EI.initNonuniformCatmullRom(c.x,f.x,h.x,u.x,A,g,w),MI.initNonuniformCatmullRom(c.y,f.y,h.y,u.y,A,g,w),CI.initNonuniformCatmullRom(c.z,f.z,h.z,u.z,A,g,w)}else this.curveType==="catmullrom"&&(EI.initCatmullRom(c.x,f.x,h.x,u.x,this.tension),MI.initCatmullRom(c.y,f.y,h.y,u.y,this.tension),CI.initCatmullRom(c.z,f.z,h.z,u.z,this.tension));return r.set(EI.calc(l),MI.calc(l),CI.calc(l)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const i=e.points[n];this.points.push(i.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let n=0,r=this.points.length;n<r;n++){const i=this.points[n];e.points.push(i.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const i=e.points[n];this.points.push(new Pe().fromArray(i))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function cre(t,e,n,r,i){const a=(r-e)*.5,s=(i-n)*.5,o=t*t,l=t*o;return(2*n-2*r+a+s)*l+(-3*n+3*r-2*a-s)*o+a*t+n}function UXe(t,e){const n=1-t;return n*n*e}function VXe(t,e){return 2*(1-t)*t*e}function jXe(t,e){return t*t*e}function dS(t,e,n,r){return UXe(t,e)+VXe(t,n)+jXe(t,r)}function HXe(t,e){const n=1-t;return n*n*n*e}function GXe(t,e){const n=1-t;return 3*n*n*t*e}function zXe(t,e){return 3*(1-t)*t*t*e}function $Xe(t,e){return t*t*t*e}function hS(t,e,n,r,i){return HXe(t,e)+GXe(t,n)+zXe(t,r)+$Xe(t,i)}class Yme extends t1{constructor(e=new tn,n=new tn,r=new tn,i=new tn){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=n,this.v2=r,this.v3=i}getPoint(e,n=new tn){const r=n,i=this.v0,a=this.v1,s=this.v2,o=this.v3;return r.set(hS(e,i.x,a.x,s.x,o.x),hS(e,i.y,a.y,s.y,o.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Xme extends t1{constructor(e=new Pe,n=new Pe,r=new Pe,i=new Pe){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=n,this.v2=r,this.v3=i}getPoint(e,n=new Pe){const r=n,i=this.v0,a=this.v1,s=this.v2,o=this.v3;return r.set(hS(e,i.x,a.x,s.x,o.x),hS(e,i.y,a.y,s.y,o.y),hS(e,i.z,a.z,s.z,o.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Qme extends t1{constructor(e=new tn,n=new tn){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=n}getPoint(e,n=new tn){const r=n;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,n){return this.getPoint(e,n)}getTangent(e,n=new tn){return n.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,n){return this.getTangent(e,n)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class qXe extends t1{constructor(e=new Pe,n=new Pe){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=n}getPoint(e,n=new Pe){const r=n;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,n){return this.getPoint(e,n)}getTangent(e,n=new Pe){return n.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,n){return this.getTangent(e,n)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Kme extends t1{constructor(e=new tn,n=new tn,r=new tn){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=n,this.v2=r}getPoint(e,n=new tn){const r=n,i=this.v0,a=this.v1,s=this.v2;return r.set(dS(e,i.x,a.x,s.x),dS(e,i.y,a.y,s.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Jme extends t1{constructor(e=new Pe,n=new Pe,r=new Pe){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=n,this.v2=r}getPoint(e,n=new Pe){const r=n,i=this.v0,a=this.v1,s=this.v2;return r.set(dS(e,i.x,a.x,s.x),dS(e,i.y,a.y,s.y),dS(e,i.z,a.z,s.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class e2e extends t1{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,n=new tn){const r=n,i=this.points,a=(i.length-1)*e,s=Math.floor(a),o=a-s,l=i[s===0?s:s-1],c=i[s],u=i[s>i.length-2?i.length-1:s+1],f=i[s>i.length-3?i.length-1:s+2];return r.set(cre(o,l.x,c.x,u.x,f.x),cre(o,l.y,c.y,u.y,f.y)),r}copy(e){super.copy(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const i=e.points[n];this.points.push(i.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let n=0,r=this.points.length;n<r;n++){const i=this.points[n];e.points.push(i.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let n=0,r=e.points.length;n<r;n++){const i=e.points[n];this.points.push(new tn().fromArray(i))}return this}}var pR=Object.freeze({__proto__:null,ArcCurve:IXe,CatmullRomCurve3:BXe,CubicBezierCurve:Yme,CubicBezierCurve3:Xme,EllipseCurve:Fq,LineCurve:Qme,LineCurve3:qXe,QuadraticBezierCurve:Kme,QuadraticBezierCurve3:Jme,SplineCurve:e2e});class WXe extends t1{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),n=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(n)){const r=e.isVector2===!0?"LineCurve":"LineCurve3";this.curves.push(new pR[r](n,e))}return this}getPoint(e,n){const r=e*this.getLength(),i=this.getCurveLengths();let a=0;for(;a<i.length;){if(i[a]>=r){const s=i[a]-r,o=this.curves[a],l=o.getLength(),c=l===0?0:1-s/l;return o.getPointAt(c,n)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let n=0;for(let r=0,i=this.curves.length;r<i;r++)n+=this.curves[r].getLength(),e.push(n);return this.cacheLengths=e,e}getSpacedPoints(e=40){const n=[];for(let r=0;r<=e;r++)n.push(this.getPoint(r/e));return this.autoClose&&n.push(n[0]),n}getPoints(e=12){const n=[];let r;for(let i=0,a=this.curves;i<a.length;i++){const s=a[i],o=s.isEllipseCurve?e*2:s.isLineCurve||s.isLineCurve3?1:s.isSplineCurve?e*s.points.length:e,l=s.getPoints(o);for(let c=0;c<l.length;c++){const u=l[c];r&&r.equals(u)||(n.push(u),r=u)}}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(e){super.copy(e),this.curves=[];for(let n=0,r=e.curves.length;n<r;n++){const i=e.curves[n];this.curves.push(i.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let n=0,r=this.curves.length;n<r;n++){const i=this.curves[n];e.curves.push(i.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let n=0,r=e.curves.length;n<r;n++){const i=e.curves[n];this.curves.push(new pR[i.type]().fromJSON(i))}return this}}let cj=class extends WXe{constructor(e){super(),this.type="Path",this.currentPoint=new tn,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let n=1,r=e.length;n<r;n++)this.lineTo(e[n].x,e[n].y);return this}moveTo(e,n){return this.currentPoint.set(e,n),this}lineTo(e,n){const r=new Qme(this.currentPoint.clone(),new tn(e,n));return this.curves.push(r),this.currentPoint.set(e,n),this}quadraticCurveTo(e,n,r,i){const a=new Kme(this.currentPoint.clone(),new tn(e,n),new tn(r,i));return this.curves.push(a),this.currentPoint.set(r,i),this}bezierCurveTo(e,n,r,i,a,s){const o=new Yme(this.currentPoint.clone(),new tn(e,n),new tn(r,i),new tn(a,s));return this.curves.push(o),this.currentPoint.set(a,s),this}splineThru(e){const n=[this.currentPoint.clone()].concat(e),r=new e2e(n);return this.curves.push(r),this.currentPoint.copy(e[e.length-1]),this}arc(e,n,r,i,a,s){const o=this.currentPoint.x,l=this.currentPoint.y;return this.absarc(e+o,n+l,r,i,a,s),this}absarc(e,n,r,i,a,s){return this.absellipse(e,n,r,r,i,a,s),this}ellipse(e,n,r,i,a,s,o,l){const c=this.currentPoint.x,u=this.currentPoint.y;return this.absellipse(e+c,n+u,r,i,a,s,o,l),this}absellipse(e,n,r,i,a,s,o,l){const c=new Fq(e,n,r,i,a,s,o,l);if(this.curves.length>0){const f=c.getPoint(0);f.equals(this.currentPoint)||this.lineTo(f.x,f.y)}this.curves.push(c);const u=c.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}};class j9 extends cj{constructor(e){super(e),this.uuid=sp(),this.type="Shape",this.holes=[]}getPointsHoles(e){const n=[];for(let r=0,i=this.holes.length;r<i;r++)n[r]=this.holes[r].getPoints(e);return n}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let n=0,r=e.holes.length;n<r;n++){const i=e.holes[n];this.holes.push(i.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let n=0,r=this.holes.length;n<r;n++){const i=this.holes[n];e.holes.push(i.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let n=0,r=e.holes.length;n<r;n++){const i=e.holes[n];this.holes.push(new cj().fromJSON(i))}return this}}function ZXe(t,e,n=2){const r=e&&e.length,i=r?e[0]*n:t.length;let a=t2e(t,0,i,n,!0);const s=[];if(!a||a.next===a.prev)return s;let o,l,c;if(r&&(a=JXe(t,e,a,n)),t.length>80*n){o=t[0],l=t[1];let u=o,f=l;for(let h=n;h<i;h+=n){const p=t[h],A=t[h+1];p<o&&(o=p),A<l&&(l=A),p>u&&(u=p),A>f&&(f=A)}c=Math.max(u-o,f-l),c=c!==0?32767/c:0}return k5(a,s,n,o,l,c,0),s}function t2e(t,e,n,r,i){let a;if(i===uQe(t,e,n,r)>0)for(let s=e;s<n;s+=r)a=ure(s/r|0,t[s],t[s+1],a);else for(let s=n-r;s>=e;s-=r)a=ure(s/r|0,t[s],t[s+1],a);return a&&w_(a,a.next)&&(O5(a),a=a.next),a}function gy(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(w_(n,n.next)||Ys(n.prev,n,n.next)===0)){if(O5(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function k5(t,e,n,r,i,a,s){if(!t)return;!s&&a&&iQe(t,r,i,a);let o=t;for(;t.prev!==t.next;){const l=t.prev,c=t.next;if(a?XXe(t,r,i,a):YXe(t)){e.push(l.i,t.i,c.i),O5(t),t=c.next,o=c.next;continue}if(t=c,t===o){s?s===1?(t=QXe(gy(t),e),k5(t,e,n,r,i,a,2)):s===2&&KXe(t,e,n,r,i,a):k5(gy(t),e,n,r,i,a,1);break}}}function YXe(t){const e=t.prev,n=t,r=t.next;if(Ys(e,n,r)>=0)return!1;const i=e.x,a=n.x,s=r.x,o=e.y,l=n.y,c=r.y,u=Math.min(i,a,s),f=Math.min(o,l,c),h=Math.max(i,a,s),p=Math.max(o,l,c);let A=r.next;for(;A!==e;){if(A.x>=u&&A.x<=h&&A.y>=f&&A.y<=p&&Mw(i,o,a,l,s,c,A.x,A.y)&&Ys(A.prev,A,A.next)>=0)return!1;A=A.next}return!0}function XXe(t,e,n,r){const i=t.prev,a=t,s=t.next;if(Ys(i,a,s)>=0)return!1;const o=i.x,l=a.x,c=s.x,u=i.y,f=a.y,h=s.y,p=Math.min(o,l,c),A=Math.min(u,f,h),g=Math.max(o,l,c),w=Math.max(u,f,h),T=uj(p,A,e,n,r),C=uj(g,w,e,n,r);let M=t.prevZ,D=t.nextZ;for(;M&&M.z>=T&&D&&D.z<=C;){if(M.x>=p&&M.x<=g&&M.y>=A&&M.y<=w&&M!==i&&M!==s&&Mw(o,u,l,f,c,h,M.x,M.y)&&Ys(M.prev,M,M.next)>=0||(M=M.prevZ,D.x>=p&&D.x<=g&&D.y>=A&&D.y<=w&&D!==i&&D!==s&&Mw(o,u,l,f,c,h,D.x,D.y)&&Ys(D.prev,D,D.next)>=0))return!1;D=D.nextZ}for(;M&&M.z>=T;){if(M.x>=p&&M.x<=g&&M.y>=A&&M.y<=w&&M!==i&&M!==s&&Mw(o,u,l,f,c,h,M.x,M.y)&&Ys(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;D&&D.z<=C;){if(D.x>=p&&D.x<=g&&D.y>=A&&D.y<=w&&D!==i&&D!==s&&Mw(o,u,l,f,c,h,D.x,D.y)&&Ys(D.prev,D,D.next)>=0)return!1;D=D.nextZ}return!0}function QXe(t,e){let n=t;do{const r=n.prev,i=n.next.next;!w_(r,i)&&r2e(r,n,n.next,i)&&L5(r,i)&&L5(i,r)&&(e.push(r.i,n.i,i.i),O5(n),O5(n.next),n=t=i),n=n.next}while(n!==t);return gy(n)}function KXe(t,e,n,r,i,a){let s=t;do{let o=s.next.next;for(;o!==s.prev;){if(s.i!==o.i&&oQe(s,o)){let l=i2e(s,o);s=gy(s,s.next),l=gy(l,l.next),k5(s,e,n,r,i,a,0),k5(l,e,n,r,i,a,0);return}o=o.next}s=s.next}while(s!==t)}function JXe(t,e,n,r){const i=[];for(let a=0,s=e.length;a<s;a++){const o=e[a]*r,l=a<s-1?e[a+1]*r:t.length,c=t2e(t,o,l,r,!1);c===c.next&&(c.steiner=!0),i.push(sQe(c))}i.sort(eQe);for(let a=0;a<i.length;a++)n=tQe(i[a],n);return n}function eQe(t,e){let n=t.x-e.x;if(n===0&&(n=t.y-e.y,n===0)){const r=(t.next.y-t.y)/(t.next.x-t.x),i=(e.next.y-e.y)/(e.next.x-e.x);n=r-i}return n}function tQe(t,e){const n=nQe(t,e);if(!n)return e;const r=i2e(n,t);return gy(r,r.next),gy(n,n.next)}function nQe(t,e){let n=e;const r=t.x,i=t.y;let a=-1/0,s;if(w_(t,n))return n;do{if(w_(t,n.next))return n.next;if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const f=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>a&&(a=f,s=n.x<n.next.x?n:n.next,f===r))return s}n=n.next}while(n!==e);if(!s)return null;const o=s,l=s.x,c=s.y;let u=1/0;n=s;do{if(r>=n.x&&n.x>=l&&r!==n.x&&n2e(i<c?r:a,i,l,c,i<c?a:r,i,n.x,n.y)){const f=Math.abs(i-n.y)/(r-n.x);L5(n,t)&&(f<u||f===u&&(n.x>s.x||n.x===s.x&&rQe(s,n)))&&(s=n,u=f)}n=n.next}while(n!==o);return s}function rQe(t,e){return Ys(t.prev,t,e.prev)<0&&Ys(e.next,t,t.next)<0}function iQe(t,e,n,r){let i=t;do i.z===0&&(i.z=uj(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,aQe(i)}function aQe(t){let e,n=1;do{let r=t,i;t=null;let a=null;for(e=0;r;){e++;let s=r,o=0;for(let c=0;c<n&&(o++,s=s.nextZ,!!s);c++);let l=n;for(;o>0||l>0&&s;)o!==0&&(l===0||!s||r.z<=s.z)?(i=r,r=r.nextZ,o--):(i=s,s=s.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=s}a.nextZ=null,n*=2}while(e>1);return t}function uj(t,e,n,r,i){return t=(t-n)*i|0,e=(e-r)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function sQe(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}function n2e(t,e,n,r,i,a,s,o){return(i-s)*(e-o)>=(t-s)*(a-o)&&(t-s)*(r-o)>
48=(n-s)*(e-o)&&(n-s)*(a-o)>=(i-s)*(r-o)}function Mw(t,e,n,r,i,a,s,o){return!(t===s&&e===o)&&n2e(t,e,n,r,i,a,s,o)}function oQe(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!lQe(t,e)&&(L5(t,e)&&L5(e,t)&&cQe(t,e)&&(Ys(t.prev,t,e.prev)||Ys(t,e.prev,e))||w_(t,e)&&Ys(t.prev,t,t.next)>0&&Ys(e.prev,e,e.next)>0)}function Ys(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w_(t,e){return t.x===e.x&&t.y===e.y}function r2e(t,e,n,r){const i=R7(Ys(t,e,n)),a=R7(Ys(t,e,r)),s=R7(Ys(n,r,t)),o=R7(Ys(n,r,e));return!!(i!==a&&s!==o||i===0&&N7(t,n,e)||a===0&&N7(t,r,e)||s===0&&N7(n,t,r)||o===0&&N7(n,e,r))}function N7(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function R7(t){return t>0?1:t<0?-1:0}function lQe(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&r2e(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function L5(t,e){return Ys(t.prev,t,t.next)<0?Ys(t,e,t.next)>=0&&Ys(t,t.prev,e)>=0:Ys(t,e,t.prev)<0||Ys(t,t.next,e)<0}function cQe(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,a=(t.y+e.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function i2e(t,e){const n=fj(t.i,t.x,t.y),r=fj(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function ure(t,e,n,r){const i=fj(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function O5(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fj(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function uQe(t,e,n,r){let i=0;for(let a=e,s=n-r;a<n;a+=r)i+=(t[s]-t[a])*(t[a+1]+t[s+1]),s=a;return i}class fQe{static triangulate(e,n,r=2){return ZXe(e,n,r)}}class Cv{static area(e){const n=e.length;let r=0;for(let i=n-1,a=0;a<n;i=a++)r+=e[i].x*e[a].y-e[a].x*e[i].y;return r*.5}static isClockWise(e){return Cv.area(e)<0}static triangulateShape(e,n){const r=[],i=[],a=[];fre(e),dre(r,e);let s=e.length;n.forEach(fre);for(let l=0;l<n.length;l++)i.push(s),s+=n[l].length,dre(r,n[l]);const o=fQe.triangulate(r,i);for(let l=0;l<o.length;l+=3)a.push(o.slice(l,l+3));return a}}function fre(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function dre(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class Bq extends da{constructor(e=new j9([new tn(.5,.5),new tn(-.5,.5),new tn(-.5,-.5),new tn(.5,-.5)]),n={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:n},e=Array.isArray(e)?e:[e];const r=this,i=[],a=[];for(let o=0,l=e.length;o<l;o++){const c=e[o];s(c)}this.setAttribute("position",new Ui(i,3)),this.setAttribute("uv",new Ui(a,2)),this.computeVertexNormals();function s(o){const l=[],c=n.curveSegments!==void 0?n.curveSegments:12,u=n.steps!==void 0?n.steps:1,f=n.depth!==void 0?n.depth:1;let h=n.bevelEnabled!==void 0?n.bevelEnabled:!0,p=n.bevelThickness!==void 0?n.bevelThickness:.2,A=n.bevelSize!==void 0?n.bevelSize:p-.1,g=n.bevelOffset!==void 0?n.bevelOffset:0,w=n.bevelSegments!==void 0?n.bevelSegments:3;const T=n.extrudePath,C=n.UVGenerator!==void 0?n.UVGenerator:dQe;let M,D=!1,k,I,L,O;if(T){M=T.getSpacedPoints(u),D=!0,h=!1;const De=T.isCatmullRomCurve3?T.closed:!1;k=T.computeFrenetFrames(u,De),I=new Pe,L=new Pe,O=new Pe}h||(w=0,p=0,A=0,g=0);const B=o.extractPoints(c);let G=B.shape;const j=B.holes;if(!Cv.isClockWise(G)){G=G.reverse();for(let De=0,Xe=j.length;De<Xe;De++){const Ye=j[De];Cv.isClockWise(Ye)&&(j[De]=Ye.reverse())}}function Q(De){const Ye=10000000000000001e-36;let Me=De[0];for(let lt=1;lt<=De.length;lt++){const Ht=lt%De.length,Le=De[Ht],Nt=Le.x-Me.x,Ct=Le.y-Me.y,It=Nt*Nt+Ct*Ct,nt=Math.max(Math.abs(Le.x),Math.abs(Le.y),Math.abs(Me.x),Math.abs(Me.y)),ht=Ye*nt*nt;if(It<=ht){De.splice(Ht,1),lt--;continue}Me=Le}}Q(G),j.forEach(Q);const ee=j.length,Z=G;for(let De=0;De<ee;De++){const Xe=j[De];G=G.concat(Xe)}function X(De,Xe,Ye){return Xe||nn("ExtrudeGeometry: vec does not exist"),De.clone().addScaledVector(Xe,Ye)}const K=G.length;function se(De,Xe,Ye){let Me,lt,Ht;const Le=De.x-Xe.x,Nt=De.y-Xe.y,Ct=Ye.x-De.x,It=Ye.y-De.y,nt=Le*Le+Nt*Nt,ht=Le*It-Nt*Ct;if(Math.abs(ht)>Number.EPSILON){const ve=Math.sqrt(nt),ce=Math.sqrt(Ct*Ct+It*It),je=Xe.x-Nt/ve,dt=Xe.y+Le/ve,ft=Ye.x-It/ce,at=Ye.y+Ct/ce,St=((ft-je)*It-(at-dt)*Ct)/(Le*It-Nt*Ct);Me=je+Le*St-De.x,lt=dt+Nt*St-De.y;const ut=Me*Me+lt*lt;if(ut<=2)return new tn(Me,lt);Ht=Math.sqrt(ut/2)}else{let ve=!1;Le>Number.EPSILON?Ct>Number.EPSILON&&(ve=!0):Le<-Number.EPSILON?Ct<-Number.EPSILON&&(ve=!0):Math.sign(Nt)===Math.sign(It)&&(ve=!0),ve?(Me=-Nt,lt=Le,Ht=Math.sqrt(nt)):(Me=Le,lt=Nt,Ht=Math.sqrt(nt/2))}return new tn(Me/Ht,lt/Ht)}const ae=[];for(let De=0,Xe=Z.length,Ye=Xe-1,Me=De+1;De<Xe;De++,Ye++,Me++)Ye===Xe&&(Ye=0),Me===Xe&&(Me=0),ae[De]=se(Z[De],Z[Ye],Z[Me]);const J=[];let oe,te=ae.concat();for(let De=0,Xe=ee;De<Xe;De++){const Ye=j[De];oe=[];for(let Me=0,lt=Ye.length,Ht=lt-1,Le=Me+1;Me<lt;Me++,Ht++,Le++)Ht===lt&&(Ht=0),Le===lt&&(Le=0),oe[Me]=se(Ye[Me],Ye[Ht],Ye[Le]);J.push(oe),te=te.concat(oe)}let he;if(w===0)he=Cv.triangulateShape(Z,j);else{const De=[],Xe=[];for(let Ye=0;Ye<w;Ye++){const Me=Ye/w,lt=p*Math.cos(Me*Math.PI/2),Ht=A*Math.sin(Me*Math.PI/2)+g;for(let Le=0,Nt=Z.length;Le<Nt;Le++){const Ct=X(Z[Le],ae[Le],Ht);Ne(Ct.x,Ct.y,-lt),Me===0&&De.push(Ct)}for(let Le=0,Nt=ee;Le<Nt;Le++){const Ct=j[Le];oe=J[Le];const It=[];for(let nt=0,ht=Ct.length;nt<ht;nt++){const ve=X(Ct[nt],oe[nt],Ht);Ne(ve.x,ve.y,-lt),Me===0&&It.push(ve)}Me===0&&Xe.push(It)}}
vendor: 23,298 bytes, lines 48-52
48he=Cv.triangulateShape(De,Xe)}const me=he.length,de=A+g;for(let De=0;De<K;De++){const Xe=h?X(G[De],te[De],de):G[De];D?(L.copy(k.normals[0]).multiplyScalar(Xe.x),I.copy(k.binormals[0]).multiplyScalar(Xe.y),O.copy(M[0]).add(L).add(I),Ne(O.x,O.y,O.z)):Ne(Xe.x,Xe.y,0)}for(let De=1;De<=u;De++)for(let Xe=0;Xe<K;Xe++){const Ye=h?X(G[Xe],te[Xe],de):G[Xe];D?(L.copy(k.normals[De]).multiplyScalar(Ye.x),I.copy(k.binormals[De]).multiplyScalar(Ye.y),O.copy(M[De]).add(L).add(I),Ne(O.x,O.y,O.z)):Ne(Ye.x,Ye.y,f/u*De)}for(let De=w-1;De>=0;De--){const Xe=De/w,Ye=p*Math.cos(Xe*Math.PI/2),Me=A*Math.sin(Xe*Math.PI/2)+g;for(let lt=0,Ht=Z.length;lt<Ht;lt++){const Le=X(Z[lt],ae[lt],Me);Ne(Le.x,Le.y,f+Ye)}for(let lt=0,Ht=j.length;lt<Ht;lt++){const Le=j[lt];oe=J[lt];for(let Nt=0,Ct=Le.length;Nt<Ct;Nt++){const It=X(Le[Nt],oe[Nt],Me);D?Ne(It.x,It.y+M[u-1].y,M[u-1].x+Ye):Ne(It.x,It.y,f+Ye)}}}Ae(),Se();function Ae(){const De=i.length/3;if(h){let Xe=0,Ye=K*Xe;for(let Me=0;Me<me;Me++){const lt=he[Me];Fe(lt[2]+Ye,lt[1]+Ye,lt[0]+Ye)}Xe=u+w*2,Ye=K*Xe;for(let Me=0;Me<me;Me++){const lt=he[Me];Fe(lt[0]+Ye,lt[1]+Ye,lt[2]+Ye)}}else{for(let Xe=0;Xe<me;Xe++){const Ye=he[Xe];Fe(Ye[2],Ye[1],Ye[0])}for(let Xe=0;Xe<me;Xe++){const Ye=he[Xe];Fe(Ye[0]+K*u,Ye[1]+K*u,Ye[2]+K*u)}}r.addGroup(De,i.length/3-De,0)}function Se(){const De=i.length/3;let Xe=0;Re(Z,Xe),Xe+=Z.length;for(let Ye=0,Me=j.length;Ye<Me;Ye++){const lt=j[Ye];Re(lt,Xe),Xe+=lt.length}r.addGroup(De,i.length/3-De,1)}function Re(De,Xe){let Ye=De.length;for(;--Ye>=0;){const Me=Ye;let lt=Ye-1;lt<0&&(lt=De.length-1);for(let Ht=0,Le=u+w*2;Ht<Le;Ht++){const Nt=K*Ht,Ct=K*(Ht+1),It=Xe+Me+Nt,nt=Xe+lt+Nt,ht=Xe+lt+Ct,ve=Xe+Me+Ct;Qe(It,nt,ht,ve)}}}function Ne(De,Xe,Ye){l.push(De),l.push(Xe),l.push(Ye)}function Fe(De,Xe,Ye){ge(De),ge(Xe),ge(Ye);const Me=i.length/3,lt=C.generateTopUV(r,i,Me-3,Me-2,Me-1);Ie(lt[0]),Ie(lt[1]),Ie(lt[2])}function Qe(De,Xe,Ye,Me){ge(De),ge(Xe),ge(Me),ge(Xe),ge(Ye),ge(Me);const lt=i.length/3,Ht=C.generateSideWallUV(r,i,lt-6,lt-3,lt-2,lt-1);Ie(Ht[0]),Ie(Ht[1]),Ie(Ht[3]),Ie(Ht[1]),Ie(Ht[2]),Ie(Ht[3])}function ge(De){i.push(l[De*3+0]),i.push(l[De*3+1]),i.push(l[De*3+2])}function Ie(De){a.push(De.x),a.push(De.y)}}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON(),n=this.parameters.shapes,r=this.parameters.options;return hQe(n,r,e)}static fromJSON(e,n){const r=[];for(let a=0,s=e.shapes.length;a<s;a++){const o=n[e.shapes[a]];r.push(o)}const i=e.options.extrudePath;return i!==void 0&&(e.options.extrudePath=new pR[i.type]().fromJSON(i)),new Bq(r,e.options)}}const dQe={generateTopUV:function(t,e,n,r,i){const a=e[n*3],s=e[n*3+1],o=e[r*3],l=e[r*3+1],c=e[i*3],u=e[i*3+1];return[new tn(a,s),new tn(o,l),new tn(c,u)]},generateSideWallUV:function(t,e,n,r,i,a){const s=e[n*3],o=e[n*3+1],l=e[n*3+2],c=e[r*3],u=e[r*3+1],f=e[r*3+2],h=e[i*3],p=e[i*3+1],A=e[i*3+2],g=e[a*3],w=e[a*3+1],T=e[a*3+2];return Math.abs(o-u)<Math.abs(s-c)?[new tn(s,1-l),new tn(c,1-f),new tn(h,1-A),new tn(g,1-T)]:[new tn(o,1-l),new tn(u,1-f),new tn(p,1-A),new tn(w,1-T)]}};function hQe(t,e,n){if(n.shapes=[],Array.isArray(t))for(let r=0,i=t.length;r<i;r++){const a=t[r];n.shapes.push(a.uuid)}else n.shapes.push(t.uuid);return n.options=Object.assign({},e),e.extrudePath!==void 0&&(n.options.extrudePath=e.extrudePath.toJSON()),n}class WT extends da{constructor(e=1,n=1,r=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:r,heightSegments:i};const a=e/2,s=n/2,o=Math.floor(r),l=Math.floor(i),c=o+1,u=l+1,f=e/o,h=n/l,p=[],A=[],g=[],w=[];for(let T=0;T<u;T++){const C=T*h-s;for(let M=0;M<c;M++){const D=M*f-a;A.push(D,-C,0),g.push(0,0,1),w.push(M/o),w.push(1-T/l)}}for(let T=0;T<l;T++)for(let C=0;C<o;C++){const M=C+c*T,D=C+c*(T+1),k=C+1+c*(T+1),I=C+1+c*T;p.push(M,D,I),p.push(D,k,I)}this.setIndex(p),this.setAttribute("position",new Ui(A,3)),this.setAttribute("normal",new Ui(g,3)),this.setAttribute("uv",new Ui(w,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new WT(e.width,e.height,e.widthSegments,e.heightSegments)}}class Fp extends da{constructor(e=1,n=32,r=16,i=0,a=Math.PI*2,s=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:r,phiStart:i,phiLength:a,thetaStart:s,thetaLength:o},n=Math.max(3,Math.floor(n)),r=Math.max(2,Math.floor(r));const l=Math.min(s+o,Math.PI);let c=0;const u=[],f=new Pe,h=new Pe,p=[],A=[],g=[],w=[];for(let T=0;T<=r;T++){const C=[],M=T/r;let D=0;T===0&&s===0?D=.5/n:T===r&&l===Math.PI&&(D=-.5/n);for(let k=0;k<=n;k++){const I=k/n;f.x=-e*Math.cos(i+I*a)*Math.sin(s+M*o),f.y=e*Math.cos(s+M*o),f.z=e*Math.sin(i+I*a)*Math.sin(s+M*o),A.push(f.x,f.y,f.z),h.copy(f).normalize(),g.push(h.x,h.y,h.z),w.push(I+D,1-M),C.push(c++)}u.push(C)}for(let T=0;T<r;T++)for(let C=0;C<n;C++){const M=u[T][C+1],D=u[T][C],k=u[T+1][C],I=u[T+1][C+1];(T!==0||s>0)&&p.push(M,D,I),(T!==r-1||l<Math.PI)&&p.push(D,k,I)}this.setIndex(p),this.setAttribute("position",new Ui(A,3)),this.setAttribute("normal",new Ui(g,3)),this.setAttribute("uv",new Ui(w,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Fp(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class Uq extends da{constructor(e=new Jme(new Pe(-1,-1,0),new Pe(-1,1,0),new Pe(1,1,0)),n=64,r=1,i=8,a=!1){super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:n,radius:r,radialSegments:i,closed:a};const s=e.computeFrenetFrames(n,a);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const o=new Pe,l=new Pe,c=new tn;let u=new Pe;const f=[],h=[],p=[],A=[];g(),this.setIndex(A),this.setAttribute("position",new Ui(f,3)),this.setAttribute("normal",new Ui(h,3)),this.setAttribute("uv",new Ui(p,2));function g(){for(let M=0;M<n;M++)w(M);w(a===!1?n:0),C(),T()}function w(M){u=e.getPointAt(M/n,u);const D=s.normals[M],k=s.binormals[M];for(let I=0;I<=i;I++){const L=I/i*Math.PI*2,O=Math.sin(L),B=-Math.cos(L);l.x=B*D.x+O*k.x,l.y=B*D.y+O*k.y,l.z=B*D.z+O*k.z,l.normalize(),h.push(l.x,l.y,l.z),o.x=u.x+r*l.x,o.y=u.y+r*l.y,o.z=u.z+r*l.z,f.push(o.x,o.y,o.z)}}function T(){for(let M=1;M<=n;M++)for(let D=1;D<=i;D++){const k=(i+1)*(M-1)+(D-1),I=(i+1)*M+(D-1),L=(i+1)*M+D,O=(i+1)*(M-1)+D;A.push(k,I,O),A.push(I,L,O)}}function C(){for(let M=0;M<=n;M++)for(let D=0;D<=i;D++)c.x=M/n,c.y=D/i,p.push(c.x,c.y)}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){return new Uq(new pR[e.path.type]().fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}class pQe extends da{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},e!==null){const n=[],r=new Set,i=new Pe,a=new Pe;if(e.index!==null){const s=e.attributes.position,o=e.index;let l=e.groups;l.length===0&&(l=[{start:0,count:o.count,materialIndex:0}]);for(let c=0,u=l.length;c<u;++c){const f=l[c],h=f.start,p=f.count;for(let A=h,g=h+p;A<g;A+=3)for(let w=0;w<3;w++){const T=o.getX(A+w),C=o.getX(A+(w+1)%3);i.fromBufferAttribute(s,T),a.fromBufferAttribute(s,C),hre(i,a,r)===!0&&(n.push(i.x,i.y,i.z),n.push(a.x,a.y,a.z))}}}else{const s=e.attributes.position;for(let o=0,l=s.count/3;o<l;o++)for(let c=0;c<3;c++){const u=3*o+c,f=3*o+(c+1)%3;i.fromBufferAttribute(s,u),a.fromBufferAttribute(s,f),hre(i,a,r)===!0&&(n.push(i.x,i.y,i.z),n.push(a.x,a.y,a.z))}}this.setAttribute("position",new Ui(n,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}function hre(t,e,n){const r=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`,i=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`;return n.has(r)===!0||n.has(i)===!0?!1:(n.add(r),n.add(i),!0)}class mQe extends nu{constructor(e){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new Xn(0),this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.fog=e.fog,this}}function S_(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const i=t[n][r];if(pre(i))i.isRenderTargetTexture?(Kt("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][r]=null):e[n][r]=i.clone();else if(Array.isArray(i))if(pre(i[0])){const a=[];for(let s=0,o=i.length;s<o;s++)a[s]=i[s].clone();e[n][r]=a}else e[n][r]=i.slice();else e[n][r]=i}}return e}function Au(t){const e={};for(let n=0;n<t.length;n++){const r=S_(t[n]);for(const i in r)e[i]=r[i]}return e}function pre(t){return t&&(t.isColor||t.isMatrix3||t.isMatrix4||t.isVector2||t.isVector3||t.isVector4||t.isTexture||t.isQuaternion)}function AQe(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function a2e(t){const e=t.getRenderTarget();return e===null?t.outputColorSpace:e.isXRRenderTarget===!0?e.texture.colorSpace:Ar.workingColorSpace}const YP={clone:S_,merge:Au};var gQe=`void main() { 49 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 50}`,xQe=`void main() { 51 gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); 52}`;class ru extends nu{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=gQe,this.fragmentShader=xQe,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=S_(e.uniforms),this.uniformsGroups=AQe(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this.defaultAttributeValues=Object.assign({},e.defaultAttributeValues),this.index0AttributeName=e.index0AttributeName,this.uniformsNeedUpdate=e.uniformsNeedUpdate,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const i in this.uniforms){const s=this.uniforms[i].value;s&&s.isTexture?n.uniforms[i]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?n.uniforms[i]={type:"c",value:s.getHex()}:s&&s.isVector2?n.uniforms[i]={type:"v2",value:s.toArray()}:s&&s.isVector3?n.uniforms[i]={type:"v3",value:s.toArray()}:s&&s.isVector4?n.uniforms[i]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?n.uniforms[i]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?n.uniforms[i]={type:"m4",value:s.toArray()}:n.uniforms[i]={value:s}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const 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 vQe extends ru{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class s2e extends nu{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type="MeshStandardMaterial",this.defines={STANDARD:""},this.color=new Xn(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Sf,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yQe extends s2e{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new tn(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Hr(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Xn(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Xn(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Xn(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class o2e extends nu{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Xn(16777215),this.specular=new Xn(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Sf,this.combine=jT,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,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.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class _Qe extends nu{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Xn(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,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.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class bQe extends nu{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class G2 extends nu{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Xn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Sf,this.combine=jT,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,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.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,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.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class wQe extends nu{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=LYe,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class SQe extends nu{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}
52class TQe extends nu{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Xn(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Lh,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this.fog=e.fog,this}}class EQe extends p6{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}const NI={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(mre(t)||(this.files[t]=e))},get:function(t){if(this.enabled!==!1&&!mre(t))return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};function mre(t){try{const e=t.slice(t.indexOf(":")+1);return new URL(e).protocol==="blob:"}catch{return!1}}class MQe{constructor(e,n,r){const i=this;let a=!1,s=0,o=0,l;const c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=n,this.onError=r,this._abortController=null,this.itemStart=function(u){o++,a===!1&&i.onStart!==void 0&&i.onStart(u,s,o),a=!0},this.itemEnd=function(u){s++,i.onProgress!==void 0&&i.onProgress(u,s,o),s===o&&(a=!1,i.onLoad!==void 0&&i.onLoad())},this.itemError=function(u){i.onError!==void 0&&i.onError(u)},this.resolveURL=function(u){return l?l(u):u},this.setURLModifier=function(u){return l=u,this},this.addHandler=function(u,f){return c.push(u,f),this},this.removeHandler=function(u){const f=c.indexOf(u);return f!==-1&&c.splice(f,2),this},this.getHandler=function(u){for(let f=0,h=c.length;f<h;f+=2){const p=c[f],A=c[f+1];if(p.global&&(p.lastIndex=0),p.test(u))return A}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}}const CQe=new MQe;class Vq{constructor(e){this.manager=e!==void 0?e:CQe,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}load(){}loadAsync(e,n){const r=this;return new Promise(function(i,a){r.load(e,i,n,a)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}abort(){return this}}Vq.DEFAULT_MATERIAL_NAME="__DEFAULT";const Q4=new WeakMap;class NQe extends Vq{constructor(e){super(e)}load(e,n,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,s=NI.get(`image:${e}`);if(s!==void 0){if(s.complete===!0)a.manager.itemStart(e),setTimeout(function(){n&&n(s),a.manager.itemEnd(e)},0);else{let f=Q4.get(s);f===void 0&&(f=[],Q4.set(s,f)),f.push({onLoad:n,onError:i})}return s}const o=D5("img");function l(){u(),n&&n(this);const f=Q4.get(this)||[];for(let h=0;h<f.length;h++){const p=f[h];p.onLoad&&p.onLoad(this)}Q4.delete(this),a.manager.itemEnd(e)}function c(f){u(),i&&i(f),NI.remove(`image:${e}`);const h=Q4.get(this)||[];for(let p=0;p<h.length;p++){const A=h[p];A.onError&&A.onError(f)}Q4.delete(this),a.manager.itemError(e),a.manager.itemEnd(e)}function u(){o.removeEventListener("load",l,!1),o.removeEventListener("error",c,!1)}return o.addEventListener("load",l,!1),o.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),NI.add(`image:${e}`,o),a.manager.itemStart(e),o.src=e,o}}class jq extends Vq{constructor(e){super(e)}load(e,n,r,i){const a=new Yo,s=new NQe(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(e,function(o){a.image=o,a.needsUpdate=!0,n!==void 0&&n(a)},r,i),a}}class jy extends ys{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new Xn(e),this.intensity=n}dispose(){this.dispatchEvent({type:"dispose"})}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,n}}class RQe extends jy{constructor(e,n,r){super(e,r),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(ys.DEFAULT_UP),this.updateMatrix(),this.groundColor=new Xn(n)}copy(e,n){return super.copy(e,n),this.groundColor.copy(e.groundColor),this}toJSON(e){const n=super.toJSON(e);return n.object.groundColor=this.groundColor.getHex(),n}}const RI=new Fr,Are=new Pe,gre=new Pe;class Hq{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.biasNode=null,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new tn(512,512),this.mapType=rs,this.map=null,this.mapPass=null,this.matrix=new Fr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new h6,this._frameExtents=new tn(1,1),this._viewportCount=1,this._viewports=[new kr(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,r=this.matrix;
52Are.setFromMatrixPosition(e.matrixWorld),n.position.copy(Are),gre.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(gre),n.updateMatrixWorld(),RI.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(RI,n.coordinateSystem,n.reversedDepth),n.coordinateSystem===_d||n.reversedDepth?r.set(.5,0,0,.5,0,.5,0,.5,0,0,1,0,0,0,0,1):r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(RI)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.autoUpdate=e.autoUpdate,this.needsUpdate=e.needsUpdate,this.normalBias=e.normalBias,this.blurSamples=e.blurSamples,this.mapSize.copy(e.mapSize),this.biasNode=e.biasNode,this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}const D7=new Pe,P7=new bd,d1=new Pe;class XP extends ys{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Fr,this.projectionMatrix=new Fr,this.projectionMatrixInverse=new Fr,this.coordinateSystem=Iu,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}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.matrixWorld.decompose(D7,P7,d1),d1.x===1&&d1.y===1&&d1.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(D7,P7,d1.set(1,1,1)).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorld.decompose(D7,P7,d1),d1.x===1&&d1.y===1&&d1.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(D7,P7,d1.set(1,1,1)).invert()}clone(){return new this.constructor().copy(this)}}const _A=new Pe,xre=new tn,vre=new tn;
vendor: 4,516 bytes, line 52
52class jl extends XP{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=Ay*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(uS*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ay*2*Math.atan(Math.tan(uS*.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){_A.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(_A.x,_A.y).multiplyScalar(-e/_A.z),_A.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(_A.x,_A.y).multiplyScalar(-e/_A.z)}getViewSize(e,n){return this.getViewBounds(e,xre,vre),n.subVectors(vre,xre)}setViewOffset(e,n,r,i,a,s){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=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(uS*.5*this.fov)/this.zoom,r=2*n,i=this.aspect*r,a=-.5*i;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,c=s.fullHeight;a+=s.offsetX*i/l,n-=s.offsetY*r/c,i*=s.width/l,r*=s.height/c}const o=this.filmOffset;o!==0&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,n,n-r,e,this.far,this.coordinateSystem,this.reversedDepth),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}}class DQe extends Hq{constructor(){super(new jl(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1,this.aspect=1}updateMatrices(e){const n=this.camera,r=Ay*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height*this.aspect,a=e.distance||n.far;(r!==n.fov||i!==n.aspect||a!==n.far)&&(n.fov=r,n.aspect=i,n.far=a,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class Gq extends jy{constructor(e,n,r=0,i=Math.PI/3,a=0,s=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(ys.DEFAULT_UP),this.updateMatrix(),this.target=new ys,this.distance=r,this.angle=i,this.penumbra=a,this.decay=s,this.map=null,this.shadow=new DQe}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){super.dispose(),this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.map=e.map,this.shadow=e.shadow.clone(),this}toJSON(e){const n=super.toJSON(e);return n.object.distance=this.distance,n.object.angle=this.angle,n.object.decay=this.decay,n.object.penumbra=this.penumbra,n.object.target=this.target.uuid,this.map&&this.map.isTexture&&(n.object.map=this.map.toJSON(e).uuid),n.object.shadow=this.shadow.toJSON(),n}}class PQe extends Hq{constructor(){super(new jl(90,1,.5,500)),this.isPointLightShadow=!0}}class kQe extends jy{constructor(e,n,r=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new PQe}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){super.dispose(),this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}toJSON(e){const n=super.toJSON(e);return n.object.distance=this.distance,n.object.decay=this.decay,n.object.shadow=this.shadow.toJSON(),n}}class A6 extends XP{constructor(e=-1,n=1,r=1,i=-1,a=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="Orthogra
52phicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=r,this.bottom=i,this.near=a,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,r,i,a,s){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=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=r-e,s=r+e,o=i+n,l=i-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=c*this.view.offsetX,s=a+c*this.view.width,o-=u*this.view.offsetY,l=o-u*this.view.height}this.projectionMatrix.makeOrthographic(a,s,o,l,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}class LQe extends Hq{constructor(){super(new A6(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class l2e extends jy{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(ys.DEFAULT_UP),this.updateMatrix(),this.target=new ys,this.shadow=new LQe}dispose(){super.dispose(),this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}toJSON(e){const n=super.toJSON(e);return n.object.shadow=this.shadow.toJSON(),n.object.target=this.target.uuid,n}}class c2e extends jy{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class OQe extends jy{constructor(e,n,r=10,i=10){super(e,n),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=r,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const n=super.toJSON(e);return n.object.width=this.width,n.object.height=this.height,n}}class FQe{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new Pe)}set(e){for(let n=0;n<9;n++)this.coefficients[n].copy(e[n]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,n){const r=e.x,i=e.y,a=e.z,s=this.coefficients;return n.copy(s[0]).multiplyScalar(.282095),n.addScaledVector(s[1],.488603*i),n.addScaledVector(s[2],.488603*a),n.addScaledVector(s[3],.488603*r),n.addScaledVector(s[4],1.092548*(r*i)),n.addScaledVector(s[5],1.092548*(i*a)),n.addScaledVector(s[6],.315392*(3*a*a-1)),n.addScaledVector(s[7],1.092548*(r*a)),n.addScaledVector(s[8],.546274*(r*r-i*i)),n}getIrradianceAt(e,n){const r=e.x,i=e.y,a=e.z,s=this.coefficients;return n.copy(s[0]).multiplyScalar(.886227),n.addScaledVector(s[1],2*.511664*i),n.addScaledVector(s[2],2*.511664*a),n.addScaledVector(s[3],2*.511664*r),n.addScaledVector(s[4],2*.429043*r*i),n.addScaledVector(s[5],2*.429043*i*a),n.addScaledVector(s[6],.743125*a*a-.247708),n.addScaledVector(s[7],2*.429043*r*a),n.addScaledVector(s[8],.429043*(r*r-i*i)),n}add(e){for(let n=0;n<9;n++)this.coefficients[n].add(e.coefficients[n]);return this}addScaledSH(e,n){for(let r=0;r<9;r++)this.coefficients[r].addScaledVector(e.coefficients[r],n);return this}scale(e){for(let n=0;n<9;n++)this.coefficients[n].multiplyScalar(e);return this}lerp(e,n){for(let r=0;r<9;r++)this.coefficients[r].lerp(e.coefficients[r],n);return this}equals(e){for(let n=0;n<9;n++)if(!this.coefficients[n].equals(e.coefficients[n]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(e,n=0){const r=this.coefficients;for(let i=0;i<9;i++)r[i].fromArray(e,n+i*3);return this}toArray(e=[],n=0){const r=this.coefficients;for(let i=0;i<9;i++)r[i].toArray(e,n+i*3);return e}static getBasisAt(e,n){const r=e.x,i=e.y,a=e.z;n[0]=.282095,n[1]=.488603*i,n[2]=.488603*a,n[3]=.488603*r,n[4]=1.092548*r*i,n[5]=1.092548*i*a,n[6]=.315392*(3*a*a-1),n[7]=1.092548*r*a,n[8]=.546274*(r*r-i*i)}}class IQe extends jy{constructor(e=new FQe,n=1){super(void 0,n),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}toJSON(e){const n=super.toJSON(e);return n.object.sh=this.sh.toArray(),n}}class BQe extends da{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){const e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}const K4=-90,J4=1;class u2e extends ys{constructor(e,n,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new jl(K4,J4,e,n);i.layers=this.layers,this.add(i);const a=new jl(K4,J4,e,n);a.layers=this.layers,this.add(a);const s=new jl(K4,J4,e,n);s.layers=this.layers,this.add(s);const o=new jl(K4,J4,e,n);o.layers=this.layers,this.add(o);const l=new jl(K4,J4,e,n);l.layers=this.layers,this.add(l);const c=new jl(K4,J4,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[r,i,a,s,o,l]=n;for(const c of n)this.remove(c);if(e===Iu)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===_d)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const 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[a,s,o,l,c,u]=this.children,f=e.getRenderTarget(),h=e.getActiveCubeFace(),p=e.getActiveMipmapLevel(),A=e.xr.enabled;e.xr.enabled=!1;const g=r.texture.generateMipmaps;r.texture.generateMipmaps=!1;let w=!1;e.isWebGLRenderer===!0?w=e.state.buffers.depth.getReversed():w=e.reversedDepthBuffer,e.setRenderTarget(r,0,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,a),e.setRenderTarget(r,1,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,s),e.setRenderTarget(r,2,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,o),e.setRenderTarget(r,3,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,l),e.setRenderTarget(r,4,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,c),r.texture.generateMipmaps=g,e.setRenderTarget(r,5,i),w&&e.autoClear===!1&&e.clearDepth(),e.render(n,u),e.setRenderTarget(f,h,p),e.xr.enabled=A,r.texture.needsPMREMUpdate=!0}}class f2e extends jl{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}}class d2e{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=UQe.bind(this),e.addEventListener("visibilitychange",this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener("visibilitychange",this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e!==void 0?e:performance.now())-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}}function UQe(){this._document.hidden===!1&&this.reset()}class mR extends Dq{constructor(e,n,r=1){super(e,n),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const n=super.clone(e);return n.meshPerAttribute=this.meshPerAttribute,n}toJSON(e){const n=super.toJSON(e);return n.isInstancedInterleavedBuffer=!0,n.meshPerAttribute=this.meshPerAttribute,n}}const yre=new Fr;class VQe{constructor(e,n,r=0,i=1/0){this.ray=new qT(e,n),this.near=r,this.far=i,this.camera=null,this.layers=new Mq,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,n){this.ray.set(e,n)}setFromCamera(e,n){n.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(n.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(n).sub(this.ray.origin).normalize(),this.camera=n):n.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(n.near+n.far)/(n.near-n.far)).unproject(n),this.ray.direction.set(0,0,-1).transformDirection(n.matrixWorld),this.camera=n):nn("Raycaster:
52Unsupported camera type: "+n.type)}setFromXRController(e){return yre.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(yre),this}intersectObject(e,n=!0,r=[]){return dj(e,this,r,n),r.sort(_re),r}intersectObjects(e,n=!0,r=[]){for(let i=0,a=e.length;i<a;i++)dj(e[i],this,r,n);return r.sort(_re),r}}function _re(t,e){return t.distance-e.distance}function dj(t,e,n,r){let i=!0;if(t.layers.test(e.layers)&&t.raycast(e,n)===!1&&(i=!1),i===!0&&r===!0){const a=t.children;for(let s=0,o=a.length;s<o;s++)dj(a[s],e,n,!0)}}class bre{constructor(e=1,n=0,r=0){this.radius=e,this.phi=n,this.theta=r}set(e,n,r){return this.radius=e,this.phi=n,this.theta=r,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Hr(this.phi,1e-6,Math.PI-1e-6),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,r){return this.radius=Math.sqrt(e*e+n*n+r*r),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,r),this.phi=Math.acos(Hr(n/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}const jY=class jY{constructor(e,n,r,i){this.elements=[1,0,0,1],e!==void 0&&this.set(e,n,r,i)}identity(){return this.set(1,0,0,1),this}fromArray(e,n=0){for(let r=0;r<4;r++)this.elements[r]=e[r+n];return this}set(e,n,r,i){const a=this.elements;return a[0]=e,a[2]=n,a[1]=r,a[3]=i,this}};jY.prototype.isMatrix2=!0;let AR=jY;const wre=new Pe,k7=new Pe,e8=new Pe,t8=new Pe,DI=new Pe,jQe=new Pe,HQe=new Pe;class GQe{constructor(e=new Pe,n=new Pe){this.start=e,this.end=n}set(e,n){return this.start.copy(e),this.end.copy(n),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,n){return this.delta(n).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,n){wre.subVectors(e,this.start),k7.subVectors(this.end,this.start);const r=k7.dot(k7);if(r===0)return 0;let a=k7.dot(wre)/r;return n&&(a=Hr(a,0,1)),a}closestPointToPoint(e,n,r){const i=this.closestPointToPointParameter(e,n);return this.delta(r).multiplyScalar(i).add(this.start)}distanceSqToLine3(e,n=jQe,r=HQe){const i=10000000000000001e-32;let a,s;const o=this.start,l=e.start,c=this.end,u=e.end;e8.subVectors(c,o),t8.subVectors(u,l),DI.subVectors(o,l);const f=e8.dot(e8),h=t8.dot(t8),p=t8.dot(DI);if(f<=i&&h<=i)return n.copy(o),r.copy(l),n.sub(r),n.dot(n);if(f<=i)a=0,s=p/h,s=Hr(s,0,1);else{const A=e8.dot(DI);if(h<=i)s=0,a=Hr(-A/f,0,1);else{const g=e8.dot(t8),w=f*h-g*g;w!==0?a=Hr((g*p-A*h)/w,0,1):a=0,s=(g*a+p)/h,s<0?(s=0,a=Hr(-A/f,0,1)):s>1&&(s=1,a=Hr((g-A)/f,0,1))}}return n.copy(o).addScaledVector(e8,a),r.copy(l).addScaledVector(t8,s),n.distanceToSquared(r)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}class zQe{constructor(){this.type="ShapePath",this.color=new Xn,this.subPaths=[],this.currentPath=null}moveTo(e,n){return this.currentPath=new cj,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,n),this}lineTo(e,n){return this.currentPath.lineTo(e,n),this}quadraticCurveTo(e,n,r,i){return this.currentPath.quadraticCurveTo(e,n,r,i),this}bezierCurveTo(e,n,r,i,a,s){return this.currentPath.bezierCurveTo(e,n,r,i,a,s),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function n(T){const C=[];for(let M=0,D=T.length;M<D;M++){const k=T[M],I=new j9;I.curves=k.curves,C.push(I)}return C}function r(T,C){const M=C.length;let D=!1;for(let k=M-1,I=0;I<M;k=I++){let L=C[k],O=C[I],B=O.x-L.x,G=O.y-L.y;if(Math.abs(G)>Number.EPSILON){if(G<0&&(L=C[I],B=-B,O=C[k],G=-G),T.y<L.y||T.y>O.y)continue;if(T.y===L.y){if(T.x===L.x)return!0}else{const j=G*(T.x-L.x)-B*(T.y-L.y);if(j===0)return!0;if(j<0)continue;D=!D}}else{if(T.y!==L.y)continue;if(O.x<=T.x&&T.x<=L.x||L.x<=T.x&&T.x<=O.x)return!0}}return D}const i=Cv.isClockWise,a=this.subPaths;if(a.length===0)return[];let s,o,l;const c=[];if(a.length===1)return o=a[0],l=new j9,l.curves=o.curves,c.push(l),c;let u=!i(a[0].getPoints());u=e?!u:u;const f=[],h=[];let p=[],A=0,g;h[A]=void 0,p[A]=[];for(let T=0,C=a.length;T<C;T++)o=a[T],g=o.getPoints(),s=i(g),s=e?!s:s,s?(!u&&h[A]&&A++,h[A]={s:new j9,p:g},h[A].s.curves=o.curves,u&&A++,p[A]=[]):p[A].push({h:o,p:g[0]});if(!h[0])return n(a);if(h.length>1){let T=!1,C=0;for(let M=0,D=h.length;M<D;M++)f[M]=[];for(let M=0,D=h.length;M<D;M++){const k=p[M];for(let I=0;I<k.length;I++){const L=k[I];let O=!0;for(let B=0;B<h.length;B++)r(L.p,h[B].p)&&(M!==B&&C++,O?(O=!1,f[B].push(L)):T=!0);O&&f[M].push(L)}}C>0&&T===!1&&(p=f)}let w;for(let T=0,C=h.length;T<C;T++){l=h[T].s,c.push(l),w=p[T];for(let M=0,D=w.length;M<D;M++)l.holes.push(w[M].h)}return c}}class zq extends Fd{constructor(e,n=null){super(),this.object=e,this.domElement=n,this.enabled=!0,this.state=-1,this.keys={},this.mouseButtons={LEFT:null,MIDDLE:null,RIGHT:null},this.touches={ONE:null,TWO:null}}connect(e){if(e===void 0){Kt("Controls: connect() now requires an element.");return}this.domElement!==null&&this.disconnect(),this.domElement=e}disconnect(){}dispose(){}update(){}}function hj(t,e,n,r){const i=$Qe(r);switch(n){case zP:return t*e;case f6:return t*e/i.components*i.byteLength;case By:return t*e/i.components*i.byteLength;case uc:return t*e*2/i.components*i.byteLength;case Uy:return t*e*2/i.components*i.byteLength;case u6:return t*e*3/i.components*i.byteLength;case fo:return t*e*4/i.components*i.byteLength;case d6:return t*e*4/i.components*i.byteLength;case Eg:case Mg:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*8;case Cg:case Ng:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case E5:case C5:return Math.max(t,16)*Math.max(e,8)/4;case T5:case M5:return Math.max(t,8)*Math.max(e,8)/2;case Y3:case X3:case K3:case J3:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*8;case Q3:case qg:case e_:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case t_:return Math.floor((t+3)/4)*Math.floor((e+3)/4)*16;case n_:return Math.floor((t+4)/5)*Math.floor((e+3)/4)*16;case r_:return Math.floor((t+4)/5)*Math.floor((e+4)/5)*16;case i_:return Math.floor((t+5)/6)*Math.floor((e+4)/5)*16;case a_:return Math.floor((t+5)/6)*Math.floor((e+5)/6)*16;case s_:return Math.floor((t+7)/8)*Math.floor((e+4)/5)*16;case o_:return Math.floor((t+7)/8)*Math.floor((e+5)/6)*16;case l_:return Math.floor((t+7)/8)*Math.floor((e+7)/8)*16;case c_:return Math.floor((t+9)/10)*Math.floor((e+4)/5)*16;case u_:return Math.floor((t+9)/10)*Math.floor((e+5)/6)*16;case f_:return Math.floor((t+9)/10)*Math.floor((e+7)/8)*16;case d_:return Math.floor((t+9)/10)*Math.floor((e+9)/10)*16;case h_:return Math.floor((t+11)/12)*Math.floor((e+9)/10)*16;case p_:return Math.floor((t+11)/12)*Math.floor((e+11)/12)*16;case m_:case aj:case sj:return Math.ceil(t/4)*Math.ceil(e/4)*16;case A_:case g_:return Math.ceil(t/4)*Math.ceil(e/4)*8;case Wg:case x_:return Math.ceil(t/4)*Math.ceil(e/4)*16}throw new Error(`Unable to determine texture byte length for ${n} format.`)}function $Qe(t){switch(t){case rs:case Sg:return{byteLength:1,components:1};case dd:case Tg:case is:return{byteLength:2,components:1};case HT:case GT:return{byteLength:2,components:4};case _a:case Al:case os:return{byteLength:4,components:1};case zT:case $T:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${t}.`)}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Iy}}));typeof window<"u"&&(window.__THREE__?Kt("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Iy);function h2e(){let t=null,e=!1,n=null,r=null;function i(a,s){n(a,s),r=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&t!==null&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t!==null&&t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(a){n=a},setContext:function(a){t=a}}}function qQe(t){const e=new WeakMap;function n(o,l){const c=o.array,u=o.usage,f=c.byteLength,h=t.createBuffer();t.bindBuffer(l,h),t.bufferData(l,c,u),o.onUploadCallback();let p;if(c instanceof Float32Array)p=t.FLOAT;else if(typeof Float16Array<"u"&&c instanceof Float16Array)p=t.HALF_FLOAT;else if(c instanceof Uint16Array)o.isFloat16BufferAttribute?p=t.HALF_FLOAT:p=t.UNSIGNED_SHORT;else if(c instanceof Int16Array)p=t.SHORT;else if(c instanceof Uint32Array)p=t.UNSIGNED_INT;else if(c instanceof Int32Array)p=t.INT;else if(c instanceof Int8Array)p=t.BYTE;else if(c instanceof Uint8Array)p=t.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)p=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:h,type:p,bytesPerElement:c.BYTES_PER_ELEMENT,version:o.version,size:f}}function r(o,l,c){const u=l.array,f=l.updateRanges;if(t.bindBuffer(c,o),f.length===0)t.bufferSubData(c,0,u);else{f.sort((p,A)=>p.start-A.start);let h=0;for(let p=1;p<f.length;p++){const A=f[h],g=f[p];g.start<=A.start+A.count+1?A.count=Math.max(A.count,g.start+g.count-A.start):(++h,f[h]=g)}f.length=h+1;for(let p=0,A=f.length;p<A;p++){const g=f[p];t.bufferSubData(c,g.start*u.BYTES_PER_ELEMENT,u,g.start,g.count)}l.clearUpdateRanges()}l.onUploadCallback()}function i(o){return o.isInterleavedBufferAttribute&&(o=o.data),e.get(o)}function a(o){o.isInterleavedBufferAttribute&&(o=o.data);const l=e.get(o);l&&(t.deleteBuffer(l.buffer),e.delete(o))}function s(o,l){if(o.isInterleavedBufferAttribute&&(o=o.data),o.isGLBufferAttribute){const u=e.get(o);(!u||u.version<o.version)&&e.set(o,{buffer:o.buffer,type:o.type,bytesPerElement:o.elementSize,version:o.version});return}const c=e.get(o);if(c===void 0)e.set(o,n(o,l));else if(c.version<o.version){if(c.size!==o.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,o,l),c.version=o.version}}return{get:i,remove:a,update:s}}var WQe=`#ifdef USE_ALPHAHASH 53 if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard; 54#endif`,ZQe=`#ifdef USE_ALPHAHASH 55 const float ALPHA_HASH_SCALE = 0.05; 56 float hash2D( vec2 value ) { 57 return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) ); 58 } 59 float hash3D( vec3 value ) { 60 return hash2D( vec2( hash2D( value.xy ), value.z ) ); 61 } 62 float getAlphaHashThreshold( vec3 position ) { 63 float maxDeriv = max( 64 length( dFdx( position.xyz ) ), 65 length( dFdy( position.xyz ) ) 66 ); 67 float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv ); 68 vec2 pixScales = vec2( 69 exp2( floor( log2( pixScale ) ) ), 70 exp2( ceil( log2( pixScale ) ) ) 71 ); 72 vec2 alpha = vec2( 73 hash3D( floor( pixScales.x * position.xyz ) ), 74 hash3D( floor( pixScales.y * position.xyz ) ) 75 ); 76 float lerpFactor = fract( log2( pixScale ) ); 77 float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y; 78 float a = min( lerpFactor, 1.0 - lerpFactor ); 79 vec3 cases = vec3( 80 x * x / ( 2.0 * a * ( 1.0 - a ) ), 81 ( x - 0.5 * a ) / ( 1.0 - a ), 82 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) ) 83 ); 84 float threshold = ( x < ( 1.0 - a ) ) 85 ? ( ( x < a ) ? cases.x : cases.y ) 86 : cases.z; 87 return clamp( threshold , 1.0e-6, 1.0 ); 88 } 89#endif`,YQe=`#ifdef USE_ALPHAMAP 90 diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g; 91#endif`,XQe=`#ifdef USE_ALPHAMAP 92 uniform sampler2D alphaMap; 93#endif`,QQe=`#ifdef USE_ALPHATEST 94 #ifdef ALPHA_TO_COVERAGE 95 diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a ); 96 if ( diffuseColor.a == 0.0 ) discard; 97 #else 98 if ( diffuseColor.a < alphaTest ) discard; 99 #endif 100#endif`,KQe=`#ifdef USE_ALPHATEST 101 uniform float alphaTest; 102#endif`,JQe=`#ifdef USE_AOMAP 103 float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0; 104 reflectedLight.indirectDiffuse *= ambientOcclusion; 105 #if defined( USE_CLEARCOAT ) 106 clearcoatSpecularIndirect *= ambientOcclusion; 107 #endif 108 #if defined( USE_SHEEN ) 109 sheenSpecularIndirect *= ambientOcclusion; 110 #endif 111 #if defined( USE_ENVMAP ) && defined( STANDARD )
112 float dotNV = saturate( dot( geometryNormal, geometryViewDir ) ); 113 reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness ); 114 #endif 115#endif`,eKe=`#ifdef USE_AOMAP 116 uniform sampler2D aoMap; 117 uniform float aoMapIntensity; 118#endif`,tKe=`#ifdef USE_BATCHING 119 #if ! defined( GL_ANGLE_multi_draw ) 120 #define gl_DrawID _gl_DrawID 121 uniform int _gl_DrawID; 122 #endif 123 uniform highp sampler2D batchingTexture; 124 uniform highp usampler2D batchingIdTexture; 125 mat4 getBatchingMatrix( const in float i ) { 126 int size = textureSize( batchingTexture, 0 ).x; 127 int j = int( i ) * 4; 128 int x = j % size; 129 int y = j / size; 130 vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 ); 131 vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 ); 132 vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 ); 133 vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 ); 134 return mat4( v1, v2, v3, v4 ); 135 } 136 float getIndirectIndex( const in int i ) { 137 int size = textureSize( batchingIdTexture, 0 ).x; 138 int x = i % size; 139 int y = i / size; 140 return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r ); 141 } 142#endif 143#ifdef USE_BATCHING_COLOR 144 uniform sampler2D batchingColorTexture; 145 vec4 getBatchingColor( const in float i ) { 146 int size = textureSize( batchingColorTexture, 0 ).x; 147 int j = int( i ); 148 int x = j % size; 149 int y = j / size; 150 return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ); 151 } 152#endif`,nKe=`#ifdef USE_BATCHING 153 mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) ); 154#endif`,rKe=`vec3 transformed = vec3( position ); 155#ifdef USE_ALPHAHASH 156 vPosition = vec3( position ); 157#endif`,iKe=`vec3 objectNormal = vec3( normal ); 158#ifdef USE_TANGENT 159 vec3 objectTangent = vec3( tangent.xyz ); 160#endif`,aKe=`float G_BlinnPhong_Implicit( ) { 161 return 0.25; 162} 163float D_BlinnPhong( const in float shininess, const in float dotNH ) { 164 return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess ); 165} 166vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) { 167 vec3 halfDir = normalize( lightDir + viewDir ); 168 float dotNH = saturate( dot( normal, halfDir ) ); 169 float dotVH = saturate( dot( viewDir, halfDir ) ); 170 vec3 F = F_Schlick( specularColor, 1.0, dotVH ); 171 float G = G_BlinnPhong_Implicit( ); 172 float D = D_BlinnPhong( shininess, dotNH ); 173 return F * ( G * D ); 174} // validated`,sKe=`#ifdef USE_IRIDESCENCE 175 const mat3 XYZ_TO_REC709 = mat3( 176 3.2404542, -0.9692660, 0.0556434, 177 -1.5371385, 1.8760108, -0.2040259, 178 -0.4985314, 0.0415560, 1.0572252 179 ); 180 vec3 Fresnel0ToIor( vec3 fresnel0 ) { 181 vec3 sqrtF0 = sqrt( fresnel0 ); 182 return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 ); 183 } 184 vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) { 185 return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) ); 186 } 187 float IorToFresnel0( float transmittedIor, float incidentIor ) { 188 return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor )); 189 } 190 vec3 evalSensitivity( float OPD, vec3 shift ) { 191 float phase = 2.0 * PI * OPD * 1.0e-9; 192 vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 ); 193 vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 ); 194 vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 ); 195 vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var ); 196 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 ) ); 197 xyz /= 1.0685e-7; 198 vec3 rgb = XYZ_TO_REC709 * xyz; 199 return rgb; 200 } 201 vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) { 202 vec3 I; 203 float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) ); 204 float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) ); 205 float cosTheta2Sq = 1.0 - sinTheta2Sq; 206 if ( cosTheta2Sq < 0.0 ) { 207 return vec3( 1.0 ); 208 } 209 float cosTheta2 = sqrt( cosTheta2Sq ); 210 float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
211 float R12 = F_Schlick( R0, 1.0, cosTheta1 ); 212 float T121 = 1.0 - R12; 213 float phi12 = 0.0; 214 if ( iridescenceIOR < outsideIOR ) phi12 = PI; 215 float phi21 = PI - phi12; 216 vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR ); 217 vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 ); 218 vec3 phi23 = vec3( 0.0 ); 219 if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI; 220 if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI; 221 if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI; 222 float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2; 223 vec3 phi = vec3( phi21 ) + phi23; 224 vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 ); 225 vec3 r123 = sqrt( R123 ); 226 vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 ); 227 vec3 C0 = R12 + Rs; 228 I = C0; 229 vec3 Cm = Rs - T121; 230 for ( int m = 1; m <= 2; ++ m ) { 231 Cm *= r123; 232 vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi ); 233 I += Cm * Sm; 234 } 235 return max( I, vec3( 0.0 ) ); 236 } 237#endif`,oKe=`#ifdef USE_BUMPMAP 238 uniform sampler2D bumpMap; 239 uniform float bumpScale; 240 vec2 dHdxy_fwd() { 241 vec2 dSTdx = dFdx( vBumpMapUv ); 242 vec2 dSTdy = dFdy( vBumpMapUv ); 243 float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x; 244 float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll; 245 float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll; 246 return vec2( dBx, dBy ); 247 } 248 vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) { 249 vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) ); 250 vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) ); 251 vec3 vN = surf_norm; 252 vec3 R1 = cross( vSigmaY, vN ); 253 vec3 R2 = cross( vN, vSigmaX ); 254 float fDet = dot( vSigmaX, R1 ) * faceDirection; 255 vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 ); 256 return normalize( abs( fDet ) * surf_norm - vGrad ); 257 } 258#endif`,lKe=`#if NUM_CLIPPING_PLANES > 0 259 vec4 plane; 260 #ifdef ALPHA_TO_COVERAGE 261 float distanceToPlane, distanceGradient; 262 float clipOpacity = 1.0; 263 #pragma unroll_loop_start 264 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { 265 plane = clippingPlanes[ i ]; 266 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; 267 distanceGradient = fwidth( distanceToPlane ) / 2.0; 268 clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); 269 if ( clipOpacity == 0.0 ) discard; 270 } 271 #pragma unroll_loop_end 272 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES 273 float unionClipOpacity = 1.0; 274 #pragma unroll_loop_start 275 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { 276 plane = clippingPlanes[ i ]; 277 distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; 278 distanceGradient = fwidth( distanceToPlane ) / 2.0; 279 unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); 280 } 281 #pragma unroll_loop_end 282 clipOpacity *= 1.0 - unionClipOpacity; 283 #endif 284 diffuseColor.a *= clipOpacity; 285 if ( diffuseColor.a == 0.0 ) discard; 286 #else 287 #pragma unroll_loop_start 288 for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { 289 plane = clippingPlanes[ i ]; 290 if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; 291 } 292 #pragma unroll_loop_end 293 #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES 294 bool clipped = true; 295 #pragma unroll_loop_start 296 for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { 297 plane = clippingPlanes[ i ]; 298 clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; 299 } 300 #pragma unroll_loop_end 301 if ( clipped ) discard; 302 #endif 303 #endif 304#endif`,cKe=`#if NUM_CLIPPING_PLANES > 0 305 varying vec3 vClipPosition; 306 uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; 307#endif`,uKe=`#if NUM_CLIPPING_PLANES > 0 308 varying vec3 vClipPosition; 309#endif`,fKe=`#if NUM_CLIPPING_PLANES > 0 310 vClipPosition = - mvPosition.xyz; 311#endif`,dKe=`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) 312 diffuseColor *= vColor; 313#endif`,hKe=`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) 314 varying vec4 vColor; 315#endif`,pKe=`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) 316 varying vec4 vColor; 317#endif`,mKe=`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) 318 vColor = vec4( 1.0 ); 319#endif 320#ifdef USE_COLOR_ALPHA 321 vColor *= color; 322#elif defined( USE_COLOR ) 323 vColor.rgb *= color; 324#endif 325#ifdef USE_INSTANCING_COLOR 326 vColor.rgb *= instanceColor.rgb; 327#endif 328#ifdef USE_BATCHING_COLOR 329 vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) ); 330#endif`,AKe=`#define PI 3.141592653589793 331#define PI2 6.283185307179586 332#define PI_HALF 1.5707963267948966 333#define RECIPROCAL_PI 0.3183098861837907 334#define RECIPROCAL_PI2 0.15915494309189535 335#define EPSILON 1e-6 336#ifndef saturate 337#define saturate( a ) clamp( a, 0.0, 1.0 ) 338#endif 339#define whiteComplement( a ) ( 1.0 - saturate( a ) ) 340float pow2( const in float x ) { return x*x; } 341vec3 pow2( const in vec3 x ) { return x*x; } 342float pow3( const in float x ) { return x*x*x; } 343float pow4( const in float x ) { float x2 = x*x; return x2*x2; } 344float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } 345float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } 346highp float rand( const in vec2 uv ) { 347 const highp float a = 12.9898, b = 78.233, c = 43758.5453; 348 highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); 349 return fract( sin( sn ) * c ); 350} 351#ifdef HIGH_PRECISION 352 float precisionSafeLength( vec3 v ) { return length( v ); } 353#else 354 float precisionSafeLength( vec3 v ) { 355 float maxComponent = max3( abs( v ) ); 356 return length( v / maxComponent ) * maxComponent; 357 } 358#endif 359struct IncidentLight { 360 vec3 color; 361 vec3 direction; 362 bool visible; 363}; 364struct ReflectedLight { 365 vec3 directDiffuse; 366 vec3 directSpecular; 367 vec3 indirectDiffuse; 368 vec3 indirectSpecular; 369}; 370#ifdef USE_ALPHAHASH 371 varying vec3 vPosition; 372#endif 373vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 374 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 375} 376vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { 377 return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); 378} 379bool isPerspectiveMatrix( mat4 m ) { 380 return m[ 2 ][ 3 ] == - 1.0; 381} 382vec2 equirectUv( in vec3 dir ) { 383 float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; 384 float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; 385 return vec2( u, v ); 386}
387vec3 BRDF_Lambert( const in vec3 diffuseColor ) { 388 return RECIPROCAL_PI * diffuseColor; 389} 390vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { 391 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 392 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 393} 394float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { 395 float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); 396 return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); 397} // validated`,gKe=`#ifdef ENVMAP_TYPE_CUBE_UV 398 #define cubeUV_minMipLevel 4.0 399 #define cubeUV_minTileSize 16.0 400 float getFace( vec3 direction ) { 401 vec3 absDirection = abs( direction ); 402 float face = - 1.0; 403 if ( absDirection.x > absDirection.z ) { 404 if ( absDirection.x > absDirection.y ) 405 face = direction.x > 0.0 ? 0.0 : 3.0; 406 else 407 face = direction.y > 0.0 ? 1.0 : 4.0; 408 } else { 409 if ( absDirection.z > absDirection.y ) 410 face = direction.z > 0.0 ? 2.0 : 5.0; 411 else 412 face = direction.y > 0.0 ? 1.0 : 4.0; 413 } 414 return face; 415 } 416 vec2 getUV( vec3 direction, float face ) { 417 vec2 uv; 418 if ( face == 0.0 ) { 419 uv = vec2( direction.z, direction.y ) / abs( direction.x ); 420 } else if ( face == 1.0 ) { 421 uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); 422 } else if ( face == 2.0 ) { 423 uv = vec2( - direction.x, direction.y ) / abs( direction.z ); 424 } else if ( face == 3.0 ) { 425 uv = vec2( - direction.z, direction.y ) / abs( direction.x ); 426 } else if ( face == 4.0 ) { 427 uv = vec2( - direction.x, direction.z ) / abs( direction.y ); 428 } else { 429 uv = vec2( direction.x, direction.y ) / abs( direction.z ); 430 } 431 return 0.5 * ( uv + 1.0 ); 432 } 433 vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { 434 float face = getFace( direction ); 435 float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); 436 mipInt = max( mipInt, cubeUV_minMipLevel ); 437 float faceSize = exp2( mipInt ); 438 highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; 439 if ( face > 2.0 ) { 440 uv.y += faceSize; 441 face -= 3.0; 442 } 443 uv.x += face * faceSize; 444 uv.x += filterInt * 3.0 * cubeUV_minTileSize; 445 uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); 446 uv.x *= CUBEUV_TEXEL_WIDTH; 447 uv.y *= CUBEUV_TEXEL_HEIGHT; 448 #ifdef texture2DGradEXT 449 return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; 450 #else 451 return texture2D( envMap, uv ).rgb; 452 #endif 453 } 454 #define cubeUV_r0 1.0 455 #define cubeUV_m0 - 2.0 456 #define cubeUV_r1 0.8 457 #define cubeUV_m1 - 1.0 458 #define cubeUV_r4 0.4 459 #define cubeUV_m4 2.0 460 #define cubeUV_r5 0.305 461 #define cubeUV_m5 3.0 462 #define cubeUV_r6 0.21 463 #define cubeUV_m6 4.0 464 float roughnessToMip( float roughness ) { 465 float mip = 0.0; 466 if ( roughness >= cubeUV_r1 ) { 467 mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; 468 } else if ( roughness >= cubeUV_r4 ) { 469 mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; 470 } else if ( roughness >= cubeUV_r5 ) { 471 mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; 472 } else if ( roughness >= cubeUV_r6 ) { 473 mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; 474 } else { 475 mip = - 2.0 * log2( 1.16 * roughness ); } 476 return mip; 477 } 478 vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { 479 float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); 480 float mipF = fract( mip ); 481 float mipInt = floor( mip ); 482 vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); 483 if ( mipF == 0.0 ) { 484 return vec4( color0, 1.0 ); 485 } else { 486 vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); 487 return vec4( mix( color0, color1, mipF ), 1.0 ); 488 } 489 } 490#endif`,xKe=`vec3 transformedNormal = objectNormal; 491#ifdef USE_TANGENT 492 vec3 transformedTangent = objectTangent; 493#endif 494#ifdef USE_BATCHING 495 mat3 bm = mat3( batchingMatrix ); 496 transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); 497 transformedNormal = bm * transformedNormal; 498 #ifdef USE_TANGENT 499 transformedTangent = bm * transformedTangent; 500 #endif 501#endif 502#ifdef USE_INSTANCING 503 mat3 im = mat3( instanceMatrix ); 504 transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); 505 transformedNormal = im * transformedNormal; 506 #ifdef USE_TANGENT 507 transformedTangent = im * transformedTangent; 508 #endif 509#endif 510transformedNormal = normalMatrix * transformedNormal; 511#ifdef FLIP_SIDED 512 transformedNormal = - transformedNormal; 513#endif 514#ifdef USE_TANGENT 515 transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; 516 #ifdef FLIP_SIDED 517 transformedTangent = - transformedTangent; 518 #endif 519#endif`,vKe=`#ifdef USE_DISPLACEMENTMAP 520 uniform sampler2D displacementMap; 521 uniform float displacementScale; 522 uniform float displacementBias; 523#endif`,yKe=`#ifdef USE_DISPLACEMENTMAP 524 transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
524placementBias ); 525#endif`,_Ke=`#ifdef USE_EMISSIVEMAP 526 vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); 527 #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE 528 emissiveColor = sRGBTransferEOTF( emissiveColor ); 529 #endif 530 totalEmissiveRadiance *= emissiveColor.rgb; 531#endif`,bKe=`#ifdef USE_EMISSIVEMAP 532 uniform sampler2D emissiveMap; 533#endif`,wKe="gl_FragColor = linearToOutputTexel( gl_FragColor );",SKe=`vec4 LinearTransferOETF( in vec4 value ) { 534 return value; 535} 536vec4 sRGBTransferEOTF( in vec4 value ) { 537 return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); 538} 539vec4 sRGBTransferOETF( in vec4 value ) { 540 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 ); 541}`,TKe=`#ifdef USE_ENVMAP 542 #ifdef ENV_WORLDPOS 543 vec3 cameraToFrag; 544 if ( isOrthographic ) { 545 cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 546 } else { 547 cameraToFrag = normalize( vWorldPosition - cameraPosition ); 548 } 549 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 550 #ifdef ENVMAP_MODE_REFLECTION 551 vec3 reflectVec = reflect( cameraToFrag, worldNormal ); 552 #else 553 vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); 554 #endif 555 #else 556 vec3 reflectVec = vReflect; 557 #endif 558 #ifdef ENVMAP_TYPE_CUBE 559 vec4 envColor = textureCube( envMap, envMapRotation * reflectVec ); 560 #ifdef ENVMAP_BLENDING_MULTIPLY 561 outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); 562 #elif defined( ENVMAP_BLENDING_MIX ) 563 outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); 564 #elif defined( ENVMAP_BLENDING_ADD ) 565 outgoingLight += envColor.xyz * specularStrength * reflectivity; 566 #endif 567 #endif 568#endif`,EKe=`#ifdef USE_ENVMAP 569 uniform float envMapIntensity; 570 uniform mat3 envMapRotation; 571 #ifdef ENVMAP_TYPE_CUBE 572 uniform samplerCube envMap; 573 #else 574 uniform sampler2D envMap; 575 #endif 576#endif`,MKe=`#ifdef USE_ENVMAP 577 uniform float reflectivity; 578 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 579 #define ENV_WORLDPOS 580 #endif 581 #ifdef ENV_WORLDPOS 582 varying vec3 vWorldPosition; 583 uniform float refractionRatio; 584 #else 585 varying vec3 vReflect; 586 #endif 587#endif`,CKe=`#ifdef USE_ENVMAP 588 #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) 589 #define ENV_WORLDPOS 590 #endif 591 #ifdef ENV_WORLDPOS 592 593 varying vec3 vWorldPosition; 594 #else 595 varying vec3 vReflect; 596 uniform float refractionRatio; 597 #endif 598#endif`,NKe=`#ifdef USE_ENVMAP 599 #ifdef ENV_WORLDPOS 600 vWorldPosition = worldPosition.xyz; 601 #else 602 vec3 cameraToVertex; 603 if ( isOrthographic ) { 604 cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); 605 } else {
606 cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); 607 } 608 vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 609 #ifdef ENVMAP_MODE_REFLECTION 610 vReflect = reflect( cameraToVertex, worldNormal ); 611 #else 612 vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); 613 #endif 614 #endif 615#endif`,RKe=`#ifdef USE_FOG 616 vFogDepth = - mvPosition.z; 617#endif`,DKe=`#ifdef USE_FOG 618 varying float vFogDepth; 619#endif`,PKe=`#ifdef USE_FOG 620 #ifdef FOG_EXP2 621 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); 622 #else 623 float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); 624 #endif 625 gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); 626#endif`,kKe=`#ifdef USE_FOG 627 uniform vec3 fogColor; 628 varying float vFogDepth; 629 #ifdef FOG_EXP2 630 uniform float fogDensity; 631 #else 632 uniform float fogNear; 633 uniform float fogFar; 634 #endif 635#endif`,LKe=`#ifdef USE_GRADIENTMAP 636 uniform sampler2D gradientMap; 637#endif 638vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { 639 float dotNL = dot( normal, lightDirection ); 640 vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); 641 #ifdef USE_GRADIENTMAP 642 return vec3( texture2D( gradientMap, coord ).r ); 643 #else 644 vec2 fw = fwidth( coord ) * 0.5; 645 return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); 646 #endif 647}`,OKe=`#ifdef USE_LIGHTMAP 648 uniform sampler2D lightMap; 649 uniform float lightMapIntensity; 650#endif`,FKe=`LambertMaterial material; 651material.diffuseColor = diffuseColor.rgb; 652material.specularStrength = specularStrength;`,IKe=`varying vec3 vViewPosition; 653struct LambertMaterial { 654 vec3 diffuseColor; 655 float specularStrength; 656}; 657void 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 ) { 658 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 659 vec3 irradiance = dotNL * directLight.color; 660 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 661} 662void 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 ) { 663 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 664} 665#define RE_Direct RE_Direct_Lambert 666#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,BKe=`uniform bool receiveShadow; 667uniform vec3 ambientLightColor; 668#if defined( USE_LIGHT_PROBES ) 669 uniform vec3 lightProbe[ 9 ]; 670#endif 671vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { 672 float x = normal.x, y = normal.y, z = normal.z; 673 vec3 result = shCoefficients[ 0 ] * 0.886227; 674 result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; 675 result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; 676 result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; 677 result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; 678 result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; 679 result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); 680 result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; 681 result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); 682 return result; 683} 684vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { 685 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 686 vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); 687 return irradiance; 688} 689vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { 690 vec3 irradiance = ambientLightColor; 691 return irradiance; 692} 693float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { 694 float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); 695 if ( cutoffDistance > 0.0 ) { 696 distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); 697 } 698 return distanceFalloff; 699} 700float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { 701 return smoothstep( coneCosine, penumbraCosine, angleCosine ); 702} 703#if NUM_DIR_LIGHTS > 0 704 struct DirectionalLight { 705 vec3 direction; 706 vec3 color; 707 }; 708 uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; 709 void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { 710 light.color = directionalLight.color; 711 light.direction = directionalLight.direction; 712 light.visible = true; 713 } 714#endif 715#if NUM_POINT_LIGHTS > 0 716 struct PointLight { 717 vec3 position; 718 vec3 color; 719 float distance; 720 float decay; 721 }; 722 uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; 723 void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { 724 vec3 lVector = pointLight.position - geometryPosition; 725 light.direction = normalize( lVector ); 726 float lightDistance = length( lVector ); 727 light.color = pointLight.color; 728 light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); 729 light.visible = ( light.color != vec3( 0.0 ) ); 730 } 731#endif
732#if NUM_SPOT_LIGHTS > 0 733 struct SpotLight { 734 vec3 position; 735 vec3 direction; 736 vec3 color; 737 float distance; 738 float decay; 739 float coneCos; 740 float penumbraCos; 741 }; 742 uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; 743 void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { 744 vec3 lVector = spotLight.position - geometryPosition; 745 light.direction = normalize( lVector ); 746 float angleCos = dot( light.direction, spotLight.direction ); 747 float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); 748 if ( spotAttenuation > 0.0 ) { 749 float lightDistance = length( lVector ); 750 light.color = spotLight.color * spotAttenuation; 751 light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); 752 light.visible = ( light.color != vec3( 0.0 ) ); 753 } else { 754 light.color = vec3( 0.0 ); 755 light.visible = false; 756 } 757 } 758#endif 759#if NUM_RECT_AREA_LIGHTS > 0 760 struct RectAreaLight { 761 vec3 color; 762 vec3 position; 763 vec3 halfWidth; 764 vec3 halfHeight; 765 }; 766 uniform sampler2D ltc_1; uniform sampler2D ltc_2; 767 uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; 768#endif 769#if NUM_HEMI_LIGHTS > 0 770 struct HemisphereLight { 771 vec3 direction; 772 vec3 skyColor; 773 vec3 groundColor; 774 }; 775 uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; 776 vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { 777 float dotNL = dot( normal, hemiLight.direction ); 778 float hemiDiffuseWeight = 0.5 * dotNL + 0.5; 779 vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); 780 return irradiance; 781 } 782#endif 783#include <lightprobes_pars_fragment>`,UKe=`#ifdef USE_ENVMAP 784 vec3 getIBLIrradiance( const in vec3 normal ) { 785 #ifdef ENVMAP_TYPE_CUBE_UV 786 vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); 787 vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); 788 return PI * envMapColor.rgb * envMapIntensity; 789 #else 790 return vec3( 0.0 ); 791 #endif 792 } 793 vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { 794 #ifdef ENVMAP_TYPE_CUBE_UV 795 vec3 reflectVec = reflect( - viewDir, normal ); 796 reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); 797 reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); 798 vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); 799 return envMapColor.rgb * envMapIntensity; 800 #else 801 return vec3( 0.0 ); 802 #endif 803 } 804 #ifdef USE_ANISOTROPY 805 vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { 806 #ifdef ENVMAP_TYPE_CUBE_UV 807 vec3 bentNormal = cross( bitangent, viewDir ); 808 bentNormal = normalize( cross( bentNormal, bitangent ) ); 809 bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); 810 return getIBLRadiance( viewDir, bentNormal, roughness ); 811 #else 812 return vec3( 0.0 ); 813 #endif 814 } 815 #endif 816#endif`,VKe=`ToonMaterial material; 817material.diffuseColor = diffuseColor.rgb;`,jKe=`varying vec3 vViewPosition; 818struct ToonMaterial { 819 vec3 diffuseColor; 820}; 821void 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 ) { 822 vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; 823 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 824} 825void 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 ) { 826 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 827} 828#define RE_Direct RE_Direct_Toon 829#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,HKe=`BlinnPhongMaterial material; 830material.diffuseColor = diffuseColor.rgb; 831material.specularColor = specular; 832material.specularShininess = shininess; 833material.specularStrength = specularStrength;`,GKe=`varying vec3 vViewPosition; 834struct BlinnPhongMaterial { 835 vec3 diffuseColor; 836 vec3 specularColor; 837 float specularShininess; 838 float specularStrength; 839}; 840void 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 ) {
841 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 842 vec3 irradiance = dotNL * directLight.color; 843 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 844 reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; 845} 846void 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 ) { 847 reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); 848} 849#define RE_Direct RE_Direct_BlinnPhong 850#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,zKe=`PhysicalMaterial material; 851material.diffuseColor = diffuseColor.rgb; 852material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); 853material.metalness = metalnessFactor; 854vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); 855float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); 856material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; 857material.roughness = min( material.roughness, 1.0 ); 858#ifdef IOR 859 material.ior = ior; 860 #ifdef USE_SPECULAR 861 float specularIntensityFactor = specularIntensity; 862 vec3 specularColorFactor = specularColor; 863 #ifdef USE_SPECULAR_COLORMAP 864 specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; 865 #endif 866 #ifdef USE_SPECULAR_INTENSITYMAP 867 specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; 868 #endif 869 material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); 870 #else 871 float specularIntensityFactor = 1.0; 872 vec3 specularColorFactor = vec3( 1.0 ); 873 material.specularF90 = 1.0; 874 #endif 875 material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; 876 material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); 877#else 878 material.specularColor = vec3( 0.04 ); 879 material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); 880 material.specularF90 = 1.0; 881#endif 882#ifdef USE_CLEARCOAT 883 material.clearcoat = clearcoat; 884 material.clearcoatRoughness = clearcoatRoughness; 885 material.clearcoatF0 = vec3( 0.04 ); 886 material.clearcoatF90 = 1.0; 887 #ifdef USE_CLEARCOATMAP 888 material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; 889 #endif 890 #ifdef USE_CLEARCOAT_ROUGHNESSMAP 891 material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; 892 #endif 893 material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); 894 material.clearcoatRoughness += geometryRoughness; 895 material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); 896#endif 897#ifdef USE_DISPERSION 898 material.dispersion = dispersion; 899#endif 900#ifdef USE_IRIDESCENCE 901 material.iridescence = iridescence; 902 material.iridescenceIOR = iridescenceIOR; 903 #ifdef USE_IRIDESCENCEMAP 904 material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; 905 #endif 906 #ifdef USE_IRIDESCENCE_THICKNESSMAP 907 material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; 908 #else 909 material.iridescenceThickness = iridescenceThicknessMaximum; 910 #endif 911#endif 912#ifdef USE_SHEEN 913 material.sheenColor = sheenColor; 914 #ifdef USE_SHEEN_COLORMAP 915 material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; 916 #endif 917 material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); 918 #ifdef USE_SHEEN_ROUGHNESSMAP 919 material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; 920 #endif 921#endif 922#ifdef USE_ANISOTROPY 923 #ifdef USE_ANISOTROPYMAP 924 mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); 925 vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; 926 vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; 927 #else 928 vec2 anisotropyV = anisotropyVector; 929 #endif 930 material.anisotropy = length( anisotropyV ); 931 if( material.anisotropy == 0.0 ) { 932 anisotropyV = vec2( 1.0, 0.0 ); 933 } else { 934 anisotropyV /= material.anisotropy; 935 material.anisotropy = saturate( material.anisotropy ); 936 } 937 material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
938 material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; 939 material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; 940#endif`,$Ke=`uniform sampler2D dfgLUT; 941struct PhysicalMaterial { 942 vec3 diffuseColor; 943 vec3 diffuseContribution; 944 vec3 specularColor; 945 vec3 specularColorBlended; 946 float roughness; 947 float metalness; 948 float specularF90; 949 float dispersion; 950 #ifdef USE_CLEARCOAT 951 float clearcoat; 952 float clearcoatRoughness; 953 vec3 clearcoatF0; 954 float clearcoatF90; 955 #endif 956 #ifdef USE_IRIDESCENCE 957 float iridescence; 958 float iridescenceIOR; 959 float iridescenceThickness; 960 vec3 iridescenceFresnel; 961 vec3 iridescenceF0; 962 vec3 iridescenceFresnelDielectric; 963 vec3 iridescenceFresnelMetallic; 964 #endif 965 #ifdef USE_SHEEN 966 vec3 sheenColor; 967 float sheenRoughness; 968 #endif 969 #ifdef IOR 970 float ior; 971 #endif 972 #ifdef USE_TRANSMISSION 973 float transmission; 974 float transmissionAlpha; 975 float thickness; 976 float attenuationDistance; 977 vec3 attenuationColor; 978 #endif 979 #ifdef USE_ANISOTROPY 980 float anisotropy; 981 float alphaT; 982 vec3 anisotropyT; 983 vec3 anisotropyB; 984 #endif 985}; 986vec3 clearcoatSpecularDirect = vec3( 0.0 ); 987vec3 clearcoatSpecularIndirect = vec3( 0.0 ); 988vec3 sheenSpecularDirect = vec3( 0.0 ); 989vec3 sheenSpecularIndirect = vec3(0.0 ); 990vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { 991 float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); 992 float x2 = x * x; 993 float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); 994 return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); 995} 996float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { 997 float a2 = pow2( alpha ); 998 float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); 999 float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); 1000 return 0.5 / max( gv + gl, EPSILON ); 1001} 1002float D_GGX( const in float alpha, const in float dotNH ) { 1003 float a2 = pow2( alpha ); 1004 float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; 1005 return RECIPROCAL_PI * a2 / pow2( denom ); 1006} 1007#ifdef USE_ANISOTROPY 1008 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 ) { 1009 float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); 1010 float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); 1011 return 0.5 / max( gv + gl, EPSILON )
vendor: 7,372 bytes, lines 1011-1170
1011; 1012 } 1013 float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { 1014 float a2 = alphaT * alphaB; 1015 highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); 1016 highp float v2 = dot( v, v ); 1017 float w2 = a2 / v2; 1018 return RECIPROCAL_PI * a2 * pow2 ( w2 ); 1019 } 1020#endif 1021#ifdef USE_CLEARCOAT 1022 vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { 1023 vec3 f0 = material.clearcoatF0; 1024 float f90 = material.clearcoatF90; 1025 float roughness = material.clearcoatRoughness; 1026 float alpha = pow2( roughness ); 1027 vec3 halfDir = normalize( lightDir + viewDir ); 1028 float dotNL = saturate( dot( normal, lightDir ) ); 1029 float dotNV = saturate( dot( normal, viewDir ) ); 1030 float dotNH = saturate( dot( normal, halfDir ) ); 1031 float dotVH = saturate( dot( viewDir, halfDir ) ); 1032 vec3 F = F_Schlick( f0, f90, dotVH ); 1033 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 1034 float D = D_GGX( alpha, dotNH ); 1035 return F * ( V * D ); 1036 } 1037#endif 1038vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { 1039 vec3 f0 = material.specularColorBlended; 1040 float f90 = material.specularF90; 1041 float roughness = material.roughness; 1042 float alpha = pow2( roughness ); 1043 vec3 halfDir = normalize( lightDir + viewDir ); 1044 float dotNL = saturate( dot( normal, lightDir ) ); 1045 float dotNV = saturate( dot( normal, viewDir ) ); 1046 float dotNH = saturate( dot( normal, halfDir ) ); 1047 float dotVH = saturate( dot( viewDir, halfDir ) ); 1048 vec3 F = F_Schlick( f0, f90, dotVH ); 1049 #ifdef USE_IRIDESCENCE 1050 F = mix( F, material.iridescenceFresnel, material.iridescence ); 1051 #endif 1052 #ifdef USE_ANISOTROPY 1053 float dotTL = dot( material.anisotropyT, lightDir ); 1054 float dotTV = dot( material.anisotropyT, viewDir ); 1055 float dotTH = dot( material.anisotropyT, halfDir ); 1056 float dotBL = dot( material.anisotropyB, lightDir ); 1057 float dotBV = dot( material.anisotropyB, viewDir ); 1058 float dotBH = dot( material.anisotropyB, halfDir ); 1059 float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); 1060 float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); 1061 #else 1062 float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); 1063 float D = D_GGX( alpha, dotNH ); 1064 #endif 1065 return F * ( V * D ); 1066} 1067vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { 1068 const float LUT_SIZE = 64.0; 1069 const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; 1070 const float LUT_BIAS = 0.5 / LUT_SIZE; 1071 float dotNV = saturate( dot( N, V ) ); 1072 vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); 1073 uv = uv * LUT_SCALE + LUT_BIAS; 1074 return uv; 1075} 1076float LTC_ClippedSphereFormFactor( const in vec3 f ) { 1077 float l = length( f ); 1078 return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); 1079} 1080vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { 1081 float x = dot( v1, v2 ); 1082 float y = abs( x ); 1083 float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; 1084 float b = 3.4175940 + ( 4.1616724 + y ) * y; 1085 float v = a / b; 1086 float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; 1087 return cross( v1, v2 ) * theta_sintheta; 1088} 1089vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { 1090 vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; 1091 vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; 1092 vec3 lightNormal = cross( v1, v2 ); 1093 if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); 1094 vec3 T1, T2; 1095 T1 = normalize( V - N * dot( V, N ) ); 1096 T2 = - cross( N, T1 ); 1097 mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); 1098 vec3 coords[ 4 ]; 1099 coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); 1100 coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); 1101 coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); 1102 coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); 1103 coords[ 0 ] = normalize( coords[ 0 ] ); 1104 coords[ 1 ] = normalize( coords[ 1 ] ); 1105 coords[ 2 ] = normalize( coords[ 2 ] ); 1106 coords[ 3 ] = normalize( coords[ 3 ] ); 1107 vec3 vectorFormFactor = vec3( 0.0 ); 1108 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); 1109 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); 1110 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); 1111 vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); 1112 float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); 1113 return vec3( result ); 1114} 1115#if defined( USE_SHEEN ) 1116float D_Charlie( float roughness, float dotNH ) { 1117 float alpha = pow2( roughness ); 1118 float invAlpha = 1.0 / alpha; 1119 float cos2h = dotNH * dotNH; 1120 float sin2h = max( 1.0 - cos2h, 0.0078125 ); 1121 return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); 1122} 1123float V_Neubelt( float dotNV, float dotNL ) { 1124 return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); 1125} 1126vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { 1127 vec3 halfDir = normalize( lightDir + viewDir ); 1128 float dotNL = saturate( dot( normal, lightDir ) ); 1129 float dotNV = saturate( dot( normal, viewDir ) ); 1130 float dotNH = saturate( dot( normal, halfDir ) ); 1131 float D = D_Charlie( sheenRoughness, dotNH ); 1132 float V = V_Neubelt( dotNV, dotNL ); 1133 return sheenColor * ( D * V ); 1134} 1135#endif 1136float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { 1137 float dotNV = saturate( dot( normal, viewDir ) ); 1138 float r2 = roughness * roughness; 1139 float rInv = 1.0 / ( roughness + 0.1 ); 1140 float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; 1141 float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; 1142 float DG = exp( a * dotNV + b ); 1143 return saturate( DG ); 1144} 1145vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { 1146 float dotNV = saturate( dot( normal, viewDir ) ); 1147 vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; 1148 return specularColor * fab.x + specularF90 * fab.y; 1149} 1150#ifdef USE_IRIDESCENCE 1151void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { 1152#else 1153void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { 1154#endif 1155 float dotNV = saturate( dot( normal, viewDir ) ); 1156 vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; 1157 #ifdef USE_IRIDESCENCE 1158 vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); 1159 #else 1160 vec3 Fr = specularColor; 1161 #endif 1162 vec3 FssEss = Fr * fab.x + specularF90 * fab.y; 1163 float Ess = fab.x + fab.y; 1164 float Ems = 1.0 - Ess; 1165 vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); 1166 singleScatter += FssEss; 1167 multiScatter += Fms * Ems; 1168} 1169vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { 1170 vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material );
vendor: 8,354 bytes, lines 1171-1300
1171 float dotNL = saturate( dot( normal, lightDir ) ); 1172 float dotNV = saturate( dot( normal, viewDir ) ); 1173 vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; 1174 vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; 1175 vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; 1176 vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; 1177 float Ess_V = dfgV.x + dfgV.y; 1178 float Ess_L = dfgL.x + dfgL.y; 1179 float Ems_V = 1.0 - Ess_V; 1180 float Ems_L = 1.0 - Ess_L; 1181 vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; 1182 vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); 1183 float compensationFactor = Ems_V * Ems_L; 1184 vec3 multiScatter = Fms * compensationFactor; 1185 return singleScatter + multiScatter; 1186} 1187#if NUM_RECT_AREA_LIGHTS > 0 1188 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 ) { 1189 vec3 normal = geometryNormal; 1190 vec3 viewDir = geometryViewDir; 1191 vec3 position = geometryPosition; 1192 vec3 lightPos = rectAreaLight.position; 1193 vec3 halfWidth = rectAreaLight.halfWidth; 1194 vec3 halfHeight = rectAreaLight.halfHeight; 1195 vec3 lightColor = rectAreaLight.color; 1196 float roughness = material.roughness; 1197 vec3 rectCoords[ 4 ]; 1198 rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; 1199 rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; 1200 rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; 1201 vec2 uv = LTC_Uv( normal, viewDir, roughness ); 1202 vec4 t1 = texture2D( ltc_1, uv ); 1203 vec4 t2 = texture2D( ltc_2, uv ); 1204 mat3 mInv = mat3( 1205 vec3( t1.x, 0, t1.y ), 1206 vec3( 0, 1, 0 ), 1207 vec3( t1.z, 0, t1.w ) 1208 ); 1209 vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y ); 1210 reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); 1211 reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); 1212 #ifdef USE_CLEARCOAT 1213 vec3 Ncc = geometryClearcoatNormal; 1214 vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness ); 1215 vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat ); 1216 vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat ); 1217 mat3 mInvClearcoat = mat3( 1218 vec3( t1Clearcoat.x, 0, t1Clearcoat.y ), 1219 vec3( 0, 1, 0 ), 1220 vec3( t1Clearcoat.z, 0, t1Clearcoat.w ) 1221 ); 1222 vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y; 1223 clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords ); 1224 #endif 1225 } 1226#endif 1227void 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 ) { 1228 float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); 1229 vec3 irradiance = dotNL * directLight.color; 1230 #ifdef USE_CLEARCOAT 1231 float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); 1232 vec3 ccIrradiance = dotNLcc * directLight.color; 1233 clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); 1234 #endif 1235 #ifdef USE_SHEEN 1236 1237 sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); 1238 1239 float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); 1240 float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); 1241 1242 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); 1243 1244 irradiance *= sheenEnergyComp; 1245 1246 #endif 1247 reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); 1248 reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); 1249} 1250void 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 ) { 1251 vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); 1252 #ifdef USE_SHEEN 1253 float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); 1254 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; 1255 diffuse *= sheenEnergyComp; 1256 #endif 1257 reflectedLight.indirectDiffuse += diffuse; 1258} 1259void 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) { 1260 #ifdef USE_CLEARCOAT 1261 clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); 1262 #endif 1263 #ifdef USE_SHEEN 1264 sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; 1265 #endif 1266 vec3 singleScatteringDielectric = vec3( 0.0 ); 1267 vec3 multiScatteringDielectric = vec3( 0.0 ); 1268 vec3 singleScatteringMetallic = vec3( 0.0 ); 1269 vec3 multiScatteringMetallic = vec3( 0.0 ); 1270 #ifdef USE_IRIDESCENCE 1271 computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); 1272 computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); 1273 #else 1274 computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); 1275 computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); 1276 #endif 1277 vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); 1278 vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); 1279 vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; 1280 vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); 1281 vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; 1282 vec3 indirectSpecular = radiance * singleScattering; 1283 indirectSpecular += multiScattering * cosineWeightedIrradiance; 1284 vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; 1285 #ifdef USE_SHEEN 1286 float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); 1287 float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; 1288 indirectSpecular *= sheenEnergyComp; 1289 indirectDiffuse *= sheenEnergyComp; 1290 #endif 1291 reflectedLight.indirectSpecular += indirectSpecular; 1292 reflectedLight.indirectDiffuse += indirectDiffuse; 1293} 1294#define RE_Direct RE_Direct_Physical 1295#define RE_Direct_RectArea RE_Direct_RectArea_Physical 1296#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical 1297#define RE_IndirectSpecular RE_IndirectSpecular_Physical 1298float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { 1299 return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); 1300}`,
1300qKe=` 1301vec3 geometryPosition = - vViewPosition; 1302vec3 geometryNormal = normal; 1303vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); 1304vec3 geometryClearcoatNormal = vec3( 0.0 ); 1305#ifdef USE_CLEARCOAT 1306 geometryClearcoatNormal = clearcoatNormal; 1307#endif 1308#ifdef USE_IRIDESCENCE 1309 float dotNVi = saturate( dot( normal, geometryViewDir ) ); 1310 if ( material.iridescenceThickness == 0.0 ) { 1311 material.iridescence = 0.0; 1312 } else { 1313 material.iridescence = saturate( material.iridescence ); 1314 } 1315 if ( material.iridescence > 0.0 ) { 1316 material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); 1317 material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); 1318 material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); 1319 material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); 1320 } 1321#endif 1322IncidentLight directLight; 1323#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) 1324 PointLight pointLight; 1325 #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 1326 PointLightShadow pointLightShadow; 1327 #endif 1328 #pragma unroll_loop_start 1329 for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { 1330 pointLight = pointLights[ i ]; 1331 getPointLightInfo( pointLight, geometryPosition, directLight ); 1332 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) 1333 pointLightShadow = pointLightShadows[ i ]; 1334 directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; 1335 #endif 1336 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1337 } 1338 #pragma unroll_loop_end 1339#endif 1340#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) 1341 SpotLight spotLight; 1342 vec4 spotColor; 1343 vec3 spotLightCoord; 1344 bool inSpotLightMap; 1345 #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 1346 SpotLightShadow spotLightShadow; 1347 #endif 1348 #pragma unroll_loop_start 1349 for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { 1350 spotLight = spotLights[ i ]; 1351 getSpotLightInfo( spotLight, geometryPosition, directLight ); 1352 #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 1353 #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX 1354 #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 1355 #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS 1356 #else 1357 #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) 1358 #endif 1359 #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) 1360 spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; 1361 inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); 1362 spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); 1363 directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; 1364 #endif 1365 #undef SPOT_LIGHT_MAP_INDEX 1366 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 1367 spotLightShadow = spotLightShadows[ i ]; 1368 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 1369 #endif 1370 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1371 } 1372 #pragma unroll_loop_end 1373#endif 1374#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) 1375 DirectionalLight directionalLight; 1376 #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 1377 DirectionalLightShadow directionalLightShadow; 1378 #endif 1379 #pragma unroll_loop_start 1380 for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { 1381 directionalLight = directionalLights[ i ]; 1382 getDirectionalLightInfo( directionalLight, directLight ); 1383 #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) 1384 directionalLightShadow = directionalLightShadows[ i ]; 1385 directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 1386 #endif 1387 RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1388 } 1389 #pragma unroll_loop_end 1390#endif 1391#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) 1392 RectAreaLight rectAreaLight; 1393 #pragma unroll_loop_start 1394 for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { 1395 rectAreaLight = rectAreaLights[ i ]; 1396 RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1397 } 1398 #pragma unroll_loop_end 1399#endif 1400#if defined( RE_IndirectDiffuse ) 1401 vec3 iblIrradiance = vec3( 0.0 ); 1402 vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); 1403 #if defined( USE_LIGHT_PROBES ) 1404 irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); 1405 #endif 1406 #if ( NUM_HEMI_LIGHTS > 0 ) 1407 #pragma unroll_loop_start 1408 for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { 1409 irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); 1410 } 1411 #pragma unroll_loop_end 1412 #endif 1413 #ifdef USE_LIGHT_PROBES_GRID 1414 vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz; 1415 vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix ); 1416 irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal ); 1417 #endif 1418#endif 1419#if defined( RE_IndirectSpecular ) 1420 vec3 radiance = vec3( 0.0 ); 1421 vec3 clearcoatRadiance = vec3( 0.0 ); 1422#endif`,WKe=`#if defined( RE_IndirectDiffuse ) 1423 #ifdef USE_LIGHTMAP 1424 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 1425 vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; 1426 irradiance += lightMapIrradiance; 1427 #endif 1428 #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV ) 1429 #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG ) 1430 iblIrradiance += getIBLIrradiance( geometryNormal ); 1431 #endif 1432 #endif 1433#endif 1434#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) 1435 #ifdef USE_ANISOTROPY 1436 radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); 1437 #else 1438 radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); 1439 #endif 1440 #ifdef USE_CLEARCOAT 1441 clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); 1442 #endif 1443#endif`,ZKe=`#if defined( RE_IndirectDiffuse ) 1444 #if defined( LAMBERT ) || defined( PHONG ) 1445 irradiance += iblIrradiance; 1446 #endif 1447 RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1448#endif 1449#if defined( RE_IndirectSpecular ) 1450 RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); 1451#endif`,YKe=`#ifdef USE_LIGHT_PROBES_GRID 1452uniform highp sampler3D probesSH; 1453uniform vec3 probesMin; 1454uniform vec3 probesMax; 1455uniform vec3 probesResolution; 1456vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) { 1457 vec3 res = probesResolution; 1458 vec3 gridRange = probesMax - probesMin; 1459 vec3 resMinusOne = res - 1.0; 1460 vec3 probeSpacing = gridRange / resMinusOne; 1461 vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5; 1462 vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 ); 1463 uvw = uvw * resMinusOne / res + 0.5 / res; 1464 float nz = res.z; 1465 float paddedSlices = nz + 2.0; 1466 float atlasDepth = 7.0 * paddedSlices; 1467 float uvZBase = uvw.z * nz + 1.0; 1468 vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) ); 1469 vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) ); 1470 vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) ); 1471 vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) ); 1472 vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) ); 1473 vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) ); 1474 vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) ); 1475 vec3 c0 = s0.xyz; 1476 vec3 c1 = vec3( s0.w, s1.xy ); 1477 vec3 c2 = vec3( s1.zw, s2.x ); 1478 vec3 c3 = s2.yzw; 1479 vec3 c4 = s3.xyz; 1480 vec3 c5 = vec3( s3.w, s4.xy ); 1481 vec3 c6 = vec3( s4.zw, s5.x ); 1482 vec3 c7 = s5.yzw; 1483 vec3 c8 = s6.xyz; 1484 float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z; 1485 vec3 result = c0 * 0.886227; 1486 result += c1 * 2.0 * 0.511664 * y; 1487 result += c2 * 2.0 * 0.511664 * z; 1488 result += c3 * 2.0 * 0.511664 * x; 1489 result += c4 * 2.0 * 0.429043 * x * y; 1490 result += c5 * 2.0 * 0.429043 * y * z; 1491 result += c6 * ( 0.743125 * z * z - 0.247708 ); 1492 result += c7 * 2.0 * 0.429043 * x * z; 1493 result += c8 * 0.429043 * ( x * x - y * y ); 1494 return max( result, vec3( 0.0 ) ); 1495} 1496#endif`,XKe=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) 1497 gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; 1498#endif`,QKe=`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) 1499 uniform float logDepthBufFC; 1500 varying float vFragDepth; 1501 varying float vIsPerspective; 1502#endif`,KKe=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER 1503 varying float vFragDepth; 1504 varying float vIsPerspective; 1505#endif`,JKe=`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER 1506 vFragDepth = 1.0 + gl_Position.w; 1507 vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); 1508#endif`,eJe=`#ifdef USE_MAP 1509 vec4 sampledDiffuseColor = texture2D( map, vMapUv ); 1510 #ifdef DECODE_VIDEO_TEXTURE 1511 sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); 1512 #endif 1513 diffuseColor *= sampledDiffuseColor; 1514#endif`,tJe=`#ifdef USE_MAP 1515 uniform sampler2D map; 1516#endif`,nJe=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 1517 #if defined( USE_POINTS_UV ) 1518 vec2 uv = vUv; 1519 #else 1520 vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; 1521 #endif 1522#endif 1523#ifdef USE_MAP 1524 diffuseColor *= texture2D( map, uv ); 1525#endif 1526#ifdef USE_ALPHAMAP 1527 diffuseColor.a *= texture2D( alphaMap, uv ).g; 1528#endif`,rJe=`#if defined( USE_POINTS_UV ) 1529 varying vec2 vUv; 1530#else 1531 #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) 1532 uniform mat3 uvTransform; 1533 #endif 1534#endif 1535#ifdef USE_MAP 1536 uniform sampler2D map; 1537#endif 1538#ifdef USE_ALPHAMAP 1539 uniform sampler2D alphaMap; 1540#endif`,iJe=`float metalnessFactor = metalness; 1541#ifdef USE_METALNESSMAP 1542 vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); 1543 metalnessFactor *= texelMetalness.b; 1544#endif`,aJe=`#ifdef USE_METALNESSMAP 1545 uniform sampler2D metalnessMap; 1546#endif`,sJe=`#ifdef USE_INSTANCING_MORPH 1547 float morphTargetInfluences[ MORPHTARGETS_COUNT ]; 1548 float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; 1549 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1550 morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; 1551 } 1552#endif`,oJe=`#if defined( USE_MORPHCOLORS ) 1553 vColor *= morphTargetBaseInfluence; 1554 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1555 #if defined( USE_COLOR_ALPHA ) 1556 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; 1557 #elif defined( USE_COLOR ) 1558 if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; 1559 #endif 1560 } 1561#endif`,lJe=`#ifdef USE_MORPHNORMALS 1562 objectNormal *= morphTargetBaseInfluence; 1563 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1564 if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; 1565 } 1566#endif`,cJe=`#ifdef USE_MORPHTARGETS 1567 #ifndef USE_INSTANCING_MORPH 1568 uniform float morphTargetBaseInfluence; 1569 uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; 1570 #endif 1571 uniform sampler2DArray morphTargetsTexture; 1572 uniform ivec2 morphTargetsTextureSize; 1573 vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { 1574 int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; 1575 int y = texelIndex / morphTargetsTextureSize.x; 1576 int x = texelIndex - y * morphTargetsTextureSize.x; 1577 ivec3 morphUV = ivec3( x, y, morphTargetIndex ); 1578 return texelFetch( morphTargetsTexture, morphUV, 0 ); 1579 } 1580#endif`,uJe=`#ifdef USE_MORPHTARGETS 1581 transformed *= morphTargetBaseInfluence; 1582 for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { 1583 if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; 1584 } 1585#endif`,fJe=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; 1586#ifdef FLAT_SHADED 1587 vec3 fdx = dFdx( vViewPosition ); 1588 vec3 fdy = dFdy( vViewPosition ); 1589 vec3 normal = normalize( cross( fdx, fdy ) ); 1590#else 1591 vec3 normal = normalize( vNormal ); 1592 #ifdef DOUBLE_SIDED 1593 normal *= faceDirection; 1594 #endif 1595#endif 1596#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) 1597 #ifdef USE_TANGENT 1598 mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 1599 #else 1600 mat3 tbn = getTangentFrame( - vViewPosition, normal, 1601 #if defined( USE_NORMALMAP ) 1602 vNormalMapUv 1603 #elif defined( USE_CLEARCOAT_NORMALMAP ) 1604 vClearcoatNormalMapUv 1605 #else 1606 vUv 1607 #endif 1608 ); 1609 #endif 1610 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 1611 tbn[0] *= faceDirection; 1612 tbn[1] *= faceDirection; 1613 #endif 1614#endif 1615#ifdef USE_CLEARCOAT_NORMALMAP 1616 #ifdef USE_TANGENT 1617 mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); 1618 #else 1619 mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); 1620 #endif 1621 #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) 1622 tbn2[0] *= faceDirection; 1623 tbn2[1] *= faceDirection; 1624 #endif 1625#endif 1626vec3 nonPerturbedNormal = normal;`,dJe=`#ifdef USE_NORMALMAP_OBJECTSPACE 1627 normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 1628 #ifdef FLIP_SIDED 1629 normal = - normal; 1630 #endif 1631 #ifdef DOUBLE_SIDED 1632 normal = normal * faceDirection; 1633 #endif 1634 normal = normalize( normalMatrix * normal ); 1635#elif defined( USE_NORMALMAP_TANGENTSPACE ) 1636 vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; 1637 #if defined( USE_PACKED_NORMALMAP ) 1638 mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) ); 1639 #endif 1640 mapN.xy *= normalScale; 1641 normal = normalize( tbn * mapN ); 1642#elif defined( USE_BUMPMAP )
1643 normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); 1644#endif`,hJe=`#ifndef FLAT_SHADED 1645 varying vec3 vNormal; 1646 #ifdef USE_TANGENT 1647 varying vec3 vTangent; 1648 varying vec3 vBitangent; 1649 #endif 1650#endif`,pJe=`#ifndef FLAT_SHADED 1651 varying vec3 vNormal; 1652 #ifdef USE_TANGENT 1653 varying vec3 vTangent; 1654 varying vec3 vBitangent; 1655 #endif 1656#endif`,mJe=`#ifndef FLAT_SHADED 1657 vNormal = normalize( transformedNormal ); 1658 #ifdef USE_TANGENT 1659 vTangent = normalize( transformedTangent ); 1660 vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); 1661 #endif 1662#endif`,AJe=`#ifdef USE_NORMALMAP 1663 uniform sampler2D normalMap; 1664 uniform vec2 normalScale; 1665#endif 1666#ifdef USE_NORMALMAP_OBJECTSPACE 1667 uniform mat3 normalMatrix; 1668#endif 1669#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) 1670 mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { 1671 vec3 q0 = dFdx( eye_pos.xyz ); 1672 vec3 q1 = dFdy( eye_pos.xyz ); 1673 vec2 st0 = dFdx( uv.st ); 1674 vec2 st1 = dFdy( uv.st ); 1675 vec3 N = surf_norm; 1676 vec3 q1perp = cross( q1, N ); 1677 vec3 q0perp = cross( N, q0 ); 1678 vec3 T = q1perp * st0.x + q0perp * st1.x; 1679 vec3 B = q1perp * st0.y + q0perp * st1.y; 1680 float det = max( dot( T, T ), dot( B, B ) ); 1681 float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); 1682 return mat3( T * scale, B * scale, N ); 1683 } 1684#endif`,gJe=`#ifdef USE_CLEARCOAT 1685 vec3 clearcoatNormal = nonPerturbedNormal; 1686#endif`,xJe=`#ifdef USE_CLEARCOAT_NORMALMAP 1687 vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; 1688 clearcoatMapN.xy *= clearcoatNormalScale; 1689 clearcoatNormal = normalize( tbn2 * clearcoatMapN ); 1690#endif`,vJe=`#ifdef USE_CLEARCOATMAP 1691 uniform sampler2D clearcoatMap; 1692#endif 1693#ifdef USE_CLEARCOAT_NORMALMAP 1694 uniform sampler2D clearcoatNormalMap; 1695 uniform vec2 clearcoatNormalScale; 1696#endif 1697#ifdef USE_CLEARCOAT_ROUGHNESSMAP 1698 uniform sampler2D clearcoatRoughnessMap; 1699#endif`,yJe=`#ifdef USE_IRIDESCENCEMAP 1700 uniform sampler2D iridescenceMap; 1701#endif 1702#ifdef USE_IRIDESCENCE_THICKNESSMAP 1703 uniform sampler2D iridescenceThicknessMap; 1704#endif`,_Je=`#ifdef OPAQUE 1705diffuseColor.a = 1.0; 1706#endif 1707#ifdef USE_TRANSMISSION 1708diffuseColor.a *= material.transmissionAlpha; 1709#endif 1710gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,bJe=`vec3 packNormalToRGB( const in vec3 normal ) { 1711 return normalize( normal ) * 0.5 + 0.5; 1712} 1713vec3 unpackRGBToNormal( const in vec3 rgb ) { 1714 return 2.0 * rgb.xyz - 1.0; 1715} 1716const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; 1717const float Inv255 = 1. / 255.; 1718const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); 1719const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); 1720const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); 1721const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); 1722vec4 packDepthToRGBA( const in float v ) { 1723 if( v <= 0.0 ) 1724 return vec4( 0., 0., 0., 0. ); 1725 if( v >= 1.0 ) 1726 return vec4( 1., 1., 1., 1. ); 1727 float vuf; 1728 float af = modf( v * PackFactors.a, vuf ); 1729 float bf = modf( vuf * ShiftRight8, vuf ); 1730 float gf = modf( vuf * ShiftRight8, vuf ); 1731 return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); 1732} 1733vec3 packDepthToRGB( const in float v ) { 1734 if( v <= 0.0 ) 1735 return vec3( 0., 0., 0. ); 1736 if( v >= 1.0 ) 1737 return vec3( 1., 1., 1. ); 1738 float vuf; 1739 float bf = modf( v * PackFactors.b, vuf ); 1740 float gf = modf( vuf * ShiftRight8, vuf ); 1741 return vec3( vuf * Inv255, gf * PackUpscale, bf ); 1742} 1743vec2 packDepthToRG( const in float v ) { 1744 if( v <= 0.0 ) 1745 return vec2( 0., 0. ); 1746 if( v >= 1.0 ) 1747 return vec2( 1., 1. ); 1748 float vuf; 1749 float gf = modf( v * 256., vuf ); 1750 return vec2( vuf * Inv255, gf ); 1751} 1752float unpackRGBAToDepth( const in vec4 v ) { 1753 return dot( v, UnpackFactors4 ); 1754} 1755float unpackRGBToDepth( const in vec3 v ) { 1756 return dot( v, UnpackFactors3 ); 1757} 1758float unpackRGToDepth( const in vec2 v ) { 1759 return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; 1760} 1761vec4 pack2HalfToRGBA( const in vec2 v ) {
1762 vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); 1763 return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); 1764} 1765vec2 unpackRGBATo2Half( const in vec4 v ) { 1766 return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); 1767} 1768float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { 1769 return ( viewZ + near ) / ( near - far ); 1770} 1771float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { 1772 #ifdef USE_REVERSED_DEPTH_BUFFER 1773 1774 return depth * ( far - near ) - far; 1775 #else 1776 return depth * ( near - far ) - near; 1777 #endif 1778} 1779float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { 1780 return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); 1781} 1782float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { 1783 1784 #ifdef USE_REVERSED_DEPTH_BUFFER 1785 return ( near * far ) / ( ( near - far ) * depth - near ); 1786 #else 1787 return ( near * far ) / ( ( far - near ) * depth - far ); 1788 #endif 1789}`,wJe=`#ifdef PREMULTIPLIED_ALPHA 1790 gl_FragColor.rgb *= gl_FragColor.a; 1791#endif`,SJe=`vec4 mvPosition = vec4( transformed, 1.0 ); 1792#ifdef USE_BATCHING 1793 mvPosition = batchingMatrix * mvPosition; 1794#endif 1795#ifdef USE_INSTANCING 1796 mvPosition = instanceMatrix * mvPosition; 1797#endif 1798mvPosition = modelViewMatrix * mvPosition; 1799gl_Position = projectionMatrix * mvPosition;`,TJe=`#ifdef DITHERING 1800 gl_FragColor.rgb = dithering( gl_FragColor.rgb ); 1801#endif`,EJe=`#ifdef DITHERING 1802 vec3 dithering( vec3 color ) { 1803 float grid_position = rand( gl_FragCoord.xy ); 1804 vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); 1805 dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); 1806 return color + dither_shift_RGB; 1807 } 1808#endif`,MJe=`float roughnessFactor = roughness; 1809#ifdef USE_ROUGHNESSMAP 1810 vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); 1811 roughnessFactor *= texelRoughness.g; 1812#endif`,CJe=`#ifdef USE_ROUGHNESSMAP 1813 uniform sampler2D roughnessMap; 1814#endif`,NJe=`#if NUM_SPOT_LIGHT_COORDS > 0 1815 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 1816#endif 1817#if NUM_SPOT_LIGHT_MAPS > 0 1818 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; 1819#endif 1820#ifdef USE_SHADOWMAP 1821 #if NUM_DIR_LIGHT_SHADOWS > 0 1822 #if defined( SHADOWMAP_TYPE_PCF ) 1823 uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; 1824 #else 1825 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; 1826 #endif 1827 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 1828 struct DirectionalLightShadow { 1829 float shadowIntensity; 1830 float shadowBias; 1831 float shadowNormalBias; 1832 float shadowRadius; 1833 vec2 shadowMapSize; 1834 }; 1835 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 1836 #endif 1837 #if NUM_SPOT_LIGHT_SHADOWS > 0 1838 #if defined( SHADOWMAP_TYPE_PCF ) 1839 uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; 1840 #else 1841 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; 1842 #endif 1843 struct SpotLightShadow { 1844 float shadowIntensity; 1845 float shadowBias; 1846 float shadowNormalBias; 1847 float shadowRadius; 1848 vec2 shadowMapSize; 1849 }; 1850 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 1851 #endif 1852 #if NUM_POINT_LIGHT_SHADOWS > 0 1853 #if defined( SHADOWMAP_TYPE_PCF ) 1854 uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; 1855 #elif defined( SHADOWMAP_TYPE_BASIC ) 1856 uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; 1857 #endif 1858 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 1859 struct PointLightShadow { 1860 float shadowIntensity; 1861 float shadowBias; 1862 float shadowNormalBias; 1863 float shadowRadius; 1864 vec2 shadowMapSize; 1865 float shadowCameraNear; 1866 float shadowCameraFar; 1867 }; 1868 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 1869 #endif 1870 #if defined( SHADOWMAP_TYPE_PCF ) 1871 float interleavedGradientNoise( vec2 position ) { 1872 return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); 1873 } 1874 vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { 1875 const float goldenAngle = 2.399963229728653; 1876 float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); 1877 float theta = float( sampleIndex ) * goldenAngle + phi; 1878 return vec2( cos( theta ), sin( theta ) ) * r; 1879 } 1880 #endif 1881 #if defined( SHADOWMAP_TYPE_PCF ) 1882 float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { 1883 float shadow = 1.0; 1884 shadowCoord.xyz /= shadowCoord.w; 1885 shadowCoord.z += shadowBias; 1886 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; 1887 bool frustumTest = inFrustum && shadowCoord.z <= 1.0; 1888 if ( frustumTest ) { 1889 vec2 texelSize = vec2( 1.0 ) / shadowMapSize; 1890 float radius = shadowRadius * texelSize.x; 1891 float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; 1892 shadow = ( 1893 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + 1894 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + 1895 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + 1896 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + 1897 texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) 1898 ) * 0.2; 1899 } 1900 return mix( 1.0, shadow, shadowIntensity ); 1901 } 1902 #elif defined( SHADOWMAP_TYPE_VSM ) 1903 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { 1904 float shadow = 1.0; 1905 shadowCoord.xyz /= shadowCoord.w; 1906 #ifdef USE_REVERSED_DEPTH_BUFFER 1907 shadowCoord.z -= shadowBias; 1908 #else 1909 shadowCoord.z += shadowBias; 1910 #endif 1911 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; 1912 bool frustumTest = inFrustum && shadowCoord.z <= 1.0; 1913 if ( frustumTest ) { 1914 vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; 1915 float mean = distribution.x; 1916 float variance = distribution.y * distribution.y; 1917 #ifdef USE_REVERSED_DEPTH_BUFFER 1918 float hard_shadow = step( mean, shadowCoord.z ); 1919 #else 1920 float hard_shadow = step( shadowCoord.z, mean ); 1921 #endif 1922 1923 if ( hard_shadow == 1.0 ) { 1924 shadow = 1.0; 1925 } else { 1926 variance = max( variance, 0.0000001 ); 1927 float d = shadowCoord.z - mean; 1928 float p_max = variance / ( variance + d * d ); 1929 p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); 1930 shadow = max( hard_shadow, p_max ); 1931 } 1932 } 1933 return mix( 1.0, shadow, shadowIntensity ); 1934 } 1935 #else 1936 float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { 1937 float shadow = 1.0; 1938 shadowCoord.xyz /= shadowCoord.w; 1939 #ifdef USE_REVERSED_DEPTH_BUFFER 1940 shadowCoord.z -= shadowBias; 1941 #else 1942 shadowCoord.z += shadowBias; 1943 #endif 1944 bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; 1945 bool frustumTest = inFrustum && shadowCoord.z <= 1.0; 1946 if ( frustumTest ) { 1947 float depth = texture2D( shadowMap, shadowCoord.xy ).r; 1948 #ifdef USE_REVERSED_DEPTH_BUFFER 1949 shadow = step( depth, shadowCoord.z ); 1950 #else 1951 shadow = step( shadowCoord.z, depth ); 1952 #endif 1953 } 1954 return mix( 1.0, shadow, shadowIntensity ); 1955 } 1956 #endif 1957 #if NUM_POINT_LIGHT_SHADOWS > 0 1958 #if defined( SHADOWMAP_TYPE_PCF ) 1959 float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { 1960 float shadow = 1.0; 1961 vec3 lightToPosition = shadowCoord.xyz; 1962 vec3 bd3D = normalize( lightToPosition ); 1963 vec3 absVec = abs( lightToPosition ); 1964 float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); 1965 if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { 1966 #ifdef USE_REVERSED_DEPTH_BUFFER 1967 float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) );
1968 dp -= shadowBias; 1969 #else 1970 float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); 1971 dp += shadowBias; 1972 #endif 1973 float texelSize = shadowRadius / shadowMapSize.x; 1974 vec3 absDir = abs( bd3D ); 1975 vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); 1976 tangent = normalize( cross( bd3D, tangent ) ); 1977 vec3 bitangent = cross( bd3D, tangent ); 1978 float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; 1979 vec2 sample0 = vogelDiskSample( 0, 5, phi ); 1980 vec2 sample1 = vogelDiskSample( 1, 5, phi ); 1981 vec2 sample2 = vogelDiskSample( 2, 5, phi ); 1982 vec2 sample3 = vogelDiskSample( 3, 5, phi ); 1983 vec2 sample4 = vogelDiskSample( 4, 5, phi ); 1984 shadow = ( 1985 texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) + 1986 texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) + 1987 texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) + 1988 texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) + 1989 texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) ) 1990 ) * 0.2; 1991 } 1992 return mix( 1.0, shadow, shadowIntensity ); 1993 } 1994 #elif defined( SHADOWMAP_TYPE_BASIC ) 1995 float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { 1996 float shadow = 1.0; 1997 vec3 lightToPosition = shadowCoord.xyz; 1998 vec3 absVec = abs( lightToPosition ); 1999 float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); 2000 if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { 2001 float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); 2002 dp += shadowBias; 2003 vec3 bd3D = normalize( lightToPosition ); 2004 float depth = textureCube( shadowMap, bd3D ).r; 2005 #ifdef USE_REVERSED_DEPTH_BUFFER 2006 depth = 1.0 - depth; 2007 #endif 2008 shadow = step( dp, depth ); 2009 } 2010 return mix( 1.0, shadow, shadowIntensity ); 2011 } 2012 #endif 2013 #endif 2014#endif`,RJe=`#if NUM_SPOT_LIGHT_COORDS > 0 2015 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; 2016 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; 2017#endif 2018#ifdef USE_SHADOWMAP 2019 #if NUM_DIR_LIGHT_SHADOWS > 0 2020 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; 2021 varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; 2022 struct DirectionalLightShadow { 2023 float shadowIntensity; 2024 float shadowBias; 2025 float shadowNormalBias; 2026 float shadowRadius; 2027 vec2 shadowMapSize; 2028 }; 2029 uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; 2030 #endif 2031 #if NUM_SPOT_LIGHT_SHADOWS > 0 2032 struct SpotLightShadow { 2033 float shadowIntensity; 2034 float shadowBias; 2035 float shadowNormalBias; 2036 float shadowRadius; 2037 vec2 shadowMapSize; 2038 }; 2039 uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; 2040 #endif 2041 #if NUM_POINT_LIGHT_SHADOWS > 0 2042 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; 2043 varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; 2044 struct PointLightShadow { 2045 float shadowIntensity; 2046 float shadowBias; 2047 float shadowNormalBias; 2048 float shadowRadius; 2049 vec2 shadowMapSize; 2050 float shadowCameraNear; 2051 float shadowCameraFar; 2052 }; 2053 uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; 2054 #endif 2055#endif`,DJe=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) 2056 #ifdef HAS_NORMAL 2057 vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); 2058 #else 2059 vec3 shadowWorldNormal = vec3( 0.0 ); 2060 #endif 2061 vec4 shadowWorldPosition; 2062#endif 2063#if defined( USE_SHADOWMAP ) 2064 #if NUM_DIR_LIGHT_SHADOWS > 0 2065 #pragma unroll_loop_start 2066 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 2067 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); 2068 vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; 2069 } 2070 #pragma unroll_loop_end 2071 #endif 2072 #if NUM_POINT_LIGHT_SHADOWS > 0 2073 #pragma unroll_loop_start 2074 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 2075 shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); 2076 vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; 2077 } 2078 #pragma unroll_loop_end 2079 #endif 2080#endif
2081#if NUM_SPOT_LIGHT_COORDS > 0 2082 #pragma unroll_loop_start 2083 for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { 2084 shadowWorldPosition = worldPosition; 2085 #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) 2086 shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; 2087 #endif 2088 vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; 2089 } 2090 #pragma unroll_loop_end 2091#endif`,PJe=`float getShadowMask() { 2092 float shadow = 1.0; 2093 #ifdef USE_SHADOWMAP 2094 #if NUM_DIR_LIGHT_SHADOWS > 0 2095 DirectionalLightShadow directionalLight; 2096 #pragma unroll_loop_start 2097 for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { 2098 directionalLight = directionalLightShadows[ i ]; 2099 shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; 2100 } 2101 #pragma unroll_loop_end 2102 #endif 2103 #if NUM_SPOT_LIGHT_SHADOWS > 0 2104 SpotLightShadow spotLight; 2105 #pragma unroll_loop_start 2106 for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { 2107 spotLight = spotLightShadows[ i ]; 2108 shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; 2109 } 2110 #pragma unroll_loop_end 2111 #endif 2112 #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) 2113 PointLightShadow pointLight; 2114 #pragma unroll_loop_start 2115 for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { 2116 pointLight = pointLightShadows[ i ]; 2117 shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; 2118 } 2119 #pragma unroll_loop_end 2120 #endif 2121 #endif 2122 return shadow; 2123}`,kJe=`#ifdef USE_SKINNING 2124 mat4 boneMatX = getBoneMatrix( skinIndex.x ); 2125 mat4 boneMatY = getBoneMatrix( skinIndex.y ); 2126 mat4 boneMatZ = getBoneMatrix( skinIndex.z ); 2127 mat4 boneMatW = getBoneMatrix( skinIndex.w ); 2128#endif`,LJe=`#ifdef USE_SKINNING 2129 uniform mat4 bindMatrix; 2130 uniform mat4 bindMatrixInverse; 2131 uniform highp sampler2D boneTexture; 2132 mat4 getBoneMatrix( const in float i ) { 2133 int size = textureSize( boneTexture, 0 ).x; 2134 int j = int( i ) * 4; 2135 int x = j % size; 2136 int y = j / size; 2137 vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); 2138 vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); 2139 vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); 2140 vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); 2141 return mat4( v1, v2, v3, v4 ); 2142 } 2143#endif`,OJe=`#ifdef USE_SKINNING 2144 vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); 2145 vec4 skinned = vec4( 0.0 ); 2146 skinned += boneMatX * skinVertex * skinWeight.x; 2147 skinned += boneMatY * skinVertex * skinWeight.y; 2148 skinned += boneMatZ * skinVertex * skinWeight.z; 2149 skinned += boneMatW * skinVertex * skinWeight.w; 2150 transformed = ( bindMatrixInverse * skinned ).xyz; 2151#endif`,FJe=`#ifdef USE_SKINNING 2152 mat4 skinMatrix = mat4( 0.0 ); 2153 skinMatrix += skinWeight.x * boneMatX; 2154 skinMatrix += skinWeight.y * boneMatY; 2155 skinMatrix += skinWeight.z * boneMatZ; 2156 skinMatrix += skinWeight.w * boneMatW; 2157 skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; 2158 objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; 2159 #ifdef USE_TANGENT 2160 objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; 2161 #endif 2162#endif`,IJe=`float specularStrength; 2163#ifdef USE_SPECULARMAP 2164 vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); 2165 specularStrength = texelSpecular.r; 2166#else 2167 specularStrength = 1.0; 2168#endif`,BJe=`#ifdef USE_SPECULARMAP 2169 uniform sampler2D specularMap; 2170#endif`,UJe=`#if defined( TONE_MAPPING ) 2171 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); 2172#endif`,VJe=`#ifndef saturate 2173#define saturate( a ) clamp( a, 0.0, 1.0 ) 2174#endif 2175uniform float toneMappingExposure; 2176vec3 LinearToneMapping( vec3 color ) { 2177 return saturate( toneMappingExposure * color ); 2178} 2179vec3 ReinhardToneMapping( vec3 color ) { 2180 color *= toneMappingExposure; 2181 return saturate( color / ( vec3( 1.0 ) + color ) ); 2182} 2183vec3 CineonToneMapping( vec3 color ) { 2184 color *= toneMappingExposure; 2185 color = max( vec3( 0.0 ), color - 0.004 ); 2186 return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); 2187} 2188vec3 RRTAndODTFit( vec3 v ) { 2189 vec3 a = v * ( v + 0.0245786 ) - 0.000090537; 2190 vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; 2191 return a / b; 2192} 2193vec3 ACESFilmicToneMapping( vec3 color ) { 2194 const mat3 ACESInputMat = mat3( 2195 vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), 2196 vec3( 0.04823, 0.01566, 0.83777 ) 2197 ); 2198 const mat3 ACESOutputMat = mat3( 2199 vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), 2200 vec3( -0.07367, -0.00605, 1.07602 ) 2201 ); 2202 color *= toneMappingExposure / 0.6; 2203 color = ACESInputMat * color; 2204 color = RRTAndODTFit( color ); 2205 color = ACESOutputMat * color; 2206 return saturate( color ); 2207} 2208const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( 2209 vec3( 1.6605, - 0.1246, - 0.0182 ), 2210 vec3( - 0.5876, 1.1329, - 0.1006 ), 2211 vec3( - 0.0728, - 0.0083, 1.1187 ) 2212); 2213const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( 2214 vec3( 0.6274, 0.0691, 0.0164 ), 2215 vec3( 0.3293, 0.9195, 0.0880 ), 2216 vec3( 0.0433, 0.0113, 0.8956 ) 2217); 2218vec3 agxDefaultContrastApprox( vec3 x ) { 2219 vec3 x2 = x * x; 2220 vec3 x4 = x2 * x2; 2221 return + 15.5 * x4 * x2 2222 - 40.14 * x4 * x 2223 + 31.96 * x4 2224 - 6.868 * x2 * x 2225 + 0.4298 * x2 2226 + 0.1191 * x 2227 - 0.00232; 2228} 2229vec3 AgXToneMapping( vec3 color ) { 2230 const mat3 AgXInsetMatrix = mat3( 2231 vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), 2232 vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), 2233 vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) 2234 );
2235 const mat3 AgXOutsetMatrix = mat3( 2236 vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), 2237 vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), 2238 vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) 2239 ); 2240 const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; 2241 color *= toneMappingExposure; 2242 color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; 2243 color = AgXInsetMatrix * color; 2244 color = max( color, 1e-10 ); color = log2( color ); 2245 color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); 2246 color = clamp( color, 0.0, 1.0 ); 2247 color = agxDefaultContrastApprox( color ); 2248 color = AgXOutsetMatrix * color; 2249 color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); 2250 color = LINEAR_REC2020_TO_LINEAR_SRGB * color; 2251 color = clamp( color, 0.0, 1.0 ); 2252 return color; 2253} 2254vec3 NeutralToneMapping( vec3 color ) { 2255 const float StartCompression = 0.8 - 0.04; 2256 const float Desaturation = 0.15; 2257 color *= toneMappingExposure; 2258 float x = min( color.r, min( color.g, color.b ) ); 2259 float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; 2260 color -= offset; 2261 float peak = max( color.r, max( color.g, color.b ) ); 2262 if ( peak < StartCompression ) return color; 2263 float d = 1. - StartCompression; 2264 float newPeak = 1. - d * d / ( peak + d - StartCompression ); 2265 color *= newPeak / peak; 2266 float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); 2267 return mix( color, vec3( newPeak ), g ); 2268} 2269vec3 CustomToneMapping( vec3 color ) { return color; }`,jJe=`#ifdef USE_TRANSMISSION 2270 material.transmission = transmission; 2271 material.transmissionAlpha = 1.0; 2272 material.thickness = thickness; 2273 material.attenuationDistance = attenuationDistance; 2274 material.attenuationColor = attenuationColor; 2275 #ifdef USE_TRANSMISSIONMAP 2276 material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; 2277 #endif 2278 #ifdef USE_THICKNESSMAP 2279 material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; 2280 #endif 2281 vec3 pos = vWorldPosition; 2282 vec3 v = normalize( cameraPosition - pos ); 2283 vec3 n = inverseTransformDirection( normal, viewMatrix ); 2284 vec4 transmitted = getIBLVolumeRefraction( 2285 n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, 2286 pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, 2287 material.attenuationColor, material.attenuationDistance ); 2288 material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); 2289 totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); 2290#endif`,HJe=`#ifdef USE_TRANSMISSION 2291 uniform float transmission; 2292 uniform float thickness; 2293 uniform float attenuationDistance; 2294 uniform vec3 attenuationColor; 2295 #ifdef USE_TRANSMISSIONMAP 2296 uniform sampler2D transmissionMap; 2297 #endif 2298 #ifdef USE_THICKNESSMAP 2299 uniform sampler2D thicknessMap; 2300 #endif 2301 uniform vec2 transmissionSamplerSize; 2302 uniform sampler2D transmissionSamplerMap; 2303 uniform mat4 modelMatrix; 2304 uniform mat4 projectionMatrix; 2305 varying vec3 vWorldPosition; 2306 float w0( float a ) { 2307 return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); 2308 } 2309 float w1( float a ) { 2310 return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); 2311 } 2312 float w2( float a ){ 2313 return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); 2314 } 2315 float w3( float a ) { 2316 return ( 1.0 / 6.0 ) * ( a * a * a ); 2317 } 2318 float g0( float a ) { 2319 return w0( a ) + w1( a ); 2320 } 2321 float g1( float a ) { 2322 return w2( a ) + w3( a ); 2323 } 2324 float h0( float a ) { 2325 return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); 2326 } 2327 float h1( float a ) { 2328 return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); 2329 } 2330 vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { 2331 uv = uv * texelSize.zw + 0.5; 2332 vec2 iuv = floor( uv ); 2333 vec2 fuv = fract( uv ); 2334 float g0x = g0( fuv.x ); 2335 float g1x = g1( fuv.x ); 2336 float h0x = h0( fuv.x ); 2337 float h1x = h1( fuv.x ); 2338 float h0y = h0( fuv.y ); 2339 float h1y = h1( fuv.y ); 2340 vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 2341 vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; 2342 vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 2343 vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; 2344 return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + 2345 g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); 2346 } 2347 vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { 2348 vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); 2349 vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); 2350 vec2 fLodSizeInv = 1.0 / fLodSize; 2351 vec2 cLodSizeInv = 1.0 / cLodSize; 2352 vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); 2353 vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); 2354 return mix( fSample, cSample, fract( lod ) ); 2355 } 2356 vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { 2357 vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); 2358 vec3 modelScale; 2359 modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); 2360 modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); 2361 modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); 2362 return normalize( refractionVector ) * thickness * modelScale; 2363 } 2364 float applyIorToRoughness( const in float roughness, const in float ior ) { 2365 return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); 2366 } 2367 vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { 2368 float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); 2369 return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); 2370 } 2371 vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { 2372 if ( isinf( attenuationDistance ) ) { 2373 return vec3( 1.0 ); 2374 } else { 2375 vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; 2376 vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; 2377 } 2378 } 2379 vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, 2380 const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, 2381 const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, 2382 const in vec3 attenuationColor, const in float attenuationDistance ) { 2383 vec4 transmittedLight; 2384 vec3 transmittance; 2385 #ifdef USE_DISPERSION 2386 float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; 2387 vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); 2388 for ( int i = 0; i < 3; i ++ ) { 2389 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); 2390 vec3 refractedRayExit = position + transmissionRay; 2391 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); 2392 vec2 refractionCoords = ndcPos.xy / ndcPos.w; 2393 refractionCoords += 1.0; 2394 refractionCoords /= 2.0; 2395 vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); 2396 transmittedLight[ i ] = transmissionSample[ i ]; 2397 transmittedLight.a += transmissionSample.a; 2398 transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; 2399 } 2400 transmittedLight.a /= 3.0; 2401 #else 2402 vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); 2403 vec3 refractedRayExit = position + transmissionRay; 2404 vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); 2405 vec2 refractionCoords = ndcPos.xy / ndcPos.w; 2406 refractionCoords += 1.0; 2407 refractionCoords /= 2.0; 2408 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); 2409 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); 2410 #endif 2411 vec3 attenuatedColor = transmittance * transmittedLight.rgb; 2412 vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); 2413 float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; 2414 return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); 2415 } 2416#endif`,GJe=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2417 varying vec2 vUv; 2418#endif 2419#ifdef USE_MAP 2420 varying vec2 vMapUv; 2421#endif 2422#ifdef USE_ALPHAMAP
2423 varying vec2 vAlphaMapUv; 2424#endif 2425#ifdef USE_LIGHTMAP 2426 varying vec2 vLightMapUv; 2427#endif 2428#ifdef USE_AOMAP 2429 varying vec2 vAoMapUv; 2430#endif 2431#ifdef USE_BUMPMAP 2432 varying vec2 vBumpMapUv; 2433#endif 2434#ifdef USE_NORMALMAP 2435 varying vec2 vNormalMapUv; 2436#endif 2437#ifdef USE_EMISSIVEMAP 2438 varying vec2 vEmissiveMapUv; 2439#endif 2440#ifdef USE_METALNESSMAP 2441 varying vec2 vMetalnessMapUv; 2442#endif 2443#ifdef USE_ROUGHNESSMAP 2444 varying vec2 vRoughnessMapUv; 2445#endif 2446#ifdef USE_ANISOTROPYMAP 2447 varying vec2 vAnisotropyMapUv; 2448#endif 2449#ifdef USE_CLEARCOATMAP 2450 varying vec2 vClearcoatMapUv; 2451#endif 2452#ifdef USE_CLEARCOAT_NORMALMAP 2453 varying vec2 vClearcoatNormalMapUv; 2454#endif 2455#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2456 varying vec2 vClearcoatRoughnessMapUv; 2457#endif 2458#ifdef USE_IRIDESCENCEMAP 2459 varying vec2 vIridescenceMapUv; 2460#endif 2461#ifdef USE_IRIDESCENCE_THICKNESSMAP 2462 varying vec2 vIridescenceThicknessMapUv; 2463#endif 2464#ifdef USE_SHEEN_COLORMAP 2465 varying vec2 vSheenColorMapUv; 2466#endif 2467#ifdef USE_SHEEN_ROUGHNESSMAP 2468 varying vec2 vSheenRoughnessMapUv; 2469#endif 2470#ifdef USE_SPECULARMAP 2471 varying vec2 vSpecularMapUv; 2472#endif 2473#ifdef USE_SPECULAR_COLORMAP 2474 varying vec2 vSpecularColorMapUv; 2475#endif 2476#ifdef USE_SPECULAR_INTENSITYMAP 2477 varying vec2 vSpecularIntensityMapUv; 2478#endif 2479#ifdef USE_TRANSMISSIONMAP 2480 uniform mat3 transmissionMapTransform; 2481 varying vec2 vTransmissionMapUv; 2482#endif 2483#ifdef USE_THICKNESSMAP 2484 uniform mat3 thicknessMapTransform; 2485 varying vec2 vThicknessMapUv; 2486#endif`,zJe=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2487 varying vec2 vUv; 2488#endif 2489#ifdef USE_MAP 2490 uniform mat3 mapTransform; 2491 varying vec2 vMapUv; 2492#endif 2493#ifdef USE_ALPHAMAP 2494 uniform mat3 alphaMapTransform; 2495 varying vec2 vAlphaMapUv; 2496#endif 2497#ifdef USE_LIGHTMAP 2498 uniform mat3 lightMapTransform; 2499 varying vec2 vLightMapUv; 2500#endif 2501#ifdef USE_AOMAP 2502 uniform mat3 aoMapTransform; 2503 varying vec2 vAoMapUv; 2504#endif 2505#ifdef USE_BUMPMAP 2506 uniform mat3 bumpMapTransform; 2507 varying vec2 vBumpMapUv; 2508#endif 2509#ifdef USE_NORMALMAP 2510 uniform mat3 normalMapTransform; 2511 varying vec2 vNormalMapUv; 2512#endif 2513#ifdef USE_DISPLACEMENTMAP 2514 uniform mat3 displacementMapTransform; 2515 varying vec2 vDisplacementMapUv; 2516#endif 2517#ifdef USE_EMISSIVEMAP 2518 uniform mat3 emissiveMapTransform; 2519 varying vec2 vEmissiveMapUv; 2520#endif 2521#ifdef USE_METALNESSMAP 2522 uniform mat3 metalnessMapTransform; 2523 varying vec2 vMetalnessMapUv; 2524#endif 2525#ifdef USE_ROUGHNESSMAP 2526 uniform mat3 roughnessMapTransform; 2527 varying vec2 vRoughnessMapUv; 2528#endif 2529#ifdef USE_ANISOTROPYMAP 2530 uniform mat3 anisotropyMapTransform; 2531 varying vec2 vAnisotropyMapUv; 2532#endif 2533#ifdef USE_CLEARCOATMAP 2534 uniform mat3 clearcoatMapTransform; 2535 varying vec2 vClearcoatMapUv; 2536#endif 2537#ifdef USE_CLEARCOAT_NORMALMAP 2538 uniform mat3 clearcoatNormalMapTransform; 2539 varying vec2 vClearcoatNormalMapUv; 2540#endif 2541#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2542 uniform mat3 clearcoatRoughnessMapTransform; 2543 varying vec2 vClearcoatRoughnessMapUv; 2544#endif 2545#ifdef USE_SHEEN_COLORMAP 2546 uniform mat3 sheenColorMapTransform; 2547 varying vec2 vSheenColorMapUv; 2548#endif 2549#ifdef USE_SHEEN_ROUGHNESSMAP 2550 uniform mat3 sheenRoughnessMapTransform; 2551 varying vec2 vSheenRoughnessMapUv; 2552#endif 2553#ifdef USE_IRIDESCENCEMAP 2554 uniform mat3 iridescenceMapTransform; 2555 varying vec2 vIridescenceMapUv; 2556#endif 2557#ifdef USE_IRIDESCENCE_THICKNESSMAP 2558 uniform mat3 iridescenceThicknessMapTransform; 2559 varying vec2 vIridescenceThicknessMapUv; 2560#endif 2561#ifdef USE_SPECULARMAP 2562 uniform mat3 specularMapTransform; 2563 varying vec2 vSpecularMapUv; 2564#endif 2565#ifdef USE_SPECULAR_COLORMAP 2566 uniform mat3 specularColorMapTransform; 2567 varying vec2 vSpecularColorMapUv; 2568#endif 2569#ifdef USE_SPECULAR_INTENSITYMAP 2570 uniform mat3 specularIntensityMapTransform; 2571 varying vec2 vSpecularIntensityMapUv; 2572#endif 2573#ifdef USE_TRANSMISSIONMAP 2574 uniform mat3 transmissionMapTransform; 2575 varying vec2 vTransmissionMapUv; 2576#endif 2577#ifdef USE_THICKNESSMAP 2578 uniform mat3 thicknessMapTransform; 2579 varying vec2 vThicknessMapUv; 2580#endif`,$Je=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) 2581 vUv = vec3( uv, 1 ).xy; 2582#endif 2583#ifdef USE_MAP 2584 vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; 2585#endif 2586#ifdef USE_ALPHAMAP 2587 vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; 2588#endif 2589#ifdef USE_LIGHTMAP 2590 vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; 2591#endif 2592#ifdef USE_AOMAP 2593 vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; 2594#endif 2595#ifdef USE_BUMPMAP 2596 vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; 2597#endif 2598#ifdef USE_NORMALMAP 2599 vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; 2600#endif 2601#ifdef USE_DISPLACEMENTMAP 2602 vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; 2603#endif 2604#ifdef USE_EMISSIVEMAP 2605 vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; 2606#endif 2607#ifdef USE_METALNESSMAP 2608 vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; 2609#endif 2610#ifdef USE_ROUGHNESSMAP 2611 vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; 2612#endif 2613#ifdef USE_ANISOTROPYMAP 2614 vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; 2615#endif 2616#ifdef USE_CLEARCOATMAP 2617 vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; 2618#endif 2619#ifdef USE_CLEARCOAT_NORMALMAP 2620 vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; 2621#endif 2622#ifdef USE_CLEARCOAT_ROUGHNESSMAP 2623 vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; 2624#endif
2625#ifdef USE_IRIDESCENCEMAP 2626 vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; 2627#endif 2628#ifdef USE_IRIDESCENCE_THICKNESSMAP 2629 vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; 2630#endif 2631#ifdef USE_SHEEN_COLORMAP 2632 vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; 2633#endif 2634#ifdef USE_SHEEN_ROUGHNESSMAP 2635 vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; 2636#endif 2637#ifdef USE_SPECULARMAP 2638 vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; 2639#endif 2640#ifdef USE_SPECULAR_COLORMAP 2641 vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; 2642#endif 2643#ifdef USE_SPECULAR_INTENSITYMAP 2644 vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; 2645#endif 2646#ifdef USE_TRANSMISSIONMAP 2647 vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; 2648#endif 2649#ifdef USE_THICKNESSMAP 2650 vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; 2651#endif`,qJe=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 2652 vec4 worldPosition = vec4( transformed, 1.0 ); 2653 #ifdef USE_BATCHING 2654 worldPosition = batchingMatrix * worldPosition; 2655 #endif 2656 #ifdef USE_INSTANCING 2657 worldPosition = instanceMatrix * worldPosition; 2658 #endif 2659 worldPosition = modelMatrix * worldPosition; 2660#endif`;const WJe=`varying vec2 vUv; 2661uniform mat3 uvTransform; 2662void main() { 2663 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 2664 gl_Position = vec4( position.xy, 1.0, 1.0 ); 2665}`,ZJe=`uniform sampler2D t2D; 2666uniform float backgroundIntensity; 2667varying vec2 vUv; 2668void main() { 2669 vec4 texColor = texture2D( t2D, vUv ); 2670 #ifdef DECODE_VIDEO_TEXTURE 2671 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 ); 2672 #endif 2673 texColor.rgb *= backgroundIntensity; 2674 gl_FragColor = texColor; 2675 #include <tonemapping_fragment> 2676 #include <colorspace_fragment> 2677}`,YJe=`varying vec3 vWorldDirection; 2678#include <common> 2679void main() { 2680 vWorldDirection = transformDirection( position, modelMatrix ); 2681 #include <begin_vertex> 2682 #include <project_vertex> 2683 gl_Position.z = gl_Position.w; 2684}`,XJe=`#ifdef ENVMAP_TYPE_CUBE 2685 uniform samplerCube envMap; 2686#elif defined( ENVMAP_TYPE_CUBE_UV ) 2687 uniform sampler2D envMap; 2688#endif 2689uniform float backgroundBlurriness; 2690uniform float backgroundIntensity; 2691uniform mat3 backgroundRotation; 2692varying vec3 vWorldDirection; 2693#include <cube_uv_reflection_fragment> 2694void main() { 2695 #ifdef ENVMAP_TYPE_CUBE 2696 vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection ); 2697 #elif defined( ENVMAP_TYPE_CUBE_UV ) 2698 vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); 2699 #else 2700 vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 2701 #endif 2702 texColor.rgb *= backgroundIntensity; 2703 gl_FragColor = texColor; 2704 #include <tonemapping_fragment> 2705 #include <colorspace_fragment> 2706}`,QJe=`varying vec3 vWorldDirection; 2707#include <common> 2708void main() { 2709 vWorldDirection = transformDirection( position, modelMatrix ); 2710 #include <begin_vertex> 2711 #include <project_vertex> 2712 gl_Position.z = gl_Position.w; 2713}`,KJe=`uniform samplerCube tCube; 2714uniform float tFlip; 2715uniform float opacity; 2716varying vec3 vWorldDirection; 2717void main() { 2718 vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); 2719 gl_FragColor = texColor; 2720 gl_FragColor.a *= opacity; 2721 #include <tonemapping_fragment> 2722 #include <colorspace_fragment> 2723}`,JJe=`#include <common> 2724#include <batching_pars_vertex> 2725#include <uv_pars_vertex> 2726#include <displacementmap_pars_vertex> 2727#include <morphtarget_pars_vertex> 2728#include <skinning_pars_vertex> 2729#include <logdepthbuf_pars_vertex> 2730#include <clipping_planes_pars_vertex> 2731varying vec2 vHighPrecisionZW; 2732void main() { 2733 #include <uv_vertex> 2734 #include <batching_vertex> 2735 #include <skinbase_vertex> 2736 #include <morphinstance_vertex> 2737 #ifdef USE_DISPLACEMENTMAP 2738 #include <beginnormal_vertex> 2739 #include <morphnormal_vertex> 2740 #include <skinnormal_vertex> 2741 #endif 2742 #include <begin_vertex> 2743 #include <morphtarget_vertex> 2744 #include <skinning_vertex> 2745 #include <displacementmap_vertex> 2746 #include <project_vertex> 2747 #include <logdepthbuf_vertex> 2748 #include <clipping_planes_vertex> 2749 vHighPrecisionZW = gl_Position.zw; 2750}`,eet=`#if DEPTH_PACKING == 3200 2751 uniform float opacity; 2752#endif 2753#include <common> 2754#include <packing> 2755#include <uv_pars_fragment> 2756#include <map_pars_fragment> 2757#include <alphamap_pars_fragment> 2758#include <alphatest_pars_fragment> 2759#include <alphahash_pars_fragment> 2760#include <logdepthbuf_pars_fragment> 2761#include <clipping_planes_pars_fragment> 2762varying vec2 vHighPrecisionZW; 2763void main() { 2764 vec4 diffuseColor = vec4( 1.0 ); 2765 #include <clipping_planes_fragment> 2766 #if DEPTH_PACKING == 3200 2767 diffuseColor.a = opacity; 2768 #endif 2769 #include <map_fragment> 2770 #include <alphamap_fragment> 2771 #include <alphatest_fragment> 2772 #include <alphahash_fragment> 2773 #include <logdepthbuf_fragment> 2774 #ifdef USE_REVERSED_DEPTH_BUFFER 2775 float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; 2776 #else 2777 float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; 2778 #endif 2779 #if DEPTH_PACKING == 3200 2780 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); 2781 #elif DEPTH_PACKING == 3201 2782 gl_FragColor = packDepthToRGBA( fragCoordZ ); 2783 #elif DEPTH_PACKING == 3202 2784 gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); 2785 #elif DEPTH_PACKING == 3203 2786 gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); 2787 #endif 2788}`,tet=`#define DISTANCE 2789varying vec3 vWorldPosition; 2790#include <common> 2791#include <batching_pars_vertex> 2792#include <uv_pars_vertex> 2793#include <displacementmap_pars_vertex> 2794#include <morphtarget_pars_vertex> 2795#include <skinning_pars_vertex> 2796#include <clipping_planes_pars_vertex> 2797void main() { 2798 #include <uv_vertex> 2799 #include <batching_vertex> 2800 #include <skinbase_vertex> 2801 #include <morphinstance_vertex> 2802 #ifdef USE_DISPLACEMENTMAP 2803 #include <beginnormal_vertex> 2804 #include <morphnormal_vertex> 2805 #include <skinnormal_vertex> 2806 #endif 2807 #include <begin_vertex> 2808 #include <morphtarget_vertex> 2809 #include <skinning_vertex> 2810 #include <displacementmap_vertex> 2811 #include <project_vertex> 2812 #include <worldpos_vertex> 2813 #include <clipping_planes_vertex> 2814 vWorldPosition = worldPosition.xyz; 2815}`,net=`#define DISTANCE 2816uniform vec3 referencePosition; 2817uniform float nearDistance; 2818uniform float farDistance; 2819varying vec3 vWorldPosition; 2820#include <common> 2821#include <uv_pars_fragment> 2822#include <map_pars_fragment> 2823#include <alphamap_pars_fragment> 2824#include <alphatest_pars_fragment> 2825#include <alphahash_pars_fragment> 2826#include <clipping_planes_pars_fragment> 2827void main () { 2828 vec4 diffuseColor = vec4( 1.0 ); 2829 #include <clipping_planes_fragment> 2830 #include <map_fragment> 2831 #include <alphamap_fragment> 2832 #include <alphatest_fragment> 2833 #include <alphahash_fragment> 2834 float dist = length( vWorldPosition - referencePosition ); 2835 dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); 2836 dist = saturate( dist ); 2837 gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); 2838}`,ret=`varying vec3 vWorldDirection; 2839#include <common> 2840void main() { 2841 vWorldDirection = transformDirection( position, modelMatrix ); 2842 #include <begin_vertex> 2843 #include <project_vertex> 2844}`,iet=`uniform sampler2D tEquirect; 2845varying vec3 vWorldDirection; 2846#include <common> 2847void main() { 2848 vec3 direction = normalize( vWorldDirection ); 2849 vec2 sampleUV = equirectUv( direction ); 2850 gl_FragColor = texture2D( tEquirect, sampleUV ); 2851 #include <tonemapping_fragment> 2852 #include <colorspace_fragment> 2853}`,aet=`uniform float scale; 2854attribute float lineDistance; 2855varying float vLineDistance; 2856#include <common> 2857#include <uv_pars_vertex> 2858#include <color_pars_vertex> 2859#include <fog_pars_vertex> 2860#include <morphtarget_pars_vertex> 2861#include <logdepthbuf_pars_vertex> 2862#include <clipping_planes_pars_vertex> 2863void main() { 2864 vLineDistance = scale * lineDistance; 2865 #include <uv_vertex> 2866 #include <color_vertex> 2867 #include <morphinstance_vertex> 2868 #include <morphcolor_vertex> 2869 #include <begin_vertex> 2870 #include <morphtarget_vertex> 2871 #include <project_vertex> 2872 #include <logdepthbuf_vertex> 2873 #include <clipping_planes_vertex> 2874 #include <fog_vertex> 2875}`,set=`uniform vec3 diffuse; 2876uniform float opacity; 2877uniform float dashSize; 2878uniform float totalSize; 2879varying float vLineDistance; 2880#include <common> 2881#include <color_pars_fragment> 2882#include <uv_pars_fragment> 2883#include <map_pars_fragment> 2884#include <fog_pars_fragment> 2885#include <logdepthbuf_pars_fragment> 2886#include <clipping_planes_pars_fragment> 2887void main() { 2888 vec4 diffuseColor = vec4( diffuse, opacity ); 2889 #include <clipping_planes_fragment> 2890 if ( mod( vLineDistance, totalSize ) > dashSize ) { 2891 discard; 2892 } 2893 vec3 outgoingLight = vec3( 0.0 ); 2894 #include <logdepthbuf_fragment> 2895 #include <map_fragment> 2896 #include <color_fragment> 2897 outgoingLight = diffuseColor.rgb; 2898 #include <opaque_fragment> 2899 #include <tonemapping_fragment> 2900 #include <colorspace_fragment> 2901 #include <fog_fragment> 2902 #include <premultiplied_alpha_fragment> 2903}`,oet=`#include <common> 2904#include <batching_pars_vertex> 2905#include <uv_pars_vertex> 2906#include <envmap_pars_vertex> 2907#include <color_pars_vertex> 2908#include <fog_pars_vertex> 2909#include <morphtarget_pars_vertex> 2910#include <skinning_pars_vertex> 2911#include <logdepthbuf_pars_vertex> 2912#include <clipping_planes_pars_vertex> 2913void main() { 2914 #include <uv_vertex> 2915 #include <color_vertex> 2916 #include <morphinstance_vertex> 2917 #include <morphcolor_vertex> 2918 #include <batching_vertex> 2919 #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) 2920 #include <beginnormal_vertex> 2921 #include <morphnormal_vertex> 2922 #include <skinbase_vertex> 2923 #include <skinnormal_vertex> 2924 #include <defaultnormal_vertex> 2925 #endif 2926 #include <begin_vertex> 2927 #include <morphtarget_vertex> 2928 #include <skinning_vertex> 2929 #include <project_vertex> 2930 #include <logdepthbuf_vertex> 2931 #include <clipping_planes_vertex> 2932 #include <worldpos_vertex> 2933 #include <envmap_vertex> 2934 #include <fog_vertex> 2935}`,cet=`uniform vec3 diffuse; 2936uniform float opacity; 2937#ifndef FLAT_SHADED 2938 varying vec3 vNormal; 2939#endif 2940#include <common> 2941#include <dithering_pars_fragment> 2942#include <color_pars_fragment> 2943#include <uv_pars_fragment> 2944#include <map_pars_fragment> 2945#include <alphamap_pars_fragment> 2946#include <alphatest_pars_fragment> 2947#include <alphahash_pars_fragment> 2948#include <aomap_pars_fragment> 2949#include <lightmap_pars_fragment> 2950#include <envmap_common_pars_fragment> 2951#include <envmap_pars_fragment> 2952#include <fog_pars_fragment> 2953#include <specularmap_pars_fragment> 2954#include <logdepthbuf_pars_fragment> 2955#include <clipping_planes_pars_fragment> 2956void main() { 2957 vec4 diffuseColor = vec4( diffuse, opacity ); 2958 #include <clipping_planes_fragment> 2959 #include <logdepthbuf_fragment> 2960 #include <map_fragment> 2961 #include <color_fragment> 2962 #include <alphamap_fragment> 2963 #include <alphatest_fragment> 2964 #include <alphahash_fragment> 2965 #include <specularmap_fragment> 2966 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 2967 #ifdef USE_LIGHTMAP 2968 vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); 2969 reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; 2970 #else 2971 reflectedLight.indirectDiffuse += vec3( 1.0 ); 2972 #endif 2973 #include <aomap_fragment> 2974 reflectedLight.indirectDiffuse *= diffuseColor.rgb; 2975 vec3 outgoingLight = reflectedLight.indirectDiffuse; 2976 #include <envmap_fragment> 2977 #include <opaque_fragment> 2978 #include <tonemapping_fragment> 2979 #include <colorspace_fragment> 2980 #include <fog_fragment> 2981 #include <premultiplied_alpha_fragment> 2982 #include <dithering_fragment> 2983}`,uet=`#define LAMBERT 2984varying vec3 vViewPosition; 2985#include <common> 2986#include <batching_pars_vertex> 2987#include <uv_pars_vertex> 2988#include <displacementmap_pars_vertex> 2989#include <envmap_pars_vertex> 2990#include <color_pars_vertex> 2991#include <fog_pars_vertex> 2992#include <normal_pars_vertex> 2993#include <morphtarget_pars_vertex> 2994#include <skinning_pars_vertex> 2995#include <shadowmap_pars_vertex> 2996#include <logdepthbuf_pars_vertex> 2997#include <clipping_planes_pars_vertex> 2998void main() { 2999 #include <uv_vertex> 3000 #include <color_vertex> 3001 #include <morphinstance_vertex> 3002 #include <morphcolor_vertex> 3003 #include <batching_vertex> 3004 #include <beginnormal_vertex> 3005 #include <morphnormal_vertex> 3006 #include <skinbase_vertex> 3007 #include <skinnormal_vertex> 3008 #include <defaultnormal_vertex> 3009 #include <normal_vertex> 3010 #include <begin_vertex> 3011 #include <morphtarget_vertex> 3012 #include <skinning_vertex> 3013 #include <displacementmap_vertex> 3014 #include <project_vertex> 3015 #include <logdepthbuf_vertex> 3016 #include <clipping_planes_vertex> 3017 vViewPosition = - mvPosition.xyz; 3018 #include <worldpos_vertex> 3019 #include <envmap_vertex> 3020 #include <shadowmap_vertex> 3021 #include <fog_vertex> 3022}`,fet=`#define LAMBERT 3023uniform vec3 diffuse; 3024uniform vec3 emissive; 3025uniform float opacity; 3026#include <common> 3027#include <dithering_pars_fragment> 3028#include <color_pars_fragment> 3029#include <uv_pars_fragment> 3030#include <map_pars_fragment> 3031#include <alphamap_pars_fragment> 3032#include <alphatest_pars_fragment> 3033#include <alphahash_pars_fragment> 3034#include <aomap_pars_fragment> 3035#include <lightmap_pars_fragment> 3036#include <emissivemap_pars_fragment> 3037#include <cube_uv_reflection_fragment> 3038#include <envmap_common_pars_fragment> 3039#include <envmap_pars_fragment> 3040#include <envmap_physical_pars_fragment> 3041#include <fog_pars_fragment> 3042#include <bsdfs> 3043#include <lights_pars_begin> 3044#include <normal_pars_fragment> 3045#include <lights_lambert_pars_fragment> 3046#include <shadowmap_pars_fragment> 3047#include <bumpmap_pars_fragment> 3048#include <normalmap_pars_fragment> 3049#include <specularmap_pars_fragment> 3050#include <logdepthbuf_pars_fragment> 3051#include <clipping_planes_pars_fragment> 3052void main() { 3053 vec4 diffuseColor = vec4( diffuse, opacity ); 3054 #include <clipping_planes_fragment> 3055 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3056 vec3 totalEmissiveRadiance = emissive; 3057 #include <logdepthbuf_fragment> 3058 #include <map_fragment> 3059 #include <color_fragment> 3060 #include <alphamap_fragment> 3061 #include <alphatest_fragment> 3062 #include <alphahash_fragment> 3063 #include <specularmap_fragment> 3064 #include <normal_fragment_begin> 3065 #include <normal_fragment_maps> 3066 #include <emissivemap_fragment> 3067 #include <lights_lambert_fragment> 3068 #include <lights_fragment_begin> 3069 #include <lights_fragment_maps> 3070 #include <lights_fragment_end> 3071 #include <aomap_fragment> 3072 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 3073 #include <envmap_fragment> 3074 #include <opaque_fragment> 3075 #include <tonemapping_fragment> 3076 #include <colorspace_fragment> 3077 #include <fog_fragment> 3078 #include <premultiplied_alpha_fragment> 3079 #include <dithering_fragment> 3080}`,det=`#define MATCAP 3081varying vec3 vViewPosition; 3082#include <common> 3083#include <batching_pars_vertex> 3084#include <uv_pars_vertex> 3085#include <color_pars_vertex> 3086#include <displacementmap_pars_vertex> 3087#include <fog_pars_vertex> 3088#include <normal_pars_vertex> 3089#include <morphtarget_pars_vertex> 3090#include <skinning_pars_vertex> 3091#include <logdepthbuf_pars_vertex> 3092#include <clipping_planes_pars_vertex> 3093void main() { 3094 #include <uv_vertex> 3095 #include <color_vertex> 3096 #include <morphinstance_vertex> 3097 #include <morphcolor_vertex> 3098 #include <batching_vertex> 3099 #include <beginnormal_vertex> 3100 #include <morphnormal_vertex> 3101 #include <skinbase_vertex> 3102 #include <skinnormal_vertex> 3103 #include <defaultnormal_vertex> 3104 #include <normal_vertex> 3105 #include <begin_vertex> 3106 #include <morphtarget_vertex> 3107 #include <skinning_vertex> 3108 #include <displacementmap_vertex> 3109 #include <project_vertex> 3110 #include <logdepthbuf_vertex> 3111 #include <clipping_planes_vertex> 3112 #include <fog_vertex> 3113 vViewPosition = - mvPosition.xyz; 3114}`,het=`#define MATCAP 3115uniform vec3 diffuse; 3116uniform float opacity; 3117uniform sampler2D matcap; 3118varying vec3 vViewPosition; 3119#include <common> 3120#include <dithering_pars_fragment> 3121#include <color_pars_fragment> 3122#include <uv_pars_fragment> 3123#include <map_pars_fragment> 3124#include <alphamap_pars_fragment> 3125#include <alphatest_pars_fragment> 3126#include <alphahash_pars_fragment> 3127#include <fog_pars_fragment> 3128#include <normal_pars_fragment> 3129#include <bumpmap_pars_fragment> 3130#include <
3130normalmap_pars_fragment> 3131#include <logdepthbuf_pars_fragment> 3132#include <clipping_planes_pars_fragment> 3133void main() { 3134 vec4 diffuseColor = vec4( diffuse, opacity ); 3135 #include <clipping_planes_fragment> 3136 #include <logdepthbuf_fragment> 3137 #include <map_fragment> 3138 #include <color_fragment> 3139 #include <alphamap_fragment> 3140 #include <alphatest_fragment> 3141 #include <alphahash_fragment> 3142 #include <normal_fragment_begin> 3143 #include <normal_fragment_maps> 3144 vec3 viewDir = normalize( vViewPosition ); 3145 vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); 3146 vec3 y = cross( viewDir, x ); 3147 vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; 3148 #ifdef USE_MATCAP 3149 vec4 matcapColor = texture2D( matcap, uv ); 3150 #else 3151 vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); 3152 #endif 3153 vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; 3154 #include <opaque_fragment> 3155 #include <tonemapping_fragment> 3156 #include <colorspace_fragment> 3157 #include <fog_fragment> 3158 #include <premultiplied_alpha_fragment> 3159 #include <dithering_fragment> 3160}`,pet=`#define NORMAL 3161#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3162 varying vec3 vViewPosition; 3163#endif 3164#include <common> 3165#include <batching_pars_vertex> 3166#include <uv_pars_vertex> 3167#include <displacementmap_pars_vertex> 3168#include <normal_pars_vertex> 3169#include <morphtarget_pars_vertex> 3170#include <skinning_pars_vertex> 3171#include <logdepthbuf_pars_vertex> 3172#include <clipping_planes_pars_vertex> 3173void main() { 3174 #include <uv_vertex> 3175 #include <batching_vertex> 3176 #include <beginnormal_vertex> 3177 #include <morphinstance_vertex> 3178 #include <morphnormal_vertex> 3179 #include <skinbase_vertex> 3180 #include <skinnormal_vertex> 3181 #include <defaultnormal_vertex> 3182 #include <normal_vertex> 3183 #include <begin_vertex> 3184 #include <morphtarget_vertex> 3185 #include <skinning_vertex> 3186 #include <displacementmap_vertex> 3187 #include <project_vertex> 3188 #include <logdepthbuf_vertex> 3189 #include <clipping_planes_vertex> 3190#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3191 vViewPosition = - mvPosition.xyz; 3192#endif 3193}`,met=`#define NORMAL 3194uniform float opacity; 3195#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) 3196 varying vec3 vViewPosition; 3197#endif 3198#include <uv_pars_fragment> 3199#include <normal_pars_fragment> 3200#include <bumpmap_pars_fragment> 3201#include <normalmap_pars_fragment> 3202#include <logdepthbuf_pars_fragment> 3203#include <clipping_planes_pars_fragment> 3204void main() { 3205 vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); 3206 #include <clipping_planes_fragment> 3207 #include <logdepthbuf_fragment> 3208 #include <normal_fragment_begin> 3209 #include <normal_fragment_maps> 3210 gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); 3211 #ifdef OPAQUE 3212 gl_FragColor.a = 1.0; 3213 #endif 3214}`,Aet=`#define PHONG 3215varying vec3 vViewPosition; 3216#include <common> 3217#include <batching_pars_vertex> 3218#include <uv_pars_vertex> 3219#include <displacementmap_pars_vertex> 3220#include <envmap_pars_vertex> 3221#include <color_pars_vertex> 3222#include <fog_pars_vertex> 3223#include <normal_pars_vertex> 3224#include <morphtarget_pars_vertex> 3225#include <skinning_pars_vertex> 3226#include <shadowmap_pars_vertex> 3227#include <logdepthbuf_pars_vertex> 3228#include <clipping_planes_pars_vertex> 3229void main() { 3230 #include <uv_vertex> 3231 #include <color_vertex> 3232 #include <morphcolor_vertex> 3233 #include <batching_vertex> 3234 #include <beginnormal_vertex> 3235 #include <morphinstance_vertex> 3236 #include <morphnormal_vertex> 3237 #include <skinbase_vertex> 3238 #include <skinnormal_vertex> 3239 #include <defaultnormal_vertex> 3240 #include <normal_vertex> 3241 #include <begin_vertex> 3242 #include <morphtarget_vertex> 3243 #include <skinning_vertex> 3244 #include <displacementmap_vertex> 3245 #include <project_vertex> 3246 #include <logdepthbuf_vertex> 3247 #include <clipping_planes_vertex> 3248 vViewPosition = - mvPosition.xyz; 3249 #include <worldpos_vertex> 3250 #include <envmap_vertex> 3251 #include <shadowmap_vertex> 3252 #include <fog_vertex> 3253}`,get=`#define PHONG 3254uniform vec3 diffuse; 3255uniform vec3 emissive; 3256uniform vec3 specular; 3257uniform float shininess; 3258uniform float opacity; 3259#include <common> 3260#include <dithering_pars_fragment> 3261#include <color_pars_fragment> 3262#include <uv_pars_fragment> 3263#include <map_pars_fragment> 3264#include <alphamap_pars_fragment> 3265#include <alphatest_pars_fragment> 3266#include <alphahash_pars_fragment> 3267#include <aomap_pars_fragment> 3268#include <lightmap_pars_fragment> 3269#include <emissivemap_pars_fragment> 3270#include <cube_uv_reflection_fragment> 3271#include <envmap_common_pars_fragment> 3272#include <envmap_pars_fragment> 3273#include <envmap_physical_pars_fragment> 3274#include <fog_pars_fragment> 3275#include <bsdfs> 3276#include <lights_pars_begin> 3277#include <normal_pars_fragment> 3278#include <lights_phong_pars_fragment> 3279#include <shadowmap_pars_fragment> 3280#include <bumpmap_pars_fragment> 3281#include <normalmap_pars_fragment> 3282#include <specularmap_pars_fragment> 3283#include <logdepthbuf_pars_fragment> 3284#include <clipping_planes_pars_fragment> 3285void main() { 3286 vec4 diffuseColor = vec4( diffuse, opacity ); 3287 #include <clipping_planes_fragment> 3288 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3289 vec3 totalEmissiveRadiance = emissive; 3290 #include <logdepthbuf_fragment> 3291 #include <map_fragment> 3292 #include <color_fragment> 3293 #include <alphamap_fragment> 3294 #include <alphatest_fragment> 3295 #include <alphahash_fragment> 3296 #include <specularmap_fragment> 3297 #include <normal_fragment_begin> 3298 #include <normal_fragment_maps> 3299 #include <emissivemap_fragment> 3300 #include <lights_phong_fragment> 3301 #include <lights_fragment_begin> 3302 #include <lights_fragment_maps> 3303 #include <lights_fragment_end> 3304 #include <aomap_fragment> 3305 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; 3306 #include <envmap_fragment> 3307 #include <opaque_fragment> 3308 #include <tonemapping_fragment> 3309 #include <colorspace_fragment> 3310 #include <fog_fragment> 3311 #include <premultiplied_alpha_fragment> 3312 #include <dithering_fragment> 3313}`,xet=`#define STANDARD 3314varying vec3 vViewPosition; 3315#ifdef USE_TRANSMISSION 3316 varying vec3 vWorldPosition; 3317#endif 3318#include <common> 3319#include <batching_pars_vertex> 3320#include <uv_pars_vertex> 3321#include <displacementmap_pars_vertex> 3322#include <color_pars_vertex> 3323#include <fog_pars_vertex> 3324#include <normal_pars_vertex> 3325#include <morphtarget_pars_vertex> 3326#include <skinning_pars_vertex> 3327#include <shadowmap_pars_vertex> 3328#include <logdepthbuf_pars_vertex> 3329#include <clipping_planes_pars_vertex> 3330void main() { 3331 #include <uv_vertex> 3332 #include <color_vertex> 3333 #include <morphinstance_vertex> 3334 #include <morphcolor_vertex> 3335 #include <batching_vertex> 3336 #include <beginnormal_vertex> 3337 #include <morphnormal_vertex> 3338 #include <skinbase_vertex> 3339 #include <skinnormal_vertex> 3340 #include <defaultnormal_vertex> 3341 #include <normal_vertex> 3342 #include <begin_vertex> 3343 #include <morphtarget_vertex> 3344 #include <skinning_vertex> 3345 #include <displacementmap_vertex> 3346 #include <project_vertex> 3347 #include <logdepthbuf_vertex> 3348 #include <clipping_planes_vertex> 3349 vViewPosition = - mvPosition.xyz; 3350 #include <worldpos_vertex> 3351 #include <shadowmap_vertex> 3352 #include <fog_vertex> 3353#ifdef USE_TRANSMISSION 3354 vWorldPosition = worldPosition.xyz; 3355#endif 3356}`,vet=`#define STANDARD 3357#ifdef PHYSICAL 3358 #define IOR 3359 #define USE_SPECULAR 3360#endif 3361uniform vec3 diffuse; 3362uniform vec3 emissive; 3363uniform float roughness; 3364uniform float metalness; 3365uniform float opacity; 3366#ifdef IOR 3367 uniform float ior; 3368#endif 3369#ifdef USE_SPECULAR 3370 uniform float specularIntensity; 3371 uniform vec3 specularColor; 3372 #ifdef USE_SPECULAR_COLORMAP 3373 uniform sampler2D specularColorMap; 3374 #endif 3375 #ifdef USE_SPECULAR_INTENSITYMAP 3376 uniform sampler2D specularIntensityMap; 3377 #endif 3378#endif 3379#ifdef USE_CLEARCOAT 3380 uniform float clearcoat; 3381 uniform float clearcoatRoughness; 3382#endif 3383#ifdef USE_DISPERSION 3384 uniform float dispersion; 3385#endif
3386#ifdef USE_IRIDESCENCE 3387 uniform float iridescence; 3388 uniform float iridescenceIOR; 3389 uniform float iridescenceThicknessMinimum; 3390 uniform float iridescenceThicknessMaximum; 3391#endif 3392#ifdef USE_SHEEN 3393 uniform vec3 sheenColor; 3394 uniform float sheenRoughness; 3395 #ifdef USE_SHEEN_COLORMAP 3396 uniform sampler2D sheenColorMap; 3397 #endif 3398 #ifdef USE_SHEEN_ROUGHNESSMAP 3399 uniform sampler2D sheenRoughnessMap; 3400 #endif 3401#endif 3402#ifdef USE_ANISOTROPY 3403 uniform vec2 anisotropyVector; 3404 #ifdef USE_ANISOTROPYMAP 3405 uniform sampler2D anisotropyMap; 3406 #endif 3407#endif 3408varying vec3 vViewPosition; 3409#include <common> 3410#include <dithering_pars_fragment> 3411#include <color_pars_fragment> 3412#include <uv_pars_fragment> 3413#include <map_pars_fragment> 3414#include <alphamap_pars_fragment> 3415#include <alphatest_pars_fragment> 3416#include <alphahash_pars_fragment> 3417#include <aomap_pars_fragment> 3418#include <lightmap_pars_fragment> 3419#include <emissivemap_pars_fragment> 3420#include <iridescence_fragment> 3421#include <cube_uv_reflection_fragment> 3422#include <envmap_common_pars_fragment> 3423#include <envmap_physical_pars_fragment> 3424#include <fog_pars_fragment> 3425#include <lights_pars_begin> 3426#include <normal_pars_fragment> 3427#include <lights_physical_pars_fragment> 3428#include <transmission_pars_fragment> 3429#include <shadowmap_pars_fragment> 3430#include <bumpmap_pars_fragment> 3431#include <normalmap_pars_fragment> 3432#include <clearcoat_pars_fragment> 3433#include <iridescence_pars_fragment> 3434#include <roughnessmap_pars_fragment> 3435#include <metalnessmap_pars_fragment> 3436#include <logdepthbuf_pars_fragment> 3437#include <clipping_planes_pars_fragment> 3438void main() { 3439 vec4 diffuseColor = vec4( diffuse, opacity ); 3440 #include <clipping_planes_fragment> 3441 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3442 vec3 totalEmissiveRadiance = emissive; 3443 #include <logdepthbuf_fragment> 3444 #include <map_fragment> 3445 #include <color_fragment> 3446 #include <alphamap_fragment> 3447 #include <alphatest_fragment> 3448 #include <alphahash_fragment> 3449 #include <roughnessmap_fragment> 3450 #include <metalnessmap_fragment> 3451 #include <normal_fragment_begin> 3452 #include <normal_fragment_maps> 3453 #include <clearcoat_normal_fragment_begin> 3454 #include <clearcoat_normal_fragment_maps> 3455 #include <emissivemap_fragment> 3456 #include <lights_physical_fragment> 3457 #include <lights_fragment_begin> 3458 #include <lights_fragment_maps> 3459 #include <lights_fragment_end> 3460 #include <aomap_fragment> 3461 vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; 3462 vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; 3463 #include <transmission_fragment> 3464 vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; 3465 #ifdef USE_SHEEN 3466 3467 outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; 3468 3469 #endif 3470 #ifdef USE_CLEARCOAT 3471 float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); 3472 vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); 3473 outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; 3474 #endif 3475 #include <opaque_fragment> 3476 #include <tonemapping_fragment> 3477 #include <colorspace_fragment> 3478 #include <fog_fragment> 3479 #include <premultiplied_alpha_fragment> 3480 #include <dithering_fragment> 3481}`,yet=`#define TOON 3482varying vec3 vViewPosition; 3483#include <common> 3484#include <batching_pars_vertex> 3485#include <uv_pars_vertex> 3486#include <displacementmap_pars_vertex> 3487#include <color_pars_vertex> 3488#include <fog_pars_vertex> 3489#include <normal_pars_vertex> 3490#include <morphtarget_pars_vertex> 3491#include <skinning_pars_vertex> 3492#include <shadowmap_pars_vertex> 3493#include <logdepthbuf_pars_vertex> 3494#include <clipping_planes_pars_vertex> 3495void main() { 3496 #include <uv_vertex> 3497 #include <color_vertex> 3498 #include <morphinstance_vertex> 3499 #include <morphcolor_vertex> 3500 #include <batching_vertex> 3501 #include <beginnormal_vertex> 3502 #include <morphnormal_vertex> 3503 #include <skinbase_vertex> 3504 #include <skinnormal_vertex> 3505 #include <defaultnormal_vertex> 3506 #include <normal_vertex> 3507 #include <begin_vertex> 3508 #include <morphtarget_vertex> 3509 #include <skinning_vertex> 3510 #include <displacementmap_vertex> 3511 #include <project_vertex> 3512 #include <logdepthbuf_vertex> 3513 #include <clipping_planes_vertex> 3514 vViewPosition = - mvPosition.xyz; 3515 #include <worldpos_vertex> 3516 #include <shadowmap_vertex> 3517 #include <fog_vertex> 3518}`,_et=`#define TOON 3519uniform vec3 diffuse; 3520uniform vec3 emissive; 3521uniform float opacity; 3522#include <common> 3523#include <dithering_pars_fragment> 3524#include <color_pars_fragment> 3525#include <uv_pars_fragment> 3526#include <map_pars_fragment> 3527#include <alphamap_pars_fragment> 3528#include <alphatest_pars_fragment> 3529#include <alphahash_pars_fragment> 3530#include <aomap_pars_fragment> 3531#include <lightmap_pars_fragment> 3532#include <emissivemap_pars_fragment> 3533#include <gradientmap_pars_fragment> 3534#include <fog_pars_fragment> 3535#include <bsdfs> 3536#include <lights_pars_begin> 3537#include <normal_pars_fragment> 3538#include <lights_toon_pars_fragment> 3539#include <shadowmap_pars_fragment> 3540#include <bumpmap_pars_fragment> 3541#include <normalmap_pars_fragment> 3542#include <logdepthbuf_pars_fragment> 3543#include <clipping_planes_pars_fragment> 3544void main() { 3545 vec4 diffuseColor = vec4( diffuse, opacity ); 3546 #include <clipping_planes_fragment> 3547 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); 3548 vec3 totalEmissiveRadiance = emissive; 3549 #include <logdepthbuf_fragment> 3550 #include <map_fragment> 3551 #include <color_fragment> 3552 #include <alphamap_fragment> 3553 #include <alphatest_fragment> 3554 #include <alphahash_fragment> 3555 #include <normal_fragment_begin> 3556 #include <normal_fragment_maps> 3557 #include <emissivemap_fragment> 3558 #include <lights_toon_fragment> 3559 #include <lights_fragment_begin> 3560 #include <lights_fragment_maps> 3561 #include <lights_fragment_end> 3562 #include <aomap_fragment> 3563 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; 3564 #include <opaque_fragment> 3565 #include <tonemapping_fragment> 3566 #include <colorspace_fragment> 3567 #include <fog_fragment> 3568 #include <premultiplied_alpha_fragment> 3569 #include <dithering_fragment> 3570}`,bet=`uniform float size; 3571uniform float scale; 3572#include <common> 3573#include <color_pars_vertex> 3574#include <fog_pars_vertex> 3575#include <morphtarget_pars_vertex> 3576#include <logdepthbuf_pars_vertex> 3577#include <clipping_planes_pars_vertex> 3578#ifdef USE_POINTS_UV 3579 varying vec2 vUv; 3580 uniform mat3 uvTransform; 3581#endif 3582void main() { 3583 #ifdef USE_POINTS_UV 3584 vUv = ( uvTransform * vec3( uv, 1 ) ).xy; 3585 #endif 3586 #include <color_vertex> 3587 #include <morphinstance_vertex> 3588 #include <morphcolor_vertex> 3589 #include <begin_vertex> 3590 #include <morphtarget_vertex> 3591 #include <project_vertex> 3592 gl_PointSize = size; 3593 #ifdef USE_SIZEATTENUATION 3594 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 3595 if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); 3596 #endif 3597 #include <logdepthbuf_vertex> 3598 #include <clipping_planes_vertex> 3599 #include <worldpos_vertex> 3600 #include <fog_vertex> 3601}`,wet=`uniform vec3 diffuse; 3602uniform float opacity; 3603#include <common> 3604#include <color_pars_fragment> 3605#include <map_particle_pars_fragment> 3606#include <alphatest_pars_fragment> 3607#include <alphahash_pars_fragment> 3608#include <fog_pars_fragment> 3609#include <logdepthbuf_pars_fragment> 3610#include <clipping_planes_pars_fragment> 3611void main() { 3612 vec4 diffuseColor = vec4( diffuse, opacity ); 3613 #include <clipping_planes_fragment> 3614 vec3 outgoingLight = vec3( 0.0 ); 3615 #include <logdepthbuf_fragment> 3616 #include <map_particle_fragment> 3617 #include <color_fragment> 3618 #include <alphatest_fragment> 3619 #include <alphahash_fragment> 3620 outgoingLight = diffuseColor.rgb; 3621 #include <opaque_fragment> 3622 #include <tonemapping_fragment> 3623 #include <colorspace_fragment> 3624 #include <fog_fragment> 3625 #include <premultiplied_alpha_fragment> 3626}`,Tet=`#include <common> 3627#include <batching_pars_vertex> 3628#include <fog_pars_vertex> 3629#include <morphtarget_pars_vertex> 3630#include <skinning_pars_vertex> 3631#include <logdepthbuf_pars_vertex> 3632#include <shadowmap_pars_vertex> 3633void main() { 3634 #include <batching_vertex> 3635 #include <beginnormal_vertex> 3636 #include <morphinstance_vertex> 3637 #include <morphnormal_vertex> 3638 #include <skinbase_vertex> 3639 #include <skinnormal_vertex> 3640 #include <defaultnormal_vertex> 3641 #include <begin_vertex> 3642 #include <morphtarget_vertex> 3643 #include <skinning_vertex> 3644 #include <project_vertex> 3645 #include <logdepthbuf_vertex> 3646 #include <worldpos_vertex> 3647 #include <shadowmap_vertex> 3648 #include <fog_vertex> 3649}`,Eet=`uniform vec3 color; 3650uniform float opacity; 3651#include <common> 3652#include <fog_pars_fragment> 3653#include <bsdfs> 3654#include <lights_pars_begin> 3655#include <logdepthbuf_pars_fragment> 3656#include <shadowmap_pars_fragment> 3657#include <shadowmask_pars_fragment> 3658void main() { 3659 #include <logdepthbuf_fragment> 3660 gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); 3661 #include <tonemapping_fragment> 3662 #include <colorspace_fragment> 3663 #include <fog_fragment> 3664 #include <premultiplied_alpha_fragment> 3665}`,Met=`uniform float rotation; 3666uniform vec2 center; 3667#include <common> 3668#include <uv_pars_vertex> 3669#include <fog_pars_vertex> 3670#include <logdepthbuf_pars_vertex> 3671#include <clipping_planes_pars_vertex> 3672void main() { 3673 #include <uv_vertex> 3674 vec4 mvPosition = modelViewMatrix[ 3 ]; 3675 vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); 3676 #ifndef USE_SIZEATTENUATION 3677 bool isPerspective = isPerspectiveMatrix( projectionMatrix ); 3678 if ( isPerspective ) scale *= - mvPosition.z; 3679 #endif 3680 vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; 3681 vec2 rotatedPosition; 3682 rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; 3683 rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; 3684 mvPosition.xy += rotatedPosition; 3685 gl_Position = projectionMatrix * mvPosition; 3686 #include <logdepthbuf_vertex> 3687 #include <clipping_planes_vertex> 3688 #include <fog_vertex> 3689}`,Cet=`uniform vec3 diffuse; 3690uniform float opacity; 3691#include <common> 3692#include <uv_pars_fragment> 3693#include <map_pars_fragment> 3694#include <alphamap_pars_fragment> 3695#include <alphatest_pars_fragment> 3696#include <alphahash_pars_fragment> 3697#include <fog_pars_fragment> 3698#include <logdepthbuf_pars_fragment> 3699#include <clipping_planes_pars_fragment> 3700void main() { 3701 vec4 diffuseColor = vec4( diffuse, opacity ); 3702 #include <clipping_planes_fragment> 3703 vec3 outgoingLight = vec3( 0.0 ); 3704 #include <logdepthbuf_fragment> 3705 #include <map_fragment> 3706 #include <alphamap_fragment> 3707 #include <alphatest_fragment> 3708 #include <alphahash_fragment> 3709 outgoingLight = diffuseColor.rgb; 3710 #include <opaque_fragment> 3711 #include <tonemapping_fragment> 3712 #include <colorspace_fragment> 3713 #include <fog_fragment> 3714}`,Xr={alphahash_fragment:WQe,alphahash_pars_fragment:ZQe,alphamap_fragment:YQe,alphamap_pars_fragment:XQe,alphatest_fragment:QQe,alphatest_pars_fragment:KQe,aomap_fragment:JQe,aomap_pars_fragment:eKe,batching_pars_vertex:tKe,batching_vertex:nKe,begin_vertex:rKe,beginnormal_vertex:iKe,bsdfs:aKe,iridescence_fragment:sKe,bumpmap_pars_fragment:oKe,clipping_planes_fragment:lKe,clipping_planes_pars_fragment:cKe,clipping_planes_pars_vertex:uKe,clipping_planes_vertex:fKe,color_fragment:dKe,color_pars_fragment:hKe,color_pars_vertex:pKe,color_vertex:mKe,common:AKe,cube_uv_reflection_fragment:gKe,defaultnormal_vertex:xKe,dis
vendor: 11,925 bytes, line 3714
3714placementmap_pars_vertex:vKe,displacementmap_vertex:yKe,emissivemap_fragment:_Ke,emissivemap_pars_fragment:bKe,colorspace_fragment:wKe,colorspace_pars_fragment:SKe,envmap_fragment:TKe,envmap_common_pars_fragment:EKe,envmap_pars_fragment:MKe,envmap_pars_vertex:CKe,envmap_physical_pars_fragment:UKe,envmap_vertex:NKe,fog_vertex:RKe,fog_pars_vertex:DKe,fog_fragment:PKe,fog_pars_fragment:kKe,gradientmap_pars_fragment:LKe,lightmap_pars_fragment:OKe,lights_lambert_fragment:FKe,lights_lambert_pars_fragment:IKe,lights_pars_begin:BKe,lights_toon_fragment:VKe,lights_toon_pars_fragment:jKe,lights_phong_fragment:HKe,lights_phong_pars_fragment:GKe,lights_physical_fragment:zKe,lights_physical_pars_fragment:$Ke,lights_fragment_begin:qKe,lights_fragment_maps:WKe,lights_fragment_end:ZKe,lightprobes_pars_fragment:YKe,logdepthbuf_fragment:XKe,logdepthbuf_pars_fragment:QKe,logdepthbuf_pars_vertex:KKe,logdepthbuf_vertex:JKe,map_fragment:eJe,map_pars_fragment:tJe,map_particle_fragment:nJe,map_particle_pars_fragment:rJe,metalnessmap_fragment:iJe,metalnessmap_pars_fragment:aJe,morphinstance_vertex:sJe,morphcolor_vertex:oJe,morphnormal_vertex:lJe,morphtarget_pars_vertex:cJe,morphtarget_vertex:uJe,normal_fragment_begin:fJe,normal_fragment_maps:dJe,normal_pars_fragment:hJe,normal_pars_vertex:pJe,normal_vertex:mJe,normalmap_pars_fragment:AJe,clearcoat_normal_fragment_begin:gJe,clearcoat_normal_fragment_maps:xJe,clearcoat_pars_fragment:vJe,iridescence_pars_fragment:yJe,opaque_fragment:_Je,packing:bJe,premultiplied_alpha_fragment:wJe,project_vertex:SJe,dithering_fragment:TJe,dithering_pars_fragment:EJe,roughnessmap_fragment:MJe,roughnessmap_pars_fragment:CJe,shadowmap_pars_fragment:NJe,shadowmap_pars_vertex:RJe,shadowmap_vertex:DJe,shadowmask_pars_fragment:PJe,skinbase_vertex:kJe,skinning_pars_vertex:LJe,skinning_vertex:OJe,skinnormal_vertex:FJe,specularmap_fragment:IJe,specularmap_pars_fragment:BJe,tonemapping_fragment:UJe,tonemapping_pars_fragment:VJe,transmission_fragment:jJe,transmission_pars_fragment:HJe,uv_pars_fragment:GJe,uv_pars_vertex:zJe,uv_vertex:$Je,worldpos_vertex:qJe,background_vert:WJe,background_frag:ZJe,backgroundCube_vert:YJe,backgroundCube_frag:XJe,cube_vert:QJe,cube_frag:KJe,depth_vert:JJe,depth_frag:eet,distance_vert:tet,distance_frag:net,equirect_vert:ret,equirect_frag:iet,linedashed_vert:aet,linedashed_frag:set,meshbasic_vert:oet,meshbasic_frag:cet,meshlambert_vert:uet,meshlambert_frag:fet,meshmatcap_vert:det,meshmatcap_frag:het,meshnormal_vert:pet,meshnormal_frag:met,meshphong_vert:Aet,meshphong_frag:get,meshphysical_vert:xet,meshphysical_frag:vet,meshtoon_vert:yet,meshtoon_frag:_et,points_vert:bet,points_frag:wet,shadow_vert:Tet,shadow_frag:Eet,sprite_vert:Met,sprite_frag:Cet},Fn={common:{diffuse:{value:new Xn(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Vr},alphaMap:{value:null},alphaMapTransform:{value:new Vr},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Vr}},envmap:{envMap:{value:null},envMapRotation:{value:new Vr},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Vr}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Vr}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Vr},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Vr},normalScale:{value:new tn(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Vr},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Vr}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Vr}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Vr}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Xn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new Pe},probesMax:{value:new Pe},probesResolution:{value:new Pe}},points:{diffuse:{value:new Xn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Vr},alphaTest:{value:0},uvTransform:{value:new Vr}},sprite:{diffuse:{value:new Xn(16777215)},opacity:{value:1},center:{value:new tn(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Vr},alphaMap:{value:null},alphaMapTransform:{value:new Vr},alphaTest:{value:0}}},h0={basic:{uniforms:Au([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.fog]),vertexShader:Xr.meshbasic_vert,fragmentShader:Xr.meshbasic_frag},lambert:{uniforms:Au([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.fog,Fn.lights,{emissive:{value:new Xn(0)},envMapIntensity:{value:1}}]),vertexShader:Xr.meshlambert_vert,fragmentShader:Xr.meshlambert_frag},phong:{uniforms:Au([Fn.common,Fn.specularmap,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.fog,Fn.lights,{emissive:{value:new Xn(0)},specular:{value:new Xn(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Xr.meshphong_vert,fragmentShader:Xr.meshphong_frag},standard:{uniforms:Au([Fn.common,Fn.envmap,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.roughnessmap,Fn.metalnessmap,Fn.fog,Fn.lights,{emissive:{value:new Xn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Xr.meshphysical_vert,fragmentShader:Xr.meshphysical_frag},toon:{uniforms:Au([Fn.common,Fn.aomap,Fn.lightmap,Fn.emissivemap,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.gradientmap,Fn.fog,Fn.lights,{emissive:{value:new Xn(0)}}]),vertexShader:Xr.meshtoon_vert,fragmentShader:Xr.meshtoon_frag},matcap:{uniforms:Au([Fn.common,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,Fn.fog,{matcap:{value:null}}]),vertexShader:Xr.meshmatcap_vert,fragmentShader:Xr.meshmatcap_frag},points:{uniforms:Au([Fn.points,Fn.fog]),vertexShader:Xr.points_vert,fragmentShader:Xr.points_frag},dashed:{uniforms:Au([Fn.common,Fn.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Xr.linedashed_vert,fragmentShader:Xr.linedashed_frag},depth:{uniforms:Au([Fn.common,Fn.displacementmap]),vertexShader:Xr.depth_vert,fragmentShader:Xr.depth_frag},normal:{uniforms:Au([Fn.common,Fn.bumpmap,Fn.normalmap,Fn.displacementmap,{opacity:{value:1}}]),vertexShader:Xr.meshnormal_vert,fragmentShader:Xr.meshnormal_frag},sprite:{uniforms:Au([Fn.sprite,Fn.fog]),vertexShader:Xr.sprite_vert,fragmentShader:Xr.sprite_frag},background:{uniforms:{uvTransform:{value:new Vr},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Xr.background_vert,fragmentShader:Xr.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Vr}},vertexShader:Xr.backgroundCube_vert,fragmentShader:Xr.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Xr.cube_vert,fragmentShader:Xr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Xr.equirect_vert,fragmentShader:Xr.equirect_frag},distance:{uniforms:Au([Fn.common,Fn.displacementmap,{referencePosition:{value:new Pe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Xr.distance_vert,fragmentShader:Xr.distance_frag},shadow:{uniforms:Au([Fn.lights,Fn.fog,{color:{value:new Xn(0)},opacity:{value:1}}]),vertexShader:Xr.shadow_vert,fragmentShader:Xr.shadow_frag}};h0.physical={uniforms:Au([h0.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Vr},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Vr},clearcoatNormalScale:{value:new tn(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Vr},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Vr},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Vr},sheen:{value:0},sheenColor:{value:new Xn(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Vr},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Vr},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Vr},transmissionSamplerSize:{value:new tn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Vr},attenuationDistance:{value:0},attenuationColor:{value:new Xn(0)},specularColor:{value:new Xn(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Vr},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Vr},anisotropyVector:{value:new tn},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Vr}}]),vertexShader:Xr.meshphysical_vert,fragmentShader:Xr.meshphysical_frag};const L7={r:0,b:0,g:0},Net=new Fr,p2e=new Vr;p2e.set(-1,0,0,0,1,0,0,0,1);function Ret(t,e,n,r,i,a){const s=new Xn(0);let o=i===!0?0:1,l,c,u=null,f=0,h=null;function p(C){let M=C.isScene===!0?C.background:null;if(M&&M.isTexture){const D=C.backgroundBlurriness>0;M=e.get(M,D)}return M}function A(C){let M=!1;const D=p(C);D===null?w(s,o):D&&D.isColor&&(w(D,1),M=!0);const k=t.xr.getEnvironmentBlendMode();k==="additive"?n.buffers.color.setClear(0,0,0,1,a):k==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,a),(t.autoClear||M)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil))}function g(C,M){const D=p(M);D&&(D.isCubeTexture||D.mapping===hy)?(c===void 0&&(c=new ea(new lx(1,1,1),new ru({name:"BackgroundCubeMaterial",uniforms:S_(h0.backgroundCube.uniforms),vertexShader:h0.backgroundCube.vertexShader,fragmentShader:h0.backgroundCube.fragmentShader,side:ca,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(k,I,L){this.matrixWorld.copyPosition(L.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(c)),c.material.uniforms.envMap.value=D,c.material.uniforms.backgroundBlurriness.value=M.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=M.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4(Net.makeRotationFromEuler(M.backgroundRotation)).transpose(),D.isCubeTexture&&D.isRenderTargetTexture===!1&&c.material.uniforms.backgroundRotation.value.premultiply(
vendor: 13,558 bytes, line 3714
3714p2e),c.material.toneMapped=Ar.getTransfer(D.colorSpace)!==Bn,(u!==D||f!==D.version||h!==t.toneMapping)&&(c.material.needsUpdate=!0,u=D,f=D.version,h=t.toneMapping),c.layers.enableAll(),C.unshift(c,c.geometry,c.material,0,0,null)):D&&D.isTexture&&(l===void 0&&(l=new ea(new WT(2,2),new ru({name:"BackgroundMaterial",uniforms:S_(h0.background.uniforms),vertexShader:h0.background.vertexShader,fragmentShader:h0.background.fragmentShader,side:Uu,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(l)),l.material.uniforms.t2D.value=D,l.material.uniforms.backgroundIntensity.value=M.backgroundIntensity,l.material.toneMapped=Ar.getTransfer(D.colorSpace)!==Bn,D.matrixAutoUpdate===!0&&D.updateMatrix(),l.material.uniforms.uvTransform.value.copy(D.matrix),(u!==D||f!==D.version||h!==t.toneMapping)&&(l.material.needsUpdate=!0,u=D,f=D.version,h=t.toneMapping),l.layers.enableAll(),C.unshift(l,l.geometry,l.material,0,0,null))}function w(C,M){C.getRGB(L7,a2e(t)),n.buffers.color.setClear(L7.r,L7.g,L7.b,M,a)}function T(){c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0),l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0)}return{getClearColor:function(){return s},setClearColor:function(C,M=1){s.set(C),o=M,w(s,o)},getClearAlpha:function(){return o},setClearAlpha:function(C){o=C,w(s,o)},render:A,addToRenderList:g,dispose:T}}function Det(t,e){const n=t.getParameter(t.MAX_VERTEX_ATTRIBS),r={},i=h(null);let a=i,s=!1;function o(j,z,Q,ee,Z){let X=!1;const K=f(j,ee,Q,z);a!==K&&(a=K,c(a.object)),X=p(j,ee,Q,Z),X&&A(j,ee,Q,Z),Z!==null&&e.update(Z,t.ELEMENT_ARRAY_BUFFER),(X||s)&&(s=!1,D(j,z,Q,ee),Z!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e.get(Z).buffer))}function l(){return t.createVertexArray()}function c(j){return t.bindVertexArray(j)}function u(j){return t.deleteVertexArray(j)}function f(j,z,Q,ee){const Z=ee.wireframe===!0;let X=r[z.id];X===void 0&&(X={},r[z.id]=X);const K=j.isInstancedMesh===!0?j.id:0;let se=X[K];se===void 0&&(se={},X[K]=se);let ae=se[Q.id];ae===void 0&&(ae={},se[Q.id]=ae);let J=ae[Z];return J===void 0&&(J=h(l()),ae[Z]=J),J}function h(j){const z=[],Q=[],ee=[];for(let Z=0;Z<n;Z++)z[Z]=0,Q[Z]=0,ee[Z]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:z,enabledAttributes:Q,attributeDivisors:ee,object:j,attributes:{},index:null}}function p(j,z,Q,ee){const Z=a.attributes,X=z.attributes;let K=0;const se=Q.getAttributes();for(const ae in se)if(se[ae].location>=0){const oe=Z[ae];let te=X[ae];if(te===void 0&&(ae==="instanceMatrix"&&j.instanceMatrix&&(te=j.instanceMatrix),ae==="instanceColor"&&j.instanceColor&&(te=j.instanceColor)),oe===void 0||oe.attribute!==te||te&&oe.data!==te.data)return!0;K++}return a.attributesNum!==K||a.index!==ee}function A(j,z,Q,ee){const Z={},X=z.attributes;let K=0;const se=Q.getAttributes();for(const ae in se)if(se[ae].location>=0){let oe=X[ae];oe===void 0&&(ae==="instanceMatrix"&&j.instanceMatrix&&(oe=j.instanceMatrix),ae==="instanceColor"&&j.instanceColor&&(oe=j.instanceColor));const te={};te.attribute=oe,oe&&oe.data&&(te.data=oe.data),Z[ae]=te,K++}a.attributes=Z,a.attributesNum=K,a.index=ee}function g(){const j=a.newAttributes;for(let z=0,Q=j.length;z<Q;z++)j[z]=0}function w(j){T(j,0)}function T(j,z){const Q=a.newAttributes,ee=a.enabledAttributes,Z=a.attributeDivisors;Q[j]=1,ee[j]===0&&(t.enableVertexAttribArray(j),ee[j]=1),Z[j]!==z&&(t.vertexAttribDivisor(j,z),Z[j]=z)}function C(){const j=a.newAttributes,z=a.enabledAttributes;for(let Q=0,ee=z.length;Q<ee;Q++)z[Q]!==j[Q]&&(t.disableVertexAttribArray(Q),z[Q]=0)}function M(j,z,Q,ee,Z,X,K){K===!0?t.vertexAttribIPointer(j,z,Q,Z,X):t.vertexAttribPointer(j,z,Q,ee,Z,X)}function D(j,z,Q,ee){g();const Z=ee.attributes,X=Q.getAttributes(),K=z.defaultAttributeValues;for(const se in X){const ae=X[se];if(ae.location>=0){let J=Z[se];if(J===void 0&&(se==="instanceMatrix"&&j.instanceMatrix&&(J=j.instanceMatrix),se==="instanceColor"&&j.instanceColor&&(J=j.instanceColor)),J!==void 0){const oe=J.normalized,te=J.itemSize,he=e.get(J);if(he===void 0)continue;const me=he.buffer,de=he.type,Ae=he.bytesPerElement,Se=de===t.INT||de===t.UNSIGNED_INT||J.gpuType===Al;if(J.isInterleavedBufferAttribute){const Re=J.data,Ne=Re.stride,Fe=J.offset;if(Re.isInstancedInterleavedBuffer){for(let Qe=0;Qe<ae.locationSize;Qe++)T(ae.location+Qe,Re.meshPerAttribute);j.isInstancedMesh!==!0&&ee._maxInstanceCount===void 0&&(ee._maxInstanceCount=Re.meshPerAttribute*Re.count)}else for(let Qe=0;Qe<ae.locationSize;Qe++)w(ae.location+Qe);t.bindBuffer(t.ARRAY_BUFFER,me);for(let Qe=0;Qe<ae.locationSize;Qe++)M(ae.location+Qe,te/ae.locationSize,de,oe,Ne*Ae,(Fe+te/ae.locationSize*Qe)*Ae,Se)}else{if(J.isInstancedBufferAttribute){for(let Re=0;Re<ae.locationSize;Re++)T(ae.location+Re,J.meshPerAttribute);j.isInstancedMesh!==!0&&ee._maxInstanceCount===void 0&&(ee._maxInstanceCount=J.meshPerAttribute*J.count)}else for(let Re=0;Re<ae.locationSize;Re++)w(ae.location+Re);t.bindBuffer(t.ARRAY_BUFFER,me);for(let Re=0;Re<ae.locationSize;Re++)M(ae.location+Re,te/ae.locationSize,de,oe,te*Ae,te/ae.locationSize*Re*Ae,Se)}}else if(K!==void 0){const oe=K[se];if(oe!==void 0)switch(oe.length){case 2:t.vertexAttrib2fv(ae.location,oe);break;case 3:t.vertexAttrib3fv(ae.location,oe);break;case 4:t.vertexAttrib4fv(ae.location,oe);break;default:t.vertexAttrib1fv(ae.location,oe)}}}}C()}function k(){B();for(const j in r){const z=r[j];for(const Q in z){const ee=z[Q];for(const Z in ee){const X=ee[Z];for(const K in X)u(X[K].object),delete X[K];delete ee[Z]}}delete r[j]}}function I(j){if(r[j.id]===void 0)return;const z=r[j.id];for(const Q in z){const ee=z[Q];for(const Z in ee){const X=ee[Z];for(const K in X)u(X[K].object),delete X[K];delete ee[Z]}}delete r[j.id]}function L(j){for(const z in r){const Q=r[z];for(const ee in Q){const Z=Q[ee];if(Z[j.id]===void 0)continue;const X=Z[j.id];for(const K in X)u(X[K].object),delete X[K];delete Z[j.id]}}}function O(j){for(const z in r){const Q=r[z],ee=j.isInstancedMesh===!0?j.id:0,Z=Q[ee];if(Z!==void 0){for(const X in Z){const K=Z[X];for(const se in K)u(K[se].object),delete K[se];delete Z[X]}delete Q[ee],Object.keys(Q).length===0&&delete r[z]}}}function B(){G(),s=!0,a!==i&&(a=i,c(a.object))}function G(){i.geometry=null,i.program=null,i.wireframe=!1}return{setup:o,reset:B,resetDefaultState:G,dispose:k,releaseStatesOfGeometry:I,releaseStatesOfObject:O,releaseStatesOfProgram:L,initAttributes:g,enableAttribute:w,disableUnusedAttributes:C}}function Pet(t,e,n){let r;function i(l){r=l}function a(l,c){t.drawArrays(r,l,c),n.update(c,r,1)}function s(l,c,u){u!==0&&(t.drawArraysInstanced(r,l,c,u),n.update(c,r,u))}function o(l,c,u){if(u===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(r,l,0,c,0,u);let h=0;for(let p=0;p<u;p++)h+=c[p];n.update(h,r,1)}this.setMode=i,this.render=a,this.renderInstances=s,this.renderMultiDraw=o}function ket(t,e,n,r){let i;function a(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const L=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(L.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function s(L){return!(L!==fo&&r.convert(L)!==t.getParameter(t.IMPLEMENTATION_COLOR_READ_FORMAT))}function o(L){const O=L===is&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(L!==rs&&r.convert(L)!==t.getParameter(t.IMPLEMENTATION_COLOR_READ_TYPE)&&L!==os&&!O)}function l(L){if(L==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";L="mediump"}return L==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=n.precision!==void 0?n.precision:"highp";const u=l(c);u!==c&&(Kt("WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const f=n.logarithmicDepthBuffer===!0,h=n.reversedDepthBuffer===!0&&e.has("EXT_clip_control");n.reversedDepthBuffer===!0&&h===!1&&Kt("WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.");const p=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),A=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=t.getParameter(t.MAX_TEXTURE_SIZE),w=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),T=t.getParameter(t.MAX_VERTEX_ATTRIBS),C=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),M=t.getParameter(t.MAX_VARYING_VECTORS),D=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),k=t.getParameter(t.MAX_SAMPLES),I=t.getParameter(t.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:l,textureFormatReadable:s,textureTypeReadable:o,precision:c,logarithmicDepthBuffer:f,reversedDepthBuffer:h,maxTextures:p,maxVertexTextures:A,maxTextureSize:g,maxCubemapSize:w,maxAttributes:T,maxVertexUniforms:C,maxVaryings:M,maxFragmentUniforms:D,maxSamples:k,samples:I}}function Let(t){const e=this;let n=null,r=0,i=!1,a=!1;const s=new L1,o=new Vr,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(f,h){const p=f.length!==0||h||r!==0||i;return i=h,r=f.length,p},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(f,h){n=u(f,h,0)},this.setState=function(f,h,p){const A=f.clippingPlanes,g=f.clipIntersection,w=f.clipShadows,T=t.get(f);if(!i||A===null||A.length===0||a&&!w)a?u(null):c();else{const C=a?0:r,M=C*4;let D=T.clippingState||null;l.value=D,D=u(A,h,M,p);for(let k=0;k!==M;++k)D[k]=n[k];T.clippingState=D,this.numIntersection=g?this.numPlanes:0,this.numPlanes+=C}};function c(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(f,h,p,A){const g=f!==null?f.length:0;let w=null;if(g!==0){if(w=l.value,A!==!0||w===null){const T=p+g*4,C=h.matrixWorldInverse;o.getNormalMatrix(C),(w===null||w.length<T)&&(w=new Float32Array(T));for(let M=0,D=p;M!==g;++M,D+=4)s.copy(f[M]).applyMatrix4(C,o),s.normal.toArray(w,D),w[D+3]=s.constant}l.value=w,l.needsUpdate=!0}return e.numPlanes=g,e.numIntersection=0,w}}const ug=4,Sre=[.125,.215,.35,.446,.526,.582],uv=20,Oet=256,Gb=new A6,Tre=new Xn;let PI=null,kI=0,LI=0,OI=!1;const Fet=new Pe;let Ere=class{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._sizeLods=[],this._sigmas=[],this._lodMeshes=[],this._backgroundBox=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._blurMaterial=null,this._ggxMaterial=null}fromScene(e,n=0,r=.1,i=100,a={}){const{size:s=256,position:o=Fet}=a;PI=this._renderer.getRenderTarget(),kI=this._renderer.getActiveCubeFace(),LI=this._renderer.getActiveMipmapLevel(),OI=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(s);const l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(e,r,i,l,o),n>0&&this._blur(l,0,0,n),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Nre(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Cre(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodMeshes.length;e++)this._lodMeshes[e].geometry.dispose()}_cleanup(e){this._renderer.setRenderTarget(PI,kI,LI),this._renderer.xr.enabled=OI,e.scissorTest=!1,n8(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===Zh||e.mapping===yp?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),PI=this._renderer.getRenderTarget(),kI=this._renderer.getActiveCubeFace(),LI=this._renderer.getActiveMipmapLevel(),OI=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const r=n||this._allocateTargets();return this._textureToCubeUV(e,r),this._applyPMREM(r),this._cleanup(r),r}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,r={magFilter:Ba,minFilter:Ba,generateMipmaps:!1,type:is,format:fo,colorSpace:v_,depthBuffer:!1},i=Mre(e,n,r);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=Mre(e,n,r);const{_lodMax:a}=this;({lodMeshes:this._lodMeshes,sizeLods:this._sizeLods,sigmas:this._sigmas}=Iet(a)),this._blurMaterial=Uet(a,e,n),this._ggxMaterial=Bet(a,e,n)}return i}_compileMaterial(e){const n=new ea(new da,e);this._renderer.compile(n,Gb)}_sceneToCubeUV(e,n,r,i,a){const l=new jl(90,1,n,r),c=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],f=this._renderer,h=f.autoClear,p=f.toneMapping;f.getClearColor(Tre),f.toneMapping=cc,f.autoClear=!1,f.state.buffers.depth.getReversed()&&(f.setRenderTarget(i),f.clearDepth(),f.setRenderTarget(null)),this._backgroundBox===null&&(this._backgroundBox=new ea(new lx,new od({name:"PMREM.Backgroun
3714d",side:ca,depthWrite:!1,depthTest:!1})));const g=this._backgroundBox,w=g.material;let T=!1;const C=e.background;C?C.isColor&&(w.color.copy(C),e.background=null,T=!0):(w.color.copy(Tre),T=!0);for(let M=0;M<6;M++){const D=M%3;D===0?(l.up.set(0,c[M],0),l.position.set(a.x,a.y,a.z),l.lookAt(a.x+u[M],a.y,a.z)):D===1?(l.up.set(0,0,c[M]),l.position.set(a.x,a.y,a.z),l.lookAt(a.x,a.y+u[M],a.z)):(l.up.set(0,c[M],0),l.position.set(a.x,a.y,a.z),l.lookAt(a.x,a.y,a.z+u[M]));const k=this._cubeSize;n8(i,D*k,M>2?k:0,k,k),f.setRenderTarget(i),T&&f.render(g,l),f.render(e,l)}f.toneMapping=p,f.autoClear=h,e.background=C}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===Zh||e.mapping===yp;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=Nre()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Cre());const a=i?this._cubemapMaterial:this._equirectMaterial,s=this._lodMeshes[0];s.material=a;const o=a.uniforms;o.envMap.value=e;const l=this._cubeSize;n8(n,0,0,3*l,2*l),r.setRenderTarget(n),r.render(s,Gb)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;const i=this._lodMeshes.length;for(let a=1;a<i;a++)this._applyGGXFilter(e,a-1,a);n.autoClear=r}_applyGGXFilter(e,n,r){const i=this._renderer,a=this._pingPongRenderTarget,s=this._ggxMaterial,o=this._lodMeshes[r];o.material=s;const l=s.uniforms,c=r/(this._lodMeshes.length-1),u=n/(this._lodMeshes.length-1),f=Math.sqrt(c*c-u*u),h=0+c*1.25,p=f*h,{_lodMax:A}=this,g=this._sizeLods[r],w=3*g*(r>A-ug?r-A+ug:0),T=4*(this._cubeSize-g);l.envMap.value=e.texture,l.roughness.value=p,l.mipInt.value=A-n,n8(a,w,T,3*g,2*g),i.setRenderTarget(a),i.render(o,Gb),l.envMap.value=a.texture,l.roughness.value=0,l.mipInt.value=A-r,n8(e,w,T,3*g,2*g),i.setRenderTarget(e),i.render(o,Gb)}_blur(e,n,r,i,a){const s=this._pingPongRenderTarget;this._halfBlur(e,s,n,r,i,"latitudinal",a),this._halfBlur(s,e,r,r,i,"longitudinal",a)}_halfBlur(e,n,r,i,a,s,o){const l=this._renderer,c=this._blurMaterial;s!=="latitudinal"&&s!=="longitudinal"&&nn("blur direction must be either latitudinal or longitudinal!");const u=3,f=this._lodMeshes[i];f.material=c;const h=c.uniforms,p=this._sizeLods[r]-1,A=isFinite(a)?Math.PI/(2*p):2*Math.PI/(2*uv-1),g=a/A,w=isFinite(a)?1+Math.floor(u*g):uv;w>uv&&Kt(`sigmaRadians, ${a}, is too large and will clip, as it requested ${w} samples when the maximum is set to ${uv}`);const T=[];let C=0;for(let L=0;L<uv;++L){const O=L/g,B=Math.exp(-O*O/2);T.push(B),L===0?C+=B:L<w&&(C+=2*B)}for(let L=0;L<T.length;L++)T[L]=T[L]/C;h.envMap.value=e.texture,h.samples.value=w,h.weights.value=T,h.latitudinal.value=s==="latitudinal",o&&(h.poleAxis.value=o);const{_lodMax:M}=this;h.dTheta.value=A,h.mipInt.value=M-r;const D=this._sizeLods[i],k=3*D*(i>M-ug?i-M+ug:0),I=4*(this._cubeSize-D);n8(n,k,I,3*D,2*D),l.setRenderTarget(n),l.render(f,Gb)}};function Iet(t){const e=[],n=[],r=[];let i=t;const a=t-ug+1+Sre.length;for(let s=0;s<a;s++){const o=Math.pow(2,i);e.push(o);let l=1/o;s>t-ug?l=Sre[s-t+ug-1]:s===0&&(l=0),n.push(l);const c=1/(o-2),u=-c,f=1+c,h=[u,u,f,u,f,f,u,u,f,f,u,f],p=6,A=6,g=3,w=2,T=1,C=new Float32Array(g*A*p),M=new Float32Array(w*A*p),D=new Float32Array(T*A*p);for(let I=0;I<p;I++){const L=I%3*2/3-1,O=I>2?0:-1,B=[L,O,0,L+2/3,O,0,L+2/3,O+1,0,L,O,0,L+2/3,O+1,0,L,O+1,0];C.set(B,g*A*I),M.set(h,w*A*I);const G=[I,I,I,I,I,I];D.set(G,T*A*I)}const k=new da;k.setAttribute("position",new Is(C,g)),k.setAttribute("uv",new Is(M,w)),k.setAttribute("faceIndex",new Is(D,T)),r.push(new ea(k,null)),i>ug&&i--}return{lodMeshes:r,sizeLods:e,sigmas:n}}function Mre(t,e,n){const r=new Oh(t,e,n);return r.texture.mapping=hy,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function n8(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function Bet(t,e,n){return new ru({name:"PMREMGGXConvolution",defines:{GGX_SAMPLES:Oet,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:QP(),fragmentShader:` 3715 3716 precision highp float; 3717 precision highp int; 3718 3719 varying vec3 vOutputDirection; 3720 3721 uniform sampler2D envMap; 3722 uniform float roughness; 3723 uniform float mipInt; 3724 3725 #define ENVMAP_TYPE_CUBE_UV 3726 #include <cube_uv_reflection_fragment> 3727 3728 #define PI 3.14159265359 3729 3730 // Van der Corput radical inverse 3731 float radicalInverse_VdC(uint bits) { 3732 bits = (bits << 16u) | (bits >> 16u); 3733 bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); 3734 bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); 3735 bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); 3736 bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); 3737 return float(bits) * 2.3283064365386963e-10; // / 0x100000000 3738 } 3739 3740 // Hammersley sequence 3741 vec2 hammersley(uint i, uint N) { 3742 return vec2(float(i) / float(N), radicalInverse_VdC(i)); 3743 } 3744 3745 // GGX VNDF importance sampling (Eric Heitz 2018) 3746 // "Sampling the GGX Distribution of Visible Normals" 3747 // https://jcgt.org/published/0007/04/01/ 3748 vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { 3749 float alpha = roughness * roughness; 3750 3751 // Section 4.1: Orthonormal basis 3752 vec3 T1 = vec3(1.0, 0.0, 0.0); 3753 vec3 T2 = cross(V, T1); 3754 3755 // Section 4.2: Parameterization of projected area 3756 float r = sqrt(Xi.x); 3757 float phi = 2.0 * PI * Xi.y; 3758 float t1 = r * cos(phi); 3759 float t2 = r * sin(phi); 3760 float s = 0.5 * (1.0 + V.z); 3761 t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; 3762 3763 // Section 4.3: Reprojection onto hemisphere 3764 vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V; 3765 3766 // Section 3.4: Transform back to ellipsoid configuration 3767 return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); 3768 } 3769 3770 void main() { 3771 vec3 N = normalize(vOutputDirection); 3772 vec3 V = N; // Assume view direction equals normal for pre-filtering 3773 3774 vec3 prefilteredColor = vec3(0.0); 3775 float totalWeight = 0.0; 3776 3777 // For very low roughness, just sample the environment directly 3778 if (roughness < 0.001) { 3779 gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); 3780 return; 3781 } 3782 3783 // Tangent space basis for VNDF sampling 3784 vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); 3785 vec3 tangent = normalize(cross(up, N)); 3786 vec3 bitangent = cross(N, tangent); 3787
3788 for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { 3789 vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); 3790 3791 // For PMREM, V = N, so in tangent space V is always (0, 0, 1) 3792 vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); 3793 3794 // Transform H back to world space 3795 vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); 3796 vec3 L = normalize(2.0 * dot(V, H) * H - V); 3797 3798 float NdotL = max(dot(N, L), 0.0); 3799 3800 if(NdotL > 0.0) { 3801 // Sample environment at fixed mip level 3802 // VNDF importance sampling handles the distribution filtering 3803 vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); 3804 3805 // Weight by NdotL for the split-sum approximation 3806 // VNDF PDF naturally accounts for the visible microfacet distribution 3807 prefilteredColor += sampleColor * NdotL; 3808 totalWeight += NdotL; 3809 } 3810 } 3811 3812 if (totalWeight > 0.0) { 3813 prefilteredColor = prefilteredColor / totalWeight; 3814 } 3815 3816 gl_FragColor = vec4(prefilteredColor, 1.0); 3817 } 3818 `,blending:_l,depthTest:!1,depthWrite:!1})}function Uet(t,e,n){const r=new Float32Array(uv),i=new Pe(0,1,0);return new ru({name:"SphericalGaussianBlur",defines:{n:uv,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:QP(),fragmentShader:` 3819 3820 precision mediump float; 3821 precision mediump int; 3822 3823 varying vec3 vOutputDirection; 3824 3825 uniform sampler2D envMap; 3826 uniform int samples; 3827 uniform float weights[ n ]; 3828 uniform bool latitudinal; 3829 uniform float dTheta; 3830 uniform float mipInt; 3831 uniform vec3 poleAxis; 3832 3833 #define ENVMAP_TYPE_CUBE_UV 3834 #include <cube_uv_reflection_fragment> 3835 3836 vec3 getSample( float theta, vec3 axis ) { 3837 3838 float cosTheta = cos( theta ); 3839 // Rodrigues' axis-angle rotation 3840 vec3 sampleDirection = vOutputDirection * cosTheta 3841 + cross( axis, vOutputDirection ) * sin( theta ) 3842 + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); 3843 3844 return bilinearCubeUV( envMap, sampleDirection, mipInt ); 3845 3846 } 3847 3848 void main() { 3849 3850 vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); 3851 3852 if ( all( equal( axis, vec3( 0.0 ) ) ) ) { 3853 3854 axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); 3855 3856 } 3857 3858 axis = normalize( axis ); 3859 3860 gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); 3861 gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); 3862 3863 for ( int i = 1; i < n; i++ ) { 3864 3865 if ( i >= samples ) { 3866 3867 break; 3868 3869 } 3870 3871 float theta = dTheta * float( i ); 3872 gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); 3873 gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); 3874 3875 } 3876 3877 } 3878 `,blending:_l,depthTest:!1,depthWrite:!1})}function Cre(){return new ru({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:QP(),fragmentShader:` 3879 3880 precision mediump float; 3881 precision mediump int; 3882 3883 varying vec3 vOutputDirection; 3884 3885 uniform sampler2D envMap; 3886 3887 #include <common> 3888 3889 void main() { 3890 3891 vec3 outputDirection = normalize( vOutputDirection ); 3892 vec2 uv = equirectUv( outputDirection ); 3893 3894 gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); 3895 3896 } 3897 `,blending:_l,depthTest:!1,depthWrite:!1})}function Nre(){return new ru({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:QP(),fragmentShader:` 3898 3899 precision mediump float; 3900 precision mediump int; 3901 3902 uniform float flipEnvMap; 3903 3904 varying vec3 vOutputDirection; 3905 3906 uniform samplerCube envMap; 3907 3908 void main() { 3909 3910 gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); 3911 3912 } 3913 `,blending:_l,depthTest:!1,depthWrite:!1})}function QP(){return` 3914 3915 precision mediump float; 3916 precision mediump int; 3917 3918 attribute float faceIndex; 3919 3920 varying vec3 vOutputDirection; 3921 3922 // RH coordinate system; PMREM face-indexing convention 3923 vec3 getDirection( vec2 uv, float face ) { 3924 3925 uv = 2.0 * uv - 1.0; 3926 3927 vec3 direction = vec3( uv, 1.0 ); 3928 3929 if ( face == 0.0 ) { 3930 3931 direction = direction.zyx; // ( 1, v, u ) pos x 3932 3933 } else if ( face == 1.0 ) { 3934 3935 direction = direction.xzy; 3936 direction.xz *= -1.0; // ( -u, 1, -v ) pos y 3937 3938 } else if ( face == 2.0 ) { 3939 3940 direction.x *= -1.0; // ( -u, v, 1 ) pos z 3941 3942 } else if ( face == 3.0 ) { 3943 3944 direction = direction.zyx; 3945 direction.xz *= -1.0; // ( -1, v, -u ) neg x 3946 3947 } else if ( face == 4.0 ) { 3948 3949 direction = direction.xzy; 3950 direction.xy *= -1.0; // ( -u, -1, v ) neg y 3951 3952 } else if ( face == 5.0 ) { 3953 3954 direction.z *= -1.0; // ( u, v, -1 ) neg z 3955 3956 } 3957 3958 return direction; 3959 3960 } 3961 3962 void main() { 3963 3964 vOutputDirection = getDirection( uv, faceIndex ); 3965 gl_Position = vec4( position, 1.0 ); 3966 3967 } 3968 `}class m2e extends Oh{constructor(e=1,n={}
vendor: 25,958 bytes, lines 3968-4084
3968){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 m6(i),this._setTextureOptions(n),this.texture.isRenderTargetTexture=!0}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:` 3969 3970 varying vec3 vWorldDirection; 3971 3972 vec3 transformDirection( in vec3 dir, in mat4 matrix ) { 3973 3974 return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); 3975 3976 } 3977 3978 void main() { 3979 3980 vWorldDirection = transformDirection( position, modelMatrix ); 3981 3982 #include <begin_vertex> 3983 #include <project_vertex> 3984 3985 } 3986 `,fragmentShader:` 3987 3988 uniform sampler2D tEquirect; 3989 3990 varying vec3 vWorldDirection; 3991 3992 #include <common> 3993 3994 void main() { 3995 3996 vec3 direction = normalize( vWorldDirection ); 3997 3998 vec2 sampleUV = equirectUv( direction ); 3999 4000 gl_FragColor = texture2D( tEquirect, sampleUV ); 4001 4002 } 4003 `},i=new lx(5,5,5),a=new ru({name:"CubemapFromEquirect",uniforms:S_(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:ca,blending:_l});a.uniforms.tEquirect.value=n;const s=new ea(i,a),o=n.minFilter;return n.minFilter===v0&&(n.minFilter=Ba),new u2e(1,10,this).update(e,s),n.minFilter=o,s.geometry.dispose(),s.material.dispose(),this}clear(e,n=!0,r=!0,i=!0){const a=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,r,i);e.setRenderTarget(a)}}function Vet(t){let e=new WeakMap,n=new WeakMap,r=null;function i(h,p=!1){return h==null?null:p?s(h):a(h)}function a(h){if(h&&h.isTexture){const p=h.mapping;if(p===p3||p===m3)if(e.has(h)){const A=e.get(h).texture;return o(A,h.mapping)}else{const A=h.image;if(A&&A.height>0){const g=new m2e(A.height);return g.fromEquirectangularTexture(t,h),e.set(h,g),h.addEventListener("dispose",c),o(g.texture,h.mapping)}else return null}}return h}function s(h){if(h&&h.isTexture){const p=h.mapping,A=p===p3||p===m3,g=p===Zh||p===yp;if(A||g){let w=n.get(h);const T=w!==void 0?w.texture.pmremVersion:0;if(h.isRenderTargetTexture&&h.pmremVersion!==T)return r===null&&(r=new Ere(t)),w=A?r.fromEquirectangular(h,w):r.fromCubemap(h,w),w.texture.pmremVersion=h.pmremVersion,n.set(h,w),w.texture;if(w!==void 0)return w.texture;{const C=h.image;return A&&C&&C.height>0||g&&C&&l(C)?(r===null&&(r=new Ere(t)),w=A?r.fromEquirectangular(h):r.fromCubemap(h),w.texture.pmremVersion=h.pmremVersion,n.set(h,w),h.addEventListener("dispose",u),w.texture):null}}}return h}function o(h,p){return p===p3?h.mapping=Zh:p===m3&&(h.mapping=yp),h}function l(h){let p=0;const A=6;for(let g=0;g<A;g++)h[g]!==void 0&&p++;return p===A}function c(h){const p=h.target;p.removeEventListener("dispose",c);const A=e.get(p);A!==void 0&&(e.delete(p),A.dispose())}function u(h){const p=h.target;p.removeEventListener("dispose",u);const A=n.get(p);A!==void 0&&(n.delete(p),A.dispose())}function f(){e=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:f}}function jet(t){const e={};function n(r){if(e[r]!==void 0)return e[r];const i=t.getExtension(r);return e[r]=i,i}return{has:function(r){return n(r)!==null},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(r){const i=n(r);return i===null&&Fa("WebGLRenderer: "+r+" extension not supported."),i}}}function Het(t,e,n,r){const i={},a=new WeakMap;function s(f){const h=f.target;h.index!==null&&e.remove(h.index);for(const A in h.attributes)e.remove(h.attributes[A]);h.removeEventListener("dispose",s),delete i[h.id];const p=a.get(h);p&&(e.remove(p),a.delete(h)),r.releaseStatesOfGeometry(h),h.isInstancedBufferGeometry===!0&&delete h._maxInstanceCount,n.memory.geometries--}function o(f,h){return i[h.id]===!0||(h.addEventListener("dispose",s),i[h.id]=!0,n.memory.geometries++),h}function l(f){const h=f.attributes;for(const p in h)e.update(h[p],t.ARRAY_BUFFER)}function c(f){const h=[],p=f.index,A=f.attributes.position;let g=0;if(A===void 0)return;if(p!==null){const C=p.array;g=p.version;for(let M=0,D=C.length;M<D;M+=3){const k=C[M+0],I=C[M+1],L=C[M+2];h.push(k,I,I,L,L,k)}}else{const C=A.array;g=A.version;for(let M=0,D=C.length/3-1;M<D;M+=3){const k=M+0,I=M+1,L=M+2;h.push(k,I,I,L,L,k)}}const w=new(A.count>=65535?Rq:Nq)(h,1);w.version=g;const T=a.get(f);T&&e.remove(T),a.set(f,w)}function u(f){const h=a.get(f);if(h){const p=f.index;p!==null&&h.version<p.version&&c(f)}else c(f);return a.get(f)}return{get:o,update:l,getWireframeAttribute:u}}function Get(t,e,n){let r;function i(f){r=f}let a,s;function o(f){a=f.type,s=f.bytesPerElement}function l(f,h){t.drawElements(r,h,a,f*s),n.update(h,r,1)}function c(f,h,p){p!==0&&(t.drawElementsInstanced(r,h,a,f*s,p),n.update(h,r,p))}function u(f,h,p){if(p===0)return;e.get("WEBGL_multi_draw").multiDrawElementsWEBGL(r,h,0,a,f,0,p);let g=0;for(let w=0;w<p;w++)g+=h[w];n.update(g,r,1)}this.setMode=i,this.setIndex=o,this.render=l,this.renderInstances=c,this.renderMultiDraw=u}function zet(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function r(a,s,o){switch(n.calls++,s){case t.TRIANGLES:n.triangles+=o*(a/3);break;case t.LINES:n.lines+=o*(a/2);break;case t.LINE_STRIP:n.lines+=o*(a-1);break;case t.LINE_LOOP:n.lines+=o*a;break;case t.POINTS:n.points+=o*a;break;default:nn("WebGLInfo: Unknown draw mode:",s);break}}function i(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:i,update:r}}function $et(t,e,n){const r=new WeakMap,i=new kr;function a(s,o,l){const c=s.morphTargetInfluences,u=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,f=u!==void 0?u.length:0;let h=r.get(o);if(h===void 0||h.count!==f){let G=function(){O.dispose(),r.delete(o),o.removeEventListener("dispose",G)};var p=G;h!==void 0&&h.texture.dispose();const A=o.morphAttributes.position!==void 0,g=o.morphAttributes.normal!==void 0,w=o.morphAttributes.color!==void 0,T=o.morphAttributes.position||[],C=o.morphAttributes.normal||[],M=o.morphAttributes.color||[];let D=0;A===!0&&(D=1),g===!0&&(D=2),w===!0&&(D=3);let k=o.attributes.position.count*D,I=1;k>e.maxTextureSize&&(I=Math.ceil(k/e.maxTextureSize),k=e.maxTextureSize);const L=new Float32Array(k*I*4*f),O=new Eq(L,k,I,f);O.type=os,O.needsUpdate=!0;const B=D*4;for(let j=0;j<f;j++){const z=T[j],Q=C[j],ee=M[j],Z=k*I*4*j;for(let X=0;X<z.count;X++){const K=X*B;A===!0&&(i.fromBufferAttribute(z,X),L[Z+K+0]=i.x,L[Z+K+1]=i.y,L[Z+K+2]=i.z,L[Z+K+3]=0),g===!0&&(i.fromBufferAttribute(Q,X),L[Z+K+4]=i.x,L[Z+K+5]=i.y,L[Z+K+6]=i.z,L[Z+K+7]=0),w===!0&&(i.fromBufferAttribute(ee,X),L[Z+K+8]=i.x,L[Z+K+9]=i.y,L[Z+K+10]=i.z,L[Z+K+11]=ee.itemSize===4?i.w:1)}}h={count:f,texture:O,size:new tn(k,I)},r.set(o,h),o.addEventListener("dispose",G)}if(s.isInstancedMesh===!0&&s.morphTexture!==null)l.getUniforms().setValue(t,"morphTexture",s.morphTexture,n);else{let A=0;for(let w=0;w<c.length;w++)A+=c[w];const g=o.morphTargetsRelative?1:1-A;l.getUniforms().setValue(t,"morphTargetBaseInfluence",g),l.getUniforms().setValue(t,"morphTargetInfluences",c)}l.getUniforms().setValue(t,"morphTargetsTexture",h.texture,n),l.getUniforms().setValue(t,"morphTargetsTextureSize",h.size)}return{update:a}}function qet(t,e,n,r,i){let a=new WeakMap;function s(c){const u=i.render.frame,f=c.geometry,h=e.get(c,f);if(a.get(h)!==u&&(e.update(h),a.set(h,u)),c.isInstancedMesh&&(c.hasEventListener("dispose",l)===!1&&c.addEventListener("dispose",l),a.get(c)!==u&&(n.update(c.instanceMatrix,t.ARRAY_BUFFER),c.instanceColor!==null&&n.update(c.instanceColor,t.ARRAY_BUFFER),a.set(c,u))),c.isSkinnedMesh){const p=c.skeleton;a.get(p)!==u&&(p.update(),a.set(p,u))}return h}function o(){a=new WeakMap}function l(c){const u=c.target;u.removeEventListener("dispose",l),r.releaseStatesOfObject(u),n.remove(u.instanceMatrix),u.instanceColor!==null&&n.remove(u.instanceColor)}return{update:s,dispose:o}}const Wet={[fq]:"LINEAR_TONE_MAPPING",[dq]:"REINHARD_TONE_MAPPING",[hq]:"CINEON_TONE_MAPPING",[pq]:"ACES_FILMIC_TONE_MAPPING",[mq]:"AGX_TONE_MAPPING",[Aq]:"NEUTRAL_TONE_MAPPING",[Ime]:"CUSTOM_TONE_MAPPING"};function Zet(t,e,n,r,i){const a=new Oh(e,n,{type:t,depthBuffer:r,stencilBuffer:i,depthTexture:r?new hc(e,n):void 0}),s=new Oh(e,n,{type:is,depthBuffer:!1,stencilBuffer:!1}),o=new da;o.setAttribute("position",new Ui([-1,3,0,-1,-1,0,3,-1,0],3)),o.setAttribute("uv",new Ui([0,2,0,0,2,0],2));const l=new vQe({uniforms:{tDiffuse:{value:null}},vertexShader:` 4004 precision highp float; 4005 4006 uniform mat4 modelViewMatrix; 4007 uniform mat4 projectionMatrix; 4008 4009 attribute vec3 position; 4010 attribute vec2 uv; 4011 4012 varying vec2 vUv; 4013 4014 void main() { 4015 vUv = uv; 4016 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 4017 }`,fragmentShader:` 4018 precision highp float; 4019 4020 uniform sampler2D tDiffuse; 4021 4022 varying vec2 vUv; 4023 4024 #include <tonemapping_pars_fragment> 4025 #include <colorspace_pars_fragment> 4026 4027 void main() { 4028 gl_FragColor = texture2D( tDiffuse, vUv ); 4029 4030 #ifdef LINEAR_TONE_MAPPING 4031 gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); 4032 #elif defined( REINHARD_TONE_MAPPING ) 4033 gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); 4034 #elif defined( CINEON_TONE_MAPPING ) 4035 gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); 4036 #elif defined( ACES_FILMIC_TONE_MAPPING ) 4037 gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); 4038 #elif defined( AGX_TONE_MAPPING ) 4039 gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); 4040 #elif defined( NEUTRAL_TONE_MAPPING ) 4041 gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); 4042 #elif defined( CUSTOM_TONE_MAPPING ) 4043 gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); 4044 #endif 4045 4046 #ifdef SRGB_TRANSFER 4047 gl_FragColor = sRGBTransferOETF( gl_FragColor ); 4048 #endif 4049 }`,depthTest:!1,depthWrite:!1}),c=new ea(o,l),u=new A6(-1,1,1,-1,0,1);let f=null,h=null,p=!1,A,g=null,w=[],T=!1;this.setSize=function(C,M){a.setSize(C,M),s.setSize(C,M);for(let D=0;D<w.length;D++){const k=w[D];k.setSize&&k.setSize(C,M)}},this.setEffects=function(C){w=C,T=w.length>0&&w[0].isRenderPass===!0;const M=a.width,D=a.height;for(let k=0;k<w.length;k++){const I=w[k];I.setSize&&I.setSize(M,D)}},this.begin=function(C,M){if(p||C.toneMapping===cc&&w.length===0)return!1;if(g=M,M!==null){const D=M.width,k=M.height;(a.width!==D||a.height!==k)&&this.setSize(D,k)}return T===!1&&C.setRenderTarget(a),A=C.toneMapping,C.toneMapping=cc,!0},this.hasRenderPass=function(){return T},this.end=function(C,M){C.toneMapping=A,p=!0;let D=a,k=s;for(let I=0;I<w.length;I++){const L=w[I];if(L.enabled!==!1&&(L.render(C,k,D,M),L.needsSwap!==!1)){const O=D;D=k,k=O}}if(f!==C.outputColorSpace||h!==C.toneMapping){f=C.outputColorSpace,h=C.toneMapping,l.defines={},Ar.getTransfer(f)===Bn&&(l.defines.SRGB_TRANSFER="");const I=Wet[h];I&&(l.defines[I]=""),l.needsUpdate=!0}l.uniforms.tDiffuse.value=D.texture,C.setRenderTarget(g),C.render(c,u),g=null,p=!1},this.isCompositing=function(){return p},this.dispose=function(){a.depthTexture&&a.depthTexture.dispose(),a.dispose(),s.dispose(),o.dispose(),l.dispose()}}const A2e=new Yo,pj=new hc(1,1),g2e=new Eq,x2e=new xXe,v2e=new m6,Rre=[],Dre=[],Pre=new Float32Array(16),kre=new Float32Array(9),Lre=new Float32Array(4);function g6(t,e,n){const r=t[0];if(r<=0||r>0)return t;const i=e*n;let a=Rre[i];if(a===void 0&&(a=new Float32Array(i),Rre[i]=a),e!==0){r.toArray(a,0);for(let s=1,o=0;s!==e;++s)o+=n,t[s].toArray(a,o)}return a}function wl(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Sl(t,e){for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}function KP(t,e){let n=Dre[e];n===void 0&&(n=new Int32Array(e),Dre[e]=n);for(let r=0;r!==e;++r)n[r]=t.allocateTextureUnit();return n}function Yet(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function Xet(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(wl(n,e))return;t.uniform2fv(this.addr,e),Sl(n,e)}}function Qet(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(wl(n,e))return;t.uniform3fv(this.addr,e),Sl(n,e)}}function Ket(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(wl(n,e))return;t.uniform4fv(this.addr,e),Sl(n,e)}}function Jet(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(wl(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),Sl(n,e)}else{if(wl(n,r))return;Lre.set(r),t.uniformMatrix2fv(this.addr,!1,Lre),Sl(n,r)}}function ett(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(wl(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),Sl(n,e)}else{if(wl(n,r))return;kre.set(r),t.uniformMatrix3fv(this.addr,!1,kre),Sl(n,r)}}function ttt(t,e){const n=this.cache,r=e.elements;if(r===void 0){if(wl(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),Sl(n,e)}else{if(wl(n,r))return;Pre.set(r),t.uniformMatrix4fv(this.addr,!1,Pre),Sl(n,r)}}function ntt(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function rtt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(wl(n,e))return;t.uniform2iv(this.addr,e),Sl(n,e)}}function itt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(wl(n,e))return;t.uniform3iv(this.addr,e),Sl(n,e)}}function att(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(wl(n,e))return;t.uniform4iv(this.addr,e),Sl(n,e)}}function stt(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function ott(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(wl(n,e))return;t.uniform2uiv(this.addr,e),Sl(n,e)}}function ltt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(wl(n,e))return;t.uniform3uiv(this.addr,e),Sl(n,e)}}function ctt(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(wl(n,e))return;t.uniform4uiv(this.addr,e),Sl(n,e)}}function utt(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i);let a;this.type===t.SAMPLER_2D_SHADOW?(pj.compareFunction=n.isReversedDepthBuffer()?S2:sx,a=pj):a=A2e,n.setTexture2D(e||a,i)}function ftt(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(e||x2e,i)}function dtt(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(e||v2e,i)}function htt(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(e||g2e,i)}function ptt(t){switch(t){case 5126:return Yet;case 35664:return Xet;case 35665:return Qet;case 35666:return Ket;case 35674:return Jet;case 35675:return ett;case 35676:return ttt;case 5124:case 35670:return ntt;case 35667:case 35671:return rtt;case 35668:case 35672:return itt;case 35669:case 35673:return att;case 5125:return stt;case 36294:return ott;case 36295:return ltt;case 36296:return ctt;case 35678:case 36198:case 36298:case 36306:case 35682:return utt;case 35679:case 36299:case 36307:return ftt;case 35680:case 36300:case 36308:case 36293:return dtt;case 36289:case 36303:case 36311:case 36292:return htt}}function mtt(t,e){t.uniform1fv(this.addr,e)}function Att(t,e){const n=g6(e,this.size,2);t.uniform2fv(this.addr,n)}function gtt(t,e){const n=g6(e,this.size,3);t.uniform3fv(this.addr,n)}function xtt(t,e){const n=g6(e,this.size,4);t.uniform4fv(this.addr,n)}function vtt(t,e){const n=g6(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function ytt(t,e){const n=g6(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function _tt(t,e){const n=g6(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function btt(t,e){t.uniform1iv(this.addr,e)}function wtt(t,e){t.uniform2iv(this.addr,e)}function Stt(t,e){t.uniform3iv(this.addr,e)}function Ttt(t,e){t.uniform4iv(this.addr,e)}function Ett(t,e){t.uniform1uiv(this.addr,e)}function Mtt(t,e){t.uniform2uiv(this.addr,e)}function Ctt(t,e){t.uniform3uiv(this.addr,e)}function Ntt(t,e){t.uniform4uiv(this.addr,e)}function Rtt(t,e,n){const r=this.cache,i=e.length,a=KP(n,i);wl(r,a)||(t.uniform1iv(this.addr,a),Sl(r,a));let s;this.type===t.SAMPLER_2D_SHADOW?s=pj:s=A2e;for(let o=0;o!==i;++o)n.setTexture2D(e[o]||s,a[o])}function Dtt(t,e,n){const r=this.cache,i=e.length,a=KP(n,i);wl(r,a)||(t.uniform1iv(this.addr,a),Sl(r,a));for(let s=0;s!==i;++s)n.setTexture3D(e[s]||x2e,a[s])}function Ptt(t,e,n){const r=this.cache,i=e.length,a=KP(n,i);wl(r,a)||(t.uniform1iv(this.addr,a),Sl(r,a));for(let s=0;s!==i;++s)n.setTextureCube(e[s]||v2e,a[s])}function ktt(t,e,n){const r=this.cache,i=e.length,a=KP(n,i);wl(r,a)||(t.uniform1iv(this.addr,a),Sl(r,a));for(let s=0;s!==i;++s)n.setTexture2DArray(e[s]||g2e,a[s])}function Ltt(t){switch(t){case 5126:return mtt;case 35664:return Att;case 35665:return gtt;case 35666:return xtt;case 35674:return vtt;case 35675:return ytt;case 35676:return _tt;case 5124:case 35670:return btt;case 35667:case 35671:return wtt;case 35668:case 35672:return Stt;case 35669:case 35673:return Ttt;case 5125:return Ett;case 36294:return Mtt;case 36295:return Ctt;case 36296:return Ntt;case 35678:case 36198:case 36298:case 36306:case 35682:return Rtt;case 35679:case 36299:case 36307:return Dtt;case 35680:case 36300:case 36308:case 36293:return Ptt;case 36289:case 36303:case 36311:case 36292:return ktt}}class Ott{constructor(e,n,r){this.id=e,this.addr=r,this.cache=[],this.type=n.type,this.setValue=ptt(n.type)}}class Ftt{constructor(e,n,r){this.id=e,this.addr=r,this.cache=[],this.type=n.type,this.size=n.size,this.setValue=Ltt(n.type)}}class Itt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,r){const i=this.seq;for(let a=0,s=i.length;a!==s;++a){const o=i[a];o.setValue(e,n[o.id],r)}}}const FI=/(\w+)(\])?(\[|\.)?/g;function Ore(t,e){t.seq.push(e),t.map[e.id]=e}function Btt(t,e,n){const r=t.name,i=r.length;for(FI.lastIndex=0;;){const a=FI.exec(r),s=FI.lastIndex;let o=a[1];const l=a[2]==="]",c=a[3];if(l&&(o=o|0),c===void 0||c==="["&&s+2===i){Ore(n,c===void 0?new Ott(o,t,e):new Ftt(o,t,e));break}else{let f=n.map[o];f===void 0&&(f=new Itt(o),Ore(n,f)),n=f}}}class H9{constructor(e,n){this.seq=[],this.map={};const r=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let s=0;s<r;++s){const o=e.getActiveUniform(n,s),l=e.getUniformLocation(n,o.name);Btt(o,l,this)}const i=[],a=[];for(const s of this.seq)s.type===e.SAMPLER_2D_SHADOW||s.type===e.SAMPLER_CUBE_SHADOW||s.type===e.SAMPLER_2D_ARRAY_SHADOW?i.push(s):a.push(s);i.length>0&&(this.seq=i.concat(a))}setValue(e,n,r,i){const a=this.map[n];a!==void 0&&a.setValue(e,r,i)}setOptional(e,n,r){const i=n[r];i!==void 0&&this.setValue(e,r,i)}static upload(e,n,r,i){for(let a=0,s=n.length;a!==s;++a){const o=n[a],l=r[o.id];l.needsUpdate!==!1&&o.setValue(e,l.value,i)}}static seqWithValue(e,n){const r=[];for(let i=0,a=e.length;i!==a;++i){const s=e[i];s.id in n&&r.push(s)}return r}}function Fre(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}const Utt=37297;let Vtt=0;function jtt(t,e){const n=t.split(` 4050`),r=[],i=Math.max(e-6,0),a=Math.min(e+6,n.length);for(let s=i;s<a;s++){const o=s+1;r.push(`${o===e?">":" "} ${o}: ${n[s]}`)}return r.join(` 4051`)}const Ire=new Vr;function Htt(t){Ar._getMatrix(Ire,Ar.workingColorSpace,t);const e=`mat3( ${Ire.elements.map(n=>n.toFixed(4))} )`;switch(Ar.getTransfer(t)){case y_:return[e,"LinearTransferOETF"];case Bn:return[e,"sRGBTransferOETF"];default:return Kt("WebGLProgram: Unsupported color space: ",t),[e,"LinearTransferOETF"]}}function Bre(t,e,n){const r=t.getShaderParameter(e,t.COMPILE_STATUS),a=(t.getShaderInfoLog(e)||"").trim();if(r&&a==="")return"";const s=/ERROR: 0:(\d+)/.exec(a);if(s){const o=parseInt(s[1]);return n.toUpperCase()+` 4052 4053`+a+` 4054 4055`+jtt(t.getShaderSource(e),o)}else return a}function Gtt(t,e){const n=Htt(e);return[`vec4 ${t}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,"}"].join(` 4056`)}const ztt={[fq]:"Linear",[dq]:"Reinhard",[hq]:"Cineon",[pq]:"ACESFilmic",[mq]:"AgX",[Aq]:"Neutral",[Ime]:"Custom"};function $tt(t,e){const n=ztt[e];return n===void 0?(Kt("WebGLProgram: Unsupported toneMapping:",e),"vec3 "+t+"( vec3 color ) { return LinearToneMapping( color ); }"):"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}const O7=new Pe;function qtt(){Ar.getLuminanceCoefficients(O7);const t=O7.x.toFixed(4),e=O7.y.toFixed(4),n=O7.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${t}, ${e}, ${n} );`," return dot( weights, rgb );","}"].join(` 4057`)}function Wtt(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",t.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Cw).join(` 4058`)}function Ztt(t){const e=[];for(const n in t){const r=t[n];r!==!1&&e.push("#define "+n+" "+r)}return e.join(` 4059`)}function Ytt(t,e){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){const a=t.getActiveAttrib(e,i),s=a.name;let o=1;a.type===t.FLOAT_MAT2&&(o=2),a.type===t.FLOAT_MAT3&&(o=3),a.type===t.FLOAT_MAT4&&(o=4),n[s]={type:a.type,location:t.getAttribLocation(e,s),locationSize:o}}return n}function Cw(t){return t!==""}function Ure(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Vre(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Xtt=/^[ \t]*#include +<([\w\d./]+)>/gm;function mj(t){return t.replace(Xtt,Ktt)}const Qtt=new Map;function Ktt(t,e){let n=Xr[e];if(n===void 0){const r=Qtt.get(e);if(r!==void 0)n=Xr[r],Kt('WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,r);else throw new Error("Can not resolve #include <"+e+">")}return mj(n)}const Jtt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function jre(t){return t.replace(Jtt,ent)}function ent(t,e,n,r){let i="";for(let a=parseInt(e);a<parseInt(n);a++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return i}function Hre(t){let e=`precision ${t.precision} float; 4060 precision ${t.precision} int; 4061 precision ${t.precision} sampler2D; 4062 precision ${t.precision} samplerCube; 4063 precision ${t.precision} sampler3D; 4064 precision ${t.precision} sampler2DArray; 4065 precision ${t.precision} sampler2DShadow; 4066 precision ${t.precision} samplerCubeShadow; 4067 precision ${t.precision} sampler2DArrayShadow; 4068 precision ${t.precision} isampler2D; 4069 precision ${t.precision} isampler3D; 4070 precision ${t.precision} isamplerCube; 4071 precision ${t.precision} isampler2DArray; 4072 precision ${t.precision} usampler2D; 4073 precision ${t.precision} usampler3D; 4074 precision ${t.precision} usamplerCube; 4075 precision ${t.precision} usampler2DArray; 4076 `;return t.precision==="highp"?e+=` 4077#define HIGH_PRECISION`:t.precision==="mediump"?e+=` 4078#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=` 4079#define LOW_PRECISION`),e}const tnt={[h3]:"SHADOWMAP_TYPE_PCF",[Z1]:"SHADOWMAP_TYPE_VSM"};function nnt(t){return tnt[t.shadowMapType]||"SHADOWMAP_TYPE_BASIC"}const rnt={[Zh]:"ENVMAP_TYPE_CUBE",[yp]:"ENVMAP_TYPE_CUBE",[hy]:"ENVMAP_TYPE_CUBE_UV"};function int(t){return t.envMap===!1?"ENVMAP_TYPE_CUBE":rnt[t.envMapMode]||"ENVMAP_TYPE_CUBE"}const ant={[yp]:"ENVMAP_MODE_REFRACTION"};function snt(t){return t.envMap===!1?"ENVMAP_MODE_REFLECTION":ant[t.envMapMode]||"ENVMAP_MODE_REFLECTION"}const ont={[jT]:"ENVMAP_BLENDING_MULTIPLY",[Ome]:"ENVMAP_BLENDING_MIX",[Fme]:"ENVMAP_BLENDING_ADD"};function lnt(t){return t.envMap===!1?"ENVMAP_BLENDING_NONE":ont[t.combine]||"ENVMAP_BLENDING_NONE"}function cnt(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,maxMip:n}}function unt(t,e,n,r){const i=t.getContext(),a=n.defines;let s=n.vertexShader,o=n.fragmentShader;const l=nnt(n),c=int(n),u=snt(n),f=lnt(n),h=cnt(n),p=Wtt(n),A=Ztt(a),g=i.createProgram();let w,T,C=n.glslVersion?"#version "+n.glslVersion+` 4080`:"";n.isRawShaderMaterial?(w=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,A].filter(Cw).join(` 4081`),w.length>0&&(w+=` 4082`),T=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,A].filter(Cw).join(` 4083`),T.length>0&&(T+=` 4084`)):(w=[Hre(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,A,n.extensionCl
vendor: 9,838 bytes, lines 4084-4093
4084ipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexNormals?"#define HAS_NORMAL":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",n.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` 4085`].filter(Cw).join(` 4086`),T=[Hre(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,A,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+f:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.packedNormalMap?"#define USE_PACKED_NORMALMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas||n.batchingColor?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.numLightProbeGrids>0?"#define USE_LIGHT_PROBES_GRID":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",n.logarithmicDepthBuffer?"#define USE_LOGARITHMIC_DEPTH_BUFFER":"",n.reversedDepthBuffer?"#define USE_REVERSED_DEPTH_BUFFER":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==cc?"#define TONE_MAPPING":"",n.toneMapping!==cc?Xr.tonemapping_pars_fragment:"",n.toneMapping!==cc?$tt("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Xr.colorspace_pars_fragment,Gtt("linearToOutputTexel",n.outputColorSpace),qtt(),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` 4087`].filter(Cw).join(` 4088`)),s=mj(s),s=Ure(s,n),s=Vre(s,n),o=mj(o),o=Ure(o,n),o=Vre(o,n),s=jre(s),o=jre(o),n.isRawShaderMaterial!==!0&&(C=`#version 300 es 4089`,w=[p,"#define attribute in","#define varying out","#define texture2D texture"].join(` 4090`)+` 4091`+w,T=["#define varying in",n.glslVersion===Bne?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Bne?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` 4092`)+` 4093`+T);const M=C+w+s,D=C+T+o,k=Fre(i,i.VERTEX_SHADER,M),I=Fre(i,i.FRAGMENT_SHADER,D);i.attachShader(g,k),i.attachShader(g,I),n.index0AttributeName!==void 0?i.bindAttribLocation(g,0,n.index0AttributeName):n.morphTargets===!0&&i.bindAttribLocation(g,0,"position"),i.linkProgram(g);
vendor: 17,355 bytes, lines 4093-4100
4093function L(j){if(t.debug.checkShaderErrors){const z=i.getProgramInfoLog(g)||"",Q=i.getShaderInfoLog(k)||"",ee=i.getShaderInfoLog(I)||"",Z=z.trim(),X=Q.trim(),K=ee.trim();let se=!0,ae=!0;if(i.getProgramParameter(g,i.LINK_STATUS)===!1)if(se=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(i,g,k,I);else{const J=Bre(i,k,"vertex"),oe=Bre(i,I,"fragment");nn("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(g,i.VALIDATE_STATUS)+` 4094 4095Material Name: `+j.name+` 4096Material Type: `+j.type+` 4097 4098Program Info Log: `+Z+` 4099`+J+` 4100`+oe)}else Z!==""?Kt("WebGLProgram: Program Info Log:",Z):(X===""||K==="")&&(ae=!1);ae&&(j.diagnostics={runnable:se,programLog:Z,vertexShader:{log:X,prefix:w},fragmentShader:{log:K,prefix:T}})}i.deleteShader(k),i.deleteShader(I),O=new H9(i,g),B=Ytt(i,g)}let O;this.getUniforms=function(){return O===void 0&&L(this),O};let B;this.getAttributes=function(){return B===void 0&&L(this),B};let G=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return G===!1&&(G=i.getProgramParameter(g,Utt)),G},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Vtt++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=k,this.fragmentShader=I,this}let fnt=0;class dnt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(n),a=this._getShaderStage(r),s=this._getShaderCacheForMaterial(e);return s.has(i)===!1&&(s.add(i),i.usedTimes++),s.has(a)===!1&&(s.add(a),a.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const r of n)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let r=n.get(e);return r===void 0&&(r=new Set,n.set(e,r)),r}_getShaderStage(e){const n=this.shaderCache;let r=n.get(e);return r===void 0&&(r=new hnt(e),n.set(e,r)),r}}class hnt{constructor(e){this.id=fnt++,this.code=e,this.usedTimes=0}}function pnt(t){return t===uc||t===qg||t===Wg}function mnt(t,e,n,r,i,a){const s=new Mq,o=new dnt,l=new Set,c=[],u=new Map,f=r.logarithmicDepthBuffer;let h=r.precision;const p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distance",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function A(O){return l.add(O),O===0?"uv":`uv${O}`}function g(O,B,G,j,z,Q){const ee=j.fog,Z=z.geometry,X=O.isMeshStandardMaterial||O.isMeshLambertMaterial||O.isMeshPhongMaterial?j.environment:null,K=O.isMeshStandardMaterial||O.isMeshLambertMaterial&&!O.envMap||O.isMeshPhongMaterial&&!O.envMap,se=e.get(O.envMap||X,K),ae=se&&se.mapping===hy?se.image.height:null,J=p[O.type];O.precision!==null&&(h=r.getMaxPrecision(O.precision),h!==O.precision&&Kt("WebGLProgram.getParameters:",O.precision,"not supported, using",h,"instead."));const oe=Z.morphAttributes.position||Z.morphAttributes.normal||Z.morphAttributes.color,te=oe!==void 0?oe.length:0;let he=0;Z.morphAttributes.position!==void 0&&(he=1),Z.morphAttributes.normal!==void 0&&(he=2),Z.morphAttributes.color!==void 0&&(he=3);let me,de,Ae,Se;if(J){const Gt=h0[J];me=Gt.vertexShader,de=Gt.fragmentShader}else me=O.vertexShader,de=O.fragmentShader,o.update(O),Ae=o.getVertexShaderID(O),Se=o.getFragmentShaderID(O);const Re=t.getRenderTarget(),Ne=t.state.buffers.depth.getReversed(),Fe=z.isInstancedMesh===!0,Qe=z.isBatchedMesh===!0,ge=!!O.map,Ie=!!O.matcap,De=!!se,Xe=!!O.aoMap,Ye=!!O.lightMap,Me=!!O.bumpMap,lt=!!O.normalMap,Ht=!!O.displacementMap,Le=!!O.emissiveMap,Nt=!!O.metalnessMap,Ct=!!O.roughnessMap,It=O.anisotropy>0,nt=O.clearcoat>0,ht=O.dispersion>0,ve=O.iridescence>0,ce=O.sheen>0,je=O.transmission>0,dt=It&&!!O.anisotropyMap,ft=nt&&!!O.clearcoatMap,at=nt&&!!O.clearcoatNormalMap,St=nt&&!!O.clearcoatRoughnessMap,ut=ve&&!!O.iridescenceMap,gt=ve&&!!O.iridescenceThicknessMap,Vt=ce&&!!O.sheenColorMap,Zt=ce&&!!O.sheenRoughnessMap,Wt=!!O.specularMap,qt=!!O.specularColorMap,We=!!O.specularIntensityMap,yn=je&&!!O.transmissionMap,vn=je&&!!O.thicknessMap,Ge=!!O.gradientMap,kt=!!O.alphaMap,_t=O.alphaTest>0,Dt=!!O.alphaHash,jt=!!O.extensions;let Lt=cc;O.toneMapped&&(Re===null||Re.isXRRenderTarget===!0)&&(Lt=t.toneMapping);const Bt={shaderID:J,shaderType:O.type,shaderName:O.name,vertexShader:me,fragmentShader:de,defines:O.defines,customVertexShaderID:Ae,customFragmentShaderID:Se,isRawShaderMaterial:O.isRawShaderMaterial===!0,glslVersion:O.glslVersion,precision:h,batching:Qe,batchingColor:Qe&&z._colorsTexture!==null,instancing:Fe,instancingColor:Fe&&z.instanceColor!==null,instancingMorph:Fe&&z.morphTexture!==null,outputColorSpace:Re===null?t.outputColorSpace:Re.isXRRenderTarget===!0?Re.texture.colorSpace:Ar.workingColorSpace,alphaToCoverage:!!O.alphaToCoverage,map:ge,matcap:Ie,envMap:De,envMapMode:De&&se.mapping,envMapCubeUVHeight:ae,aoMap:Xe,lightMap:Ye,bumpMap:Me,normalMap:lt,displacementMap:Ht,emissiveMap:Le,normalMapObjectSpace:lt&&O.normalMapType===Ume,normalMapTangentSpace:lt&&O.normalMapType===Lh,packedNormalMap:lt&&O.normalMapType===Lh&&pnt(O.normalMap.format),metalnessMap:Nt,roughnessMap:Ct,anisotropy:It,anisotropyMap:dt,clearcoat:nt,clearcoatMap:ft,clearcoatNormalMap:at,clearcoatRoughnessMap:St,dispersion:ht,iridescence:ve,iridescenceMap:ut,iridescenceThicknessMap:gt,sheen:ce,sheenColorMap:Vt,sheenRoughnessMap:Zt,specularMap:Wt,specularColorMap:qt,specularIntensityMap:We,transmission:je,transmissionMap:yn,thicknessMap:vn,gradientMap:Ge,opaque:O.transparent===!1&&O.blending===Hl&&O.alphaToCoverage===!1,alphaMap:kt,alphaTest:_t,alphaHash:Dt,combine:O.combine,mapUv:ge&&A(O.map.channel),aoMapUv:Xe&&A(O.aoMap.channel),lightMapUv:Ye&&A(O.lightMap.channel),bumpMapUv:Me&&A(O.bumpMap.channel),normalMapUv:lt&&A(O.normalMap.channel),displacementMapUv:Ht&&A(O.displacementMap.channel),emissiveMapUv:Le&&A(O.emissiveMap.channel),metalnessMapUv:Nt&&A(O.metalnessMap.channel),roughnessMapUv:Ct&&A(O.roughnessMap.channel),anisotropyMapUv:dt&&A(O.anisotropyMap.channel),clearcoatMapUv:ft&&A(O.clearcoatMap.channel),clearcoatNormalMapUv:at&&A(O.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:St&&A(O.clearcoatRoughnessMap.channel),iridescenceMapUv:ut&&A(O.iridescenceMap.channel),iridescenceThicknessMapUv:gt&&A(O.iridescenceThicknessMap.channel),sheenColorMapUv:Vt&&A(O.sheenColorMap.channel),sheenRoughnessMapUv:Zt&&A(O.sheenRoughnessMap.channel),specularMapUv:Wt&&A(O.specularMap.channel),specularColorMapUv:qt&&A(O.specularColorMap.channel),specularIntensityMapUv:We&&A(O.specularIntensityMap.channel),transmissionMapUv:yn&&A(O.transmissionMap.channel),thicknessMapUv:vn&&A(O.thicknessMap.channel),alphaMapUv:kt&&A(O.alphaMap.channel),vertexTangents:!!Z.attributes.tangent&&(lt||It),vertexNormals:!!Z.attributes.normal,vertexColors:O.vertexColors,vertexAlphas:O.vertexColors===!0&&!!Z.attributes.color&&Z.attributes.color.itemSize===4,pointsUvs:z.isPoints===!0&&!!Z.attributes.uv&&(ge||kt),fog:!!ee,useFog:O.fog===!0,fogExp2:!!ee&&ee.isFogExp2,flatShading:O.wireframe===!1&&(O.flatShading===!0||Z.attributes.normal===void 0&<===!1&&(O.isMeshLambertMaterial||O.isMeshPhongMaterial||O.isMeshStandardMaterial||O.isMeshPhysicalMaterial)),sizeAttenuation:O.sizeAttenuation===!0,logarithmicDepthBuffer:f,reversedDepthBuffer:Ne,skinning:z.isSkinnedMesh===!0,morphTargets:Z.morphAttributes.position!==void 0,morphNormals:Z.morphAttributes.normal!==void 0,morphColors:Z.morphAttributes.color!==void 0,morphTargetsCount:te,morphTextureStride:he,numDirLights:B.directional.length,numPointLights:B.point.length,numSpotLights:B.spot.length,numSpotLightMaps:B.spotLightMap.length,numRectAreaLights:B.rectArea.length,numHemiLights:B.hemi.length,numDirLightShadows:B.directionalShadowMap.length,numPointLightShadows:B.pointShadowMap.length,numSpotLightShadows:B.spotShadowMap.length,numSpotLightShadowsWithMaps:B.numSpotLightShadowsWithMaps,numLightProbes:B.numLightProbes,numLightProbeGrids:Q.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:O.dithering,shadowMapEnabled:t.shadowMap.enabled&&G.length>0,shadowMapType:t.shadowMap.type,toneMapping:Lt,decodeVideoTexture:ge&&O.map.isVideoTexture===!0&&Ar.getTransfer(O.map.colorSpace)===Bn,decodeVideoTextureEmissive:Le&&O.emissiveMap.isVideoTexture===!0&&Ar.getTransfer(O.emissiveMap.colorSpace)===Bn,premultipliedAlpha:O.premultipliedAlpha,doubleSided:O.side===Zs,flipSided:O.side===ca,useDepthPacking:O.depthPacking>=0,depthPacking:O.depthPacking||0,index0AttributeName:O.index0AttributeName,extensionClipCullDistance:jt&&O.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(jt&&O.extensions.multiDraw===!0||Qe)&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:O.customProgramCacheKey()};return Bt.vertexUv1s=l.has(1),Bt.vertexUv2s=l.has(2),Bt.vertexUv3s=l.has(3),l.clear(),Bt}function w(O){const B=[];if(O.shaderID?B.push(O.shaderID):(B.push(O.customVertexShaderID),B.push(O.customFragmentShaderID)),O.defines!==void 0)for(const G in O.defines)B.push(G),B.push(O.defines[G]);return O.isRawShaderMaterial===!1&&(T(B,O),C(B,O),B.push(t.outputColorSpace)),B.push(O.customProgramCacheKey),B.join()}function T(O,B){O.push(B.precision),O.push(B.outputColorSpace),O.push(B.envMapMode),O.push(B.envMapCubeUVHeight),O.push(B.mapUv),O.push(B.alphaMapUv),O.push(B.lightMapUv),O.push(B.aoMapUv),O.push(B.bumpMapUv),O.push(B.normalMapUv),O.push(B.displacementMapUv),O.push(B.emissiveMapUv),O.push(B.metalnessMapUv),O.push(B.roughnessMapUv),O.push(B.anisotropyMapUv),O.push(B.clearcoatMapUv),O.push(B.clearcoatNormalMapUv),O.push(B.clearcoatRoughnessMapUv),O.push(B.iridescenceMapUv),O.push(B.iridescenceThicknessMapUv),O.push(B.sheenColorMapUv),O.push(B.sheenRoughnessMapUv),O.push(B.specularMapUv),O.push(B.specularColorMapUv),O.push(B.specularIntensityMapUv),O.push(B.transmissionMapUv),O.push(B.thicknessMapUv),O.push(B.combine),O.push(B.fogExp2),O.push(B.sizeAttenuation),O.push(B.morphTargetsCount),O.push(B.morphAttributeCount),O.push(B.numDirLights),O.push(B.numPointLights),O.push(B.numSpotLights),O.push(B.numSpotLightMaps),O.push(B.numHemiLights),O.push(B.numRectAreaLights),O.push(B.numDirLightShadows),O.push(B.numPointLightShadows),O.push(B.numSpotLightShadows),O.push(B.numSpotLightShadowsWithMaps),O.push(B.numLightProbes),O.push(B.shadowMapType),O.push(B.toneMapping),O.push(B.numClippingPlanes),O.push(B.numClipIntersection),O.push(B.depthPacking)}function C(O,B){s.disableAll(),B.instancing&&s.enable(0),B.instancingColor&&s.enable(1),B.instancingMorph&&s.enable(2),B.matcap&&s.enable(3),B.envMap&&s.enable(4),B.normalMapObjectSpace&&s.enable(5),B.normalMapTangentSpace&&s.enable(6),B.clearcoat&&s.enable(7),B.iridescence&&s.enable(8),B.alphaTest&&s.enable(9),B.vertexColors&&s.enable(10),B.vertexAlphas&&s.enable(11),B.vertexUv1s&&s.enable(12),B.vertexUv2s&&s.enable(13),B.vertexUv3s&&s.enable(14),B.vertexTangents&&s.enable(15),B.anisotropy&&s.enable(16),B.alphaHash&&s.enable(17),B.batching&&s.enable(18),B.dispersion&&s.enable(19),B.batchingColor&&s.enable(20),B.gradientMap&&s.enable(21),B.packedNormalMap&&s.enable(22),B.vertexNormals&&s.enable(23),O.push(s.mask),s.disableAll(),B.fog&&s.enable(0),B.useFog&&s.enable(1),B.flatShading&&s.enable(2),B.logarithmicDepthBuffer&&s.enable(3),B.reversedDepthBuffer&&s.enable(4),B.skinning&&s.enable(5),B.morphTargets&&s.enable(6),B.morphNormals&&s.enable(7),B.morphColors&&s.enable(8),B.premultipliedAlpha&&s.enable(9),B.shadowMapEnabled&&s.enable(10),B.doubleSided&&s.enable(11),B.flipSided&&s.enable(12),B.useDepthPacking&&s.enable(13),B.dithering&&s.enable(14),B.transmission&&s.enable(15),B.sheen&&s.enable(16),B.opaque&&s.enable(17),B.pointsUvs&&s.enable(18),B.decodeVideoTexture&&s.enable(19),B.decodeVideoTextureEmissive&&s.enable(20),B.alphaToCoverage&&s.enable(21),B.numLightProbeGrids>0&&s.enable(22),O.push(s.mask)}function M(O){const B=p[O.type];let G;if(B){const j=h0[B];G=YP.clone(j.uniforms)}else G=O.uniforms;return G}function D(O,B){let G=u.get(B);return G!==void 0?++G.usedTimes:(G=new unt(t,B,O,i),c.push(G),u.set(B,G)),G}function k(O){if(--O.usedTimes===0){const B=c.indexOf(O);c[B]=c[c.length-1],c.pop(),u.delete(O.cacheKey),O.destroy()}}function I(O){o.remove(O)}function L(){o.dispose()}return{getParameters:g,getProgramCacheKey:w,getUniforms:M,acquireProgram:D,releaseProgram:k,releaseShaderCache:I,programs:c,dispose:L}}function Ant(){let t=new WeakMap;function e(s){return t.has(s)}function n(s){let o=t.get(s);return o===void 0&&(o={},t.set(s,o)),o}function r(s){t.delete(s)}function i(s,o,l){t.get(s)[o]=l}function a(){t=new WeakMap}return{has:e,get:n,remove:r,update:i,dispose:a}}function gnt(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.materialVariant!==e.materialVariant?t.materialVariant-e.materialVariant:t.z!==e.z?t.z-e.z:t.id-e.id}function Gre(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function zre(){const t=[];let e=0;const n=[],r=[],i=[];function a(){e=0,n.length=0,r.length=0,i.length=0}function s(h){let p=0;return h.isInstancedMesh&&(p+=2),h.isSkinnedMesh&&(p+=1),p}function o(h,p,A,g,w,T){let C=t[e];return C===void 0?(C={id:h.id,object:h,geometry:p,material:A,materialVariant:s(h),groupOrder:g,renderOrder:h.renderOrder,z:w,group:T},t[e]=C):(C.id=h.id,C.object=h,C.geometry=p,C.material=A,C.materialVariant=s(h),C.groupOrder=g,C.renderOrder=h.renderOrder,C.z=w,C.group=T),e++,C}function l(h,p,A,g,w,T){const C=o(h,p,A,g,w,T);A.transmission>0?r.push(C):A.transparent===!0?i.push(C):n.push(C)}function c(h,p,A,g,w,T){const C=o(h,p,A,g,w,T);A.transmission>0?r.unshift(C):A.transparent===!0?i.unshift(C):n.unshift(C)}function u(h,p){n.length>1&&n.sort(h||gnt),r.length>1&&r.sort(p||Gre),i.length>1&&i.sort(p||Gre)}function f(){for(let h=e,p=t.length;h<p;h++){const A=t[h];if(A.id===null)break;A.id=null,A.object=null,A.geometry=null,A.material=null,A.group=null}}return{opaque:n,transmissive:r,transparent:i,init:a,push:l,unshift:c,finish:f,sort:u}}function xnt(){let t=new WeakMap;function e(r,i){const a=t.get(r);let s;return a===void 0?(s=new zre,t.set(r,[s])):i>=a.length?(s=new zre,a.push(s)):s=a[i],s}function n(){t=new WeakMap}return{get:e,dispose:n}}function vnt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new Pe,color:new Xn};break;case"SpotLight":n={position:new Pe,direction:new Pe,color:new Xn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Pe,color:new Xn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Pe,skyColor:new Xn,groundColor:new Xn};break;case"RectAreaLight":n={color:new Xn,position:new Pe,halfWidth:new Pe,halfHeight:new Pe};break}return t[e.id]=n,n}}}function ynt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn};break;case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let _nt=0;function bnt(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function wnt(t){const e=new vnt,n=ynt(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)r.probe.push(new Pe);const i=new Pe,a=new Fr,s=new Fr;function o(c){let u=0,f=0,h=0;for(let B=0;B<9;B++)r.probe[B].set(0,0,0);let p=0,A=0,g=0,w=0,T=0,C=0,M=0,D=0,k=0,I=0,L=0;c.sort(bnt);for(let B=0,G=c.length;B<G;B++){const j=c[B],z=j.color,Q=j.intensity,ee=j.distance;let Z=null;if(j.shadow&&j.shadow.map&&(j.shadow.map.texture.format===uc?Z=j.shadow.map.texture:Z=j.shadow.map.depthTexture||j.shadow.map.texture),j.isAmbientLight)u+=z.r*Q,f+=z.g*Q,h+=z.b*Q;else if(j.isLightProbe){for(let X=0;X<9;X++)r.probe[X].addScaledVector(j.sh.coefficients[X],Q);L++}else if(j.isDirectionalLight){const X=e.get(j);
vendor: 4,857 bytes, lines 4100-4105
4100if(X.color.copy(j.color).multiplyScalar(j.intensity),j.castShadow){const K=j.shadow,se=n.get(j);se.shadowIntensity=K.intensity,se.shadowBias=K.bias,se.shadowNormalBias=K.normalBias,se.shadowRadius=K.radius,se.shadowMapSize=K.mapSize,r.directionalShadow[p]=se,r.directionalShadowMap[p]=Z,r.directionalShadowMatrix[p]=j.shadow.matrix,C++}r.directional[p]=X,p++}else if(j.isSpotLight){const X=e.get(j);X.position.setFromMatrixPosition(j.matrixWorld),X.color.copy(z).multiplyScalar(Q),X.distance=ee,X.coneCos=Math.cos(j.angle),X.penumbraCos=Math.cos(j.angle*(1-j.penumbra)),X.decay=j.decay,r.spot[g]=X;const K=j.shadow;if(j.map&&(r.spotLightMap[k]=j.map,k++,K.updateMatrices(j),j.castShadow&&I++),r.spotLightMatrix[g]=K.matrix,j.castShadow){const se=n.get(j);se.shadowIntensity=K.intensity,se.shadowBias=K.bias,se.shadowNormalBias=K.normalBias,se.shadowRadius=K.radius,se.shadowMapSize=K.mapSize,r.spotShadow[g]=se,r.spotShadowMap[g]=Z,D++}g++}else if(j.isRectAreaLight){const X=e.get(j);X.color.copy(z).multiplyScalar(Q),X.halfWidth.set(j.width*.5,0,0),X.halfHeight.set(0,j.height*.5,0),r.rectArea[w]=X,w++}else if(j.isPointLight){const X=e.get(j);if(X.color.copy(j.color).multiplyScalar(j.intensity),X.distance=j.distance,X.decay=j.decay,j.castShadow){const K=j.shadow,se=n.get(j);se.shadowIntensity=K.intensity,se.shadowBias=K.bias,se.shadowNormalBias=K.normalBias,se.shadowRadius=K.radius,se.shadowMapSize=K.mapSize,se.shadowCameraNear=K.camera.near,se.shadowCameraFar=K.camera.far,r.pointShadow[A]=se,r.pointShadowMap[A]=Z,r.pointShadowMatrix[A]=j.shadow.matrix,M++}r.point[A]=X,A++}else if(j.isHemisphereLight){const X=e.get(j);X.skyColor.copy(j.color).multiplyScalar(Q),X.groundColor.copy(j.groundColor).multiplyScalar(Q),r.hemi[T]=X,T++}}w>0&&(t.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=Fn.LTC_FLOAT_1,r.rectAreaLTC2=Fn.LTC_FLOAT_2):(r.rectAreaLTC1=Fn.LTC_HALF_1,r.rectAreaLTC2=Fn.LTC_HALF_2)),r.ambient[0]=u,r.ambient[1]=f,r.ambient[2]=h;const O=r.hash;(O.directionalLength!==p||O.pointLength!==A||O.spotLength!==g||O.rectAreaLength!==w||O.hemiLength!==T||O.numDirectionalShadows!==C||O.numPointShadows!==M||O.numSpotShadows!==D||O.numSpotMaps!==k||O.numLightProbes!==L)&&(r.directional.length=p,r.spot.length=g,r.rectArea.length=w,r.point.length=A,r.hemi.length=T,r.directionalShadow.length=C,r.directionalShadowMap.length=C,r.pointShadow.length=M,r.pointShadowMap.length=M,r.spotShadow.length=D,r.spotShadowMap.length=D,r.directionalShadowMatrix.length=C,r.pointShadowMatrix.length=M,r.spotLightMatrix.length=D+k-I,r.spotLightMap.length=k,r.numSpotLightShadowsWithMaps=I,r.numLightProbes=L,O.directionalLength=p,O.pointLength=A,O.spotLength=g,O.rectAreaLength=w,O.hemiLength=T,O.numDirectionalShadows=C,O.numPointShadows=M,O.numSpotShadows=D,O.numSpotMaps=k,O.numLightProbes=L,r.version=_nt++)}function l(c,u){let f=0,h=0,p=0,A=0,g=0;const w=u.matrixWorldInverse;for(let T=0,C=c.length;T<C;T++){const M=c[T];if(M.isDirectionalLight){const D=r.directional[f];D.direction.setFromMatrixPosition(M.matrixWorld),i.setFromMatrixPosition(M.target.matrixWorld),D.direction.sub(i),D.direction.transformDirection(w),f++}else if(M.isSpotLight){const D=r.spot[p];D.position.setFromMatrixPosition(M.matrixWorld),D.position.applyMatrix4(w),D.direction.setFromMatrixPosition(M.matrixWorld),i.setFromMatrixPosition(M.target.matrixWorld),D.direction.sub(i),D.direction.transformDirection(w),p++}else if(M.isRectAreaLight){const D=r.rectArea[A];D.position.setFromMatrixPosition(M.matrixWorld),D.position.applyMatrix4(w),s.identity(),a.copy(M.matrixWorld),a.premultiply(w),s.extractRotation(a),D.halfWidth.set(M.width*.5,0,0),D.halfHeight.set(0,M.height*.5,0),D.halfWidth.applyMatrix4(s),D.halfHeight.applyMatrix4(s),A++}else if(M.isPointLight){const D=r.point[h];D.position.setFromMatrixPosition(M.matrixWorld),D.position.applyMatrix4(w),h++}else if(M.isHemisphereLight){const D=r.hemi[g];D.direction.setFromMatrixPosition(M.matrixWorld),D.direction.transformDirection(w),g++}}}return{setup:o,setupView:l,state:r}}function $re(t){const e=new wnt(t),n=[],r=[],i=[];function a(h){f.camera=h,n.length=0,r.length=0,i.length=0}function s(h){n.push(h)}function o(h){r.push(h)}function l(h){i.push(h)}function c(){e.setup(n)}function u(h){e.setupView(n,h)}const f={lightsArray:n,shadowsArray:r,lightProbeGridArray:i,camera:null,lights:e,transmissionRenderTarget:{},textureUnits:0};return{init:a,state:f,setupLights:c,setupLightsView:u,pushLight:s,pushShadow:o,pushLightProbeGrid:l}}function Snt(t){let e=new WeakMap;function n(i,a=0){const s=e.get(i);let o;return s===void 0?(o=new $re(t),e.set(i,[o])):a>=s.length?(o=new $re(t),s.push(o)):o=s[a],o}function r(){e=new WeakMap}return{get:n,dispose:r}}const Tnt=`void main() { 4101 gl_Position = vec4( position, 1.0 ); 4102}`,Ent=`uniform sampler2D shadow_pass; 4103uniform vec2 resolution; 4104uniform float radius; 4105void main() {
4106 const float samples = float( VSM_SAMPLES ); 4107 float mean = 0.0; 4108 float squared_mean = 0.0; 4109 float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); 4110 float uvStart = samples <= 1.0 ? 0.0 : - 1.0; 4111 for ( float i = 0.0; i < samples; i ++ ) { 4112 float uvOffset = uvStart + i * uvStride; 4113 #ifdef HORIZONTAL_PASS 4114 vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; 4115 mean += distribution.x; 4116 squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; 4117 #else 4118 float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; 4119 mean += depth; 4120 squared_mean += depth * depth; 4121 #endif 4122 } 4123 mean = mean / samples; 4124 squared_mean = squared_mean / samples; 4125 float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); 4126 gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); 4127}`,Mnt=[new Pe(1,0,0),new Pe(-1,0,0),new Pe(0,1,0),new Pe(0,-1,0),new Pe(0,0,1),new Pe(0,0,-1)],Cnt=[new Pe(0,-1,0),new Pe(0,-1,0),new Pe(0,0,1),new Pe(0,0,-1),new Pe(0,-1,0),new Pe(0,-1,0)],qre=new Fr,zb=new Pe,II=new Pe;function Nnt(t,e,n){let r=new h6;const i=new tn,a=new tn,s=new kr,o=new wQe,l=new SQe,c={},u=n.maxTextureSize,f={[Uu]:ca,[ca]:Uu,[Zs]:Zs},h=new ru({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tn},radius:{value:4}},vertexShader:Tnt,fragmentShader:Ent}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const A=new da;A.setAttribute("position",new Is(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new ea(A,h),w=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h3;let T=this.type;this.render=function(I,L,O){if(w.enabled===!1||w.autoUpdate===!1&&w.needsUpdate===!1||I.length===0)return;this.type===Pme&&(Kt("WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead."),this.type=h3);const B=t.getRenderTarget(),G=t.getActiveCubeFace(),j=t.getActiveMipmapLevel(),z=t.state;z.setBlending(_l),z.buffers.depth.getReversed()===!0?z.buffers.color.setClear(0,0,0,0):z.buffers.color.setClear(1,1,1,1),z.buffers.depth.setTest(!0),z.setScissorTest(!1);const Q=T!==this.type;Q&&L.traverse(function(ee){ee.material&&(Array.isArray(ee.material)?ee.material.forEach(Z=>Z.needsUpdate=!0):ee.material.needsUpdate=!0)});for(let ee=0,Z=I.length;ee<Z;ee++){const X=I[ee],K=X.shadow;if(K===void 0){Kt("WebGLShadowMap:",X,"has no shadow.");continue}if(K.autoUpdate===!1&&K.needsUpdate===!1)continue;i.copy(K.mapSize);const se=K.getFrameExtents();i.multiply(se),a.copy(K.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/se.x),i.x=a.x*se.x,K.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/se.y),i.y=a.y*se.y,K.mapSize.y=a.y));const ae=t.state.buffers.depth.getReversed();if(K.camera._reversedDepth=ae,K.map===null||Q===!0){if(K.map!==null&&(K.map.depthTexture!==null&&(K.map.depthTexture.dispose(),K.map.depthTexture=null),K.map.dispose()),this.type===Z1){if(X.isPointLight){Kt("WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.");continue}K.map=new Oh(i.x,i.y,{format:uc,type:is,minFilter:Ba,magFilter:Ba,generateMipmaps:!1}),K.map.texture.name=X.name+".shadowMap",K.map.depthTexture=new hc(i.x,i.y,os),K.map.depthTexture.name=X.name+".shadowMapDepth",K.map.depthTexture.format=Gl,K.map.depthTexture.compareFunction=null,K.map.depthTexture.minFilter=sa,K.map.depthTexture.magFilter=sa}else X.isPointLight?(K.map=new m2e(i.x),K.map.depthTexture=new Wme(i.x,_a)):(K.map=new Oh(i.x,i.y),K.map.depthTexture=new hc(i.x,i.y,_a)),K.map.depthTexture.name=X.name+".shadowMap",K.map.depthTexture.format=Gl,this.type===h3?(K.map.depthTexture.compareFunction=ae?S2:sx,K.map.depthTexture.minFilter=Ba,K.map.depthTexture.magFilter=Ba):(K.map.depthTexture.compareFunction=null,K.map.depthTexture.minFilter=sa,K.map.depthTexture.magFilter=sa);K.camera.updateProjectionMatrix()}const J=K.map.isWebGLCubeRenderTarget?6:1;for(let oe=0;oe<J;oe++){if(K.map.isWebGLCubeRenderTarget)t.setRenderTarget(K.map,oe),t.clear();else{oe===0&&(t.setRenderTarget(K.map),t.clear());const te=K.getViewport(oe);s.set(a.x*te.x,a.y*te.y,a.x*te.z,a.y*te.w),z.viewport(s)}if(X.isPointLight){const te=K.camera,he=K.matrix,me=X.distance||te.far;me!==te.far&&(te.far=me,te.updateProjectionMatrix()),zb.setFromMatrixPosition(X.matrixWorld),te.position.copy(zb),II.copy(te.position),II.add(Mnt[oe]),te.up.copy(Cnt[oe]),te.lookAt(II),te.updateMatrixWorld(),he.makeTranslation(-zb.x,-zb.y,-zb.z),qre.multiplyMatrices(te.projectionMatrix,te.matrixWorldInverse),K._frustum.setFromProjectionMatrix(qre,te.coordinateSystem,te.reversedDepth)}else K.updateMatrices(X);r=K.getFrustum(),D(L,O,K.camera,X,this.type)}K.isPointLightShadow!==!0&&this.type===Z1&&C(K,O),K.needsUpdate=!1}
vendor: 6,604 bytes, line 4127
4127T=this.type,w.needsUpdate=!1,t.setRenderTarget(B,G,j)};function C(I,L){const O=e.update(g);h.defines.VSM_SAMPLES!==I.blurSamples&&(h.defines.VSM_SAMPLES=I.blurSamples,p.defines.VSM_SAMPLES=I.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),I.mapPass===null&&(I.mapPass=new Oh(i.x,i.y,{format:uc,type:is})),h.uniforms.shadow_pass.value=I.map.depthTexture,h.uniforms.resolution.value=I.mapSize,h.uniforms.radius.value=I.radius,t.setRenderTarget(I.mapPass),t.clear(),t.renderBufferDirect(L,null,O,h,g,null),p.uniforms.shadow_pass.value=I.mapPass.texture,p.uniforms.resolution.value=I.mapSize,p.uniforms.radius.value=I.radius,t.setRenderTarget(I.map),t.clear(),t.renderBufferDirect(L,null,O,p,g,null)}function M(I,L,O,B){let G=null;const j=O.isPointLight===!0?I.customDistanceMaterial:I.customDepthMaterial;if(j!==void 0)G=j;else if(G=O.isPointLight===!0?l:o,t.localClippingEnabled&&L.clipShadows===!0&&Array.isArray(L.clippingPlanes)&&L.clippingPlanes.length!==0||L.displacementMap&&L.displacementScale!==0||L.alphaMap&&L.alphaTest>0||L.map&&L.alphaTest>0||L.alphaToCoverage===!0){const z=G.uuid,Q=L.uuid;let ee=c[z];ee===void 0&&(ee={},c[z]=ee);let Z=ee[Q];Z===void 0&&(Z=G.clone(),ee[Q]=Z,L.addEventListener("dispose",k)),G=Z}if(G.visible=L.visible,G.wireframe=L.wireframe,B===Z1?G.side=L.shadowSide!==null?L.shadowSide:L.side:G.side=L.shadowSide!==null?L.shadowSide:f[L.side],G.alphaMap=L.alphaMap,G.alphaTest=L.alphaToCoverage===!0?.5:L.alphaTest,G.map=L.map,G.clipShadows=L.clipShadows,G.clippingPlanes=L.clippingPlanes,G.clipIntersection=L.clipIntersection,G.displacementMap=L.displacementMap,G.displacementScale=L.displacementScale,G.displacementBias=L.displacementBias,G.wireframeLinewidth=L.wireframeLinewidth,G.linewidth=L.linewidth,O.isPointLight===!0&&G.isMeshDistanceMaterial===!0){const z=t.properties.get(G);z.light=O}return G}function D(I,L,O,B,G){if(I.visible===!1)return;if(I.layers.test(L.layers)&&(I.isMesh||I.isLine||I.isPoints)&&(I.castShadow||I.receiveShadow&&G===Z1)&&(!I.frustumCulled||r.intersectsObject(I))){I.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,I.matrixWorld);const Q=e.update(I),ee=I.material;if(Array.isArray(ee)){const Z=Q.groups;for(let X=0,K=Z.length;X<K;X++){const se=Z[X],ae=ee[se.materialIndex];if(ae&&ae.visible){const J=M(I,ae,B,G);I.onBeforeShadow(t,I,L,O,Q,J,se),t.renderBufferDirect(O,null,Q,J,I,se),I.onAfterShadow(t,I,L,O,Q,J,se)}}}else if(ee.visible){const Z=M(I,ee,B,G);I.onBeforeShadow(t,I,L,O,Q,Z,null),t.renderBufferDirect(O,null,Q,Z,I,null),I.onAfterShadow(t,I,L,O,Q,Z,null)}}const z=I.children;for(let Q=0,ee=z.length;Q<ee;Q++)D(z[Q],L,O,B,G)}function k(I){I.target.removeEventListener("dispose",k);for(const O in c){const B=c[O],G=I.target.uuid;G in B&&(B[G].dispose(),delete B[G])}}}function Rnt(t,e){function n(){let Ge=!1;const kt=new kr;let _t=null;const Dt=new kr(0,0,0,0);return{setMask:function(jt){_t!==jt&&!Ge&&(t.colorMask(jt,jt,jt,jt),_t=jt)},setLocked:function(jt){Ge=jt},setClear:function(jt,Lt,Bt,Gt,hn){hn===!0&&(jt*=Gt,Lt*=Gt,Bt*=Gt),kt.set(jt,Lt,Bt,Gt),Dt.equals(kt)===!1&&(t.clearColor(jt,Lt,Bt,Gt),Dt.copy(kt))},reset:function(){Ge=!1,_t=null,Dt.set(-1,0,0,0)}}}function r(){let Ge=!1,kt=!1,_t=null,Dt=null,jt=null;return{setReversed:function(Lt){if(kt!==Lt){const Bt=e.get("EXT_clip_control");Lt?Bt.clipControlEXT(Bt.LOWER_LEFT_EXT,Bt.ZERO_TO_ONE_EXT):Bt.clipControlEXT(Bt.LOWER_LEFT_EXT,Bt.NEGATIVE_ONE_TO_ONE_EXT),kt=Lt;const Gt=jt;jt=null,this.setClear(Gt)}},getReversed:function(){return kt},setTest:function(Lt){Lt?Re(t.DEPTH_TEST):Ne(t.DEPTH_TEST)},setMask:function(Lt){_t!==Lt&&!Ge&&(t.depthMask(Lt),_t=Lt)},setFunc:function(Lt){if(kt&&(Lt=wq[Lt]),Dt!==Lt){switch(Lt){case x5:t.depthFunc(t.NEVER);break;case v5:t.depthFunc(t.ALWAYS);break;case y5:t.depthFunc(t.LESS);break;case $g:t.depthFunc(t.LEQUAL);break;case _5:t.depthFunc(t.EQUAL);break;case b5:t.depthFunc(t.GEQUAL);break;case w5:t.depthFunc(t.GREATER);break;case S5:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}Dt=Lt}},setLocked:function(Lt){Ge=Lt},setClear:function(Lt){jt!==Lt&&(jt=Lt,kt&&(Lt=1-Lt),t.clearDepth(Lt))},reset:function(){Ge=!1,_t=null,Dt=null,jt=null,kt=!1}}}function i(){let Ge=!1,kt=null,_t=null,Dt=null,jt=null,Lt=null,Bt=null,Gt=null,hn=null;return{setTest:function(Ve){Ge||(Ve?Re(t.STENCIL_TEST):Ne(t.STENCIL_TEST))},setMask:function(Ve){kt!==Ve&&!Ge&&(t.stencilMask(Ve),kt=Ve)},setFunc:function(Ve,pt,Tt){(_t!==Ve||Dt!==pt||jt!==Tt)&&(t.stencilFunc(Ve,pt,Tt),_t=Ve,Dt=pt,jt=Tt)},setOp:function(Ve,pt,Tt){(Lt!==Ve||Bt!==pt||Gt!==Tt)&&(t.stencilOp(Ve,pt,Tt),Lt=Ve,Bt=pt,Gt=Tt)},setLocked:function(Ve){Ge=Ve},setClear:function(Ve){hn!==Ve&&(t.clearStencil(Ve),hn=Ve)},reset:function(){Ge=!1,kt=null,_t=null,Dt=null,jt=null,Lt=null,Bt=null,Gt=null,hn=null}}}const a=new n,s=new r,o=new i,l=new WeakMap,c=new WeakMap;let u={},f={},h={},p=new WeakMap,A=[],g=null,w=!1,T=null,C=null,M=null,D=null,k=null,I=null,L=null,O=new Xn(0,0,0),B=0,G=!1,j=null,z=null,Q=null,ee=null,Z=null;const X=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let K=!1,se=0;const ae=t.getParameter(t.VERSION);ae.indexOf("WebGL")!==-1?(se=parseFloat(/^WebGL (\d)/.exec(ae)[1]),K=se>=1):ae.indexOf("OpenGL ES")!==-1&&(se=parseFloat(/^OpenGL ES (\d)/.exec(ae)[1]),K=se>=2);let J=null,oe={};const te=t.getParameter(t.SCISSOR_BOX),he=t.getParameter(t.VIEWPORT),me=new kr().fromArray(te),de=new kr().fromArray(he);function Ae(Ge,kt,_t,Dt){const jt=new Uint8Array(4),Lt=t.createTexture();t.bindTexture(Ge,Lt),t.texParameteri(Ge,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(Ge,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Bt=0;Bt<_t;Bt++)Ge===t.TEXTURE_3D||Ge===t.TEXTURE_2D_ARRAY?t.texImage3D(kt,0,t.RGBA,1,1,Dt,0,t.RGBA,t.UNSIGNED_BYTE,jt):t.texImage2D(kt+Bt,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,jt);return Lt}const Se={};Se[t.TEXTURE_2D]=Ae(t.TEXTURE_2D,t.TEXTURE_2D,1),Se[t.TEXTURE_CUBE_MAP]=Ae(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),Se[t.TEXTURE_2D_ARRAY]=Ae(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),Se[t.TEXTURE_3D]=Ae(t.TEXTURE_3D,t.TEXTURE_3D,1,1),a.setClear(0,0,0,1),s.setClear(1),o.setClear(0),Re(t.DEPTH_TEST),s.setFunc($g),Me(!1),lt(ij),Re(t.CULL_FACE),Xe(_l);function Re(Ge){u[Ge]!==!0&&(t.enable(Ge),u[Ge]=!0)}function Ne(Ge){u[Ge]!==!1&&(t.disable(Ge),u[Ge]=!1)}function Fe(Ge,kt){return h[Ge]!==kt?(t.bindFramebuffer(Ge,kt),h[Ge]=kt,Ge===t.DRAW_FRAMEBUFFER&&(h[t.FRAMEBUFFER]=kt),Ge===t.FRAMEBUFFER&&(h[t.DRAW_FRAMEBUFFER]=kt),!0):!1}function Qe(Ge,kt){let _t=A,Dt=!1;if(Ge){_t=p.get(kt),_t===void 0&&(_t=[],p.set(kt,_t));const jt=Ge.textures;if(_t.length!==jt.length||_t[0]!==t.COLOR_ATTACHMENT0){for(let Lt=0,Bt=jt.length;
vendor: 9,585 bytes, line 4127
4127Lt<Bt;Lt++)_t[Lt]=t.COLOR_ATTACHMENT0+Lt;_t.length=jt.length,Dt=!0}}else _t[0]!==t.BACK&&(_t[0]=t.BACK,Dt=!0);Dt&&t.drawBuffers(_t)}function ge(Ge){return g!==Ge?(t.useProgram(Ge),g=Ge,!0):!1}const Ie={[oc]:t.FUNC_ADD,[tq]:t.FUNC_SUBTRACT,[nq]:t.FUNC_REVERSE_SUBTRACT};Ie[kme]=t.MIN,Ie[Lme]=t.MAX;const De={[Bm]:t.ZERO,[rq]:t.ONE,[iq]:t.SRC_COLOR,[W3]:t.SRC_ALPHA,[uq]:t.SRC_ALPHA_SATURATE,[lq]:t.DST_COLOR,[sq]:t.DST_ALPHA,[aq]:t.ONE_MINUS_SRC_COLOR,[Z3]:t.ONE_MINUS_SRC_ALPHA,[cq]:t.ONE_MINUS_DST_COLOR,[oq]:t.ONE_MINUS_DST_ALPHA,[MYe]:t.CONSTANT_COLOR,[CYe]:t.ONE_MINUS_CONSTANT_COLOR,[NYe]:t.CONSTANT_ALPHA,[RYe]:t.ONE_MINUS_CONSTANT_ALPHA};function Xe(Ge,kt,_t,Dt,jt,Lt,Bt,Gt,hn,Ve){if(Ge===_l){w===!0&&(Ne(t.BLEND),w=!1);return}if(w===!1&&(Re(t.BLEND),w=!0),Ge!==Qv){if(Ge!==T||Ve!==G){if((C!==oc||k!==oc)&&(t.blendEquation(t.FUNC_ADD),C=oc,k=oc),Ve)switch(Ge){case Hl:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case og:t.blendFunc(t.ONE,t.ONE);break;case lg:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case cg:t.blendFuncSeparate(t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ZERO,t.ONE);break;default:nn("WebGLState: Invalid blending: ",Ge);break}else switch(Ge){case Hl:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case og:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE,t.ONE,t.ONE);break;case lg:nn("WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true");break;case cg:nn("WebGLState: MultiplyBlending requires material.premultipliedAlpha = true");break;default:nn("WebGLState: Invalid blending: ",Ge);break}M=null,D=null,I=null,L=null,O.set(0,0,0),B=0,T=Ge,G=Ve}return}jt=jt||kt,Lt=Lt||_t,Bt=Bt||Dt,(kt!==C||jt!==k)&&(t.blendEquationSeparate(Ie[kt],Ie[jt]),C=kt,k=jt),(_t!==M||Dt!==D||Lt!==I||Bt!==L)&&(t.blendFuncSeparate(De[_t],De[Dt],De[Lt],De[Bt]),M=_t,D=Dt,I=Lt,L=Bt),(Gt.equals(O)===!1||hn!==B)&&(t.blendColor(Gt.r,Gt.g,Gt.b,hn),O.copy(Gt),B=hn),T=Ge,G=!1}function Ye(Ge,kt){Ge.side===Zs?Ne(t.CULL_FACE):Re(t.CULL_FACE);let _t=Ge.side===ca;kt&&(_t=!_t),Me(_t),Ge.blending===Hl&&Ge.transparent===!1?Xe(_l):Xe(Ge.blending,Ge.blendEquation,Ge.blendSrc,Ge.blendDst,Ge.blendEquationAlpha,Ge.blendSrcAlpha,Ge.blendDstAlpha,Ge.blendColor,Ge.blendAlpha,Ge.premultipliedAlpha),s.setFunc(Ge.depthFunc),s.setTest(Ge.depthTest),s.setMask(Ge.depthWrite),a.setMask(Ge.colorWrite);const Dt=Ge.stencilWrite;o.setTest(Dt),Dt&&(o.setMask(Ge.stencilWriteMask),o.setFunc(Ge.stencilFunc,Ge.stencilRef,Ge.stencilFuncMask),o.setOp(Ge.stencilFail,Ge.stencilZFail,Ge.stencilZPass)),Le(Ge.polygonOffset,Ge.polygonOffsetFactor,Ge.polygonOffsetUnits),Ge.alphaToCoverage===!0?Re(t.SAMPLE_ALPHA_TO_COVERAGE):Ne(t.SAMPLE_ALPHA_TO_COVERAGE)}function Me(Ge){j!==Ge&&(Ge?t.frontFace(t.CW):t.frontFace(t.CCW),j=Ge)}function lt(Ge){Ge!==Rme?(Re(t.CULL_FACE),Ge!==z&&(Ge===ij?t.cullFace(t.BACK):Ge===Dme?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):Ne(t.CULL_FACE),z=Ge}function Ht(Ge){Ge!==Q&&(K&&t.lineWidth(Ge),Q=Ge)}function Le(Ge,kt,_t){Ge?(Re(t.POLYGON_OFFSET_FILL),(ee!==kt||Z!==_t)&&(ee=kt,Z=_t,s.getReversed()&&(kt=-kt),t.polygonOffset(kt,_t))):Ne(t.POLYGON_OFFSET_FILL)}function Nt(Ge){Ge?Re(t.SCISSOR_TEST):Ne(t.SCISSOR_TEST)}function Ct(Ge){Ge===void 0&&(Ge=t.TEXTURE0+X-1),J!==Ge&&(t.activeTexture(Ge),J=Ge)}function It(Ge,kt,_t){_t===void 0&&(J===null?_t=t.TEXTURE0+X-1:_t=J);let Dt=oe[_t];Dt===void 0&&(Dt={type:void 0,texture:void 0},oe[_t]=Dt),(Dt.type!==Ge||Dt.texture!==kt)&&(J!==_t&&(t.activeTexture(_t),J=_t),t.bindTexture(Ge,kt||Se[Ge]),Dt.type=Ge,Dt.texture=kt)}function nt(){const Ge=oe[J];Ge!==void 0&&Ge.type!==void 0&&(t.bindTexture(Ge.type,null),Ge.type=void 0,Ge.texture=void 0)}function ht(){try{t.compressedTexImage2D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function ve(){try{t.compressedTexImage3D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function ce(){try{t.texSubImage2D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function je(){try{t.texSubImage3D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function dt(){try{t.compressedTexSubImage2D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function ft(){try{t.compressedTexSubImage3D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function at(){try{t.texStorage2D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function St(){try{t.texStorage3D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function ut(){try{t.texImage2D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function gt(){try{t.texImage3D(...arguments)}catch(Ge){nn("WebGLState:",Ge)}}function Vt(Ge){return f[Ge]!==void 0?f[Ge]:t.getParameter(Ge)}function Zt(Ge,kt){f[Ge]!==kt&&(t.pixelStorei(Ge,kt),f[Ge]=kt)}function Wt(Ge){me.equals(Ge)===!1&&(t.scissor(Ge.x,Ge.y,Ge.z,Ge.w),me.copy(Ge))}function qt(Ge){de.equals(Ge)===!1&&(t.viewport(Ge.x,Ge.y,Ge.z,Ge.w),de.copy(Ge))}function We(Ge,kt){let _t=c.get(kt);_t===void 0&&(_t=new WeakMap,c.set(kt,_t));let Dt=_t.get(Ge);Dt===void 0&&(Dt=t.getUniformBlockIndex(kt,Ge.name),_t.set(Ge,Dt))}function yn(Ge,kt){const Dt=c.get(kt).get(Ge);l.get(kt)!==Dt&&(t.uniformBlockBinding(kt,Dt,Ge.__bindingPointIndex),l.set(kt,Dt))}function vn(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),s.setReversed(!1),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),t.pixelStorei(t.PACK_ALIGNMENT,4),t.pixelStorei(t.UNPACK_ALIGNMENT,4),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,!1),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.BROWSER_DEFAULT_WEBGL),t.pixelStorei(t.PACK_ROW_LENGTH,0),t.pixelStorei(t.PACK_SKIP_PIXELS,0),t.pixelStorei(t.PACK_SKIP_ROWS,0),t.pixelStorei(t.UNPACK_ROW_LENGTH,0),t.pixelStorei(t.UNPACK_IMAGE_HEIGHT,0),t.pixelStorei(t.UNPACK_SKIP_PIXELS,0),t.pixelStorei(t.UNPACK_SKIP_ROWS,0),t.pixelStorei(t.UNPACK_SKIP_IMAGES,0),u={},f={},J=null,oe={},h={},p=new WeakMap,A=[],g=null,w=!1,T=null,C=null,M=null,D=null,k=null,I=null,L=null,O=new Xn(0,0,0),B=0,G=!1,j=null,z=null,Q=null,ee=null,Z=null,me.set(0,0,t.canvas.width,t.canvas.height),de.set(0,0,t.canvas.width,t.canvas.height),a.reset(),s.reset(),o.reset()}return{buffers:{color:a,depth:s,stencil:o},enable:Re,disable:Ne,bindFramebuffer:Fe,drawBuffers:Qe,useProgram:ge,setBlending:Xe,setMaterial:Ye,setFlipSided:Me,setCullFace:lt,setLineWidth:Ht,setPolygonOffset:Le,setScissorTest:Nt,activeTexture:Ct,bindTexture:It,unbindTexture:nt,compressedTexImage2D:ht,compressedTexImage3D:ve,texImage2D:ut,texImage3D:gt,pixelStorei:Zt,getParameter:Vt,updateUBOMapping:We,uniformBlockBinding:yn,texStorage2D:at,texStorage3D:St,texSubImage2D:ce,texSubImage3D:je,compressedTexSubImage2D:dt,compressedTexSubImage3D:ft,scissor:Wt,viewport:qt,reset:vn}}function Dnt(t,e,n,r,i,a,s){const o=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,l=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new tn,u=new WeakMap,f=new Set;let h;const p=new WeakMap;let A=!1;try{A=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(ve,ce){return A?new OffscreenCanvas(ve,ce):D5("canvas")}function w(ve,ce,je){let dt=1;const ft=ht(ve);if((ft.width>je||ft.height>je)&&(dt=je/Math.max(ft.width,ft.height)),dt<1)if(typeof HTMLImageElement<"u"&&ve instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&ve instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&ve instanceof ImageBitmap||typeof VideoFrame<"u"&&ve instanceof VideoFrame){const at=Math.floor(dt*ft.width),St=Math.floor(dt*ft.height);h===void 0&&(h=g(at,St));const ut=ce?g(at,St):h;return ut.width=at,ut.height=St,ut.getContext("2d").drawImage(ve,0,0,at,St),Kt("WebGLRenderer: Texture has been resized from ("+ft.width+"x"+ft.height+") to ("+at+"x"+St+")."),ut}else return"data"in ve&&Kt("WebGLRenderer: Image in DataTexture is too big ("+ft.width+"x"+ft.height+")."),ve;return ve}function T(ve){return ve.generateMipmaps}function C(ve){t.generateMipmap(ve)}function M(ve){return ve.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:ve.isWebGL3DRenderTarget?t.TEXTURE_3D:ve.isWebGLArrayRenderTarget||ve.isCompressedArrayTexture?t.TEXTURE_2D_ARRAY:t.TEXTURE_2D}function D(ve,ce,je,dt,ft,at=!1){if(ve!==null){if(t[ve]!==void 0)return t[ve];Kt("WebGLRenderer: Attempt to use non-existing WebGL internal format '"+ve+"'")}let St;dt&&(St=e.get("EXT_texture_norm16"),St||Kt("WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension"));let ut=ce;if(ce===t.RED&&(je===t.FLOAT&&(ut=t.R32F),je===t.HALF_FLOAT&&(ut=t.R16F),je===t.UNSIGNED_BYTE&&(ut=t.R8),je===t.UNSIGNED_SHORT&&St&&(ut=St.R16_EXT),je===t.SHORT&&St&&(ut=St.R16_SNORM_EXT)),ce===t.RED_INTEGER&&(je===t.UNSIGNED_BYTE&&(ut=t.R8UI),je===t.UNSIGNED_SHORT&&(ut=t.R16UI),je===t.UNSIGNED_INT&&(ut=t.R32UI),je===t.BYTE&&(ut=t.R8I),je===t.SHORT&&(ut=t.R16I),je===t.INT&&(ut=t.R32I)),ce===t.RG&&(je===t.FLOAT&&(ut
vendor: 52,098 bytes, lines 4127-4151
4127=t.RG32F),je===t.HALF_FLOAT&&(ut=t.RG16F),je===t.UNSIGNED_BYTE&&(ut=t.RG8),je===t.UNSIGNED_SHORT&&St&&(ut=St.RG16_EXT),je===t.SHORT&&St&&(ut=St.RG16_SNORM_EXT)),ce===t.RG_INTEGER&&(je===t.UNSIGNED_BYTE&&(ut=t.RG8UI),je===t.UNSIGNED_SHORT&&(ut=t.RG16UI),je===t.UNSIGNED_INT&&(ut=t.RG32UI),je===t.BYTE&&(ut=t.RG8I),je===t.SHORT&&(ut=t.RG16I),je===t.INT&&(ut=t.RG32I)),ce===t.RGB_INTEGER&&(je===t.UNSIGNED_BYTE&&(ut=t.RGB8UI),je===t.UNSIGNED_SHORT&&(ut=t.RGB16UI),je===t.UNSIGNED_INT&&(ut=t.RGB32UI),je===t.BYTE&&(ut=t.RGB8I),je===t.SHORT&&(ut=t.RGB16I),je===t.INT&&(ut=t.RGB32I)),ce===t.RGBA_INTEGER&&(je===t.UNSIGNED_BYTE&&(ut=t.RGBA8UI),je===t.UNSIGNED_SHORT&&(ut=t.RGBA16UI),je===t.UNSIGNED_INT&&(ut=t.RGBA32UI),je===t.BYTE&&(ut=t.RGBA8I),je===t.SHORT&&(ut=t.RGBA16I),je===t.INT&&(ut=t.RGBA32I)),ce===t.RGB&&(je===t.UNSIGNED_SHORT&&St&&(ut=St.RGB16_EXT),je===t.SHORT&&St&&(ut=St.RGB16_SNORM_EXT),je===t.UNSIGNED_INT_5_9_9_9_REV&&(ut=t.RGB9_E5),je===t.UNSIGNED_INT_10F_11F_11F_REV&&(ut=t.R11F_G11F_B10F)),ce===t.RGBA){const gt=at?y_:Ar.getTransfer(ft);je===t.FLOAT&&(ut=t.RGBA32F),je===t.HALF_FLOAT&&(ut=t.RGBA16F),je===t.UNSIGNED_BYTE&&(ut=gt===Bn?t.SRGB8_ALPHA8:t.RGBA8),je===t.UNSIGNED_SHORT&&St&&(ut=St.RGBA16_EXT),je===t.SHORT&&St&&(ut=St.RGBA16_SNORM_EXT),je===t.UNSIGNED_SHORT_4_4_4_4&&(ut=t.RGBA4),je===t.UNSIGNED_SHORT_5_5_5_1&&(ut=t.RGB5_A1)}return(ut===t.R16F||ut===t.R32F||ut===t.RG16F||ut===t.RG32F||ut===t.RGBA16F||ut===t.RGBA32F)&&e.get("EXT_color_buffer_float"),ut}function k(ve,ce){let je;return ve?ce===null||ce===_a||ce===N0?je=t.DEPTH24_STENCIL8:ce===os?je=t.DEPTH32F_STENCIL8:ce===dd&&(je=t.DEPTH24_STENCIL8,Kt("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):ce===null||ce===_a||ce===N0?je=t.DEPTH_COMPONENT24:ce===os?je=t.DEPTH_COMPONENT32F:ce===dd&&(je=t.DEPTH_COMPONENT16),je}function I(ve,ce){return T(ve)===!0||ve.isFramebufferTexture&&ve.minFilter!==sa&&ve.minFilter!==Ba?Math.log2(Math.max(ce.width,ce.height))+1:ve.mipmaps!==void 0&&ve.mipmaps.length>0?ve.mipmaps.length:ve.isCompressedTexture&&Array.isArray(ve.image)?ce.mipmaps.length:1}function L(ve){const ce=ve.target;ce.removeEventListener("dispose",L),B(ce),ce.isVideoTexture&&u.delete(ce),ce.isHTMLTexture&&f.delete(ce)}function O(ve){const ce=ve.target;ce.removeEventListener("dispose",O),j(ce)}function B(ve){const ce=r.get(ve);if(ce.__webglInit===void 0)return;const je=ve.source,dt=p.get(je);if(dt){const ft=dt[ce.__cacheKey];ft.usedTimes--,ft.usedTimes===0&&G(ve),Object.keys(dt).length===0&&p.delete(je)}r.remove(ve)}function G(ve){const ce=r.get(ve);t.deleteTexture(ce.__webglTexture);const je=ve.source,dt=p.get(je);delete dt[ce.__cacheKey],s.memory.textures--}function j(ve){const ce=r.get(ve);if(ve.depthTexture&&(ve.depthTexture.dispose(),r.remove(ve.depthTexture)),ve.isWebGLCubeRenderTarget)for(let dt=0;dt<6;dt++){if(Array.isArray(ce.__webglFramebuffer[dt]))for(let ft=0;ft<ce.__webglFramebuffer[dt].length;ft++)t.deleteFramebuffer(ce.__webglFramebuffer[dt][ft]);else t.deleteFramebuffer(ce.__webglFramebuffer[dt]);ce.__webglDepthbuffer&&t.deleteRenderbuffer(ce.__webglDepthbuffer[dt])}else{if(Array.isArray(ce.__webglFramebuffer))for(let dt=0;dt<ce.__webglFramebuffer.length;dt++)t.deleteFramebuffer(ce.__webglFramebuffer[dt]);else t.deleteFramebuffer(ce.__webglFramebuffer);if(ce.__webglDepthbuffer&&t.deleteRenderbuffer(ce.__webglDepthbuffer),ce.__webglMultisampledFramebuffer&&t.deleteFramebuffer(ce.__webglMultisampledFramebuffer),ce.__webglColorRenderbuffer)for(let dt=0;dt<ce.__webglColorRenderbuffer.length;dt++)ce.__webglColorRenderbuffer[dt]&&t.deleteRenderbuffer(ce.__webglColorRenderbuffer[dt]);ce.__webglDepthRenderbuffer&&t.deleteRenderbuffer(ce.__webglDepthRenderbuffer)}const je=ve.textures;for(let dt=0,ft=je.length;dt<ft;dt++){const at=r.get(je[dt]);at.__webglTexture&&(t.deleteTexture(at.__webglTexture),s.memory.textures--),r.remove(je[dt])}r.remove(ve)}let z=0;function Q(){z=0}function ee(){return z}function Z(ve){z=ve}function X(){const ve=z;return ve>=i.maxTextures&&Kt("WebGLTextures: Trying to use "+ve+" texture units while this GPU supports only "+i.maxTextures),z+=1,ve}function K(ve){const ce=[];return ce.push(ve.wrapS),ce.push(ve.wrapT),ce.push(ve.wrapR||0),ce.push(ve.magFilter),ce.push(ve.minFilter),ce.push(ve.anisotropy),ce.push(ve.internalFormat),ce.push(ve.format),ce.push(ve.type),ce.push(ve.generateMipmaps),ce.push(ve.premultiplyAlpha),ce.push(ve.flipY),ce.push(ve.unpackAlignment),ce.push(ve.colorSpace),ce.join()}function se(ve,ce){const je=r.get(ve);if(ve.isVideoTexture&&It(ve),ve.isRenderTargetTexture===!1&&ve.isExternalTexture!==!0&&ve.version>0&&je.__version!==ve.version){const dt=ve.image;if(dt===null)Kt("WebGLRenderer: Texture marked for update but no image data found.");else if(dt.complete===!1)Kt("WebGLRenderer: Texture marked for update but image is incomplete");else{Ne(je,ve,ce);return}}else ve.isExternalTexture&&(je.__webglTexture=ve.sourceTexture?ve.sourceTexture:null);n.bindTexture(t.TEXTURE_2D,je.__webglTexture,t.TEXTURE0+ce)}function ae(ve,ce){const je=r.get(ve);if(ve.isRenderTargetTexture===!1&&ve.version>0&&je.__version!==ve.version){Ne(je,ve,ce);return}else ve.isExternalTexture&&(je.__webglTexture=ve.sourceTexture?ve.sourceTexture:null);n.bindTexture(t.TEXTURE_2D_ARRAY,je.__webglTexture,t.TEXTURE0+ce)}function J(ve,ce){const je=r.get(ve);if(ve.isRenderTargetTexture===!1&&ve.version>0&&je.__version!==ve.version){Ne(je,ve,ce);return}n.bindTexture(t.TEXTURE_3D,je.__webglTexture,t.TEXTURE0+ce)}function oe(ve,ce){const je=r.get(ve);if(ve.isCubeDepthTexture!==!0&&ve.version>0&&je.__version!==ve.version){Fe(je,ve,ce);return}n.bindTexture(t.TEXTURE_CUBE_MAP,je.__webglTexture,t.TEXTURE0+ce)}const te={[py]:t.REPEAT,[x0]:t.CLAMP_TO_EDGE,[my]:t.MIRRORED_REPEAT},he={[sa]:t.NEAREST,[xq]:t.NEAREST_MIPMAP_NEAREST,[Km]:t.NEAREST_MIPMAP_LINEAR,[Ba]:t.LINEAR,[A3]:t.LINEAR_MIPMAP_NEAREST,[v0]:t.LINEAR_MIPMAP_LINEAR},me={[vq]:t.NEVER,[bq]:t.ALWAYS,[$P]:t.LESS,[sx]:t.LEQUAL,[yq]:t.EQUAL,[S2]:t.GEQUAL,[N5]:t.GREATER,[_q]:t.NOTEQUAL};function de(ve,ce){if(ce.type===os&&e.has("OES_texture_float_linear")===!1&&(ce.magFilter===Ba||ce.magFilter===A3||ce.magFilter===Km||ce.magFilter===v0||ce.minFilter===Ba||ce.minFilter===A3||ce.minFilter===Km||ce.minFilter===v0)&&Kt("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),t.texParameteri(ve,t.TEXTURE_WRAP_S,te[ce.wrapS]),t.texParameteri(ve,t.TEXTURE_WRAP_T,te[ce.wrapT]),(ve===t.TEXTURE_3D||ve===t.TEXTURE_2D_ARRAY)&&t.texParameteri(ve,t.TEXTURE_WRAP_R,te[ce.wrapR]),t.texParameteri(ve,t.TEXTURE_MAG_FILTER,he[ce.magFilter]),t.texParameteri(ve,t.TEXTURE_MIN_FILTER,he[ce.minFilter]),ce.compareFunction&&(t.texParameteri(ve,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(ve,t.TEXTURE_COMPARE_FUNC,me[ce.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(ce.magFilter===sa||ce.minFilter!==Km&&ce.minFilter!==v0||ce.type===os&&e.has("OES_texture_float_linear")===!1)return;if(ce.anisotropy>1||r.get(ce).__currentAnisotropy){const je=e.get("EXT_texture_filter_anisotropic");t.texParameterf(ve,je.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(ce.anisotropy,i.getMaxAnisotropy())),r.get(ce).__currentAnisotropy=ce.anisotropy}}}function Ae(ve,ce){let je=!1;ve.__webglInit===void 0&&(ve.__webglInit=!0,ce.addEventListener("dispose",L));const dt=ce.source;let ft=p.get(dt);ft===void 0&&(ft={},p.set(dt,ft));const at=K(ce);if(at!==ve.__cacheKey){ft[at]===void 0&&(ft[at]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,je=!0),ft[at].usedTimes++;const St=ft[ve.__cacheKey];St!==void 0&&(ft[ve.__cacheKey].usedTimes--,St.usedTimes===0&&G(ce)),ve.__cacheKey=at,ve.__webglTexture=ft[at].texture}return je}function Se(ve,ce,je){return Math.floor(Math.floor(ve/je)/ce)}function Re(ve,ce,je,dt){const at=ve.updateRanges;if(at.length===0)n.texSubImage2D(t.TEXTURE_2D,0,0,0,ce.width,ce.height,je,dt,ce.data);else{at.sort((Zt,Wt)=>Zt.start-Wt.start);let St=0;for(let Zt=1;Zt<at.length;Zt++){const Wt=at[St],qt=at[Zt],We=Wt.start+Wt.count,yn=Se(qt.start,ce.width,4),vn=Se(Wt.start,ce.width,4);qt.start<=We+1&&yn===vn&&Se(qt.start+qt.count-1,ce.width,4)===yn?Wt.count=Math.max(Wt.count,qt.start+qt.count-Wt.start):(++St,at[St]=qt)}at.length=St+1;const ut=n.getParameter(t.UNPACK_ROW_LENGTH),gt=n.getParameter(t.UNPACK_SKIP_PIXELS),Vt=n.getParameter(t.UNPACK_SKIP_ROWS);n.pixelStorei(t.UNPACK_ROW_LENGTH,ce.width);for(let Zt=0,Wt=at.length;Zt<Wt;Zt++){const qt=at[Zt],We=Math.floor(qt.start/4),yn=Math.ceil(qt.count/4),vn=We%ce.width,Ge=Math.floor(We/ce.width),kt=yn,_t=1;n.pixelStorei(t.UNPACK_SKIP_PIXELS,vn),n.pixelStorei(t.UNPACK_SKIP_ROWS,Ge),n.texSubImage2D(t.TEXTURE_2D,0,vn,Ge,kt,_t,je,dt,ce.data)}ve.clearUpdateRanges(),n.pixelStorei(t.UNPACK_ROW_LENGTH,ut),n.pixelStorei(t.UNPACK_SKIP_PIXELS,gt),n.pixelStorei(t.UNPACK_SKIP_ROWS,Vt)}}function Ne(ve,ce,je){let dt=t.TEXTURE_2D;(ce.isDataArrayTexture||ce.isCompressedArrayTexture)&&(dt=t.TEXTURE_2D_ARRAY),ce.isData3DTexture&&(dt=t.TEXTURE_3D);const ft=Ae(ve,ce),at=ce.source;n.bindTexture(dt,ve.__webglTexture,t.TEXTURE0+je);const St=r.get(at);if(at.version!==St.__version||ft===!0){if(n.activeTexture(t.TEXTURE0+je),(typeof ImageBitmap<"u"&&ce.image instanceof ImageBitmap)===!1){const _t=Ar.getPrimaries(Ar.workingColorSpace),Dt=ce.colorSpace===g0?null:Ar.getPrimaries(ce.colorSpace),jt=ce.colorSpace===g0||_t===Dt?t.NONE:t.BROWSER_DEFAULT_WEBGL;n.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,ce.flipY),n.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ce.premultiplyAlpha),n.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,jt)}n.pixelStorei(t.UNPACK_ALIGNMENT,ce.unpackAlignment);let gt=w(ce.image,!1,i.maxTextureSize);gt=nt(ce,gt);const Vt=a.convert(ce.format,ce.colorSpace),Zt=a.convert(ce.type);let Wt=D(ce.internalFormat,Vt,Zt,ce.normalized,ce.colorSpace,ce.isVideoTexture);de(dt,ce);let qt;const We=ce.mipmaps,yn=ce.isVideoTexture!==!0,vn=St.__version===void 0||ft===!0,Ge=at.dataReady,kt=I(ce,gt);if(ce.isDepthTexture)Wt=k(ce.format===Wc,ce.type),vn&&(yn?n.texStorage2D(t.TEXTURE_2D,1,Wt,gt.width,gt.height):n.texImage2D(t.TEXTURE_2D,0,Wt,gt.width,gt.height,0,Vt,Zt,null));else if(ce.isDataTexture)if(We.length>0){yn&&vn&&n.texStorage2D(t.TEXTURE_2D,kt,Wt,We[0].width,We[0].height);for(let _t=0,Dt=We.length;_t<Dt;_t++)qt=We[_t],yn?Ge&&n.texSubImage2D(t.TEXTURE_2D,_t,0,0,qt.width,qt.height,Vt,Zt,qt.data):n.texImage2D(t.TEXTURE_2D,_t,Wt,qt.width,qt.height,0,Vt,Zt,qt.data);ce.generateMipmaps=!1}else yn?(vn&&n.texStorage2D(t.TEXTURE_2D,kt,Wt,gt.width,gt.height),Ge&&Re(ce,gt,Vt,Zt)):n.texImage2D(t.TEXTURE_2D,0,Wt,gt.width,gt.height,0,Vt,Zt,gt.data);else if(ce.isCompressedTexture)if(ce.isCompressedArrayTexture){yn&&vn&&n.texStorage3D(t.TEXTURE_2D_ARRAY,kt,Wt,We[0].width,We[0].height,gt.depth);for(let _t=0,Dt=We.length;_t<Dt;_t++)if(qt=We[_t],ce.format!==fo)if(Vt!==null)if(yn){if(Ge)if(ce.layerUpdates.size>0){const jt=hj(qt.width,qt.height,ce.format,ce.type);for(const Lt of ce.layerUpdates){const Bt=qt.data.subarray(Lt*jt/qt.data.BYTES_PER_ELEMENT,(Lt+1)*jt/qt.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,_t,0,0,Lt,qt.width,qt.height,1,Vt,Bt)}ce.clearLayerUpdates()}else n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,_t,0,0,0,qt.width,qt.height,gt.depth,Vt,qt.data)}else n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,_t,Wt,qt.width,qt.height,gt.depth,0,qt.data,0,0);else Kt("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else yn?Ge&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,_t,0,0,0,qt.width,qt.height,gt.depth,Vt,Zt,qt.data):n.texImage3D(t.TEXTURE_2D_ARRAY,_t,Wt,qt.width,qt.height,gt.depth,0,Vt,Zt,qt.data)}else{yn&&vn&&n.texStorage2D(t.TEXTURE_2D,kt,Wt,We[0].width,We[0].height);for(let _t=0,Dt=We.length;_t<Dt;_t++)qt=We[_t],ce.format!==fo?Vt!==null?yn?Ge&&n.compressedTexSubImage2D(t.TEXTURE_2D,_t,0,0,qt.width,qt.height,Vt,qt.data):n.compressedTexImage2D(t.TEXTURE_2D,_t,Wt,qt.width,qt.height,0,qt.data):Kt("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):yn?Ge&&n.texSubImage2D(t.TEXTURE_2D,_t,0,0,qt.width,qt.height,Vt,Zt,qt.data):n.texImage2D(t.TEXTURE_2D,_t,Wt,qt.width,qt.height,0,Vt,Zt,qt.data)}else if(ce.isDataArrayTexture)if(yn){if(vn&&n.texStorage3D(t.TEXTURE_2D_ARRAY,kt,Wt,gt.width,gt.height,gt.depth),Ge)if(ce.layerUpdates.size>0){const _t=hj(gt.width,gt.height,ce.format,ce.type);for(const Dt of ce.layerUpdates){const jt=gt.data.subarray(Dt*_t/gt.data.BYTES_PER_ELEMENT,(Dt+1)*_t/gt.data.BYTES_PER_ELEMENT);n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,Dt,gt.width,gt.height,1,Vt,Zt,jt)}ce.clearLayerUpdates()}else n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,gt.width,gt.height,gt.depth,Vt,Zt,gt.data)}else n.texImage3D(t.TEXTURE_2D_ARRAY,0,Wt,gt.width,gt.height,gt.depth,0,Vt,Zt,gt.data);else if(ce.isData3DTexture)yn?(vn&&n.texStorage3D(t.TEXTURE_3D,kt,Wt,gt.width,gt.height,gt.depth),Ge&&n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,gt.width,gt.height,gt.depth,Vt,Zt,gt.data)):n.texImage3D(t.TEXTURE_3D,0,Wt,gt.width,gt.height,gt.depth,0,Vt,Zt,gt.data);else if(ce.isFramebufferTexture){if(vn)if(yn)n.texStorage2D(t.TEXTURE_2D,kt,Wt,gt.width,gt.height);else{let _t=gt.width,Dt=gt.height;for(let jt=0;jt<kt;jt++)n.texImage2D(t.TEXTURE_2D,jt,Wt,_t,Dt,0,Vt,Zt,null),_t>>=1,Dt>>=1}}else if(ce.isHTMLTexture){if("texElementImage2D"in t){const _t=t.canvas;if(_t.hasAttribute("layoutsubtree")||_t.setAttribute("layoutsubtree","true"),gt.parentNode!==_t){_t.appendChild(gt),f.add(ce),_t.onpaint=Gt=>{const hn=Gt.changedElements;for(const Ve of f)hn.includes(Ve.image)&&(Ve.needsUpdate=!0)},_t.requestPaint();return}const Dt=0,jt=t.RGBA,Lt=t.RGBA,Bt=t.UNSIGNED_BYTE;t.texElementImage2D(t.TEXTURE_2D,Dt,jt,Lt,Bt,gt),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)}}else if(We.length>0){if(yn&&vn){const _t=ht(We[0]);n.texStorage2D(t.TEXTURE_2D,kt,Wt,_t.width,_t.height)}for(let _t=0,Dt=We.length;_t<Dt;_t++)qt=We[_t],yn?Ge&&n.texSubImage2D(t.TEXTURE_2D,_t,0,0,Vt,Zt,qt):n.texImage2D(t.TEXTURE_2D,_t,Wt,Vt,Zt,qt);ce.generateMipmaps=!1}else if(yn){if(vn){const _t=ht(gt);n.texStorage2D(t.TEXTURE_2D,kt,Wt,_t.width,_t.height)}Ge&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,Vt,Zt,gt)}else n.texImage2D(t.TEXTURE_2D,0,Wt,Vt,Zt,gt);T(ce)&&C(dt),St.__version=at.version,ce.onUpdate&&ce.onUpdate(ce)}ve.__version=ce.version}function Fe(ve,ce,je){if(ce.image.length!==6)return;const dt=Ae(ve,ce),ft=ce.source;n.bindTexture(t.TEXTURE_CUBE_MAP,ve.__webglTexture,t.TEXTURE0+je);const at=r.get(ft);if(ft.version!==at.__version||dt===!0){n.activeTexture(t.TEXTURE0+je);const St=Ar.getPrimaries(Ar.workingColorSpace),ut=ce.colorSpace===g0?null:Ar.getPrimaries(ce.colorSpace),gt=ce.colorSpace===g0||St===ut?t.NONE:t.BROWSER_DEFAULT_WEBGL;n.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,ce.flipY),n.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ce.premultiplyAlpha),n.pixelStorei(t.UNPACK_ALIGNMENT,ce.unpackAlignment),n.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,gt);const Vt=ce.isCompressedTexture||ce.image[0].isCompressedTexture,Zt=ce.image[0]&&ce.image[0].isDataTexture,Wt=[];for(let Lt=0;Lt<6;Lt++)!Vt&&!Zt?Wt[Lt]=w(ce.image[Lt],!0,i.maxCubemapSize):Wt[Lt]=Zt?ce.image[Lt].image:ce.image[Lt],Wt[Lt]=nt(ce,Wt[Lt]);const qt=Wt[0],We=a.convert(ce.format,ce.colorSpace),yn=a.convert(ce.type),vn=D(ce.internalFormat,We,yn,ce.normalized,ce.colorSpace),Ge=ce.isVideoTexture!==!0,kt=at.__version===void 0||dt===!0,_t=ft.dataReady;let Dt=I(ce,qt);de(t.TEXTURE_CUBE_MAP,ce);let jt;if(Vt){Ge&&kt&&n.texStorage2D(t.TEXTURE_CUBE_MAP,Dt,vn,qt.width,qt.height);for(let Lt=0;Lt<6;Lt++){jt=Wt[Lt].mipmaps;for(let Bt=0;Bt<jt.length;Bt++){const Gt=jt[Bt];ce.format!==fo?We!==null?Ge?_t&&n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt,0,0,Gt.width,Gt.height,We,Gt.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt,vn,Gt.width,Gt.height,0,Gt.data):Kt("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Ge?_t&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt,0,0,Gt.width,Gt.height,We,yn,Gt.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt,vn,Gt.width,Gt.height,0,We,yn,Gt.data)}}}else{if(jt=ce.mipmaps,Ge&&kt){jt.length>0&&Dt++;const Lt=ht(Wt[0]);n.texStorage2D(t.TEXTURE_CUBE_MAP,Dt,vn,Lt.width,Lt.height)}for(let Lt=0;Lt<6;Lt++)if(Zt){Ge?_t&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,0,0,0,Wt[Lt].width,Wt[Lt].height,We,yn,Wt[Lt].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,0,vn,Wt[Lt].width,Wt[Lt].height,0,We,yn,Wt[Lt].data);for(let Bt=0;Bt<jt.length;Bt++){const hn=jt[Bt].image[Lt].image;Ge?_t&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt+1,0,0,hn.width,hn.height,We,yn,hn.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt+1,vn,hn.width,hn.height,0,We,yn,hn.data)}}else{Ge?_t&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,0,0,0,We,yn,Wt[Lt]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,0,vn,We,yn,Wt[Lt]);for(let Bt=0;Bt<jt.length;Bt++){const Gt=jt[Bt];Ge?_t&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt+1,0,0,We,yn,Gt.image[Lt]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Lt,Bt+1,vn,We,yn,Gt.image[Lt])}}}T(ce)&&C(t.TEXTURE_CUBE_MAP),at.__version=ft.version,ce.onUpdate&&ce.onUpdate(ce)}ve.__version=ce.version}function Qe(ve,ce,je,dt,ft,at){const St=a.convert(je.format,je.colorSpace),ut=a.convert(je.type),gt=D(je.internalFormat,St,ut,je.normalized,je.colorSpace),Vt=r.get(ce),Zt=r.get(je);if(Zt.__renderTarget=ce,!Vt.__hasExternalTextures){const Wt=Math.max(1,ce.width>>at),qt=Math.max(1,ce.height>>at);ft===t.TEXTURE_3D||ft===t.TEXTURE_2D_ARRAY?n.texImage3D(ft,at,gt,Wt,qt,ce.depth,0,St,ut,null):n.texImage2D(ft,at,gt,Wt,qt,0,St,ut,null)}n.bindFramebuffer(t.FRAMEBUFFER,ve),Ct(ce)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,dt,ft,Zt.__webglTexture,0,Nt(ce)):(ft===t.TEXTURE_2D||ft>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&ft<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,dt,ft,Zt.__webglTexture,at),n.bindFramebuffer(t.FRAMEBUFFER,null)}function ge(ve,ce,je){if(t.bindRenderbuffer(t.RENDERBUFFER,ve),ce.depthBuffer){const dt=ce.depthTexture,ft=dt&&dt.isDepthTexture?dt.type:null,at=k(ce.stencilBuffer,ft),St=ce.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;Ct(ce)?o.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Nt(ce),at,ce.width,ce.height):je?t.renderbufferStorageMultisample(t.RENDERBUFFER,Nt(ce),at,ce.width,ce.height):t.renderbufferStorage(t.RENDERBUFFER,at,ce.width,ce.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,St,t.RENDERBUFFER,ve)}else{const dt=ce.textures;for(let ft=0;ft<dt.length;ft++){const at=dt[ft],St=a.convert(at.format,at.colorSpace),ut=a.convert(at.type),gt=D(at.internalFormat,St,ut,at.normalized,at.colorSpace);Ct(ce)?o.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Nt(ce),gt,ce.width,ce.height):je?t.renderbufferStorageMultisample(t.RENDERBUFFER,Nt(ce),gt,ce.width,ce.height):t.renderbufferStorage(t.RENDERBUFFER,gt,ce.width,ce.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function Ie(ve,ce,je){const dt=ce.isWebGLCubeRenderTarget===!0;if(n.bindFramebuffer(t.FRAMEBUFFER,ve),!(ce.depthTexture&&ce.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const ft=r.get(ce.depthTexture);if(ft.__renderTarget=ce,(!ft.__webglTexture||ce.depthTexture.image.width!==ce.width||ce.depthTexture.image.height!==ce.height)&&(ce.depthTexture.image.width=ce.width,ce.depthTexture.image.height=ce.height,ce.depthTexture.needsUpdate=!0),dt){if(ft.__webglInit===void 0&&(ft.__webglInit=!0,ce.depthTexture.addEventListener("dispose",L)),ft.__webglTexture===void 0){ft.__webglTexture=t.createTexture(),n.bindTexture(t.TEXTURE_CUBE_MAP,ft.__webglTexture),de(t.TEXTURE_CUBE_MAP,ce.depthTexture);const Vt=a.convert(ce.depthTexture.format),Zt=a.convert(ce.depthTexture.type);let Wt;ce.depthTexture.format===Gl?Wt=t.DEPTH_COMPONENT24:ce.depthTexture.format===Wc&&(Wt=t.DEPTH24_STENCIL8);for(let qt=0;qt<6;qt++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+qt,0,Wt,ce.width,ce.height,0,Vt,Zt,null)}}else se(ce.depthTexture,0);const at=ft.__webglTexture,St=Nt(ce),ut=dt?t.TEXTURE_CUBE_MAP_POSITIVE_X+je:t.TEXTURE_2D,gt=ce.depthTexture.format===Wc?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;if(ce.depthTexture.format===Gl)Ct(ce)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,gt,ut,at,0,St):t.framebufferTexture2D(t.FRAMEBUFFER,gt,ut,at,0);else if(ce.depthTexture.format===Wc)Ct(ce)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,gt,ut,at,0,St):t.framebufferTexture2D(t.FRAMEBUFFER,gt,ut,at,0);else throw new Error("Unknown depthTexture format")}function De(ve){const ce=r.get(ve),je=ve.isWebGLCubeRenderTarget===!0;if(ce.__boundDepthTexture!==ve.depthTexture){const dt=ve.depthTexture;if(ce.__depthDisposeCallback&&ce.__depthDisposeCallback(),dt){const ft=()=>{delete ce.__boundDepthTexture,delete ce.__depthDisposeCallback,dt.removeEventListener("dispose",ft)};dt.addEventListener("dispose",ft),ce.__depthDisposeCallback=ft}ce.__boundDepthTexture=dt}if(ve.depthTexture&&!ce.__autoAllocateDepthBuffer)if(je)for(let dt=0;dt<6;dt++)Ie(ce.__webglFramebuffer[dt],ve,dt);else{const dt=ve.texture.mipmaps;dt&&dt.length>0?Ie(ce.__webglFramebuffer[0],ve,0):Ie(ce.__webglFramebuffer,ve,0)}else if(je){ce.__webglDepthbuffer=[];for(let dt=0;dt<6;dt++)if(n.bindFramebuffer(t.FRAMEBUFFER,ce.__webglFramebuffer[dt]),ce.__webglDepthbuffer[dt]===void 0)ce.__webglDepthbuffer[dt]=t.createRenderbuffer(),ge(ce.__webglDepthbuffer[dt],ve,!1);else{const ft=ve.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,at=ce.__webglDepthbuffer[dt];t.bindRenderbuffer(t.RENDERBUFFER,at),t.framebufferRenderbuffer(t.FRAMEBUFFER,ft,t.RENDERBUFFER,at)}}else{const dt=ve.texture.mipmaps;if(dt&&dt.length>0?n.bindFramebuffer(t.FRAMEBUFFER,ce.__webglFramebuffer[0]):n.bindFramebuffer(t.FRAMEBUFFER,ce.__webglFramebuffer),ce.__webglDepthbuffer===void 0)ce.__webglDepthbuffer=t.createRenderbuffer(),ge(ce.__webglDepthbuffer,ve,!1);else{const ft=ve.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,at=ce.__webglDepthbuffer;t.bindRenderbuffer(t.RENDERBUFFER,at),t.framebufferRenderbuffer(t.FRAMEBUFFER,ft,t.RENDERBUFFER,at)}}n.bindFramebuffer(t.FRAMEBUFFER,null)}function Xe(ve,ce,je){const dt=r.get(ve);ce!==void 0&&Qe(dt.__webglFramebuffer,ve,ve.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),je!==void 0&&De(ve)}function Ye(ve){const ce=ve.texture,je=r.get(ve),dt=r.get(ce);ve.addEventListener("dispose",O);const ft=ve.textures,at=ve.isWebGLCubeRenderTarget===!0,St=ft.length>1;if(St||(dt.__webglTexture===void 0&&(dt.__webglTexture=t.createTexture()),dt.__version=ce.version,s.memory.textures++),at){je.__webglFramebuffer=[];for(let ut=0;ut<6;ut++)if(ce.mipmaps&&ce.mipmaps.length>0){je.__webglFramebuffer[ut]=[];for(let gt=0;gt<ce.mipmaps.length;gt++)je.__webglFramebuffer[ut][gt]=t.createFramebuffer()}else je.__webglFramebuffer[ut]=t.createFramebuffer()}else{if(ce.mipmaps&&ce.mipmaps.length>0){je.__webglFramebuffer=[];for(let ut=0;ut<ce.mipmaps.length;ut++)je.__webglFramebuffer[ut]=t.createFramebuffer()}else je.__webglFramebuffer=t.createFramebuffer();if(St)for(let ut=0,gt=ft.length;ut<gt;ut++){const Vt=r.get(ft[ut]);Vt.__webglTexture===void 0&&(Vt.__webglTexture=t.createTexture(),s.memory.textures++)}if(ve.samples>0&&Ct(ve)===!1){je.__webglMultisampledFramebuffer=t.createFramebuffer(),je.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,je.__webglMultisampledFramebuffer);for(let ut=0;ut<ft.length;ut++){const gt=ft[ut];je.__webglColorRenderbuffer[ut]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,je.__webglColorRenderbuffer[ut]);const Vt=a.convert(gt.format,gt.colorSpace),Zt=a.convert(gt.type),Wt=D(gt.internalFormat,Vt,Zt,gt.normalized,gt.colorSpace,ve.isXRRenderTarget===!0),qt=Nt(ve);t.renderbufferStorageMultisample(t.RENDERBUFFER,qt,Wt,ve.width,ve.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+ut,t.RENDERBUFFER,je.__webglColorRenderbuffer[ut])}t.bindRenderbuffer(t.RENDERBUFFER,null),ve.depthBuffer&&(je.__webglDepthRenderbuffer=t.createRenderbuffer(),ge(je.__webglDepthRenderbuffer,ve,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(at){n.bindTexture(t.TEXTURE_CUBE_MAP,dt.__webglTexture),de(t.TEXTURE_CUBE_MAP,ce);for(let ut=0;ut<6;ut++)if(ce.mipmaps&&ce.mipmaps.length>0)for(let gt=0;gt<ce.mipmaps.length;gt++)Qe(je.__webglFramebuffer[ut][gt],ve,ce,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+ut,gt);else Qe(je.__webglFramebuffer[ut],ve,ce,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+ut,0);T(ce)&&C(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(St){for(let ut=0,gt=ft.length;ut<gt;ut++){const Vt=ft[ut],Zt=r.get(Vt);let Wt=t.TEXTURE_2D;(ve.isWebGL3DRenderTarget||ve.isWebGLArrayRenderTarget)&&(Wt=ve.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY),n.bindTexture(Wt,Zt.__webglTexture),de(Wt,Vt),Qe(je.__webglFramebuffer,ve,Vt,t.COLOR_ATTACHMENT0+ut,Wt,0),T(Vt)&&C(Wt)}n.unbindTexture()}else{let ut=t.TEXTURE_2D;if((ve.isWebGL3DRenderTarget||ve.isWebGLArrayRenderTarget)&&(ut=ve.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY),n.bindTexture(ut,dt.__webglTexture),de(ut,ce),ce.mipmaps&&ce.mipmaps.length>0)for(let gt=0;gt<ce.mipmaps.length;gt++)Qe(je.__webglFramebuffer[gt],ve,ce,t.COLOR_ATTACHMENT0,ut,gt);else Qe(je.__webglFramebuffer,ve,ce,t.COLOR_ATTACHMENT0,ut,0);T(ce)&&C(ut),n.unbindTexture()}ve.depthBuffer&&De(ve)}function Me(ve){const ce=ve.textures;for(let je=0,dt=ce.length;je<dt;je++){const ft=ce[je];if(T(ft)){const at=M(ve),St=r.get(ft).__webglTexture;n.bindTexture(at,St),C(at),n.unbindTexture()}}}const lt=[],Ht=[];function Le(ve){if(ve.samples>0){if(Ct(ve)===!1){const ce=ve.textures,je=ve.width,dt=ve.height;let ft=t.COLOR_BUFFER_BIT;const at=ve.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,St=r.get(ve),ut=ce.length>1;if(ut)for(let Vt=0;Vt<ce.length;Vt++)n.bindFramebuffer(t.FRAMEBUFFER,St.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Vt,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,St.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Vt,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,St.__webglMultisampledFramebuffer);const gt=ve.texture.mipmaps;gt&>.length>0?n.bindFramebuffer(t.DRAW_FRAMEBUFFER,St.__webglFramebuffer[0]):n.bindFramebuffer(t.DRAW_FRAMEBUFFER,St.__webglFramebuffer);for(let Vt=0;Vt<ce.length;Vt++){if(ve.resolveDepthBuffer&&(ve.depthBuffer&&(ft|=t.DEPTH_BUFFER_BIT),ve.stencilBuffer&&ve.resolveStencilBuffer&&(ft|=t.STENCIL_BUFFER_BIT)),ut){t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,St.__webglColorRenderbuffer[Vt]);const Zt=r.get(ce[Vt]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,Zt,0)}t.blitFramebuffer(0,0,je,dt,0,0,je,dt,ft,t.NEAREST),l===!0&&(lt.length=0,Ht.length=0,lt.push(t.COLOR_ATTACHMENT0+Vt),ve.depthBuffer&&ve.resolveDepthBuffer===!1&&(lt.push(at),Ht.push(at),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,Ht)),t.invalidateFramebuffer(t.READ_FRAMEBUFFER,lt))}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),ut)for(let Vt=0;Vt<ce.length;Vt++){n.bindFramebuffer(t.FRAMEBUFFER,St.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Vt,t.RENDERBUFFER,St.__webglColorRenderbuffer[Vt]);const Zt=r.get(ce[Vt]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,St.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Vt,t.TEXTURE_2D,Zt,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,St.__webglMultisampledFramebuffer)}else if(ve.depthBuffer&&ve.resolveDepthBuffer===!1&&l){const ce=ve.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT;t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[ce])}}}function Nt(ve){return Math.min(i.maxSamples,ve.samples)}function Ct(ve){const ce=r.get(ve);return ve.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&ce.__useRenderToTexture!==!1}function It(ve){const ce=s.render.frame;u.get(ve)!==ce&&(u.set(ve,ce),ve.update())}function nt(ve,ce){const je=ve.colorSpace,dt=ve.format,ft=ve.type;return ve.isCompressedTexture===!0||ve.isVideoTexture===!0||je!==v_&&je!==g0&&(Ar.getTransfer(je)===Bn?(dt!==fo||ft!==rs)&&Kt("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):nn("WebGLTextures: Unsupported texture color space:",je)),ce}function ht(ve){return typeof HTMLImageElement<"u"&&ve instanceof HTMLImageElement?(c.width=ve.naturalWidth||ve.width,c.height=ve.naturalHeight||ve.height):typeof VideoFrame<"u"&&ve instanceof VideoFrame?(c.width=ve.displayWidth,c.height=ve.displayHeight):(c.width=ve.width,c.height=ve.height),c}this.allocateTextureUnit=X,this.resetTextureUnits=Q,this.getTextureUnits=ee,this.setTextureUnits=Z,this.setTexture2D=se,this.setTexture2DArray=ae,this.setTexture3D=J,this.setTextureCube=oe,this.rebindTextures=Xe,this.setupRenderTarget=Ye,this.updateRenderTargetMipmap=Me,this.updateMultisampleRenderTarget=Le,this.setupDepthRenderbuffer=De,this.setupFrameBufferTexture=Qe,this.useMultisampledRTT=Ct,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Pnt(t,e){function n(r,i=g0){let a;const s=Ar.getTransfer(i);if(r===rs)return t.UNSIGNED_BYTE;if(r===HT)return t.UNSIGNED_SHORT_4_4_4_4;if(r===GT)return t.UNSIGNED_SHORT_5_5_5_1;if(r===zT)return t.UNSIGNED_INT_5_9_9_9_REV;if(r===$T)return t.UNSIGNED_INT_10F_11F_11F_REV;if(r===Sg)return t.BYTE;if(r===Tg)return t.SHORT;if(r===dd)return t.UNSIGNED_SHORT;if(r===Al)return t.INT;if(r===_a)return t.UNSIGNED_INT;if(r===os)return t.FLOAT;if(r===is)return t.HALF_FLOAT;if(r===zP)return t.ALPHA;if(r===u6)return t.RGB;if(r===fo)return t.RGBA;if(r===Gl)return t.DEPTH_COMPONENT;if(r===Wc)return t.DEPTH_STENCIL;if(r===f6)return t.RED;if(r===By)return t.RED_INTEGER;if(r===uc)return t.RG;if(r===Uy)return t.RG_INTEGER;if(r===d6)return t.RGBA_INTEGER;if(r===Eg||r===Mg||r===Cg||r===Ng)if(s===Bn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Eg)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Mg)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Cg)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Ng)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Eg)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Mg)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Cg)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Ng)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===T5||r===E5||r===M5||r===C5)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===T5)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===E5)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===M5)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===C5)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===Y3||r===X3||r===Q3||r===K3||r===J3||r===qg||r===e_)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===Y3||r===X3)return s===Bn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===Q3)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC;if(r===K3)return a.COMPRESSED_R11_EAC;if(r===J3)return a.COMPRESSED_SIGNED_R11_EAC;if(r===qg)return a.COMPRESSED_RG11_EAC;if(r===e_)return a.COMPRESSED_SIGNED_RG11_EAC}else return null;if(r===t_||r===n_||r===r_||r===i_||r===a_||r===s_||r===o_||r===l_||r===c_||r===u_||r===f_||r===d_||r===h_||r===p_)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===t_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===n_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===r_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===i_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===a_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===s_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===o_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===l_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===c_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===u_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===f_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===d_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===h_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===p_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===m_||r===aj||r===sj)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===m_)return s===Bn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===aj)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===sj)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===A_||r===g_||r===Wg||r===x_)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===A_)return a.COMPRESSED_RED_RGTC1_EXT;if(r===g_)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===Wg)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===x_)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===N0?t.UNSIGNED_INT_24_8:t[r]!==void 0?t[r]:null}return{convert:n}}const knt=` 4128void main() { 4129 4130 gl_Position = vec4( position, 1.0 ); 4131 4132}`,Lnt=` 4133uniform sampler2DArray depthColor; 4134uniform float depthWidth; 4135uniform float depthHeight; 4136 4137void main() { 4138 4139 vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); 4140 4141 if ( coord.x >= 1.0 ) { 4142 4143 gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; 4144 4145 } else { 4146 4147 gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; 4148 4149 } 4150 4151}`;class Ont{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,n){if(this.texture===null){const r=new Zme(e.texture);(e.depthNear!==n.depthNear||e.depthFar!==n.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=r}}getMesh(e){if(this.texture!==null&&this.mesh===null){const n=e.cameras[0].viewport,r=new ru({vertexShader:knt,fragmentShader:Lnt,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new ea(new WT(20,20),r)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Fnt extends Fd{constructor(e,n){super();const r=this;let i=null,a=1,s=null,o="local-floor",l=1,c=null,u=null,f=null,h=null,p=null,A=null;const g=typeof XRWebGLBinding<"u",w=new Ont,T={},C=n.getContextAttributes();let M=null,D=null;const k=[],I=[],L=new tn;let O=null;const B=new jl;B.viewport=new kr;const G=new jl;G.viewport=new kr;const j=[B,G],z=new f2e;let Q=null,ee=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(Ae){let Se=k[Ae];return Se===void 0&&(Se=new V9,k[Ae]=Se),Se.getTargetRaySpace()},this.getControllerGrip=function(Ae){let Se=k[Ae];return Se===void 0&&(Se=new V9,k[Ae]=Se),Se.getGripSpace()},this.getHand=function(Ae){let Se=k[Ae];return Se===void 0&&(Se=new V9,k[Ae]=Se),Se.getHandSpace()};function Z(Ae){const Se=I.indexOf(Ae.inputSource);if(Se===-1)return;const Re=k[Se];Re!==void 0&&(Re.update(Ae.inputSource,Ae.frame,c||s),Re.dispatchEvent({type:Ae.type,data:Ae.inputSource}))}function X(){i.removeEventListener("select",Z),i.removeEventListener("selectstart",Z),i.removeEventListener("selectend",Z),i.removeEventListener("squeeze",Z),i.removeEventListener("squeezestart",Z),i.removeEventListener("squeezeend",Z),i.removeEventListener("end",X),i.removeEventListener("inputsourceschange",K);for(let Ae=0;Ae<k.length;Ae++){const Se=I[Ae];Se!==null&&(I[Ae]=null,k[Ae].disconnect(Se))}Q=null,ee=null,w.reset();for(const Ae in T)delete T[Ae];e.setRenderTarget(M),p=null,h=null,f=null,i=null,D=null,de.stop(),r.isPresenting=!1,e.setPixelRatio(O),e.setSize(L.width,L.height,!1),r.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(Ae){a=Ae,r.isPresenting===!0&&Kt("WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(Ae){o=Ae,r.isPresenting===!0&&Kt("WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||s},this.setReferenceSpace=function(Ae){c=Ae},this.getBaseLayer=function(){return h!==null?h:p},this.getBinding=function(){return f===null&&g&&(f=new XRWebGLBinding(i,n)),f},this.getFrame=function(){return A},this.getSession=function(){return i},this.setSession=async function(Ae){if(i=Ae,i!==null){if(M=e.getRenderTarget(),i.addEventListener("select",Z),i.addEventListener("selectstart",Z),i.addEventListener("selectend",Z),i.addEventListener("squeeze",Z),i.addEventListener("squeezestart",Z),i.addEventListener("squeezeend",Z),i.addEventListener("end",X),i.addEventListener("inputsourceschange",K),C.xrCompatible!==!0&&await n.makeXRCompatible(),O=e.getPixelRatio(),e.getSize(L),g&&"createProjectionLayer"in XRWebGLBinding.prototype){let Re=null,Ne=null,Fe=null;C.depth&&(Fe=C.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,Re=C.stencil?Wc:Gl,Ne=C.stencil?N0:_a);const Qe={colorFormat:n.RGBA8,depthFormat:Fe,scaleFactor:a};f=this.getBinding(),h=f.createProjectionLayer(Qe),i.updateRenderState({layers:[h]}),e.setPixelRatio(1),e.setSize(h.textureWidth,h.textureHeight,!1),D=new Oh(h.textureWidth,h.textureHeight,{format:fo,type:rs,depthTexture:new hc(h.textureWidth,h.textureHeight,Ne,void 0,void 0,void 0,void 0,void 0,void 0,Re),stencilBuffer:C.stencil,colorSpace:e.outputColorSpace,samples:C.antialias?4:0,resolveDepthBuffer:h.ignoreDepthValues===!1,resolveStencilBuffer:h.ignoreDepthValues===!1})}else{const Re={antialias:C.antialias,alpha:!0,depth:C.depth,stencil:C.stencil,framebufferScaleFactor:a};p=new XRWebGLLayer(i,n,Re),i.updateRenderState({baseLayer:p}),e.setPixelRatio(1),e.setSize(p.framebufferWidth,p.framebufferHeight,!1),D=new Oh(p.framebufferWidth,p.framebufferHeight,{format:fo,type:rs,colorSpace:e.outputColorSpace,stencilBuffer:C.stencil,resolveDepthBuffer:p.ignoreDepthValues===!1,resolveStencilBuffer:p.ignoreDepthValues===!1})}D.isXRRenderTarget=!0,this.setFoveation(l),c=null,s=await i.requestReferenceSpace(o),de.setContext(i),de.start(),r.isPresenting=!0,r.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(i!==null)return i.environmentBlendMode},this.getDepthTexture=function(){return w.getDepthTexture()};function K(Ae){for(let Se=0;Se<Ae.removed.length;Se++){const Re=Ae.removed[Se],Ne=I.indexOf(Re);Ne>=0&&(I[Ne]=null,k[Ne].disconnect(Re))}for(let Se=0;Se<Ae.added.length;Se++){const Re=Ae.added[Se];let Ne=I.indexOf(Re);if(Ne===-1){for(let Qe=0;Qe<k.length;Qe++)if(Qe>=I.length){I.push(Re),Ne=Qe;break}else if(I[Qe]===null){I[Qe]=Re,Ne=Qe;break}if(Ne===-1)break}const Fe=k[Ne];Fe&&Fe.connect(Re)}}const se=new Pe,ae=new Pe;function J(Ae,Se,Re){se.setFromMatrixPosition(Se.matrixWorld),ae.setFromMatrixPosition(Re.matrixWorld);const Ne=se.distanceTo(ae),Fe=Se.projectionMatrix.elements,Qe=Re.projectionMatrix.elements,ge=Fe[14]/(Fe[10]-1),Ie=Fe[14]/(Fe[10]+1),De=(Fe[9]+1)/Fe[5],Xe=(Fe[9]-1)/Fe[5],Ye=(Fe[8]-1)/Fe[0],Me=(Qe[8]+1)/Qe[0],lt=ge*Ye,Ht=ge*Me,Le=Ne/(-Ye+Me),Nt=Le*-Ye;if(Se.matrixWorld.decompose(Ae.position,Ae.quaternion,Ae.scale),Ae.translateX(Nt),Ae.translateZ(Le),Ae.matrixWorld.compose(Ae.position,Ae.quaternion,Ae.scale),Ae.matrixWorldInverse.copy(Ae.matrixWorld).invert(),Fe[10]===-1)Ae.projectionMatrix.copy(Se.projectionMatrix),Ae.projectionMatrixInverse.copy(Se.projectionMatrixInverse);else{const Ct=ge+Le,It=Ie+Le,nt=lt-Nt,ht=Ht+(Ne-Nt),ve=De*Ie/It*Ct,ce=Xe*Ie/It*Ct;Ae.projectionMatrix.makePerspective(nt,ht,ve,ce,Ct,It),Ae.projectionMatrixInverse.copy(Ae.projectionMatrix).invert()}}function oe(Ae,Se){Se===null?Ae.matrixWorld.copy(Ae.matrix):Ae.matrixWorld.multiplyMatrices(Se.matrixWorld,Ae.matrix),Ae.matrixWorldInverse.copy(Ae.matrixWorld).invert()}this.updateCamera=function(Ae){if(i===null)return;let Se=Ae.near,Re=Ae.far;w.texture!==null&&(w.depthNear>0&&(Se=w.depthNear),w.depthFar>0&&(Re=w.depthFar)),z.near=G.near=B.near=Se,z.far=G.far=B.far=Re,(Q!==z.near||ee!==z.far)&&(i.updateRenderState({depthNear:z.near,depthFar:z.far}),Q=z.near,ee=z.far),z.layers.mask=Ae.layers.mask|6,B.layers.mask=z.layers.mask&-5,G.layers.mask=z.layers.mask&-3;const Ne=Ae.parent,Fe=z.cameras;oe(z,Ne);for(let Qe=0;Qe<Fe.length;Qe++)oe(Fe[Qe],Ne);Fe.length===2?J(z,B,G):z.projectionMatrix.copy(B.projectionMatrix),te(Ae,z,Ne)};function te(Ae,Se,Re){Re===null?Ae.matrix.copy(Se.matrixWorld):(Ae.matrix.copy(Re.matrixWorld),Ae.matrix.invert(),Ae.matrix.multiply(Se.matrixWorld)),Ae.matrix.decompose(Ae.position,Ae.quaternion,Ae.scale),Ae.updateMatrixWorld(!0),Ae.projectionMatrix.copy(Se.projectionMatrix),Ae.projectionMatrixInverse.copy(Se.projectionMatrixInverse),Ae.isPerspectiveCamera&&(Ae.fov=Ay*2*Math.atan(1/Ae.projectionMatrix.elements[5]),Ae.zoom=1)}this.getCamera=function(){return z},this.getFoveation=function(){if(!(h===null&&p===null))return l},this.setFoveation=function(Ae){l=Ae,h!==null&&(h.fixedFoveation=Ae),p!==null&&p.fixedFoveation!==void 0&&(p.fixedFoveation=Ae)},this.hasDepthSensing=function(){return w.texture!==null},this.getDepthSensingMesh=function(){return w.getMesh(z)},this.getCameraTexture=function(Ae){return T[Ae]};let he=null;function me(Ae,Se){if(u=Se.getViewerPose(c||s),A=Se,u!==null){const Re=u.views;p!==null&&(e.setRenderTargetFramebuffer(D,p.framebuffer),e.setRenderTarget(D));let Ne=!1;Re.length!==z.cameras.length&&(z.cameras.length=0,Ne=!0);for(let Ie=0;Ie<Re.length;Ie++){const De=Re[Ie];let Xe=null;if(p!==null)Xe=p.getViewport(De);else{const Me=f.getViewSubImage(h,De);Xe=Me.viewport,Ie===0&&(e.setRenderTargetTextures(D,Me.colorTexture,Me.depthStencilTexture),e.setRenderTarget(D))}let Ye=j[Ie];Ye===void 0&&(Ye=new jl,Ye.layers.enable(Ie),Ye.viewport=new kr,j[Ie]=Ye),Ye.matrix.fromArray(De.transform.matrix),Ye.matrix.decompose(Ye.position,Ye.quaternion,Ye.scale),Ye.projectionMatrix.fromArray(De.projectionMatrix),Ye.projectionMatrixInverse.copy(Ye.projectionMatrix).invert(),Ye.viewport.set(Xe.x,Xe.y,Xe.width,Xe.height),Ie===0&&(z.matrix.copy(Ye.matrix),z.matrix.decompose(z.position,z.quaternion,z.scale)),Ne===!0&&z.cameras.push(Ye)}const Fe=i.enabledFeatures;if(Fe&&Fe.includes("depth-sensing")&&i.depthUsage=="gpu-optimized"&&g){f=r.getBinding();const Ie=f.getDepthInformation(Re[0]);Ie&&Ie.isValid&&Ie.texture&&w.init(Ie,i.renderState)}if(Fe&&Fe.includes("camera-access")&&g){e.state.unbindTexture(),f=r.getBinding();for(let Ie=0;Ie<Re.length;Ie++){const De=Re[Ie].camera;if(De){let Xe=T[De];Xe||(Xe=new Zme,T[De]=Xe);const Ye=f.getCameraImage(De);Xe.sourceTexture=Ye}}}}for(let Re=0;Re<k.length;Re++){const Ne=I[Re],Fe=k[Re];Ne!==null&&Fe!==void 0&&Fe.update(Ne,Se,c||s)}he&&he(Ae,Se),Se.detectedPlanes&&r.dispatchEvent({type:"planesdetected",data:Se}),A=null}const de=new h2e;de.setAnimationLoop(me),this.setAnimationLoop=function(Ae){he=Ae},this.dispose=function(){}}}const Int=new Fr,y2e=new Vr;y2e.set(-1,0,0,0,1,0,0,0,1);function Bnt(t,e){function n(w,T){w.matrixAutoUpdate===!0&&w.updateMatrix(),T.value.copy(w.matrix)}function r(w,T){T.color.getRGB(w.fogColor.value,a2e(t)),T.isFog?(w.fogNear.value=T.near,w.fogFar.value=T.far):T.isFogExp2&&(w.fogDensity.value=T.density)}function i(w,T,C,M,D){T.isNodeMaterial?T.uniformsNeedUpdate=!1:T.isMeshBasicMaterial?a(w,T):T.isMeshLambertMaterial?(a(w,T),T.envMap&&(w.envMapIntensity.value=T.envMapIntensity)):T.isMeshToonMaterial?(a(w,T),f(w,T)):T.isMeshPhongMaterial?(a(w,T),u(w,T),T.envMap&&(w.envMapIntensity.value=T.envMapIntensity)):T.isMeshStandardMaterial?(a(w,T),h(w,T),T.isMeshPhysicalMaterial&&p(w,T,D)):T.isMeshMatcapMaterial?(a(w,T),A(w,T)):T.isMeshDepthMaterial?a(w,T):T.isMeshDistanceMaterial?(a(w,T),g(w,T)):T.isMeshNormalMaterial?a(w,T):T.isLineBasicMaterial?(s(w,T),T.isLineDashedMaterial&&o(w,T)):T.isPointsMaterial?l(w,T,C,M):T.isSpriteMaterial?c(w,T):T.isShadowMaterial?(w.color.value.copy(T.color),w.opacity.value=T.opacity):T.isShaderMaterial&&(T.uniformsNeedUpdate=!1)}function a(w,T){w.opacity.value=T.opacity,T.color&&w.diffuse.value.copy(T.color),T.emissive&&w.emissive.value.copy(T.emissive).multiplyScalar(T.emissiveIntensity),T.map&&(w.map.value=T.map,n(T.map,w.mapTransform)),T.alphaMap&&(w.alphaMap.value=T.alphaMap,n(T.alphaMap,w.alphaMapTransform)),T.bumpMap&&(w.bumpMap.value=T.bumpMap,n(T.bumpMap,w.bumpMapTransform),w.bumpScale.value=T.bumpScale,T.side===ca&&(w.bumpScale.value*=-1)),T.normalMap&&(w.normalMap.value=T.normalMap,n(T.normalMap,w.normalMapTransform),w.normalScale.value.copy(T.normalScale),T.side===ca&&w.normalScale.value.negate()),T.displacementMap&&(w.displacementMap.value=T.displacementMap,n(T.displacementMap,w.displacementMapTransform),w.displacementScale.value=T.displacementScale,w.displacementBias.value=T.displacementBias),T.emissiveMap&&(w.emissiveMap.value=T.emissiveMap,n(T.emissiveMap,w.emissiveMapTransform)),T.specularMap&&(w.specularMap.value=T.specularMap,n(T.specularMap,w.specularMapTransform)),T.alphaTest>0&&(w.alphaTest.value=T.alphaTest);const C=e.get(T),M=C.envMap,D=C.envMapRotation;M&&(w.envMap.value=M,w.envMapRotation.value.setFromMatrix4(Int.makeRotationFromEuler(D)).transpose(),M.isCubeTexture&&M.isRenderTargetTexture===!1&&w.envMapRotation.value.premultiply(y2e),w.reflectivity.value=T.reflectivity,w.ior.value=T.ior,w.refractionRatio.value=T.refractionRatio),T.lightMap&&(w.lightMap.value=T.lightMap,w.lightMapIntensity.value=T.lightMapIntensity,n(T.lightMap,w.lightMapTransform)),T.aoMap&&(w.aoMap.value=T.aoMap,w.aoMapIntensity.value=T.aoMapIntensity,n(T.aoMap,w.aoMapTransform))}function s(w,T){w.diffuse.value.copy(T.color),w.opacity.value=T.opacity,T.map&&(w.map.value=T.map,n(T.map,w.mapTransform))}function o(w,T){w.dashSize.value=T.dashSize,w.totalSize.value=T.dashSize+T.gapSize,w.scale.value=T.scale}function l(w,T,C,M){w.diffuse.value.copy(T.color),w.opacity.value=T.opacity,w.size.value=T.size*C,w.scale.value=M*.5,T.map&&(w.map.value=T.map,n(T.map,w.uvTransform)),T.alphaMap&&(w.alphaMap.value=T.alphaMap,n(T.alphaMap,w.alphaMapTransform)),T.alphaTest>0&&(w.alphaTest.value=T.alphaTest)}function c(w,T){w.diffuse.value.copy(T.color),w.opacity.value=T.opacity,w.rotation.value=T.rotation,T.map&&(w.map.value=T.map,n(T.map,w.mapTransform)),T.alphaMap&&(w.alphaMap.value=T.alphaMap,n(T.alphaMap,w.alphaMapTransform)),T.alphaTest>0&&(w.alphaTest.value=T.alphaTest)}function u(w,T){w.specular.value.copy(T.specular),w.shininess.value=Math.max(T.shininess,1e-4)}function f(w,T){T.gradientMap&&(w.gradientMap.value=T.gradientMap)}function h(w,T){w.metalness.value=T.metalness,T.metalnessMap&&(w.metalnessMap.value=T.metalnessMap,n(T.metalnessMap,w.metalnessMapTransform)),w.roughness.value=T.roughness,T.roughnessMap&&(w.roughnessMap.value=T.roughnessMap,n(T.roughnessMap,w.roughnessMapTransform)),T.envMap&&(w.envMapIntensity.value=T.envMapIntensity)}function p(w,T,C){w.ior.value=T.ior,T.sheen>0&&(w.sheenColor.value.copy(T.sheenColor).multiplyScalar(T.sheen),w.sheenRoughness.value=T.sheenRoughness,T.sheenColorMap&&(w.sheenColorMap.value=T.sheenColorMap,n(T.sheenColorMap,w.sheenColorMapTransform)),T.sheenRoughnessMap&&(w.sheenRoughnessMap.value=T.sheenRoughnessMap,n(T.sheenRoughnessMap,w.sheenRoughnessMapTransform))),T.clearcoat>0&&(w.clearcoat.value=T.clearcoat,w.clearcoatRoughness.value=T.clearcoatRoughness,T.clearcoatMap&&(w.clearcoatMap.value=T.clearcoatMap,n(T.clearcoatMap,w.clearcoatMapTransform)),T.clearcoatRoughnessMap&&(w.clearcoatRoughnessMap.value=T.clearcoatRoughnessMap,n(T.clearcoatRoughnessMap,w.clearcoatRoughnessMapTransform)),T.clearcoatNormalMap&&(w.clearcoatNormalMap.value=T.clearcoatNormalMap,n(T.clearcoatNormalMap,w.clearcoatNormalMapTransform),w.clearcoatNormalScale.value.copy(T.clearcoatNormalScale),T.side===ca&&w.clearcoatNormalScale.value.negate())),T.dispersion>0&&(w.dispersion.value=T.dispersion),T.iridescence>0&&(w.iridescence.value=T.iridescence,w.iridescenceIOR.value=T.iridescenceIOR,w.iridescenceThicknessMinimum.value=T.iridescenceThicknessRange[0],w.iridescenceThicknessMaximum.value=T.iridescenceThicknessRange[1],T.iridescenceMap&&(w.iridescenceMap.value=T.iridescenceMap,n(T.iridescenceMap,w.iridescenceMapTransform)),T.iridescenceThicknessMap&&(w.iridescenceThicknessMap.value=T.iridescenceThicknessMap,n(T.iridescenceThicknessMap,w.iridescenceThicknessMapTransform))),T.transmission>0&&(w.transmission.value=T.transmission,w.transmissionSamplerMap.value=C.texture,w.transmissionSamplerSize.value.set(C.width,C.height),T.transmissionMap&&(w.transmissionMap.value=T.transmissionMap,n(T.transmissionMap,w.transmissionMapTransform)),w.thickness.value=T.thickness,T.thicknessMap&&(w.thicknessMap.value=T.thicknessMap,n(T.thicknessMap,w.thicknessMapTransform)),w.attenuationDistance.value=T.attenuationDistance,w.attenuationColor.value.copy(T.attenuationColor)),T.anisotropy>0&&(w.anisotropyVector.value.set(T.anisotropy*Math.cos(T.anisotropyRotation),T.anisotropy*Math.sin(T.anisotropyRotation)),T.anisotropyMap&&(w.anisotropyMap.value=T.anisotropyMap,n(T.anisotropyMap,w.anisotropyMapTransform))),w.specularIntensity.value=T.specularIntensity,w.specularColor.value.copy(T.specularColor),T.specularColorMap&&(w.specularColorMap.value=T.specularColorMap,n(T.specularColorMap,w.specularColorMapTransform)),T.specularIntensityMap&&(w.specularIntensityMap.value=T.specularIntensityMap,n(T.specularIntensityMap,w.specularIntensityMapTransform))}function A(w,T){T.matcap&&(w.matcap.value=T.matcap)}function g(w,T){const C=e.get(T).light;w.referencePosition.value.setFromMatrixPosition(C.matrixWorld),w.nearDistance.value=C.shadow.camera.near,w.farDistance.value=C.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Unt(t,e,n,r){let i={},a={},s=[];const o=t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS);function l(C,M){const D=M.program;r.uniformBlockBinding(C,D)}function c(C,M){let D=i[C.id];D===void 0&&(A(C),D=u(C),i[C.id]=D,C.addEventListener("dispose",w));const k=M.program;r.updateUBOMapping(C,k);const I=e.render.frame;a[C.id]!==I&&(h(C),a[C.id]=I)}function u(C){const M=f();C.__bindingPointIndex=M;const D=t.createBuffer(),k=C.__size,I=C.usage;return t.bindBuffer(t.UNIFORM_BUFFER,D),t.bufferData(t.UNIFORM_BUFFER,k,I),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,M,D),D}function f(){for(let C=0;C<o;C++)if(s.indexOf(C)===-1)return s.push(C),C;return nn("WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function h(C){const M=i[C.id],D=C.uniforms,k=C.__cache;t.bindBuffer(t.UNIFORM_BUFFER,M);for(let I=0,L=D.length;I<L;I++){const O=Array.isArray(D[I])?D[I]:[D[I]];for(let B=0,G=O.length;B<G;B++){const j=O[B];if(p(j,I,B,k)===!0){const z=j.__offset,Q=Array.isArray(j.value)?j.value:[j.value];let ee=0;for(let Z=0;Z<Q.length;Z++){const X=Q[Z],K=g(X);typeof X=="number"||typeof X=="boolean"?(j.__data[0]=X,t.bufferSubData(t.UNIFORM_BUFFER,z+ee,j.__data)):X.isMatrix3?(j.__data[0]=X.elements[0],j.__data[1]=X.elements[1],j.__data[2]=X.elements[2],j.__data[3]=0,j.__data[4]=X.elements[3],j.__data[5]=X.elements[4],j.__data[6]=X.elements[5],j.__data[7]=0,j.__data[8]=X.elements[6],j.__data[9]=X.elements[7],j.__data[10]=X.elements[8],j.__data[11]=0):ArrayBuffer.isView(X)?j.__data.set(new X.constructor(X.buffer,X.byteOffset,j.__data.length)):(X.toArray(j.__data,ee),ee+=K.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,z,j.__data)}}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function p(C,M,D,k){const I=C.value,L=M+"_"+D;if(k[L]===void 0)return typeof I=="number"||typeof I=="boolean"?k[L]=I:ArrayBuffer.isView(I)?k[L]=I.slice():k[L]=I.clone(),!0;{const O=k[L];if(typeof I=="number"||typeof I=="boolean"){if(O!==I)return k[L]=I,!0}else{if(ArrayBuffer.isView(I))return!0;
4151if(O.equals(I)===!1)return O.copy(I),!0}}return!1}function A(C){const M=C.uniforms;let D=0;const k=16;for(let L=0,O=M.length;L<O;L++){const B=Array.isArray(M[L])?M[L]:[M[L]];for(let G=0,j=B.length;G<j;G++){const z=B[G],Q=Array.isArray(z.value)?z.value:[z.value];for(let ee=0,Z=Q.length;ee<Z;ee++){const X=Q[ee],K=g(X),se=D%k,ae=se%K.boundary,J=se+ae;D+=ae,J!==0&&k-J<K.storage&&(D+=k-J),z.__data=new Float32Array(K.storage/Float32Array.BYTES_PER_ELEMENT),z.__offset=D,D+=K.storage}}}const I=D%k;return I>0&&(D+=k-I),C.__size=D,C.__cache={},this}function g(C){const M={boundary:0,storage:0};return typeof C=="number"||typeof C=="boolean"?(M.boundary=4,M.storage=4):C.isVector2?(M.boundary=8,M.storage=8):C.isVector3||C.isColor?(M.boundary=16,M.storage=12):C.isVector4?(M.boundary=16,M.storage=16):C.isMatrix3?(M.boundary=48,M.storage=48):C.isMatrix4?(M.boundary=64,M.storage=64):C.isTexture?Kt("WebGLRenderer: Texture samplers can not be part of an uniforms group."):ArrayBuffer.isView(C)?(M.boundary=16,M.storage=C.byteLength):Kt("WebGLRenderer: Unsupported uniform value type.",C),M}function w(C){const M=C.target;M.removeEventListener("dispose",w);const D=s.indexOf(M.__bindingPointIndex);s.splice(D,1),t.deleteBuffer(i[M.id]),delete i[M.id],delete a[M.id]}function T(){for(const C in i)t.deleteBuffer(i[C]);s=[],i={},a={}}return{bind:l,update:c,dispose:T}}const Vnt=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,
vendor: 16,315 bytes, line 4151
415114942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]);let h1=null;function jnt(){return h1===null&&(h1=new Pq(Vnt,16,16,uc,is),h1.name="DFG_LUT",h1.minFilter=Ba,h1.magFilter=Ba,h1.wrapS=x0,h1.wrapT=x0,h1.generateMipmaps=!1,h1.needsUpdate=!0),h1}class Hnt{constructor(e={}){const{canvas:n=jme(),context:r=null,depth:i=!0,stencil:a=!1,alpha:s=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:f=!1,reversedDepthBuffer:h=!1,outputBufferType:p=rs}=e;this.isWebGLRenderer=!0;let A;if(r!==null){if(typeof WebGLRenderingContext<"u"&&r instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");A=r.getContextAttributes().alpha}else A=s;const g=p,w=new Set([d6,Uy,By]),T=new Set([rs,_a,dd,N0,HT,GT]),C=new Uint32Array(4),M=new Int32Array(4),D=new Pe;let k=null,I=null;const L=[],O=[];let B=null;this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=cc,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const G=this;let j=!1,z=null;this._outputColorSpace=rc;let Q=0,ee=0,Z=null,X=-1,K=null;const se=new kr,ae=new kr;let J=null;const oe=new Xn(0);let te=0,he=n.width,me=n.height,de=1,Ae=null,Se=null;const Re=new kr(0,0,he,me),Ne=new kr(0,0,he,me);let Fe=!1;const Qe=new h6;let ge=!1,Ie=!1;const De=new Fr,Xe=new Pe,Ye=new kr,Me={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let lt=!1;function Ht(){return Z===null?de:1}let Le=r;function Nt(ye,He){return n.getContext(ye,He)}try{const ye={alpha:!0,depth:i,stencil:a,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:f};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${Iy}`),n.addEventListener("webglcontextlost",Lt,!1),n.addEventListener("webglcontextrestored",Bt,!1),n.addEventListener("webglcontextcreationerror",Gt,!1),Le===null){const He="webgl2";if(Le=Nt(He,ye),Le===null)throw Nt(He)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(ye){throw nn("WebGLRenderer: "+ye.message),ye}let Ct,It,nt,ht,ve,ce,je,dt,ft,at,St,ut,gt,Vt,Zt,Wt,qt,We,yn,vn,Ge,kt,_t;function Dt(){Ct=new jet(Le),Ct.init(),Ge=new Pnt(Le,Ct),It=new ket(Le,Ct,e,Ge),nt=new Rnt(Le,Ct),It.reversedDepthBuffer&&h&&nt.buffers.depth.setReversed(!0),ht=new zet(Le),ve=new Ant,ce=new Dnt(Le,Ct,nt,ve,It,Ge,ht),je=new Vet(G),dt=new qQe(Le),kt=new Det(Le,dt),ft=new Het(Le,dt,ht,kt),at=new qet(Le,ft,dt,kt,ht),We=new $et(Le,It,ce),Zt=new Let(ve),St=new mnt(G,je,Ct,It,kt,Zt),ut=new Bnt(G,ve),gt=new xnt,Vt=new Snt(Ct),qt=new Ret(G,je,nt,at,A,l),Wt=new Nnt(G,at,It),_t=new Unt(Le,ht,It,nt),yn=new Pet(Le,Ct,ht),vn=new Get(Le,Ct,ht),ht.programs=St.programs,G.capabilities=It,G.extensions=Ct,G.properties=ve,G.renderLists=gt,G.shadowMap=Wt,G.state=nt,G.info=ht}Dt(),g!==rs&&(B=new Zet(g,n.width,n.height,i,a));const jt=new Fnt(G,Le);this.xr=jt,this.getContext=function(){return Le},this.getContextAttributes=function(){return Le.getContextAttributes()},this.forceContextLoss=function(){const ye=Ct.get("WEBGL_lose_context");ye&&ye.loseContext()},this.forceContextRestore=function(){const ye=Ct.get("WEBGL_lose_context");ye&&ye.restoreContext()},this.getPixelRatio=function(){return de},this.setPixelRatio=function(ye){ye!==void 0&&(de=ye,this.setSize(he,me,!1))},this.getSize=function(ye){return ye.set(he,me)},this.setSize=function(ye,He,ue=!0){if(jt.isPresenting){Kt("WebGLRenderer: Can't change size while VR device is presenting.");return}he=ye,me=He,n.width=Math.floor(ye*de),n.height=Math.floor(He*de),ue===!0&&(n.style.width=ye+"px",n.style.height=He+"px"),B!==null&&B.setSize(n.width,n.height),this.setViewport(0,0,ye,He)},this.getDrawingBufferSize=function(ye){return ye.set(he*de,me*de).floor()},this.setDrawingBufferSize=function(ye,He,ue){he=ye,me=He,de=ue,n.width=Math.floor(ye*ue),n.height=Math.floor(He*ue),this.setViewport(0,0,ye,He)},this.setEffects=function(ye){if(g===rs){nn("THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.");return}if(ye){for(let He=0;He<ye.length;He++)if(ye[He].isOutputPass===!0){Kt("THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.");break}}B.setEffects(ye||[])},this.getCurrentViewport=function(ye){return ye.copy(se)},this.getViewport=function(ye){return ye.copy(Re)},this.setViewport=function(ye,He,ue,Ze){ye.isVector4?Re.set(ye.x,ye.y,ye.z,ye.w):Re.set(ye,He,ue,Ze),nt.viewport(se.copy(Re).multiplyScalar(de).round())},this.getScissor=function(ye){return ye.copy(Ne)},this.setScissor=function(ye,He,ue,Ze){ye.isVector4?Ne.set(ye.x,ye.y,ye.z,ye.w):Ne.set(ye,He,ue,Ze),nt.scissor(ae.copy(Ne).multiplyScalar(de).round())},this.getScissorTest=function(){return Fe},this.setScissorTest=function(ye){nt.setScissorTest(Fe=ye)},this.setOpaqueSort=function(ye){Ae=ye},this.setTransparentSort=function(ye){Se=ye},this.getClearColor=function(ye){return ye.copy(qt.getClearColor())},this.setClearColor=function(){qt.setClearColor(...arguments)},this.getClearAlpha=function(){return qt.getClearAlpha()},this.setClearAlpha=function(){qt.setClearAlpha(...arguments)},this.clear=function(ye=!0,He=!0,ue=!0){let Ze=0;if(ye){let yt=!1;if(Z!==null){const _n=Z.texture.format;yt=w.has(_n)}if(yt){const _n=Z.texture.type,Sn=T.has(_n),pn=qt.getClearColor(),wn=qt.getClearAlpha(),pe=pn.r,Hn=pn.g,Tn=pn.b;Sn?(C[0]=pe,C[1]=Hn,C[2]=Tn,C[3]=wn,Le.clearBufferuiv(Le.COLOR,0,C)):(M[0]=pe,M[1]=Hn,M[2]=Tn,M[3]=wn,Le.clearBufferiv(Le.COLOR,0,M))}else Ze|=Le.COLOR_BUFFER_BIT}He&&(Ze|=Le.DEPTH_BUFFER_BIT,this.state.buffers.depth.setMask(!0)),ue&&(Ze|=Le.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),Ze!==0&&Le.clear(Ze)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.setNodesHandler=function(ye){ye.setRenderer(this),z=ye},this.dispose=function(){n.removeEventListener("webglcontextlost",Lt,!1),n.removeEventListener("webglcontextrestored",Bt,!1),n.removeEventListener("webglcontextcreationerror",Gt,!1),qt.dispose(),gt.dispose(),Vt.dispose(),ve.dispose(),je.dispose(),at.dispose(),kt.dispose(),_t.dispose(),St.dispose(),jt.dispose(),jt.removeEventListener("sessionstart",W),jt.removeEventListener("sessionend",Te),_e.stop()};function Lt(ye){ye.preventDefault(),P5("WebGLRenderer: Context Lost."),j=!0}function Bt(){P5("WebGLRenderer: Context Restored."),j=!1;const ye=ht.autoReset,He=Wt.enabled,ue=Wt.autoUpdate,Ze=Wt.needsUpdate,yt=Wt.type;Dt(),ht.autoReset=ye,Wt.enabled=He,Wt.autoUpdate=ue,Wt.needsUpdate=Ze,Wt.type=yt}function Gt(ye){nn("WebGLRenderer: A WebGL context could not be created. Reason: ",ye.statusMessage)}function hn(ye){const He=ye.target;He.removeEventListener("dispose",hn),Ve(He)}function Ve(ye){pt(ye),ve.remove(ye)}function pt(ye){const He=ve.get(ye).programs;He!==void 0&&(He.forEach(function(ue){St.releaseProgram(ue)}),ye.isShaderMaterial&&St.releaseShaderCache(ye))}this.renderBufferDirect=function(ye,He,ue,Ze,yt,_n){He===null&&(He=Me);const Sn=yt.isMesh&&yt.matrixWorld.determinant()<0,pn=Xt(ye,He,ue,Ze,yt);nt.setMaterial(Ze,Sn);let wn=ue.index,pe=1;if(Ze.wireframe===!0){if(wn=ft.getWireframeAttribute(ue),wn===void 0)return;pe=2}const Hn=ue.drawRange,Tn=ue.attributes.position;let bn=Hn.start*pe,vr=(Hn.start+Hn.count)*pe;_n!==null&&(bn=Math.max(bn,_n.start*pe),vr=Math.min(vr,(_n.start+_n.count)*pe)),wn!==null?(bn=Math.max(bn,0),vr=Math.min(vr,wn.count)):Tn!=null&&(bn=Math.max(bn,0),vr=Math.min(vr,Tn.count));const Zr=vr-bn;if(Zr<0||Zr===1/0)return;kt.setup(yt,Ze,pn,ue,wn);let kn,ti=yn;if(wn!==null&&(kn=dt.get(wn),ti=vn,ti.setIndex(kn)),yt.isMesh)Ze.wireframe===!0?(nt.setLineWidth(Ze.wireframeLinewidth*Ht()),ti.setMode(Le.LINES)):ti.setMode(Le.TRIANGLES);else if(yt.isLine){let Qr=Ze.linewidth;Qr===void 0&&(Qr=1),nt.setLineWidth(Qr*Ht()),yt.isLineSegments?ti.setMode(Le.LINES):yt.isLineLoop?ti.setMode(Le.LINE_LOOP):ti.setMode(Le.LINE_STRIP)}else yt.isPoints?ti.setMode(Le.POINTS):yt.isSprite&&ti.setMode(Le.TRIANGLES);if(yt.isBatchedMesh)if(Ct.get("WEBGL_multi_draw"))ti.renderMultiDraw(yt._multiDrawStarts,yt._multiDrawCounts,yt._multiDrawCount);else{const Qr=yt._multiDrawStarts,Cn=yt._multiDrawCounts,zi=yt._multiDrawCount,or=wn?dt.get(wn).bytesPerElement:1,ja=ve.get(Ze).currentProgram.getUniforms();for(let Vs=0;Vs<zi;Vs++)ja.setValue(Le,"_gl_DrawID",Vs),ti.render(Qr[Vs]/or,Cn[Vs])}else if(yt.isInstancedMesh)ti.renderInstances(bn,Zr,yt.count);else if(ue.isInstancedBufferGeometry){const Qr=ue._maxInstanceCount!==void 0?ue._maxInstanceCount:1/0,Cn=Math.min(ue.instanceCount,Qr);ti.renderInstances(bn,Zr,Cn)}else ti.render(bn,Zr)};function Tt(ye,He,ue){ye.transparent===!0&&ye.side===Zs&&ye.forceSinglePass===!1?(ye.side=ca,ye.needsUpdate=!0,ze(ye,He,ue),ye.side=Uu,ye.needsUpdate=!0,ze(ye,He,ue),ye.side=Zs):ze(ye,He,ue)}this.compile=function(ye,He,ue=null){ue===null&&(ue=ye),I=Vt.get(ue),I.init(He),O.push(I),ue.traverseVisible(function(yt){yt.isLight&&yt.layers.test(He.layers)&&(I.pushLight(yt),yt.castShadow&&I.pushShadow(yt))}),ye!==ue&&ye.traverseVisible(function(yt){yt.isLight&&yt.layers.test(He.layers)&&(I.pushLight(yt),yt.castShadow&&I.pushShadow(yt))}),I.setupLights();const Ze=new Set;return ye.traverse(function(yt){if(!(yt.isMesh||yt.isPoints||yt.isLine||yt.isSprite))return;const _n=yt.material;if(_n)if(Array.isArray(_n))for(let Sn=0;Sn<_n.length;Sn++){const pn=_n[Sn];Tt(pn,ue,yt),Ze.add(pn)}else Tt(_n,ue,yt),Ze.add(_n)}),I=O.pop(),Ze},this.compileAsync=function(ye,He,ue=null){const Ze=this.compile(ye,He,ue);return new Promise(yt=>{function _n(){if(Ze.forEach(function(Sn){ve.get(Sn).currentProgram.isReady()&&Ze.delete(Sn)}),Ze.size===0){yt(ye);return}setTimeout(_n,10)}Ct.get("KHR_parallel_shader_compile")!==null?_n():setTimeout(_n,10)})};let xt=null;function v(ye){xt&&xt(ye)}function W(){_e.stop()}function Te(){_e.start()}const _e=new h2e;_e.setAnimationLoop(v),typeof self<"u"&&_e.setContext(self),this.setAnimationLoop=function(ye){xt=ye,jt.setAnimationLoop(ye),ye===null?_e.stop():_e.start()},jt.addEventListener("sessionstart",W),jt.addEventListener("sessionend",Te),this.render=function(ye,He){if(He!==void 0&&He.isCamera!==!0){nn("WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(j===!0)return;z!==null&&z.renderStart(ye,He);const ue=jt.enabled===!0&&jt.isPresenting===!0,Ze=B!==null&&(Z===null||ue)&&B.begin(G,Z);if(ye.matrixWorldAutoUpdate===!0&&ye.updateMatrixWorld(),He.parent===null&&He.matrixWorldAutoUpdate===!0&&He.updateMatrixWorld(),jt.enabled===!0&&jt.isPresenting===!0&&(B===null||B.isCompositing()===!1)&&(jt.cameraAutoUpdate===!0&&jt.updateCamera(He),He=jt.getCamera()),ye.isScene===!0&&ye.onBeforeRender(G,ye,He,Z),I=Vt.get(ye,O.length),I.init(He),I.state.textureUnits=ce.getTextureUnits(),O.push(I),De.multiplyMatrices(He.projectionMatrix,He.matrixWorldInverse),Qe.setFromProjectionMatrix(De,Iu,He.reversedDepth),Ie=this.localClippingEnabled,ge=Zt.init(this.clippingPlanes,Ie),k=gt.get(ye,L.length),k.init(),L.push(k),jt.enabled===!0&&jt.isPresenting===!0){const Sn=G.xr.getDepthSensingMesh();Sn!==null&&be(Sn,He,-1/0,G.sortObjects)}be(ye,He,0,G.sortObjects),k.finish(),G.sortObjects===!0&&k.sort(Ae,Se),lt=jt.enabled===!1||jt.isPresenting===!1||jt.hasDepthSensing()===!1,lt&&qt.addToRenderList(k,ye),this.info.render.frame++,ge===!0&&Zt.beginShadows();const yt=I.state.shadowsArray;if(Wt.render(yt,ye,He),ge===!0&&Zt.endShadows(),this.info.autoReset===!0&&this.info.reset(),(Ze&&B.hasRenderPass())===!1){const Sn=k.opaque,pn=k.transmissive;if(I.setupLights(),He.isArrayCamera){const wn=He.cameras;if(pn.length>0)for(let pe=0,Hn=wn.length;pe<Hn;pe++){const Tn=wn[pe];we(Sn,pn,ye,Tn)}lt&&qt.render(ye);for(let pe=0,Hn=wn.length;pe<Hn;pe++){const Tn=wn[pe];xe(k,ye,Tn,Tn.viewport)}}else pn.length>0&&we(Sn,pn,ye,He),lt&&qt.render(ye),xe(k,ye,He)}Z!==null&&ee===0&&(ce.updateMultisampleRenderTarget(Z),ce.updateRenderTargetMipmap(Z)),Ze&&B.end(G),ye.isScene===!0&&ye.onAfterRender(G,ye,He),kt.resetDefaultState(),X=-1,K=null,O.pop(),O.length>0?(I=O[O.length-1],ce.setTextureUnits(I.state.textureUnits),ge===!0&&Zt.setGlobalState(G.clippingPlanes,I.state.camera)):I=null,L.pop(),L.length>0?k=L[L.length-1]:k=null,z!==null&&z.renderEnd()};function be(ye,He,ue,Ze){if(ye.visible===!1)return;if(ye.layers.test(He.layers)){if(ye.isGroup)ue=ye.renderOrder;else if(ye.isLOD)ye.autoUpdate===!0&&ye.update(He);else if(ye.isLightProbeGrid)I.pushLightProbeGrid(ye);else if(ye.isLight)I.pushLight(ye),ye.castShadow&&I.pushShadow(ye);else if(ye.isSprite){if(!ye.frustumCulled||Qe.intersectsSprite(ye)){Ze&&Ye.setFromMatrixPosition(ye.matrixWorld).applyMatrix4(De);const Sn=at.update(ye),pn=ye.material;pn.visible&&k.push(ye,Sn,pn,ue,Ye.z,null)}}else if((ye.isMesh||ye.isLine||ye.isPoints)&&(!ye.frustumCulled||Qe.intersectsObject(ye))){const Sn=at.update(ye),pn=ye.material;if(Ze&&(ye.boundingSphere!==void 0?(ye.boundingSphere===null&&ye.computeBoundingSphere(),Ye.copy(ye.boundingSphere.center)):(Sn.boundingSphere===null&&Sn.computeBoundingSphere(),Ye.copy(Sn.boundingSphere.center)),Ye.applyMatrix4(ye.matrixWorld).applyMatrix4(De)),Array.isArray(pn)){const wn=Sn.groups;for(let pe=0,Hn=wn.length;pe<Hn;pe++){const Tn=wn[pe],bn=pn[Tn.materialIndex];bn&&bn.visible&&k.push(ye,Sn,bn,ue,Ye.z,Tn)}}else pn.visible&&k.push(ye,Sn,pn,ue,Ye.z,null)}}const _n=ye.children;for(let Sn=0,pn=_n.length;Sn<pn;Sn++)be(_n[Sn],He,ue,Ze)}function xe(ye,He,ue,Ze){const{opaque:yt,transmissive:_n,transparent:Sn}=ye;I.setupLightsView(ue),ge===!0&&Zt.setGlobalState(G.clippingPlanes,ue),Ze&&nt.viewport(se.copy(Ze)),yt.length>0&&tt(yt,He,ue),_n.length>0&&tt(_n,He,ue),Sn.length>0&&tt(Sn,He,ue),nt.buffers.depth.setTest(!0),nt.buffers.depth.setMask(!0),nt.buffers.color.setMask(!0),nt.setPolygonOffset(!1)}function we(ye,He,ue,Ze){if((ue.isScene===!0?ue.overrideMaterial:null)!==null)return;if(I.state.transmissionRenderTarget[Ze.id]===void 0){const bn=Ct.has("EXT_color_buffer_half_float")||Ct.has("EXT_color_buffer_float");I.state.transmissionRenderTarget[Ze.id]=new Oh(1,1,{generateMipmaps:!0,type:bn?is:rs,minFilter:v0,samples:Math.max(4,It.samples),stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Ar.w
4151orkingColorSpace})}const _n=I.state.transmissionRenderTarget[Ze.id],Sn=Ze.viewport||se;_n.setSize(Sn.z*G.transmissionResolutionScale,Sn.w*G.transmissionResolutionScale);const pn=G.getRenderTarget(),wn=G.getActiveCubeFace(),pe=G.getActiveMipmapLevel();G.setRenderTarget(_n),G.getClearColor(oe),te=G.getClearAlpha(),te<1&&G.setClearColor(16777215,.5),G.clear(),lt&&qt.render(ue);const Hn=G.toneMapping;G.toneMapping=cc;const Tn=Ze.viewport;if(Ze.viewport!==void 0&&(Ze.viewport=void 0),I.setupLightsView(Ze),ge===!0&&Zt.setGlobalState(G.clippingPlanes,Ze),tt(ye,ue,Ze),ce.updateMultisampleRenderTarget(_n),ce.updateRenderTargetMipmap(_n),Ct.has("WEBGL_multisampled_render_to_texture")===!1){let bn=!1;for(let vr=0,Zr=He.length;vr<Zr;vr++){const kn=He[vr],{object:ti,geometry:Qr,material:Cn,group:zi}=kn;if(Cn.side===Zs&&ti.layers.test(Ze.layers)){const or=Cn.side;Cn.side=ca,Cn.needsUpdate=!0,ot(ti,ue,Ze,Qr,Cn,zi),Cn.side=or,Cn.needsUpdate=!0,bn=!0}}bn===!0&&(ce.updateMultisampleRenderTarget(_n),ce.updateRenderTargetMipmap(_n))}G.setRenderTarget(pn,wn,pe),G.setClearColor(oe,te),Tn!==void 0&&(Ze.viewport=Tn),G.toneMapping=Hn}function tt(ye,He,ue){const Ze=He.isScene===!0?He.overrideMaterial:null;for(let yt=0,_n=ye.length;yt<_n;yt++){const Sn=ye[yt],{object:pn,geometry:wn,group:pe}=Sn;let Hn=Sn.material;Hn.allowOverride===!0&&Ze!==null&&(Hn=Ze),pn.layers.test(ue.layers)&&ot(pn,He,ue,wn,Hn,pe)}}function ot(ye,He,ue,Ze,yt,_n){ye.onBeforeRender(G,He,ue,Ze,yt,_n),ye.modelViewMatrix.multiplyMatrices(ue.matrixWorldInverse,ye.matrixWorld),ye.normalMatrix.getNormalMatrix(ye.modelViewMatrix),yt.onBeforeRender(G,He,ue,Ze,ye,_n),yt.transparent===!0&&yt.side===Zs&&yt.forceSinglePass===!1?(yt.side=ca,yt.needsUpdate=!0,G.renderBufferDirect(ue,He,Ze,yt,ye,_n),yt.side=Uu,yt.needsUpdate=!0,G.renderBufferDirect(ue,He,Ze,yt,ye,_n),yt.side=Zs):G.renderBufferDirect(ue,He,Ze,yt,ye,_n),ye.onAfterRender(G,He,ue,Ze,yt,_n)}function ze(ye,He,ue){He.isScene!==!0&&(He=Me);const Ze=ve.get(ye),yt=I.state.lights,_n=I.state.shadowsArray,Sn=yt.state.version,pn=St.getParameters(ye,yt.state,_n,He,ue,I.state.lightProbeGridArray),wn=St.getProgramCacheKey(pn);let pe=Ze.programs;Ze.environment=ye.isMeshStandardMaterial||ye.isMeshLambertMaterial||ye.isMeshPhongMaterial?He.environment:null,Ze.fog=He.fog;const Hn=ye.isMeshStandardMaterial||ye.isMeshLambertMaterial&&!ye.envMap||ye.isMeshPhongMaterial&&!ye.envMap;Ze.envMap=je.get(ye.envMap||Ze.environment,Hn),Ze.envMapRotation=Ze.environment!==null&&ye.envMap===null?He.environmentRotation:ye.envMapRotation,pe===void 0&&(ye.addEventListener("dispose",hn),pe=new Map,Ze.programs=pe);let Tn=pe.get(wn);if(Tn!==void 0){if(Ze.currentProgram===Tn&&Ze.lightsStateVersion===Sn)return rt(ye,pn),Tn}else pn.uniforms=St.getUniforms(ye),z!==null&&ye.isNodeMaterial&&z.build(ye,ue,pn),ye.onBeforeCompile(pn,G),Tn=St.acquireProgram(pn,wn),pe.set(wn,Tn),Ze.uniforms=pn.uniforms;const bn=Ze.uniforms;return(!ye.isShaderMaterial&&!ye.isRawShaderMaterial||ye.clipping===!0)&&(bn.clippingPlanes=Zt.uniform),rt(ye,pn),Ze.needsLights=en(ye),Ze.lightsStateVersion=Sn,Ze.needsLights&&(bn.ambientLightColor.value=yt.state.ambient,bn.lightProbe.value=yt.state.probe,bn.directionalLights.value=yt.state.directional,bn.directionalLightShadows.value=yt.state.directionalShadow,bn.spotLights.value=yt.state.spot,bn.spotLightShadows.value=yt.state.spotShadow,bn.rectAreaLights.value=yt.state.rectArea,bn.ltc_1.value=yt.state.rectAreaLTC1,bn.ltc_2.value=yt.state.rectAreaLTC2,bn.pointLights.value=yt.state.point,bn.pointLightShadows.value=yt.state.pointShadow,bn.hemisphereLights.value=yt.state.hemi,bn.directionalShadowMatrix.value=yt.state.directionalShadowMatrix,bn.spotLightMatrix.value=yt.state.spotLightMatrix,bn.spotLightMap.value=yt.state.spotLightMap,bn.pointShadowMatrix.value=yt.state.pointShadowMatrix),Ze.lightProbeGrid=I.state.lightProbeGridArray.length>0,Ze.currentProgram=Tn,Ze.uniformsList=null,Tn}function Ke(ye){if(ye.uniformsList===null){const He=ye.currentProgram.getUniforms();ye.uniformsList=H9.seqWithValue(He.seq,ye.uniforms)}return ye.uniformsList}function rt(ye,He){const ue=ve.get(ye);
vendor: 5,074 bytes, line 4151
4151ue.outputColorSpace=He.outputColorSpace,ue.batching=He.batching,ue.batchingColor=He.batchingColor,ue.instancing=He.instancing,ue.instancingColor=He.instancingColor,ue.instancingMorph=He.instancingMorph,ue.skinning=He.skinning,ue.morphTargets=He.morphTargets,ue.morphNormals=He.morphNormals,ue.morphColors=He.morphColors,ue.morphTargetsCount=He.morphTargetsCount,ue.numClippingPlanes=He.numClippingPlanes,ue.numIntersection=He.numClipIntersection,ue.vertexAlphas=He.vertexAlphas,ue.vertexTangents=He.vertexTangents,ue.toneMapping=He.toneMapping}function Rt(ye,He){if(ye.length===0)return null;if(ye.length===1)return ye[0].texture!==null?ye[0]:null;D.setFromMatrixPosition(He.matrixWorld);for(let ue=0,Ze=ye.length;ue<Ze;ue++){const yt=ye[ue];if(yt.texture!==null&&yt.boundingBox.containsPoint(D))return yt}return null}function Xt(ye,He,ue,Ze,yt){He.isScene!==!0&&(He=Me),ce.resetTextureUnits();const _n=He.fog,Sn=Ze.isMeshStandardMaterial||Ze.isMeshLambertMaterial||Ze.isMeshPhongMaterial?He.environment:null,pn=Z===null?G.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:Ar.workingColorSpace,wn=Ze.isMeshStandardMaterial||Ze.isMeshLambertMaterial&&!Ze.envMap||Ze.isMeshPhongMaterial&&!Ze.envMap,pe=je.get(Ze.envMap||Sn,wn),Hn=Ze.vertexColors===!0&&!!ue.attributes.color&&ue.attributes.color.itemSize===4,Tn=!!ue.attributes.tangent&&(!!Ze.normalMap||Ze.anisotropy>0),bn=!!ue.morphAttributes.position,vr=!!ue.morphAttributes.normal,Zr=!!ue.morphAttributes.color;let kn=cc;Ze.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(kn=G.toneMapping);const ti=ue.morphAttributes.position||ue.morphAttributes.normal||ue.morphAttributes.color,Qr=ti!==void 0?ti.length:0,Cn=ve.get(Ze),zi=I.state.lights;if(ge===!0&&(Ie===!0||ye!==K)){const Si=ye===K&&Ze.id===X;Zt.setState(Ze,ye,Si)}let or=!1;Ze.version===Cn.__version?(Cn.needsLights&&Cn.lightsStateVersion!==zi.state.version||Cn.outputColorSpace!==pn||yt.isBatchedMesh&&Cn.batching===!1||!yt.isBatchedMesh&&Cn.batching===!0||yt.isBatchedMesh&&Cn.batchingColor===!0&&yt.colorTexture===null||yt.isBatchedMesh&&Cn.batchingColor===!1&&yt.colorTexture!==null||yt.isInstancedMesh&&Cn.instancing===!1||!yt.isInstancedMesh&&Cn.instancing===!0||yt.isSkinnedMesh&&Cn.skinning===!1||!yt.isSkinnedMesh&&Cn.skinning===!0||yt.isInstancedMesh&&Cn.instancingColor===!0&&yt.instanceColor===null||yt.isInstancedMesh&&Cn.instancingColor===!1&&yt.instanceColor!==null||yt.isInstancedMesh&&Cn.instancingMorph===!0&&yt.morphTexture===null||yt.isInstancedMesh&&Cn.instancingMorph===!1&&yt.morphTexture!==null||Cn.envMap!==pe||Ze.fog===!0&&Cn.fog!==_n||Cn.numClippingPlanes!==void 0&&(Cn.numClippingPlanes!==Zt.numPlanes||Cn.numIntersection!==Zt.numIntersection)||Cn.vertexAlphas!==Hn||Cn.vertexTangents!==Tn||Cn.morphTargets!==bn||Cn.morphNormals!==vr||Cn.morphColors!==Zr||Cn.toneMapping!==kn||Cn.morphTargetsCount!==Qr||!!Cn.lightProbeGrid!=I.state.lightProbeGridArray.length>0)&&(or=!0):(or=!0,Cn.__version=Ze.version);let ja=Cn.currentProgram;or===!0&&(ja=ze(Ze,He,yt),z&&Ze.isNodeMaterial&&z.onUpdateProgram(Ze,ja,Cn));let Vs=!1,Nl=!1,to=!1;const Ri=ja.getUniforms(),na=Cn.uniforms;if(nt.useProgram(ja.program)&&(Vs=!0,Nl=!0,to=!0),Ze.id!==X&&(X=Ze.id,Nl=!0),Cn.needsLights){const Si=Rt(I.state.lightProbeGridArray,yt);Cn.lightProbeGrid!==Si&&(Cn.lightProbeGrid=Si,Nl=!0)}if(Vs||K!==ye){nt.buffers.depth.getReversed()&&ye.reversedDepth!==!0&&(ye._reversedDepth=!0,ye.updateProjectionMatrix()),Ri.setValue(Le,"projectionMatrix",ye.projectionMatrix),Ri.setValue(Le,"viewMatrix",ye.matrixWorldInverse);const tl=Ri.map.cameraPosition;tl!==void 0&&tl.setValue(Le,Xe.setFromMatrixPosition(ye.matrixWorld)),It.logarithmicDepthBuffer&&Ri.setValue(Le,"logDepthBufFC",2/(Math.log(ye.far+1)/Math.LN2)),(Ze.isMeshPhongMaterial||Ze.isMeshToonMaterial||Ze.isMeshLambertMaterial||Ze.isMeshBasicMaterial||Ze.isMeshStandardMaterial||Ze.isShaderMaterial)&&Ri.setValue(Le,"isOrthographic",ye.isOrthographicCamera===!0),K!==ye&&(K=ye,Nl=!0,to=!0)}if(Cn.needsLights&&(zi.state.directionalShadowMap.length>0&&Ri.setValue(Le,"directionalShadowMap",zi.state.directionalShadowMap,ce),zi.state.spotShadowMap.length>0&&Ri.setValue(Le,"spotShadowMap",zi.state.spotShadowMap,ce),zi.state.pointShadowMap.length>0&&Ri.setValue(Le,"pointShadowMap",zi.state.pointShadowMap,ce)),yt.isSkinnedMesh){Ri.setOptional(Le,yt,"bindMatrix"),Ri.setOptional(Le,yt,"bindMatrixInverse");const Si=yt.skeleton;Si&&(Si.boneTexture===null&&Si.computeBoneTexture(),Ri.setValue(Le,"boneTexture",Si.boneTexture,ce))}yt.isBatchedMesh&&(Ri.setOptional(Le,yt,"batchingTexture"),Ri.setValue(Le,"batchingTexture",yt._matricesTexture,ce),Ri.setOptional(Le,yt,"batchingIdTexture"),Ri.setValue(Le,"batchingIdTexture",yt._indirectTexture,ce),Ri.setOptional(Le,yt,"batchingColorTexture"),yt._colorsTexture!==null&&Ri.setValue(Le,"batchingColorTexture",yt._colorsTexture,ce));const ou=ue.morphAttributes;if((ou.position!==void 0||ou.normal!==void 0||ou.color!==void 0)&&We.update(yt,ue,ja),(Nl||Cn.receiveShadow!==yt.receiveShadow)&&(Cn.receiveShadow=yt.receiveShadow,Ri.setValue(Le,"receiveShadow",yt.re
vendor: 11,401 bytes, line 4151
4151ceiveShadow)),(Ze.isMeshStandardMaterial||Ze.isMeshLambertMaterial||Ze.isMeshPhongMaterial)&&Ze.envMap===null&&He.environment!==null&&(na.envMapIntensity.value=He.environmentIntensity),na.dfgLUT!==void 0&&(na.dfgLUT.value=jnt()),Nl){if(Ri.setValue(Le,"toneMappingExposure",G.toneMappingExposure),Cn.needsLights&&rn(na,to),_n&&Ze.fog===!0&&ut.refreshFogUniforms(na,_n),ut.refreshMaterialUniforms(na,Ze,de,me,I.state.transmissionRenderTarget[ye.id]),Cn.needsLights&&Cn.lightProbeGrid){const Si=Cn.lightProbeGrid;na.probesSH.value=Si.texture,na.probesMin.value.copy(Si.boundingBox.min),na.probesMax.value.copy(Si.boundingBox.max),na.probesResolution.value.copy(Si.resolution)}H9.upload(Le,Ke(Cn),na,ce)}if(Ze.isShaderMaterial&&Ze.uniformsNeedUpdate===!0&&(H9.upload(Le,Ke(Cn),na,ce),Ze.uniformsNeedUpdate=!1),Ze.isSpriteMaterial&&Ri.setValue(Le,"center",yt.center),Ri.setValue(Le,"modelViewMatrix",yt.modelViewMatrix),Ri.setValue(Le,"normalMatrix",yt.normalMatrix),Ri.setValue(Le,"modelMatrix",yt.matrixWorld),Ze.uniformsGroups!==void 0){const Si=Ze.uniformsGroups;for(let tl=0,si=Si.length;tl<si;tl++){const vc=Si[tl];_t.update(vc,ja),_t.bind(vc,ja)}}return ja}function rn(ye,He){ye.ambientLightColor.needsUpdate=He,ye.lightProbe.needsUpdate=He,ye.directionalLights.needsUpdate=He,ye.directionalLightShadows.needsUpdate=He,ye.pointLights.needsUpdate=He,ye.pointLightShadows.needsUpdate=He,ye.spotLights.needsUpdate=He,ye.spotLightShadows.needsUpdate=He,ye.rectAreaLights.needsUpdate=He,ye.hemisphereLights.needsUpdate=He}function en(ye){return ye.isMeshLambertMaterial||ye.isMeshToonMaterial||ye.isMeshPhongMaterial||ye.isMeshStandardMaterial||ye.isShadowMaterial||ye.isShaderMaterial&&ye.lights===!0}this.getActiveCubeFace=function(){return Q},this.getActiveMipmapLevel=function(){return ee},this.getRenderTarget=function(){return Z},this.setRenderTargetTextures=function(ye,He,ue){const Ze=ve.get(ye);Ze.__autoAllocateDepthBuffer=ye.resolveDepthBuffer===!1,Ze.__autoAllocateDepthBuffer===!1&&(Ze.__useRenderToTexture=!1),ve.get(ye.texture).__webglTexture=He,ve.get(ye.depthTexture).__webglTexture=Ze.__autoAllocateDepthBuffer?void 0:ue,Ze.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(ye,He){const ue=ve.get(ye);ue.__webglFramebuffer=He,ue.__useDefaultFramebuffer=He===void 0};const Qt=Le.createFramebuffer();this.setRenderTarget=function(ye,He=0,ue=0){Z=ye,Q=He,ee=ue;let Ze=null,yt=!1,_n=!1;if(ye){const pn=ve.get(ye);if(pn.__useDefaultFramebuffer!==void 0){nt.bindFramebuffer(Le.FRAMEBUFFER,pn.__webglFramebuffer),se.copy(ye.viewport),ae.copy(ye.scissor),J=ye.scissorTest,nt.viewport(se),nt.scissor(ae),nt.setScissorTest(J),X=-1;return}else if(pn.__webglFramebuffer===void 0)ce.setupRenderTarget(ye);else if(pn.__hasExternalTextures)ce.rebindTextures(ye,ve.get(ye.texture).__webglTexture,ve.get(ye.depthTexture).__webglTexture);else if(ye.depthBuffer){const Hn=ye.depthTexture;if(pn.__boundDepthTexture!==Hn){if(Hn!==null&&ve.has(Hn)&&(ye.width!==Hn.image.width||ye.height!==Hn.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");ce.setupDepthRenderbuffer(ye)}}const wn=ye.texture;(wn.isData3DTexture||wn.isDataArrayTexture||wn.isCompressedArrayTexture)&&(_n=!0);const pe=ve.get(ye).__webglFramebuffer;ye.isWebGLCubeRenderTarget?(Array.isArray(pe[He])?Ze=pe[He][ue]:Ze=pe[He],yt=!0):ye.samples>0&&ce.useMultisampledRTT(ye)===!1?Ze=ve.get(ye).__webglMultisampledFramebuffer:Array.isArray(pe)?Ze=pe[ue]:Ze=pe,se.copy(ye.viewport),ae.copy(ye.scissor),J=ye.scissorTest}else se.copy(Re).multiplyScalar(de).floor(),ae.copy(Ne).multiplyScalar(de).floor(),J=Fe;if(ue!==0&&(Ze=Qt),nt.bindFramebuffer(Le.FRAMEBUFFER,Ze)&&nt.drawBuffers(ye,Ze),nt.viewport(se),nt.scissor(ae),nt.setScissorTest(J),yt){const pn=ve.get(ye.texture);Le.framebufferTexture2D(Le.FRAMEBUFFER,Le.COLOR_ATTACHMENT0,Le.TEXTURE_CUBE_MAP_POSITIVE_X+He,pn.__webglTexture,ue)}else if(_n){const pn=He;for(let wn=0;wn<ye.textures.length;wn++){const pe=ve.get(ye.textures[wn]);Le.framebufferTextureLayer(Le.FRAMEBUFFER,Le.COLOR_ATTACHMENT0+wn,pe.__webglTexture,ue,pn)}}else if(ye!==null&&ue!==0){const pn=ve.get(ye.texture);Le.framebufferTexture2D(Le.FRAMEBUFFER,Le.COLOR_ATTACHMENT0,Le.TEXTURE_2D,pn.__webglTexture,ue)}X=-1},this.readRenderTargetPixels=function(ye,He,ue,Ze,yt,_n,Sn,pn=0){if(!(ye&&ye.isWebGLRenderTarget)){nn("WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let wn=ve.get(ye).__webglFramebuffer;if(ye.isWebGLCubeRenderTarget&&Sn!==void 0&&(wn=wn[Sn]),wn){nt.bindFramebuffer(Le.FRAMEBUFFER,wn);try{const pe=ye.textures[pn],Hn=pe.format,Tn=pe.type;if(ye.textures.length>1&&Le.readBuffer(Le.COLOR_ATTACHMENT0+pn),!It.textureFormatReadable(Hn)){nn("WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!It.textureTypeReadable(Tn)){nn("WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}He>=0&&He<=ye.width-Ze&&ue>=0&&ue<=ye.height-yt&&Le.readPixels(He,ue,Ze,yt,Ge.convert(Hn),Ge.convert(Tn),_n)}finally{const pe=Z!==null?ve.get(Z).__webglFramebuffer:null;nt.bindFramebuffer(Le.FRAMEBUFFER,pe)}}},this.readRenderTargetPixelsAsync=async function(ye,He,ue,Ze,yt,_n,Sn,pn=0){if(!(ye&&ye.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let wn=ve.get(ye).__webglFramebuffer;if(ye.isWebGLCubeRenderTarget&&Sn!==void 0&&(wn=wn[Sn]),wn)if(He>=0&&He<=ye.width-Ze&&ue>=0&&ue<=ye.height-yt){nt.bindFramebuffer(Le.FRAMEBUFFER,wn);const pe=ye.textures[pn],Hn=pe.format,Tn=pe.type;if(ye.textures.length>1&&Le.readBuffer(Le.COLOR_ATTACHMENT0+pn),!It.textureFormatReadable(Hn))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!It.textureTypeReadable(Tn))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const bn=Le.createBuffer();Le.bindBuffer(Le.PIXEL_PACK_BUFFER,bn),Le.bufferData(Le.PIXEL_PACK_BUFFER,_n.byteLength,Le.STREAM_READ),Le.readPixels(He,ue,Ze,yt,Ge.convert(Hn),Ge.convert(Tn),0);const vr=Z!==null?ve.get(Z).__webglFramebuffer:null;nt.bindFramebuffer(Le.FRAMEBUFFER,vr);const Zr=Le.fenceSync(Le.SYNC_GPU_COMMANDS_COMPLETE,0);return Le.flush(),await QYe(Le,Zr,4),Le.bindBuffer(Le.PIXEL_PACK_BUFFER,bn),Le.getBufferSubData(Le.PIXEL_PACK_BUFFER,0,_n),Le.deleteBuffer(bn),Le.deleteSync(Zr),_n}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(ye,He=null,ue=0){const Ze=Math.pow(2,-ue),yt=Math.floor(ye.image.width*Ze),_n=Math.floor(ye.image.height*Ze),Sn=He!==null?He.x:0,pn=He!==null?He.y:0;ce.setTexture2D(ye,0),Le.copyTexSubImage2D(Le.TEXTURE_2D,ue,0,0,Sn,pn,yt,_n),nt.unbindTexture()};const sn=Le.createFramebuffer(),ur=Le.createFramebuffer();this.copyTextureToTexture=function(ye,He,ue=null,Ze=null,yt=0,_n=0){let Sn,pn,wn,pe,Hn,Tn,bn,vr,Zr;const kn=ye.isCompressedTexture?ye.mipmaps[_n]:ye.image;if(ue!==null)Sn=ue.max.x-ue.min.x,pn=ue.max.y-ue.min.y,wn=ue.isBox3?ue.max.z-ue.min.z:1,pe=ue.min.x,Hn=ue.min.y,Tn=ue.isBox3?ue.min.z:0;else{const na=Math.pow(2,-yt);Sn=Math.floor(kn.width*na),pn=Math.floor(kn.height*na),ye.isDataArrayTexture?wn=kn.depth:ye.isData3DTexture?wn=Math.floor(kn.depth*na):wn=1,pe=0,Hn=0,Tn=0}Ze!==null?(bn=Ze.x,vr=Ze.y,Zr=Ze.z):(bn=0,vr=0,Zr=0);const ti=Ge.convert(He.format),Qr=Ge.convert(He.type);let Cn;He.isData3DTexture?(ce.setTexture3D(He,0),Cn=Le.TEXTURE_3D):He.isDataArrayTexture||He.isCompressedArrayTexture?(ce.setTexture2DArray(He,0),Cn=Le.TEXTURE_2D_ARRAY):(ce.setTexture2D(He,0),Cn=Le.TEXTURE_2D),nt.activeTexture(Le.TEXTURE0),nt.pixelStorei(Le.UNPACK_FLIP_Y_WEBGL,He.flipY),nt.pixelStorei(Le.UNPACK_PREMULTIPLY_ALPHA_WEBGL,He.premultiplyAlpha),nt.pixelStorei(Le.UNPACK_ALIGNMENT,He.unpackAlignment);const zi=nt.getParameter(Le.UNPACK_ROW_LENGTH),or=nt.getParameter(Le.UNPACK_IMAGE_HEIGHT),ja=nt.getParameter(Le.UNPACK_SKIP_PIXELS),Vs=nt.getParameter(Le.UNPACK_SKIP_ROWS),Nl=nt.getParameter(Le.UNPACK_SKIP_IMAGES);nt.pixelStorei(Le.UNPACK_ROW_LENGTH,kn.width),nt.pixelStorei(Le.UNPACK_IMAGE_HEIGHT,kn.height),nt.pixelStorei(Le.UNPACK_SKIP_PIXELS,pe),nt.pixelStorei(Le.UNPACK_SKIP_ROWS,Hn),nt.pixelStorei(Le.UNPACK_SKIP_IMAGES,Tn);const to=ye.isDataArrayTexture||ye.isData3DTexture,Ri=He.isDataArrayTexture||He.isData3DTexture;if(ye.isDepthTexture){const na=ve.get(ye),ou=ve.get(He),Si=ve.get(na.__renderTarget),tl=ve.get(ou.__renderTarget);nt.bindFramebuffer(Le.READ_FRAMEBUFFER,Si.__webglFramebuffer),nt.bindFramebuffer(Le.DRAW_FRAMEBUFFER,tl.__webglFramebuffer);for(let si=0;si<wn;si++)to&&(Le.framebufferTextureLayer(Le.READ_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,ve.get(ye).__webglTexture,yt,Tn+si),Le.framebufferTextureLayer(Le.DRAW_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,ve.get(He).__webglTexture,_n,Zr+si)),Le.blitFramebuffer(pe,Hn,Sn,pn,bn,vr,Sn,pn,Le.DEPTH_BUFFER_BIT,Le.NEAREST);nt.bindFramebuffer(Le.READ_FRAMEBUFFER,null),nt.bindFramebuffer(Le.DRAW_FRAMEBUFFER,null)}else if(yt!==0||ye.isRenderTargetTexture||ve.has(ye)){const na=ve.get(ye),ou=ve.get(He);nt.bindFramebuffer(Le.READ_FRAMEBUFFER,sn),nt.bindFramebuffer(Le.DRAW_FRAMEBUFFER,ur);for(let Si=0;Si<wn;Si++)to?Le.framebufferTextureLayer(Le.READ_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,na.__webglTexture,yt,Tn+Si):Le.framebufferTexture2D(Le.READ_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,Le.TEXTURE_2D,na.__webglTexture,yt),Ri?Le.framebufferTextureLayer(Le.DRAW_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,ou.__webglTexture,_n,Zr+Si):Le.framebufferTexture2D(Le.DRAW_FRAMEBUFFER,Le.COLOR_ATTACHMENT0,Le.TEXTURE_2D,ou.__webglTexture,_n),yt!==0?Le.blitFramebuffer(pe,Hn,Sn,pn,bn,vr,Sn,pn,Le.COLOR_BUFFER_BIT,Le.NEAREST):Ri?Le.copyTexSubImage3D(Cn,_n,bn,vr,Zr+Si,pe,Hn,Sn,pn):Le.copyTexSubImage2D(Cn,_n,bn,vr,pe,Hn,Sn,pn);nt.bindFramebuffer(Le.READ_FRAMEBUFFER,null),nt.bindFramebuffer(Le.DRAW_FRAMEBUFFER,null)}else Ri?ye.isDataTexture||ye.isData3DTexture?Le.texSubImage3D(Cn,_n,bn,vr,Zr,Sn,pn,wn,ti,Qr,kn.data):He.isCompressedArrayTexture?Le.compressedTexSubImage3D(Cn,_n,bn,vr,Zr,Sn,pn,wn,ti,kn.data):Le.texSubImage3D(Cn,_n,bn,vr,Zr,Sn,pn,wn,ti,Qr,kn):ye.isDataTexture?Le.texSubImage2D(Le.TEXTURE_2D,_n,bn,vr,Sn,pn,ti,Qr,kn.data):ye.isCompressedTexture?Le.compressedTexSubImage2D(Le.TEXTURE_2D,_n,bn,vr,kn.width,kn.height,ti,kn.data):Le.texSubImage2D(Le.TEXTURE_2D,_n,bn,vr,Sn,pn,ti,Qr,kn);nt.pixelStorei(Le.UNPACK_ROW_LENGTH,zi),nt.pixelStorei(Le.UNPACK_IMAGE_HEIGHT,or),nt.pixelStorei(Le.UNPACK_SKIP_PIXELS,ja),nt.pixelStorei(Le.UNPACK_SKIP_ROWS,Vs),nt.pixelStorei(Le.UNPACK_SKIP_IMAGES,Nl),_n===0&&He.generateMipmaps&&Le.generateMipmap(Cn),nt.unbindTexture()},this.initRenderTarget=function(ye){ve.get(ye).__webglFramebuffer===void 0&&ce.setupRenderTarget(ye)},this.initTexture=function(ye){ye.isCubeTexture?ce.setTextureCube(ye,0):ye.isData3DTexture?ce.setTexture3D(ye,0):ye.isDataArrayTexture||ye.isCompressedArrayTexture?ce.setTexture2DArray(ye,0):ce.setTexture2D(ye,0),nt.unbindTexture()},this.resetState=function(){Q=0,ee=0,Z=null,nt.reset(),kt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Iu}get outputColorSpace(){return this._outputColorSpace}
4151set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=Ar._getDrawingBufferColorSpace(e),n.unpackColorSpace=Ar._getUnpackColorSpace()}}class Gnt extends ys{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new tn(.5,.5),this.addEventListener("removed",function(){this.traverse(function(n){n.element&&n.element instanceof n.element.ownerDocument.defaultView.Element&&n.element.parentNode!==null&&n.element.remove()})})}copy(e,n){return super.copy(e,n),this.element=e.element.cloneNode(!0),this.center=e.center,this}}const r8=new Pe,Wre=new Fr,Zre=new Fr,Yre=new Pe,Xre=new Pe;class znt{constructor(e={}){const n=this;let r,i,a,s;const o={objects:new WeakMap},l=e.element!==void 0?e.element:document.createElement("div");l.style.overflow="hidden",this.domElement=l,this.sortObjects=!0,this.getSize=function(){return{width:r,height:i}},this.render=function(A,g){A.matrixWorldAutoUpdate===!0&&A.updateMatrixWorld(),g.parent===null&&g.matrixWorldAutoUpdate===!0&&g.updateMatrixWorld(),Wre.copy(g.matrixWorldInverse),Zre.multiplyMatrices(g.projectionMatrix,Wre),u(A,A,g),this.sortObjects&&p(A)},this.setSize=function(A,g){r=A,i=g,a=r/2,s=i/2,l.style.width=A+"px",l.style.height=g+"px"};function c(A){A.isCSS2DObject&&(A.element.style.display="none");for(let g=0,w=A.children.length;g<w;g++)c(A.children[g])}function u(A,g,w){if(A.visible===!1){c(A);return}if(A.isCSS2DObject){r8.setFromMatrixPosition(A.matrixWorld),r8.applyMatrix4(Zre);const T=r8.z>=-1&&r8.z<=1&&A.layers.test(w.layers)===!0,C=A.element;C.style.display=T===!0?"":"none",T===!0&&(A.onBeforeRender(n,g,w),C.style.transform="translate("+-100*A.center.x+"%,"+-100*A.center.y+"%)translate("+(r8.x*a+a)+"px,"+(-r8.y*s+s)+"px)",C.parentNode!==l&&l.appendChild(C),A.onAfterRender(n,g,w));const M={distanceToCameraSquared:f(w,A)};o.objects.set(A,M)}for(let T=0,C=A.children.length;T<C;T++)u(A.children[T],g,w)}function f(A,g){return Yre.setFromMatrixPosition(A.matrixWorld),Xre.setFromMatrixPosition(g.matrixWorld),Yre.distanceToSquared(Xre)}function h(A){const g=[];return A.traverseVisible(function(w){w.isCSS2DObject&&g.push(w)}),g}function p(A){const g=h(A).sort(function(T,C){if(T.renderOrder!==C.renderOrder)return C.renderOrder-T.renderOrder;const M=o.objects.get(T).distanceToCameraSquared,D=o.objects.get(C).distanceToCameraSquared;return M-D}),w=g.length;for(let T=0,C=g.length;T<C;T++)g[T].element.style.zIndex=w-T}}}function Aj(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var $nt=typeof global=="object"&&global&&global.Object===Object&&global,qnt=typeof self=="object"&&self&&self.Object===Object&&self,_2e=$nt||qnt||Function("return this")(),BI=function(){return _2e.Date.now()},Wnt=/\s/;function Znt(t){for(var e=t.length;e--&&Wnt.test(t.charAt(e)););return e}var Ynt=/^\s+/;function Xnt(t){return t&&t.slice(0,Znt(t)+1).replace(Ynt,"")}var gR=_2e.Symbol,b2e=Object.prototype,Qnt=b2e.hasOwnProperty,Knt=b2e.toString,$b=gR?gR.toStringTag:void 0;function Jnt(t){var e=Qnt.call(t,$b),n=t[$b];try{t[$b]=void 0;var r=!0}catch{}var i=Knt.call(t);return r&&(e?t[$b]=n:delete t[$b]),i}var ert=Object.prototype,trt=ert.toString;function nrt(t){return trt.call(t)}var rrt="[object Null]",irt="[object Undefined]",Qre=gR?gR.toStringTag:void 0;function art(t){return t==null?t===void 0?irt:rrt:Qre&&Qre in Object(t)?Jnt(t):nrt(t)}function srt(t){return t!=null&&typeof t=="object"}var ort="[object Symbol]";function lrt(t){return typeof t=="symbol"||srt(t)&&art(t)==ort}var Kre=NaN,crt=/^[-+]0x[0-9a-f]+$/i,urt=/^0b[01]+$/i,frt=/^0o[0-7]+$/i,drt=parseInt;function Jre(t){if(typeof t=="number")return t;if(lrt(t))return Kre;if(Aj(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Aj(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xnt(t);var n=urt.test(t);return n||frt.test(t)?drt(t.slice(2),n?2:8):crt.test(t)?Kre:+t}var hrt="Expected a function",prt=Math.max,mrt=Math.min;function Art(t,e,n){var r,i,a,s,o,l,c=0,u=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(hrt);e=Jre(e)||0,Aj(n)&&(u=!!n.leading,f="maxWait"in n,a=f?prt(Jre(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h);function p(I){var L=r,O=i;return r=i=void 0,c=I,s=t.apply(O,L),s}function A(I){return c=I,o=setTimeout(T,e),u?p(I):s}function g(I){var L=I-l,O=I-c,B=e-L;return f?mrt(B,a-O):B}function w(I){var L=I-l,O=I-c;return l===void 0||L>=e||L<0||f&&O>=a}function T(){var I=BI();if(w(I))return C(I);
4151o=setTimeout(T,g(I))}function C(I){return o=void 0,h&&r?p(I):(r=i=void 0,s)}function M(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function D(){return o===void 0?s:C(BI())}function k(){var I=BI(),L=w(I);if(r=arguments,i=this,l=I,L){if(o===void 0)return A(l);if(f)return clearTimeout(o),o=setTimeout(T,e),p(l)}return o===void 0&&(o=setTimeout(T,e)),s}return k.cancel=M,k.flush=D,k}function eie(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function grt(t){if(Array.isArray(t))return t}function xrt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vrt(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function yrt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function _rt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4152In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function brt(t,e){return grt(t)||yrt(t,e)||wrt(t,e)||_rt()}function wrt(t,e){if(t){if(typeof t=="string")return eie(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eie(t,e):void 0}}var Srt=vrt(function t(e,n){var r=n.default,i=r===void 0?null:r,a=n.triggerUpdate,s=a===void 0?!0:a,o=n.onChange,l=o===void 0?function(c,u){}:o;xrt(this,t),this.name=e,this.defaultVal=i,this.triggerUpdate=s,this.onChange=l});function Ml(t){var e=t.stateInit,n=e===void 0?function(){return{}}:e,r=t.props,i=r===void 0?{}:r,a=t.methods,s=a===void 0?{}:a,o=t.aliases,l=o===void 0?{}:o,c=t.init,u=c===void 0?function(){}:c,f=t.update,h=f===void 0?function(){}:f,p=Object.keys(i).map(function(A){return new Srt(A,i[A])});return function A(){for(var g=arguments.length,w=new Array(g),T=0;T<g;T++)w[T]=arguments[T];var C=!!(this instanceof A&&this.constructor),M=C?w.shift():void 0,D=w[0],k=D===void 0?{}:D,I=Object.assign({},n instanceof Function?n(k):n,{initialised:!1}),L={};function O(j){return B(j,k),G(),O}var B=function(z,Q){u.call(O,z,I,Q),I.initialised=!0},G=Art(function(){I.initialised&&(h.call(O,I,L),L={})},1);return p.forEach(function(j){O[j.name]=z(j);function z(Q){var ee=Q.name,Z=Q.triggerUpdate,X=Z===void 0?!1:Z,K=Q.onChange,se=K===void 0?function(oe,te){}:K,ae=Q.defaultVal,J=ae===void 0?null:ae;return function(oe){var te=I[ee];if(!arguments.length)return te;var he=oe===void 0?J:oe;return I[ee]=he,se.call(O,he,I,te),!L.hasOwnProperty(ee)&&(L[ee]=te),X&&G(),O}}}),Object.keys(s).forEach(function(j){O[j]=function(){for(var z,Q=arguments.length,ee=new Array(Q),Z=0;Z<Q;Z++)ee[Z]=arguments[Z];return(z=s[j]).call.apply(z,[O,I].concat(ee))}}),Object.entries(l).forEach(function(j){var z=brt(j,2),Q=z[0],ee=z[1];return O[Q]=O[ee]}),O.resetProps=function(){return p.forEach(function(j){O[j.name](j.defaultVal)}),O},O.resetProps(),I._rerender=G,C&&M&&O(M),O}}var Xo=Object.freeze({Linear:Object.freeze({None:function(t){return t},In:function(t){return t},Out:function(t){return t},InOut:function(t){return t}}),Quadratic:Object.freeze({In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}}),Cubic:Object.freeze({In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}}),Quartic:Object.freeze({In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}}),Quintic:Object.freeze({In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}}),Sinusoidal:Object.freeze({In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}}),Exponential:Object.freeze({In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}}),Circular:Object.freeze({In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}}),Elastic:Object.freeze({In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(t){var e=1.70158;return t===1?1:t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return t===0?0:--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}}),Bounce:Object.freeze({In:function(t){return 1-Xo.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?Xo.Bounce.In(t*2)*.5:Xo.Bounce.Out(t*2-1)*.5+.5}}),generatePow:function(t){return t===void 0&&(t=4),t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return Math.pow(e,t)},Out:function(e){return 1-Math.pow(1-e,t)},InOut:function(e){return e<.5?Math.pow(e*2,t)/2:(1-Math.pow(2-e*2,t))/2+.5}}}}),Nw=function(){return performance.now()},JP=(function(){function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,e)}return t.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map(function(n){return e._tweens[n]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var s=a[i];(e=s._group)===null||e===void 0||e.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},t.prototype.remove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},t.prototype.allStopped=function(){return this.getAll().every(function(e){return!e.isPlaying()})},t.prototype.update=function(e,n){e===void 0&&(e=Nw()),n===void 0&&(n=!0);var r=Object.keys(this._tweens);if(r.length!==0)for(;r.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<r.length;i++){var a=this._tweens[r[i]],s=!n;a&&a.update(e,s)===!1&&!n&&this.remove(a)}r=Object.keys(this._tweensAddedDuringUpdate)}},t})(),gj={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),a=gj.Utils.Linear;return e<0?a(t[0],t[1],r):e>1?a(t[n],t[n-1],n-r):a(t[i],t[i+1>n?n:i+1],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t}}},w2e=(function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t})(),xj=new JP,iu=(function(){function t(e,n){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Xo.Linear.None,this._interpolationFunction=gj.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=w2e.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=e,typeof n=="object"?(this._group=n,n.add(this)):n===!0&&(this._group=xj,xj.add(this))}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.getDuration=function(){return this._duration},t.prototype.to=function(e,n){if(n===void 0&&(n=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=e,this._propertiesAreSetUp=!1,this._duration=n<0?0:n,this},t.prototype.duration=function(e){return e===void 0&&(e=1e3),this._duration=e<0?0:e,this},t.prototype.dynamic=function(e){return e===void 0&&(e=!1),this._isDynamic=e,this},t.prototype.start=function(e,n){if(e===void 0&&(e=Nw()),n===void 0&&(n=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var r in this._valuesStartRepeat)this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,!this._propertiesAreSetUp||n){if(this._propertiesAreSetUp=!0,!this._isDynamic){var i={};for(var a in this._valuesEnd)i[a]=this._valuesEnd[a];this._valuesEnd=i}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,n)}return this},t.prototype.startFromCurrentValues=function(e){return this.start(e,!0)},t.prototype._setupProperties=function(e,n,r,i,a){for(var s in r){var o=e[s],l=Array.isArray(o),c=l?"array":typeof o,u=!l&&Array.isArray(r[s]);if(!(c==="undefined"||c==="function")){if(u){var f=r[s];if(f.length===0)continue;for(var h=[o],p=0,A=f.length;p<A;p+=1){var g=this._handleRelativeValue(o,f[p]);if(isNaN(g)){u=!1,console.warn("Found invalid interpolation list. Skipping.");break}h.push(g)}u&&(r[s]=h)}if((c==="object"||l)&&o&&!u){n[s]=l?[]:{};var w=o;for(var T in w)n[s][T]=w[T];i[s]=l?[]:{};var f=r[s];if(!this._isDynamic){var C={};for(var T in f)C[T]=f[T];r[s]=f=C}this._setupProperties(w,n[s],f,i[s],a)}else(typeof n[s]>"u"||a)&&(n[s]=o),l||(n[s]*=1),u?i[s]=r[s].slice().reverse():i[s]=n[s]||0}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},t.prototype.pause=function(e){return e===void 0&&(e=Nw()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=e,this)},t.prototype.resume=function(e){return e===void 0&&(e=Nw()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this)},t.prototype.stopChainedTweens=function(){for(var e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this},t.prototype.group=function(e){return e?(e.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},t.prototype.remove=function(){var e;return(e=this._group)===null||e===void 0||e.remove(this),this},t.prototype.delay=function(e){return e===void 0&&(e=0),this._delayTime=e,this},t.prototype.repeat=function(e){return e===void 0&&(e=0),this._initialRepeat=e,this._repeat=e,this},t.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},t.prototype.yoyo=function(e){return e===void 0&&(e=!1),this._yoyo=e,this},t.prototype.easing=function(e){return e===void 0&&(e=Xo.Linear.None),this._easingFunction=e,this},t.prototype.interpolation=function(e){return e===void 0&&(e=gj.Linear),this._interpolationFunction=e,this},t.prototype.chain=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this._chainedTweens=e,this},t.prototype.onStart=function(e){return this._onStartCallback=e,this},t.prototype.onEveryStart=function(e){return this._onEveryStartCallback=e,this},t.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},t.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},t.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},t.prototype.onStop=function(e){return this._onStopCallback=e,this},t.prototype.update=function(e,n){var r=this,i;if(e===void 0&&(e=Nw()),n===void 0&&(n=t.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(n)this.start(e,!0);else return!1;if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=e-this._startTime,o=this._duration+((i=this._repeatDelayTime)!==null&&i!==void 0?i:this._delayTime),l=this._duration+this._repeat*o,c=function(){if(r._duration===0||s>l)return 1;
4152var g=Math.trunc(s/o),w=s-g*o,T=Math.min(w/r._duration,1);return T===0&&s===r._duration?1:T},u=c(),f=this._easingFunction(u);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,f),this._onUpdateCallback&&this._onUpdateCallback(this._object,u),this._duration===0||s>=this._duration)if(this._repeat>0){var h=Math.min(Math.trunc((s-this._duration)/o)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=h);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=o*h,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,A=this._chainedTweens.length;p<A;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(e,n,r,i){for(var a in r)if(n[a]!==void 0){var s=n[a]||0,o=r[a],l=Array.isArray(e[a]),c=Array.isArray(o),u=!l&&c;u?e[a]=this._interpolationFunction(o,i):typeof o=="object"&&o?this._updateProperties(e[a],s,o,i):(o=this._handleRelativeValue(s,o),typeof o=="number"&&(e[a]=s+(o-s)*i))}},t.prototype._handleRelativeValue=function(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)},t.prototype._swapEndStartRepeatValues=function(e){var n=this._valuesStartRepeat[e],r=this._valuesEnd[e];typeof r=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(r):this._valuesStartRepeat[e]=this._valuesEnd[e],this._valuesEnd[e]=n},t.autoStartOnUpdate=!1,t})();w2e.nextId;var _p=xj;_p.getAll.bind(_p);_p.removeAll.bind(_p);_p.add.bind(_p);_p.remove.bind(_p);_p.update.bind(_p);function Trt(t){const e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return S2e(this.cover(e,n,r),e,n,r,t)}function S2e(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var a,s=t._root,o={data:i},l=t._x0,c=t._y0,u=t._z0,f=t._x1,h=t._y1,p=t._z1,A,g,w,T,C,M,D,k,I,L,O;if(!s)return t._root=o,t;for(;s.length;)if((D=e>=(A=(l+f)/2))?l=A:f=A,(k=n>=(g=(c+h)/2))?c=g:h=g,(I=r>=(w=(u+p)/2))?u=w:p=w,a=s,!(s=s[L=I<<2|k<<1|D]))return a[L]=o,t;if(T=+t._x.call(null,s.data),C=+t._y.call(null,s.data),M=+t._z.call(null,s.data),e===T&&n===C&&r===M)return o.next=s,a?a[L]=o:t._root=o,t;do a=a?a[L]=new Array(8):t._root=new Array(8),(D=e>=(A=(l+f)/2))?l=A:f=A,(k=n>=(g=(c+h)/2))?c=g:h=g,(I=r>=(w=(u+p)/2))?u=w:p=w;while((L=I<<2|k<<1|D)===(O=(M>=w)<<2|(C>=g)<<1|T>=A));return a[O]=s,a[L]=o,t}function Ert(t){Array.isArray(t)||(t=Array.from(t));const e=t.length,n=new Float64Array(e),r=new Float64Array(e),i=new Float64Array(e);let a=1/0,s=1/0,o=1/0,l=-1/0,c=-1/0,u=-1/0;for(let f=0,h,p,A,g;f<e;++f)isNaN(p=+this._x.call(null,h=t[f]))||isNaN(A=+this._y.call(null,h))||isNaN(g=+this._z.call(null,h))||(n[f]=p,r[f]=A,i[f]=g,p<a&&(a=p),p>l&&(l=p),A<s&&(s=A),A>c&&(c=A),g<o&&(o=g),g>u&&(u=g));if(a>l||s>c||o>u)return this;this.cover(a,s,o).cover(l,c,u);for(let f=0;f<e;++f)S2e(this,n[f],r[f],i[f],t[f]);return this}function Mrt(t,e,n){if(isNaN(t=+t)||isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,a=this._z0,s=this._x1,o=this._y1,l=this._z1;if(isNaN(r))s=(r=Math.floor(t))+1,o=(i=Math.floor(e))+1,l=(a=Math.floor(n))+1;else{for(var c=s-r||1,u=this._root,f,h;r>t||t>=s||i>e||e>=o||a>n||n>=l;)switch(h=(n<a)<<2|(e<i)<<1|t<r,f=new Array(8),f[h]=u,u=f,c*=2,h){case 0:s=r+c,o=i+c,l=a+c;break;case 1:r=s-c,o=i+c,l=a+c;break;case 2:s=r+c,i=o-c,l=a+c;break;case 3:r=s-c,i=o-c,l=a+c;break;case 4:s=r+c,o=i+c,a=l-c;break;case 5:r=s-c,o=i+c,a=l-c;break;case 6:s=r+c,i=o-c,a=l-c;break;case 7:r=s-c,i=o-c,a=l-c;break}this._root&&this._root.length&&(this._root=u)}return this._x0=r,this._y0=i,this._z0=a,this._x1=s,this._y1=o,this._z1=l,this}function Crt(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function Nrt(t){return arguments.length?this.cover(+t[0][0],+t[0][1],
4152+t[0][2]).cover(+t[1][0],+t[1][1],+t[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function ns(t,e,n,r,i,a,s){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=i,this.y1=a,this.z1=s}function Rrt(t,e,n,r){var i,a=this._x0,s=this._y0,o=this._z0,l,c,u,f,h,p,A=this._x1,g=this._y1,w=this._z1,T=[],C=this._root,M,D;for(C&&T.push(new ns(C,a,s,o,A,g,w)),r==null?r=1/0:(a=t-r,s=e-r,o=n-r,A=t+r,g=e+r,w=n+r,r*=r);M=T.pop();)if(!(!(C=M.node)||(l=M.x0)>A||(c=M.y0)>g||(u=M.z0)>w||(f=M.x1)<a||(h=M.y1)<s||(p=M.z1)<o))if(C.length){var k=(l+f)/2,I=(c+h)/2,L=(u+p)/2;T.push(new ns(C[7],k,I,L,f,h,p),new ns(C[6],l,I,L,k,h,p),new ns(C[5],k,c,L,f,I,p),new ns(C[4],l,c,L,k,I,p),new ns(C[3],k,I,u,f,h,L),new ns(C[2],l,I,u,k,h,L),new ns(C[1],k,c,u,f,I,L),new ns(C[0],l,c,u,k,I,L)),(D=(n>=L)<<2|(e>=I)<<1|t>=k)&&(M=T[T.length-1],T[T.length-1]=T[T.length-1-D],T[T.length-1-D]=M)}else{var O=t-+this._x.call(null,C.data),B=e-+this._y.call(null,C.data),G=n-+this._z.call(null,C.data),j=O*O+B*B+G*G;if(j<r){var z=Math.sqrt(r=j);a=t-z,s=e-z,o=n-z,A=t+z,g=e+z,w=n+z,i=C.data}}return i}const Drt=(t,e,n,r,i,a)=>Math.sqrt((t-r)**2+(e-i)**2+(n-a)**2);function Prt(t,e,n,r){const i=[],a=t-r,s=e-r,o=n-r,l=t+r,c=e+r,u=n+r;return this.visit((f,h,p,A,g,w,T)=>{if(!f.length)do{const C=f.data;Drt(t,e,n,this._x(C),this._y(C),this._z(C))<=r&&i.push(C)}while(f=f.next);return h>l||p>c||A>u||g<a||w<s||T<o}),i}function krt(t){if(isNaN(h=+this._x.call(null,t))||isNaN(p=+this._y.call(null,t))||isNaN(A=+this._z.call(null,t)))return this;var e,n=this._root,r,i,a,s=this._x0,o=this._y0,l=this._z0,c=this._x1,u=this._y1,f=this._z1,h,p,A,g,w,T,C,M,D,k,I;if(!n)return this;if(n.length)for(;;){if((C=h>=(g=(s+c)/2))?s=g:c=g,(M=p>=(w=(o+u)/2))?o=w:u=w,(D=A>=(T=(l+f)/2))?l=T:f=T,e=n,!(n=n[k=D<<2|M<<1|C]))return this;if(!n.length)break;(e[k+1&7]||e[k+2&7]||e[k+3&7]||e[k+4&7]||e[k+5&7]||e[k+6&7]||e[k+7&7])&&(r=e,I=k)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):e?(a?e[k]=a:delete e[k],(n=e[0]||e[1]||e[2]||e[3]||e[4]||e[5]||e[6]||e[7])&&n===(e[7]||e[6]||e[5]||e[4]||e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[I]=n:this._root=n),this):(this._root=a,this)}function Lrt(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function Ort(){return this._root}function Frt(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function Irt(t){var e=[],n,r=this._root,i,a,s,o,l,c,u;for(r&&e.push(new ns(r,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));n=e.pop();)if(!t(r=n.node,a=n.x0,s=n.y0,o=n.z0,l=n.x1,c=n.y1,u=n.z1)&&r.length){var f=(a+l)/2,h=(s+c)/2,p=(o+u)/2;(i=r[7])&&e.push(new ns(i,f,h,p,l,c,u)),(i=r[6])&&e.push(new ns(i,a,h,p,f,c,u)),(i=r[5])&&e.push(new ns(i,f,s,p,l,h,u)),(i=r[4])&&e.push(new ns(i,a,s,p,f,h,u)),(i=r[3])&&e.push(new ns(i,f,h,o,l,c,p)),(i=r[2])&&e.push(new ns(i,a,h,o,f,c,p)),(i=r[1])&&e.push(new ns(i,f,s,o,l,h,p)),(i=r[0])&&e.push(new ns(i,a,s,o,f,h,p))}return this}function Brt(t){var e=[],n=[],r;for(this._root&&e.push(new ns(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));r=e.pop();){var i=r.node;if(i.length){var a,s=r.x0,o=r.y0,l=r.z0,c=r.x1,u=r.y1,f=r.z1,h=(s+c)/2,p=(o+u)/2,A=(l+f)/2;(a=i[0])&&e.push(new ns(a,s,o,l,h,p,A)),(a=i[1])&&e.push(new ns(a,h,o,l,c,p,A)),(a=i[2])&&e.push(new ns(a,s,p,l,h,u,A)),(a=i[3])&&e.push(new ns(a,h,p,l,c,u,A)),(a=i[4])&&e.push(new ns(a,s,o,A,h,p,f)),(a=i[5])&&e.push(new ns(a,h,o,A,c,p,f)),(a=i[6])&&e.push(new ns(a,s,p,A,h,u,f)),(a=i[7])&&e.push(new ns(a,h,p,A,c,u,f))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.z0,r.x1,r.y1,r.z1);return this}function Urt(t){return t[0]}function Vrt(t){return arguments.length?(this._x=t,this):this._x}function jrt(t){return t[1]}function Hrt(t){return arguments.length?(this._y=t,this):this._y}function Grt(t){return t[2]}function zrt(t){return arguments.length?(this._z=t,this):this._z}function T2e(t,e,n,r){var i=new $q(e??Urt,n??jrt,r??Grt,NaN,NaN,NaN,NaN,NaN,NaN);return t==null?i:i.addAll(t)}function $q(t,e,n,r,i,a,s,o,l){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=i,this._z0=a,this._x1=s,this._y1=o,this._z1=l,this._root=void 0}function tie(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var gc=T2e.prototype=$q.prototype;gc.copy=function(){var t=new $q(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=tie(e),t;for(n=[{source:e,target:t._root=new Array(8)}];e=n.pop();)for(var i=0;i<8;++i)(r=e.source[i])&&(r.length?n.push({source:r,target:e.target[i]=new Array(8)}):e.target[i]=tie(r));return t};gc.add=Trt;gc.addAll=Ert;gc.cover=Mrt;gc.data=Crt;gc.extent=Nrt;gc.find=Rrt;gc.findAllWithinRadius=Prt;gc.remove=krt;gc.removeAll=Lrt;gc.root=Ort;gc.size=Frt;gc.visit=Irt;gc.visitAfter=Brt;gc.x=Vrt;gc.y=Hrt;gc.z=zrt;function G9(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $rt(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function E2e(t){let e,n,r;t.length!==2?(e=G9,n=(o,l)=>G9(t(o),l),r=(o,l)=>t(o)-l):(e=t===G9||t===$rt?t:qrt,n=t,r=t);function i(o,l,c=0,u=o.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(o[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(o,l,c=0,u=o.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(o[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function s(o,l,c=0,u=o.length){const f=i(o,l,c,u-1);return f>c&&r(o[f-1],l)>-r(o[f],l)?f-1:f}return{left:i,center:s,right:a}}function qrt(){return 0}function Wrt(t){return t===null?NaN:+t}const Zrt=E2e(G9),M2e=Zrt.right;E2e(Wrt).center;function xR(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class u2{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],s=e+a,o=Math.abs(e)<Math.abs(a)?e-(s-a):a-(s-e);o&&(n[r++]=o),e=s}return n[r]=e,this._n=r+1,this}valueOf(){const e=this._partials;let n=this._n,r,i,a,s=0;if(n>0){for(s=e[--n];n>0&&(r=s,i=e[--n],s=r+i,a=i-(s-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=s+i,i==r-s&&(s=r))}return s}}const Yrt=Math.sqrt(50),Xrt=Math.sqrt(10),Qrt=Math.sqrt(2);function vR(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=Yrt?10:a>=Xrt?5:a>=Qrt?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/s,o=Math.round(t*c),l=Math.round(e*c),o/c<t&&++o,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*s,o=Math.round(t/c),l=Math.round(e/c),o*c<t&&++o,l*c>
4152e&&--l),l<o&&.5<=n&&n<2?vR(t,e,n*2):[o,l,c]}function Krt(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,a,s]=r?vR(e,t,n):vR(t,e,n);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(i+c)/-s;else for(let c=0;c<o;++c)l[c]=(i+c)*s;return l}function vj(t,e,n){return e=+e,t=+t,n=+n,vR(t,e,n)[2]}function Jrt(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?vj(e,t,n):vj(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function eit(t,e){let n;for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function tit(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function*nit(t){for(const e of t)yield*e}function F5(t){return Array.from(nit(t))}function z8(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r<i;)a[r]=t+r*n;return a}function rit(t,e){let n=0;for(let r of t)(r=+r)&&(n+=r);return n}function C2e(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function qq(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function N2e(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ZT(){}var I5=.7,yR=1/I5,x3="\\s*([+-]?\\d+)\\s*",B5="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",op="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",iit=/^#([0-9a-f]{3,8})$/,ait=new RegExp(`^rgb\\(${x3},${x3},${x3}\\)$`),sit=new RegExp(`^rgb\\(${op},${op},${op}\\)$`),oit=new RegExp(`^rgba\\(${x3},${x3},${x3},${B5}\\)$`),lit=new RegExp(`^rgba\\(${op},${op},${op},${B5}\\)$`),cit=new RegExp(`^hsl\\(${B5},${op},${op}\\)$`),uit=new RegExp(`^hsla\\(${B5},${op},${op},${B5}\\)$`),nie={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};qq(ZT,xy,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:rie,formatHex:rie,formatHex8:fit,formatHsl:dit,formatRgb:iie,toString:iie});function rie(){return this.rgb().formatHex()}function fit(){return this.rgb().formatHex8()}function dit(){return R2e(this).formatHsl()}function iie(){return this.rgb().formatRgb()}function xy(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=iit.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?aie(e):n===3?new _0(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?F7(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?F7(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ait.exec(t))?new _0(e[1],e[2],e[3],1):(e=sit.exec(t))?new _0(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=oit.exec(t))?F7(e[1],e[2],e[3],e[4]):(e=lit.exec(t))?F7(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=cit.exec(t))?lie(e[1],e[2]/100,e[3]/100,1):(e=uit.exec(t))?lie(e[1],e[2]/100,e[3]/100,e[4]):nie.hasOwnProperty(t)?aie(nie[t]):t==="transparent"?new _0(NaN,NaN,NaN,0):null}function aie(t){return new _0(t>>16&255,t>>8&255,t&255,1)}function F7(t,e,n,r){return r<=0&&(t=e=n=NaN),new _0(t,e,n,r)}function hit(t){return t instanceof ZT||(t=xy(t)),t?(t=t.rgb(),new _0(t.r,t.g,t.b,t.opacity)):new _0}function yj(t,e,n,r){return arguments.length===1?hit(t):new _0(t,e,n,r??1)}function _0(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}qq(_0,yj,N2e(ZT,{brighter(t){return t=t==null?yR:Math.pow(yR,t),new _0(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?I5:Math.pow(I5,t),new _0(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _0(Kv(this.r),Kv(this.g),Kv(this.b),_R(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sie,formatHex:sie,formatHex8:pit,formatRgb:oie,toString:oie}));function sie(){return`#${Nv(this.r)}${Nv(this.g)}${Nv(this.b)}`}function pit(){return`#${Nv(this.r)}${Nv(this.g)}${Nv(this.b)}${Nv((isNaN(this.opacity)?1:this.opacity)*255)}`}function oie(){const t=_R(this.opacity);return`${t===1?"rgb(":"rgba("}${Kv(this.r)}, ${Kv(this.g)}, ${Kv(this.b)}${t===1?")":`, ${t})`}`}function _R(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Kv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}
vendor: 9,050 bytes, line 4152
4152function Nv(t){return t=Kv(t),(t<16?"0":"")+t.toString(16)}function lie(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new vh(t,e,n,r)}function R2e(t){if(t instanceof vh)return new vh(t.h,t.s,t.l,t.opacity);if(t instanceof ZT||(t=xy(t)),!t)return new vh;if(t instanceof vh)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(n-r)/o+(n<r)*6:n===a?s=(r-e)/o+2:s=(e-n)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new vh(s,o,l,t.opacity)}function mit(t,e,n,r){return arguments.length===1?R2e(t):new vh(t,e,n,r??1)}function vh(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}qq(vh,mit,N2e(ZT,{brighter(t){return t=t==null?yR:Math.pow(yR,t),new vh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?I5:Math.pow(I5,t),new vh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new _0(UI(t>=240?t-240:t+120,i,r),UI(t,i,r),UI(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new vh(cie(this.h),I7(this.s),I7(this.l),_R(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=_R(this.opacity);return`${t===1?"hsl(":"hsla("}${cie(this.h)}, ${I7(this.s)*100}%, ${I7(this.l)*100}%${t===1?")":`, ${t})`}`}}));function cie(t){return t=(t||0)%360,t<0?t+360:t}function I7(t){return Math.max(0,Math.min(1,t||0))}function UI(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Wq=t=>()=>t;function Ait(t,e){return function(n){return t+n*e}}function git(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function xit(t){return(t=+t)==1?D2e:function(e,n){return n-e?git(e,n,t):Wq(isNaN(e)?n:e)}}function D2e(t,e){var n=e-t;return n?Ait(t,n):Wq(isNaN(t)?e:t)}const uie=(function t(e){var n=xit(e);function r(i,a){var s=n((i=yj(i)).r,(a=yj(a)).r),o=n(i.g,a.g),l=n(i.b,a.b),c=D2e(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=t,r})(1);function P2e(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=t[i]*(1-a)+e[i]*a;return r}}function k2e(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function vit(t,e){return(k2e(e)?P2e:L2e)(t,e)}function L2e(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=Zq(t[s],e[s]);for(;s<n;++s)a[s]=e[s];return function(o){for(s=0;s<r;++s)a[s]=i[s](o);return a}}function yit(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function U5(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function _it(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Zq(t[i],e[i]):r[i]=e[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var _j=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,VI=new RegExp(_j.source,"g");function bit(t){return function(){return t}}function wit(t){return function(e){return t(e)+""}}function Sit(t,e){var n=_j.lastIndex=VI.lastIndex=0,r,i,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(r=_j.exec(t))&&(i=VI.exec(e));)(a=i.index)>n&&(a=e.slice(n,a),o[s]?o[s]+=a:o[++s]=a),(r=r[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:U5(r,i)})),n=VI.lastIndex;return n<e.length&&(a=e.slice(n),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?wit(l[0].x):bit(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)o[(f=l[u]).i]=f.x(c);return o.join("")})}function Zq(t,e){var n=typeof e,r;return e==null||n==="boolean"?Wq(e):(n==="number"?U5:n==="string"?(r=xy(e))?(e=r,uie):Sit:e instanceof xy?uie:e instanceof Date?yit:k2e(e)?P2e:Array.isArray(e)?L2e:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?_it:U5)(t,e)}function Tit(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Eit(t){return function(){return t}}function Mit(t){return+t}var fie=[0,1];function $8(t){return t}function bj(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Eit(isNaN(e)?NaN:.5)}function Cit(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Nit(t,e,n){var r=t[0],i=t[1],a=e[0],s=e[1];return i<r?(r=bj(i,r),a=n(s,a)):(r=bj(r,i),a=n(a,s)),function(o){return a(r(o))}}function Rit(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=bj(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(o){var l=M2e(t,o,1,r)-1;return a[l](i[l](o))}}function Dit(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pit(){var t=fie,e=fie,n=Zq,r,i,a,s=$8,o,l,c;function u(){var h=Math.min(t.length,e.length);return s!==$8&&(s=Cit(t[0],t[h-1])),o=h>2?Rit:Nit,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=o(t.map(r),e,n)))(r(s(h)))}return f.invert=function(h){return s(i((c||(c=o(e,t.map(r),U5)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Mit),u()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=Tit,u()},f.clamp=function(h){return arguments.length?(s=h?!0:$8,u()):s!==$8},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return r=h,i=p,u()}}function kit(){return Pit()($8,$8)}function Lit(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function bR(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function T_(t){return t=bR(Math.abs(t)),t?t[1]:NaN}function Oit(t,e){return function(n,r){for(var i=n.length,a=[],s=0,o=t[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),a.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=t[s=(s+1)%t.length];return a.reverse().join(e)}}function Fit(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Iit=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wR(t){if(!(e=Iit.exec(t)))throw new Error("invalid format: "+t);var e;return new Yq({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}wR.prototype=Yq.prototype;function Yq(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Yq.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Bit(t){e:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var SR;function Uit(t,e){var n=bR(t,e);if(!n)return SR=void 0,t.toPrecision(e);var r=n[0],i=n[1],a=i-(SR=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bR(t,Math.max(0,e+a-1))[0]}function die(t,e){var n=bR(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const hie={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Lit,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>die(t*100,e),r:die,s:Uit,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function pie(t){return t}var mie=Array.prototype.map,Aie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vit(t){var e=t.grouping===void 0||t.thousands===void 0?pie:Oit(mie.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?pie:Fit(mie.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",o=t.minus===void 0?"â":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(f,h){f=wR(f);var p=f.fill,A=f.align,g=f.sign,w=f.symbol,T=f.zero,C=f.width,M=f.comma,D=f.precision,k=f.trim,I=f.type;I==="n"?(M=!0,I="g"):hie[I]||(D===void 0&&(D=12),k=!0,I="g"),(T||p==="0"&&A==="=")&&(T=!0,p="0",A="=");var L=(h&&h.prefix!==void 0?h.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(I
4152)?"0"+I.toLowerCase():""),O=(w==="$"?r:/[%p]/.test(I)?s:"")+(h&&h.suffix!==void 0?h.suffix:""),B=hie[I],G=/[defgprs%]/.test(I);D=D===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function j(z){var Q=L,ee=O,Z,X,K;if(I==="c")ee=B(z)+ee,z="";else{z=+z;var se=z<0||1/z<0;if(z=isNaN(z)?l:B(Math.abs(z),D),k&&(z=Bit(z)),se&&+z==0&&g!=="+"&&(se=!1),Q=(se?g==="("?g:o:g==="-"||g==="("?"":g)+Q,ee=(I==="s"&&!isNaN(z)&&SR!==void 0?Aie[8+SR/3]:"")+ee+(se&&g==="("?")":""),G){for(Z=-1,X=z.length;++Z<X;)if(K=z.charCodeAt(Z),48>K||K>57){ee=(K===46?i+z.slice(Z+1):z.slice(Z))+ee,z=z.slice(0,Z);break}}}M&&!T&&(z=e(z,1/0));var ae=Q.length+z.length+ee.length,J=ae<C?new Array(C-ae+1).join(p):"";switch(M&&T&&(z=e(J+z,J.length?C-ee.length:1/0),J=""),A){case"<":z=Q+z+ee+J;break;case"=":z=Q+J+z+ee;break;case"^":z=J.slice(0,ae=J.length>>1)+Q+z+ee+J.slice(ae);break;default:z=J+Q+z+ee;break}return a(z)}return j.toString=function(){return f+""},j}function u(f,h){var p=Math.max(-8,Math.min(8,Math.floor(T_(h)/3)))*3,A=Math.pow(10,-p),g=c((f=wR(f),f.type="f",f),{suffix:Aie[8+p/3]});return function(w){return g(A*w)}}return{format:c,formatPrefix:u}}var B7,O2e,F2e;jit({thousands:",",grouping:[3],currency:["$",""]});function jit(t){return B7=Vit(t),O2e=B7.format,F2e=B7.formatPrefix,B7}function Hit(t){return Math.max(0,-T_(Math.abs(t)))}function Git(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(T_(e)/3)))*3-T_(Math.abs(t)))}function zit(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,T_(e)-T_(t))+1}function $it(t,e,n,r){var i=Jrt(t,e,n),a;switch(r=wR(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(a=Git(i,s))&&(r.precision=a),F2e(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=zit(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Hit(i))&&(r.precision=a-(r.type==="%")*2);break}}return O2e(r)}function I2e(t){var e=t.domain;return t.ticks=function(n){var r=e();return Krt(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return $it(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,a=r.length-1,s=r[i],o=r[a],l,c,u=10;for(o<s&&(c=s,s=o,o=c,c=i,i=a,a=c);u-- >0;){if(c=vj(s,o,n),c===l)return r[i]=s,r[a]=o,e(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return t},t}function T2(){var t=kit();return t.copy=function(){return Dit(t,T2())},C2e.apply(t,arguments),I2e(t)}function B2e(){var t=0,e=1,n=1,r=[.5],i=[0,1],a;function s(l){return l!=null&&l<=l?i[M2e(r,l,0,n)]:a}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*e-(l-n)*t)/(n+1);return s}return s.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,o()):[t,e]},s.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,r[0]]:c>=n?[r[n-1],e]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(a=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return B2e().domain([t,e]).range(i).unknown(a)}
vendor: 8,916 bytes, line 4152
4152,C2e.apply(I2e(s),arguments)}var _i=1e-6,TR=1e-12,Qi=Math.PI,b0=Qi/2,ER=Qi/4,Tf=Qi*2,oo=180/Qi,qr=Qi/180,Wa=Math.abs,Xq=Math.atan,wd=Math.atan2,ei=Math.cos,U7=Math.ceil,qit=Math.exp,wj=Math.hypot,Wit=Math.log,Gr=Math.sin,Zit=Math.sign||function(t){return t>0?1:t<0?-1:0},E2=Math.sqrt,Yit=Math.tan;function Xit(t){return t>1?0:t<-1?Qi:Math.acos(t)}function M2(t){return t>1?b0:t<-1?-b0:Math.asin(t)}function gie(t){return(t=Gr(t/2))*t}function Hc(){}function MR(t,e){t&&vie.hasOwnProperty(t.type)&&vie[t.type](t,e)}var xie={Feature:function(t,e){MR(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)MR(n[r].geometry,e)}},vie={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Sj(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Sj(n[r],e,0)},Polygon:function(t,e){yie(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)yie(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)MR(n[r],e)}};function Sj(t,e,n){var r=-1,i=t.length-n,a;for(e.lineStart();++r<i;)a=t[r],e.point(a[0],a[1],a[2]);e.lineEnd()}function yie(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Sj(t[n],e,1);e.polygonEnd()}function ek(t,e){t&&xie.hasOwnProperty(t.type)?xie[t.type](t,e):MR(t,e)}var CR=new u2,_ie=new u2,U2e,V2e,Tj,Ej,Mj,C2={point:Hc,lineStart:Hc,lineEnd:Hc,polygonStart:function(){CR=new u2,C2.lineStart=Qit,C2.lineEnd=Kit},polygonEnd:function(){var t=+CR;_ie.add(t<0?Tf+t:t),this.lineStart=this.lineEnd=this.point=Hc},sphere:function(){_ie.add(Tf)}};function Qit(){C2.point=Jit}function Kit(){j2e(U2e,V2e)}function Jit(t,e){C2.point=j2e,U2e=t,V2e=e,t*=qr,e*=qr,Tj=t,Ej=ei(e=e/2+ER),Mj=Gr(e)}function j2e(t,e){t*=qr,e*=qr,e=e/2+ER;var n=t-Tj,r=n>=0?1:-1,i=r*n,a=ei(e),s=Gr(e),o=Mj*s,l=Ej*a+o*ei(i),c=o*r*Gr(i);CR.add(wd(c,l)),Tj=t,Ej=a,Mj=s}function NR(t){return[wd(t[1],t[0]),M2(t[2])]}function vy(t){var e=t[0],n=t[1],r=ei(n);return[r*ei(e),r*Gr(e),Gr(n)]}function V7(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function E_(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function jI(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function j7(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function RR(t){var e=E2(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var js,p0,ao,uf,sv,H2e,G2e,v3,pS,IA,N2,Um={point:Cj,lineStart:bie,lineEnd:wie,polygonStart:function(){Um.point=$2e,Um.lineStart=eat,Um.lineEnd=tat,pS=new u2,C2.polygonStart()},polygonEnd:function(){C2.polygonEnd(),Um.point=Cj,Um.lineStart=bie,Um.lineEnd=wie,CR<0?(js=-(ao=180),p0=-(uf=90)):pS>_i?uf=90:pS<-_i&&(p0=-90),N2[0]=js,N2[1]=ao},sphere:function(){js=-(ao=180),p0=-(uf=90)}};function Cj(t,e){IA.push(N2=[js=t,ao=t]),e<p0&&(p0=e),e>uf&&(uf=e)}function z2e(t,e){var n=vy([t*qr,e*qr]);if(v3){var r=E_(v3,n),i=[r[1],-r[0],0],a=E_(i,r);RR(a),a=NR(a);var s=t-sv,o=s>0?1:-1,l=a[0]*oo*o,c,u=Wa(s)>180;u^(o*sv<l&&l<o*t)?(c=a[1]*oo,c>uf&&(uf=c)):(l=(l+360)%360-180,u^(o*sv<l&&l<o*t)?(c=-a[1]*oo,c<p0&&(p0=c)):(e<p0&&(p0=e),e>uf&&(uf=e))),u?t<sv?af(js,t)>af(js,ao)&&(ao=t):af(t,ao)>af(js,ao)&&(js=t):ao>=js?(t<js&&(js=t),t>ao&&(ao=t)):t>sv?af(js,t)>af(js,ao)&&(ao=t):af(t,ao)>af(js,ao)&&(js=t)}else IA.push(N2=[js=t,ao=t]);e<p0&&(p0=e),e>uf&&(uf=e),v3=n,sv=t}function bie(){Um.point=z2e}function wie(){N2[0]=js,N2[1]=ao,Um.point=Cj,v3=null}function $2e(t,e){if(v3){var n=t-sv;pS.add(Wa(n)>180?n+(n>0?360:-360):n)}else H2e=t,G2e=e;C2.point(t,e),z2e(t,e)}function eat(){C2.lineStart()}function tat(){$2e(H2e,G2e),C2.lineEnd(),Wa(pS)>_i&&(js=-(ao=180)),N2[0]=js,N2[1]=ao,v3=null}function af(t,e){return(e-=t)<0?e+360:e}function nat(t,e){return t[0]-e[0]}function Sie(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function q2e(t){var e,n,r,i,a,s,o;if(uf=ao=-(js=p0=1/0),IA=[],ek(t,Um),n=IA.length){for(IA.sort(nat),e=1,r=IA[0],a=[r];e<n;++e)i=IA[e],Sie(r,i[0])||Sie(r,i[1])?(af(r[0],i[1])>af(r[0],r[1])&&(r[1]=i[1]),af(i[0],r[1])>af(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(s=-1/0,n=a.length-1,e=0,r=a[n];e<=n;r=i,++e)i=a[e],(o=af(r[1],i[0]))>s&&(s=o,js=i[0],ao=r[1])}return IA=N2=null,js===1/0||p0===1/0?[[NaN,NaN],[NaN,NaN]]:[[js,p0],[ao,uf]]}var Rw,DR,PR,kR,LR,OR,FR,IR,Nj,Rj,Dj,W2e,Z2e,Tu,Eu,Mu,Th={sphere:Hc,point:Qq,lineStart:Tie,lineEnd:Eie,polygonStart:function(){Th.lineStart=aat,Th.lineEnd=sat},polygonEnd:function(){Th.lineStart=Tie,Th.lineEnd=Eie}};function Qq(t,e){t*=qr,e*=qr;var n=ei(e);YT(n*ei(t),n*Gr(t),Gr(e))}function YT(t,e,n){++Rw,PR+=(t-PR)/Rw,kR+=(e-kR)/Rw,LR+=(n-LR)/Rw}function Tie(){Th.point=rat}function rat(t,e){t*=qr,e*=qr;var n=ei(e);Tu=n*ei(t),Eu=n*Gr(t),Mu=Gr(e),Th.point=iat,YT(Tu,Eu,Mu)}function iat(t,e){t*=qr,e*=qr;var n=ei(e),r=n*ei(t),i=n*Gr(t),a=Gr(e),s=wd(E2((s=Eu*a-Mu*i)*s+(s=Mu*r-Tu*a)*s+(s=Tu*i-Eu*r)*s),Tu*r+Eu*i+Mu*a);DR+=s,OR+=s*(Tu+(Tu=r)),FR+=s*(Eu+(Eu=i)),IR+=s*(Mu+(Mu=a)),YT(Tu,Eu,Mu)}function Eie(){Th.point=Qq}function aat(){Th.point=oat}function sat(){Y2e(W2e,Z2e),Th.point=Qq}function oat(t,e){W2e=t,Z2e=e,t*=qr,e*=qr,Th.point=Y2e;var n=ei(e);Tu=n*ei(t),Eu=n*Gr(t),Mu=Gr(e),YT(Tu,Eu,Mu)}function Y2e(t,e){t*=qr,e*=qr;var n=ei(e),r=n*ei(t),i=n*Gr(t),a=Gr(e),s=Eu*a-Mu*i,o=Mu*r-Tu*a,l=Tu*i-Eu*r,c=wj(s,o,l),u=M2(c),f=c&&-u/c;Nj.add(f*s),Rj.add(f*o),Dj.add(f*l),DR+=u,OR+=u*(Tu+(Tu=r)),FR+=u*(Eu+(Eu=i)),IR+=u*(Mu+(Mu=a)),YT(Tu,Eu,Mu)}function Mie(t){Rw=DR=PR=kR=LR=OR=FR=IR=0,Nj=new u2,Rj=new u2,Dj=new u2,ek(t,Th);var e=+Nj,n=+Rj,r=+Dj,i=wj(e,n,r);return i<TR&&(e=OR,n=FR,r=IR,DR<_i&&(e=PR,n=kR,r=LR),i=wj(e,n,r),i<TR)?[NaN,NaN]:[wd(n,e)*oo,M2(r/i)*oo]}function Pj(t,e){function n(r,i){return r=t(r,i),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,i){return r=e.invert(r,i),r&&t.invert(r[0],r[1])}),n}function kj(t,e){return Wa(t)>Qi&&(t-=Math.round(t/Tf)*Tf),[t,e]}kj.invert=kj;function X2e(t,e,n){return(t%=Tf)?e||n?Pj(Nie(t),Rie(e,n)):Nie(t):e||n?Rie(e,n):kj}function Cie(t){return function(e,n){return e+=t,Wa(e)>Qi&&(e-=Math.round(e/Tf)*Tf),[e,n]}}function Nie(t){var e=Cie(t);return e.invert=Cie(-t),e}function Rie(t,e){var n=ei(t),r=Gr(t),i=ei(e),a=Gr(e);function s(o,l){var c=ei(l),u=ei(o)*c,f=Gr(o)*c,h=Gr(l),p=h*n+u*r;return[wd(f*i-p*a,u*n-h*r),M2(p*i+f*a)]}return s.invert=function(o,l){var c=ei(l),u=ei(o)*c,f=Gr(o)*c,h=Gr(l),p=h*i-f*a;return[wd(f*i+h*a,u*n+p*r),M2(p*n-u*r)]},s}function lat(t){t=X2e(t[0]*qr,t[1]*qr,t.length>2?t[2]*qr:0);function e(n){return n=t(n[0]*qr,n[1]*qr),n[0]*=oo,n[1]*=oo,n}return e.invert=function(n){return n=t.invert(n[0]*qr,n[1]*qr),n[0]*=oo,n[1]*=oo,n},e}function cat(t,e,n,r,i,a){if(n){var s=ei(e),o=Gr(e),l=r*n;i==null?(i=e+r*Tf,a=e-l/2):(i=Die(s,i),a=Die(s,a),(r>0?i<a:i>a)&&(i+=r*Tf));for(var c,u=i;r>0?u>a:u<a;u-=l)c=NR([s,-o*ei(u),-o*Gr(u)]),t.point(c[0],c[1])}}function Die(t,e){e=vy(e),e[0]-=t,RR(e);var n=Xit(-e[1]);return((-e[2]<0?-n:n)+Tf-_i)%Tf}function Q2e(){var t=[],e;return{point:function(n,r,i){e.push([n,r,i])},lineStart:function(){t.push(e=[])},lineEnd:Hc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function z9(t,e){return Wa(t[0]-e[0])<_i&&Wa(t[1]-e[1])<_i}function H7(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function K2e(t,e,n,r,i){var a=[],s=[],o,l;if(t.forEach(function(A){if(!((g=A.length-1)<=0)){var g,w=A[0],T=A[g],C;if(z9(w,T)){if(!w[2]&&!T[2]){for(i.lineStart(),o=0;o<g;++o)i.point((w=A[o])[0],w[1]);i.lineEnd();return}T[0]+=2*_i}a.push(C=new H7(w,A,null,!0)),s.push(C.o=new H7(w,null,C,!1)),a.push(C=new H7(T,A,null,!1)),s.push(C.o=new H7(T,null,C,!0))}}),!!a.length){for(s.sort(e),Pie(a),Pie(s),o=0,l=s.length;o<l;++o)s[o].e=n=!n;for(var c=a[0],u,f;;){for(var h=c,p=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,l=u.length;o<l;++o)i.point((f=u[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((f=u[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,p=!p}while(!h.v);i.lineEnd()}}}function Pie(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}function HI(t){return Wa(t[0])<=Qi?t[0]:Zit(t[0])*((Wa(t[0])+Qi)%Tf-Qi)}function J2e(t,e){var n=HI(e),r=e[1],i=Gr(r),a=[Gr(n),-ei(n),0],s=0,o=0,l=new u2;i===1?r=b0+_i:i===-1&&(r=-b0-_i);for(var c=0,u=t.length;c<u;++c)if(h=(f=t[c]).length)for(var f,h,p=f[h-1],A=HI(p),g=p[1]/2+ER,w=Gr(g),T=ei(g),C=0;C<h;++C,A=D,w=I,T=L,p=M){var M=f[C],D=HI(M),k=M[1]/2+ER,I=Gr(k),L=ei(k),O=D-A,B=O>=0?1:-1,G=B*O,j=G>Qi,z=w*I;if(l.add(wd(z*B*Gr(G),T*L+z*ei(G))),s+=j?O+B*Tf:O,j^A>=n^D>=n){var Q=E_(vy(p),vy(M));RR(Q);var ee=E_(a,Q);RR(ee);var Z=(j^O>=0?-1:1)*M2(ee[2]);(r>Z||r===Z&&(Q[0]||Q[1]))&&(o+=j^O>=0?1:-1)}}return(s<-_i||s<_i&&l<-TR)^o&1}function eAe(t,e,n,r){return function(i){var a=e(i),s=Q2e(),o=e(s),l=!1,
vendor: 13,476 bytes, line 4152
4152c,u,f,h={point:p,lineStart:g,lineEnd:w,polygonStart:function(){h.point=T,h.lineStart=C,h.lineEnd=M,u=[],c=[]},polygonEnd:function(){h.point=p,h.lineStart=g,h.lineEnd=w,u=F5(u);var D=J2e(c,r);u.length?(l||(i.polygonStart(),l=!0),K2e(u,fat,D,n,i)):D&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(D,k){t(D,k)&&i.point(D,k)}function A(D,k){a.point(D,k)}function g(){h.point=A,a.lineStart()}function w(){h.point=p,a.lineEnd()}function T(D,k){f.push([D,k]),o.point(D,k)}function C(){o.lineStart(),f=[]}function M(){T(f[0][0],f[0][1]),o.lineEnd();var D=o.clean(),k=s.result(),I,L=k.length,O,B,G;if(f.pop(),c.push(f),f=null,!!L){if(D&1){if(B=k[0],(O=B.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),I=0;I<O;++I)i.point((G=B[I])[0],G[1]);i.lineEnd()}return}L>1&&D&2&&k.push(k.pop().concat(k.shift())),u.push(k.filter(uat))}}return h}}function uat(t){return t.length>1}function fat(t,e){return((t=t.x)[0]<0?t[1]-b0-_i:b0-t[1])-((e=e.x)[0]<0?e[1]-b0-_i:b0-e[1])}const kie=eAe(function(){return!0},dat,pat,[-Qi,-b0]);function dat(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,s){var o=a>0?Qi:-Qi,l=Wa(a-e);Wa(l-Qi)<_i?(t.point(e,n=(n+s)/2>0?b0:-b0),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(o,n),t.point(a,n),i=0):r!==o&&l>=Qi&&(Wa(e-r)<_i&&(e-=r*_i),Wa(a-o)<_i&&(a-=o*_i),n=hat(e,n,a,s),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(o,n),i=0),t.point(e=a,n=s),r=o},lineEnd:function(){t.lineEnd(),e=n=NaN},clean:function(){return 2-i}}}function hat(t,e,n,r){var i,a,s=Gr(t-n);return Wa(s)>_i?Xq((Gr(e)*(a=ei(r))*Gr(n)-Gr(r)*(i=ei(e))*Gr(t))/(i*a*s)):(e+r)/2}function pat(t,e,n,r){var i;if(t==null)i=n*b0,r.point(-Qi,i),r.point(0,i),r.point(Qi,i),r.point(Qi,0),r.point(Qi,-i),r.point(0,-i),r.point(-Qi,-i),r.point(-Qi,0),r.point(-Qi,i);else if(Wa(t[0]-e[0])>_i){var a=t[0]<e[0]?Qi:-Qi;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}function mat(t){var e=ei(t),n=2*qr,r=e>0,i=Wa(e)>_i;function a(u,f,h,p){cat(p,t,n,h,u,f)}function s(u,f){return ei(u)*ei(f)>e}function o(u){var f,h,p,A,g;return{lineStart:function(){A=p=!1,g=1},point:function(w,T){var C=[w,T],M,D=s(w,T),k=r?D?0:c(w,T):D?c(w+(w<0?Qi:-Qi),T):0;if(!f&&(A=p=D)&&u.lineStart(),D!==p&&(M=l(f,C),(!M||z9(f,M)||z9(C,M))&&(C[2]=1)),D!==p)g=0,D?(u.lineStart(),M=l(C,f),u.point(M[0],M[1])):(M=l(f,C),u.point(M[0],M[1],2),u.lineEnd()),f=M;else if(i&&f&&r^D){var I;!(k&h)&&(I=l(C,f,!0))&&(g=0,r?(u.lineStart(),u.point(I[0][0],I[0][1]),u.point(I[1][0],I[1][1]),u.lineEnd()):(u.point(I[1][0],I[1][1]),u.lineEnd(),u.lineStart(),u.point(I[0][0],I[0][1],3)))}D&&(!f||!z9(f,C))&&u.point(C[0],C[1]),f=C,p=D,h=k},lineEnd:function(){p&&u.lineEnd(),f=null},clean:function(){return g|(A&&p)<<1}}}function l(u,f,h){var p=vy(u),A=vy(f),g=[1,0,0],w=E_(p,A),T=V7(w,w),C=w[0],M=T-C*C;if(!M)return!h&&u;var D=e*T/M,k=-e*C/M,I=E_(g,w),L=j7(g,D),O=j7(w,k);jI(L,O);var B=I,G=V7(L,B),j=V7(B,B),z=G*G-j*(V7(L,L)-1);if(!(z<0)){var Q=E2(z),ee=j7(B,(-G-Q)/j);if(jI(ee,L),ee=NR(ee),!h)return ee;var Z=u[0],X=f[0],K=u[1],se=f[1],ae;X<Z&&(ae=Z,Z=X,X=ae);var J=X-Z,oe=Wa(J-Qi)<_i,te=oe||J<_i;if(!oe&&se<K&&(ae=K,K=se,se=ae),te?oe?K+se>0^ee[1]<(Wa(ee[0]-Z)<_i?K:se):K<=ee[1]&&ee[1]<=se:J>Qi^(Z<=ee[0]&&ee[0]<=X)){var he=j7(B,(-G+Q)/j);return jI(he,L),[ee,NR(he)]}}}function c(u,f){var h=r?t:Qi-t,p=0;return u<-h?p|=1:u>h&&(p|=2),f<-h?p|=4:f>h&&(p|=8),p}return eAe(s,o,a,r?[0,-t]:[-Qi,t-Qi])}function Aat(t,e,n,r,i,a){var s=t[0],o=t[1],l=e[0],c=e[1],u=0,f=1,h=l-s,p=c-o,A;if(A=n-s,!(!h&&A>0)){if(A/=h,h<0){if(A<u)return;A<f&&(f=A)}else if(h>0){if(A>f)return;A>u&&(u=A)}if(A=i-s,!(!h&&A<0)){if(A/=h,h<0){if(A>f)return;A>u&&(u=A)}else if(h>0){if(A<u)return;A<f&&(f=A)}if(A=r-o,!(!p&&A>0)){if(A/=p,p<0){if(A<u)return;A<f&&(f=A)}else if(p>0){if(A>f)return;A>u&&(u=A)}if(A=a-o,!(!p&&A<0)){if(A/=p,p<0){if(A>f)return;A>u&&(u=A)}else if(p>0){if(A<u)return;A<f&&(f=A)}return u>0&&(t[0]=s+u*h,t[1]=o+u*p),f<1&&(e[0]=s+f*h,e[1]=o+f*p),!0}}}}}var Dw=1e9,G7=-Dw;function gat(t,e,n,r){function i(c,u){return t<=c&&c<=n&&e<=u&&u<=r}function a(c,u,f,h){var p=0,A=0;if(c==null||(p=s(c,f))!==(A=s(u,f))||l(c,u)<0^f>0)do h.point(p===0||p===3?t:n,p>1?r:e);while((p=(p+f+4)%4)!==A);else h.point(u[0],u[1])}function s(c,u){return Wa(c[0]-t)<_i?u>0?0:3:Wa(c[0]-n)<_i?u>0?2:1:Wa(c[1]-e)<_i?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var f=s(c,1),h=s(u,1);return f!==h?f-h:f===0?u[1]-c[1]:f===1?c[0]-u[0]:f===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,f=Q2e(),h,p,A,g,w,T,C,M,D,k,I,L={point:O,lineStart:z,lineEnd:Q,polygonStart:G,polygonEnd:j};function O(Z,X){i(Z,X)&&u.point(Z,X)}function B(){for(var Z=0,X=0,K=p.length;X<K;++X)for(var se=p[X],ae=1,J=se.length,oe=se[0],te,he,me=oe[0],de=oe[1];ae<J;++ae)te=me,he=de,oe=se[ae],me=oe[0],de=oe[1],he<=r?de>r&&(me-te)*(r-he)>(de-he)*(t-te)&&++Z:de<=r&&(me-te)*(r-he)<(de-he)*(t-te)&&--Z;return Z}function G(){u=f,h=[],p=[],I=!0}function j(){var Z=B(),X=I&&Z,K=(h=F5(h)).length;(X||K)&&(c.polygonStart(),X&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),K&&K2e(h,o,Z,a,c),c.polygonEnd()),u=c,h=p=A=null}function z(){L.point=ee,p&&p.push(A=[]),k=!0,D=!1,C=M=NaN}function Q(){h&&(ee(g,w),T&&D&&f.rejoin(),h.push(f.result())),L.point=O,D&&u.lineEnd()}function ee(Z,X){var K=i(Z,X);if(p&&A.push([Z,X]),k)g=Z,w=X,T=K,k=!1,K&&(u.lineStart(),u.point(Z,X));else if(K&&D)u.point(Z,X);else{var se=[C=Math.max(G7,Math.min(Dw,C)),M=Math.max(G7,Math.min(Dw,M))],ae=[Z=Math.max(G7,Math.min(Dw,Z)),X=Math.max(G7,Math.min(Dw,X))];Aat(se,ae,t,e,n,r)?(D||(u.lineStart(),u.point(se[0],se[1])),u.point(ae[0],ae[1]),K||u.lineEnd(),I=!1):K&&(u.lineStart(),u.point(Z,X),I=!1)}C=Z,M=X,D=K}return L}}var Lj,Oj,$9,q9,M_={sphere:Hc,point:Hc,lineStart:xat,lineEnd:Hc,polygonStart:Hc,polygonEnd:Hc};function xat(){M_.point=yat,M_.lineEnd=vat}function vat(){M_.point=M_.lineEnd=Hc}function yat(t,e){t*=qr,e*=qr,Oj=t,$9=Gr(e),q9=ei(e),M_.point=_at}function _at(t,e){t*=qr,e*=qr;var n=Gr(e),r=ei(e),i=Wa(t-Oj),a=ei(i),s=Gr(i),o=r*s,l=q9*n-$9*r*a,c=$9*n+q9*r*a;Lj.add(wd(E2(o*o+l*l),c)),Oj=t,$9=n,q9=r}function bat(t){return Lj=new u2,ek(t,M_),+Lj}var Fj=[null,null],wat={type:"LineString",coordinates:Fj};function Zg(t,e){return Fj[0]=t,Fj[1]=e,bat(wat)}var Lie={Feature:function(t,e){return BR(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(BR(n[r].geometry,e))return!0;return!1}},Oie={Sphere:function(){return!0},Point:function(t,e){return Fie(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Fie(n[r],e))return!0;return!1},LineString:function(t,e){return Iie(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Iie(n[r],e))return!0;return!1},Polygon:function(t,e){return Bie(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Bie(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(BR(n[r],e))return!0;return!1}};function BR(t,e){return t&&Oie.hasOwnProperty(t.type)?Oie[t.type](t,e):!1}function Fie(t,e){return Zg(t,e)===0}function Iie(t,e){for(var n,r,i,a=0,s=t.length;a<s;a++){if(r=Zg(t[a],e),r===0||a>0&&(i=Zg(t[a],t[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<TR*i))return!0;n=r}return!1}function Bie(t,e){return!!J2e(t.map(Sat),tAe(e))}function Sat(t){return t=t.map(tAe),t.pop(),t}function tAe(t){return[t[0]*qr,t[1]*qr]}function Tat(t,e){return(t&&Lie.hasOwnProperty(t.type)?Lie[t.type]:BR)(t,e)}function Uie(t,e,n){var r=z8(t,e-_i,n).concat(e);return function(i){return r.map(function(a){return[i,a]})}}function Vie(t,e,n){var r=z8(t,e-_i,n).concat(e);return function(i){return r.map(function(a){return[a,i]})}}function Eat(){var t,e,n,r,i,a,s,o,l=10,c=l,u=90,f=360,h,p,A,g,w=2.5;function T(){return{type:"MultiLineString",coordinates:C()}}function C(){return z8(U7(r/u)*u,n,u).map(A).concat(z8(U7(o/f)*f,s,f).map(g)).concat(z8(U7(e/l)*l,t,l).filter(function(M){return Wa(M%u)>_i}).map(h)).concat(z8(U7(a/c)*c,i,c).filter(function(M){return Wa(M%f)>_i}).map(p))}return T.lines=function(){return C().map(function(M){return{type:"LineString",coordinates:M}})},T.outline=function(){return{type:"Polygon",coordinates:[A(r).concat(g(s).slice(1),A(n).reverse().slice(1),g(o).reverse().slice(1))]}},T.extent=function(M){return arguments.length?T.extentMajor(M).extentMinor(M):T.extentMinor()},T.extentMajor=function(M){return arguments.length?(r=+M[0][0],n=+M[1][0],o=+M[0][1],s=+M[1][1],r>n&&(M=r,r=n,n=M),o>s&&(M=o,o=s,s=M),T.precision(w)):[[r,o],[n,s]]},T.extentMinor=function(M){return arguments.length?(e=+M[0][0],t=+M[1][0],a=+M[0][1],i=+M[1][1],e>t&&(M=e,e=t,t=M),a>i&&(M=a,a=i,i=M),T.precision(w)):[[e,a],[t,i]]},T.step=function(M){return arguments.length?T.stepMajor(M).stepMinor(M):T.stepMinor()},T.stepMajor=function(M){return arguments.length?(u=+M[0],f=+M[1],T):[u,f]},T.stepMinor=function(M){return arguments.length?(l=+M[0],c=+M[1],T):[l,c]},T.precision=function(M){return arguments.length?(w=+M,h=Uie(a,i,90),p=Vie(e,t,w),A=Uie(o,s,90),g=Vie(r,n,w),T):w},T.extentMajor([[-180,-90+_i],[180,90-_i]]).extentMinor([[-180,-80-_i],[180,80+_i]])}function Mat(){return Eat()()}function Kq(t,e){var n=t[0]*qr,r=t[1]*qr,i=e[0]*qr,a=e[1]*qr,s=ei(r),o=Gr(r),l=ei(a),c=Gr(a),u=s*ei(n),f=s*Gr(n),h=l*ei(i),p=l*Gr(i),A=2*M2(E2(gie(a-r)+s*l*gie(i-n))),g=Gr(A),w=A?function(T){var C=Gr(T*=A)/g,M=Gr(A-T)/g,D=M*u+C*h,k=M*f+C*p,I=M*o+C*c;return[wd(k,D)*oo,wd(I,E2(D*D+k*k))*oo]}:function(){return[n*oo,r*oo]};return w.distance=A,w}const jie=t=>t;var C_=1/0,UR=C_,V5=-C_,VR=V5,Hie={point:Cat,lineStart:Hc,lineEnd:Hc,polygonStart:Hc,polygonEnd:Hc,result:function(){var t=[[C_,UR],[V5,VR]];return V5=VR=-(UR=C_=1/0),t}};function Cat(t,e){t<C_&&(C_=t),t>V5&&(V5=t),e<UR&&(UR=e),e>VR&&(VR=e)}function Jq(t){return function(e){var n=new Ij;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Ij(){}Ij.prototype={constructor:Ij,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function eW(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),ek(n,t.stream(Hie)),e(Hie.result()),r!=null&&t.clipExtent(r),t}function nAe(t,e,n){return eW(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],s=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),o=+e[0][0]+(i-s*(r[1][0]+r[0][0]))/2,l=+e[0][1]+(a-s*(r[1][1]+r[0][1]))/2;t.scale(150*s).translate([o,l])},n)}function Nat(t,e,n){return nAe(t,[[0,0],e],n)}function Rat(t,e,n){return eW(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),s=(i-a*(r[1][0]+r[0][0]))/2,o=-a*r[0][1];t.scale(150*a).translate([s,o])},n)}function Dat(t,e,n){return eW(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),s=-a*r[0][0],o=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([s,o])},n)}var Gie=16,Pat=ei(30*qr);function zie(t,e){return+e?Lat(t,e):kat(t)}function kat(t){return Jq({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Lat(t,e){function n(r,i,a,s,o,l,c,u,f,h,p,A,g,w){var T=c-r,C=u-i,M=T*T+C*C;if(M>4*e&&g--){var D=s+h,k=o+p,I=l+A,L=E2(D*D+k*k+I*I),O=M2(I/=L),B=Wa(Wa(I)-1)<_i||Wa(a-f)<_i?(a+f)/2:wd(k,D),G=t(B,O),j=G[0],z=G[1],Q=j-r,ee=z-i,Z=C*Q-T*ee;(Z*Z/M>e||Wa((T*Q+C*ee)/M-.5)>.3||s*h+o*p+l*A<Pat)&&(n(r,i,a,s,o,l,j,z,B,D/=L,k/=L,I,g,w),w.point(j,z),n(j,z,B,D,k,I,c,u,f,h,p,A,g,w))}}return function(r){var i,a,s,o,l,c,u,f,h,p,A,g,w={point:T,lineStart:C,lineEnd:D,polygonStart:function(){r.polygonStart(),w.lineStart=k},polygonEnd:function(){r.polygonEnd(),w.lineStart=C}};function T(O,B){O=t(O,B),r.point(O[0],O[1])}function C(){f=NaN,w.point=M,r.lineStart()}function M(O,B){var G=vy([O,B]),j=t(O,B);n(f,h,u,p,A,g,f=j[0],h=j[1],u=O,p=G[0],A=G[1],g=G[2],Gie,r),r.point(f,h)}function D(){w.point=T,r.lineEnd()}function k(){C(),w.point=I,w.lineEnd=L}function I(O,B){M(i=O,B),a=f,s=h,o=p,l=A,c=g,w.point=M}function L(){n(f,h,u,p,A,g,a,s,i,o,l,c,Gie,r),w.lineEnd=D,D()}return w}}var Oat=Jq({point:function(t,e){this.stream.point(t*qr,e*qr)}});function Fat(t){return Jq({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}function Iat(t,e,n,r,i){function a(s,o){return s*=r,o*=i,[e+t*s,n-t*o]}return a.invert=function(s,o){return[(s-e)/t*r,(n-o)/t*i]},a}function $ie(t,e,n,r,i,a){if(!a)return Iat(t,e,n,r,i);var s=ei(a),o=Gr(a),l=s*t,c=o*t,u=s/t,f=o/t,h=(o*n-s*e)/t,p=(o*e+s*n)/t;function A(g,w){return g*=r,w*=i,[l*g-c*w+e,n-c*g-l*w]}return A.invert=function(g,w){return[r*(u*g-f*w+h),i*(p-f*g-u*w)]},A}function Bat(t){return Uat(function(){return t})()}function Uat(t){var e,n=150,r=480,i=250,a=0,s=0,o=0,l=0,c=0,u,f=0,h=1,p=1,A=null,g=kie,w=null,T,C,M,D=jie,k=.5,I,L,O,B,G;function j(Z){return O(Z[0]*qr,Z[1]*qr)}function z(Z){return Z=O.invert(Z[0],Z[1]),Z&&[Z[0]*oo,Z[1]*oo]}j.stream=function(Z){return B&&G===Z?B:B=Oat(Fat(u)(g(I(D(G=Z)))))},j.preclip=function(Z){return arguments.length?(g=Z,A=void 0,ee()):g},j.postclip=function(Z){return arguments.length?(D=Z,w=T=C=M=null,ee()):D},j.clipAngle=function(Z){return arguments.length?(g=+Z?mat(A=Z*qr):(A=null,kie),ee()):A*oo},j.clipExtent=function(Z){return arguments.length?(D=Z==null?(w=T=C=M=null,jie):gat(w=+Z[0][0],T=+Z[0][1],C=+Z[1][0],M=+Z[
41521][1]),ee()):w==null?null:[[w,T],[C,M]]},j.scale=function(Z){return arguments.length?(n=+Z,Q()):n},j.translate=function(Z){return arguments.length?(r=+Z[0],i=+Z[1],Q()):[r,i]},j.center=function(Z){return arguments.length?(a=Z[0]%360*qr,s=Z[1]%360*qr,Q()):[a*oo,s*oo]},j.rotate=function(Z){return arguments.length?(o=Z[0]%360*qr,l=Z[1]%360*qr,c=Z.length>2?Z[2]%360*qr:0,Q()):[o*oo,l*oo,c*oo]},j.angle=function(Z){return arguments.length?(f=Z%360*qr,Q()):f*oo},j.reflectX=function(Z){return arguments.length?(h=Z?-1:1,Q()):h<0},j.reflectY=function(Z){return arguments.length?(p=Z?-1:1,Q()):p<0},j.precision=function(Z){return arguments.length?(I=zie(L,k=Z*Z),ee()):E2(k)},j.fitExtent=function(Z,X){return nAe(j,Z,X)},j.fitSize=function(Z,X){return Nat(j,Z,X)},j.fitWidth=function(Z,X){return Rat(j,Z,X)},j.fitHeight=function(Z,X){return Dat(j,Z,X)};function Q(){var Z=$ie(n,0,0,h,p,f).apply(null,e(a,s)),X=$ie(n,r-Z[0],i-Z[1],h,p,f);return u=X2e(o,l,c),L=Pj(e,X),O=Pj(u,L),I=zie(L,k),ee()}function ee(){return B=G=null,j}return function(){return e=t.apply(this,arguments),j.invert=e.invert&&z,Q()}}function Vat(t){return function(e,n){var r=E2(e*e+n*n),i=t(r),a=Gr(i),s=ei(i);return[wd(e*a,r*s),M2(r&&n*a/r)]}}function tW(t,e){return[t,Wit(Yit((b0+e)/2))]}tW.invert=function(t,e){return[t,2*Xq(qit(e))-b0]};function rAe(t,e){var n=ei(e),r=1+ei(t)*n;return[n*Gr(t)/r,Gr(e)/r]}rAe.invert=Vat(function(t){return 2*Xq(t)});function jat(){return Bat(rAe).scale(250).clipAngle(142)}function Bj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Hat(t){if(Array.isArray(t))return t}function Gat(t){if(Array.isArray(t))return Bj(t)}function mS(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function zat(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $at(t,e,n){return e=jR(e),tst(t,aAe()?Reflect.construct(e,[],jR(t).constructor):e.apply(t,n))}function iAe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qat(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gi(t,e){return t.get(mS(t,e))}function bA(t,e,n){iAe(t,e),e.set(t,n)}function wA(t,e,n){return t.set(mS(t,e),n),n}function Wat(t,e){iAe(t,e),e.add(t)}function Zat(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,oAe(r.key),r)}}function Yat(t,e,n){return e&&Zat(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function i8(t,e,n){return(e=oAe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jR(t){return jR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jR(t)}function Xat(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uj(t,e)}function aAe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aAe=function(){return!!t})()}function Qat(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Kat(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Jat(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4153In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function est(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4154In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tst(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 zat(t)}
4154function Uj(t,e){return Uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Uj(t,e)}function W9(t,e){return Hat(t)||Kat(t,e)||lAe(t,e)||Jat()}function sAe(t){return Gat(t)||Qat(t)||lAe(t)||est()}function nst(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function oAe(t){var e=nst(t,"string");return typeof e=="symbol"?e:e+""}function lAe(t,e){if(t){if(typeof t=="string")return Bj(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bj(t,e):void 0}}var cAe=function(e){e instanceof Array?e.forEach(cAe):(e.map&&e.map.dispose(),e.dispose())},Vj=function(e){e.geometry&&e.geometry.dispose(),e.material&&cAe(e.material),e.texture&&e.texture.dispose(),e.children&&e.children.forEach(Vj)};function uAe(t,e,n){var r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return{x:n*Math.sin(r)*Math.cos(i),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(i)}}function rst(t){var e=t.x,n=t.y,r=t.z,i=Math.sqrt(e*e+n*n+r*r),a=Math.acos(n/i),s=Math.atan2(r,e);return{lat:90-a*180/Math.PI,lng:90-s*180/Math.PI-(s<-Math.PI/2?360:0),r:i}}function Gx(t){return t*Math.PI/180}var fAe=function(e){return 1-(tW(0,(.5-e)*Math.PI)[1]/Math.PI+1)/2},GI=function(e){return Math.max(0,Math.min(1,fAe(e)))},qie=function(e){return .5-tW.invert(0,(2*(1-e)-1)*Math.PI)[1]/Math.PI},ist=function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=T2().domain([1,0]).range([n,r]).clamp(!0),a=T2().domain([GI(n),GI(r)]).range([1,0]).clamp(!0),s=function(f){return a(GI(i(f)))},o=e.array,l=0,c=o.length;l<c;l+=2)o[l+1]=s(o[l+1]);e.needsUpdate=!0},Wie=function(e,n,r,i){var a=Math.pow(2,e),s=Math.max(0,Math.min(a-1,Math.floor((r+180)*a/360))),o=(90-i)/180;n&&(o=Math.max(0,Math.min(1,fAe(o))));var l=Math.floor(o*a);return[s,l]},jj=function(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=[],l=Math.pow(2,e),c=360/l,u=180/l,f=a===void 0?l-1:a,h=s===void 0?l-1:s,p=r,A=Math.min(l-1,f);p<=A;p++)for(var g=i,w=Math.min(l-1,h);g<=w;g++){var T=g,C=u;if(n){T=g===0?g:qie(g/l)*l;var M=g+1===l?g+1:qie((g+1)/l)*l;C=(M-T)*180/l}var D=-180+(p+.5)*c,k=90-(T*180/l+C/2),I=C;o.push({x:p,y:g,lng:D,lat:k,latLen:I})}return o},ast=6,sst=7,ost=3,lst=90,O1=new WeakMap,GA=new WeakMap,zI=new WeakMap,z7=new WeakMap,Jf=new WeakMap,HR=new WeakMap,y3=new WeakMap,zx=new WeakMap,$7=new WeakSet,cst=(function(t){function e(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.tileUrl,s=i.minLevel,o=s===void 0?0:s,l=i.maxLevel,c=l===void 0?17:l,u=i.mercatorProjection,f=u===void 0?!0:u;return qat(this,e),r=$at(this,e),Wat(r,$7),bA(r,O1,void 0),bA(r,GA,void 0),bA(r,zI,void 0),bA(r,z7,void 0),bA(r,Jf,{}),bA(r,HR,void 0),bA(r,y3,void 0),bA(r,zx,void 0),i8(r,"minLevel",void 0),i8(r,"maxLevel",void 0),i8(r,"thresholds",sAe(new Array(30)).map(function(h,p){return 8/Math.pow(2,p)})),i8(r,"curvatureResolution",5),i8(r,"tileMargin",0),i8(r,"clearTiles",function(){Object.values(gi(Jf,r)).forEach(function(h){h.forEach(function(p){p.obj&&(r.remove(p.obj),Vj(p.obj),delete p.obj)})}),wA(Jf,r,{})}),wA(O1,r,n),r.tileUrl=a,wA(GA,r,f),r.minLevel=o,r.maxLevel=c,r.level=0,r.add(wA(zx,r,new ea(new Fp(gi(O1,r)*.99,180,90),new od({color:0})))),gi(zx,r).visible=!1,gi(zx,r).material.polygonOffset=!0,gi(zx,r).material.polygonOffsetUnits=3,gi(zx,r).material.polygonOffsetFactor=1,r}return Xat(e,t),Yat(e,[{key:"tileUrl",get:function(){return gi(zI,this)},set:function(r){wA(zI,this,r),this.updatePov(gi(y3,this))}},{key:"level",get:function(){return gi(z7,this)},set:function(r){var i,a=this;gi(Jf,this)[r]||mS($7,this,ust).call(this,r);var s=gi(z7,this);if(wA(z7,this,r),!(r===s||s===void 0)){if(gi(zx,this).visible=r>0,gi(Jf,this)[r].forEach(function(l){return l.obj&&(l.obj.material.depthWrite=!0)}
4154),s<r&&((i=gi(Jf,this)[s])===null||i===void 0||i.forEach(function(l){return l.obj&&(l.obj.material.depthWrite=!1)})),s>r)for(var o=r+1;o<=s;o++)gi(Jf,this)[o]&&gi(Jf,this)[o].forEach(function(l){l.obj&&(a.remove(l.obj),Vj(l.obj),delete l.obj)});mS($7,this,Zie).call(this)}}},{key:"updatePov",value:function(r){var i=this;if(!(!r||!(r instanceof XP))){wA(y3,this,r);var a;if(wA(HR,this,function(u){if(!u.hullPnts){var f=360/Math.pow(2,i.level),h=u.lng,p=u.lat,A=u.latLen,g=h-f/2,w=h+f/2,T=p-A/2,C=p+A/2;u.hullPnts=[[p,h],[T,g],[C,g],[T,w],[C,w]].map(function(M){var D=W9(M,2),k=D[0],I=D[1];return uAe(k,I,gi(O1,i))}).map(function(M){var D=M.x,k=M.y,I=M.z;return new Pe(D,k,I)})}return a||(a=new h6,r.updateMatrix(),r.updateMatrixWorld(),a.setFromProjectionMatrix(new Fr().multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse))),u.hullPnts.some(function(M){return a.containsPoint(M.clone().applyMatrix4(i.matrixWorld))})}),this.tileUrl){var s=r.position.clone(),o=s.distanceTo(this.getWorldPosition(new Pe)),l=(o-gi(O1,this))/gi(O1,this),c=this.thresholds.findIndex(function(u){return u&&u<=l});this.level=Math.min(this.maxLevel,Math.max(this.minLevel,c<0?this.thresholds.length:c)),mS($7,this,Zie).call(this)}}}}])})(y0);function ust(t){var e=this;if(t>sst){gi(Jf,this)[t]=[];return}var n=gi(Jf,this)[t]=jj(t,gi(GA,this));n.forEach(function(r){return r.centroid=uAe(r.lat,r.lng,gi(O1,e))}),n.octree=T2e().x(function(r){return r.centroid.x}).y(function(r){return r.centroid.y}).z(function(r){return r.centroid.z}).addAll(n)}function Zie(){var t=this;if(!(!this.tileUrl||this.level===void 0||!gi(Jf,this).hasOwnProperty(this.level))&&!(!gi(HR,this)&&this.level>ast)){var e=gi(Jf,this)[this.level];if(gi(y3,this)){var n=this.worldToLocal(gi(y3,this).position.clone());if(e.octree){var r,i=this.worldToLocal(gi(y3,this).position.clone()),a=(i.length()-gi(O1,this))*ost;e=(r=e.octree).findAllWithinRadius.apply(r,sAe(i).concat([a]))}else{var s=rst(n),o=(s.r/gi(O1,this)-1)*lst,l=o/Math.cos(Gx(s.lat)),c=[s.lng-l,s.lng+l],u=[s.lat+o,s.lat-o],f=Wie(this.level,gi(GA,this),c[0],u[0]),h=W9(f,2),p=h[0],A=h[1],g=Wie(this.level,gi(GA,this),c[1],u[1]),w=W9(g,2),T=w[0],C=w[1];!e.record&&(e.record={});var M=e.record;if(!M.hasOwnProperty("".concat(Math.round((p+T)/2),"_").concat(Math.round((A+C)/2))))e=jj(this.level,gi(GA,this),p,A,T,C).map(function(O){var B="".concat(O.x,"_").concat(O.y);return M.hasOwnProperty(B)?M[B]:(M[B]=O,e.push(O),O)});else{for(var D=[],k=p;k<=T;k++)for(var I=A;I<=C;I++){var L="".concat(k,"_").concat(I);M.hasOwnProperty(L)||(M[L]=jj(this.level,gi(GA,this),k,I,k,I)[0],e.push(M[L])),D.push(M[L])}e=D}}}e.filter(function(O){return!O.obj}).filter(gi(HR,this)||function(){return!0}).forEach(function(O){var B=O.x,G=O.y,j=O.lng,z=O.lat,Q=O.latLen,ee=360/Math.pow(2,t.level);if(!O.obj){var Z=ee*(1-t.tileMargin),X=Q*(1-t.tileMargin),K=Gx(j),se=Gx(-z),ae=new ea(new Fp(gi(O1,t),Math.ceil(Z/t.curvatureResolution),Math.ceil(X/t.curvatureResolution),Gx(90-Z/2)+K,Gx(Z),Gx(90-X/2)+se,Gx(X)),new G2);if(gi(GA,t)){var J=[z+Q/2,z-Q/2].map(function(me){return .5-me/180}),oe=W9(J,2),te=oe[0],he=oe[1];ist(ae.geometry.attributes.uv,te,he)}O.obj=ae}O.loading||(O.loading=!0,new jq().load(t.tileUrl(B,G,t.level),function(me){var de=O.obj;de&&(me.colorSpace=rc,de.material.map=me,de.material.color=null,de.material.needsUpdate=!0,t.add(de)),O.loading=!1}))})}}function fst(t,e,n=2){const r=e&&e.length,i=r?e[0]*n:t.length;let a=dAe(t,0,i,n,!0);const s=[];if(!a||a.next===a.prev)return s;let o,l,c;if(r&&(a=Ast(t,e,a,n)),t.length>80*n){o=t[0],l=t[1];let u=o,f=l;for(let h=n;h<i;h+=n){const p=t[h],A=t[h+1];p<o&&(o=p),A<l&&(l=A),p>u&&(u=p),A>f&&(f=A)}c=Math.max(u-o,f-l),c=c!==0?32767/c:0}return j5(a,s,n,o,l,c,0),s}function dAe(t,e,n,r,i){let a;if(i===Mst(t,e,n,r)>0)for(let s=e;s<n;s+=r)a=Yie(s/r|0,t[s],t[s+1],a);else for(let s=n-r;s>=e;s-=r)a=Yie(s/r|0,t[s],t[s+1],a);return a&&N_(a,a.next)&&(G5(a),a=a.next),a}function yy(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(N_(n,n.next)||Xs(n.prev,n,n.next)===0)){if(G5(n),n=e=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}
vendor: 3,724 bytes, line 4154
4154function j5(t,e,n,r,i,a,s){if(!t)return;!s&&a&&_st(t,r,i,a);let o=t;for(;t.prev!==t.next;){const l=t.prev,c=t.next;if(a?hst(t,r,i,a):dst(t)){e.push(l.i,t.i,c.i),G5(t),t=c.next,o=c.next;continue}if(t=c,t===o){s?s===1?(t=pst(yy(t),e),j5(t,e,n,r,i,a,2)):s===2&&mst(t,e,n,r,i,a):j5(yy(t),e,n,r,i,a,1);break}}}function dst(t){const e=t.prev,n=t,r=t.next;if(Xs(e,n,r)>=0)return!1;const i=e.x,a=n.x,s=r.x,o=e.y,l=n.y,c=r.y,u=Math.min(i,a,s),f=Math.min(o,l,c),h=Math.max(i,a,s),p=Math.max(o,l,c);let A=r.next;for(;A!==e;){if(A.x>=u&&A.x<=h&&A.y>=f&&A.y<=p&&Pw(i,o,a,l,s,c,A.x,A.y)&&Xs(A.prev,A,A.next)>=0)return!1;A=A.next}return!0}function hst(t,e,n,r){const i=t.prev,a=t,s=t.next;if(Xs(i,a,s)>=0)return!1;const o=i.x,l=a.x,c=s.x,u=i.y,f=a.y,h=s.y,p=Math.min(o,l,c),A=Math.min(u,f,h),g=Math.max(o,l,c),w=Math.max(u,f,h),T=Hj(p,A,e,n,r),C=Hj(g,w,e,n,r);let M=t.prevZ,D=t.nextZ;for(;M&&M.z>=T&&D&&D.z<=C;){if(M.x>=p&&M.x<=g&&M.y>=A&&M.y<=w&&M!==i&&M!==s&&Pw(o,u,l,f,c,h,M.x,M.y)&&Xs(M.prev,M,M.next)>=0||(M=M.prevZ,D.x>=p&&D.x<=g&&D.y>=A&&D.y<=w&&D!==i&&D!==s&&Pw(o,u,l,f,c,h,D.x,D.y)&&Xs(D.prev,D,D.next)>=0))return!1;D=D.nextZ}for(;M&&M.z>=T;){if(M.x>=p&&M.x<=g&&M.y>=A&&M.y<=w&&M!==i&&M!==s&&Pw(o,u,l,f,c,h,M.x,M.y)&&Xs(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;D&&D.z<=C;){if(D.x>=p&&D.x<=g&&D.y>=A&&D.y<=w&&D!==i&&D!==s&&Pw(o,u,l,f,c,h,D.x,D.y)&&Xs(D.prev,D,D.next)>=0)return!1;D=D.nextZ}return!0}function pst(t,e){let n=t;do{const r=n.prev,i=n.next.next;!N_(r,i)&&pAe(r,n,n.next,i)&&H5(r,i)&&H5(i,r)&&(e.push(r.i,n.i,i.i),G5(n),G5(n.next),n=t=i),n=n.next}while(n!==t);return yy(n)}function mst(t,e,n,r,i,a){let s=t;do{let o=s.next.next;for(;o!==s.prev;){if(s.i!==o.i&&Sst(s,o)){let l=mAe(s,o);s=yy(s,s.next),l=yy(l,l.next),j5(s,e,n,r,i,a,0),j5(l,e,n,r,i,a,0);return}o=o.next}s=s.next}while(s!==t)}function Ast(t,e,n,r){const i=[];for(let a=0,s=e.length;a<s;a++){const o=e[a]*r,l=a<s-1?e[a+1]*r:t.length,c=dAe(t,o,l,r,!1);c===c.next&&(c.steiner=!0),i.push(wst(c))}i.sort(gst);for(let a=0;a<i.length;a++)n=xst(i[a],n);return n}function gst(t,e){let n=t.x-e.x;if(n===0&&(n=t.y-e.y,n===0)){const r=(t.next.y-t.y)/(t.next.x-t.x),i=(e.next.y-e.y)/(e.next.x-e.x);n=r-i}return n}function xst(t,e){const n=vst(t,e);if(!n)return e;const r=mAe(n,t);return yy(r,r.next),yy(n,n.next)}function vst(t,e){let n=e;const r=t.x,i=t.y;let a=-1/0,s;if(N_(t,n))return n;do{if(N_(t,n.next))return n.next;if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const f=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=r&&f>a&&(a=f,s=n.x<n.next.x?n:n.next,f===r))return s}n=n.next}while(n!==e);if(!s)return null;const o=s,l=s.x,c=s.y;let u=1/0;n=s;do{if(r>=n.x&&n.x>=l&&r!==n.x&&hAe(i<c?r:a,i,l,c,i<c?a:r,i,n.x,n.y)){const f=Math.abs(i-n.y)/(r-n.x);H5(n,t)&&(f<u||f===u&&(n.x>s.x||n.x===s.x&&yst(s,n)))&&(s=n,u=f)}n=n.next}while(n!==o);return s}function yst(t,e){return Xs(t.prev,t,e.prev)<0&&Xs(e.next,t,t.next)<0}function _st(t,e,n,r){let i=t;do i.z===0&&(i.z=Hj(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,bst(i)}function bst(t){let e,n=1;do{let r=t,i;t=null;let a=null;for(e=0;r;){e++;let s=r,o=0;for(let c=0;c<n&&(o++,s=s.nextZ,!!s);c++);let l=n;for(;o>0||l>0&&s;)o!==0&&(l===0||!s||r.z<=s.z)?(i=r,r=r.nextZ,o--):(i=s,s=s.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=s}a.nextZ=null,n*=2}while(e>1);return t}function Hj(t,e,n,r,i){return t=(t-n)*i|0,e=(e-r)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function wst(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}function hAe(t,e,n,r,i,a,s,o){return(i-s)*(e-o)>=(t-s)*(a-o)&&(t-s)*(r-o)>
4154=(n-s)*(e-o)&&(n-s)*(a-o)>=(i-s)*(r-o)}function Pw(t,e,n,r,i,a,s,o){return!(t===s&&e===o)&&hAe(t,e,n,r,i,a,s,o)}function Sst(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!Tst(t,e)&&(H5(t,e)&&H5(e,t)&&Est(t,e)&&(Xs(t.prev,t,e.prev)||Xs(t,e.prev,e))||N_(t,e)&&Xs(t.prev,t,t.next)>0&&Xs(e.prev,e,e.next)>0)}function Xs(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function N_(t,e){return t.x===e.x&&t.y===e.y}function pAe(t,e,n,r){const i=W7(Xs(t,e,n)),a=W7(Xs(t,e,r)),s=W7(Xs(n,r,t)),o=W7(Xs(n,r,e));return!!(i!==a&&s!==o||i===0&&q7(t,n,e)||a===0&&q7(t,r,e)||s===0&&q7(n,t,r)||o===0&&q7(n,e,r))}function q7(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function W7(t){return t>0?1:t<0?-1:0}function Tst(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&pAe(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function H5(t,e){return Xs(t.prev,t,t.next)<0?Xs(t,e,t.next)>=0&&Xs(t,t.prev,e)>=0:Xs(t,e,t.prev)<0||Xs(t,t.next,e)<0}function Est(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,a=(t.y+e.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}function mAe(t,e){const n=Gj(t.i,t.x,t.y),r=Gj(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function Yie(t,e,n,r){const i=Gj(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function G5(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Gj(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Mst(t,e,n,r){let i=0;for(let a=e,s=n-r;a<n;a+=r)i+=(t[s]-t[a])*(t[a+1]+t[s+1]),s=a;return i}function GR(t){const e=[],n=[],r=t[0][0].length;let i=0,a=0;for(const s of t){for(const o of s)for(let l=0;l<r;l++)e.push(o[l]);a&&(i+=a,n.push(i)),a=s.length}return{vertices:e,holes:n,dimensions:r}}function zj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Cst(t){if(Array.isArray(t))return t}function Nst(t){if(Array.isArray(t))return zj(t)}function Rst(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dst(t,e,n){return e=zR(e),Vst(t,AAe()?Reflect.construct(e,[],zR(t).constructor):e.apply(t,n))}function Pst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kst(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Lst(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=nW(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 4155In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{s||n.return==null||n.return()}finally{if(o)throw a}}}}function zR(t){return zR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zR(t)}function Ost(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$j(t,e)}function AAe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AAe=function(){return!!t})()}function Fst(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ist(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}
4155finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Bst(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ust(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vst(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 Rst(t)}function $j(t,e){return $j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$j(t,e)}function qb(t,e){return Cst(t)||Ist(t,e)||nW(t,e)||Bst()}function jst(t){return Nst(t)||Fst(t)||nW(t)||Ust()}function nW(t,e){if(t){if(typeof t=="string")return zj(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zj(t,e):void 0}}var Xie=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=[],i=null;return e.forEach(function(a){if(i){var s=Zg(a,i)*180/Math.PI;if(s>n)for(var o=Kq(i,a),l=i.length>2||a.length>2?U5(i[2]||0,a[2]||0):null,c=l?function(h){return[].concat(jst(o(h)),[l(h)])}:o,u=1/Math.ceil(s/n),f=u;f<1;)r.push(c(f)),f+=u}r.push(i=a)}),r},qj=typeof window<"u"&&window.THREE?window.THREE:{BufferGeometry:da,Float32BufferAttribute:Ui},Hst=new qj.BufferGeometry().setAttribute?"setAttribute":"addAttribute",gAe=(function(t){function e(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;Pst(this,e),r=Dst(this,e),r.type="GeoJsonGeometry",r.parameters={geoJson:n,radius:i,resolution:a};var s=({Point:u,MultiPoint:f,LineString:h,MultiLineString:p,Polygon:A,MultiPolygon:g}[n.type]||function(){return[]})(n.coordinates,i),o=[],l=[],c=0;s.forEach(function(w){var T=o.length;Wb({indices:o,vertices:l},w),r.addGroup(T,o.length-T,c++)}),o.length&&r.setIndex(o),l.length&&r[Hst]("position",new qj.Float32BufferAttribute(l,3));function u(w,T){var C=$I(w[1],w[0],T+(w[2]||0)),M=[];return[{vertices:C,indices:M}]}function f(w,T){var C={vertices:[],indices:[]};return w.map(function(M){return u(M,T)}).forEach(function(M){var D=qb(M,1),k=D[0];Wb(C,k)}),[C]}function h(w,T){for(var C=Xie(w,a).map(function(O){var B=qb(O,3),G=B[0],j=B[1],z=B[2],Q=z===void 0?0:z;return $I(j,G,T+Q)}),M=GR([C]),D=M.vertices,k=Math.round(D.length/3),I=[],L=1;L<k;L++)I.push(L-1,L);return[{vertices:D,indices:I}]}function p(w,T){var C={vertices:[],indices:[]};return w.map(function(M){return h(M,T)}).forEach(function(M){var D=qb(M,1),k=D[0];Wb(C,k)}),[C]}function A(w,T){for(var C=w.map(function(Z){return Xie(Z,a).map(function(X){var K=qb(X,3),se=K[0],ae=K[1],J=K[2],oe=J===void 0?0:J;return $I(ae,se,T+oe)})}),M=GR(C),D=M.vertices,k=M.holes,I=k[0]||1/0,L=D.slice(0,I*3),O=D.slice(I*3),B=new Set(k),G=Math.round(D.length/3),j=[],z=[],Q=1;Q<G;Q++)B.has(Q)||(Q<I?j.push(Q-1,Q):z.push(Q-1-I,Q-I));var ee=[{indices:j,vertices:L}];return k.length&&ee.push({indices:z,vertices:O}),ee}function g(w,T){var C={vertices:[],indices:[]},M={vertices:[],indices:[]};w.map(function(k){return A(k,T)}).forEach(function(k){var I=qb(k,2),L=I[0],O=I[1];Wb(C,L),O&&Wb(M,O)});var D=[C];return M.vertices.length&&D.push(M),D}return r}return Ost(e,t),kst(e)}
4157)(qj.BufferGeometry);function Wb(t,e){var n=Math.round(t.vertices.length/3);Qie(t.vertices,e.vertices),Qie(t.indices,e.indices.map(function(r){return r+n}))}function Qie(t,e){var n=Lst(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(i)}}catch(a){n.e(a)}finally{n.f()}}function $I(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}function Gst(t,e,n=!0){if(!e||!e.isReady)throw new Error("BufferGeometryUtils: Initialized MikkTSpace library required.");if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw new Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function r(s){if(s.normalized||s.isInterleavedBufferAttribute){const o=new Float32Array(s.count*s.itemSize);for(let l=0,c=0;l<s.count;l++)o[c++]=s.getX(l),o[c++]=s.getY(l),s.itemSize>2&&(o[c++]=s.getZ(l));return o}return s.array instanceof Float32Array?s.array:new Float32Array(s.array)}const i=t.index?t.toNonIndexed():t,a=e.generateTangents(r(i.attributes.position),r(i.attributes.normal),r(i.attributes.uv));if(n)for(let s=3;s<a.length;s+=4)a[s]*=-1;return i.setAttribute("tangent",new Is(a,4)),t!==i&&t.copy(i),t}function zst(t,e=!1){const n=t[0].index!==null,r=new Set(Object.keys(t[0].attributes)),i=new Set(Object.keys(t[0].morphAttributes)),a={},s={},o=t[0].morphTargetsRelative,l=new da;let c=0;for(let u=0;u<t.length;++u){const f=t[u];let h=0;if(n!==(f.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(const p in f.attributes){if(!r.has(p))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+'. All geometries must have compatible attributes; make sure "'+p+'" attribute exists among all geometries, or in none of them.'),null;
4157a[p]===void 0&&(a[p]=[]),a[p].push(f.attributes[p]),h++}if(h!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". Make sure all geometries have the same number of attributes."),null;if(o!==f.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const p in f.morphAttributes){if(!i.has(p))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". .morphAttributes must be consistent throughout all geometries."),null;s[p]===void 0&&(s[p]=[]),s[p].push(f.morphAttributes[p])}if(e){let p;if(n)p=f.index.count;else if(f.attributes.position!==void 0)p=f.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+u+". The geometry must have either an index or a position attribute"),null;l.addGroup(c,p,u),c+=p}}if(n){let u=0;const f=[];for(let h=0;h<t.length;++h){const p=t[h].index;for(let A=0;A<p.count;++A)f.push(p.getX(A)+u);u+=t[h].attributes.position.count}l.setIndex(f)}for(const u in a){const f=Wj(a[u]);if(!f)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+u+" attribute."),null;l.setAttribute(u,f)}for(const u in s){const f=s[u][0].length;if(f!==0){l.morphAttributes=l.morphAttributes||{},l.morphAttributes[u]=[];for(let h=0;h<f;++h){const p=[];for(let g=0;g<s[u].length;++g)p.push(s[u][g][h]);const A=Wj(p);if(!A)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+u+" morphAttribute."),null;l.morphAttributes[u].push(A)}}}return l}function Wj(t){let e,n,r,i=-1,a=0;for(let c=0;c<t.length;++c){const u=t[c];if(e===void 0&&(e=u.array.constructor),e!==u.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(n===void 0&&(n=u.itemSize),n!==u.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(r===void 0&&(r=u.normalized),r!==u.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(i===-1&&(i=u.gpuType),i!==u.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;a+=u.count*n}const s=new e(a),o=new Is(s,n,r);let l=0;for(let c=0;c<t.length;++c){const u=t[c];if(u.isInterleavedBufferAttribute){const f=l/n;for(let h=0,p=u.count;h<p;h++)for(let A=0;A<n;A++){const g=u.getComponent(h,A);o.setComponent(h+f,A,g)}}else s.set(u.array,l);l+=u.count*n}return i!==void 0&&(o.gpuType=i),o}function $st(t){return t.isInstancedInterleavedBufferAttribute||t.isInterleavedBufferAttribute?$R(t):t.isInstancedBufferAttribute?new Rg().copy(t):new Is().copy(t)}function qst(t){let e,n=0,r=0;for(let c=0,u=t.length;c<u;++c){const f=t[c];if(e===void 0&&(e=f.array.constructor),e!==f.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=f.array.length,r+=f.itemSize}const i=new Dq(new e(n),r);let a=0;const s=[],o=["getX","getY","getZ","getW"],l=["setX","setY","setZ","setW"];for(let c=0,u=t.length;c<u;c++){const f=t[c],h=f.itemSize,p=f.count,A=new X1(i,h,a,f.normalized);s.push(A),a+=h;for(let g=0;g<p;g++)for(let w=0;w<h;w++)A[l[w]](g,f[o[w]](g))}return s}function $R(t){const e=t.data.array.constructor,n=t.count,r=t.itemSize,i=t.normalized,a=new e(n*r);let s;t.isInstancedInterleavedBufferAttribute?s=new Rg(a,r,i,t.meshPerAttribute):s=new Is(a,r,i);for(let o=0;o<n;o++)s.setX(o,t.getX(o)),r>=2&&s.setY(o,t.getY(o)),r>=3&&s.setZ(o,t.getZ(o)),r>=4&&s.setW(o,t.getW(o));return s}function Wst(t){const e=t.attributes,n=t.morphTargets,r=new Map;for(const i in e){const a=e[i];a.isInterleavedBufferAttribute&&(r.has(a)||r.set(a,$R(a)),e[i]=r.get(a))}for(const i in n){const a=n[i];a.isInterleavedBufferAttribute&&(r.has(a)||r.set(a,$R(a)),n[i]=r.get(a))}}function Zst(t){let e=0;for(const r in t.attributes){const i=t.getAttribute(r);e+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const n=t.getIndex();return e+=n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0,e}function Yst(t,e=1e-4){e=Math.max(e,Number.EPSILON);const n={},r=t.getIndex(),i=t.getAttribute("position"),a=r?r.count:i.count;let s=0;const o=Object.keys(t.attributes),l={},c={}
4157,u=[],f=["getX","getY","getZ","getW"],h=["setX","setY","setZ","setW"];for(let C=0,M=o.length;C<M;C++){const D=o[C],k=t.attributes[D];l[D]=new k.constructor(new k.array.constructor(k.count*k.itemSize),k.itemSize,k.normalized);const I=t.morphAttributes[D];I&&(c[D]||(c[D]=[]),I.forEach((L,O)=>{const B=new L.array.constructor(L.count*L.itemSize);c[D][O]=new L.constructor(B,L.itemSize,L.normalized)}))}const p=e*.5,A=Math.log10(1/e),g=Math.pow(10,A),w=p*g;for(let C=0;C<a;C++){const M=r?r.getX(C):C;let D="";for(let k=0,I=o.length;k<I;k++){const L=o[k],O=t.getAttribute(L),B=O.itemSize;for(let G=0;G<B;G++)D+=`${~~(O[f[G]](M)*g+w)},`}if(D in n)u.push(n[D]);else{for(let k=0,I=o.length;k<I;k++){const L=o[k],O=t.getAttribute(L),B=t.morphAttributes[L],G=O.itemSize,j=l[L],z=c[L];for(let Q=0;Q<G;Q++){const ee=f[Q],Z=h[Q];if(j[Z](s,O[ee](M)),B)for(let X=0,K=B.length;X<K;X++)z[X][Z](s,B[X][ee](M))}}n[D]=s,u.push(s),s++}}const T=t.clone();for(const C in t.attributes){const M=l[C];if(T.setAttribute(C,new M.constructor(M.array.slice(0,s*M.itemSize),M.itemSize,M.normalized)),C in c)for(let D=0;D<c[C].length;D++){const k=c[C][D];T.morphAttributes[C][D]=new k.constructor(k.array.slice(0,s*k.itemSize),k.itemSize,k.normalized)}}return T.setIndex(u),T}function Xst(t,e){if(e===PYe)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===Ine||e===kYe){let n=t.getIndex();if(n===null){const s=[],o=t.getAttribute("position");if(o!==void 0){for(let l=0;l<o.count;l++)s.push(l);t.setIndex(s),n=t.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t}const r=n.count-2,i=[];if(e===Ine)for(let s=1;s<=r;s++)i.push(n.getX(0)),i.push(n.getX(s)),i.push(n.getX(s+1));else for(let s=0;s<r;s++)s%2===0?(i.push(n.getX(s)),i.push(n.getX(s+1)),i.push(n.getX(s+2))):(i.push(n.getX(s+2)),i.push(n.getX(s+1)),i.push(n.getX(s)));i.length/3!==r&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const a=t.clone();return a.setIndex(i),a.clearGroups(),a}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t}function Qst(t){const e=new Pe,n=new Pe,r=new Pe,i=new Pe,a=new Pe,s=new Pe,o=new Pe,l=new Pe,c=new Pe;function u(ae,J,oe,te,he,me,de,Ae){e.fromBufferAttribute(J,he),n.fromBufferAttribute(J,me),r.fromBufferAttribute(J,de);const Se=ae.morphTargetInfluences;if(oe&&Se){o.set(0,0,0),l.set(0,0,0),c.set(0,0,0);for(let Re=0,Ne=oe.length;Re<Ne;Re++){const Fe=Se[Re],Qe=oe[Re];Fe!==0&&(i.fromBufferAttribute(Qe,he),a.fromBufferAttribute(Qe,me),s.fromBufferAttribute(Qe,de),te?(o.addScaledVector(i,Fe),l.addScaledVector(a,Fe),c.addScaledVector(s,Fe)):(o.addScaledVector(i.sub(e),Fe),l.addScaledVector(a.sub(n),Fe),c.addScaledVector(s.sub(r),Fe)))}e.add(o),n.add(l),r.add(c)}ae.isSkinnedMesh&&(ae.applyBoneTransform(he,e),ae.applyBoneTransform(me,n),ae.applyBoneTransform(de,r)),Ae[he*3+0]=e.x,Ae[he*3+1]=e.y,Ae[he*3+2]=e.z,Ae[me*3+0]=n.x,Ae[me*3+1]=n.y,Ae[me*3+2]=n.z,Ae[de*3+0]=r.x,Ae[de*3+1]=r.y,Ae[de*3+2]=r.z}const f=t.geometry,h=t.material;let p,A,g;const w=f.index,T=f.attributes.position,C=f.morphAttributes.position,M=f.morphTargetsRelative,D=f.attributes.normal,k=f.morphAttributes.normal,I=f.groups,L=f.drawRange;let O,B,G,j,z,Q,ee;const Z=new Float32Array(T.count*T.itemSize),X=new Float32Array(D.count*D.itemSize);if(w!==null)if(Array.isArray(h))for(O=0,G=I.length;O<G;O++)for(z=I[O],Q=Math.max(z.start,L.start),ee=Math.min(z.start+z.count,L.start+L.count),B=Q,j=ee;B<j;B+=3)p=w.getX(B),A=w.getX(B+1),g=w.getX(B+2),u(t,T,C,M,p,A,g,Z),u(t,D,k,M,p,A,g,X);else for(Q=Math.max(0,L.start),ee=Math.min(w.count,L.start+L.count),O=Q,G=ee;O<G;O+=3)p=w.getX(O),A=w.getX(O+1),g=w.getX(O+2),u(t,T,C,M,p,A,g,Z),u(t,D,k,M,p,A,g,X);else if(Array.isArray(h))for(O=0,G=I.length;O<G;O++)for(z=I[O],Q=Math.max(z.start,L.start),ee=Math.min(z.start+z.count,L.start+L.count),B=Q,j=ee;B<j;B+=3)p=B,A=B+1,g=B+2,u(t,T,C,M,p,A,g,Z),u(t,D,k,M,p,A,g,X);else for(Q=Math.max(0,L.start),ee=Math.min(T.count,L.start+L.count),O=Q,G=ee;O<G;O+=3)p=O,A=O+1,g=O+2,u(t,T,C,M,p,A,g,Z),u(t,D,k,M,p,A,g,X);const K=new Ui(Z,3),se=new Ui(X,3);return{positionAttribute:T,normalAttribute:D,morphedPositionAttribute:K,morphedNormalAttribute:se}}function Kst(t){if(t.groups.length===0)return console.warn("THREE.BufferGeometryUtils.mergeGroups(): No groups are defined. Nothing to merge."),t;let e=t.groups;if(e=e.sort((s,o)=>s.materialIndex!==o.materialIndex?s.materialIndex-o.materialIndex:s.start-o.start),t.getIndex()===null){const s=t.getAttribute("position"),o=[];for(let l=0;l<s.count;l+=3)o.push(l,l+1,l+2);t.setIndex(o)}const n=t.getIndex(),r=[];for(let s=0;s<e.length;s++){const o=e[s],l=o.start,c=l+o.count;for(let u=l;u<c;u++)r.push(n.getX(u))}t.dispose(),t.setIndex(r);let i=0;for(let s=0;s<e.length;s++){const o=e[s];o.start=i,i+=o.count}let a=e[0];t.groups=[a];for(let s=1;s<e.length;s++){const o=e[s];a.materialIndex===o.materialIndex?a.count+=o.count:(a=o,t.groups.push(a))}return t}function Jst(t,e=Math.PI/3){const n=Math.cos(e),r=(1+1e-10)*100,i=[new Pe,new Pe,new Pe],a=new Pe,s=new Pe,o=new Pe,l=new Pe;function c(g){const w=~~(g.x*r),T=~~(g.y*r),C=~~(g.z*r);return`${w},${T},${C}`}const u=t.index?t.toNonIndexed():t,f=u.attributes.position,h={};for(let g=0,w=f.count/3;g<w;g++){const T=3*g,C=i[0].fromBufferAttribute(f,T+0),M=i[1].fromBufferAttribute(f,T+1),D=i[2].fromBufferAttribute(f,T+2);a.subVectors(D,M),s.subVectors(C,M);const k=new Pe().crossVectors(a,s).normalize();for(let I=0;I<3;I++){const L=i[I],O=c(L);O in h||(h[O]=[]),h[O].push(k)}}const p=new Float32Array(f.count*3),A=new Is(p,3,!1);for(let g=0,w=f.count/3;g<w;g++){const T=3*g,C=i[0].fromBufferAttribute(f,T+0),M=i[1].fromBufferAttribute(f,T+1),D=i[2].fromBufferAttribute(f,T+2);a.subVectors(D,M),s.subVectors(C,M),o.crossVectors(a,s).normalize();for(let k=0;k<3;k++){const I=i[k],L=c(I),O=h[L];l.set(0,0,0);for(let B=0,G=O.length;B<G;B++){const j=O[B];o.dot(j)>n&&l.add(j)}l.normalize(),A.setXYZ(T+k,l.x,l.y,l.z)}}return u.setAttribute("normal",A),u}const rW=Object.freeze(Object.defineProperty({__proto__:null,computeMikkTSpaceTangents:Gst,computeMorphedAttributes:Qst,deepCloneAttribute:$st,deinterleaveAttribute:$R,deinterleaveGeometry:Wst,estimateBytesUsed:Zst,interleaveAttributes:qst,mergeAttributes:Wj,mergeGeometries:zst,mergeGroups:Kst,mergeVertices:Yst,toCreasedNormals:Jst,toTrianglesDrawMode:Xst},Symbol.toStringTag,{value:"Module"}));var un=(function(t){return typeof t=="function"?t:typeof t=="string"?function(e){return e[t]}:function(e){return t}});function qR(t){"@babel/helpers - typeof";return qR=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qR(t)}var eot=/^\s+/,tot=/\s+$/;function br(t,e){if(t=t||"",e=e||{},t instanceof br)return t;if(!(this instanceof br))return new br(t,e);var n=not(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}br.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,a,s,o;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*s+.0722*o},setAlpha:function(e){return this._a=xAe(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Jie(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Jie(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=Kie(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Kie(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return eae(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return sot(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ks(this._r,255)*100)+"%",g:Math.round(ks(this._g,255)*100)+"%",b:Math.round(ks(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ks(this._r,255)*100)+"%, "+Math.round(ks(this._g,255)*100)+"%, "+Math.round(ks(this._b,255)*100)+"%)":"rgba("+Math.round(ks(this._r,255)*100)+"%, "+Math.round(ks(this._g,255)*100)+"%, "+Math.round(ks(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:xot[eae(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+tae(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=br(e);r="#"+tae(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return br(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(uot,arguments)},brighten:function(){return this._applyModification(fot,arguments)},darken:function(){return this._applyModification(dot,arguments)},desaturate:function(){return this._applyModification(oot,arguments)},saturate:function(){return this._applyModification(lot,arguments)},greyscale:function(){return this._applyModification(cot,arguments)},spin:function(){return this._applyModification(hot,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Aot,arguments)},complement:function(){return this._applyCombination(pot,arguments)},monochromatic:function(){return this._applyCombination(got,arguments)},splitcomplement:function(){return this._applyCombination(mot,arguments)},triad:function(){return this._applyCombination(nae,[3])},tetrad:function(){return this._applyCombination(nae,[4])}};br.fromRatio=function(t,e){if(qR(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=kw(t[r]));t=n}return br(t,e)};function not(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;return typeof t=="string"&&(t=bot(t)),qR(t)=="object"&&(Cm(t.r)&&Cm(t.g)&&Cm(t.b)?(e=rot(t.r,t.g,t.b),s=!0,o=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Cm(t.h)&&Cm(t.s)&&Cm(t.v)?(r=kw(t.s),i=kw(t.v),e=aot(t.h,r,i),s=!0,o="hsv"):Cm(t.h)&&Cm(t.s)&&Cm(t.l)&&(r=kw(t.s),a=kw(t.l),e=iot(t.h,r,a),s=!0,o="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=xAe(n),{ok:s,format:t.format||o,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function rot(t,e,n){return{r:ks(t,255)*255,g:ks(e,255)*255,b:ks(n,255)*255}}function Kie(t,e,n){t=ks(t,255),e=ks(e,255),n=ks(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a,s,o=(r+i)/2;if(r==i)a=s=0;else{var l=r-i;switch(s=o>.5?l/(2-r-i):l/(r+i),r){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4;break}a/=6}return{h:a,s,l:o}}function iot(t,e,n){var r,i,a;t=ks(t,360),e=ks(e,100),n=ks(n,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(e===0)r=i=a=n;else{var o=n<.5?n*(1+e):n+e-n*e,l=2*n-o;r=s(l,o,t+1/3),i=s(l,o,t),a=s(l,o,t-1/3)}return{r:r*255,g:i*255,b:a*255}}function Jie(t,e,n){t=ks(t,255),e=ks(e,255),n=ks(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a,s,o=r,l=r-i;if(s=r===0?0:l/r,r==i)a=0;else{switch(r){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4;break}a/=6}return{h:a,s,v:o}}function aot(t,e,n){t=ks(t,360)*6,e=ks(e,100),n=ks(n,100);var r=Math.floor(t),i=t-r,a=n*(1-e),s=n*(1-i*e),o=n*(1-(1-i)*e),l=r%6,c=[n,s,a,a,o,n][l],u=[o,n,n,s,a,a][l],f=[a,a,o,n,n,s][l];return{r:c*255,g:u*255,b:f*255}}function eae(t,e,n,r){var i=[Eh(Math.round(t).toString(16)),Eh(Math.round(e).toString(16)),Eh(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function sot(t,e,n,r,i){var a=[Eh(Math.round(t).toString(16)),Eh(Math.round(e).toString(16)),Eh(Math.round(n).toString(16)),Eh(vAe(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function tae(t,e,n,r){var i=[Eh(vAe(r)),Eh(Math.round(t).toString(16)),Eh(Math.round(e).toString(16)),Eh(Math.round(n).toString(16))];return i.join("")}br.equals=function(t,e){return!t||!e?!1:br(t).toRgbString()==br(e).toRgbString()};br.random=function(){return br.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function oot(t,e){e=e===0?0:e||10;var n=br(t).toHsl();return n.s-=e/100,n.s=tk(n.s),br(n)}function lot(t,e){e=e===0?0:e||10;var n=br(t).toHsl();return n.s+=e/100,n.s=tk(n.s),br(n)}function cot(t){return br(t).desaturate(100)}function uot(t,e){e=e===0?0:e||10;var n=br(t).toHsl();return n.l+=e/100,n.l=tk(n.l),br(n)}function fot(t,e){e=e===0?0:e||10;var n=br(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),br(n)}function dot(t,e){e=e===0?0:e||10;var n=br(t).toHsl();return n.l-=e/100,n.l=tk(n.l),br(n)}function hot(t,e){var n=br(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,br(n)}function pot(t){var e=br(t).toHsl();return e.h=(e.h+180)%360,br(e)}function nae(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=br(t).toHsl(),r=[br(t)],i=360/e,a=1;a<e;a++)r.push(br({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function mot(t){var e=br(t).toHsl(),n=e.h;return[br(t),br({h:(n+72)%360,s:e.s,l:e.l}),br({h:(n+216)%360,s:e.s,l:e.l})]}function Aot(t,e,n){e=e||6,n=n||30;var r=br(t).toHsl(),i=360/n,a=[br(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(br(r));return a}function got(t,e){e=e||6;for(var n=br(t).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/e;e--;)s.push(br({h:r,s:i,v:a})),a=(a+o)%1;return s}br.mix=function(t,e,n){n=n===0?0:n||50;var r=br(t).toRgb(),i=br(e).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return br(s)};br.readability=function(t,e){var n=br(t),r=br(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};br.isReadable=function(t,e,n){var r=br.r
vendor: 1,863 bytes, line 4157
4157eadability(t,e),i,a;switch(a=!1,i=wot(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a};br.mostReadable=function(t,e,n){var r=null,i=0,a,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var c=0;c<e.length;c++)a=br.readability(t,e[c]),a>i&&(i=a,r=br(e[c]));return br.isReadable(t,r,{level:o,size:l})||!s?r:(n.includeFallbackColors=!1,br.mostReadable(t,["#fff","#000"],n))};var Zj=br.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
41570",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},xot=br.hexNames=vot(Zj);function vot(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function xAe(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ks(t,e){yot(t)&&(t="100%");var n=_ot(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function tk(t){return Math.min(1,Math.max(0,t))}function Q0(t){return parseInt(t,16)}function yot(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function _ot(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Eh(t){return t.length==1?"0"+t:""+t}function kw(t){return t<=1&&(t=t*100+"%"),t}function vAe(t){return Math.round(parseFloat(t)*255).toString(16)}function rae(t){return Q0(t)/255}var ph=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"
4157+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Cm(t){return!!ph.CSS_UNIT.exec(t)}function bot(t){t=t.replace(eot,"").replace(tot,"").toLowerCase();var e=!1;if(Zj[t])t=Zj[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=ph.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=ph.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ph.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=ph.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ph.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=ph.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ph.hex8.exec(t))?{r:Q0(n[1]),g:Q0(n[2]),b:Q0(n[3]),a:rae(n[4]),format:e?"name":"hex8"}:(n=ph.hex6.exec(t))?{r:Q0(n[1]),g:Q0(n[2]),b:Q0(n[3]),format:e?"name":"hex"}:(n=ph.hex4.exec(t))?{r:Q0(n[1]+""+n[1]),g:Q0(n[2]+""+n[2]),b:Q0(n[3]+""+n[3]),a:rae(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=ph.hex3.exec(t))?{r:Q0(n[1]+""+n[1]),g:Q0(n[2]+""+n[2]),b:Q0(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function wot(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}function Yj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Sot(t){if(Array.isArray(t))return t}function Tot(t){if(Array.isArray(t))return Yj(t)}function yAe(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function Eot(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rc(t,e){return t.get(yAe(t,e))}function a8(t,e,n){Eot(t,e),e.set(t,n)}function Z7(t,e,n){return t.set(yAe(t,e),n),n}function Cot(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,Iot(r.key),r)}}function Not(t,e,n){return e&&Cot(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rot(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dot(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Pot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4158In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kot(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4159In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lot(t,e){return Sot(t)||Dot(t,e)||_Ae(t,e)||Pot()}function Oot(t){return Tot(t)||Rot(t)||_Ae(t)||kot()}function Fot(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Iot(t){var e=Fot(t,"string");return typeof e=="symbol"?e:e+""}function _Ae(t,e){if(t){if(typeof t=="string")return Yj(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yj(t,e):void 0}}var s8=new WeakMap,Zb=new WeakMap,o8=new WeakMap,qI=new WeakMap,WI=new WeakMap,ZI=new WeakMap,Bot=(function(){function t(){Mot(this,t),a8(this,s8,new Map),a8(this,Zb,new Map),a8(this,o8,function(e){return e}),a8(this,qI,function(){return{}}),a8(this,WI,function(){}),a8(this,ZI,function(){})}return Not(t,[{key:"getObj",value:function(n){return Rc(s8,this).get(Rc(o8,this).call(this,n))}},{key:"getData",value:function(n){return Rc(Zb,this).get(n)}},{key:"entries",value:function(){return Oot(Rc(Zb,this).entries()).map(function(n){var r=Lot(n,2),i=r[0],a=r[1];return[a,i]})}},{key:"id",value:function(n){return Z7(o8,this,un(n)),this}},{key:"onCreateObj",value:function(n){return Z7(qI,this,n),this}}
4159,{key:"onUpdateObj",value:function(n){return Z7(WI,this,n),this}},{key:"onRemoveObj",value:function(n){return Z7(ZI,this,n),this}},{key:"digest",value:function(n){var r=this;n.filter(function(a){return!Rc(s8,r).has(Rc(o8,r).call(r,a))}).forEach(function(a){var s=Rc(qI,r).call(r,a);Rc(s8,r).set(Rc(o8,r).call(r,a),s),Rc(Zb,r).set(s,a)});var i=new Map(n.map(function(a){return[Rc(o8,r).call(r,a),a]}));return Rc(s8,this).forEach(function(a,s){i.has(s)?Rc(WI,r).call(r,a,i.get(s)):(Rc(ZI,r).call(r,a,s),Rc(s8,r).delete(s),Rc(Zb,r).delete(a))}),this}},{key:"clear",value:function(){return this.digest([]),this}}])})(),Z9={exports:{}},Uot=Z9.exports,iae;function Vot(){return iae||(iae=1,(function(t,e){(function(n,r){t.exports=r()})(Uot,function(){return(function(n){function r(a){if(i[a])return i[a].exports;var s=i[a]={exports:{},id:a,loaded:!1};return n[a].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)})([function(n,r,i){var a=i(1),s=(function(){function o(l,c,u){l===void 0&&(l=NaN),c===void 0&&(c=NaN),u===void 0&&(u=!1),this._minFPS=c,this._maxFPS=l,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new a.default,this._onPause=new a.default,this._onTick=new a.default,this._onTickOncePerFrame=new a.default,u||this.resume()}return o.prototype.updateOnce=function(l){l(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},o.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce())},o.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},o.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(o.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"timeScale",{get:function(){return this._timeScale},set:function(l){this._timeScale!==l&&(this._timeScale=l)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),o.prototype.animateOnce=function(){var l=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return l.onFrame()})},o.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval)if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval;this._isRunning&&this.animateOnce()},o.prototype.update=function(l,c){c===void 0&&(c=!0),this._currentTick++,this._currentTime+=l,this._tickDeltaTime=l,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),c&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},o.prototype.getTimer=function(){return Date.now()},o})();
4159Object.defineProperty(r,"__esModule",{value:!0}),r.default=s},function(n,r,i){(function(a,s){n.exports=s()})(this,function(){return(function(a){function s(l){if(o[l])return o[l].exports;var c=o[l]={exports:{},id:l,loaded:!1};return a[l].call(c.exports,c,c.exports,s),c.loaded=!0,c.exports}var o={};return s.m=a,s.c=o,s.p="",s(0)})([function(a,s){var o=(function(){function l(){this.functions=[]}return l.prototype.add=function(c){return this.functions.indexOf(c)===-1&&(this.functions.push(c),!0)},l.prototype.remove=function(c){var u=this.functions.indexOf(c);return u>-1&&(this.functions.splice(u,1),!0)},l.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,!0)},l.prototype.dispatch=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var f=this.functions.concat();f.forEach(function(h){h.apply(void 0,c)})},Object.defineProperty(l.prototype,"numItems",{get:function(){return this.functions.length},enumerable:!0,configurable:!0}),l})();Object.defineProperty(s,"__esModule",{value:!0}),s.default=o}])})}])})})(Z9)),Z9.exports}var jot=Vot();
vendor: 6,118 bytes, line 4159
4159const R_=fT(jot),f2=11102230246251565e-32,Dc=134217729,Hot=(3+8*f2)*f2;function YI(t,e,n,r,i){let a,s,o,l,c=e[0],u=r[0],f=0,h=0;u>c==u>-c?(a=c,c=e[++f]):(a=u,u=r[++h]);let p=0;if(f<t&&h<n)for(u>c==u>-c?(s=c+a,o=a-(s-c),c=e[++f]):(s=u+a,o=a-(s-u),u=r[++h]),a=s,o!==0&&(i[p++]=o);f<t&&h<n;)u>c==u>-c?(s=a+c,l=s-a,o=a-(s-l)+(c-l),c=e[++f]):(s=a+u,l=s-a,o=a-(s-l)+(u-l),u=r[++h]),a=s,o!==0&&(i[p++]=o);for(;f<t;)s=a+c,l=s-a,o=a-(s-l)+(c-l),c=e[++f],a=s,o!==0&&(i[p++]=o);for(;h<n;)s=a+u,l=s-a,o=a-(s-l)+(u-l),u=r[++h],a=s,o!==0&&(i[p++]=o);return(a!==0||p===0)&&(i[p++]=a),p}function Got(t,e){let n=e[0];for(let r=1;r<t;r++)n+=e[r];return n}function XT(t){return new Float64Array(t)}const zot=(3+16*f2)*f2,$ot=(2+12*f2)*f2,qot=(9+64*f2)*f2*f2,l8=XT(4),aae=XT(8),sae=XT(12),oae=XT(16),pu=XT(4);function Wot(t,e,n,r,i,a,s){let o,l,c,u,f,h,p,A,g,w,T,C,M,D,k,I,L,O;const B=t-i,G=n-i,j=e-a,z=r-a;D=B*z,h=Dc*B,p=h-(h-B),A=B-p,h=Dc*z,g=h-(h-z),w=z-g,k=A*w-(D-p*g-A*g-p*w),I=j*G,h=Dc*j,p=h-(h-j),A=j-p,h=Dc*G,g=h-(h-G),w=G-g,L=A*w-(I-p*g-A*g-p*w),T=k-L,f=k-T,l8[0]=k-(T+f)+(f-L),C=D+T,f=C-D,M=D-(C-f)+(T-f),T=M-I,f=M-T,l8[1]=M-(T+f)+(f-I),O=C+T,f=O-C,l8[2]=C-(O-f)+(T-f),l8[3]=O;let Q=Got(4,l8),ee=$ot*s;if(Q>=ee||-Q>=ee||(f=t-B,o=t-(B+f)+(f-i),f=n-G,c=n-(G+f)+(f-i),f=e-j,l=e-(j+f)+(f-a),f=r-z,u=r-(z+f)+(f-a),o===0&&l===0&&c===0&&u===0)||(ee=qot*s+Hot*Math.abs(Q),Q+=B*u+z*o-(j*c+G*l),Q>=ee||-Q>=ee))return Q;D=o*z,h=Dc*o,p=h-(h-o),A=o-p,h=Dc*z,g=h-(h-z),w=z-g,k=A*w-(D-p*g-A*g-p*w),I=l*G,h=Dc*l,p=h-(h-l),A=l-p,h=Dc*G,g=h-(h-G),w=G-g,L=A*w-(I-p*g-A*g-p*w),T=k-L,f=k-T,pu[0]=k-(T+f)+(f-L),C=D+T,f=C-D,M=D-(C-f)+(T-f),T=M-I,f=M-T,pu[1]=M-(T+f)+(f-I),O=C+T,f=O-C,pu[2]=C-(O-f)+(T-f),pu[3]=O;const Z=YI(4,l8,4,pu,aae);D=B*u,h=Dc*B,p=h-(h-B),A=B-p,h=Dc*u,g=h-(h-u),w=u-g,k=A*w-(D-p*g-A*g-p*w),I=j*c,h=Dc*j,p=h-(h-j),A=j-p,h=Dc*c,g=h-(h-c),w=c-g,L=A*w-(I-p*g-A*g-p*w),T=k-L,f=k-T,pu[0]=k-(T+f)+(f-L),C=D+T,f=C-D,M=D-(C-f)+(T-f),T=M-I,f=M-T,pu[1]=M-(T+f)+(f-I),O=C+T,f=O-C,pu[2]=C-(O-f)+(T-f),pu[3]=O;const X=YI(Z,aae,4,pu,sae);D=o*u,h=Dc*o,p=h-(h-o),A=o-p,h=Dc*u,g=h-(h-u),w=u-g,k=A*w-(D-p*g-A*g-p*w),I=l*c,h=Dc*l,p=h-(h-l),A=l-p,h=Dc*c,g=h-(h-c),w=c-g,L=A*w-(I-p*g-A*g-p*w),T=k-L,f=k-T,pu[0]=k-(T+f)+(f-L),C=D+T,f=C-D,M=D-(C-f)+(T-f),T=M-I,f=M-T,pu[1]=M-(T+f)+(f-I),O=C+T,f=O-C,pu[2]=C-(O-f)+(T-f),pu[3]=O;const K=YI(X,sae,4,pu,oae);return oae[K-1]}function Lw(t,e,n,r,i,a){const s=(e-a)*(n-i),o=(t-i)*(r-a),l=s-o,c=Math.abs(s+o);return Math.abs(l)>=zot*c?l:-Wot(t,e,n,r,i,a,c)}const lae=Math.pow(2,-52),Y7=new Uint32Array(512);class z5{static from(e,n=Kot,r=Jot){const i=e.length,a=new Float64Array(i*2);for(let s=0;s<i;s++){const o=e[s];a[2*s]=n(o),a[2*s+1]=r(o)}return new z5(a)}constructor(e){const n=e.length>>1;if(n>0&&typeof e[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=e;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:e,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,s=e.length>>1;let o=1/0,l=1/0,c=-1/0,u=-1/0;for(let B=0;B<s;B++){const G=e[2*B],j=e[2*B+1];G<o&&(o=G),j<l&&(l=j),G>c&&(c=G),j>u&&(u=j),this._ids[B]=B}const f=(o+c)/2,h=(l+u)/2;let p=0,A=0,g=0;for(let B=0,G=1/0;B<s;B++){const j=XI(f,h,e[2*B],e[2*B+1]);j<G&&(p=B,G=j)}const w=e[2*p],T=e[2*p+1];for(let B=0,G=1/0;B<s;B++){if(B===p)continue;const j=XI(w,T,e[2*B],e[2*B+1]);j<G&&j>0&&(A=B,G=j)}let C=e[2*A],M=e[2*A+1],D=1/0;for(let B=0;B<s;B++){if(B===p||B===A)continue;const G=Xot(w,T,C,M,e[2*B],e[2*B+1]);G<D&&(g=B,D=G)}let k=e[2*g],I=e[2*g+1];if(D===1/0){for(let j=0;j<s;j++)this._dists[j]=e[2*j]-e[0]||e[2*j+1]-e[1];q8(this._ids,this._dists,0,s-1);const B=new Uint32Array(s);let G=0;for(let j=0,z=-1/0;j<s;j++){const Q=this._ids[j],ee=this._dists[Q];ee>z&&(B[G++]=Q,z=ee)}this.hull=B.subarray(0,G),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(Lw(w,T,C,M,k,I)<0){const B=A,G=C,j=M;A=g,C=k,M=I,g=B,k=G,I=j}const L=Qot(w,T,C,M,k,I);this._cx=L.x,this._cy=L.y;for(let B=0;B<s;B++)this._dists[B]=XI(e[2*B],e[2*B+1],L.x,L.y);q8(this._ids,this._dists,0,s-1),this._hullStart=p;let O=3;r[p]=n[g]=A,r[A]=n[p]=g,r[g]=n[A]=p,i[p]=0,i[A]=1,i[g]=2,a.fill(-1),a[this._hashKey(w,T)]=p,a[this._hashKey(C,M)]=A,a[this._hashKey(k,I)]=g,this.trianglesLen=0,this._addTriangle(p,A,g,-1,-1,-1);for(let B=0,G=0,j=0;B<this._ids.length;B++){const z=this._ids[B],Q=e[2*z],ee=e[2*z+1];if(B>0&&Math.abs(Q-G)<=lae&&Math.abs(ee-j)<=lae||(G=Q,j=ee,z===p||z===A||z===g))continue;let Z=0;for(let J=0,oe=this._hashKey(Q,ee);J<this._hashSize&&(Z=a[(oe+J)%this._hashSize],!(Z!==-1&&Z!==r[Z]));J++);Z=n[Z];let X=Z,K;for(;K=r[X],Lw(Q,ee,e[2*X],e[2*X+1],e[2*K],e[2*K+1])>=0;)if(X=K,X===Z){X=-1;break}if(X===-1)continue;let se=this._addTriangle(X,z,r[X],-1,-1,i[X]);i[z]=this._legalize(se+2),i[X]=se,O++;let ae=r[X];for(;K=r[ae],Lw(Q,ee,e[2*ae],e[2*ae+1],e[2*K],e[2*K+1])<0;)se=this._addTriangle(ae,z,K,i[z],-1,i[ae]),i[z]=this._legalize(se+2),r[ae]=ae,O--,ae=K;if(X===Z)for(;K=n[X],Lw(Q,ee,e[2*K],e[2*K+1],e[2*X],e[2*X+1])<0;)se=this._addTriangle(K,z,X,-1,i[X],i[K]),this._legalize(se+2),i[K]=se,r[X]=X,O--,X=K;this._hullStart=n[z]=X,r[X]=n[ae]=z,r[z]=ae,a[this._hashKey(Q,ee)]=z,a[this._hashKey(e[2*X],e[2*X+1])]=X}this.hull=new Uint32Array(O);for(let B=0,G=this._hullStart;B<O;B++)this.hull[B]=G,G=r[G];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,n){return Math.floor(Zot(e-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,s=0;for(;;){const o=r[e],l=e-e%3;if(s=l+(e+2)%3,o===-1){if(a===0)break;e=Y7[--a];continue}const c=o-o%3,u=l+(e+1)%3,f=c+(o+2)%3,h=n[s],p=n[e],A=n[u],g=n[f];
4159if(Yot(i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*A],i[2*A+1],i[2*g],i[2*g+1])){n[e]=g,n[o]=h;const T=r[f];if(T===-1){let M=this._hullStart;do{if(this._hullTri[M]===f){this._hullTri[M]=e;break}M=this._hullPrev[M]}while(M!==this._hullStart)}this._link(e,T),this._link(o,r[s]),this._link(s,f);const C=c+(o+1)%3;a<Y7.length&&(Y7[a++]=C)}else{if(a===0)break;e=Y7[--a]}}return s}_link(e,n){this._halfedges[e]=n,n!==-1&&(this._halfedges[n]=e)}_addTriangle(e,n,r,i,a,s){const o=this.trianglesLen;return this._triangles[o]=e,this._triangles[o+1]=n,this._triangles[o+2]=r,this._link(o,i),this._link(o+1,a),this._link(o+2,s),this.trianglesLen+=3,o}}function Zot(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}function XI(t,e,n,r){const i=t-n,a=e-r;return i*i+a*a}function Yot(t,e,n,r,i,a,s,o){const l=t-s,c=e-o,u=n-s,f=r-o,h=i-s,p=a-o,A=l*l+c*c,g=u*u+f*f,w=h*h+p*p;return l*(f*w-g*p)-c*(u*w-g*h)+A*(u*p-f*h)<0}function Xot(t,e,n,r,i,a){const s=n-t,o=r-e,l=i-t,c=a-e,u=s*s+o*o,f=l*l+c*c,h=.5/(s*c-o*l),p=(c*u-o*f)*h,A=(s*f-l*u)*h;return p*p+A*A}function Qot(t,e,n,r,i,a){const s=n-t,o=r-e,l=i-t,c=a-e,u=s*s+o*o,f=l*l+c*c,h=.5/(s*c-o*l),p=t+(c*u-o*f)*h,A=e+(s*f-l*u)*h;return{x:p,y:A}}function q8(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=t[i],s=e[a];let o=i-1;for(;o>=n&&e[t[o]]>s;)t[o+1]=t[o--];t[o+1]=a}else{const i=n+r>>1;let a=n+1,s=r;Yb(t,i,a),e[t[n]]>e[t[r]]&&Yb(t,n,r),e[t[a]]>e[t[r]]&&Yb(t,a,r),e[t[n]]>e[t[a]]&&Yb(t,n,a);const o=t[a],l=e[o];for(;;){do a++;while(e[t[a]]<l);do s--;while(e[t[s]]>l);if(s<a)break;Yb(t,a,s)}t[n+1]=t[s],t[s]=o,r-a+1>=s-n?(q8(t,e,a,r),q8(t,e,n,s-1)):(q8(t,e,n,s-1),q8(t,e,a,r))}}function Yb(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Kot(t){return t[0]}function Jot(t){return t[1]}function elt(t,e){var n,r,i=0,a,s,o,l,c,u,f,h=t[0],p=t[1],A=e.length;for(n=0;n<A;n++){r=0;var g=e[n],w=g.length-1;if(u=g[0],u[0]!==g[w][0]&&u[1]!==g[w][1])throw new Error("First and last coordinates in a ring must be the same");for(s=u[0]-h,o=u[1]-p,r;r<w;r++){if(f=g[r+1],l=f[0]-h,c=f[1]-p,o===0&&c===0){if(l<=0&&s>=0||s<=0&&l>=0)return 0}else if(c>=0&&o<=0||c<=0&&o>=0){if(a=Lw(s,l,o,c,0,0),a===0)return 0;(a>0&&c>0&&o<=0||a<0&&c<=0&&o>0)&&i++}u=f,o=c,s=l}}return i%2!==0}
4159function tlt(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function nlt(t){return t.type==="Feature"?t.geometry:t}function rlt(t,e,n={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const r=tlt(t),i=nlt(e),a=i.type,s=e.bbox;let o=i.coordinates;if(s&&ilt(r,s)===!1)return!1;a==="Polygon"&&(o=[o]);let l=!1;for(var c=0;c<o.length;++c){const u=elt(r,o[c]);if(u===0)return!n.ignoreBoundary;u&&(l=!0)}return l}function ilt(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}var alt=rlt;const cae=1e-6;class Rv{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,n){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,n){this._+=`L${this._x1=+e},${this._y1=+n}`}arc(e,n,r){e=+e,n=+n,r=+r;const i=e+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>cae||Math.abs(this._y1-a)>cae)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${e-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(e,n,r,i){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Xj{constructor(){this._=[]}moveTo(e,n){this._.push([e,n])}closePath(){this._.push(this._[0].slice())}lineTo(e,n){this._.push([e,n])}value(){return this._.length?this._:null}}class slt{constructor(e,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(e.points.length*2),this.vectors=new Float64Array(e.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:n,triangles:r},vectors:i}=this;let a,s;const o=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let g=0,w=0,T=r.length,C,M;g<T;g+=3,w+=2){const D=r[g]*2,k=r[g+1]*2,I=r[g+2]*2,L=e[D],O=e[D+1],B=e[k],G=e[k+1],j=e[I],z=e[I+1],Q=B-L,ee=G-O,Z=j-L,X=z-O,K=(Q*X-ee*Z)*2;if(Math.abs(K)<1e-9){if(a===void 0){a=s=0;for(const ae of n)a+=e[ae*2],s+=e[ae*2+1];a/=n.length,s/=n.length}const se=1e9*Math.sign((a-L)*X-(s-O)*Z);C=(L+j)/2-se*X,M=(O+z)/2+se*Z}else{const se=1/K,ae=Q*Q+ee*ee,J=Z*Z+X*X;C=L+(X*ae-ee*J)*se,M=O+(Q*J-Z*ae)*se}o[w]=C,o[w+1]=M}let l=n[n.length-1],c,u=l*4,f,h=e[2*l],p,A=e[2*l+1];i.fill(0);for(let g=0;g<n.length;++g)l=n[g],c=u,f=h,p=A,u=l*4,h=e[2*l],A=e[2*l+1],i[c+2]=i[u]=p-A,i[c+3]=i[u+1]=h-f}render(e){const n=e==null?e=new Rv:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:s,vectors:o}=this;if(a.length<=1)return null;for(let u=0,f=r.length;u<f;++u){const h=r[u];if(h<u)continue;const p=Math.floor(u/3)*2,A=Math.floor(h/3)*2,g=s[p],w=s[p+1],T=s[A],C=s[A+1];this._renderSegment(g,w,T,C,e)}let l,c=a[a.length-1];for(let u=0;u<a.length;++u){l=c,c=a[u];const f=Math.floor(i[c]/3)*2,h=s[f],p=s[f+1],A=l*4,g=this._project(h,p,o[A+2],o[A+3]);g&&this._renderSegment(h,p,g[0],g[1],e)}return n&&n.value()}renderBounds(e){const n=e==null?e=new Rv:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(e,n){const r=n==null?n=new Rv:void 0,i=this._clip(e);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let s=2;s<a;s+=2)(i[s]!==i[s-2]||i[s+1]!==i[s-1])&&n.lineTo(i[s],i[s+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let n=0,r=e.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(e){const n=new Xj;return this.renderCell(e,n),n.value()}_renderSegment(e,n,r,i,a){let s;const o=this._regioncode(e,n),l=this._regioncode(r,i);o===0&&l===0?(a.moveTo(e,n),a.lineTo(r,i)):(s=this._clipSegment(e,n,r,i,o,l))&&(a.moveTo(s[0],s[1]),a.lineTo(s[2],s[3]))}contains(e,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(e,n,r)===e}*neighbors(e){const n=this._clip(e);if(n)for(const r of this.delaunay.neighbors(e)){const i=this._clip(r);if(i){e:for(let a=0,s=n.length;a<s;a+=2)for(let o=0,l=i.length;o<l;o+=2)if(n[a]===i[o]&&n[a+1]===i[o+1]&&n[(a+2)%s]===i[(o+l-2)%l]&&n[(a+3)%s]===i[(o+l-1)%l]){yield r;break e}}}}_cell(e){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,tri
vendor: 5,855 bytes, line 4159
4159angles:a}}=this,s=r[e];if(s===-1)return null;const o=[];let l=s;do{const c=Math.floor(l/3);if(o.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,a[l]!==e)break;l=i[l]}while(l!==s&&l!==-1);return o}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(e);if(n===null)return null;const{vectors:r}=this,i=e*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(e,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(e,n))}_clipFinite(e,n){const r=n.length;let i=null,a,s,o=n[r-2],l=n[r-1],c,u=this._regioncode(o,l),f,h=0;for(let p=0;p<r;p+=2)if(a=o,s=l,o=n[p],l=n[p+1],c=u,u=this._regioncode(o,l),c===0&&u===0)f=h,h=0,i?i.push(o,l):i=[o,l];else{let A,g,w,T,C;if(c===0){if((A=this._clipSegment(a,s,o,l,c,u))===null)continue;[g,w,T,C]=A}else{if((A=this._clipSegment(o,l,a,s,u,c))===null)continue;[T,C,g,w]=A,f=h,h=this._edgecode(g,w),f&&h&&this._edge(e,f,h,i,i.length),i?i.push(g,w):i=[g,w]}f=h,h=this._edgecode(T,C),f&&h&&this._edge(e,f,h,i,i.length),i?i.push(T,C):i=[T,C]}if(i)f=h,h=this._edgecode(i[0],i[1]),f&&h&&this._edge(e,f,h,i,i.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(e,n,r,i,a,s){const o=a<s;for(o&&([e,n,r,i,a,s]=[r,i,e,n,s,a]);;){if(a===0&&s===0)return o?[r,i,e,n]:[e,n,r,i];if(a&s)return null;let l,c,u=a||s;u&8?(l=e+(r-e)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=e+(r-e)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-e)/(r-e),l=this.xmax):(c=n+(i-n)*(this.xmin-e)/(r-e),l=this.xmin),a?(e=l,n=c,a=this._regioncode(e,n)):(r=l,i=c,s=this._regioncode(r,i))}}_clipInfinite(e,n,r,i,a,s){let o=Array.from(n),l;if((l=this._project(o[0],o[1],r,i))&&o.unshift(l[0],l[1]),(l=this._project(o[o.length-2],o[o.length-1],a,s))&&o.push(l[0],l[1]),o=this._clipFinite(e,o))for(let c=0,u=o.length,f,h=this._edgecode(o[u-2],o[u-1]);c<u;c+=2)f=h,h=this._edgecode(o[c],o[c+1]),f&&h&&(c=this._edge(e,f,h,o,c),u=o.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(o=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return o}_edge(e,n,r,i,a){for(;n!==r;){let s,o;switch(n){case 5:n=4;continue;case 4:n=6,s=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,s=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,s=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,s=this.xmin,o=this.ymin;break}(i[a]!==s||i[a+1]!==o)&&this.contains(e,s,o)&&(i.splice(a,0,s,o),a+=2)}return a}_project(e,n,r,i){let a=1/0,s,o,l;if(i<0){if(n<=this.ymin)return null;(s=(this.ymin-n)/i)<a&&(l=this.ymin,o=e+(a=s)*r)}else if(i>0){if(n>=this.ymax)return null;(s=(this.ymax-n)/i)<a&&(l=this.ymax,o=e+(a=s)*r)}if(r>0){if(e>=this.xmax)return null;(s=(this.xmax-e)/r)<a&&(o=this.xmax,l=n+(a=s)*i)}else if(r<0){if(e<=this.xmin)return null;(s=(this.xmin-e)/r)<a&&(o=this.xmin,l=n+(a=s)*i)}return[o,l]}_edgecode(e,n){return(e===this.xmin?1:e===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(e,n){return(e<this.xmin?1:e>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let n=0;n<e.length;n+=2){const r=(n+2)%e.length,i=(n+4)%e.length;(e[n]===e[r]&&e[r]===e[i]||e[n+1]===e[r+1]&&e[r+1]===e[i+1])&&(e.splice(r,2),n-=2)}e.length||(e=null)}return e}}const olt=2*Math.PI,c8=Math.pow;function llt(t){return t[0]}function clt(t){return t[1]}function ult(t){const{triangles:e,coords:n}=t;for(let r=0;r<e.length;r+=3){const i=2*e[r],a=2*e[r+1],s=2*e[r+2];if((n[s]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[s+1]-n[i+1])>1e-10)return!1}return!0}function flt(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class iW{static from(e,n=llt,r=clt,i){return new iW("length"in e?dlt(e,n,r,i):Float64Array.from(hlt(e,n,r,i)))}constructor(e){this._delaunator=new z5(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,n=this.points;if(e.hull&&e.hull.length>2&&ult(e)){this.collinear=Int32Array.from({length:n.length/2},(h,p)=>p).sort((h,p)=>n[2*h]-n[2*p]||n[2*h+1]-n[2*p+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],f=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let h=0,p=n.length/2;h<p;++h){const A=flt(n[2*h],n[2*h+1],f);n[2*h]=A[0],n[2*h+1]=A[1]}this._delaunator=new z5(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,s=this.inedges.fill(-1),o=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=a[l%3===2?l-2:l+1];(r[l]===-1||s[u]===-1)&&(s[u]=l)}for(let l=0,c=i.length;l<c;++l)o[i[l]]=l;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],s[i[0]]=1,i.length===2&&(s[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(e){return new slt(this,e)}*neighbors(e){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:s,collinear:o}=this;if(o){const f=o.indexOf(e);f>0&&(yield o[f-1]),f<o.length-1&&(yield o[f+1]);return}const l=n[e];if(l===-1)return;let c=l,u=-1;do{if(yield u=s[c],c=c%3===2?c-2:c+1,s[c]!==e)return;if(c=a[c],c===-1){const f=r[(i[e]+1)%r.length];f!==u&&(yield f);return}}while(c!==l)}find(e,n,r=0){if(e=+e,e!==e||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,e,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(e,n,r){const{inedges:i,hull:a,_hullIndex:s,halfedges:o,triangles:l,points:c}=this;if(i[e]===-1||!c.length)return(e+1)%(c.length>>1);let u=e,f=c8(n-c[e*2],2)+c8(r-c[e*2+1],2);const h=i[e];let p=h;do{let A=l[p];const g=c8(n-c[A*2],2)+c8(r-c[A*2+1],2);
4159if(g<f&&(f=g,u=A),p=p%3===2?p-2:p+1,l[p]!==e)break;if(p=o[p],p===-1){if(p=a[(s[e]+1)%a.length],p!==A&&c8(n-c[p*2],2)+c8(r-c[p*2+1],2)<f)return p;break}}while(p!==h);return u}render(e){const n=e==null?e=new Rv:void 0,{points:r,halfedges:i,triangles:a}=this;for(let s=0,o=i.length;s<o;++s){const l=i[s];if(l<s)continue;const c=a[s]*2,u=a[l]*2;e.moveTo(r[c],r[c+1]),e.lineTo(r[u],r[u+1])}return this.renderHull(e),n&&n.value()}renderPoints(e,n){n===void 0&&(!e||typeof e.moveTo!="function")&&(n=e,e=null),n=n==null?2:+n;const r=e==null?e=new Rv:void 0,{points:i}=this;for(let a=0,s=i.length;a<s;a+=2){const o=i[a],l=i[a+1];e.moveTo(o+n,l),e.arc(o,l,n,0,olt)}return r&&r.value()}renderHull(e){const n=e==null?e=new Rv:void 0,{hull:r,points:i}=this,a=r[0]*2,s=r.length;e.moveTo(i[a],i[a+1]);for(let o=1;o<s;++o){const l=2*r[o];e.lineTo(i[l],i[l+1])}return e.closePath(),n&&n.value()}hullPolygon(){const e=new Xj;return this.renderHull(e),e.value()}renderTriangle(e,n){const r=n==null?n=new Rv:void 0,{points:i,triangles:a}=this,s=a[e*=3]*2,o=a[e+1]*2,l=a[e+2]*2;return n.moveTo(i[s],i[s+1]),n.lineTo(i[o],i[o+1]),n.lineTo(i[l],i[l+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:e}=this;for(let n=0,r=e.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(e){const n=new Xj;return this.renderTriangle(e,n),n.value()}}function dlt(t,e,n,r){const i=t.length,a=new Float64Array(i*2);for(let s=0;s<i;++s){const o=t[s];a[s*2]=e.call(r,o,s,t),a[s*2+1]=n.call(r,o,s,t)}return a}function*hlt(t,e,n,r){let i=0;for(const a of t)yield e.call(r,a,i,t),yield n.call(r,a,i,t),++i}const aW=Math.PI,uae=aW/2,fae=180/aW,dae=aW/180,plt=Math.atan2,hae=Math.cos,mlt=Math.max,Alt=Math.min,pae=Math.sin,glt=Math.sign||function(t){return t>0?1:t<0?-1:0},bAe=Math.sqrt;function xlt(t){return t>1?uae:t<-1?-uae:Math.asin(t)}function wAe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function sf(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function WR(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function ZR(t){var e=bAe(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function sW(t){return[plt(t[1],t[0])*fae,xlt(mlt(-1,Alt(1,t[2])))*fae]}function lp(t){const e=t[0]*dae,n=t[1]*dae,r=hae(n);return[r*hae(e),r*pae(e),pae(n)]}function oW(t){return t=t.map(e=>lp(e)),wAe(t[0],sf(t[2],t[1]))}function vlt(t){const e=_lt(t),n=wlt(e),r=blt(n,t),i=Tlt(n,t.length),a=ylt(i,t),s=Slt(n,t),{polygons:o,centers:l}=Elt(s,n,t),c=Mlt(o),u=Nlt(n,t),f=Clt(r,n);return{delaunay:e,edges:r,triangles:n,centers:l,neighbors:i,polygons:o,mesh:c,hull:u,urquhart:f,find:a}}function ylt(t,e){function n(r,i){let a=r[0]-i[0],s=r[1]-i[1],o=r[2]-i[2];return a*a+s*s+o*o}return function(i,a,s){s===void 0&&(s=0);let o,l,c=s;const u=lp([i,a]);do o=s,s=null,l=n(u,lp(e[o])),t[o].forEach(f=>{let h=n(u,lp(e[f]));if(h<l){l=h,s=f,c=f;return}});while(s!==null);return c}}function _lt(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);const n=lat(t[e]),r=jat().translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(r);const i=[];let a=1;for(let f=0,h=t.length;f<h;f++){let p=t[f][0]**2+t[f][1]**2;!isFinite(p)||p>1e32?i.push(f):p>a&&(a=p)}const s=1e6*bAe(a);i.forEach(f=>t[f]=[s,0]),t.push([0,s]),t.push([-s,0]),t.push([0,-s]);const o=iW.from(t);o.projection=r;const{triangles:l,halfedges:c,inedges:u}=o;for(let f=0,h=c.length;f<h;f++)if(c[f]<0){const p=f%3==2?f-2:f+1,A=f%3==0?f+2:f-1,g=c[p],w=c[A];c[g]=w,c[w]=g,c[p]=c[A]=-1,l[f]=l[p]=l[A]=e,u[l[g]]=g%3==0?g+2:g-1,u[l[w]]=w%3==0?w+2:w-1,f+=2-f%3}else l[f]>t.length-3-1&&(l[f]=e);return o}function blt(t,e){const n=new Set;return e.length===2?[[0,1]]:(t.forEach(r=>{if(r[0]!==r[1]&&!(oW(r.map(i=>e[i]))<0))for(let i=0,a;i<3;i++)a=(i+1)%3,n.add(xR([r[i],r[a]]).join("-"))}),Array.from(n,r=>r.split("-").map(Number)))}function wlt(t){const{triangles:e}=t;if(!e)return[];const n=[];for(let r=0,i=e.length/3;r<i;r++){const a=e[3*r],s=e[3*r+1],o=e[3*r+2];a!==s&&s!==o&&n.push([a,o,s])}return n}function Slt(t,e){return t.map(n=>{const r=n.map(a=>e[a]).map(lp),i=WR(WR(sf(r[1],r[0]),sf(r[2],r[1])),sf(r[0],r[2]));return sW(ZR(i))})}function Tlt(t,e){const n=[];return t.forEach(r=>{for(let i=0;i<3;i++){const a=r[i],s=r[(i+1)%3];n[a]=n[a]||[],n[a].push(s)}}),t.length===0&&(e===2?(n[0]=[1],n[1]=[0]):e===1&&(n[0]=[])),n}function Elt(t,e,n){const r=[],i=t.slice();if(e.length===0){if(n.length<2)return{polygons:r,centers:i};if(n.length===2){const o=lp(n[0]),l=lp(n[1]),c=ZR(WR(o,l)),u=ZR(sf(o,l)),f=sf(c,u),h=[c,sf(c,f),sf(sf(c,f),f),sf(sf(sf(c,f),f),f)].map(sW).map(s);return r.push(h),r.push(h.slice().reverse()),{polygons:r,centers:i}}}e.forEach((o,l)=>{for(let c=0;c<3;c++){const u=o[c],f=o[(c+1)%3],h=o[(c+2)%3];r[u]=r[u]||[],r[u].push([f,h,l,[u,f,h]])}});const a=r.map(o=>{const l=[o[0][2]];let c=o[0][1];for(let u=1;u<o.length;u++)for(let f=0;f<o.length;f++)if(o[f][0]==c){c=o[f][1],l.push(o[f][2]);break}if(l.length>2)return l;if(l.length==2){const u=mae(n[o[0][3][0]],n[o[0][3][1]],i[l[0]]),f=mae(n[o[0][3][2]],n[o[0][3][0]],i[l[0]]),h=s(u),p=s(f);return[l[0],p,l[1],h]}});function s(o){let l=-1;
4159return i.slice(e.length,1/0).forEach((c,u)=>{c[0]===o[0]&&c[1]===o[1]&&(l=u+e.length)}),l<0&&(l=i.length,i.push(o)),l}return{polygons:a,centers:i}}function mae(t,e,n){t=lp(t),e=lp(e),n=lp(n);const r=glt(wAe(sf(e,t),n));return sW(ZR(WR(t,e)).map(i=>r*i))}function Mlt(t){const e=[];return t.forEach(n=>{if(!n)return;let r=n[n.length-1];for(let i of n)i>r&&e.push([r,i]),r=i}),e}function Clt(t,e){return function(n){const r=new Map,i=new Map;return t.forEach((a,s)=>{const o=a.join("-");r.set(o,n[s]),i.set(o,!0)}),e.forEach(a=>{let s=0,o=-1;for(let l=0;l<3;l++){let c=xR([a[l],a[(l+1)%3]]).join("-");r.get(c)>s&&(s=r.get(c),o=c)}i.set(o,!1)}),t.map(a=>i.get(a.join("-")))}}function Nlt(t,e){const n=new Set,r=[];t.map(o=>{if(!(oW(o.map(l=>e[l>e.length?0:l]))>1e-12))for(let l=0;l<3;l++){let c=[o[l],o[(l+1)%3]],u=`${c[0]}-${c[1]}`;n.has(u)?n.delete(u):n.add(`${c[1]}-${c[0]}`)}});const i=new Map;let a;if(n.forEach(o=>{o=o.split("-").map(Number),i.set(o[0],o[1]),a=o[0]}),a===void 0)return r;let s=a;do{r.push(s);let o=i.get(s);i.set(s,-1),s=o}while(s>-1&&s!==a);return r}function Rlt(t){const e=function(n){if(e.delaunay=null,e._data=n,typeof e._data=="object"&&e._data.type==="FeatureCollection"&&(e._data=e._data.features),typeof e._data=="object"){const r=e._data.map(i=>[e._vx(i),e._vy(i),i]).filter(i=>isFinite(i[0]+i[1]));e.points=r.map(i=>[i[0],i[1]]),e.valid=r.map(i=>i[2]),e.delaunay=vlt(e.points)}return e};return e._vx=function(n){if(typeof n=="object"&&"type"in n)return Mie(n)[0];if(0 in n)return n[0]},e._vy=function(n){if(typeof n=="object"&&"type"in n)return Mie(n)[1];if(1 in n)return n[1]},e.x=function(n){return n?(e._vx=n,e):e._vx},e.y=function(n){return n?(e._vy=n,e):e._vy},e.polygons=function(n){if(n!==void 0&&e(n),!e.delaunay)return!1;const r={type:"FeatureCollection",features:[]};return e.valid.length===0||(e.delaunay.polygons.forEach((i,a)=>r.features.push({type:"Feature",geometry:i?{type:"Polygon",coordinates:[[...i,i[0]].map(s=>e.delaunay.centers[s])]}:null,properties:{site:e.valid[a],sitecoordinates:e.points[a],neighbours:e.delaunay.neighbors[a]}})),e.valid.length===1&&r.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:e.valid[0],sitecoordinates:e.points[0],neighbours:[]}})),r},e.triangles=function(n){return n!==void 0&&e(n),e.delaunay?{type:"FeatureCollection",features:e.delaunay.triangles.map((r,i)=>(r=r.map(a=>e.points[a]),r.center=e.delaunay.centers[i],r)).filter(r=>oW(r)>0).map(r=>({type:"Feature",properties:{circumcenter:r.center},geometry:{type:"Polygon",coordinates:[[...r,r[0]]]}}))}:!1},e.links=function(n){if(n!==void 0&&e(n),!e.delaunay)return!1;const r=e.delaunay.edges.map(a=>Zg(e.points[a[0]],e.points[a[1]])),i=e.delaunay.urquhart(r);return{type:"FeatureCollection",features:e.delaunay.edges.map((a,s)=>({type:"Feature",properties:{source:e.valid[a[0]],target:e.valid[a[1]],length:r[s],urquhart:!!i[s]},geometry:{type:"LineString",coordinates:[e.points[a[0]],e.points[a[1]]]}}))}},e.mesh=function(n){return n!==void 0&&e(n),e.delaunay?{type:"MultiLineString",coordinates:e.delaunay.edges.map(r=>[e.points[r[0]],e.points[r[1]]])}:!1},e.cellMesh=function(n){if(n!==void 0&&e(n),!e.delaunay)return!1;const{centers:r,polygons:i}=e.delaunay,a=[];for(const s of i)if(s)for(let o=s.length,l=s[o-1],c=s[0],u=0;u<o;l=c,c=s[++u])c>l&&a.push([r[l],r[c]]);return{type:"MultiLineString",coordinates:a}},e._found=void 0,e.find=function(n,r,i){if(e._found=e.delaunay.find(n,r,e._found),!i||Zg([n,r],e.points[e._found])<i)return e._found},e.hull=function(n){n!==void 0&&e(n);const r=e.delaunay.hull,i=e.points;return r.length===0?null:{type:"Polygon",coordinates:[[...r.map(a=>i[a]),i[r[0]]]]}},t?e(t):e}function Qj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Dlt(t){if(Array.isArray(t))return t}function Plt(t){if(Array.isArray(t))return Qj(t)}function klt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Llt(t,e,n){return e=YR(e),Hlt(t,SAe()?Reflect.construct(e,[],YR(t).constructor):e.apply(t,n))}function Olt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Flt(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}
4159function YR(t){return YR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YR(t)}function Ilt(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kj(t,e)}function SAe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SAe=function(){return!!t})()}function Blt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ult(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Vlt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jlt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4161In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hlt(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 klt(t)}function Kj(t,e){return Kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kj(t,e)}function F1(t,e){return Dlt(t)||Ult(t,e)||TAe(t,e)||Vlt()}function QI(t){return Plt(t)||Blt(t)||TAe(t)||jlt()}function TAe(t,e){if(t){if(typeof t=="string")return Qj(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qj(t,e):void 0}}function Glt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.resolution,r=n===void 0?1/0:n,i=zlt(t,r),a=F5(i),s=$lt(t,r),o=[].concat(QI(a),QI(s)),l={type:"Polygon",coordinates:t},c=q2e(l),u=F1(c,2),f=F1(u[0],2),h=f[0],p=f[1],A=F1(u[1],2),g=A[0],w=A[1],T=h>g||w>=89||p<=-89,C=[];if(T){var M=Rlt(o).triangles(),D=new Map(o.map(function(K,se){var ae=F1(K,2),J=ae[0],oe=ae[1];return["".concat(J,"-").concat(oe),se]}));M.features.forEach(function(K){var se,ae=K.geometry.coordinates[0].slice(0,3).reverse(),J=[];if(ae.forEach(function(te){var he=F1(te,2),me=he[0],de=he[1],Ae="".concat(me,"-").concat(de);D.has(Ae)&&J.push(D.get(Ae))}),J.length===3){if(J.some(function(te){return te<a.length})){var oe=K.properties.circumcenter;if(!Jj(oe,l,T))return}(se=C).push.apply(se,J)}})}else if(s.length)for(var B=z5.from(o),G=function(se){var ae,J=[2,1,0].map(function(he){return B.triangles[se+he]}),oe=J.map(function(he){return o[he]});if(J.some(function(he){return he<a.length})){var te=[0,1].map(function(he){return tit(oe,function(me){return me[he]})});if(!Jj(te,l,T))return 1}(ae=C).push.apply(ae,QI(J))},j=0,z=B.triangles.length;j<z;j+=3)G(j);else{var k=GR(i),I=k.vertices,L=k.holes,O=L===void 0?[]:L;C=fst(I,O,2)}var Q=T2(xR(o,function(K){return K[0]}),[0,1]),ee=T2(xR(o,function(K){return K[1]}),[0,1]),Z=o.map(function(K){var se=F1(K,2),ae=se[0],J=se[1];return[Q(ae),ee(J)]}),X={points:o,indices:C,uvs:Z};return{contour:i,triangles:X}}function zlt(t,e){return t.map(function(n){var r=[],i;return n.forEach(function(a){if(i){var s=Zg(a,i)*180/Math.PI;if(s>e)for(var o=Kq(i,a),l=1/Math.ceil(s/e),c=l;c<1;)r.push(o(c)),c+=l}r.push(i=a)}),r})}function $lt(t,e){var n={type:"Polygon",coordinates:t},r=q2e(n),i=F1(r,2),a=F1(i[0],2),s=a[0],o=a[1],l=F1(i[1],2),c=l[0],u=l[1];if(Math.min(Math.abs(c-s),Math.abs(u-o))<e)return[];var f=s>c||u>=89||o<=-89;return qlt(e,{minLng:s,maxLng:c,minLat:o,maxLat:u}).filter(function(h){return Jj(h,n,f)})}function qlt(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minLng,r=e.maxLng,i=e.minLat,a=e.maxLat,s=Math.round(Math.pow(360/t,2)/Math.PI),o=(1+Math.sqrt(5))/2,l=function(T){return T/o*360%360-180},c=function(T){return Math.acos(2*T/s-1)/Math.PI*180-90},u=function(T){return s*(Math.cos((T+90)*Math.PI/180)+1)/2}
4161,f=[a!==void 0?Math.ceil(u(a)):0,i!==void 0?Math.floor(u(i)):s-1],h=n===void 0&&r===void 0?function(){return!0}:n===void 0?function(w){return w<=r}:r===void 0?function(w){return w>=n}:r>=n?function(w){return w>=n&&w<=r}:function(w){return w>=n||w<=r},p=[],A=f[0];A<=f[1];A++){var g=l(A);h(g)&&p.push([g,c(A)])}return p}function Jj(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return n?Tat(e,t):alt(t,e)}var Y9=window.THREE?window.THREE:{BufferGeometry:da,Float32BufferAttribute:Ui},Aae=new Y9.BufferGeometry().setAttribute?"setAttribute":"addAttribute",lW=(function(t){function e(n,r,i,a,s,o,l){var c;Olt(this,e),c=Llt(this,e),c.type="ConicPolygonGeometry",c.parameters={polygonGeoJson:n,bottomHeight:r,topHeight:i,closedBottom:a,closedTop:s,includeSides:o,curvatureResolution:l},r=r||0,i=i||1,a=a!==void 0?a:!0,s=s!==void 0?s:!0,o=o!==void 0?o:!0,l=l||5;var u=Glt(n,{resolution:l}),f=u.contour,h=u.triangles,p=F5(h.uvs),A=[],g=[],w=[],T=0,C=function(L){var O=Math.round(A.length/3),B=w.length;A=A.concat(L.vertices),g=g.concat(L.uvs),w=w.concat(O?L.indices.map(function(G){return G+O}):L.indices),c.addGroup(B,w.length-B,T++)};o&&C(D()),a&&C(k(r,!1)),s&&C(k(i,!0)),c.setIndex(w),c[Aae]("position",new Y9.Float32BufferAttribute(A,3)),c[Aae]("uv",new Y9.Float32BufferAttribute(g,2)),c.computeVertexNormals();function M(I,L){var O=typeof L=="function"?L:function(){return L},B=I.map(function(G){return G.map(function(j){var z=F1(j,2),Q=z[0],ee=z[1];return Wlt(ee,Q,O(Q,ee))})});return GR(B)}function D(){for(var I=M(f,r),L=I.vertices,O=I.holes,B=M(f,i),G=B.vertices,j=F5([G,L]),z=Math.round(G.length/3),Q=new Set(O),ee=0,Z=[],X=0;X<z;X++){var K=X+1;if(K===z)K=ee;else if(Q.has(K)){var se=K;K=ee,ee=se}Z.push(X,X+z,K+z),Z.push(K+z,K,X)}for(var ae=[],J=1;J>=0;J--)for(var oe=0;oe<z;oe+=1)ae.push(oe/(z-1),J);return{indices:Z,vertices:j,uvs:ae}}function k(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{indices:L?h.indices:h.indices.slice().reverse(),vertices:M([h.points],I).vertices,uvs:p}}return c}return Ilt(e,t),Flt(e)})(Y9.BufferGeometry);function Wlt(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}function eH(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Zlt(t){if(Array.isArray(t))return t}function Ylt(t){if(Array.isArray(t))return eH(t)}function Xlt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Qlt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Klt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4162In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jlt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4163In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ect(t,e){if(t==null)return{};var n,r,i=tct(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function tct(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function nct(t,e){return Zlt(t)||Qlt(t,e)||EAe(t,e)||Klt()}function rct(t){return Ylt(t)||Xlt(t)||EAe(t)||Jlt()}function ict(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function act(t){var e=ict(t,"string");return typeof e=="symbol"?e:e+""}function EAe(t,e){if(t){if(typeof t=="string")return eH(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eH(t,e):void 0}}var sct=(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=(e instanceof Array?e.length?e:[void 0]:[e]).map(function(o){return{keyAccessor:o,isProp:!(o instanceof Function)}}),a=t.reduce(function(o,l){var c=o,u=l;
4163return i.forEach(function(f,h){var p=f.keyAccessor,A=f.isProp,g;if(A){var w=u,T=w[p],C=ect(w,[p].map(act));g=T,u=C}else g=p(u,h);h+1<i.length?(c.hasOwnProperty(g)||(c[g]={}),c=c[g]):n?(c.hasOwnProperty(g)||(c[g]=[]),c[g].push(u)):c[g]=u}),o},{});n instanceof Function&&(function o(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;c===i.length?Object.keys(l).forEach(function(u){return l[u]=n(l[u])}):Object.values(l).forEach(function(u){return o(u,c+1)})})(a);var s=a;return r&&(s=[],(function o(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];c.length===i.length?s.push({keys:c,vals:l}):Object.entries(l).forEach(function(u){var f=nct(u,2),h=f[0],p=f[1];return o(p,[].concat(rct(c),[h]))})})(a),e instanceof Array&&e.length===0&&s.length===1&&(s[0].keys=[])),s}),Oi=(function(t){t=t||{};var e=typeof t<"u"?t:{},n={},r;for(r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);var i="";function a(Ve){return e.locateFile?e.locateFile(Ve,i):i+Ve}var s;typeof document<"u"&&document.currentScript&&(i=document.currentScript.src),i.indexOf("blob:")!==0?i=i.substr(0,i.lastIndexOf("/")+1):i="",s=function(pt,Tt,xt){var v=new XMLHttpRequest;v.open("GET",pt,!0),v.responseType="arraybuffer",v.onload=function(){if(v.status==200||v.status==0&&v.response){Tt(v.response);return}var Te=Zt(pt);if(Te){Tt(Te.buffer);return}xt()},v.onerror=xt,v.send(null)};var o=e.print||console.log.bind(console),l=e.printErr||console.warn.bind(console);for(r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);n=null,e.arguments&&e.arguments;var c=0,u=function(Ve){c=Ve},f=function(){return c},h=8;function p(Ve,pt,Tt,xt){switch(Tt=Tt||"i8",Tt.charAt(Tt.length-1)==="*"&&(Tt="i32"),Tt){case"i1":z[Ve>>0]=pt;break;case"i8":z[Ve>>0]=pt;break;case"i16":ee[Ve>>1]=pt;break;case"i32":Z[Ve>>2]=pt;break;case"i64":ht=[pt>>>0,(nt=pt,+Ie(nt)>=1?nt>0?(Ye(+Xe(nt/4294967296),4294967295)|0)>>>0:~~+De((nt-+(~~nt>>>0))/4294967296)>>>0:0)],Z[Ve>>2]=ht[0],Z[Ve+4>>2]=ht[1];break;case"float":X[Ve>>2]=pt;break;case"double":K[Ve>>3]=pt;break;default:hn("invalid type for setValue: "+Tt)}}function A(Ve,pt,Tt){switch(pt=pt||"i8",pt.charAt(pt.length-1)==="*"&&(pt="i32"),pt){case"i1":return z[Ve>>0];case"i8":return z[Ve>>0];case"i16":return ee[Ve>>1];case"i32":return Z[Ve>>2];case"i64":return Z[Ve>>2];case"float":return X[Ve>>2];case"double":return K[Ve>>3];default:hn("invalid type for getValue: "+pt)}return null}var g=!1;function w(Ve,pt){Ve||hn("Assertion failed: "+pt)}function T(Ve){var pt=e["_"+Ve];return w(pt,"Cannot call unknown function "+Ve+", make sure it is exported"),pt}function C(Ve,pt,Tt,xt,v){var W={string:function(ze){var Ke=0;if(ze!=null&&ze!==0){var rt=(ze.length<<2)+1;Ke=vn(rt),O(ze,Ke,rt)}return Ke},array:function(ze){var Ke=vn(ze.length);return B(ze,Ke),Ke}};function Te(ze){return pt==="string"?I(ze):pt==="boolean"?!!ze:ze}var _e=T(Ve),be=[],xe=0;if(xt)for(var we=0;we<xt.length;we++){var tt=W[Tt[we]];tt?(xe===0&&(xe=kt()),be[we]=tt(xt[we])):be[we]=xt[we]}var ot=_e.apply(null,be);return ot=Te(ot),xe!==0&&Ge(xe),ot}function M(Ve,pt,Tt,xt){Tt=Tt||[];var v=Tt.every(function(Te){return Te==="number"}),W=pt!=="string";return W&&v&&!xt?T(Ve):function(){return C(Ve,pt,Tt,arguments)}}var D=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function k(Ve,pt,Tt){for(var xt=pt+Tt,v=pt;Ve[v]&&!(v>=xt);)++v;if(v-pt>16&&Ve.subarray&&D)return D.decode(Ve.subarray(pt,v));for(var W="";pt<v;){var Te=Ve[pt++];if(!(Te&128)){W+=String.fromCharCode(Te);continue}var _e=Ve[pt++]&63;if((Te&224)==192){W+=String.fromCharCode((Te&31)<<6|_e);continue}var be=Ve[pt++]&63;if((Te&240)==224?Te=(Te&15)<<12|_e<<6|be:Te=(Te&7)<<18|_e<<12|be<<6|Ve[pt++]&63,Te<65536)W+=String.fromCharCode(Te);else{var xe=Te-65536;W+=String.fromCharCode(55296|xe>>10,56320|xe&1023)}}return W}function I(Ve,pt){return Ve?k(Q,Ve,pt):""}function L(Ve,pt,Tt,xt){if(!(xt>0))return 0;for(var v=Tt,W=Tt+xt-1,Te=0;Te<Ve.length;++Te){var _e=Ve.charCodeAt(Te);if(_e>=55296&&_e<=57343){var be=Ve.charCodeAt(++Te);_e=65536+((_e&1023)<<10)|be&1023}if(_e<=127){if(Tt>=W)break;pt[Tt++]=_e}else if(_e<=2047){if(Tt+1>=W)break;pt[Tt++]=192|_e>>6,pt[Tt++]=128|_e&63}else if(_e<=65535){if(Tt+2>=W)break;pt[Tt++]=224|_e>>12,pt[Tt++]=128|_e>>6&63,pt[Tt++]=128|_e&63}else{if(Tt+3>=W)break;pt[Tt++]=240|_e>>18,pt[Tt++]=128|_e>>12&63,pt[Tt++]=128|_e>>6&63,pt[Tt++]=128|_e&63}}return pt[Tt]=0,Tt-v}function O(Ve,pt,Tt){return L(Ve,Q,pt,Tt)}typeof TextDecoder<"u"&&new TextDecoder("utf-16le");function B(Ve,pt){z.set(Ve,pt)}function G(Ve,pt){return Ve%pt>0&&(Ve+=pt-Ve%pt),Ve}var j,z,Q,ee,Z,X,K;function se(Ve){j=Ve,e.HEAP8=z=new Int8Array(Ve),e.HEAP16=ee=new Int16Array(Ve),e.HEAP32=Z=new Int32Array(Ve),e.HEAPU8=Q=new Uint8Array(Ve),e.HEAPU16=new Uint16Array(Ve),e.HEAPU32
4163=new Uint32Array(Ve),e.HEAPF32=X=new Float32Array(Ve),e.HEAPF64=K=new Float64Array(Ve)}var ae=5271536,J=28624,oe=e.TOTAL_MEMORY||33554432;e.buffer?j=e.buffer:j=new ArrayBuffer(oe),oe=j.byteLength,se(j),Z[J>>2]=ae;function te(Ve){for(;Ve.length>0;){var pt=Ve.shift();if(typeof pt=="function"){pt();continue}var Tt=pt.func;typeof Tt=="number"?pt.arg===void 0?e.dynCall_v(Tt):e.dynCall_vi(Tt,pt.arg):Tt(pt.arg===void 0?null:pt.arg)}}var he=[],me=[],de=[],Ae=[];function Se(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)Qe(e.preRun.shift());te(he)}function Re(){te(me)}function Ne(){te(de)}function Fe(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)ge(e.postRun.shift());te(Ae)}function Qe(Ve){he.unshift(Ve)}function ge(Ve){Ae.unshift(Ve)}var Ie=Math.abs,De=Math.ceil,Xe=Math.floor,Ye=Math.min,Me=0,lt=null;function Ht(Ve){Me++,e.monitorRunDependencies&&e.monitorRunDependencies(Me)}function Le(Ve){if(Me--,e.monitorRunDependencies&&e.monitorRunDependencies(Me),Me==0&<){var pt=lt;lt=null,pt()}}e.preloadedImages={},e.preloadedAudios={};var Nt=null,Ct="data:application/octet-stream;base64,";function It(Ve){return String.prototype.startsWith?Ve.startsWith(Ct):Ve.indexOf(Ct)===0}var nt,ht;Nt
vendor: 19,357 bytes, line 4163
4163="data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAAAQAAAAQAAAADAAAABgAAAAUAAAACAAAAAAAAAAIAAAADAAAAAQAAAAQAAAAGAAAAAAAAAAUAAAADAAAABgAAAAQAAAAFAAAAAAAAAAEAAAACAAAABAAAAAUAAAAGAAAAAAAAAAIAAAADAAAAAQAAAAUAAAACAAAAAAAAAAEAAAADAAAABgAAAAQAAAAGAAAAAAAAAAUAAAACAAAAAQAAAAQAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAAAAAAEAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAYAAAAAAAAABQAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAYAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAYAAAAAAAAAAwAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAFAAAABAAAAAAAAAABAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAYAAAAAAAAABAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAgAAAAQAAAADAAAACAAAAAEAAAAHAAAABgAAAAkAAAAAAAAAAwAAAAIAAAACAAAABgAAAAoAAAALAAAAAAAAAAEAAAAFAAAAAwAAAA0AAAABAAAABwAAAAQAAAAMAAAAAAAAAAQAAAB/AAAADwAAAAgAAAADAAAAAAAAAAwAAAAFAAAAAgAAABIAAAAKAAAACAAAAAAAAAAQAAAABgAAAA4AAAALAAAAEQAAAAEAAAAJAAAAAgAAAAcAAAAVAAAACQAAABMAAAADAAAADQAAAAEAAAAIAAAABQAAABYAAAAQAAAABAAAAAAAAAAPAAAACQAAABMAAAAOAAAAFAAAAAEAAAAHAAAABgAAAAoAAAALAAAAGAAAABcAAAAFAAAAAgAAABIAAAALAAAAEQAAABcAAAAZAAAAAgAAAAYAAAAKAAAADAAAABwAAAANAAAAGgAAAAQAAAAPAAAAAwAAAA0AAAAaAAAAFQAAAB0AAAADAAAADAAAAAcAAAAOAAAAfwAAABEAAAAbAAAACQAAABQAAAAGAAAADwAAABYAAAAcAAAAHwAAAAQAAAAIAAAADAAAABAAAAASAAAAIQAAAB4AAAAIAAAABQAAABYAAAARAAAACwAAAA4AAAAGAAAAIwAAABkAAAAbAAAAEgAAABgAAAAeAAAAIAAAAAUAAAAKAAAAEAAAABMAAAAiAAAAFAAAACQAAAAHAAAAFQAAAAkAAAAUAAAADgAAABMAAAAJAAAAKAAAABsAAAAkAAAAFQAAACYAAAATAAAAIgAAAA0AAAAdAAAABwAAABYAAAAQAAAAKQAAACEAAAAPAAAACAAAAB8AAAAXAAAAGAAAAAsAAAAKAAAAJwAAACUAAAAZAAAAGAAAAH8AAAAgAAAAJQAAAAoAAAAXAAAAEgAAABkAAAAXAAAAEQAAAAsAAAAtAAAAJwAAACMAAAAaAAAAKgAAAB0AAAArAAAADAAAABwAAAANAAAAGwAAACgAAAAjAAAALgAAAA4AAAAUAAAAEQAAABwAAAAfAAAAKgAAACwAAAAMAAAADwAAABoAAAAdAAAAKwAAACYAAAAvAAAADQAAABoAAAAVAAAAHgAAACAAAAAwAAAAMgAAABAAAAASAAAAIQAAAB8AAAApAAAALAAAADUAAAAPAAAAFgAAABwAAAAgAAAAHgAAABgAAAASAAAANAAAADIAAAAlAAAAIQAAAB4AAAAxAAAAMAAAABYAAAAQAAAAKQAAACIAAAATAAAAJgAAABUAAAA2AAAAJAAAADMAAAAjAAAALgAAAC0AAAA4AAAAEQAAABsAAAAZAAAAJAAAABQAAAAiAAAAEwAAADcAAAAoAAAANgAAACUAAAAnAAAANAAAADkAAAAYAAAAFwAAACAAAAAmAAAAfwAAACIAAAAzAAAAHQAAAC8AAAAVAAAAJwAAACUAAAAZAAAAFwAAADsAAAA5AAAALQAAACgAAAAbAAAAJAAAABQAAAA8AAAALgAAADcAAAApAAAAMQAAADUAAAA9AAAAFgAAACEAAAAfAAAAKgAAADoAAAArAAAAPgAAABwAAAAsAAAAGgAAACsAAAA+AAAALwAAAEAAAAAaAAAAKgAAAB0AAAAsAAAANQAAADoAAABBAAAAHAAAAB8AAAAqAAAALQAAACcAAAAjAAAAGQAAAD8AAAA7AAAAOAAAAC4AAAA8AAAAOAAAAEQAAAAbAAAAKAAAACMAAAAvAAAAJgAAACsAAAAdAAAARQAAADMAAABAAAAAMAAAADEAAAAeAAAAIQAAAEMAAABCAAAAMgAAADEAAAB/AAAAPQAAAEIAAAAhAAAAMAAAACkAAAAyAAAAMAAAACAAAAAeAAAARgAAAEMAAAA0AAAAMwAAAEUAAAA2AAAARwAAACYAAAAvAAAAIgAAADQAAAA5AAAARgAAAEoAAAAgAAAAJQAAADIAAAA1AAAAPQAAAEEAAABLAAAAHwAAACkAAAAsAAAANgAAAEcAAAA3AAAASQAAACIAAAAzAAAAJAAAADcAAAAoAAAANgAAACQAAABIAAAAPAAAAEkAAAA4AAAARAAAAD8AAABNAAAAIwAAAC4AAAAtAAAAOQAAADsAAABKAAAATgAAACUAAAAnAAAANAAAADoAAAB/AAAAPgAAAEwAAAAsAAAAQQAAACoAAAA7AAAAPwAAAE4AAABPAAAAJwAAAC0AAAA5AAAAPAAAAEgAAABEAAAAUAAAACgAAAA3AAAALgAAAD0AAAA1AAAAMQAAACkAAABRAAAASwAAAEIAAAA+AAAAKwAAADoAAAAqAAAAUgAAAEAAAABMAAAAPwAAAH8AAAA4AAAALQAAAE8AAAA7AAAATQAAAEAAAAAvAAAAPgAAACsAAABUAAAARQAAAFIAAABBAAAAOgAAADUAAAAsAAAAVgAAAEwAAABLAAAAQgAAAEMAAABRAAAAVQAAADEAAAAwAAAAPQAAAEMAAABCAAAAMgAAADAAAABXAAAAVQAAAEYAAABEAAAAOAAAADwAAAAuAAAAWgAAAE0AAABQAAAARQAAADMAAABAAAAALwAAAFkAAABHAAAAVAAAAEYAAABDAAAANAAAADIAAABTAAAAVwAAAEoAAABHAAAAWQAAAEkAAABbAAAAMwAAAEUAAAA2AAAASAAAAH8AAABJAAAANwAAAFAAAAA8AAAAWAAAAEkAAABbAAAASAAAAFgAAAA2AAAARwAAADcAAABKAAAATgAAAFMAAABcAAAANAAAADkAAABGAAAASwAAAEEAAAA9AAAANQAAAF4AAABWAAAAUQAAAEwAAABWAAAAUgAAAGAAAAA6AAAAQQAAAD4AAABNAAAAPwAAAEQAAAA4AAAAXQAAAE8AAABaAAAATgAAAEoAAAA7AAAAOQAAAF8AAABcAAAATwAAAE8AAABOAAAAPwAAADsAAABdAAAAXwAAAE0AAABQAAAARAAAAEgAAAA8AAAAYwAAAFoAAABYAAAAUQAAAFUAAABeAAAAZQAAAD0AAABCAAAASwAAAFIAAABgAAAAVAAAAGIAAAA+AAAATAAAAEAAAABTAAAAfwAAAEoAAABGAAAAZAAAAFcAAABcAAAAVAAAAEUAAABSAAAAQAAAAGEAAABZAAAAYgAAAFUAAABXAAAAZQAAAGYAAABCAAAAQwAAAFEAAABWAAAATAAAAEsAAABBAAAAaAAAAGAAAABeAAAAVwAAAFMAAABmAAAAZAAAAEMAAABGAAAAVQAAAFgAAABIAAAAWwAAAEkAAABjAAAAUAAAAGkAAABZAAAAYQAAAFsAAABnAAAARQAAAFQAAABHAAAAWgAAAE0AAABQAAAARAAAAGoAAABdAAAAYwAAAFsAAABJAAAAWQAAAEcAAABpAAAAWAAAAGcAAABcAAAAUwAAAE4AAABKAAAAbAAAAGQAAABfAAAAXQAAAE8AAABaAAAATQAAAG0AAABfAAAAagAAAF4AAABWAAAAUQAAAEsAAABrAAAAaAAAAGUAAABfAAAAXAAAAE8AAABOAAAAbQAAAGwAAABdAAAAYAAAAGgAAABiAAAAbgAAAEwAAABWAAAAUgAAAGEAAAB/AAAAYgAAAFQAAABnAAAAWQAAAG8AAABiAAAAbgAAAGEAAABvAAAAUgAAAGAAAABUAAAAYwAAAFAAAABpAAAAWAAAAGoAAABaAAAAcQAAAGQAAABmAAAAUwAAAFcAAABsAAAAcgAAAFwAAABlAAAAZgAAAGsAAABwAAAAUQAAAFUAAABeAAAAZgAAAGUAAABXAAAAVQAAAHIAAABwAAAAZAAAAGcAAABbAAAAYQAAAFkAAAB0AAAAaQAAAG8AAABoAAAAawAAAG4AAABzAAAAVgAAAF4AAABgAAAAaQAAAFgAAABnAAAAWwAAAHEAAABjAAAAdAAAAGoAAABdAAAAYwAAAFoAAAB1AAAAbQAAAHEAAABrAAAAfwAAAGUAAABeAAAAcwAAAGgAAABwAAAAbAAAAGQAAABfAAAAXAAAAHYAAAByAAAAbQAAAG0AAABsAAAAXQAAAF8AAAB1AAAAdgAAAGoAAABuAAAAYgAAAGgAAABgAAAAdwAAAG8AAABzAAAAbwAAAGEAAABuAAAAYgAAAHQAAABnAAAAdwAAAHAAAABrAAAAZgAAAGUAAAB4AAAAcwAAAHIAAABxAAAAYwAAAHQAAABpAAAAdQAAAGoAAAB5AAAAcgAAAHAAAABkAAAAZgAAAHYAAAB4AAAAbAAAAHMAAABuAAAAawAAAGgAAAB4AAAAdwAAAHAAAAB0AAAAZwAAAHcAAABvAAAAcQAAAGkAAAB5AAAAdQAAAH8AAABtAAAAdgAAAHEAAAB5AAAAagAAAHYAAAB4AAAAbAAAAHIAAAB1AAAAeQAAAG0AAAB3AAAAbwAAAHMAAABuAAAAeQAAAHQAAAB4AAAAeAAAAHMAAAByAAAAcAAAAHkAAAB3AAAAdgAAAHkAAAB0AAAAeAAAAHcAAAB1AAAAcQAAAHYAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAACAAAABQAAAAEAAAAAAAAA/////wEAAAAAAAAAAwAAAAQAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAUAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABAAAAAUAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAUAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAD//////////wEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAAAAAAAAAAABAAAAAgAAAAYAAAAEAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAAAAAAAAAAAAQAAAAEAAAAFAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAAAAAAAAAAABAAAAAwAAAAcAAAAGAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADgAAAAIAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAAAAAAAAAAAAAEAAAAEAAAACAAAAAoAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAAAAAAAAAAAAQAAAAsAAAAPAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAIAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAAAAAAAAAAAAQAAAAwAAAAQAAAADAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAAAAAAAAAAABAAAACgAAABMAAAAIAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAAAAAAAAAAAAAEAAAANAAAAEQAAAA0AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAACAAAAAAAAAAAAAAABAAAADgAAABIAAAAPAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAADwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABIAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAAAAAAAAQAAAP//////////EwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAASAAAAAAAAABgAAAAAAAAAIQAAAAAAAAAeAAAAAAAAACAAAAADAAAAMQAAAAEAAAAwAAAAAwAAADIAAAADAAAACAAAAAAAAAAFAAAABQAAAAoAAAAFAAAAFgAAAAAAAAAQAAAAAAAAABIAAAAAAAAAKQAAAAEAAAAhAAAAAAAAAB4AAAAAAAAABAAAAAAAAAAAAAAABQAAAAIAAAAFAAAADwAAAAEAAAAIAAAAAAAAAAUAAAAFAAAAHwAAAAEAAAAWAAAAAAAAABAAAAAAAAAAAgAAAAAAAAAGAAAAAAAAAA4AAAAAAAAACgAAAAAAAAALAAAAAAAAABEAAAADAAAAGAAAAAEAAAAXAAAAAwAAABkAAAADAAAAAAAAAAAAAAABAAAABQAAAAkAAAAFAAAABQAAAAAAAAACAAAAAAAAAAYAAAAAAAAAEgAAAAEAAAAKAAAAAAAAAAsAAAAAAAAABAAAAAEAAAADAAAABQAAAAcAAAAFAAAACAAAAAEAAAAAAAAAAAAAAAEAAAAFAAAAEAAAAAEAAAAFAAAAAAAAAAIAAAAAAAAABwAAAAAAAAAVAAAAAAAAACYAAAAAAAAACQAAAAAAAAATAAAAAAAAACIAAAADAAAADgAAAAEAAAAUAAAAAwAAACQAAAADAAAAAwAAAAAAAAANAAAABQAAAB0AAAAFAAAAAQAAAAAAAAAHAAAAAAAAABUAAAAAAAAABgAAAAEAAAAJAAAAAAAAABMAAAAAAAAABAAAAAIAAAAMAAAABQAAABoAAAAFAAAAAAAAAAEAAAADAAAAAAAAAA0AAAAFAAAAAgAAAAEAAAABAAAAAAAAAAcAAAAAAAAAGgAAAAAAAAAqAAAAAAAAADoAAAAAAAAAHQAAAAAAAAArAAAAAAAAAD4AAAADAAAAJgAAAAEAAAAvAAAAAwAAAEAAAAADAAAADAAAAAAAAAAcAAAABQAAACwAAAAFAAAADQAAAAAAAAAaAAAAAAAAACoAAAAAAAAAFQAAAAEAAAAdAAAAAAAAACsAAAAAAAAABAAAAAMAAAAPAAAABQAAAB8AAAAFAAAAAwAAAAEAAAAMAAAAAAAAABwAAAAFAAAABwAAAAEAAAANAAAAAAAAABoAAAAAAAAAHwAAAAAAAAApAAAAAAAAADEAAAAAAAAALAAAAAAAAAA1AAAAAAAAAD0AAAADAAAAOgAAAAEAAABBAAAAAwAAAEsAAAADAAAADwAAAAAAAAAWAAAABQAAACEAAAAFAAAAHAAAAAAAAAAfAAAAAAAAACkAAAAAAAAAKgAAAAEAAAAsAAAAAAAAADUAAAAAAAAABAAAAAQAAAAIAAAABQAAABAAAAAFAAAADAAAAAEAAAAPAAAAAAAAABYAAAAFAAAAGgAAAAEAAAAcAAAAAAAAAB8AAAAAAAAAMgAAAAAAAAAwAAAAAAAAADEAAAADAAAAIAAAAAAAAAAeAAAAAwAAACEAAAADAAAAGAAAAAMAAAASAAAAAwAAABAAAAADAAAARgAAAAAAAABDAAAAAAAAAEIAAAADAAAANAAAAAMAAAAyAAAAAAAAADAAAAAAAAAAJQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAUwAAAAAAAABXAAAAAwAAAFUAAAADAAAASgAAAAMAAABGAAAAAAAAAEMAAAAAAAAAOQAAAAEAAAA0AAAAAwAAADIAAAAAAAAAGQAAAAAAAAAXAAAAAAAAABgAAAADAAAAEQAAAAAAAAALAAAAAwAAAAoAAAADAAAADgAAAAMAAAAGAAAAAwAAAAIAAAADAAAALQAAAAAAAAAnAAAAAAAAACUAAAADAAAAIwAAAAMAAAAZAAAAAAAAABcAAAAAAAAAGwAAAAMAAAARAAAAAAAAAAsAAAADAAAAPwAAAAAAAAA7AAAAAwAAADkAAAADAAAAOAAAAAMAAAAtAAAAAAAAACcAAAAAAAAALgAAAAMAAAAjAAAAAwAAABkAAAAAAAAAJAAAAAAAAAAUAAAAAAAAAA4AAAADAAAAIgAAAAAAAAATAAAAAwAAAAkAAAADAAAAJgAAAAMAAAAVAAAAAwAAAAcAAAADAAAANwAAAAAAAAAoAAAAAAAAABsAAAADAAAANgAAAAMAAAAkAAAAAAAAABQAAAAAAAAAMwAAAAMAAAAiAAAAAAAAABMAAAADAAAASAAAAAAAAAA8AAAAAwAAAC4AAAADAAAASQAAAAMAAAA3AAAAAAAAACgAAAAAAAAARwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAQAAAAAAAAAAvAAAAAAAAACYAAAADAAAAPgAAAAAAAAArAAAAAwAAAB0AAAADAAAAOgAAAAMAAAAqAAAAAwAAABoAAAADAAAAVAAAAAAAAABFAAAAAAAAADMAAAADAAAAUgAAAAMAAABAAAAAAAAAAC8AAAAAAAAATAAAAAMAAAA+AAAAAAAAACsAAAADAAAAYQAAAAAAAABZAAAAAwAAAEcAAAADAAAAYgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAYAAAAAMAAABSAAAAAwAAAEAAAAAAAAAASwAAAAAAAABBAAAAAAAAADoAAAADAAAAPQAAAAAAAAA1AAAAAwAAACwAAAADAAAAMQAAAAMAAAApAAAAAwAAAB8AAAADAAAAXgAAAAAAAABWAAAAAAAAAEwAAAADAAAAUQAAAAMAAABLAAAAAAAAAEEAAAAAAAAAQgAAAAMAAAA9AAAAAAAAADUAAAADAAAAawAAAAAAAABoAAAAAwAAAGAAAAADAAAAZQAAAAMAAABeAAAAAAAAAFYAAAAAAAAAVQAAAAMAAABRAAAAAwAAAEsAAAAAAAAAOQAAAAAAAAA7AAAAAAAAAD8AAAADAAAASgAAAAAAAABOAAAAAwAAAE8AAAADAAAAUwAAAAMAAABcAAAAAwAAAF8AAAADAAAAJQAAAAAAAAAnAAAAAwAAAC0AAAADAAAANAAAAAAAAAA5AAAAAAAAADsAAAAAAAAARgAAAAMAAABKAAAAAAAAAE4AAAADAAAAGAAAAAAAAAAXAAAAAwAAABkAAAADAAAAIAAAAAMAAAAlAAAAAAAAACcAAAADAAAAMgAAAAMAAAA0AAAAAAAAADkAAAAAAAAALgAAAAAAAAA8AAAAAAAAAEgAAAADAAAAOAAAAAAAAABEAAAAAwAAAFAAAAADAAAAPwAAAAMAAABNAAAAAwAAAFoAAAADAAAAGwAAAAAAAAAoAAAAAwAAADcAAAADAAAAIwAAAAAAAAAuAAAAAAAAADwAAAAAAAAALQAAAAMAAAA4AAAAAAAAAEQAAAADAAAADgAAAAAAAAAUAAAAAwAAACQAAAADAAAAEQAAAAMAAAAbAAAAAAAAACgAAAADAAAAGQAAAAMAAAAjAAAAAAAAAC4AAAAAAAAARwAAAAAAAABZAAAAAAAAAGEAAAADAAAASQAAAAAAAABbAAAAAwAAAGcAAAADAAAASAAAAAMAAABYAAAAAwAAAGkAAAADAAAAMwAAAAAAAABFAAAAAwAAAFQAAAADAAAANgAAAAAAAABHAAAAAAAAAFkAAAAAAAAANwAAAAMAAABJAAAAAAAAAFsAAAADAAAAJgAAAAAAAAAvAAAAAwAAAEAAAAADAAAAIgAAAAMAAAAzAAAAAAAAAEUAAAADAAAAJAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAYAAAAAAAAABoAAAAAAAAAGsAAAADAAAAYgAAAAAAAABuAAAAAwAAAHMAAAADAAAAYQAAAAMAAABvAAAAAwAAAHcAAAADAAAATAAAAAAAAABWAAAAAwAAAF4AAAADAAAAUgAAAAAAAABgAAAAAAAAAGgAAAAAAAAAVAAAAAMAAABiAAAAAAAAAG4AAAADAAAAOgAAAAAAAABBAAAAAwAAAEsAAAADAAAAPgAAAAMAAABMAAAAAAAAAFYAAAADAAAAQAAAAAMAAABSAAAAAAAAAGAAAAAAAAAAVQAAAAAAAABXAAAAAAAAAFMAAAADAAAAZQAAAAAAAABmAAAAAwAAAGQAAAADAAAAawAAAAMAAABwAAAAAwAAAHIAAAADAAAAQgAAAAAAAABDAAAAAwAAAEYAAAADAAAAUQAAAAAAAABVAAAAAAAAAFcAAAAAAAAAXgAAAAMAAABlAAAAAAAAAGYAAAADAAAAMQAAAAAAAAAwAAAAAwAAADIAAAADAAAAPQAAAAMAAABCAAAAAAAAAEMAAAADAAAASwAAAAMAAABRAAAAAAAAAFUAAAAAAAAAXwAAAAAAAABcAAAAAAAAAFMAAAAAAAAATwAAAAAAAABOAAAAAAAAAEoAAAADAAAAPwAAAAEAAAA7AAAAAwAAADkAAAADAAAAbQAAAAAAAABsAAAAAAAAAGQAAAAFAAAAXQAAAAEAAABfAAAAAAAAAFwAAAAAAAAATQAAAAEAAABPAAAAAAAAAE
vendor: 4,160 bytes, line 4163
41634AAAAAAAAAdQAAAAQAAAB2AAAABQAAAHIAAAAFAAAAagAAAAEAAABtAAAAAAAAAGwAAAAAAAAAWgAAAAEAAABdAAAAAQAAAF8AAAAAAAAAWgAAAAAAAABNAAAAAAAAAD8AAAAAAAAAUAAAAAAAAABEAAAAAAAAADgAAAADAAAASAAAAAEAAAA8AAAAAwAAAC4AAAADAAAAagAAAAAAAABdAAAAAAAAAE8AAAAFAAAAYwAAAAEAAABaAAAAAAAAAE0AAAAAAAAAWAAAAAEAAABQAAAAAAAAAEQAAAAAAAAAdQAAAAMAAABtAAAABQAAAF8AAAAFAAAAcQAAAAEAAABqAAAAAAAAAF0AAAAAAAAAaQAAAAEAAABjAAAAAQAAAFoAAAAAAAAAaQAAAAAAAABYAAAAAAAAAEgAAAAAAAAAZwAAAAAAAABbAAAAAAAAAEkAAAADAAAAYQAAAAEAAABZAAAAAwAAAEcAAAADAAAAcQAAAAAAAABjAAAAAAAAAFAAAAAFAAAAdAAAAAEAAABpAAAAAAAAAFgAAAAAAAAAbwAAAAEAAABnAAAAAAAAAFsAAAAAAAAAdQAAAAIAAABqAAAABQAAAFoAAAAFAAAAeQAAAAEAAABxAAAAAAAAAGMAAAAAAAAAdwAAAAEAAAB0AAAAAQAAAGkAAAAAAAAAdwAAAAAAAABvAAAAAAAAAGEAAAAAAAAAcwAAAAAAAABuAAAAAAAAAGIAAAADAAAAawAAAAEAAABoAAAAAwAAAGAAAAADAAAAeQAAAAAAAAB0AAAAAAAAAGcAAAAFAAAAeAAAAAEAAAB3AAAAAAAAAG8AAAAAAAAAcAAAAAEAAABzAAAAAAAAAG4AAAAAAAAAdQAAAAEAAABxAAAABQAAAGkAAAAFAAAAdgAAAAEAAAB5AAAAAAAAAHQAAAAAAAAAcgAAAAEAAAB4AAAAAQAAAHcAAAAAAAAAcgAAAAAAAABwAAAAAAAAAGsAAAAAAAAAZAAAAAAAAABmAAAAAAAAAGUAAAADAAAAUwAAAAEAAABXAAAAAwAAAFUAAAADAAAAdgAAAAAAAAB4AAAAAAAAAHMAAAAFAAAAbAAAAAEAAAByAAAAAAAAAHAAAAAAAAAAXAAAAAEAAABkAAAAAAAAAGYAAAAAAAAAdQAAAAAAAAB5AAAABQAAAHcAAAAFAAAAbQAAAAEAAAB2AAAAAAAAAHgAAAAAAAAAXwAAAAEAAABsAAAAAQAAAHIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGAAAAAgAAAAUAAAABAAAABAAAAAAAAAAAAAAABQAAAAMAAAABAAAABgAAAAQAAAACAAAAAAAAAH6iBfbytuk/Gq6akm/58z/Xrm0Liez0P5doSdOpSwRAWs602ULg8D/dT7Rcbo/1v1N1RQHFNOM/g9Snx7HW3L8HWsP8Q3jfP6VwOLosutk/9rjk1YQcxj+gnmKMsNn6P/HDeuPFY+M/YHwDjqKhB0Ci19/fCVrbP4UxKkDWOP6/pvljWa09tL9wi7wrQXjnv/Z6yLImkM2/3yTlOzY14D+m+WNZrT20PzwKVQnrQwNA9nrIsiaQzT/g40rFrRQFwPa45NWEHMa/kbslHEZq97/xw3rjxWPjv4cLC2SMBci/otff3wla27+rKF5oIAv0P1N1RQHFNOO/iDJPGyWHBUAHWsP8Q3jfvwQf/by16gXAfqIF9vK26b8XrO0Vh0r+v9eubQuJ7PS/BxLrA0ZZ479azrTZQuDwv1MK1EuItPw/yscgV9Z6FkAwHBR2WjQMQJNRzXsQ5vY/GlUHVJYKF0DONuFv2lMNQNCGZ28QJfk/0WUwoIL36D8ggDOMQuATQNqMOeAy/wZAWFYOYM+M2z/LWC4uH3oSQDE+LyTsMgRAkJzhRGWFGEDd4soovCQQQKqk0DJMEP8/rGmNdwOLBUAW2X/9xCbjP4hu3dcqJhNAzuYItRvdB0CgzW3zJW/sPxotm/Y2TxRAQAk9XmdDDEC1Kx9MKgT3P1M+NctcghZAFVqcLlb0C0Bgzd3sB2b2P77mZDPUWhZAFROHJpUGCEDAfma5CxXtPz1DWq/zYxRAmhYY5824F0DOuQKWSbAOQNCMqrvu3fs/L6DR22K2wT9nAAxPBU8RQGiN6mW43AFAZhu25b633D8c1YgmzowSQNM25BRKWARArGS08/lNxD+LFssHwmMRQLC5aNcxBgJABL9HT0WRF0CjCmJmOGEOQHsuaVzMP/s/TWJCaGGwBUCeu1PAPLzjP9nqN9DZOBNAKE4JcydbCkCGtbd1qjPzP8dgm9U8jhVAtPeKTkVwDkCeCLss5l37P401XMPLmBdAFd29VMVQDUBg0yA55h75Pz6odcYLCRdApBM4rBrkAkDyAVWgQxbRP4XDMnK20hFAymLlF7EmzD8GUgo9XBHlP3lbK7T9COc/k+OhPthhy7+YGEpnrOvCPzBFhLs15u4/epbqB6H4uz9IuuLF5svev6lzLKY31es/CaQ0envF5z8ZY0xlUADXv7zaz7HYEuI/CfbK1sn16T8uAQfWwxLWPzKn/YuFN94/5KdbC1AFu793fyCSnlfvPzK2y4doAMY/NRg5t1/X6b/shq4QJaHDP5yNIAKPOeI/vpn7BSE30r/X4YQrO6nrv78Ziv/Thto/DqJ1Y6+y5z9l51NaxFrlv8QlA65HOLS/86dxiEc96z+Hj0+LFjneP6LzBZ8LTc2/DaJ1Y6+y579l51NaxFrlP8QlA65HOLQ/8qdxiEc967+Jj0+LFjnev6LzBZ8LTc0/1qdbC1AFuz93fyCSnlfvvzK2y4doAMa/NRg5t1/X6T/vhq4QJaHDv5yNIAKPOeK/wJn7BSE30j/W4YQrO6nrP78Ziv/Thtq/CaQ0envF578XY0xlUADXP7zaz7HYEuK/CvbK1sn16b8rAQfWwxLWvzKn/YuFN96/zWLlF7EmzL8GUgo9XBHlv3lbK7T9COe/kOOhPthhyz+cGEpnrOvCvzBFhLs15u6/c5bqB6H4u79IuuLF5sveP6lzLKY31eu/AQAAAP////8HAAAA/////zEAAAD/////VwEAAP////9hCQAA/////6dBAAD/////kcsBAP/////3kAwA/////8H2VwAAAAAAAAAAAAAAAAACAAAA/////w4AAAD/////YgAAAP////+uAgAA/////8ISAAD/////ToMAAP////8ilwMA/////+4hGQD/////gu2vAAAAAAAAAAAAAAAAAAAAAAACAAAA//////////8BAAAAAwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////AgAAAP//////////AQAAAAAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD/////////////////////AQAAAP///////////////wIAAAD///////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA//////
vendor: 13,732 bytes, line 4163
4163///////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP///////////////////////////////wIAAAD///////////////8BAAAA/////////////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAABAAAA//////////8CAAAA//////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAAAQAAAP//////////AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAACAAAAAAAAAAIAAAABAAAAAQAAAAIAAAACAAAAAAAAAAUAAAAFAAAAAAAAAAIAAAACAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAEAAAACAAAAAgAAAAIAAAAAAAAABQAAAAYAAAAAAAAAAgAAAAIAAAADAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAAAAAACAAAAAQAAAAMAAAACAAAAAgAAAAAAAAAFAAAABwAAAAAAAAACAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAACAAAAAAAAAAIAAAABAAAABAAAAAIAAAACAAAAAAAAAAUAAAAIAAAAAAAAAAIAAAACAAAAAwAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAIAAAAAAAAAAgAAAAEAAAAAAAAAAgAAAAIAAAAAAAAABQAAAAkAAAAAAAAAAgAAAAIAAAADAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAIAAAAAAAAAAwAAAA4AAAACAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAgAAAAMAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAgAAAAAAAAADAAAACgAAAAIAAAAAAAAAAgAAAAMAAAABAAAAAAAAAAIAAAACAAAAAwAAAAcAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAACAAAAAAAAAAMAAAALAAAAAgAAAAAAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAIAAAADAAAACAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAIAAAAAAAAAAwAAAAwAAAACAAAAAAAAAAIAAAADAAAAAwAAAAAAAAACAAAAAgAAAAMAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAACAAAAAgAAAAAAAAADAAAADQAAAAIAAAAAAAAAAgAAAAMAAAAEAAAAAAAAAAIAAAACAAAAAwAAAAoAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAACAAAAAAAAAAMAAAAGAAAAAgAAAAAAAAACAAAAAwAAAA8AAAAAAAAAAgAAAAIAAAADAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAIAAAAAAAAAAwAAAAcAAAACAAAAAAAAAAIAAAADAAAAEAAAAAAAAAACAAAAAgAAAAMAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAgAAAAAAAAADAAAACAAAAAIAAAAAAAAAAgAAAAMAAAARAAAAAAAAAAIAAAACAAAAAwAAAA0AAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAACAAAAAAAAAAMAAAAJAAAAAgAAAAAAAAACAAAAAwAAABIAAAAAAAAAAgAAAAIAAAADAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAgAAAAIAAAAAAAAAAwAAAAUAAAACAAAAAAAAAAIAAAADAAAAEwAAAAAAAAACAAAAAgAAAAMAAAAPAAAAAAAAAAAAAAAAAAAAAAAAABAAAAACAAAAAAAAAAIAAAABAAAAEwAAAAIAAAACAAAAAAAAAAUAAAAKAAAAAAAAAAIAAAACAAAAAwAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAIAAAAAAAAAAgAAAAEAAAAPAAAAAgAAAAIAAAAAAAAABQAAAAsAAAAAAAAAAgAAAAIAAAADAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAgAAAAAAAAACAAAAAQAAABAAAAACAAAAAgAAAAAAAAAFAAAADAAAAAAAAAACAAAAAgAAAAMAAAASAAAAAAAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAIAAAABAAAAEQAAAAIAAAACAAAAAAAAAAUAAAANAAAAAAAAAAIAAAACAAAAAwAAABMAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAIAAAAAAAAAAgAAAAEAAAASAAAAAgAAAAIAAAAAAAAABQAAAA4AAAAAAAAAAgAAAAIAAAADAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAABAAAAAAAAAAAAAQAAAAAAAAAAAAA6B6FaUp9QQTPXMuL4myJBraiDfBwx9UBYJseitzTIQOL5if9jqZtAnXX+Z+ycb0C3pucbhRBCQG8wJBYqpRRAlWbDCzCY5z/eFWBUEve6P/+qo4Q50Y4/D9YM3iCcYT8fcA2QJSA0P4ADxu0qAAc/BNcGolVJ2j5d9FACqwquPh9z7MthtI9CSUSYJke/YUJQ/64OyjU0Qpi0+HCmFQdCm3GfIVdh2kHsJ11kAyauQYC3UDFJOoFBSJsFV1OwU0FK5fcxX4AmQWhy/zZIt/lACqaCPsBjzUDbdUNIScugQMYQlVJ4MXNANiuq8GTvRUDxTXnulxEZQFZ8QX5kpuw/qmG/JwYFlEAluh3Q6DB+QKn4vyNq0GZAKOXekas+UUB8xabXXhI6QG63C2pLtSNAdDBtyNfLDUDyOcu67ID2P0rCMvRXAeE/Ki2TSVyzyT9Dk+8Sz2uzP5J+w5ARWp0/NQAoOiMuhj9YnP+RyMJwPxgW7TvQVFk/KgsLYF0kQz9g5dAC6IwzQcgHPVvDex1B1XjppodHBkHJq3OMM9fwQNvcmJ7wddlAInGPpQs/w0BRobq5EBmtQJZ2ai7n+ZVAtv2G5E+bgECG+gIfKBlpQK5f8jdI91JAL39sL/WpPEB8rGxhDqklQK6yUf43XhBAxL9y/tK8+D86XyZpgrHiPwAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAP////8AAAAAAAAAAAAAAAABAAAAAAAAAAAAAAD/////AAAAAAAAAAABAAAAAQAAAAAAAAAAAAAA/////wAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8FAAAABQAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAABQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQAAAAAAAQABAAABAQAAAAAAAQAAAAEAAAABAAEAAAAAAAAAAAAAAAAAAAAAquJYWJZl+D9jaeZNtj/zPwwdI9KqaeO/qGefXwdHdz+q4lhYlmX4P+OrlPMN3PI/DB0j0qpp47+7SQLV4VIEQKriWFiWZfg/r2kma3tz8T82eQmLqNIGwMRIWXMqSvo/fcCszPux9j+jara6ozTwP6hnn18HR3c/MSoKLequ8r+SabgA2nj0P7jBLbDOHO8/1Ym/ICfH4T+6lxjvlFXHv73m373LRPU/0vXyDVxo7T+ToKRHJXMAQF/33578aPE/pAyy64tD9T8+U/hCvyruPwxv8Y7YYwLAuXYr8NAiCEB4+LDK0Sn0P1Qeuy4j+eo/OMx50n7K7L+TrGB/nyf8v5ehC2fbYPM/aXMKexiT6z8mFRIMjg/zP7yUVwGGBNw/E6opHERf8z/z0wR2g9DqPw4pBpcOhvu/NbA29uWAA8DMaTExyXzyP02biiQ+Ruk/S8jz2/FKBEB1pzZnpbb9P7pQU4wLfPI//7ZcQXeG6D9CqEQvAYoIwDB2VB6sSgRAVyv8H5We8T+EHWF8XNPmPzB2wT8Nrrg/SEi+cX+w4L8of+GtdSDxP1sjk5AdouU/6ZjOVru13r8K0obqI6bxvwVbdNXyhfA/w5GG024n5z+rwmtMzP8BwLw9pSX49QXABe/2uQxP8D+b6wCzCvXkP7uGT87fK+Q/pz/JWw4coj+qoBf2J0nwP/yE3PUo0+I/vFJeHcaC+D96luSIqvntP/bf8sHUYu8/gZNN41mL4z9bhOqVOF4FwO6lmAh1hQhAbCVxbdhk7z+1C8NdDcfiPwG36x/0OQBAx0WJ76c2+D9nlSHXANfuP2HlfZ3gqOE/EwnVlVPg9r96+oHzEH//v5bXzdT1Auw/DM3GwLsA4D9p/8uoKcr+v+U9x5DQVAPAehjSdghb7D9sc1IetODgP8MVwwB1pu6/azPk6OGe978W8t/TUc3rP+0QMvYfP+A/RsG/QpSE8D+l3uwScxzgPwQaifgujuw/k1Vti1I43z8MAwLnSh0GQH5nYnwwZgJAiGUzWC5s6j8WyyI/BbLgPw4iUapGeQJAB3W+imnp/j9BLWR4ssrpP2t+gG5Pstk/cpBsfm6DCMCOpU9dOZsFQEv8nFypHeo/ehJ6i+6S2D9jqlGEmarLv7STC5TRiOa/bC+x8WZD6D9H3yUkWpDZP8gZvmCMuQLAreY19/eRBsCoPOc8UzzpP6KI/QV+y9g/t/MoboyWzT+Hv5q3Zu3Mvy2xROCT4uY/9gQitMMg1T9abAqhWMDkv1oLTavoUfG/PMUJP9CD5j+fHRX3t6fSPz7W2gk6bvs/WRnuHwqN9D8YFturGCTmP1EZczv0b9I/5t4exabB5D/1ESLh5fTEP9X2z6SYweQ/6lv3I2zT0D9zkRGNUNMAQKoSvc4EIfs/Xggt8wQI5T+mJHHg/w/SP4lhT/9t8vQ/DrZ/DbwH7D+XlhbYZrjkP34LIpFt6c4/lwfp8fLX9L+j96CTTf76v3WdNhEv9uM/d8c3o4lV0D/vFdCHVcsFwAHeDq0F1QhApbYqcZiN5D9KoilqByXLPwX0/diA0vq/0fo0GxnxAMBbaTkvlCzjP/RrFrWXrMs/UYTrky7jA0DB9f4FiZYAQEGAk/3QzeE/r/TeqE8t0D/OqjlsnPbvvz8RKU8JOfW/smSEbK/O4T8MzuyPm3DDP/rFtctq9gZAfb1EVEaSA0Dts5dVInnhP18SFMc79MM/7y34cw6LAMDFrRJsZO0DwC2KLvLSYuA/hx5wcUHewz+49SnK/4ruPyeS0PX9a+E/ZxaaLvvZ3z8WPu5T2QS8Pygo4RIvMqa/BJ0Kqsd0279cKW4ay8jdP3b05bmZ364/10/qtdxk2r+Bcz6CDMvpv54qOw+Amdw/qLV71pW7sT/YKc80nIPUP8OfIaBJ77G/LyTuD1un2z+diYu8efWzP1wU7ACkfwjAZroyPL1yBkAmv3lKJJbbPysKSE4W+p0/dIgqY79TA8ATLTOQ3tsGwJ2zweD/Xdg/XO/jXeFUaL8VW2qLFKfov1cA9Aa6XfK/tIa7YGgI2T+f3hu/sxqPv2nXdPpf3Pc/jkw8Jbda8j+tT/z8tGPVP1yBHpJd35k/KYvYOy1s8j/yz+kCQjPrP9+agH7x59g/PZfJ9aBhpr/rDKzvYBb+PwtkiaGCt/c/vb1mVr+f1T/JIHwHc8Govw7aeF6+9vG/Xv7kD6fp979isYioQYHVP7AIQZuSFrG/3z1AdUTnAUDN3XY9O7f9P0AdQ9ljYNQ/dJANJPTOrb8kLECUiiPlP4yF7UgmStA/9xGmXxCG1T9qZzix4W2zv2SGJRJVrPe/Fh9a2M/B/b8IexzFCoPSP9y1QFD2bLe/Q86cWLJe/b+mOOfYm78BwOTjkPAGE9E/8aPCUKu/ub9pPZyLCiUGwBA7Mev/BQlALOmrlRi+0j+AMJ/dKULBv7iLtL6a6QRAEMDV/yajAUDa62dE3crJP1P70RgBUbq/38hVnR6esT/s1tG10Z/Ov/zLwalHPss/dTS9NKTXx78nMcRzCIEHQAabxDsAmQRA0tyLK3gSyT+Aui7nOhDGv5Gs58z3WgHATN3forJuBMCAui7nOhDGP9Lciyt4Esm/WAJyHQ4c7z8UP5HFIs3iP3U0vTSk18c//MvBqUc+y7+cvv8HLg/Kvy1I/mHsI+K/U/vRGAFRuj/a62dE3crJv8p+WV8KlQjAuQ/nOP43B0CAMJ/dKULBPyzpq5UYvtK/ZoU+VoLh4L9etLlRUfvtv/GjwlCrv7k/5OOQ8AYT0b9DfT9FhufXPwUX8hJp+4u/3LVAUPZstz8IexzFCoPSv9+L609E5fQ/q9Fz7X2J7T9qZzix4W2zP/cRpl8QhtW/vtNilqGX+j8MOy7QJoL0P3SQDST0zq0/QB1D2WNg1L8IIjSvGNkDwGB8Jou2GAfAsAhBm5IWsT9isYioQYHVvyS9D3zb6uy/gnwRa7uM9L/JIHwHc8GoP729Zla/n9W/CsAHJZwmAEDEW6OYT1r6Pz2XyfWgYaY/35qAfvHn2L83Tdy4lS30vxf2/gZ0jPq/XIEekl3fmb+tT/z8tGPVvybPr2zJ1/+/K7mJ0ypVAsCf3hu/sxqPPwCGu2BoCNm/5oITrpZn+r+UDUyDP+n/v1zv413hVGg/nbPB4P9d2L9MlmkxNvgCQMtZlKE85v8/KwpIThb6nb8mv3lKJJbbv8+SZsTvOOc/pQCIIOYw0j+diYu8efWzvy8k7g9bp9u/kxYDa+pKtD9XlYvA8HnVv6i1e9aVu7G/nio7D4CZ3L/WR6rNh5EGwCkgQweBkghAdvTluZnfrr9cKW4ay8jdvxbjhr1f1QVAR5C0MzivAkAWPu5T2QS8v2cWmi772d+/cKj4lzLJCEBx2QJfYrMFQIcecHFB3sO/LYou8tJi4L+jr7lhO38BwIcI0Nb7xgTAXxIUxzv0w7/ts5dVInnhv0T+l8DZLfE/MP3FoFvS5D8MzuyPm3DDv7JkhGyvzuG/tzhzRIRc0b9Ovv3/0z7mv6/03qhPLdC/m4CT/dDN4b9dwjU5VCQBQBBJX1ntCv0/9GsWtZesy79baTkvlCzjv1mjYgEz++S/oW6KnOQW8b9KoilqByXLv6W2KnGYjeS/SmaKz3Vx9z+BZB5yxGHwP3fHN6OJVdC/dZ02ES/2478PuaBjLrXaP4/JU81pPaO/fgsikW3pzr+XlhbYZrjkv4tSn7YDbP0/f2LnFKlF9z+mJHHg/w/Sv14ILfMECOW/mfg4qYhR/b+OP+RQDCACwOpb9yNs09C/1fbPpJjB5L9pN2WOVZ3wv3hHy9nxIve/URlzO/Rv0r8YFturGCTmv1d1/KKR8QPA8gsy9qzSB8CfHRX3t6fSvzzFCT/Qg+a/EYStnrzV9r/2QJqI7Lb9v/YEIrTDINW/LbFE4JPi5r/7kQEs5fEDQHunnf4GeQBAooj9BX7L2L+oPOc8Uzzpv+ydYY2SSAfAL4HK6CRTB0BH3yUkWpDZv2wvsfFmQ+i/Ik0Yzruh6T8fM3LoGoDUP3oSeovukti/S/ycXKkd6r9rEv+7UWcHQCRIQe/GfwNAa36Abk+y2b9BLWR4ssrpv9KT87qa0bM/FTyktw823L8WyyI/BbLgv4hlM1gubOq/DizMp9Ki6r8b5ckdjVrzv5NVbYtSON+/BBqJ+C6O7L/dUBFqgyXYv00Wh18r7+q/7RAy9h8/4L8W8t/TUc3rv4RM5DKx3wDAfvWIj94aBcBsc1IetODgv3oY0nYIW+y/oGcTFF54AUDkJqS/FKX6PwzNxsC7AOC/ltfN1PUC7L+5Wrz/zHnzP6688w2rNOc/YeV9neCo4b9nlSHXANfuvw9RsxKjY/s/1V8GteXE8j+1C8NdDcfiv2wlcW3YZO+/IOywaA7Q8b9bFP+4Tg36v4GTTeNZi+O/9t/ywdRi77+tRc3yFR7eP2bkcHXJkLO//ITc9SjT4r+qoBf2J0nwv2YHKoswwfm/iQcLspCjAcCb6wCzCvXkvwXv9rkMT/C/YkuwYAMXBMApCNUai9kIwMORhtNuJ+e/BVt01fKF8L+ZqWEfvIjsP6h693QZYNk/WyOTkB2i5b8of+GtdSDxvwpaaulDSwVADMQAX+lOAECEHWF8XNPmv1cr/B+VnvG/XyFG6opcCMD/mtR32/UEQP+2XEF3hui/ulBTjAt88r/imfCfRP+yP9zbvtc8XeO/TZuKJD5G6b/MaTExyXzyvxiTQeElXOO/rbJRQVGN9L/z0wR2g9DqvxOqKRxEX/O/FDGCEei99j9x8zV4VYTmP2lzCnsYk+u/l6ELZ9tg878pRXacaDT/v3k6GZRqoQXAVB67LiP56r94+LDK0Sn0vwO6pZ9b7wFAvK0nKVcc9j8+U/hCvyruv6QMsuuLQ/W/FPhKFYv46j8MyxaDTOW/v9L18g1caO2/vebfvctE9b/7GD8ZrF3xv3gx1AR9bQDAuMEtsM4c77+SabgA2nj0v5xKFIwxsATArKNSBaKsB0Cjara6ozTwv33ArMz7sfa/dF2U0FcWCcDxL357DJX/P69pJmt7c/G/quJYWJZl+L/YntVJlnrSP4sRLzXM+fe/46uU8w3c8r+q4lhYlmX4v85lu5+QRwRAsI0H/WU8479jaeZNtj/zv6riWFiWZfi/sI0H/WU847/OZbufkEcEQHAoPUBrnss/9exKzDtFtT88wM8kax+gP9OqeKeAYog/MW0ItiZvcj+ph+smvt5bP2lCaV5dEUU/StaUmQDaLz+kK9y22BMYP0O3whZuMwI/IIbgZGWE6z7UkjYaEM3UPuezxwa9cr8+LybxRMnFpz6E1N8DbPiRPsYjySMvK3s+//////8fAAj//////zMQCP////9/MiAI/////28yMAj/////YzJACP///z9iMlAI////N2IyYAj///8zYjJwCP//vzNiMoAI//+rM2IykAj/f6szYjKgCP8PqzNiMrAI/wOrM2IywAi/A6szYjLQCJ8DqzNiMuAImQOrM2Iy8Aj//////z8PCP//////Kx8I/////38pLwj/////Pyk/CP////85KU8I////PzgpXwj///8POClvCP///w44KX8I//8fDjgpjwj//w8OOCmfCP9/DQ44Ka8I/w8NDjgpvwj/DQ0OOCnPCP8MDQ44Kd8IxwwNDjgp7wjEDA0OOCn/CAcAAAAHAAAAAQAAAAIAAAAEAAAAAwAAAAAAAAAAAAAABwAAAAMAAAABAAAAAgAAAAUAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAGAAAAAgAAAAMAAAAFAAAABAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAwAAAAEAAAAFAAAABAAAAAAAAAAAAAAABwAAAAUAAAADAAAABAAAAAEAAAAAAAAAAgAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAABgtRFT7Ifk/GC1EVPsh+b8YLURU+yEJQBgtRFT7IQnAYWxnb3MuYwBoM05laWdoYm9yUm90YXRpb25zAGNvb3JkaWprLmMAX3VwQXA3Q2hlY2tlZABfdXBBcDdyQ2hlY2tlZABkaXJlY3RlZEVkZ2UuYwBkaXJlY3RlZEVkZ2VUb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpclt0bXBGaWprLmZhY2VdW2ZpamsuZmFjZV0gPT0gS0kAZmFjZWlqay5jAF9mYWNlSWprUGVudFRvQ2VsbEJvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9DZWxsQm91bmRhcnkAaDNJbmRleC5jAGNvbXBhY3RDZWxscwBsYXRMbmdUb0NlbGwAY2VsbFRvQ2hpbGRQb3MAdmFsaWRhdGVDaGlsZFBvcwBsYXRMbmcuYwBjZWxsQXJlYVJhZHMyAHBvbHlnb24tPm5leHQgPT0gTlVMTABsaW5rZWRHZW8uYwBhZGROZXdMaW5rZWRQb2x5Z29uAG5leHQgIT0gTlVMTABsb29wICE9IE5VTEwAYWRkTmV3TGlua2VkTG9vcABwb2x5Z29uLT5maXJzdCA9PSBOVUxMAGFkZExpbmtlZExvb3AAY29vcmQgIT0gTlVMTABhZGRMaW5rZWRDb29yZABsb29wLT5maXJzdCA9PSBOVUxMAGlubmVyTG9vcHMgIT0gTlVMTABub3JtYWxpemVNdWx0aVBvbHlnb24AYmJveGVzICE9IE5VTEwAY2FuZGlkYXRlcyAhPSBOVUxMAGZpbmRQb2x5Z29uRm9ySG9sZQBjYW5kaWRhdGVCQm94ZXMgIT0gTlVMTAByZXZEaXIgIT0gSU5WQUxJRF9ESUdJVABsb2NhbGlqLmMAY2VsbFRvTG9jYWxJamsAYmFzZUNlbGwgIT0gb3JpZ2luQmFzZUNlbGwAIShvcmlnaW5PblBlbnQgJiYgaW5kZXhPblBlbnQpAGJhc2VDZWxsID09IG9yaWdpbkJhc2VDZWxsAGJhc2VDZWxsICE9IElOVkFMSURfQkFTRV9DRUxMAGxvY2FsSWprVG9DZWxsACFfaXNCYXNlQ2VsbFBlbnRhZ29uKGJhc2VDZWxsKQBiYXNlQ2VsbFJvdGF0aW9ucyA+PSAwAGdyaWRQYXRoQ2VsbHMAcG9seWZpbGwuYwBpdGVyU3RlcFBvbHlnb25Db21wYWN0ADAAdmVydGV4LmMAdmVydGV4Um90YXRpb25zAGNlbGxUb1ZlcnRleABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";
4163var ve=28640;function ce(Ve,pt,Tt,xt){hn("Assertion failed: "+I(Ve)+", at: "+[pt?I(pt):"unknown filename",Tt,xt?I(xt):"unknown function"])}function je(){return z.length}function dt(Ve,pt,Tt){Q.set(Q.subarray(pt,pt+Tt),Ve)}function ft(Ve){return e.___errno_location&&(Z[e.___errno_location()>>2]=Ve),Ve}function at(Ve){hn("OOM")}function St(Ve){try{var pt=new ArrayBuffer(Ve);return pt.byteLength!=Ve?void 0:(new Int8Array(pt).set(z),yn(pt),se(pt),1)}catch{}}function ut(Ve){var pt=je(),Tt=16777216,xt=2147483648-Tt;if(Ve>xt)return!1;for(var v=16777216,W=Math.max(pt,v);W<Ve;)W<=536870912?W=G(2*W,Tt):W=Math.min(G((3*W+2147483648)/4,Tt),xt);var Te=St(W);return!!Te}var gt=typeof atob=="function"?atob:function(Ve){var pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Tt="",xt,v,W,Te,_e,be,xe,we=0;Ve=Ve.replace(/[^A-Za-z0-9\+\/\=]/g,"");do Te=pt.indexOf(Ve.charAt(we++)),_e=pt.indexOf(Ve.charAt(we++)),be=pt.indexOf(Ve.charAt(we++)),xe=pt.indexOf(Ve.charAt(we++)),xt=Te<<2|_e>>4,v=(_e&15)<<4|be>>2,W=(be&3)<<6|xe,Tt=Tt+String.fromCharCode(xt),be!==64&&(Tt=Tt+String.fromCharCode(v)),xe!==64&&(Tt=Tt+String.fromCharCode(W));while(we<Ve.length);return Tt};function Vt(Ve){try{for(var pt=gt(Ve),Tt=new Uint8Array(pt.length),xt=0;xt<pt.length;++xt)Tt[xt]=pt.charCodeAt(xt);return Tt}catch{throw new Error("Converting base64 string to bytes failed.")}}function Zt(Ve){if(It(Ve))return Vt(Ve.slice(Ct.length))}var Wt={Math,Int8Array,Int32Array,Uint8Array,Float32Array,Float64Array},qt={b:u,c:f,d:ce,e:ft,f:je,g:dt,h:ut,i:at,o:ve,p:J},We=(function(Ve,pt,Tt){"almost asm";var xt=new Ve.Int8Array(Tt),v=new Ve.Int32Array(Tt);new Ve.Uint8Array(Tt),new Ve.Float32Array(Tt);var W=new Ve.Float64Array(Tt),Te=pt.o|0,_e=pt.p|0,be=Ve.Math.floor,xe=Ve.Math.abs,we=Ve.Math.sqrt,tt=Ve.Math.pow,ot=Ve.Math.cos,ze=Ve.Math.sin,Ke=Ve.Math.tan,rt=Ve.Math.acos,Rt=Ve.Math.asin,Xt=Ve.Math.atan,rn=Ve.Math.atan2,en=Ve.Math.ceil,Qt=Ve.Math.imul,sn=Ve.Math.min,ur=Ve.Math.max,ye=Ve.Math.clz32,He=pt.b,ue=pt.c,Ze=pt.d,yt=pt.e,_n=pt.f,Sn=pt.g,pn=pt.h,wn=pt.i,pe=28656;function Hn(_){return xt=new Int8Array(_),v=new Int32Array(_),W=new Float64Array(_),Tt=_,!0}function Tn(_){_=_|0;var y=0;return y=pe,pe=pe+_|0,pe=pe+15&-16,y|0}function bn(){return pe|0}function vr(_){_=_|0,pe=_}function Zr(_,y){_=_|0,pe=_}function kn(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;return(_|0)<0?(y=2,y|0):(_|0)>13780509?(y=Xp(15,y)|0,y|0):(S=((_|0)<0)<<31>>31,R=fs(_|0,S|0,3,0)|0,N=ue()|0,S=On(_|0,S|0,1,0)|0,S=fs(R|0,N|0,S|0,ue()|0)|0,S=On(S|0,ue()|0,1,0)|0,_=ue()|0,v[y>>2]=S,v[y+4>>2]=_,y=0,y|0)}function ti(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,Qr(_,y,S,N,0)|0}function Qr(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0;if(Y=pe,pe=pe+16|0,U=Y,!(Cn(_,y,S,N,R)|0))return N=0,pe=Y,N|0;do if((S|0)>=0){if((S|0)>13780509){if(F=Xp(15,U)|0,F|0)break;V=U,U=v[V>>2]|0,V=v[V+4>>2]|0}else F=((S|0)<0)<<31>>31,ne=fs(S|0,F|0,3,0)|0,V=ue()|0,F=On(S|0,F|0,1,0)|0,F=fs(ne|0,V|0,F|0,ue()|0)|0,F=On(F|0,ue()|0,1,0)|0,V=ue()|0,v[U>>2]=F,v[U+4>>2]=V,U=F;if(H0(N|0,0,U<<3|0)|0,R|0){H0(R|0,0,U<<2|0)|0,F=zi(_,y,S,N,R,U,V,0)|0;break}F=Ec(U,4)|0,F?(ne=zi(_,y,S,N,F,U,V,0)|0,pr(F),F=ne):F=13}else F=2;while(!1);return ne=F,pe=Y,ne|0}function Cn(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0;if(st=pe,pe=pe+16|0,Oe=st,Ue=st+8|0,Be=Oe,v[Be>>2]=_,v[Be+4>>2]=y,(S|0)<0)return Ue=2,pe=st,Ue|0;if(F=N,v[F>>2]=_,v[F+4>>2]=y,F=(R|0)!=0,F&&(v[R>>2]=0),Yi(_,y)|0)return Ue=9,pe=st,Ue|0;v[Ue>>2]=0;e:do if((S|0)>=1)if(F)for(le=1,ne=0,Ee=0,Be=1,F=_;;){if(!(ne|Ee)){if(F=or(F,y,4,Ue,Oe)|0,F|0)break e;if(y=Oe,F=v[y>>2]|0,y=v[y+4>>2]|0,Yi(F,y)|0){F=9;break e}}if(F=or(F,y,v[26800+(Ee<<2)>>2]|0,Ue,Oe)|0,F|0)break e;if(y=Oe,F=v[y>>2]|0,y=v[y+4>>2]|0,_=N+(le<<3)|0,v[_>>2]=F,v[_+4>>2]=y,v[R+(le<<2)>>2]=Be,_=ne+1|0,U=(_|0)==(Be|0),V=Ee+1|0,Y=(V|0)==6,Yi(F,y)|0){F=9;break e}if(Be=Be+(Y&U&1)|0,(Be|0)>(S|0)){F=0;break}else le=le+1|0,ne=U?0:_,Ee=U?Y?0:V:Ee}else for(le=1,ne=0,Ee=0,Be=1,F=_;;){if(!(ne|Ee)){if(F=or(F,y,4,Ue,Oe)|0,F|0)break e;if(y=Oe,F=v[y>>2]|0,y=v[y+4>>2]|0,Yi(F,y)|0){F=9;break e}}if(F=or(F,y,v[26800+(Ee<<2)>>2]|0,Ue,Oe)|0,F|0)break e;if(y=Oe,F=v[y>>2]|0,y=v[y+4>>2]|0,_=N+(le<<3)|0,v[_>>2]=F,v[_+4>>2]=y,_=ne+1|0,U=(_|0)==(Be|0),V=Ee+1|0,Y=(V|0)==6,Yi(F,y)|0){F=9;break e}if(Be=Be+(Y&U&1)|0,(Be|0)>(S|0)){F=0;break}else le=le+1|0,ne=U?0:_,Ee=U?Y?0:V:Ee}else F=0;while(!1);return Ue=F,pe=st,Ue|0}function zi(_,y,S,N,R,F,U,V){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0,U=U|0,V=V|0;
4163var Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0;if(st=pe,pe=pe+16|0,Oe=st+8|0,Ue=st,Y=sm(_|0,y|0,F|0,U|0)|0,le=ue()|0,Ee=N+(Y<<3)|0,At=Ee,Pt=v[At>>2]|0,At=v[At+4>>2]|0,ne=(Pt|0)==(_|0)&(At|0)==(y|0),!((Pt|0)==0&(At|0)==0|ne))do Y=On(Y|0,le|0,1,0)|0,Y=K2(Y|0,ue()|0,F|0,U|0)|0,le=ue()|0,Ee=N+(Y<<3)|0,Pt=Ee,At=v[Pt>>2]|0,Pt=v[Pt+4>>2]|0,ne=(At|0)==(_|0)&(Pt|0)==(y|0);while(!((At|0)==0&(Pt|0)==0|ne));if(Y=R+(Y<<2)|0,ne&&(v[Y>>2]|0)<=(V|0)||(Pt=Ee,v[Pt>>2]=_,v[Pt+4>>2]=y,v[Y>>2]=V,(V|0)>=(S|0)))return Pt=0,pe=st,Pt|0;switch(ne=V+1|0,v[Oe>>2]=0,Y=or(_,y,2,Oe,Ue)|0,Y|0){case 9:{Be=9;break}case 0:{Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y||(Be=9);break}}e:do if((Be|0)==9){switch(v[Oe>>2]=0,Y=or(_,y,3,Oe,Ue)|0,Y|0){case 9:break;case 0:{if(Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y|0)break e;break}default:break e}switch(v[Oe>>2]=0,Y=or(_,y,1,Oe,Ue)|0,Y|0){case 9:break;case 0:{if(Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y|0)break e;break}default:break e}switch(v[Oe>>2]=0,Y=or(_,y,5,Oe,Ue)|0,Y|0){case 9:break;case 0:{if(Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y|0)break e;break}default:break e}switch(v[Oe>>2]=0,Y=or(_,y,4,Oe,Ue)|0,Y|0){case 9:break;case 0:{if(Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y|0)break e;break}default:break e}switch(v[Oe>>2]=0,Y=or(_,y,6,Oe,Ue)|0,Y|0){case 9:break;case 0:{if(Y=Ue,Y=zi(v[Y>>2]|0,v[Y+4>>2]|0,S,N,R,F,U,ne)|0,Y|0)break e;break}default:break e}return Pt=0,pe=st,Pt|0}while(!1);return Pt=Y,pe=st,Pt|0}function or(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0;if(S>>>0>6)return R=1,R|0;if(Ee=(v[N>>2]|0)%6|0,v[N>>2]=Ee,(Ee|0)>0){F=0;do S=Vp(S)|0,F=F+1|0;while((F|0)<(v[N>>2]|0))}if(Ee=on(_|0,y|0,45)|0,ue()|0,le=Ee&127,le>>>0>121)return R=5,R|0;Y=bc(_,y)|0,F=on(_|0,y|0,52)|0,ue()|0,F=F&15;e:do if(!F)ne=8;else{for(;;){if(U=(15-F|0)*3|0,V=on(_|0,y|0,U|0)|0,ue()|0,V=V&7,(V|0)==7){y=5;break}if(Ue=(Dl(F)|0)==0,F=F+-1|0,Be=mn(7,0,U|0)|0,y=y&~(ue()|0),Oe=mn(v[(Ue?432:16)+(V*28|0)+(S<<2)>>2]|0,0,U|0)|0,U=ue()|0,S=v[(Ue?640:224)+(V*28|0)+(S<<2)>>2]|0,_=Oe|_&~Be,y=U|y,!S){S=0;break e}if(!F){ne=8;break e}}return y|0}while(!1);(ne|0)==8&&(Ue=v[848+(le*28|0)+(S<<2)>>2]|0,Oe=mn(Ue|0,0,45)|0,_=Oe|_,y=ue()|0|y&-1040385,S=v[4272+(le*28|0)+(S<<2)>>2]|0,(Ue&127|0)==127&&(Ue=mn(v[848+(le*28|0)+20>>2]|0,0,45)|0,y=ue()|0|y&-1040385,S=v[4272+(le*28|0)+20>>2]|0,_=$p(Ue|_,y)|0,y=ue()|0,v[N>>2]=(v[N>>2]|0)+1)),V=on(_|0,y|0,45)|0,ue()|0,V=V&127;e:do if(si(V)|0){t:do if((bc(_,y)|0)==1){if((le|0)!=(V|0))if($u(V,v[7696+(le*28|0)>>2]|0)|0){_=B6(_,y)|0,U=1,y=ue()|0;break}else Ze(27795,26864,533,26872);switch(Y|0){case 3:{_=$p(_,y)|0,y=ue()|0,v[N>>2]=(v[N>>2]|0)+1,U=0;break t}case 5:{_=B6(_,y)|0,y=ue()|0,v[N>>2]=(v[N>>2]|0)+5,U=0;break t}case 0:return Ue=9,Ue|0;default:return Ue=1,Ue|0}}else U=0;while(!1);if((S|0)>0){F=0;do _=I6(_,y)|0,y=ue()|0,F=F+1|0;while((F|0)!=(S|0))}if((le|0)!=(V|0)){if(!(vc(V)|0)){if((U|0)!=0|(bc(_,y)|0)!=5)break;v[N>>2]=(v[N>>2]|0)+1;break}switch(Ee&127){case 8:case 118:break e}(bc(_,y)|0)!=3&&(v[N>>2]=(v[N>>2]|0)+1)}}else if((S|0)>0){F=0;do _=$p(_,y)|0,y=ue()|0,F=F+1|0;while((F|0)!=(S|0))}while(!1);return v[N>>2]=((v[N>>2]|0)+S|0)%6|0,Ue=R,v[Ue>>2]=_,v[Ue+4>>2]=y,Ue=0,Ue|0}function ja(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,Vs(_,y,S,N)|0?(H0(N|0,0,S*48|0)|0,N=Nl(_,y,S,N)|0,N|0):(N=0,N|0)}function Vs(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0;if(Ue=pe,pe=pe+16|0,Be=Ue,Oe=Ue+8|0,Ee=Be,v[Ee>>2]=_,v[Ee+4>>2]=y,(S|0)<0)return Oe=2,pe=Ue,Oe|0;if(!S)return Oe=N,v[Oe>>2]=_,v[Oe+4>>2]=y,Oe=0,pe=Ue,Oe|0;v[Oe>>2]=0;e:do if(Yi(_,y)|0)_=9;else{R=0,Ee=_;do{if(_=or(Ee,y,4,Oe,Be)|0,_|0)break e;if(y=Be,Ee=v[y>>2]|0,y=v[y+4>>2]|0,R=R+1|0,Yi(Ee,y)|0){_=9;break e}}while((R|0)<(S|0));le=N,v[le>>2]=Ee,v[le+4>>2]=y,le=S+-1|0,ne=0,_=1;do{if(R=26800+(ne<<2)|0,(ne|0)==5)for(U=v[R>>2]|0,F=0,R=_;;){if(_=Be,_=or(v[_>>2]|0,v[_+4>>2]|0,U,Oe,Be)|0,_|0)break e;if((F|0)!=(le|0))if(Y=Be,V=v[Y>>2]|0,Y=v[Y+4>>2]|0,_=N+(R<<3)|0,v[_>>2]=V,v[_+4>>2]=Y,!(Yi(V,Y)|0))_=R+1|0;else{_=9;break e}else _=R;if(F=F+1|0,(F|0)>=(S|0))break;R=_}else for(U=Be,Y=v[R>>2]|0,V=0,R=_,F=v[U>>2]|0,U=v[U+4>>2]|0;;){if(_=or(F,U,Y,Oe,Be)|0,_|0)break e;if(U=Be,F=v[U>>2]|0,U=v[U+4>>2]|0,_=N+(R<<3)|0,v[_>>2]=F,v[_+4>>2]=U,_=R+1|0,Yi(F,U)|0){_=9;break e}if(V=V+1|0,(V|0)>=(S|0))break;R=_}ne=ne+1|0}while(ne>>>0<6);_=Be,_=(Ee|0)==(v[_>>2]|0)&&(y|0)==(v[_+4>>2]|0)?0:9}while(!1);return Oe=_,pe=Ue,Oe|0}function Nl(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;if(Ee=pe,pe=pe+16|0,U=Ee,!S)return v[N>>2]=_,v[N+4>>2]=y,N=0,pe=Ee,N|0;do if((S|0)>=0){if((S|0)>13780509){if(R=Xp(15,U)|0,R|0)break;F=U,R=v[F>>2]|0,F=v[F+4>>2]|0}else R=((S|0)<0)<<31>>31,le=fs(S|0,R|0,3,0)|0,F=ue()|0,R=On(S|0,R|0,1,0)|0,R=fs(le|0,F|0,R|0,ue()|0)|0,R=On(R|0,ue()|0,1,0)|0,F=ue()|0,le=U,v[le>>2]=R,v[le+4>>2]=F;if(ne=Ec(R,8)|0,!ne)R=13;else{if(le=Ec(R,4)|0,!le){pr(ne),R=13;break}if(R=zi(_,y,S,ne,le,R,F,0)|0,R|0){pr(ne),pr(le);break}if(y=v[U>>2]|0,U=v[U+4>>2]|0,(U|0)>0|(U|0)==0&y>>>0>0){R=0,V=0,Y=0;do _=ne+(V<<3)|0,F=v[_>>2]|0,_=v[_+4>>2]|0,!((F|0)==0&(_|0)==0)&&(v[le+(V<<2)>>2]|0)==(S|0)&&(Be=N+(R<<3)|0,v[Be>>2]=F,v[Be+4>>2]=_,R=R+1|0),V=On(V|0,Y|0,1,0)|0,Y=ue()|0;while((Y|0)<(U|0)|(Y|0)==(U|0)&V>>>0<y>>>0)}pr(ne),pr(le),R=0}}else R=2;while(!1);return Be=R,pe=Ee,Be|0}function to(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0;for(V=pe,pe=pe+16|0,F=V,U=V+8|0,R=(Yi(_,y)|0)==0,R=R?1:2;;){if(v[U>>2]=0,ne=(or(_,y,R,U,F)|0)==0,Y=F,ne&((v[Y>>2]|0)==(S|0)?(v[Y+4>>2]|0)==(N|0):0)){_=4;break}if(R=R+1|0,R>>>0>=7){R=7,_=4;break}}return(_|0)==4?(pe=V,R|0):0}function Ri(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0;if(V=pe,pe=pe+48|0,R=V+16|0,F=V+8|0,U=V,S=Qu(S)|0,S|0)return U=S,pe=V,U|0;if(ne=_,Y=v[ne+4>>2]|0,S=F,v[S>>2]=v[ne>>2],v[S+4>>2]=Y,uu(F,R),S=Zu(R,y,U)|0,!S){if(y=v[F>>2]|0,F=v[_+8>>2]|0,(F|0)>0){R=v[_+12>>2]|0,S=0;do y=(v[R+(S<<3)>>2]|0)+y|0,S=S+1|0;while((S|0)<(F|0))}S=U,R=v[S>>2]|0,S=v[S+4>>2]|0,F=((y|0)<0)<<31>>31,(S|0)<(F|0)|(S|0)==(F|0)&R>>>0<y>>>0?(S=U,v[S>>2]=y,v[S+4>>2]=F,S=F):y=R,Y=On(y|0,S|0,12,0)|0,ne=ue()|0,S=U,v[S>>2]=Y,v[S+4>>2]=ne,S=N,v[S>>2]=Y,v[S+4>>2]=ne,S=0}return ne=S,pe=V,ne|0}function na(_,y,S,N,R,F,U){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0,U=U|0;
4163var V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0,Jn=0,xn=0,yr=0,ni=0,Cr=0,Xi=0,kl=0,Jd=0;if(ni=pe,pe=pe+64|0,Mr=ni+48|0,Jn=ni+32|0,xn=ni+24|0,gn=ni+8|0,Yn=ni,Y=v[_>>2]|0,(Y|0)<=0)return yr=0,pe=ni,yr|0;for(jn=_+4|0,Ir=Mr+8|0,Nr=Jn+8|0,Yr=gn+8|0,V=0,bt=0;;){ne=v[jn>>2]|0,Et=ne+(bt<<4)|0,v[Mr>>2]=v[Et>>2],v[Mr+4>>2]=v[Et+4>>2],v[Mr+8>>2]=v[Et+8>>2],v[Mr+12>>2]=v[Et+12>>2],(bt|0)==(Y+-1|0)?(v[Jn>>2]=v[ne>>2],v[Jn+4>>2]=v[ne+4>>2],v[Jn+8>>2]=v[ne+8>>2],v[Jn+12>>2]=v[ne+12>>2]):(Et=ne+(bt+1<<4)|0,v[Jn>>2]=v[Et>>2],v[Jn+4>>2]=v[Et+4>>2],v[Jn+8>>2]=v[Et+8>>2],v[Jn+12>>2]=v[Et+12>>2]),Y=Gd(Mr,Jn,N,xn)|0;e:do if(Y)ne=0,V=Y;else if(Y=xn,ne=v[Y>>2]|0,Y=v[Y+4>>2]|0,(Y|0)>0|(Y|0)==0&ne>>>0>0){Pt=0,Et=0;t:for(;;){if(Xi=1/(+(ne>>>0)+4294967296*+(Y|0)),Jd=+W[Mr>>3],Y=no(ne|0,Y|0,Pt|0,Et|0)|0,kl=+(Y>>>0)+4294967296*+(ue()|0),Cr=+(Pt>>>0)+4294967296*+(Et|0),W[gn>>3]=Xi*(Jd*kl)+Xi*(+W[Jn>>3]*Cr),W[Yr>>3]=Xi*(+W[Ir>>3]*kl)+Xi*(+W[Nr>>3]*Cr),Y=i4(gn,N,Yn)|0,Y|0){V=Y;break}At=Yn,st=v[At>>2]|0,At=v[At+4>>2]|0,Be=sm(st|0,At|0,y|0,S|0)|0,le=ue()|0,Y=U+(Be<<3)|0,Ee=Y,ne=v[Ee>>2]|0,Ee=v[Ee+4>>2]|0;n:do if((ne|0)==0&(Ee|0)==0)ct=Y,yr=16;else for(Oe=0,Ue=0;;){if((Oe|0)>(S|0)|(Oe|0)==(S|0)&Ue>>>0>y>>>0){V=1;break t}if((ne|0)==(st|0)&(Ee|0)==(At|0))break n;if(Y=On(Be|0,le|0,1,0)|0,Be=K2(Y|0,ue()|0,y|0,S|0)|0,le=ue()|0,Ue=On(Ue|0,Oe|0,1,0)|0,Oe=ue()|0,Y=U+(Be<<3)|0,Ee=Y,ne=v[Ee>>2]|0,Ee=v[Ee+4>>2]|0,(ne|0)==0&(Ee|0)==0){ct=Y,yr=16;break}}while(!1);if((yr|0)==16&&(yr=0,!((st|0)==0&(At|0)==0))&&(Ue=ct,v[Ue>>2]=st,v[Ue+4>>2]=At,Ue=F+(v[R>>2]<<3)|0,v[Ue>>2]=st,v[Ue+4>>2]=At,Ue=R,Ue=On(v[Ue>>2]|0,v[Ue+4>>2]|0,1,0)|0,st=ue()|0,At=R,v[At>>2]=Ue,v[At+4>>2]=st),Pt=On(Pt|0,Et|0,1,0)|0,Et=ue()|0,Y=xn,ne=v[Y>>2]|0,Y=v[Y+4>>2]|0,!((Y|0)>(Et|0)|(Y|0)==(Et|0)&ne>>>0>Pt>>>0)){ne=1;break e}}ne=0}else ne=1;while(!1);if(bt=bt+1|0,!ne){yr=21;break}if(Y=v[_>>2]|0,(bt|0)>=(Y|0)){V=0,yr=21;break}}return(yr|0)==21?(pe=ni,V|0):0}function ou(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0,Jn=0,xn=0,yr=0,ni=0,Cr=0,Xi=0,kl=0;if(kl=pe,pe=pe+112|0,yr=kl+80|0,Y=kl+72|0,ni=kl,Cr=kl+56|0,R=Qu(S)|0,R|0)return Xi=R,pe=kl,Xi|0;if(ne=_+8|0,Xi=Gf((v[ne>>2]<<5)+32|0)|0,!Xi)return Xi=13,pe=kl,Xi|0;if(Ku(_,Xi),R=Qu(S)|0,!R){if(Jn=_,xn=v[Jn+4>>2]|0,R=Y,v[R>>2]=v[Jn>>2],v[R+4>>2]=xn,uu(Y,yr),R=Zu(yr,y,ni)|0,R)Jn=0,xn=0;else{if(R=v[Y>>2]|0,F=v[ne>>2]|0,(F|0)>0){U=v[_+12>>2]|0,S=0;do R=(v[U+(S<<3)>>2]|0)+R|0,S=S+1|0;while((S|0)!=(F|0));S=R}else S=R;R=ni,F=v[R>>2]|0,R=v[R+4>>2]|0,U=((S|0)<0)<<31>>31,(R|0)<(U|0)|(R|0)==(U|0)&F>>>0<S>>>0?(R=ni,v[R>>2]=S,v[R+4>>2]=U,R=U):S=F,Jn=On(S|0,R|0,12,0)|0,xn=ue()|0,R=ni,v[R>>2]=Jn,v[R+4>>2]=xn,R=0}if(!R){if(S=Ec(Jn,8)|0,!S)return pr(Xi),Xi=13,pe=kl,Xi|0;if(V=Ec(Jn,8)|0,!V)return pr(Xi),pr(S),Xi=13,pe=kl,Xi|0;Yr=yr,v[Yr>>2]=0,v[Yr+4>>2]=0,Yr=_,Mr=v[Yr+4>>2]|0,R=Y,v[R>>2]=v[Yr>>2],v[R+4>>2]=Mr,R=na(Y,Jn,xn,y,yr,S,V)|0;e:do if(R)pr(S),pr(V),pr(Xi);else{t:do if((v[ne>>2]|0)>0){for(U=_+12|0,F=0;R=na((v[U>>2]|0)+(F<<3)|0,Jn,xn,y,yr,S,V)|0,F=F+1|0,!(R|0);)if((F|0)>=(v[ne>>2]|0))break t;pr(S),pr(V),pr(Xi);break e}while(!1);(xn|0)>0|(xn|0)==0&Jn>>>0>0&&H0(V|0,0,Jn<<3|0)|0,Mr=yr,Yr=v[Mr+4>>2]|0;t:do if((Yr|0)>0|(Yr|0)==0&(v[Mr>>2]|0)>>>0>0){jn=S,Ir=V,Nr=S,Yr=V,Mr=S,R=S,ct=S,gn=V,Yn=V,S=V;n:for(;;){for(At=0,Pt=0,Et=0,bt=0,F=0,U=0;;){V=ni,Y=V+56|0;do v[V>>2]=0,V=V+4|0;while((V|0)<(Y|0));if(y=jn+(At<<3)|0,ne=v[y>>2]|0,y=v[y+4>>2]|0,Cn(ne,y,1,ni,0)|0){V=ni,Y=V+56|0;do v[V>>2]=0,V=V+4|0;while((V|0)<(Y|0));V=Ec(7,4)|0,V|0&&(zi(ne,y,1,ni,V,7,0,0)|0,pr(V))}for(st=0;;){Ue=ni+(st<<3)|0,Oe=v[Ue>>2]|0,Ue=v[Ue+4>>2]|0;r:do if((Oe|0)==0&(Ue|0)==0)V=F,Y=U;else{if(le=sm(Oe|0,Ue|0,Jn|0,xn|0)|0,ne=ue()|0,V=N+(le<<3)|0,y=V,Y=v[y>>2]|0,y=v[y+4>>2]|0,!((Y|0)==0&(y|0)==0)){Ee=0,Be=0;do{if((Ee|0)>(xn|0)|(Ee|0)==(xn|0)&Be>>>0>Jn>>>0)break n;if((Y|0)==(Oe|0)&(y|0)==(Ue|0)){V=F,Y=U;break r}V=On(le|0,ne|0,1,0)|0,le=K2(V|0,ue()|0,Jn|0,xn|0)|0,ne=ue()|0,Be=On(Be|0,Ee|0,1,0)|0,Ee=ue()|0,V=N+(le<<3)|0,y=V,Y=v[y>>2]|0,y=v[y+4>>2]|0}while(!((Y|0)==0&(y|0)==0))}if((Oe|0)==0&(Ue|0)==0){V=F,Y=U;break}n1(Oe,Ue,Cr)|0,Ju(_,Xi,Cr)|0&&(Be=On(F|0,U|0,1,0)|0,U=ue()|0,Ee=V,v[Ee>>2]=Oe,v[Ee+4>>2]=Ue,F=Ir+(F<<3)|0,v[F>>2]=Oe,v[F+4>>2]=Ue,F=Be),V=F,Y=U}while(!1);if(st=st+1|0,st>>>0>=7)break;F=V,U=Y}if(At=On(At|0,Pt|0,1,0)|0,Pt=ue()|0,Et=On(Et|0,bt|0,1,0)|0,bt=ue()|0,U=yr,F=v[U>>2]|0,U=v[U+4>>2]|0,(bt|0)<(U|0)|(bt|0)==(U|0)&Et>>>0<F>>>0)F=V,U=Y;else break}if((U|0)>0|(U|0)==0&F>>>0>0){F=0,U=0;do bt=jn+(F<<3)|0,v[bt>>2]=0,v[bt+4>>2]=0,F=On(F|0,U|0,1,0)|0,U=ue()|0,bt=yr,Et=v[bt+4>>2]|0;while((U|0)<(Et|0)|((U|0)==(Et|0)?F>>>0<(v[bt>>2]|0)>>>0:0))}if(bt=yr,v[bt>>2]=V,v[bt+4>>2]=Y,(Y|0)>0|(Y|0)==0&V>>>0>0)st=S,At=Yn,Pt=Mr,Et=gn,bt=Ir,S=ct,Yn=R,gn=Nr,ct=st,R=At,Mr=Yr,Yr=Pt,Nr=Et,Ir=jn,jn=bt;else break t}
4163pr(Nr),pr(Yr),pr(Xi),R=1;break e}else R=V;while(!1);pr(Xi),pr(S),pr(R),R=0}while(!1);return Xi=R,pe=kl,Xi|0}}return pr(Xi),Xi=R,pe=kl,Xi|0}function Si(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(le=pe,pe=pe+176|0,Y=le,(y|0)<1)return Hf(S,0,0),ne=0,pe=le,ne|0;for(V=_,V=on(v[V>>2]|0,v[V+4>>2]|0,52)|0,ue()|0,Hf(S,(y|0)>6?y:6,V&15),V=0;N=_+(V<<3)|0,N=r1(v[N>>2]|0,v[N+4>>2]|0,Y)|0,!(N|0);){if(N=v[Y>>2]|0,(N|0)>0){U=0;do F=Y+8+(U<<4)|0,U=U+1|0,N=Y+8+(((U|0)%(N|0)|0)<<4)|0,R=im(S,N,F)|0,R?rm(S,R)|0:m4(S,F,N)|0,N=v[Y>>2]|0;while((U|0)<(N|0))}if(V=V+1|0,(V|0)>=(y|0)){N=0,ne=13;break}}return(ne|0)==13?(pe=le,N|0):(h4(S),ne=N,pe=le,ne|0)}function tl(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;if(F=pe,pe=pe+32|0,N=F,R=F+16|0,_=Si(_,y,R)|0,_|0)return S=_,pe=F,S|0;if(v[S>>2]=0,v[S+4>>2]=0,v[S+8>>2]=0,_=p4(R)|0,_|0)do{y=PE(S)|0;do l4(y,_)|0,U=_+16|0,v[N>>2]=v[U>>2],v[N+4>>2]=v[U+4>>2],v[N+8>>2]=v[U+8>>2],v[N+12>>2]=v[U+12>>2],rm(R,_)|0,_=al(R,N)|0;while((_|0)!=0);_=p4(R)|0}while((_|0)!=0);return h4(R),_=mL(S)|0,_?(Kp(S),U=_,pe=F,U|0):(U=0,pe=F,U|0)}function si(_){return _=_|0,_>>>0>121?(_=0,_|0):(_=v[7696+(_*28|0)+16>>2]|0,_|0)}function vc(_){return _=_|0,(_|0)==4|(_|0)==117|0}function nl(_){return _=_|0,v[11120+((v[_>>2]|0)*216|0)+((v[_+4>>2]|0)*72|0)+((v[_+8>>2]|0)*24|0)+(v[_+12>>2]<<3)>>2]|0}function kf(_){return _=_|0,v[11120+((v[_>>2]|0)*216|0)+((v[_+4>>2]|0)*72|0)+((v[_+8>>2]|0)*24|0)+(v[_+12>>2]<<3)+4>>2]|0}function Lf(_,y){_=_|0,y=y|0,_=7696+(_*28|0)|0,v[y>>2]=v[_>>2],v[y+4>>2]=v[_+4>>2],v[y+8>>2]=v[_+8>>2],v[y+12>>2]=v[_+12>>2]}function I0(_,y){_=_|0,y=y|0;var S=0,N=0;if(y>>>0>20)return y=-1,y|0;do if((v[11120+(y*216|0)>>2]|0)!=(_|0))if((v[11120+(y*216|0)+8>>2]|0)!=(_|0))if((v[11120+(y*216|0)+16>>2]|0)!=(_|0))if((v[11120+(y*216|0)+24>>2]|0)!=(_|0))if((v[11120+(y*216|0)+32>>2]|0)!=(_|0))if((v[11120+(y*216|0)+40>>2]|0)!=(_|0))if((v[11120+(y*216|0)+48>>2]|0)!=(_|0))if((v[11120+(y*216|0)+56>>2]|0)!=(_|0))if((v[11120+(y*216|0)+64>>2]|0)!=(_|0))if((v[11120+(y*216|0)+72>>2]|0)!=(_|0))if((v[11120+(y*216|0)+80>>2]|0)!=(_|0))if((v[11120+(y*216|0)+88>>2]|0)!=(_|0))if((v[11120+(y*216|0)+96>>2]|0)!=(_|0))if((v[11120+(y*216|0)+104>>2]|0)!=(_|0))if((v[11120+(y*216|0)+112>>2]|0)!=(_|0))if((v[11120+(y*216|0)+120>>2]|0)!=(_|0))if((v[11120+(y*216|0)+128>>2]|0)!=(_|0))if((v[11120+(y*216|0)+136>>2]|0)==(_|0))_=2,S=1,N=2;else{if((v[11120+(y*216|0)+144>>2]|0)==(_|0)){_=0,S=2,N=0;break}if((v[11120+(y*216|0)+152>>2]|0)==(_|0)){_=0,S=2,N=1;break}if((v[11120+(y*216|0)+160>>2]|0)==(_|0)){_=0,S=2,N=2;break}if((v[11120+(y*216|0)+168>>2]|0)==(_|0)){_=1,S=2,N=0;break}if((v[11120+(y*216|0)+176>>2]|0)==(_|0)){_=1,S=2,N=1;break}if((v[11120+(y*216|0)+184>>2]|0)==(_|0)){_=1,S=2,N=2;break}if((v[11120+(y*216|0)+192>>2]|0)==(_|0)){_=2,S=2,N=0;break}if((v[11120+(y*216|0)+200>>2]|0)==(_|0)){_=2,S=2,N=1;break}if((v[11120+(y*216|0)+208>>2]|0)==(_|0)){_=2,S=2,N=2;break}else _=-1;return _|0}else _=2,S=1,N=1;else _=2,S=1,N=0;else _=1,S=1,N=2;else _=1,S=1,N=1;else _=1,S=1,N=0;else _=0,S=1,N=2;else _=0,S=1,N=1;else _=0,S=1,N=0;else _=2,S=0,N=2;else _=2,S=0,N=1;else _=2,S=0,N=0;else _=1,S=0,N=2;else _=1,S=0,N=1;else _=1,S=0,N=0;else _=0,S=0,N=2;else _=0,S=0,N=1;else _=0,S=0,N=0;while(!1);return y=v[11120+(y*216|0)+(S*72|0)+(_*24|0)+(N<<3)+4>>2]|0,y|0}function $u(_,y){return _=_|0,y=y|0,(v[7696+(_*28|0)+20>>2]|0)==(y|0)?(y=1,y|0):(y=(v[7696+(_*28|0)+24>>2]|0)==(y|0),y|0)}function Vd(_,y){return _=_|0,y=y|0,v[848+(_*28|0)+(y<<2)>>2]|0}function Of(_,y){return _=_|0,y=y|0,(v[848+(_*28|0)>>2]|0)==(y|0)?(y=0,y|0):(v[848+(_*28|0)+4>>2]|0)==(y|0)?(y=1,y|0):(v[848+(_*28|0)+8>>2]|0)==(y|0)?(y=2,y|0):(v[848+(_*28|0)+12>>2]|0)==(y|0)?(y=3,y|0):(v[848+(_*28|0)+16>>2]|0)==(y|0)?(y=4,y|0):(v[848+(_*28|0)+20>>2]|0)==(y|0)?(y=5,y|0):((v[848+(_*28|0)+24>>2]|0)==(y|0)?6:7)|0}function jd(){return 122}function Ff(_){_=_|0;var y=0,S=0,N=0;y=0;do mn(y|0,0,45)|0,N=ue()|0|134225919,S=_+(y<<3)|0,v[S>>2]=-1,v[S+4>>2]=N,y=y+1|0;while((y|0)!=122);return 0}function Rl(_){_=_|0;var y=0,S=0,N=0;return N=+W[_+16>>3],S=+W[_+24>>3],y=N-S,+(N<S?y+6.283185307179586:y)}function B0(_){return _=_|0,+W[_+16>>3]<+W[_+24>>3]|0}function If(_){return _=_|0,+(+W[_>>3]-+W[_+8>>3])}function rl(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;return S=+W[y>>3],!(S>=+W[_+8>>3])||!(S<=+W[_>>3])?(y=0,y|0):(N=+W[_+16>>3],S=+W[_+24>>3],R=+W[y+8>>3],y=R>=S,_=R<=N&1,N<S?y&&(_=1):y||(_=0),y=(_|0)!=0,y|0)}function qu(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;return+W[_>>3]<+W[y+8>>3]||+W[_+8>>3]>+W[y>>3]?(N=0,N|0):(F=+W[_+16>>3],S=_+24|0,le=+W[S>>3],U=F<le,N=y+16|0,ne=+W[N>>3],R=y+24|0,Y=+W[R>>3],V=ne<Y,y=le-ne<Y-F,_=U?V|y?1:2:0,y=V?U?1:y?2:1:0,F=+wc(F,_),F<+wc(+W[R>>3],y)||(le=+wc(+W[S>>3],_),le>+wc(+W[N>>3],y))?(V=0,V|0):(V=1,V|0))}function Hd(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0;F=+W[_+16>>3],Y=+W[_+24>>3],_=F<Y,V=+W[y+16>>3],U=+W[y+24>>3],R=V<U,y=Y-V<U-F,v[S>>2]=_?R|y?1:2:0,v[N>>2]=R?_?1:y?2:1:0}function Bf(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;return+W[_>>3]<+W[y>>3]||+W[_+8>>3]>+W[y+8>>3]?(N=0,N|0):(N=_+16|0,Y=+W[N>>3],F=+W[_+24>>3],U=Y<F,S=y+16|0,le=+W[S>>3],R=y+24|0,ne=+W[R>>3],V=le<ne,y=F-le<ne-Y,_=U?V|y?1:2:0,y=V?U?1:y?2:1:0,F=+wc(F,_),F<=+wc(+W[R>>3],y)?(le=+wc(+W[N>>3],_),V=le>=+wc(+W[S>>3],y),V|0):(V=0,V|0))}
4163function Wu(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0;R=pe,pe=pe+176|0,N=R,v[N>>2]=4,V=+W[y>>3],W[N+8>>3]=V,F=+W[y+16>>3],W[N+16>>3]=F,W[N+24>>3]=V,V=+W[y+24>>3],W[N+32>>3]=V,U=+W[y+8>>3],W[N+40>>3]=U,W[N+48>>3]=V,W[N+56>>3]=U,W[N+64>>3]=F,y=N+72|0,S=y+96|0;do v[y>>2]=0,y=y+4|0;while((y|0)<(S|0));o1(_|0,N|0,168)|0,pe=R}function Zu(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0;Ue=pe,pe=pe+288|0,le=Ue+264|0,Ee=Ue+96|0,ne=Ue,V=ne,Y=V+96|0;do v[V>>2]=0,V=V+4|0;while((V|0)<(Y|0));return y=Zp(y,ne)|0,y|0?(Oe=y,pe=Ue,Oe|0):(Y=ne,ne=v[Y>>2]|0,Y=v[Y+4>>2]|0,n1(ne,Y,le)|0,r1(ne,Y,Ee)|0,U=+Y2(le,Ee+8|0),W[le>>3]=+W[_>>3],Y=le+8|0,W[Y>>3]=+W[_+16>>3],W[Ee>>3]=+W[_+8>>3],ne=Ee+8|0,W[ne>>3]=+W[_+24>>3],R=+Y2(le,Ee),At=+W[Y>>3]-+W[ne>>3],F=+xe(+At),st=+W[le>>3]-+W[Ee>>3],N=+xe(+st),!(At==0|st==0)&&(At=+Sx(+F,+N),At=+en(+(R*R/+Tx(+(At/+Tx(+F,+N)),3)/(U*(U*2.59807621135)*.8))),W[Te>>3]=At,Be=~~At>>>0,Oe=+xe(At)>=1?At>0?~~+sn(+be(At/4294967296),4294967295)>>>0:~~+en((At-+(~~At>>>0))/4294967296)>>>0:0,(v[Te+4>>2]&2146435072|0)!=2146435072)?(Ee=(Be|0)==0&(Oe|0)==0,y=S,v[y>>2]=Ee?1:Be,v[y+4>>2]=Ee?0:Oe,y=0):y=1,Oe=y,pe=Ue,Oe|0)}function Gd(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;ne=pe,pe=pe+288|0,U=ne+264|0,V=ne+96|0,Y=ne,R=Y,F=R+96|0;do v[R>>2]=0,R=R+4|0;while((R|0)<(F|0));return S=Zp(S,Y)|0,S|0?(N=S,pe=ne,N|0):(S=Y,R=v[S>>2]|0,S=v[S+4>>2]|0,n1(R,S,U)|0,r1(R,S,V)|0,le=+Y2(U,V+8|0),le=+en(+(+Y2(_,y)/(le*2))),W[Te>>3]=le,S=~~le>>>0,R=+xe(le)>=1?le>0?~~+sn(+be(le/4294967296),4294967295)>>>0:~~+en((le-+(~~le>>>0))/4294967296)>>>0:0,(v[Te+4>>2]&2146435072|0)==2146435072?(N=1,pe=ne,N|0):(Y=(S|0)==0&(R|0)==0,v[N>>2]=Y?1:S,v[N+4>>2]=Y?0:R,N=0,pe=ne,N|0))}function xo(_,y){_=_|0,y=+y;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;F=_+16|0,U=+W[F>>3],S=_+24|0,R=+W[S>>3],N=U-R,N=U<R?N+6.283185307179586:N,ne=+W[_>>3],V=_+8|0,Y=+W[V>>3],le=ne-Y,N=(N*y-N)*.5,y=(le*y-le)*.5,ne=ne+y,W[_>>3]=ne>1.5707963267948966?1.5707963267948966:ne,y=Y-y,W[V>>3]=y<-1.5707963267948966?-1.5707963267948966:y,y=U+N,y=y>3.141592653589793?y+-6.283185307179586:y,W[F>>3]=y<-3.141592653589793?y+6.283185307179586:y,y=R-N,y=y>3.141592653589793?y+-6.283185307179586:y,W[S>>3]=y<-3.141592653589793?y+6.283185307179586:y}function yc(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0,v[_>>2]=y,v[_+4>>2]=S,v[_+8>>2]=N}function U0(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;Ee=y+8|0,v[Ee>>2]=0,Y=+W[_>>3],U=+xe(+Y),ne=+W[_+8>>3],V=+xe(+ne)*1.1547005383792515,U=U+V*.5,S=~~U,_=~~V,U=U-+(S|0),V=V-+(_|0);do if(U<.5)if(U<.3333333333333333)if(v[y>>2]=S,V<(U+1)*.5){v[y+4>>2]=_;break}else{_=_+1|0,v[y+4>>2]=_;break}else if(Be=1-U,_=(!(V<Be)&1)+_|0,v[y+4>>2]=_,Be<=V&V<U*2){S=S+1|0,v[y>>2]=S;break}else{v[y>>2]=S;break}else{if(!(U<.6666666666666666))if(S=S+1|0,v[y>>2]=S,V<U*.5){v[y+4>>2]=_;break}else{_=_+1|0,v[y+4>>2]=_;break}if(V<1-U){if(v[y+4>>2]=_,U*2+-1<V){v[y>>2]=S;break}}else _=_+1|0,v[y+4>>2]=_;S=S+1|0,v[y>>2]=S}while(!1);do if(Y<0)if(_&1){le=(_+1|0)/2|0,le=no(S|0,((S|0)<0)<<31>>31|0,le|0,((le|0)<0)<<31>>31|0)|0,S=~~(+(S|0)-((+(le>>>0)+4294967296*+(ue()|0))*2+1)),v[y>>2]=S;break}else{le=(_|0)/2|0,le=no(S|0,((S|0)<0)<<31>>31|0,le|0,((le|0)<0)<<31>>31|0)|0,S=~~(+(S|0)-(+(le>>>0)+4294967296*+(ue()|0))*2),v[y>>2]=S;break}while(!1);le=y+4|0,ne<0&&(S=S-((_<<1|1|0)/2|0)|0,v[y>>2]=S,_=0-_|0,v[le>>2]=_),N=_-S|0,(S|0)<0?(R=0-S|0,v[le>>2]=N,v[Ee>>2]=R,v[y>>2]=0,_=N,S=0):R=0,(_|0)<0&&(S=S-_|0,v[y>>2]=S,R=R-_|0,v[Ee>>2]=R,v[le>>2]=0,_=0),F=S-R|0,N=_-R|0,(R|0)<0&&(v[y>>2]=F,v[le>>2]=N,v[Ee>>2]=0,_=N,S=F,R=0),N=(_|0)<(S|0)?_:S,N=(R|0)<(N|0)?R:N,!((N|0)<=0)&&(v[y>>2]=S-N,v[le>>2]=_-N,v[Ee>>2]=R-N)}function Na(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0;y=v[_>>2]|0,U=_+4|0,S=v[U>>2]|0,(y|0)<0&&(S=S-y|0,v[U>>2]=S,F=_+8|0,v[F>>2]=(v[F>>2]|0)-y,v[_>>2]=0,y=0),(S|0)<0?(y=y-S|0,v[_>>2]=y,F=_+8|0,R=(v[F>>2]|0)-S|0,v[F>>2]=R,v[U>>2]=0,S=0):(R=_+8|0,F=R,R=v[R>>2]|0),(R|0)<0&&(y=y-R|0,v[_>>2]=y,S=S-R|0,v[U>>2]=S,v[F>>2]=0,R=0),N=(S|0)<(y|0)?S:y,N=(R|0)<(N|0)?R:N,!((N|0)<=0)&&(v[_>>2]=y-N,v[U>>2]=S-N,v[F>>2]=R-N)}function _c(_,y){_=_|0,y=y|0;var S=0,N=0;N=v[_+8>>2]|0,S=+((v[_+4>>2]|0)-N|0),W[y>>3]=+((v[_>>2]|0)-N|0)-S*.5,W[y+8>>3]=S*.8660254037844386}function Cs(_,y,S){_=_|0,y=y|0,S=S|0,v[S>>2]=(v[y>>2]|0)+(v[_>>2]|0),v[S+4>>2]=(v[y+4>>2]|0)+(v[_+4>>2]|0),v[S+8>>2]=(v[y+8>>2]|0)+(v[_+8>>2]|0)}function An(_,y,S){_=_|0,y=y|0,S=S|0,v[S>>2]=(v[_>>2]|0)-(v[y>>2]|0),v[S+4>>2]=(v[_+4>>2]|0)-(v[y+4>>2]|0),v[S+8>>2]=(v[_+8>>2]|0)-(v[y+8>>2]|0)}function Wn(_,y){_=_|0,y=y|0;var S=0,N=0;S=Qt(v[_>>2]|0,y)|0,v[_>>2]=S,S=_+4|0,N=Qt(v[S>>2]|0,y)|0,v[S>>2]=N,_=_+8|0,y=Qt(v[_>>2]|0,y)|0,v[_>>2]=y}function mr(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;U=v[_>>2]|0,V=(U|0)<0,N=(v[_+4>>2]|0)-(V?U:0)|0,F=(N|0)<0,R=(F?0-N|0:0)+((v[_+8>>2]|0)-(V?U:0))|0,S=(R|0)<0,_=S?0:R,y=(F?0:N)-(S?R:0)|0,R=(V?0:U)-(F?N:0)-(S?R:0)|0,S=(y|0)<(R|0)?y:R,S=(_|0)<(S|0)?_:S,N=(S|0)>0,_=_-(N?S:0)|0,y=y-(N?S:0)|0;e:do switch(R-(N?S:0)|0){case 0:switch(y|0){case 0:return V=(_|0)==0?0:(_|0)==1?1:7,V|0;case 1:return V=(_|0)==0?2:(_|0)==1?3:7,V|0;default:break e}case 1:switch(y|0){case 0:return V=(_|0)==0?4:(_|0)==1?5:7,V|0;case 1:{if(!_)_=6;else break e;return _|0}default:break e}}while(!1);return V=7,V|0}function $r(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0;if(Y=_+8|0,U=v[Y>>2]|0,V=(v[_>>2]|0)-U|0,ne=_+4|0,U=(v[ne>>2]|0)-U|0,V>>>0>715827881|U>>>0>715827881){if(N=(V|0)>0,R=2147483647-V|0,F=-2147483648-V|0,(N?(R|0)<(V|0):(F|0)>(V|0))||(S=V<<1,N?(2147483647-S|0)<(V|0):(-2147483648-S|0)>(V|0))||((U|0)>0?(2147483647-U|0)<(U|0):(-2147483648-U|0)>(U|0))||(y=V*3|0,S=U<<1,(N?(R|0)<(S|0):(F|0)>(S|0))||((V|0)>-1?(y|-2147483648|0)>=(U|0):(y^-2147483648|0)<(U|0))))return ne=1,ne|0}else S=U<<1,y=V*3|0;return N=Xd(+(y-U|0)*.14285714285714285)|0,v[_>>2]=N,R=Xd(+(S+V|0)*.14285714285714285)|0,v[ne>>2]=R,v[Y>>2]=0,S=(R|0)<(N|0),y=S?N:R,S=S?R:N,(S|0)<0&&(((S|0)==-2147483648||((y|0)>0?(2147483647-y|0)<(S|0):(-2147483648-y|0)>(S|0)))&&Ze(27795,26892,354,26903),((y|0)>-1?(y|-2147483648|0)>
4163=(S|0):(y^-2147483648|0)<(S|0))&&Ze(27795,26892,354,26903)),y=R-N|0,(N|0)<0?(S=0-N|0,v[ne>>2]=y,v[Y>>2]=S,v[_>>2]=0,N=0):(y=R,S=0),(y|0)<0&&(N=N-y|0,v[_>>2]=N,S=S-y|0,v[Y>>2]=S,v[ne>>2]=0,y=0),F=N-S|0,R=y-S|0,(S|0)<0?(v[_>>2]=F,v[ne>>2]=R,v[Y>>2]=0,y=R,R=F,S=0):R=N,N=(y|0)<(R|0)?y:R,N=(S|0)<(N|0)?S:N,(N|0)<=0?(ne=0,ne|0):(v[_>>2]=R-N,v[ne>>2]=y-N,v[Y>>2]=S-N,ne=0,ne|0)}function Vi(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0;if(U=_+8|0,R=v[U>>2]|0,F=(v[_>>2]|0)-R|0,V=_+4|0,R=(v[V>>2]|0)-R|0,F>>>0>715827881|R>>>0>715827881){if(S=(F|0)>0,(S?(2147483647-F|0)<(F|0):(-2147483648-F|0)>(F|0))||(y=F<<1,N=(R|0)>0,N?(2147483647-R|0)<(R|0):(-2147483648-R|0)>(R|0)))return V=1,V|0;if(Y=R<<1,(N?(2147483647-Y|0)<(R|0):(-2147483648-Y|0)>(R|0))||(S?(2147483647-y|0)<(R|0):(-2147483648-y|0)>(R|0))||(S=R*3|0,(R|0)>-1?(S|-2147483648|0)>=(F|0):(S^-2147483648|0)<(F|0)))return Y=1,Y|0}else S=R*3|0,y=F<<1;return N=Xd(+(y+R|0)*.14285714285714285)|0,v[_>>2]=N,R=Xd(+(S-F|0)*.14285714285714285)|0,v[V>>2]=R,v[U>>2]=0,S=(R|0)<(N|0),y=S?N:R,S=S?R:N,(S|0)<0&&(((S|0)==-2147483648||((y|0)>0?(2147483647-y|0)<(S|0):(-2147483648-y|0)>(S|0)))&&Ze(27795,26892,402,26917),((y|0)>-1?(y|-2147483648|0)>=(S|0):(y^-2147483648|0)<(S|0))&&Ze(27795,26892,402,26917)),y=R-N|0,(N|0)<0?(S=0-N|0,v[V>>2]=y,v[U>>2]=S,v[_>>2]=0,N=0):(y=R,S=0),(y|0)<0&&(N=N-y|0,v[_>>2]=N,S=S-y|0,v[U>>2]=S,v[V>>2]=0,y=0),F=N-S|0,R=y-S|0,(S|0)<0?(v[_>>2]=F,v[V>>2]=R,v[U>>2]=0,y=R,R=F,S=0):R=N,N=(y|0)<(R|0)?y:R,N=(S|0)<(N|0)?S:N,(N|0)<=0?(Y=0,Y|0):(v[_>>2]=R-N,v[V>>2]=y-N,v[U>>2]=S-N,Y=0,Y|0)}function ra(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;U=_+8|0,S=v[U>>2]|0,y=(v[_>>2]|0)-S|0,V=_+4|0,S=(v[V>>2]|0)-S|0,N=Xd(+((y*3|0)-S|0)*.14285714285714285)|0,v[_>>2]=N,y=Xd(+((S<<1)+y|0)*.14285714285714285)|0,v[V>>2]=y,v[U>>2]=0,S=y-N|0,(N|0)<0?(F=0-N|0,v[V>>2]=S,v[U>>2]=F,v[_>>2]=0,y=S,N=0,S=F):S=0,(y|0)<0&&(N=N-y|0,v[_>>2]=N,S=S-y|0,v[U>>2]=S,v[V>>2]=0,y=0),F=N-S|0,R=y-S|0,(S|0)<0?(v[_>>2]=F,v[V>>2]=R,v[U>>2]=0,y=R,R=F,S=0):R=N,N=(y|0)<(R|0)?y:R,N=(S|0)<(N|0)?S:N,!((N|0)<=0)&&(v[_>>2]=R-N,v[V>>2]=y-N,v[U>>2]=S-N)}function ji(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;U=_+8|0,S=v[U>>2]|0,y=(v[_>>2]|0)-S|0,V=_+4|0,S=(v[V>>2]|0)-S|0,N=Xd(+((y<<1)+S|0)*.14285714285714285)|0,v[_>>2]=N,y=Xd(+((S*3|0)-y|0)*.14285714285714285)|0,v[V>>2]=y,v[U>>2]=0,S=y-N|0,(N|0)<0?(F=0-N|0,v[V>>2]=S,v[U>>2]=F,v[_>>2]=0,y=S,N=0,S=F):S=0,(y|0)<0&&(N=N-y|0,v[_>>2]=N,S=S-y|0,v[U>>2]=S,v[V>>2]=0,y=0),F=N-S|0,R=y-S|0,(S|0)<0?(v[_>>2]=F,v[V>>2]=R,v[U>>2]=0,y=R,R=F,S=0):R=N,N=(y|0)<(R|0)?y:R,N=(S|0)<(N|0)?S:N,!((N|0)<=0)&&(v[_>>2]=R-N,v[V>>2]=y-N,v[U>>2]=S-N)}function ha(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;y=v[_>>2]|0,U=_+4|0,S=v[U>>2]|0,V=_+8|0,N=v[V>>2]|0,R=S+(y*3|0)|0,v[_>>2]=R,S=N+(S*3|0)|0,v[U>>2]=S,y=(N*3|0)+y|0,v[V>>2]=y,N=S-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=N,v[V>>2]=y,v[_>>2]=0,S=N,N=0):N=R,(S|0)<0&&(N=N-S|0,v[_>>2]=N,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=N-y|0,R=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=R,v[V>>2]=0,N=F,y=0):R=S,S=(R|0)<(N|0)?R:N,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=N-S,v[U>>2]=R-S,v[V>>2]=y-S)}function vo(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;R=v[_>>2]|0,U=_+4|0,y=v[U>>2]|0,V=_+8|0,S=v[V>>2]|0,N=(y*3|0)+R|0,R=S+(R*3|0)|0,v[_>>2]=R,v[U>>2]=N,y=(S*3|0)+y|0,v[V>>2]=y,S=N-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=S,v[V>>2]=y,v[_>>2]=0,R=0):S=N,(S|0)<0&&(R=R-S|0,v[_>>2]=R,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=R-y|0,N=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=N,v[V>>2]=0,R=F,y=0):N=S,S=(N|0)<(R|0)?N:R,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=R-S,v[U>>2]=N-S,v[V>>2]=y-S)}function mE(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0;(y+-1|0)>>>0>=6||(R=(v[15440+(y*12|0)>>2]|0)+(v[_>>2]|0)|0,v[_>>2]=R,V=_+4|0,N=(v[15440+(y*12|0)+4>>2]|0)+(v[V>>2]|0)|0,v[V>>2]=N,U=_+8|0,y=(v[15440+(y*12|0)+8>>2]|0)+(v[U>>2]|0)|0,v[U>>2]=y,S=N-R|0,(R|0)<0?(y=y-R|0,v[V>>2]=S,v[U>>2]=y,v[_>>2]=0,N=0):(S=N,N=R),(S|0)<0&&(N=N-S|0,v[_>>2]=N,y=y-S|0,v[U>>2]=y,v[V>>2]=0,S=0),F=N-y|0,R=S-y|0,(y|0)<0?(v[_>>2]=F,v[V>>2]=R,v[U>>2]=0,N=F,y=0):R=S,S=(R|0)<(N|0)?R:N,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=N-S,v[V>>2]=R-S,v[U>>2]=y-S))}function AE(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;R=v[_>>2]|0,U=_+4|0,y=v[U>>2]|0,V=_+8|0,S=v[V>>2]|0,N=y+R|0,R=S+R|0,v[_>>2]=R,v[U>>2]=N,y=S+y|0,v[V>>2]=y,S=N-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=S,v[V>>2]=y,v[_>>2]=0,N=0):(S=N,N=R),(S|0)<0&&(N=N-S|0,v[_>>2]=N,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=N-y|0,R=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=R,v[V>>2]=0,N=F,y=0):R=S,S=(R|0)<(N|0)?R:N,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=N-S,v[U>>2]=R-S,v[V>>2]=y-S)}function Jy(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;y=v[_>>2]|0,U=_+4|0,N=v[U>>2]|0,V=_+8|0,S=v[V>>2]|0,R=N+y|0,v[_>>2]=R,N=S+N|0,v[U>>2]=N,y=S+y|0,v[V>>2]=y,S=N-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=S,v[V>>2]=y,v[_>>2]=0,N=0):(S=N,N=R),(S|0)<0&&(N=N-S|0,v[_>>2]=N,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=N-y|0,R=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=R,v[V>>2]=0,N=F,y=0):R=S,S=(R|0)<(N|0)?R:N,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=N-S,v[U>>2]=R-S,v[V>>2]=y-S)}function Vp(_){switch(_=_|0,_|0){case 1:{_=5;break}case 5:{_=4;break}case 4:{_=6;break}case 6:{_=2;break}case 2:{_=3;break}case 3:{_=1;break}}return _|0}function zd(_){switch(_=_|0,_|0){case 1:{_=3;break}case 3:{_=2;break}case 2:{_=6;break}case 6:{_=4;break}case 4:{_=5;break}case 5:{_=1;break}}return _|0}function gE(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;y=v[_>>2]|0,U=_+4|0,S=v[U>>2]|0,V=_+8|0,N=v[V>>2]|0,R=S+(y<<1)|0,v[_>>2]=R,S=N+(S<<1)|0,v[U>>2]=S,y=(N<<1)+y|0,v[V>>2]=y,N=S-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=N,v[V>>2]=y,v[_>>2]=0,S=N,N=0):N=R,(S|0)<0&&(N=N-S|0,v[_>>2]=N,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=N-y|0,R=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=R,v[V>>2]=0,N=F,y=0):R=S,S=(R|0)<(N|0)?R:N,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=N-S,v[U>>2]=R-S,v[V>>2]=y-S)}function xE(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;R=v[_>>2]|0,U=_+4|0,y=v[U>>2]|0,V=_+8|0,S=v[V>>2]|0,N=(y<<1)+R|0,R=S+(R<<1)|0,v[_>>2]=R,v[U>>2]=N,y=(S<<1)+y|0,v[V>>2]=y,S=N-R|0,(R|0)<0?(y=y-R|0,v[U>>2]=S,v[V>>2]=y,v[_>>2]=0,R=0):S=N,(S|0)<0&&(R=R-S|0,v[_>>2]=R,y=y-S|0,v[V>>2]=y,v[U>>2]=0,S=0),F=R-y|0,N=S-y|0,(y|0)<0?(v[_>>2]=F,v[U>>2]=N,v[V>>2]=0,R=F,y=0):N=S,S=(N|0)<(R|0)?N:R,S=(y|0)<(S|0)?y:S,!((S|0)<=0)&&(v[_>>2]=R-S,v[U>>2]=N-S,v[V>>2]=y-S)}function R6(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0;return U=(v[_>>2]|0)-(v[y>>2]|0)|0,V=(U|0)<0,N=(v[_+4>>2]|0)-(v[y+4>>2]|0)-(V?U:0)|0,F=(N|0)<0,R=(V?0-U|0:0)+(v[_+8>>2]|0)-(v[y+8>>2]|0)+(F?0-N|0:0)|0,_=(R|0)<0,y=_?0:R,S=(F?0:N)-(_?R:0)|0,R=(V?0:U)-(F?N:0)-(_?R:0)|0,_=(S|0)<(R|0)?S:R,_=(y|0)<(_|0)?y:_,N=(_|0)>0,y=y-(N?_:0)|0,S=S-(N?_:0)|0,_=R-(N?_:0)|0,_=(_|0)>-1?_:0-_|0,S=(S|0)>-1?S:0-S|0,y=(y|0)>-1?y:0-y|0,y=(S|0)>(y|0)?S:y,((_|0)>(y|0)?_:y)|0}function Kk(_,y){_=_|0,y=y|0;var S=0;S=v[_+8>>2]|0,v[y>>2]=(v[_>>2]|0)-S,v[y+4>>2]=(v[_+4>>2]|0)-S}function D6(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0;return N=v[_>>2]|0,v[y>>2]=N,R=v[_+4>>2]|0,U=y+4|0,v[U>>2]=R,V=y+8|0,v[V>>2]=0,S=(R|0)<(N|0),_=S?N:R,S=S?R:N,(S|0)<0&&((S|0)==-2147483648||((_|0)>0?(2147483647-_|0)<(S|0):(-2147483648-_|0)>(S|0))||((_|0)>-1?(_|-2147483648|0)>
4163=(S|0):(_^-2147483648|0)<(S|0)))?(y=1,y|0):(_=R-N|0,(N|0)<0?(S=0-N|0,v[U>>2]=_,v[V>>2]=S,v[y>>2]=0,N=0):(_=R,S=0),(_|0)<0&&(N=N-_|0,v[y>>2]=N,S=S-_|0,v[V>>2]=S,v[U>>2]=0,_=0),F=N-S|0,R=_-S|0,(S|0)<0?(v[y>>2]=F,v[U>>2]=R,v[V>>2]=0,_=R,R=F,S=0):R=N,N=(_|0)<(R|0)?_:R,N=(S|0)<(N|0)?S:N,(N|0)<=0?(y=0,y|0):(v[y>>2]=R-N,v[U>>2]=_-N,v[V>>2]=S-N,y=0,y|0))}function vE(_){_=_|0;var y=0,S=0,N=0,R=0;y=_+8|0,R=v[y>>2]|0,S=R-(v[_>>2]|0)|0,v[_>>2]=S,N=_+4|0,_=(v[N>>2]|0)-R|0,v[N>>2]=_,v[y>>2]=0-(_+S)}function Jk(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;S=v[_>>2]|0,y=0-S|0,v[_>>2]=y,U=_+8|0,v[U>>2]=0,V=_+4|0,N=v[V>>2]|0,R=N+S|0,(S|0)>0?(v[V>>2]=R,v[U>>2]=S,v[_>>2]=0,y=0,N=R):S=0,(N|0)<0?(F=y-N|0,v[_>>2]=F,S=S-N|0,v[U>>2]=S,v[V>>2]=0,R=F-S|0,y=0-S|0,(S|0)<0?(v[_>>2]=R,v[V>>2]=y,v[U>>2]=0,N=y,S=0):(N=0,R=F)):R=y,y=(N|0)<(R|0)?N:R,y=(S|0)<(y|0)?S:y,!((y|0)<=0)&&(v[_>>2]=R-y,v[V>>2]=N-y,v[U>>2]=S-y)}function eL(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0;if(Ee=pe,pe=pe+64|0,le=Ee,V=Ee+56|0,!(!0&(y&2013265920|0)==134217728&(!0&(N&2013265920|0)==134217728)))return R=5,pe=Ee,R|0;if((_|0)==(S|0)&(y|0)==(N|0))return v[R>>2]=0,R=0,pe=Ee,R|0;if(U=on(_|0,y|0,52)|0,ue()|0,U=U&15,ne=on(S|0,N|0,52)|0,ue()|0,(U|0)!=(ne&15|0))return R=12,pe=Ee,R|0;if(F=U+-1|0,U>>>0>1){zp(_,y,F,le)|0,zp(S,N,F,V)|0,ne=le,Y=v[ne>>2]|0,ne=v[ne+4>>2]|0;e:do if((Y|0)==(v[V>>2]|0)&&(ne|0)==(v[V+4>>2]|0)){U=(U^15)*3|0,F=on(_|0,y|0,U|0)|0,ue()|0,F=F&7,U=on(S|0,N|0,U|0)|0,ue()|0,U=U&7;do if((F|0)==0|(U|0)==0)v[R>>2]=1,F=0;else if((F|0)==7)F=5;else{if((F|0)==1|(U|0)==1&&Yi(Y,ne)|0){F=5;break}if((v[15536+(F<<2)>>2]|0)!=(U|0)&&(v[15568+(F<<2)>>2]|0)!=(U|0))break e;v[R>>2]=1,F=0}while(!1);return R=F,pe=Ee,R|0}while(!1)}F=le,U=F+56|0;do v[F>>2]=0,F=F+4|0;while((F|0)<(U|0));return ti(_,y,1,le)|0,y=le,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0))&&(y=le+8|0,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0)))&&(y=le+16|0,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0)))&&(y=le+24|0,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0)))&&(y=le+32|0,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0)))&&(y=le+40|0,!((v[y>>2]|0)==(S|0)&&(v[y+4>>2]|0)==(N|0)))?(F=le+48|0,F=((v[F>>2]|0)==(S|0)?(v[F+4>>2]|0)==(N|0):0)&1):F=1,v[R>>2]=F,R=0,pe=Ee,R|0}function yE(_,y,S,N,R){return _=_|0,y=y|0,S=S|0,N=N|0,R=R|0,S=to(_,y,S,N)|0,(S|0)==7?(R=11,R|0):(N=mn(S|0,0,56)|0,y=y&-2130706433|(ue()|0)|268435456,v[R>>2]=_|N,v[R+4>>2]=y,R=0,R|0)}function tL(_,y,S){return _=_|0,y=y|0,S=S|0,!0&(y&2013265920|0)==268435456?(v[S>>2]=_,v[S+4>>2]=y&-2130706433|134217728,S=0,S|0):(S=6,S|0)}function nL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;return R=pe,pe=pe+16|0,N=R,v[N>>2]=0,!0&(y&2013265920|0)==268435456?(F=on(_|0,y|0,56)|0,ue()|0,N=or(_,y&-2130706433|134217728,F&7,N,S)|0,pe=R,N|0):(N=6,pe=R,N|0)}function _E(_,y){_=_|0,y=y|0;var S=0;switch(S=on(_|0,y|0,56)|0,ue()|0,S&7){case 0:case 7:return S=0,S|0}return S=y&-2130706433|134217728,!(!0&(y&2013265920|0)==268435456)||!0&(y&117440512|0)==16777216&(Yi(_,S)|0)!=0?(S=0,S|0):(S=n4(_,S)|0,S|0)}function rL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;return R=pe,pe=pe+16|0,N=R,!0&(y&2013265920|0)==268435456?(F=y&-2130706433|134217728,U=S,v[U>>2]=_,v[U+4>>2]=F,v[N>>2]=0,y=on(_|0,y|0,56)|0,ue()|0,N=or(_,F,y&7,N,S+8|0)|0,pe=R,N|0):(N=6,pe=R,N|0)}function iL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0;return R=(Yi(_,y)|0)==0,y=y&-2130706433,N=S,v[N>>2]=R?_:0,v[N+4>>2]=R?y|285212672:0,N=S+8|0,v[N>>2]=_,v[N+4>>2]=y|301989888,N=S+16|0,v[N>>2]=_,v[N+4>>2]=y|318767104,N=S+24|0,v[N>>2]=_,v[N+4>>2]=y|335544320,N=S+32|0,v[N>>2]=_,v[N+4>>2]=y|352321536,S=S+40|0,v[S>>2]=_,v[S+4>>2]=y|369098752,0}function e4(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;return U=pe,pe=pe+16|0,R=U,F=y&-2130706433|134217728,!0&(y&2013265920|0)==268435456?(N=on(_|0,y|0,56)|0,ue()|0,N=X6(_,F,N&7)|0,(N|0)==-1?(v[S>>2]=0,F=6,pe=U,F|0):(qp(_,F,R)|0&&Ze(27795,26932,282,26947),y=on(_|0,y|0,52)|0,ue()|0,y=y&15,Yi(_,F)|0?P6(R,y,N,2,S):t4(R,y,N,2,S),F=0,pe=U,F|0)):(F=6,pe=U,F|0)}function aL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0;N=pe,pe=pe+16|0,R=N,sL(_,y,S,R),U0(R,S+4|0),pe=N}function sL(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0;
4163if(V=pe,pe=pe+16|0,Y=V,oL(_,S,Y),F=+rt(+(1-+W[Y>>3]*.5)),F<1e-16){v[N>>2]=0,v[N+4>>2]=0,v[N+8>>2]=0,v[N+12>>2]=0,pe=V;return}if(Y=v[S>>2]|0,R=+W[15920+(Y*24|0)>>3],R=+Z2(R-+Z2(+hL(15600+(Y<<4)|0,_))),Dl(y)|0?U=+Z2(R+-.3334731722518321):U=R,R=+Ke(+F)*2.618033988749896,(y|0)>0){_=0;do R=R*2.6457513110645907,_=_+1|0;while((_|0)!=(y|0))}F=+ot(+U)*R,W[N>>3]=F,U=+ze(+U)*R,W[N+8>>3]=U,pe=V}function oL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;if(F=pe,pe=pe+32|0,R=F,tm(_,R),v[y>>2]=0,W[S>>3]=5,N=+Qa(16400,R),N<+W[S>>3]&&(v[y>>2]=0,W[S>>3]=N),N=+Qa(16424,R),N<+W[S>>3]&&(v[y>>2]=1,W[S>>3]=N),N=+Qa(16448,R),N<+W[S>>3]&&(v[y>>2]=2,W[S>>3]=N),N=+Qa(16472,R),N<+W[S>>3]&&(v[y>>2]=3,W[S>>3]=N),N=+Qa(16496,R),N<+W[S>>3]&&(v[y>>2]=4,W[S>>3]=N),N=+Qa(16520,R),N<+W[S>>3]&&(v[y>>2]=5,W[S>>3]=N),N=+Qa(16544,R),N<+W[S>>3]&&(v[y>>2]=6,W[S>>3]=N),N=+Qa(16568,R),N<+W[S>>3]&&(v[y>>2]=7,W[S>>3]=N),N=+Qa(16592,R),N<+W[S>>3]&&(v[y>>2]=8,W[S>>3]=N),N=+Qa(16616,R),N<+W[S>>3]&&(v[y>>2]=9,W[S>>3]=N),N=+Qa(16640,R),N<+W[S>>3]&&(v[y>>2]=10,W[S>>3]=N),N=+Qa(16664,R),N<+W[S>>3]&&(v[y>>2]=11,W[S>>3]=N),N=+Qa(16688,R),N<+W[S>>3]&&(v[y>>2]=12,W[S>>3]=N),N=+Qa(16712,R),N<+W[S>>3]&&(v[y>>2]=13,W[S>>3]=N),N=+Qa(16736,R),N<+W[S>>3]&&(v[y>>2]=14,W[S>>3]=N),N=+Qa(16760,R),N<+W[S>>3]&&(v[y>>2]=15,W[S>>3]=N),N=+Qa(16784,R),N<+W[S>>3]&&(v[y>>2]=16,W[S>>3]=N),N=+Qa(16808,R),N<+W[S>>3]&&(v[y>>2]=17,W[S>>3]=N),N=+Qa(16832,R),N<+W[S>>3]&&(v[y>>2]=18,W[S>>3]=N),N=+Qa(16856,R),!(N<+W[S>>3])){pe=F;return}v[y>>2]=19,W[S>>3]=N,pe=F}function jp(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0;if(F=+s1(_),F<1e-16){y=15600+(y<<4)|0,v[R>>2]=v[y>>2],v[R+4>>2]=v[y+4>>2],v[R+8>>2]=v[y+8>>2],v[R+12>>2]=v[y+12>>2];return}if(U=+rn(+ +W[_+8>>3],+ +W[_>>3]),(S|0)>0){_=0;do F=F*.37796447300922725,_=_+1|0;while((_|0)!=(S|0))}V=F*.3333333333333333,N?(S=(Dl(S)|0)==0,F=+Xt(+((S?V:V*.37796447300922725)*.381966011250105))):(F=+Xt(+(F*.381966011250105)),Dl(S)|0&&(U=+Z2(U+.3334731722518321))),pL(15600+(y<<4)|0,+Z2(+W[15920+(y*24|0)>>3]-U),F,R)}function xx(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0;N=pe,pe=pe+16|0,R=N,_c(_+4|0,R),jp(R,v[_>>2]|0,y,0,S),pe=N}function P6(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0,Jn=0,xn=0,yr=0,ni=0,Cr=0;if(yr=pe,pe=pe+272|0,F=yr+256|0,Et=yr+240|0,Mr=yr,Jn=yr+224|0,xn=yr+208|0,bt=yr+176|0,ct=yr+160|0,gn=yr+192|0,Yn=yr+144|0,jn=yr+128|0,Ir=yr+112|0,Nr=yr+96|0,Yr=yr+80|0,v[F>>2]=y,v[Et>>2]=v[_>>2],v[Et+4>>2]=v[_+4>>2],v[Et+8>>2]=v[_+8>>2],v[Et+12>>2]=v[_+12>>2],k6(Et,F,Mr),v[R>>2]=0,Et=N+S+((N|0)==5&1)|0,(Et|0)<=(S|0)){pe=yr;return}Y=v[F>>2]|0,ne=Jn+4|0,le=bt+4|0,Ee=S+5|0,Be=16880+(Y<<2)|0,Oe=16960+(Y<<2)|0,Ue=jn+8|0,st=Ir+8|0,At=Nr+8|0,Pt=xn+4|0,V=S;e:for(;;){U=Mr+(((V|0)%5|0)<<4)|0,v[xn>>2]=v[U>>2],v[xn+4>>2]=v[U+4>>2],v[xn+8>>2]=v[U+8>>2],v[xn+12>>2]=v[U+12>>2];do;while((Hp(xn,Y,0,1)|0)==2);if((V|0)>(S|0)&(Dl(y)|0)!=0){if(v[bt>>2]=v[xn>>2],v[bt+4>>2]=v[xn+4>>2],v[bt+8>>2]=v[xn+8>>2],v[bt+12>>2]=v[xn+12>>2],_c(ne,ct),N=v[bt>>2]|0,F=v[17040+(N*80|0)+(v[Jn>>2]<<2)>>2]|0,v[bt>>2]=v[18640+(N*80|0)+(F*20|0)>>2],U=v[18640+(N*80|0)+(F*20|0)+16>>2]|0,(U|0)>0){_=0;do AE(le),_=_+1|0;while((_|0)<(U|0))}switch(U=18640+(N*80|0)+(F*20|0)+4|0,v[gn>>2]=v[U>>2],v[gn+4>>2]=v[U+4>>2],v[gn+8>>2]=v[U+8>>2],Wn(gn,(v[Be>>2]|0)*3|0),Cs(le,gn,le),Na(le),_c(le,Yn),ni=+(v[Oe>>2]|0),W[jn>>3]=ni*3,W[Ue>>3]=0,Cr=ni*-1.5,W[Ir>>3]=Cr,W[st>>3]=ni*2.598076211353316,W[Nr>>3]=Cr,W[At>>3]=ni*-2.598076211353316,v[17040+((v[bt>>2]|0)*80|0)+(v[xn>>2]<<2)>>2]|0){case 1:{_=Ir,N=jn;break}case 3:{_=Nr,N=Ir;break}case 2:{_=jn,N=Nr;break}default:{_=12;break e}}Z6(ct,Yn,N,_,Yr),jp(Yr,v[bt>>2]|0,Y,1,R+8+(v[R>>2]<<4)|0),v[R>>2]=(v[R>>2]|0)+1}if((V|0)<(Ee|0)&&(_c(Pt,bt),jp(bt,v[xn>>2]|0,Y,1,R+8+(v[R>>2]<<4)|0),v[R>>2]=(v[R>>2]|0)+1),v[Jn>>2]=v[xn>>2],v[Jn+4>>2]=v[xn+4>>2],v[Jn+8>>2]=v[xn+8>>2],v[Jn+12>>2]=v[xn+12>>2],V=V+1|0,(V|0)>=(Et|0)){_=3;break}}if((_|0)==3){pe=yr;return}else(_|0)==12&&Ze(26970,27017,572,27027)}function k6(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0;Y=pe,pe=pe+128|0,N=Y+64|0,R=Y,F=N,U=20240,V=F+60|0;do v[F>>2]=v[U>>2],F=F+4|0,U=U+4|0;while((F|0)<(V|0));F=R,U=20304,V=F+60|0;do v[F>>2]=v[U>>2],F=F+4|0,U=U+4|0;while((F|0)<(V|0));V=(Dl(v[y>>2]|0)|0)==0,N=V?N:R,R=_+4|0,gE(R),xE(R),Dl(v[y>>2]|0)|0&&(vo(R),v[y>>2]=(v[y>>2]|0)+1),v[S>>2]=v[_>>2],y=S+4|0,Cs(R,N,y),Na(y),v[S+16>>2]=v[_>>2],y=S+20|0,Cs(R,N+12|0,y),Na(y),v[S+32>>2]=v[_>>2],y=S+36|0,Cs(R,N+24|0,y),Na(y),v[S+48>>2]=v[_>>2],y=S+52|0,Cs(R,N+36|0,y),Na(y),v[S+64>>2]=v[_>>2],S=S+68|0,Cs(R,N+48|0,S),Na(S),pe=Y}function Hp(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0;if(Ue=pe,pe=pe+32|0,Be=Ue+12|0,V=Ue,Oe=_+4|0,Ee=v[16960+(y<<2)>>2]|0,le=(N|0)!=0,Ee=le?Ee*3|0:Ee,R=v[Oe>>2]|0,ne=_+8|0,U=v[ne>>2]|0,le){if(F=_+12|0,N=v[F>>2]|0,R=U+R+N|0,(R|0)==(Ee|0))return Oe=1,pe=Ue,Oe|0;Y=F}else Y=_+12|0,N=v[Y>>2]|0,R=U+R+N|0;if((R|0)<=(Ee|0))return Oe=0,pe=Ue,Oe|0;do if((N|0)>0){if(N=v[_>>2]|0,(U|0)>0){F=18640+(N*80|0)+60|0,N=_;break}N=18640+(N*80|0)+40|0,S?(yc(Be,Ee,0,0),An(Oe,Be,V),Jy(V),Cs(V,Be,Oe),F=N,N=_):(F=N,N=_)}else F=18640+((v[_>>2]|0)*80|0)+20|0,N=_;while(!1);if(v[N>>2]=v[F>>2],R=F+16|0,(v[R>>2]|0)>0){N=0;do AE(Oe),N=N+1|0;while((N|0)<(v[R>>2]|0))}return _=F+4|0,v[Be>>2]=v[_>>2],v[Be+4>>2]=v[_+4>>2],v[Be+8>>2]=v[_+8>>2],y=v[16880+(y<<2)>>2]|0,Wn(Be,le?y*3|0:y),Cs(Oe,Be,Oe),Na(Oe),le?N=((v[ne>>2]|0)+(v[Oe>>2]|0)+(v[Y>>2]|0)|0)==(Ee|0)?1:2:N=2,Oe=N,pe=Ue,Oe|0}function bE(_,y){_=_|0,y=y|0;var S=0;do S=Hp(_,y,0,1)|0;while((S|0)==2);return S|0}function t4(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;
4163var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0;if(Nr=pe,pe=pe+240|0,F=Nr+224|0,gn=Nr+208|0,Yn=Nr,jn=Nr+192|0,Ir=Nr+176|0,At=Nr+160|0,Pt=Nr+144|0,Et=Nr+128|0,bt=Nr+112|0,ct=Nr+96|0,v[F>>2]=y,v[gn>>2]=v[_>>2],v[gn+4>>2]=v[_+4>>2],v[gn+8>>2]=v[_+8>>2],v[gn+12>>2]=v[_+12>>2],L6(gn,F,Yn),v[R>>2]=0,st=N+S+((N|0)==6&1)|0,(st|0)<=(S|0)){pe=Nr;return}Y=v[F>>2]|0,ne=S+6|0,le=16960+(Y<<2)|0,Ee=Pt+8|0,Be=Et+8|0,Oe=bt+8|0,Ue=jn+4|0,U=0,V=S,N=-1;e:for(;;){if(F=(V|0)%6|0,_=Yn+(F<<4)|0,v[jn>>2]=v[_>>2],v[jn+4>>2]=v[_+4>>2],v[jn+8>>2]=v[_+8>>2],v[jn+12>>2]=v[_+12>>2],_=U,U=Hp(jn,Y,0,1)|0,(V|0)>(S|0)&(Dl(y)|0)!=0&&(_|0)!=1&&(v[jn>>2]|0)!=(N|0)){switch(_c(Yn+(((F+5|0)%6|0)<<4)+4|0,Ir),_c(Yn+(F<<4)+4|0,At),Yr=+(v[le>>2]|0),W[Pt>>3]=Yr*3,W[Ee>>3]=0,Mr=Yr*-1.5,W[Et>>3]=Mr,W[Be>>3]=Yr*2.598076211353316,W[bt>>3]=Mr,W[Oe>>3]=Yr*-2.598076211353316,F=v[gn>>2]|0,v[17040+(F*80|0)+(((N|0)==(F|0)?v[jn>>2]|0:N)<<2)>>2]|0){case 1:{_=Et,N=Pt;break}case 3:{_=bt,N=Et;break}case 2:{_=Pt,N=bt;break}default:{_=8;break e}}Z6(Ir,At,N,_,ct),!(Y6(Ir,ct)|0)&&!(Y6(At,ct)|0)&&(jp(ct,v[gn>>2]|0,Y,1,R+8+(v[R>>2]<<4)|0),v[R>>2]=(v[R>>2]|0)+1)}if((V|0)<(ne|0)&&(_c(Ue,Ir),jp(Ir,v[jn>>2]|0,Y,1,R+8+(v[R>>2]<<4)|0),v[R>>2]=(v[R>>2]|0)+1),V=V+1|0,(V|0)>=(st|0)){_=3;break}else N=v[jn>>2]|0}if((_|0)==3){pe=Nr;return}else(_|0)==8&&Ze(27054,27017,737,27099)}function L6(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0;Y=pe,pe=pe+160|0,N=Y+80|0,R=Y,F=N,U=20368,V=F+72|0;do v[F>>2]=v[U>>2],F=F+4|0,U=U+4|0;while((F|0)<(V|0));F=R,U=20448,V=F+72|0;do v[F>>2]=v[U>>2],F=F+4|0,U=U+4|0;while((F|0)<(V|0));V=(Dl(v[y>>2]|0)|0)==0,N=V?N:R,R=_+4|0,gE(R),xE(R),Dl(v[y>>2]|0)|0&&(vo(R),v[y>>2]=(v[y>>2]|0)+1),v[S>>2]=v[_>>2],y=S+4|0,Cs(R,N,y),Na(y),v[S+16>>2]=v[_>>2],y=S+20|0,Cs(R,N+12|0,y),Na(y),v[S+32>>2]=v[_>>2],y=S+36|0,Cs(R,N+24|0,y),Na(y),v[S+48>>2]=v[_>>2],y=S+52|0,Cs(R,N+36|0,y),Na(y),v[S+64>>2]=v[_>>2],y=S+68|0,Cs(R,N+48|0,y),Na(y),v[S+80>>2]=v[_>>2],S=S+84|0,Cs(R,N+60|0,S),Na(S),pe=Y}function W2(_,y){return _=_|0,y=y|0,y=on(_|0,y|0,52)|0,ue()|0,y&15|0}function wE(_,y){return _=_|0,y=y|0,y=on(_|0,y|0,45)|0,ue()|0,y&127|0}function lL(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,(S+-1|0)>>>0>14?(N=4,N|0):(S=on(_|0,y|0,(15-S|0)*3|0)|0,ue()|0,v[N>>2]=S&7,N=0,N|0)}function cL(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0;if(_>>>0>15)return N=4,N|0;if(y>>>0>121)return N=17,N|0;U=mn(_|0,0,52)|0,R=ue()|0,V=mn(y|0,0,45)|0,R=R|(ue()|0)|134225919;e:do if((_|0)>=1){for(V=1,U=(xt[20528+y>>0]|0)!=0,F=-1;;){if(y=v[S+(V+-1<<2)>>2]|0,y>>>0>6){R=18,y=10;break}if(!((y|0)==0|U^1))if((y|0)==1){R=19,y=10;break}else U=0;if(ne=(15-V|0)*3|0,Y=mn(7,0,ne|0)|0,R=R&~(ue()|0),y=mn(y|0,((y|0)<0)<<31>>31|0,ne|0)|0,F=y|F&~Y,R=ue()|0|R,(V|0)<(_|0))V=V+1|0;else break e}if((y|0)==10)return R|0}else F=-1;while(!1);return ne=N,v[ne>>2]=F,v[ne+4>>2]=R,ne=0,ne|0}function n4(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0;return!(!0&(y&-16777216|0)==134217728)||(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,S=on(_|0,y|0,45)|0,ue()|0,S=S&127,S>>>0>121)?(_=0,_|0):(U=(N^15)*3|0,R=on(_|0,y|0,U|0)|0,U=mn(R|0,ue()|0,U|0)|0,R=ue()|0,F=no(-1227133514,-1171,U|0,R|0)|0,!((U&613566756&F|0)==0&(R&4681&(ue()|0)|0)==0)||(U=(N*3|0)+19|0,F=mn(~_|0,~y|0,U|0)|0,U=on(F|0,ue()|0,U|0)|0,!((N|0)==15|(U|0)==0&(ue()|0)==0))?(U=0,U|0):!(xt[20528+S>>0]|0)||(y=y&8191,(_|0)==0&(y|0)==0)?(U=1,U|0):(U=wx(_|0,y|0)|0,ue()|0,((63-U|0)%3|0|0)!=0|0))}function SE(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0;return!0&(y&-16777216|0)==134217728&&(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,S=on(_|0,y|0,45)|0,ue()|0,S=S&127,S>>>0<=121)&&(U=(N^15)*3|0,R=on(_|0,y|0,U|0)|0,U=mn(R|0,ue()|0,U|0)|0,R=ue()|0,F=no(-1227133514,-1171,U|0,R|0)|0,(U&613566756&F|0)==0&(R&4681&(ue()|0)|0)==0)&&(U=(N*3|0)+19|0,F=mn(~_|0,~y|0,U|0)|0,U=on(F|0,ue()|0,U|0)|0,(N|0)==15|(U|0)==0&(ue()|0)==0)&&(!(xt[20528+S>>0]|0)||(S=y&8191,(_|0)==0&(S|0)==0)||(U=wx(_|0,S|0)|0,ue()|0,(63-U|0)%3|0|0))||_E(_,y)|0?(U=1,U|0):(U=(Yd(_,y)|0)!=0&1,U|0)}function Gp(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0;if(R=mn(y|0,0,52)|0,F=ue()|0,S=mn(S|0,0,45)|0,S=F|(ue()|0)|134225919,(y|0)<1){F=-1,N=S,y=_,v[y>>2]=F,_=_+4|0,v[_>>2]=N;return}for(F=1,R=-1;U=(15-F|0)*3|0,V=mn(7,0,U|0)|0,S=S&~(ue()|0),U=mn(N|0,0,U|0)|0,R=R&~V|U,S=S|(ue()|0),(F|0)!=(y|0);)F=F+1|0;V=_,U=V,v[U>>2]=R,V=V+4|0,v[V>>2]=S}function zp(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0;if(F=on(_|0,y|0,52)|0,ue()|0,F=F&15,S>>>0>15)return N=4,N|0;
4163if((F|0)<(S|0))return N=12,N|0;if((F|0)==(S|0))return v[N>>2]=_,v[N+4>>2]=y,N=0,N|0;if(R=mn(S|0,0,52)|0,R=R|_,_=ue()|0|y&-15728641,(F|0)>(S|0))do y=mn(7,0,(14-S|0)*3|0)|0,S=S+1|0,R=y|R,_=ue()|0|_;while((S|0)<(F|0));return v[N>>2]=R,v[N+4>>2]=_,N=0,N|0}function vx(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0;if(F=on(_|0,y|0,52)|0,ue()|0,F=F&15,!((S|0)<16&(F|0)<=(S|0)))return N=4,N|0;R=S-F|0,S=on(_|0,y|0,45)|0,ue()|0;e:do if(!(si(S&127)|0))S=Vf(7,0,R,((R|0)<0)<<31>>31)|0,R=ue()|0;else{t:do if(F|0){for(S=1;U=mn(7,0,(15-S|0)*3|0)|0,!!((U&_|0)==0&((ue()|0)&y|0)==0);)if(S>>>0<F>>>0)S=S+1|0;else break t;S=Vf(7,0,R,((R|0)<0)<<31>>31)|0,R=ue()|0;break e}while(!1);S=Vf(7,0,R,((R|0)<0)<<31>>31)|0,S=fs(S|0,ue()|0,5,0)|0,S=On(S|0,ue()|0,-5,-1)|0,S=zf(S|0,ue()|0,6,0)|0,S=On(S|0,ue()|0,1,0)|0,R=ue()|0}while(!1);return U=N,v[U>>2]=S,v[U+4>>2]=R,U=0,U|0}function Yi(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;if(R=on(_|0,y|0,45)|0,ue()|0,!(si(R&127)|0))return R=0,R|0;R=on(_|0,y|0,52)|0,ue()|0,R=R&15;e:do if(!R)S=0;else for(N=1;;){if(S=on(_|0,y|0,(15-N|0)*3|0)|0,ue()|0,S=S&7,S|0)break e;if(N>>>0<R>>>0)N=N+1|0;else{S=0;break}}while(!1);return R=(S|0)==0&1,R|0}function TE(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0;if(U=pe,pe=pe+16|0,F=U,$d(F,_,y,S),y=F,_=v[y>>2]|0,y=v[y+4>>2]|0,(_|0)==0&(y|0)==0)return pe=U,0;R=0,S=0;do V=N+(R<<3)|0,v[V>>2]=_,v[V+4>>2]=y,R=On(R|0,S|0,1,0)|0,S=ue()|0,yx(F),V=F,_=v[V>>2]|0,y=v[V+4>>2]|0;while(!((_|0)==0&(y|0)==0));return pe=U,0}function O6(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,(N|0)<(S|0)?(S=y,N=_,He(S|0),N|0):(S=mn(-1,-1,((N-S|0)*3|0)+3|0)|0,N=mn(~S|0,~(ue()|0)|0,(15-N|0)*3|0)|0,S=~(ue()|0)&y,N=~N&_,He(S|0),N|0)}function r4(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0;return R=on(_|0,y|0,52)|0,ue()|0,R=R&15,(S|0)<16&(R|0)<=(S|0)?((R|0)<(S|0)&&(R=mn(-1,-1,((S+-1-R|0)*3|0)+3|0)|0,R=mn(~R|0,~(ue()|0)|0,(15-S|0)*3|0)|0,y=~(ue()|0)&y,_=~R&_),R=mn(S|0,0,52)|0,S=y&-15728641|(ue()|0),v[N>>2]=_|R,v[N+4>>2]=S,N=0,N|0):(N=4,N|0)}function F6(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0,Jn=0,xn=0;if((S|0)==0&(N|0)==0)return xn=0,xn|0;if(R=_,F=v[R>>2]|0,R=v[R+4>>2]|0,!0&(R&15728640|0)==0){if(!((N|0)>0|(N|0)==0&S>>>0>0)||(xn=y,v[xn>>2]=F,v[xn+4>>2]=R,(S|0)==1&(N|0)==0))return xn=0,xn|0;R=1,F=0;do Mr=_+(R<<3)|0,Jn=v[Mr+4>>2]|0,xn=y+(R<<3)|0,v[xn>>2]=v[Mr>>2],v[xn+4>>2]=Jn,R=On(R|0,F|0,1,0)|0,F=ue()|0;while((F|0)<(N|0)|(F|0)==(N|0)&R>>>0<S>>>0);return R=0,R|0}if(Yr=S<<3,Jn=Gf(Yr)|0,!Jn)return xn=13,xn|0;if(o1(Jn|0,_|0,Yr|0)|0,Mr=Ec(S,8)|0,!Mr)return pr(Jn),xn=13,xn|0;e:for(;;){R=Jn,ne=v[R>>2]|0,R=v[R+4>>2]|0,Ir=on(ne|0,R|0,52)|0,ue()|0,Ir=Ir&15,Nr=Ir+-1|0,jn=(Ir|0)!=0,Yn=(N|0)>0|(N|0)==0&S>>>0>0;t:do if(jn&Yn){if(Et=mn(Nr|0,0,52)|0,bt=ue()|0,Nr>>>0>15){if(!((ne|0)==0&(R|0)==0)){xn=16;break e}for(F=0,_=0;;){if(F=On(F|0,_|0,1,0)|0,_=ue()|0,!((_|0)<(N|0)|(_|0)==(N|0)&F>>>0<S>>>0))break t;if(U=Jn+(F<<3)|0,gn=v[U>>2]|0,U=v[U+4>>2]|0,!((gn|0)==0&(U|0)==0)){R=U,xn=16;break e}}}for(V=ne,_=R,F=0,U=0;;){if(!((V|0)==0&(_|0)==0)){if(!(!0&(_&117440512|0)==0)){xn=21;break e}if(le=on(V|0,_|0,52)|0,ue()|0,le=le&15,(le|0)<(Nr|0)){R=12,xn=27;break e}if((le|0)!=(Nr|0)&&(V=V|Et,_=_&-15728641|bt,le>>>0>=Ir>>>0)){Y=Nr;do gn=mn(7,0,(14-Y|0)*3|0)|0,Y=Y+1|0,V=gn|V,_=ue()|0|_;while(Y>>>0<le>>>0)}if(Be=sm(V|0,_|0,S|0,N|0)|0,Oe=ue()|0,Y=Mr+(Be<<3)|0,le=Y,Ee=v[le>>2]|0,le=v[le+4>>2]|0,!((Ee|0)==0&(le|0)==0)){At=0,Pt=0;do{if((At|0)>(N|0)|(At|0)==(N|0)&Pt>>>0>S>>>0){xn=31;break e}if((Ee|0)==(V|0)&(le&-117440513|0)==(_|0)){Ue=on(Ee|0,le|0,56)|0,ue()|0,Ue=Ue&7,st=Ue+1|0,gn=on(Ee|0,le|0,45)|0,ue()|0;n:do if(!(si(gn&127)|0))le=7;else{if(Ee=on(Ee|0,le|0,52)|0,ue()|0,Ee=Ee&15,!Ee){le=6;break}for(le=1;;){if(gn=mn(7,0,(15-le|0)*3|0)|0,!((gn&V|0)==0&((ue()|0)&_|0)==0)){le=7;break n}if(le>>>0<Ee>>>0)le=le+1|0;else{le=6;break}}}while(!1);if((Ue+2|0)>>>0>le>>>0){xn=41;break e}gn=mn(st|0,0,56)|0,_=ue()|0|_&-117440513,ct=Y,v[ct>>2]=0,v[ct+4>>2]=0,V=gn|V}else Be=On(Be|0,Oe|0,1,0)|0,Be=K2(Be|0,ue()|0,S|0,N|0)|0,Oe=ue()|0;Pt=On(Pt|0,At|0,1,0)|0,At=ue()|0,Y=Mr+(Be<<3)|0,le=Y,Ee=v[le>>2]|0,le=v[le+4>>2]|0}while(!((Ee|0)==0&(le|0)==0))}gn=Y,v[gn>>2]=V,v[gn+4>>2]=_}if(F=On(F|0,U|0,1,0)|0,U=ue()|0,!((U|0)<(N|0)|(U|0)==(N|0)&F>>>0<S>>>0))break t;_=Jn+(F<<3)|0,V=v[_>>2]|0,_=v[_+4>>2]|0}}while(!1);if(gn=On(S|0,N|0,5,0)|0,ct=ue()|0,ct>>>0<0|(ct|0)==0&gn>>>0<11){xn=85;break}if(gn=zf(S|0,N|0,6,0)|0,ue()|0,gn=Ec(gn,8)|0,!gn){xn=48;break}do if(Yn){for(st=0,_=0,Ue=0,At=0;;){if(le=Mr+(st<<3)|0,U=le,F=v[U>>2]|0,U=v[U+4>>2]|0,(F|0)==0&(U|0)==0)ct=Ue;else{Ee=on(F|0,U|0,56)|0,ue()|0,Ee=Ee&7,V=Ee+1|0,Be=U&-117440513,ct=on(F|0,U|0,45)|0,ue()|0;
4163t:do if(si(ct&127)|0){if(Oe=on(F|0,U|0,52)|0,ue()|0,Oe=Oe&15,Oe|0)for(Y=1;;){if(ct=mn(7,0,(15-Y|0)*3|0)|0,!((F&ct|0)==0&(Be&(ue()|0)|0)==0))break t;if(Y>>>0<Oe>>>0)Y=Y+1|0;else break}U=mn(V|0,0,56)|0,F=U|F,U=ue()|0|Be,V=le,v[V>>2]=F,v[V+4>>2]=U,V=Ee+2|0}while(!1);(V|0)==7?(ct=gn+(_<<3)|0,v[ct>>2]=F,v[ct+4>>2]=U&-117440513,_=On(_|0,Ue|0,1,0)|0,ct=ue()|0):ct=Ue}if(st=On(st|0,At|0,1,0)|0,At=ue()|0,(At|0)<(N|0)|(At|0)==(N|0)&st>>>0<S>>>0)Ue=ct;else break}if(Yn){if(Pt=Nr>>>0>15,Et=mn(Nr|0,0,52)|0,bt=ue()|0,!jn){for(F=0,Y=0,V=0,U=0;(ne|0)==0&(R|0)==0||(Nr=y+(F<<3)|0,v[Nr>>2]=ne,v[Nr+4>>2]=R,F=On(F|0,Y|0,1,0)|0,Y=ue()|0),V=On(V|0,U|0,1,0)|0,U=ue()|0,!!((U|0)<(N|0)|(U|0)==(N|0)&V>>>0<S>>>0);)R=Jn+(V<<3)|0,ne=v[R>>2]|0,R=v[R+4>>2]|0;R=ct;break}for(F=0,Y=0,U=0,V=0;;){do if(!((ne|0)==0&(R|0)==0)){if(Oe=on(ne|0,R|0,52)|0,ue()|0,Oe=Oe&15,Pt|(Oe|0)<(Nr|0)){xn=80;break e}if((Oe|0)!=(Nr|0)){if(le=ne|Et,Ee=R&-15728641|bt,Oe>>>0>=Ir>>>0){Be=Nr;do jn=mn(7,0,(14-Be|0)*3|0)|0,Be=Be+1|0,le=jn|le,Ee=ue()|0|Ee;while(Be>>>0<Oe>>>0)}}else le=ne,Ee=R;Ue=sm(le|0,Ee|0,S|0,N|0)|0,Be=0,Oe=0,At=ue()|0;do{if((Be|0)>(N|0)|(Be|0)==(N|0)&Oe>>>0>S>>>0){xn=81;break e}if(jn=Mr+(Ue<<3)|0,st=v[jn+4>>2]|0,(st&-117440513|0)==(Ee|0)&&(v[jn>>2]|0)==(le|0)){xn=65;break}jn=On(Ue|0,At|0,1,0)|0,Ue=K2(jn|0,ue()|0,S|0,N|0)|0,At=ue()|0,Oe=On(Oe|0,Be|0,1,0)|0,Be=ue()|0,jn=Mr+(Ue<<3)|0}while(!((v[jn>>2]|0)==(le|0)&&(v[jn+4>>2]|0)==(Ee|0)));if((xn|0)==65&&(xn=0,!0&(st&117440512|0)==100663296))break;jn=y+(F<<3)|0,v[jn>>2]=ne,v[jn+4>>2]=R,F=On(F|0,Y|0,1,0)|0,Y=ue()|0}while(!1);if(U=On(U|0,V|0,1,0)|0,V=ue()|0,!((V|0)<(N|0)|(V|0)==(N|0)&U>>>0<S>>>0))break;R=Jn+(U<<3)|0,ne=v[R>>2]|0,R=v[R+4>>2]|0}R=ct}else F=0,R=ct}else F=0,_=0,R=0;while(!1);if(H0(Mr|0,0,Yr|0)|0,o1(Jn|0,gn|0,_<<3|0)|0,pr(gn),(_|0)==0&(R|0)==0){xn=89;break}else y=y+(F<<3)|0,N=R,S=_}if((xn|0)==16)!0&(R&117440512|0)==0?(R=4,xn=27):xn=21;else if((xn|0)==31)Ze(27795,27122,620,27132);else{if((xn|0)==41)return pr(Jn),pr(Mr),xn=10,xn|0;if((xn|0)==48)return pr(Jn),pr(Mr),xn=13,xn|0;(xn|0)==80?Ze(27795,27122,711,27132):(xn|0)==81?Ze(27795,27122,723,27132):(xn|0)==85&&(o1(y|0,Jn|0,S<<3|0)|0,xn=89)}return(xn|0)==21?(pr(Jn),pr(Mr),xn=5,xn|0):(xn|0)==27?(pr(Jn),pr(Mr),xn=R,xn|0):(xn|0)==89?(pr(Jn),pr(Mr),xn=0,xn|0):0}function EE(_,y,S,N,R,F,U){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0,U=U|0;var V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0;if(st=pe,pe=pe+16|0,Ue=st,!((S|0)>0|(S|0)==0&y>>>0>0))return Ue=0,pe=st,Ue|0;if((U|0)>=16)return Ue=12,pe=st,Ue|0;Be=0,Oe=0,Ee=0,V=0;e:for(;;){if(ne=_+(Be<<3)|0,Y=v[ne>>2]|0,ne=v[ne+4>>2]|0,le=on(Y|0,ne|0,52)|0,ue()|0,(le&15|0)>(U|0)){V=12,Y=11;break}if($d(Ue,Y,ne,U),le=Ue,ne=v[le>>2]|0,le=v[le+4>>2]|0,(ne|0)==0&(le|0)==0)Y=Ee;else{Y=Ee;do{if(!((V|0)<(F|0)|(V|0)==(F|0)&Y>>>0<R>>>0)){Y=10;break e}Ee=N+(Y<<3)|0,v[Ee>>2]=ne,v[Ee+4>>2]=le,Y=On(Y|0,V|0,1,0)|0,V=ue()|0,yx(Ue),Ee=Ue,ne=v[Ee>>2]|0,le=v[Ee+4>>2]|0}while(!((ne|0)==0&(le|0)==0))}if(Be=On(Be|0,Oe|0,1,0)|0,Oe=ue()|0,(Oe|0)<(S|0)|(Oe|0)==(S|0)&Be>>>0<y>>>0)Ee=Y;else{V=0,Y=11;break}}return(Y|0)==10?(Ue=14,pe=st,Ue|0):(Y|0)==11?(pe=st,V|0):0}function ME(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;Be=pe,pe=pe+16|0,Ee=Be;e:do if((S|0)>0|(S|0)==0&y>>>0>0){for(ne=0,U=0,F=0,le=0;;){if(Y=_+(ne<<3)|0,V=v[Y>>2]|0,Y=v[Y+4>>2]|0,!((V|0)==0&(Y|0)==0)&&(Y=(vx(V,Y,N,Ee)|0)==0,V=Ee,U=On(v[V>>2]|0,v[V+4>>2]|0,U|0,F|0)|0,F=ue()|0,!Y)){F=12;break}if(ne=On(ne|0,le|0,1,0)|0,le=ue()|0,!((le|0)<(S|0)|(le|0)==(S|0)&ne>>>0<y>>>0))break e}return pe=Be,F|0}else U=0,F=0;while(!1);return v[R>>2]=U,v[R+4>>2]=F,R=0,pe=Be,R|0}function CE(_,y){return _=_|0,y=y|0,y=on(_|0,y|0,52)|0,ue()|0,y&1|0}function bc(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;if(R=on(_|0,y|0,52)|0,ue()|0,R=R&15,!R)return R=0,R|0;for(N=1;;){if(S=on(_|0,y|0,(15-N|0)*3|0)|0,ue()|0,S=S&7,S|0){N=5;break}if(N>>>0<R>>>0)N=N+1|0;else{S=0,N=5;break}}return(N|0)==5?S|0:0}function I6(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0;if(Y=on(_|0,y|0,52)|0,ue()|0,Y=Y&15,!Y)return V=y,Y=_,He(V|0),Y|0;for(V=1,S=0;;){F=(15-V|0)*3|0,N=mn(7,0,F|0)|0,R=ue()|0,U=on(_|0,y|0,F|0)|0,ue()|0,F=mn(Vp(U&7)|0,0,F|0)|0,U=ue()|0,_=F|_&~N,y=U|y&~R;e:do if(!S)if((F&N|0)==0&(U&R|0)==0)S=0;else if(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,!N)S=1;else{S=1;t:for(;;){switch(U=on(_|0,y|0,(15-S|0)*3|0)|0,ue()|0,U&7){case 1:break t;case 0:break;default:{S=1;break e}}if(S>>>0<N>>>0)S=S+1|0;else{S=1;break e}}for(S=1;;)if(U=(15-S|0)*3|0,R=on(_|0,y|0,U|0)|0,ue()|0,F=mn(7,0,U|0)|0,y=y&~(ue()|0),U=mn(Vp(R&7)|0,0,U|0)|0,_=_&~F|U,y=y|(ue()|0),S>>>0<N>>>0)S=S+1|0;else{S=1;break}}while(!1);if(V>>>0<Y>>>0)V=V+1|0;else break}return He(y|0),_|0}function $p(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0;if(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,!N)return S=y,N=_,He(S|0),N|0;for(S=1;F=(15-S|0)*3|0,U=on(_|0,y|0,F|0)|0,ue()|0,R=mn(7,0,F|0)|0,y=y&~(ue()|0),F=mn(Vp(U&7)|0,0,F|0)|0,_=F|_&~R,y=ue()|0|y,S>>>0<N>>>0;)S=S+1|0;return He(y|0),_|0}function uL(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0;
4163if(Y=on(_|0,y|0,52)|0,ue()|0,Y=Y&15,!Y)return V=y,Y=_,He(V|0),Y|0;for(V=1,S=0;;){F=(15-V|0)*3|0,N=mn(7,0,F|0)|0,R=ue()|0,U=on(_|0,y|0,F|0)|0,ue()|0,F=mn(zd(U&7)|0,0,F|0)|0,U=ue()|0,_=F|_&~N,y=U|y&~R;e:do if(!S)if((F&N|0)==0&(U&R|0)==0)S=0;else if(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,!N)S=1;else{S=1;t:for(;;){switch(U=on(_|0,y|0,(15-S|0)*3|0)|0,ue()|0,U&7){case 1:break t;case 0:break;default:{S=1;break e}}if(S>>>0<N>>>0)S=S+1|0;else{S=1;break e}}for(S=1;;)if(R=(15-S|0)*3|0,F=mn(7,0,R|0)|0,U=y&~(ue()|0),y=on(_|0,y|0,R|0)|0,ue()|0,y=mn(zd(y&7)|0,0,R|0)|0,_=_&~F|y,y=U|(ue()|0),S>>>0<N>>>0)S=S+1|0;else{S=1;break}}while(!1);if(V>>>0<Y>>>0)V=V+1|0;else break}return He(y|0),_|0}function B6(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0;if(N=on(_|0,y|0,52)|0,ue()|0,N=N&15,!N)return S=y,N=_,He(S|0),N|0;for(S=1;U=(15-S|0)*3|0,F=mn(7,0,U|0)|0,R=y&~(ue()|0),y=on(_|0,y|0,U|0)|0,ue()|0,y=mn(zd(y&7)|0,0,U|0)|0,_=y|_&~F,y=ue()|0|R,S>>>0<N>>>0;)S=S+1|0;return He(y|0),_|0}function lu(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(Y=pe,pe=pe+64|0,V=Y+40|0,N=Y+24|0,R=Y+12|0,F=Y,mn(y|0,0,52)|0,S=ue()|0|134225919,!y)return(v[_+4>>2]|0)>2||(v[_+8>>2]|0)>2||(v[_+12>>2]|0)>2?(U=0,V=0,He(U|0),pe=Y,V|0):(mn(nl(_)|0,0,45)|0,U=ue()|0|S,V=-1,He(U|0),pe=Y,V|0);if(v[V>>2]=v[_>>2],v[V+4>>2]=v[_+4>>2],v[V+8>>2]=v[_+8>>2],v[V+12>>2]=v[_+12>>2],U=V+4|0,(y|0)>0)for(_=-1;v[N>>2]=v[U>>2],v[N+4>>2]=v[U+4>>2],v[N+8>>2]=v[U+8>>2],y&1?(ra(U),v[R>>2]=v[U>>2],v[R+4>>2]=v[U+4>>2],v[R+8>>2]=v[U+8>>2],ha(R)):(ji(U),v[R>>2]=v[U>>2],v[R+4>>2]=v[U+4>>2],v[R+8>>2]=v[U+8>>2],vo(R)),An(N,R,F),Na(F),le=(15-y|0)*3|0,ne=mn(7,0,le|0)|0,S=S&~(ue()|0),le=mn(mr(F)|0,0,le|0)|0,_=le|_&~ne,S=ue()|0|S,(y|0)>1;)y=y+-1|0;else _=-1;e:do if((v[U>>2]|0)<=2&&(v[V+8>>2]|0)<=2&&(v[V+12>>2]|0)<=2){if(N=nl(V)|0,y=mn(N|0,0,45)|0,y=y|_,_=ue()|0|S&-1040385,F=kf(V)|0,!(si(N)|0)){if((F|0)<=0)break;for(R=0;;){if(N=on(y|0,_|0,52)|0,ue()|0,N=N&15,N)for(S=1;le=(15-S|0)*3|0,V=on(y|0,_|0,le|0)|0,ue()|0,ne=mn(7,0,le|0)|0,_=_&~(ue()|0),le=mn(Vp(V&7)|0,0,le|0)|0,y=y&~ne|le,_=_|(ue()|0),S>>>0<N>>>0;)S=S+1|0;if(R=R+1|0,(R|0)==(F|0))break e}}R=on(y|0,_|0,52)|0,ue()|0,R=R&15;t:do if(R){S=1;n:for(;;){switch(le=on(y|0,_|0,(15-S|0)*3|0)|0,ue()|0,le&7){case 1:break n;case 0:break;default:break t}if(S>>>0<R>>>0)S=S+1|0;else break t}if($u(N,v[V>>2]|0)|0)for(S=1;V=(15-S|0)*3|0,ne=mn(7,0,V|0)|0,le=_&~(ue()|0),_=on(y|0,_|0,V|0)|0,ue()|0,_=mn(zd(_&7)|0,0,V|0)|0,y=y&~ne|_,_=le|(ue()|0),S>>>0<R>>>0;)S=S+1|0;else for(S=1;le=(15-S|0)*3|0,V=on(y|0,_|0,le|0)|0,ue()|0,ne=mn(7,0,le|0)|0,_=_&~(ue()|0),le=mn(Vp(V&7)|0,0,le|0)|0,y=y&~ne|le,_=_|(ue()|0),S>>>0<R>>>0;)S=S+1|0}while(!1);if((F|0)>0){S=0;do y=I6(y,_)|0,_=ue()|0,S=S+1|0;while((S|0)!=(F|0))}}else y=0,_=0;while(!1);return ne=_,le=y,He(ne|0),pe=Y,le|0}function Dl(_){return _=_|0,(_|0)%2|0|0}function i4(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0;return R=pe,pe=pe+16|0,N=R,y>>>0>15?(N=4,pe=R,N|0):(v[_+4>>2]&2146435072|0)==2146435072||(v[_+8+4>>2]&2146435072|0)==2146435072?(N=3,pe=R,N|0):(aL(_,y,N),y=lu(N,y)|0,N=ue()|0,v[S>>2]=y,v[S+4>>2]=N,(y|0)==0&(N|0)==0&&Ze(27795,27122,1050,27145),N=0,pe=R,N|0)}function a4(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;if(R=S+4|0,F=on(_|0,y|0,52)|0,ue()|0,F=F&15,U=on(_|0,y|0,45)|0,ue()|0,N=(F|0)==0,si(U&127)|0){if(N)return U=1,U|0;N=1}else{if(N)return U=0,U|0;(v[R>>2]|0)==0&&(v[S+8>>2]|0)==0?N=(v[S+12>>2]|0)!=0&1:N=1}for(S=1;S&1?ha(R):vo(R),U=on(_|0,y|0,(15-S|0)*3|0)|0,ue()|0,mE(R,U&7),S>>>0<F>>>0;)S=S+1|0;return N|0}function qp(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(le=pe,pe=pe+16|0,Y=le,ne=on(_|0,y|0,45)|0,ue()|0,ne=ne&127,ne>>>0>121)return v[S>>2]=0,v[S+4>>2]=0,v[S+8>>2]=0,v[S+12>>2]=0,ne=5,pe=le,ne|0;e:do if((si(ne)|0)!=0&&(F=on(_|0,y|0,52)|0,ue()|0,F=F&15,(F|0)!=0)){N=1;t:for(;;){switch(V=on(_|0,y|0,(15-N|0)*3|0)|0,ue()|0,V&7){case 5:break t;case 0:break;default:{N=y;break e}}if(N>>>0<F>>>0)N=N+1|0;else{N=y;break e}}for(R=1,N=y;y=(15-R|0)*3|0,U=mn(7,0,y|0)|0,V=N&~(ue()|0),N=on(_|0,N|0,y|0)|0,ue()|0,N=mn(zd(N&7)|0,0,y|0)|0,_=_&~U|N,N=V|(ue()|0),R>>>0<F>>>0;)R=R+1|0}else N=y;while(!1);if(V=7696+(ne*28|0)|0,v[S>>2]=v[V>>2],v[S+4>>2]=v[V+4>>2],v[S+8>>2]=v[V+8>>2],v[S+12>>2]=v[V+12>>2],!(a4(_,N,S)|0))return ne=0,pe=le,ne|0;if(U=S+4|0,v[Y>>2]=v[U>>2],v[Y+4>>2]=v[U+4>>2],v[Y+8>>2]=v[U+8>>2],F=on(_|0,N|0,52)|0,ue()|0,V=F&15,F&1?(vo(U),F=V+1|0):F=V,!(si(ne)|0))N=0;else{e:do if(!V)N=0;else for(y=1;;){if(R=on(_|0,N|0,(15-y|0)*3|0)|0,ue()|0,R=R&7,R|0){N=R;break e}if(y>>>0<V>>>0)y=y+1|0;else{N=0;break}}while(!1);N=(N|0)==4&1}if(!(Hp(S,F,N,0)|0))(F|0)!=(V|0)&&(v[U>>2]=v[Y>>2],v[U+4>>2]=v[Y+4>>2],v[U+8>>2]=v[Y+8>>2]);else{if(si(ne)|0)do;while((Hp(S,F,0,0)|0)!=0);(F|0)!=(V|0)&&ji(U)}return ne=0,pe=le,ne|0}function n1(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;return F=pe,pe=pe+16|0,N=F,R=qp(_,y,N)|0,R|0?(pe=F,R|0):(R=on(_|0,y|0,52)|0,ue()|0,xx(N,R&15,S),R=0,pe=F,R|0)}function r1(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0;if(U=pe,pe=pe+16|0,F=U,N=qp(_,y,F)|0,N|0)return F=N,pe=U,F|0;N=on(_|0,y|0,45)|0,ue()|0,N=(si(N&127)|0)==0,R=on(_|0,y|0,52)|0,ue()|0,R=R&15;e:do if(!N){if(R|0)for(N=1;;){if(V=mn(7,0,(15-N|0)*3|0)|0,!((V&_|0)==0&((ue()|0)&y|0)==0))break e;if(N>>>0<R>>>0)N=N+1|0;else break}return P6(F,R,0,5,S),V=0,pe=U,V|0}while(!1);return t4(F,R,0,6,S),V=0,pe=U,V|0}function fL(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;if(R=on(_|0,y|0,45)|0,ue()|0,!(si(R&127)|0))return R=2,v[S>>2]=R,0;if(R=on(_|0,y|0,52)|0,ue()|0,R=R&15,!R)return R=5,v[S>>2]=R,0;for(N=1;;){if(F=mn(7,0,(15-N|0)*3|0)|0,!((F&_|0)==0&((ue()|0)&y|0)==0)){N=2,_=6;break}if(N>>>0<R>>>0)N=N+1|0;else{N=5,_=6;break}}return(_|0)==6&&(v[S>>2]=N),0}function Wp(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0;Ee=pe,pe=pe+128|0,ne=Ee+112|0,F=Ee+96|0,le=Ee,R=on(_|0,y|0,52)|0,ue()|0,V=R&15,v[ne>>2]=V,U=on(_|0,y|0,45)|0,ue()|0,U=U&127;
4163e:do if(si(U)|0){if(V|0)for(N=1;;){if(Y=mn(7,0,(15-N|0)*3|0)|0,!((Y&_|0)==0&((ue()|0)&y|0)==0)){R=0;break e}if(N>>>0<V>>>0)N=N+1|0;else break}if(R&1)R=1;else return Y=mn(V+1|0,0,52)|0,le=ue()|0|y&-15728641,ne=mn(7,0,(14-V|0)*3|0)|0,le=Wp((Y|_)&~ne,le&~(ue()|0),S)|0,pe=Ee,le|0}else R=0;while(!1);if(N=qp(_,y,F)|0,!N){R?(k6(F,ne,le),Y=5):(L6(F,ne,le),Y=6);e:do if(si(U)|0)if(!V)_=5;else for(N=1;;){if(U=mn(7,0,(15-N|0)*3|0)|0,!((U&_|0)==0&((ue()|0)&y|0)==0)){_=2;break e}if(N>>>0<V>>>0)N=N+1|0;else{_=5;break}}else _=2;while(!1);H0(S|0,-1,_<<2|0)|0;e:do if(R)for(F=0;;){if(U=le+(F<<4)|0,bE(U,v[ne>>2]|0)|0,U=v[U>>2]|0,V=v[S>>2]|0,(V|0)==-1|(V|0)==(U|0))N=S;else{R=0;do{if(R=R+1|0,R>>>0>=_>>>0){N=1;break e}N=S+(R<<2)|0,V=v[N>>2]|0}while(!((V|0)==-1|(V|0)==(U|0)))}if(v[N>>2]=U,F=F+1|0,F>>>0>=Y>>>0){N=0;break}}else for(F=0;;){if(U=le+(F<<4)|0,Hp(U,v[ne>>2]|0,0,1)|0,U=v[U>>2]|0,V=v[S>>2]|0,(V|0)==-1|(V|0)==(U|0))N=S;else{R=0;do{if(R=R+1|0,R>>>0>=_>>>0){N=1;break e}N=S+(R<<2)|0,V=v[N>>2]|0}while(!((V|0)==-1|(V|0)==(U|0)))}if(v[N>>2]=U,F=F+1|0,F>>>0>=Y>>>0){N=0;break}}while(!1)}return le=N,pe=Ee,le|0}function U6(){return 12}function Zp(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0;if(_>>>0>15)return V=4,V|0;if(mn(_|0,0,52)|0,V=ue()|0|134225919,!_){S=0,N=0;do si(N)|0&&(mn(N|0,0,45)|0,U=V|(ue()|0),_=y+(S<<3)|0,v[_>>2]=-1,v[_+4>>2]=U,S=S+1|0),N=N+1|0;while((N|0)!=122);return S=0,S|0}S=0,U=0;do{if(si(U)|0){for(mn(U|0,0,45)|0,N=1,R=-1,F=V|(ue()|0);Y=mn(7,0,(15-N|0)*3|0)|0,R=R&~Y,F=F&~(ue()|0),(N|0)!=(_|0);)N=N+1|0;Y=y+(S<<3)|0,v[Y>>2]=R,v[Y+4>>2]=F,S=S+1|0}U=U+1|0}while((U|0)!=122);return S=0,S|0}function V6(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0;if(Et=pe,pe=pe+16|0,At=Et,Pt=on(_|0,y|0,52)|0,ue()|0,Pt=Pt&15,S>>>0>15)return Pt=4,pe=Et,Pt|0;if((Pt|0)<(S|0))return Pt=12,pe=Et,Pt|0;if((Pt|0)!=(S|0))if(F=mn(S|0,0,52)|0,F=F|_,V=ue()|0|y&-15728641,(Pt|0)>(S|0)){Y=S;do st=mn(7,0,(14-Y|0)*3|0)|0,Y=Y+1|0,F=st|F,V=ue()|0|V;while((Y|0)<(Pt|0));st=F}else st=F;else st=_,V=y;Ue=on(st|0,V|0,45)|0,ue()|0;e:do if(si(Ue&127)|0){if(Y=on(st|0,V|0,52)|0,ue()|0,Y=Y&15,Y|0)for(F=1;;){if(Ue=mn(7,0,(15-F|0)*3|0)|0,!((Ue&st|0)==0&((ue()|0)&V|0)==0)){ne=33;break e}if(F>>>0<Y>>>0)F=F+1|0;else break}if(Ue=N,v[Ue>>2]=0,v[Ue+4>>2]=0,(Pt|0)>(S|0)){for(Ue=y&-15728641,Oe=Pt;;){if(Be=Oe,Oe=Oe+-1|0,Oe>>>0>15|(Pt|0)<(Oe|0)){ne=19;break}if((Pt|0)!=(Oe|0))if(F=mn(Oe|0,0,52)|0,F=F|_,Y=ue()|0|Ue,(Pt|0)<(Be|0))Ee=F;else{ne=Oe;do Ee=mn(7,0,(14-ne|0)*3|0)|0,ne=ne+1|0,F=Ee|F,Y=ue()|0|Y;while((ne|0)<(Pt|0));Ee=F}else Ee=_,Y=y;if(le=on(Ee|0,Y|0,45)|0,ue()|0,!(si(le&127)|0))F=0;else{le=on(Ee|0,Y|0,52)|0,ue()|0,le=le&15;t:do if(!le)F=0;else for(ne=1;;){if(F=on(Ee|0,Y|0,(15-ne|0)*3|0)|0,ue()|0,F=F&7,F|0)break t;if(ne>>>0<le>>>0)ne=ne+1|0;else{F=0;break}}while(!1);F=(F|0)==0&1}if(Y=on(_|0,y|0,(15-Be|0)*3|0)|0,ue()|0,Y=Y&7,(Y|0)==7){R=5,ne=42;break}if(F=(F|0)!=0,(Y|0)==1&F){R=5,ne=42;break}if(Ee=Y+(((Y|0)!=0&F)<<31>>31)|0,Ee|0&&(ne=Pt-Be|0,ne=Vf(7,0,ne,((ne|0)<0)<<31>>31)|0,le=ue()|0,F?(F=fs(ne|0,le|0,5,0)|0,F=On(F|0,ue()|0,-5,-1)|0,F=zf(F|0,ue()|0,6,0)|0,F=On(F|0,ue()|0,1,0)|0,Y=ue()|0):(F=ne,Y=le),Be=Ee+-1|0,Be=fs(ne|0,le|0,Be|0,((Be|0)<0)<<31>>31|0)|0,Be=On(F|0,Y|0,Be|0,ue()|0)|0,Ee=ue()|0,le=N,le=On(Be|0,Ee|0,v[le>>2]|0,v[le+4>>2]|0)|0,Ee=ue()|0,Be=N,v[Be>>2]=le,v[Be+4>>2]=Ee),(Oe|0)<=(S|0)){ne=37;break}}if((ne|0)==19)Ze(27795,27122,1367,27158);else if((ne|0)==37){U=N,R=v[U+4>>2]|0,U=v[U>>2]|0;break}else if((ne|0)==42)return pe=Et,R|0}else R=0,U=0}else ne=33;while(!1);e:do if((ne|0)==33)if(Ue=N,v[Ue>>2]=0,v[Ue+4>>2]=0,(Pt|0)>(S|0)){for(F=Pt;;){if(R=on(_|0,y|0,(15-F|0)*3|0)|0,ue()|0,R=R&7,(R|0)==7){R=5;break}if(U=Pt-F|0,U=Vf(7,0,U,((U|0)<0)<<31>>31)|0,R=fs(U|0,ue()|0,R|0,0)|0,U=ue()|0,Ue=N,U=On(v[Ue>>2]|0,v[Ue+4>>2]|0,R|0,U|0)|0,R=ue()|0,Ue=N,v[Ue>>2]=U,v[Ue+4>>2]=R,F=F+-1|0,(F|0)<=(S|0))break e}return pe=Et,R|0}else R=0,U=0;while(!1);return vx(st,V,Pt,At)|0&&Ze(27795,27122,1327,27173),Pt=At,At=v[Pt+4>>2]|0,((R|0)>-1|(R|0)==-1&U>>>0>4294967295)&((At|0)>(R|0)|((At|0)==(R|0)?(v[Pt>>2]|0)>>>0>U>>>0:0))?(Pt=0,pe=Et,Pt|0):(Ze(27795,27122,1407,27158),0)}function NE(_,y,S,N,R,F){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0;var U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0;if(Ee=pe,pe=pe+16|0,U=Ee,R>>>0>15)return F=4,pe=Ee,F|0;if(V=on(S|0,N|0,52)|0,ue()|0,V=V&15,(V|0)>(R|0))return F=12,pe=Ee,F|0;if(vx(S,N,R,U)|0&&Ze(27795,27122,1327,27173),le=U,ne=v[le+4>>2]|0,!(((y|0)>-1|(y|0)==-1&_>>>0>4294967295)&((ne|0)>(y|0)|((ne|0)==(y|0)?(v[le>>2]|0)>>>0>_>>>0:0))))return F=2,pe=Ee,F|0;le=R-V|0,R=mn(R|0,0,52)|0,Y=ue()|0|N&-15728641,ne=F,v[ne>>2]=R|S,v[ne+4>>2]=Y,ne=on(S|0,N|0,45)|0,ue()|0;
4163e:do if(si(ne&127)|0){if(V|0)for(U=1;;){if(ne=mn(7,0,(15-U|0)*3|0)|0,!((ne&S|0)==0&((ue()|0)&N|0)==0))break e;if(U>>>0<V>>>0)U=U+1|0;else break}if((le|0)<1)return F=0,pe=Ee,F|0;for(ne=V^15,N=-1,Y=1,U=1;;){V=le-Y|0,V=Vf(7,0,V,((V|0)<0)<<31>>31)|0,S=ue()|0;do if(U)if(U=fs(V|0,S|0,5,0)|0,U=On(U|0,ue()|0,-5,-1)|0,U=zf(U|0,ue()|0,6,0)|0,R=ue()|0,(y|0)>(R|0)|(y|0)==(R|0)&_>>>0>U>>>0){y=On(_|0,y|0,-1,-1)|0,y=no(y|0,ue()|0,U|0,R|0)|0,U=ue()|0,Be=F,Ue=v[Be>>2]|0,Be=v[Be+4>>2]|0,st=(ne+N|0)*3|0,Oe=mn(7,0,st|0)|0,Be=Be&~(ue()|0),N=zf(y|0,U|0,V|0,S|0)|0,_=ue()|0,R=On(N|0,_|0,2,0)|0,st=mn(R|0,ue()|0,st|0)|0,Be=ue()|0|Be,R=F,v[R>>2]=st|Ue&~Oe,v[R+4>>2]=Be,_=fs(N|0,_|0,V|0,S|0)|0,_=no(y|0,U|0,_|0,ue()|0)|0,U=0,y=ue()|0;break}else{st=F,Oe=v[st>>2]|0,st=v[st+4>>2]|0,Ue=mn(7,0,(ne+N|0)*3|0)|0,st=st&~(ue()|0),U=F,v[U>>2]=Oe&~Ue,v[U+4>>2]=st,U=1;break}else Oe=F,R=v[Oe>>2]|0,Oe=v[Oe+4>>2]|0,N=(ne+N|0)*3|0,Be=mn(7,0,N|0)|0,Oe=Oe&~(ue()|0),st=zf(_|0,y|0,V|0,S|0)|0,U=ue()|0,N=mn(st|0,U|0,N|0)|0,Oe=ue()|0|Oe,Ue=F,v[Ue>>2]=N|R&~Be,v[Ue+4>>2]=Oe,U=fs(st|0,U|0,V|0,S|0)|0,_=no(_|0,y|0,U|0,ue()|0)|0,U=0,y=ue()|0;while(!1);if((le|0)>(Y|0))N=~Y,Y=Y+1|0;else{y=0;break}}return pe=Ee,y|0}while(!1);if((le|0)<1)return st=0,pe=Ee,st|0;for(R=V^15,U=1;;)if(Ue=le-U|0,Ue=Vf(7,0,Ue,((Ue|0)<0)<<31>>31)|0,st=ue()|0,Y=F,S=v[Y>>2]|0,Y=v[Y+4>>2]|0,V=(R-U|0)*3|0,N=mn(7,0,V|0)|0,Y=Y&~(ue()|0),Be=zf(_|0,y|0,Ue|0,st|0)|0,Oe=ue()|0,V=mn(Be|0,Oe|0,V|0)|0,Y=ue()|0|Y,ne=F,v[ne>>2]=V|S&~N,v[ne+4>>2]=Y,st=fs(Be|0,Oe|0,Ue|0,st|0)|0,_=no(_|0,y|0,st|0,ue()|0)|0,y=ue()|0,(le|0)<=(U|0)){y=0;break}else U=U+1|0;return pe=Ee,y|0}function $d(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0;R=on(y|0,S|0,52)|0,ue()|0,R=R&15,(y|0)==0&(S|0)==0|((N|0)>15|(R|0)>(N|0))?(F=-1,y=-1,S=0,R=0):(y=O6(y,S,R+1|0,N)|0,U=(ue()|0)&-15728641,S=mn(N|0,0,52)|0,S=y|S,U=U|(ue()|0),y=(Yi(S,U)|0)==0,F=R,y=y?-1:N,R=U),U=_,v[U>>2]=S,v[U+4>>2]=R,v[_+8>>2]=F,v[_+12>>2]=y}function Yp(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0;if(R=on(_|0,y|0,52)|0,ue()|0,R=R&15,F=N+8|0,v[F>>2]=R,(_|0)==0&(y|0)==0|((S|0)>15|(R|0)>(S|0))){S=N,v[S>>2]=0,v[S+4>>2]=0,v[F>>2]=-1,v[N+12>>2]=-1;return}if(_=O6(_,y,R+1|0,S)|0,F=(ue()|0)&-15728641,R=mn(S|0,0,52)|0,R=_|R,F=F|(ue()|0),_=N,v[_>>2]=R,v[_+4>>2]=F,_=N+12|0,Yi(R,F)|0){v[_>>2]=S;return}else{v[_>>2]=-1;return}}function yx(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0;if(S=_,y=v[S>>2]|0,S=v[S+4>>2]|0,!((y|0)==0&(S|0)==0)&&(N=on(y|0,S|0,52)|0,ue()|0,N=N&15,V=mn(1,0,(N^15)*3|0)|0,y=On(V|0,ue()|0,y|0,S|0)|0,S=ue()|0,V=_,v[V>>2]=y,v[V+4>>2]=S,V=_+8|0,U=v[V>>2]|0,!((N|0)<(U|0)))){for(Y=_+12|0,F=N;;){if((F|0)==(U|0)){N=5;break}if(ne=(F|0)==(v[Y>>2]|0),R=(15-F|0)*3|0,N=on(y|0,S|0,R|0)|0,ue()|0,N=N&7,ne&((N|0)==1&!0)){N=7;break}if(!((N|0)==7&!0)){N=10;break}if(ne=mn(1,0,R|0)|0,y=On(y|0,S|0,ne|0,ue()|0)|0,S=ue()|0,ne=_,v[ne>>2]=y,v[ne+4>>2]=S,(F|0)>(U|0))F=F+-1|0;else{N=10;break}}if((N|0)==5){ne=_,v[ne>>2]=0,v[ne+4>>2]=0,v[V>>2]=-1,v[Y>>2]=-1;return}else if((N|0)==7){U=mn(1,0,R|0)|0,U=On(y|0,S|0,U|0,ue()|0)|0,V=ue()|0,ne=_,v[ne>>2]=U,v[ne+4>>2]=V,v[Y>>2]=F+-1;return}else if((N|0)==10)return}}function Z2(_){_=+_;var y=0;return y=_<0?_+6.283185307179586:_,+(_>=6.283185307179586?y+-6.283185307179586:y)}function Yu(_,y){return _=_|0,y=y|0,+xe(+(+W[_>>3]-+W[y>>3]))<17453292519943298e-27?(y=+xe(+(+W[_+8>>3]-+W[y+8>>3]))<17453292519943298e-27,y|0):(y=0,y|0)}function wc(_,y){switch(_=+_,y=y|0,y|0){case 1:{_=_<0?_+6.283185307179586:_;break}case 2:{_=_>0?_+-6.283185307179586:_;break}}return+_}function RE(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;return R=+W[y>>3],N=+W[_>>3],F=+ze(+((R-N)*.5)),S=+ze(+((+W[y+8>>3]-+W[_+8>>3])*.5)),S=F*F+S*(+ot(+R)*+ot(+N)*S),+(+rn(+ +we(+S),+ +we(+(1-S)))*2)}function Y2(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;return R=+W[y>>3],N=+W[_>>3],F=+ze(+((R-N)*.5)),S=+ze(+((+W[y+8>>3]-+W[_+8>>3])*.5)),S=F*F+S*(+ot(+R)*+ot(+N)*S),+(+rn(+ +we(+S),+ +we(+(1-S)))*2*6371.007180918475)}function dL(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;return R=+W[y>>3],N=+W[_>>3],F=+ze(+((R-N)*.5)),S=+ze(+((+W[y+8>>3]-+W[_+8>>3])*.5)),S=F*F+S*(+ot(+R)*+ot(+N)*S),+(+rn(+ +we(+S),+ +we(+(1-S)))*2*6371.007180918475*1e3)}function hL(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0;return F=+W[y>>3],N=+ot(+F),R=+W[y+8>>3]-+W[_+8>>3],U=N*+ze(+R),S=+W[_>>3],+ +rn(+U,+(+ze(+F)*+ot(+S)-+ot(+R)*(N*+ze(+S))))}function pL(_,y,S,N){_=_|0,y=+y,S=+S,N=N|0;var R=0,F=0,U=0,V=0;if(S<1e-16){v[N>>2]=v[_>>2],v[N+4>>2]=v[_+4>>2],v[N+8>>2]=v[_+8>>2],v[N+12>>2]=v[_+12>>2];return}F=y<0?y+6.283185307179586:y,F=y>=6.283185307179586?F+-6.283185307179586:F;do if(F<1e-16)y=+W[_>>3]+S,W[N>>3]=y,R=N;else{if(R=+xe(+(F+-3.141592653589793))<1e-16,y=+W[_>>3],R){y=y-S,W[N>>3]=y,R=N;break}if(U=+ot(+S),S=+ze(+S),y=U*+ze(+y)+ +ot(+F)*(S*+ot(+y)),y=y>1?1:y,y=+Rt(+(y<-1?-1:y)),W[N>>3]=y,+xe(+(y+-1.5707963267948966))<1e-16){W[N>>3]=1.5707963267948966,W[N+8>>3]=0;return}if(+xe(+(y+1.5707963267948966))<1e-16){W[N>>3]=-1.5707963267948966,W[N+8>>3]=0;return}if(V=1/+ot(+y),F=S*+ze(+F)*V,S=+W[_>>3],y=V*((U-+ze(+y)*+ze(+S))/+ot(+S)),U=F>1?1:F,y=y>1?1:y,y=+W[_+8>>3]+ +rn(+(U<-1?-1:U),+(y<-1?-1:y)),y>3.141592653589793)do y=y+-6.283185307179586;while(y>3.141592653589793);if(y<-3.141592653589793)do y=y+6.283185307179586;while(y<-3.141592653589793);W[N+8>>3]=y;return}while(!1);if(+xe(+(y+-1.5707963267948966))<1e-16){W[R>>3]=1.5707963267948966,W[N+8>>3]=0;return}if(+xe(+(y+1.5707963267948966))<1e-16){W[R>>3]=-1.5707963267948966,W[N+8>>3]=0;return}if(y=+W[_+8>>3],y>3.141592653589793)do y=y+-6.283185307179586;while(y>3.141592653589793);if(y<-3.141592653589793)do y=y+6.283185307179586;while(y<-3.141592653589793);W[N+8>>3]=y}function j6(_,y){return _=_|0,y=y|0,_>>>0>15?(y=4,y|0):(W[y>>3]=+W[20656+(_<<3)>>3],y=0,y|0)}function DE(_,y){return _=_|0,y=y|0,_>>>0>15?(y=4,y|0):(W[y>>3]=+W[20784+(_<<3)>>3],y=0,y|0)}function H6(_,y){return _=_|0,y=y|0,_>>>0>15?(y=4,y|0):(W[y>>3]=+W[20912+(_<<3)>>3],y=0,y|0)}function V0(_,y){return _=_|0,y=y|0,_>>>0>15?(y=4,y|0):(W[y>>3]=+W[21040+(_<<3)>>3],y=0,y|0)}function Xp(_,y){_=_|0,y=y|0;var S=0;return _>>>0>15?(y=4,y|0):(S=Vf(7,0,_,((_|0)<0)<<31>>31)|0,S=fs(S|0,ue()|0,120,0)|0,_=ue()|0,v[y>>2]=S|2,v[y+4>>2]=_,y=0,y|0)}function cu(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;return Be=+W[y>>3],le=+W[_>>3],Y=+ze(+((Be-le)*.5)),F=+W[y+8>>3],ne=+W[_+8>>3],U=+ze(+((F-ne)*.5)),V=+ot(+le),Ee=+ot(+Be),U=Y*Y+U*(Ee*V*U),U=+rn(+ +we(+U),+ +we(+(1-U)))*2,Y=+W[S>>3],Be=+ze(+((Y-Be)*.5)),N=+W[S+8>>3],F=+ze(+((N-F)*.5)),R=+ot(+Y),F=Be*Be+F*(Ee*R*F),F=+rn(+ +we(+F),+ +we(+(1-F)))*2,Y=+ze(+((le-Y)*.5)),N=+ze(+((ne-N)*.5)),N=Y*Y+N*(V*R*N),N=+rn(+ +we(+N),+ +we(+(1-N)))*2,R=(U+
4163F+N)*.5,+(+Xt(+ +we(+(+Ke(+(R*.5))*+Ke(+((R-U)*.5))*+Ke(+((R-F)*.5))*+Ke(+((R-N)*.5)))))*4)}function i1(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0;if(V=pe,pe=pe+192|0,F=V+168|0,U=V,R=n1(_,y,F)|0,R|0)return S=R,pe=V,S|0;if(r1(_,y,U)|0&&Ze(27795,27190,415,27199),y=v[U>>2]|0,(y|0)>0){if(N=+cu(U+8|0,U+8+(((y|0)!=1&1)<<4)|0,F)+0,(y|0)!=1){_=1;do R=_,_=_+1|0,N=N+ +cu(U+8+(R<<4)|0,U+8+(((_|0)%(y|0)|0)<<4)|0,F);while((_|0)<(y|0))}}else N=0;return W[S>>3]=N,S=0,pe=V,S|0}function G6(_,y,S){return _=_|0,y=y|0,S=S|0,_=i1(_,y,S)|0,_|0||(W[S>>3]=+W[S>>3]*6371.007180918475*6371.007180918475),_|0}function s4(_,y,S){return _=_|0,y=y|0,S=S|0,_=i1(_,y,S)|0,_|0||(W[S>>3]=+W[S>>3]*6371.007180918475*6371.007180918475*1e3*1e3),_|0}function o4(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(V=pe,pe=pe+176|0,U=V,_=e4(_,y,U)|0,_|0)return U=_,pe=V,U|0;if(W[S>>3]=0,_=v[U>>2]|0,(_|0)<=1)return U=0,pe=V,U|0;y=_+-1|0,_=0,N=+W[U+8>>3],R=+W[U+16>>3],F=0;do _=_+1|0,ne=N,N=+W[U+8+(_<<4)>>3],le=+ze(+((N-ne)*.5)),Y=R,R=+W[U+8+(_<<4)+8>>3],Y=+ze(+((R-Y)*.5)),Y=le*le+Y*(+ot(+N)*+ot(+ne)*Y),F=F+ +rn(+ +we(+Y),+ +we(+(1-Y)))*2;while((_|0)<(y|0));return W[S>>3]=F,U=0,pe=V,U|0}function z6(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(V=pe,pe=pe+176|0,U=V,_=e4(_,y,U)|0,_|0)return U=_,F=+W[S>>3],F=F*6371.007180918475,W[S>>3]=F,pe=V,U|0;if(W[S>>3]=0,_=v[U>>2]|0,(_|0)<=1)return U=0,F=0,F=F*6371.007180918475,W[S>>3]=F,pe=V,U|0;y=_+-1|0,_=0,N=+W[U+8>>3],R=+W[U+16>>3],F=0;do _=_+1|0,ne=N,N=+W[U+8+(_<<4)>>3],le=+ze(+((N-ne)*.5)),Y=R,R=+W[U+8+(_<<4)+8>>3],Y=+ze(+((R-Y)*.5)),Y=le*le+Y*(+ot(+ne)*+ot(+N)*Y),F=F+ +rn(+ +we(+Y),+ +we(+(1-Y)))*2;while((_|0)!=(y|0));return W[S>>3]=F,U=0,le=F,le=le*6371.007180918475,W[S>>3]=le,pe=V,U|0}function Qp(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(V=pe,pe=pe+176|0,U=V,_=e4(_,y,U)|0,_|0)return U=_,F=+W[S>>3],F=F*6371.007180918475,F=F*1e3,W[S>>3]=F,pe=V,U|0;if(W[S>>3]=0,_=v[U>>2]|0,(_|0)<=1)return U=0,F=0,F=F*6371.007180918475,F=F*1e3,W[S>>3]=F,pe=V,U|0;y=_+-1|0,_=0,N=+W[U+8>>3],R=+W[U+16>>3],F=0;do _=_+1|0,ne=N,N=+W[U+8+(_<<4)>>3],le=+ze(+((N-ne)*.5)),Y=R,R=+W[U+8+(_<<4)+8>>3],Y=+ze(+((R-Y)*.5)),Y=le*le+Y*(+ot(+ne)*+ot(+N)*Y),F=F+ +rn(+ +we(+Y),+ +we(+(1-Y)))*2;while((_|0)!=(y|0));return W[S>>3]=F,U=0,le=F,le=le*6371.007180918475,le=le*1e3,W[S>>3]=le,pe=V,U|0}function PE(_){_=_|0;var y=0,S=0,N=0;return y=Ec(1,12)|0,y||Ze(27280,27235,49,27293),S=_+4|0,N=v[S>>2]|0,N|0?(N=N+8|0,v[N>>2]=y,v[S>>2]=y,y|0):(v[_>>2]|0&&Ze(27310,27235,61,27333),N=_,v[N>>2]=y,v[S>>2]=y,y|0)}function l4(_,y){_=_|0,y=y|0;var S=0,N=0;return N=Gf(24)|0,N||Ze(27347,27235,78,27361),v[N>>2]=v[y>>2],v[N+4>>2]=v[y+4>>2],v[N+8>>2]=v[y+8>>2],v[N+12>>2]=v[y+12>>2],v[N+16>>2]=0,y=_+4|0,S=v[y>>2]|0,S|0?(v[S+16>>2]=N,v[y>>2]=N,N|0):(v[_>>2]|0&&Ze(27376,27235,82,27361),v[_>>2]=N,v[y>>2]=N,N|0)}function Kp(_){_=_|0;var y=0,S=0,N=0,R=0;if(_)for(N=1;;){if(y=v[_>>2]|0,y|0)do{if(S=v[y>>2]|0,S|0)do R=S,S=v[S+16>>2]|0,pr(R);while((S|0)!=0);R=y,y=v[y+8>>2]|0,pr(R)}while((y|0)!=0);if(y=_,_=v[_+8>>2]|0,N||pr(y),_)N=0;else break}}function mL(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0,Nr=0,Yr=0,Mr=0,Jn=0,xn=0,yr=0,ni=0,Cr=0;if(R=_+8|0,v[R>>2]|0)return Cr=1,Cr|0;if(N=v[_>>2]|0,!N)return Cr=0,Cr|0;y=N,S=0;do S=S+1|0,y=v[y+8>>2]|0;while((y|0)!=0);if(S>>>0<2)return Cr=0,Cr|0;yr=Gf(S<<2)|0,yr||Ze(27396,27235,317,27415),xn=Gf(S<<5)|0,xn||Ze(27437,27235,321,27415),v[_>>2]=0,Yn=_+4|0,v[Yn>>2]=0,v[R>>2]=0,S=0,Jn=0,gn=0,Ee=0;e:for(;;){if(le=v[N>>2]|0,le){F=0,U=le;do{if(Y=+W[U+8>>3],y=U,U=v[U+16>>2]|0,ne=(U|0)==0,R=ne?le:U,V=+W[R+8>>3],+xe(+(Y-V))>3.141592653589793){Cr=14;break}F=F+(V-Y)*(+W[y>>3]+ +W[R>>3])}while(!ne);if((Cr|0)==14){Cr=0,F=0,y=le;do ct=+W[y+8>>3],Mr=y+16|0,Yr=v[Mr>>2]|0,Yr=(Yr|0)==0?le:Yr,bt=+W[Yr+8>>3],F=F+(+W[y>>3]+ +W[Yr>>3])*((bt<0?bt+6.283185307179586:bt)-(ct<0?ct+6.283185307179586:ct)),y=v[((y|0)==0?N:Mr)>>2]|0;while((y|0)!=0)}F>0?(v[yr+(Jn<<2)>>2]=N,Jn=Jn+1|0,R=gn,y=Ee):Cr=19}else Cr=19;if((Cr|0)==19){Cr=0;do if(S){if(y=S+8|0,v[y>>2]|0){Cr=21;break e}if(S=Ec(1,12)|0,!S){Cr=23;break e}v[y>>2]=S,R=S+4|0,U=S,y=Ee}else if(Ee){R=Yn,U=Ee+8|0,y=N,S=_;break}else if(v[_>>2]|0){Cr=27;break e}else{R=Yn,U=_,y=N,S=_;break}while(!1);if(v[U>>2]=N,v[R>>2]=N,U=xn+(gn<<5)|0,ne=v[N>>
41632]|0,ne){for(le=xn+(gn<<5)+8|0,W[le>>3]=17976931348623157e292,Ee=xn+(gn<<5)+24|0,W[Ee>>3]=17976931348623157e292,W[U>>3]=-17976931348623157e292,Be=xn+(gn<<5)+16|0,W[Be>>3]=-17976931348623157e292,Pt=17976931348623157e292,Et=-17976931348623157e292,R=0,Oe=ne,Y=17976931348623157e292,st=17976931348623157e292,At=-17976931348623157e292,V=-17976931348623157e292;F=+W[Oe>>3],ct=+W[Oe+8>>3],Oe=v[Oe+16>>2]|0,Ue=(Oe|0)==0,bt=+W[(Ue?ne:Oe)+8>>3],F<Y&&(W[le>>3]=F,Y=F),ct<st&&(W[Ee>>3]=ct,st=ct),F>At?W[U>>3]=F:F=At,ct>V&&(W[Be>>3]=ct,V=ct),Pt=ct>0&ct<Pt?ct:Pt,Et=ct<0&ct>Et?ct:Et,R=R|+xe(+(ct-bt))>3.141592653589793,!Ue;)At=F;R&&(W[Be>>3]=Et,W[Ee>>3]=Pt)}else v[U>>2]=0,v[U+4>>2]=0,v[U+8>>2]=0,v[U+12>>2]=0,v[U+16>>2]=0,v[U+20>>2]=0,v[U+24>>2]=0,v[U+28>>2]=0;R=gn+1|0}if(Mr=N+8|0,N=v[Mr>>2]|0,v[Mr>>2]=0,N)gn=R,Ee=y;else{Cr=45;break}}if((Cr|0)==21)Ze(27213,27235,35,27247);else if((Cr|0)==23)Ze(27267,27235,37,27247);else if((Cr|0)==27)Ze(27310,27235,61,27333);else if((Cr|0)==45){e:do if((Jn|0)>0){for(Mr=(R|0)==0,Nr=R<<2,Yr=(_|0)==0,Ir=0,y=0;;){if(jn=v[yr+(Ir<<2)>>2]|0,Mr)Cr=73;else{if(gn=Gf(Nr)|0,!gn){Cr=50;break}if(Yn=Gf(Nr)|0,!Yn){Cr=52;break}t:do if(Yr)S=0;else{for(R=0,S=0,U=_;N=xn+(R<<5)|0,Sc(v[U>>2]|0,N,v[jn>>2]|0)|0?(v[gn+(S<<2)>>2]=U,v[Yn+(S<<2)>>2]=N,Ue=S+1|0):Ue=S,U=v[U+8>>2]|0,U;)R=R+1|0,S=Ue;if((Ue|0)>0)if(N=v[gn>>2]|0,(Ue|0)==1)S=N;else for(Be=0,Oe=-1,S=N,Ee=N;;){for(ne=v[Ee>>2]|0,N=0,U=0;R=v[v[gn+(U<<2)>>2]>>2]|0,(R|0)==(ne|0)?le=N:le=N+((Sc(R,v[Yn+(U<<2)>>2]|0,v[ne>>2]|0)|0)&1)|0,U=U+1|0,(U|0)!=(Ue|0);)N=le;if(R=(le|0)>(Oe|0),S=R?Ee:S,N=Be+1|0,(N|0)==(Ue|0))break t;Be=N,Oe=R?le:Oe,Ee=v[gn+(N<<2)>>2]|0}else S=0}while(!1);if(pr(gn),pr(Yn),S){if(R=S+4|0,N=v[R>>2]|0,N)S=N+8|0;else if(v[S>>2]|0){Cr=70;break}v[S>>2]=jn,v[R>>2]=jn}else Cr=73}if((Cr|0)==73){if(Cr=0,y=v[jn>>2]|0,y|0)do Yn=y,y=v[y+16>>2]|0,pr(Yn);while((y|0)!=0);pr(jn),y=1}if(Ir=Ir+1|0,(Ir|0)>=(Jn|0)){ni=y;break e}}(Cr|0)==50?Ze(27452,27235,249,27471):(Cr|0)==52?Ze(27490,27235,252,27471):(Cr|0)==70&&Ze(27310,27235,61,27333)}else ni=0;while(!1);return pr(yr),pr(xn),Cr=ni,Cr|0}return 0}function Sc(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(!(rl(y,S)|0)||(y=B0(y)|0,N=+W[S>>3],R=+W[S+8>>3],R=y&R<0?R+6.283185307179586:R,_=v[_>>2]|0,!_))return _=0,_|0;if(y){y=0,ne=R,S=_;e:for(;;){for(;U=+W[S>>3],R=+W[S+8>>3],S=S+16|0,le=v[S>>2]|0,le=(le|0)==0?_:le,F=+W[le>>3],V=+W[le+8>>3],U>F?(Y=U,U=V):(Y=F,F=U,U=R,R=V),N=N==F|N==Y?N+2220446049250313e-31:N,!!(N<F|N>Y);)if(S=v[S>>2]|0,!S){S=22;break e}if(V=U<0?U+6.283185307179586:U,U=R<0?R+6.283185307179586:R,ne=V==ne|U==ne?ne+-2220446049250313e-31:ne,Y=V+(U-V)*((N-F)/(Y-F)),(Y<0?Y+6.283185307179586:Y)>ne&&(y=y^1),S=v[S>>2]|0,!S){S=22;break}}if((S|0)==22)return y|0}else{y=0,ne=R,S=_;e:for(;;){for(;U=+W[S>>3],R=+W[S+8>>3],S=S+16|0,le=v[S>>2]|0,le=(le|0)==0?_:le,F=+W[le>>3],V=+W[le+8>>3],U>F?(Y=U,U=V):(Y=F,F=U,U=R,R=V),N=N==F|N==Y?N+2220446049250313e-31:N,!!(N<F|N>Y);)if(S=v[S>>2]|0,!S){S=22;break e}if(ne=U==ne|R==ne?ne+-2220446049250313e-31:ne,U+(R-U)*((N-F)/(Y-F))>ne&&(y=y^1),S=v[S>>2]|0,!S){S=22;break}}if((S|0)==22)return y|0}return 0}function j0(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0;if(Et=pe,pe=pe+32|0,Pt=Et+16|0,At=Et,F=on(_|0,y|0,52)|0,ue()|0,F=F&15,Oe=on(S|0,N|0,52)|0,ue()|0,(F|0)!=(Oe&15|0))return Pt=12,pe=Et,Pt|0;if(ne=on(_|0,y|0,45)|0,ue()|0,ne=ne&127,le=on(S|0,N|0,45)|0,ue()|0,le=le&127,ne>>>0>121|le>>>0>121)return Pt=5,pe=Et,Pt|0;if(Oe=(ne|0)!=(le|0),Oe){if(V=Of(ne,le)|0,(V|0)==7)return Pt=1,pe=Et,Pt|0;Y=Of(le,ne)|0,(Y|0)==7?Ze(27514,27538,161,27548):(Ue=V,U=Y)}else Ue=0,U=0;Ee=si(ne)|0,Be=si(le)|0,v[Pt>>2]=0,v[Pt+4>>2]=0,v[Pt+8>>2]=0,v[Pt+12>>2]=0;do if(Ue){if(le=v[4272+(ne*28|0)+(Ue<<2)>>2]|0,V=(le|0)>0,Be)if(V){ne=0,Y=S,V=N;do Y=uL(Y,V)|0,V=ue()|0,U=zd(U)|0,(U|0)==1&&(U=zd(1)|0),ne=ne+1|0;while((ne|0)!=(le|0));le=U,ne=Y,Y=V}else le=U,ne=S,Y=N;else if(V){ne=0,Y=S,V=N;do Y=B6(Y,V)|0,V=ue()|0,U=zd(U)|0,ne=ne+1|0;while((ne|0)!=(le|0));le=U,ne=Y,Y=V}else le=U,ne=S,Y=N;if(a4(ne,Y,Pt)|0,Oe||Ze(27563,27538,191,27548),V=(Ee|0)!=0,U=(Be|0)!=0,V&U&&Ze(27590,27538,192,27548),V){if(U=bc(_,y)|0,(U|0)==7){F=5;break}if(xt[22e3+(U*7|0)+Ue>>0]|0){F=1;break}Y=v[21168+(U*28|0)+(Ue<<2)>>2]|0,ne=Y}else if(U){if(U=bc(ne,Y)|0,(U|0)==7){F=5;break}if(xt[22e3+(U*7|0)+le>>0]|0){F=1;break}ne=0,Y=v[21168+(le*28|0)+(U<<2)>>2]|0}else ne=0,Y=0;
4163if((ne|Y|0)<0)F=5;else{if((Y|0)>0){V=Pt+4|0,U=0;do Jy(V),U=U+1|0;while((U|0)!=(Y|0))}if(v[At>>2]=0,v[At+4>>2]=0,v[At+8>>2]=0,mE(At,Ue),F|0)for(;Dl(F)|0?ha(At):vo(At),(F|0)>1;)F=F+-1|0;if((ne|0)>0){F=0;do Jy(At),F=F+1|0;while((F|0)!=(ne|0))}st=Pt+4|0,Cs(st,At,st),Na(st),st=51}}else if(a4(S,N,Pt)|0,(Ee|0)!=0&(Be|0)!=0)if((le|0)!=(ne|0)&&Ze(27621,27538,261,27548),U=bc(_,y)|0,F=bc(S,N)|0,(U|0)==7|(F|0)==7)F=5;else if(xt[22e3+(U*7|0)+F>>0]|0)F=1;else if(U=v[21168+(U*28|0)+(F<<2)>>2]|0,(U|0)>0){V=Pt+4|0,F=0;do Jy(V),F=F+1|0;while((F|0)!=(U|0));st=51}else st=51;else st=51;while(!1);return(st|0)==51&&(F=Pt+4|0,v[R>>2]=v[F>>2],v[R+4>>2]=v[F+4>>2],v[R+8>>2]=v[F+8>>2],F=0),Pt=F,pe=Et,Pt|0}function Uf(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0;if(st=pe,pe=pe+48|0,ne=st+36|0,U=st+24|0,V=st+12|0,Y=st,R=on(_|0,y|0,52)|0,ue()|0,R=R&15,Be=on(_|0,y|0,45)|0,ue()|0,Be=Be&127,Be>>>0>121)return N=5,pe=st,N|0;if(le=si(Be)|0,mn(R|0,0,52)|0,At=ue()|0|134225919,F=N,v[F>>2]=-1,v[F+4>>2]=At,!R)return R=mr(S)|0,(R|0)==7||(R=Vd(Be,R)|0,(R|0)==127)?(At=1,pe=st,At|0):(Oe=mn(R|0,0,45)|0,Ue=ue()|0,Be=N,Ue=v[Be+4>>2]&-1040385|Ue,At=N,v[At>>2]=v[Be>>2]|Oe,v[At+4>>2]=Ue,At=0,pe=st,At|0);for(v[ne>>2]=v[S>>2],v[ne+4>>2]=v[S+4>>2],v[ne+8>>2]=v[S+8>>2],S=R;;){if(F=S,S=S+-1|0,v[U>>2]=v[ne>>2],v[U+4>>2]=v[ne+4>>2],v[U+8>>2]=v[ne+8>>2],Dl(F)|0){if(R=$r(ne)|0,R|0){S=13;break}v[V>>2]=v[ne>>2],v[V+4>>2]=v[ne+4>>2],v[V+8>>2]=v[ne+8>>2],ha(V)}else{if(R=Vi(ne)|0,R|0){S=13;break}v[V>>2]=v[ne>>2],v[V+4>>2]=v[ne+4>>2],v[V+8>>2]=v[ne+8>>2],vo(V)}if(An(U,V,Y),Na(Y),R=N,Et=v[R>>2]|0,R=v[R+4>>2]|0,bt=(15-F|0)*3|0,Pt=mn(7,0,bt|0)|0,R=R&~(ue()|0),bt=mn(mr(Y)|0,0,bt|0)|0,R=ue()|0|R,At=N,v[At>>2]=bt|Et&~Pt,v[At+4>>2]=R,(F|0)<=1){S=14;break}}e:do if((S|0)!=13&&(S|0)==14)if((v[ne>>2]|0)<=1&&(v[ne+4>>2]|0)<=1&&(v[ne+8>>2]|0)<=1){S=mr(ne)|0,R=Vd(Be,S)|0,(R|0)==127?Y=0:Y=si(R)|0;t:do if(S){if(le){if(R=bc(_,y)|0,(R|0)==7){R=5;break e}if(F=v[21376+(R*28|0)+(S<<2)>>2]|0,(F|0)>0){R=S,S=0;do R=Vp(R)|0,S=S+1|0;while((S|0)!=(F|0))}else R=S;if((R|0)==1){R=9;break e}S=Vd(Be,R)|0,(S|0)==127&&Ze(27648,27538,411,27678),si(S)|0?Ze(27693,27538,412,27678):(Ue=S,Oe=F,Ee=R)}else Ue=R,Oe=0,Ee=S;if(V=v[4272+(Be*28|0)+(Ee<<2)>>2]|0,(V|0)<=-1&&Ze(27724,27538,419,27678),!Y){if((Oe|0)<0){R=5;break e}if(Oe|0){F=N,R=0,S=v[F>>2]|0,F=v[F+4>>2]|0;do S=$p(S,F)|0,F=ue()|0,bt=N,v[bt>>2]=S,v[bt+4>>2]=F,R=R+1|0;while((R|0)<(Oe|0))}if((V|0)<=0){R=Ue,S=58;break}for(F=N,R=0,S=v[F>>2]|0,F=v[F+4>>2]|0;;)if(S=$p(S,F)|0,F=ue()|0,bt=N,v[bt>>2]=S,v[bt+4>>2]=F,R=R+1|0,(R|0)==(V|0)){R=Ue,S=58;break t}}if(U=Of(Ue,Be)|0,(U|0)==7&&Ze(27514,27538,428,27678),R=N,S=v[R>>2]|0,R=v[R+4>>2]|0,(V|0)>0){F=0;do S=$p(S,R)|0,R=ue()|0,bt=N,v[bt>>2]=S,v[bt+4>>2]=R,F=F+1|0;while((F|0)!=(V|0))}if(R=bc(S,R)|0,(R|0)==7&&Ze(27795,27538,440,27678),S=vc(Ue)|0,S=v[(S?21792:21584)+(U*28|0)+(R<<2)>>2]|0,(S|0)<0&&Ze(27795,27538,454,27678),!S)R=Ue,S=58;else{U=N,R=0,F=v[U>>2]|0,U=v[U+4>>2]|0;do F=I6(F,U)|0,U=ue()|0,bt=N,v[bt>>2]=F,v[bt+4>>2]=U,R=R+1|0;while((R|0)<(S|0));R=Ue,S=58}}else if((le|0)!=0&(Y|0)!=0){if(S=bc(_,y)|0,F=N,F=bc(v[F>>2]|0,v[F+4>>2]|0)|0,(S|0)==7|(F|0)==7){R=5;break e}if(F=v[21376+(S*28|0)+(F<<2)>>2]|0,(F|0)<0){R=5;break e}if(!F)S=59;else{V=N,S=0,U=v[V>>2]|0,V=v[V+4>>2]|0;do U=$p(U,V)|0,V=ue()|0,bt=N,v[bt>>2]=U,v[bt+4>>2]=V,S=S+1|0;while((S|0)<(F|0));S=58}}else S=58;while(!1);if((S|0)==58&&Y&&(S=59),(S|0)==59&&(bt=N,(bc(v[bt>>2]|0,v[bt+4>>2]|0)|0)==1)){R=9;break}bt=N,Pt=v[bt>>2]|0,bt=v[bt+4>>2]&-1040385,Et=mn(R|0,0,45)|0,bt=bt|(ue()|0),R=N,v[R>>2]=Pt|Et,v[R+4>>2]=bt,R=0}else R=1;while(!1);return bt=R,pe=st,bt|0}function kE(_,y,S,N,R,F){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0;var U=0,V=0;return V=pe,pe=pe+16|0,U=V,R?_=15:(_=j0(_,y,S,N,U)|0,_||(Kk(U,F),_=0)),pe=V,_|0}function c4(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0;return U=pe,pe=pe+16|0,F=U,N?S=15:(S=D6(S,F)|0,S||(S=Uf(_,y,F,R)|0)),pe=U,S|0}function Jp(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0;return Y=pe,pe=pe+32|0,U=Y+12|0,V=Y,F=j0(_,y,_,y,U)|0,F|0?(V=F,pe=Y,V|0):(_=j0(_,y,S,N,V)|0,_|0?(V=_,pe=Y,V|0):(U=R6(U,V)|0,V=R,v[V>>2]=U,v[V+4>>2]=((U|0)<0)<<31>>31,V=0,pe=Y,V|0))}function $6(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0;return Y=pe,pe=pe+32|0,U=Y+12|0,V=Y,F=j0(_,y,_,y,U)|0,!F&&(F=j0(_,y,S,N,V)|0,!F)?(N=R6(U,V)|0,N=On(N|0,((N|0)<0)<<31>>31|0,1,0)|0,U=ue()|0,V=R,v[V>>2]=N,v[V+4>>2]=U,V=0,pe=Y,V|0):(V=F,pe=Y,V|0)}function LE(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;
4163var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0;if(jn=pe,pe=pe+48|0,gn=jn+24|0,U=jn+12|0,Yn=jn,F=j0(_,y,_,y,gn)|0,!F&&(F=j0(_,y,S,N,U)|0,!F)){bt=R6(gn,U)|0,ct=((bt|0)<0)<<31>>31,v[gn>>2]=0,v[gn+4>>2]=0,v[gn+8>>2]=0,v[U>>2]=0,v[U+4>>2]=0,v[U+8>>2]=0,j0(_,y,_,y,gn)|0&&Ze(27795,27538,692,27747),j0(_,y,S,N,U)|0&&Ze(27795,27538,697,27747),vE(gn),vE(U),le=(bt|0)==0?0:1/+(bt|0),S=v[gn>>2]|0,st=le*+((v[U>>2]|0)-S|0),At=gn+4|0,N=v[At>>2]|0,Pt=le*+((v[U+4>>2]|0)-N|0),Et=gn+8|0,F=v[Et>>2]|0,le=le*+((v[U+8>>2]|0)-F|0),v[Yn>>2]=S,Ee=Yn+4|0,v[Ee>>2]=N,Be=Yn+8|0,v[Be>>2]=F;e:do if((bt|0)<0)F=0;else for(Oe=0,Ue=0;;){Y=+(Ue>>>0)+4294967296*+(Oe|0),Ir=st*Y+ +(S|0),V=Pt*Y+ +(N|0),Y=le*Y+ +(F|0),S=~~+Qd(+Ir),U=~~+Qd(+V),F=~~+Qd(+Y),Ir=+xe(+(+(S|0)-Ir)),V=+xe(+(+(U|0)-V)),Y=+xe(+(+(F|0)-Y));do if(Ir>V&Ir>Y)S=0-(U+F)|0,N=U;else if(ne=0-S|0,V>Y){N=ne-F|0;break}else{N=U,F=ne-U|0;break}while(!1);if(v[Yn>>2]=S,v[Ee>>2]=N,v[Be>>2]=F,Jk(Yn),F=Uf(_,y,Yn,R+(Ue<<3)|0)|0,F|0)break e;if(!((Oe|0)<(ct|0)|(Oe|0)==(ct|0)&Ue>>>0<bt>>>0)){F=0;break e}S=On(Ue|0,Oe|0,1,0)|0,N=ue()|0,Oe=N,Ue=S,S=v[gn>>2]|0,N=v[At>>2]|0,F=v[Et>>2]|0}while(!1);return Yn=F,pe=jn,Yn|0}return Yn=F,pe=jn,Yn|0}function Vf(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0;if((S|0)==0&(N|0)==0)return R=0,F=1,He(R|0),F|0;F=_,R=y,_=1,y=0;do U=(S&1|0)==0&!0,_=fs((U?1:F)|0,(U?0:R)|0,_|0,y|0)|0,y=ue()|0,S=FE(S|0,N|0,1)|0,N=ue()|0,F=fs(F|0,R|0,F|0,R|0)|0,R=ue()|0;while(!((S|0)==0&(N|0)==0));return He(y|0),_|0}function u4(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;V=pe,pe=pe+16|0,F=V,U=on(_|0,y|0,52)|0,ue()|0,U=U&15;do if(U){if(R=n1(_,y,F)|0,!R){ne=+W[F>>3],Y=1/+ot(+ne),le=+W[25968+(U<<3)>>3],W[S>>3]=ne+le,W[S+8>>3]=ne-le,ne=+W[F+8>>3],Y=le*Y,W[S+16>>3]=Y+ne,W[S+24>>3]=ne-Y;break}return U=R,pe=V,U|0}else{if(R=on(_|0,y|0,45)|0,ue()|0,R=R&127,R>>>0>121)return U=5,pe=V,U|0;F=22064+(R<<5)|0,v[S>>2]=v[F>>2],v[S+4>>2]=v[F+4>>2],v[S+8>>2]=v[F+8>>2],v[S+12>>2]=v[F+12>>2],v[S+16>>2]=v[F+16>>2],v[S+20>>2]=v[F+20>>2],v[S+24>>2]=v[F+24>>2],v[S+28>>2]=v[F+28>>2];break}while(!1);return xo(S,N?1.4:1.1),N=26096+(U<<3)|0,(v[N>>
41632]|0)==(_|0)&&(v[N+4>>2]|0)==(y|0)&&(W[S>>3]=1.5707963267948966),U=26224+(U<<3)|0,(v[U>>2]|0)==(_|0)&&(v[U+4>>2]|0)==(y|0)&&(W[S+8>>3]=-1.5707963267948966),+W[S>>3]!=1.5707963267948966&&+W[S+8>>3]!=-1.5707963267948966?(U=0,pe=V,U|0):(W[S+16>>3]=3.141592653589793,W[S+24>>3]=-3.141592653589793,U=0,pe=V,U|0)}function Xu(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;ne=pe,pe=pe+48|0,U=ne+32|0,F=ne+40|0,V=ne,Gp(U,0,0,0),Y=v[U>>2]|0,U=v[U+4>>2]|0;do if(S>>>0<=15){if(R=Qu(N)|0,R|0){N=V,v[N>>2]=0,v[N+4>>2]=0,v[V+8>>2]=R,v[V+12>>2]=-1,N=V+16|0,Y=V+29|0,v[N>>2]=0,v[N+4>>2]=0,v[N+8>>2]=0,xt[N+12>>0]=0,xt[Y>>0]=xt[F>>0]|0,xt[Y+1>>0]=xt[F+1>>0]|0,xt[Y+2>>0]=xt[F+2>>0]|0;break}if(R=Ec((v[y+8>>2]|0)+1|0,32)|0,R){Ku(y,R),le=V,v[le>>2]=Y,v[le+4>>2]=U,v[V+8>>2]=0,v[V+12>>2]=S,v[V+16>>2]=N,v[V+20>>2]=y,v[V+24>>2]=R,xt[V+28>>0]=0,Y=V+29|0,xt[Y>>0]=xt[F>>0]|0,xt[Y+1>>0]=xt[F+1>>0]|0,xt[Y+2>>0]=xt[F+2>>0]|0;break}else{N=V,v[N>>2]=0,v[N+4>>2]=0,v[V+8>>2]=13,v[V+12>>2]=-1,N=V+16|0,Y=V+29|0,v[N>>2]=0,v[N+4>>2]=0,v[N+8>>2]=0,xt[N+12>>0]=0,xt[Y>>0]=xt[F>>0]|0,xt[Y+1>>0]=xt[F+1>>0]|0,xt[Y+2>>0]=xt[F+2>>0]|0;break}}else Y=V,v[Y>>2]=0,v[Y+4>>2]=0,v[V+8>>2]=4,v[V+12>>2]=-1,Y=V+16|0,le=V+29|0,v[Y>>2]=0,v[Y+4>>2]=0,v[Y+8>>2]=0,xt[Y+12>>0]=0,xt[le>>0]=xt[F>>0]|0,xt[le+1>>0]=xt[F+1>>0]|0,xt[le+2>>0]=xt[F+2>>0]|0;while(!1);qd(V),v[_>>2]=v[V>>2],v[_+4>>2]=v[V+4>>2],v[_+8>>2]=v[V+8>>2],v[_+12>>2]=v[V+12>>2],v[_+16>>2]=v[V+16>>2],v[_+20>>2]=v[V+20>>2],v[_+24>>2]=v[V+24>>2],v[_+28>>2]=v[V+28>>2],pe=ne}function qd(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0;if(ct=pe,pe=pe+336|0,Oe=ct+168|0,Ue=ct,N=_,S=v[N>>2]|0,N=v[N+4>>2]|0,(S|0)==0&(N|0)==0){pe=ct;return}if(y=_+28|0,xt[y>>0]|0?(S=em(S,N)|0,N=ue()|0):xt[y>>0]=1,bt=_+20|0,!(v[v[bt>>2]>>2]|0)){y=_+24|0,S=v[y>>2]|0,S|0&&pr(S),Et=_,v[Et>>2]=0,v[Et+4>>2]=0,v[_+8>>2]=0,v[bt>>2]=0,v[_+12>>2]=-1,v[_+16>>2]=0,v[y>>2]=0,pe=ct;return}Et=_+16|0,y=v[Et>>2]|0,R=y&15;e:do if((S|0)==0&(N|0)==0)Pt=_+24|0;else{st=_+12|0,Ee=(R|0)==3,le=y&255,Y=(R|1|0)==3,Be=_+24|0,ne=(R+-1|0)>>>0<3,U=(R|2|0)==3,V=Ue+8|0;t:for(;;){if(F=on(S|0,N|0,52)|0,ue()|0,F=F&15,(F|0)==(v[st>>2]|0)){switch(le&15){case 0:case 2:case 3:{if(R=n1(S,N,Oe)|0,R|0){At=15;break t}if(Ju(v[bt>>2]|0,v[Be>>2]|0,Oe)|0){At=19;break t}break}}if(Y&&(R=v[(v[bt>>2]|0)+4>>2]|0,v[Oe>>2]=v[R>>2],v[Oe+4>>2]=v[R+4>>2],v[Oe+8>>2]=v[R+8>>2],v[Oe+12>>2]=v[R+12>>2],rl(26832,Oe)|0)){if(i4(v[(v[bt>>2]|0)+4>>2]|0,F,Ue)|0){At=25;break}if(R=Ue,(v[R>>2]|0)==(S|0)&&(v[R+4>>2]|0)==(N|0)){At=29;break}}if(ne){if(R=r1(S,N,Oe)|0,R|0){At=32;break}if(u4(S,N,Ue,0)|0){At=36;break}if(U&&jf(v[bt>>2]|0,v[Be>>2]|0,Oe,Ue)|0){At=42;break}if(Y&&d4(v[bt>>2]|0,v[Be>>2]|0,Oe,Ue)|0){At=42;break}}if(Ee){if(y=u4(S,N,Oe,1)|0,R=v[Be>>2]|0,y|0){At=45;break}if(qu(R,Oe)|0){if(Wu(Ue,Oe),Bf(Oe,v[Be>>2]|0)|0){At=53;break}if(Ju(v[bt>>2]|0,v[Be>>2]|0,V)|0){At=53;break}if(d4(v[bt>>2]|0,v[Be>>2]|0,Ue,Oe)|0){At=53;break}}}}do if((F|0)<(v[st>>2]|0)){if(y=u4(S,N,Oe,1)|0,R=v[Be>>2]|0,y|0){At=58;break t}if(!(qu(R,Oe)|0)){At=73;break}if(Bf(v[Be>>2]|0,Oe)|0&&(Wu(Ue,Oe),jf(v[bt>>2]|0,v[Be>>2]|0,Ue,Oe)|0)){At=65;break t}if(S=r4(S,N,F+1|0,Ue)|0,S|0){At=67;break t}N=Ue,S=v[N>>2]|0,N=v[N+4>>2]|0}else At=73;while(!1);if((At|0)==73&&(At=0,S=em(S,N)|0,N=ue()|0),(S|0)==0&(N|0)==0){Pt=Be;break e}}switch(At|0){case 15:{y=v[Be>>2]|0,y|0&&pr(y),At=_,v[At>>2]=0,v[At+4>>2]=0,v[bt>>2]=0,v[st>>2]=-1,v[Et>>2]=0,v[Be>>2]=0,v[_+8>>2]=R,At=20;break}case 19:{v[_>>2]=S,v[_+4>>2]=N,At=20;break}case 25:{Ze(27795,27761,470,27772);break}case 29:{v[_>>2]=S,v[_+4>>2]=N,pe=ct;return}case 32:{y=v[Be>>2]|0,y|0&&pr(y),Pt=_,v[Pt>>2]=0,v[Pt+4>>2]=0,v[bt>>2]=0,v[st>>2]=-1,v[Et>>2]=0,v[Be>>2]=0,v[_+8>>2]=R,pe=ct;return}case 36:{Ze(27795,27761,493,27772);break}case 42:{v[_>>2]=S,v[_+4>>2]=N,pe=ct;return}case 45:{R|0&&pr(R),At=_,v[At>>2]=0,v[At+4>>2]=0,v[bt>>2]=0,v[st>>2]=-1,v[Et>>2]=0,v[Be>>2]=0,v[_+8>>2]=y,At=55;break}case 53:{v[_>>2]=S,v[_+4>>2]=N,At=55;break}case 58:{R|0&&pr(R),At=_,v[At>>2]=0,v[At+4>>2]=0,v[bt>>2]=0,v[st>>2]=-1,v[Et>>2]=0,v[Be>>2]=0,v[_+8>>2]=y,At=71;break}case 65:{v[_>>2]=S,v[_+4>>2]=N,At=71;break}case 67:{y=v[Be>>2]|0,y|0&&pr(y),Pt=_,v[Pt>>2]=0,v[Pt+4>>2]=0,v[bt>>2]=0,v[st>>2]=-1,v[Et>>2]=0,v[Be>>2]=0,v[_+8>>2]=S,pe=ct;return}}if((At|0)==20){pe=ct;return}else if((At|0)==55){pe=ct;return}else if((At|0)==71){pe=ct;return}}while(!1);y=v[Pt>>2]|0,y|0&&pr(y),At=_,v[At>>2]=0,v[At+4>>2]=0,v[_+8>>2]=0,v[bt>>2]=0,v[_+12>>2]=-1,v[Et>>2]=0,v[Pt>>2]=0,pe=ct}function em(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0;Ee=pe,pe=pe+16|0,le=Ee,N=on(_|0,y|0,52)|0,ue()|0,N=N&15,S=on(_|0,y|0,45)|0,ue()|0;do if(N){for(;
4163S=mn(N+4095|0,0,52)|0,R=ue()|0|y&-15728641,F=(15-N|0)*3|0,U=mn(7,0,F|0)|0,V=ue()|0,S=S|_|U,R=R|V,Y=on(_|0,y|0,F|0)|0,ue()|0,Y=Y&7,N=N+-1|0,!(Y>>>0<6);)if(N)y=R,_=S;else{ne=4;break}if((ne|0)==4){S=on(S|0,R|0,45)|0,ue()|0;break}return le=(Y|0)==0&(Yi(S,R)|0)!=0,le=mn((le?2:1)+Y|0,0,F|0)|0,ne=ue()|0|y&~V,le=le|_&~U,He(ne|0),pe=Ee,le|0}while(!1);return S=S&127,S>>>0>120?(ne=0,le=0,He(ne|0),pe=Ee,le|0):(Gp(le,0,S+1|0,0),ne=v[le+4>>2]|0,le=v[le>>2]|0,He(ne|0),pe=Ee,le|0)}function f4(_,y,S,N,R,F){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0,F=F|0;var U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0;At=pe,pe=pe+160|0,Ee=At+80|0,V=At+64|0,Be=At+112|0,st=At,Xu(Ee,_,y,S),ne=Ee,$d(V,v[ne>>2]|0,v[ne+4>>2]|0,y),ne=V,Y=v[ne>>2]|0,ne=v[ne+4>>2]|0,U=v[Ee+8>>2]|0,Oe=Be+4|0,v[Oe>>2]=v[Ee>>2],v[Oe+4>>2]=v[Ee+4>>2],v[Oe+8>>2]=v[Ee+8>>2],v[Oe+12>>2]=v[Ee+12>>2],v[Oe+16>>2]=v[Ee+16>>2],v[Oe+20>>2]=v[Ee+20>>2],v[Oe+24>>2]=v[Ee+24>>2],v[Oe+28>>2]=v[Ee+28>>2],Oe=st,v[Oe>>2]=Y,v[Oe+4>>2]=ne,Oe=st+8|0,v[Oe>>2]=U,_=st+12|0,y=Be,S=_+36|0;do v[_>>2]=v[y>>2],_=_+4|0,y=y+4|0;while((_|0)<(S|0));if(Be=st+48|0,v[Be>>2]=v[V>>2],v[Be+4>>2]=v[V+4>>2],v[Be+8>>2]=v[V+8>>2],v[Be+12>>2]=v[V+12>>2],(Y|0)==0&(ne|0)==0)return st=U,pe=At,st|0;S=st+16|0,le=st+24|0,Ee=st+28|0,U=0,V=0,y=Y,_=ne;do{if(!((U|0)<(R|0)|(U|0)==(R|0)&V>>>0<N>>>0)){Ue=4;break}if(ne=V,V=On(V|0,U|0,1,0)|0,U=ue()|0,ne=F+(ne<<3)|0,v[ne>>2]=y,v[ne+4>>2]=_,yx(Be),_=Be,y=v[_>>2]|0,_=v[_+4>>2]|0,(y|0)==0&(_|0)==0){if(qd(S),y=S,_=v[y>>2]|0,y=v[y+4>>2]|0,(_|0)==0&(y|0)==0){Ue=10;break}Yp(_,y,v[Ee>>2]|0,Be),_=Be,y=v[_>>2]|0,_=v[_+4>>2]|0}ne=st,v[ne>>2]=y,v[ne+4>>2]=_}while(!((y|0)==0&(_|0)==0));return(Ue|0)==4?(_=st+40|0,y=v[_>>2]|0,y|0&&pr(y),Ue=st+16|0,v[Ue>>2]=0,v[Ue+4>>2]=0,v[le>>2]=0,v[st+36>>2]=0,v[Ee>>2]=-1,v[st+32>>2]=0,v[_>>2]=0,Yp(0,0,0,Be),v[st>>2]=0,v[st+4>>2]=0,v[Oe>>2]=0,st=14,pe=At,st|0):((Ue|0)==10&&(v[st>>2]=0,v[st+4>>2]=0,v[Oe>>2]=v[le>>2]),st=v[Oe>>2]|0,pe=At,st|0)}function _x(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0;if(Ee=pe,pe=pe+48|0,Y=Ee+32|0,V=Ee+40|0,ne=Ee,!(v[_>>2]|0))return le=N,v[le>>2]=0,v[le+4>>2]=0,le=0,pe=Ee,le|0;Gp(Y,0,0,0),U=Y,R=v[U>>2]|0,U=v[U+4>>2]|0;do if(y>>>0>15)le=ne,v[le>>2]=0,v[le+4>>2]=0,v[ne+8>>2]=4,v[ne+12>>2]=-1,le=ne+16|0,S=ne+29|0,v[le>>2]=0,v[le+4>>2]=0,v[le+8>>2]=0,xt[le+12>>0]=0,xt[S>>0]=xt[V>>0]|0,xt[S+1>>0]=xt[V+1>>0]|0,xt[S+2>>0]=xt[V+2>>0]|0,S=4,le=9;else{if(S=Qu(S)|0,S|0){Y=ne,v[Y>>2]=0,v[Y+4>>2]=0,v[ne+8>>2]=S,v[ne+12>>2]=-1,Y=ne+16|0,le=ne+29|0,v[Y>>2]=0,v[Y+4>>2]=0,v[Y+8>>2]=0,xt[Y+12>>0]=0,xt[le>>0]=xt[V>>0]|0,xt[le+1>>0]=xt[V+1>>0]|0,xt[le+2>>0]=xt[V+2>>0]|0,le=9;break}if(S=Ec((v[_+8>>2]|0)+1|0,32)|0,!S){le=ne,v[le>>2]=0,v[le+4>>2]=0,v[ne+8>>2]=13,v[ne+12>>2]=-1,le=ne+16|0,S=ne+29|0,v[le>>2]=0,v[le+4>>2]=0,v[le+8>>2]=0,xt[le+12>>0]=0,xt[S>>0]=xt[V>>0]|0,xt[S+1>>0]=xt[V+1>>0]|0,xt[S+2>>0]=xt[V+2>>0]|0,S=13,le=9;break}Ku(_,S),Oe=ne,v[Oe>>2]=R,v[Oe+4>>2]=U,U=ne+8|0,v[U>>2]=0,v[ne+12>>2]=y,v[ne+20>>2]=_,v[ne+24>>2]=S,xt[ne+28>>0]=0,R=ne+29|0,xt[R>>0]=xt[V>>0]|0,xt[R+1>>0]=xt[V+1>>0]|0,xt[R+2>>0]=xt[V+2>>0]|0,v[ne+16>>2]=3,Be=+If(S),Be=Be*+Rl(S),F=+xe(+ +W[S>>3]),F=Be/+ot(+ +Tx(+F,+ +xe(+ +W[S+8>>3])))*6371.007180918475*6371.007180918475,R=ne+12|0,S=v[R>>2]|0;e:do if((S|0)>0)do{if(j6(S+-1|0,Y)|0,!(F/+W[Y>>3]>10))break e;Oe=v[R>>2]|0,S=Oe+-1|0,v[R>>2]=S}while((Oe|0)>1);while(!1);if(qd(ne),R=N,v[R>>2]=0,v[R+4>>2]=0,R=ne,S=v[R>>2]|0,R=v[R+4>>2]|0,!((S|0)==0&(R|0)==0))do vx(S,R,y,Y)|0,V=Y,_=N,V=On(v[_>>2]|0,v[_+4>>2]|0,v[V>>2]|0,v[V+4>>2]|0)|0,_=ue()|0,Oe=N,v[Oe>>2]=V,v[Oe+4>>2]=_,qd(ne),Oe=ne,S=v[Oe>>2]|0,R=v[Oe+4>>2]|0;while(!((S|0)==0&(R|0)==0));S=v[U>>2]|0}while(!1);return Oe=S,pe=Ee,Oe|0}function Pl(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;if(!(rl(y,S)|0)||(y=B0(y)|0,N=+W[S>>3],R=+W[S+8>>3],R=y&R<0?R+6.283185307179586:R,Be=v[_>>2]|0,(Be|0)<=0))return Be=0,Be|0;if(Ee=v[_+4>>2]|0,y){y=0,le=R,S=-1,_=0;e:for(;;){for(ne=_;U=+W[Ee+(ne<<4)>>3],R=+W[Ee+(ne<<4)+8>>3],_=(S+2|0)%(Be|0)|0,F=+W[Ee+(_<<4)>>3],V=+W[Ee+(_<<4)+8>>3],U>F?(Y=U,U=V):(Y=F,F=U,U=R,R=V),N=N==F|N==Y?N+2220446049250313e-31:N,!!(N<F|N>Y);)if(S=ne+1|0,(S|0)>=(Be|0)){S=22;break e}else _=ne,ne=S,S=_;if(V=U<0?U+6.283185307179586:U,U=R<0?R+6.283185307179586:R,le=V==le|U==le?le+-2220446049250313e-31:le,Y=V+(U-V)*((N-F)/(Y-F)),(Y<0?Y+6.283185307179586:Y)>le&&(y=y^1),_=ne+1|0,(_|0)>=(Be|0)){S=22;break}else S=ne}if((S|0)==22)return y|0}else{y=0,le=R,S=-1,_=0;e:for(;;){for(ne=_;U=+W[Ee+(ne<<4)>>3],R=+W[Ee+(ne<<4)+8>>3],_=(S+2|0)%(Be|0)|0,F=+W[Ee+(_<<4)>>3],V=+W[Ee+(_<<4)+8>>3],U>F?(Y=U,U=V):(Y=F,F=U,U=R,R=V),N=N==F|N==Y?N+2220446049250313e-31:N,
4163!!(N<F|N>Y);)if(S=ne+1|0,(S|0)>=(Be|0)){S=22;break e}else _=ne,ne=S,S=_;if(le=U==le|R==le?le+-2220446049250313e-31:le,U+(R-U)*((N-F)/(Y-F))>le&&(y=y^1),_=ne+1|0,(_|0)>=(Be|0)){S=22;break}else S=ne}if((S|0)==22)return y|0}return 0}function uu(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0;if(Ue=v[_>>2]|0,!Ue){v[y>>2]=0,v[y+4>>2]=0,v[y+8>>2]=0,v[y+12>>2]=0,v[y+16>>2]=0,v[y+20>>2]=0,v[y+24>>2]=0,v[y+28>>2]=0;return}if(st=y+8|0,W[st>>3]=17976931348623157e292,At=y+24|0,W[At>>3]=17976931348623157e292,W[y>>3]=-17976931348623157e292,Pt=y+16|0,W[Pt>>3]=-17976931348623157e292,!((Ue|0)<=0)){for(Be=v[_+4>>2]|0,ne=17976931348623157e292,le=-17976931348623157e292,Ee=0,_=-1,F=17976931348623157e292,U=17976931348623157e292,Y=-17976931348623157e292,N=-17976931348623157e292,Oe=0;S=+W[Be+(Oe<<4)>>3],V=+W[Be+(Oe<<4)+8>>3],_=_+2|0,R=+W[Be+(((_|0)==(Ue|0)?0:_)<<4)+8>>3],S<F&&(W[st>>3]=S,F=S),V<U&&(W[At>>3]=V,U=V),S>Y?W[y>>3]=S:S=Y,V>N&&(W[Pt>>3]=V,N=V),ne=V>0&V<ne?V:ne,le=V<0&V>le?V:le,Ee=Ee|+xe(+(V-R))>3.141592653589793,_=Oe+1|0,(_|0)!=(Ue|0);)Et=Oe,Y=S,Oe=_,_=Et;Ee&&(W[Pt>>3]=le,W[At>>3]=ne)}}function Qu(_){return _=_|0,(_>>>0<4?0:15)|0}function Ku(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0;if(Ue=v[_>>2]|0,Ue){if(st=y+8|0,W[st>>3]=17976931348623157e292,At=y+24|0,W[At>>3]=17976931348623157e292,W[y>>3]=-17976931348623157e292,Pt=y+16|0,W[Pt>>3]=-17976931348623157e292,(Ue|0)>0){for(R=v[_+4>>2]|0,Be=17976931348623157e292,Oe=-17976931348623157e292,N=0,S=-1,Y=17976931348623157e292,ne=17976931348623157e292,Ee=-17976931348623157e292,U=-17976931348623157e292,Et=0;F=+W[R+(Et<<4)>>3],le=+W[R+(Et<<4)+8>>3],Yn=S+2|0,V=+W[R+(((Yn|0)==(Ue|0)?0:Yn)<<4)+8>>3],F<Y&&(W[st>>3]=F,Y=F),le<ne&&(W[At>>3]=le,ne=le),F>Ee?W[y>>3]=F:F=Ee,le>U&&(W[Pt>>3]=le,U=le),Be=le>0&le<Be?le:Be,Oe=le<0&le>Oe?le:Oe,N=N|+xe(+(le-V))>3.141592653589793,S=Et+1|0,(S|0)!=(Ue|0);)Yn=Et,Ee=F,Et=S,S=Yn;N&&(W[Pt>>3]=Oe,W[At>>3]=Be)}}else v[y>>2]=0,v[y+4>>2]=0,v[y+8>>2]=0,v[y+12>>2]=0,v[y+16>>2]=0,v[y+20>>2]=0,v[y+24>>2]=0,v[y+28>>2]=0;if(Yn=_+8|0,S=v[Yn>>2]|0,!((S|0)<=0)){gn=_+12|0,ct=0;do if(R=v[gn>>2]|0,N=ct,ct=ct+1|0,At=y+(ct<<5)|0,Pt=v[R+(N<<3)>>2]|0,Pt){if(Et=y+(ct<<5)+8|0,W[Et>>3]=17976931348623157e292,_=y+(ct<<5)+24|0,W[_>>3]=17976931348623157e292,W[At>>3]=-17976931348623157e292,bt=y+(ct<<5)+16|0,W[bt>>3]=-17976931348623157e292,(Pt|0)>0){for(Ue=v[R+(N<<3)+4>>2]|0,Be=17976931348623157e292,Oe=-17976931348623157e292,R=0,N=-1,st=0,Y=17976931348623157e292,ne=17976931348623157e292,le=-17976931348623157e292,U=-17976931348623157e292;F=+W[Ue+(st<<4)>>3],Ee=+W[Ue+(st<<4)+8>>3],N=N+2|0,V=+W[Ue+(((N|0)==(Pt|0)?0:N)<<4)+8>>3],F<Y&&(W[Et>>3]=F,Y=F),Ee<ne&&(W[_>>3]=Ee,ne=Ee),F>le?W[At>>3]=F:F=le,Ee>U&&(W[bt>>3]=Ee,U=Ee),Be=Ee>0&Ee<Be?Ee:Be,Oe=Ee<0&Ee>Oe?Ee:Oe,R=R|+xe(+(Ee-V))>3.141592653589793,N=st+1|0,(N|0)!=(Pt|0);)jn=st,st=N,le=F,N=jn;R&&(W[bt>>3]=Oe,W[_>>3]=Be)}}else v[At>>2]=0,v[At+4>>2]=0,v[At+8>>2]=0,v[At+12>>2]=0,v[At+16>>2]=0,v[At+20>>2]=0,v[At+24>>2]=0,v[At+28>>2]=0,S=v[Yn>>2]|0;while((ct|0)<(S|0))}}function Ju(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;if(!(Pl(_,y,S)|0))return R=0,R|0;if(R=_+8|0,(v[R>>2]|0)<=0)return R=1,R|0;for(N=_+12|0,_=0;;){if(F=_,_=_+1|0,Pl((v[N>>2]|0)+(F<<3)|0,y+(_<<5)|0,S)|0){_=0,N=6;break}if((_|0)>=(v[R>>2]|0)){_=1,N=6;break}}return(N|0)==6?_|0:0}function jf(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(ne=pe,pe=pe+16|0,V=ne,U=S+8|0,!(Pl(_,y,U)|0))return Y=0,pe=ne,Y|0;Y=_+8|0;e:do if((v[Y>>2]|0)>0){for(F=_+12|0,R=0;;){if(le=R,R=R+1|0,Pl((v[F>>2]|0)+(le<<3)|0,y+(R<<5)|0,U)|0){R=0;break}if((R|0)>=(v[Y>>2]|0))break e}return pe=ne,R|0}while(!1);if(bx(_,y,S,N)|0)return le=0,pe=ne,le|0;v[V>>2]=v[S>>2],v[V+4>>2]=U,R=v[Y>>2]|0;e:do if((R|0)>0)for(_=_+12|0,U=0,F=R;;){if(R=v[_>>2]|0,(v[R+(U<<3)>>2]|0)>0){if(Pl(V,N,v[R+(U<<3)+4>>2]|0)|0){R=0;break e}if(R=U+1|0,bx((v[_>>2]|0)+(U<<3)|0,y+(R<<5)|0,S,N)|0){R=0;break e}F=v[Y>>2]|0}else R=U+1|0;if((R|0)<(F|0))U=R;else{R=1;break}}else R=1;while(!1);return le=R,pe=ne,le|0}function bx(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt
4163=0,Et=0,bt=0,ct=0,gn=0,Yn=0,jn=0,Ir=0;if(Yn=pe,pe=pe+176|0,Et=Yn+172|0,R=Yn+168|0,bt=Yn,!(qu(y,N)|0))return _=0,pe=Yn,_|0;if(Hd(y,N,Et,R),o1(bt|0,S|0,168)|0,(v[S>>2]|0)>0){y=0;do jn=bt+8+(y<<4)+8|0,Pt=+wc(+W[jn>>3],v[R>>2]|0),W[jn>>3]=Pt,y=y+1|0;while((y|0)<(v[S>>2]|0))}st=+W[N>>3],At=+W[N+8>>3],Pt=+wc(+W[N+16>>3],v[R>>2]|0),Oe=+wc(+W[N+24>>3],v[R>>2]|0);e:do if((v[_>>2]|0)>0){if(N=_+4|0,R=v[bt>>2]|0,(R|0)<=0){for(y=0;;)if(y=y+1|0,(y|0)>=(v[_>>2]|0)){y=0;break e}}for(S=0;;){if(y=v[N>>2]|0,Be=+W[y+(S<<4)>>3],Ue=+wc(+W[y+(S<<4)+8>>3],v[Et>>2]|0),y=v[N>>2]|0,S=S+1|0,jn=(S|0)%(v[_>>2]|0)|0,F=+W[y+(jn<<4)>>3],U=+wc(+W[y+(jn<<4)+8>>3],v[Et>>2]|0),!(Be>=st)|!(F>=st)&&!(Be<=At)|!(F<=At)&&!(Ue<=Oe)|!(U<=Oe)&&!(Ue>=Pt)|!(U>=Pt)){Ee=F-Be,ne=U-Ue,y=0;do if(Ir=y,y=y+1|0,jn=(y|0)==(R|0)?0:y,F=+W[bt+8+(Ir<<4)+8>>3],U=+W[bt+8+(jn<<4)+8>>3]-F,V=+W[bt+8+(Ir<<4)>>3],Y=+W[bt+8+(jn<<4)>>3]-V,le=Ee*U-ne*Y,le!=0&&(ct=Ue-F,gn=Be-V,Y=(ct*Y-U*gn)/le,!(Y<0|Y>1))&&(le=(Ee*ct-ne*gn)/le,le>=0&le<=1)){y=1;break e}while((y|0)<(R|0))}if((S|0)>=(v[_>>2]|0)){y=0;break}}}else y=0;while(!1);return Ir=y,pe=Yn,Ir|0}function d4(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0;if(bx(_,y,S,N)|0)return F=1,F|0;if(F=_+8|0,(v[F>>2]|0)<=0)return F=0,F|0;for(R=_+12|0,_=0;;){if(U=_,_=_+1|0,bx((v[R>>2]|0)+(U<<3)|0,y+(_<<5)|0,S,N)|0){_=1,R=6;break}if((_|0)>=(v[F>>2]|0)){_=0,R=6;break}}return(R|0)==6?_|0:0}function q6(){return 8}function OE(){return 16}function il(){return 168}function Xa(){return 8}function Ti(){return 16}function a1(){return 12}function e0(){return 8}function W6(_){return _=_|0,+(+((v[_>>2]|0)>>>0)+4294967296*+(v[_+4>>2]|0))}function s1(_){_=_|0;var y=0,S=0;return S=+W[_>>3],y=+W[_+8>>3],+ +we(+(S*S+y*y))}function Z6(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0;ne=+W[_>>3],Y=+W[y>>3]-ne,V=+W[_+8>>3],U=+W[y+8>>3]-V,Ee=+W[S>>3],F=+W[N>>3]-Ee,Be=+W[S+8>>3],le=+W[N+8>>3]-Be,F=(F*(V-Be)-(ne-Ee)*le)/(Y*le-U*F),W[R>>3]=ne+Y*F,W[R+8>>3]=V+U*F}function Y6(_,y){return _=_|0,y=y|0,+xe(+(+W[_>>3]-+W[y>>3]))<11920928955078125e-23?(y=+xe(+(+W[_+8>>3]-+W[y+8>>3]))<11920928955078125e-23,y|0):(y=0,y|0)}function Qa(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;return R=+W[_>>3]-+W[y>>3],N=+W[_+8>>3]-+W[y+8>>3],S=+W[_+16>>3]-+W[y+16>>3],+(R*R+N*N+S*S)}function tm(_,y){_=_|0,y=y|0;var S=0,N=0,R=0;S=+W[_>>3],N=+ot(+S),S=+ze(+S),W[y+16>>3]=S,S=+W[_+8>>3],R=N*+ot(+S),W[y>>3]=R,S=N*+ze(+S),W[y+8>>3]=S}function X6(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;if(F=pe,pe=pe+16|0,R=F,N=Yi(_,y)|0,(S+-1|0)>>>0>5||(N=(N|0)!=0,(S|0)==1&N))return R=-1,pe=F,R|0;do if(Wd(_,y,R)|0)N=-1;else if(N){N=((v[26352+(S<<2)>>2]|0)+5-(v[R>>2]|0)|0)%5|0;break}else{N=((v[26384+(S<<2)>>2]|0)+6-(v[R>>2]|0)|0)%6|0;break}while(!1);return R=N,pe=F,R|0}function Wd(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0;if(le=pe,pe=pe+32|0,V=le+16|0,Y=le,N=qp(_,y,V)|0,N|0)return S=N,pe=le,S|0;F=wE(_,y)|0,ne=bc(_,y)|0,Lf(F,Y),N=I0(F,v[V>>2]|0)|0;do if(si(F)|0){do switch(F|0){case 4:{R=0;break}case 14:{R=1;break}case 24:{R=2;break}case 38:{R=3;break}case 49:{R=4;break}case 58:{R=5;break}case 63:{R=6;break}case 72:{R=7;break}case 83:{R=8;break}case 97:{R=9;break}case 107:{R=10;break}case 117:{R=11;break}default:Ze(27795,27797,75,27806)}while(!1);if(U=v[26416+(R*24|0)+8>>2]|0,y=v[26416+(R*24|0)+16>>2]|0,_=v[V>>2]|0,(_|0)!=(v[Y>>2]|0)&&(Y=vc(F)|0,_=v[V>>2]|0,Y|(_|0)==(y|0)&&(N=(N+1|0)%6|0)),(ne|0)==3&(_|0)==(y|0)){N=(N+5|0)%6|0;break}(ne|0)==5&(_|0)==(U|0)&&(N=(N+1|0)%6|0)}while(!1);return v[S>>2]=N,S=0,pe=le,S|0}function Tc(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0;if(bt=pe,pe=pe+32|0,Et=bt+24|0,At=bt+20|0,Ue=bt+8|0,Oe=bt+16|0,Be=bt,Y=(Yi(_,y)|0)==0,Y=Y?6:5,le=on(_|0,y|0,52)|0,ue()|0,le=le&15,Y>>>0<=S>>>0)return N=2,pe=bt,N|0;Ee=(le|0)==0,!Ee&&(st=mn(7,0,(le^15)*3|0)|0,(st&_|0)==0&((ue()|0)&y|0)==0)?R=S:F=4;e:do if((F|0)==4){if(R=(Yi(_,y)|0)!=0,((R?4:5)|0)<(S|0)||Wd(_,y,Et)|0||(F=(v[Et>>2]|0)+S|0,R?R=26704+(((F|0)%5|0)<<2)|0:R=26736+(((F|0)%6|0)<<2)|0,st=v[R>>2]|0,(st|0)==7))return N=1,pe=bt,N|0;v[At>>2]=0,R=or(_,y,st,At,Ue)|0;do if(!R){if(V=Ue,ne=v[V>>2]|0,V=v[V+4>>2]|0,U=V>>>0<y>>>0|(V|0)==(y|0)&ne>>>0<_>>>0,F=U?ne:_,U=U?V:y,!Ee&&(Ee=mn(7,0,(le^15)*3|0)|0,(ne&Ee|0)==0&(V&(ue()|0)|0)==0))R=S;else{if(V=(S+-1+Y|0)%(Y|0)|0,R=Yi(_,y)|0,(V|0)<0&&Ze(27795,27797,248,27822),Y=(R|0)!=0,((Y?4:5)|0)<(V|0)&&Ze(27795,27797,248,27822),Wd(_,y,Et)|0&&Ze(27795,27797,248,27822),R=(v[Et>>2]|0)+V|0,Y?R=26704+(((R|0)%5|0)<<2)|0:R=26736+(((R|0)%6|0)<<2)|0,V=v[R>>2]|0,(V|0)==7&&Ze(27795,27797,248,27822),v[Oe>>2]=0,R=or(_,y,V,Oe,Be)|0,R|0)break;ne=Be,Y=v[ne>>
41632]|0,ne=v[ne+4>>2]|0;do if(ne>>>0<U>>>0|(ne|0)==(U|0)&Y>>>0<F>>>0){if(Yi(Y,ne)|0?F=to(Y,ne,_,y)|0:F=v[26800+((((v[Oe>>2]|0)+(v[26768+(V<<2)>>2]|0)|0)%6|0)<<2)>>2]|0,R=Yi(Y,ne)|0,(F+-1|0)>>>0>5){R=-1,F=Y,U=ne;break}if(R=(R|0)!=0,(F|0)==1&R){R=-1,F=Y,U=ne;break}do if(Wd(Y,ne,Et)|0)R=-1;else if(R){R=((v[26352+(F<<2)>>2]|0)+5-(v[Et>>2]|0)|0)%5|0;break}else{R=((v[26384+(F<<2)>>2]|0)+6-(v[Et>>2]|0)|0)%6|0;break}while(!1);F=Y,U=ne}else R=S;while(!1);V=Ue,ne=v[V>>2]|0,V=v[V+4>>2]|0}if((F|0)==(ne|0)&(U|0)==(V|0)){if(Y=(Yi(ne,V)|0)!=0,Y?_=to(ne,V,_,y)|0:_=v[26800+((((v[At>>2]|0)+(v[26768+(st<<2)>>2]|0)|0)%6|0)<<2)>>2]|0,R=Yi(ne,V)|0,(_+-1|0)>>>0<=5&&(Pt=(R|0)!=0,!((_|0)==1&Pt)))do if(Wd(ne,V,Et)|0)R=-1;else if(Pt){R=((v[26352+(_<<2)>>2]|0)+5-(v[Et>>2]|0)|0)%5|0;break}else{R=((v[26384+(_<<2)>>2]|0)+6-(v[Et>>2]|0)|0)%6|0;break}while(!1);else R=-1;R=R+1|0,R=(R|0)==6|Y&(R|0)==5?0:R}y=U,_=F;break e}while(!1);return N=R,pe=bt,N|0}while(!1);return Pt=mn(R|0,0,56)|0,Et=ue()|0|y&-2130706433|536870912,v[N>>2]=Pt|_,v[N+4>>2]=Et,N=0,pe=bt,N|0}function nm(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;return F=(Yi(_,y)|0)==0,N=Tc(_,y,0,S)|0,R=(N|0)==0,F?!R||(N=Tc(_,y,1,S+8|0)|0,N|0)||(N=Tc(_,y,2,S+16|0)|0,N|0)||(N=Tc(_,y,3,S+24|0)|0,N|0)||(N=Tc(_,y,4,S+32|0)|0,N)?(F=N,F|0):Tc(_,y,5,S+40|0)|0:!R||(N=Tc(_,y,1,S+8|0)|0,N|0)||(N=Tc(_,y,2,S+16|0)|0,N|0)||(N=Tc(_,y,3,S+24|0)|0,N|0)||(N=Tc(_,y,4,S+32|0)|0,N|0)?(F=N,F|0):(F=S+40|0,v[F>>2]=0,v[F+4>>2]=0,F=0,F|0)}function Zd(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0,V=0,Y=0;return Y=pe,pe=pe+192|0,R=Y,F=Y+168|0,U=on(_|0,y|0,56)|0,ue()|0,U=U&7,V=y&-2130706433|134217728,N=qp(_,V,F)|0,N|0?(V=N,pe=Y,V|0):(y=on(_|0,y|0,52)|0,ue()|0,y=y&15,Yi(_,V)|0?P6(F,y,U,1,R):t4(F,y,U,1,R),V=R+8|0,v[S>>2]=v[V>>2],v[S+4>>2]=v[V+4>>2],v[S+8>>2]=v[V+8>>2],v[S+12>>2]=v[V+12>>2],V=0,pe=Y,V|0)}function Yd(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;return R=pe,pe=pe+16|0,S=R,!(!0&(y&2013265920|0)==536870912)||(N=y&-2130706433|134217728,!(n4(_,N)|0))?(N=0,pe=R,N|0):(F=on(_|0,y|0,56)|0,ue()|0,F=(Tc(_,N,F&7,S)|0)==0,N=S,N=F&((v[N>>2]|0)==(_|0)?(v[N+4>>2]|0)==(y|0):0)&1,pe=R,N|0)}function Hf(_,y,S){_=_|0,y=y|0,S=S|0;var N=0;(y|0)>0?(N=Ec(y,4)|0,v[_>>2]=N,N||Ze(27835,27858,40,27872)):v[_>>2]=0,v[_+4>>2]=y,v[_+8>>2]=0,v[_+12>>2]=S}function h4(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0;R=_+4|0,F=_+12|0,U=_+8|0;e:for(;;){for(S=v[R>>2]|0,y=0;;){if((y|0)>=(S|0))break e;if(N=v[_>>2]|0,V=v[N+(y<<2)>>2]|0,!V)y=y+1|0;else break}y=N+(~~(+xe(+(+tt(10,+ +(15-(v[F>>2]|0)|0))*(+W[V>>3]+ +W[V+8>>3])))%+(S|0))>>>0<<2)|0,S=v[y>>2]|0;t:do if(S|0){if(N=V+32|0,(S|0)==(V|0))v[y>>2]=v[N>>2];else{if(S=S+32|0,y=v[S>>2]|0,!y)break;for(;(y|0)!=(V|0);)if(S=y+32|0,y=v[S>>2]|0,!y)break t;v[S>>2]=v[N>>2]}pr(V),v[U>>2]=(v[U>>2]|0)+-1}while(!1)}pr(v[_>>2]|0)}function p4(_){_=_|0;var y=0,S=0,N=0;for(N=v[_+4>>2]|0,S=0;;){if((S|0)>=(N|0)){y=0,S=4;break}if(y=v[(v[_>>2]|0)+(S<<2)>>2]|0,!y)S=S+1|0;else{S=4;break}}return(S|0)==4?y|0:0}function rm(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;if(S=~~(+xe(+(+tt(10,+ +(15-(v[_+12>>2]|0)|0))*(+W[y>>3]+ +W[y+8>>3])))%+(v[_+4>>2]|0))>>>0,S=(v[_>>2]|0)+(S<<2)|0,N=v[S>>2]|0,!N)return F=1,F|0;F=y+32|0;
4163do if((N|0)!=(y|0)){if(S=v[N+32>>2]|0,!S)return F=1,F|0;for(R=S;;){if((R|0)==(y|0)){R=8;break}if(S=v[R+32>>2]|0,S)N=R,R=S;else{S=1,R=10;break}}if((R|0)==8){v[N+32>>2]=v[F>>2];break}else if((R|0)==10)return S|0}else v[S>>2]=v[F>>2];while(!1);return pr(y),F=_+8|0,v[F>>2]=(v[F>>2]|0)+-1,F=0,F|0}function m4(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;F=Gf(40)|0,F||Ze(27888,27858,98,27901),v[F>>2]=v[y>>2],v[F+4>>2]=v[y+4>>2],v[F+8>>2]=v[y+8>>2],v[F+12>>2]=v[y+12>>2],R=F+16|0,v[R>>2]=v[S>>2],v[R+4>>2]=v[S+4>>2],v[R+8>>2]=v[S+8>>2],v[R+12>>2]=v[S+12>>2],v[F+32>>2]=0,R=~~(+xe(+(+tt(10,+ +(15-(v[_+12>>2]|0)|0))*(+W[y>>3]+ +W[y+8>>3])))%+(v[_+4>>2]|0))>>>0,R=(v[_>>2]|0)+(R<<2)|0,N=v[R>>2]|0;do if(!N)v[R>>2]=F;else{for(;!(Yu(N,y)|0&&Yu(N+16|0,S)|0);)if(R=v[N+32>>2]|0,N=(R|0)==0?N:R,!(v[N+32>>2]|0)){U=10;break}if((U|0)==10){v[N+32>>2]=F;break}return pr(F),U=N,U|0}while(!1);return U=_+8|0,v[U>>2]=(v[U>>2]|0)+1,U=F,U|0}function im(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0;if(R=~~(+xe(+(+tt(10,+ +(15-(v[_+12>>2]|0)|0))*(+W[y>>3]+ +W[y+8>>3])))%+(v[_+4>>2]|0))>>>0,R=v[(v[_>>2]|0)+(R<<2)>>2]|0,!R)return S=0,S|0;if(!S){for(_=R;;){if(Yu(_,y)|0){N=10;break}if(_=v[_+32>>2]|0,!_){_=0,N=10;break}}if((N|0)==10)return _|0}for(_=R;;){if(Yu(_,y)|0&&Yu(_+16|0,S)|0){N=10;break}if(_=v[_+32>>2]|0,!_){_=0,N=10;break}}return(N|0)==10?_|0:0}function al(_,y){_=_|0,y=y|0;var S=0;if(S=~~(+xe(+(+tt(10,+ +(15-(v[_+12>>2]|0)|0))*(+W[y>>3]+ +W[y+8>>3])))%+(v[_+4>>2]|0))>>>0,_=v[(v[_>>2]|0)+(S<<2)>>2]|0,!_)return S=0,S|0;for(;;){if(Yu(_,y)|0){y=5;break}if(_=v[_+32>>2]|0,!_){_=0,y=5;break}}return(y|0)==5?_|0:0}function A4(){return 27920}function Xd(_){return _=+_,~~+Ex(+_)|0}function Gf(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0,st=0,At=0,Pt=0,Et=0,bt=0,ct=0,gn=0;gn=pe,pe=pe+16|0,Be=gn;do if(_>>>0<245){if(ne=_>>>0<11?16:_+11&-8,_=ne>>>3,Ee=v[6981]|0,S=Ee>>>_,S&3|0)return y=(S&1^1)+_|0,_=27964+(y<<1<<2)|0,S=_+8|0,N=v[S>>2]|0,R=N+8|0,F=v[R>>2]|0,(F|0)==(_|0)?v[6981]=Ee&~(1<<y):(v[F+12>>2]=_,v[S>>2]=F),ct=y<<3,v[N+4>>2]=ct|3,ct=N+ct+4|0,v[ct>>2]=v[ct>>2]|1,ct=R,pe=gn,ct|0;if(le=v[6983]|0,ne>>>0>le>>>0){if(S|0)return y=2<<_,y=S<<_&(y|0-y),y=(y&0-y)+-1|0,V=y>>>12&16,y=y>>>V,S=y>>>5&8,y=y>>>S,F=y>>>2&4,y=y>>>F,_=y>>>1&2,y=y>>>_,N=y>>>1&1,N=(S|V|F|_|N)+(y>>>N)|0,y=27964+(N<<1<<2)|0,_=y+8|0,F=v[_>>2]|0,V=F+8|0,S=v[V>>2]|0,(S|0)==(y|0)?(_=Ee&~(1<<N),v[6981]=_):(v[S+12>>2]=y,v[_>>2]=S,_=Ee),ct=N<<3,U=ct-ne|0,v[F+4>>2]=ne|3,R=F+ne|0,v[R+4>>2]=U|1,v[F+ct>>2]=U,le|0&&(N=v[6986]|0,y=le>>>3,S=27964+(y<<1<<2)|0,y=1<<y,_&y?(_=S+8|0,y=v[_>>2]|0):(v[6981]=_|y,y=S,_=S+8|0),v[_>>2]=N,v[y+12>>2]=N,v[N+8>>2]=y,v[N+12>>2]=S),v[6983]=U,v[6986]=R,ct=V,pe=gn,ct|0;if(F=v[6982]|0,F){for(S=(F&0-F)+-1|0,R=S>>>12&16,S=S>>>R,N=S>>>5&8,S=S>>>N,U=S>>>2&4,S=S>>>U,V=S>>>1&2,S=S>>>V,Y=S>>>1&1,Y=v[28228+((N|R|U|V|Y)+(S>>>Y)<<2)>>2]|0,S=Y,V=Y,Y=(v[Y+4>>2]&-8)-ne|0;_=v[S+16>>2]|0,!(!_&&(_=v[S+20>>2]|0,!_));)U=(v[_+4>>2]&-8)-ne|0,R=U>>>0<Y>>>0,S=_,V=R?_:V,Y=R?U:Y;if(U=V+ne|0,U>>>0>V>>>0){R=v[V+24>>2]|0,y=v[V+12>>2]|0;do if((y|0)==(V|0)){if(_=V+20|0,y=v[_>>2]|0,!y&&(_=V+16|0,y=v[_>>2]|0,!y)){S=0;break}for(;;)if(N=y+20|0,S=v[N>>2]|0,S)y=S,_=N;else if(N=y+16|0,S=v[N>>2]|0,S)y=S,_=N;else break;v[_>>2]=0,S=y}else S=v[V+8>>2]|0,v[S+12>>2]=y,v[y+8>>2]=S,S=y;while(!1);do if(R|0){if(y=v[V+28>>2]|0,_=28228+(y<<2)|0,(V|0)==(v[_>>2]|0)){if(v[_>>2]=S,!S){v[6982]=F&~(1<<y);break}}else if(ct=R+16|0,v[((v[ct>>2]|0)==(V|0)?ct:R+20|0)>>2]=S,!S)break;v[S+24>>2]=R,y=v[V+16>>2]|0,y|0&&(v[S+16>>2]=y,v[y+24>>2]=S),y=v[V+20>>2]|0,y|0&&(v[S+20>>2]=y,v[y+24>>2]=S)}while(!1);return Y>>>0<16?(ct=Y+ne|0,v[V+4>>2]=ct|3,ct=V+ct+4|0,v[ct>>2]=v[ct>>2]|1):(v[V+4>>2]=ne|3,v[U+4>>2]=Y|1,v[U+Y>>2]=Y,le|0&&(N=v[6986]|0,y=le>>>3,S=27964+(y<<1<<2)|0,y=1<<y,y&Ee?(_=S+8|0,y=v[_>>2]|0):(v[6981]=y|Ee,y=S,_=S+8|0),v[_>>2]=N,v[y+12>>2]=N,v[N+8>>2]=y,v[N+12>>2]=S),v[6983]=Y,v[6986]=U),ct=V+8|0,pe=gn,ct|0}else Ee=ne}else Ee=ne}else Ee=ne}else if(_>>>0<=4294967231)if(_=_+11|0,ne=_&-8,N=v[6982]|0,N){R=0-ne|0,_=_>>>8,_?ne>>>0>16777215?Y=31:(Ee=(_+1048320|0)>>>16&8,st=_<<Ee,V=(st+520192|0)>>>16&4,st=st<<V,Y=(st+245760|0)>>>16&2,Y=14-(V|Ee|Y)+(st<<Y>>>15)|0,Y=ne>>>(Y+7|0)&1|Y<<1):Y=0,S=v[28228+(Y<<2)>>2]|0;e:do if(!S)S=0,_=0,st=61;else for(_=0,V=ne<<((Y|0)==31?0:25-(Y>>>1)|0),F=0;;){if(U=(v[S+4>>2]&-8)-ne|0,U>>>0<R>>>0)if(U)_=S,R=U;else{_=S,R=0,st=65;break e}if(st=v[S+20>>2]|0,S=v[S+16+(V>>>31<<2)>>2]|0,F=(st|0)==0|(st|0)==(S|0)?F:st,S)V=V<<1;else{S=F,st=61;break}}while(!1);if((st|0)==61){if((S|0)==0&(_|0)==0){if(_=2<<Y,_=(_|0-_)&N,!_){Ee=ne;break}Ee=(_&0-_)+-1|0,U=Ee>>>12&16,Ee=Ee>>>U,F=Ee>>>5&8,Ee=Ee>>>F,V=Ee>>>2&4,Ee=Ee>>>V,Y=Ee>>>1&2,Ee=Ee>>>Y,S=Ee>>>1&1,_=0,S=v[28228+((F|U|V|Y|S)+(Ee>>>S)<<2)>>2]|0}S?st=65:(V=_,U=R)}if((st|0)==65)for(F=S;;)if(Ee=(v[F+4>>2]&-8)-ne|0,S=Ee>>>0<R>>>0,R=S?Ee:R,_=S?F:_,S=v[F+16>>2]|0,S||(S=v[F+20>>2]|0),S)F=S;else{V=_,U=R;break}if((V|0)!=0&&U>>>0<((v[6983]|0)-ne|0)>>>0&&(le=V+ne|0,le>>>0>V>>>0)){F=v[V+24>>2]|0,y=v[V+12>>2]|0;do if((y|0)==(V|0)){if(_=V+20|0,y=v[_>>2]|0,!y&&(_=V+16|0,y=v[_>>2]|0,!y)){y=0;break}for(;;)if(R=y+20|0,S=v[R>>2]|0,S)y=S,_=R;else if(R=y+16|0,S=v[R>>2]|0,S)y=S,_=R;else break;v[_>>2]=0}else ct=v[V+8>>2]|0,v[ct+12>>2]=y,v[y+8>>2]=ct;while(!1);do if(F){if(_=v[V+28>>2]|0,S=28228+(_<<2)|0,(V|0)==(v[S>>2]|0)){if(v[S>>2]=y,!y){N=N&~(1<<_),v[6982]=N;break}}else if(ct=F+16|0,v[((v[ct>>2]|0)==(V|0)?ct:F+20|0)>>2]=y,!y)break;v[y+24>>2]=F,_=v[V+16>>2]|0,_|0&&(v[y+16>>2]=_,v[_+24>>2]=y),_=v[V+20>>2]|0,_&&(v[y+20>>2]=_,v[_+24>>2]=y)}while(!1);e:do if(U>>>0<16)ct=U+ne|0,v[V+4>>2]=ct|3,ct=V+ct+4|0,v[ct>>2]=v[ct>>2]|1;else{if(v[V+4>>2]=ne|3,v[le+4>>2]=U|1,v[le+U>>2]=U,y=U>>>3,U>>>0<256){S=27964+(y<<1<<2)|0,_=v[6981]|0,y=1<<y,_&y?(_=S+8|0,y=v[_>>2]|0):(v[6981]=_|y,y=S,_=S+8|0),v[_>>2]=le,v[y+12>>2]=le,v[le+8>>2]=y,v[le+12>>2]=S;break}if(y=U>>>8,y?U>>>0>16777215?S=31:(bt=(y+1048320|0)>>>16&8,ct=y<<bt,Et=(ct+520192|0)>>>16&4,ct=ct<<Et,S=(ct+245760|0)>>>16&2,S=14-(Et|bt|S)+(ct<<S>>>15)|0,S=U>>>(S+7|0)&1|S<<1):S=0,y=28228+(S<<2)|0,v[le+28>>2]=S,_=le+16|0,v[_+4>>2]=0,v[_>>2]=0,_=1<<S,!(N&_)){v[6982]=N|_,v[y>>2]=le,v[le+24>>2]=y,v[le+12>>2]=le,v[le+8>>2]=le;break}y=v[y>>2]|0;t:do if((v[y+4>>2]&-8|0)!=(U|0)){for(N=U<<((S|0)==31?0:25-(S>>>1)|0);S=y+16+(N>>>31<<2)|0,_=v[S>>2]|0,!!_;)if((v[_+4>>2]&-8|0)==(U|0)){y=_;break t}else N=N<<1,y=_;v[S>>2]=le,v[le+24>>2]=y,v[le+12>>2]=le,v[le+8>>2]=le;break e}while(!1);bt=y+8|0,ct=v[bt>>2]|0,v[ct+12>>2]=le,v[bt>>2]=le,v[le+8>>2]=ct,v[le+12>>2]=y,v[le+24>>2]=0}while(!1);return ct=V+8|0,pe=gn,ct|0}else Ee=ne}else Ee=ne;else Ee=-1;while(!1);if(S=v[6983]|0,S>>>0>=Ee>>>0)return y=S-Ee|0,_=v[6986]|0,y>>>0>15?(ct=_+Ee|0,v[6986]=ct,v[6983]=y,v[ct+4>>2]=y|1,v[_+S>>2]=y,v[_+4>>2]=Ee|3):(v[6983]=0,v[6986]=0,v[_+4>>2]=S|3,ct=_+S+4|0,v[ct>>2]=v[ct>>2]|1),ct=_+8|0,pe=gn,ct|0;if(U=v[6984]|0,U>>>0>Ee>>>
41630)return Et=U-Ee|0,v[6984]=Et,ct=v[6987]|0,bt=ct+Ee|0,v[6987]=bt,v[bt+4>>2]=Et|1,v[ct+4>>2]=Ee|3,ct=ct+8|0,pe=gn,ct|0;if(v[7099]|0?_=v[7101]|0:(v[7101]=4096,v[7100]=4096,v[7102]=-1,v[7103]=-1,v[7104]=0,v[7092]=0,v[7099]=Be&-16^1431655768,_=4096),V=Ee+48|0,Y=Ee+47|0,F=_+Y|0,R=0-_|0,ne=F&R,ne>>>0<=Ee>>>0||(_=v[7091]|0,_|0&&(le=v[7089]|0,Be=le+ne|0,Be>>>0<=le>>>0|Be>>>0>_>>>0)))return ct=0,pe=gn,ct|0;e:do if(v[7092]&4)y=0,st=143;else{S=v[6987]|0;t:do if(S){for(N=28372;Be=v[N>>2]|0,!(Be>>>0<=S>>>0&&(Be+(v[N+4>>2]|0)|0)>>>0>S>>>0);)if(_=v[N+8>>2]|0,_)N=_;else{st=128;break t}if(y=F-U&R,y>>>0<2147483647)if(_=Kd(y|0)|0,(_|0)==((v[N>>2]|0)+(v[N+4>>2]|0)|0)){if((_|0)!=-1){U=y,F=_,st=145;break e}}else N=_,st=136;else y=0}else st=128;while(!1);do if((st|0)==128)if(S=Kd(0)|0,(S|0)!=-1&&(y=S,Oe=v[7100]|0,Ue=Oe+-1|0,y=((Ue&y|0)==0?0:(Ue+y&0-Oe)-y|0)+ne|0,Oe=v[7089]|0,Ue=y+Oe|0,y>>>0>Ee>>>0&y>>>0<2147483647)){if(Be=v[7091]|0,Be|0&&Ue>>>0<=Oe>>>0|Ue>>>0>Be>>>0){y=0;break}if(_=Kd(y|0)|0,(_|0)==(S|0)){U=y,F=S,st=145;break e}else N=_,st=136}else y=0;while(!1);do if((st|0)==136){if(S=0-y|0,!(V>>>0>y>>>0&(y>>>0<2147483647&(N|0)!=-1)))if((N|0)==-1){y=0;break}else{U=y,F=N,st=145;break e}if(_=v[7101]|0,_=Y-y+_&0-_,_>>>0>=2147483647){U=y,F=N,st=145;break e}if((Kd(_|0)|0)==-1){Kd(S|0)|0,y=0;break}else{U=_+y|0,F=N,st=145;break e}}while(!1);v[7092]=v[7092]|4,st=143}while(!1);if((st|0)==143&&ne>>>0<2147483647&&(Et=Kd(ne|0)|0,Ue=Kd(0)|0,At=Ue-Et|0,Pt=At>>>0>(Ee+40|0)>>>0,!((Et|0)==-1|Pt^1|Et>>>0<Ue>>>0&((Et|0)!=-1&(Ue|0)!=-1)^1))&&(U=Pt?At:y,F=Et,st=145),(st|0)==145){y=(v[7089]|0)+U|0,v[7089]=y,y>>>0>(v[7090]|0)>>>0&&(v[7090]=y),Y=v[6987]|0;e:do if(Y){for(y=28372;;){if(_=v[y>>2]|0,S=v[y+4>>2]|0,(F|0)==(_+S|0)){st=154;break}if(N=v[y+8>>2]|0,N)y=N;else break}if((st|0)==154&&(bt=y+4|0,(v[y+12>>2]&8|0)==0)&&F>>>0>Y>>>0&_>>>0<=Y>>>0){v[bt>>2]=S+U,ct=(v[6984]|0)+U|0,Et=Y+8|0,Et=(Et&7|0)==0?0:0-Et&7,bt=Y+Et|0,Et=ct-Et|0,v[6987]=bt,v[6984]=Et,v[bt+4>>2]=Et|1,v[Y+ct+4>>2]=40,v[6988]=v[7103];break}for(F>>>0<(v[6985]|0)>>>0&&(v[6985]=F),S=F+U|0,y=28372;;){if((v[y>>2]|0)==(S|0)){st=162;break}if(_=v[y+8>>2]|0,_)y=_;else break}if((st|0)==162&&(v[y+12>>2]&8|0)==0){v[y>>2]=F,le=y+4|0,v[le>>2]=(v[le>>2]|0)+U,le=F+8|0,le=F+((le&7|0)==0?0:0-le&7)|0,y=S+8|0,y=S+((y&7|0)==0?0:0-y&7)|0,ne=le+Ee|0,V=y-le-Ee|0,v[le+4>>2]=Ee|3;t:do if((Y|0)==(y|0))ct=(v[6984]|0)+V|0,v[6984]=ct,v[6987]=ne,v[ne+4>>2]=ct|1;else{if((v[6986]|0)==(y|0)){ct=(v[6983]|0)+V|0,v[6983]=ct,v[6986]=ne,v[ne+4>>2]=ct|1,v[ne+ct>>2]=ct;break}if(_=v[y+4>>2]|0,(_&3|0)==1){U=_&-8,N=_>>>3;n:do if(_>>>0<256)if(_=v[y+8>>2]|0,S=v[y+12>>2]|0,(S|0)==(_|0)){v[6981]=v[6981]&~(1<<N);break}else{v[_+12>>2]=S,v[S+8>>2]=_;break}else{F=v[y+24>>2]|0,_=v[y+12>>2]|0;do if((_|0)==(y|0)){if(S=y+16|0,N=S+4|0,_=v[N>>2]|0,_)S=N;else if(_=v[S>>2]|0,!_){_=0;break}for(;;)if(R=_+20|0,N=v[R>>2]|0,N)_=N,S=R;else if(R=_+16|0,N=v[R>>2]|0,N)_=N,S=R;else break;v[S>>2]=0}else ct=v[y+8>>2]|0,v[ct+12>>2]=_,v[_+8>>2]=ct;while(!1);if(!F)break;S=v[y+28>>2]|0,N=28228+(S<<2)|0;do if((v[N>>
41632]|0)!=(y|0)){if(ct=F+16|0,v[((v[ct>>2]|0)==(y|0)?ct:F+20|0)>>2]=_,!_)break n}else{if(v[N>>2]=_,_|0)break;v[6982]=v[6982]&~(1<<S);break n}while(!1);if(v[_+24>>2]=F,S=y+16|0,N=v[S>>2]|0,N|0&&(v[_+16>>2]=N,v[N+24>>2]=_),S=v[S+4>>2]|0,!S)break;v[_+20>>2]=S,v[S+24>>2]=_}while(!1);y=y+U|0,R=U+V|0}else R=V;if(y=y+4|0,v[y>>2]=v[y>>2]&-2,v[ne+4>>2]=R|1,v[ne+R>>2]=R,y=R>>>3,R>>>0<256){S=27964+(y<<1<<2)|0,_=v[6981]|0,y=1<<y,_&y?(_=S+8|0,y=v[_>>2]|0):(v[6981]=_|y,y=S,_=S+8|0),v[_>>2]=ne,v[y+12>>2]=ne,v[ne+8>>2]=y,v[ne+12>>2]=S;break}y=R>>>8;do if(!y)N=0;else{if(R>>>0>16777215){N=31;break}bt=(y+1048320|0)>>>16&8,ct=y<<bt,Et=(ct+520192|0)>>>16&4,ct=ct<<Et,N=(ct+245760|0)>>>16&2,N=14-(Et|bt|N)+(ct<<N>>>15)|0,N=R>>>(N+7|0)&1|N<<1}while(!1);if(y=28228+(N<<2)|0,v[ne+28>>2]=N,_=ne+16|0,v[_+4>>2]=0,v[_>>2]=0,_=v[6982]|0,S=1<<N,!(_&S)){v[6982]=_|S,v[y>>2]=ne,v[ne+24>>2]=y,v[ne+12>>2]=ne,v[ne+8>>2]=ne;break}y=v[y>>2]|0;n:do if((v[y+4>>2]&-8|0)!=(R|0)){for(N=R<<((N|0)==31?0:25-(N>>>1)|0);S=y+16+(N>>>31<<2)|0,_=v[S>>2]|0,!!_;)if((v[_+4>>2]&-8|0)==(R|0)){y=_;break n}else N=N<<1,y=_;v[S>>2]=ne,v[ne+24>>2]=y,v[ne+12>>2]=ne,v[ne+8>>2]=ne;break t}while(!1);bt=y+8|0,ct=v[bt>>2]|0,v[ct+12>>2]=ne,v[bt>>2]=ne,v[ne+8>>2]=ct,v[ne+12>>2]=y,v[ne+24>>2]=0}while(!1);return ct=le+8|0,pe=gn,ct|0}for(y=28372;_=v[y>>2]|0,!(_>>>0<=Y>>>0&&(ct=_+(v[y+4>>2]|0)|0,ct>>>0>Y>>>0));)y=v[y+8>>2]|0;R=ct+-47|0,_=R+8|0,_=R+((_&7|0)==0?0:0-_&7)|0,R=Y+16|0,_=_>>>0<R>>>0?Y:_,y=_+8|0,S=U+-40|0,Et=F+8|0,Et=(Et&7|0)==0?0:0-Et&7,bt=F+Et|0,Et=S-Et|0,v[6987]=bt,v[6984]=Et,v[bt+4>>2]=Et|1,v[F+S+4>>2]=40,v[6988]=v[7103],S=_+4|0,v[S>>2]=27,v[y>>2]=v[7093],v[y+4>>2]=v[7094],v[y+8>>2]=v[7095],v[y+12>>2]=v[7096],v[7093]=F,v[7094]=U,v[7096]=0,v[7095]=y,y=_+24|0;do bt=y,y=y+4|0,v[y>>2]=7;while((bt+8|0)>>>0<ct>>>0);if((_|0)!=(Y|0)){if(F=_-Y|0,v[S>>2]=v[S>>2]&-2,v[Y+4>>2]=F|1,v[_>>2]=F,y=F>>>3,F>>>0<256){S=27964+(y<<1<<2)|0,_=v[6981]|0,y=1<<y,_&y?(_=S+8|0,y=v[_>>2]|0):(v[6981]=_|y,y=S,_=S+8|0),v[_>>2]=Y,v[y+12>>2]=Y,v[Y+8>>2]=y,v[Y+12>>2]=S;break}if(y=F>>>8,y?F>>>0>16777215?N=31:(bt=(y+1048320|0)>>>16&8,ct=y<<bt,Et=(ct+520192|0)>>>16&4,ct=ct<<Et,N=(ct+245760|0)>>>16&2,N=14-(Et|bt|N)+(ct<<N>>>15)|0,N=F>>>(N+7|0)&1|N<<1):N=0,S=28228+(N<<2)|0,v[Y+28>>2]=N,v[Y+20>>2]=0,v[R>>2]=0,y=v[6982]|0,_=1<<N,!(y&_)){v[6982]=y|_,v[S>>2]=Y,v[Y+24>>2]=S,v[Y+12>>2]=Y,v[Y+8>>2]=Y;break}y=v[S>>2]|0;t:do if((v[y+4>>2]&-8|0)!=(F|0)){for(N=F<<((N|0)==31?0:25-(N>>>1)|0);S=y+16+(N>>>31<<2)|0,_=v[S>>2]|0,!!_;)if((v[_+4>>2]&-8|0)==(F|0)){y=_;break t}else N=N<<1,y=_;v[S>>2]=Y,v[Y+24>>2]=y,v[Y+12>>2]=Y,v[Y+8>>2]=Y;break e}while(!1);bt=y+8|0,ct=v[bt>>2]|0,v[ct+12>>2]=Y,v[bt>>2]=Y,v[Y+8>>2]=ct,v[Y+12>>2]=y,v[Y+24>>2]=0}}else ct=v[6985]|0,(ct|0)==0|F>>>0<ct>>>0&&(v[6985]=F),v[7093]=F,v[7094]=U,v[7096]=0,v[6990]=v[7099],v[6989]=-1,v[6994]=27964,v[6993]=27964,v[6996]=27972,v[6995]=27972,v[6998]=27980,v[6997]=27980,v[7e3]=27988,v[6999]=27988,v[7002]=27996,v[7001]=27996,v[7004]=28004,v[7003]=28004,v[7006]=28012,v[7005]=28012,v[7008]=28020,v[7007]=28020,v[7010]=28028,v[7009]=28028,v[7012]=28036,v[7011]=28036,v[7014]=28044,v[7013]=28044,v[7016]=28052,v[7015]=28052,v[7018]=28060,v[7017]=28060,v[7020]=28068,v[7019]=28068,v[7022]=28076,v[7021]=28076,v[7024]=28084,v[7023]=28084,v[7026]=28092,v[7025]=28092,v[7028]=28100,v[7027]=28100,v[7030]=28108,v[7029]=28108,v[7032]=28116,v[7031]=28116,v[7034]=28124,v[7033]=28124,v[7036]=28132,v[7035]=28132,v[7038]=28140,v[7037]=28140,v[7040]=28148,v[7039]=28148,v[7042]=28156,v[7041]=28156,v[7044]=28164,v[7043]=28164,v[7046]=28172,v[7045]=28172,v[7048]=28180,v[7047]=28180,v[7050]=28188,v[7049]=28188,v[7052]=28196,v[7051]=28196,v[7054]=28204,v[7053]=28204,v[7056]=28212,v[7055]=28212,ct=U+-40|0,Et=F+8|0,Et=(Et&7|0)==0?0:0-Et&7,bt=F+Et|0,Et=ct-Et|0,v[6987]=bt,v[6984]=Et,v[bt+4>>2]=Et|1,v[F+ct+4>>2]=40,v[6988]=v[7103];while(!1);if(y=v[6984]|0,y>>>0>Ee>>>0)return Et=y-Ee|0,v[6984]=Et,ct=v[6987]|0,bt=ct+Ee|0,v[6987]=bt,v[bt+4>>2]=Et|1,v[ct+4>>2]=Ee|3,ct=ct+8|0,pe=gn,ct|0}return ct=A4()|0,v[ct>>2]=12,ct=0,pe=gn,ct|0}function pr(_){_=_|0;var y=0,S=0,N=0,R=0,F=0,U=0,V=0,Y=0;if(_){S=_+-8|0,R=v[6985]|0,_=v[_+-4>>2]|0,y=_&-8,Y=S+y|0;do if(_&1)V=S,U=S;else{if(N=v[S>>2]|0,!(_&3)||(U=S+(0-N)|0,F=N+y|0,U>>>0<R>>>0))return;if((v[6986]|0)==(U|0)){if(_=Y+4|0,y=v[_>>
41632]|0,(y&3|0)!=3){V=U,y=F;break}v[6983]=F,v[_>>2]=y&-2,v[U+4>>2]=F|1,v[U+F>>2]=F;return}if(S=N>>>3,N>>>0<256)if(_=v[U+8>>2]|0,y=v[U+12>>2]|0,(y|0)==(_|0)){v[6981]=v[6981]&~(1<<S),V=U,y=F;break}else{v[_+12>>2]=y,v[y+8>>2]=_,V=U,y=F;break}R=v[U+24>>2]|0,_=v[U+12>>2]|0;do if((_|0)==(U|0)){if(y=U+16|0,S=y+4|0,_=v[S>>2]|0,_)y=S;else if(_=v[y>>2]|0,!_){_=0;break}for(;;)if(N=_+20|0,S=v[N>>2]|0,S)_=S,y=N;else if(N=_+16|0,S=v[N>>2]|0,S)_=S,y=N;else break;v[y>>2]=0}else V=v[U+8>>2]|0,v[V+12>>2]=_,v[_+8>>2]=V;while(!1);if(R){if(y=v[U+28>>2]|0,S=28228+(y<<2)|0,(v[S>>2]|0)==(U|0)){if(v[S>>2]=_,!_){v[6982]=v[6982]&~(1<<y),V=U,y=F;break}}else if(V=R+16|0,v[((v[V>>2]|0)==(U|0)?V:R+20|0)>>2]=_,!_){V=U,y=F;break}v[_+24>>2]=R,y=U+16|0,S=v[y>>2]|0,S|0&&(v[_+16>>2]=S,v[S+24>>2]=_),y=v[y+4>>2]|0,y?(v[_+20>>2]=y,v[y+24>>2]=_,V=U,y=F):(V=U,y=F)}else V=U,y=F}while(!1);if(!(U>>>0>=Y>>>0)&&(_=Y+4|0,N=v[_>>2]|0,!!(N&1))){if(N&2)v[_>>2]=N&-2,v[V+4>>2]=y|1,v[U+y>>2]=y,R=y;else{if((v[6987]|0)==(Y|0)){if(Y=(v[6984]|0)+y|0,v[6984]=Y,v[6987]=V,v[V+4>>2]=Y|1,(V|0)!=(v[6986]|0))return;v[6986]=0,v[6983]=0;return}if((v[6986]|0)==(Y|0)){Y=(v[6983]|0)+y|0,v[6983]=Y,v[6986]=U,v[V+4>>2]=Y|1,v[U+Y>>2]=Y;return}R=(N&-8)+y|0,S=N>>>3;do if(N>>>0<256)if(y=v[Y+8>>2]|0,_=v[Y+12>>2]|0,(_|0)==(y|0)){v[6981]=v[6981]&~(1<<S);break}else{v[y+12>>2]=_,v[_+8>>2]=y;break}else{F=v[Y+24>>2]|0,_=v[Y+12>>2]|0;do if((_|0)==(Y|0)){if(y=Y+16|0,S=y+4|0,_=v[S>>2]|0,_)y=S;else if(_=v[y>>2]|0,!_){S=0;break}for(;;)if(N=_+20|0,S=v[N>>2]|0,S)_=S,y=N;else if(N=_+16|0,S=v[N>>2]|0,S)_=S,y=N;else break;v[y>>2]=0,S=_}else S=v[Y+8>>2]|0,v[S+12>>2]=_,v[_+8>>2]=S,S=_;while(!1);if(F|0){if(_=v[Y+28>>2]|0,y=28228+(_<<2)|0,(v[y>>2]|0)==(Y|0)){if(v[y>>2]=S,!S){v[6982]=v[6982]&~(1<<_);break}}else if(N=F+16|0,v[((v[N>>2]|0)==(Y|0)?N:F+20|0)>>2]=S,!S)break;v[S+24>>2]=F,_=Y+16|0,y=v[_>>2]|0,y|0&&(v[S+16>>2]=y,v[y+24>>2]=S),_=v[_+4>>2]|0,_|0&&(v[S+20>>2]=_,v[_+24>>2]=S)}}while(!1);if(v[V+4>>2]=R|1,v[U+R>>2]=R,(V|0)==(v[6986]|0)){v[6983]=R;return}}if(_=R>>>3,R>>>0<256){S=27964+(_<<1<<2)|0,y=v[6981]|0,_=1<<_,y&_?(y=S+8|0,_=v[y>>2]|0):(v[6981]=y|_,_=S,y=S+8|0),v[y>>2]=V,v[_+12>>2]=V,v[V+8>>2]=_,v[V+12>>2]=S;return}_=R>>>8,_?R>>>0>16777215?N=31:(U=(_+1048320|0)>>>16&8,Y=_<<U,F=(Y+520192|0)>>>16&4,Y=Y<<F,N=(Y+245760|0)>>>16&2,N=14-(F|U|N)+(Y<<N>>>15)|0,N=R>>>(N+7|0)&1|N<<1):N=0,_=28228+(N<<2)|0,v[V+28>>2]=N,v[V+20>>2]=0,v[V+16>>2]=0,y=v[6982]|0,S=1<<N;e:do if(!(y&S))v[6982]=y|S,v[_>>2]=V,v[V+24>>2]=_,v[V+12>>2]=V,v[V+8>>2]=V;else{_=v[_>>2]|0;t:do if((v[_+4>>2]&-8|0)!=(R|0)){for(N=R<<((N|0)==31?0:25-(N>>>1)|0);S=_+16+(N>>>31<<2)|0,y=v[S>>2]|0,!!y;)if((v[y+4>>2]&-8|0)==(R|0)){_=y;break t}else N=N<<1,_=y;v[S>>2]=V,v[V+24>>2]=_,v[V+12>>2]=V,v[V+8>>2]=V;break e}while(!1);U=_+8|0,Y=v[U>>2]|0,v[Y+12>>2]=V,v[U>>2]=V,v[V+8>>2]=Y,v[V+12>>2]=_,v[V+24>>2]=0}while(!1);if(Y=(v[6989]|0)+-1|0,v[6989]=Y,!(Y|0)){for(_=28380;_=v[_>>2]|0,_;)_=_+8|0;v[6989]=-1}}}}function Ec(_,y){_=_|0,y=y|0;var S=0;return _?(S=Qt(y,_)|0,(y|_)>>>0>65535&&(S=((S>>>0)/(_>>>0)|0|0)==(y|0)?S:-1)):S=0,_=Gf(S)|0,!_||!(v[_+-4>>2]&3)||H0(_|0,0,S|0)|0,_|0}function On(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,S=_+S>>>0,He(y+N+(S>>>0<_>>>0|0)>>>0|0),S|0|0}function no(_,y,S,N){return _=_|0,y=y|0,S=S|0,N=N|0,N=y-N-(S>>>0>_>>>0|0)>>>0,He(N|0),_-S>>>0|0|0}function X2(_){return _=_|0,(_?31-(ye(_^_-1)|0)|0:32)|0}function am(_,y,S,N,R){_=_|0,y=y|0,S=S|0,N=N|0,R=R|0;var F=0,U=0,V=0,Y=0,ne=0,le=0,Ee=0,Be=0,Oe=0,Ue=0;if(le=_,Y=y,ne=Y,U=S,Be=N,V=Be,!ne)return F=(R|0)!=0,V?F?(v[R>>2]=_|0,v[R+4>>2]=y&0,Be=0,R=0,He(Be|0),R|0):(Be=0,R=0,He(Be|0),R|0):(F&&(v[R>>2]=(le>>>0)%(U>>>0),v[R+4>>2]=0),Be=0,R=(le>>>0)/(U>>>0)>>>0,He(Be|0),R|0);F=(V|0)==0;do if(U){if(!F){if(F=(ye(V|0)|0)-(ye(ne|0)|0)|0,F>>>0<=31){Ee=F+1|0,V=31-F|0,y=F-31>>31,U=Ee,_=le>>>(Ee>>>0)&y|ne<<V,y=ne>>>(Ee>>>0)&y,F=0,V=le<<V;break}return R?(v[R>>2]=_|0,v[R+4>>2]=Y|y&0,Be=0,R=0,He(Be|0),R|0):(Be=0,R=0,He(Be|0),R|0)}if(F=U-1|0,F&U|0){V=(ye(U|0)|0)+33-(ye(ne|0)|0)|0,Ue=64-V|0,Ee=32-V|0,Y=Ee>>31,Oe=V-32|0,y=Oe>>31,U=V,_=Ee-1>>31&ne>>>(Oe>>>0)|(ne<<Ee|le>>>(V>>>0))&y,y=y&ne>>>(V>>>0),F=le<<Ue&Y,V=(ne<<Ue|le>>>(Oe>>>0))&Y|le<<Ee&V-33>>31;break}return R|0&&(v[R>>2]=F&le,v[R+4>>2]=0),(U|0)==1?(Oe=Y|y&0,Ue=_|0|0,He(Oe|0),Ue|0):(Ue=X2(U|0)|0,Oe=ne>>>(Ue>>>0)|0,Ue=ne<<32-Ue|le>>>(Ue>>>0)|0,He(Oe|0),Ue|0)}else{if(F)return R|0&&(v[R>>2]=(ne>>>0)%(U>>>0),v[R+4>>2]=0),Oe=0,Ue=(ne>>>0)/(U>>>0)>>>0,He(Oe|0),Ue|0;if(!le)return R|0&&(v[R>>2]=0,v[R+4>>2]=(ne>>>0)%(V>>>0)),Oe=0,Ue=(ne>>>0)/(V>>>0)>>>0,He(Oe|0),Ue|0;if(F=V-1|0,!(F&V))return R|0&&(v[R>>2]=_|0,v[R+4>>2]=F&ne|y&0),Oe=0,Ue=ne>>>((X2(V|0)|0)>>>0),He(Oe|0),Ue|0;if(F=(ye(V|0)|0)-(ye(ne|0)|0)|0,F>>>0<=30){y=F+1|0,V=31-F|0,U=y,_=ne<<V|le>>>(y>>>0),y=ne>>>(y>>>0),F=0,V=le<<V;break}return R?(v[R>>2]=_|0,v[R+4>>2]=Y|y&0,Oe=0,Ue=0,He(Oe|0),Ue|0):(Oe=0,Ue=0,He(Oe|0),Ue|0)}while(!1);if(!U)ne=V,Y=0,V=0;else{Ee=S|0|0,le=Be|N&0,ne=On(Ee|0,le|0,-1,-1)|0,S=ue()|0,Y=V,V=0;do N=Y,Y=F>>>31|Y<<1,F=V|F<<1,N=_<<1|N>>>31|0,Be=_>>>31|y<<1|0,no(ne|0,S|0,N|0,Be|0)|0,Ue=ue()|0,Oe=Ue>>31|((Ue|0)<0?-1:0)<<1,V=Oe&1,_=no(N|0,Be|0,Oe&Ee|0,(((Ue|0)<0?-1:0)>>31|((Ue|0)<0?-1:0)<<1)&le|0)|0,y=ue()|0,U=U-1|0;while((U|0)!=0);ne=Y,Y=0}return U=0,R|0&&(v[R>>2]=_,v[R+4>>2]=y),Oe=(F|0)>>>31|(ne|U)<<1|(U<<1|F>>>31)&0|Y,Ue=(F<<1|0)&-2|V,He(Oe|0),Ue|0}function zf(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0;return ne=y>>31|((y|0)<0?-1:0)<<1,Y=((y|0)<0?-1:0)>>31|((y|0)<0?-1:0)<<1,F=N>>31|((N|0)<0?-1:0)<<1,R=((N|0)<0?-1:0)>>31|((N|0)<0?-1:0)<<1,V=no(ne^_|0,Y^y|0,ne|0,Y|0)|0,U=ue()|0,_=F^ne,y=R^Y,no((am(V,U,no(F^S|0,R^N|0,F|0,R|0)|0,ue()|0,0)|0)^_|0,(ue()|0)^y|0,_|0,y|0)|0}function Q2(_,y){_=_|0,y=y|0;var S=0,N=0,R=0,F=0;return F=_&65535,R=y&65535,S=Qt(R,F)|0,N=_>>>16,_=(S>>>16)+(Qt(R,N)|0)|0,R=y>>>16,y=Qt(R,F)|0,He((_>>>16)+(Qt(R,N)|0)+(((_&65535)+y|0)>>>16)|0),_+y<<16|S&65535|0|0}function fs(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0;return R=_,F=S,S=Q2(R,F)|0,_=ue()|0,He((Qt(y,F)|0)+(Qt(N,R)|0)+_|_&0|0),S|0|0|0}function K2(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0,U=0,V=0,Y=0,ne=0;return R=pe,pe=pe+16|0,V=R|0,U=y>>31|((y|0)<0?-1:0)<<1,F=((y|0)<0?-1:0)>>31|((y|0)<0?-1:0)<<1,ne=N>>31|((N|0)<0?-1:0)<<1,Y=((N|0)<0?-1:0)>>31|((N|0)<0?-1:0)<<1,_=no(U^_|0,F^y|0,U|0,F|0)|0,y=ue()|0,am(_,y,no(ne^S|0,Y^N|0,ne|0,Y|0)|0,ue()|0,V)|0,N=no(v[V>>2]^U|0,v[V+4>>2]^F|0,U|0,F|0)|0,S=ue()|0,pe=R,He(S|0),N|0}function sm(_,y,S,N){_=_|0,y=y|0,S=S|0,N=N|0;var R=0,F=0;return F=pe,pe=pe+16|0,R=F|0,am(_,y,S,N,R)|0,pe=F,He(v[R+4>>2]|0),v[R>>2]|0|0}function FE(_,y,S){return _=_|0,y=y|0,S=S|0,(S|0)<32?(He(y>>S|0),_>>>S|(y&(1<<S)-1)<<32-S):(He(((y|0)<0?-1:0)|0),y>>S-32|0)}function on(_,y,S){return _=_|0,y=y|0,S=S|0,(S|0)<32?(He(y>>>S|0),_>>>S|(y&(1<<S)-1)<<32-S):(He(0),y>>>S-32|0)}function mn(_,y,S){return _=_|0,y=y|0,S=S|0,(S|0)<32?(He(y<<S|(_&(1<<S)-1<<32-S)>>>32-S|0),_<<S):(He(_<<S-32|0),0)}function wx(_,y,S){return _=_|0,y=y|0,y=ye(y)|0,(y|0)==32&&(y=y+(ye(_)|0)|0),He(0),y|0}function Sx(_,y){return _=+_,y=+y,_!=_?+y:y!=y?+_:+ur(+_,+y)}function Tx(_,y){return _=+_,y=+y,_!=_?+y:y!=y?+_:+sn(+_,+y)}function Qd(_){return _=+_,_>=0?+be(_+.5):+en(_-.5)}function o1(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0;if((S|0)>
4163=8192)return Sn(_|0,y|0,S|0)|0,_|0;if(F=_|0,R=_+S|0,(_&3)==(y&3)){for(;_&3;){if(!S)return F|0;xt[_>>0]=xt[y>>0]|0,_=_+1|0,y=y+1|0,S=S-1|0}for(S=R&-4|0,N=S-64|0;(_|0)<=(N|0);)v[_>>2]=v[y>>2],v[_+4>>2]=v[y+4>>2],v[_+8>>2]=v[y+8>>2],v[_+12>>2]=v[y+12>>2],v[_+16>>2]=v[y+16>>2],v[_+20>>2]=v[y+20>>2],v[_+24>>2]=v[y+24>>2],v[_+28>>2]=v[y+28>>2],v[_+32>>2]=v[y+32>>2],v[_+36>>2]=v[y+36>>2],v[_+40>>2]=v[y+40>>2],v[_+44>>2]=v[y+44>>2],v[_+48>>2]=v[y+48>>2],v[_+52>>2]=v[y+52>>2],v[_+56>>2]=v[y+56>>2],v[_+60>>2]=v[y+60>>2],_=_+64|0,y=y+64|0;for(;(_|0)<(S|0);)v[_>>2]=v[y>>2],_=_+4|0,y=y+4|0}else for(S=R-4|0;(_|0)<(S|0);)xt[_>>0]=xt[y>>0]|0,xt[_+1>>0]=xt[y+1>>0]|0,xt[_+2>>0]=xt[y+2>>0]|0,xt[_+3>>0]=xt[y+3>>0]|0,_=_+4|0,y=y+4|0;for(;(_|0)<(R|0);)xt[_>>0]=xt[y>>0]|0,_=_+1|0,y=y+1|0;return F|0}function H0(_,y,S){_=_|0,y=y|0,S=S|0;var N=0,R=0,F=0,U=0;if(F=_+S|0,y=y&255,(S|0)>=67){for(;_&3;)xt[_>>0]=y,_=_+1|0;for(N=F&-4|0,U=y|y<<8|y<<16|y<<24,R=N-64|0;(_|0)<=(R|0);)v[_>>2]=U,v[_+4>>2]=U,v[_+8>>2]=U,v[_+12>>2]=U,v[_+16>>2]=U,v[_+20>>2]=U,v[_+24>>2]=U,v[_+28>>2]=U,v[_+32>>2]=U,v[_+36>>2]=U,v[_+40>>2]=U,v[_+44>>2]=U,v[_+48>>2]=U,v[_+52>>2]=U,v[_+56>>2]=U,v[_+60>>2]=U,_=_+64|0;for(;(_|0)<(N|0);)v[_>>2]=U,_=_+4|0}for(;(_|0)<(F|0);)xt[_>>0]=y,_=_+1|0;return F-S|0}function Ex(_){return _=+_,_>=0?+be(_+.5):+en(_-.5)}function Kd(_){_=_|0;var y=0,S=0,N=0;return N=_n()|0,S=v[_e>>2]|0,y=S+_|0,(_|0)>0&(y|0)<(S|0)|(y|0)<0?(wn(y|0)|0,yt(12),-1):(y|0)>(N|0)&&!(pn(y|0)|0)?(yt(12),-1):(v[_e>>2]=y,S|0)}return{___divdi3:zf,___muldi3:fs,___remdi3:K2,___uremdi3:sm,_areNeighborCells:eL,_bitshift64Ashr:FE,_bitshift64Lshr:on,_bitshift64Shl:mn,_calloc:Ec,_cellAreaKm2:G6,_cellAreaM2:s4,_cellAreaRads2:i1,_cellToBoundary:r1,_cellToCenterChild:r4,_cellToChildPos:V6,_cellToChildren:TE,_cellToChildrenSize:vx,_cellToLatLng:n1,_cellToLocalIj:kE,_cellToParent:zp,_cellToVertex:Tc,_cellToVertexes:nm,_cellsToDirectedEdge:yE,_cellsToLinkedMultiPolygon:tl,_childPosToCell:NE,_compactCells:F6,_constructCell:cL,_destroyLinkedMultiPolygon:Kp,_directedEdgeToBoundary:e4,_directedEdgeToCells:rL,_edgeLengthKm:z6,_edgeLengthM:Qp,_edgeLengthRads:o4,_emscripten_replace_memory:Hn,_free:pr,_getBaseCellNumber:wE,_getDirectedEdgeDestination:nL,_getDirectedEdgeOrigin:tL,_getHexagonAreaAvgKm2:j6,_getHexagonAreaAvgM2:DE,_getHexagonEdgeLengthAvgKm:H6,_getHexagonEdgeLengthAvgM:V0,_getIcosahedronFaces:Wp,_getIndexDigit:lL,_getNumCells:Xp,_getPentagons:Zp,_getRes0Cells:Ff,_getResolution:W2,_greatCircleDistanceKm:Y2,_greatCircleDistanceM:dL,_greatCircleDistanceRads:RE,_gridDisk:ti,_gridDiskDistances:Qr,_gridDistance:Jp,_gridPathCells:LE,_gridPathCellsSize:$6,_gridRing:ja,_gridRingUnsafe:Vs,_i64Add:On,_i64Subtract:no,_isPentagon:Yi,_isResClassIII:CE,_isValidCell:n4,_isValidDirectedEdge:_E,_isValidIndex:SE,_isValidVertex:Yd,_latLngToCell:i4,_llvm_ctlz_i64:wx,_llvm_maxnum_f64:Sx,_llvm_minnum_f64:Tx,_llvm_round_f64:Qd,_localIjToCell:c4,_malloc:Gf,_maxFaceCount:fL,_maxGridDiskSize:kn,_maxPolygonToCellsSize:Ri,_maxPolygonToCellsSizeExperimental:_x,_memcpy:o1,_memset:H0,_originToDirectedEdges:iL,_pentagonCount:U6,_polygonToCells:ou,_polygonToCellsExperimental:f4,_readInt64AsDoubleFromPointer:W6,_res0CellCount:jd,_round:Ex,_sbrk:Kd,_sizeOfCellBoundary:il,_sizeOfCoordIJ:e0,_sizeOfGeoLoop:Xa,_sizeOfGeoPolygon:Ti,_sizeOfH3Index:q6,_sizeOfLatLng:OE,_sizeOfLinkedGeoPolygon:a1,_uncompactCells:EE,_uncompactCellsSize:ME,_vertexToLatLng:Zd,establishStackSpace:Zr,stackAlloc:Tn,stackRestore:vr,stackSave:bn}})(Wt,qt,j);e.___divdi3=We.___divdi3,e.___muldi3=We.___muldi3,e.___remdi3=We.___remdi3,e.___uremdi3=We.___uremdi3,e._areNeighborCells=We._areNeighborCells,e._bitshift64Ashr=We._bitshift64Ashr,e._bitshift64Lshr=We._bitshift64Lshr,e._bitshift64Shl=We._bitshift64Shl,e._calloc=We._calloc,e._cellAreaKm2=We._cellAreaKm2,e._cellAreaM2=We._cellAreaM2,e._cellAreaRads2=We._cellAreaRads2,e._cellToBoundary=We._cellToBoundary,e._cellToCenterChild=We._cellToCenterChild,e._cellToChildPos=We._cellToChildPos,e._cellToChildren=We._cellToChildren,e._cellToChildrenSize=We._cellToChildrenSize,e._cellToLatLng=We._cellToLatLng,e._cellToLocalIj=We._cellToLocalIj,e._cellToParent=We._cellToParent,e._cellToVertex=We._cellToVertex,e._cellToVertexes=We._cellToVertexes,e._cellsToDirectedEdge=We._cellsToDirectedEdge,e._cellsToLinkedMultiPolygon=We._cellsToLinkedMultiPolygon,e._childPosToCell=We._childPosToCell,e._compactCells=We._compactCells,e._constructCell=We._constructCell,e._destroyLinkedMultiPolygon=We._destroyLinkedMultiPolygon,e._directedEdgeToBoundary=We._directedEdgeToBoundary,e._directedEdgeToCells=We._directedEdgeToCells,e._edgeLengthKm=We._edgeLengthKm,e._edgeLengthM=We._edgeLengthM,e._edgeLengthRads=We._edgeLengthRads;var yn=e._emscripten_replace_memory=We._emscripten_replace_memory;e._free=We._free,e._getBaseCellNumber=We._getBaseCellNumber,e._getDirectedEdgeDestination=We._getDirectedEdgeDestination,e._getDirectedEdgeOrigin=We._getDirectedEdgeOrigin,e._getHexagonAreaAvgKm2=We._getHexagonAreaAvgKm2,e._getHexagonAreaAvgM2=We._getHexagonAreaAvgM2,e._getHexagonEdgeLengthAvgKm=We._getHexagonEdgeLengthAvgKm,e._getHexagonEdgeLengthAvgM=We._getHexagonEdgeLengthAvgM,e._getIcosahedronFaces=We._getIcosahedronFaces,e._getIndexDigit=We._getIndexDigit,e._getNumCells=We._getNumCells,e._getPentagons=We._getPentagons,e._getRes0Cells=We._getRes0Cells,e._getResolution=We._getResolution,e._greatCircleDistanceKm=We._greatCircleDistanceKm,e._greatCircleDistanceM=We._greatCircleDistanceM,e._greatCircleDistanceRads=We._greatCircleDistanceRads,e._gridDisk=We._gridDisk,e._gridDiskDistances=We._gridDiskDistances,e._gridDistance=We._gridDistance,e._gridPathCells=We._gridPathCells,e._gridPathCellsSize=We._gridPathCellsSize,e._gridRing=We._gridRing,e._gridRingUnsafe=We._gridRingUnsafe,e._i64Add=We._i64Add,e._i64Subtract=We._i64Subtract,e._isPentagon=We._isPentagon,e._isResClassIII=We._isResClassIII,e._isValidCell=We._isValidCell,e._isValidDirectedEdge=We._isValidDirectedEdge,e._isValidIndex=We._isValidIndex,e._isValidVertex=We._isValidVertex,e._latLngToCell=We._latLngToCell,e._llvm_ctlz_i64=We._llvm_ctlz_i64,e._llvm_maxnum_f64=We._llvm_maxnum_f64,e._llvm_minnum_f64=We._llvm_minnum_f64,e._llvm_round_f64=We._llvm_round_f64,e._localIjToCell=We._localIjToCell,e._malloc=We._malloc,e._maxFaceCount=We._maxFaceCount,e._maxGridDiskSize=We._maxGridDiskSize,e._maxPolygonToCellsSize=We._maxPolygonToCellsSize,e._maxPolygonToCellsSizeExperimental=We._maxPolygonToCellsSizeExperimental,e._memcpy=We._memcpy,e._memset=We._memset,e._originToDirectedEdges=We._originToDirectedEdges,e._pentagonCount=We._pentagonCount,e._polygonToCells=We._polygonToCells,e._polygonToCellsExperimental=We._polygonToCellsExperimental,e._readInt64AsDoubleFromPointer=We._readInt64AsDoubleFromPointer,e._res0CellCount=We._res0CellCount,e._round=We._round,e._sbrk=We._sbrk,e._sizeOfCellBoundary=We._sizeOfCellBoundary,e._sizeOfCoordIJ=We._sizeOfCoordIJ,e._sizeOfGeoLoop=We._sizeOfGeoLoop,e._sizeOfGeoPolygon=We._sizeOfGeoPolygon,e._sizeOfH3Index=We._sizeOfH3Index,e._sizeOfLatLng=We._sizeOfLatLng,e._sizeOfLinkedGeoPolygon=We._sizeOfLinkedGeoPolygon,e._uncompactCells=We._uncompactCells,e._uncompactCellsSize=We._uncompactCellsSize,e._vertexToLatLng=We._vertexToLatLng,e.establishStackSpace=We.establishStackSpace;var vn=e.stackAlloc=We.stackAlloc,Ge=e.stackRestore=We.stackRestore,kt=e.stackSave=We.stackSave;if(e.asm=We,e.cwrap=M,e.setValue=p,e.getValue=A,Nt){It(Nt)||(Nt=a(Nt));{Ht();
4163var _t=function(Ve){Ve.byteLength&&(Ve=new Uint8Array(Ve)),Q.set(Ve,h),e.memoryInitializerRequest&&delete e.memoryInitializerRequest.response,Le()},Dt=function(){s(Nt,_t,function(){throw"could not load memory initializer "+Nt})},jt=Zt(Nt);if(jt)_t(jt.buffer);else if(e.memoryInitializerRequest){var Lt=function(){var Ve=e.memoryInitializerRequest,pt=Ve.response;if(Ve.status!==200&&Ve.status!==0){var Tt=Zt(e.memoryInitializerRequestURL);if(Tt)pt=Tt.buffer;else{console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+Ve.status+", retrying "+Nt),Dt();return}}_t(pt)};e.memoryInitializerRequest.response?setTimeout(Lt,0):e.memoryInitializerRequest.addEventListener("load",Lt)}else Dt()}}var Bt;lt=function Ve(){Bt||Gt(),Bt||(lt=Ve)};function Gt(Ve){if(Me>0||(Se(),Me>0))return;function pt(){Bt||(Bt=!0,!g&&(Re(),Ne(),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Fe()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),pt()},1)):pt()}e.run=Gt;function hn(Ve){throw e.onAbort&&e.onAbort(Ve),Ve+="",o(Ve),l(Ve),g=!0,"abort("+Ve+"). Build with -s ASSERTIONS=1 for more info."}if(e.abort=hn,e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Gt(),t})(typeof Oi=="object"?Oi:{}),Dr="number",Rr=Dr,u8=Dr,Br=Dr,Ur=Dr,Fl=Dr,Gn=Dr,oct=[["sizeOfH3Index",Dr],["sizeOfLatLng",Dr],["sizeOfCellBoundary",Dr],["sizeOfGeoLoop",Dr],["sizeOfGeoPolygon",Dr],["sizeOfLinkedGeoPolygon",Dr],["sizeOfCoordIJ",Dr],["readInt64AsDoubleFromPointer",Dr],["isValidCell",u8,[Br,Ur]],["isValidIndex",u8,[Br,Ur]],["latLngToCell",Rr,[Dr,Dr,Fl,Gn]],["cellToLatLng",Rr,[Br,Ur,Gn]],["cellToBoundary",Rr,[Br,Ur,Gn]],["maxGridDiskSize",Rr,[Dr,Gn]],["gridDisk",Rr,[Br,Ur,Dr,Gn]],["gridDiskDistances",Rr,[Br,Ur,Dr,Gn,Gn]],["gridRing",Rr,[Br,Ur,Dr,Gn]],["gridRingUnsafe",Rr,[Br,Ur,Dr,Gn]],["maxPolygonToCellsSize",Rr,[Gn,Fl,Dr,Gn]],["polygonToCells",Rr,[Gn,Fl,Dr,Gn]],["maxPolygonToCellsSizeExperimental",Rr,[Gn,Fl,Dr,Gn]],["polygonToCellsExperimental",Rr,[Gn,Fl,Dr,Dr,Dr,Gn]],["cellsToLinkedMultiPolygon",Rr,[Gn,Dr,Gn]],["destroyLinkedMultiPolygon",null,[Gn]],["compactCells",Rr,[Gn,Gn,Dr,Dr]],["uncompactCells",Rr,[Gn,Dr,Dr,Gn,Dr,Fl]],["uncompactCellsSize",Rr,[Gn,Dr,Dr,Fl,Gn]],["isPentagon",u8,[Br,Ur]],["isResClassIII",u8,[Br,Ur]],["getBaseCellNumber",Dr,[Br,Ur]],["getResolution",Dr,[Br,Ur]],["getIndexDigit",Dr,[Br,Ur,Dr]],["constructCell",Rr,[Dr,Dr,Gn,Gn]],["maxFaceCount",Rr,[Br,Ur,Gn]],["getIcosahedronFaces",Rr,[Br,Ur,Gn]],["cellToParent",Rr,[Br,Ur,Fl,Gn]],["cellToChildren",Rr,[Br,Ur,Fl,Gn]],["cellToCenterChild",Rr,[Br,Ur,Fl,Gn]],["cellToChildrenSize",Rr,[Br,Ur,Fl,Gn]],["cellToChildPos",Rr,[Br,Ur,Fl,Gn]],["childPosToCell",Rr,[Dr,Dr,Br,Ur,Fl,Gn]],["areNeighborCells",Rr,[Br,Ur,Br,Ur,Gn]],["cellsToDirectedEdge",Rr,[Br,Ur,Br,Ur,Gn]],["getDirectedEdgeOrigin",Rr,[Br,Ur,Gn]],["getDirectedEdgeDestination",Rr,[Br,Ur,Gn]],["isValidDirectedEdge",u8,[Br,Ur]],["directedEdgeToCells",Rr,[Br,Ur,Gn]],["originToDirectedEdges",Rr,[Br,Ur,Gn]],["directedEdgeToBoundary",Rr,[Br,Ur,Gn]],["gridDistance",Rr,[Br,Ur,Br,Ur,Gn]],["gridPathCells",Rr,[Br,Ur,Br,Ur,Gn]],["gridPathCellsSize",Rr,[Br,Ur,Br,Ur,Gn]],["cellToLocalIj",Rr,[Br,Ur,Br,Ur,Dr,Gn]],["localIjToCell",Rr,[Br,Ur,Gn,Dr,Gn]],["getHexagonAreaAvgM2",Rr,[Fl,Gn]],["getHexagonAreaAvgKm2",Rr,[Fl,Gn]],["getHexagonEdgeLengthAvgM",Rr,[Fl,Gn]],["getHexagonEdgeLengthAvgKm",Rr,[Fl,Gn]],["greatCircleDistanceM",Dr,[Gn,Gn]],["greatCircleDistanceKm",Dr,[Gn,Gn]],["greatCircleDistanceRads",Dr,[Gn,Gn]],["cellAreaM2",Rr,[Br,Ur,Gn]],["cellAreaKm2",Rr,[Br,Ur,Gn]],["cellAreaRads2",Rr,[Br,Ur,Gn]],["edgeLengthM",Rr,[Br,Ur,Gn]],["edgeLengthKm",Rr,[Br,Ur,Gn]],["edgeLengthRads",Rr,[Br,Ur,Gn]],["getNumCells",Rr,[Fl,Gn]],["getRes0Cells",Rr,[Gn]],["res0CellCount",Dr],["getPentagons",Rr,[Dr,Gn]],["pentagonCount",Dr],["cellToVertex",Rr,[Br,Ur,Dr,Gn]],["cellToVertexes",Rr,[Br,Ur,Gn]],["vertexToLatLng",Rr,[Br,Ur,Gn]],["isValidVertex",u8,[Br,Ur]]],lct=0,cct=1,uct=2,fct=3,MAe=4,dct=5,hct=6,pct=7,mct=8,Act=9,gct=10,xct=11,vct=12,yct=13,_ct=14,bct=15,wct=16,Sct=17,Tct=18,Ect=19,Po={};Po[lct]="Success";Po[cct]="The operation failed but a more specific error is not available";Po[uct]="Argument was outside of acceptable range";Po[fct]="Latitude or longitude arguments were outside of acceptable range";Po[MAe]="Resolution argument was outside of acceptable range";
4163Po[dct]="Cell argument was not valid";Po[hct]="Directed edge argument was not valid";Po[pct]="Undirected edge argument was not valid";Po[mct]="Vertex argument was not valid";Po[Act]="Pentagon distortion was encountered";Po[gct]="Duplicate input";Po[xct]="Cell arguments were not neighbors";Po[vct]="Cell arguments had incompatible resolutions";Po[yct]="Memory allocation failed";Po[_ct]="Bounds of provided memory were insufficient";Po[bct]="Mode or flags argument was not valid";Po[wct]="Index argument was not valid";Po[Sct]="Base cell number was outside of acceptable range";Po[Tct]="Child indexing digits invalid";Po[Ect]="Child indexing digits refer to a deleted subsequence";var Mct=1e3,CAe=1001,NAe=1002,nk={};nk[Mct]="Unknown unit";nk[CAe]="Array length out of bounds";nk[NAe]="Got unexpected null value for H3 index";var Cct="Unknown error";function RAe(t,e,n){var r=n&&"value"in n,i=new Error((t[e]||Cct)+" (code: "+e+(r?", value: "+n.value:"")+")");return i.code=e,i}function DAe(t,e){var n=arguments.length===2?{value:e}:{};return RAe(Po,t,n)}function PAe(t,e){var n=arguments.length===2?{value:e}:{};return RAe(nk,t,n)}function $5(t){if(t!==0)throw DAe(t)}var k0={};oct.forEach(function(e){k0[e[0]]=Oi.cwrap.apply(Oi,e)});var W8=16,q5=4,D_=8,Nct=8,XR=k0.sizeOfH3Index(),cW=k0.sizeOfLatLng(),Rct=k0.sizeOfCellBoundary(),Dct=k0.sizeOfGeoPolygon(),AS=k0.sizeOfGeoLoop();k0.sizeOfLinkedGeoPolygon();k0.sizeOfCoordIJ();function Pct(t){if(typeof t!="number"||t<0||t>15||Math.floor(t)!==t)throw DAe(MAe,t);return t}function kct(t){if(!t)throw PAe(NAe);return t}var Lct=Math.pow(2,32)-1;function Oct(t){if(t>Lct)throw PAe(CAe,t);return t}var Fct=/[^0-9a-fA-F]/;function kAe(t){if(Array.isArray(t)&&t.length===2&&Number.isInteger(t[0])&&Number.isInteger(t[1]))return t;if(typeof t!="string"||Fct.test(t))return[0,0];var e=parseInt(t.substring(0,t.length-8),W8),n=parseInt(t.substring(t.length-8),W8);return[n,e]}function gae(t){if(t>=0)return t.toString(W8);t=t&2147483647;var e=LAe(8,t.toString(W8)),n=(parseInt(e[0],W8)+8).toString(W8);return e=n+e.substring(1),e}function Ict(t,e){return gae(e)+LAe(8,gae(t))}function LAe(t,e){for(var n=t-e.length,r="",i=0;i<n;i++)r+="0";return r=r+e,r}function xae(t,e,n){for(var r=t.length,i=Oi._calloc(r,cW),a=n?1:0,s=n?0:1,o=0;o<r*2;o+=2)Oi.HEAPF64.set([t[o/2][a],t[o/2][s]].map(BAe),i/D_+o);return Oi.HEAPU32.set([r,i],e/q5),e}function Bct(t,e){var n=t.length-1,r=Oi._calloc(Dct),i=0,a=i+AS,s=a+q5;xae(t[0],r+i,e);var o;if(n>0){o=Oi._calloc(n,AS);for(var l=0;l<n;l++)xae(t[l+1],o+AS*l,e)}return Oi.setValue(r+a,n,"i32"),Oi.setValue(r+s,o,"i32"),r}function Uct(t){var e=0,n=e+AS,r=n+q5,i=q5;Oi._free(Oi.getValue(t+e+i,"i8*"));var a=Oi.getValue(t+n,"i32");if(a>0){for(var s=Oi.getValue(t+r,"i32"),o=0;o<a;o++)Oi._free(Oi.getValue(s+AS*o+i,"i8*"));Oi._free(s)}Oi._free(t)}function OAe(t,e){e===void 0&&(e=0);var n=Oi.getValue(t+XR*e,"i32"),r=Oi.getValue(t+XR*e+q5,"i32");return r?Ict(n,r):null}function Vct(t){return k0.readInt64AsDoubleFromPointer(t)}function jct(t,e){for(var n=[],r=0;r<e;r++){var i=OAe(t,r);i!==null&&n.push(i)}return n}function QR(t){return qct(Oi.getValue(t,"double"))}function Hct(t){return[QR(t),QR(t+D_)]}function Gct(t){return[QR(t+D_),QR(t)]}function zct(t,e,n){for(var r=Oi.getValue(t,"i32"),i=t+D_,a=[],s=Gct,o=0;o<r*2;o+=2)a.push(s(i+D_*o));return a.push(a[0]),a}function $ct(t,e,n){var r=Oi._malloc(cW);Oi.HEAPF64.set([t,e].map(BAe),r/D_);var i=Oi._malloc(XR);try{return $5(k0.latLngToCell(r,n,i)),kct(OAe(i))}finally{Oi._free(i),Oi._free(r)}}function FAe(t){var e=Oi._malloc(cW),n=kAe(t),r=n[0],i=n[1];try{return $5(k0.cellToLatLng(r,i,e)),Hct(e)}finally{Oi._free(e)}}function IAe(t,e){var n=Oi._malloc(Rct),r=kAe(t),i=r[0],a=r[1];try{return $5(k0.cellToBoundary(i,a,n)),zct(n,e,e)}finally{Oi._free(n)}}function vae(t,e,n){if(Pct(e),n=!!n,t.length===0||t[0].length===0)return[];var r=typeof t[0][0]=="number"?[t]:t,i=Bct(r,n),a=Oi._malloc(Nct);try{$5(k0.maxPolygonToCellsSize(i,e,0,a));var s=Oct(Vct(a)),o=Oi._calloc(s,XR);try{return $5(k0.polygonToCells(i,e,0,o)),jct(o,s)}finally{Oi._free(o)}}finally{Oi._free(a),Uct(i)}}function BAe(t){return t*Math.PI/180}function qct(t){return t*180/Math.PI}function Wct(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+
4163Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}const Zct=["alphaMap","alphaTest","anisotropy","anisotropyMap","anisotropyRotation","aoMap","aoMapIntensity","attenuationColor","attenuationDistance","bumpMap","clearcoat","clearcoatMap","clearcoatNormalMap","clearcoatNormalScale","clearcoatRoughness","color","dispersion","displacementMap","emissive","emissiveIntensity","emissiveMap","envMap","envMapIntensity","gradientMap","ior","iridescence","iridescenceIOR","iridescenceMap","iridescenceThicknessMap","lightMap","lightMapIntensity","map","matcap","metalness","metalnessMap","normalMap","normalScale","opacity","roughness","roughnessMap","sheen","sheenColor","sheenColorMap","sheenRoughnessMap","shininess","specular","specularColor","specularColorMap","specularIntensity","specularIntensityMap","specularMap","thickness","transmission","transmissionMap"],KI=new WeakMap,yae=new WeakMap,_ae=new WeakMap;class Yct{constructor(e){this.renderObjects=new WeakMap,this.hasNode=this.containsNode(e),this.hasAnimation=e.object.isSkinnedMesh===!0,this.refreshUniforms=Zct,this.renderId=0}firstInitialization(e){return this.renderObjects.has(e)===!1?(this.getRenderObjectData(e),!0):!1}needsVelocity(e){const n=e.getMRT();return n!==null&&n.has("velocity")}getRenderObjectData(e){let n=this.renderObjects.get(e);if(n===void 0){const{geometry:r,object:i}=e;if(n={geometryId:r.id,worldMatrix:i.matrixWorld.clone()},i.center&&(n.center=i.center.clone()),i.morphTargetInfluences&&(n.morphTargetInfluences=i.morphTargetInfluences.slice()),e.bundle!==null&&(n.version=e.bundle.version),e.material.transmission>0){const{width:a,height:s}=e.context;n.bufferWidth=a,n.bufferHeight=s}n.lights=this.getLightsData(e.lightsNode.getLights()),this.renderObjects.set(e,n)}return n}getAttributesData(e){const n={};for(const r in e){const i=e[r];n[r]={id:i.id,version:i.version}}return n}containsNode(e){const n=e.material;for(const r in n)if(n[r]&&n[r].isNode)return!0;return!!(e.context.modelViewMatrix||e.context.modelNormalViewMatrix||e.context.getAO||e.context.getShadow)}getGeometryData(e){let n=_ae.get(e);return n===void 0&&(n={_renderId:-1,_equal:!1,attributes:this.getAttributesData(e.attributes),indexId:e.index?e.index.id:null,indexVersion:e.index?e.index.version:null,drawRange:{start:e.drawRange.start,count:e.drawRange.count}},_ae.set(e,n)),n}getMaterialData(e){let n=yae.get(e);if(n===void 0){n={_renderId:-1,_equal:!1};for(const r of this.refreshUniforms){const i=e[r];i!=null&&(typeof i=="object"&&i.clone!==void 0?i.isTexture===!0?n[r]={id:i.id,version:i.version}:n[r]=i.clone():n[r]=i)}yae.set(e,n)}return n}equals(e,n,r){const{object:i,material:a,geometry:s}=e,o=this.getRenderObjectData(e);if(o.worldMatrix.equals(i.matrixWorld)!==!0)return o.worldMatrix.copy(i.matrixWorld),!1;const l=this.getMaterialData(e.material);if(l._renderId!==r){l._renderId=r;for(const u in l){const f=l[u],h=a[u];if(u!=="_renderId"&&u!=="_equal"){if(f.equals!==void 0){if(f.equals(h)===!1)return f.copy(h),l._equal=!1,!1}else if(h.isTexture===!0){if(f.id!==h.id||f.version!==h.version)return f.id=h.id,f.version=h.version,l._equal=!1,!1}else if(f!==h)return l[u]=h,l._equal=!1,!1}}if(l.transmission>0){const{width:u,height:f}=e.context;if(o.bufferWidth!==u||o.bufferHeight!==f)return o.bufferWidth=u,o.bufferHeight=f,l._equal=!1,!1}l._equal=!0}else if(l._equal===!1)return!1;if(o.geometryId!==s.id)return o.geometryId=s.id,!1;const c=this.getGeometryData(e.geometry);if(c._renderId!==r){c._renderId=r;const u=s.attributes,f=c.attributes;let h=0,p=0;for(const M in u)h++;for(const M in f){p++;const D=f[M],k=u[M];if(k===void 0)return delete f[M],c._equal=!1,!1;if(D.id!==k.id||D.version!==k.version)return D.id=k.id,D.version=k.version,c._equal=!1,!1}if(p!==h)return c.attributes=this.getAttributesData(u),c._equal=!1,!1;const A=s.index,g=c.indexId,w=c.indexVersion,T=A?A.id:null,C=A?A.version:null;if(g!==T||w!==C)return c.indexId=T,c.indexVersion=C,c._equal=!1,!1;if(c.drawRange.start!==s.drawRange.start||c.drawRange.count!==s.drawRange.count)return c.drawRange.start=s.drawRange.start,c.drawRange.count=s.drawRange.count,c._equal=!1,!1;c._equal=!0}else if(c._equal===!1)return!1;if(o.morphTargetInfluences){let u=!1;for(let f=0;f<o.morphTargetInfluences.length;f++)o.morphTargetInfluences[f]!==i.morphTargetInfluences[f]&&(o.morphTargetInfluences[f]=i.morphTargetInfluences[f],u=!0);if(u)return!1}if(o.lights){for(let u=0;u<n.length;u++)if(o.lights[u].map!==n[u].map)return!1}return o.center&&o.center.equals(i.center)===!1?(o.center.copy(i.center),
4163!0):(e.bundle!==null&&(o.version=e.bundle.version),!0)}getLightsData(e){const n=[];for(const r of e)r.isSpotLight===!0&&r.map!==null&&n.push({map:r.map.version});return n}getLights(e,n){if(KI.has(e)){const i=KI.get(e);if(i.renderId===n)return i.lightsData}const r=this.getLightsData(e.getLights());return KI.set(e,{renderId:n,lightsData:r}),r}needsRefresh(e,n){if(this.hasNode||this.hasAnimation||this.firstInitialization(e)||this.needsVelocity(n.renderer))return!0;const{renderId:r}=n;if(this.renderId!==r)return this.renderId=r,!0;const i=e.object.static===!0,a=e.bundle!==null&&e.bundle.static===!0&&this.getRenderObjectData(e).version===e.bundle.version;if(i||a)return!1;const s=this.getLights(e.lightsNode,r);return this.equals(e,s,r)!==!0}}const Xct=[/^StackTrace\.js$/,/^TSLCore\.js$/,/^.*Node\.js$/,/^three\.webgpu.*\.js$/];function Qct(t){const e=/(?:at\s+(.+?)\s+\()?(?:(.+?)@)?([^@\s()]+):(\d+):(\d+)/;return t.split(` 4164`).map(n=>{const r=n.match(e);if(!r)return null;const i=r[1]||r[2]||"",a=r[3].split("?")[0],s=parseInt(r[4],10),o=parseInt(r[5],10),l=a.split("/").pop();return{fn:i,file:l,line:s,column:o}}).filter(n=>n&&!Xct.some(r=>r.test(n.file)))}class mo{constructor(e=null){this.isStackTrace=!0,this.stack=Qct(e||new Error().stack)}getLocation(){if(this.stack.length===0)return"[Unknown location]";const e=this.stack[0],n=e.fn;return`${n?`"${n}()" at `:""}"${e.file}:${e.line}"`}getError(e){if(this.stack.length===0)return e;const n=this.stack.map(r=>{const i=`${r.file}:${r.line}:${r.column}`;return r.fn?` at ${r.fn} (${i})`:` at ${i}`}).join(` 4165`);return`${e} 4166${n}`}}function uW(t,e=0){let n=3735928559^e,r=1103547991^e;if(Array.isArray(t))for(let i=0,a;i<t.length;i++)a=t[i],n=Math.imul(n^a,2654435761),r=Math.imul(r^a,1597334677);else for(let i=0,a;i<t.length;i++)a=t.charCodeAt(i),n=Math.imul(n^a,2654435761),r=Math.imul(r^a,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),4294967296*(2097151&r)+(n>>>0)}const x6=t=>uW(t),QT=t=>uW(t),gS=(...t)=>uW(t),Kct=new Map([[1,"float"],[2,"vec2"],[3,"vec3"],[4,"vec4"],[9,"mat3"],[16,"mat4"]]),bae=new WeakMap;function UAe(t){return Kct.get(t)}function KR(t){if(/[iu]?vec\d/.test(t))return t.startsWith("ivec")?Int32Array:t.startsWith("uvec")?Uint32Array:Float32Array;if(/mat\d/.test(t)||/float/.test(t))return Float32Array;if(/uint/.test(t))return Uint32Array;if(/int/.test(t))return Int32Array;throw new Error(`THREE.NodeUtils: Unsupported type: ${t}`)}function VAe(t){if(/float|int|uint/.test(t))return 1;if(/vec2/.test(t))return 2;if(/vec3/.test(t))return 3;if(/vec4/.test(t)||/mat2/.test(t))return 4;if(/mat3/.test(t))return 9;if(/mat4/.test(t))return 16;nn(`TSL: Unsupported type: ${t}`,new mo)}function Jct(t){if(/float|int|uint/.test(t))return 1;if(/vec2/.test(t))return 2;if(/vec3/.test(t))return 3;if(/vec4/.test(t)||/mat2/.test(t))return 4;if(/mat3/.test(t))return 12;if(/mat4/.test(t))return 16;nn(`TSL: Unsupported type: ${t}`,new mo)}function eut(t){if(/float|int|uint/.test(t))return 4;if(/vec2/.test(t))return 8;if(/vec3/.test(t)||/vec4/.test(t))return 16;if(/mat2/.test(t))return 8;if(/mat3/.test(t)||/mat4/.test(t))return 16;nn(`TSL: Unsupported type: ${t}`,new mo)}function fg(t){if(t==null)return null;const e=typeof t;return t.isNode===!0?"node":e==="number"?"float":e==="boolean"?"bool":e==="string"?"string":e==="function"?"shader":t.isVector2===!0?"vec2":t.isVector3===!0?"vec3":t.isVector4===!0?"vec4":t.isMatrix2===!0?"mat2":t.isMatrix3===!0?"mat3":t.isMatrix4===!0?"mat4":t.isColor===!0?"color":t instanceof ArrayBuffer?"ArrayBuffer":null}function fW(t,...e){const n=t?t.slice(-4):void 0;return e.length===1&&(n==="vec2"?e=[e[0],e[0]]:n==="vec3"?e=[e[0],e[0],e[0]]:n==="vec4"&&(e=[e[0],e[0],e[0],e[0]])),t==="color"?new Xn(...e):n==="vec2"?new tn(...e):n==="vec3"?new Pe(...e):n==="vec4"?new kr(...e):n==="mat2"?new AR(...e):n==="mat3"?new Vr(...e):n==="mat4"?new Fr(...e):t==="bool"?e[0]||!1:t==="float"||t==="int"||t==="uint"?e[0]||0:t==="string"?e[0]||"":t==="ArrayBuffer"?nut(e[0]):null}function jAe(t){let e=bae.get(t);return e===void 0&&(e={},bae.set(t,e)),e}function tut(t){let e="";const n=new Uint8Array(t);for(let r=0;r<n.length;r++)e+=String.fromCharCode(n[r]);return btoa(e)}function nut(t){return Uint8Array.from(atob(t),e=>e.charCodeAt(0)).buffer}const Ow={VERTEX:"vertex",FRAGMENT:"fragment"},_r={NONE:"none",FRAME:"frame",RENDER:"render",OBJECT:"object"},rut={BOOLEAN:"bool",INTEGER:"int",FLOAT:"float",VECTOR2:"vec2",VECTOR3:"vec3",VECTOR4:"vec4",MATRIX2:"mat2",MATRIX3:"mat3",MATRIX4:"mat4"},fc={READ_ONLY:"readOnly",WRITE_ONLY:"writeOnly",READ_WRITE:"readWrite"},HAe=["fragment","vertex"],X9=["setup","analyze","generate"],Q9=[...HAe,"compute"],Hy=["x","y","z","w"],iut={analyze:"setup",generate:"analyze"};let aut=0,$n=class GAe extends Fd{static get type(){return"Node"}constructor(e=null){super(),this.nodeType=e,this.updateType=_r.NONE,this.updateBeforeType=_r.NONE,this.updateAfterType=_r.NONE,this.version=0,this.name="",this.global=!1,this.parents=!1,this.isNode=!0,this._beforeNodes=null,this._cacheKey=null,this._uuid=null,this._cacheKeyVersion=0,this.id=aut++,this.stackTrace=null,GAe.captureStackTrace===!0&&(this.stackTrace=new mo)}set needsUpdate(e){e===!0&&this.version++}get uuid(){return this._uuid===null&&(this._uuid=b_.generateUUID()),this._uuid}get type(){return this.constructor.type}onUpdate(e,n){return this.updateType=n,this.update=e.bind(this),this}onFrameUpdate(e){return this.onUpdate(e,_r.FRAME)}
4166onRenderUpdate(e){return this.onUpdate(e,_r.RENDER)}onObjectUpdate(e){return this.onUpdate(e,_r.OBJECT)}onReference(e){return this.updateReference=e.bind(this),this}updateReference(){return this}isGlobal(){return this.global}*getChildren(){for(const{childNode:e}of this._getChildren())yield e}dispose(){this.dispatchEvent({type:"dispose"})}traverse(e){e(this);for(const n of this.getChildren())n.traverse(e)}_getChildren(e=new Set){const n=[];e.add(this);for(const r of Object.getOwnPropertyNames(this)){const i=this[r];if(!(r.startsWith("_")===!0||e.has(i))){if(Array.isArray(i)===!0)for(let a=0;a<i.length;a++){const s=i[a];s&&s.isNode===!0&&n.push({property:r,index:a,childNode:s})}else if(i&&i.isNode===!0)n.push({property:r,childNode:i});else if(i&&Object.getPrototypeOf(i)===Object.prototype)for(const a in i){if(a.startsWith("_")===!0)continue;const s=i[a];s&&s.isNode===!0&&n.push({property:r,index:a,childNode:s})}}}return n}getCacheKey(e=!1,n=null){if(e=e||this.version!==this._cacheKeyVersion,e===!0||this._cacheKey===null){n===null&&(n=new Set);const r=[];for(const{property:i,childNode:a}of this._getChildren(n))r.push(x6(i.slice(0,-4)),a.getCacheKey(e,n));this._cacheKey=gS(QT(r),this.customCacheKey()),this._cacheKeyVersion=this.version}return this._cacheKey}customCacheKey(){return this.id}getScope(){return this}getHash(){return String(this.id)}getUpdateType(){return this.updateType}getUpdateBeforeType(){return this.updateBeforeType}getUpdateAfterType(){return this.updateAfterType}getElementType(e){const n=this.getNodeType(e);return e.getElementType(n)}getMemberType(){return"void"}getNodeType(e,n=null){const r=e.getDataFromNode(this);let i;return n!==null?(r.typeFromOutput=r.typeFromOutput||{},i=r.typeFromOutput[n],i===void 0&&(i=this.generateNodeType(e,n),r.typeFromOutput[n]=i)):(i=r.type,i===void 0&&(i=this.generateNodeType(e),r.type=i)),i}generateNodeType(e,n=null){const r=e.getNodeProperties(this);return r.outputNode?r.outputNode.getNodeType(e,n):this.nodeType}getShared(e){const n=this.getHash(e);return e.getNodeFromHash(n)||this}getArrayCount(){return null}setup(e){const n=e.getNodeProperties(this);let r=0;for(const i of this.getChildren())n["node"+r++]=i;return n.outputNode||null}analyze(e,n=null){const r=e.increaseUsage(this);if(this.parents===!0){const i=e.getDataFromNode(this,"any");
4166i.stages=i.stages||{},i.stages[e.shaderStage]=i.stages[e.shaderStage]||[],i.stages[e.shaderStage].push(n)}if(r===1){const i=e.getNodeProperties(this);for(const a of Object.values(i))a&&a.isNode===!0&&a.build(e,this)}}generate(e,n){const{outputNode:r}=e.getNodeProperties(this);if(r&&r.isNode===!0)return r.build(e,n)}updateBefore(){Kt("Abstract function.")}updateAfter(){Kt("Abstract function.")}update(){Kt("Abstract function.")}before(e){return this._beforeNodes===null&&(this._beforeNodes=[]),this._beforeNodes.push(e),this}build(e,n=null){const r=this.getShared(e);if(this!==r)return r.build(e,n);if(this._beforeNodes!==null){const l=this._beforeNodes;this._beforeNodes=null;for(const c of l)c.build(e,n);this._beforeNodes=l}const i=e.getDataFromNode(this);i.buildStages=i.buildStages||{},i.buildStages[e.buildStage]=!0;const a=iut[e.buildStage];if(a&&i.buildStages[a]!==!0){const l=e.getBuildStage();e.setBuildStage(a),this.build(e),e.setBuildStage(l)}e.addChain(this);let s=null;const o=e.getBuildStage();if(o==="setup"){e.addNode(this),this.updateReference(e);const l=e.getNodeProperties(this);if(l.initialized!==!0){l.initialized=!0,l.outputNode=this.setup(e)||l.outputNode||null;for(const c of Object.values(l))if(c&&c.isNode===!0){if(c.parents===!0){const u=e.getNodeProperties(c);u.parents=u.parents||[],u.parents.push(this)}c.build(e)}e.addSequentialNode(this)}s=l.outputNode}else if(o==="analyze")this.analyze(e,n);else if(o==="generate"){if(this.generate.length<2){const c=this.getNodeType(e),u=e.getDataFromNode(this);s=u.snippet,s===void 0?u.generated===void 0?(u.generated=!0,s=this.generate(e)||"",u.
4166snippet=s):(Kt("Node: Recursion detected.",this),s="/* Recursion detected. */"):u.flowCodes!==void 0&&e.context.nodeBlock!==void 0&&e.addFlowCodeHierarchy(this,e.context.nodeBlock),s=e.format(s,c,n)}else s=this.generate(e,n)||"";s===""&&n!==null&&n!=="void"&&n!=="OutputType"&&(nn(`TSL: Invalid generated code, expected a "${n}".`),s=e.generateConst(n))}return e.removeChain(this),s}getSerializeChildren(){return this._getChildren()}serialize(e){const n=this.getSerializeChildren(),r={};for(const{property:i,index:a,childNode:s}of n)a!==void 0?(r[i]===void 0&&(r[i]=Number.isInteger(a)?[]:{}),r[i][a]=s.toJSON(e.meta).uuid):r[i]=s.toJSON(e.meta).uuid;Object.keys(r).length>0&&(e.inputNodes=r)}deserialize(e){if(e.inputNodes!==void 0){const n=e.meta.nodes;for(const r in e.inputNodes)if(Array.isArray(e.inputNodes[r])){const i=[];for(const a of e.inputNodes[r])i.push(n[a]);this[r]=i}else if(typeof e.inputNodes[r]=="object"){const i={};for(const a in e.inputNodes[r]){const s=e.inputNodes[r][a];i[a]=n[s]}this[r]=i}else{const i=e.inputNodes[r];this[r]=n[i]}}}toJSON(e){const{uuid:n,type:r}=this,i=e===void 0||typeof e=="string";i&&(e={textures:{},images:{},nodes:{}});let a=e.nodes[n];a===void 0&&(a={uuid:n,type:r,meta:e,metadata:{version:4.7,type:"Node",generator:"Node.toJSON"}},i!==!0&&(e.nodes[a.uuid]=a),this.serialize(a),delete a.meta);function s(o){const l=[];for(const c in o){const u=o[c];delete u.metadata,l.push(u)}return l}if(i){const o=s(e.textures),l=s(e.images),c=s(e.nodes);o.length>0&&(a.textures=o),l.length>0&&(a.images=l),c.length>0&&(a.nodes=c)}return a}};$n.captureStackTrace=!1;class Gy extends $n{static get type(){return"ArrayElementNode"}constructor(e,n){super(),this.node=e,this.indexNode=n,this.isArrayElementNode=!0}generateNodeType(e){return this.node.getElementType(e)}getMemberType(e,n){return this.node.getMemberType(e,n)}generate(e){const n=this.indexNode.getNodeType(e),r=this.node.build(e),i=this.indexNode.build(e,!e.isVector(n)&&e.isInteger(n)?n:"uint");return`${r}[ ${i} ]`}}class zAe extends $n{static get type(){return"ConvertNode"}constructor(e,n){super(),this.node=e,this.convertTo=n}generateNodeType(e){const n=this.node.getNodeType(e);let r=null;for(const i of this.convertTo.split("|"))(r===null||e.getTypeLength(n)===e.getTypeLength(i))&&(r=i);return r}serialize(e){super.serialize(e),e.convertTo=this.convertTo}deserialize(e){super.deserialize(e),this.convertTo=e.convertTo}generate(e,n){const r=this.node,i=this.getNodeType(e),a=r.build(e,i);return e.format(a,i,n)}}class eo extends $n{static get type(){return"TempNode"}constructor(e=null){super(e),this.isTempNode=!0}hasDependencies(e){return e.getDataFromNode(this).usageCount>1}build(e,n){if(e.getBuildStage()==="generate"){const i=e.getVectorType(this.getNodeType(e,n)),a=e.getDataFromNode(this);if(a.propertyName!==void 0)return e.format(a.propertyName,i,n);if(i!=="void"&&n!=="void"&&this.hasDependencies(e)){const s=super.build(e,i),o=e.getVarFromNode(this,null,i),l=e.getPropertyName(o);return e.addLineFlowCode(`${l} = ${s}`,this),a.snippet=s,a.propertyName=l,e.format(a.propertyName,i,n)}}return super.build(e,n)}}class sut extends eo{static get type(){return"JoinNode"}constructor(e=[],n=null){super(n),this.nodes=e}generateNodeType(e){return this.nodeType!==null?e.getVectorType(this.nodeType):e.getTypeFromLength(this.nodes.reduce((n,r)=>n+e.getTypeLength(r.getNodeType(e)),0))}generate(e,n){const r=this.getNodeType(e),i=e.getTypeLength(r),a=this.nodes,s=e.getComponentType(r),o=[];let l=0;for(const u of a){if(l>=i){nn(`TSL: Length of parameters exceeds maximum length of function '${r}()' type.`,this.stackTrace);break}let f=u.getNodeType(e),h=e.getTypeLength(f),p;if(l+h>i&&(nn(`TSL: Length of '${r}()' data exceeds maximum length of output type.`,this.stackTrace),h=i-l,f=e.getTypeFromLength(h)),l+=h,p=u.build(e,f),e.getComponentType(f)!==s){const g=e.getTypeFromLength(h,s);p=e.format(p,f,g)}o.push(p)}const c=`${e.getType(r)}( ${o.join(", ")} )`;return e.format(c,r,n)}}const out=Hy.join("");class $Ae extends $n{static get type(){return"SplitNode"}constructor(e,n="x"){super(),this.node=e,this.components=n,this.isSplitNode=!0}getVectorLength(){let e=this.components.length;for(const n of this.components)e=Math.max(Hy.indexOf(n)+1,e);return e}getComponentType(e){return e.getComponentType(this.node.getNodeType(e))}generateNodeType(e){return e.getTypeFromLength(this.components.length,this.getComponentType(e))}getScope(){return this.node.getScope()}generate(e,n){const r=this.node,i=e.getTypeLength(r.getNodeType(e));let a=null;if(i>1){let s=null;this.getVectorLength()>=i&&(s=e.getTypeFromLength(this.getVectorLength(),this.getComponentType(e)));const l=r.build(e,s);this.components.length===i&&this.components===out.slice(0,this.components.length)?a=e.format(l,s,n):a=e.format(`${l}.${this.components}`,this.getNodeType(e),n)}else a=r.build(e,n);return a}serialize(e){super.serialize(e),e.components=this.components}deserialize(e){super.deserialize(e),this.components=e.components}}class lut extends eo{static get type(){return"SetNode"}constructor(e,n,r){super(),this.sourceNode=e,this.components=n,this.targetNode=r}generateNodeType(e){return this.sourceNode.getNodeType(e)}generate(e){const{sourceNode:n,components:r,targetNode:i}=this,a=this.getNodeType(e),s=e.getComponentType(i.getNodeType(e)),o=e.getTypeFromLength(r.length,s),l=i.build(e,o),c=n.build(e,a),u=e.getTypeLength(a),f=[];for(let h=0;h<u;h++){const p=Hy[h];p===r[0]?(f.push(l),h+=r.length-1):f.push(c+"."+p)}return`${e.getType(a)}( ${f.join(", ")} )`}}class cut extends eo{static get type(){return"FlipNode"}constructor(e,n){super(),this.sourceNode=e,this.components=n}generateNodeType(e){return this.sourceNode.getNodeType(e)}generate(e){const{components:n,sourceNode:r}=this,i=this.getNodeType(e),a=r.build(e),s=e.getVarFromNode(this),o=e.getPropertyName(s);e.addLineFlowCode(o+" = "+a,this);const l=e.getTypeLength(i),c=[];let u=0;for(let f=0;f<l;f++){const h=Hy[f];h===n[u]?(c.push("1.0 - "+(o+"."+h)),u++):c.push(o+"."+h)}return`${e.getType(i)}( ${c.join(", ")} )`}}class dW extends $n{static get type(){return"InputNode"}constructor(e,n=null){super(n),this.isInputNode=!0,this.value=e,this.precision=null}generateNodeType(){return this.nodeType===null?fg(this.value):this.nodeType}getInputType(e){return this.getNodeType(e)}setPrecision(e){return this.precision=e,this}serialize(e){super.serialize(e),e.value=this.value,this.value&&this.value.toArray&&(e.value=this.value.toArray()),e.valueType=fg(this.value),e.nodeType=this.nodeType,e.valueType==="ArrayBuffer"&&(e.value=tut(e.value)),e.precision=this.precision}deserialize(e){super.deserialize(e),this.nodeType=e.nodeType,this.value=Array.isArray(e.value)?fW(e.valueType,...e.value):e.value,this.precision=e.precision||null,this.value&&this.value.fromArray&&(this.value=this.value.fromArray(e.value))}generate(){Kt("Abstract function.")}}const wae=/float|u?int/;class Id extends dW{static get type(){return"ConstNode"}constructor(e,n=null){super(e,n),this.isConstNode=!0}generateConst(e){return e.generateConst(this.getNodeType(e),this.value)}generate(e,n){const r=this.getNodeType(e);return wae.test(r)&&wae.test(n)?e.generateConst(n,this.value):e.format(this.generateConst(e),r,n)}}class uut extends $n{static get type(){return"MemberNode"}constructor(e,n){super(),this.structNode=e,this.property=n,this.isMemberNode=!0}hasMember(e){return this.structNode.isMemberNode&&this.structNode.hasMember(e)===!1?!1:this.structNode.getMemberType(e,this.property)!=="void"}generateNodeType(e){return this.hasMember(e)===!1?"float":this.structNode.getMemberType(e,this.property)}getMemberType(e,n){if(this.hasMember(e)===!1)return"float";const r=this.getNodeType(e);return e.getStructTypeNode(r).getMemberType(e,n)}generate(e){if(this.hasMember(e)===!1){Kt(`TSL: Member "${this.property}" does not exist in struct.`,this.stackTrace);const r=this.getNodeType(e);return e.generateConst(r)}return this.structNode.build(e)+"."+this.property}}let Yg=null;const tH=new Map;function zt(t,e){if(tH.has(t)){Kt(`TSL: Redefinition of method chaining '${t}'.`);return}if(typeof e!="function")throw new Error(`THREE.TSL: Node element ${t} is not a function`);tH.set(t,e),t!=="assign"&&($n.prototype[t]=function(...n){return this.isStackNode?this.addToStack(e(...n)):e(this,...n
4166)},$n.prototype[t+"Assign"]=function(...n){return this.isStackNode?this.assign(n[0],e(...n)):this.assign(e(this,...n))})}const fut=t=>t.replace(/r|s/g,"x").replace(/g|t/g,"y").replace(/b|p/g,"z").replace(/a|q/g,"w"),Sae=t=>fut(t).split("").sort().join("");$n.prototype.assign=function(...t){if(this.isStackNode!==!0)return Yg!==null?Yg.assign(this,...t):nn("TSL: No stack defined for assign operation. Make sure the assign is inside a Fn().",new mo),this;{const e=tH.get("assign");return this.addToStack(e(...t))}};$n.prototype.toVarIntent=function(){return this};$n.prototype.get=function(t){return new uut(this,t)};const xS={};function X7(t,e,n){xS[t]=xS[e]=xS[n]={get(){this._cache=this._cache||{};let s=this._cache[t];return s===void 0&&(s=new $Ae(this,t),this._cache[t]=s),s},set(s){this[t].assign(Un(s))}};const r=t.toUpperCase(),i=e.toUpperCase(),a=n.toUpperCase();$n.prototype["set"+r]=$n.prototype["set"+i]=$n.prototype["set"+a]=function(s){const o=Sae(t);return new lut(this,o,Un(s))},$n.prototype["flip"+r]=$n.prototype["flip"+i]=$n.prototype["flip"+a]=function(){const s=Sae(t);return new cut(this,s)}}const p1=["x","y","z","w"],m1=["r","g","b","a"],A1=["s","t","p","q"];for(let t=0;t<4;t++){let e=p1[t],n=m1[t],r=A1[t];X7(e,n,r);for(let i=0;i<4;i++){e=p1[t]+p1[i],n=m1[t]+m1[i],r=A1[t]+A1[i],X7(e,n,r);for(let a=0;a<4;a++){e=p1[t]+p1[i]+p1[a],n=m1[t]+m1[i]+m1[a],r=A1[t]+A1[i]+A1[a],X7(e,n,r);for(let s=0;s<4;s++)e=p1[t]+p1[i]+p1[a]+p1[s],n=m1[t]+m1[i]+m1[a]+m1[s],r=A1[t]+A1[i]+A1[a]+A1[s],X7(e,n,r)}}}for(let t=0;t<32;t++)xS[t]={get(){this._cache=this._cache||{};let e=this._cache[t];return e===void 0&&(e=new Gy(this,new Id(t,"uint")),this._cache[t]=e),e},set(e){this[t].assign(Un(e))}};Object.defineProperties($n.prototype,xS);const Tae=new WeakMap,dut=function(t,e=null){const n=fg(t);return n==="node"?t:e===null&&(n==="float"||n==="boolean")||n&&n!=="shader"&&n!=="string"?Un(nH(t,e)):n==="shader"?t.isFn?t:it(t):t},hut=function(t,e=null){for(const n in t)t[n]=Un(t[n],e);return t},put=function(t,e=null){const n=t.length;for(let r=0;r<n;r++)t[r]=Un(t[r],e);return t},qAe=function(t,e=null,n=null,r=null){function i(u){return r!==null?(u=Un(Object.assign(u,r)),r.intent===!0&&(u=u.toVarIntent())):u=Un(u),u}let a,s=e,o,l;function c(u){let f;return s?f=/[a-z]/i.test(s)?s+"()":s:f=t.type,o!==void 0&&u.length<o?(nn(`TSL: "${f}" parameter length is less than minimum required.`,new mo),u.concat(new Array(o-u.length).fill(0))):l!==void 0&&u.length>l?(nn(`TSL: "${f}" parameter length exceeds limit.`,new mo),u.slice(0,l)):u}return e===null?a=(...u)=>i(new t(...Jv(c(u)))):n!==null?(n=Un(n),a=(...u)=>i(new t(e,...Jv(c(u)),n))):a=(...u)=>i(new t(e,...Jv(c(u)))),a.setParameterLength=(...u)=>(u.length===1?o=l=u[0]:u.length===2&&([o,l]=u),a),a.setName=u=>(s=u,a),a},mut=function(t,...e){return new t(...Jv(e))};class Aut extends $n{constructor(e,n){super(),this.shaderNode=e,this.rawInputs=n,this.isShaderCallNodeInternal=!0}generateNodeType(e){return this.shaderNode.nodeType||this.getOutputNode(e).getNodeType(e)}getElementType(e){return this.getOutputNode(e).getElementType(e)}getMemberType(e,n){return this.getOutputNode(e).getMemberType(e,n)}call(e){const{shaderNode:n,rawInputs:r}=this,i=e.getNodeProperties(n),a=e.getClosestSubBuild(n.subBuilds)||"",s=a||"default";if(i[s])return i[s];const o=e.subBuildFn,l=e.fnCall;e.subBuildFn=a,e.fnCall=this;let c=null;if(n.layout){let u=Tae.get(e.constructor);u===void 0&&(u=new WeakMap,Tae.set(e.constructor,u));let f=u.get(n);f===void 0&&(f=Un(e.buildFunctionNode(n)),u.set(n,f)),e.addInclude(f);const h=r?gut(r):null;c=Un(f.call(h))}else{const u=new Proxy(e,{get:(g,w,T)=>{let C;return Symbol.iterator===w?C=function*(){yield void 0}:C=Reflect.get(g,w,T),C}}),f=r?xut(r):null,h=Array.isArray(r)?r.length>0:r!==null,p=n.jsFunc,A=h||p.length>1?p(f,u):p(u);c=Un(A)}return e.subBuildFn=o,e.fnCall=l,n.once&&(i[s]=c),c}setupOutput(e){return e.addStack(),e.stack.outputNode=this.call(e),e.removeStack()}getOutputNode(e){const n=e.getNodeProperties(this),r=e.getSubBuildOutput(this);return n[r]=n[r]||this.setupOutput(e),n[r].subBuild=e.getClosestSubBuild(this),n[r]}build(e,n=null){let r=null;const i=e.getBuildStage(),a=e.getNodeProperties(this),s=e.getSubBuildOutput(this),o=this.getOutputNode(e),l=e.fnCall;if(e.fnCall=this,i==="setup"){const c=e.getSubBuildProperty("initialized",this);if(a[c]!==!0&&(a[c]=!0,a[s]=this.getOutputNode(e),a[s].build(e),this.shaderNode.subBuilds))for(const u of e.chaining){const f=e.getDataFromNode(u,"any");f.subBuilds=f.subBuilds||new Set;for(const h of this.shaderNode.subBuilds)f.subBuilds.add(h)}r=a[s]}else i==="analyze"?o.build(e,n):i==="generate"&&(r=o.build(e,n)||"");return e.fnCall=l,r}}function gut(t){let e;return ak(t),t[0]&&(t[0].isNode||Object.getPrototypeOf(t[0])!==Object.prototype)?e=[...t]:e=t[0],e}function xut(t){let e=0;return ak(t),new Proxy(t,{get:(n,r,i)=>{let a;if(r==="length")return a=t.length,a;if(Symbol.iterator===r)a=function*(){for(const s of t)yield Un(s)};else{if(t.length>0)if(Object.getPrototypeOf(t[0])===Object.prototype){const s=t[0];s[r]===void 0?a=s[e++]:a=Reflect.get(s,r,i)}else t[0]instanceof $n&&(t[r]===void 0?a=t[e++]:a=Reflect.get(t,r,i));else a=Reflect.get(n,r,i);a=Un(a)}return a}})}class vut extends $n{constructor(e,n){super(n),this.jsFunc=e,this.layout=null,this.global=!0,this.once=!1}setLayout(e){return this.layout=e,this}getLayout(){return this.layout}call(e=null){return new Aut(this,e)}setup(){return this.call()}}const yut=[!1,!0],_ut=[0,1,2,3],but=[-1,-2],WAe=[.5,1.5,1/3,1e-6,1e6,Math.PI,Math.PI*2,1/Math.PI,2/Math.PI,1/(Math.PI*2),Math.PI/2],hW=new Map;for(const t of yut)hW.set(t,new Id(t));const pW=new Map;for(const t of _ut)pW.set(t,new Id(t,"uint"));const mW=new Map([...pW].map(t=>new Id(t.value,"int")));for(const t of but)mW.set(t,new Id(t,"int"));const rk=new Map([...mW].map(t=>new Id(t.value)));for(const t of WAe)rk.set(t,new Id(t));for(const t of WAe)rk.set(-t,new Id(-t));const ik={bool:hW,uint:pW,ints:mW,float:rk},Eae=new Map([...hW,...rk]),nH=(t,e)=>Eae.has(t)?Eae.get(t):t.isNode===!0?t:new Id(t,e),el=function(t,e=null){return(...n)=>{for(const i of n)if(i===void 0)return nn(`TSL: Invalid parameter for the type "${t}".`,new mo),new Id(0,t);if((n.length===0||!["bool","float","int","uint"].includes(t)&&n.every(i=>{const a=typeof i;return a!=="object"&&a!=="function"}))&&(n=[fW(t,...n)]),n.length===1&&e!==null&&e.has(n[0]))return Fw(e.get(n[0]));if(n.length===1){const i=nH(n[0],t);return i.nodeType===t?Fw(i):Fw(new zAe(i,t))}const r=n.map(i=>nH(i));return Fw(new sut(r,t))}};function P_(t){return t&&t.isNode&&t.traverse(e=>{e.isConstNode&&(t=e.value)}),!!t}const ZAe=t=>t!=null?t.nodeType||t.convertTo||(typeof t=="string"?t:null):null;function Z8(t,e){return new vut(t,e)}const Un=(t,e=null)=>dut(t,e),Fw=(t,e=null)=>
4166Un(t,e).toVarIntent(),ak=(t,e=null)=>new hut(t,e),Jv=(t,e=null)=>new put(t,e),Wr=(t,e=null,n=null,r=null)=>new qAe(t,e,n,r),Rn=(t,...e)=>new mut(t,...e),fn=(t,e=null,n=null,r={})=>new qAe(t,e,n,{...r,intent:!0});let wut=0;class Sut extends $n{constructor(e,n=null){super();let r=null;n!==null&&(typeof n=="object"?r=n.return:(typeof n=="string"?r=n:nn("TSL: Invalid layout type.",new mo),n=null)),this.shaderNode=new Z8(e,r),n!==null&&this.setLayout(n),this.isFn=!0}setLayout(e){const n=this.shaderNode.nodeType;if(typeof e.inputs!="object"){const r={name:"fn"+wut++,type:n,inputs:[]};for(const i in e)i!=="return"&&r.inputs.push({name:i,type:e[i]});e=r}return this.shaderNode.setLayout(e),this}generateNodeType(e){return this.shaderNode.getNodeType(e)||"float"}call(...e){const n=this.shaderNode.call(e);return this.shaderNode.nodeType==="void"&&n.toStack(),n.toVarIntent()}once(e=null){return this.shaderNode.once=!0,this.shaderNode.subBuilds=e,this}generate(e){const n=this.getNodeType(e);return nn('TSL: "Fn()" was declared but not invoked. Try calling it like "Fn()( ...params )".',this.stackTrace),e.generateConst(n)}}function it(t,e=null){const n=new Sut(t,e);return new Proxy(()=>{},{apply(r,i,a){return n.call(...a)},get(r,i,a){return Reflect.get(n,i,a)},set(r,i,a,s){return Reflect.set(n,i,a,s)}})}const W5=t=>{Yg=t},AW=()=>Yg,sr=(...t)=>Yg.If(...t),Tut=(...t)=>Yg.Switch(...t);function sk(t){return Yg&&Yg.addToStack(t),t}zt("toStack",sk);const YAe=new el("color"),ke=new el("float",ik.float),$e=new el("int",ik.ints),ln=new el("uint",ik.uint),Ef=new el("bool",ik.bool),dn=new el("vec2"),Go=new el("ivec2"),gW=new el("uvec2"),XAe=new el("bvec2"),Je=new el("vec3"),xW=new el("ivec3"),zy=new el("uvec3"),vW=new el("bvec3"),er=new el("vec4"),yW=new el("ivec4"),_W=new el("uvec4"),QAe=new el("bvec4"),ok=new el("mat2"),zl=new el("mat3"),Dg=new el("mat4"),Eut=(t="")=>new Id(t,"string"),Mut=t=>new Id(t,"ArrayBuffer");zt("toColor",YAe);zt("toFloat",ke);zt("toInt",$e);zt("toUint",ln);zt("toBool",Ef);zt("toVec2",dn);zt("toIVec2",Go);zt("toUVec2",gW);zt("toBVec2",XAe);zt("toVec3",Je);zt("toIVec3",xW);zt("toUVec3",zy);zt("toBVec3",vW);zt("toVec4",er);zt("toIVec4",yW);zt("toUVec4",_W);zt("toBVec4",QAe);zt("toMat2",ok);zt("toMat3",zl);zt("toMat4",Dg);const KAe=Wr(Gy).setParameterLength(2),JAe=(t,e)=>new zAe(Un(t),e),Cut=(t,e)=>new $Ae(Un(t),e);zt("element",KAe);zt("convert",JAe);const Nut=t=>(Kt("TSL: append() has been renamed to Stack().",new mo),sk(t));zt("append",t=>(Kt("TSL: .append() has been renamed to .toStack().",new mo),sk(t)));class ta extends $n{static get type(){return"PropertyNode"}constructor(e,n=null,r=!1){super(e),this.name=n,this.varying=r,this.isPropertyNode=!0,this.global=!0}customCacheKey(){return x6(this.type+":"+(this.name||"")+":"+(this.varying?"1":"0"))}getHash(e){return this.name||super.getHash(e)}generate(e){let n;return this.varying===!0?(n=e.getVaryingFromNode(this,this.name),n.needsInterpolation=!0):n=e.getVarFromNode(this,this.name),e.getPropertyName(n)}}const d2=(t,e)=>new ta(t,e),Z5=(t,e)=>new ta(t,e,!0),va=Rn(ta,"vec4","DiffuseColor"),fv=Rn(ta,"vec3","DiffuseContribution"),rH=Rn(ta,"vec3","EmissiveColor"),H1=Rn(ta,"float","Roughness"),Jm=Rn(ta,"float","Metalness"),JR=Rn(ta,"float","Clearcoat"),_3=Rn(ta,"float","ClearcoatRoughness"),K0=Rn(ta,"vec3","Sheen"),zA=Rn(ta,"float","SheenRoughness"),lk=Rn(ta,"float","Iridescence"),eD=Rn(ta,"float","IridescenceIOR"),tD=Rn(ta,"float","IridescenceThickness"),nD=Rn(ta,"float","AlphaT"),BA=Rn(ta,"float","Anisotropy"),vS=Rn(ta,"vec3","AnisotropyT"),ey=Rn(ta,"vec3","AnisotropyB"),Xg=Rn(ta,"color","SpecularColor"),Dv=Rn(ta,"color","SpecularColorBlended"),Pv=Rn(ta,"float","SpecularF90"),rD=Rn(ta,"float","Shininess"),b3=Rn(ta,"vec4","Output"),K9=Rn(ta,"float","dashSize"),iH=Rn(ta,"float","gapSize"),Rut=Rn(ta,"float","pointWidth"),yS=Rn(ta,"float","IOR"),iD=Rn(ta,"float","Transmission"),bW=Rn(ta,"float","Thickness"),wW=Rn(ta,"float","AttenuationDistance"),SW=Rn(ta,"color","AttenuationColor"),TW=Rn(ta,"float","Dispersion");class ege extends $n{static get type(){return"UniformGroupNode"}constructor(e,n=!1,r=1,i=null){super("string"),this.name=e,this.shared=n,this.order=r,this.updateType=i,this.isUniformGroup=!0}
4166update(){this.needsUpdate=!0}serialize(e){super.serialize(e),e.name=this.name,e.version=this.version,e.shared=this.shared}deserialize(e){super.deserialize(e),this.name=e.name,this.version=e.version,this.shared=e.shared}}const tge=(t,e=1,n=null)=>new ege(t,!1,e,n),ck=(t,e=0,n=null)=>new ege(t,!0,e,n),Dut=ck("frame",0,_r.FRAME),rr=ck("render",0,_r.RENDER),nge=tge("object",1,_r.OBJECT);class KT extends dW{static get type(){return"UniformNode"}constructor(e,n=null){super(e,n),this.isUniformNode=!0,this.name="",this.groupNode=nge}setName(e){return this.name=e,this}label(e){return Kt('TSL: "label()" has been deprecated. Use "setName()" instead.',new mo),this.setName(e)}setGroup(e){return this.groupNode=e,this}getGroup(){return this.groupNode}getUniformHash(e){return this.getHash(e)}onUpdate(e,n){return e=e.bind(this),super.onUpdate(r=>{const i=e(r,this);i!==void 0&&(this.value=i)},n)}getInputType(e){let n=super.getInputType(e);return n==="bool"&&(n="uint"),n}generate(e,n){const r=this.getNodeType(e),i=this.getUniformHash(e);let a=e.getNodeFromHash(i);a===void 0&&(e.setHashNode(this,i),a=this);const s=a.getInputType(e),o=e.getUniformFromNode(a,s,e.shaderStage,this.name||e.context.nodeName),l=e.getPropertyName(o);e.context.nodeName!==void 0&&delete e.context.nodeName;let c=l;if(r==="bool"){const u=e.getDataFromNode(this);let f=u.propertyName;if(f===void 0){const h=e.getVarFromNode(this,null,"bool");f=e.getPropertyName(h),u.propertyName=f,c=e.format(l,s,r),e.addLineFlowCode(`${f} = ${c}`,this)}c=f}return e.format(c,r,n)}}const qn=(t,e)=>{const n=ZAe(e||t);if(n===t&&(t=fW(n)),t&&t.isNode===!0){let r=t.value;t.traverse(i=>{i.isConstNode===!0&&(r=i.value)}),t=r}return new KT(t,n)};class Mae extends eo{static get type(){return"ArrayNode"}constructor(e,n,r=null){super(e),this.count=n,this.values=r,this.isArrayNode=!0}getArrayCount(){return this.count}generateNodeType(e){return this.nodeType===null?this.values[0].getNodeType(e):this.nodeType}getElementType(e){return this.getNodeType(e)}getMemberType(e,n){return this.nodeType===null?this.values[0].getMemberType(e,n):super.getMemberType(e,n)}generate(e){const n=this.getNodeType(e);return e.generateArray(n,this.count,this.values)}}const rge=(...t)=>{let e;if(t.length===1){const n=t[0];e=new Mae(null,n.length,n)}else{const n=t[0],r=t[1];e=new Mae(n,r)}return Un(e)};zt("toArray",(t,e)=>rge(Array(e).fill(t)));class Put extends eo{static get type(){return"AssignNode"}constructor(e,n){super(),this.targetNode=e,this.sourceNode=n,this.isAssignNode=!0}hasDependencies(){return!1}generateNodeType(e,n){return n!=="void"?this.targetNode.getNodeType(e):"void"}needsSplitAssign(e){const{targetNode:n}=this;if(e.isAvailable("swizzleAssign")===!1&&n.isSplitNode&&n.components.length>1){const r=e.getTypeLength(n.node.getNodeType(e));return Hy.join("").slice(0,r)!==n.components}return!1}setup(e){const{targetNode:n,sourceNode:r}=this,i=n.getScope(),a=e.getDataFromNode(i);a.assign=!0;const s=e.getNodeProperties(this);s.sourceNode=r,s.targetNode=n.context({assign:!0})}generate(e,n){const{targetNode:r,sourceNode:i}=e.getNodeProperties(this),a=this.needsSplitAssign(e),s=r.build(e),o=r.getNodeType(e),l=i.build(e,o),c=i.getNodeType(e),u=e.getDataFromNode(this);let f;if(u.initialized===!0)n!=="void"&&(f=s);else if(a){const h=e.getVarFromNode(this,null,o),p=e.getPropertyName(h);e.addLineFlowCode(`${p} = ${l}`,this);const A=r.node,w=A.node.context({assign:!0}).build(e);for(let T=0;T<A.components.length;T++){const C=A.components[T];e.addLineFlowCode(`${w}.${C} = ${p}[ ${T} ]`,this)}n!=="void"&&(f=s)}else f=`${s} = ${l}`,(n==="void"||c==="void")&&(e.addLineFlowCode(f,this),n!=="void"&&(f=s));return u.initialized=!0,e.format(f,o,n)}}const ige=Wr(Put).setParameterLength(2);zt("assign",ige);class kut extends eo{static get type(){return"FunctionCallNode"}constructor(e=null,n={}){super(),this.functionNode=e,this.parameters=n}setParameters(e){return this.parameters=e,this}getParameters(){return this.parameters}generateNodeType(e){return this.functionNode.getNodeType(e)}getMemberType(e,n){return this.functionNode.getMemberType(e,n)}
4166generate(e){const n=[],r=this.functionNode,i=r.getInputs(e),a=this.parameters,s=(l,c)=>{const u=c.type,f=u==="pointer";let h;return f?h="&"+l.build(e):h=l.build(e,u),h};if(Array.isArray(a)){if(a.length>i.length)nn("TSL: The number of provided parameters exceeds the expected number of inputs in 'Fn()'."),a.length=i.length;else if(a.length<i.length)for(nn("TSL: The number of provided parameters is less than the expected number of inputs in 'Fn()'.");a.length<i.length;)a.push(ke(0));for(let l=0;l<a.length;l++)n.push(s(a[l],i[l]))}else for(const l of i){const c=a[l.name];c!==void 0?n.push(s(c,l)):(nn(`TSL: Input '${l.name}' not found in 'Fn()'.`),n.push(s(ke(0),l)))}return`${r.build(e,"property")}( ${n.join(", ")} )`}}const age=(t,...e)=>(e=e.length>1||e[0]&&e[0].isNode===!0?Jv(e):ak(e[0]),new kut(Un(t),e));zt("call",age);const Lut={"==":"equal","!=":"notEqual","<":"lessThan",">":"greaterThan","<=":"lessThanEqual",">=":"greaterThanEqual","%":"mod"};class Bs extends eo{static get type(){return"OperatorNode"}constructor(e,n,r,...i){if(super(),i.length>0){let a=new Bs(e,n,r);for(let s=0;s<i.length-1;s++)a=new Bs(e,a,i[s]);n=a,r=i[i.length-1]}this.op=e,this.aNode=n,this.bNode=r,this.isOperatorNode=!0}getOperatorMethod(e,n){return e.getMethod(Lut[this.op],n)}generateNodeType(e,n=null){const r=this.op,i=this.aNode,a=this.bNode,s=i.getNodeType(e),o=a?a.getNodeType(e):null;if(s==="void"||o==="void")return n||"void";if(r==="%")return s;if(r==="~"||r==="&"||r==="|"||r==="^"||r===">>"||r==="<<")return e.getIntegerType(s);if(r==="!"||r==="&&"||r==="||"||r==="^^")return"bool";if(r==="=="||r==="!="||r==="<"||r===">"||r==="<="||r===">="){const l=Math.max(e.getTypeLength(s),e.getTypeLength(o));return l>1?`bvec${l}`:"bool"}else{if(e.isMatrix(s)){if(o==="float")return s;if(e.isVector(o))return e.getVectorFromMatrix(s);if(e.isMatrix(o))return s}else if(e.isMatrix(o)){if(s==="float")return o;if(e.isVector(s))return e.getVectorFromMatrix(o)}return e.getTypeLength(o)>e.getTypeLength(s)?o:s}}generate(e,n){const r=this.op,{aNode:i,bNode:a}=this,s=this.getNodeType(e,n);let o=null,l=null;s!=="void"?(o=i.getNodeType(e),l=a?a.getNodeType(e):null,r==="<"||r===">"||r==="<="||r===">="||r==="=="||r==="!="?e.isVector(o)?l=o:e.isVector(l)?o=l:o!==l&&(o=l="float"):r===">>"||r==="<<"?(o=s,l=e.changeComponentType(l,"uint")):r==="%"?(o=s,l=e.isInteger(o)&&e.isInteger(l)?l:o):e.isMatrix(o)?l==="float"?l="float":e.isVector(l)?l=e.getVectorFromMatrix(o):e.isMatrix(l)||(o=l=s):e.isMatrix(l)?o==="float"?o="float":e.isVector(o)?o=e.getVectorFromMatrix(l):o=l=s:o=l=s):o=l=s;const c=i.build(e,o),u=a?a.build(e,l):null,f=e.getFunctionOperator(r);if(n!=="void"){const h=e.renderer.coordinateSystem===Iu;if(r==="=="||r==="!="||r==="<"||r===">"||r==="<="||r===">=")return h?e.isVector(o)?e.format(`${this.getOperatorMethod(e,n)}( ${c}, ${u} )`,s,n):e.format(`( ${c} ${r} ${u} )`,s,n):e.format(`( ${c} ${r} ${u} )`,s,n);if(r==="%")return e.isInteger(l)?e.format(`( ${c} % ${u} )`,s,n):e.format(`${this.getOperatorMethod(e,s)}( ${c}, ${u} )`,s,n);if(r==="!"||r==="~")return e.format(`(${r}${c})`,o,n);if(f)return e.format(`${f}( ${c}, ${u} )`,s,n);if(e.isMatrix(o)&&l==="float")return e.format(`( ${u} ${r} ${c} )`,s,n);if(o==="float"&&e.isMatrix(l))return e.format(`${c} ${r} ${u}`,s,n);{let p=`( ${c} ${r} ${u} )`;return!h&&s==="bool"&&e.isVector(o)&&e.isVector(l)&&(p=`all${p}`),e.format(p,s,n)}}else if(o!=="void")return f?e.format(`${f}( ${c}, ${u} )`,s,n):e.isMatrix(o)&&l==="float"?e.format(`${u} ${r} ${c}`,s,n):e.format(`${c} ${r} ${u}`,s,n)}serialize(e){super.serialize(e),e.op=this.op}deserialize(e){super.deserialize(e),this.op=e.op}}const Ro=fn(Bs,"+").setParameterLength(2,1/0).setName("add"),bi=fn(Bs,"-").setParameterLength(2,1/0).setName("sub"),Lr=fn(Bs,"*").setParameterLength(2,1/0).setName("mul"),Mf=fn(Bs,"/").setParameterLength(2,1/0).setName("div"),JT=fn(Bs,"%").setParameterLength(2).setName("mod"),sge=fn(Bs,"==").setParameterLength(2).setName("equal"),oge=fn(Bs,"!=").setParameterLength(2).setName("notEqual"),lge=fn(Bs,"<").setParameterLength(2).setName("lessThan"),EW=fn(Bs,">").setParameterLength(2).setName("greaterThan"),cge=fn(Bs,"<=").setParameterLength(2).setName("lessThanEqual"),uge=fn(Bs,">=").setParameterLength(2).setName("greaterThanEqual"),fge=fn(Bs,"&&").setParameterLength(2,1/0).setName("and"),dge=fn(Bs,"||").setParameterLength(2,1/0).setName("or"),hge=fn(Bs,"!").setParameterLength(1).setName("not"),pge=fn(Bs,"^^").setParameterLength(2).setName("xor"),mge=fn(Bs,"&").setParameterLength(2).setName("bitAnd"),Age=fn(Bs,"~").setParameterLength(1).setName("bitNot"),gge=fn(Bs,"|").setParameterLength(2).setName("bitOr"),xge=fn(Bs,"^").setParameterLength(2).setName("bitXor"),vge=fn(Bs,"<<").setParameterLength(2).setName("shiftLeft"),yge=fn(Bs,">>").setParameterLength(2).setName("shiftRight"),_ge=it(([t])=>(t.addAssign(1),t)),bge=it(([t])=>(t.subAssign(1),t)),wge=it(([t])=>{const e=$e(t).toConst();return t.addAssign(1),e}),Sge=it(([t])=>{const e=$e(t).toConst();return t.subAssign(1),e});zt("add",Ro);zt("sub",bi);zt("mul",Lr);zt("div",Mf);zt("mod",JT);zt("equal",sge);zt("notEqual",oge);zt("lessThan",lge);zt("greaterThan",EW);zt("lessThanEqual",cge);zt("greaterThanEqual",uge);zt("and",fge);zt("or",dge);zt("not",hge);zt("xor",pge);zt("bitAnd",mge);zt("bitNot",Age);zt("bitOr",gge);zt("bitXor",xge);zt("shiftLeft",vge);zt("shiftRight",yge);zt("incrementBefore",_ge);zt("decrementBefore",bge);zt("increment",wge);zt("decrement",Sge);const Tge=(t,e)=>(Kt('TSL: "modInt()" is deprecated. Use "mod( int( ... ) )" instead.',new mo),JT($e(t),$e(e)));zt("modInt",Tge);class vt extends eo{static get type(){return"MathNode"}constructor(e,n,r=null,i=null){if(super(),(e===vt.MAX||e===vt.MIN)&&arguments.length>3){let a=new vt(e,n,r);for(let s=2;s<arguments.length-1;s++)a=new vt(e,a,arguments[s]);n=a,r=arguments[arguments.length-1],i=null}this.method=e,this.aNode=n,this.bNode=r,this.cNode=i,this.isMathNode=!0}getInputType(e){const n=this.aNode.getNodeType(e),r=this.bNode?this.bNode.getNodeType(e):null,i=this.cNode?this.cNode.getNodeType(e):null,a=e.isMatrix(n)?0:e.getTypeLength(n),s=e.isMatrix(r)?0:e.getTypeLength(r),o=e.isMatrix(i)?0:e.getTypeLength(i);return a>s&&a>o?n:s>o?r:o>a?i:n}generateNodeType(e){const n=this.method;return n===vt.LENGTH||n===vt.DISTANCE||n===vt.DOT?"float":n===vt.CROSS?"vec3":n===vt.ALL||n===vt.ANY?"bool":n===vt.EQUALS?e.changeComponentType(this.aNode.getNodeType(e),"bool"):this.getInputType(e)}setup(e){const{aNode:n,bNode:r,method:i}=this;let a=null;if(i===vt.ONE_MINUS)a=bi(1,n);else if(i===vt.RECIPROCAL)a=Mf(1,n);else if(i===vt.DIFFERENCE)a=qa(bi(n,r));else if(i===vt.TRANSFORM_DIRECTION){let s=n,o=r;e.isMatrix(s.getNodeType(e))?o=er(Je(o),0):s=er(Je(s),0);const l=Lr(s,o).xyz;a=R0(l)}return a!==null?a:super.setup(e)}generate(e,n){if(e.getNodeProperties(this).outputNode)return super.generate(e,n);let i=this.method;const a=this.getNodeType(e),s=this.getInputType(e),o=this.aNode,l=this.bNode,c=this.cNode,u=e.renderer.coordinateSystem;if(i===vt.NEGATE)return e.format("( - "+o.build(e,s)+" )",a,n);{const f=[];return i===vt.CROSS?f.push(o.build(e,a),l.build(e,a)):u===Iu&&i===vt.STEP?f.pu
4166sh(o.build(e,e.getTypeLength(o.getNodeType(e))===1?"float":s),l.build(e,s)):u===Iu&&(i===vt.MIN||i===vt.MAX)?f.push(o.build(e,s),l.build(e,e.getTypeLength(l.getNodeType(e))===1?"float":s)):i===vt.REFRACT?f.push(o.build(e,s),l.build(e,s),c.build(e,"float")):i===vt.MIX?f.push(o.build(e,s),l.build(e,s),c.build(e,e.getTypeLength(c.getNodeType(e))===1?"float":s)):(u===_d&&i===vt.ATAN&&l!==null&&(i="atan2"),e.shaderStage!=="fragment"&&(i===vt.DFDX||i===vt.DFDY)&&(Kt(`TSL: '${i}' is not supported in the ${e.shaderStage} stage.`,this.stackTrace),i="/*"+i+"*/"),f.push(o.build(e,s)),l!==null&&f.push(l.build(e,s)),c!==null&&f.push(c.build(e,s))),e.format(`${e.getMethod(i,a)}( ${f.join(", ")} )`,a,n)}}serialize(e){super.serialize(e),e.method=this.method}deserialize(e){super.deserialize(e),this.method=e.method}}vt.ALL="all";vt.ANY="any";vt.RADIANS="radians";vt.DEGREES="degrees";vt.EXP="exp";vt.EXP2="exp2";vt.LOG="log";vt.LOG2="log2";vt.SQRT="sqrt";vt.INVERSE_SQRT="inversesqrt";vt.FLOOR="floor";vt.CEIL="ceil";vt.NORMALIZE="normalize";vt.FRACT="fract";vt.SIN="sin";vt.SINH="sinh";vt.COS="cos";vt.COSH="cosh";vt.TAN="tan";vt.TANH="tanh";vt.ASIN="asin";vt.ASINH="asinh";vt.ACOS="acos";vt.ACOSH="acosh";vt.ATAN="atan";vt.ATANH="atanh";vt.ABS="abs";vt.SIGN="sign";vt.LENGTH="length";vt.NEGATE="negate";vt.ONE_MINUS="oneMinus";vt.DFDX="dFdx";vt.DFDY="dFdy";vt.ROUND="round";vt.RECIPROCAL="reciprocal";vt.TRUNC="trunc";vt.FWIDTH="fwidth";vt.TRANSPOSE="transpose";vt.DETERMINANT="determinant";vt.INVERSE="inverse";vt.EQUALS="equals";vt.MIN="min";vt.MAX="max";vt.STEP="step";vt.REFLECT="reflect";vt.DISTANCE="distance";vt.DIFFERENCE="difference";vt.DOT="dot";vt.CROSS="cross";vt.POW="pow";vt.TRANSFORM_DIRECTION="transformDirection";vt.MIX="mix";vt.CLAMP="clamp";vt.REFRACT="refract";vt.SMOOTHSTEP="smoothstep";vt.FACEFORWARD="faceforward";const uk=ke(1e-6),Out=ke(1e6),aD=ke(Math.PI),Fut=ke(Math.PI*2),Iut=ke(Math.PI*2),But=ke(Math.PI*.5),Ege=fn(vt,vt.ALL).setParameterLength(1),Mge=fn(vt,vt.ANY).setParameterLength(1),Cge=fn(vt,vt.RADIANS).setParameterLength(1),Nge=fn(vt,vt.DEGREES).setParameterLength(1),MW=fn(vt,vt.EXP).setParameterLength(1),k_=fn(vt,vt.EXP2).setParameterLength(1),fk=fn(vt,vt.LOG).setParameterLength(1),cp=fn(vt,vt.LOG2).setParameterLength(1),Vu=fn(vt,vt.SQRT).setParameterLength(1),CW=fn(vt,vt.INVERSE_SQRT).setParameterLength(1),up=fn(vt,vt.FLOOR).setParameterLength(1),dk=fn(vt,vt.CEIL).setParameterLength(1),R0=fn(vt,vt.NORMALIZE).setParameterLength(1),Yh=fn(vt,vt.FRACT).setParameterLength(1),Cu=fn(vt,vt.SIN).setParameterLength(1),Rge=fn(vt,vt.SINH).setParameterLength(1),gh=fn(vt,vt.COS).setParameterLength(1),Dge=fn(vt,vt.COSH).setParameterLength(1),Pge=fn(vt,vt.TAN).setParameterLength(1),kge=fn(vt,vt.TANH).setParameterLength(1),Lge=fn(vt,vt.ASIN).setParameterLength(1),Oge=fn(vt,vt.ASINH).setParameterLength(1),NW=fn(vt,vt.ACOS).setParameterLength(1),Fge=fn(vt,vt.ACOSH).setParameterLength(1),RW=fn(vt,vt.ATAN).setParameterLength(1,2),Ige=fn(vt,vt.ATANH).setParameterLength(1),qa=fn(vt,vt.ABS).setParameterLength(1),DW=fn(vt,vt.SIGN).setParameterLength(1),fp=fn(vt,vt.LENGTH).setParameterLength(1),PW=fn(vt,vt.NEGATE).setParameterLength(1),Bge=fn(vt,vt.ONE_MINUS).setParameterLength(1),kW=fn(vt,vt.DFDX).setParameterLength(1),LW=fn(vt,vt.DFDY).setParameterLength(1),Uge=fn(vt,vt.ROUND).setParameterLength(1),Vge=fn(vt,vt.RECIPROCAL).setParameterLength(1),OW=fn(vt,vt.TRUNC).setParameterLength(1),FW=fn(vt,vt.FWIDTH).setParameterLength(1),jge=fn(vt,vt.TRANSPOSE).setParameterLength(1),Hge=fn(vt,vt.DETERMINANT).setParameterLength(1),Gge=fn(vt,vt.INVERSE).setParameterLength(1),L0=fn(vt,vt.MIN).setParameterLength(2,1/0),Us=fn(vt,vt.MAX).setParameterLength(2,1/0),_y=fn(vt,vt.STEP).setParameterLength(2),zge=fn(vt,vt.REFLECT).setParameterLength(2),$ge=fn(vt,vt.DISTANCE).setParameterLength(2),qge=fn(vt,vt.DIFFERENCE).setParameterLength(2),Sd=fn(vt,vt.DOT).setParameterLength(2),R2=fn(vt,vt.CROSS).setParameterLength(2),hd=fn(vt,vt.POW).setParameterLength(2),IW=t=>Lr(t,t),Wge=t=>Lr(t,t,t),BW=t=>Lr(t,t,t,t),Zge=fn(vt,vt.TRANSFORM_DIRECTION).setParameterLength(2),Yge=t=>Lr(DW(t),hd(qa(t),1/3)),UW=t=>Sd(t,t),mi=fn(vt,vt.MIX).setParameterLength(3),Xh=(t,e=0,n=1)=>new vt(vt.CLAMP,Un(t),Un(e),Un(n)),hk=t=>Xh(t),VW=fn(vt,vt.REFRACT).setParameterLength(3),Qh=fn(vt,vt.SMOOTHSTEP).setParameterLength(3),jW=fn(vt,vt.FACEFORWARD).setParameterLength(3),Xge=it(([t])=>{const r=43758.5453,i=Sd(t.xy,dn(12.9898,78.233)),a=JT(i,aD);return Yh(Cu(a).mul(r))}),Qge=(t,e,n)=>mi(e,n,t),Kge=(t,e,n)=>Qh(e,n,t),Jge=(t,e)=>_y(e,t),Uut=jW,Vut=CW;zt("all",Ege);zt("any",Mge);zt("radians",Cge);zt("degrees",Nge);zt("exp",MW);zt("exp2",k_);zt("log",fk);zt("log2",cp);zt("sqrt",Vu);zt("inverseSqrt",CW);zt("floor",up);zt("ceil",dk);zt("normalize",R0);zt("fract",Yh);zt("sin",Cu);zt("sinh",Rge);zt("cos",gh);zt("cosh",Dge);zt("tan",Pge);zt("tanh",kge);zt("asin",Lge);zt("asinh",Oge);zt("acos",NW);zt("acosh",Fge);zt("atan",RW);zt("atanh",Ige);zt("abs",qa);zt("sign",DW);zt("length",fp);zt("lengthSq",UW);zt("negate",PW);zt("oneMinus",Bge);zt("dFdx",kW);zt("dFdy",LW);zt("round",Uge);zt("reciprocal",Vge);zt("trunc",OW);zt("fwidth",FW);zt("min",L0);zt("max",Us);zt("step",Jge);zt("reflect",zge);zt("distance",$ge);zt("dot",Sd);zt("cross",R2);zt("pow",hd);zt("pow2",IW);zt("pow3",Wge);zt("pow4",BW);zt("transformDirection",Zge);zt("mix",Qge);zt("clamp",Xh);zt("refract",VW);zt("smoothstep",Kge);zt("faceForward",jW);zt("difference",qge);zt("saturate",hk);zt("cbrt",Yge);zt("transpose",jge);zt("determinant",Hge);zt("inverse",Gge);zt("rand",Xge);class jut extends $n{static get type(){return"ConditionalNode"}constructor(e,n,r=null){super(),this.condNode=e,this.ifNode=n,this.elseNode=r}generateNodeType(e){const{ifNode:n,elseNode:r}=e.getNodeProperties(this);if(n===void 0)return e.flowBuildStage(this,"setup"),this.getNodeType(e);const i=n.getNodeType(e);if(r!==null){const a=r.getNodeType(e);if(e.getTypeLength(a)>e.getTypeLength(i))return a}return i}setup(e){const n=this.condNode,r=this.ifNode.isolate(),i=this.elseNode?this.elseNode.isolate():null,a=e.context.nodeBlock;e.getDataFromNode(r).parentNodeBlock=a,i!==null&&(e.getDataFromNode(i).parentNodeBlock=a);const s=e.context.uniformFlow,o=e.getNodeProperties(this);o.condNode=n,o.ifNode=s?r:r.context({nodeBlock:r}),o.elseNode=i?s?i:i.context({nodeBlock:i}):null}generate(e,n){const r=this.getNodeType(e),i=e.getDataFromNode(this);if(i.nodeProperty!==void 0)return i.nodeProperty;const{condNode:a,ifNode:s,elseNode:o}=e.getNodeProperties(this),l=e.currentFunctionNode,c=n!=="void",u=c?d2(r).build(e):"";i.nodeProperty=u;const f=a.build(e,"bool");if(e.context.uniformFlow&&o!==null){const A=s.build(e,r),g=o.build(e,r),w=e.getTernary(f,A,g);return e.format(w,r,n)}e.addFlowCode(` 4167${e.tab}if ( ${f} ) { 4168 4169`).addFlowTab();let p=s.build(e,r);if(p&&(c?p=u+" = "+p+";":(p="return "+p+";",l===null&&(Kt("TSL: Return statement used in an inline 'Fn()'. Define a layout struct to allow return values.",this.stackTrace),p="// "+p))),e.removeFlowTab().addFlowCode(e.tab+" "+p+` 4170 4171`+e.tab+"}"),o!==null){e.addFlowCode(` else { 4172 4173`).addFlowTab();let A=o.build(e,r);A&&(c?A=u+" = "+A+";":(A="return "+A+";",l===null&&(Kt("TSL: Return statement used in an inline 'Fn()'. Define a layout struct to allow return values.",this.stackTrace),A="// "+A))),e.removeFlowTab().addFlowCode(e.tab+" "+A+` 4174 4175`+e.tab+`} 4176 4177`)}else e.addFlowCode(` 4178 4179`);return e.format(u,r,n)}}const Zc=Wr(jut).setParameterLength(2,3);zt("select",Zc);class exe extends $n{static get type(){return"ContextNode"}constructor(e=null,n={}){super(),this.isContextNode=!0,this.node=e,this.value=n}getScope(){return this.node.getScope()}generateNodeType(e){return this.node.getNodeType(e)}getFlowContextData(){const e=[];return this.traverse(n=>{n.isContextNode===!0&&e.push(n.value)}),Object.assign({},...e)}getMemberType(e,n){return this.node.getMemberType(e,n)}analyze(e){const n=e.addContext(this.value);this.node.build(e),e.setContext(n)}setup(e){const n=e.addContext(this.value);this.node.build(e),e.setContext(n)}generate(e,n){const r=e.addContext(this.value),i=this.node.build(e,n);return e.setContext(r),i}}const z2=(t=null,e={})=>{let n=t;return(n===null||n.isNode!==!0)&&(e=n||e,n=null),new exe(n,e)},txe=t=>z2(t,{uniformFlow:!0}),HW=(t,e)=>z2(t,{nodeName:e});function nxe(t,e,n=null){return z2(n,{getShadow:({light:r,shadowColorNode:i})=>e===r?i.mul(t):i})}function rxe(t,e=null){return z2(e,{getAO:(n,{material:r})=>r.transparent===!0?n:n!==null?n.mul(t):t})}function ixe(t,e){return Kt('TSL: "label()" has been deprecated. Use "setName()" instead.'),HW(t,e)}zt("context",z2);zt("label",ixe);zt("uniformFlow",txe);zt("setName",HW);zt("builtinShadowContext",(t,e,n)=>nxe(e,n,t));zt("builtinAOContext",(t,e)=>rxe(e,t));class J9 extends $n{static get type(){return"VarNode"}constructor(e,n=null,r=!1){super(),this.node=e,this.name=n,this.global=!0,this.isVarNode=!0,this.readOnly=r,this.parents=!0,this.intent=!1}setIntent(e){return this.intent=e,this}isIntent(e){return e.getDataFromNode(this).forceDeclaration===!0?!1:this.intent}getIntent(){return this.intent}getMemberType(e,n){return this.node.getMemberType(e,n)}getElementType(e){return this.node.getElementType(e)}generateNodeType(e){return this.node.getNodeType(e)}getArrayCount(e){return this.node.getArrayCount(e)}isAssign(e){return e.getDataFromNode(this).assign}build(...e){const n=e[0];if(this._hasStack(n)===!1&&n.buildStage==="setup"&&(n.context.nodeLoop||n.context.nodeBlock)){let r=!1;if(this.node.isShaderCallNodeInternal&&this.node.shaderNode.getLayout()===null&&n.fnCall&&n.fnCall.shaderNode&&n.getDataFromNode(this.node.shaderNode).hasLoop){const s=n.getDataFromNode(this);s.forceDeclaration=!0,r=!0}const i=n.getBaseStack();r?i.addToStackBefore(this):i.addToStack(this)}return this.isIntent(n)&&this.isAssign(n)!==!0?this.node.build(...e):super.build(...e)}
4179generate(e){const{node:n,name:r,readOnly:i}=this,{renderer:a}=e,s=a.backend.isWebGPUBackend===!0;let o=!1,l=!1;i&&(o=e.isDeterministic(n),l=s?i:o);const c=this.getNodeType(e);if(c=="void")return this.isIntent(e)!==!0&&nn('TSL: ".toVar()" can not be used with void type.',this.stackTrace),n.build(e);const u=e.getVectorType(c),f=n.build(e,u),h=e.getVarFromNode(this,r,u,void 0,l),p=e.getPropertyName(h);let A=p;if(l)if(s)A=o?`const ${p}`:`let ${p}`;else{const g=n.getArrayCount(e);A=`const ${e.getVar(h.type,p,g)}`}return e.addLineFlowCode(`${A} = ${f}`,this),p}_hasStack(e){return e.getDataFromNode(this).stack!==void 0}}const GW=Wr(J9),axe=(t,e=null)=>GW(t,e).toStack(),sxe=(t,e=null)=>GW(t,e,!0).toStack(),oxe=t=>GW(t).setIntent(!0).toStack();zt("toVar",axe);zt("toConst",sxe);zt("toVarIntent",oxe);class Hut extends $n{static get type(){return"SubBuild"}constructor(e,n,r=null){super(r),this.node=e,this.name=n,this.isSubBuildNode=!0}generateNodeType(e){if(this.nodeType!==null)return this.nodeType;e.addSubBuild(this.name);const n=this.node.getNodeType(e);return e.removeSubBuild(),n}build(e,...n){e.addSubBuild(this.name);const r=this.node.build(e,...n);return e.removeSubBuild(),r}}const ty=(t,e,n=null)=>new Hut(Un(t),e,n);class Gut extends $n{static get type(){return"VaryingNode"}constructor(e,n=null){super(),this.node=ty(e,"VERTEX"),this.name=n,this.isVaryingNode=!0,this.interpolationType=null,this.interpolationSampling=null,this.global=!0}setInterpolation(e,n=null){return this.interpolationType=e,this.interpolationSampling=n,this}getHash(e){return this.name||super.getHash(e)}generateNodeType(e){return this.node.getNodeType(e)}setupVarying(e){const n=e.getNodeProperties(this);let r=n.varying;if(r===void 0){const i=this.name,a=this.getNodeType(e),s=this.interpolationType,o=this.interpolationSampling;n.varying=r=e.getVaryingFromNode(this,i,a,s,o),n.node=ty(this.node,"VERTEX")}return r.needsInterpolation||(r.needsInterpolation=e.shaderStage==="fragment"),r}setup(e){this.setupVarying(e),e.flowNodeFromShaderStage(Ow.VERTEX,this.node)}analyze(e){this.setupVarying(e),e.flowNodeFromShaderStage(Ow.VERTEX,this.node)}generate(e){const n=e.getSubBuildProperty("property",e.currentStack),r=e.getNodeProperties(this),i=this.setupVarying(e);if(r[n]===void 0){const a=this.getNodeType(e),s=e.getPropertyName(i,Ow.VERTEX);e.flowNodeFromShaderStage(Ow.VERTEX,r.node,a,s),r[n]=s}return e.getPropertyName(i)}}const cx=Wr(Gut).setParameterLength(1,2),lxe=t=>cx(t);zt("toVarying",cx);zt("toVertexStage",lxe);const cxe=it(([t])=>{const e=t.mul(.9478672986).add(.0521327014).pow(2.4),n=t.mul(.0773993808),r=t.lessThanEqual(.04045);return mi(e,n,r)}).setLayout({name:"sRGBTransferEOTF",type:"vec3",inputs:[{name:"color",type:"vec3"}]}),uxe=it(([t])=>{const e=t.pow(.41666).mul(1.055).sub(.055),n=t.mul(12.92),r=t.lessThanEqual(.0031308);return mi(e,n,r)}).setLayout({name:"sRGBTransferOETF",type:"vec3",inputs:[{name:"color",type:"vec3"}]}),zW="WorkingColorSpace",zut="OutputColorSpace";class $W extends eo{static get type(){return"ColorSpaceNode"}constructor(e,n,r){super("vec4"),this.colorNode=e,this.source=n,this.target=r}resolveColorSpace(e,n){return n===zW?Ar.workingColorSpace:n===zut?e.context.outputColorSpace||e.renderer.outputColorSpace:n}setup(e){const{colorNode:n}=this,r=this.resolveColorSpace(e,this.source),i=this.resolveColorSpace(e,this.target);let a=n;return Ar.enabled===!1||r===i||!r||!i||(Ar.getTransfer(r)===Bn&&(a=er(cxe(a.rgb),a.a)),Ar.getPrimaries(r)!==Ar.getPrimaries(i)&&(a=er(zl(Ar._getMatrix(new Vr,r,i)).mul(a.rgb),a.a)),Ar.getTransfer(i)===Bn&&(a=er(uxe(a.rgb),a.a))),a}}const fxe=(t,e)=>new $W(Un(t),zW,e),pk=(t,e)=>new $W(Un(t),e,zW),$ut=(t,e,n)=>new $W(Un(t),e,n);zt("workingToColorSpace",fxe);zt("colorSpaceToWorking",pk);let qut=class extends Gy{static get type(){return"ReferenceElementNode"}constructor(e,n){super(e,n),this.referenceNode=e,this.isReferenceElementNode=!0}generateNodeType(){return this.referenceNode.uniformType}generate(e){const n=super.generate(e),r=this.referenceNode.getNodeType(),i=this.getNodeType();return e.format(n,r,i)}};class dxe extends $n{static get type(){return"ReferenceBaseNode"}constructor(e,n,r=null,i=null){super(),this.property=e,this.uniformType=n,this.object=r,this.count=i,this.properties=e.split("."),this.reference=r,this.node=null,this.group=null,this.updateType=_r.OBJECT}setGroup(e){return this.group=e,this}element(e){return new qut(this,Un(e))}setNodeType(e){const n=qn(null,e);this.group!==null&&n.setGroup(this.group),this.node=n}generateNodeType(e){return this.node===null&&(this.updateReference(e),this.updateV
4179alue()),this.node.getNodeType(e)}getValueFromReference(e=this.reference){const{properties:n}=this;let r=e[n[0]];for(let i=1;i<n.length;i++)r=r[n[i]];return r}updateReference(e){return this.reference=this.object!==null?this.object:e.object,this.reference}setup(){return this.updateValue(),this.node}update(){this.updateValue()}updateValue(){this.node===null&&this.setNodeType(this.uniformType);const e=this.getValueFromReference();Array.isArray(e)?this.node.array=e:this.node.value=e}}const Wut=(t,e,n)=>new dxe(t,e,n);class Zut extends dxe{static get type(){return"RendererReferenceNode"}constructor(e,n,r=null){super(e,n,r),this.renderer=r,this.setGroup(rr)}updateReference(e){return this.reference=this.renderer!==null?this.renderer:e.renderer,this.reference}}const hxe=(t,e,n=null)=>new Zut(t,e,n);class Yut extends eo{static get type(){return"ToneMappingNode"}constructor(e,n=mxe,r=null){super("vec3"),this._toneMapping=e,this.exposureNode=n,this.colorNode=r}customCacheKey(){return gS(this._toneMapping)}setToneMapping(e){return this._toneMapping=e,this}getToneMapping(){return this._toneMapping}setup(e){const n=this.colorNode||e.context.color,r=this._toneMapping;if(r===cc)return n;let i=null;const a=e.renderer.library.getToneMappingFunction(r);return a!==null?i=er(a(n.rgb,this.exposureNode),n.a):(nn("ToneMappingNode: Unsupported Tone Mapping configuration.",r),i=n),i}}const pxe=(t,e,n)=>new Yut(t,Un(e),Un(n)),mxe=hxe("toneMappingExposure","float");zt("toneMapping",(t,e,n)=>pxe(e,n,t));const Cae=new WeakMap;function Nae(t,e){let n=Cae.get(t);return n===void 0&&(n=new Dq(t,e),Cae.set(t,n)),n}class SA extends dW{static get type(){return"BufferAttributeNode"}constructor(e,n=null,r=0,i=0){super(e,n),this.isBufferNode=!0,this.bufferType=n,this.bufferStride=r,this.bufferOffset=i,this.usage=__,this.instanced=!1,this.attribute=null,this.global=!0,e&&e.isBufferAttribute===!0&&e.itemSize<=4&&(this.attribute=e,this.usage=e.usage,this.instanced=e.isInstancedBufferAttribute)}getHash(e){let n;if(this.bufferStride===0&&this.bufferOffset===0){let r=e.globalCache.getData(this.value);r===void 0&&(r={node:this},e.globalCache.setData(this.value,r)),n=r.node.id}else n=this.id;return String(n)}generateNodeType(e){return this.bufferType===null&&(this.bufferType=e.getTypeFromAttribute(this.attribute)),this.bufferType}setup(e){if(this.attribute!==null)return;const n=this.getNodeType(e),r=e.getTypeLength(n),i=this.value,a=this.bufferStride||r,s=this.bufferOffset;let o;i.isInterleavedBuffer===!0?o=i:i.isBufferAttribute===!0?o=Nae(i.array,a):o=Nae(i,a);const l=new X1(o,r,s);o.setUsage(this.usage),this.attribute=l,this.attribute.isInstancedBufferAttribute=this.instanced}generate(e){const n=this.getNodeType(e),r=e.getBufferAttributeFromNode(this,n),i=e.getPropertyName(r);let a=null;return e.shaderStage==="vertex"||e.shaderStage==="compute"?(this.name=i,a=i):a=cx(this).build(e,n),a}getInputType(){return"bufferAttribute"}setUsage(e){return this.usage=e,this.attribute&&this.attribute.isBufferAttribute===!0&&(this.attribute.usage=e),this}setInstanced(e){return this.instanced=e,this}}function mk(t,e=null,n=0,r=0,i=__,a=!1){return e==="mat3"||e===null&&t.itemSize===9?zl(new SA(t,"vec3",9,0).setUsage(i).setInstanced(a),new SA(t,"vec3",9,3).setUsage(i).setInstanced(a),new SA(t,"vec3",9,6).setUsage(i).setInstanced(a)):e==="mat4"||e===null&&t.itemSize===16?Dg(new SA(t,"vec4",16,0).setUsage(i).setInstanced(a),new SA(t,"vec4",16,4).setUsage(i).setInstanced(a),new SA(t,"vec4",16,8).setUsage(i).setInstanced(a),new SA(t,"vec4",16,12).setUsage(i).setInstanced(a)):new SA(t,e,n,r).setUsage(i)}const qW=(t,e=null,n=0,r=0)=>mk(t,e,n,r),Xut=(t,e=null,n=0,r=0)=>mk(t,e,n,r,R5),sD=(t,e=null,n=0,r=0)=>mk(t,e,n,r,__,!0),aH=(t,e=null,n=0,r=0)=>mk(t,e,n,r,R5,!0);zt("toAttribute",t=>qW(t.value));class As extends $n{static get type(){return"IndexNode"}constructor(e){super("uint"),this.scope=e,this.isIndexNode=!0}generate(e){const n=this.getNodeType(e),r=this.scope;let i;if(r===As.VERTEX)i=e.getVertexIndex();else if(r===As.INSTANCE)i=e.getInstanceIndex();else if(r===As.DRAW)i=e.getDrawIndex();else if(r===As.INVOCATION_LOCAL)i=e.getInvocationLocalIndex();
4179else if(r===As.INVOCATION_SUBGROUP)i=e.getInvocationSubgroupIndex();else if(r===As.SUBGROUP)i=e.getSubgroupIndex();else throw new Error("THREE.IndexNode: Unknown scope: "+r);let a;return e.shaderStage==="vertex"||e.shaderStage==="compute"?a=i:a=cx(this).build(e,n),a}}As.VERTEX="vertex";As.INSTANCE="instance";As.SUBGROUP="subgroup";As.INVOCATION_LOCAL="invocationLocal";As.INVOCATION_SUBGROUP="invocationSubgroup";As.DRAW="draw";const Axe=Rn(As,As.VERTEX),Fh=Rn(As,As.INSTANCE),Qut=Rn(As,As.SUBGROUP),Kut=Rn(As,As.INVOCATION_SUBGROUP),Jut=Rn(As,As.INVOCATION_LOCAL),gxe=Rn(As,As.DRAW);class e0t extends $n{static get type(){return"ComputeNode"}constructor(e,n){super("void"),this.isComputeNode=!0,this.computeNode=e,this.workgroupSize=n,this.count=null,this.dispatchSize=null,this.version=1,this.name="",this.updateBeforeType=_r.OBJECT,this.onInitFunction=null,this.countNode=null}dispose(){this.dispatchEvent({type:"dispose"})}setName(e){return this.name=e,this}label(e){return Kt('TSL: "label()" has been deprecated. Use "setName()" instead.',new mo),this.setName(e)}onInit(e){return this.onInitFunction=e,this}updateBefore({renderer:e}){e.compute(this)}setup(e){this.count!==null&&this.countNode===null&&(this.countNode=qn(this.count,"uint").onObjectUpdate(()=>this.count));const n=this.computeNode.build(e);if(n){const r=e.getNodeProperties(this);r.outputComputeNode=n.outputNode,n.outputNode=null}return n}generate(e,n){const{shaderStage:r}=e;if(r==="compute"){const i=this.computeNode.build(e,"void");if(i!==""&&e.addLineFlowCode(i,this),this.count!==null&&e.allowEarlyReturns===!0){const a=this.countNode.build(e,"uint"),s=Fh.build(e,"uint");e.flow.code=`${e.tab}if ( ${s} >= ${a} ) { return; } 4180 4181${e.flow.code}`}}else{const a=e.getNodeProperties(this).outputComputeNode;if(a)return a.build(e,n)}}}const WW=(t,e=[64])=>{(e.length===0||e.length>3)&&nn("TSL: compute() workgroupSize must have 1, 2, or 3 elements",new mo);for(let n=0;n<e.length;n++){const r=e[n];(typeof r!="number"||r<=0||!Number.isInteger(r))&&nn(`TSL: compute() workgroupSize element at index [ ${n} ] must be a positive integer`,new mo)}for(;e.length<3;)e.push(1);return new e0t(Un(t),e)},xxe=(t,e,n)=>{const r=WW(t,n);return typeof e=="number"?r.count=e:r.dispatchSize=e,r};zt("compute",xxe);zt("computeKernel",WW);class t0t extends $n{static get type(){return"IsolateNode"}constructor(e,n=!0){super(),this.node=e,this.parent=n,this.isIsolateNode=!0}generateNodeType(e){const n=e.getCache(),r=e.getCacheFromNode(this,this.parent);e.setCache(r);const i=this.node.getNodeType(e);return e.setCache(n),i}build(e,...n){const r=e.getCache(),i=e.getCacheFromNode(this,this.parent);e.setCache(i);const a=this.node.build(e,...n);return e.setCache(r),a}setParent(e){return this.parent=e,this}getParent(){return this.parent}}const w3=t=>new t0t(Un(t));function vxe(t,e=!0){return Kt('TSL: "cache()" has been deprecated. Use "isolate()" instead.'),w3(t).setParent(e)}zt("cache",vxe);zt("isolate",w3);class n0t extends $n{static get type(){return"BypassNode"}constructor(e,n){super(),this.isBypassNode=!0,this.outputNode=e,this.callNode=n}generateNodeType(e){return this.outputNode.getNodeType(e)}generate(e){const n=this.callNode.build(e,"void");return n!==""&&e.addLineFlowCode(n,this),this.outputNode.build(e)}}const yxe=Wr(n0t).setParameterLength(2);zt("bypass",yxe);const ZW=it(([t,e,n,r=ke(0),i=ke(1),a=Ef(!1)])=>{let s=t.sub(e).div(n.sub(e));return P_(a)&&(s=s.clamp()),s.mul(i.sub(r)).add(r)});function _xe(t,e,n,r=ke(0),i=ke(1)){return ZW(t,e,n,r,i,!0)}zt("remap",ZW);zt("remapClamp",_xe);class eN extends $n{static get type(){return"ExpressionNode"}constructor(e="",n="void"){super(n),this.snippet=e}generate(e,n){const r=this.getNodeType(e),i=this.snippet;if(r==="void")e.addLineFlowCode(i,this);else return e.format(i,r,n)}}const pf=Wr(eN).setParameterLength(1,2),bxe=t=>(t?Zc(t,pf("discard")):pf("discard")).toStack(),r0t=()=>pf("return").toStack();zt("discard",bxe);class i0t extends eo{static get type(){return"RenderOutputNode"}constructor(e,n,r){super("vec4"),this.colorNode=e,this._toneMapping=n,this.outputColorSpace
4181=r,this.isRenderOutputNode=!0}setToneMapping(e){return this._toneMapping=e,this}getToneMapping(){return this._toneMapping}setup({context:e}){let n=this.colorNode||e.color;const r=(this._toneMapping!==null?this._toneMapping:e.toneMapping)||cc,i=(this.outputColorSpace!==null?this.outputColorSpace:e.outputColorSpace)||g0;return r!==cc&&(n=n.toneMapping(r)),i!==g0&&i!==Ar.workingColorSpace&&(n=n.workingToColorSpace(i)),n}}const YW=(t,e=null,n=null)=>new i0t(Un(t),e,n);zt("renderOutput",YW);class a0t extends eo{static get type(){return"DebugNode"}constructor(e,n=null){super(),this.node=e,this.callback=n}generateNodeType(e){return this.node.getNodeType(e)}setup(e){return this.node.build(e)}analyze(e){return this.node.build(e)}generate(e){const n=this.callback,r=this.node.build(e);if(n!==null)n(e,r);else{const i="--- TSL debug - "+e.shaderStage+" shader ---",a="-".repeat(i.length);let s="";s+="// #"+i+`# 4182`,s+=e.flow.code.replace(/^\t/mg,"")+` 4183`,s+="/* ... */ "+r+` /* ... */ 4184`,s+="// #"+a+`# 4185`,P5(s)}return r}}const wxe=(t,e=null)=>new a0t(Un(t),e).toStack();zt("debug",wxe);class Sxe extends Fd{constructor(){super(),this._renderer=null,this.currentFrame=null}get nodeFrame(){return this._renderer._nodes.nodeFrame}setRenderer(e){return this._renderer=e,this}getRenderer(){return this._renderer}init(){}begin(){}finish(){}inspect(){}computeAsync(){}beginCompute(){}finishCompute(){}beginRender(){}finishRender(){}copyTextureToTexture(){}copyFramebufferToTexture(){}}class s0t extends $n{static get type(){return"InspectorNode"}constructor(e,n="",r=null){super(),this.node=e,this.name=n,this.callback=r,this.updateType=_r.FRAME,this.isInspectorNode=!0}getName(){return this.name||this.node.name}update(e){e.renderer.inspector.inspect(this)}generateNodeType(e){return this.node.getNodeType(e)}setup(e){let n=this.node;return e.context.inspector===!0&&this.callback!==null&&(n=this.callback(n)),e.renderer.backend.isWebGPUBackend!==!0&&e.renderer.inspector.constructor!==Sxe&&Fa('TSL: ".toInspector()" is only available with WebGPU.'),n}}function Txe(t,e="",n=null){return t=Un(t),t.before(new s0t(t,e,n))}zt("toInspector",Txe);function o0t(t){Kt("TSL: AddNodeElement has been removed in favor of tree-shaking. Trying add",t)}class Exe extends $n{static get type(){return"AttributeNode"}constructor(e,n=null){super(n),this.global=!0,this._attributeName=e}getHash(e){return this.getAttributeName(e)}generateNodeType(e){let n=this.nodeType;if(n===null){const r=this.getAttributeName(e);if(e.hasGeometryAttribute(r)){const i=e.geometry.getAttribute(r);n=e.getTypeFromAttribute(i)}else n="float"}return n}setAttributeName(e){return this._attributeName=e,this}getAttributeName(){return this._attributeName}generate(e){const n=this.getAttributeName(e),r=this.getNodeType(e);if(e.hasGeometryAttribute(n)===!0){const a=e.geometry.getAttribute(n),s=e.getTypeFromAttribute(a),o=e.getAttribute(n,s);return e.shaderStage==="vertex"?e.format(o.name,s,r):cx(this).build(e,r)}else return Kt(`AttributeNode: Vertex attribute "${n}" not found on geometry.`),e.generateConst(r)}serialize(e){super.serialize(e),e.global=this.global,e._attributeName=this._attributeName}deserialize(e){super.deserialize(e),this.global=e.global,this._attributeName=e._attributeName}}const D2=(t,e=null)=>new Exe(t,e),Ca=(t=0)=>D2("uv"+(t>0?t:""),"vec2");class l0t extends $n{static get type(){return"TextureSizeNode"}constructor(e,n=null){super("uvec2"),this.isTextureSizeNode=!0,this.textureNode=e,this.levelNode=n}generate(e,n){const r=this.textureNode.build(e,"property"),i=this.levelNode===null?"0":this.levelNode.build(e,"int");return e.format(`${e.getMethod("textureDimensions")}( ${r}, ${i} )`,this.getNodeType(e),n)}}const Pg=Wr(l0t).setParameterLength(1,2);class c0t extends KT{static get type(){return"MaxMipLevelNode"}constructor(e){super(0),this._textureNode=e,this.updateType=_r.FRAME}get textureNode(){return this._textureNode}get texture(){return this._textureNode.value}update(){const e=this.texture,n=e.images,r=n&&n.length>0?n[0]&&n[0].image||n[0]:e.image;if(r&&r.width!==void 0){const{width:i,height:a}=r;this.value=Math.log2(Math.max(i,a))}}}const XW=Wr(c0t).setParameterLength(1);
4185class Mxe extends Error{constructor(e,n=null){super(e),this.name="NodeError",this.stackTrace=n}}const QW=new Yo;class bp extends KT{static get type(){return"TextureNode"}constructor(e=QW,n=null,r=null,i=null){super(e),this.isTextureNode=!0,this.uvNode=n,this.levelNode=r,this.biasNode=i,this.compareNode=null,this.depthNode=null,this.gradNode=null,this.offsetNode=null,this.sampler=!0,this.updateMatrix=!1,this.updateType=_r.NONE,this.referenceNode=null,this._value=e,this._matrixUniform=null,this._flipYUniform=null,this.setUpdateMatrix(n===null)}set value(e){this.referenceNode?this.referenceNode.value=e:this._value=e}get value(){return this.referenceNode?this.referenceNode.value:this._value}getUniformHash(){return this.value.uuid}generateNodeType(){return this.value.isDepthTexture===!0?"float":this.value.type===_a?"uvec4":this.value.type===Al?"ivec4":"vec4"}getInputType(){return"texture"}getDefaultUV(){return Ca(this.value.channel)}updateReference(){return this.value}getTransformedUV(e){return this._matrixUniform===null&&(this._matrixUniform=qn(this.value.matrix)),this._matrixUniform.mul(Je(e,1)).xy}setUpdateMatrix(e){return this.updateMatrix=e,this}setupUV(e,n){return e.isFlipY()&&(this._flipYUniform===null&&(this._flipYUniform=qn(!1)),n=n.toVar(),this.sampler?n=this._flipYUniform.select(n.flipY(),n):n=this._flipYUniform.select(n.setY($e(Pg(this,this.levelNode).y).sub(n.y).sub(1)),n)),n}setup(e){const n=e.getNodeProperties(this);n.referenceNode=this.referenceNode;const r=this.value;if(!r||r.isTexture!==!0)throw new Mxe("THREE.TSL: `texture( value )` function expects a valid instance of THREE.Texture().",this.stackTrace);const i=it(()=>{let l=this.uvNode;return(l===null||e.context.forceUVContext===!0)&&e.context.getUV&&(l=e.context.getUV(this,e)),l||(l=this.getDefaultUV()),this.updateMatrix===!0&&(l=this.getTransformedUV(l)),l=this.setupUV(e,l),this.updateType=this._matrixUniform!==null||this._flipYUniform!==null?_r.OBJECT:_r.NONE,l})();let a=this.levelNode;a===null&&e.context.getTextureLevel&&(a=e.context.getTextureLevel(this));let s=null,o=null;if(this.compareNode!==null)if(e.renderer.hasCompatibility(Vy.TEXTURE_COMPARE))s=this.compareNode;else{const l=r.compareFunction;l===null||l===$P||l===sx||l===N5||l===S2?o=this.compareNode:(s=this.compareNode,Fa('TSL: Only "LessCompare", "LessEqualCompare", "GreaterCompare" and "GreaterEqualCompare" are supported for depth texture comparison fallback.'))}n.uvNode=i,n.levelNode=a,n.biasNode=this.biasNode,n.compareNode=s,n.compareStepNode=o,n.gradNode=this.gradNode,n.depthNode=this.depthNode,n.offsetNode=this.offsetNode}generateUV(e,n){return n.build(e,this.sampler===!0?"vec2":"ivec2")}generateOffset(e,n){return n.build(e,"ivec2")}generateSnippet(e,n,r,i,a,s,o,l,c){const u=this.value;let f;return a?f=e.generateTextureBias(u,n,r,a,s,c):l?f=e.generateTextureGrad(u,n,r,l,s,c):o?f=e.generateTextureCompare(u,n,r,o,s,c):this.sampler===!1?f=e.generateTextureLoad(u,n,r,i,s,c):i?f=e.generateTextureLevel(u,n,r,i,s,c):f=e.generateTexture(u,n,r,s,c),f}generate(e,n){const r=this.value,i=e.getNodeProperties(this),a=super.generate(e,"property");if(/^sampler/.test(n))return a+"_sampler";if(e.isReference(n))return a;{const s=e.getDataFromNode(this),o=this.getNodeType(e);let l=s.propertyName;if(l===void 0){const{uvNode:u,levelNode:f,biasNode:h,compareNode:p,compareStepNode:A,depthNode:g,gradNode:w,offsetNode:T}=i,C=this.generateUV(e,u),M=f?f.build(e,"float"):null,D=h?h.build(e,"float"):null,k=g?g.build(e,"int"):null,I=p?p.build(e,"float"):null,L=A?A.build(e,"float"):null,O=w?[w[0].build(e,"vec2"),w[1].build(e,"vec2")]:null,B=T?this.generateOffset(e,T):null;let G=k;G===null&&r.isArrayTexture&&this.isTexture3DNode!==!0&&(G="0");const j=e.getVarFromNode(this);l=e.getPropertyName(j);let z=this.generateSnippet(e,a,C,M,D,G,I,O,B);if(L!==null){const Q=r.compareFunction;Q===N5||Q===S2?z=_y(pf(z,o),pf(L,"float")).build(e,o):z=_y(pf(L,"float"),pf(z,o)).build(e,o)}e.addLineFlowCode(`${l} = ${z}`,this),s.snippet=z,s.propertyName=l}let c=l;return e.needsToWorkingColorSpace(r)&&(c=pk(pf(c,o),r.colorSpace).setup(e).build(e,o)),e.format(c,o,n)}}setSampler(e){return this.sampler=e,this}getSampler(){return this.sampler}sample(e){const n=this.clone();return n.uvNode=Un(e),n.referenceNode=this.getBase(),Un(n)}load(e){return this.sample(e).setSampler(!1)}blur(e){const n=this.clone();n.biasNode=Un(e).mul(XW(n)),n.referenceNode=this.getBase();const r=n.value;return n.generateMipmaps===!1&&(r&&r.generateMipmaps===!1||r.minFilter===sa||r.magFilter===sa)&&(Kt("TSL: texture().blur() requires mipmaps and sampling. Use .generateMipmaps=true and .minFilter/.magFilter=THREE.LinearFilter in the Texture."),n.biasNode=null),Un(n)}level(e){const n=this.clone();return n.levelNode=Un(e),n.referenceNode=this.getBase(),Un(n)}size(e){return Pg(this,e)}bias(e){const n=this.clone();return n.biasNode=Un(e),n.referenceNode=this.getBase(),Un(n)}getBase(){return this.referenceNode?this.referenceNode.getBase():this}compare(e){const n=this.clone();return n.compareNode=Un(e),n.referenceNode=this.getBase(),Un(n)}grad(e,n){const r=this.clone();return r.gradNode=[Un(e),Un(n)],r.referenceNode=this.getBase(),Un(r)}depth(e){const n=this.clone();return n.depthNode=Un(e),n.referenceNode=this.getBase(),Un(n)}offset(e){const n=this.clone();return n.offsetNode=Un(e),n.referenceNode=this.getBase(),Un(n)}serialize(e){super.serialize(e),e.value=this.value.toJSON(e.meta).uuid,e.sampler=this.sampler,e.updateMatrix=this.updateMatrix,e.updateType=this.updateType}deserialize(e){super.deserialize(e),this.value=e.meta.textures[e.value],this.sampler=e.sampler,this.updateMatrix=e.updateMatrix,this.updateType=e.updateType}
4185update(){const e=this.value,n=this._matrixUniform;n!==null&&(n.value=e.matrix),e.matrixAutoUpdate===!0&&e.updateMatrix();const r=this._flipYUniform;r!==null&&(r.value=e.image instanceof ImageBitmap&&e.flipY===!0||e.isRenderTargetTexture===!0||e.isFramebufferTexture===!0||e.isDepthTexture===!0)}clone(){const e=new this.constructor(this.value,this.uvNode,this.levelNode,this.biasNode);return e.sampler=this.sampler,e.depthNode=this.depthNode,e.compareNode=this.compareNode,e.gradNode=this.gradNode,e.offsetNode=this.offsetNode,e}}const u0t=Wr(bp).setParameterLength(1,4).setName("texture"),Bi=(t=QW,e=null,n=null,r=null)=>{let i;return t&&t.isTextureNode===!0?(i=Un(t.clone()),i.referenceNode=t.getBase(),e!==null&&(i.uvNode=Un(e)),n!==null&&(i.levelNode=Un(n)),r!==null&&(i.biasNode=Un(r))):i=u0t(t,e,n,r),i},f0t=(t=QW)=>Bi(t),Hs=(...t)=>Bi(...t).setSampler(!1),d0t=(t,e,n)=>Bi(t,e).level(n),h0t=t=>(t.isNode===!0?t:Bi(t)).convert("sampler"),p0t=t=>(t.isNode===!0?t:Bi(t)).convert("samplerComparison");class KW extends KT{static get type(){return"BufferNode"}constructor(e,n,r=0){super(e,n),this.isBufferNode=!0,this.bufferType=n,this.bufferCount=r,this.updateRanges=[]}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}getElementType(e){return this.getNodeType(e)}getInputType(){return"buffer"}}const eE=(t,e,n)=>new KW(t,e,n);class m0t extends Gy{static get type(){return"UniformArrayElementNode"}constructor(e,n){super(e,n),this.isArrayBufferElementNode=!0}generate(e){const n=super.generate(e),r=this.getNodeType(e),i=this.node.getPaddedType();return e.format(n,i,r)}}class A0t extends KW{static get type(){return"UniformArrayNode"}constructor(e,n=null){super(null),this.array=e,this.elementType=n===null?fg(e[0]):n,this.paddedType=this.getPaddedType(),this.updateType=_r.RENDER,this.isArrayBufferNode=!0}generateNodeType(){return this.paddedType}getElementType(){return this.elementType}getPaddedType(){const e=this.elementType;let n="vec4";return e==="mat2"?n="mat2":/mat/.test(e)===!0?n="mat4":e.charAt(0)==="i"?n="ivec4":e.charAt(0)==="u"&&(n="uvec4"),n}update(){const{array:e,value:n}=this,r=this.elementType;if(r==="float"||r==="int"||r==="uint")for(let i=0;i<e.length;i++){const a=i*4;n[a]=e[i]}else if(r==="color")for(let i=0;i<e.length;i++){const a=i*4,s=e[i];n[a]=s.r,n[a+1]=s.g,n[a+2]=s.b||0}else if(r==="mat2")for(let i=0;i<e.length;i++){const a=i*4,s=e[i];n[a]=s.elements[0],n[a+1]=s.elements[1],n[a+2]=s.elements[2],n[a+3]=s.elements[3]}else if(r==="mat3")for(let i=0;i<e.length;i++){const a=i*16,s=e[i];n[a]=s.elements[0],n[a+1]=s.elements[1],n[a+2]=s.elements[2],n[a+4]=s.elements[3],n[a+5]=s.elements[4],n[a+6]=s.elements[5],n[a+8]=s.elements[6],n[a+9]=s.elements[7],n[a+10]=s.elements[8],n[a+15]=1}else if(r==="mat4")for(let i=0;i<e.length;i++){const a=i*16,s=e[i];for(let o=0;o<s.elements.length;o++)n[a+o]=s.elements[o]}else for(let i=0;i<e.length;i++){const a=i*4,s=e[i];n[a]=s.x,n[a+1]=s.y,n[a+2]=s.z||0,n[a+3]=s.w||0}}setup(e){const n=this.array.length,r=this.elementType;let i=Float32Array;const a=this.paddedType,s=e.getTypeLength(a);return r.charAt(0)==="i"&&(i=Int32Array),r.charAt(0)==="u"&&(i=Uint32Array),this.value=new i(n*s),this.bufferCount=n,this.bufferType=a,this.update(),super.setup(e)}element(e){return new m0t(this,Un(e))}}const Gc=(t,e)=>new A0t(t,e);class g0t extends $n{constructor(e){super("float"),this.name=e,this.isBuiltinNode=!0}generate(){return this.name}}const $2=Wr(g0t).setParameterLength(1);let Xb,Qb;class es extends $n{static get type(){return"ScreenNode"}constructor(e){super(),this.scope=e,this._output=null,this.isViewportNode=!0}generateNodeType(){return this.scope===es.DPR?"float":this.scope===es.VIEWPORT?"vec4":"vec2"}getUpdateType(){let e=_r.NONE;return(this.scope===es.SIZE||this.scope===es.VIEWPORT||this.scope===es.DPR)&&(e=_r.RENDER),this.updateType=e,e}update({renderer:e}){const n=e.getRenderTarget();this.scope===es.VIEWPORT?n!==null?Qb.copy(n.viewport):(e.getViewport(Qb),Qb.multiplyScalar(e.getPixelRatio())):this.scope===es.DPR?this._output.value=e.getPixelRatio():n!==null?(Xb.width=n.width,Xb.height=n.height):e.getDrawingBufferSize(Xb)}setup(){const e=this.scope;let n=null;return e===es.SIZE?n=qn(Xb||(Xb=new tn)):e===es.VIEWPORT?n=qn(Qb||(Qb=new kr)):e===es.DPR?n=qn(1):n=dn($y.div(by)),this._output=n,n}generate(e){if(this.scope===es.COORDINATE){let n=e.getFragCoord();if(e.isFlipY()){const r=e.getNodeProperties(by).outputNode.build(e);n=`${e.getType("vec2")}( ${n}.x, ${r}.y - ${n}.y )`}return n}return super.generate(e)}}es.COORDINATE="coordinate";es.VIEWPORT="viewport";es.SIZE="size";es.UV="uv";es.DPR="dpr";const Cxe=Rn(es,es.DPR),dp=Rn(es,es.UV),by=Rn(es,es.SIZE),$y=Rn(es,es.COORDINATE),JW=Rn(es,es.VIEWPORT),eZ=JW.zw,Nxe=$y.sub(JW.xy),x0t=Nxe.div(eZ),v0t=it(()=>(Kt('TSL: "viewportResolution" is deprecated. Use "screenSize" instead.',new mo),by),"vec2").once()();let JI=null,Q7=null,eB=null,K7=null,tB=null,J7=null,nB=null,eC=null,rB=null,tC=null,iB=null,nC=null,aB=null,rC=null;const ux=qn(0,"uint").setName("u_cameraIndex").setGroup(ck("cameraIndex")).toVarying("v_cameraIndex"),$A=qn("float").setName("cameraNear").setGroup(rr).onRenderUpd
4185ate(({camera:t})=>t.near),qA=qn("float").setName("cameraFar").setGroup(rr).onRenderUpdate(({camera:t})=>t.far),h2=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.projectionMatrix);Q7===null?Q7=Gc(n).setGroup(rr).setName("cameraProjectionMatrices"):Q7.array=n,e=Q7.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraProjectionMatrix")}else JI===null&&(JI=qn(t.projectionMatrix).setName("cameraProjectionMatrix").setGroup(rr).onRenderUpdate(({camera:n})=>n.projectionMatrix)),e=JI;return e}).once()(),Rxe=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.projectionMatrixInverse);K7===null?K7=Gc(n).setGroup(rr).setName("cameraProjectionMatricesInverse"):K7.array=n,e=K7.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraProjectionMatrixInverse")}else eB===null&&(eB=qn(t.projectionMatrixInverse).setName("cameraProjectionMatrixInverse").setGroup(rr).onRenderUpdate(({camera:n})=>n.projectionMatrixInverse)),e=eB;return e}).once()(),Bd=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.matrixWorldInverse);J7===null?J7=Gc(n).setGroup(rr).setName("cameraViewMatrices"):J7.array=n,e=J7.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraViewMatrix")}else tB===null&&(tB=qn(t.matrixWorldInverse).setName("cameraViewMatrix").setGroup(rr).onRenderUpdate(({camera:n})=>n.matrixWorldInverse)),e=tB;return e}).once()(),y0t=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.matrixWorld);eC===null?eC=Gc(n).setGroup(rr).setName("cameraWorldMatrices"):eC.array=n,e=eC.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraWorldMatrix")}else nB===null&&(nB=qn(t.matrixWorld).setName("cameraWorldMatrix").setGroup(rr).onRenderUpdate(({camera:n})=>n.matrixWorld)),e=nB;return e}).once()(),_0t=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.normalMatrix);tC===null?tC=Gc(n).setGroup(rr).setName("cameraNormalMatrices"):tC.array=n,e=tC.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraNormalMatrix")}else rB===null&&(rB=qn(t.normalMatrix).setName("cameraNormalMatrix").setGroup(rr).onRenderUpdate(({camera:n})=>n.normalMatrix)),e=rB;return e}).once()(),Dxe=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(let r=0,i=t.cameras.length;r<i;r++)n.push(new Pe);nC===null?nC=Gc(n).setGroup(rr).setName("cameraPositions").onRenderUpdate(({camera:r},i)=>{const a=r.cameras,s=i.array;for(let o=0,l=a.length;o<l;o++)s[o].setFromMatrixPosition(a[o].matrixWorld)}):nC.array=n,e=nC.element(t.isMultiViewCamera?$2("gl_ViewID_OVR"):ux).toConst("cameraPosition")}else iB===null&&(iB=qn(new Pe).setName("cameraPosition").setGroup(rr).onRenderUpdate(({camera:n},r)=>r.value.setFromMatrixPosition(n.matrixWorld))),e=iB;return e}).once()(),b0t=it(({camera:t})=>{let e;if(t.isArrayCamera&&t.cameras.length>0){const n=[];for(const r of t.cameras)n.push(r.viewport);rC===null?rC=Gc(n,"vec4").setGroup(rr).setName("cameraViewports"):rC.array=n,e=rC.element(ux).toConst("cameraViewport")}else aB===null&&(aB=er(0,0,by.x,by.y).toConst("cameraViewport")),e=aB;return e}).once()(),Rae=new ox;class xi extends $n{static get type(){return"Object3DNode"}constructor(e,n=null){super(),this.scope=e,this.object3d=n,this.updateType=_r.OBJECT,this.uniformNode=new KT(null)}generateNodeType(){const e=this.scope;if(e===xi.WORLD_MATRIX)return"mat4";if(e===xi.POSITION||e===xi.VIEW_POSITION||e===xi.DIRECTION||e===xi.SCALE)return"vec3";if(e===xi.RADIUS)return"float"}update(e){const n=this.object3d,r=this.uniformNode,i=this.scope;if(i===xi.WORLD_MATRIX)r.value=n.matrixWorld;else if(i===xi.POSITION)r.value=r.value||new Pe,r.value.setFromMatrixPosition(n.matrixWorld);else if(i===xi.SCALE)r.value=r.value||new Pe,r.value.setFromMatrixScale(n.matrixWorld);else if(i===xi.DIRECTION)r.value=r.value||new Pe,n.getWorldDirection(r.value);else if(i===xi.VIEW_POSITION){const a=e.camera;r.value=r.value||new Pe,r.value.setFromMatrixPosition(n.matrixWorld),r.value.a
4185pplyMatrix4(a.matrixWorldInverse)}else if(i===xi.RADIUS){const a=e.object.geometry;a.boundingSphere===null&&a.computeBoundingSphere(),Rae.copy(a.boundingSphere).applyMatrix4(n.matrixWorld),r.value=Rae.radius}}generate(e){const n=this.scope;return n===xi.WORLD_MATRIX?this.uniformNode.nodeType="mat4":n===xi.POSITION||n===xi.VIEW_POSITION||n===xi.DIRECTION||n===xi.SCALE?this.uniformNode.nodeType="vec3":n===xi.RADIUS&&(this.uniformNode.nodeType="float"),this.uniformNode.build(e)}serialize(e){super.serialize(e),e.scope=this.scope}deserialize(e){super.deserialize(e),this.scope=e.scope}}xi.WORLD_MATRIX="worldMatrix";xi.POSITION="position";xi.SCALE="scale";xi.VIEW_POSITION="viewPosition";xi.DIRECTION="direction";xi.RADIUS="radius";const w0t=Wr(xi,xi.DIRECTION).setParameterLength(1),S0t=Wr(xi,xi.WORLD_MATRIX).setParameterLength(1),T0t=Wr(xi,xi.POSITION).setParameterLength(1),E0t=Wr(xi,xi.SCALE).setParameterLength(1),M0t=Wr(xi,xi.VIEW_POSITION).setParameterLength(1),C0t=Wr(xi,xi.RADIUS).setParameterLength(1);class Td extends xi{static get type(){return"ModelNode"}constructor(e){super(e)}update(e){this.object3d=e.object,super.update(e)}}const N0t=Rn(Td,Td.DIRECTION),pd=Rn(Td,Td.WORLD_MATRIX),R0t=Rn(Td,Td.POSITION),D0t=Rn(Td,Td.SCALE),P0t=Rn(Td,Td.VIEW_POSITION),k0t=Rn(Td,Td.RADIUS),Pxe=qn(new Vr).onObjectUpdate(({object:t},e)=>e.value.getNormalMatrix(t.matrixWorld)),L0t=qn(new Fr).onObjectUpdate(({object:t},e)=>e.value.copy(t.matrixWorld).invert()),fx=it(t=>t.context.modelViewMatrix||kxe).once()().toVar("modelViewMatrix"),kxe=Bd.mul(pd),sH=it(t=>(t.context.isHighPrecisionModelViewMatrix=!0,qn("mat4").onObjectUpdate(({object:e,camera:n})=>e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld)))).once()().toVar("highpModelViewMatrix"),oH=it(t=>{const e=t.context.isHighPrecisionModelViewMatrix;return qn("mat3").onObjectUpdate(({object:n,camera:r})=>(e!==!0&&n.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse,n.matrixWorld),n.normalMatrix.getNormalMatrix(n.modelViewMatrix)))}).once()().toVar("highpModelNormalViewMatrix"),Lxe=it(t=>t.shaderStage!=="fragment"?(Fa("TSL: `clipSpace` is only available in fragment stage."),er()):t.context.clipSpace.toVarying("v_clipSpace")).once()(),tE=D2("position","vec3"),gs=tE.toVarying("positionLocal"),L_=tE.toVarying("positionPrevious"),hp=it(t=>pd.mul(gs).xyz.toVarying(t.getSubBuildProperty("v_positionWorld")),"vec3").once(["POSITION"])(),tZ=it(()=>gs.transformDirection(pd).toVarying("v_positionWorldDirection").normalize().toVar("positionWorldDirection"),"vec3").once(["POSITION"])(),co=it(t=>{if(t.shaderStage==="fragment"&&t.material.vertexNode){const e=Rxe.mul(Lxe);return e.xyz.div(e.w).toVar("positionView")}return t.context.setupPositionView().toVarying("v_positionView")},"vec3").once(["POSITION","VERTEX"])(),Oa=it(t=>{let e;return t.camera.isOrthographicCamera?e=Je(0,0,1):e=co.negate().toVarying("v_positionViewDirection").normalize(),e.toVar("positionViewDirection")},"vec3").once(["POSITION"])();class O0t extends $n{static get type(){return"FrontFacingNode"}constructor(){super("bool"),this.isFrontFacingNode=!0}generate(e){if(e.shaderStage!=="fragment")return"true";const{material:n}=e;return n.side===ca?"false":e.getFrontFacing()}}const Oxe=Rn(O0t),nZ=ke(Oxe).mul(2).sub(1),v6=it(([t],{material:e})=>{const n=e.side;return n===ca?t=t.mul(-1):n===Zs&&(t=t.mul(nZ)),t}),Ak=D2("normal","vec3"),O0=it(t=>t.geometry.hasAttribute("normal")===!1?(Kt('TSL: Vertex attribute "normal" not found on geometry.'),Je(0,1,0)):Ak,"vec3").once()().toVar("normalLocal"),Fxe=co.dFdx().cross(co.dFdy()).normalize().toVar("normalFlat"),O_=it(t=>{let e;return t.isFlatShading()?e=Fxe:e=rZ(O0).toVarying("v_normalViewGeometry").normalize(),e},"vec3").once()().toVar("normalViewGeometry"),Ixe=it(t=>{let e=O_.transformDirection(Bd);return t.isFlatShading()!==!0&&(e=e.toVarying("v_normalWorldGeometry")),e.normalize().toVar("normalWorldGeometry")},"vec3").once()(),Li=it(t=>{let e;return t.subBuildFn==="NORMAL"||t.subBuildFn==="VERTEX"?(e=O_,t.isFlatShading()!==!0&&(e=v6(e))):e=t.context.setupNormal().context({getUV:null,getTextureLevel:null}),e},"vec3").once(["NORMAL","VERTEX"])().toVar("normalView"),dx=Li.transformDirection(Bd).toVar("normalWorld"),WA=it(({subBuildFn:t,context:e})=>{let n;return t==="NORMAL"||t==="VERTEX"?n=Li:n=e.setupClearcoatNormal().context({getUV:null,getTextureLevel:null}),n},"vec3").once(["NORMAL","VERTEX"])().toVar("clearcoatNormalView"),Bxe=it(([t,e=pd])=>{const n=zl(e),r=t.div(Je(n[0].dot(n[0]),n[1].dot(n[1]),n[2].dot(n[2])));return n.mul(r).xyz}),rZ=it(([t],e)=>{const n=e.context.modelNormalViewMatrix;if(n)return n.transformDirection(t);const r=Pxe.mul(t);return Bd.transformDirection(r)}),F0t=it(()=>(Kt('TSL: "transformedNormalView" is deprecated. Use "normalView" instead.'),Li)).once(["NORMAL","VERTEX"])(),I0t=it(()=>(Kt('TSL: "transformedNormalWorld" is deprecated. Use "normalWorld" instead.'),dx)).once(["NORMAL","VERTEX"])(),B0t=it(()=>(Kt('TSL: "transformedClearcoatNormalView" is deprecated. Use "clearcoatNormalView" instead.'),WA)).once(["NORMAL","VERTEX"])(),sB=new Fr,Uxe=qn(0).onReference(({material:t})=>t).onObjectUpdate(({material:t})=>t.refractionRatio),tN=qn(1).onReference(({material:t})=>t).onObjectUpdate(function({material:t,scene:e}){return t.envMap?t.envMapIntensity:e.environmentIntensity}),iZ=qn(new Fr).onReference(function(t){return t.material}).onObjectUpdate(function({material:t,scene:e}){const n=e.environment!==null&&t.envMap===null?e.environmentRotation:t.envMapRotation;return n?sB.makeRotationFromEuler(n).transpose():sB.identity(),sB}),Vxe=Oa.negate().reflect(Li),jxe=Oa.negate().refract(Li,Uxe),Hxe=Vxe.transformDirection(Bd).toVar("reflectVector"),Gxe=jxe.transformDirection(Bd).toVar("reflectVector"),zxe=new m6;class U0t extends bp{static get type(){return"CubeTextureNode"}constructor(e,n=null,r=null,i=null){super(e,n,r,i),this.isCubeTextureNode=!0}getInputType(){return this.value.isDepthTexture===!0?"cubeDepthTexture":"cubeTexture"}getDefaultUV(){const e=this.value;return e.mapping===Zh?Hxe:e.mapping===yp?Gxe:(nn('CubeTextureNode: Mapping "%s" not supported.',e.mapping),Je(0,0,0))}setUpdateMatrix(){}setupUV(e,n){const r=this.value;return r.isDepthTexture===!0?e.renderer.coordinateSystem===_d?Je(n.x,n.y.negate(),n.z):n:(n=iZ.mul(n),(e.renderer.coordinateSystem===_d||!r.isRenderTargetTexture)&&(n=Je(n.x.negate(),n.yz)),n)}generateUV(e,n){return n.build(e,this.sampler===!0?"vec3":"ivec3")}}const aZ=Wr(U0t).setParameterLength(1,4).setName("cubeTexture"),Pu=(t=zxe,e=null,n=null,r=null)=>{let i;return t&&t.isCubeTextureNode===!0?(i=Un(t.clone()),i.referenceNode=t,e!==null&&(i.uvNode=Un(e)),n!==null&&(i.levelNode=Un(n)),r!==null&&(i.biasNode=Un(r))):i=aZ(t,e,n,r),i},V0t=(t=zxe)=>aZ(t);class j0t extends Gy{static get type(){return"ReferenceElementNode"}constructor(e,n){super(e,n),this.referenceNode=e,this.isReferenceElementNode=!0}generateNodeType(){return this.referenceNode.uniformType}generate(e){const n=super.generate(e),r=this.referenceNode.getNodeType(e),i=this.getNodeType(e);return e.format(n,r,i)}}class gk extends $n{static get type(){return"ReferenceNode"}constructor(e,n,r=null,i=null){super(),this.property=e,this.uniformType=n,this.object=r,this.count=i,this.properties=e.split("."),this.reference=r,this.node=null,this.group=null,this.name=null,this.updateType=_r.OBJECT}element(e){return new j0t(this,Un(e))}setGroup(e){return this.group=e,this}setName(e){return this.name=e,this}label(e){return Kt('TSL: "label()" has been deprecated. Use "setName()" instead.'),this.setName(e)}setNodeType(e){let n=null;this.count!==null?n=eE(null,e,this.count):Array.isArray(this.getValueFromReference())?n=Gc(null,e):e==="texture"?n=Bi(null):e==="cubeTexture"?n=Pu(null):n=qn(null,e),this.group!==null&&n.setGroup(this.group),this.name!==null&&n.setName(this.name),this.node=n}generateNodeType(e){return this.node===null&&(this.updateReference(e),this.updateV
4185alue()),this.node.getNodeType(e)}getValueFromReference(e=this.reference){const{properties:n}=this;let r=e[n[0]];for(let i=1;i<n.length;i++)r=r[n[i]];return r}updateReference(e){return this.reference=this.object!==null?this.object:e.object,this.reference}setup(){return this.updateValue(),this.node}update(){this.updateValue()}updateValue(){this.node===null&&this.setNodeType(this.uniformType);const e=this.getValueFromReference();Array.isArray(e)?this.node.array=e:this.node.value=e}}const ss=(t,e,n)=>new gk(t,e,n),lH=(t,e,n,r)=>new gk(t,e,r,n);class H0t extends gk{static get type(){return"MaterialReferenceNode"}constructor(e,n,r=null){super(e,n,r),this.material=r,this.isMaterialReferenceNode=!0}updateReference(e){return this.reference=this.material!==null?this.material:e.material,this.reference}}const Gm=(t,e,n=null)=>new H0t(t,e,n),$xe=Ca(),G0t=co.dFdx(),z0t=co.dFdy(),qxe=$xe.dFdx(),Wxe=$xe.dFdy(),Zxe=Li,Yxe=z0t.cross(Zxe),Xxe=Zxe.cross(G0t),cH=Yxe.mul(qxe.x).add(Xxe.mul(Wxe.x)),uH=Yxe.mul(qxe.y).add(Xxe.mul(Wxe.y)),Dae=cH.dot(cH).max(uH.dot(uH)),Qxe=Dae.equal(0).select(0,Dae.inverseSqrt()),$0t=cH.mul(Qxe).toVar("tangentViewFrame"),q0t=uH.mul(Qxe).toVar("bitangentViewFrame"),xk=D2("tangent","vec4"),F_=xk.xyz.toVar("tangentLocal"),vk=it(t=>{let e;return t.subBuildFn==="VERTEX"||t.geometry.hasAttribute("tangent")?e=fx.mul(er(F_,0)).xyz.toVarying("v_tangentView").normalize():e=$0t,t.isFlatShading()!==!0&&(e=v6(e)),e},"vec3").once(["NORMAL","VERTEX"])().toVar("tangentView"),Kxe=vk.transformDirection(Bd).toVarying("v_tangentWorld").normalize().toVar("tangentWorld"),yk=it(([t,e],n)=>{let r=t.mul(xk.w).xyz;return n.subBuildFn==="NORMAL"&&n.isFlatShading()!==!0&&(r=r.toVarying(e)),r}).once(["NORMAL"]),W0t=yk(Ak.cross(xk),"v_bitangentGeometry").normalize().toVar("bitangentGeometry"),Z0t=yk(O0.cross(F_),"v_bitangentLocal").normalize().toVar("bitangentLocal"),Jxe=it(t=>{let e;return t.subBuildFn==="VERTEX"||t.geometry.hasAttribute("tangent")?e=yk(Li.cross(vk),"v_bitangentView").normalize():e=q0t,t.isFlatShading()!==!0&&(e=v6(e)),e},"vec3").once(["NORMAL","VERTEX"])().toVar("bitangentView"),Y0t=yk(dx.cross(Kxe),"v_bitangentWorld").normalize().toVar("bitangentWorld"),kv=zl(vk,Jxe,Li).toVar("TBNViewMatrix"),eve=Oa.mul(kv),X0t=(t,e)=>t.sub(eve.mul(e)),tve=it(()=>{let t=ey.cross(Oa);return t=t.cross(ey).normalize(),t=mi(t,Li,BA.mul(H1.oneMinus()).oneMinus().pow2().pow2()).normalize(),t}).once()(),nve=t=>Un(t).mul(.5).add(.5),Q0t=t=>Un(t).mul(2).sub(1),fH=t=>Je(t,Vu(hk(ke(1).sub(Sd(t,t)))));class K0t extends eo{static get type(){return"NormalMapNode"}constructor(e,n=null){super("vec3"),this.node=e,this.scaleNode=n,this.normalMapType=Lh,this.unpackNormalMode=rI}setup(e){const{normalMapType:n,scaleNode:r,unpackNormalMode:i}=this;let a=this.node.mul(2).sub(1);if(n===Lh?i===Vme?a=fH(a.xy):i===OYe?a=fH(a.yw):i!==rI&&nn(`THREE.NodeMaterial: Unexpected unpack normal mode: ${i}`):i!==rI&&nn(`THREE.NodeMaterial: Normal map type '${n}' is not compatible with unpack normal mode '${i}'`),r!==null){let o=r;e.isFlatShading()===!0&&(o=v6(o)),a=Je(a.xy.mul(o),a.z)}let s=null;return n===Ume?s=rZ(a):n===Lh?s=kv.mul(a).normalize():(nn(`NodeMaterial: Unsupported normal map type: ${n}`),s=Li),s}}const dH=Wr(K0t).setParameterLength(1,2),J0t=it(({textureNode:t,bumpScale:e})=>{const n=i=>t.isolate().context({getUV:a=>i(a.uvNode||Ca()),forceUVContext:!0}),r=ke(n(i=>i));return dn(ke(n(i=>i.add(i.dFdx()))).sub(r),ke(n(i=>i.add(i.dFdy()))).sub(r)).mul(e)}),eft=it(t=>{const{surf_pos:e,surf_norm:n,dHdxy:r}=t,i=e.dFdx().normalize(),a=e.dFdy().normalize(),s=n,o=a.cross(s),l=s.cross(i),c=i.dot(o).mul(nZ),u=c.sign().mul(r.x.mul(o).add(r.y.mul(l)));return c.abs().mul(n).sub(u).normalize()});class tft extends eo{static get type(){return"BumpMapNode"}constructor(e,n=null){super("vec3"),this.textureNode=e,this.scaleNode=n}setup(){const e=this.scaleNode!==null?this.scaleNode:1,n=J0t({textureNode:this.textureNode,bumpScale:e});return eft({surf_pos:co,surf_norm:Li,dHdxy:n})}}const sZ=Wr(tft).setParameterLength(1,2),Pae=new Map;class Yt extends $n{static get type(){return"MaterialNode"}constructor(e){super(),this.scope=e}getCache(e,n){let r=Pae.get(e);return r===void 0&&(r=Gm(e,n),Pae.set(e,r)),r}getFloat(e){return this.getCache(e,"float")}getColor(e){return this.getCache(e,"color")}getTexture(e){return this.getCache(e==="map"?"map":e+"Map","texture")}setup(e){const n=e.context.material,r=this.scope;let i=null;if(r===Yt.COLOR){const a=n.color!==void 0?this.getColor(r):Je();n.map&&n.map.isTexture===!0?i=a.mul(this.getTexture("map")):i=a}else if(r===Yt.OPACITY){const a=this.getFloat(r);n.alphaMap&&n.alphaMap.isTexture===!0?i=a.mul(this.getTexture("alpha")):i=a}else if(r===Yt.SPECULAR_STRENGTH)n.specularMap&&n.specularMap.isTexture===!0?i=this.getTexture("specular").r:i=ke(1);else if(r===Yt.SPECULAR_INTENSITY){const a=this.getFloat(r);n.specularIntensityMap&&n.specularIntensityMap.isTexture===!0?i=a.mul(this.getTexture(r).a):i=a}else if(r===Yt.SPECULAR_COLOR){const a=this.getColor(r);n.specularColorMap&&n.specularColorMap.isTexture===!0?i=a.mul(this.getTexture(r).rgb):i=a}else if(r===Yt.ROUGHNESS){const a=this.getFloat(r);n.roughnessMap&&n.roughnessMap.isTexture===!0?i=a.mul(this.getTexture(r).g):i=a}else if(r===Yt.METALNESS){const a=this.getFloat(r);n.metalnessMap&&n.metalnessMap.isTexture===!0?i=a.mul(this.getTexture(r).b):i=a}else if(r===Yt.EMISSIVE){const a=this.getFloat("emissiveIntensity"),s=this.getColor(r).mul(a);n.emissiveMap&&n.emissiveMap.isTexture===!0?i=s.mul(this.getTexture(r)):i=s}else if(r===Yt.NORMAL)n.normalMap?(i=dH(this.getTexture("normal"),this.getCache("normalScale","vec2")),i.normalMapType=n.normalMapType,(n.normalMap.format==uc||n.normalMap.format==Wg||n.normalMap.format==qg)&&(i.unpackNormalMode=Vme)):n.bumpMap?i=sZ(this.getTexture("bump").r,this.getFloat("bumpScale")):i=Li;else if(r===Yt.CLEARCOAT){const a=this.getFloat(r);n.clearcoatMap&&n.clearcoatMap.isTexture===!0?i=a.mul(this.getTexture(r).r):i=a}else if(r===Yt.CLEARCOAT_ROUGHNESS){const a=this.getFloat(r);n.clearcoatRoughnessMap&&n.clearcoatRoughnessMap.isTexture===!0?i=a.mul(this.getTexture(r).r):i=a}else if(r===Yt.CLEARCOAT_NORMAL)n.clearcoatNormalMap?i=dH(this.getTexture(r),this.getCache(r+"Scale","vec2")):i=Li;else if(r===Yt.SHEEN){const a=this.getColor("sheenColor").mul(this.getFloat("sheen"));n.sheenColorMap&&n.sheenColorMap.isTexture===!0?i=a.mul(this.getTexture("sheenColor").rgb):i=a}else if(r===Yt.SHEEN_ROUGHNESS){const a=this.getFloat(r);n.sheenRoughnessMap&&n.sheenRoughnessMap.isTexture===!0?i=a.mul(this.getTexture(r).a):i=a,i=i.clamp(1e-4,1)}else if(r===Yt.ANISOTROPY)if(n.anisotropyMap&&n.anisotropyMap.isTexture===!0){const a=this.getTexture(r);i=ok(R8.x,R8.y,R8.y.negate(),R8.x).mul(a.rg.mul(2).sub(dn(1)).normalize().mul(a.b))}else i=R8;else if(r===Yt.IRIDESCENCE_THICKNESS){const a=ss("1","float",n.iridescenceThicknessRange);
4185if(n.iridescenceThicknessMap){const s=ss("0","float",n.iridescenceThicknessRange);i=a.sub(s).mul(this.getTexture(r).g).add(s)}else i=a}else if(r===Yt.TRANSMISSION){const a=this.getFloat(r);n.transmissionMap?i=a.mul(this.getTexture(r).r):i=a}else if(r===Yt.THICKNESS){const a=this.getFloat(r);n.thicknessMap?i=a.mul(this.getTexture(r).g):i=a}else if(r===Yt.IOR)i=this.getFloat(r);else if(r===Yt.LIGHT_MAP)i=this.getTexture(r).rgb.mul(this.getFloat("lightMapIntensity"));else if(r===Yt.AO)i=this.getTexture(r).r.sub(1).mul(this.getFloat("aoMapIntensity")).add(1);else if(r===Yt.LINE_DASH_OFFSET)i=n.dashOffset?this.getFloat(r):ke(0);else{const a=this.getNodeType(e);i=this.getCache(r,a)}return i}}Yt.ALPHA_TEST="alphaTest";Yt.COLOR="color";Yt.OPACITY="opacity";Yt.SHININESS="shininess";Yt.SPECULAR="specular";Yt.SPECULAR_STRENGTH="specularStrength";Yt.SPECULAR_INTENSITY="specularIntensity";Yt.SPECULAR_COLOR="specularColor";Yt.REFLECTIVITY="reflectivity";Yt.ROUGHNESS="roughness";Yt.METALNESS="metalness";Yt.NORMAL="normal";Yt.CLEARCOAT="clearcoat";Yt.CLEARCOAT_ROUGHNESS="clearcoatRoughness";Yt.CLEARCOAT_NORMAL="clearcoatNormal";Yt.EMISSIVE="emissive";Yt.ROTATION="rotation";Yt.SHEEN="sheen";Yt.SHEEN_ROUGHNESS="sheenRoughness";Yt.ANISOTROPY="anisotropy";Yt.IRIDESCENCE="iridescence";Yt.IRIDESCENCE_IOR="iridescenceIOR";Yt.IRIDESCENCE_THICKNESS="iridescenceThickness";Yt.IOR="ior";Yt.TRANSMISSION="transmission";Yt.THICKNESS="thickness";Yt.ATTENUATION_DISTANCE="attenuationDistance";Yt.ATTENUATION_COLOR="attenuationColor";Yt.LINE_SCALE="scale";Yt.LINE_DASH_SIZE="dashSize";Yt.LINE_GAP_SIZE="gapSize";Yt.LINE_WIDTH="linewidth";Yt.LINE_DASH_OFFSET="dashOffset";Yt.POINT_SIZE="size";Yt.DISPERSION="dispersion";Yt.LIGHT_MAP="light";Yt.AO="ao";const rve=Rn(Yt,Yt.ALPHA_TEST),ive=Rn(Yt,Yt.COLOR),ave=Rn(Yt,Yt.SHININESS),sve=Rn(Yt,Yt.EMISSIVE),oZ=Rn(Yt,Yt.OPACITY),ove=Rn(Yt,Yt.SPECULAR),hH=Rn(Yt,Yt.SPECULAR_INTENSITY),lve=Rn(Yt,Yt.SPECULAR_COLOR),_S=Rn(Yt,Yt.SPECULAR_STRENGTH),nN=Rn(Yt,Yt.REFLECTIVITY),cve=Rn(Yt,Yt.ROUGHNESS),uve=Rn(Yt,Yt.METALNESS),fve=Rn(Yt,Yt.NORMAL),dve=Rn(Yt,Yt.CLEARCOAT),hve=Rn(Yt,Yt.CLEARCOAT_ROUGHNESS),pve=Rn(Yt,Yt.CLEARCOAT_NORMAL),mve=Rn(Yt,Yt.ROTATION),Ave=Rn(Yt,Yt.SHEEN),gve=Rn(Yt,Yt.SHEEN_ROUGHNESS),xve=Rn(Yt,Yt.ANISOTROPY),vve=Rn(Yt,Yt.IRIDESCENCE),yve=Rn(Yt,Yt.IRIDESCENCE_IOR),_ve=Rn(Yt,Yt.IRIDESCENCE_THICKNESS),bve=Rn(Yt,Yt.TRANSMISSION),wve=Rn(Yt,Yt.THICKNESS),Sve=Rn(Yt,Yt.IOR),Tve=Rn(Yt,Yt.ATTENUATION_DISTANCE),Eve=Rn(Yt,Yt.ATTENUATION_COLOR),Mve=Rn(Yt,Yt.LINE_SCALE),Cve=Rn(Yt,Yt.LINE_DASH_SIZE),Nve=Rn(Yt,Yt.LINE_GAP_SIZE),nft=Rn(Yt,Yt.LINE_WIDTH),Rve=Rn(Yt,Yt.LINE_DASH_OFFSET),Dve=Rn(Yt,Yt.POINT_SIZE),Pve=Rn(Yt,Yt.DISPERSION),lZ=Rn(Yt,Yt.LIGHT_MAP),kve=Rn(Yt,Yt.AO),R8=qn(new tn).onReference(function(t){return t.material}).onRenderUpdate(function({material:t}){this.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation))}),Lve=it(t=>t.context.setupModelViewProjection(),"vec4").once()().toVarying("v_modelViewProjection");class rft extends Gy{static get type(){return"StorageArrayElementNode"}constructor(e,n){super(e,n),this.isStorageArrayElementNode=!0}set storageBufferNode(e){this.node=e}get storageBufferNode(){return this.node}getMemberType(e,n){const r=this.storageBufferNode.structTypeNode;return r?r.getMemberType(e,n):"void"}setup(e){return e.isAvailable("storageBuffer")===!1&&this.node.isPBO===!0&&e.setupPBO(this.node),super.setup(e)}generate(e,n){let r;const i=e.context.assign;if(e.isAvailable("storageBuffer")===!1?this.node.isPBO===!0&&i!==!0&&(this.node.value.isInstancedBufferAttribute||e.shaderStage!=="compute")?r=e.generatePBO(this):r=this.node.build(e):r=super.generate(e),i!==!0){const a=this.getNodeType(e);r=e.format(r,a,n)}return r}}const ift=Wr(rft).setParameterLength(2);class aft extends KW{static get type(){return"StorageBufferNode"}constructor(e,n=null,r=0){let i,a=null;n&&n.isStruct?(i="struct",a=n.layout,(e.isStorageBufferAttribute||e.isStorageInstancedBufferAttribute)&&(r=e.count)):n===null&&(e.isStorageBufferAttribute||e.isStorageInstancedBufferAttribute)?(i=UAe(e.itemSize),r=e.count):i=n,super(e,i,r),this.isStorageBufferNode=!0,this.structTypeNode=a,this.access=fc.READ_WRITE,this.isAtomic=!1,this.isPBO=!1,this._attribute=null,this._varying=null,this.global=!0,e.isStorageBufferAttribute!==!0&&e.isStorageInstancedBufferAttribute!==!0&&(e.isInstancedBufferAttribute?e.isStorageInstancedBufferAttribute=!0:e.isStorageBufferAttribute=!0)}getHash(e){let n;if(this.bufferCount===0){let r=e.globalCache.getData(this.value);r===void 0&&(r={node:this},e.globalCache.setData(this.value,r)),n=r.node.id}else n=this.id;return String(n)}getInputType(){return this.value.isIndirectStorageBufferAttribute?"indirectStorageBuffer":"storageBuffer"}element(e){return ift(this,e)}setPBO(e){return this.isPBO=e,this}getPBO(){return this.isPBO}setAccess(e){return this.access=e,this}toReadOnly(){return this.setAccess(fc.READ_ONLY)}setAtomic(e){return this.isAtomic=e,this}toAtomic(){return this.setAtomic(!0)}getAttributeData(){return this._attribute===null&&(this._attribute=qW(this.value),this._varying=cx(this._attribute)),{attribute:this._attribute,varying:this._varying}}generateNodeType(e){if(this.structTypeNode!==null)return this.structTypeNode.getNodeType(e);if(e.isAvailable("storageBuffer")||e.isAvailable("indirectStorageBuffer"))return super.generateNodeType(e);const{attribute:n}=this.getAttributeData();return n.getNodeType(e)}getMemberType(e,n){return this.structTypeNode!==null?this.structTypeNode.getMemberType(e,n):"void"}generate(e){if(this.structTypeNode!==null&&this.structTypeNode.build(e),e.isAvailable("storageBuffer")||e.isAvailable("indirectStorageBuffer"))return super.generate(e);const{attribute:n,varying:r}=this.getAttributeData(),i=r.build(e);return e.registerTransform(i,n),i}}const kg=(t,e=null,n=0)=>new aft(t,e,n);class Ove extends $n{static get type(){return"InstanceNode"}constructor(e,n,r=null){super("void"),this.count=e,this.instanceMatrix=n,this.instanceColor=r,this.instanceMatrixNode=null,this.instanceColorNode=null,this.updateType=_r.FRAME,this.buffer=null,this.bufferColor=null,this.previousInstanceMatrixNode=null}get isStorageMatrix(){const{instanceMatrix:e}=this;return e&&e.isStorageInstancedBufferAttribute===!0}get isStorageColor(){const{instanceColor:e}=this;return e&&e.isStorageInstancedBufferAttribute===!0}setup(e){let{instanceMatrixNode:n,instanceColorNode:r}=this;
4185n===null&&(n=this._createInstanceMatrixNode(!0,e),this.instanceMatrixNode=n);const{instanceColor:i,isStorageColor:a}=this;if(i&&r===null){if(a)r=kg(i,"vec3",Math.max(i.count,1)).element(Fh);else{const o=new Rg(i.array,3),l=i.usage===R5?aH:sD;this.bufferColor=o,r=Je(l(o,"vec3",3,0))}this.instanceColorNode=r}const s=n.mul(gs).xyz;if(gs.assign(s),e.needsPreviousData()&&L_.assign(this.getPreviousInstancedPosition(e)),e.hasGeometryAttribute("normal")){const o=Bxe(O0,n);O0.assign(o)}this.instanceColorNode!==null&&Z5("vec3","vInstanceColor").assign(this.instanceColorNode)}update(e){this.buffer!==null&&this.isStorageMatrix!==!0&&(this.buffer.clearUpdateRanges(),this.buffer.updateRanges.push(...this.instanceMatrix.updateRanges),this.instanceMatrix.version!==this.buffer.version&&(this.buffer.version=this.instanceMatrix.version)),this.instanceColor&&this.bufferColor!==null&&this.isStorageColor!==!0&&(this.bufferColor.clearUpdateRanges(),this.bufferColor.updateRanges.push(...this.instanceColor.updateRanges),this.instanceColor.version!==this.bufferColor.version&&(this.bufferColor.version=this.instanceColor.version)),this.previousInstanceMatrixNode!==null&&e.object.previousInstanceMatrix.array.set(this.instanceMatrix.array)}getPreviousInstancedPosition(e){const n=e.object;return this.previousInstanceMatrixNode===null&&(n.previousInstanceMatrix=this.instanceMatrix.clone(),this.previousInstanceMatrixNode=this._createInstanceMatrixNode(!1,e)),this.previousInstanceMatrixNode.mul(L_).xyz}_createInstanceMatrixNode(e,n){let r;const{instanceMatrix:i}=this,{count:a}=i;if(this.isStorageMatrix)r=kg(i,"mat4",Math.max(a,1)).element(Fh);else if(a*16*4<=n.getUniformBufferLimit())r=eE(i.array,"mat4",Math.max(a,1)).element(Fh);else{const o=new mR(i.array,16,1);e===!0&&(this.buffer=o);const l=i.usage===R5?aH:sD,c=[l(o,"vec4",16,0),l(o,"vec4",16,4),l(o,"vec4",16,8),l(o,"vec4",16,12)];r=Dg(...c)}return r}}const sft=Wr(Ove).setParameterLength(2,3);class oft extends Ove{static get type(){return"InstancedMeshNode"}constructor(e){const{count:n,instanceMatrix:r,instanceColor:i}=e;super(n,r,i),this.instancedMesh=e}}const Fve=Wr(oft).setParameterLength(1);class lft extends $n{static get type(){return"BatchNode"}constructor(e){super("void"),this.batchMesh=e,this.batchingIdNode=null}setup(e){this.batchingIdNode===null&&(e.getDrawIndex()===null?this.batchingIdNode=Fh:this.batchingIdNode=gxe);const r=it(([A])=>{const g=$e(Pg(Hs(this.batchMesh._indirectTexture),0).x).toConst(),w=$e(A).mod(g).toConst(),T=$e(A).div(g).toConst();return Hs(this.batchMesh._indirectTexture,Go(w,T)).x}).setLayout({name:"getIndirectIndex",type:"uint",inputs:[{name:"id",type:"int"}]})($e(this.batchingIdNode)),i=this.batchMesh._matricesTexture,a=$e(Pg(Hs(i),0).x).toConst(),s=ke(r).mul(4).toInt().toConst(),o=s.mod(a).toConst(),l=s.div(a).toConst(),c=Dg(Hs(i,Go(o,l)),Hs(i,Go(o.add(1),l)),Hs(i,Go(o.add(2),l)),Hs(i,Go(o.add(3),l))),u=this.batchMesh._colorsTexture;if(u!==null){const g=it(([w])=>{const T=$e(Pg(Hs(u),0).x).toConst(),C=w,M=C.mod(T).toConst(),D=C.div(T).toConst();return Hs(u,Go(M,D)).rgb}).setLayout({name:"getBatchingColor",type:"vec3",inputs:[{name:"id",type:"int"}]})(r);Z5("vec3","vBatchColor").assign(g)}const f=zl(c);gs.assign(c.mul(gs));const h=O0.div(Je(f[0].dot(f[0]),f[1].dot(f[1]),f[2].dot(f[2]))),p=f.mul(h).xyz;O0.assign(p),e.hasGeometryAttribute("tangent")&&F_.mulAssign(f)}}const Ive=Wr(lft).setParameterLength(1),kae=new WeakMap;class Bve extends $n{static get type(){return"SkinningNode"}constructor(e){super("void"),this.skinnedMesh=e,this.updateType=_r.OBJECT,this.skinIndexNode=D2("skinIndex","uvec4"),this.skinWeightNode=D2("skinWeight","vec4"),this.bindMatrixNode=ss("bindMatrix","mat4"),this.bindMatrixInverseNode=ss("bindMatrixInverse","mat4"),this.boneMatricesNode=lH("skeleton.boneMatrices","mat4",e.skeleton.bones.length),this.positionNode=gs,this.toPositionNode=gs,this.previousBoneMatricesNode=null}getSkinnedPosition(e=this.boneMatricesNode,n=this.positionNode){const{skinIndexNode:r,skinWeightNode:i,bindMatrixNode:a,bindMatrixInverseNode:s}=this,o=e.element(r.x),l=e.element(r.y),c=e.element(r.z),u=e.element(r.w),f=a.mul(n),h=Ro(o.mul(i.x).mul(f),l.mul(i.y).mul(f),c.mul(i.z).mul(f),u.mul(i.w).mul(f));return s.mul(h).xyz}getSkinnedNormalAndTangent(e=this.boneMatricesNode,n=O0,r=F_){const{skinIndexNode:i,skinWeightNode:a,bindMatrixNode:s,bindMatrixInverseNo
4185de:o}=this,l=e.element(i.x),c=e.element(i.y),u=e.element(i.z),f=e.element(i.w);let h=Ro(a.x.mul(l),a.y.mul(c),a.z.mul(u),a.w.mul(f));h=o.mul(h).mul(s);const p=h.transformDirection(n).xyz,A=h.transformDirection(r).xyz;return{skinNormal:p,skinTangent:A}}getPreviousSkinnedPosition(e){const n=e.object;return this.previousBoneMatricesNode===null&&(n.skeleton.previousBoneMatrices=new Float32Array(n.skeleton.boneMatrices),this.previousBoneMatricesNode=lH("skeleton.previousBoneMatrices","mat4",n.skeleton.bones.length)),this.getSkinnedPosition(this.previousBoneMatricesNode,L_)}setup(e){e.needsPreviousData()&&L_.assign(this.getPreviousSkinnedPosition(e));const n=this.getSkinnedPosition();if(this.toPositionNode&&this.toPositionNode.assign(n),e.hasGeometryAttribute("normal")){const{skinNormal:r,skinTangent:i}=this.getSkinnedNormalAndTangent();O0.assign(r),e.hasGeometryAttribute("tangent")&&F_.assign(i)}return n}generate(e,n){if(n!=="void")return super.generate(e,n)}update(e){const n=e.object&&e.object.skeleton?e.object.skeleton:this.skinnedMesh.skeleton;kae.get(n)!==e.frameId&&(kae.set(n,e.frameId),this.previousBoneMatricesNode!==null&&(n.previousBoneMatrices===null&&(n.previousBoneMatrices=new Float32Array(n.boneMatrices)),n.previousBoneMatrices.set(n.boneMatrices)),n.update())}}const Uve=t=>new Bve(t),cft=(t,e=null)=>{const n=new Bve(t);return n.positionNode=kg(new Rg(t.geometry.getAttribute("position").array,3),"vec3").setPBO(!0).toReadOnly().element(Fh).toVar(),n.skinIndexNode=kg(new Rg(new Uint32Array(t.geometry.getAttribute("skinIndex").array),4),"uvec4").setPBO(!0).toReadOnly().element(Fh).toVar(),n.skinWeightNode=kg(new Rg(t.geometry.getAttribute("skinWeight").array,4),"vec4").setPBO(!0).toReadOnly().element(Fh).toVar(),n.bindMatrixNode=qn(t.bindMatrix,"mat4"),n.bindMatrixInverseNode=qn(t.bindMatrixInverse,"mat4"),n.boneMatricesNode=eE(t.skeleton.boneMatrices,"mat4",t.skeleton.bones.length),n.toPositionNode=e,Un(n)};class uft extends $n{static get type(){return"LoopNode"}constructor(e=[]){super("void"),this.params=e}getVarName(e){return String.fromCharCode(105+e)}getProperties(e){const n=e.getNodeProperties(this);if(n.stackNode!==void 0)return n;const r={};for(let o=0,l=this.params.length-1;o<l;o++){const c=this.params[o],u=c.isNode!==!0&&c.name||this.getVarName(o),f=c.isNode!==!0&&c.type||"int";r[u]=pf(u,f)}const i=e.addStack(),a=this.params[this.params.length-1](r);n.returnsNode=a.context({nodeLoop:a}),n.stackNode=i;const s=this.params[0];if(s.isNode!==!0&&typeof s.update=="function"){const o=it(this.params[0].update)(r);n.updateNode=o.context({nodeLoop:o})}return e.removeStack(),n}setup(e){if(this.getProperties(e),e.fnCall){const n=e.getDataFromNode(e.fnCall.shaderNode);n.hasLoop=!0}}generate(e){const n=this.getProperties(e),r=this.params,i=n.stackNode;for(let s=0,o=r.length-1;s<o;s++){const l=r[s];let c=!1,u=null,f=null,h=null,p=null,A=null,g=null;l.isNode?l.getNodeType(e)==="bool"?(c=!0,p="bool",f=l.build(e,p)):(p="int",h=this.getVarName(s),u="0",f=l.build(e,p),A="<"):(p=l.type||"int",h=l.name||this.getVarName(s),u=l.start,f=l.end,A=l.condition,g=l.update,typeof u=="number"?u=e.generateConst(p,u):u&&u.isNode&&(u=u.build(e,p)),typeof f=="number"?f=e.generateConst(p,f):f&&f.isNode&&(f=f.build(e,p)),u!==void 0&&f===void 0?(u=u+" - 1",f="0",A=">="):f!==void 0&&u===void 0&&(u="0",A="<"),A===void 0&&(Number(u)>Number(f)?A=">=":A="<"));let w;if(c)w=`while ( ${f} )`;else{const T={start:u,end:f},C=T.start,M=T.end;let D;const k=()=>A.includes("<")?"+=":"-=";if(g!=null)switch(typeof g){case"function":D=e.flowStagesNode(n.updateNode,"void").code.replace(/\t|;/g,"");break;case"number":D=h+" "+k()+" "+e.generateConst(p,g);break;case"string":D=h+" "+g;break;default:g.isNode?D=h+" "+k()+" "+g.build(e):(nn("TSL: 'Loop( { update: ... } )' is not a function, string or number.",this.stackTrace),D="break /* invalid update */")}else p==="int"||p==="uint"?g=A.includes("<")?"++":"--":g=k()+" 1.",D=h+" "+g;const I=e.getVar(p,h)+" = "+C,L=h+" "+A+" "+M;w=`for ( ${I}; ${L}; ${D} )`}e.addFlowCode((s===0?` 4186`:"")+e.tab+w+` { 4187 4188`).addFlowTab()}const a=i.build(e,"void");n.returnsNode.build(e,"void"),e.removeFlowTab().addFlowCode(` 4189`+e.tab+a);for(let s=0,o=this.params.length-1;s<o;s++)e.addFlowCode((s===0?"":e.tab)+`} 4190 4191`).removeFlowTab();e.addFlowTab()}}const ba=(...t)=>new uft(Jv(t,"int")).toStack(),fft=()=>pf("continue").toStack(),Vve=()=>pf("break").toStack(),oB=new WeakMap,X0=new kr,Lae=it(({bufferMap:t,influence:e,stride:n,width:r,depth:i,offset:a})=>{const s=$e(Axe).mul(n).add(a),o=s.div(r),l=s.sub(o.mul(r));return Hs(t,Go(l,o)).depth(i).xyz.mul(e)});function dft(t){const e=t.morphAttributes.position!==void 0,n=t.morphAttributes.normal!==void 0,r=t.morphAttributes.color!==void 0,i=t.morphAttributes.position||t.morphAttributes.normal||t.morphAttributes.color,a=i!==void 0?i.length:0;let s=oB.get(t);if(s===void 0||s.count!==a){let C=function(){w.dispose(),oB.delete(t),t.removeEventListener("dispose",C)};var o=C;s!==void 0&&s.texture.dispose();const l=t.morphAttributes.position||[],c=t.morphAttributes.normal||[],u=t.morphAttributes.color||[];let f=0;e===!0&&(f=1),n===!0&&(f=2),r===!0&&(f=3);let h=t.attributes.position.count*f,p=1;const A=4096;h>A&&(p=Math.ceil(h/A),h=A);const g=new Float32Array(h*p*4*a),w=new Eq(g,h,p,a);w.type=os,w.needsUpdate=!0;const T=f*4;for(let M=0;M<a;M++){const D=l[M],k=c[M],I=u[M],L=h*p*4*M;for(let O=0;O<D.count;O++){const B=O*T;e===!0&&(X0.fromBufferAttribute(D,O),g[L+B+0]=X0.x,g[L+B+1]=X0.y,g[L+B+2]=X0.z,g[L+B+3]=0),n===!0&&(X0.fromBufferAttribute(k,O),g[L+B+4]=X0.x,g[L+B+5]=X0.y,g[L+B+6]=X0.z,g[L+B+7]=0),r===!0&&(X0.fromBufferAttribute(I,O),g[L+B+8]=X0.x,g[L+B+9]=X0.y,g[L+B+10]=X0.z,g[L+B+11]=I.itemSize===4?X0.w:1)}}s={count:a,texture:w,stride:f,size:new tn(h,p)},oB.set(t,s),t.addEventListener("dispose",C)}return s}class hft extends $n{static get type(){return"MorphNode"}constructor(e){super("void"),this.mesh=e,this.morphBaseInfluence=qn(1),this.updateType=_r.OBJECT}setup(e){const{geometry:n}=e,r=n.morphAttributes.position!==void 0,i=n.hasAttribute("normal")&&n.morphAttributes.normal!==void 0,a=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,s=a!==void 0?a.length:0,{texture:o,stride:l,size:c}=dft(n);r===!0&&gs.mulAssign(this.morphBaseInfluence),i===!0&&O0.mulAssign(this.morphBaseInfluence);const u=$e(c.width);ba(s,({i:f})=>{const h=ke(0).toVar();this.mesh.count>1&&this.mesh.morphTexture!==null&&this.mesh.morphTexture!==void 0?h.assign(Hs(this.mesh.morphTexture,Go($e(f).add(1),$e(Fh))).r):h.assign(ss("morphTargetInfluences","float").element
4191(f).toVar()),sr(h.notEqual(0),()=>{r===!0&&gs.addAssign(Lae({bufferMap:o,influence:h,stride:l,width:u,depth:f,offset:$e(0)})),i===!0&&O0.addAssign(Lae({bufferMap:o,influence:h,stride:l,width:u,depth:f,offset:$e(1)}))})})}update(){const e=this.morphBaseInfluence;this.mesh.geometry.morphTargetsRelative?e.value=1:e.value=1-this.mesh.morphTargetInfluences.reduce((n,r)=>n+r,0)}}const jve=Wr(hft).setParameterLength(1);class y6 extends $n{static get type(){return"LightingNode"}constructor(){super("vec3"),this.isLightingNode=!0}}class pft extends y6{static get type(){return"AONode"}constructor(e=null){super(),this.aoNode=e}setup(e){e.context.ambientOcclusion.mulAssign(this.aoNode)}}class mft extends exe{static get type(){return"LightingContextNode"}constructor(e,n=null,r=null,i=null){super(e),this.lightingModel=n,this.backdropNode=r,this.backdropAlphaNode=i,this._value=null}getContext(){const{backdropNode:e,backdropAlphaNode:n}=this,r=Je().toVar("directDiffuse"),i=Je().toVar("directSpecular"),a=Je().toVar("indirectDiffuse"),s=Je().toVar("indirectSpecular"),o={directDiffuse:r,directSpecular:i,indirectDiffuse:a,indirectSpecular:s};return{radiance:Je().toVar("radiance"),irradiance:Je().toVar("irradiance"),iblIrradiance:Je().toVar("iblIrradiance"),ambientOcclusion:ke(1).toVar("ambientOcclusion"),reflectedLight:o,backdrop:e,backdropAlpha:n}}setup(e){return this.value=this._value||(this._value=this.getContext()),this.value.lightingModel=this.lightingModel||e.context.lightingModel,super.setup(e)}}const Hve=Wr(mft);class Aft extends y6{static get type(){return"IrradianceNode"}constructor(e){super(),this.node=e}setup(e){e.context.irradiance.addAssign(this.node)}}const $x=new tn;class _k extends bp{static get type(){return"ViewportTextureNode"}constructor(e=dp,n=null,r=null){let i=null;r===null?(i=new Oq,i.minFilter=v0,r=i):i=r,super(r,e,n),this.generateMipmaps=!1,this.defaultFramebuffer=i,this.isOutputTextureNode=!0,this.updateBeforeType=_r.RENDER,this._cacheTextures=new WeakMap}getTextureForReference(e=null){let n,r;if(this.referenceNode?(n=this.referenceNode.defaultFramebuffer,r=this.referenceNode._cacheTextures):(n=this.defaultFramebuffer,r=this._cacheTextures),e===null)return n;if(r.has(e)===!1){const i=n.clone();r.set(e,i)}return r.get(e)}updateReference(e){const n=e.renderer,r=n.getRenderTarget(),i=n.getCanvasTarget(),a=r||i;return this.value=this.getTextureForReference(a),this.value}updateBefore(e){const n=e.renderer,r=n.getRenderTarget(),i=n.getCanvasTarget(),a=r||i;a===null?n.getDrawingBufferSize($x):a.getDrawingBufferSize?a.getDrawingBufferSize($x):$x.set(a.width,a.height);const s=this.getTextureForReference(a);(s.image.width!==$x.width||s.image.height!==$x.height)&&(s.image.width=$x.width,s.image.height=$x.height,s.needsUpdate=!0);const o=s.generateMipmaps;s.generateMipmaps=this.generateMipmaps,n.copyFramebufferToTexture(s),s.generateMipmaps=o}clone(){const e=new this.constructor(this.uvNode,this.levelNode,this.value);return e.generateMipmaps=this.generateMipmaps,e}}const gft=Wr(_k).setParameterLength(0,3),cZ=Wr(_k,null,null,{generateMipmaps:!0}).setParameterLength(0,3),xft=cZ(),Gve=(t=dp,e=null)=>xft.sample(t,e);let lB=null;class vft extends _k{static get type(){return"ViewportDepthTextureNode"}constructor(e=dp,n=null,r=null){r===null&&(lB===null&&(lB=new hc),r=lB),super(e,n,r)}}const uZ=Wr(vft).setParameterLength(0,3);class w0 extends $n{static get type(){return"ViewportDepthNode"}constructor(e,n=null){super("float"),this.scope=e,this.valueNode=n,this.isViewportDepthNode=!0}generate(e){const{scope:n}=this;return n===w0.DEPTH_BASE?e.getFragDepth():super.generate(e)}setup({camera:e}){const{scope:n}=this,r=this.valueNode;let i=null;if(n===w0.DEPTH_BASE)r!==null&&(i=$ve().assign(r));else if(n===w0.DEPTH)e.isPerspectiveCamera?i=fZ(co.z,$A,qA):i=S3(co.z,$A,qA);else if(n===w0.LINEAR_DEPTH)if(r!==null)if(e.isPerspectiveCamera){const a=dZ(r,$A,qA);i=S3(a,$A,qA)}else i=r;else i=S3(co.z,$A,qA);return i}}w0.DEPTH_BASE="depthBase";w0.DEPTH="depth";w0.LINEAR_DEPTH="linearDepth";const S3=(t,e,n)=>t.add(e).div(e.sub(n)),yft=(t,e,n)=>t.add(n).div(n.sub(e)),_ft=it(([t,e,n],r)=>r.renderer.reversedDepthBuffer===!0?n.sub(e).mul(t).sub(n):e.sub(n).mul(t).sub(e)),fZ=(t,e,n)=>e.add(t).mul(n).div(n.sub(e).mul(t)),zve=(t,e,n)=>e.mul(t.add(n)).div(t.mul(e.sub(n))),dZ=it(([t,e,n],r)=>r.renderer.reversedDepthBuffer===!0?e.mul(n).div(e.sub(n).mul(t).sub(e)):e.mul(n).div(n.sub(e).mul(t).sub(n))),hZ=(t,e,n)=>{e=e.max(1e-6).toVar();const r=cp(t.negate().div(e)),i=cp(n.div(e));return r.div(i)},bft=(t,e,n)=>{const r=t.mul(fk(n.div(e)));return ke(Math.E).pow(r).mul(e).negate()},$ve=Wr(w0,w0.DEPTH_BASE),pZ=Rn(w0,w0.DEPTH),oD=Wr(w0,w0.LINEAR_DEPTH).setParameterLength(0,1),wft=oD(uZ());pZ.assign=t=>$ve(t);class vd extends $n{static get type(){return"ClippingNode"}constructor(e=vd.DEFAULT){super(),this.scope=e}setup(e){super.setup(e);const n=e.clippingContext,{intersectionPlanes:r,unionPlanes:i}=n;return this.hardwareClipping=e.material.hardwareClipping,this.scope===vd.ALPHA_TO_COVERAGE?this.setupAlphaToCoverage(r,i):this.scope===vd.HARDWARE?this.setupHardwareClipping(i,e):this.setupDefault(r,i)}setupAlphaToCoverage(e,n){return it(()=>{const r=ke().toVar("distanceToPlane"),i=ke().toVar("distanceToGradient"),a=ke(1).toVar("clipOpacity"),s=n.length;if(this.hardwareClipping===!1&&s>0){const l=Gc(n).setGroup(rr);ba(s,({i:c})=>{const u=l.element(c);r.assign(co.dot(u.xyz).negate().add(u.w)),i.assign(r.fwidth().div(2)),a.mulAssign(Qh(i.negate(),i,r))})}const o=e.length;if(o>0){const l=Gc(e).setGroup(rr),c=ke(1).toVar("intersectionClipOpacity");ba(o,({i:u})=>{const f=l.element(u);r.assign(co.dot(f.xyz).negate().add(f.w)),i.assign(r.fwidth().div(2)),c.mulAssign(Qh(i.negate(),i,r).oneMinus())}),a.mulAssign(c.oneMinus())}va.a.mulAssign(a),va.a.equal(0).discard()})()}setupDefault(e,n){return it(()=>{const r=n.length;if(this.hardwareClipping===!1&&r>0){const a=Gc(n).setGroup(rr);ba(r,({i:s})=>
4191{const o=a.element(s);co.dot(o.xyz).greaterThan(o.w).discard()})}const i=e.length;if(i>0){const a=Gc(e).setGroup(rr),s=Ef(!0).toVar("clipped");ba(i,({i:o})=>{const l=a.element(o);s.assign(co.dot(l.xyz).greaterThan(l.w).and(s))}),s.discard()}})()}setupHardwareClipping(e,n){const r=e.length;return n.enableHardwareClipping(r),it(()=>{const i=Gc(e).setGroup(rr),a=$2(n.getClipDistance());ba(r,({i:s})=>{const o=i.element(s),l=co.dot(o.xyz).sub(o.w).negate();a.element(s).assign(l)})})()}}vd.ALPHA_TO_COVERAGE="alphaToCoverage";vd.DEFAULT="default";vd.HARDWARE="hardware";const Sft=()=>new vd,Tft=()=>new vd(vd.ALPHA_TO_COVERAGE),Eft=()=>new vd(vd.HARDWARE),Mft=.05,Oae=it(([t])=>Yh(Lr(1e4,Cu(Lr(17,t.x).add(Lr(.1,t.y)))).mul(Ro(.1,qa(Cu(Lr(13,t.y).add(t.x))))))),Fae=it(([t])=>Oae(dn(Oae(t.xy),t.z))),Cft=it(([t])=>{const e=Us(fp(kW(t.xyz)),fp(LW(t.xyz))),n=ke(1).div(ke(Mft).mul(e)).toVar("pixScale"),r=dn(k_(up(cp(n))),k_(dk(cp(n)))),i=dn(Fae(up(r.x.mul(t.xyz))),Fae(up(r.y.mul(t.xyz)))),a=Yh(cp(n)),s=Ro(Lr(a.oneMinus(),i.x),Lr(a,i.y)),o=L0(a,a.oneMinus()),l=Je(s.mul(s).div(Lr(2,o).mul(bi(1,o))),s.sub(Lr(.5,o)).div(bi(1,o)),bi(1,bi(1,s).mul(bi(1,s)).div(Lr(2,o).mul(bi(1,o))))),c=s.lessThan(o.oneMinus()).select(s.lessThan(o).select(l.x,l.y),l.z);return Xh(c,1e-6,1)}).setLayout({name:"getAlphaHashThreshold",type:"float",inputs:[{name:"position",type:"vec3"}]});class Nft extends Exe{static get type(){return"VertexColorNode"}constructor(e){super(null,"vec4"),this.isVertexColorNode=!0,this.index=e}getAttributeName(){const e=this.index;return"color"+(e>0?e:"")}generate(e){const n=this.getAttributeName(e),r=e.hasGeometryAttribute(n);let i;return r===!0?i=super.generate(e):i=e.generateConst(this.nodeType,new kr(1,1,1,1)),i}serialize(e){super.serialize(e),e.index=this.index}deserialize(e){super.deserialize(e),this.index=e.index}}const qve=(t=0)=>new Nft(t),Rft=it(([t,e])=>L0(1,t.oneMinus().div(e)).oneMinus()).setLayout({name:"blendBurn",type:"vec3",inputs:[{name:"base",type:"vec3"},{name:"blend",type:"vec3"}]}),Dft=it(([t,e])=>L0(t.div(e.oneMinus()),1)).setLayout({name:"blendDodge",type:"vec3",inputs:[{name:"base",type:"vec3"},{name:"blend",type:"vec3"}]}),Pft=it(([t,e])=>t.oneMinus().mul(e.oneMinus()).oneMinus()).setLayout({name:"blendScreen",type:"vec3",inputs:[{name:"base",type:"vec3"},{name:"blend",type:"vec3"}]}),kft=it(([t,e])=>mi(t.mul(2).mul(e),t.oneMinus().mul(2).mul(e.oneMinus()).oneMinus(),_y(.5,t))).setLayout({name:"blendOverlay",type:"vec3",inputs:[{name:"base",type:"vec3"},{name:"blend",type:"vec3"}]}),Lft=it(([t,e])=>{const n=e.a.add(t.a.mul(e.a.oneMinus()));return er(e.rgb.mul(e.a).add(t.rgb.mul(t.a).mul(e.a.oneMinus())).div(n),n)}).setLayout({name:"blendColor",type:"vec4",inputs:[{name:"base",type:"vec4"},{name:"blend",type:"vec4"}]}),Wve=it(([t])=>er(t.rgb.mul(t.a),t.a),{color:"vec4",return:"vec4"}),Oft=it(([t])=>(sr(t.a.equal(0),()=>er(0)),er(t.rgb.div(t.a),t.a)),{color:"vec4",return:"vec4"});class Js extends nu{static get type(){return"NodeMaterial"}get type(){return this.constructor.type}set type(e){}constructor(){super(),this.isNodeMaterial=!0,this.fog=!0,this.lights=!1,this.hardwareClipping=!1,this.lightsNode=null,this.envNode=null,this.aoNode=null,this.colorNode=null,this.normalNode=null,this.opacityNode=null,this.backdropNode=null,this.backdropAlphaNode=null,this.alphaTestNode=null,this.maskNode=null,this.maskShadowNode=null,this.positionNode=null,this.geometryNode=null,this.depthNode=null,this.receivedShadowPositionNode=null,this.castShadowPositionNode=null,this.receivedShadowNode=null,this.castShadowNode=null,this.outputNode=null,this.mrtNode=null,this.fragmentNode=null,this.vertexNode=null,this.contextNode=null}_getNodeChildren(){const e=[];for(const n of Object.getOwnPropertyNames(this)){if(n.startsWith("_")===!0)continue;const r=this[n];r&&r.isNode===!0&&e.push({property:n,childNode:r})}return e}customProgramCacheKey(){const e=[];for(const{property:n,childNode:r}of this._getNodeChildren())e.push(x6(n.slice(0,-4)),r.getCacheKey());return this.type+QT(e)}build(e){this.setup(e)}setupObserver(e){return new Yct(e)}setup(e){e.context.setupNormal=()=>ty(this.setupNormal(e),"NORMAL","vec3"),e.context.setupPositionView=()=>this.setupPositionView(e),e.context.setupModelViewProjection=()=>this.setupModelViewProjection(e);const n=e.renderer,r=n.getRenderTarget();e.addStack();const i=this.setupVertex(e),a=ty(this.vertexNode||i,"VERTEX");e.context.clipSpace=a,e.stack.outputNode=a,this.setupHardwareClipping(e),this.geometryNode!==null&&(e.stack.outputNode=e.stack.outputNode.bypass(this.geometryNode)),e.addFlow("vertex",e.removeStack()),e.addStack();let s;const o=this.setupClipping(e);if((this.depthWrite===!0||this.depthTest===!0)&&(r!==null?r.depthBuffer===!0&&this.setupDepth(e):n.depth===!0&&this.setupDepth(e)),this.fragmentNode===null){this.setupDiffuseColor(e),this.setupVariants(e);const l=this.setupLighting(e);o!==null&&e.stack.addToStack(o);const c=er(l,va.a).max(0);s=this.setupOutput(e,c),b3.assign(s);const u=this.outputNode!==null;if(u&&(s=this.outputNode),e.context.getOutput&&(s=e.context.getOutput(s,e)),r!==null){const f=n.getMRT(),h=this.mrtNode;f!==null?(u&&b3.assign(s),s=f,h!==null&&(s=f.merge(h))):h!==null&&(s=h)}}else{let l=this.fragmentNode;l.isOutputStructNode!==!0&&(l=er(l)),s=this.setupOutput(e,l)}e.stack.outputNode=s,e.addFlow("fragment",e.removeStack()),e.observer=this.setupObserver(e)}setupClipping(e){if(e.clippingContext===null)return null;const{unionPlanes:n,intersectionPlanes:r}=e.clippingContext;let i=null;if(n.length>0||r.length>0){const a=e.renderer.currentSamples;this.alphaToCoverage&&a>1?i=Tft():e.stack.addToStack(Sft())}return i}setupHardwareClipping(e){if(this.hardwareClipping=!1,e.clippingContext===null)return;const n=e.clippingContext.unionPlanes.length;n>0&&n<=8&&e.isAvailable("clipDistance")&&(e.stack.addToStack(Eft()),this.hardwareClipping=!0)}setupDepth(e){const{renderer:n,camera:r}=e;let i=this.depthNode;if(i===null){const a=n.getMRT();a&&a.has("depth")?i=a.get("depth"):n.logarithmicDepthBuffer===!0&&(r.isPerspectiveCamera?i=hZ(co.z,$A,qA):i=S3(co.z,$A,qA))}i!==null&&pZ.assign(i).toStack()}setupPositionView(){return fx.mul(gs).xyz}setupModelViewProjection(){return h2.mul(co)}setupVertex(e){return e.addStack(),this.setupPosition(e),e.context.position=e.removeStack(),Lve}setupPosition(e){const{object:n,geometry:r}=e;if((r.morphAttributes.position||r.morphAttributes.normal||r.morphAttributes.color)&&jve(n).toStack(),n.isSkinnedMesh===!0&&Uve(n).toStack(),this.displacementMap){const i=Gm("displacementMap","texture"),a=Gm("displacementScale","float"),s=Gm("displacementBias","float");gs.addAssign(O0.normalize().mul(i.x.mul(a).add(s)))}return n.isBatchedMesh&&Ive(n).toStack(),n.isInstancedMesh&&n.instanceMatrix&&n.instanceMatrix.isInstancedBufferAttribute===!0&&Fve(n).toStack(),this.positionNode!==null&&gs.assign(ty(this.positionNode,"POSITION","vec3")),gs}setupDiffuseColor(e){const{object:n,geometry:r}=e;this.maskNode!==null&&Ef(this.maskNode).not().discard();let i=this.colorNode?er(this.colorNode):ive;this.vertexColors===!0&&r.hasAttribute("color")&&(i=i.mul(qve())),n.instanceColor&&(i=Z5("vec3","vInstanceColor").mul(i)),n.isBatchedMesh&&n._colorsTexture&&(i=Z5("vec3","vBatchColor").mul(i)),va.assign(i);const a=this.opacityNode?ke(this.opacityNode):oZ;va.a.assign(va.a.mul(a));let s=null;(this.alphaTestNode!==null||this.alphaTest>0)&&(s=this.alphaTestNode!==null?ke(this.alphaTestNode):rve,this.alphaToCoverage===!0?(va.a=Qh(s,s.add(FW(va.a)),va.a),va.a.lessThanEqual(0).discard()):va.a.lessThanEqual(s).discard()),this.alphaHash===!0&&va.a.lessThan(Cft(gs)).discard(),e.isOpaque(
4191)&&va.a.assign(1)}setupVariants(){}setupOutgoingLight(){return this.lights===!0?Je(0):va.rgb}setupNormal(){return this.normalNode?Je(this.normalNode):fve}setupEnvironment(){let e=null;return this.envNode?e=this.envNode:this.envMap&&(e=this.envMap.isCubeTexture?Gm("envMap","cubeTexture"):Gm("envMap","texture")),e}setupLightMap(e){let n=null;return e.material.lightMap&&(n=new Aft(lZ)),n}setupLights(e){const n=[],r=this.setupEnvironment(e);r&&r.isLightingNode&&n.push(r);const i=this.setupLightMap(e);i&&i.isLightingNode&&n.push(i);let a=this.aoNode;a===null&&e.material.aoMap&&(a=kve),e.context.getAO&&(a=e.context.getAO(a,e)),a&&n.push(new pft(a));let s=this.lightsNode||e.lightsNode;return n.length>0&&(s=e.renderer.lighting.createNode([...s.getLights(),...n])),s}setupLightingModel(){}setupLighting(e){const{material:n}=e,{backdropNode:r,backdropAlphaNode:i,emissiveNode:a}=this,o=this.lights===!0||this.lightsNode!==null?this.setupLights(e):null;let l=this.setupOutgoingLight(e);if(o&&o.getScope().hasLights){const c=this.setupLightingModel(e)||null;l=Hve(o,c,r,i)}else r!==null&&(l=Je(i!==null?mi(l,r,i):r));return(a&&a.isNode===!0||n.emissive&&n.emissive.isColor===!0)&&(rH.assign(Je(a||sve)),l=l.add(rH)),l}setupFog(e,n){const r=e.fogNode;return r&&(b3.assign(n),n=er(r.toVar())),n}setupPremultipliedAlpha(e,n){return Wve(n)}setupOutput(e,n){return this.fog===!0&&(n=this.setupFog(e,n)),this.premultipliedAlpha===!0&&(n=this.setupPremultipliedAlpha(e,n)),n}setDefaultValues(e){for(const r in e){const i=e[r];this[r]===void 0&&(this[r]=i,i&&i.clone&&(this[r]=i.clone()))}const n=Object.getOwnPropertyDescriptors(e.constructor.prototype);for(const r in n)Object.getOwnPropertyDescriptor(this.constructor.prototype,r)===void 0&&n[r].get!==void 0&&Object.defineProperty(this.constructor.prototype,r,n[r])}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{},nodes:{}});const r=nu.prototype.toJSON.call(this,e);r.inputNodes={};for(const{property:a,childNode:s}of this._getNodeChildren())r.inputNodes[a]=s.toJSON(e).uuid;function i(a){const s=[];for(const o in a){const l=a[o];delete l.metadata,s.push(l)}return s}if(n){const a=i(e.textures),s=i(e.images),o=i(e.nodes);a.length>0&&(r.textures=a),s.length>0&&(r.images=s),o.length>0&&(r.nodes=o)}return r}copy(e){return this.lightsNode=e.lightsNode,this.envNode=e.envNode,this.aoNode=e.aoNode,this.colorNode=e.colorNode,this.normalNode=e.normalNode,this.opacityNode=e.opacityNode,this.backdropNode=e.backdropNode,this.backdropAlphaNode=e.backdropAlphaNode,this.alphaTestNode=e.alphaTestNode,this.maskNode=e.maskNode,this.maskShadowNode=e.maskShadowNode,this.positionNode=e.positionNode,this.geometryNode=e.geometryNode,this.depthNode=e.depthNode,this.receivedShadowPositionNode=e.receivedShadowPositionNode,this.castShadowPositionNode=e.castShadowPositionNode,this.receivedShadowNode=e.receivedShadowNode,this.castShadowNode=e.castShadowNode,this.outputNode=e.outputNode,this.mrtNode=e.mrtNode,this.fragmentNode=e.fragmentNode,this.vertexNode=e.vertexNode,this.contextNode=e.contextNode,super.copy(e)}}const Fft=new p6;class Ift extends Js{static get type(){return"LineBasicNodeMaterial"}constructor(e){super(),this.isLineBasicNodeMaterial=!0,this.setDefaultValues(Fft),this.setValues(e)}}const Bft=new EQe;class Uft extends Js{static get type(){return"LineDashedNodeMaterial"}constructor(e){super(),this.isLineDashedNodeMaterial=!0,this.setDefaultValues(Bft),this.dashOffset=0,this.offsetNode=null,this.dashScaleNode=null,this.dashSizeNode=null,this.gapSizeNode=null,this.setValues(e)}setupVariants(){const e=this.offsetNode?ke(this.offsetNode):Rve,n=this.dashScaleNode?ke(this.dashScaleNode):Mve,r=this.dashSizeNode?ke(this.dashSizeNode):Cve,i=this.gapSizeNode?ke(this.gapSizeNode):Nve;K9.assign(r),iH.assign(i);const a=cx(D2("lineDistance").mul(n));(e?a.add(e):a).mod(K9.add(iH)).greaterThan(K9).discard()}}const Vft=new bQe;class jft extends Js{static get type(){return"MeshNormalNodeMaterial"}constructor(e){super(),this.isMeshNormalNodeMaterial=!0,this.setDefaultValues(Vft),this.setValues(e)}setupDiffuseColor(){const e=this.opacityNode?ke(this.opacityNode):oZ;va.assign(pk(er(nve(Li),e),rc))}}const mZ=it(([t=tZ])=>{const e=t.z.atan(t.x).mul(1/(Math.PI*2)).add(.5),n=t.y.clamp(-1,1).asin().mul(1/Math.PI).add(.5);return dn(e,n)});class Zve extends Op{constructor(e=1,n={}){super(e,e,n),this.isCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];this.texture=new m6(i),this._setTextureOptions(n),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,n){const r=n.minFilter,i=n.generateMipmaps;n.generateMipmaps=!0,this.texture.type=n.type,this.texture.colorSpace
vendor: 6,614 bytes, line 4191
4191=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const a=new lx(5,5,5),s=mZ(tZ),o=new Js;o.colorNode=Bi(n,s,0),o.side=ca,o.blending=_l;const l=new ea(a,o),c=new Cq;c.add(l),n.minFilter===v0&&(n.minFilter=Ba);const u=new u2e(1,10,this),f=e.getMRT();return e.setMRT(null),u.update(e,c),e.setMRT(f),n.minFilter=r,n.generateMipmaps=i,l.geometry.dispose(),l.material.dispose(),this}clear(e,n=!0,r=!0,i=!0){const a=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,r,i);e.setRenderTarget(a)}}const bS=new WeakMap;class Hft extends eo{static get type(){return"CubeMapNode"}constructor(e){super("vec3"),this.envNode=e,this._cubeTexture=null,this._cubeTextureNode=Pu(null);const n=new m6;n.isRenderTargetTexture=!0,this._defaultTexture=n,this.updateBeforeType=_r.RENDER}updateBefore(e){const{renderer:n,material:r}=e,i=this.envNode;if(i.isTextureNode||i.isMaterialReferenceNode){const a=i.isTextureNode?i.value:r[i.property];if(a&&a.isTexture){const s=a.mapping;if(s===p3||s===m3){if(bS.has(a)){const o=bS.get(a);Iae(o,a.mapping),this._cubeTexture=o}else{const o=a.image;if(Gft(o)){const l=new Zve(o.height);l.fromEquirectangularTexture(n,a),Iae(l.texture,a.mapping),this._cubeTexture=l.texture,bS.set(a,l.texture),a.addEventListener("dispose",Yve)}else this._cubeTexture=this._defaultTexture}this._cubeTextureNode.value=this._cubeTexture}else this._cubeTextureNode=this.envNode}}}setup(e){return this.updateBefore(e),this._cubeTextureNode}}function Gft(t){return t==null?!1:t.height>0}function Yve(t){const e=t.target;e.removeEventListener("dispose",Yve);const n=bS.get(e);n!==void 0&&(bS.delete(e),n.dispose())}function Iae(t,e){e===p3?t.mapping=Zh:e===m3&&(t.mapping=yp)}const Xve=Wr(Hft).setParameterLength(1);class AZ extends y6{static get type(){return"BasicEnvironmentNode"}constructor(e=null){super(),this.envNode=e}setup(e){e.context.environment=Xve(this.envNode)}}class zft extends y6{static get type(){return"BasicLightMapNode"}constructor(e=null){super(),this.lightMapNode=e}setup(e){const n=ke(1/Math.PI);e.context.irradianceLightMap=this.lightMapNode.mul(n)}}class bk{start(e){e.lightsNode.setupLights(e,e.lightsNode.getLightNodes(e)),this.indirect(e)}finish(){}direct(){}directRectArea(){}indirect(){}ambientOcclusion(){}}class Qve extends bk{constructor(){super()}indirect({context:e}){const n=e.ambientOcclusion,r=e.reflectedLight,i=e.irradianceLightMap;r.indirectDiffuse.assign(er(0)),i?r.indirectDiffuse.addAssign(i):r.indirectDiffuse.addAssign(er(1,1,1,0)),r.indirectDiffuse.mulAssign(n),r.indirectDiffuse.mulAssign(va.rgb)}finish(e){const{material:n,context:r}=e,i=r.outgoingLight,a=e.context.environment;if(a)switch(n.combine){case jT:i.rgb.assign(mi(i.rgb,i.rgb.mul(a.rgb),_S.mul(nN)));break;case Ome:i.rgb.assign(mi(i.rgb,a.rgb,_S.mul(nN)));break;case Fme:i.rgb.addAssign(a.rgb.mul(_S.mul(nN)));break;default:Kt("BasicLightingModel: Unsupported .combine value:",n.combine);break}}}const $ft=new od;class qft extends Js{static get type(){return"MeshBasicNodeMaterial"}constructor(e){super(),this.isMeshBasicNodeMaterial=!0,this.lights=!0,this.setDefaultValues($ft),this.setValues(e)}setupNormal(){return v6(O_)}setupEnvironment(e){const n=super.setupEnvironment(e);return n?new AZ(n):null}setupLightMap(e){let n=null;return e.material.lightMap&&(n=new zft(lZ)),n}setupOutgoingLight(){return va.rgb}setupLightingModel(){return new Qve}}const I_=it(({f0:t,f90:e,dotVH:n})=>{const r=n.mul(-5.55473).sub(6.98316).mul(n).exp2();return t.mul(r.oneMinus()).add(e.mul(r))}),wy=it(t=>t.diffuseColor.mul(1/Math.PI)),Wft=()=>ke(.25),Zft=it(({dotNH:t})=>rD.mul(ke(.5)).add(1).mul(ke(1/Math.PI)).mul(t.pow(rD))),Yft=it(({lightDirection:t})=>{const e=t.add(Oa).normalize(),n=Li.dot(e).clamp(),r=Oa.dot(e).clamp(),i=I_({f0:Xg,f90:1,dotVH:r}),a=Wft(),s=Zft({dotNH:n});return i.mul(a).mul(s)});class Kve extends Qve{constructor(e=!0){super(),this.specular=e}direct({lightDirection:e,lightColor:n,reflectedLight:r}){const a=Li.dot(e).clamp().mul(n);r.directDiffuse.addAssign(a.mul(wy({diffuseColor:va.rgb}))),this.specular===!0&&r.directSpecular.addAssign(a.mul(Yft({lightDirection:e})).mul(_S))}indirect(e){const{ambientOcclusion:n,irradiance:r,reflectedLight:i}=e.context;i.indirectDiffuse.addAssign(r.mul(wy({diffuseColor:va}))),i.indirectDiffuse.mulAssign(n)}}const Xft=new G2;class Qft extends Js{static get type(){return"MeshLambertNodeMaterial"}constructor(e){super(),this.isMeshLambertNodeMaterial=!0,this.lights=!0,this.setDefaultValues(Xft),this.setValues(e)}setupEnvironment(e){const n=super.setupEnvironment(e);return n?new AZ(n):null}setupLightingModel(){return new Kve(!1)}}const Kft=new o2e;class Jft extends Js{static get type(){return"MeshPhongNodeMaterial"}constructor(e){super(),this.isMeshPhongNodeMaterial=!0,this.lights=!0,this.shininessNode=null,this.specularNode=null,this.setDefaultValues(Kft),this.setValues(e)}setupEnvironment(e){const n=super.setupEnvironment(e);return n?new AZ(n):null}setupLightingModel(){return new Kve}setupVariants(){const e=(this.shininessNode?ke(this.shininessNode):ave).max(1e-4);rD.assign(e);const n=this.specularNode||ove;Xg.assign(n)}copy(e){return this.shininessNode=e.shininessNode,this.specularNode=e.specularNode,super.copy(e)}}const Jve=it(t=>{if(t.geometry.hasAttribute("normal")===!1)return ke(0);const e=O_.dFdx().abs().max(O_.dFdy().abs());return e.x.max(e.y).max(e.z)}),gZ=it(t=>{const{roughness:e}=t,n=Jve();let r=e.max(.0525);return r=r.add(n),r=r.min(1),r}),eye=it(({alpha:t,dotNL:e,dotNV:n})=>{const r=t.pow2(),i=e.mul(r.add(r.oneMinus().mul(n.pow2())).sqrt()),a=n.mul(r.add(r.oneMinus().mul(e.pow2())).sqrt());return Mf(.5,i.add(a).max(uk))}).setLayout({name:"V_GGX_SmithCorrelated",type:"float",inputs:[{name:"alpha",type:"float"},{name:"dotNL",type:"float"},{name:"dotNV",type:"float"}]}),edt=it(({alphaT:t,alphaB:e,dotTV:n,dotBV:r,dotTL:i,dotBL:a,dotNV:s,dotNL:o})=>{const l=o.mul(Je(t.mul(n),e.mul(r),s).length()),c=s.mul(Je(t.mul(i),e.mul(a),o).length());return Mf(.5,l.add(c).max(uk))}).setLayout({name:"V_GGX_SmithCorrelated_Anisotropic",type:"float",inputs:[{name:"alphaT",type:"float",qualifier:"in"},{name:"alphaB",type:"float",qualifier:"in"},{name:"dotTV",type:"float",qualifier:"in"},{name:"dotBV",type:"float",qualifier:"in"},{name:"dotTL",type:"float",qualifier:"in"},{name:"dotBL",type:"float",qualifier:"in"},{name:"dotNV",type:"float",qualifier:"in"},{name:"dotNL",type:"float",qualifier:"in"}]}),tye=it(({alpha:t,dotNH:e})=>{const n=t.pow2(),r=e.pow2().mul(n.oneMinus()).oneMinus();return n.div(r.pow2()).mul(1/Math.PI)}
4191).setLayout({name:"D_GGX",type:"float",inputs:[{name:"alpha",type:"float"},{name:"dotNH",type:"float"}]}),tdt=ke(1/Math.PI),ndt=it(({alphaT:t,alphaB:e,dotNH:n,dotTH:r,dotBH:i})=>{const a=t.mul(e),s=Je(e.mul(r),t.mul(i),a.mul(n)),o=s.dot(s),l=a.div(o);return tdt.mul(a.mul(l.pow2()))}).setLayout({name:"D_GGX_Anisotropic",type:"float",inputs:[{name:"alphaT",type:"float",qualifier:"in"},{name:"alphaB",type:"float",qualifier:"in"},{name:"dotNH",type:"float",qualifier:"in"},{name:"dotTH",type:"float",qualifier:"in"},{name:"dotBH",type:"float",qualifier:"in"}]}),xZ=it(({lightDirection:t,f0:e,f90:n,roughness:r,f:i,normalView:a=Li,USE_IRIDESCENCE:s,USE_ANISOTROPY:o})=>{const l=r.pow2(),c=t.add(Oa).normalize(),u=a.dot(t).clamp(),f=a.dot(Oa).clamp(),h=a.dot(c).clamp(),p=Oa.dot(c).clamp();let A=I_({f0:e,f90:n,dotVH:p}),g,w;if(P_(s)&&(A=lk.mix(A,i)),P_(o)){const T=vS.dot(t),C=vS.dot(Oa),M=vS.dot(c),D=ey.dot(t),k=ey.dot(Oa),I=ey.dot(c);g=edt({alphaT:nD,alphaB:l,dotTV:C,dotBV:k,dotTL:T,dotBL:D,dotNV:f,dotNL:u}),w=ndt({alphaT:nD,alphaB:l,dotNH:h,dotTH:M,dotBH:I})}else g=eye({alpha:l,dotNL:u,dotNV:f}),w=tye({alpha:l,dotNH:h});return A.mul(g).mul(w)}),rdt=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,
vendor: 3,217 bytes, line 4191
419114942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]);let g1=null;const Y5=it(({roughness:t,dotNV:e})=>{g1===null&&(g1=new Pq(rdt,16,16,uc,is),g1.name="DFG_LUT",g1.minFilter=Ba,g1.magFilter=Ba,g1.wrapS=x0,g1.wrapT=x0,g1.generateMipmaps=!1,g1.needsUpdate=!0);const n=dn(t,e);return Bi(g1,n).rg}),idt=it(({lightDirection:t,f0:e,f90:n,roughness:r,f:i,USE_IRIDESCENCE:a,USE_ANISOTROPY:s})=>{const o=xZ({lightDirection:t,f0:e,f90:n,roughness:r,f:i,USE_IRIDESCENCE:a,USE_ANISOTROPY:s}),l=Li.dot(t).clamp(),c=Li.dot(Oa).clamp(),u=Y5({roughness:r,dotNV:c}),f=Y5({roughness:r,dotNV:l}),h=e.mul(u.x).add(n.mul(u.y)),p=e.mul(f.x).add(n.mul(f.y)),A=u.x.add(u.y),g=f.x.add(f.y),w=ke(1).sub(A),T=ke(1).sub(g),C=e.add(e.oneMinus().mul(.047619)),M=h.mul(p).mul(C).div(ke(1).sub(w.mul(T).mul(C).mul(C)).add(uk)),D=w.mul(T),k=M.mul(D);return o.add(k)}),nye=it(t=>{const{dotNV:e,specularColor:n,specularF90:r,roughness:i}=t,a=Y5({dotNV:e,roughness:i});return n.mul(a.x).add(r.mul(a.y))}),pH=it(({f:t,f90:e,dotVH:n})=>{const r=n.oneMinus().saturate(),i=r.mul(r),a=r.mul(i,i).clamp(0,.9999);return t.sub(Je(e).mul(a)).div(a.oneMinus())}).setLayout({name:"Schlick_to_F0",type:"vec3",inputs:[{name:"f",type:"vec3"},{name:"f90",type:"float"},{name:"dotVH",type:"float"}]}),adt=it(({roughness:t,dotNH:e})=>{const n=t.pow2(),r=ke(1).div(n),a=e.pow2().oneMinus().max(.0078125);return ke(2).add(r).mul(a.pow(r.mul(.5))).div(2*Math.PI)}
vendor: 1,471 bytes, line 4191
4191).setLayout({name:"D_Charlie",type:"float",inputs:[{name:"roughness",type:"float"},{name:"dotNH",type:"float"}]}),sdt=it(({dotNV:t,dotNL:e})=>ke(1).div(ke(4).mul(e.add(t).sub(e.mul(t))))).setLayout({name:"V_Neubelt",type:"float",inputs:[{name:"dotNV",type:"float"},{name:"dotNL",type:"float"}]}),odt=it(({lightDirection:t})=>{const e=t.add(Oa).normalize(),n=Li.dot(t).clamp(),r=Li.dot(Oa).clamp(),i=Li.dot(e).clamp(),a=adt({roughness:zA,dotNH:i}),s=sdt({dotNV:r,dotNL:n});return K0.mul(a).mul(s)}),Bae=it(({N:t,V:e,roughness:n})=>{const a=.0078125,s=t.dot(e).saturate(),o=dn(n,s.oneMinus().sqrt());return o.assign(o.mul(.984375).add(a)),o}).setLayout({name:"LTC_Uv",type:"vec2",inputs:[{name:"N",type:"vec3"},{name:"V",type:"vec3"},{name:"roughness",type:"float"}]}),ldt=it(({f:t})=>{const e=t.length();return Us(e.mul(e).add(t.z).div(e.add(1)),0)}).setLayout({name:"LTC_ClippedSphereFormFactor",type:"float",inputs:[{name:"f",type:"vec3"}]}),iC=it(({v1:t,v2:e})=>{const n=t.dot(e),r=n.abs().toVar(),i=r.mul(.0145206).add(.4965155).mul(r).add(.8543985).toVar(),a=r.add(4.1616724).mul(r).add(3.417594).toVar(),s=i.div(a),o=n.greaterThan(0).select(s,Us(n.mul(n).oneMinus(),1e-7).inverseSqrt().mul(.5).sub(s));return t.cross(e).mul(o)}).setLayout({name:"LTC_EdgeVectorFormFactor",type:"vec3",inputs:[{name:"v1",type:"vec3"},{name:"v2",type:"vec3"}]}),cB=it(({N:t,V:e,P:n,mInv:r,p0:i,p1:a,p2:s,p3:o})=>{const l=a.sub(i).toVar(),c=o.sub(i).toVar(),u=l.cross(c),f=Je().toVar();
vendor: 2,849 bytes, line 4191
4191return sr(u.dot(n.sub(i)).greaterThanEqual(0),()=>{const h=e.sub(t.mul(e.dot(t))).normalize(),p=t.cross(h).negate(),A=r.mul(zl(h,p,t).transpose()).toVar(),g=A.mul(i.sub(n)).normalize().toVar(),w=A.mul(a.sub(n)).normalize().toVar(),T=A.mul(s.sub(n)).normalize().toVar(),C=A.mul(o.sub(n)).normalize().toVar(),M=Je(0).toVar();M.addAssign(iC({v1:g,v2:w})),M.addAssign(iC({v1:w,v2:T})),M.addAssign(iC({v1:T,v2:C})),M.addAssign(iC({v1:C,v2:g})),f.assign(Je(ldt({f:M})))}),f}).setLayout({name:"LTC_Evaluate",type:"vec3",inputs:[{name:"N",type:"vec3"},{name:"V",type:"vec3"},{name:"P",type:"vec3"},{name:"mInv",type:"mat3"},{name:"p0",type:"vec3"},{name:"p1",type:"vec3"},{name:"p2",type:"vec3"},{name:"p3",type:"vec3"}]}),wk=1/6,rye=t=>Lr(wk,Lr(t,Lr(t,t.negate().add(3)).sub(3)).add(1)),mH=t=>Lr(wk,Lr(t,Lr(t,Lr(3,t).sub(6))).add(4)),iye=t=>Lr(wk,Lr(t,Lr(t,Lr(-3,t).add(3)).add(3)).add(1)),AH=t=>Lr(wk,hd(t,3)),Uae=t=>rye(t).add(mH(t)),Vae=t=>iye(t).add(AH(t)),jae=t=>Ro(-1,mH(t).div(rye(t).add(mH(t)))),Hae=t=>Ro(1,AH(t).div(iye(t).add(AH(t)))),Gae=(t,e,n)=>{const r=t.uvNode,i=Lr(r,e.zw).add(.5),a=up(i),s=Yh(i),o=Uae(s.x),l=Vae(s.x),c=jae(s.x),u=Hae(s.x),f=jae(s.y),h=Hae(s.y),p=dn(a.x.add(c),a.y.add(f)).sub(.5).mul(e.xy),A=dn(a.x.add(u),a.y.add(f)).sub(.5).mul(e.xy),g=dn(a.x.add(c),a.y.add(h)).sub(.5).mul(e.xy),w=dn(a.x.add(u),a.y.add(h)).sub(.5).mul(e.xy),T=Uae(s.y).mul(Ro(o.mul(t.sample(p).level(n)),l.mul(t.sample(A).level(n)))),C=Vae(s.y).mul(Ro(o.mul(t.sample(g).level(n)),l.mul(t.sample(w).level(n))));return T.add(C)},vZ=it(([t,e])=>{const n=dn(t.size($e(e))),r=dn(t.size($e(e.add(1)))),i=Mf(1,n),a=Mf(1,r),s=Gae(t,er(i,n),up(e)),o=Gae(t,er(a,r),dk(e));return Yh(e).mix(s,o)}),cdt=it(([t,e])=>{const n=e.mul(XW(t));return vZ(t,n)}),zae=it(([t,e,n,r,i])=>{const a=Je(VW(e.negate(),R0(t),Mf(1,r))),s=Je(fp(i[0].xyz),fp(i[1].xyz),fp(i[2].xyz));return R0(a).mul(n.mul(s))}).setLayout({name:"getVolumeTransmissionRay",type:"vec3",inputs:[{name:"n",type:"vec3"},{name:"v",type:"vec3"},{name:"thickness",type:"float"},{name:"ior",type:"float"},{name:"modelMatrix",type:"mat4"}]}),udt=it(([t,e])=>t.mul(Xh(e.mul(2).sub(2),0,1))).setLayout({name:"applyIorToRoughness",type:"float",inputs:[{name:"roughness",type:"float"},{name:"ior",type:"float"}]}),fdt=cZ(),ddt=Gve(),$ae=it(([t,e,n],{material:r})=>{const a=(r.side===ca?fdt:ddt).sample(t),s=cp(by.x).mul(udt(e,n));return vZ(a,s)}),qae=it(([t,e,n])=>(sr(n.notEqual(0),()=>{const r=fk(e).negate().div(n);return MW(r.negate().mul(t))}),Je(1))).setLayout({name:"volumeAttenuation",type:"vec3",inputs:[{name:"transmissionDistance",type:"float"},{name:"attenuationColor",type:"vec3"},{name:"attenuationDistance",type:"float"}]}),hdt=it(([t,e,n,r,i,a,s,o,l,c,u,f,h,p,A])=>{let g,w;if(A){g=er().toVar(),w=Je().toVar();const k=u.sub(1).mul(A.mul(.025)),I=Je(u.sub(k),u,u.add(k));ba({start:0,end:3},({i:L})=>
vendor: 4,212 bytes, line 4191
4191{const O=I.element(L),B=zae(t,e,f,O,o),G=s.add(B),j=c.mul(l.mul(er(G,1))),z=dn(j.xy.div(j.w)).toVar();z.addAssign(1),z.divAssign(2),z.assign(dn(z.x,z.y.oneMinus()));const Q=$ae(z,n,O);g.element(L).assign(Q.element(L)),g.a.addAssign(Q.a),w.element(L).assign(r.element(L).mul(qae(fp(B),h,p).element(L)))}),g.a.divAssign(3)}else{const k=zae(t,e,f,u,o),I=s.add(k),L=c.mul(l.mul(er(I,1))),O=dn(L.xy.div(L.w)).toVar();O.addAssign(1),O.divAssign(2),O.assign(dn(O.x,O.y.oneMinus())),g=$ae(O,n,u),w=r.mul(qae(fp(k),h,p))}const T=w.rgb.mul(g.rgb),C=t.dot(e).clamp(),M=Je(nye({dotNV:C,specularColor:i,specularF90:a,roughness:n})),D=w.r.add(w.g,w.b).div(3);return er(M.oneMinus().mul(T),g.a.oneMinus().mul(D).oneMinus())}),pdt=zl(3.2404542,-.969266,.0556434,-1.5371385,1.8760108,-.2040259,-.4985314,.041556,1.0572252),mdt=t=>{const e=t.sqrt();return Je(1).add(e).div(Je(1).sub(e))},Wae=(t,e)=>t.sub(e).div(t.add(e)).pow2(),Adt=(t,e)=>{const n=t.mul(2*Math.PI*1e-9),r=Je(54856e-17,44201e-17,52481e-17),i=Je(1681e3,1795300,2208400),a=Je(43278e5,93046e5,66121e5),s=ke(9747e-17*Math.sqrt(2*Math.PI*45282e5)).mul(n.mul(2239900).add(e.x).cos()).mul(n.pow2().mul(-45282e5).exp());let o=r.mul(a.mul(2*Math.PI).sqrt()).mul(i.mul(n).add(e).cos()).mul(n.pow2().negate().mul(a).exp());return o=Je(o.x.add(s),o.y,o.z).div(10685e-11),pdt.mul(o)},Zae=it(({outsideIOR:t,eta2:e,cosTheta1:n,thinFilmThickness:r,baseF0:i})=>{const a=mi(t,e,Qh(0,.03,r)),o=t.div(a).pow2().mul(n.pow2().oneMinus()).oneMinus();sr(o.lessThan(0),()=>Je(1));const l=o.sqrt(),c=Wae(a,t),u=I_({f0:c,f90:1,dotVH:n}),f=u.oneMinus(),h=a.lessThan(t).select(Math.PI,0),p=ke(Math.PI).sub(h),A=mdt(i.clamp(0,.9999)),g=Wae(A,a.toVec3()),w=I_({f0:g,f90:1,dotVH:l}),T=Je(A.x.lessThan(a).select(Math.PI,0),A.y.lessThan(a).select(Math.PI,0),A.z.lessThan(a).select(Math.PI,0)),C=a.mul(r,l,2),M=Je(p).add(T),D=u.mul(w).clamp(1e-5,.9999),k=D.sqrt(),I=f.pow2().mul(w).div(Je(1).sub(D)),O=u.add(I).toVar(),B=I.sub(f).toVar();return ba({start:1,end:2,condition:"<=",name:"m"},({m:G})=>{B.mulAssign(k);const j=Adt(ke(G).mul(C),ke(G).mul(M)).mul(2);O.addAssign(B.mul(j))}),O.max(Je(0))}).setLayout({name:"evalIridescence",type:"vec3",inputs:[{name:"outsideIOR",type:"float"},{name:"eta2",type:"float"},{name:"cosTheta1",type:"float"},{name:"thinFilmThickness",type:"float"},{name:"baseF0",type:"vec3"}]}),Kb=it(({normal:t,viewDir:e,roughness:n})=>{const r=t.dot(e).saturate(),i=n.mul(n),a=n.add(.1).reciprocal(),s=ke(-1.9362).add(n.mul(1.0678)).add(i.mul(.4573)).sub(a.mul(.8469)),o=ke(-.6014).add(n.mul(.5538)).sub(i.mul(.467)).sub(a.mul(.1255));return s.mul(r).add(o).exp().saturate()}),Jb=Je(.04),aC=ke(1);class aye extends bk{constructor(e=!1,n=!1,r=!1,i=!1,a=!1,s=!1){super(),this.clearcoat=e,this.sheen=n,this.iridescence=r,this.anisotropy=i,this.transmission=a,this.dispersion=s,this.clearcoatRadiance=null,this.clearcoatSpecularDirect=null,this.clearcoatSpecularIndirect=null,this.sheenSpecularDirect=null,this.sheenSpecularIndirect=null,this.iridescenceFresnel=null,this.iridescenceF0=null,this.iridescenceF0Dielectric=null,this.iridescenceF0Metallic=null}start(e){if(this.clearcoat===!0&&(this.clearcoatRadiance=Je().toVar("clearcoatRadiance"),this.clearcoatSpecularDirect=Je().toVar("clearcoatSpecularDirect"),this.clearcoatSpecularIndirect=Je().toVar("clearcoatSpecularIndirect")),this.sheen===!0&&(this.sheenSpecularDirect=Je().toVar("sheenSpecularDirect"),this.sheenSpecularIndirect=Je().toVar("sheenSpecularIndirect")),this.iridescence===!0){const n=Li.dot(Oa).clamp(),r=Zae({outsideIOR:ke(1),eta2:eD,cosTheta1:n,thinFilmThickness:tD,baseF0:Xg}),i=Zae({outsideIOR:ke(1),eta2:eD,cosTheta1:n,thinFilmThickness:tD,baseF0:va.rgb});this.iridescenceFresnel=mi(r,i,Jm),this.iridescenceF0Dielectric=pH({f:r,f90:1,dotVH:n}),this.iridescenceF0Metallic=pH({f:i,f90:1,dotVH:n}),this.iridescenceF0=mi(this.iridescenceF0Dielectric,this.iridescenceF0Metallic,Jm)}if(this.transmission===!0){const n=hp,r=Dxe.sub(hp).normalize(),i=dx,a=e.context;a.backdrop=hdt(i,r,H1,fv,Dv,Pv,n,pd,Bd,h2,yS,bW,SW,wW,this.dispersion?TW:null),a.backdropAlpha=iD,va.a.mulAssign(mi(1,a.backdrop.a,iD))}super.start(e)}computeMultiscattering(e,n,r,i,a=null){const s=Li.dot(Oa).clamp(),o=Y5({roughness:H1,dotNV:s}
4191),l=a?lk.mix(i,a):i,c=l.mul(o.x).add(r.mul(o.y)),f=o.x.add(o.y).oneMinus(),h=l.add(l.oneMinus().mul(.047619)),p=c.mul(h).div(f.mul(h).oneMinus());e.addAssign(c),n.addAssign(p.mul(f))}direct({lightDirection:e,lightColor:n,reflectedLight:r}){const a=Li.dot(e).clamp().mul(n).toVar();if(this.sheen===!0){this.sheenSpecularDirect.addAssign(a.mul(odt({lightDirection:e})));const s=Kb({normal:Li,viewDir:Oa,roughness:zA}),o=Kb({normal:Li,viewDir:e,roughness:zA}),l=K0.r.max(K0.g).max(K0.b).mul(s.max(o)).oneMinus();a.mulAssign(l)}if(this.clearcoat===!0){const o=WA.dot(e).clamp().mul(n);this.clearcoatSpecularDirect.addAssign(o.mul(xZ({lightDirection:e,f0:Jb,f90:aC,roughness:_3,normalView:WA})))}r.directDiffuse.addAssign(a.mul(wy({diffuseColor:fv}))),r.directSpecular.addAssign(a.mul(idt({lightDirection:e,f0:Dv,f90:1,roughness:H1,f:this.iridescenceFresnel,USE_IRIDESCENCE:this.iridescence,USE_ANISOTROPY:this.anisotropy})))}directRectArea({lightColor:e,lightPosition:n,halfWidth:r,halfHeight:i,reflectedLight:a,ltc_1:s,ltc_2:o}){const l=n.add(r).sub(i),c=n.sub(r).sub(i),u=n.sub(r).add(i),f=n.add(r).add(i),h=Li,p=Oa,A=co.toVar(),g=Bae({N:h,V:p,roughness:H1}),w=s.sample(g).toVar(),T=o.sample(g).toVar(),C=zl(Je(w.x,0,w.y),Je(0,1,0),Je(w.z,0,w.w)).toVar(),M=Dv.mul(T.x).add(Pv.sub(Dv).mul(T.y)).toVar();if(a.directSpecular.addAssign(e.mul(M).mul(cB({N:h,V:p,P:A,mInv:C,p0:l,p1:c,p2:u,p3:f}))),a.directDiffuse.addAssign(e.mul(fv).mul(cB({N:h,V:p,P:A,mInv:zl(1,0,0,0,1,0,0,0,1),p0:l,p1:c,p2:u,p3:f}))),this.clearcoat===!0){const D=WA,k=Bae({N:D,V:p,roughness:_3}),I=s.sample(k),L=o.sample(k),O=zl(Je(I.x,0,I.y),Je(0,1,0),Je(I.z,0,I.w)),B=Jb.mul(L.x).add(aC.sub(Jb).mul(L.y));this.clearcoatSpecularDirect.addAssign(e.mul(B).mul(cB({N:D,V:p,P:A,mInv:O,p0:l,p1:c,p2:u,p3:f})))}}indirect(e){this.indirectDiffuse(e),this.indirectSpecular(e),this.ambientOcclusion(e)}indirectDiffuse(e){const{irradiance:n,reflectedLight:r}=e.context,i=n.mul(wy({diffuseColor:fv})).toVar();if(this.sheen===!0){const a=Kb({normal:Li,viewDir:Oa,roughness:zA}),s=K0.r.max(K0.g).max(K0.b).mul(a).oneMinus();i.mulAssign(s)}r.indirectDiffuse.addAssign(i)}indirectSpecular(e){const{radiance:n,iblIrradiance:r,reflectedLight:i}=e.context;if(this.sheen===!0&&this.sheenSpecularIndirect.addAssign(r.mul(K0,Kb({normal:Li,viewDir:Oa,roughness:zA}))),this.clearcoat===!0){const w=WA.dot(Oa).clamp(),T=nye({dotNV:w,specularColor:Jb,specularF90:aC,roughness:_3});this.clearcoatSpecularIndirect.addAssign(this.clearcoatRadiance.mul(T))}const a=Je().toVar("singleScatteringDielectric"),s=Je().toVar("multiScatteringDielectric"),o=Je().toVar("singleScatteringMetallic"),l=Je().toVar("multiScatteringMetallic");this.computeMultiscattering(a,s,Pv,Xg,this.iridescenceF0Dielectric),this.computeMultiscattering(o,l,Pv,va.rgb,this.iridescenceF0Metallic);const c=mi(a,o,Jm),u=mi(s,l,Jm),f=a.add(s),h=fv.mul(f.oneMinus()),p=r.mul(1/Math.PI),A=n.mul(c).add(u.mul(p)).toVar(),g=h.mul(p).toVar();if(this.sheen===!0){const w=Kb({normal:Li,viewDir:Oa,roughness:zA}),T=K0.r.max(K0.g).max(K0.b).mul(w).oneMinus();A.mulAssign(T),g.mulAssign(T)}i.indirectSpecular.addAssign(A),i.indirectDiffuse.addAssign(g)}ambientOcclusion(e){const{ambientOcclusion:n,reflectedLight:r}=e.context,a=Li.dot(Oa).clamp().add(n),s=H1.mul(-16).oneMinus().negate().exp2(),o=n.sub(a.pow(s).oneMinus()).clamp();this.clearcoat===!0&&this.clearcoatSpecularIndirect.mulAssign(n),this.sheen===!0&&this.sheenSpecularIndirect.mulAssign(n),r.indirectDiffuse.mulAssign(n),r.indirectSpecular.mulAssign(o)}finish({context:e}){const{outgoingLight:n}=e;if(this.clearcoat===!0){const r=WA.dot(Oa).clamp(),i=I_({dotVH:r,f0:Jb,f90:aC}),a=n.mul(JR.mul(i).oneMinus()).add(this.clearcoatSpecularDirect.add(this.clearcoatSpecularIndirect).mul(JR));n.assign(a)}if(this.sheen===!0){const r=n.add(this.sheenSpecularDirect,this.sheenSpecularIndirect.mul(1/Math.PI));n.assign(r)}}}const Yae=ke(1),gH=ke(-2),sC=ke(.8),uB=ke(-1),oC=ke(.4),fB=ke(2),lC=ke(.305),dB=ke(3),Xae=ke(.21),gdt=ke(4),Qae=ke(4),xdt=ke(16),vdt=it(([t])=>{const e=Je(qa(t)).toVar(),n=ke(-1).toVar();return sr(e.x.greaterThan(e.z),()=>{sr(e.x.greaterThan(e.y),()=>{n.assign(Zc(t.x.greaterThan(0),0,3))}).Else(()=>{n.assign(Zc(t.y.greaterThan(0),1,4))})}).Else(()=>{sr(e.z.greaterThan(e.y),()=>{n.assign(Zc(t.z.greaterThan(0),2,5))}).Else(()=>{n.assign(Zc(t.y.greaterThan(0),1,4))})}),n}
vendor: 8,728 bytes, line 4191
4191).setLayout({name:"getFace",type:"float",inputs:[{name:"direction",type:"vec3"}]}),ydt=it(([t,e])=>{const n=dn().toVar();return sr(e.equal(0),()=>{n.assign(dn(t.z,t.y).div(qa(t.x)))}).ElseIf(e.equal(1),()=>{n.assign(dn(t.x.negate(),t.z.negate()).div(qa(t.y)))}).ElseIf(e.equal(2),()=>{n.assign(dn(t.x.negate(),t.y).div(qa(t.z)))}).ElseIf(e.equal(3),()=>{n.assign(dn(t.z.negate(),t.y).div(qa(t.x)))}).ElseIf(e.equal(4),()=>{n.assign(dn(t.x.negate(),t.z).div(qa(t.y)))}).Else(()=>{n.assign(dn(t.x,t.y).div(qa(t.z)))}),Lr(.5,n.add(1))}).setLayout({name:"getUV",type:"vec2",inputs:[{name:"direction",type:"vec3"},{name:"face",type:"float"}]}),_dt=it(([t])=>{const e=ke(0).toVar();return sr(t.greaterThanEqual(sC),()=>{e.assign(Yae.sub(t).mul(uB.sub(gH)).div(Yae.sub(sC)).add(gH))}).ElseIf(t.greaterThanEqual(oC),()=>{e.assign(sC.sub(t).mul(fB.sub(uB)).div(sC.sub(oC)).add(uB))}).ElseIf(t.greaterThanEqual(lC),()=>{e.assign(oC.sub(t).mul(dB.sub(fB)).div(oC.sub(lC)).add(fB))}).ElseIf(t.greaterThanEqual(Xae),()=>{e.assign(lC.sub(t).mul(gdt.sub(dB)).div(lC.sub(Xae)).add(dB))}).Else(()=>{e.assign(ke(-2).mul(cp(Lr(1.16,t))))}),e}).setLayout({name:"roughnessToMip",type:"float",inputs:[{name:"roughness",type:"float"}]}),sye=it(([t,e])=>{const n=t.toVar();n.assign(Lr(2,n).sub(1));const r=Je(n,1).toVar();return sr(e.equal(0),()=>{r.assign(r.zyx)}).ElseIf(e.equal(1),()=>{r.assign(r.xzy),r.xz.mulAssign(-1)}).ElseIf(e.equal(2),()=>{r.x.mulAssign(-1)}).ElseIf(e.equal(3),()=>{r.assign(r.zyx),r.xz.mulAssign(-1)}).ElseIf(e.equal(4),()=>{r.assign(r.xzy),r.xy.mulAssign(-1)}).ElseIf(e.equal(5),()=>{r.z.mulAssign(-1)}),r}).setLayout({name:"getDirection",type:"vec3",inputs:[{name:"uv",type:"vec2"},{name:"face",type:"float"}]}),oye=it(([t,e,n,r,i,a])=>{const s=ke(n),o=Je(e),l=Xh(_dt(s),gH,a),c=Yh(l),u=up(l),f=Je(X5(t,o,u,r,i,a)).toVar();return sr(c.notEqual(0),()=>{const h=Je(X5(t,o,u.add(1),r,i,a)).toVar();f.assign(mi(f,h,c))}),f}),X5=it(([t,e,n,r,i,a])=>{const s=ke(n).toVar(),o=Je(e),l=ke(vdt(o)).toVar(),c=ke(Us(Qae.sub(s),0)).toVar();s.assign(Us(s,Qae));const u=ke(k_(s)).toVar(),f=dn(ydt(o,l).mul(u.sub(2)).add(1)).toVar();return sr(l.greaterThan(2),()=>{f.y.addAssign(u),l.subAssign(3)}),f.x.addAssign(l.mul(u)),f.x.addAssign(c.mul(Lr(3,xdt))),f.y.addAssign(Lr(4,k_(a).sub(u))),f.x.mulAssign(r),f.y.mulAssign(i),t.sample(f).grad(dn(),dn())}),hB=it(({envMap:t,mipInt:e,outputDirection:n,theta:r,axis:i,CUBEUV_TEXEL_WIDTH:a,CUBEUV_TEXEL_HEIGHT:s,CUBEUV_MAX_MIP:o})=>{const l=gh(r),c=n.mul(l).add(i.cross(n).mul(Cu(r))).add(i.mul(i.dot(n).mul(l.oneMinus())));return X5(t,c,e,a,s,o)}),lye=it(({n:t,latitudinal:e,poleAxis:n,outputDirection:r,weights:i,samples:a,dTheta:s,mipInt:o,envMap:l,CUBEUV_TEXEL_WIDTH:c,CUBEUV_TEXEL_HEIGHT:u,CUBEUV_MAX_MIP:f})=>{const h=Je(Zc(e,n,R2(n,r))).toVar();sr(h.equal(Je(0)),()=>{h.assign(Je(r.z,0,r.x.negate()))}),h.assign(R0(h));const p=Je().toVar();return p.addAssign(i.element(0).mul(hB({theta:0,axis:h,outputDirection:r,mipInt:o,envMap:l,CUBEUV_TEXEL_WIDTH:c,CUBEUV_TEXEL_HEIGHT:u,CUBEUV_MAX_MIP:f}))),ba({start:$e(1),end:t},({i:A})=>{sr(A.greaterThanEqual(a),()=>{Vve()});const g=ke(s.mul(ke(A))).toVar();p.addAssign(i.element(A).mul(hB({theta:g.mul(-1),axis:h,outputDirection:r,mipInt:o,envMap:l,CUBEUV_TEXEL_WIDTH:c,CUBEUV_TEXEL_HEIGHT:u,CUBEUV_MAX_MIP:f}))),p.addAssign(i.element(A).mul(hB({theta:g,axis:h,outputDirection:r,mipInt:o,envMap:l,CUBEUV_TEXEL_WIDTH:c,CUBEUV_TEXEL_HEIGHT:u,CUBEUV_MAX_MIP:f})))}),er(p,1)}),bdt=it(([t])=>{const e=ln(t).toVar();return e.assign(e.shiftLeft(ln(16)).bitOr(e.shiftRight(ln(16)))),e.assign(e.bitAnd(ln(1431655765)).shiftLeft(ln(1)).bitOr(e.bitAnd(ln(2863311530)).shiftRight(ln(1)))),e.assign(e.bitAnd(ln(858993459)).shiftLeft(ln(2)).bitOr(e.bitAnd(ln(3435973836)).shiftRight(ln(2)))),e.assign(e.bitAnd(ln(252645135)).shiftLeft(ln(4)).bitOr(e.bitAnd(ln(4042322160)).shiftRight(ln(4)))),e.assign(e.bitAnd(ln(16711935)).shiftLeft(ln(8)).bitOr(e.bitAnd(ln(4278255360)).shiftRight(ln(8)))),ke(e).mul(23283064365386963e-26)}),wdt=it(([t,e])=>dn(ke(t).div(ke(e)),bdt(t))),Sdt=it(([t,e,n])=>{const r=n.mul(n).toConst(),i=Je(1,0,0).toConst(),a=R2(e,i).toConst(),s=Vu(t.x).toConst(),o=Lr(2,3.14159265359).mul(t.y).toConst(),l=s.mul(gh(o)).toConst(),c=s.mul(Cu(o)).toVar(),u=Lr(.5,e.z.add(1)).toConst();c.assign(u.oneMinus().mul(Vu(l.mul(l).oneMinus())).add(u.mul(c)));const f=i.mul(l).add(a.mul(c)).add(e.mul(Vu(Us(0,l.mul(l).add(c.mul(c)).oneMinus()))));return R0(Je(r.mul(f.x),r.mul(f.y),Us(0,f.z)))}),cye=it(({roughness:t,mipInt:e,envMap:n,N_immutable:r,GGX_SAMPLES:i,CUBEUV_TEXEL_WIDTH:a,CUBEUV_TEXEL_HEIGHT:s,CUBEUV_MAX_MIP:o})=>{const l=Je(r).toVar(),c=Je(0).toVar(),u=ke(0).toVar();return sr(t.lessThan(.001),()=>{c.assign(X5(n,l,e,a,s,o))}).Else(()=>{const f=Zc(qa(l.z).lessThan(.999),Je(0,0,1),Je(1,0,0)),h=R0(R2(f,l)).toVar(),p=R2(l,h).toVar();ba({start:ln(0),end:i},({i:A})=>{const g=wdt(A,i),w=Sdt(g,Je(0,0,1),t),T=R0(h.mul(w.x).add(p.mul(w.y)).add(l.mul(w.z))),C=R0(T.mul(Sd(l,T).mul(2)).sub(l)),M=Us(Sd(l,C),0);sr(M.greaterThan(0),()=>{const D=X5(n,C,e,a,s,o);c.addAssign(D.mul(M)),u.addAssign(M)})}),sr(u.greaterThan(0),()=>{c.assign(c.div(u))})}),er(c,1)}),dg=4,Kae=[.125,.215,.35,.446,.526,.582],dv=20,Tdt=512,ew=new A6(-1,1,1,-1,0,1),Edt=new jl(90,1),Jae=new Xn;let pB=null,mB=0,AB=0;const Mdt=new Pe,lD=new WeakMap,Cdt=[3,1,5,0,4,2],gB=sye(Ca(),D2("faceIndex")).normalize(),Sk=Je(gB.x,gB.y,gB.z);class Ndt{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._sizeLods=[],this._sigmas=[],this._lodMeshes=[],this._blurMaterial=null,this._ggxMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._backgroundBox=null}get _hasInitialized(){return this._renderer.hasInitialized()}fromScene(e,n=0,r=.1,i=100,a={}){const{size:s=256,position:o=Mdt,renderTarget:l=null}=a;if(this._setSize(s),this._hasInitialized===!1){Kt('PMREMGenerator: ".fromScene()" called before the backend is initialized. Try using "await renderer.init()" instead.');const u=l||this._allocateTarget();return a.renderTarget=u,this.fromSceneAsync(e,n,r,i,a),u}pB=this._renderer.getRenderTarget(),mB=this._renderer.getActiveCubeFace(),AB=this._renderer.getActiveMipmapLevel();const c=l||this._allocateTarget();return c.depthBuffer=!0,this._init(c),this._sceneToCubeUV(e,r,i,c,o),n>0&&this._blur(c,0,0,n),this._applyPMREM(c),this._cleanup(c),c}async fromSceneAsync(e,n=0,r=.1,i=100,a={}){return Fa('PMREMGenerator: ".fromSceneAsync()" is deprecated. Use "await renderer.init()" instead.'),await this._renderer.init(),this.fromScene(e,n,r,i,a)}fromEquirectangular(e,n=null){if(this._hasInitialized===!1){Kt('PMREMGenerator: .fromEquirectangular() called before the backend is initialized. Try using "await renderer.init()" instead.'),this._setSizeFromTexture(e);const r=n||this._allocateTarget();return this.fromEquirectangularAsync(e,r),r}return this._fromTexture(e,n)}async fromEquirectangularAsync(e,n=null){return Fa('PMREMGenerator: ".fromEquirectangularAsync()" is deprecated. Use "await renderer.init()" instead.'),await this._renderer.init(),this._fromTexture(e,n)}fromCubemap(e,n=null){if(this._hasInitialized===!1){Kt("PMREMGenerator: .fromCubemap() called before the backend is initialized. Try using .fromCubemapAsync() instead."),this._setSizeFromTexture(e);const r=n||this._allocateTarget();return this.fromCubemapAsync(e,n),r}return this._fromTexture(e,n)}async fromCubemapAsync(e,n=null){return Fa('PMREMGenerator: ".fromCubemapAsync()" is deprecated. Use "await renderer.init()" instead.'),await this._renderer.init(),this._fromTexture(e,n)}async compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=tse(),await this._compileMaterial(this._cubemapMaterial))}async compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=nse(),await this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSizeFromTexture(e){e.mapping===Zh||e.mapping===yp?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4)}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodMeshes.length;e++)this._lodMeshes[e].geometry.dispose()}_cleanup(e){this._renderer.setRenderTarget(pB,mB,AB),e.scissorTest=!1,this._setVie
4191wport(e,0,0,e.width,e.height)}_fromTexture(e,n){this._setSizeFromTexture(e),pB=this._renderer.getRenderTarget(),mB=this._renderer.getActiveCubeFace(),AB=this._renderer.getActiveMipmapLevel();const r=n||this._allocateTarget();return this._init(r),this._textureToCubeUV(e,r),this._applyPMREM(r),this._cleanup(r),r}_allocateTarget(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize;return ese(e,n)}_init(e){if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e.width||this._pingPongRenderTarget.height!==e.height){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=ese(e.width,e.height);const{_lodMax:n}=this;({lodMeshes:this._lodMeshes,sizeLods:this._sizeLods,sigmas:this._sigmas}=Rdt(n)),this._blurMaterial=Ddt(n,e.width,e.height),this._ggxMaterial=Pdt(n,e.width,e.height)}}async _compileMaterial(e){const n=new ea(new da,e);await this._renderer.compile(n,ew)}_sceneToCubeUV(e,n,r,i,a){const s=Edt;s.near=n,s.far=r;const o=[1,1,1,1,-1,1],l=[1,-1,1,-1,1,-1],c=this._renderer,u=c.autoClear;c.getClearColor(Jae),c.autoClear=!1,this._backgroundBox===null&&(this._backgroundBox=new ea(new lx,new od({name:"PMREM.Backgroun
4191d",side:ca,depthWrite:!1,depthTest:!1})));const f=this._backgroundBox,h=f.material;let p=!1;const A=e.background;A?A.isColor&&(h.color.copy(A),e.background=null,p=!0):(h.color.copy(Jae),p=!0),c.setRenderTarget(i),c.clear(),p&&c.render(f,s);for(let g=0;g<6;g++){const w=g%3;w===0?(s.up.set(0,o[g],0),s.position.set(a.x,a.y,a.z),s.lookAt(a.x+l[g],a.y,a.z)):w===1?(s.up.set(0,0,o[g]),s.position.set(a.x,a.y,a.z),s.lookAt(a.x,a.y+l[g],a.z)):(s.up.set(0,o[g],0),s.position.set(a.x,a.y,a.z),s.lookAt(a.x,a.y,a.z+l[g]));const T=this._cubeSize;this._setViewport(i,w*T,g>2?T:0,T,T),c.render(e,s)}c.autoClear=u,e.background=A}_textureToCubeUV(e,n){const r=this._renderer,i=e.mapping===Zh||e.mapping===yp;i?this._cubemapMaterial===null&&(this._cubemapMaterial=tse(e)):this._equirectMaterial===null&&(this._equirectMaterial=nse(e));const a=i?this._cubemapMaterial:this._equirectMaterial;a.fragmentNode.value=e;const s=this._lodMeshes[0];s.material=a;const o=this._cubeSize;this._setViewport(n,0,0,3*o,2*o),r.setRenderTarget(n),r.render(s,ew)}_applyPMREM(e){const n=this._renderer,r=n.autoClear;n.autoClear=!1;const i=this._lodMeshes.length;for(let a=1;a<i;a++)this._applyGGXFilter(e,a-1,a);n.autoClear=r}_applyGGXFilter(e,n,r){const i=this._renderer,a=this._pingPongRenderTarget,s=this._ggxMaterial,o=this._lodMeshes[r];o.material=s;const l=lD.get(s),c=r/(this._lodMeshes.length-1),u=n/(this._lodMeshes.length-1),f=Math.sqrt(c*c-u*u),h=0+c*1.25,p=f*h,{_lodMax:A}=this,g=this._sizeLods[r],w=3*g*(r>A-dg?r-A+dg:0),T=4*(this._cubeSize-g);e.texture.frame=(e.texture.frame||0)+1,l.envMap.value=e.texture,l.roughness.value=p,l.mipInt.value=A-n,this._setViewport(a,w,T,3*g,2*g),i.setRenderTarget(a),i.render(o,ew),a.texture.frame=(a.texture.frame||0)+1,l.envMap.value=a.texture,l.roughness.value=0,l.mipInt.value=A-r,this._setViewport(e,w,T,3*g,2*g),i.setRenderTarget(e),i.render(o,ew)}_blur(e,n,r,i,a){const s=this._pingPongRenderTarget;this._halfBlur(e,s,n,r,i,"latitudinal",a),this._halfBlur(s,e,r,r,i,"longitudinal",a)}_halfBlur(e,n,r,i,a,s,o){const l=this._renderer,c=this._blurMaterial;s!=="latitudinal"&&s!=="longitudinal"&&nn("blur direction must be either latitudinal or longitudinal!");const u=3,f=this._lodMeshes[i];f.material=c;const h=lD.get(c),p=this._sizeLods[r]-1,A=isFinite(a)?Math.PI/(2*p):2*Math.PI/(2*dv-1),g=a/A,w=isFinite(a)?1+Math.floor(u*g):dv;w>dv&&Kt(`sigmaRadians, ${a}, is too large and will clip, as it requested ${w} samples when the maximum is set to ${dv}`);const T=[];let C=0;for(let L=0;L<dv;++L){const O=L/g,B=Math.exp(-O*O/2);T.push(B),L===0?C+=B:L<w&&(C+=2*B)}for(let L=0;L<T.length;L++)T[L]=T[L]/C;e.texture.frame=(e.texture.frame||0)+1,h.envMap.value=e.texture,h.samples.value=w,h.weights.array=T,h.latitudinal.value=s==="latitudinal"?1:0,o&&(h.poleAxis.value=o);const{_lodMax:M}=this;h.dTheta.value=A,h.mipInt.value=M-r;const D=this._sizeLods[i],k=3*D*(i>M-dg?i-M+dg:0),I=4*(this._cubeSize-D);this._setViewport(n,k,I,3*D,2*D),l.setRenderTarget(n),l.render(f,ew)}_setViewport(e,n,r,i,a){this._renderer.isWebGLRenderer?(e.viewport.set(n,e.height-a-r,i,a),e.scissor.set(n,e.height-a-r,i,a)):(e.viewport.set(n,r,i,a),e.scissor.set(n,r,i,a))}}function Rdt(t){const e=[],n=[],r=[];let i=t;const a=t-dg+1+Kae.length;for(let s=0;s<a;s++){const o=Math.pow(2,i);e.push(o);let l=1/o;s>t-dg?l=Kae[s-t+dg-1]:s===0&&(l=0),n.push(l);const c=1/(o-2),u=-c,f=1+c,h=[u,u,f,u,f,f,u,u,f,f,u,f],p=6,A=6,g=3,w=2,T=1,C=new Float32Array(g*A*p),M=new Float32Array(w*A*p),D=new Float32Array(T*A*p);for(let I=0;I<p;I++){const L=I%3*2/3-1,O=I>2?0:-1,B=[L,O,0,L+2/3,O,0,L+2/3,O+1,0,L,O,0,L+2/3,O+1,0,L,O+1,0],G=Cdt[I];C.set(B,g*A*G),M.set(h,w*A*G);const j=[G,G,G,G,G,G];D.set(j,T*A*G)}const k=new da;k.setAttribute("position",new Is(C,g)),k.setAttribute("uv",new Is(M,w)),k.setAttribute("faceIndex",new Is(D,T)),r.push(new ea(k,null)),i>dg&&i--}return{lodMeshes:r,sizeLods:e,sigmas:n}}function ese(t,e){const n={magFilter:Ba,minFilter:Ba,generateMipmaps:!1,type:is,format:fo,colorSpace:v_},r=new Op(t,e,n);return r.texture.mapping=hy,r.texture.name="PMREM.cubeUv",r.texture.isPMREMTexture=!0,r.scissorTest=!0,r}function Tk(t){const e=new Js;return e.depthTest=!1,e.depthWrite=!1,e.blending=_l,e.name=`PMREM_${t}`,e}function Ddt(t,e,n){const r=Gc(new Array(dv).fill(0)),i=qn(new Pe
4191(0,1,0)),a=qn(0),s=ke(dv),o=qn(0),l=qn(1),c=Bi(),u=qn(0),f=ke(1/e),h=ke(1/n),p=ke(t),A={n:s,latitudinal:o,weights:r,poleAxis:i,outputDirection:Sk,dTheta:a,samples:l,envMap:c,mipInt:u,CUBEUV_TEXEL_WIDTH:f,CUBEUV_TEXEL_HEIGHT:h,CUBEUV_MAX_MIP:p},g=Tk("blur");return g.fragmentNode=lye({...A,latitudinal:o.equal(1)}),lD.set(g,A),g}function Pdt(t,e,n){const r=Bi(),i=qn(0),a=qn(0),s=ke(1/e),o=ke(1/n),l=ke(t),c={envMap:r,roughness:i,mipInt:a,CUBEUV_TEXEL_WIDTH:s,CUBEUV_TEXEL_HEIGHT:o,CUBEUV_MAX_MIP:l},u=Tk("ggx");return u.fragmentNode=cye({...c,N_immutable:Sk,GGX_SAMPLES:ln(Tdt)}),lD.set(u,c),u}function tse(t){const e=Tk("cubemap");return e.fragmentNode=Pu(t,Sk),e}function nse(t){const e=Tk("equirect");return e.fragmentNode=Bi(t,mZ(Sk),0),e}const rse=new WeakMap;function kdt(t){const e=Math.log2(t)-2,n=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,e),112)),texelHeight:n,maxMip:e}}function Ldt(t,e,n){const r=Odt(e);let i=r.get(t);if((i!==void 0?i.pmremVersion:-1)!==t.pmremVersion){const s=t.image;if(t.isCubeTexture)if(Idt(s))i=n.fromCubemap(t,i);else return null;else if(Bdt(s))i=n.fromEquirectangular(t,i);else return null;i.pmremVersion=t.pmremVersion,r.set(t,i)}return i.texture}function Odt(t){let e=rse.get(t);return e===void 0&&(e=new WeakMap,rse.set(t,e)),e}class Fdt extends eo{static get type(){return"PMREMNode"}constructor(e,n=null,r=null){super("vec3"),this._value=e,this._pmrem=null,this.uvNode=n,this.levelNode=r,this._generator=null;const i=new Yo;i.isRenderTargetTexture=!0,this._texture=Bi(i),this._width=qn(0),this._height=qn(0),this._maxMip=qn(0),this.updateBeforeType=_r.RENDER}set value(e){this._value=e,this._pmrem=null}get value(){return this._value}updateFromTexture(e){const n=kdt(e.image.height);this._texture.value=e,this._width.value=n.texelWidth,this._height.value=n.texelHeight,this._maxMip.value=n.maxMip}updateBefore(e){let n=this._pmrem;const r=n?n.pmremVersion:-1,i=this._value;r!==i.pmremVersion&&(i.isPMREMTexture===!0?n=i:n=Ldt(i,e.renderer,this._generator),n!==null&&(this._pmrem=n,this.updateFromTexture(n)))}setup(e){this._generator===null&&(this._generator=new Ndt(e.renderer)),this.updateBefore(e);let n=this.uvNode;n===null&&e.context.getUV&&(n=e.context.getUV(this,e)),n=iZ.mul(Je(n.x,n.y.negate(),n.z));let r=this.levelNode;return r===null&&e.context.getTextureLevel&&(r=e.context.getTextureLevel(this)),oye(this._texture,n,r,this._width,this._height,this._maxMip)}dispose(){super.dispose(),this._generator!==null&&this._generator.dispose()}}function Idt(t){if(t==null)return!1;let e=0;const n=6;for(let r=0;r<n;r++)t[r]!==void 0&&e++;return e===n}function Bdt(t){return t==null?!1:t.height>0}const yZ=Wr(Fdt).setParameterLength(1,3),ise=new WeakMap;class Udt extends y6{static get type(){return"EnvironmentNode"}constructor(e=null){super(),this.envNode=e}setup(e){const{material:n}=e;let r=this.envNode;if(r.isTextureNode||r.isMaterialReferenceNode){const f=r.isTextureNode?r.value:n[r.property],h=this._getPMREMNodeCache(e.renderer);let p=h.get(f);p===void 0&&(p=yZ(f),h.set(f,p)),r=p}const a=n.useAnisotropy===!0||n.anisotropy>0?tve:Li,s=r.context(ase(H1,a)).mul(tN),o=r.context(Vdt(dx)).mul(Math.PI).mul(tN),l=w3(s),c=w3(o);e.context.radiance.addAssign(l),e.context.iblIrradiance.addAssign(c);const u=e.context.lightingModel.clearcoatRadiance;if(u){const f=r.context(ase(_3,WA)).mul(tN),h=w3(f);u.addAssign(h)}}_getPMREMNodeCache(e){let n=ise.get(e);return n===void 0&&(n=new WeakMap,ise.set(e,n)),n}}const ase=(t,e)=>{let n=null;return{getUV:()=>(n===null&&(n=Oa.negate().reflect(e),n=BW(t).mix(n,e).normalize(),n=n.transformDirection(Bd)),n),getTextureLevel:()=>t}},Vdt=t=>({getUV:()=>t,getTextureLevel:()=>ke(1)}),jdt=new s2e;class uye extends Js{static get type(){return"MeshStandardNodeMaterial"}constructor(e){super(),this.isMeshStandardNodeMaterial=!0,this.lights=!0,this.emissiveNode=null,this.metalnessNode=null,this.roughnessNode=null,this.setDefaultValues(jdt),this.setValues(e)}setupEnvironment(e){let n=super.setupEnvironment(e);return n===null&&e.environmentNode&&(n=e.environmentNode),n?new Udt(n):null}setupLightingModel(){return new aye}setupSpecular(){const e=mi(Je(.04),va.rgb,Jm);Xg.assign(Je(.04)),Dv.assign(e),Pv.assign(1)}setupVariants(){const e=this.metalnessNode?ke(this.metalnessNode):uve;Jm.assign(e);let n=this.roughnessNode?ke(this.roughnessNode):cve;n=gZ({roughness:n}),H1.assign(n),this.setupSpecular(),fv.assign(va.rgb.mul(e.oneMinus()))}copy(e){return this.emissiveNode=e.emissiveNode,this.metalnessNode=e.metalnessNode,this.roughnessNode=e.roughnessNode,super.copy(e)}}const Hdt=new yQe;class Gdt extends uye{static get type(){return"MeshPhysicalNodeMaterial"}constructor(e){super(),this.isMeshPhysicalNodeMaterial=!0,this.clearcoatNode=null,this.clearcoatRoughnessNode=null,this.clearcoatNormalNode=null,this.sheenNode=null,this.sheenRoughnessNode=null,this.iridescenceNode=null,this.iridescenceIORNode=null,this.iridescenceThicknessNode=null,this.specularIntensityNode=null,this.specularColorNode=null,this.iorNode=null,this.transmissionNode=null,this.thicknessNode=null,this.attenuationDistanceNode=null,this.attenuationColorNode=null,this.dispersionNode=null,this.anisotropyNode=null,this.setDefaultValues(Hdt),this.setValues(e)}get useClearcoat(){return this.clearcoat>0||this.clearcoatNode!==null}get useIridescence(){return this.iridescence>0||this.iridescenceNode!==null}get useSheen(){return this.sheen>0||this.sheenNode!==null}get useAnisotropy(){return this.anisotropy>0||this.anisotropyNode!==null}get useTransmission(){return this.transmission>0||this.transmissionNode!==null}get useDispersion(){return this.dispersion>0||this.dispersionNode!==null}setupSpecular(){const e=this.iorNode?ke(this.iorNode):Sve;yS.assign(e),Xg.assign(L0(IW(yS.sub(1).div(yS.add(1))).mul(lve),Je(1)).mul(hH)),Dv.assign(mi(Xg,va.rgb,Jm)),Pv.assign(mi(hH,1,Jm))}setupLightingModel(){return new aye(this.useClearcoat,this.useSheen,this.useIridescence,this.useAnisotropy,this.useTransmission,this.useDispersion)}setupVariants(e){if(super.setupVariants(e),this.useClearcoat){const n=this.clearcoatNode?ke(this.clearcoatNode):dve,r=this.clearcoatRoughnessNode?ke(this.clearcoatRoughnessNode):hve;JR.assign(n),_3.assign(gZ({roughness:r}))}if(this.useSheen){const n=this.sheenNode?Je(this.sheenNode):Ave,r=this.sheenRoughnessNode?ke(this.sheenRoughnessNode):gve;K0.assign(n),zA.assign(r)}if(this.useIridescence){const n=this.iridescenceNode?ke(this.iridescenceNode):vve,r=this.iridescenceIORNode?ke(this.iridescenceIORNode):yve,i=this.iridescenceThicknessNode?ke(this.iridescenceThicknessNode):_ve;lk.assign(n),eD.assign(r),tD.assign(i)}if(this.useAnisotropy){const n=(this.anisotropyNode?dn(this.anisotropyNode):xve).toVar();BA.assign(n.length()),sr(BA.equal(0),()=>{n.assign(dn(1,0))}).Else(()=>{n.divAssign(dn(BA)),BA.assign(BA.saturate())}),nD.assign(BA.pow2().mix(H1.pow2(),1)),vS.assign(kv[0].mul(n.x).add(kv[1].mul(n.y))),ey.assign(kv[1].mul(n.x).sub(kv[0].mul(n.y)))}if(this.useTransmission){const n=this.transmissionNode?ke(this.transmissionNode):bve,r=this.thicknessNode?ke(this.thicknessNode):wve,i=this.attenuationDistanceNode?ke(this.attenuationDistanceNode):Tve,a=this.attenuationColorNode?Je(this.attenuationColorNode):Eve;if(iD.assign(n),bW.assign(r),wW.assign(i),SW.assign(a),this.useDispersion){const s=this.dispersionNode?ke(this.dispersionNode):Pve;TW.assign(s)}}}setupClearcoatNormal(){return this.clearcoatNormalNode?Je(this.clearcoatNormalNode):pve}setup(e){e.context.setupClearcoatNormal=()=>ty(this.setupClearcoatNormal(e),"NORMAL","vec3"),super.setup(e)}copy(e){return this.clearcoatNode=e.clearcoatNode,this.clearcoatRoughnessNode=e.clearcoatRoughnessNode,this.clearcoatNormalNode=e.clearcoatNormalNode,this.sheenNode=e.sheenNode,this.sheenRoughnessNode=e.sheenRoughnessNode,this.iridescenceNode=e.iridescenceNode,this.iridescenceIORNode=e.iridescenceIORNode,this.iridescenceThicknessNode=e.iridescenceThicknessNode,this.specularIntensityNode=e.specularIntensityNode,this.specularColorNode=e.specularColorNode,this.iorNode=e.iorNode,this.transmissionNode=e.transmissionNode,this.thicknessNode=e.thicknessNode,this.attenuationDistanceNode=e.attenuationDistanceNode,this.attenuationColorNode=e.attenuationColorNode,this.dispersionNode=e.dis
4191persionNode,this.anisotropyNode=e.anisotropyNode,super.copy(e)}}const zdt=it(({normal:t,lightDirection:e,builder:n})=>{const r=t.dot(e),i=dn(r.mul(.5).add(.5),0);if(n.material.gradientMap){const a=Gm("gradientMap","texture").context({getUV:()=>i});return Je(a.r)}else{const a=i.fwidth().mul(.5);return mi(Je(.7),Je(1),Qh(ke(.7).sub(a.x),ke(.7).add(a.x),i.x))}});class $dt extends bk{direct({lightDirection:e,lightColor:n,reflectedLight:r},i){const a=zdt({normal:Ak,lightDirection:e,builder:i}).mul(n);r.directDiffuse.addAssign(a.mul(wy({diffuseColor:va.rgb})))}indirect(e){const{ambientOcclusion:n,irradiance:r,reflectedLight:i}=e.context;i.indirectDiffuse.addAssign(r.mul(wy({diffuseColor:va}))),i.indirectDiffuse.mulAssign(n)}}const qdt=new _Qe;class Wdt extends Js{static get type(){return"MeshToonNodeMaterial"}constructor(e){super(),this.isMeshToonNodeMaterial=!0,this.lights=!0,this.setDefaultValues(qdt),this.setValues(e)}setupLightingModel(){return new $dt}}const fye=it(()=>{const t=Je(Oa.z,0,Oa.x.negate()).normalize(),e=Oa.cross(t);return dn(t.dot(Li),e.dot(Li)).mul(.495).add(.5)}).once(["NORMAL","VERTEX"])().toVar("matcapUV"),Zdt=new TQe;class Ydt extends Js{static get type(){return"MeshMatcapNodeMaterial"}constructor(e){super(),this.isMeshMatcapNodeMaterial=!0,this.setDefaultValues(Zdt),this.setValues(e)}setupVariants(e){const n=fye;let r;e.material.matcap?r=Gm("matcap","texture").context({getUV:()=>n}):r=Je(mi(.2,.8,n.y)),va.rgb.mulAssign(r.rgb)}}class Xdt extends eo{static get type(){return"RotateNode"}constructor(e,n){super(),this.positionNode=e,this.rotationNode=n}generateNodeType(e){return this.positionNode.getNodeType(e)}setup(e){const{rotationNode:n,positionNode:r}=this;if(this.getNodeType(e)==="vec2"){const a=n.cos(),s=n.sin();return ok(a,s,s.negate(),a).mul(r)}else{const a=n,s=Dg(er(1,0,0,0),er(0,gh(a.x),Cu(a.x).negate(),0),er(0,Cu(a.x),gh(a.x),0),er(0,0,0,1)),o=Dg(er(gh(a.y),0,Cu(a.y),0),er(0,1,0,0),er(Cu(a.y).negate(),0,gh(a.y),0),er(0,0,0,1)),l=Dg(er(gh(a.z),Cu(a.z).negate(),0,0),er(Cu(a.z),gh(a.z),0,0),er(0,0,1,0),er(0,0,0,1));return s.mul(o).mul(l).mul(er(r,1)).xyz}}}const nE=Wr(Xdt).setParameterLength(2),Qdt=new DXe;class dye extends Js{static get type(){return"SpriteNodeMaterial"}constructor(e){super(),this.isSpriteNodeMaterial=!0,this._useSizeAttenuation=!0,this.positionNode=null,this.rotationNode=null,this.scaleNode=null,this.transparent=!0,this.setDefaultValues(Qdt),this.setValues(e)}setupPositionView(e){const{object:n,camera:r}=e,{positionNode:i,rotationNode:a,scaleNode:s,sizeAttenuation:o}=this,l=fx.mul(Je(i||0));let c=dn(pd[0].xyz.length(),pd[1].xyz.length());s!==null&&(c=c.mul(dn(s))),r.isPerspectiveCamera&&o===!1&&(c=c.mul(l.z.negate()));let u=tE.xy;if(n.center&&n.center.isVector2===!0){const p=Wut("center","vec2",n);u=u.sub(p.sub(.5))}u=u.mul(c);const f=ke(a||mve),h=nE(u,f);return er(l.xy.add(h),l.zw)}copy(e){return this.positionNode=e.positionNode,this.rotationNode=e.rotationNode,this.scaleNode=e.scaleNode,super.copy(e)}get sizeAttenuation(){return this._useSizeAttenuation}set sizeAttenuation(e){this._useSizeAttenuation!==e&&(this._useSizeAttenuation=e,this.needsUpdate=!0)}}const Kdt=new Lq,Jdt=new tn;class eht extends dye{static get type(){return"PointsNodeMaterial"}constructor(e){super(),this.sizeNode=null,this.isPointsNodeMaterial=!0,this.setDefaultValues(Kdt),this.setValues(e)}setupPositionView(){const{positionNode:e}=this;return fx.mul(Je(e||gs)).xyz}setupVertexSprite(e){const{material:n,camera:r}=e,{rotationNode:i,scaleNode:a,sizeNode:s,sizeAttenuation:o}=this;let l=super.setupVertex(e);if(n.isNodeMaterial!==!0)return l;let c=s!==null?dn(s):Dve;c=c.mul(Cxe),r.isPerspectiveCamera&&o===!0&&(c=c.mul(tht.div(co.z.negate()))),a&&a.isNode&&(c=c.mul(dn(a)));let u=tE.xy;if(i&&i.isNode){const f=ke(i);u=nE(u,f)}return u=u.mul(c),u=u.div(eZ.div(2)),u=u.mul(l.w),l=l.add(er(u,0,0)),l}setupVertex(e){return e.object.isPoints?super.setupVertex(e):this.setupVertexSprite(e)}get alphaToCoverage(){return this._useAlphaToCoverage}set alphaToCoverage(e){this._useAlphaToCoverage!==e&&(this._useAlphaToCoverage=e,this.needsUpdate=!0)}}const tht=qn(1).onFrameUpdate(function({renderer:t}){const e=t.getSize(Jdt);this.value=.5*e.y});
4191class nht extends bk{constructor(){super(),this.shadowNode=ke(1).toVar("shadowMask")}direct({lightNode:e}){e.shadowNode!==null&&this.shadowNode.mulAssign(e.shadowNode)}finish({context:e}){va.a.mulAssign(this.shadowNode.oneMinus()),e.outgoingLight.rgb.assign(va.rgb)}}const rht=new mQe;class iht extends Js{static get type(){return"ShadowNodeMaterial"}constructor(e){super(),this.isShadowNodeMaterial=!0,this.lights=!0,this.transparent=!0,this.setDefaultValues(rht),this.setValues(e)}setupLightingModel(){return new nht}}d2("vec3");d2("vec3");d2("vec3");class aht{constructor(e,n,r){this.renderer=e,this.nodes=n,this.info=r,this._context=typeof self<"u"?self:null,this._animationLoop=null,this._requestId=null}start(){const e=(n,r)=>{this._requestId=this._context.requestAnimationFrame(e),this.info.autoReset===!0&&this.info.reset(),this.nodes.nodeFrame.update(),this.info.frame=this.nodes.nodeFrame.frameId,this.renderer._inspector.begin(),this._animationLoop!==null&&this._animationLoop(n,r),this.renderer._inspector.finish()};e()}stop(){this._context!==null&&this._context.cancelAnimationFrame(this._requestId),this._requestId=null}getAnimationLoop(){return this._animationLoop}setAnimationLoop(e){this._animationLoop=e}getContext(){return this._context}setContext(e){this._context=e}dispose(){this.stop()}}class Qg{constructor(){this.weakMaps={}}_getWeakMap(e){const n=e.length;let r=this.weakMaps[n];return r===void 0&&(r=new WeakMap,this.weakMaps[n]=r),r}get(e){let n=this._getWeakMap(e);for(let r=0;r<e.length-1;r++)if(n=n.get(e[r]),n===void 0)return;return n.get(e[e.length-1])}set(e,n){let r=this._getWeakMap(e);for(let i=0;i<e.length-1;i++){const a=e[i];r.has(a)===!1&&r.set(a,new WeakMap),r=r.get(a)}return r.set(e[e.length-1],n),this}delete(e){let n=this._getWeakMap(e);for(let r=0;r<e.length-1;r++)if(n=n.get(e[r]),n===void 0)return!1;return n.delete(e[e.length-1])}}let sht=0;function oht(t){const e=Object.keys(t);let n=Object.getPrototypeOf(t);for(;n;){const r=Object.getOwnPropertyDescriptors(n);for(const i in r)if(r[i]!==void 0){const a=r[i];a&&typeof a.get=="function"&&e.push(i)}n=Object.getPrototypeOf(n)}return e}class lht{constructor(e,n,r,i,a,s,o,l,c,u){this.id=sht++,this._nodes=e,this._geometries=n,this.renderer=r,this.object=i,this.material=a,this.scene=s,this.camera=o,this.lightsNode=l,this.context=c,this.geometry=i.geometry,this.version=a.version,this.drawRange=null,this.attributes=null,this.attributesId=null,this.pipeline=null,this.group=null,this.vertexBuffers=null,this.drawParams=null,this.bundle=null,this.clippingContext=u,this.clippingContextCacheKey=u!==null?u.cacheKey:"",this.initialNodesCacheKey=this.getDynamicCacheKey(),this.initialCacheKey=this.getCacheKey(),this._nodeBuilderState=null,this._bindings=null,this._monitor=null,this.onDispose=null,this.isRenderObject=!0,this.onMaterialDispose=()=>{this.dispose()},this.onGeometryDispose=()=>{this.attributes=null,this.attributesId=null},this.material.addEventListener("dispose",this.onMaterialDispose),this.geometry.addEventListener("dispose",this.onGeometryDispose)}updateClipping(e){this.clippingContext=e}get clippingNeedsUpdate(){return this.clippingContext===null||this.clippingContext.cacheKey===this.clippingContextCacheKey?!1:(this.clippingContextCacheKey=this.clippingContext.cacheKey,!0)}get hardwareClippingPlanes(){return this.material.hardwareClipping===!0?this.clippingContext.unionClippingCount:0}getNodeBuilderState(){return this._nodeBuilderState||(this._nodeBuilderState=this._nodes.getForRender(this))}getMonitor(){return this._monitor||(this._monitor=this.getNodeBuilderState().observer)}getBindings(){return this._bindings||(this._bindings=this.getNodeBuilderState().createBindings())}getBindingGroup(e){for(const n of this.getBindings())if(n.name===e)return n}getIndex(){return this._geometries.getIndex(this)}getIndirect(){return this._geometries.getIndirect(this)}getIndirectOffset(){return this._geometries.getIndirectOffset(this)}getChainArray(){return[this.object,this.material,this.context,this.lightsNode]}setGeometry(e){this.geometry=e,this.attributes=null,this.attributesId=null}getAttributes(){if(this.attributes!==null)return this.attributes;const e=this.getNodeBuilderState().nodeAttributes,n=this.geometry,r=[],i=new Set,a={};for(const s of e){let o;if(s.node&&s.node.attribute?o=s.node.attribute:(o=n.getAttribute(s.name),a[s.name]=o.id),o===void 0)continue;r.push(o);const l=o.isInterleavedBufferAttribute?o.data:o;i.add(l)}return this.attributes=r,this.attributesId=a,this.vertexBuffers=Array.from(i.values()),r}getVertexBuffers(){return this.vertexBuffers===null&&this.getAttributes(),this.vertexBuffers}getDrawParameters(){const{object:e,material:n,geometry:r,group:i,drawRange:a}=this,s=this.drawParams||(this.drawParams={vertexCount:0,firstVertex:0,instanceCount:0,firstInstance:0}),o=this.getIndex(),l=o!==null;
4191let c=1;if(r.isInstancedBufferGeometry===!0?c=r.instanceCount:e.count!==void 0&&(c=Math.max(0,e.count)),c===0)return null;if(s.instanceCount=c,e.isBatchedMesh===!0)return s;let u=1;n.wireframe===!0&&!e.isPoints&&!e.isLineSegments&&!e.isLine&&!e.isLineLoop&&(u=2);let f=a.start*u,h=(a.start+a.count)*u;i!==null&&(f=Math.max(f,i.start*u),h=Math.min(h,(i.start+i.count)*u));const p=r.attributes.position;let A=1/0;l?A=o.count:p!=null&&(A=p.count),f=Math.max(f,0),h=Math.min(h,A);const g=h-f;return g<0||g===1/0?null:(s.vertexCount=g,s.firstVertex=f,s)}getGeometryCacheKey(){const{geometry:e}=this;let n="";for(const r of Object.keys(e.attributes).sort()){const i=e.attributes[r];n+=r+",",i.data&&(n+=i.data.stride+","),i.offset&&(n+=i.offset+","),i.itemSize&&(n+=i.itemSize+","),i.normalized&&(n+="n,")}for(const r of Object.keys(e.morphAttributes).sort()){const i=e.morphAttributes[r];n+="morph-"+r+",";for(let a=0,s=i.length;a<s;a++){const o=i[a];n+=o.id+","}}return e.index&&(n+="index,"),n}getMaterialCacheKey(){const{object:e,material:n,renderer:r}=this;let i=n.customProgramCacheKey();for(const a of oht(n)){if(/^(is[A-Z]|_)|^(visible|version|uuid|name|opacity|userData)$/.test(a))continue;const s=n[a];let o;if(s!==null){const l=typeof s;l==="number"?o=s!==0?"1":"0":l==="object"?(o="{",s.isTexture&&(o+=s.mapping,r.backend.isWebGPUBackend===!0&&(o+=s.magFilter,o+=s.minFilter,o+=s.wrapS,o+=s.wrapT,o+=s.wrapR)),o+="}"):o=String(s)}else o=String(s);i+=o+","}return i+=this.clippingContextCacheKey+",",e.geometry&&(i+=this.getGeometryCacheKey()),e.skeleton&&(i+=e.skeleton.bones.length+","),e.isBatchedMesh&&(i+=e._matricesTexture.uuid+",",e._colorsTexture!==null&&(i+=e._colorsTexture.uuid+",")),(e.isInstancedMesh||e.count>1||Array.isArray(e.morphTargetInfluences))&&(i+=e.uuid+","),i+=this.context.id+",",i+=e.receiveShadow+",",x6(i)}get needsGeometryUpdate(){if(this.geometry.id!==this.object.geometry.id)return!0;if(this.attributes!==null){const e=this.attributesId;for(const n in e){const r=this.geometry.getAttribute(n);if(r===void 0||e[n]!==r.id)return!0}}return!1}get needsUpdate(){return this.initialNodesCacheKey!==this.getDynamicCacheKey()||this.clippingNeedsUpdate}getDynamicCacheKey(){let e=0;return this.material.isShadowPassMaterial!==!0&&(e=this._nodes.getCacheKey(this.scene,this.lightsNode)),this.camera.isArrayCamera&&(e=gS(e,this.camera.cameras.length)),this.object.receiveShadow&&(e=gS(e,1)),e=gS(e,this.renderer.contextNode.id,this.renderer.contextNode.version),e}getCacheKey(){return this.getMaterialCacheKey()+this.getDynamicCacheKey()}dispose(){this.material.removeEventListener("dispose",this.onMaterialDispose),this.geometry.removeEventListener("dispose",this.onGeometryDispose),this.onDispose()}}const x1=[];class cht{constructor(e,n,r,i,a,s){this.renderer=e,this.nodes=n,this.geometries=r,this.pipelines=i,this.bindings=a,this.info=s,this.chainMaps={}}get(e,n,r,i,a,s,o,l){const c=this.getChainMap(l);x1[0]=e,x1[1]=n,x1[2]=s,x1[3]=a;let u=c.get(x1);return u===void 0?(u=this.createRenderObject(this.nodes,this.geometries,this.renderer,e,n,r,i,a,s,o,l),c.set(x1,u)):(u.camera=i,u.updateClipping(o),u.needsGeometryUpdate&&u.setGeometry(e.geometry),(u.version!==n.version||u.needsUpdate)&&(u.initialCacheKey!==u.getCacheKey()?(u.dispose(),u=this.get(e,n,r,i,a,s,o,l)):u.version=n.version)),x1[0]=null,x1[1]=null,x1[2]=null,x1[3]=null,u}getChainMap(e="default"){return this.chainMaps[e]||(this.chainMaps[e]=new Qg)}dispose(){this.chainMaps={}}createRenderObject(e,n,r,i,a,s,o,l,c,u,f){const h=this.getChainMap(f),p=new lht(e,n,r,i,a,s,o,l,c,u);return p.onDispose=()=>{this.pipelines.delete(p),this.bindings.deleteForRender(p),this.nodes.delete(p),h.delete(p.getChainArray())},p}}class hx{constructor(){this.data=new WeakMap}get(e){let n=this.data.get(e);return n===void 0&&(n={},this.data.set(e,n)),n}delete(e){let n=null;return this.data.has(e)&&(n=this.data.get(e),this.data.delete(e)),n}has(e){return this.data.has(e)}dispose(){this.data=new WeakMap}}const md={VERTEX:1,INDEX:2,STORAGE:3,INDIRECT:4},ZA=16,uht=211,fht=212;class dht extends hx{constructor(e,n){super(),this.backend=e,this.info=n}delete(e){const n=super.delete(e);return n!==null&&(this.backend.destroyAttribute(e),this.info.destroyAttribute(e)),n}update(e,n){const r=this.get(e);if(r.version===void 0)n===md.VERTEX?(this.backend.createAttribute(e),this.info.createAttribute(e)):n===md.INDEX?(this.backend.createIndexAttribute(e),this.info.createIndexAttribute(e)):n===md.STORAGE?(this.backend.createStorageAttribute(e),this.info.createStorageAttribute(e)):n===md.INDI
4191RECT&&(this.backend.createIndirectStorageAttribute(e),this.info.createIndirectStorageAttribute(e)),r.version=this._getBufferAttribute(e).version;else{const i=this._getBufferAttribute(e);(r.version<i.version||i.usage===R5)&&(this.backend.updateAttribute(e),r.version=i.version)}}_getBufferAttribute(e){return e.isInterleavedBufferAttribute&&(e=e.data),e}}function hye(t){return t.index!==null?t.index.version:t.attributes.position.version}function pye(t){return t.index!==null?t.index.id:t.attributes.position.id}function sse(t){const e=[],n=t.index,r=t.attributes.position;if(n!==null){const a=n.array;for(let s=0,o=a.length;s<o;s+=3){const l=a[s+0],c=a[s+1],u=a[s+2];e.push(l,c,c,u,u,l)}}else{const a=r.array;for(let s=0,o=a.length/3-1;s<o;s+=3){const l=s+0,c=s+1,u=s+2;e.push(l,c,c,u,u,l)}}const i=new(r.count>=65535?Rq:Nq)(e,1);return i.version=hye(t),i.__id=pye(t),i}class hht extends hx{constructor(e,n){super(),this.attributes=e,this.info=n,this.wireframes=new WeakMap,this.attributeCall=new WeakMap,this._geometryDisposeListeners=new Map}has(e){const n=e.geometry;return super.has(n)&&this.get(n).initialized===!0}updateForRender(e){this.has(e)===!1&&this.initGeometry(e),this.updateAttributes(e)}initGeometry(e){const n=e.geometry,r=this.get(n);r.initialized=!0,this.info.memory.geometries++;const i=()=>{this.info.memory.geometries--;const a=n.index,s=e.getAttributes();a!==null&&this.attributes.delete(a);for(const l of s)this.attributes.delete(l);const o=this.wireframes.get(n);o!==void 0&&this.attributes.delete(o),n.removeEventListener("dispose",i),this._geometryDisposeListeners.delete(n)};n.addEventListener("dispose",i),this._geometryDisposeListeners.set(n,i)}updateAttributes(e){const n=e.getAttributes();for(const a of n)a.isStorageBufferAttribute||a.isStorageInstancedBufferAttribute?this.updateAttribute(a,md.STORAGE):this.updateAttribute(a,md.VERTEX);const r=this.getIndex(e);r!==null&&this.updateAttribute(r,md.INDEX);const i=e.geometry.indirect;i!==null&&this.updateAttribute(i,md.INDIRECT)}updateAttribute(e,n){const r=this.info.render.calls;e.isInterleavedBufferAttribute?this.attributeCall.get(e)===void 0?(this.attributes.update(e,n),this.attributeCall.set(e,r)):this.attributeCall.get(e.data)!==r&&(this.attributes.update(e,n),this.attributeCall.set(e.data,r),this.attributeCall.set(e,r)):this.attributeCall.get(e)!==r&&(this.attributes.update(e,n),this.attributeCall.set(e,r))}getIndirect(e){return e.geometry.indirect}getIndirectOffset(e){return e.geometry.indirectOffset}getIndex(e){const{geometry:n,material:r}=e;let i=n.index;if(r.wireframe===!0){const a=this.wireframes;let s=a.get(n);s===void 0?(s=sse(n),a.set(n,s)):(s.version!==hye(n)||s.__id!==pye(n))&&(this.attributes.delete(s),s=sse(n),a.set(n,s)),i=s}return i}dispose(){for(const[e,n]of this._geometryDisposeListeners.entries())e.removeEventListener("dispose",n);this._geometryDisposeListeners.clear()}}class pht{constructor(){this.autoReset=!0,this.frame=0,this.calls=0,this.render={calls:0,frameCalls:0,drawCalls:0,triangles:0,points:0,lines:0,timestamp:0},this.compute={calls:0,frameCalls:0,timestamp:0},this.memory={geometries:0,textures:0,attributes:0,indexAttributes:0,storageAttributes:0,indirectStorageAttributes:0,readbackBuffers:0,programs:0,renderTargets:0,total:0,texturesSize:0,attributesSize:0,indexAttributesSize:0,storageAttributesSize:0,indirectStorageAttributesSize:0,readbackBuffersSize:0,programsSize:0},this.memoryMap=new Map}update(e,n,r){this.render.drawCalls++,e.isMesh||e.isSprite?this.render.triangles+=r*(n/3):e.isPoints?this.render.points+=r*n:e.isLineSegments?this.render.lines+=r*(n/2):e.isLine?this.render.lines+=r*(n-1):nn("WebGPUInfo: Unknown object type.")}reset(){this.render.drawCalls=0,this.render.frameCalls=0,this.compute.frameCalls=0,this.render.triangles=0,this.render.points=0,this.render.lines=0}dispose(){this.reset(),this.calls=0,this.render.calls=0,this.compute.calls=0,this.render.timestamp=0,this.compute.timestamp=0;for(const e in this.memory)this.memory[e]=0;this.memoryMap.clear()}createTexture(e){const n=this._getTextureMemorySize(e);this.memoryMap.set(e,n),this.memory.textures++,this.memory.total+=n,this.memory.texturesSize+=n}destroyTexture(e){const n=this.memoryMap.get(e)||0;this.memoryMap.delete(e),this.memory.textures--,this.memory.total-=n,this.memory.texturesSize-=n}_createAttribute(e,n){const r=this._getAttributeMemorySize(e);this.memoryMap.set(e,{size:r,type:n}),this.memory[n]++,this.memory.total+=r,this.memory[n+"Size"]+=r}createAttribute(e){this._createAttribute(e,"attributes")}createIndexAttribute(e){this._createAttribute(e,"indexAttributes")}createStorageAttribute(e){this._createAttribute(e,"storageAttributes")}createIndirectStorageAttribute(e){this._createAttribute(e,"indirectStorageAttributes")}destroyAttribute(e){const n=this.memoryMap.get(e);n&&(this.memoryMap.delete(e),this.memory[n.type]--,this.memory.total-=n.size,this.memory[n.type+"Size"]-=n.size)}createReadbackBuffer(e){const n=e.maxByteLength;this.memoryMap.set(e,{size:n,type:"readbackBuffers"}),this.memory.readbackBuffers++,this.memory.total+=n,this.memory.readbackBuffersSize+=n}destroyReadbackBuffer(e){const{size:n}=this.memoryMap.get(e);this.memoryMap.delete(e),this.memory.readbackBuffers--,this.memory.total-=n,this.memory.readbackBuffersSize-=n}createProgram(e){const n=e.code.length;this.memoryMap.set(e,n),this.memory.programs++,this.memory.total+=n,this.memory.programsSize+=n}destroyProgram(e){const n=this.memoryMap.get(e)||0;this.memoryMap.delete(e),this.memory.programs--,this.memory.total-=n,this.memory.programsSize-=n}_getTextureMemorySize(e){if(e.isCompressedTexture)return 1;let n=1;e.type===Sg||e.type===rs?n=1:e.type===Tg||e.type===dd||e.type===is?n=2:(e.type===Al||e.type===_a||e.type===os)&&(n=4);let r=4;e.format===zP||e.format===f6||e.format===By||e.format===Gl||e.format===Wc?r=1:e.format===uc||e.format===Uy?r=2:(e.format===u6||e.format===Bme)&&(r=3);let i=n*r;
4191e.type===HT||e.type===GT?i=2:(e.type===N0||e.type===zT||e.type===$T)&&(i=4);const a=e.width||1,s=e.height||1,o=e.isCubeTexture?6:e.depth||1;let l=a*s*o*i;const c=e.mipmaps;if(c&&c.length>0){let u=0;for(let f=0;f<c.length;f++){const h=c[f];if(h.data)u+=h.data.byteLength;else{const p=h.width||Math.max(1,a>>f),A=h.height||Math.max(1,s>>f);u+=p*A*o*i}}l+=u}else e.generateMipmaps&&(l=l*1.333);return Math.round(l)}_getAttributeMemorySize(e){return e.isInterleavedBufferAttribute&&(e=e.data),e.array?e.array.byteLength:e.count&&e.itemSize?e.count*e.itemSize*4:0}}class mye{constructor(e){this.cacheKey=e,this.usedTimes=0}}class mht extends mye{constructor(e,n,r){super(e),this.vertexProgram=n,this.fragmentProgram=r}}class Aht extends mye{constructor(e,n){super(e),this.computeProgram=n,this.isComputePipeline=!0}}let ght=0;class xB{constructor(e,n,r,i=null,a=null){this.id=ght++,this.code=e,this.stage=n,this.name=r,this.transforms=i,this.attributes=a,this.usedTimes=0}}class xht extends hx{constructor(e,n,r){super(),this.backend=e,this.nodes=n,this.info=r,this.bindings=null,this.caches=new Map,this.programs={vertex:new Map,fragment:new Map,compute:new Map}}getForCompute(e,n){const{backend:r}=this,i=this.get(e);if(this._needsComputeUpdate(e)){const a=i.pipeline;a&&(a.usedTimes--,a.computeProgram.usedTimes--);const s=this.nodes.getForCompute(e);let o=this.programs.compute.get(s.computeShader);o===void 0&&(a&&a.computeProgram.usedTimes===0&&this._releaseProgram(a.computeProgram),o=new xB(s.computeShader,"compute",e.name,s.transforms,s.nodeAttributes),this.programs.compute.set(s.computeShader,o),r.createProgram(o),this.info.createProgram(o));const l=this._getComputeCacheKey(e,o);let c=this.caches.get(l);c===void 0&&(a&&a.usedTimes===0&&this._releasePipeline(a),c=this._getComputePipeline(e,o,l,n)),c.usedTimes++,o.usedTimes++,i.version=e.version,i.pipeline=c}return i.pipeline}getForRender(e,n=null){const{backend:r}=this,i=this.get(e);if(this._needsRenderUpdate(e)){const a=i.pipeline;a&&(a.usedTimes--,a.vertexProgram.usedTimes--,a.fragmentProgram.usedTimes--);const s=e.getNodeBuilderState(),o=e.material?e.material.name:"";let l=this.programs.vertex.get(s.vertexShader);l===void 0&&(a&&a.vertexProgram.usedTimes===0&&this._releaseProgram(a.vertexProgram),l=new xB(s.vertexShader,"vertex",o),this.programs.vertex.set(s.vertexShader,l),r.createProgram(l),this.info.createProgram(l));let c=this.programs.fragment.get(s.fragmentShader);c===void 0&&(a&&a.fragmentProgram.usedTimes===0&&this._releaseProgram(a.fragmentProgram),c=new xB(s.fragmentShader,"fragment",o),this.programs.fragment.set(s.fragmentShader,c),r.createProgram(c),this.info.createProgram(c));const u=this._getRenderCacheKey(e,l,c);let f=this.caches.get(u);f===void 0?(a&&a.usedTimes===0&&this._releasePipeline(a),f=this._getRenderPipeline(e,l,c,u,n)):e.pipeline=f,f.usedTimes++,l.usedTimes++,c.usedTimes++,i.pipeline=f}return i.pipeline}isReady(e){const r=this.get(e).pipeline;if(r===void 0)return!1;const i=this.backend.get(r);return i.pipeline!==void 0&&i.pipeline!==null}delete(e){const n=this.get(e).pipeline;return n&&(n.usedTimes--,n.usedTimes===0&&this._releasePipeline(n),n.isComputePipeline?(n.computeProgram.usedTimes--,n.computeProgram.usedTimes===0&&this._releaseProgram(n.computeProgram)):(n.fragmentProgram.usedTimes--,n.vertexProgram.usedTimes--,n.vertexProgram.usedTimes===0&&this._releaseProgram(n.vertexProgram),n.fragmentProgram.usedTimes===0&&this._releaseProgram(n.fragmentProgram))),super.delete(e)}dispose(){super.dispose(),this.caches=new Map,this.programs={vertex:new Map,fragment:new Map,compute:new Map}}updateForRender(e){this.getForRender(e)}_getComputePipeline(e,n,r,i){r=r||this._getComputeCacheKey(e,n);let a=this.caches.get(r);return a===void 0&&(a=new Aht(r,n),this.caches.set(r,a),this.backend.createComputePipeline(a,i)),a}_getRenderPipeline(e,n,r,i,a){i=i||this._getRenderCacheKey(e,n,r);let s=this.caches.get(i);return s===void 0&&(s=new mht(i,n,r),this.caches.set(i,s),e.pipeline=s,this.backend.createRenderPipeline(e,a)),s}_getComputeCacheKey(e,n){return e.id+","+n.id}_getRenderCacheKey(e,n,r){return n.id+","+r.id+","+this.backend.getRenderCacheKey(e)}
4191_releasePipeline(e){this.caches.delete(e.cacheKey)}_releaseProgram(e){const n=e.code,r=e.stage;this.programs[r].delete(n),this.info.destroyProgram(e)}_needsComputeUpdate(e){const n=this.get(e);return n.pipeline===void 0||n.version!==e.version}_needsRenderUpdate(e){return this.get(e).pipeline===void 0||this.backend.needsRenderUpdate(e)}}class vht extends hx{constructor(e,n,r,i,a,s){super(),this.backend=e,this.textures=r,this.pipelines=a,this.attributes=i,this.nodes=n,this.info=s,this.pipelines.bindings=this}getForRender(e){const n=e.getBindings();for(const r of n){const i=this.get(r);i.bindGroup===void 0&&(this._init(r),this.backend.createBindings(r,n,0),i.bindGroup=r)}return n}getForCompute(e){const n=this.nodes.getForCompute(e).bindings;for(const r of n){const i=this.get(r);i.bindGroup===void 0&&(this._init(r),this.backend.createBindings(r,n,0),i.bindGroup=r)}return n}updateForCompute(e){this._updateBindings(this.getForCompute(e))}updateForRender(e){this._updateBindings(this.getForRender(e))}deleteForCompute(e){const n=this.nodes.getForCompute(e).bindings;for(const r of n)this.backend.deleteBindGroupData(r),this.delete(r)}deleteForRender(e){const n=e.getBindings();for(const r of n)this.backend.deleteBindGroupData(r),this.delete(r)}_updateBindings(e){for(const n of e)this._update(n,e)}_init(e){for(const n of e.bindings)if(n.isSampledTexture)this.textures.updateTexture(n.texture);else if(n.isSampler)this.textures.updateSampler(n.texture);else if(n.isStorageBuffer){const r=n.attribute,i=r.isIndirectStorageBufferAttribute?md.INDIRECT:md.STORAGE;this.attributes.update(r,i)}}_update(e,n){const{backend:r}=this;let i=!1,a=!0,s=0,o=0;for(const l of e.bindings)if(this.nodes.updateGroup(l)!==!1){if(l.isStorageBuffer){const u=l.attribute,f=u.isIndirectStorageBufferAttribute?md.INDIRECT:md.STORAGE,h=r.get(l);this.attributes.update(u,f),h.attribute!==u&&(h.attribute=u,i=!0)}if(l.isUniformBuffer)l.update()&&r.updateBinding(l);else if(l.isSampledTexture){const u=l.update(),f=l.texture,h=this.textures.get(f);if(u&&(this.textures.updateTexture(f),l.generation!==h.generation&&(l.generation=h.generation,i=!0),h.bindGroups.add(e)),r.get(f).externalTexture!==void 0||h.isDefaultTexture?a=!1:(s=s*10+f.id,o+=f.version),f.isStorageTexture===!0&&f.mipmapsAutoUpdate===!0){const A=this.get(f);l.store===!0?A.needsMipmap=!0:this.textures.needsMipmaps(f)&&A.needsMipmap===!0&&(this.backend.generateMipmaps(f),A.needsMipmap=!1)}}else if(l.isSampler&&l.update()){const f=this.textures.updateSampler(l.texture);l.samplerKey!==f&&(l.samplerKey=f,i=!0)}l.isBuffer&&l.updateRanges.length>0&&l.clearUpdateRanges()}i===!0&&this.backend.updateBindings(e,n,a?s:0,o)}}function yht(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?t.z-e.z:t.id-e.id}function ose(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function lse(t){return(t.transmission>0||t.transmissionNode&&t.transmissionNode.isNode)&&t.side===Zs&&t.forceSinglePass===!1}class _ht{constructor(e,n,r){this.renderItems=[],this.renderItemsIndex=0,this.opaque=[],this.transparentDoublePass=[],this.transparent=[],this.bundles=[],this.lightsNode=e.getNode(n,r),this.lightsArray=[],this.scene=n,this.camera=r,this.occlusionQueryCount=0}begin(){return this.renderItemsIndex=0,this.opaque.length=0,this.transparentDoublePass.length=0,this.transparent.length=0,this.bundles.length=0,this.lightsArray.length=0,this.occlusionQueryCount=0,this}getNextRenderItem(e,n,r,i,a,s,o){let l=this.renderItems[this.renderItemsIndex];return l===void 0?(l={id:e.id,object:e,geometry:n,material:r,groupOrder:i,renderOrder:e.renderOrder,z:a,group:s,clippingContext:o},this.renderItems[this.renderItemsIndex]=l):(l.id=e.id,l.object=e,l.geometry=n,l.material=r,l.groupOrder=i,l.renderOrder=e.renderOrder,l.z=a,l.group=s,l.clippingContext=o),this.renderItemsIndex++,l}push(e,n,r,i,a,s,o){const l=this.getNextRenderItem(e,n,r,i,a,s,o);e.occlusionTest===!0&&this.occlusionQueryCount++,r.transparent===!0||r.transmission>0||r.transmissionNode&&r.transmissionNode.isNode||r.backdropNode&&r.backdropNode.isNode?(lse(r)&&this.transparentDoublePass.push(l),this.transparent.push(l)):this.opaque.push(l)}unshift(e,n,r,i,a,s,o){const l=this.getNextRenderItem(e,n,r,i,a,s,o);r.transparent===!0||r.transmission>0||r.transmissionNode&&r.transmissionNode.isNode||r.backdropNode&&r.backdropNode.isNode?(lse(r)&&this.transparentDoublePass.unshift(l),this.transparent.unshift(l)):this.opaque.unshift(l)}pushBundle(e){this.bundles.push(e)}pushLight(e){this.lightsArray.push(e)}sort(e,n){this.opaque.length>1&&this.opaque.sort(e||yht),this.transparentDoublePass.length>1&&this.transparentDoublePass.sort(n||ose),this.transparent.length>1&&this.transparent.sort(n||ose)}finish(){this.lightsNode.setLights(this.lightsArray);for(let e=this.renderItemsIndex,n=this.renderItems.length;e<n;e++){const r=this.renderItems[e];if(r.id===null)break;r.id=null,r.object=null,r.geometry=null,r.material=null,r.groupOrder=null,r.renderOrder=null,r.z=null,r.group=null,r.clippingContext=null}}}const f8=[];class bht{constructor(e){this.lighting=e,this.lists=new Qg}get(e,n){const r=this.lists;f8[0]=e,f8[1]=n;let i=r.get(f8);return i===void 0&&(i=new _ht(this.lighting,e,n),r.set(f8,i)),f8[0]=null,f8[1]=null,i}dispose(){this.lists=new Qg}}let wht=0;class Sht{constructor(){this.id=wht++,this.mrt=null,this.color=!0,this.clearColor=!0,this.clearColorValue={r:0,g:0,b:0,a:1},this.depth=!0,this.clearDepth=!0,this.clearDepthValue=1,this.stencil=!1,this.clearStencil=!0,this.clearStencilValue=1,this.viewport=!1,this.viewportValue=new kr,this.scissor=!1,this.scissorValue=new kr,this.renderTarget=null,this.textures=null,this.depthTexture=null,this.activeCubeFace=0,this.activeMipmapLevel=0,this.sampleCount=1,this.width=0,this.height=0,this.occlusionQueryCount=0,this.clippingContext=null,this.camera=null,this.isRenderContext=!0}getCacheKey(){return Aye(this)}}function Aye(t){const{textures:e,activeCubeFace:n,activeMipmapLevel:r}=t,i=[n,r];for(const a of e)i.push(a.id);return QT(i)}class Tht{constructor(e){this.renderer=e,this._renderContexts={}}get(e=null,n=null,r=0){let i;if(e===null)i="default";else{const l=e.texture.format,c=e.texture.type;i=`${e.textures.length}:${l}:${c}:${e.samples}:${e.depthBuffer}:${e.stencilBuffer}`}const a=n!==null?n.id:"default",s=i+"-"+a+"-"+r;let o=this._renderContexts[s];return o===void 0&&(o=new Sht,o.mrt=n,this._renderContexts[s]=o),e!==null&&(o.sampleCount=e.samples===0?1:e.samples),o.clearDepthValue=this.renderer.getClearDepth(),o.clearStencilValue=this.renderer.getClearStencil(),o}dispose(){this._renderContexts={}}}const Eht=new Pe;class Mht extends hx{constructor(e,n,r){super(),this.renderer=e,this.backend=n,this.info=r,this._htmlTextures=new Set}updateRenderTarget(e,n=0){const r=this.get(e),i=e.samples===0?1:e.samples,a=r.depthTextureMips||(r.depthTextureMips={}),s=e.textures,o=this.getSize(s[0]),l=o.width>>n,c=o.height>>n;let u=e.depthTexture||a[n];const f=e.depthBuffer===!0||e.stencilBuffer===!0;let h=!1;u===void 0&&f&&(u=new hc,u.format=e.stencilBuffer?Wc:Gl,u.type=e.stencilBuffer?N0:_a,u.image.width=l,u.image.height=c,u.image.depth=o.depth,u.renderTarget=e,u.isArrayTexture=e.multiview===!0&&o.depth>1,a[n]=u),(r.width!==o.width||o.height!==r.height)&&(h=!0,u&&(u.needsUpdate=!0,u.image.width=l,u.image.height=c,u.image.depth=u.isArrayTexture?u.image.depth:1)),r.width=o.width,r.height=o.height,r.textures=s,r.depthTexture=u||null,r.depth=e.depthBuffer,r.stencil=e.stencilBuffer,r.renderTarget=e,r.sampleC
4191ount!==i&&(h=!0,u&&(u.needsUpdate=!0),r.sampleCount=i);const p={sampleCount:i};if(e.isXRRenderTarget!==!0){for(let A=0;A<s.length;A++){const g=s[A];h&&(g.needsUpdate=!0),this.updateTexture(g,p)}u&&this.updateTexture(u,p)}r.initialized!==!0&&(r.initialized=!0,this.info.memory.renderTargets++,r.onDispose=()=>{this._destroyRenderTarget(e)},e.addEventListener("dispose",r.onDispose))}updateTexture(e,n={}){const r=this.get(e);if(r.initialized===!0&&r.version===e.version)return;const i=e.isRenderTargetTexture||e.isDepthTexture||e.isFramebufferTexture,a=this.backend;if(i&&r.initialized===!0&&a.destroyTexture(e),e.isFramebufferTexture){const c=this.renderer.getRenderTarget();c?e.type=c.texture.type:e.type=rs}if(e.isHTMLTexture&&e.image){const c=this.renderer.domElement;if("requestPaint"in c){if(c.hasAttribute("layoutsubtree")||c.setAttribute("layoutsubtree","true"),e.image.parentNode!==c&&c.appendChild(e.image),this._htmlTextures.size===0){const u=this._htmlTextures;c.onpaint=f=>{const h=f&&f.changedElements;for(const p of u)(!h||h.includes(p.image))&&(p.needsUpdate=!0)}}this._htmlTextures.add(e)}}const{width:s,height:o,depth:l}=this.getSize(e);if(n.width=s,n.height=o,n.depth=l,n.needsMipmaps=this.needsMipmaps(e),n.levels=n.needsMipmaps?this.getMipLevels(e,s,o):1,e.isCubeTexture&&e.mipmaps.length>0&&n.levels++,i||e.isStorageTexture===!0||e.isExternalTexture===!0)a.createTexture(e,n),r.generation=e.version;else if(e.version>0){const c=e.image;if(c===void 0)Kt("Renderer: Texture marked for update but image is undefined.");else if(c.complete===!1)Kt("Renderer: Texture marked for update but image is incomplete.");else{if(e.images){const f=[];for(const h of e.images)f.push(h);n.images=f}else n.image=c;(r.isDefaultTexture===void 0||r.isDefaultTexture===!0)&&(a.createTexture(e,n),r.isDefaultTexture=!1,r.generation=e.version),e.source.dataReady===!0&&a.updateTexture(e,n);const u=e.isStorageTexture===!0&&e.mipmapsAutoUpdate===!1;n.needsMipmaps&&e.mipmaps.length===0&&!u&&a.generateMipmaps(e),e.onUpdate&&e.onUpdate(e)}}else a.createDefaultTexture(e),r.isDefaultTexture=!0,r.generation=e.version;r.initialized!==!0&&(r.initialized=!0,r.generation=e.version,r.bindGroups=new Set,this.info.createTexture(e),e.isVideoTexture&&Ar.enabled===!0&&Ar.getTransfer(e.colorSpace)!==Bn&&Kt("WebGPURenderer: Video textures must use a color space with a sRGB transfer function, e.g. SRGBColorSpace."),r.onDispose=()=>{this._destroyTexture(e)},e.addEventListener("dispose",r.onDispose)),r.version=e.version}updateSampler(e){return this.backend.updateSampler(e)}getSize(e,n=Eht){let r=e.images?e.images[0]:e.image;return r?(r.image!==void 0&&(r=r.image),e.isHTMLTexture?(n.width=r.offsetWidth||1,n.height=r.offsetHeight||1,n.depth=1):typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement?(n.width=r.videoWidth||1,n.height=r.videoHeight||1,n.depth=1):typeof VideoFrame<"u"&&r instanceof VideoFrame?(n.width=r.displayWidth||1,n.height=r.displayHeight||1,n.depth=1):(n.width=r.width||1,n.height=r.height||1,n.depth=e.isCubeTexture?6:r.depth||1)):n.width=n.height=n.depth=1,n}getMipLevels(e,n,r){let i;return e.mipmaps.length>0?i=e.mipmaps.length:e.isCompressedTexture===!0?i=1:i=Math.floor(Math.log2(Math.max(n,r)))+1,i}needsMipmaps(e){return e.generateMipmaps===!0||e.mipmaps.length>0}_destroyRenderTarget(e){if(this.has(e)===!0){const n=this.get(e),r=n.textures,i=n.depthTexture;e.removeEventListener("dispose",n.onDispose);for(let a=0;a<r.length;a++)this._destroyTexture(r[a]);i&&this._destroyTexture(i),this.delete(e),this.backend.delete(e),this.info.memory.renderTargets--}}_destroyTexture(e){if(this.has(e)===!0){const n=this.get(e);e.removeEventListener("dispose",n.onDispose);const r=n.isDefaultTexture;if(this.backend.destroyTexture(e,r),n.bindGroups)for(const i of n.bindGroups){const a=this.backend.get(i);a.groups=void 0,a.versions=void 0}this._htmlTextures.delete(e),this.delete(e),this.info.destroyTexture(e)}}}class _Z extends Xn{constructor(e,n,r,i=1){super(e,n,r),this.a=i}set(e,n,r,i=1){return this.a=i,super.set(e,n,r)}copy(e){return e.a!==void 0&&(this.a=e.a),super.copy(e)}clone(){return new this.constructor(this.r,this.g,this.b,this.a)}}class gye extends ta{static get type(){return"ParameterNode"}constructor(e,n=null){super(e,n),this.isParameterNode=!0}getMemberType(e,n){const r=this.getNodeType(e),i=e.getStructTypeNode(r);let a;return i!==null?a=i.getMemberType(e,n):(nn(`TSL: Member "${n}" not found in struct "${r}".`,new mo),a="float"),a}
4191getHash(){return String(this.id)}generate(){return this.name}}const Cht=(t,e)=>new gye(t,e);class Nht extends $n{static get type(){return"StackNode"}constructor(e=null){super(),this.nodes=[],this.outputNode=null,this.parent=e,this._currentCond=null,this._expressionNode=null,this._currentNode=null,this.isStackNode=!0}getElementType(e){return this.hasOutput(e)?this.outputNode.getElementType(e):"void"}generateNodeType(e){return this.hasOutput(e)?this.outputNode.getNodeType(e):"void"}getMemberType(e,n){return this.hasOutput(e)?this.outputNode.getMemberType(e,n):"void"}addToStack(e,n=this.nodes.length){return e.isNode!==!0?(nn("TSL: Invalid node added to stack.",new mo),this):(this.nodes.splice(n,0,e),this)}addToStackBefore(e){const n=this._currentNode?this.nodes.indexOf(this._currentNode):0;return this.addToStack(e,n)}If(e,n){const r=new Z8(n);return this._currentCond=Zc(e,r),this.addToStack(this._currentCond)}ElseIf(e,n){const r=new Z8(n),i=Zc(e,r);return this._currentCond.elseNode=i,this._currentCond=i,this}Else(e){return this._currentCond.elseNode=new Z8(e),this}Switch(e){return this._expressionNode=Un(e),this}Case(...e){const n=[];if(e.length>=2)for(let o=0;o<e.length-1;o++)n.push(this._expressionNode.equal(Un(e[o])));else nn("TSL: Invalid parameter length. Case() requires at least two parameters.",new mo);const r=e[e.length-1],i=new Z8(r);let a=n[0];for(let o=1;o<n.length;o++)a=a.or(n[o]);const s=Zc(a,i);return this._currentCond===null?(this._currentCond=s,this.addToStack(this._currentCond)):(this._currentCond.elseNode=s,this._currentCond=s,this)}Default(e){return this.Else(e),this}setup(e){const n=e.getNodeProperties(this);let r=0;for(const i of this.getChildren())i.isVarNode&&i.isIntent(e)&&i.isAssign(e)!==!0||(n["node"+r++]=i);return n.outputNode||null}hasOutput(e){return this.outputNode&&this.outputNode.isNode&&this.outputNode.getNodeType(e)!=="void"}build(e,...n){const r=AW(),i=e.buildStage;W5(this),e.setActiveStack(this);const a=c=>{if(this._currentNode=c,!(c.isVarNode&&c.isIntent(e)&&c.isAssign(e)!==!0)){if(i==="setup")c.build(e);else if(i==="analyze")c.build(e,this);else if(i==="generate"){const u=e.getDataFromNode(c,"any").stages,f=u&&u[e.shaderStage];if(c.isVarNode&&f&&f.length===1&&f[0]&&f[0].isStackNode)return;c.build(e,"void")}}},s=[...this.nodes];for(const c of s)a(c);this._currentNode=null;const o=this.nodes.filter(c=>s.indexOf(c)===-1);for(const c of o)a(c);let l;return this.hasOutput(e)?l=this.outputNode.build(e,...n):l=super.build(e,...n),W5(r),e.removeActiveStack(this),l}}const rN=Wr(Nht).setParameterLength(0,1);function Rht(t){return Object.entries(t).map(([e,n])=>typeof n=="string"?{name:e,type:n,atomic:!1}:{name:e,type:n.type,atomic:n.atomic||!1})}class Dht extends $n{static get type(){return"StructTypeNode"}constructor(e,n=null){super("struct"),this.membersLayout=Rht(e),this.name=n,this.isStructLayoutNode=!0}getLength(){const e=Float32Array.BYTES_PER_ELEMENT;let n=1,r=0;for(const i of this.membersLayout){const a=i.type,s=Jct(a),o=eut(a)/e;n=Math.max(n,o);const c=r%n%o;c!==0&&(r+=o-c),r+=s}return Math.ceil(r/n)*n}getMemberType(e,n){const r=this.membersLayout.find(i=>i.name===n);return r?r.type:"void"}generateNodeType(e){return e.getStructTypeFromNode(this,this.membersLayout,this.name).name}setup(e){e.getStructTypeFromNode(this,this.membersLayout,this.name),e.addInclude(this)}generate(e){return this.getNodeType(e)}}class Pht extends $n{static get type(){return"StructNode"}constructor(e,n){super("vec3"),this.structTypeNode=e,this.values=n,this.isStructNode=!0}generateNodeType(e){return this.structTypeNode.getNodeType(e)}getMemberType(e,n){return this.structTypeNode.getMemberType(e,n)}_getChildren(){const e=super._getChildren(),n=e.find(r=>r.childNode===this.structTypeNode);return e.splice(e.indexOf(n),1),e.push(n),e}generate(e){const n=e.getVarFromNode(this),r=n.type,i=e.getPropertyName(n);return e.addLineFlowCode(`${i} = ${e.generateStruct(r,this.structTypeNode.membersLayout,this.values)}`,this),n.name}}const kht=(t,e=null)=>{const n=new Dht(t,e),r=(...i)=>{let a=null;if(i.length>0)if(i[0].isNode){a={};const s=Object.keys(t);for(let o=0;o<i.length;o++)a[s[o]]=i[o]}else a=i[0];return new Pht(n,a)};return r.layout=n,r.isStruct=!0,r};class xye extends $n{static get type(){return"OutputStructNode"}constructor(...e){super(),this.members=e,this.isOutputStructNode=!0}generateNodeType(){return"OutputType"}generate(e){const n=e.getDataFromNode(this);if(n.membersLayout===void 0){const s=this.members,o=[];for(let l=0;l<s.length;l++){const c="m"+l,u=s[l].getNodeType(e);o.push({name:c,type:u,index:l})}n.membersLayout=o,n.structType=e.getOutputStructTypeFromNode(this,n.membersLayout)}const r=e.getOutputStructName(),i=this.members,a=r!==""?r+".":"";for(let s=0;s<i.length;s++){const o=i[s].build(e);e.addLineFlowCode(`${a}m${s} = ${o}`,this)}return r}}const Lht=Wr(xye);class vye{constructor(e=Hl){this.blending=e,this.blendSrc=W3,this.blendDst=Z3,this.blendEquation=oc,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.premultiplyAlpha=!1}copy(e){return this.blending=e.blending,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.premultiplyAlpha=e.premultiplyAlpha,this}clone(){return new this.constructor().copy(this)}}const Oht=new vye(_l),Fht=new vye(eq);function yye(t,e){for(let n=0;n<t.length;n++)if(t[n].name===e)return n;return-1}
4191class Iht extends xye{static get type(){return"MRTNode"}constructor(e){super(),this.outputNodes=e,this.blendModes={output:Fht},this.isMRTNode=!0}setBlendMode(e,n){return this.blendModes[e]=n,this}getBlendMode(e){return this.blendModes[e]||Oht}has(e){return this.outputNodes[e]!==void 0}get(e){return this.outputNodes[e]}merge(e){const n={...this.outputNodes,...e.outputNodes},r={...this.blendModes,...e.blendModes},i=_ye(n);return i.blendings=r,i}setup(e){const n=this.outputNodes,r=e.renderer.getRenderTarget(),i=[],a=r.textures;for(const s in n){const o=yye(a,s);i[o]=er(n[s])}return this.members=i,super.setup(e)}}const _ye=Wr(Iht);class rE extends eo{static get type(){return"BitcastNode"}constructor(e,n,r=null){super(),this.valueNode=e,this.conversionType=n,this.inputType=r,this.isBitcastNode=!0}generateNodeType(e){if(this.inputType!==null){const n=this.valueNode.getNodeType(e),r=e.getTypeLength(n);return e.getTypeFromLength(r,this.conversionType)}return this.conversionType}generate(e){const n=this.getNodeType(e);let r="";if(this.inputType!==null){const i=this.valueNode.getNodeType(e);r=e.getTypeLength(i)===1?this.inputType:e.changeComponentType(i,this.inputType)}else r=this.valueNode.getNodeType(e);return`${e.getBitcastMethod(n,r)}( ${this.valueNode.build(e,r)} )`}}const bye=fn(rE).setParameterLength(2),Bht=t=>new rE(t,"int","float"),wye=t=>new rE(t,"uint","float"),Uht=t=>new rE(t,"float","int"),Vht=t=>new rE(t,"float","uint"),cC={};class _f extends vt{static get type(){return"BitcountNode"}constructor(e,n){super(e,n),this.isBitcountNode=!0}_resolveElementType(e,n,r){r==="int"?n.assign(bye(e,"uint")):n.assign(e)}_returnDataNode(e){switch(e){case"uint":return ln;case"int":return $e;case"uvec2":return gW;case"uvec3":return zy;case"uvec4":return _W;case"ivec2":return Go;case"ivec3":return xW;case"ivec4":return yW}}_createTrailingZerosBaseLayout(e,n){const r=this._returnDataNode(n);return it(([a])=>{const s=ln(0);this._resolveElementType(a,s,n);const o=ke(s.bitAnd(PW(s))),c=wye(o).shiftRight(23).sub(127);return r(c)}).setLayout({name:e,type:n,inputs:[{name:"value",type:n}]})}_createLeadingZerosBaseLayout(e,n){const r=this._returnDataNode(n);return it(([a])=>{sr(a.equal(ln(0)),()=>ln(32));const s=ln(0),o=ln(0);return this._resolveElementType(a,s,n),sr(s.shiftRight(16).equal(0),()=>{o.addAssign(16),s.shiftLeftAssign(16)}),sr(s.shiftRight(24).equal(0),()=>{o.addAssign(8),s.shiftLeftAssign(8)}),sr(s.shiftRight(28).equal(0),()=>{o.addAssign(4),s.shiftLeftAssign(4)}),sr(s.shiftRight(30).equal(0),()=>{o.addAssign(2),s.shiftLeftAssign(2)}),sr(s.shiftRight(31).equal(0),()=>{o.addAssign(1)}),r(o)}).setLayout({name:e,type:n,inputs:[{name:"value",type:n}]})}_createOneBitsBaseLayout(e,n){const r=this._returnDataNode(n);return it(([a])=>{const s=ln(0);this._resolveElementType(a,s,n),s.assign(s.sub(s.shiftRight(ln(1)).bitAnd(ln(1431655765)))),s.assign(s.bitAnd(ln(858993459)).add(s.shiftRight(ln(2)).bitAnd(ln(858993459))));const o=s.add(s.shiftRight(ln(4))).bitAnd(ln(252645135)).mul(ln(16843009)).shiftRight(ln(24));return r(o)}).setLayout({name:e,type:n,inputs:[{name:"value",type:n}]})}_createMainLayout(e,n,r,i){const a=this._returnDataNode(n);return it(([o])=>{if(r===1)return a(i(o));{const l=a(0),c=["x","y","z","w"];for(let u=0;u<r;u++){const f=c[u];l[f].assign(i(o[f]))}return l}}).setLayout({name:e,type:n,inputs:[{name:"value",type:n}]})}setup(e){const{method:n,aNode:r}=this,{renderer:i}=e;if(i.backend.isWebGPUBackend)return super.setup(e);const a=this.getInputType(e),s=e.getElementType(a),o=e.getTypeLength(a),l=`${n}_base_${s}`,c=`${n}_${a}`;let u=cC[l];if(u===void 0){switch(n){case _f.COUNT_LEADING_ZEROS:{u=this._createLeadingZerosBaseLayout(l,s);break}case _f.COUNT_TRAILING_ZEROS:{u=this._createTrailingZerosBaseLayout(l,s);break}case _f.COUNT_ONE_BITS:{u=this._createOneBitsBaseLayout(l,s);break}}cC[l]=u}let f=cC[c];return f===void 0&&(f=this._createMainLayout(c,a,o,u),cC[c]=f),it(()=>f(r))()}}_f.COUNT_TRAILING_ZEROS="countTrailingZeros";_f.COUNT_LEADING_ZEROS="countLeadingZeros";_f.COUNT_ONE_BITS="countOneBits";const jht=fn(_f,_f.COUNT_TRAILING_ZEROS).setParameterLength(1),Hht=fn(_f,_f.COUNT_LEADING_ZEROS).setParameterLength(1),Ght=fn(_f,_f.COUNT_ONE_BITS).setParameterLength(1),zht=it(([t])=>{const e=t.toUint().mul(747796405).add(2891336453),n=e.shiftRight(e.shiftRight(28).add(4)).bitXor(e).mul(277803737);
4191return n.shiftRight(22).bitXor(n).toFloat().mul(1/2**32)}),xH=(t,e)=>hd(Lr(4,t.mul(bi(1,t))),e),$ht=(t,e)=>t.lessThan(.5)?xH(t.mul(2),e).div(2):bi(1,xH(Lr(bi(1,t),2),e).div(2)),qht=(t,e,n)=>hd(Mf(hd(t,e),Ro(hd(t,e),hd(bi(1,t),n))),1/e),Wht=(t,e)=>Cu(aD.mul(e.mul(t).sub(1))).div(aD.mul(e.mul(t).sub(1)));class bZ extends eo{static get type(){return"PackFloatNode"}constructor(e,n){super(),this.vectorNode=n,this.encoding=e,this.isPackFloatNode=!0}generateNodeType(){return"uint"}generate(e){const n=this.vectorNode.getNodeType(e);return`${e.getFloatPackingMethod(this.encoding)}(${this.vectorNode.build(e,n)})`}}const Zht=fn(bZ,"snorm").setParameterLength(1),Yht=fn(bZ,"unorm").setParameterLength(1),Xht=fn(bZ,"float16").setParameterLength(1);class wZ extends eo{static get type(){return"UnpackFloatNode"}constructor(e,n){super(),this.uintNode=n,this.encoding=e,this.isUnpackFloatNode=!0}generateNodeType(){return"vec2"}generate(e){const n=this.uintNode.getNodeType(e);return`${e.getFloatUnpackingMethod(this.encoding)}(${this.uintNode.build(e,n)})`}}const Qht=fn(wZ,"snorm").setParameterLength(1),Kht=fn(wZ,"unorm").setParameterLength(1),Jht=fn(wZ,"float16").setParameterLength(1),Vm=it(([t])=>t.fract().sub(.5).abs()).setLayout({name:"tri",type:"float",inputs:[{name:"x",type:"float"}]}),e1t=it(([t])=>Je(Vm(t.z.add(Vm(t.y.mul(1)))),Vm(t.z.add(Vm(t.x.mul(1)))),Vm(t.y.add(Vm(t.x.mul(1)))))).setLayout({name:"tri3",type:"vec3",inputs:[{name:"p",type:"vec3"}]}),t1t=it(([t,e,n])=>{const r=Je(t).toVar(),i=ke(1.4).toVar(),a=ke(0).toVar(),s=Je(r).toVar();return ba({start:ke(0),end:ke(3),type:"float",condition:"<="},()=>{const o=Je(e1t(s.mul(2))).toVar();r.addAssign(o.add(n.mul(ke(.1).mul(e)))),s.mulAssign(1.8),i.mulAssign(1.5),r.mulAssign(1.2);const l=ke(Vm(r.z.add(Vm(r.x.add(Vm(r.y)))))).toVar();a.addAssign(l.div(i)),s.addAssign(.14)}),a}).setLayout({name:"triNoise3D",type:"float",inputs:[{name:"position",type:"vec3"},{name:"speed",type:"float"},{name:"time",type:"float"}]});class n1t extends $n{static get type(){return"FunctionOverloadingNode"}constructor(e=[],...n){super(),this.functionNodes=e,this.parametersNodes=n,this._candidateFn=null,this.global=!0}generateNodeType(e){return this.getCandidateFn(e).shaderNode.layout.type}getCandidateFn(e){const n=this.parametersNodes;let r=this._candidateFn;if(r===null){let i=null,a=-1;for(const s of this.functionNodes){const l=s.shaderNode.layout;if(l===null)throw new Error("FunctionOverloadingNode: FunctionNode must be a layout.");const c=l.inputs;if(n.length===c.length){let u=0;for(let f=0;f<n.length;f++){const h=n[f],p=c[f];h.getNodeType(e)===p.type&&u++}u>a&&(i=s,a=u)}}this._candidateFn=r=i}return r}setup(e){return this.getCandidateFn(e)(...this.parametersNodes)}}const r1t=Wr(n1t),xc=t=>(...e)=>r1t(t,...e),_6=qn(0).setGroup(rr).onRenderUpdate(t=>t.time),i1t=qn(0).setGroup(rr).onRenderUpdate(t=>t.deltaTime),Sye=qn(0,"uint").setGroup(rr).onRenderUpdate(t=>t.frameId),a1t=(t=_6)=>t.add(.75).mul(Math.PI*2).sin().mul(.5).add(.5),s1t=(t=_6)=>t.fract().round(),o1t=(t=_6)=>t.add(.5).fract().mul(2).sub(1).abs(),l1t=(t=_6)=>t.fract();function c1t(t,e=null){return z2(e,{getUV:typeof t=="function"?t:()=>t})}const u1t=it(([t,e,n=dn(.5)])=>nE(t.sub(n),e).add(n)),f1t=it(([t,e,n=dn(.5)])=>{const r=t.sub(n),i=r.dot(r),s=i.mul(i).mul(e);return t.add(r.mul(s))}),d1t=it(({position:t=null,horizontal:e=!0,vertical:n=!1})=>{let r;t!==null?(r=pd.toVar(),r[3][0]=t.x,r[3][1]=t.y,r[3][2]=t.z):r=pd;const i=Bd.mul(r);return P_(e)&&(i[0][0]=pd[0].length(),i[0][1]=0,i[0][2]=0),P_(n)&&(i[1][0]=0,i[1][1]=pd[1].length(),i[1][2]=0),i[2][0]=0,i[2][1]=0,i[2][2]=1,h2.mul(i).mul(gs)}),h1t=it(([t=null])=>{const e=oD();return oD(uZ(t)).sub(e).lessThan(0).select(dp,t)}),p1t=it(([t,e=Ca(),n=ke(0)])=>{const r=t.x,i=t.y,a=n.mod(r.mul(i)).floor(),s=a.mod(r),o=i.sub(a.add(1).div(r).ceil()),l=t.reciprocal(),c=dn(s,o);return e.add(c).mul(l)}),Tye=it(([t,e=null,n=null,r=ke(1),i=gs,a=O0])=>{let s=a.abs().normalize();s=s.div(s.dot(Je(1)));const o=i.yz.mul(r),l=i.zx.mul(r),c=i.xy.mul(r),u=t.value,f=e!==null?e.value:u,h=n!==null?n.value:u,p=Bi(u,o).mul(s.x),A=Bi(f,l).mul(s.y),g=Bi(h,c).mul(s.z);return Ro(p,A,g)}),m1t=(...t)=>
4191Tye(...t),d8=new L1,qx=new Pe,h8=new Pe,vB=new Pe,tw=new Fr,uC=new Pe(0,0,-1),v1=new kr,nw=new Pe,fC=new Pe,rw=new kr,dC=new tn,cD=new Op,A1t=dp.flipX();cD.depthTexture=new hc(1,1);let hC=!1;class SZ extends bp{static get type(){return"ReflectorNode"}constructor(e={}){super(e.defaultTexture||cD.texture,A1t),this._reflectorBaseNode=e.reflector||new g1t(this,e),this._depthNode=null,this.setUpdateMatrix(!1)}get reflector(){return this._reflectorBaseNode}get target(){return this._reflectorBaseNode.target}getDepthNode(){if(this._depthNode===null){if(this._reflectorBaseNode.depth!==!0)throw new Error("THREE.ReflectorNode: Depth node can only be requested when the reflector is created with { depth: true }. ");this._depthNode=new SZ({defaultTexture:cD.depthTexture,reflector:this._reflectorBaseNode})}return this._depthNode}setup(e){return e.object.isQuadMesh||this._reflectorBaseNode.build(e),super.setup(e)}clone(){const e=new this.constructor(this.reflectorNode);return e.uvNode=this.uvNode,e.levelNode=this.levelNode,e.biasNode=this.biasNode,e.sampler=this.sampler,e.depthNode=this.depthNode,e.compareNode=this.compareNode,e.gradNode=this.gradNode,e.offsetNode=this.offsetNode,e._reflectorBaseNode=this._reflectorBaseNode,e}dispose(){super.dispose(),this._reflectorBaseNode.dispose()}}class g1t extends $n{static get type(){return"ReflectorBaseNode"}constructor(e,n={}){super();const{target:r=new ys,resolutionScale:i=1,generateMipmaps:a=!1,bounces:s=!0,depth:o=!1,samples:l=0}=n;this.textureNode=e,this.target=r,this.resolutionScale=i,n.resolution!==void 0&&(Fa('ReflectorNode: The "resolution" parameter has been renamed to "resolutionScale".'),this.resolutionScale=n.resolution),this.generateMipmaps=a,this.bounces=s,this.depth=o,this.samples=l,this.updateBeforeType=s?_r.RENDER:_r.FRAME,this.virtualCameras=new WeakMap,this.renderTargets=new Map,this.forceUpdate=!1,this.hasOutput=!1}_updateResolution(e,n){const r=this.resolutionScale;n.getDrawingBufferSize(dC),e.setSize(Math.round(dC.width*r),Math.round(dC.height*r))}setup(e){return this._updateResolution(cD,e.renderer),super.setup(e)}dispose(){super.dispose();for(const e of this.renderTargets.values())e.dispose()}getVirtualCamera(e){let n=this.virtualCameras.get(e);return n===void 0&&(n=e.clone(),this.virtualCameras.set(e,n)),n}getRenderTarget(e){let n=this.renderTargets.get(e);return n===void 0&&(n=new Op(0,0,{type:is,samples:this.samples}),this.generateMipmaps===!0&&(n.texture.minFilter=DYe,n.texture.generateMipmaps=!0),this.depth===!0&&(n.depthTexture=new hc),this.renderTargets.set(e,n)),n}updateBefore(e){if(this.bounces===!1&&hC)return!1;hC=!0;const{scene:n,camera:r,renderer:i,material:a}=e,{target:s}=this,o=this.getVirtualCamera(r),l=this.getRenderTarget(o);i.getDrawingBufferSize(dC),this._updateResolution(l,i),h8.setFromMatrixPosition(s.matrixWorld),vB.setFromMatrixPosition(r.matrixWorld),tw.extractRotation(s.matrixWorld),qx.set(0,0,1),qx.applyMatrix4(tw),nw.subVectors(h8,vB);const c=nw.dot(qx)>0;let u=!1;if(c===!0&&this.forceUpdate===!1){if(this.hasOutput===!1){hC=!1;return}u=!0}nw.reflect(qx).negate(),nw.add(h8),tw.extractRotation(r.matrixWorld),uC.set(0,0,-1),uC.applyMatrix4(tw),uC.add(vB),fC.subVectors(h8,uC),fC.reflect(qx).negate(),fC.add(h8),o.coordinateSystem=r.coordinateSystem,o.position.copy(nw),o.up.set(0,1,0),o.up.applyMatrix4(tw),o.up.reflect(qx),o.lookAt(fC),o.near=r.near,o.far=r.far,o.updateMatrixWorld(),o.projectionMatrix.copy(r.projectionMatrix),d8.setFromNormalAndCoplanarPoint(qx,h8),d8.applyMatrix4(o.matrixWorldInverse),v1.set(d8.normal.x,d8.normal.y,d8.normal.z,d8.constant);const f=o.projectionMatrix;rw.x=(Math.sign(v1.x)+f.elements[8])/f.elements[0],rw.y=(Math.sign(v1.y)+f.elements[9])/f.elements[5],rw.z=-1,rw.w=(1+f.elements[10])/f.elements[14],v1.multiplyScalar(1/v1.dot(rw));const h=0;f.elements[2]=v1.x,f.elements[6]=v1.y,f.elements[10]=i.coordinateSystem===_d?v1.z-h:v1.z+1-h,f.elements[14]=v1.w,this.textureNode.value=l.texture,this.depth===!0&&(this.textureNode.getDepthNode().value=l.depthTexture),a.visible=!1;const p=i.getRenderTarget(),A=i.getMRT(),g=i.autoClear;i.setMRT(null),i.setRenderTarget(l),i.autoClear=!0;const w=n.name;
4191n.name=(n.name||"Scene")+" [ Reflector ]",u?(i.clear(),this.hasOutput=!1):(i.render(n,o),this.hasOutput=!0),n.name=w,i.setMRT(A),i.setRenderTarget(p),i.autoClear=g,a.visible=!0,hC=!1,this.forceUpdate=!1}get resolution(){return Fa('ReflectorNode: The "resolution" property has been renamed to "resolutionScale".'),this.resolutionScale}set resolution(e){Fa('ReflectorNode: The "resolution" property has been renamed to "resolutionScale".'),this.resolutionScale=e}}const x1t=t=>new SZ(t),yB=new A6(-1,1,1,-1,0,1);class v1t extends da{constructor(e=!1){super();const n=e===!1?[0,-1,0,1,2,1]:[0,2,0,0,2,0];this.setAttribute("position",new Ui([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new Ui(n,2))}}const y1t=new v1t;class TZ extends ea{constructor(e=null){super(y1t,e),this.camera=yB,this.isQuadMesh=!0}async renderAsync(e){Fa('QuadMesh: "renderAsync()" has been deprecated. Use "render()" and "await renderer.init();" when creating the renderer.'),await e.init(),e.render(this,yB)}render(e){e.render(this,yB)}}const _1t=new tn;class b1t extends bp{static get type(){return"RTTNode"}constructor(e,n=null,r=null,i={type:is}){const a=new Op(n,r,i);super(a.texture,Ca()),this.isRTTNode=!0,this.node=e,this.width=n,this.height=r,this.pixelRatio=1,this.renderTarget=a,this.textureNeedsUpdate=!0,this.autoUpdate=!0,this._rttNode=null,this._quadMesh=new TZ(new Js),this.updateBeforeType=_r.RENDER}get autoResize(){return this.width===null}setup(e){return this._rttNode=this.node.context(e.getSharedContext()),this._quadMesh.material.name="RTT",this._quadMesh.material.needsUpdate=!0,super.setup(e)}setSize(e,n){this.width=e,this.height=n;const r=e*this.pixelRatio,i=n*this.pixelRatio;this.renderTarget.setSize(r,i),this.textureNeedsUpdate=!0}setPixelRatio(e){this.pixelRatio=e,this.setSize(this.width,this.height)}updateBefore({renderer:e}){if(this.textureNeedsUpdate===!1&&this.autoUpdate===!1)return;if(this.textureNeedsUpdate=!1,this.autoResize===!0){const i=e.getPixelRatio(),a=e.getSize(_1t),s=Math.floor(a.width*i),o=Math.floor(a.height*i);(s!==this.renderTarget.width||o!==this.renderTarget.height)&&(this.renderTarget.setSize(s,o),this.textureNeedsUpdate=!0)}let n="RTT";this.node.name&&(n=this.node.name+" [ "+n+" ]"),this._quadMesh.material.fragmentNode=this._rttNode,this._quadMesh.name=n;const r=e.getRenderTarget();e.setRenderTarget(this.renderTarget),this._quadMesh.render(e),e.setRenderTarget(r)}clone(){const e=new bp(this.value,this.uvNode,this.levelNode);return e.sampler=this.sampler,e.referenceNode=this,e}}const Eye=(t,...e)=>new b1t(Un(t),...e),w1t=(t,...e)=>t.isSampleNode||t.isTextureNode?t:t.isPassNode?t.getTextureNode():Eye(t,...e),D8=it(([t,e,n],r)=>{let i;r.renderer.coordinateSystem===_d?(t=dn(t.x,t.y.oneMinus()).mul(2).sub(1),i=er(Je(t,e),1)):i=er(Je(t.x,t.y.oneMinus(),e).mul(2).sub(1),1);const a=er(n.mul(i));return a.xyz.div(a.w)}),S1t=it(([t,e])=>{const n=e.mul(er(t,1)),r=n.xy.div(n.w).mul(.5).add(.5).toVar();return dn(r.x,r.y.oneMinus())}),T1t=it(([t,e,n])=>{const r=Pg(Hs(e)),i=Go(t.mul(r)).toVar(),a=Hs(e,i).toVar(),s=Hs(e,i.sub(Go(2,0))).toVar(),o=Hs(e,i.sub(Go(1,0))).toVar(),l=Hs(e,i.add(Go(1,0))).toVar(),c=Hs(e,i.add(Go(2,0))).toVar(),u=Hs(e,i.add(Go(0,2))).toVar(),f=Hs(e,i.add(Go(0,1))).toVar(),h=Hs(e,i.sub(Go(0,1))).toVar(),p=Hs(e,i.sub(Go(0,2))).toVar(),A=qa(bi(ke(2).mul(o).sub(s),a)).toVar(),g=qa(bi(ke(2).mul(l).sub(c),a)).toVar(),w=qa(bi(ke(2).mul(f).sub(u),a)).toVar(),T=qa(bi(ke(2).mul(h).sub(p),a)).toVar(),C=D8(t,a,n).toVar(),M=A.lessThan(g).select(C.sub(D8(t.sub(dn(ke(1).div(r.x),0)),o,n)),C.negate().add(D8(t.add(dn(ke(1).div(r.x),0)),l,n))),D=w.lessThan(T).select(C.sub(D8(t.add(dn(0,ke(1).div(r.y))),f,n)),C.negate().add(D8(t.sub(dn(0,ke(1).div(r.y))),h,n)));return R0(R2(M,D))}),EZ=it(([t])=>Yh(ke(52.9829189).mul(Yh(Sd(t,dn(.06711056,.00583715)))))).setLayout({name:"interleavedGradientNoise",type:"float",inputs:[{name:"position",type:"vec2"}]}),yh=it(([t,e,n])=>{const r=ke(2.399963229728653),i=Vu(ke(t).add(.5).div(ke(e))),a=ke(t).mul(r).add(n);return dn(gh(a),Cu(a)).mul(i)}).setLayout({name:"vogelDiskSample",type:"vec2",inputs:[{name:"sampleIndex",type:"int"},{name:"samplesCount",type:"int"},{name:"phi",type:"float"}]});class E1t extends $n{static get type(){return"SampleNode"}constructor(e,n=null){super(),this.callback=e,this.uvNode=n,this.isSampleNode=!0}setup(){return this.sample(Ca())}sample(e){return this.callback(e)}}const M1t=(t,e=null)=>new E1t(t,Un(e));class Wo extends $n{static get type(){return"EventNode"}constructor(e,n){super("void"),this.eventType=e,this.callback=n,e===Wo.OBJECT?this.updateType=_r.OBJECT:e===Wo.MATERIAL?this.updateType=_r.RENDER:e===Wo.FRAME?this.updateType=_r.FRAME:e===Wo.BEFORE_OBJECT?this.updateBeforeType=_r.OBJECT:e===Wo.BEFORE_MATERIAL?this.updateBeforeType=_r.RENDER:e===Wo.BEFORE_FRAME&&(this.updateBeforeType=_r.FRAME)}update(e){this.callback(e)}updateBefore(e){this.callback(e)}}Wo.OBJECT="object";Wo.MATERIAL="material";Wo.FRAME="frame";Wo.BEFORE_OBJECT="beforeObject";Wo.BEFORE_MATERIAL="beforeMaterial";Wo.BEFORE_FRAME="beforeFrame";const b6=(t,e)=>new Wo(t,e).toStack(),C1t=t=>b6(Wo.OBJECT,t),N1t=t=>b6(Wo.MATERIAL,t),R1t=t=>b6(Wo.FRAME,t),D1t=t=>b6(Wo.BEFORE_OBJECT,t),P1t=t=>b6(Wo.BEFORE_MATERIAL,t),k1t=t=>b6(Wo.BEFORE_FRAME,t);class iN extends Rg{constructor(e,n,r=Float32Array){const i=ArrayBuffer.isView(e)?e:new r(e*n);super(i,n),this.isStorageInstancedBufferAttribute=!0}}class L1t extends Is{constructor(e,n,r=Float32Array){const i=ArrayBuffer.isView(e)?e:new r(e*n);super(i,n),this.isStorageBufferAttribute=!0}}const O1t=(t,e="float")=>{let n,r;e.isStruct===!0?(n=e.layout.getLength(),r=KR("float")):(n=VAe(e),r=KR(e));const i=new L1t(t,n,r);return kg(i,e,t)},F1t=(t,e="float")=>{let n,r;e.isStruct===!0?(n=e.layout.getLength(),r=KR("float")):(n=VAe(e),r=KR(e));const i=new iN(t,n,r);return kg(i,e,i.count)}
4191;class I1t extends $n{static get type(){return"PointUVNode"}constructor(){super("vec2"),this.isPointUVNode=!0}generate(){return"vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y )"}}const B1t=Rn(I1t),_B=new Fr,Mye=qn(0).setGroup(rr).onRenderUpdate(({scene:t})=>t.backgroundBlurriness),vH=qn(1).setGroup(rr).onRenderUpdate(({scene:t})=>t.backgroundIntensity),Cye=qn(new Fr).setGroup(rr).onRenderUpdate(({scene:t})=>{const e=t.background;return e!==null&&e.isTexture&&e.mapping!==gq?_B.makeRotationFromEuler(t.backgroundRotation).transpose():_B.identity(),_B});class U1t extends bp{static get type(){return"StorageTextureNode"}constructor(e,n,r=null){super(e,n),this.storeNode=r,this.mipLevel=0,this.isStorageTextureNode=!0,this.access=fc.WRITE_ONLY}getInputType(){return"storageTexture"}setup(e){super.setup(e);const n=e.getNodeProperties(this);return n.storeNode=this.storeNode,n}setAccess(e){return this.access=e,this}setMipLevel(e){return this.mipLevel=e,this}generate(e,n){return this.storeNode!==null?(this.generateStore(e),""):super.generate(e,n)}generateSnippet(e,n,r,i,a,s,o,l,c){const u=this.value;return e.generateStorageTextureLoad(u,n,r,i,s,c)}toReadWrite(){return this.setAccess(fc.READ_WRITE)}toReadOnly(){return this.setAccess(fc.READ_ONLY)}toWriteOnly(){return this.setAccess(fc.WRITE_ONLY)}generateStore(e){const n=e.getNodeProperties(this),{uvNode:r,storeNode:i,depthNode:a}=n,s=super.generate(e,"property"),o=r.build(e,this.value.is3DTexture===!0?"uvec3":"uvec2"),l=i.build(e,"vec4"),c=a?a.build(e,"int"):null,u=e.generateTextureStore(this.value,s,o,c,l);e.addLineFlowCode(u,this)}clone(){const e=super.clone();return e.storeNode=this.storeNode,e.mipLevel=this.mipLevel,e.access=this.access,e}}const Nye=Wr(U1t).setParameterLength(1,3),V1t=(t,e,n)=>{let r;return t.isStorageTextureNode===!0?(r=t.clone(),r.uvNode=e,r.storeNode=n):r=Nye(t,e,n),n!==null&&r.toStack(),r},j1t=it(({texture:t,uv:e})=>{const r=Je().toVar();return sr(e.x.lessThan(1e-4),()=>{r.assign(Je(1,0,0))}).ElseIf(e.y.lessThan(1e-4),()=>{r.assign(Je(0,1,0))}).ElseIf(e.z.lessThan(1e-4),()=>{r.assign(Je(0,0,1))}).ElseIf(e.x.greaterThan(1-1e-4),()=>{r.assign(Je(-1,0,0))}).ElseIf(e.y.greaterThan(1-1e-4),()=>{r.assign(Je(0,-1,0))}).ElseIf(e.z.greaterThan(1-1e-4),()=>{r.assign(Je(0,0,-1))}).Else(()=>{const a=t.sample(e.add(Je(-.01,0,0))).r.sub(t.sample(e.add(Je(.01,0,0))).r),s=t.sample(e.add(Je(0,-.01,0))).r.sub(t.sample(e.add(Je(0,.01,0))).r),o=t.sample(e.add(Je(0,0,-.01))).r.sub(t.sample(e.add(Je(0,0,.01))).r);r.assign(Je(a,s,o))}),r.normalize()});class H1t extends bp{static get type(){return"Texture3DNode"}constructor(e,n=null,r=null){super(e,n,r),this.isTexture3DNode=!0}getInputType(){return"texture3D"}getDefaultUV(){return Je(.5,.5,.5)}setUpdateMatrix(){}generateUV(e,n){return n.build(e,this.sampler===!0?"vec3":"ivec3")}generateOffset(e,n){return n.build(e,"ivec3")}normal(e){return j1t({texture:this,uv:e})}}const MZ=Wr(H1t).setParameterLength(1,3),G1t=(...t)=>MZ(...t).setSampler(!1),z1t=(t,e,n)=>MZ(t,e).level(n);class $1t extends gk{static get type(){return"UserDataNode"}constructor(e,n,r=null){super(e,n,r),this.userData=r}updateReference(e){return this.reference=this.userData!==null?this.userData:e.object.userData,this.reference}}const q1t=(t,e,n)=>new $1t(t,e,n),cse=new WeakMap;class W1t extends eo{static get type(){return"VelocityNode"}constructor(){super("vec2"),this.projectionMatrix=null,this.updateType=_r.OBJECT,this.updateAfterType=_r.OBJECT,this.previousModelWorldMatrix=qn(new Fr),this.previousProjectionMatrix=qn(new Fr).setGroup(rr),this.previousCameraViewMatrix=qn(new Fr)}
vendor: 4,544 bytes, line 4191
4191setProjectionMatrix(e){this.projectionMatrix=e}update({frameId:e,camera:n,object:r}){const i=use(r);this.previousModelWorldMatrix.value.copy(i);const a=Rye(n);a.frameId!==e&&(a.frameId=e,a.previousProjectionMatrix===void 0?(a.previousProjectionMatrix=new Fr,a.previousCameraViewMatrix=new Fr,a.currentProjectionMatrix=new Fr,a.currentCameraViewMatrix=new Fr,a.previousProjectionMatrix.copy(this.projectionMatrix||n.projectionMatrix),a.previousCameraViewMatrix.copy(n.matrixWorldInverse)):(a.previousProjectionMatrix.copy(a.currentProjectionMatrix),a.previousCameraViewMatrix.copy(a.currentCameraViewMatrix)),a.currentProjectionMatrix.copy(this.projectionMatrix||n.projectionMatrix),a.currentCameraViewMatrix.copy(n.matrixWorldInverse),this.previousProjectionMatrix.value.copy(a.previousProjectionMatrix),this.previousCameraViewMatrix.value.copy(a.previousCameraViewMatrix))}updateAfter({object:e}){use(e).copy(e.matrixWorld)}setup(){const e=this.projectionMatrix===null?h2:qn(this.projectionMatrix),n=this.previousCameraViewMatrix.mul(this.previousModelWorldMatrix),r=e.mul(fx).mul(gs),i=this.previousProjectionMatrix.mul(n).mul(L_),a=r.xy.div(r.w),s=i.xy.div(i.w);return bi(a,s)}}function Rye(t){let e=cse.get(t);return e===void 0&&(e={},cse.set(t,e)),e}function use(t,e=0){const n=Rye(t);let r=n[e];return r===void 0&&(n[e]=r=new Fr,n[e].copy(t.matrixWorld)),r}const Z1t=Rn(W1t),Y1t=it(([t])=>CZ(t.rgb)),X1t=it(([t,e=ke(1)])=>e.mix(CZ(t.rgb),t.rgb)),Q1t=it(([t,e=ke(1)])=>{const n=Ro(t.r,t.g,t.b).div(3),r=t.r.max(t.g.max(t.b)),i=r.sub(n).mul(e).mul(-3);return mi(t.rgb,r,i)}),K1t=it(([t,e=ke(1)])=>{const n=Je(.57735,.57735,.57735),r=e.cos();return Je(t.rgb.mul(r).add(n.cross(t.rgb).mul(e.sin()).add(n.mul(Sd(n,t.rgb).mul(r.oneMinus())))))}),CZ=(t,e=Je(Ar.getLuminanceCoefficients(new Pe)))=>Sd(t,e),J1t=it(([t,e=Je(1),n=Je(0),r=Je(1),i=ke(1),a=Je(Ar.getLuminanceCoefficients(new Pe,v_))])=>{const s=t.rgb.dot(Je(a)),o=Us(t.rgb.mul(e).add(n),0).toVar(),l=o.pow(r).toVar();return sr(o.r.greaterThan(0),()=>{o.r.assign(l.r)}),sr(o.g.greaterThan(0),()=>{o.g.assign(l.g)}),sr(o.b.greaterThan(0),()=>{o.b.assign(l.b)}),o.assign(s.add(o.sub(s).mul(i))),er(o.rgb,t.a)}),ept=it(([t,e])=>t.mul(e).floor().div(e));let pC=null;class tpt extends _k{static get type(){return"ViewportSharedTextureNode"}constructor(e=dp,n=null){pC===null&&(pC=new Oq),super(e,n,pC)}getTextureForReference(){return pC}updateReference(){return this}}const npt=Wr(tpt).setParameterLength(0,2),mC=new tn;class Dye extends bp{static get type(){return"PassTextureNode"}constructor(e,n){super(n),this.passNode=e,this.isPassTextureNode=!0,this.setUpdateMatrix(!1)}setup(e){const n=e.getNodeProperties(this);return n.passNode=this.passNode,super.setup(e)}clone(){return new this.constructor(this.passNode,this.value)}}class fse extends Dye{static get type(){return"PassMultipleTextureNode"}constructor(e,n,r=!1){super(e,null),this.textureName=n,this.previousTexture=r,this.isPassMultipleTextureNode=!0}updateTexture(){this.value=this.previousTexture?this.passNode.getPreviousTexture(this.textureName):this.passNode.getTexture(this.textureName)}setup(e){return this.updateTexture(),super.setup(e)}clone(){const e=new this.constructor(this.passNode,this.textureName,this.previousTexture);return e.uvNode=this.uvNode,e.levelNode=this.levelNode,e.biasNode=this.biasNode,e.sampler=this.sampler,e.depthNode=this.depthNode,e.compareNode=this.compareNode,e.gradNode=this.gradNode,e.offsetNode=this.offsetNode,e}}class wp extends eo{static get type(){return"PassNode"}constructor(e,n,r,i={}){super("vec4"),this.scope=e,this.scene=n,this.camera=r,this.options=i,this._pixelRatio=1,this._width=1,this._height=1;const a=new hc;a.isRenderTargetTexture=!0,a.name="depth";const s=new Op(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:is,...i});s.texture.name="output",s.depthTexture=a,this.renderTarget=s,this.overrideMaterial=null,this.transparent=!0,this.opaque=!0,this.contextNode=null,this._contextNodeCache=null,this._textures={output:s.texture,depth:a},this._textureNodes={},this._linearDepthNodes={},this._viewZNodes={},this._previousTextures={},this._previousTextureNodes={},this._cameraNear=qn(0),this._cameraFar=qn(0),this._mrt=null,this._layers=null,this._resolutionScale=1,this._viewport=null,this._scissor=null,this.isPassNode=!0,this.updateBeforeType=_r.FRAME,this.global=!0}setResolutionScale(e){return this._resolutionScale=e,this}getResolutionScale(){return this._resolutionScale}setResolution(e){return Kt("PassNode: .setResolution() is deprecated. Use .setRe
4191solutionScale() instead."),this.setResolutionScale(e)}getResolution(){return Kt("PassNode: .getResolution() is deprecated. Use .getResolutionScale() instead."),this.getResolutionScale()}setLayers(e){return this._layers=e,this}getLayers(){return this._layers}setMRT(e){return this._mrt=e,this}getMRT(){return this._mrt}getTexture(e){let n=this._textures[e];return n===void 0&&(n=this.renderTarget.texture.clone(),n.name=e,this._textures[e]=n,this.renderTarget.textures.push(n)),n}getPreviousTexture(e){let n=this._previousTextures[e];return n===void 0&&(n=this.getTexture(e).clone(),this._previousTextures[e]=n),n}toggleTexture(e){const n=this._previousTextures[e];if(n!==void 0){const r=this._textures[e],i=this.renderTarget.textures.indexOf(r);this.renderTarget.textures[i]=n,this._textures[e]=n,this._previousTextures[e]=r,this._textureNodes[e].updateTexture(),this._previousTextureNodes[e].updateTexture()}}getTextureNode(e="output"){let n=this._textureNodes[e];return n===void 0&&(n=new fse(this,e),n.updateTexture(),this._textureNodes[e]=n),n}getPreviousTextureNode(e="output"){let n=this._previousTextureNodes[e];return n===void 0&&(this._textureNodes[e]===void 0&&this.getTextureNode(e),n=new fse(this,e,!0),n.updateTexture(),this._previousTextureNodes[e]=n),n}getViewZNode(e="depth"){let n=this._viewZNodes[e];if(n===void 0){const r=this._cameraNear,i=this._cameraFar;this._viewZNodes[e]=n=dZ(this.getTextureNode(e),r,i)}return n}getLinearDepthNode(e="depth"){let n=this._linearDepthNodes[e];if(n===void 0){const r=this._cameraNear,i=this._cameraFar,a=this.getViewZNode(e);this._linearDepthNodes[e]=n=S3(a,r,i)}return n}async compileAsync(e){const n=e.getRenderTarget(),r=e.getMRT();e.setRenderTarget(this.renderTarget),e.setMRT(this._mrt),await e.compileAsync(this.scene,this.camera),e.setRenderTarget(n),e.setMRT(r)}setup({renderer:e}){return this.renderTarget.samples=this.options.samples===void 0?e.samples:this.options.samples,this.renderTarget.texture.type=e.getOutputBufferType(),e.reversedDepthBuffer===!0&&(this.renderTarget.depthTexture.type=os),this.scope===wp.COLOR?this.getTextureNode():this.getLinearDepthNode()}updateBefore(e){const{renderer:n}=e,{scene:r}=this;let i,a;const s=n.getOutputRenderTarget();s&&s.isXRRenderTarget===!0?(a=1,i=n.xr.getCamera(),n.xr.updateCamera(i),mC.set(s.width,s.height)):(i=this.camera,a=n.getPixelRatio(),n.getSize(mC)),this._pixelRatio=a,this.setSize(mC.width,mC.height);const o=n.getRenderTarget(),l=n.getMRT(),c=n.autoClear,u=n.transparent,f=n.opaque,h=i.layers.mask,p=n.contextNode,A=r.overrideMaterial;this._cameraNear.value=i.near,this._cameraFar.value=i.far,this._layers!==null&&(i.layers.mask=this._layers.mask);for(const w in this._previousTextures)this.toggleTexture(w);this.overrideMaterial!==null&&(r.overrideMaterial=this.overrideMaterial),n.setRenderTarget(this.renderTarget),n.setMRT(this._mrt),n.autoClear=!0,n.transparent=this.transparent,n.opaque=this.opaque,this.contextNode!==null&&((this._contextNodeCache===null||this._contextNodeCache.version!==this.version)&&(this._contextNodeCache={version:this.version,context:z2({...n.contextNode.getFlowContextData(),...this.contextNode.getFlowContextData()})}),n.contextNode=this._contextNodeCache.context);const g=r.name;r.name=this.name?this.name:r.name,n.render(r,i),r.name=g,r.overrideMaterial=A,n.setRenderTarget(o),n.setMRT(l),n.autoClear=c,n.transparent=u,n.opaque=f,n.contextNode=p,i.layers.mask=h}setSize(e,n){this._width=e,this._height=n;const r=Math.floor(this._width*this._pixelRatio*this._resolutionScale),i=Math.floor(this._height*this._pixelRatio*this._resolutionScale);this.renderTarget.setSize(r,i),this._scissor!==null?(this.renderTarget.scissor.copy(this._scissor).multiplyScalar(this._pixelRatio*this._resolutionScale).floor(),this.renderTarget.scissorTest=!0):this.renderTarget.scissorTest=!1,this._viewport!==null&&this.renderTarget.viewport.copy(this._viewport).multiplyScalar(this._pixelRatio*this._resolutionScale).floor()}setScissor(e,n,r,i){e===null?this._scissor=null:(this._scissor===null&&(this._scissor=new kr),e.isVector4?this._scissor.copy(e):this._scissor.set(e,n,r,i))}setViewport(e,n,r,i){e===null?this._viewport=null:(this._viewport===null&&(this._viewport=new kr),e.isVector4?this._viewport.copy(e):this._viewport.set(e,n,r,i))}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}dispose(){this.renderTarget.dispose()}}wp.COLOR="color";wp.DEPTH="depth";const rpt=(t,e,n)=>new wp(wp.COLOR,t,e,n),ipt=(t,e)=>new Dye(t,e),apt=(t,e,n)=>new wp(wp.DEPTH,t,e,n);class spt extends wp{static get type(){return"ToonOutlinePassNode"}constructor(e,n,r,i,a){super(wp.COLOR,e,n),this.colorNode=r,this.thicknessNode=i,this.alphaNode=a,this._materialCache=new WeakMap,this.name="Outline Pass"}updateBefore(e){const{renderer:n}=e,r=n.getRenderObjectFunction();n.setRenderObjectFunction((i,a,s,o,l,c,u,f)=>{if((l.isMeshToonMaterial||l.isMeshToonNodeMaterial)&&l.wireframe===!1){const h=this._getOutlineMaterial(l);n.renderObject(i,a,s,o,h,c,u,f)}n.renderObject(i,a,s,o,l,c,u,f)}),super.updateBefore(e),n.setRenderObjectFunction(r)}_createMaterial(){const e=new Js;e.isMeshToonOutlineMaterial=!0,e.name="Toon_Outline",e.side=ca;const n=O0.negate(),r=h2.mul(fx),i=ke(1),a=r.mul(er(gs,1)),s=r.mul(er(gs.add(n),1)),o=R0(a.sub(s));return e.vertexNode=a.add(o.mul(this.thicknessNode).mul(a.w).mul(i)),e.colorNode=er(this.colorNode,this.alphaNode),e}_getOutlineMaterial(e){let n=this._materialCache.get(e);return n===void 0&&(n=this._createMaterial(),this._materialCache.set(e,n)),n}}const opt=(t,e,n=new Xn(0,0,0),r=.003,i=1)=>new spt(t,e,Un(n),Un(r),Un(i)),Pye=it(([t,e])=>
4191t.mul(e).clamp()).setLayout({name:"linearToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]}),kye=it(([t,e])=>(t=t.mul(e),t.div(t.add(1)).clamp())).setLayout({name:"reinhardToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]}),Lye=it(([t,e])=>{t=t.mul(e),t=t.sub(.004).max(0);const n=t.mul(t.mul(6.2).add(.5)),r=t.mul(t.mul(6.2).add(1.7)).add(.06);return n.div(r).pow(2.2)}).setLayout({name:"cineonToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]}),lpt=it(([t])=>{const e=t.mul(t.add(.0245786)).sub(90537e-9),n=t.mul(t.add(.432951).mul(.983729)).add(.238081);return e.div(n)}),Oye=it(([t,e])=>{const n=zl(.59719,.35458,.04823,.076,.90834,.01566,.0284,.13383,.83777),r=zl(1.60475,-.53108,-.07367,-.10208,1.10813,-.00605,-.00327,-.07276,1.07602);return t=t.mul(e).div(.6),t=n.mul(t),t=lpt(t),t=r.mul(t),t.clamp()}).setLayout({name:"acesFilmicToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]}),cpt=zl(Je(1.6605,-.1246,-.0182),Je(-.5876,1.1329,-.1006),Je(-.0728,-.0083,1.1187)),upt=zl(Je(.6274,.0691,.0164),Je(.3293,.9195,.088),Je(.0433,.0113,.8956)),fpt=it(([t])=>{const e=Je(t).toVar(),n=Je(e.mul(e)).toVar(),r=Je(n.mul(n)).toVar();return ke(15.5).mul(r.mul(n)).sub(Lr(40.14,r.mul(e))).add(Lr(31.96,r).sub(Lr(6.868,n.mul(e))).add(Lr(.4298,n).add(Lr(.1191,e).sub(.00232))))}),Fye=it(([t,e])=>{const n=Je(t).toVar(),r=zl(Je(.856627153315983,.137318972929847,.11189821299995),Je(.0951212405381588,.761241990602591,.0767994186031903),Je(.0482516061458583,.101439036467562,.811302368396859)),i=zl(Je(1.1271005818144368,-.1413297634984383,-.14132976349843826),Je(-.11060664309660323,1.157823702216272,-.11060664309660294),Je(-.016493938717834573,-.016493938717834257,1.2519364065950405)),a=ke(-12.47393),s=ke(4.026069);return n.mulAssign(e),n.assign(upt.mul(n)),n.assign(r.mul(n)),n.assign(Us(n,1e-10)),n.assign(cp(n)),n.assign(n.sub(a).div(s.sub(a))),n.assign(Xh(n,0,1)),n.assign(fpt(n)),n.assign(i.mul(n)),n.assign(hd(Us(Je(0),n),Je(2.2))),n.assign(cpt.mul(n)),n.assign(Xh(n,0,1)),n}).setLayout({name:"agxToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]}),Iye=it(([t,e])=>{const n=ke(.76),r=ke(.15);t=t.mul(e);const i=L0(t.r,L0(t.g,t.b)),a=Zc(i.lessThan(.08),i.sub(Lr(6.25,i.mul(i))),.04);t.subAssign(a);const s=Us(t.r,Us(t.g,t.b));sr(s.lessThan(n),()=>t);const o=bi(1,n),l=bi(1,o.mul(o).div(s.add(o.sub(n))));t.mulAssign(l.div(s));const c=bi(1,Mf(1,r.mul(s.sub(l)).add(1)));return mi(t,Je(l),c)}).setLayout({name:"neutralToneMapping",type:"vec3",inputs:[{name:"color",type:"vec3"},{name:"exposure",type:"float"}]});class fl extends $n{static get type(){return"CodeNode"}constructor(e="",n=[],r=""){super("code"),this.isCodeNode=!0,this.global=!0,this.code=e,this.includes=n,this.language=r}setIncludes(e){return this.includes=e,this}getIncludes(){return this.includes}generate(e){const n=this.getIncludes(e);for(const i of n)i.build(e);const r=e.getCodeFromNode(this,this.getNodeType(e));return r.code=this.code,r.code}serialize(e){super.serialize(e),e.code=this.code,e.language=this.language}deserialize(e){super.deserialize(e),this.code=e.code,this.language=e.language}}const Ek=Wr(fl).setParameterLength(1,3),dpt=(t,e)=>Ek(t,e,"js"),hpt=(t,e)=>Ek(t,e,"wgsl"),ppt=(t,e)=>Ek(t,e,"glsl");class Bye extends fl{static get type(){return"FunctionNode"}constructor(e="",n=[],r=""){super(e,n,r)}generateNodeType(e){return this.getNodeFunction(e).type}getMemberType(e,n){const r=this.getNodeType(e);return e.getStructTypeNode(r).getMemberType(e,n)}getInputs(e){return this.getNodeFunction(e).inputs}getNodeFunction(e){const n=e.getDataFromNode(this);let r=n.nodeFunction;return r===void 0&&(r=e.parser.parseFunction(this.code),n.nodeFunction=r),r}generate(e,n){super.generate(e);const r=this.getNodeFunction(e),i=r.name,a=r.type,s=e.getCodeFromNode(this,a);i!==""&&(s.name=i);const o=e.getPropertyName(s),l=this.getNodeFunction(e).getCode(o);return s.code=l+` 4192`,n==="property"?o:e.format(`${o}()`,a,n)}}const Uye=(t,e=[],n="")=>{for(let a=0;a<e.length;a++){const s=e[a];typeof s=="function"&&(e[a]=s.functionNode)}const r=new Bye(t,e,n),i=(...a)=>r.call(...a);return i.functionNode=r,i},mpt=(t,e)=>Uye(t,e,"glsl"),Apt=(t,e)=>Uye(t,e,"wgsl");function NZ(t){let e;const n=t.context.getViewZ;return n!==void 0&&(e=n(this)),(e||co.z).negate()}const Vye=it(([t,e],n)=>{const r=NZ(n);return Qh(t,e,r)}),jye=it(([t],e)=>{const n=NZ(e);return t.mul(t,n,n).negate().exp().oneMinus()}),gpt=it(([t,e],n)=>{const r=NZ(n),a=e.sub(hp.y).max(0).toConst().mul(r).toConst();return t.mul(t,a,a).negate().exp().oneMinus()}),yH=it(([t,e])=>er(e.toFloat().mix(b3.rgb,t.toVec3()),b3.a));let Wx=null,Zx=null;class xpt extends $n{static get type(){return"RangeNode"}constructor(e=ke(),n=ke()){super(),this.minNode=e,this.maxNode=n}getVectorLength(e){const n=this.getConstNode(this.minNode),r=this.getConstNode(this.maxNode),i=e.getTypeLength(fg(n.value)),a=e.getTypeLength(fg(r.value));return i>a?i:a}generateNodeType(e){return e.object.count>1?e.getTypeFromLength(this.getVectorLength(e)):"float"}getConstNode(e){let n=null;if(e.traverse(r=>{r.isConstNode===!0&&(n=r)}),n===null)throw new Mxe('THREE.TSL: No "ConstNode" found in node graph.',this.stackTrace);return n}setup(e){const n=e.object;let r=null;if(n.count>1){const i=this.getConstNode(this.minNode),a=this.getConstNode(this.maxNode),s=i.value,o=a.value,l=e.getTypeLength(fg(s)),c=e.getTypeLength(fg(o));Wx=Wx||new kr,Zx=Zx||new kr,Wx.setScalar(0),Zx.setScalar(0),l===1?Wx.setScalar(s):s.isColor?Wx.set(s.r,s.g,s.b,1):Wx.set(s.x,s.y,s.z||0,s.w||0),c===1?Zx.setScalar(o):o.isColor?Zx.set(o.r,o.g,o.b,1):Zx.set(o.x,o.y,o.z||0,o.w||0);const u=4,f=u*n.count,h=new Float32Array(f);for(let g=0;g<f;g++){const w=g%u,T=Wx.getComponent(w),C=Zx.getComponent(w);h[g]=b_.lerp(T,C,Math.random())}const p=this.getNodeType(e);if(n.count*4*4<=e.getUniformBufferLimit())r=eE(h,"vec4",n.count).element
4192(Fh).convert(p);else{const g=new Rg(h,4);e.geometry.setAttribute("__range"+this.id,g),r=sD(g).convert(p)}}else r=ke(0);return r}}const vpt=Wr(xpt).setParameterLength(2);class ypt extends $n{static get type(){return"ComputeBuiltinNode"}constructor(e,n){super(n),this._builtinName=e}getHash(e){return this.getBuiltinName(e)}generateNodeType(){return this.nodeType}setBuiltinName(e){return this._builtinName=e,this}getBuiltinName(){return this._builtinName}hasBuiltin(e){return e.hasBuiltin(this._builtinName)}generate(e,n){const r=this.getBuiltinName(e),i=this.getNodeType(e);return e.shaderStage==="compute"?e.format(r,i,n):(Kt(`ComputeBuiltinNode: Compute built-in value ${r} can not be accessed in the ${e.shaderStage} stage`),e.generateConst(i))}serialize(e){super.serialize(e),e.global=this.global,e._builtinName=this._builtinName}deserialize(e){super.deserialize(e),this.global=e.global,this._builtinName=e._builtinName}}const iE=(t,e)=>new ypt(t,e),_pt=iE("numWorkgroups","uvec3"),bpt=iE("workgroupId","uvec3"),wpt=iE("globalId","uvec3"),Spt=iE("localId","uvec3"),Tpt=iE("subgroupSize","uint");class Ept extends $n{constructor(e){super(),this.scope=e,this.isBarrierNode=!0}setup(e){e.allowEarlyReturns=!1,e.allowGlobalVariables=!1}generate(e){const{scope:n}=this,{renderer:r}=e;r.backend.isWebGLBackend===!0?e.addFlowCode(` // ${n}Barrier 4193`):e.addLineFlowCode(`${n}Barrier()`,this)}}const RZ=Wr(Ept),Mpt=()=>RZ("workgroup").toStack(),Cpt=()=>RZ("storage").toStack(),Npt=()=>RZ("texture").toStack();class Rpt extends Gy{constructor(e,n){super(e,n),this.isWorkgroupInfoElementNode=!0}generate(e,n){let r;const i=e.context.assign;if(r=super.generate(e),i!==!0){const a=this.getNodeType(e);r=e.format(r,a,n)}return r}}class Dpt extends $n{constructor(e,n,r=0){super(n),this.bufferType=n,this.bufferCount=r,this.isWorkgroupInfoNode=!0,this.elementType=n,this.scope=e,this.name=""}setName(e){return this.name=e,this}label(e){return Kt('TSL: "label()" has been deprecated. Use "setName()" instead.',new mo),this.setName(e)}setScope(e){return this.scope=e,this}getElementType(){return this.elementType}getInputType(){return`${this.scope}Array`}element(e){return new Rpt(this,e)}generate(e){const n=this.name!==""?this.name:`${this.scope}Array_${this.id}`;return e.getScopedArray(n,this.scope.toLowerCase(),this.bufferType,this.bufferCount)}}const Ppt=(t,e)=>new Dpt("Workgroup",t,e);class Cl extends $n{static get type(){return"AtomicFunctionNode"}constructor(e,n,r){super("uint"),this.method=e,this.pointerNode=n,this.valueNode=r,this.parents=!0}getInputType(e){return this.pointerNode.getNodeType(e)}generateNodeType(e){return this.getInputType(e)}generate(e){const n=e.getNodeProperties(this),r=n.parents,i=this.method,a=this.getNodeType(e),s=this.getInputType(e),o=this.pointerNode,l=this.valueNode,c=[];c.push(`&${o.build(e,s)}`),l!==null&&c.push(l.build(e,s));const u=`${e.getMethod(i,a)}( ${c.join(", ")} )`;if(r?r.length===1&&r[0].isStackNode===!0:!1)e.addLineFlowCode(u,this);else return n.constNode===void 0&&(n.constNode=pf(u,a).toConst()),n.constNode.build(e)}}Cl.ATOMIC_LOAD="atomicLoad";Cl.ATOMIC_STORE="atomicStore";Cl.ATOMIC_ADD="atomicAdd";Cl.ATOMIC_SUB="atomicSub";Cl.ATOMIC_MAX="atomicMax";Cl.ATOMIC_MIN="atomicMin";Cl.ATOMIC_AND="atomicAnd";Cl.ATOMIC_OR="atomicOr";Cl.ATOMIC_XOR="atomicXor";const kpt=Wr(Cl),Ip=(t,e,n)=>kpt(t,e,n).toStack(),Lpt=t=>Ip(Cl.ATOMIC_LOAD,t,null),Opt=(t,e)=>Ip(Cl.ATOMIC_STORE,t,e),Fpt=(t,e)=>Ip(Cl.ATOMIC_ADD,t,e),Ipt=(t,e)=>Ip(Cl.ATOMIC_SUB,t,e),Bpt=(t,e)=>Ip(Cl.ATOMIC_MAX,t,e),Upt=(t,e)=>Ip(Cl.ATOMIC_MIN,t,e),Vpt=(t,e)=>Ip(Cl.ATOMIC_AND,t,e),jpt=(t,e)=>Ip(Cl.ATOMIC_OR,t,e),Hpt=(t,e)=>Ip(Cl.ATOMIC_XOR,t,e);class Pn extends eo{static get type(){return"SubgroupFunctionNode"}constructor(e,n=null,r=null){super(),this.method=e,this.aNode=n,this.bNode=r}getInputType(e){const n=this.aNode?this.aNode.getNodeType(e):null,r=this.bNode?this.bNode.getNodeType(e):null,i=e.isMatrix(n)?0:e.getTypeLength(n),a=e.isMatrix(r)?0:e.getTypeLength(r);return i>a?n:r}generateNodeType(e){const n=this.method;return n===Pn.SUBGROUP_ELECT?"bool":n===Pn.SUBGROUP_BALLOT?"uvec4":this.getInputType(e)}generate(e,n){const r=this.method,i=this.getNodeType(e),a=this.getInputType(e),s=this.aNode,o=this.bNode,l=[];if(r===Pn.SUBGROUP_BROADCAST||r===Pn.SUBGROUP_SHUFFLE||r===Pn.QUAD_BROADCAST){const u=o.getNodeType(e);l.push(s.build(e,i),o.build(e,u==="float"?"int":i))}else r===Pn.SUBGROUP_SHUFFLE_XOR||r===Pn.SUBGROUP_SHUFFLE_DOWN||r===Pn.SUBGROUP_SHUFFLE_UP?l.push(s.build(e,i),o.build(e,"uint")):(s!==null&&l.push(s.build(e,a)),o!==null&&l.push(o.build(e,a)));const c=l.length===0?"()":`( ${l.join(", ")} )`;return e.format(`${e.getMethod(r,i)}${c}`,i,n)}serialize(e){super.serialize(e),e.method=this.method}deserialize(e){super.deserialize(e),this.method=e.method}}Pn.SUBGROUP_ELECT="subgroupElect";Pn.SUBGROUP_BALLOT="subgroupBallot";Pn.SUBGROUP_ADD="subgroupAdd";Pn.SUBGROUP_INCLUSIVE_ADD="subgroupInclusiveAdd";Pn.SUBGROUP_EXCLUSIVE_AND="subgroupExclusiveAdd";Pn.SUBGROUP_MUL="subgroupMul";Pn.SUBGROUP_INCLUSIVE_MUL="subgroupInclusiveMul";Pn.SUBGROUP_EXCLUSIVE_MUL="subgroupExclusiveMul";Pn.SUBGROUP_AND="subgroupAnd";Pn.SUBGROUP_OR="subgroupOr";Pn.SUBGROUP_XOR="subgroupXor";Pn.SUBGROUP_MIN="subgroupMin";Pn.SUBGROUP_MAX="subgroupMax";Pn.SUBGROUP_ALL="subgroupAll";Pn.SUBGROUP_ANY="subgroupAny";Pn.SUBGROUP_BROADCAST_FIRST="subgroupBroadcastFirst";Pn.QUAD_SWAP_X="quadSwapX";Pn.QUAD_SWAP_Y="quadSwapY";Pn.QUAD_SWAP_DIAGONAL="quadSwapDiagonal";Pn.SUBGROUP_BROADCAST="subgroupBroadcast";Pn.SUBGROUP_SHUFFLE="subgroupShuffle";Pn.SUBGROUP_SHUFFLE_XOR="subgroupShuffleXor";Pn.SUBGROUP_SHUFFLE_UP="subgroupShuffleUp";Pn.SUBGROUP_SHUFFLE_DOWN="subgroupShuffleDown";Pn.QUAD_BROADCAST="quadBroadcast";const Gpt=fn(Pn,Pn.SUBGROUP_ELECT).setParameterLength(0),zpt=fn(Pn,Pn.SUBGROUP_BALLOT).setParameterLength(1),$pt=fn(Pn,Pn.SUBGROUP_ADD).setParameterLength(1),qpt=fn(Pn,Pn.SUBGROUP_INCLUSIVE_ADD).setParameterLength(1),Wpt=fn(Pn,Pn.SUBGROUP_EXCLUSIVE_AND).setParameterLength(1),Zpt=fn(Pn,Pn.SUBGROUP_MUL).setParameterLength(1),Ypt=fn(Pn,Pn.SUBGROUP_INCLUSIVE_MUL).setParameterLength(1),Xpt=fn(Pn,Pn.SUBGROUP_EXCLUSIVE_MUL).setParameterLength(1),Qpt=fn(Pn,Pn.SUBGROUP_AND).setParameterLength(1),Kpt=fn(Pn,Pn.SUBGROUP_OR).setParameterLength(1),Jpt=fn(Pn,Pn.SUBGROUP_XOR).setParameterLength(1),emt=fn(Pn,Pn.SUBGROUP_MIN).setParameterLength(1),tmt=fn(Pn,Pn.SUBGROUP_MAX).setParameterLength(1),nmt=fn(Pn,Pn.SUBGROUP_ALL).setParameterLength(0),rmt=fn(Pn,Pn.SUBGROUP_ANY).setParameterLength(0),imt=fn(Pn,Pn.SUBGROUP_BROADCAST_FIRST).setParameterLength(2),amt=fn(Pn,Pn.QUAD_SWAP_X).setParameterLength(1),smt=fn(Pn,Pn.QUAD_SWAP_Y).setParameterLength(1),omt=fn(Pn,Pn.QUAD_SWAP_DIAGONAL).setParameterLength(1),lmt=fn(Pn,Pn.SUBGROUP_BROADCAST).setParameterLength(2),cmt=fn(Pn,Pn.SUBGROUP_SHUFFLE).setParameterLength(2),umt=fn(Pn,Pn.SUBGROUP_SHUFFLE_XOR).setParameterLength(2),fmt=fn(Pn,Pn.SUBGROUP_SHUFFLE_UP).setParameterLength(2),dmt=fn(Pn,Pn.SUBGROUP_SHUFFLE_DOWN).setParameterLength(2),hmt=fn(Pn,Pn.QUAD_BROADCAST).setParameterLength(1);let AC;function Mk(t){AC=AC||new WeakMap;let e=AC.get(t);return e===void 0&&AC.set(t,e={}),e}function Ck(t){const e=Mk(t);return e.shadowMatrix||(e.shadowMatrix=qn("mat4").setGroup(rr).onRenderUpd
4193ate(n=>((t.castShadow!==!0||n.renderer.shadowMap.enabled===!1)&&(t.shadow.camera.coordinateSystem!==n.camera.coordinateSystem&&(t.shadow.camera.coordinateSystem=n.camera.coordinateSystem,t.shadow.camera.updateProjectionMatrix()),t.shadow.updateMatrices(t)),t.shadow.matrix)))}function Hye(t,e=hp){const n=Ck(t).mul(e);return n.xyz.div(n.w)}function DZ(t){const e=Mk(t);return e.position||(e.position=qn(new Pe).setGroup(rr).onRenderUpdate((n,r)=>r.value.setFromMatrixPosition(t.matrixWorld)))}function Gye(t){const e=Mk(t);return e.targetPosition||(e.targetPosition=qn(new Pe).setGroup(rr).onRenderUpdate((n,r)=>r.value.setFromMatrixPosition(t.target.matrixWorld)))}function PZ(t){const e=Mk(t);return e.viewPosition||(e.viewPosition=qn(new Pe).setGroup(rr).onRenderUpdate(({camera:n},r)=>{r.value=r.value||new Pe,r.value.setFromMatrixPosition(t.matrixWorld),r.value.applyMatrix4(n.matrixWorldInverse)}))}const kZ=t=>Bd.transformDirection(DZ(t).sub(Gye(t))),pmt=t=>t.sort((e,n)=>e.id-n.id),mmt=(t,e)=>{for(const n of e)if(n.isAnalyticLightNode&&n.light.id===t)return n;return null},bB=new WeakMap,iw=[];class LZ extends $n{static get type(){return"LightsNode"}constructor(){super("vec3"),this.totalDiffuseNode=d2("vec3","totalDiffuse"),this.totalSpecularNode=d2("vec3","totalSpecular"),this.outgoingLightNode=d2("vec3","outgoingLight"),this._lights=[],this._lightNodes=null,this._lightNodesHash=null,this.global=!0}customCacheKey(){const e=this._lights;for(let r=0;r<e.length;r++){const i=e[r];if(iw.push(i.id),iw.push(i.castShadow?1:0),i.isSpotLight===!0){const a=i.map!==null?i.map.id:-1,s=i.colorNode?i.colorNode.getCacheKey():-1;iw.push(a,s)}}const n=QT(iw);return iw.length=0,n}getHash(e){if(this._lightNodesHash===null){this._lightNodes===null&&this.setupLightsNode(e);const n=[];for(const r of this._lightNodes)n.push(r.getHash());this._lightNodesHash="lights-"+n.join(",")}return this._lightNodesHash}analyze(e){const n=e.getNodeProperties(this);for(const r of n.nodes)r.build(e);n.outputNode.build(e)}setupLightsNode(e){const n=[],r=this._lightNodes,i=pmt(this._lights),a=e.renderer.library;for(const s of i)if(s.isNode)n.push(Un(s));else{let o=null;if(r!==null&&(o=mmt(s.id,r)),o===null){const l=a.getLightNodeClass(s.constructor);if(l===null){Kt(`LightsNode.setupNodeLights: Light node not found for ${s.constructor.name}`);continue}bB.has(s)===!1&&bB.set(s,new l(s)),o=bB.get(s)}n.push(o)}this._lightNodes=n}setupDirectLight(e,n,r){const{lightingModel:i,reflectedLight:a}=e.context;i.direct({...r,lightNode:n,reflectedLight:a},e)}setupDirectRectAreaLight(e,n,r){const{lightingModel:i,reflectedLight:a}=e.context;i.directRectArea({...r,lightNode:n,reflectedLight:a},e)}setupLights(e,n){for(const r of n)r.build(e)}getLightNodes(e){return this._lightNodes===null&&this.setupLightsNode(e),this._lightNodes}setup(e){const n=e.lightsNode;e.lightsNode=this;let r=this.outgoingLightNode;const i=e.context,a=i.lightingModel,s=e.getNodeProperties(this);if(a){const{totalDiffuseNode:o,totalSpecularNode:l}=this;i.outgoingLight=r;const c=e.addStack();s.nodes=c.nodes,a.start(e);const{backdrop:u,backdropAlpha:f}=i,{directDiffuse:h,directSpecular:p,indirectDiffuse:A,indirectSpecular:g}=i.reflectedLight;let w=h.add(A);u!==null&&(f!==null?w=Je(f.mix(w,u)):w=Je(u)),o.assign(w),l.assign(p.add(g)),r.assign(o.add(l)),a.finish(e),r=r.bypass(e.removeStack())}else s.nodes=[];return e.lightsNode=n,r}setLights(e){return this._lights=e,this._lightNodes=null,this._lightNodesHash=null,this}getLights(){return this._lights}get hasLights(){return this._lights.length>0}}const Amt=(t=[])=>new LZ().setLights(t);class gmt extends $n{static get type(){return"ShadowBaseNode"}constructor(e){super(),this.light=e,this.updateBeforeType=_r.RENDER,this.isShadowBaseNode=!0}setupShadowPosition({context:e,material:n}){OZ.assign(n.receivedShadowPositionNode||e.shadowPositionWorld||hp)}}const OZ=d2("vec3","shadowPositionWorld");function xmt(t,e={}){return e.toneMapping=t.toneMapping,e.toneMappingExposure=t.toneMappingExposure,e.outputColorSpace=t.outputColorSpace,e.renderTarget=t.getRenderTarget(),e.activeCubeFace=t.getActiveCubeFace(),e.activeMipmapLevel=t.getActiveMipmapLevel(),e.renderObjectFunction=t.getRenderObjectFunction(),e.pixelRatio=t.getPixelRatio(),e.mrt=t.getMRT(),e.clearColor=t.getClearColor(e.clearColor||new Xn),e.clearAlpha=t.getClearAlpha(),e.autoClear=t.autoClear,e.scissorTest=t.getScissorTest(),e}function vmt(t,e){return e=xmt(t,e),t.setMRT(null),t.setRenderObjectFunction(null),t.setClearColor(0,1),t.autoClear=!0,e}function ymt(t,e){t.toneMapping=e.toneMapping,t.toneMappingExposure=e.toneMappingExposure,t.outputColorSpace
vendor: 7,143 bytes, line 4193
4193=e.outputColorSpace,t.setRenderTarget(e.renderTarget,e.activeCubeFace,e.activeMipmapLevel),t.setRenderObjectFunction(e.renderObjectFunction),t.setPixelRatio(e.pixelRatio),t.setMRT(e.mrt),t.setClearColor(e.clearColor,e.clearAlpha),t.autoClear=e.autoClear,t.setScissorTest(e.scissorTest)}function _mt(t,e={}){return e.background=t.background,e.backgroundNode=t.backgroundNode,e.overrideMaterial=t.overrideMaterial,e}function bmt(t,e){return e=_mt(t,e),t.background=null,t.backgroundNode=null,t.overrideMaterial=null,e}function wmt(t,e){t.background=e.background,t.backgroundNode=e.backgroundNode,t.overrideMaterial=e.overrideMaterial}function Smt(t,e,n){return n=vmt(t,n),n=bmt(e,n),n}function Tmt(t,e,n){ymt(t,n),wmt(e,n)}const uD=new WeakMap,zye=it(({depthTexture:t,shadowCoord:e,depthLayer:n})=>{let r=Bi(t,e.xy).setName("t_basic");return t.isArrayTexture&&(r=r.depth(n)),r.compare(e.z)}),$ye=it(({depthTexture:t,shadowCoord:e,shadow:n,depthLayer:r})=>{const i=(u,f)=>{let h=Bi(t,u);return t.isArrayTexture&&(h=h.depth(r)),h.compare(f)},a=ss("mapSize","vec2",n).setGroup(rr),s=ss("radius","float",n).setGroup(rr),o=dn(1).div(a),l=s.mul(o.x),c=EZ($y.xy).mul(6.28318530718);return Ro(i(e.xy.add(yh(0,5,c).mul(l)),e.z),i(e.xy.add(yh(1,5,c).mul(l)),e.z),i(e.xy.add(yh(2,5,c).mul(l)),e.z),i(e.xy.add(yh(3,5,c).mul(l)),e.z),i(e.xy.add(yh(4,5,c).mul(l)),e.z)).mul(1/5)}),qye=it(({depthTexture:t,shadowCoord:e,shadow:n,depthLayer:r})=>{const i=(f,h)=>{let p=Bi(t,f);return t.isArrayTexture&&(p=p.depth(r)),p.compare(h)},a=ss("mapSize","vec2",n).setGroup(rr),s=dn(1).div(a),o=s.x,l=s.y,c=e.xy,u=Yh(c.mul(a).add(.5));return c.subAssign(u.mul(s)),Ro(i(c,e.z),i(c.add(dn(o,0)),e.z),i(c.add(dn(0,l)),e.z),i(c.add(s),e.z),mi(i(c.add(dn(o.negate(),0)),e.z),i(c.add(dn(o.mul(2),0)),e.z),u.x),mi(i(c.add(dn(o.negate(),l)),e.z),i(c.add(dn(o.mul(2),l)),e.z),u.x),mi(i(c.add(dn(0,l.negate())),e.z),i(c.add(dn(0,l.mul(2))),e.z),u.y),mi(i(c.add(dn(o,l.negate())),e.z),i(c.add(dn(o,l.mul(2))),e.z),u.y),mi(mi(i(c.add(dn(o.negate(),l.negate())),e.z),i(c.add(dn(o.mul(2),l.negate())),e.z),u.x),mi(i(c.add(dn(o.negate(),l.mul(2))),e.z),i(c.add(dn(o.mul(2),l.mul(2))),e.z),u.x),u.y)).mul(1/9)}),Wye=it(({depthTexture:t,shadowCoord:e,depthLayer:n},r)=>{let i=Bi(t).sample(e.xy);t.isArrayTexture&&(i=i.depth(n)),i=i.rg;const a=i.x,s=Us(1e-7,i.y.mul(i.y)),o=r.renderer.reversedDepthBuffer?_y(a,e.z):_y(e.z,a),l=ke(1).toVar();return sr(o.notEqual(1),()=>{const c=e.z.sub(a);let u=s.div(s.add(c.mul(c)));u=Xh(bi(u,.3).div(.65)),l.assign(Us(o,u))}),l}),Zye=t=>{let e=uD.get(t);return e===void 0&&(e=new Js,e.colorNode=er(0,0,0,1),e.isShadowPassMaterial=!0,e.name="ShadowMaterial",e.blending=_l,e.fog=!1,uD.set(t,e)),e},Yye=t=>{const e=uD.get(t);e!==void 0&&(e.dispose(),uD.delete(t))},dse=new Qg,p8=[],Xye=(t,e,n,r)=>{p8[0]=t,p8[1]=e;let i=dse.get(p8);return(i===void 0||i.shadowType!==n||i.useVelocity!==r)&&(i=(a,s,o,l,c,u,...f)=>{(a.castShadow===!0||a.receiveShadow&&n===Z1)&&(r&&(jAe(a).useVelocity=!0),a.onBeforeShadow(t,a,o,e.camera,l,s.overrideMaterial,u),t.renderObject(a,s,o,l,c,u,...f),a.onAfterShadow(t,a,o,e.camera,l,s.overrideMaterial,u))},i.shadowType=n,i.useVelocity=r,dse.set(p8,i)),p8[0]=null,p8[1]=null,i},Emt=it(({samples:t,radius:e,size:n,shadowPass:r,depthLayer:i})=>{const a=ke(0).toVar("meanVertical"),s=ke(0).toVar("squareMeanVertical"),o=t.lessThanEqual(ke(1)).select(ke(0),ke(2).div(t.sub(1))),l=t.lessThanEqual(ke(1)).select(ke(0),ke(-1));ba({start:$e(0),end:$e(t),type:"int",condition:"<"},({i:u})=>{const f=l.add(ke(u).mul(o));let h=r.sample(Ro($y.xy,dn(0,f).mul(e)).div(n));r.value.isArrayTexture&&(h=h.depth(i)),h=h.x,a.addAssign(h),s.addAssign(h.mul(h))}),a.divAssign(t),s.divAssign(t);const c=Vu(s.sub(a.mul(a)).max(0));return dn(a,c)}),Mmt=it(({samples:t,radius:e,size:n,shadowPass:r,depthLayer:i})=>{const a=ke(0).toVar("meanHorizontal"),s=ke(0).toVar("squareMeanHorizontal"),o=t.lessThanEqual(ke(1)).select(ke(0),ke(2).div(t.sub(1))),l=t.lessThanEqual(ke(1)).select(ke(0),ke(-1));ba({start:$e(0),end:$e(t),type:"int",condition:"<"},({i:u})=>{const f=l.add(ke(u).mul(o));let h=r.sample(Ro($y.xy,dn(f,0).mul(e)).div(n));r.value.isArrayTexture&&(h=h.depth(i)),a.addAssign(h.x),s.addAssign(Ro(h.y.mul(h.y),h.x.mul(h.x)))}),a.divAssign(t),s.divAssign(t);const c=Vu(s.sub(a.mul(a)).max(0));return dn(a,c)}),Cmt=[zye,$ye,qye,Wye];let wB;const gC=new TZ;class Qye extends gmt{static get type(){return"ShadowNode"}constructor(e,n=null){super(e),this.shadow=n||e.shadow,this.shadowMap=null,this.vsmShadowMapVertical=null,this.vsmShadowMapHorizontal=null,this.vsmMaterialVertical=null,this.vsmMaterialHorizontal=null,this._node=null,this._currentShadowType=null,this._cameraFrameId=new WeakMap,this.isShadowNode=!0,this.depthLayer=0}setupShadowFilter(e,{filterFn:n,depthTexture:r,shadowCoord:i,shadow:a,depthLayer:s}){const o=i.x.greaterThanEqual(0).and(i.x.lessThanEqual(1)).and(i.y.greaterThanEqual(0)).and(i.y.lessThanEqual(1)).and(i.z.lessThanEqual(1)),l=n({depthTexture:r,shadowCoord:i,shadow:a,depthLayer:s});return o.select(l,ke(1))}setupShadowCoord(e,n){const{shadow:r}=this,{renderer:i}=e,a=r.biasNode||ss("bias","float",r).setGroup(rr);let s=n,o;if(r.camera.isOrthographicCamera||i.logarithmicDepthBuffer!==!0)s=s.xyz.div(s.w),o=s.z;else{const l=s.w;s=s.xy.div(l);const c=ss("near","float",r.camera).setGroup(rr),u=ss("far","float",r.camera).setGroup(rr);o=hZ(l.negate(),c,u)}return s=Je(s.x,s.y.oneMinus(),i.reversedDepthBuffer?o.sub(a):o.add(a)),s}getShadowFilterFn(e){return Cmt[e]}setupRenderTarget(e,n){const r=new hc(e.mapSize.width,e.mapSize.height);r.name="ShadowDepthTexture",r.compareFunction=n.renderer.reversedDepthBuffer?S2:sx;const i=n.createRenderTarget(e.mapSize.width,e.mapSize.height);return i.texture.name="ShadowMap",i.texture.type=e.mapType,i.depthTexture=r,{shadowMap:i,depthTexture:r}}setupShadow(e){const{renderer:n,camera:r}=e,{light:i,shadow:a}=this,{depthTexture:s,shadowMap:o}=this.setupRenderTarget(a,e),l=n.shadowMap.type,c=n.hasCompatibility(Vy.TEXTURE_COMPARE);if((l===h3||l===Pme)&&c?(s.minFilter=Ba,s.magFilter=Ba):(s.minFilter=sa,s.magFilter=sa),a.camera.coordinateSystem=r.coordinateSystem,a.camera.updateProjectionMatrix(),l===Z1&&a.isPointLightShadow!==!0){s.compareFunction=null,o.depth>1?(o._vsmShadowMapVertical||(o._vsmShadowMapVertical=e.createRenderTarget(a.mapSize.width,a.mapSize.height,{format:uc,type:is,depth:o.depth,depthBuffer:!1}),o._vsmShadowMapVertical.texture.name="VSMVertical"),this.vsmShadowMapVertical=o._vsmShadowMapVertical,o._vsmShadowMapHorizontal||(o._vsmShadowMapHorizontal=e.createRenderTarget(a.mapSize.width,a.mapSize.height,{format:uc,type:is,depth:o.depth,depthBuffer:!1}),o._vsmShadowMapHorizontal.texture.name="VSMHorizontal"),this.vsmShadowMapHorizontal=o._vsmShadowMapHorizontal):(this.vsmShadowMapVertical=e.createRenderTarget(a.mapSize.width,a.mapSize.height,{format:uc,type:is,depthBuffer:!1}),this.vsmShadowMapHorizontal=e.createRenderTarget(a.mapSize.width,a.mapSize.height,{format:uc,type:is,depthBuffer:!1}));let I=Bi(s);s.isArrayTexture&&(I=I.depth(this.depthLayer));let L=Bi(this.vsmShadowMapVertical.texture);s.isArrayTexture&&(L=L.depth(this.depthLayer));
4193const O=ss("blurSamples","float",a).setGroup(rr),B=ss("radius","float",a).setGroup(rr),G=ss("mapSize","vec2",a).setGroup(rr);let j=this.vsmMaterialVertical||(this.vsmMaterialVertical=new Js);j.fragmentNode=Emt({samples:O,radius:B,size:G,shadowPass:I,depthLayer:this.depthLayer}).context(e.getSharedContext()),j.name="VSMVertical",j=this.vsmMaterialHorizontal||(this.vsmMaterialHorizontal=new Js),j.fragmentNode=Mmt({samples:O,radius:B,size:G,shadowPass:L,depthLayer:this.depthLayer}).context(e.getSharedContext()),j.name="VSMHorizontal"}const u=ss("intensity","float",a).setGroup(rr),f=ss("normalBias","float",a).setGroup(rr),h=Ck(i),p=dx.mul(f);let A;!n.highPrecision||e.material.receivedShadowPositionNode||e.context.shadowPositionWorld?A=h.mul(OZ.add(p)):A=qn("mat4").onObjectUpdate(({object:L},O)=>O.value.multiplyMatrices(h.value,L.matrixWorld)).mul(gs).add(h.mul(er(p,0)));const g=this.setupShadowCoord(e,A),w=a.filterNode||this.getShadowFilterFn(n.shadowMap.type)||null;if(w===null)throw new Error("THREE.WebGPURenderer: Shadow map type not supported yet.");const T=l===Z1&&a.isPointLightShadow!==!0?this.vsmShadowMapHorizontal.texture:s,C=this.setupShadowFilter(e,{filterFn:w,shadowTexture:o.texture,depthTexture:T,shadowCoord:g,shadow:a,depthLayer:this.depthLayer});let M;n.shadowMap.transmitted===!0&&(o.texture.isCubeTexture?M=Pu(o.texture,g.xyz):(M=Bi(o.texture,g),s.isArrayTexture&&(M=M.depth(this.depthLayer))));let D;M?D=mi(1,C.rgb.mix(M,1),u.mul(M.a)).toVar():D=mi(1,C,u).toVar(),this.shadowMap=o,this.shadow.map=o;const k=`${this.light.type} Shadow [ ${this.light.name||"ID: "+this.light.id} ]`;return M&&D.toInspector(`${k} / Color`,()=>this.shadowMap.texture.isCubeTexture?Pu(this.shadowMap.texture):Bi(this.shadowMap.texture)),D.toInspector(`${k} / Depth`,()=>this.shadowMap.texture.isCubeTexture?Pu(this.shadowMap.texture).r.oneMinus():Hs(this.shadowMap.depthTexture,Ca().mul(Pg(Bi(this.shadowMap.depthTexture)))).r.oneMinus())}setup(e){if(e.renderer.shadowMap.enabled!==!1)return it(()=>{const n=e.renderer.shadowMap.type;this._currentShadowType!==n&&(this._reset(),this._node=null);let r=this._node;return this.setupShadowPosition(e),r===null&&(this._node=r=this.setupShadow(e),this._currentShadowType=n),e.material.receivedShadowNode&&(r=e.material.receivedShadowNode(r)),r})()}renderShadow(e){const{shadow:n,shadowMap:r,light:i}=this,{renderer:a,scene:s}=e;n.updateMatrices(i),r.setSize(n.mapSize.width,n.mapSize.height,r.depth);const o=s.name;s.name=`Shadow Map [ ${i.name||"ID: "+i.id} ]`,a.render(s,n.camera),s.name=o}updateShadow(e){const{shadowMap:n,light:r,shadow:i}=this,{renderer:a,scene:s,camera:o}=e,l=a.shadowMap.type,c=n.depthTexture.version;this._depthVersionCached=c;const u=i.camera.layers.mask;(i.camera.layers.mask&4294967294)===0&&(i.camera.layers.mask=o.layers.mask);const f=a.getRenderObjectFunction(),h=a.getMRT(),p=h?h.has("velocity"):!1;wB=Smt(a,s,wB),s.overrideMaterial=Zye(r),a.setRenderObjectFunction(Xye(a,i,l,p)),a.setClearColor(0,0),a.setRenderTarget(n),this.renderShadow(e),a.setRenderObjectFunction(f),l===Z1&&i.isPointLightShadow!==!0&&this.vsmPass(a),i.camera.layers.mask=u,Tmt(a,s,wB)}vsmPass(e){const{shadow:n}=this,r=this.shadowMap.depth;this.vsmShadowMapVertical.setSize(n.mapSize.width,n.mapSize.height,r),this.vsmShadowMapHorizontal.setSize(n.mapSize.width,n.mapSize.height,r),e.setRenderTarget(this.vsmShadowMapVertical),gC.material=this.vsmMaterialVertical,gC.render(e),e.setRenderTarget(this.vsmShadowMapHorizontal),gC.material=this.vsmMaterialHorizontal,gC.render(e)}dispose(){this._reset(),super.dispose()}_reset(){this._currentShadowType=null,Yye(this.light),this.shadowMap&&(this.shadowMap.dispose(),this.shadowMap=null),this.vsmShadowMapVertical!==null&&(this.vsmShadowMapVertical.dispose(),this.vsmShadowMapVertical=null,this.vsmMaterialVertical.dispose(),this.vsmMaterialVertical=null),this.vsmShadowMapHorizontal!==null&&(this.vsmShadowMapHorizontal.dispose(),this.vsmShadowMapHorizontal=null,this.vsmMaterialHorizontal.dispose(),this.vsmMaterialHorizontal=null)}updateBefore(e){const{shadow:n}=this;let r=n.needsUpdate||n.autoUpdate;r&&(this._cameraFrameId[e.camera]===e.frameId&&(r=!1),this._cameraFrameId[e.camera]=e.frameId),r&&(this.updateShadow(e),this.shadowMap.depthTexture.version===this._depthVersionCached&&(n.needsUpdate=!1))}}const Kye=(t,e)=>new Qye(t,e),Nmt=new Xn,hse=new Fr,aw=new Pe,SB=new Pe,Rmt=[new Pe(1,0,0),new Pe(-1,0,0),new Pe(0,-1,0),new Pe(0,1,0),new Pe(0,0,1),new Pe(0,0,-1)],Dmt=[new Pe(0,-1,0),new Pe(0,-1,0),new Pe(0,0,-1),new Pe(0,0,1),new Pe(0,-1,0),new Pe(0,-1,0)],Pmt=[new Pe(1,0,0),new Pe(-1,0,0),new Pe(0,1,0),new Pe(0,-1,0),new Pe(0,0,1),new Pe(0,0,-1)],kmt=[new Pe(0,-1,0),new Pe(0,-1,0),new Pe(0,0,1),new Pe(0,0,-1),new Pe(0,-1,0),new Pe(0,-1,0)],Jye=it(({depthTexture:t,bd3D:e,dp:n})=>Pu(t,e).compare(n)),e4e=it(({depthTexture:t,bd3D:e,dp:n,shadow:r})=>{const i=ss("radius","float",r).setGroup(rr),a=ss("mapSize","vec2",r).setGroup(rr),s=i.div(a.x),o=qa(e),l=R0(R2(e,o.x.greaterThan(o.z).select(Je(0,1,0),Je(1,0,0)))),c=R2(e,l),u=EZ($y.xy).mul(6.28318530718),f=yh(0,5,u),h=yh(1,5,u),p=yh(2,5,u),A=yh(3,5,u),g=yh(4,5,u);return Pu(t,e.add(l.mul(f.x).add(c.mul(f.y)).mul(s))).compare(n).add(Pu(t,e.add(l.mul(h.x).add(c.mul(h.y)).mul(s))).compare(n)).add(Pu(t,e.add(l.mul(p.x).add(c.mul(p.y)).mul(s))).compare(n)).add(Pu(t,e.add(l.mul(A.x).add(c.mul(A.y)).mul(s))).compare(n)).add(Pu(t,e.add(l.mul(g.x).add(c.mul(g.y)).mul(s))).compare(n)).mul(1/5)}),Lmt=it(({filterFn:t,depthTexture:e,shadowCoord:n,shadow:r},i)=>{const a=n.xyz.toConst(),s=a.abs().toConst(),o=s.x.max(s.y).max(s.z),l=qn("float").setGroup(rr).onRenderUpd
vendor: 5,384 bytes, line 4193
4193ate(()=>r.camera.near),c=qn("float").setGroup(rr).onRenderUpdate(()=>r.camera.far),u=ss("bias","float",r).setGroup(rr),f=ke(1).toVar();return sr(o.sub(c).lessThanEqual(0).and(o.sub(l).greaterThanEqual(0)),()=>{let h;i.renderer.reversedDepthBuffer?(h=zve(o.negate(),l,c),h.subAssign(u)):(h=fZ(o.negate(),l,c),h.addAssign(u));const p=a.normalize();f.assign(t({depthTexture:e,bd3D:p,dp:h,shadow:r}))}),f});class Omt extends Qye{static get type(){return"PointShadowNode"}constructor(e,n=null){super(e,n)}getShadowFilterFn(e){return e===EYe?Jye:e4e}setupShadowCoord(e,n){return n}setupShadowFilter(e,{filterFn:n,depthTexture:r,shadowCoord:i,shadow:a}){return Lmt({filterFn:n,depthTexture:r,shadowCoord:i,shadow:a})}setupRenderTarget(e,n){const r=new Wme(e.mapSize.width);r.name="PointShadowDepthTexture",r.compareFunction=n.renderer.reversedDepthBuffer?S2:sx;const i=n.createCubeRenderTarget(e.mapSize.width);return i.texture.name="PointShadowMap",i.depthTexture=r,{shadowMap:i,depthTexture:r}}renderShadow(e){const{shadow:n,shadowMap:r,light:i}=this,{renderer:a,scene:s}=e,o=n.camera,l=n.matrix,c=a.coordinateSystem===_d,u=c?Rmt:Pmt,f=c?Dmt:kmt;r.setSize(n.mapSize.width,n.mapSize.width);const h=a.autoClear,p=a.getClearColor(Nmt),A=a.getClearAlpha();a.autoClear=!1,a.setClearColor(n.clearColor,n.clearAlpha);for(let g=0;g<6;g++){a.setRenderTarget(r,g),a.clear();const w=i.distance||o.far;w!==o.far&&(o.far=w,o.updateProjectionMatrix()),aw.setFromMatrixPosition(i.matrixWorld),o.position.copy(aw),SB.copy(o.position),SB.add(u[g]),o.up.copy(f[g]),o.lookAt(SB),o.updateMatrixWorld(),l.makeTranslation(-aw.x,-aw.y,-aw.z),hse.multiplyMatrices(o.projectionMatrix,o.matrixWorldInverse),n._frustum.setFromProjectionMatrix(hse,o.coordinateSystem,o.reversedDepth);const T=s.name;s.name=`Point Light Shadow [ ${i.name||"ID: "+i.id} ] - Face ${g+1}`,a.render(s,o),s.name=T}a.autoClear=h,a.setClearColor(p,A)}}const t4e=(t,e)=>new Omt(t,e);class qy extends y6{static get type(){return"AnalyticLightNode"}constructor(e=null){super(),this.light=e,this.color=new Xn,this.colorNode=e&&e.colorNode||qn(this.color).setGroup(rr),this.baseColorNode=null,this.shadowNode=null,this.shadowColorNode=null,this.isAnalyticLightNode=!0,this.updateType=_r.FRAME,e&&e.shadow&&(this._shadowDisposeListener=()=>{this.disposeShadow()},e.addEventListener("dispose",this._shadowDisposeListener))}dispose(){this._shadowDisposeListener&&this.light.removeEventListener("dispose",this._shadowDisposeListener),super.dispose()}disposeShadow(){this.shadowNode!==null&&(this.shadowNode.dispose(),this.shadowNode=null),this.shadowColorNode=null,this.baseColorNode!==null&&(this.colorNode=this.baseColorNode,this.baseColorNode=null)}getHash(){return this.light.uuid}getLightVector(e){return PZ(this.light).sub(e.context.positionView||co)}setupDirect(){}setupDirectRectArea(){}setupShadowNode(){return Kye(this.light)}setupShadow(e){const{renderer:n}=e;if(n.shadowMap.enabled===!1)return;let r=this.shadowColorNode;if(r===null){const i=this.light.shadow.shadowNode;let a;i!==void 0?a=Un(i):a=this.setupShadowNode(),this.shadowNode=a,this.shadowColorNode=r=this.colorNode.mul(a),this.baseColorNode=this.colorNode}e.context.getShadow&&(r=e.context.getShadow(this,e)),this.colorNode=r}setup(e){this.colorNode=this.baseColorNode||this.colorNode,this.light.castShadow?e.object.receiveShadow&&this.setupShadow(e):this.shadowNode!==null&&(this.shadowNode.dispose(),this.shadowNode=null,this.shadowColorNode=null);const n=this.setupDirect(e),r=this.setupDirectRectArea(e);n&&e.lightsNode.setupDirectLight(e,this,n),r&&e.lightsNode.setupDirectRectAreaLight(e,this,r)}update(){const{light:e}=this;this.color.copy(e.color).multiplyScalar(e.intensity)}}const FZ=it(({lightDistance:t,cutoffDistance:e,decayExponent:n})=>{const r=t.pow(n).max(.01).reciprocal();return e.greaterThan(0).select(r.mul(t.div(e).pow4().oneMinus().clamp().pow2()),r)}),n4e=({color:t,lightVector:e,cutoffDistance:n,decayExponent:r})=>{const i=e.normalize(),a=e.length(),s=FZ({lightDistance:a,cutoffDistance:n,decayExponent:r}),o=t.mul(s);return{lightDirection:i,lightColor:o}};class Fmt extends qy{static get type(){return"PointLightNode"}constructor(e=null){super(e),this.cutoffDistanceNode=qn(0).setGroup(rr),this.decayExponentNode=qn(2).setGroup(rr)}update(e){const{light:n}=this;super.update(e),this.cutoffDistanceNode.value=n.distance,this.decayExponentNode.value=n.decay}setupShadowNode(){return t4e(this.light)}setupDirect(e){return n4e({color:this.colorNode,lightVector:this.getLightVector(e),cutoffDistance:this.cutoffDistanceNode,decayExponent:this.decayExponentNode})}}const Imt=it(([t=Ca()])=>{const e=t.mul(2),n=e.x.floor(),r=e.y.floor();return n.add(r).mod(2).sign()}),Bmt=it(([t=Ca()],{renderer:e,material:n})=>{const r=UW(t.mul(2).sub(1));let i;if(n.alphaToCoverage&&e.currentSamples>0){const a=ke(r.fwidth()).toVar();i=Qh(a.oneMinus(),a.add(1),r).oneMinus()}else i=Zc(r.greaterThan(1),0,1);return i}),wS=it(([t,e,n])=>{const r=ke(n).toVar(),i=ke(e).toVar(),a=Ef(t).toVar();return Zc(a,i,r)}).setLayout({name:"mx_select",type:"float",inputs:[{name:"b",type:"bool"},{name:"t",type:"float"},{name:"f",type:"float"}]}),fD=it(([t,e])=>{const n=Ef(e).toVar(),r=ke(t).toVar();return Zc(n,r.negate(),r)}).setLayout({name:"mx_negate_if",type:"float",inputs:[{name:"val",type:"float"},{name:"b",type:"bool"}]}),No=it(([t])=>{const e=ke(t).toVar();return $e(up(e))}
vendor: 4,221 bytes, line 4193
4193).setLayout({name:"mx_floor",type:"int",inputs:[{name:"x",type:"float"}]}),_s=it(([t,e])=>{const n=ke(t).toVar();return e.assign(No(n)),n.sub(ke(e))}),Umt=it(([t,e,n,r,i,a])=>{const s=ke(a).toVar(),o=ke(i).toVar(),l=ke(r).toVar(),c=ke(n).toVar(),u=ke(e).toVar(),f=ke(t).toVar(),h=ke(bi(1,o)).toVar();return bi(1,s).mul(f.mul(h).add(u.mul(o))).add(s.mul(c.mul(h).add(l.mul(o))))}).setLayout({name:"mx_bilerp_0",type:"float",inputs:[{name:"v0",type:"float"},{name:"v1",type:"float"},{name:"v2",type:"float"},{name:"v3",type:"float"},{name:"s",type:"float"},{name:"t",type:"float"}]}),Vmt=it(([t,e,n,r,i,a])=>{const s=ke(a).toVar(),o=ke(i).toVar(),l=Je(r).toVar(),c=Je(n).toVar(),u=Je(e).toVar(),f=Je(t).toVar(),h=ke(bi(1,o)).toVar();return bi(1,s).mul(f.mul(h).add(u.mul(o))).add(s.mul(c.mul(h).add(l.mul(o))))}).setLayout({name:"mx_bilerp_1",type:"vec3",inputs:[{name:"v0",type:"vec3"},{name:"v1",type:"vec3"},{name:"v2",type:"vec3"},{name:"v3",type:"vec3"},{name:"s",type:"float"},{name:"t",type:"float"}]}),r4e=xc([Umt,Vmt]),jmt=it(([t,e,n,r,i,a,s,o,l,c,u])=>{const f=ke(u).toVar(),h=ke(c).toVar(),p=ke(l).toVar(),A=ke(o).toVar(),g=ke(s).toVar(),w=ke(a).toVar(),T=ke(i).toVar(),C=ke(r).toVar(),M=ke(n).toVar(),D=ke(e).toVar(),k=ke(t).toVar(),I=ke(bi(1,p)).toVar(),L=ke(bi(1,h)).toVar();return ke(bi(1,f)).toVar().mul(L.mul(k.mul(I).add(D.mul(p))).add(h.mul(M.mul(I).add(C.mul(p))))).add(f.mul(L.mul(T.mul(I).add(w.mul(p))).add(h.mul(g.mul(I).add(A.mul(p))))))}).setLayout({name:"mx_trilerp_0",type:"float",inputs:[{name:"v0",type:"float"},{name:"v1",type:"float"},{name:"v2",type:"float"},{name:"v3",type:"float"},{name:"v4",type:"float"},{name:"v5",type:"float"},{name:"v6",type:"float"},{name:"v7",type:"float"},{name:"s",type:"float"},{name:"t",type:"float"},{name:"r",type:"float"}]}),Hmt=it(([t,e,n,r,i,a,s,o,l,c,u])=>{const f=ke(u).toVar(),h=ke(c).toVar(),p=ke(l).toVar(),A=Je(o).toVar(),g=Je(s).toVar(),w=Je(a).toVar(),T=Je(i).toVar(),C=Je(r).toVar(),M=Je(n).toVar(),D=Je(e).toVar(),k=Je(t).toVar(),I=ke(bi(1,p)).toVar(),L=ke(bi(1,h)).toVar();return ke(bi(1,f)).toVar().mul(L.mul(k.mul(I).add(D.mul(p))).add(h.mul(M.mul(I).add(C.mul(p))))).add(f.mul(L.mul(T.mul(I).add(w.mul(p))).add(h.mul(g.mul(I).add(A.mul(p))))))}).setLayout({name:"mx_trilerp_1",type:"vec3",inputs:[{name:"v0",type:"vec3"},{name:"v1",type:"vec3"},{name:"v2",type:"vec3"},{name:"v3",type:"vec3"},{name:"v4",type:"vec3"},{name:"v5",type:"vec3"},{name:"v6",type:"vec3"},{name:"v7",type:"vec3"},{name:"s",type:"float"},{name:"t",type:"float"},{name:"r",type:"float"}]}),i4e=xc([jmt,Hmt]),Gmt=it(([t,e,n])=>{const r=ke(n).toVar(),i=ke(e).toVar(),a=ln(t).toVar(),s=ln(a.bitAnd(ln(7))).toVar(),o=ke(wS(s.lessThan(ln(4)),i,r)).toVar(),l=ke(Lr(2,wS(s.lessThan(ln(4)),r,i))).toVar();return fD(o,Ef(s.bitAnd(ln(1)))).add(fD(l,Ef(s.bitAnd(ln(2)))))}).setLayout({name:"mx_gradient_float_0",type:"float",inputs:[{name:"hash",type:"uint"},{name:"x",type:"float"},{name:"y",type:"float"}]}),zmt=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=ke(e).toVar(),o=ln(t).toVar(),l=ln(o.bitAnd(ln(15))).toVar(),c=ke(wS(l.lessThan(ln(8)),s,a)).toVar(),u=ke(wS(l.lessThan(ln(4)),a,wS(l.equal(ln(12)).or(l.equal(ln(14))),s,i))).toVar();return fD(c,Ef(l.bitAnd(ln(1)))).add(fD(u,Ef(l.bitAnd(ln(2)))))}).setLayout({name:"mx_gradient_float_1",type:"float",inputs:[{name:"hash",type:"uint"},{name:"x",type:"float"},{name:"y",type:"float"},{name:"z",type:"float"}]}),Vl=xc([Gmt,zmt]),$mt=it(([t,e,n])=>{const r=ke(n).toVar(),i=ke(e).toVar(),a=zy(t).toVar();return Je(Vl(a.x,i,r),Vl(a.y,i,r),Vl(a.z,i,r))}).setLayout({name:"mx_gradient_vec3_0",type:"vec3",inputs:[{name:"hash",type:"uvec3"},{name:"x",type:"float"},{name:"y",type:"float"}]}),qmt=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=ke(e).toVar(),o=zy(t).toVar();return Je(Vl(o.x,s,a,i),Vl(o.y,s,a,i),Vl(o.z,s,a,i))}).setLayout({name:"mx_gradient_vec3_1",type:"vec3",inputs:[{name:"hash",type:"uvec3"},{name:"x",type:"float"},{name:"y",type:"float"},{name:"z",type:"float"}]}),ed=xc([$mt,qmt]),Wmt=it(([t])=>{const e=ke(t).toVar();return Lr(.6616,e)}).setLayout({name:"mx_gradient_scale2d_0",type:"float",inputs:[{name:"v",type:"float"}]}),Zmt=it(([t])=>{const e=ke(t).toVar();return Lr(.982,e)}
vendor: 13,379 bytes, line 4193
4193).setLayout({name:"mx_gradient_scale3d_0",type:"float",inputs:[{name:"v",type:"float"}]}),Ymt=it(([t])=>{const e=Je(t).toVar();return Lr(.6616,e)}).setLayout({name:"mx_gradient_scale2d_1",type:"vec3",inputs:[{name:"v",type:"vec3"}]}),a4e=xc([Wmt,Ymt]),Xmt=it(([t])=>{const e=Je(t).toVar();return Lr(.982,e)}).setLayout({name:"mx_gradient_scale3d_1",type:"vec3",inputs:[{name:"v",type:"vec3"}]}),s4e=xc([Zmt,Xmt]),lf=it(([t,e])=>{const n=$e(e).toVar(),r=ln(t).toVar();return r.shiftLeft(n).bitOr(r.shiftRight($e(32).sub(n)))}).setLayout({name:"mx_rotl32",type:"uint",inputs:[{name:"x",type:"uint"},{name:"k",type:"int"}]}),o4e=it(([t,e,n])=>{t.subAssign(n),t.bitXorAssign(lf(n,$e(4))),n.addAssign(e),e.subAssign(t),e.bitXorAssign(lf(t,$e(6))),t.addAssign(n),n.subAssign(e),n.bitXorAssign(lf(e,$e(8))),e.addAssign(t),t.subAssign(n),t.bitXorAssign(lf(n,$e(16))),n.addAssign(e),e.subAssign(t),e.bitXorAssign(lf(t,$e(19))),t.addAssign(n),n.subAssign(e),n.bitXorAssign(lf(e,$e(4))),e.addAssign(t)}),aE=it(([t,e,n])=>{const r=ln(n).toVar(),i=ln(e).toVar(),a=ln(t).toVar();return r.bitXorAssign(i),r.subAssign(lf(i,$e(14))),a.bitXorAssign(r),a.subAssign(lf(r,$e(11))),i.bitXorAssign(a),i.subAssign(lf(a,$e(25))),r.bitXorAssign(i),r.subAssign(lf(i,$e(16))),a.bitXorAssign(r),a.subAssign(lf(r,$e(4))),i.bitXorAssign(a),i.subAssign(lf(a,$e(14))),r.bitXorAssign(i),r.subAssign(lf(i,$e(24))),r}).setLayout({name:"mx_bjfinal",type:"uint",inputs:[{name:"a",type:"uint"},{name:"b",type:"uint"},{name:"c",type:"uint"}]}),eu=it(([t])=>{const e=ln(t).toVar();return ke(e).div(ke(ln($e(4294967295))))}).setLayout({name:"mx_bits_to_01",type:"float",inputs:[{name:"bits",type:"uint"}]}),pp=it(([t])=>{const e=ke(t).toVar();return e.mul(e).mul(e).mul(e.mul(e.mul(6).sub(15)).add(10))}).setLayout({name:"mx_fade",type:"float",inputs:[{name:"t",type:"float"}]}),Qmt=it(([t])=>{const e=$e(t).toVar(),n=ln(ln(1)).toVar(),r=ln(ln($e(3735928559)).add(n.shiftLeft(ln(2))).add(ln(13))).toVar();return aE(r.add(ln(e)),r,r)}).setLayout({name:"mx_hash_int_0",type:"uint",inputs:[{name:"x",type:"int"}]}),Kmt=it(([t,e])=>{const n=$e(e).toVar(),r=$e(t).toVar(),i=ln(ln(2)).toVar(),a=ln().toVar(),s=ln().toVar(),o=ln().toVar();return a.assign(s.assign(o.assign(ln($e(3735928559)).add(i.shiftLeft(ln(2))).add(ln(13))))),a.addAssign(ln(r)),s.addAssign(ln(n)),aE(a,s,o)}).setLayout({name:"mx_hash_int_1",type:"uint",inputs:[{name:"x",type:"int"},{name:"y",type:"int"}]}),Jmt=it(([t,e,n])=>{const r=$e(n).toVar(),i=$e(e).toVar(),a=$e(t).toVar(),s=ln(ln(3)).toVar(),o=ln().toVar(),l=ln().toVar(),c=ln().toVar();return o.assign(l.assign(c.assign(ln($e(3735928559)).add(s.shiftLeft(ln(2))).add(ln(13))))),o.addAssign(ln(a)),l.addAssign(ln(i)),c.addAssign(ln(r)),aE(o,l,c)}).setLayout({name:"mx_hash_int_2",type:"uint",inputs:[{name:"x",type:"int"},{name:"y",type:"int"},{name:"z",type:"int"}]}),e2t=it(([t,e,n,r])=>{const i=$e(r).toVar(),a=$e(n).toVar(),s=$e(e).toVar(),o=$e(t).toVar(),l=ln(ln(4)).toVar(),c=ln().toVar(),u=ln().toVar(),f=ln().toVar();return c.assign(u.assign(f.assign(ln($e(3735928559)).add(l.shiftLeft(ln(2))).add(ln(13))))),c.addAssign(ln(o)),u.addAssign(ln(s)),f.addAssign(ln(a)),o4e(c,u,f),c.addAssign(ln(i)),aE(c,u,f)}).setLayout({name:"mx_hash_int_3",type:"uint",inputs:[{name:"x",type:"int"},{name:"y",type:"int"},{name:"z",type:"int"},{name:"xx",type:"int"}]}),t2t=it(([t,e,n,r,i])=>{const a=$e(i).toVar(),s=$e(r).toVar(),o=$e(n).toVar(),l=$e(e).toVar(),c=$e(t).toVar(),u=ln(ln(5)).toVar(),f=ln().toVar(),h=ln().toVar(),p=ln().toVar();return f.assign(h.assign(p.assign(ln($e(3735928559)).add(u.shiftLeft(ln(2))).add(ln(13))))),f.addAssign(ln(c)),h.addAssign(ln(l)),p.addAssign(ln(o)),o4e(f,h,p),f.addAssign(ln(s)),h.addAssign(ln(a)),aE(f,h,p)}).setLayout({name:"mx_hash_int_4",type:"uint",inputs:[{name:"x",type:"int"},{name:"y",type:"int"},{name:"z",type:"int"},{name:"xx",type:"int"},{name:"yy",type:"int"}]}),Ma=xc([Qmt,Kmt,Jmt,e2t,t2t]),n2t=it(([t,e])=>{const n=$e(e).toVar(),r=$e(t).toVar(),i=ln(Ma(r,n)).toVar(),a=zy().toVar();return a.x.assign(i.bitAnd($e(255))),a.y.assign(i.shiftRight($e(8)).bitAnd($e(255))),a.z.assign(i.shiftRight($e(16)).bitAnd($e(255))),a}).setLayout({name:"mx_hash_vec3_0",type:"uvec3",inputs:[{name:"x",type:"int"},{name:"y",type:"int"}]}),r2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=$e(e).toVar(),a=$e(t).toVar(),s=ln(Ma(a,i,r)).toVar(),o=zy().toVar();return o.x.assign(s.bitAnd($e(255))),o.y.assign(s.shiftRight($e(8)).bitAnd($e(255))),o.z.assign(s.shiftRight($e(16)).bitAnd($e(255))),o}).setLayout({name:"mx_hash_vec3_1",type:"uvec3",inputs:[{name:"x",type:"int"},{name:"y",type:"int"},{name:"z",type:"int"}]}),td=xc([n2t,r2t]),i2t=it(([t])=>{const e=dn(t).toVar(),n=$e().toVar(),r=$e().toVar(),i=ke(_s(e.x,n)).toVar(),a=ke(_s(e.y,r)).toVar(),s=ke(pp(i)).toVar(),o=ke(pp(a)).toVar(),l=ke(r4e(Vl(Ma(n,r),i,a),Vl(Ma(n.add($e(1)),r),i.sub(1),a),Vl(Ma(n,r.add($e(1))),i,a.sub(1)),Vl(Ma(n.add($e(1)),r.add($e(1))),i.sub(1),a.sub(1)),s,o)).toVar();return a4e(l)}).setLayout({name:"mx_perlin_noise_float_0",type:"float",inputs:[{name:"p",type:"vec2"}]}),a2t=it(([t])=>{const e=Je(t).toVar(),n=$e().toVar(),r=$e().toVar(),i=$e().toVar(),a=ke(_s(e.x,n)).toVar(),s=ke(_s(e.y,r)).toVar(),o=ke(_s(e.z,i)).toVar(),l=ke(pp(a)).toVar(),c=ke(pp(s)).toVar(),u=ke(pp(o)).toVar(),f=ke(i4e(Vl(Ma(n,r,i),a,s,o),Vl(Ma(n.add($e(1)),r,i),a.sub(1),s,o),Vl(Ma(n,r.add($e(1)),i),a,s.sub(1),o),Vl(Ma(n.add($e(1)),r.add($e(1)),i),a.sub(1),s.sub(1),o),Vl(Ma(n,r,i.add($e(1))),a,s,o.sub(1)),Vl(Ma(n.add($e(1)),r,i.add($e(1))),a.sub(1),s,o.sub(1)),Vl(Ma(n,r.add($e(1)),i.add($e(1))),a,s.sub(1),o.sub(1)),Vl(Ma(n.add($e(1)),r.add($e(1)),i.add($e(1))),a.sub(1),s.sub(1),o.sub(1)),l,c,u)).toVar();return s4e(f)}).setLayout({name:"mx_perlin_noise_float_1",type:"float",inputs:[{name:"p",type:"vec3"}]}),IZ=xc([i2t,a2t]),s2t=it(([t])=>{const e=dn(t).toVar(),n=$e().toVar(),r=$e().toVar(),i=ke(_s(e.x,n)).toVar(),a=ke(_s(e.y,r)).toVar(),s=ke(pp(i)).toVar(),o=ke(pp(a)).toVar(),l=Je(r4e(ed(td(n,r),i,a),ed(td(n.add($e(1)),r),i.sub(1),a),ed(td(n,r.add($e(1))),i,a.sub(1)),ed(td(n.add($e(1)),r.add($e(1))),i.sub(1),a.sub(1)),s,o)).toVar();return a4e(l)}).setLayout({name:"mx_perlin_noise_vec3_0",type:"vec3",inputs:[{name:"p",type:"vec2"}]}),o2t=it(([t])=>{const e=Je(t).toVar(),n=$e().toVar(),r=$e().toVar(),i=$e().toVar(),a=ke(_s(e.x,n)).toVar(),s=ke(_s(e.y,r)).toVar(),o=ke(_s(e.z,i)).toVar(),l=ke(pp(a)).toVar(),c=ke(pp(s)).toVar(),u=ke(pp(o)).toVar(),f=Je(i4e(ed(td(n,r,i),a,s,o),ed(td(n.add($e(1)),r,i),a.sub(1),s,o),ed(td(n,r.add($e(1)),i),a,s.sub(1),o),ed(td(n.add($e(1)),r.add($e(1)),i),a.sub(1),s.sub(1),o),ed(td(n,r,i.add($e(1))),a,s,o.sub(1)),ed(td(n.add($e(1)),r,i.add($e(1))),a.sub(1),s,o.sub(1)),ed(td(n,r.add($e(1)),i.add($e(1))),a,s.sub(1),o.sub(1)),ed(td(n.add($e(1)),r.add($e(1)),i.add($e(1))),a.sub(1),s.sub(1),o.sub(1)),l,c,u)).toVar();return s4e(f)}).setLayout({name:"mx_perlin_noise_vec3_1",type:"vec3",inputs:[{name:"p",type:"vec3"}]}),sE=xc([s2t,o2t]),l2t=it(([t])=>{const e=ke(t).toVar(),n=$e(No(e)).toVar();return eu(Ma(n))}).setLayout({name:"mx_cell_noise_float_0",type:"float",inputs:[{name:"p",type:"float"}]}),c2t=it(([t])=>{const e=dn(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar();return eu(Ma(n,r))}).setLayout({name:"mx_cell_noise_float_1",type:"float",inputs:[{name:"p",type:"vec2"}]}),u2t=it(([t])=>{const e=Je(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar(),i=$e(No(e.z)).toVar();return eu(Ma(n,r,i))}).setLayout({name:"mx_cell_noise_float_2",type:"float",inputs:[{name:"p",type:"vec3"}]}),f2t=it(([t])=>{const e=er(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar(),i=$e(No(e.z)).toVar(),a=$e(No(e.w)).toVar();return eu(Ma(n,r,i,a))}).setLayout({name:"mx_cell_noise_float_3",type:"float",inputs:[{name:"p",type:"vec4"}]}),d2t=xc([l2t,c2t,u2t,f2t]),h2t=it(([t])=>{const e=ke(t).toVar(),n=$e(No(e)).toVar();return Je(eu(Ma(n,$e(0))),eu(Ma(n,$e(1))),eu(Ma(n,$e(2))))}).setLayout({name:"mx_cell_noise_vec3_0",type:"vec3",inputs:[{name:"p",type:"float"}]}),p2t=it(([t])=>{const e=dn(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar();return Je(eu(Ma(n,r,$e(0))),eu(Ma(n,r,$e(1))),eu(Ma(n,r,$e(2))))}).setLayout({name:"mx_cell_noise_vec3_1",type:"vec3",inputs:[{name:"p",type:"vec2"}]}),m2t=it(([t])=>{const e=Je(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar(),i=$e(No(e.z)).toVar();return Je(eu(Ma(n,r,i,$e(0))),eu(Ma(n,r,i,$e(1))),eu(Ma(n,r,i,$e(2))))}).setLayout({name:"mx_cell_noise_vec3_2",type:"vec3",inputs:[{name:"p",type:"vec3"}]}),A2t=it(([t])=>{const e=er(t).toVar(),n=$e(No(e.x)).toVar(),r=$e(No(e.y)).toVar(),i=$e(No(e.z)).toVar(),a=$e(No(e.w)).toVar();return Je(eu(Ma(n,r,i,a,$e(0))),eu(Ma(n,r,i,a,$e(1))),eu(Ma(n,r,i,a,$e(2))))}).setLayout({name:"mx_cell_noise_vec3_3",type:"vec3",inputs:[{name:"p",type:"vec4"}]}),Nk=xc([h2t,p2t,m2t,A2t]),dD=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=$e(e).toVar(),o=Je(t).toVar(),l=ke(0).toVar(),c=ke(1).toVar();return ba(s,()=>{l.addAssign(c.mul(IZ(o))),c.mulAssign(i),o.mulAssign(a)}),l}).setLayout({name:"mx_fractal_noise_float",type:"float",inputs:[{name:"p",type:"vec3"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),Rk=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=$e(e).toVar(),o=Je(t).toVar(),l=Je(0).toVar(),c=ke(1).toVar();return ba(s,()=>{l.addAssign(c.mul(sE(o))),c.mulAssign(i),o.mulAssign(a)}),l}).setLayout({name:"mx_fractal_noise_vec3",type:"vec3",inputs:[{name:"p",type:"vec3"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),g2t=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=$e(e).toVar(),o=Je(t).toVar();return dn(dD(o,s,a,i),dD(o.add(Je($e(19),$e(193),$e(17))),s,a,i))}).setLayout({name:"mx_fractal_noise_vec2",type:"vec2",inputs:[{name:"p",type:"vec3"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),x2t=it(([t,e,n,r])=>{const i=ke(r).toVar(),a=ke(n).toVar(),s=$e(e).toVar(),o=Je(t).toVar(),l=Je(Rk(o,s,a,i)).toVar(),c=ke(dD(o.add(Je($e(19),$e(193),$e(17))),s,a,i)).toVar();return er(l,c)}).setLayout({name:"mx_fractal_noise_vec4",type:"vec4",inputs:[{name:"p",type:"vec3"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),v2t=it(([t,e,n,r,i,a,s])=>{const o=$e(s).toVar(),l=ke(a).toVar(),c=$e(i).toVar(),u=$e(r).toVar(),f=$e(n).toVar(),h=$e(e).toVar(),p=dn(t).toVar(),A=Je(Nk(dn(h.add(u),f.add(c)))).toVar(),g=dn(A.x,A.y).toVar();g.subAssign(.5),g.mulAssign(l),g.addAssign(.5);const w=dn(dn(ke(h),ke(f)).add(g)).toVar(),T=dn(w.sub(p)).toVar();return sr(o.equal($e(2)),()=>qa(T.x).add(qa(T.y))),sr(o.equal($e(3)),()=>Us(qa(T.x),qa(T.y))),Sd(T,T)}).setLayout({name:"mx_worley_distance_0",type:"float",inputs:[{name:"p",type:"vec2"},{name:"x",type:"int"},{name:"y",type:"int"},{name:"xoff",type:"int"},{name:"yoff",type:"int"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),y2t=it(([t,e,n,r,i,a,s,o,l])=>{const c=$e(l).toVar(),u=ke(o).toVar(),f=$e(s).toVar(),h=$e(a).toVar(),p=$e(i).toVar(),A=$e(r).toVar(),g=$e(n).toVar(),w=$e(e).toVar(),T=Je(t).toVar(),C=Je(Nk(Je(w.add(p),g.add(h),A.add(f)))).toVar();C.subAssign(.5),C.mulAssign(u),C.addAssign(.5);const M=Je(Je(ke(w),ke(g),ke(A)).add(C)).toVar(),D=Je(M.sub(T)).toVar();return sr(c.equal($e(2)),()=>qa(D.x).add(qa(D.y)).add(qa(D.z))),sr(c.equal($e(3)),()=>Us(qa(D.x),qa(D.y),qa(D.z))),Sd(D,D)}).setLayout({name:"mx_worley_distance_1",type:"float",inputs:[{name:"p",type:"vec3"},{name:"x",type:"int"},{name:"y",type:"int"},{name:"z",type:"int"},{name:"xoff",type:"int"},{name:"yoff",type:"int"},{name:"zoff",type:"int"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),w6=xc([v2t,y2t]),_2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=dn(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=dn(_s(a.x,s),_s(a.y,o)).toVar(),c=ke(1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:u})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:f})=>{const h=ke(w6(l,u,f,s,o,i,r)).toVar();c.assign(L0(c,h))})}),sr(r.equal($e(0)),()=>{c.assign(Vu(c))}),c}).setLayout({name:"mx_worley_noise_float_0",type:"float",inputs:[{name:"p",type:"vec2"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),b2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=dn(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=dn(_s(a.x,s),_s(a.y,o)).toVar(),c=dn(1e6,1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:u})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:f})=>{const h=ke(w6(l,u,f,s,o,i,r)).toVar();sr(h.lessThan(c.x),()=>{c.y.assign(c.x),c.x.assign(h)}).ElseIf(h.lessThan(c.y),()=>{c.y.assign(h)})})}),sr(r.equal($e(0)),()=>{c.assign(Vu(c))}),c}).setLayout({name:"mx_worley_noise_vec2_0",type:"vec2",inputs:[{name:"p",type:"vec2"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),w2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=dn(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=dn(_s(a.x,s),_s(a.y,o)).toVar(),c=Je(1e6,1e6,1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:u})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:f})=>{const h=ke(w6(l,u,f,s,o,i,r)).toVar();sr(h.lessThan(c.x),()=>{c.z.assign(c.y),c.y.assign(c.x),c.x.assign(h)}).ElseIf(h.lessThan(c.y),()=>{c.z.assign(c.y),c.y.assign(h)}).ElseIf(h.lessThan(c.z),()=>{c.z.assign(h)})})}),sr(r.equal($e(0)),()=>{c.assign(Vu(c))}),c}
vendor: 4,638 bytes, line 4193
4193).setLayout({name:"mx_worley_noise_vec3_0",type:"vec3",inputs:[{name:"p",type:"vec2"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),S2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=Je(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=$e().toVar(),c=Je(_s(a.x,s),_s(a.y,o),_s(a.z,l)).toVar(),u=ke(1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:f})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:h})=>{ba({start:-1,end:$e(1),name:"z",condition:"<="},({z:p})=>{const A=ke(w6(c,f,h,p,s,o,l,i,r)).toVar();u.assign(L0(u,A))})})}),sr(r.equal($e(0)),()=>{u.assign(Vu(u))}),u}).setLayout({name:"mx_worley_noise_float_1",type:"float",inputs:[{name:"p",type:"vec3"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),T2t=xc([_2t,S2t]),E2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=Je(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=$e().toVar(),c=Je(_s(a.x,s),_s(a.y,o),_s(a.z,l)).toVar(),u=dn(1e6,1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:f})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:h})=>{ba({start:-1,end:$e(1),name:"z",condition:"<="},({z:p})=>{const A=ke(w6(c,f,h,p,s,o,l,i,r)).toVar();sr(A.lessThan(u.x),()=>{u.y.assign(u.x),u.x.assign(A)}).ElseIf(A.lessThan(u.y),()=>{u.y.assign(A)})})})}),sr(r.equal($e(0)),()=>{u.assign(Vu(u))}),u}).setLayout({name:"mx_worley_noise_vec2_1",type:"vec2",inputs:[{name:"p",type:"vec3"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),M2t=xc([b2t,E2t]),C2t=it(([t,e,n])=>{const r=$e(n).toVar(),i=ke(e).toVar(),a=Je(t).toVar(),s=$e().toVar(),o=$e().toVar(),l=$e().toVar(),c=Je(_s(a.x,s),_s(a.y,o),_s(a.z,l)).toVar(),u=Je(1e6,1e6,1e6).toVar();return ba({start:-1,end:$e(1),name:"x",condition:"<="},({x:f})=>{ba({start:-1,end:$e(1),name:"y",condition:"<="},({y:h})=>{ba({start:-1,end:$e(1),name:"z",condition:"<="},({z:p})=>{const A=ke(w6(c,f,h,p,s,o,l,i,r)).toVar();sr(A.lessThan(u.x),()=>{u.z.assign(u.y),u.y.assign(u.x),u.x.assign(A)}).ElseIf(A.lessThan(u.y),()=>{u.z.assign(u.y),u.y.assign(A)}).ElseIf(A.lessThan(u.z),()=>{u.z.assign(A)})})})}),sr(r.equal($e(0)),()=>{u.assign(Vu(u))}),u}).setLayout({name:"mx_worley_noise_vec3_1",type:"vec3",inputs:[{name:"p",type:"vec3"},{name:"jitter",type:"float"},{name:"metric",type:"int"}]}),BZ=xc([w2t,C2t]),N2t=it(([t,e,n,r,i,a,s,o,l,c,u])=>{const f=$e(t).toVar(),h=dn(e).toVar(),p=dn(n).toVar(),A=dn(r).toVar(),g=ke(i).toVar(),w=ke(a).toVar(),T=ke(s).toVar(),C=Ef(o).toVar(),M=$e(l).toVar(),D=ke(c).toVar(),k=ke(u).toVar(),I=h.mul(p).add(A),L=ke(0).toVar();return sr(f.equal($e(0)),()=>{L.assign(sE(I))}),sr(f.equal($e(1)),()=>{L.assign(Nk(I))}),sr(f.equal($e(2)),()=>{L.assign(BZ(I,g,$e(0)))}),sr(f.equal($e(3)),()=>{L.assign(Rk(Je(I,0),M,D,k))}),L.assign(L.mul(T.sub(w)).add(w)),sr(C,()=>{L.assign(Xh(L,w,T))}),L}).setLayout({name:"mx_unifiednoise2d",type:"float",inputs:[{name:"noiseType",type:"int"},{name:"texcoord",type:"vec2"},{name:"freq",type:"vec2"},{name:"offset",type:"vec2"},{name:"jitter",type:"float"},{name:"outmin",type:"float"},{name:"outmax",type:"float"},{name:"clampoutput",type:"bool"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),R2t=it(([t,e,n,r,i,a,s,o,l,c,u])=>{const f=$e(t).toVar(),h=Je(e).toVar(),p=Je(n).toVar(),A=Je(r).toVar(),g=ke(i).toVar(),w=ke(a).toVar(),T=ke(s).toVar(),C=Ef(o).toVar(),M=$e(l).toVar(),D=ke(c).toVar(),k=ke(u).toVar(),I=h.mul(p).add(A),L=ke(0).toVar();return sr(f.equal($e(0)),()=>{L.assign(sE(I))}),sr(f.equal($e(1)),()=>{L.assign(Nk(I))}),sr(f.equal($e(2)),()=>{L.assign(BZ(I,g,$e(0)))}),sr(f.equal($e(3)),()=>{L.assign(Rk(I,M,D,k))}),L.assign(L.mul(T.sub(w)).add(w)),sr(C,()=>{L.assign(Xh(L,w,T))}),L}).setLayout({name:"mx_unifiednoise3d",type:"float",inputs:[{name:"noiseType",type:"int"},{name:"position",type:"vec3"},{name:"freq",type:"vec3"},{name:"offset",type:"vec3"},{name:"jitter",type:"float"},{name:"outmin",type:"float"},{name:"outmax",type:"float"},{name:"clampoutput",type:"bool"},{name:"octaves",type:"int"},{name:"lacunarity",type:"float"},{name:"diminish",type:"float"}]}),D2t=it(([t])=>{const e=t.y,n=t.z,r=Je().toVar();return sr(e.lessThan(1e-4),()=>{r.assign(Je(n,n,n))}).Else(()=>{let i=t.x;i=i.sub(up(i)).mul(6).toVar();const a=$e(OW(i)),s=i.sub(ke(a)),o=n.mul(e.oneMinus()),l=n.mul(e.mul(s).oneMinus()),c=n.mul(e.mul(s.oneMinus()).oneMinus());sr(a.equal($e(0)),()=>{r.assign(Je(n,c,o))}).ElseIf(a.equal($e(1)),()=>{r.assign(Je(l,n,o))}).ElseIf(a.equal($e(2)),()=>{r.assign(Je(o,n,c))}).ElseIf(a.equal($e(3)),()=>{r.assign(Je(o,l,n))}).ElseIf(a.equal($e(4)),()=>{r.assign(Je(c,o,n))}).Else(()=>{r.assign(Je(n,o,l))})}),r}
vendor: 1,881 bytes, line 4193
4193).setLayout({name:"mx_hsvtorgb",type:"vec3",inputs:[{name:"hsv",type:"vec3"}]}),P2t=it(([t])=>{const e=Je(t).toVar(),n=ke(e.x).toVar(),r=ke(e.y).toVar(),i=ke(e.z).toVar(),a=ke(L0(n,L0(r,i))).toVar(),s=ke(Us(n,Us(r,i))).toVar(),o=ke(s.sub(a)).toVar(),l=ke().toVar(),c=ke().toVar(),u=ke().toVar();return u.assign(s),sr(s.greaterThan(0),()=>{c.assign(o.div(s))}).Else(()=>{c.assign(0)}),sr(c.lessThanEqual(0),()=>{l.assign(0)}).Else(()=>{sr(n.greaterThanEqual(s),()=>{l.assign(r.sub(i).div(o))}).ElseIf(r.greaterThanEqual(s),()=>{l.assign(Ro(2,i.sub(n).div(o)))}).Else(()=>{l.assign(Ro(4,n.sub(r).div(o)))}),l.mulAssign(1/6),sr(l.lessThan(0),()=>{l.addAssign(1)})}),Je(l,c,u)}).setLayout({name:"mx_rgbtohsv",type:"vec3",inputs:[{name:"c",type:"vec3"}]}),k2t=it(([t])=>{const e=Je(t).toVar(),n=vW(EW(e,Je(.04045))).toVar(),r=Je(e.div(12.92)).toVar(),i=Je(hd(Us(e.add(Je(.055)),Je(0)).div(1.055),Je(2.4))).toVar();return mi(r,i,n)}).setLayout({name:"mx_srgb_texture_to_lin_rec709",type:"vec3",inputs:[{name:"color",type:"vec3"}]}),l4e=(t,e)=>{t=ke(t),e=ke(e);const n=dn(e.dFdx(),e.dFdy()).length().mul(.7071067811865476);return Qh(t.sub(n),t.add(n),e)},c4e=(t,e,n,r)=>mi(t,e,n[r].clamp()),L2t=(t,e,n=Ca())=>c4e(t,e,n,"x"),O2t=(t,e,n=Ca())=>c4e(t,e,n,"y"),F2t=(t,e,n,r,i=Ca())=>{const a=i.x.clamp(),s=i.y.clamp(),o=mi(t,e,a),l=mi(n,r,a);return mi(o,l,s)},u4e=(t,e,n,r,i)=>mi(t,e,l4e(n,r[i])),I2t=(t,e,n,r=Ca())=>u4e(t,e,n,r,"x"),B2t=(t,e,n,r=Ca())=>u4e(t,e,n,r,"y"),U2t=(t=1,e=0,n=Ca())=>n.mul(t).add(e),V2t=(t,e=1)=>(t=ke(t),t.abs().pow(e).mul(t.sign())),j2t=(t,e=1,n=.5)=>ke(t).sub(n).mul(e).add(n),H2t=(t=Ca(),e=1,n=0)=>IZ(t.convert("vec2|vec3")).mul(e).add(n),G2t=(t=Ca(),e=1,n=0)=>sE(t.convert("vec2|vec3")).mul(e).add(n),z2t=(t=Ca(),e=1,n=0)=>(t=t.convert("vec2|vec3"),er(sE(t),IZ(t.add(dn(19,73)))).mul(e).add(n)),$2t=(t,e=Ca(),n=dn(1,1),r=dn(0,0),i=1,a=0,s=1,o=!1,l=1,c=2,u=.5)=>
4193N2t(t,e.convert("vec2|vec3"),n,r,i,a,s,o,l,c,u),q2t=(t,e=Ca(),n=dn(1,1),r=dn(0,0),i=1,a=0,s=1,o=!1,l=1,c=2,u=.5)=>R2t(t,e.convert("vec2|vec3"),n,r,i,a,s,o,l,c,u),W2t=(t=Ca(),e=1)=>T2t(t.convert("vec2|vec3"),e,$e(1)),Z2t=(t=Ca(),e=1)=>M2t(t.convert("vec2|vec3"),e,$e(1)),Y2t=(t=Ca(),e=1)=>BZ(t.convert("vec2|vec3"),e,$e(1)),X2t=(t=Ca())=>d2t(t.convert("vec2|vec3")),Q2t=(t=Ca(),e=3,n=2,r=.5,i=1)=>dD(t,$e(e),n,r).mul(i),K2t=(t=Ca(),e=3,n=2,r=.5,i=1)=>g2t(t,$e(e),n,r).mul(i),J2t=(t=Ca(),e=3,n=2,r=.5,i=1)=>Rk(t,$e(e),n,r).mul(i),eAt=(t=Ca(),e=3,n=2,r=.5,i=1)=>x2t(t,$e(e),n,r).mul(i),tAt=(t,e=ke(0))=>Ro(t,e),nAt=(t,e=ke(0))=>bi(t,e),rAt=(t,e=ke(1))=>Lr(t,e),iAt=(t,e=ke(1))=>Mf(t,e),aAt=(t,e=ke(1))=>JT(t,e),sAt=(t,e=ke(1))=>hd(t,e),oAt=(t=ke(0),e=ke(1))=>RW(t,e),lAt=()=>_6,cAt=()=>Sye,uAt=(t,e=ke(1))=>bi(e,t),fAt=(t,e,n,r)=>t.greaterThan(e).mix(n,r),dAt=(t,e,n,r)=>t.greaterThanEqual(e).mix(n,r),hAt=(t,e,n,r)=>t.equal(e).mix(n,r),pAt=(t,e=null)=>{if(typeof e=="string"){const n={x:0,r:0,y:1,g:1,z:2,b:2,w:3,a:3},r=e.replace(/^out/,"").toLowerCase();if(n[r]!==void 0)return t.element(n[r])}if(typeof e=="number")return t.element(e);if(typeof e=="string"&&e.length===1){const n={x:0,r:0,y:1,g:1,z:2,b:2,w:3,a:3};if(n[e]!==void 0)return t.element(n[e])}return t},mAt=(t,e=dn(.5,.5),n=dn(1,1),r=ke(0),i=dn(0,0))=>{let a=t;if(e&&(a=a.sub(e)),n&&(a=a.mul(n)),r){const s=r.mul(Math.PI/180),o=s.cos(),l=s.sin();a=dn(a.x.mul(o).sub(a.y.mul(l)),a.x.mul(l).add(a.y.mul(o)))}return e&&(a=a.add(e)),i&&(a=a.add(i)),a},AAt=(t,e)=>{t=dn(t),e=ke(e);const n=e.mul(Math.PI/180);return nE(t,n)},gAt=(t,e,n)=>{t=Je(t),e=ke(e),n=Je(n);const r=e.mul(Math.PI/180),i=n.normalize(),a=r.cos(),s=r.sin(),o=ke(1).sub(a);return t.mul(a).add(i.cross(t).mul(s)).add(i.mul(i.dot(t)).mul(o))},xAt=(t,e)=>(t=Je(t),e=ke(e),sZ(t,e)),vAt=it(([t,e,n])=>{const r=R0(t).toVar(),i=bi(ke(.5).mul(e.sub(n)),hp).div(r).toVar(),a=bi(ke(-.5).mul(e.sub(n)),hp).div(r).toVar(),s=Je().toVar();s.x=r.x.greaterThan(ke(0)).select(i.x,a.x),s.y=r.y.greaterThan(ke(0)).select(i.y,a.y),s.z=r.z.greaterThan(ke(0)).select(i.z,a.z);const o=L0(s.x,s.y,s.z).toVar();return hp.add(r.mul(o)).toVar().sub(n)}),f4e=it(([t,e])=>{const n=t.x,r=t.y,i=t.z;let a=e.element(0).mul(.886227);return a=a.add(e.element(1).mul(2*.511664).mul(r)),a=a.add(e.element(2).mul(2*.511664).mul(i)),a=a.add(e.element(3).mul(2*.511664).mul(n)),a=a.add(e.element(4).mul(2*.429043).mul(n).mul(r)),a=a.add(e.element(5).mul(2*.429043).mul(r).mul(i)),a=a.add(e.element(6).mul(i.mul(i).mul(.743125).sub(.247708))),a=a.add(e.element(7).mul(2*.429043).mul(n).mul(i)),a=a.add(e.element(8).mul(.429043).mul(Lr(n,n).sub(Lr(r,r)))),a});var ie=Object.freeze({__proto__:null,BRDF_GGX:xZ,BRDF_Lambert:wy,BasicPointShadowFilter:Jye,BasicShadowFilter:zye,Break:Vve,Const:sxe,Continue:fft,DFGLUT:Y5,D_GGX:tye,Discard:bxe,EPSILON:uk,F_Schlick:I_,Fn:it,HALF_PI:But,INFINITY:Out,If:sr,Loop:ba,NodeAccess:fc,NodeShaderStage:Ow,NodeType:rut,NodeUpdateType:_r,OnBeforeFrameUpdate:k1t,OnBeforeMaterialUpdate:P1t,OnBeforeObjectUpdate:D1t,OnFrameUpdate:R1t,OnMaterialUpdate:N1t,OnObjectUpdate:C1t,PCFShadowFilter:$ye,PCFSoftShadowFilter:qye,PI:aD,PI2:Fut,PointShadowFilter:e4e,Return:r0t,Schlick_to_F0:pH,ShaderNode:Z8,Stack:sk,Switch:Tut,TBNViewMatrix:kv,TWO_PI:Iut,VSMShadowFilter:Wye,V_GGX_SmithCorrelated:eye,Var:axe,VarIntent:oxe,abs:qa,acesFilmicToneMapping:Oye,acos:NW,acosh:Fge,add:Ro,addMethodChaining:zt,addNodeElement:o0t,agxToneMapping:Fye,all:Ege,alphaT:nD,and:fge,anisotropy:BA,anisotropyB:ey,anisotropyT:vS,any:Mge,append:Nut,array:rge,arrayBuffer:Mut,asin:Lge,asinh:Oge,assign:ige,atan:RW,atanh:Ige,atomicAdd:Fpt,atomicAnd:Vpt,atomicFunc:Ip,atomicLoad:Lpt,atomicMax:Bpt,atomicMin:Upt,atomicOr:jpt,atomicStore:Opt,atomicSub:Ipt,atomicXor:Hpt,attenuationColor:SW,attenuationDistance:wW,attribute:D2,attributeArray:O1t,backgroundBlurriness:Mye,backgroundIntensity:vH,backgroundRotation:Cye,batch:Ive,bentNormalView:tve,billboarding:d1t,bitAnd:mge,bitNot:Age,bitOr:gge,bitXor:xge,bitangentGeometry:W0t,bitangentLocal:Z0t,bitangentView:Jxe,bitangentWorld:Y0t,bitcast:bye,blendBurn:Rft,blendColor:Lft,blendDodge:Dft,blendOverlay:kft,blendScreen:Pft,blur:lye,bool:Ef,buffer:eE,bufferAttribute:qW,builtin:$2,builtinAOContext:rxe,builtinShadowContext:nxe,bumpMap:sZ,bvec2:XAe,bvec3:vW,bvec4:QAe,bypass:yxe,cache:vxe,call:age,cameraFar:qA,cameraIndex:ux,cameraNear:$A,cameraNormalMatrix:_0t,cameraPosition:Dxe,cameraProjectionMatrix:h2,cameraProjectionMatrixInverse:Rxe,cameraViewMatrix:Bd,cameraViewport:b0t,cameraWorldMatrix:y0t,cbrt:Yge,cdl:J1t,ceil:dk,checker:Imt,cineonToneMapping:Lye,clamp:Xh,clearcoat:JR,clearcoatNormalView:WA,clearcoatRoughness:_3,clipSpace:Lxe,code:Ek,color:YAe,colorSpaceToWorking:pk,colorToDirection:Q0t,compute:xxe,computeKernel:WW,computeSkinning:cft,context:z2,convert:JAe,convertColorSpace:$ut,convertToTexture:w1t,cos:gh,cosh:Dge,countLeadingZeros:Hht,countOneBits:Ght,countTrailingZeros:jht,cross:R2,cubeTexture:Pu,cubeTextureBase:aZ,dFdx:kW,dFdy:LW,dashSize:K9,debug:wxe,decrement:Sge,decrementBefore:bge,defaultBuildStages:X9,defaultShaderStages:HAe,defined:P_,degrees:Nge,deltaTime:i1t,densityFogFactor:jye,depth:pZ,depthPass:apt,determinant:Hge,difference:qge,diffuseColor:va,diffuseContribution:fv,directPointLight:n4e,directionToColor:nve,directionToFaceDirection:v6,dispersion:TW,disposeShadowMaterial:Yye,distance:$ge,div:Mf,dot:Sd,drawIndex:gxe,dynamicBufferAttribute:Xut,element:KAe,emissive:rH,equal:sge,equirectUV:mZ,exp:MW,exp2:k_,exponentialHeightFogFactor:gpt,expression:pf,faceDirection:nZ,faceForward:jW,faceforward:Uut,float:ke,floatBitsToInt:Bht,floatBitsToUint:wye,floor:up,fog:yH,fract:Yh,frameGroup:Dut,frameId:Sye,frontFacing:Oxe,fwidth:FW,gain:$ht,gapSize:iH,getConstNodeType:ZAe,getCurrentStack:AW,getDirection:sye,getDistanceAttenuation:FZ,getGeometryRoughness:Jve,getNormalFromDepth:T1t,getParallaxCorrectNormal:vAt,getRoughness:gZ,getScreenPosition:S1t,getShIrradianceAt:f4e,getShadowMaterial:Zye,getShadowRenderObjectFunction:Xye,getTextureIndex:yye,getViewPosition:D8,ggxConvolution:cye,globalId:wpt,glsl:ppt,glslFn:mpt,grayscale:Y1t,greaterThan:EW,greaterThanEqual:uge,hash:zht,highpModelNormalViewMatrix:oH,highpModelViewMatrix:sH,hue:K1t,increment:wge,incrementBefore:_ge,inspector:Txe,instance:sft,instanceIndex:Fh,instancedArray:F1t,instancedBufferAttribute:sD,instancedDynamicBufferAttribute:aH,instancedMesh:Fve,int:$e,intBitsToFloat:Uht,interleavedGradientNoise:EZ,inverse:Gge,inverseSqrt:CW,inversesqrt:Vut,invocationLocalIndex:Jut,invocationSubgroupIndex:Kut,ior:yS,iridescence:lk,iridescenceIOR:eD,iridescenceThickness:tD,isolate:w3,ive
4193c2:Go,ivec3:xW,ivec4:yW,js:dpt,label:ixe,length:fp,lengthSq:UW,lessThan:lge,lessThanEqual:cge,lightPosition:DZ,lightProjectionUV:Hye,lightShadowMatrix:Ck,lightTargetDirection:kZ,lightTargetPosition:Gye,lightViewPosition:PZ,lightingContext:Hve,lights:Amt,linearDepth:oD,linearToneMapping:Pye,localId:Spt,log:fk,log2:cp,logarithmicDepthToViewZ:bft,luminance:CZ,mat2:ok,mat3:zl,mat4:Dg,matcapUV:fye,materialAO:kve,materialAlphaTest:rve,materialAnisotropy:xve,materialAnisotropyVector:R8,materialAttenuationColor:Eve,materialAttenuationDistance:Tve,materialClearcoat:dve,materialClearcoatNormal:pve,materialClearcoatRoughness:hve,materialColor:ive,materialDispersion:Pve,materialEmissive:sve,materialEnvIntensity:tN,materialEnvRotation:iZ,materialIOR:Sve,materialIridescence:vve,materialIridescenceIOR:yve,materialIridescenceThickness:_ve,materialLightMap:lZ,materialLineDashOffset:Rve,materialLineDashSize:Cve,materialLineGapSize:Nve,materialLineScale:Mve,materialLineWidth:nft,materialMetalness:uve,materialNormal:fve,materialOpacity:oZ,materialPointSize:Dve,materialReference:Gm,materialReflectivity:nN,materialRefractionRatio:Uxe,materialRotation:mve,materialRoughness:cve,materialSheen:Ave,materialSheenRoughness:gve,materialShininess:ave,materialSpecular:ove,materialSpecularColor:lve,materialSpecularIntensity:hH,materialSpecularStrength:_S,materialThickness:wve,materialTransmission:bve,max:Us,maxMipLevel:XW,mediumpModelViewMatrix:kxe,metalness:Jm,min:L0,mix:mi,mixElement:Qge,mod:JT,modInt:Tge,modelDirection:N0t,modelNormalMatrix:Pxe,modelPosition:R0t,modelRadius:k0t,modelScale:D0t,modelViewMatrix:fx,modelViewPosition:P0t,modelViewProjection:Lve,modelWorldMatrix:pd,modelWorldMatrixInverse:L0t,morphReference:jve,mrt:_ye,mul:Lr,mx_aastep:l4e,mx_add:tAt,mx_atan2:oAt,mx_cell_noise_float:X2t,mx_contrast:j2t,mx_divide:iAt,mx_fractal_noise_float:Q2t,mx_fractal_noise_vec2:K2t,mx_fractal_noise_vec3:J2t,mx_fractal_noise_vec4:eAt,mx_frame:cAt,mx_heighttonormal:xAt,mx_hsvtorgb:D2t,mx_ifequal:hAt,mx_ifgreater:fAt,mx_ifgreatereq:dAt,mx_invert:uAt,mx_modulo:aAt,mx_multiply:rAt,mx_noise_float:H2t,mx_noise_vec3:G2t,mx_noise_vec4:z2t,mx_place2d:mAt,mx_power:sAt,mx_ramp4:F2t,mx_ramplr:L2t,mx_ramptb:O2t,mx_rgbtohsv:P2t,mx_rotate2d:AAt,mx_rotate3d:gAt,mx_safepower:V2t,mx_separate:pAt,mx_splitlr:I2t,mx_splittb:B2t,mx_srgb_texture_to_lin_rec709:k2t,mx_subtract:nAt,mx_timer:lAt,mx_transform_uv:U2t,mx_unifiednoise2d:$2t,mx_unifiednoise3d:q2t,mx_worley_noise_float:W2t,mx_worley_noise_vec2:Z2t,mx_worley_noise_vec3:Y2t,negate:PW,neutralToneMapping:Iye,nodeArray:Jv,nodeImmutable:Rn,nodeObject:Un,nodeObjectIntent:Fw,nodeObjects:ak,nodeProxy:Wr,nodeProxyIntent:fn,normalFlat:Fxe,normalGeometry:Ak,normalLocal:O0,normalMap:dH,normalView:Li,normalViewGeometry:O_,normalWorld:dx,normalWorldGeometry:Ixe,normalize:R0,not:hge,notEqual:oge,numWorkgroups:_pt,objectDirection:w0t,objectGroup:nge,objectPosition:T0t,objectRadius:C0t,objectScale:E0t,objectViewPosition:M0t,objectWorldMatrix:S0t,oneMinus:Bge,or:dge,orthographicDepthToViewZ:_ft,oscSawtooth:l1t,oscSine:a1t,oscSquare:s1t,oscTriangle:o1t,output:b3,outputStruct:Lht,overloadingFn:xc,packHalf2x16:Xht,packSnorm2x16:Zht,packUnorm2x16:Yht,parabola:xH,parallaxDirection:eve,parallaxUV:X0t,parameter:Cht,pass:rpt,passTexture:ipt,pcurve:qht,perspectiveDepthToViewZ:dZ,pmremTexture:yZ,pointShadow:t4e,pointUV:B1t,pointWidth:Rut,positionGeometry:tE,positionLocal:gs,positionPrevious:L_,positionView:co,positionViewDirection:Oa,positionWorld:hp,positionWorldDirection:tZ,posterize:ept,pow:hd,pow2:IW,pow3:Wge,pow4:BW,premultiplyAlpha:Wve,property:d2,quadBroadcast:hmt,quadSwapDiagonal:omt,quadSwapX:amt,quadSwapY:smt,radians:Cge,rand:Xge,range:vpt,rangeFogFactor:Vye,reciprocal:Vge,reference:ss,referenceBuffer:lH,reflect:zge,reflectVector:Hxe,reflectView:Vxe,reflector:x1t,refract:VW,refractVector:Gxe,refractView:jxe,reinhardToneMapping:kye,remap:ZW,remapClamp:_xe,renderGroup:rr,renderOutput:YW,rendererReference:hxe,replaceDefaultUV:c1t,rotate:nE,rotateUV:u1t,roughness:H1,round:Uge,rtt:Eye,sRGBTransferEOTF:cxe,sRGBTransferOETF:uxe,sample:M1t,sampler:h0t,samplerComparison:p0t,saturate:hk,saturation:X1t,screenCoordinate:$y,screenDPR:Cxe,screenSize:by,screenUV:dp,select:Zc,setCurrentStack:W5,setName:HW,shaderStages:Q9,shadow:Kye,shadowPositionWorld:OZ,shapeCircle:Bmt,sharedUniformGroup:ck,sheen:K0,sheenRoughness:zA,shiftLeft:vge,shiftRight:yge,shininess:rD,sign:DW,sin:Cu,sinc:Wht,sinh:Rge,skinning:Uve,smoothstep:Qh,smoothstepElement:Kge,specularColor:Xg,specularColorBlended:Dv,specularF90:Pv,spherizeUV:f1t,split:Cut,spritesheetUV:p1t,sqrt:Vu,stack:rN,step:_y,stepElement:Jge,storage:kg,storageBarrier:Cpt,storageTexture:Nye,string:Eut,struct:kht,sub:bi,subBuild:ty,subgroupAdd:$pt,subgroupAll:nmt,subgroupAnd:Qpt,subgroupAny:rmt,subgroupBallot:zpt,subgroupBroadcast:lmt,subgroupBroadcastFirst:imt,subgroupElect:Gpt,subgroupExclusiveAdd:Wpt,subgroupExclusiveMul:Xpt,subgroupInclusiveAdd:qpt,subgroupInclusiveMul:Ypt,subgroupIndex:Qut,subgroupMax:tmt,subgroupMin:emt,subgroupMul:Zpt,subgroupOr:Kpt,subgroupShuffle:cmt,subgroupShuffleDown:dmt,subgroupShuffleUp:fmt,subgroupShuffleXor:umt,subgroupSize:Tpt,subgroupXor:Jpt,tan:Pge,tangentGeometry:xk,tangentLocal:F_,tangentView:vk,tangentWorld:Kxe,tanh:kge,texture:Bi,texture3D:MZ,texture3DLevel:z1t,texture3DLoad:G1t,textureBarrier:Npt,textureBicubic:cdt,textureBicubicLevel:vZ,textureCubeUV:oye,textureLevel:d0t,textureLoad:Hs,textureSize:Pg,textureStore:V1t,thickness:bW,time:_6,toneMapping:pxe,toneMappingExposure:mxe,toonOutlinePass:opt,transformDirection:Zge,transformNormal:Bxe,transformNormalToView:rZ,transformedClearcoatNormalView:B0t,transformedNormalView:F0t,transformedNormalWorld:I0t,transmission:iD,transpose:jge,triNoise3D:t1t,triplanarTexture:m1t,triplanarTextures:Tye,trunc:OW,uint:ln,uintBitsToFloat:Vht,uniform:qn,uniformArray:Gc,uniformCubeTexture:V0t,uniformFlow:txe,uniformGroup:tge,uniformTexture:f0t,unpackHalf2x16:Jht,unpackNormal:fH,unpackSnorm2x16:Qht,unpackUnorm2x16:Kht,unpremultiplyAlpha:Oft,userData:q1t,uv:Ca,uvec2:gW,uvec3:zy,uvec4:_W,varying:cx,varyingProperty:Z5,vec2:dn,vec3:Je,vec4:er,vectorComponents:Hy,velocity:Z1t,vertexColor:qve,vertexIndex:Axe,vertexStage:lxe,vibrance:Q1t,viewZToLogarithmicDepth:hZ,viewZToOrthographicDepth:S3,viewZToPerspectiveDepth:fZ,viewZToReversedOrthographicDepth:yft,viewZToReversedPerspectiveDepth:zve,viewport:JW,viewportCoordinate:Nxe,viewportDepthTexture:uZ,viewportLinearDepth:wft,viewportMipTexture:cZ,viewportOpaqueMipTexture:Gve,viewportResolution:v0t,viewportSafeUV:h1t,viewportSharedTexture:npt,viewportSize:eZ,viewportTexture:gft,viewportUV:x0t,vogelDiskSample:yh,wgsl:hpt,wgslFn:Apt,workgroupArray:Ppt,workgroupBarrier:Mpt,workgroupId:bpt,workingToColorSpace:fxe,xor:pge});const sh=new _Z;class yAt extends hx{constructor(e,n){super(),this.renderer=e,this.nodes=n}
4193update(e,n,r){const i=this.renderer,a=this.nodes.getBackgroundNode(e)||e.background;let s=!1;if(a===null)i._clearColor.getRGB(sh),sh.a=i._clearColor.a;else if(a.isColor===!0)a.getRGB(sh),sh.a=1,s=!0;else if(a.isNode===!0){const c=this.get(e),u=a;sh.copy(i._clearColor);let f=c.backgroundMesh;if(f===void 0){let D=function(){a.removeEventListener("dispose",D),f.material.dispose(),f.geometry.dispose()};var l=D;const p=er(u).mul(vH).context({getUV:()=>Cye.mul(Ixe),getTextureLevel:()=>Mye}),A=h2.element(3).element(3).equal(1),g=Mf(1,h2.element(1).element(1)).mul(3),w=A.select(gs.mul(g),gs),T=fx.mul(er(w,0));let C=h2.mul(er(T.xyz,1));C=C.setZ(C.w);const M=new Js;M.name="Background.material",M.side=ca,M.depthTest=!1,M.depthWrite=!1,M.allowOverride=!1,M.fog=!1,M.lights=!1,M.vertexNode=C,M.colorNode=p,c.backgroundMeshNode=p,c.backgroundMesh=f=new ea(new Fp(1,32,32),M),f.frustumCulled=!1,f.name="Background.mesh",a.addEventListener("dispose",D)}const h=u.getCacheKey();c.backgroundCacheKey!==h&&(c.backgroundMeshNode.node=er(u).mul(vH),c.backgroundMeshNode.needsUpdate=!0,f.material.needsUpdate=!0,c.backgroundCacheKey=h),n.unshift(f,f.geometry,f.material,0,0,null,null)}else nn("Renderer: Unsupported background configuration.",a);const o=i.xr.getEnvironmentBlendMode();if(o==="additive"?sh.set(0,0,0,1):o==="alpha-blend"&&sh.set(0,0,0,0),i.autoClear===!0||s===!0){const c=r.clearColorValue;c.r=sh.r,c.g=sh.g,c.b=sh.b,c.a=sh.a,(i.backend.isWebGLBackend===!0||i.alpha===!0)&&(c.r*=c.a,c.g*=c.a,c.b*=c.a),r.depthClearValue=i.getClearDepth(),r.stencilClearValue=i.getClearStencil(),r.clearColor=i.autoClearColor===!0,r.clearDepth=i.autoClearDepth===!0,r.clearStencil=i.autoClearStencil===!0}else r.clearColor=!1,r.clearDepth=!1,r.clearStencil=!1}}let _At=0;class _H{constructor(e="",n=[]){this.name=e,this.bindings=n,this.id=_At++}}class bAt{constructor(e,n,r,i,a,s,o,l,c,u=[]){this.vertexShader=e,this.fragmentShader=n,this.computeShader=r,this.transforms=u,this.nodeAttributes=i,this.bindings=a,this.updateNodes=s,this.updateBeforeNodes=o,this.updateAfterNodes=l,this.observer=c,this.usedTimes=0}createBindings(){const e=[];for(const n of this.bindings)if(n.bindings[0].groupNode.shared!==!0){const i=new _H(n.name,[]);e.push(i);for(const a of n.bindings)i.bindings.push(a.clone())}else e.push(n);return e}}class pse{constructor(e,n,r=null){this.isNodeAttribute=!0,this.name=e,this.type=n,this.node=r}}class wAt{constructor(e,n,r){this.isNodeUniform=!0,this.name=e,this.type=n,this.node=r}get value(){return this.node.value}set value(e){this.node.value=e}get id(){return this.node.id}get groupNode(){return this.node.groupNode}}class d4e{constructor(e,n,r=!1,i=null){this.isNodeVar=!0,this.name=e,this.type=n,this.readOnly=r,this.count=i}}class SAt extends d4e{constructor(e,n,r=null,i=null){super(e,n),this.needsInterpolation=!1,this.isNodeVarying=!0,this.interpolationType=r,this.interpolationSampling=i}}class TAt{constructor(e,n,r=""){this.name=e,this.type=n,this.code=r,Object.defineProperty(this,"isNodeCode",{value:!0})}}let EAt=0;class TB{constructor(e=null){this.id=EAt++,this.nodesData=new WeakMap,this.parent=e}getData(e){let n=this.nodesData.get(e);return n===void 0&&this.parent!==null&&(n=this.parent.getData(e)),n}setData(e,n){this.nodesData.set(e,n)}}class MAt{constructor(e,n){this.name=e,this.members=n,this.output=!1}}class px{constructor(e,n){this.name=e,this.value=n,this.boundary=0,this.itemSize=0,this.offset=0,this.index=-1}setValue(e){this.value=e}getValue(){return this.value}}class CAt extends px{constructor(e,n=0){super(e,n),this.isNumberUniform=!0,this.boundary=4,this.itemSize=1}}class NAt extends px{constructor(e,n=new tn){super(e,n),this.isVector2Uniform=!0,this.boundary=8,this.itemSize=2}}class RAt extends px{constructor(e,n=new Pe){super(e,n),this.isVector3Uniform=!0,this.boundary=16,this.itemSize=3}}class DAt extends px{constructor(e,n=new kr){super(e,n),this.isVector4Uniform=!0,this.boundary=16,this.itemSize=4}}class PAt extends px{constructor(e,n=new Xn){super(e,n),this.isColorUniform=!0,this.boundary=16,this.itemSize=3}}class kAt extends px{constructor(e,n=new AR){super(e,n),this.isMatrix2Uniform=!0,this.boundary=8,this.itemSize=4}}class LAt extends px{constructor(e,n=new Vr){super(e,n),this.isMatrix3Uniform=!0,this.boundary=48,this.itemSize=12}}class OAt extends px{constructor(e,n=new Fr){super(e,n),this.isMatrix4Uniform=!0,this.boundary=64,this.itemSize=16}}class FAt extends CAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class IAt extends NAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class BAt extends RAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class UAt extends DAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class VAt extends PAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class jAt extends kAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class HAt extends LAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}class GAt extends OAt{constructor(e){super(e.name,e.value),this.nodeUniform=e}getValue(){return this.nodeUniform.value}getType(){return this.nodeUniform.type}}let zAt=0;const mse=new WeakMap,$At=new WeakMap,qAt=new Map([[Int8Array,"int"],[Int16Array,"int"],[Int32Array,"int"],[Uint8Array,"uint"],[Uint16Array,"uint"],[Uint32Array,"uint"],[Float32Array,"float"]]),xC=t=>/e/g.test(t)?String(t).replace(/\+/g,""):(t=Number(t),t+(t%1?"":".0"));class h4e{constructor(e,n,r){this.object=e,this.material=e&&e.material||null,this.geometry=e&&e.geometry||null,this.renderer=n,this.parser=r,this.scene=null,this.camera=null,this.nodes=[],this.sequentialNodes=[],this.updateNodes=[],this.updateBeforeNodes=[],this.updateAfterNodes=[],this.hashNodes={},this.observer=null,this.lightsNode=null,this.environmentNode=null,this.fogNode=null,this.clippingContext=null,this.vertexShader=null,this.fragmentShader=null,this.computeShader=null,this.flowNodes={vertex:[],fragment:[],compute:[]},this.flowCode={vertex:"",fragment:"",compute:""},this.uniforms={vertex:[],fragment:[],compute:[],index:0},this.structs={vertex:[],fragment:[],compute:[],index:0},this.types={vertex:[],fragment:[],compute:[],index:0},this.bindings={vertex:{},fragment:{},compute:{}},this.bindingsIndexes={},this.bindGroups=null,this.attributes=[],this.bufferAttributes=[],this.varyings=[],this.codes={},this.vars={},this.declarations={},this.flow={code:""},this.chaining=[],this.stack=rN(),this.stacks=[],this.tab=" ",this.currentFunctionNode=null,this.context={material:this.material},this.cache=new TB,this.globalCache=this.cache,this.flowsData=new WeakMap,this.shaderStage=null,this.buildStage=null,this.subBuildLayers=[],this.activeStacks=[],this.subBuildFn=null,this.fnCall=null,Object.defineProperty(this,"id",{value:zAt++})}isFlatShading(){return this.material.flatShading===!0||this.geometry.hasAttribute("normal")===!1}
4193isOpaque(){const e=this.material;return e.transparent===!1&&e.blending===Hl&&e.alphaToCoverage===!1}createRenderTarget(e,n,r){return new Op(e,n,r)}createCubeRenderTarget(e,n){return new Zve(e,n)}includes(e){return this.nodes.includes(e)}getOutputStructName(){}_getBindGroup(e,n){const r=n[0].groupNode;let i=r.shared;if(i)for(let s=1;s<n.length;s++)r!==n[s].groupNode&&(i=!1);let a;if(i){let s="";for(const u of n)if(u.isNodeUniformsGroup){u.uniforms.sort((f,h)=>f.nodeUniform.node.id-h.nodeUniform.node.id);for(const f of u.uniforms)s+=f.nodeUniform.node.id}else s+=u.nodeUniform.id;const o=this.renderer._currentRenderContext||this.renderer;let l=mse.get(o);l===void 0&&(l=new Map,mse.set(o,l));const c=x6(s);a=l.get(c),a===void 0&&(a=new _H(e,n),l.set(c,a))}else a=new _H(e,n);return a}getBindGroupArray(e,n){const r=this.bindings[n];let i=r[e];return i===void 0&&(this.bindingsIndexes[e]===void 0&&(this.bindingsIndexes[e]={binding:0,group:Object.keys(this.bindingsIndexes).length}),r[e]=i=[]),i}getBindings(){let e=this.bindGroups;if(e===null){const n={},r=this.bindings;for(const i of Q9)for(const a in r[i]){const s=r[i][a],o=n[a]||(n[a]=[]);for(const l of s)o.includes(l)===!1&&o.push(l)}e=[];for(const i in n){const a=n[i],s=this._getBindGroup(i,a);e.push(s)}this.bindGroups=e}return e}sortBindingGroups(){const e=this.getBindings();e.sort((n,r)=>n.bindings[0].groupNode.order-r.bindings[0].groupNode.order);for(let n=0;n<e.length;n++){const r=e[n];this.bindingsIndexes[r.name].group=n}}setHashNode(e,n){this.hashNodes[n]=e}addNode(e){this.nodes.includes(e)===!1&&(this.nodes.push(e),this.setHashNode(e,e.getHash(this)))}addSequentialNode(e){const n=e.getUpdateBeforeType(),r=e.getUpdateAfterType();(n!==_r.NONE||r!==_r.NONE)&&this.sequentialNodes.includes(e)===!1&&this.sequentialNodes.push(e)}buildUpdateNodes(){for(const e of this.nodes)e.getUpdateType()!==_r.NONE&&this.updateNodes.push(e);for(const e of this.sequentialNodes){const n=e.getUpdateBeforeType(),r=e.getUpdateAfterType();n!==_r.NONE&&this.updateBeforeNodes.push(e),r!==_r.NONE&&this.updateAfterNodes.push(e)}}get currentNode(){return this.chaining[this.chaining.length-1]}isFilteredTexture(e){return e.magFilter===Ba||e.magFilter===A3||e.magFilter===Km||e.magFilter===v0||e.minFilter===Ba||e.minFilter===A3||e.minFilter===Km||e.minFilter===v0}getUniformBufferLimit(){return this.renderer.backend.capabilities.getUniformBufferLimit()}addChain(e){this.chaining.push(e)}removeChain(e){if(this.chaining.pop()!==e)throw new Error("NodeBuilder: Invalid node chaining!")}getMethod(e){return e}getTernary(){return null}getNodeFromHash(e){return this.hashNodes[e]}addFlow(e,n){return this.flowNodes[e].push(n),n}setContext(e){this.context=e}getContext(){return this.context}addContext(e){const n=this.getContext();return this.setContext({...this.context,...e}),n}getSharedContext(){const e={...this.context};return delete e.material,delete e.getUV,delete e.getOutput,delete e.getTextureLevel,delete e.getAO,delete e.getShadow,e}setCache(e){this.cache=e}getCache(){return this.cache}getCacheFromNode(e,n=!0){const r=this.getDataFromNode(e);return r.cache===void 0&&(r.cache=new TB(n?this.getCache():null)),r.cache}isAvailable(){return!1}getVertexIndex(){Kt("Abstract function.")}getInstanceIndex(){Kt("Abstract function.")}getDrawIndex(){Kt("Abstract function.")}getFrontFacing(){Kt("Abstract function.")}getFragCoord(){Kt("Abstract function.")}isFlipY(){return!1}increaseUsage(e){const n=this.getDataFromNode(e);return n.usageCount=n.usageCount===void 0?1:n.usageCount+1,n.usageCount}generateTexture(){Kt("Abstract function.")}generateTextureLod(){Kt("Abstract function.")}generateArrayDeclaration(e,n){return this.getType(e)+"[ "+n+" ]"}generateArray(e,n,r=null){let i=this.generateArrayDeclaration(e,n)+"( ";for(let a=0;a<n;a++){const s=r?r[a]:null;s!==null?i+=s.build(this,e):i+=this.generateConst(e),a<n-1&&(i+=", ")}return i+=" )",i}generateStruct(e,n,r=null){const i=[];for(const a of n){const{name:s,type:o}=a;r&&r[s]&&r[s].isNode?i.push(r[s].build(this,o)):i.push(this.generateConst(o))}return e+"( "+i.join(", ")+" )"}generateConst(e,n=null){if(n===null&&(e==="float"||e==="int"||e==="uint"?n=0:e==="bool"?n=!1:e==="color"?n=new Xn:e==="vec2"||e==="uvec2"||e==="ivec2"?n=new tn:e==="vec3"||e==="uvec3"||e==="ivec3"?n=new Pe:(e==="vec4"||e==="uvec4"||e==="ivec4")&&(n=new kr)),e==="float")return xC(n);if(e==="int")return`${Math.round(n)}`;if(e==="uint")return n>=0?`${Math.round(n)}u`:"0u";if(e==="bool")return n?"true":"false";if(e==="color")return`${this.getType("vec3")}( ${xC(n.r)}, ${xC(n.g)}, ${xC(n.b)} )`;const r=this.getTypeLength(e),i=this.getComponentType(e),a=s=>this.generateConst(i,s);if(r===2)return`${this.getType(e)}( ${a(n.x)}, ${a(n.y)} )`;if(r===3)return`${this.getType(e)}( ${a(n.x)}, ${a(n.y)}, ${a(n.z)} )`;if(r===4&&e!=="mat2")return`${this.getType(e)}( ${a(n.x)}, ${a(n.y)}, ${a(n.z)}, ${a(n.w)} )`;if(r>=4&&n&&(n.isMatrix2||n.isMatrix3||n.isMatrix4))return`${this.getType(e)}( ${n.elements.map(a).join(", ")} )`;if(r>4)return`${this.getType(e)}()`;throw new Error(`NodeBuilder: Type '${e}' not found in generate constant attempt.`)}getType(e){return e==="color"?"vec3":e}hasGeometryAttribute(e){return this.geometry&&this.geometry.getAttribute(e)!==void 0}getAttribute(e,n){const r=this.attributes;for(const a of r)if(a.name===e)return a;const i=new pse(e,n);return this.registerDeclaration(i),r.push(i),i}getPropertyName(e){return e.name}isVector(e){return/vec\d/.test(e)}isMatrix(e){return/mat\d/.test(e)}isReference(e){return e==="void"||e==="property"||e==="sampler"||e==="samplerComparison"||e==="texture"||e==="cubeTexture"||e==="storageTexture"||e==="depthTexture"||e==="texture3D"}needsToWorkingColorSpace(){return!1}getComponentTypeFromTexture(e){const n=e.type;if(e.isDataTexture){if(n===Al)return"int";if(n===_a)return"uint"}return"float"}getElementType(e){return e==="mat2"?"vec2":e==="mat3"?"vec3":e==="mat4"?"vec4":this.getComponentType(e)}getComponentType(e){if(e=this.getVectorType(e),e==="float"||e==="bool"||e==="int"||e==="uint")return e;const n=/(b|i|u|)(vec|mat)([2-4])/.exec(e);return n===null?null:n[1]==="b"?"bool":n[1]==="i"?"int":n[1]==="u"?"uint":"float"}getVectorType(e){return e==="color"?"vec3":e==="texture"||e==="cubeTexture"||e==="storageTexture"||e==="texture3D"?"vec4":e}getTypeFromLength(e,n="float"){if(e===1)return n;let r=UAe(e);const i=n==="float"?"":n[0];return/mat2/.test(n)===!0&&(r=r.replace("vec","mat")),i+r}getTypeFromArray(e){return qAt.get(e.constructor)}isInteger(e){return/int|uint|(i|u)vec/.test(e)}getTypeFromAttribute(e){let n=e;e.isInterleavedBufferAttribute&&(n=e.data);const r=n.array,i=e.itemSize,a=e.normalized;let s;return!(e instanceof $me)&&a!==!0&&(s=this.getTypeFromArray(r)),this.getTypeFromLength(i,s)}getTypeLength(e){const n=this.getVectorType(e),r=/vec([2-4])/.exec(n);return r!==null?Number(r[1]):n==="float"||n==="bool"||n==="int"||n==="uint"?1:/mat2/.test(e)===!0?4:/mat3/.test(e)===!0?9:/mat4/.test(e)===!0?16:0}getVectorFromMatrix(e){return e.replace("mat","vec")}changeComponentType(e,n){return this.getTypeFromLength(this.getTypeLength(e),n)}getIntegerType(e){const n=this.getComponentType(e);return n==="int"||n==="uint"?e:this.changeComponentType(e,"int")}setActiveStack(e){this.activeStacks.push(e)}removeActiveStack(e){if(this.activeStacks[this.activeStacks.length-1]===e)this.activeStacks.pop();else throw new Error("NodeBuilder: Invalid active stack removal.")}getActiveStack(){return this.activeStacks[this.activeStacks.length-1]}getBaseStack(){return this.activeStacks[0]}
4193addStack(){this.stack=rN(this.stack);const e=AW();return this.stacks.push(e),W5(this.stack),this.stack}removeStack(){const e=this.stack;for(const n of e.nodes){const r=this.getDataFromNode(n);r.stack=e}return this.stack=e.parent,W5(this.stacks.pop()),e}getDataFromNode(e,n=this.shaderStage,r=null){r=r===null?e.isGlobal(this)?this.globalCache:this.cache:r;let i=r.getData(e);i===void 0&&(i={},r.setData(e,i)),i[n]===void 0&&(i[n]={});let a=i[n];const s=i.any?i.any.subBuilds:null,o=this.getClosestSubBuild(s);return o&&(a.subBuildsCache===void 0&&(a.subBuildsCache={}),a=a.subBuildsCache[o]||(a.subBuildsCache[o]={}),a.subBuilds=s),a}getNodeProperties(e,n="any"){const r=this.getDataFromNode(e,n);return r.properties||(r.properties={outputNode:null})}getBufferAttributeFromNode(e,n){const r=this.getDataFromNode(e,"vertex");let i=r.bufferAttribute;if(i===void 0){const a=this.uniforms.index++;i=new pse("nodeAttribute"+a,n,e),this.bufferAttributes.push(i),r.bufferAttribute=i}return i}getStructTypeNode(e,n=this.shaderStage){return this.types[n][e]||null}getStructTypeFromNode(e,n,r=null,i=this.shaderStage){const a=this.getDataFromNode(e,i,this.globalCache);let s=a.structType;if(s===void 0){const o=this.structs.index++;r===null&&(r="StructType"+o),s=new MAt(r,n),this.structs[i].push(s),this.types[i][r]=e,a.structType=s}return s}getOutputStructTypeFromNode(e,n){const r=this.getStructTypeFromNode(e,n,"OutputType","fragment");return r.output=!0,r}getUniformFromNode(e,n,r=this.shaderStage,i=null){const a=this.getDataFromNode(e,r,this.globalCache);let s=a.uniform;if(s===void 0){const o=this.uniforms.index++;s=new wAt(i||"nodeUniform"+o,n,e),this.uniforms[r].push(s),this.registerDeclaration(s),a.uniform=s}return s}getVarFromNode(e,n=null,r=e.getNodeType(this),i=this.shaderStage,a=!1){const s=this.getDataFromNode(e,i),o=this.getSubBuildProperty("variable",s.subBuilds);let l=s[o];if(l===void 0){const c=a?"_const":"_var",u=this.vars[i]||(this.vars[i]=[]),f=this.vars[c]||(this.vars[c]=0);n===null&&(n=(a?"nodeConst":"nodeVar")+f,this.vars[c]++),o!=="variable"&&(n=this.getSubBuildProperty(n,s.subBuilds));const h=e.getArrayCount(this);l=new d4e(n,r,a,h),a||u.push(l),this.registerDeclaration(l),s[o]=l}return l}isDeterministic(e){if(e.isMathNode)return this.isDeterministic(e.aNode)&&(e.bNode?this.isDeterministic(e.bNode):!0)&&(e.cNode?this.isDeterministic(e.cNode):!0);if(e.isOperatorNode)return this.isDeterministic(e.aNode)&&(e.bNode?this.isDeterministic(e.bNode):!0);if(e.isArrayNode){if(e.values!==null){for(const n of e.values)if(!this.isDeterministic(n))return!1}return!0}else if(e.isConstNode)return!0;return!1}getVaryingFromNode(e,n=null,r=e.getNodeType(this),i=null,a=null){const s=this.getDataFromNode(e,"any"),o=this.getSubBuildProperty("varying",s.subBuilds);let l=s[o];if(l===void 0){const c=this.varyings,u=c.length;n===null&&(n="nodeVarying"+u),o!=="varying"&&(n=this.getSubBuildProperty(n,s.subBuilds)),l=new SAt(n,r,i,a),c.push(l),this.registerDeclaration(l),s[o]=l}return l}registerDeclaration(e){const n=this.shaderStage,r=this.declarations[n]||(this.declarations[n]={}),i=this.getPropertyName(e);let a=1,s=i;for(;r[s]!==void 0;)s=i+"_"+a++;a>1&&(e.name=s,Kt(`TSL: Declaration name '${i}' of '${e.type}' already in use. Renamed to '${s}'.`)),r[s]=e}getCodeFromNode(e,n,r=this.shaderStage){const i=this.getDataFromNode(e);let a=i.code;if(a===void 0){const s=this.codes[r]||(this.codes[r]=[]),o=s.length;a=new TAt("nodeCode"+o,n),s.push(a),i.code=a}return a}addFlowCodeHierarchy(e,n){const{flowCodes:r,flowCodeBlock:i}=this.getDataFromNode(e);let a=!0,s=n;for(;s;){if(i.get(s)===!0){a=!1;break}s=this.getDataFromNode(s).parentNodeBlock}if(a)for(const o of r)this.addLineFlowCode(o)}addLineFlowCodeBlock(e,n,r){const i=this.getDataFromNode(e),a=i.flowCodes||(i.flowCodes=[]),s=i.flowCodeBlock||(i.flowCodeBlock=new WeakMap);a.push(n),s.set(r,!0)}addLineFlowCode(e,n=null){return e===""?this:(n!==null&&this.context.nodeBlock&&this.addLineFlowCodeBlock(n,e,this.context.nodeBlock),e=this.tab+e,/;\s*$/.test(e)||(e=e+`; 4194`),this.flow.code+=e,this)}addFlowCode(e){return this.flow.code+=e,this}addFlowTab(){return this.tab+=" ",this}removeFlowTab(){return this.tab=this.tab.slice(0,-1),this}getFlowData(e){return this.flowsData.get(e)}flowNode(e){const n=e.getNodeType(this),r=this.flowChildNode(e,n);return this.flowsData.set(e,r),r}addInclude(e){this.currentFunctionNode!==null&&this.currentFunctionNode.includes.push(e)}buildFunctionNode(e){const n=new Bye,r=this.currentFunctionNode;return this.currentFunctionNode=n,n.code=this.buildFunctionCode(e),this.currentFunctionNode=r,n}flowShaderNode(e){const n=e.layout,r={[Symbol.iterator](){let s=0;const o=Object.values(this);return{next:()=>({value:o[s],done:s++>=o.length})}}};for(const s of n.inputs)r[s.name]=new gye(s.type,s.name);e.layout=null;const i=e.call(r),a=this.flowStagesNode(i,n.type);return e.layout=n,a}
4194flowBuildStage(e,n,r=null){const i=this.getBuildStage();this.setBuildStage(n);const a=e.build(this,r);return this.setBuildStage(i),a}flowStagesNode(e,n=null){const r=this.flow,i=this.vars,a=this.declarations,s=this.cache,o=this.buildStage,l=this.stack,c={code:""};this.flow=c,this.vars={},this.declarations={},this.cache=new TB,this.stack=rN();for(const u of X9)this.setBuildStage(u),c.result=e.build(this,n);return c.vars=this.getVars(this.shaderStage),this.flow=r,this.vars=i,this.declarations=a,this.cache=s,this.stack=l,this.setBuildStage(o),c}getFunctionOperator(){return null}buildFunctionCode(){Kt("Abstract function.")}flowChildNode(e,n=null){const r=this.flow,i={code:""};return this.flow=i,i.result=e.build(this,n),this.flow=r,i}flowNodeFromShaderStage(e,n,r=null,i=null){const a=this.tab,s=this.cache,o=this.shaderStage,l=this.context;this.setShaderStage(e);const c={...this.context};delete c.nodeBlock,this.cache=this.globalCache,this.tab=" ",this.context=c;let u=null;if(this.buildStage==="generate"){const f=this.flowChildNode(n,r);i!==null&&(f.code+=`${this.tab+i} = ${f.result}; 4195`),this.flowCode[e]=this.flowCode[e]+f.code,u=f}else u=n.build(this);return this.setShaderStage(o),this.cache=s,this.tab=a,this.context=l,u}getAttributesArray(){return this.attributes.concat(this.bufferAttributes)}getAttributes(){Kt("Abstract function.")}getVaryings(){Kt("Abstract function.")}getVar(e,n,r=null){return`${r!==null?this.generateArrayDeclaration(e,r):this.getType(e)} ${n}`}getVars(e,n=!1){const r=[],i=this.vars[e];if(i!==void 0)for(const a of i)r.push(`${this.getVar(a.type,a.name,a.count)};`);return r.join(n?` 4196`:` 4197 `)}getUniforms(){Kt("Abstract function.")}getCodes(e){const n=this.codes[e];let r="";if(n!==void 0)for(const i of n)r+=i.code+` 4198`;return r}getHash(){return this.vertexShader+this.fragmentShader+this.computeShader}setShaderStage(e){this.shaderStage=e}getShaderStage(){return this.shaderStage}setBuildStage(e){this.buildStage=e}getBuildStage(){return this.buildStage}buildCode(){Kt("Abstract function.")}get subBuild(){return this.subBuildLayers[this.subBuildLayers.length-1]||null}addSubBuild(e){this.subBuildLayers.push(e)}removeSubBuild(){return this.subBuildLayers.pop()}getClosestSubBuild(e){let n;if(e&&e.isNode?e.isShaderCallNodeInternal?n=e.shaderNode.subBuilds:e.isStackNode?n=[e.subBuild]:n=this.getDataFromNode(e,"any").subBuilds:e instanceof Set?n=[...e]:n=e,!n)return null;const r=this.subBuildLayers;for(let i=n.length-1;i>=0;i--){const a=n[i];if(r.includes(a))return a}return null}getSubBuildOutput(e){return this.getSubBuildProperty("outputNode",e)}getSubBuildProperty(e="",n=null){let r;n!==null?r=this.getClosestSubBuild(n):r=this.subBuildFn;let i;return r?i=e?r+"_"+e:r:i=e,i}prebuild(){const{object:e,renderer:n,material:r}=this;if(n.contextNode.isContextNode===!0?this.context={...this.context,...n.contextNode.getFlowContextData()}:nn('NodeBuilder: "renderer.contextNode" must be an instance of `context()`.'),r&&r.contextNode&&(r.contextNode.isContextNode===!0?this.context={...this.context,...r.contextNode.getFlowContextData()}:nn('NodeBuilder: "material.contextNode" must be an instance of `context()`.')),r!==null){let i=n.library.fromMaterial(r);i===null&&(nn(`NodeBuilder: Material "${r.type}" is not compatible.`),i=new Js),i.build(this)}else this.addFlow("compute",e)}build(){this.prebuild();for(const e of X9){this.setBuildStage(e),this.context.position&&this.context.position.isNode&&this.flowNodeFromShaderStage("vertex",this.context.position);for(const n of Q9){this.setShaderStage(n);const r=this.flowNodes[n];for(const i of r)e==="generate"?this.flowNode(i):i.build(this)}}return this.setBuildStage(null),this.setShaderStage(null),this.buildCode(),this.buildUpdateNodes(),this}async buildAsync(){this.prebuild();for(const e of X9){this.setBuildStage(e),this.context.position&&this.context.position.isNode&&this.flowNodeFromShaderStage("vertex",this.context.position);for(const n of Q9){this.setShaderStage(n);const r=this.flowNodes[n];for(const i of r)e==="generate"?this.flowNode(i):i.build(this);await Gme()}}return this.setBuildStage(null),this.setShaderStage(null),this.buildCode(),this.buildUp
4198dateNodes(),this}getSharedDataFromNode(e){let n=$At.get(e);return n===void 0&&(n={}),n}getNodeUniform(e,n){const r=this.getSharedDataFromNode(e);let i=r.cache;if(i===void 0){if(n==="float"||n==="int"||n==="uint")i=new FAt(e);else if(n==="vec2"||n==="ivec2"||n==="uvec2")i=new IAt(e);else if(n==="vec3"||n==="ivec3"||n==="uvec3")i=new BAt(e);else if(n==="vec4"||n==="ivec4"||n==="uvec4")i=new UAt(e);else if(n==="color")i=new VAt(e);else if(n==="mat2")i=new jAt(e);else if(n==="mat3")i=new HAt(e);else if(n==="mat4")i=new GAt(e);else throw new Error(`Uniform "${n}" not implemented.`);r.cache=i}return i}format(e,n,r){if(n=this.getVectorType(n),r=this.getVectorType(r),n===r||r===null||this.isReference(r))return e;const i=this.getTypeLength(n),a=this.getTypeLength(r);return i===16&&a===9?`${this.getType(r)}( ${e}[ 0 ].xyz, ${e}[ 1 ].xyz, ${e}[ 2 ].xyz )`:i===9&&a===4?`${this.getType(r)}( ${e}[ 0 ].xy, ${e}[ 1 ].xy )`:i>4||a>4||a===0?e:i===a?`${this.getType(r)}( ${e} )`:i>a?(e=r==="bool"?`all( ${e} )`:`${e}.${"xyz".slice(0,a)}`,this.format(e,this.getTypeFromLength(a,this.getComponentType(n)),r)):a===4&&i>1?`${this.getType(r)}( ${this.format(e,n,"vec3")}, 1.0 )`:i===2?`${this.getType(r)}( ${this.format(e,n,"vec2")}, 0.0 )`:(i===1&&a>1&&n!==this.getComponentType(r)&&(e=`${this.getType(this.getComponentType(r))}( ${e} )`),`${this.getType(r)}( ${e} )`)}getSignature(){return`// Three.js r${Iy} - Node System 4199`}needsPreviousData(){const e=this.renderer.getMRT();return e&&e.has("velocity")||jAe(this.object).useVelocity===!0}}class Ase{constructor(){this.time=0,this.deltaTime=0,this.frameId=0,this.renderId=0,this.updateMap=new WeakMap,this.updateBeforeMap=new WeakMap,this.updateAfterMap=new WeakMap,this.renderer=null,this.material=null,this.camera=null,this.object=null,this.scene=null}_getMaps(e,n){let r=e.get(n);return r===void 0&&(r={renderId:0,frameId:0},e.set(n,r)),r}updateBeforeNode(e){const n=e.getUpdateBeforeType(),r=e.updateReference(this);if(n===_r.FRAME){const i=this._getMaps(this.updateBeforeMap,r);if(i.frameId!==this.frameId){const a=i.frameId;i.frameId=this.frameId,e.updateBefore(this)===!1&&(i.frameId=a)}}else if(n===_r.RENDER){const i=this._getMaps(this.updateBeforeMap,r);if(i.renderId!==this.renderId){const a=i.renderId;i.renderId=this.renderId,e.updateBefore(this)===!1&&(i.renderId=a)}}else n===_r.OBJECT&&e.updateBefore(this)}updateAfterNode(e){const n=e.getUpdateAfterType(),r=e.updateReference(this);if(n===_r.FRAME){const i=this._getMaps(this.updateAfterMap,r);i.frameId!==this.frameId&&e.updateAfter(this)!==!1&&(i.frameId=this.frameId)}else if(n===_r.RENDER){const i=this._getMaps(this.updateAfterMap,r);i.renderId!==this.renderId&&e.updateAfter(this)!==!1&&(i.renderId=this.renderId)}else n===_r.OBJECT&&e.updateAfter(this)}updateNode(e){const n=e.getUpdateType(),r=e.updateReference(this);if(n===_r.FRAME){const i=this._getMaps(this.updateMap,r);i.frameId!==this.frameId&&e.update(this)!==!1&&(i.frameId=this.frameId)}else if(n===_r.RENDER){const i=this._getMaps(this.updateMap,r);i.renderId!==this.renderId&&e.update(this)!==!1&&(i.renderId=this.renderId)}else n===_r.OBJECT&&e.update(this)}update(){this.frameId++,this.lastTime===void 0&&(this.lastTime=performance.now()),this.deltaTime=(performance.now()-this.lastTime)/1e3,this.lastTime=performance.now(),this.time+=this.deltaTime}}class UZ{constructor(e,n,r=null,i="",a=!1){this.type=e,this.name=n,this.count=r,this.qualifier=i,this.isConst=a}}UZ.isNodeFunctionInput=!0;class WAt extends qy{static get type(){return"AmbientLightNode"}constructor(e=null){super(e)}setup({context:e}){e.irradiance.addAssign(this.colorNode)}}class ZAt extends qy{static get type(){return"DirectionalLightNode"}constructor(e=null){super(e)}setupDirect(){const e=this.colorNode;return{lightDirection:kZ(this.light),lightColor:e}}}class YAt extends qy{static get type(){return"HemisphereLightNode"}constructor(e=null){super(e),this.lightPositionNode=DZ(e),this.lightDirectionNode=this.lightPositionNode.normalize(),this.groundColorNode=qn(new Xn).setGroup(rr)}update(e){const{light:n}=this;super.update(e),this.lightPositionNode.object3d=n,this.groundColorNode.value.copy(n.groundColor).multiplyScalar(n.intensity)}setup(e){const{colorNode:n,groundColorNode:r,lightDirectionNode:i}=this,s=dx.dot(i).mul(.5).add(.5),o=mi(r,n,s);
4199e.context.irradiance.addAssign(o)}}class VZ extends qy{static get type(){return"SpotLightNode"}constructor(e=null){super(e),this.coneCosNode=qn(0).setGroup(rr),this.penumbraCosNode=qn(0).setGroup(rr),this.cutoffDistanceNode=qn(0).setGroup(rr),this.decayExponentNode=qn(0).setGroup(rr),this.colorNode=qn(this.color).setGroup(rr)}update(e){super.update(e);const{light:n}=this;this.coneCosNode.value=Math.cos(n.angle),this.penumbraCosNode.value=Math.cos(n.angle*(1-n.penumbra)),this.cutoffDistanceNode.value=n.distance,this.decayExponentNode.value=n.decay}getSpotAttenuation(e,n){const{coneCosNode:r,penumbraCosNode:i}=this;return Qh(r,i,n)}getLightCoord(e){const n=e.getNodeProperties(this);let r=n.projectionUV;return r===void 0&&(r=Hye(this.light,e.context.positionWorld),n.projectionUV=r),r}setupDirect(e){const{colorNode:n,cutoffDistanceNode:r,decayExponentNode:i,light:a}=this,s=this.getLightVector(e),o=s.normalize(),l=o.dot(kZ(a)),c=this.getSpotAttenuation(e,l),u=s.length(),f=FZ({lightDistance:u,cutoffDistance:r,decayExponent:i});let h=n.mul(c).mul(f),p,A;return a.colorNode?(A=this.getLightCoord(e),p=a.colorNode(A)):a.map&&(A=this.getLightCoord(e),p=Bi(a.map,A.xy).onRenderUpdate(()=>a.map)),p&&(h=A.mul(2).sub(1).abs().lessThan(1).all().select(h.mul(p),h)),{lightColor:h,lightDirection:o}}}class XAt extends VZ{static get type(){return"IESSpotLightNode"}getSpotAttenuation(e,n){const r=this.light.iesMap;let i=null;if(r&&r.isTexture===!0){const a=n.acos().mul(1/Math.PI);i=Bi(r,dn(a,0),0).r}else i=super.getSpotAttenuation(n);return i}}class QAt extends qy{static get type(){return"LightProbeNode"}constructor(e=null){super(e);const n=[];for(let r=0;r<9;r++)n.push(new Pe);this.lightProbe=Gc(n)}update(e){const{light:n}=this;super.update(e);for(let r=0;r<9;r++)this.lightProbe.array[r].copy(n.sh.coefficients[r]).multiplyScalar(n.intensity)}setup(e){const n=f4e(dx,this.lightProbe);e.context.irradiance.addAssign(n)}}const KAt=it(([t,e])=>{const n=t.abs().sub(e);return fp(Us(n,0)).add(L0(Us(n.x,n.y),0))});class JAt extends VZ{static get type(){return"ProjectorLightNode"}update(e){super.update(e);const n=this.light;if(this.penumbraCosNode.value=Math.min(Math.cos(n.angle*(1-n.penumbra)),.99999),n.aspect===null){let r=1;n.map!==null&&(r=n.map.width/n.map.height),n.shadow.aspect=r}else n.shadow.aspect=n.aspect}getSpotAttenuation(e){const n=ke(0),r=this.penumbraCosNode,i=Ck(this.light).mul(e.context.positionWorld||hp);return sr(i.w.greaterThan(0),()=>{const a=i.xyz.div(i.w),s=KAt(a.xy.sub(dn(.5)),dn(.5)),o=Mf(-1,bi(1,NW(r)).sub(1));n.assign(hk(s.mul(-2).mul(o)))}),n}}const EB=new Fr,vC=new Fr;let sw=null;class egt extends qy{static get type(){return"RectAreaLightNode"}constructor(e=null){super(e),this.halfHeight=qn(new Pe).setGroup(rr),this.halfWidth=qn(new Pe).setGroup(rr),this.updateType=_r.RENDER}update(e){super.update(e);const{light:n}=this,r=e.camera.matrixWorldInverse;vC.identity(),EB.copy(n.matrixWorld),EB.premultiply(r),vC.extractRotation(EB),this.halfWidth.value.set(n.width*.5,0,0),this.halfHeight.value.set(0,n.height*.5,0),this.halfWidth.value.applyMatrix4(vC),this.halfHeight.value.applyMatrix4(vC)}setupDirectRectArea(e){let n,r;e.isAvailable("float32Filterable")?(n=Bi(sw.LTC_FLOAT_1),r=Bi(sw.LTC_FLOAT_2)):(n=Bi(sw.LTC_HALF_1),r=Bi(sw.LTC_HALF_2));const{colorNode:i,light:a}=this,s=PZ(a);return{lightColor:i,lightPosition:s,halfWidth:this.halfWidth,halfHeight:this.halfHeight,ltc_1:n,ltc_2:r}}static setLTC(e){sw=e}}class p4e{parseFunction(){Kt("Abstract function.")}}class jZ{constructor(e,n,r="",i=""){this.type=e,this.inputs=n,this.name=r,this.precision=i}getCode(){Kt("Abstract function.")}}jZ.isNodeFunction=!0;const tgt=/^\s*(highp|mediump|lowp)?\s*([a-z_0-9]+)\s*([a-z_0-9]+)?\s*\(([\s\S]*?)\)/i,ngt=/[a-z_0-9]+/ig,gse="#pragma main",rgt=t=>{t=t.trim();const e=t.indexOf(gse),n=e!==-1?t.slice(e+gse.length):t,r=n.match(tgt);if(r!==null&&r.length===5){const i=r[4],a=[];let s=null;for(;(s=ngt.exec(i))!==null;)a.push(s);const o=[];let l=0;for(;l<a.length;){const A=a[l][0]==="const";A===!0&&l++;let g=a[l][0];g==="in"||g==="out"||g==="inout"?l++:g="";const w=a[l++][0];let T=Number.parseInt(a[l][0]);Number.isNaN(T)===!1?l++:T=null;const C=a[l++][0];o.push(new UZ(w,C,T,g,A))}const c=n.substring(r[0].length),u=r[3]!==void 0?r[3]:"",f=r[2],h=r[1]!==void 0?r[1]:"",p=e!==-1?t.slice(0,e):"";return{type:f,inputs:o,name:u,precision:h,inputsCode:i,blockCode:c,headerCode:p}}else throw new Error("FunctionNode: Function is not a GLSL code.")};class igt extends jZ{constructor(e){const{type:n,inputs:r,name:i,precision:a,inputsCode:s,blockCode:o,headerCode:l}=rgt(e);super(n,r,i,a),this.inputsCode=s,this.blockCode=o,this.headerCode=l}getCode(e=this.name){let n;const r=this.blockCode;if(r!==""){const{type:i,inputsCode:a,headerCode:s,precision:o}=this;let l=`${i} ${e} ( ${a.trim()} )`;o!==""&&(l=`${o} ${l}`),n=s+l+r}else n="";return n}}class agt extends p4e{parseFunction(e){return new igt(e)}}const Zf=[],TA=[];class sgt extends hx{constructor(e,n){super(),this.renderer=e,this.backend=n,this.nodeFrame=new Ase,this.nodeBuilderCache=new Map,this.callHashCache=new Qg,this.groupsData=new Qg,this._buildQueue=[],this._buildInProgress=!1,this.cacheLib={}}updateGroup(e){const n=e.groupNode;Zf[0]=n,Zf[1]=e;let r=this.groupsData.get(Zf);return r===void 0&&this.groupsData.set(Zf,r={}),Zf[0]=null,Zf[1]=null,r.version!==n.version?(r.version=n.version,!0):!1}getForRenderCacheKey(e){return e.initialCacheKey}_createNodeBuilder(e,n){const r=this.backend.createNodeBuilder(e.object,this.renderer);return r.scene=e.scene,r.material=n,r.camera=e.camera,r.context.material=n,r.lightsNode=e.lightsNode,r.environmentNode=this.getEnvironmentNode(e.scene),r.fogNode=this.getFogNode(e.scene),r.clippingContext=e.clippingContext,this.renderer.getOutputRe
4199nderTarget()&&this.renderer.getOutputRenderTarget().multiview&&r.enableMultiview(),r}getForRender(e,n=!1){const r=this.get(e);let i=r.nodeBuilderState;if(i===void 0){const{nodeBuilderCache:a}=this,s=this.getForRenderCacheKey(e);if(i=a.get(s),i===void 0){const o=async()=>{let l=this._createNodeBuilder(e,e.material);try{n?await l.buildAsync():l.build()}catch(c){l=this._createNodeBuilder(e,new Js),n?await l.buildAsync():l.build(),nn("TSL: "+c)}return l};if(n)return o().then(l=>(i=this._createNodeBuilderState(l),a.set(s,i),i.usedTimes++,r.nodeBuilderState=i,i));{let l=this._createNodeBuilder(e,e.material);try{l.build()}catch(c){l=this._createNodeBuilder(e,new Js),l.build();let u=c.stackTrace;!u&&c.stack&&(u=new mo(c.stack)),nn("TSL: "+c,u)}i=this._createNodeBuilderState(l),a.set(s,i)}}i.usedTimes++,r.nodeBuilderState=i}return i}getForRenderAsync(e){const n=this.getForRender(e,!0);return n.then?n:Promise.resolve(n)}getForRenderDeferred(e){const n=this.get(e);if(n.nodeBuilderState!==void 0)return n.nodeBuilderState;const r=this.getForRenderCacheKey(e),i=this.nodeBuilderCache.get(r);return i!==void 0?(i.usedTimes++,n.nodeBuilderState=i,i):(n.pendingBuild!==!0&&(n.pendingBuild=!0,this._buildQueue.push(()=>this.getForRenderAsync(e).then(()=>{n.pendingBuild=!1})),this._processBuildQueue()),null)}_processBuildQueue(){if(this._buildInProgress||this._buildQueue.length===0)return;this._buildInProgress=!0,this._buildQueue.shift()().then(()=>{this._buildInProgress=!1,this._processBuildQueue()})}delete(e){if(e.isRenderObject){const n=this.get(e).nodeBuilderState;n!==void 0&&(n.usedTimes--,n.usedTimes===0&&this.nodeBuilderCache.delete(this.getForRenderCacheKey(e)))}return super.delete(e)}getForCompute(e){const n=this.get(e);let r=n.nodeBuilderState;if(r===void 0){const i=this.backend.createNodeBuilder(e,this.renderer);i.build(),r=this._createNodeBuilderState(i),n.nodeBuilderState=r}return r}_createNodeBuilderState(e){return new bAt(e.vertexShader,e.fragmentShader,e.computeShader,e.getAttributesArray(),e.getBindings(),e.updateNodes,e.updateBeforeNodes,e.updateAfterNodes,e.observer,e.transforms)}getEnvironmentNode(e){this.updateEnvironment(e);let n=null;if(e.environmentNode&&e.environmentNode.isNode)n=e.environmentNode;else{const r=this.get(e);r.environmentNode&&(n=r.environmentNode)}return n}
4199getBackgroundNode(e){this.updateBackground(e);let n=null;if(e.backgroundNode&&e.backgroundNode.isNode)n=e.backgroundNode;else{const r=this.get(e);r.backgroundNode&&(n=r.backgroundNode)}return n}getFogNode(e){return this.updateFog(e),e.fogNode||this.get(e).fogNode||null}getCacheKey(e,n){Zf[0]=e,Zf[1]=n;const r=this.renderer.info.calls,i=this.callHashCache.get(Zf)||{};if(i.callId!==r){const a=this.getEnvironmentNode(e),s=this.getFogNode(e);n&&TA.push(n.getCacheKey(!0)),a&&TA.push(a.getCacheKey()),s&&TA.push(s.getCacheKey()),TA.push(this.renderer.getOutputRenderTarget()&&this.renderer.getOutputRenderTarget().multiview?1:0),TA.push(this.renderer.shadowMap.enabled?1:0),TA.push(this.renderer.shadowMap.type),i.callId=r,i.cacheKey=QT(TA),this.callHashCache.set(Zf,i),TA.length=0}return Zf[0]=null,Zf[1]=null,i.cacheKey}get isToneMappingState(){return!this.renderer.getRenderTarget()}updateBackground(e){const n=this.get(e),r=e.background;if(r){const i=e.backgroundBlurriness===0&&n.backgroundBlurriness>0||e.backgroundBlurriness>0&&n.backgroundBlurriness===0;if(n.background!==r||i){const a=this.getCacheNode("background",r,()=>{if(r.isCubeTexture===!0||r.mapping===p3||r.mapping===m3||r.mapping===hy){if(e.backgroundBlurriness>0||r.mapping===hy)return yZ(r);{let s;return r.isCubeTexture===!0?s=Pu(r):s=Bi(r),Xve(s)}}else{if(r.isTexture===!0)return Bi(r,dp.flipY()).setUpdateMatrix(!0);r.isColor!==!0&&nn("WebGPUNodes: Unsupported background configuration.",r)}},i);n.backgroundNode=a,n.background=r,n.backgroundBlurriness=e.backgroundBlurriness}}else n.backgroundNode&&(delete n.backgroundNode,delete n.background)}getCacheNode(e,n,r,i=!1){const a=this.cacheLib[e]||(this.cacheLib[e]=new WeakMap);let s=a.get(n);return(s===void 0||i)&&(s=r(),a.set(n,s)),s}updateFog(e){const n=this.get(e),r=e.fog;if(r){if(n.fog!==r){const i=this.getCacheNode("fog",r,()=>{if(r.isFogExp2){const a=ss("color","color",r).setGroup(rr),s=ss("density","float",r).setGroup(rr);return yH(a,jye(s))}else if(r.isFog){const a=ss("color","color",r).setGroup(rr),s=ss("near","float",r).setGroup(rr),o=ss("far","float",r).setGroup(rr);return yH(a,Vye(s,o))}else nn("Renderer: Unsupported fog configuration.",r)});n.fogNode=i,n.fog=r}}else delete n.fogNode,delete n.fog}updateEnvironment(e){const n=this.get(e),r=e.environment;if(r){if(n.environment!==r){const i=this.getCacheNode("environment",r,()=>{if(r.isCubeTexture===!0)return Pu(r);if(r.isTexture===!0)return Bi(r);nn("Nodes: Unsupported environment configuration.",r)});n.environmentNode=i,n.environment=r}}else n.environmentNode&&(delete n.environmentNode,delete n.environment)}getNodeFrame(e=this.renderer,n=null,r=null,i=null,a=null){const s=this.nodeFrame;return s.renderer=e,s.scene=n,s.object=r,s.camera=i,s.material=a,s}getNodeFrameForRender(e){return this.getNodeFrame(e.renderer,e.scene,e.object,e.camera,e.material)}getOutputCacheKey(){const e=this.renderer;return e.toneMapping+","+e.currentColorSpace+","+e.xr.isPresenting}getOutputNode(e){const n=this.renderer;return e.isArrayTexture?Bi(e,dp).depth($2("gl_ViewID_OVR")).renderOutput(n.toneMapping,n.currentColorSpace):Bi(e,dp).renderOutput(n.toneMapping,n.currentColorSpace)}updateBefore(e){const n=e.getNodeBuilderState();for(const r of n.updateBeforeNodes)this.getNodeFrameForRender(e).updateBeforeNode(r)}updateAfter(e){const n=e.getNodeBuilderState();for(const r of n.updateAfterNodes)this.getNodeFrameForRender(e).updateAfterNode(r)}updateForCompute(e){const n=this.getNodeFrame(),r=this.getForCompute(e);for(const i of r.updateNodes)n.updateNode(i)}updateForRender(e){const n=this.getNodeFrameForRender(e),r=e.getNodeBuilderState();for(const i of r.updateNodes)n.updateNode(i)}needsRefresh(e){const n=this.getNodeFrameForRender(e);return e.getMonitor().needsRefresh(e,n)}dispose(){super.dispose(),this.nodeFrame=new Ase,this.nodeBuilderCache=new Map,this.cacheLib={}}}const MB=new L1;class hD{constructor(e=null){this.version=0,this.clipIntersection=null,this.cacheKey="",this.shadowPass=!1,this.viewNormalMatrix=new Vr,this.clippingGroupContexts=new WeakMap,this.intersectionPlanes=[],this.unionPlanes=[],this.parentVersion=null,e!==null&&(this.viewNormalMatrix=e.viewNormalMatrix,this.clippingGroupContexts=e.clippingGroupContexts,this.shadowPass=e.shadowPass,this.viewMatrix=e.viewMatrix)}projectPlanes(e,n,r){const i=e.length;for(let a=0;a<i;a++){MB.copy(e[a]).applyMatrix4(this.viewMatrix,this.viewNormalMatrix);const s=n[r+a],o=MB.normal;s.x=-o.x,s.y=-o.y,s.z=-o.z,s.w=MB.constant}}updateGlobal(e,n){this.shadowPass=e.overrideMaterial!==null&&e.overrideMaterial.isShadowPassMaterial,this.viewMatrix=n.matrixWorldInverse,this.viewNormalMatrix.getNormalMatrix(this.viewMatrix)}update(e,n){let r=!1;e.version!==this.parentVersion&&(this.intersectionPlanes=Array.from(e.intersectionPlanes),this.unionPlanes=Array.from(e.unionPlanes),this.parentVersion=e.version),this.clipIntersection!==n.clipIntersection&&(this.clipIntersection=n.clipIntersection,this.clipIntersection?this.unionPlanes.length=e.unionPlanes.length:this.intersectionPlanes.length=e.intersectionPlanes.length);const i=n.clippingPlanes,a=i.length;let s,o;
4199if(this.clipIntersection?(s=this.intersectionPlanes,o=e.intersectionPlanes.length):(s=this.unionPlanes,o=e.unionPlanes.length),s.length!==o+a){s.length=o+a;for(let l=0;l<a;l++)s[o+l]=new kr;r=!0}this.projectPlanes(i,s,o),r&&(this.version++,this.cacheKey=`${this.intersectionPlanes.length}:${this.unionPlanes.length}`)}getGroupContext(e){if(this.shadowPass&&!e.clipShadows)return this;let n=this.clippingGroupContexts.get(e);return n===void 0&&(n=new hD(this),this.clippingGroupContexts.set(e,n)),n.update(this,e),n}get unionClippingCount(){return this.unionPlanes.length}}class ogt{constructor(e,n,r){this.bundleGroup=e,this.camera=n,this.renderContext=r}}const EA=[];class lgt{constructor(){this.bundles=new Qg}get(e,n,r){const i=this.bundles;EA[0]=e,EA[1]=n,EA[2]=r;let a=i.get(EA);return a===void 0&&(a=new ogt(e,n,r),i.set(EA,a)),EA[0]=null,EA[1]=null,EA[2]=null,a}dispose(){this.bundles=new Qg}}class m4e{constructor(){this.lightNodes=new WeakMap,this.materialNodes=new Map,this.toneMappingNodes=new Map}fromMaterial(e){if(e.isNodeMaterial)return e;let n=null;const r=this.getMaterialNodeClass(e.type);if(r!==null){n=new r;for(const i in e)n[i]=e[i]}return n}addToneMapping(e,n){this.addType(e,n,this.toneMappingNodes)}getToneMappingFunction(e){return this.toneMappingNodes.get(e)||null}getMaterialNodeClass(e){return this.materialNodes.get(e)||null}addMaterial(e,n){this.addType(e,n,this.materialNodes)}getLightNodeClass(e){return this.lightNodes.get(e)||null}addLight(e,n){this.addClass(e,n,this.lightNodes)}addType(e,n,r){if(r.has(n)){Kt(`Redefinition of node ${n}`);return}if(typeof e!="function")throw new Error(`Node class ${e.name} is not a class.`);if(typeof n=="function"||typeof n=="object")throw new Error(`Base class ${n} is not a class.`);r.set(n,e)}addClass(e,n,r){if(r.has(n)){Kt(`Redefinition of node ${n.name}`);return}if(typeof e!="function")throw new Error(`Node class ${e.name} is not a class.`);if(typeof n!="function")throw new Error(`Base class ${n.name} is not a class.`);r.set(n,e)}}const cgt=new LZ,xse=new WeakMap;class ugt{createNode(e=[]){return new LZ().setLights(e)}getNode(e){if(e.isQuadMesh)return cgt;let n=xse.get(e);return n===void 0&&(n=this.createNode(),xse.set(e,n)),n}}class Iw extends Op{constructor(e=1,n=1,r={}){super(e,n,r),this.isXRRenderTarget=!0,this._hasExternalTextures=!1,this._autoAllocateDepthBuffer=!0,this._isOpaqueFramebuffer=!1}copy(e){return super.copy(e),this._hasExternalTextures=e._hasExternalTextures,this._autoAllocateDepthBuffer=e._autoAllocateDepthBuffer,this._isOpaqueFramebuffer=e._isOpaqueFramebuffer,this}}const vse=new Pe,yse=new Pe,_se=new WeakMap;class fgt extends Fd{constructor(e,n=!1){super(),this.enabled=!1,this.isPresenting=!1,this.cameraAutoUpdate=!0,this._renderer=e,this._cameraL=new jl,this._cameraL.viewport=new kr,this._cameraR=new jl,this._cameraR.viewport=new kr,this._cameras=[this._cameraL,this._cameraR],this._cameraXR=new f2e,this._currentDepthNear=null,this._currentDepthFar=null,this._controllers=[],this._controllerInputSources=[],this._xrRenderTarget=null,this._layers=[],this._sessionUsesLayers=!1,this._supportsGlBinding=typeof XRWebGLBinding<"u",this._createXRLayer=ggt.bind(this),this._gl=null,this._currentAnimationContext=null,this._currentAnimationLoop=null,this._currentPixelRatio=null,this._currentSize=new tn,this._onSessionEvent=pgt.bind(this),this._onSessionEnd=mgt.bind(this),this._onInputSourcesChange=Agt.bind(this),this._onAnimationFrame=xgt.bind(this),this._referenceSpace=null,this._referenceSpaceType="local-floor",this._customReferenceSpace=null,this._framebufferScaleFactor=1,this._foveation=1,this._session=null,this._glBaseLayer=null,this._glBinding=null,this._glProjLayer=null,this._xrFrame=null,this._supportsLayers=this._supportsGlBinding&&"createProjectionLayer"in XRWebGLBinding.prototype,this._useMultiviewIfPossible=n,this._useMultiview=!1}getController(e){return this._getController(e).getTargetRaySpace()}getControllerGrip(e){return this._getController(e).getGripSpace()}getHand(e){return this._getController(e).getHandSpace()}getFoveation(){if(!(this._glProjLayer===null&&this._glBaseLayer===null))return this._foveation}setFoveation(e){this._foveation=e,this._glProjLayer!==null&&(this._glProjLayer.fixedFoveation=e),this._glBaseLayer!==null&&this._glBaseLayer.fixedFoveation!==void 0&&(this._glBaseLayer.fixedFoveation=e)}getFramebufferScaleFactor(){return this._framebufferScaleFactor}setFramebufferScaleFactor(e){this._framebufferScaleFactor=e,this.isPresenting===!0&&Kt("XRManager: Cannot change framebuffer scale while presenting.")}getReferenceSpaceType(){return this._referenceSpaceType}setReferenceSpaceType(e){this._referenceSpaceType=e,this.isPresenting===!0&&Kt("XRManager: Cannot change reference space type while presenting.")}getReferenceSpace(){return this._customReferenceSpace||this._referenceSpace}setReferenceSpace(e){this._customReferenceSpace=e}getCamera(){return this._cameraXR}getEnvironmentBlendMode(){if(this._session!==null)return this._session.environmentBlendMode}getBinding(){return this._glBinding===null&&this._supportsGlBinding&&(this._glBinding=new XRWebGLBinding(this._session,this._gl)),this._glBinding}getFrame(){return this._xrFrame}useMultiview(){return this._useMultiview}createQuadLayer(e,n,r,i,a,s,o,l={}){const c=new WT(e,n),u=new Iw(a,s,{format:fo,type:rs,depthTexture:new hc(a,s,l.stencil?N0:_a,void 0,void 0,void 0,void 0,void 0,void 0,l.stencil?Wc:Gl),stencilBuffer:l.stencil,resolveDepthBuffer:!1,resolveStencilBuffer:!1});u._autoAllocateDepthBuffer=!0;const f=new od({color:16777215,side:Uu});f.map=u.texture,f.map.offset.y=1,f.map.repeat.y=-1;const h=new ea(c,f);h.position.copy(r),h.quaternion.copy(i);const p={type:"quad",width:e,height:n,translation:r,quaternion:i,pixelwidth:a,pixelheight:s,plane:h,material:f,rendercall:o,renderTarget:u};if(this._layers.push(p),this._session!==null){p.plane.material=new od({color:16777215,side:Uu}),p.plane.material.blending=Qv,p.plane.material.blendEquation=oc,p.plane.material.blendSrc=Bm,p.plane.material.blendDst=Bm,p.xrlayer=this._createXRLayer(p);const A=this._session.renderState.layers;A.unshift(p.xrlayer),this._session.updateRenderState({layers:A})}else u.isXRRenderTarget=!1;return h}createCylinderLayer(e,n,r,i,a,s,o,l,c={}){const u=new ZP(e,e,e*n/r,64,64,!0,Math.PI-n/2,n),f=new Iw(s,o,{format:fo,type:rs,depthTexture:new hc(s,o,c.stencil?N0:_a,void 0,void 0,void 0,void 0,void 0,void 0,c.stencil?Wc:Gl),stencilBuffer:c.stencil,resolveDepthBuffer:!1,resolveStencilBuffer:!1});f._autoAllocateDepthBuffer=!0;const h=new od({color:16777215,side:ca});h.map=f.texture,h.map.offset.y=1,h.map.repeat.y=-1;const p=new ea(u,h);p.position.copy(i),p.quaternion.copy(a);
4199const A={type:"cylinder",radius:e,centralAngle:n,aspectratio:r,translation:i,quaternion:a,pixelwidth:s,pixelheight:o,plane:p,material:h,rendercall:l,renderTarget:f};if(this._layers.push(A),this._session!==null){A.plane.material=new od({color:16777215,side:ca}),A.plane.material.blending=Qv,A.plane.material.blendEquation=oc,A.plane.material.blendSrc=Bm,A.plane.material.blendDst=Bm,A.xrlayer=this._createXRLayer(A);const g=this._session.renderState.layers;g.unshift(A.xrlayer),this._session.updateRenderState({layers:g})}else f.isXRRenderTarget=!1;return p}renderLayers(){const e=new Pe,n=new bd,r=this._renderer,i=this.isPresenting;this.isPresenting=!1;const a=new tn;r.getSize(a);const s=r.getRenderTarget();for(const o of this._layers){o.renderTarget.isXRRenderTarget=this._session!==null,o.renderTarget._hasExternalTextures=o.renderTarget.isXRRenderTarget;const l=r.contextNode;let c;if(o.renderTarget.isXRRenderTarget&&this._sessionUsesLayers){o.xrlayer.transform=new XRRigidTransform(o.plane.getWorldPosition(e),o.plane.getWorldQuaternion(n));const u=this._glBinding.getSubImage(o.xrlayer,this._xrFrame);r.backend.setXRRenderTargetTextures(o.renderTarget,u.colorTexture,void 0),r._setXRLayerSize(o.renderTarget.width,o.renderTarget.height),c=_se.get(l),c===void 0&&(c=l.context({getOutput:f=>YW(f,r.toneMapping,r.outputColorSpace)}),_se.set(l,c))}else c=l;r.contextNode=c,r.setRenderTarget(o.renderTarget),o.rendercall(),r.contextNode=l}r.setRenderTarget(s),r._setXRLayerSize(a.x,a.y),this.isPresenting=i}getSession(){return this._session}async setSession(e){const n=this._renderer,r=n.backend;this._gl=n.getContext();const i=this._gl,a=i.getContextAttributes();if(this._session=e,e!==null){if(r.isWebGPUBackend===!0)throw new Error('THREE.XRManager: XR is currently not supported with a WebGPU backend. Use WebGL by passing "{ forceWebGL: true }" to the constructor of the renderer.');if(e.addEventListener("select",this._onSessionEvent),e.addEventListener("selectstart",this._onSessionEvent),e.addEventListener("selectend",this._onSessionEvent),e.addEventListener("squeeze",this._onSessionEvent),e.addEventListener("squeezestart",this._onSessionEvent),e.addEventListener("squeezeend",this._onSessionEvent),e.addEventListener("end",this._onSessionEnd),e.addEventListener("inputsourceschange",this._onInputSourcesChange),await r.makeXRCompatible(),this._currentPixelRatio=n.getPixelRatio(),n.getSize(this._currentSize),this._currentAnimationContext=n._animation.getContext(),this._currentAnimationLoop=n._animation.getAnimationLoop(),n._animation.stop(),this._supportsLayers===!0){let s=null,o=null,l=null;n.depth&&(l=n.stencil?i.DEPTH24_STENCIL8:i.DEPTH_COMPONENT24,s=n.stencil?Wc:Gl,o=n.stencil?N0:_a);const c={colorFormat:i.RGBA8,depthFormat:l,scaleFactor:this._framebufferScaleFactor,clearOnAccess:!1};this._useMultiviewIfPossible&&n.hasFeature("OVR_multiview2")&&(c.textureType="texture-array",this._useMultiview=!0),this._glBinding=this.getBinding();const u=this._glBinding.createProjectionLayer(c),f=[u];this._glProjLayer=u,n.setPixelRatio(1),n._setXRLayerSize(u.textureWidth,u.textureHeight);const h=this._useMultiview?2:1,p=new hc(u.textureWidth,u.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,s,h);if(this._xrRenderTarget=new Iw(u.textureWidth,u.textureHeight,{format:fo,type:rs,colorSpace:n.outputColorSpace,depthTexture:p,stencilBuffer:n.stencil,samples:a.antialias?4:0,resolveDepthBuffer:u.ignoreDepthValues===!1,resolveStencilBuffer:u.ignoreDepthValues===!1,depth:this._useMultiview?2:1,multiview:this._useMultiview}),this._xrRenderTarget._hasExternalTextures=!0,this._xrRenderTarget.depth=this._useMultiview?2:1,this._sessionUsesLayers=e.enabledFeatures.includes("layers"),this._referenceSpace=await e.requestReferenceSpace(this.getReferenceSpaceType()),this._sessionUsesLayers)for(const A of this._layers)A.plane.material=new od({color:16777215,side:A.type==="cylinder"?ca:Uu}),A.plane.material.blending=Qv,A.plane.material.blendEquation=oc,A.plane.material.blendSrc=Bm,A.plane.material.blendDst=Bm,A.xrlayer=this._createXRLayer(A),f.unshift(A.xrlayer);e.updateRenderState({layers:f})}else{const s={antialias:n.currentSamples>0,alpha:!0,depth:n.depth,stencil:n.stencil,framebufferScaleFactor:this.getFramebufferScaleFactor()},o=new XRWebGLLayer(e,i,s);this._glBaseLayer=o,e.updateRenderState({baseLayer:o}),n.setPixelRatio(1),n._setXRLayerSize(o.framebufferWidth,o.framebufferHeight),this._xrRenderTarget=new Iw(o.framebufferWidth,o.framebufferHeight,{format:fo,type:rs,colorSpace:n.outputColorSpace,stencilBuffer:n.stencil,resolveDepthBuffer:o.ignoreDepthValues===!1,resolveStencilBuffer:o.ignoreDepthValues===!1}),this._xrRenderTarget._isOpaqueFramebuffer=!0,this._referenceSpace=await e.requestReferenceSpace(this.getReferenceSpaceType())}this.setFoveation(this.getFoveation()),n._animation.setAnimationLoop(this._onAnimationFrame),n._animation.setContext(e),n._animation.start(),this.isPresenting=!0,this.dispatchEvent({type:"sessionstart"})}}updateCamera(e){const n=this._session;if(n===null)return;const r=e.near,i=e.far,a=this._cameraXR,s=this._cameraL,o=this._cameraR;a.near=o.near=s.near=r,a.far=o.far=s.far=i,a.isMultiViewCamera=this._useMultiview,(this._currentDepthNear!==a.near||this._currentDepthFar!==a.far)&&(n.updateRenderState({depthNear:a.near,depthFar:a.far}),this._currentDepthNear=a.near,this._currentDepthFar=a.far),a.layers.mask=e.layers.mask|6,s.layers.mask=a.layers.mask&-5,o.layers.mask=a.layers.mask&-3;const l=e.parent,c=a.cameras;bse(a,l);for(let u=0;u<c.length;u++)bse(c[u],l);c.length===2?dgt(a,s,o):a.projectionMatrix.copy(s.projectionMatrix),hgt(e,a,l)}_getController(e){let n=this._controllers[e];return n===void 0&&(n=new V9,this._controllers[e]=n),n}}function dgt(t,e,n){vse.setFromMatrixPosition(e.matrixWorld),yse.setFromMatrixPosition(n.matrixWorld);const r=vse.distanceTo(yse),i=e.projectionMatrix.elements,a=n.projectionMatrix.elements,s=i[14]/(i[10]-1),o=i[14]/(i[10]+1),l=(i[9]+1)/i[5],c=(i[9]-1)/i[5],u=(i[8]-1)/i[0],f=(a[8]+1)/a[0],h=s*u,p=s*f,A=r/(-u+f),g=A*-u;if(e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(g),t.translateZ(A),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert(),i[10]===-1)t.projectionMatrix.copy(e.projectionMatrix),t.projectionMatrixInverse.copy(e.projectionMatrixInverse);else{const w=s+A,T=o+A,C=h-g,M=p+(r-g),D=l*o/T*w,k=c*o/T*w;t.projectionMatrix.makePerspective(C,M,D,k,w,T),t.projectionMatrixInverse.copy(t.projectionMatrix).invert()}}function bse(t,e){e===null?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}function hgt(t,e,n){n===null?t.matrix.copy(e.matrixWorld):(t.matrix.copy(n.matrixWorld),t.matrix.invert(),t.matrix.multiply(e.matrixWorld)),t.matrix.decompose(t.position,t.quaternion,t.scale),t.updateMatrixWorld(!0),t.projectionMatrix.copy(e.projectionMatrix),t.projectionMatrixInverse.copy(e.projectionMatrixInverse),t.isPerspectiveCamera&&(t.fov=Ay*2*Math.atan(1/t.projectionMatrix.elements[5]),t.zoom=1)}function pgt(t){const e=this._controllerInputSources.indexOf(t.inputSource);if(e===-1)return;const n=this._controllers[e];if(n!==void 0){const r=this.getReferenceSpace();n.update(t.inputSource,t.frame,r),n.dispatchEvent({type:t.type,data:t.inputSource})}}function mgt(){const t=this._session,e=this._renderer;t.removeEventListener("select",this._onSessionEvent),t.removeEventListener("selectstart",this._onSessionEvent),t.removeEventListener("selectend",this._onSessionEvent),t.removeEventListener("squeeze",this._onSessionEvent),t.removeEventListener("squeezestart",this._onSessionEvent),t.removeEventListener("squeezeend",this._onSessionEvent),t.removeEventListener("end",this._onSessionEnd),t.removeEventListener("inputsourceschange",this._onInputSourcesChange);for(let n=0;n<this._controllers.length;n++){const r=this._controllerInputSources[n];r!==null&&(this._controllerInputSources[n]=null,this._controllers[n].disconnect(r))}if(this._currentDepthNear=null,this._currentDepthFar=null,e._resetXRState(),this._session=null,this._xrRenderTarget=null,this._glBinding=null,this._glBaseLayer=null,this._glProjLayer=null,this._sessionUsesLayers===!0)for(const n of this._layers)n.renderTarget=new Iw(n.pixelwidth,n.pixelheight,{format:fo,type:rs,depthTexture:new hc(n.pixelwidth,n.pixelheight,n.stencilBuffer?N0:_a,void 0,void 0,void 0,void 0,void 0,void 0,n.stencilBuffer?Wc:Gl),stencilBuffer:n.stencilBuffer,resolveDepthBuffer:!1,resolveStencilBuffer:!1}),n.renderTarget.isXRRenderTarget=!1,n.plane.material=n.material,n.material.map=n.renderTarget.texture,n.material.map.offset.y=1,n.material.map.repeat.y=-1,delete n.xrlayer;this.isPresenting=!1,this._useMultiview=!1,e._animation.stop(),e._animation.setAnimationLoop(this._currentAnimationLoop),e._animation.setContext(this._currentAnimationContext),e._animation.start(),e.setP
4199ixelRatio(this._currentPixelRatio),e.setSize(this._currentSize.width,this._currentSize.height,!1),this.dispatchEvent({type:"sessionend"})}function Agt(t){const e=this._controllers,n=this._controllerInputSources;for(let r=0;r<t.removed.length;r++){const i=t.removed[r],a=n.indexOf(i);a>=0&&(n[a]=null,e[a].disconnect(i))}for(let r=0;r<t.added.length;r++){const i=t.added[r];let a=n.indexOf(i);if(a===-1){for(let o=0;o<e.length;o++)if(o>=n.length){n.push(i),a=o;break}else if(n[o]===null){n[o]=i,a=o;break}if(a===-1)break}const s=e[a];s&&s.connect(i)}}function ggt(t){return t.type==="quad"?this._glBinding.createQuadLayer({transform:new XRRigidTransform(t.translation,t.quaternion),width:t.width/2,height:t.height/2,space:this._referenceSpace,viewPixelWidth:t.pixelwidth,viewPixelHeight:t.pixelheight,clearOnAccess:!1}):this._glBinding.createCylinderLayer({transform:new XRRigidTransform(t.translation,t.quaternion),radius:t.radius,centralAngle:t.centralAngle,aspectRatio:t.aspectRatio,space:this._referenceSpace,viewPixelWidth:t.pixelwidth,viewPixelHeight:t.pixelheight,clearOnAccess:!1})}function xgt(t,e){if(e===void 0)return;const n=this._cameraXR,r=this._renderer,i=r.backend,a=this._glBaseLayer,s=this.getReferenceSpace(),o=e.getViewerPose(s);if(this._xrFrame=e,o!==null){const l=o.views;this._glBaseLayer!==null&&i.setXRTarget(a.framebuffer);let c=!1;l.length!==n.cameras.length&&(n.cameras.length=0,c=!0);for(let u=0;u<l.length;u++){const f=l[u];let h;if(this._supportsLayers===!0){const A=this._glBinding.getViewSubImage(this._glProjLayer,f);h=A.viewport,u===0&&i.setXRRenderTargetTextures(this._xrRenderTarget,A.colorTexture,this._glProjLayer.ignoreDepthValues&&!this._useMultiview?void 0:A.depthStencilTexture)}else h=a.getViewport(f);let p=this._cameras[u];p===void 0&&(p=new jl,p.layers.enable(u),p.viewport=new kr,this._cameras[u]=p),p.matrix.fromArray(f.transform.matrix),p.matrix.decompose(p.position,p.quaternion,p.scale),p.projectionMatrix.fromArray(f.projectionMatrix),p.projectionMatrixInverse.copy(p.projectionMatrix).invert(),p.viewport.set(h.x,h.y,h.width,h.height),u===0&&(n.matrix.copy(p.matrix),n.matrix.decompose(n.position,n.quaternion,n.scale)),c===!0&&n.cameras.push(p)}r.setOutputRenderTarget(this._xrRenderTarget)}for(let l=0;l<this._controllers.length;l++){const c=this._controllerInputSources[l],u=this._controllers[l];c!==null&&u!==void 0&&u.update(c,e,s)}this._currentAnimationLoop&&this._currentAnimationLoop(t,e),e.detectedPlanes&&this.dispatchEvent({type:"planesdetected",data:e}),this._xrFrame=null}class vgt extends Fd{constructor(e){super(),this.domElement=e,this._pixelRatio=1,this._width=this.domElement.width,this._height=this.domElement.height,this._viewport=new kr(0,0,this._width,this._height),this._scissor=new kr(0,0,this._width,this._height),this._scissorTest=!1,this.colorTexture=new Oq,this.depthTexture=new hc}getPixelRatio(){return this._pixelRatio}getDrawingBufferSize(e){return e.set(this._width*this._pixelRatio,this._height*this._pixelRatio).floor()}getSize(e){return e.set(this._width,this._height)}setPixelRatio(e=1){this._pixelRatio!==e&&(this._pixelRatio=e,this.setSize(this._width,this._height,!1))}setDrawingBufferSize(e,n,r){this.xr&&this.xr.isPresenting||(this._width=e,this._height=n,this._pixelRatio=r,this.domElement.width=Math.floor(e*r),this.domElement.height=Math.floor(n*r),this.setViewport(0,0,e,n),this._dispatchResize())}setSize(e,n,r=!0){this.xr&&this.xr.isPresenting||(this._width=e,this._height=n,this.domElement.width=Math.floor(e*this._pixelRatio),this.domElement.height=Math.floor(n*this._pixelRatio),r===!0&&(this.domElement.style.width=e+"px",this.domElement.style.height=n+"px"),this.setViewport(0,0,e,n),this._dispatchResize())}getScissor(e){const n=this._scissor;return e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height,e}setScissor(e,n,r,i){const a=this._scissor;e.isVector4?a.copy(e):a.set(e,n,r,i)}getScissorTest(){return this._scissorTest}setScissorTest(e){this._scissorTest=e}getViewport(e){return e.copy(this._viewport)}setViewport(e,n,r,i,a=0,s=1){const o=this._viewport;e.isVector4?o.copy(e):o.set(e,n,r,i),o.minDepth=a,o.maxDepth=s}_dispatchResize(){this.dispatchEvent({type:"resize"})}dispose(){this.dispatchEvent({type:"dispose"})}}const wse=new Cq,m8=new tn,CB=new kr,NB=new h6,RB=new kq,yC=new Fr,Nm=new kr,ygt={[Uu]:ca,[ca]:Uu,[Zs]:Zs};class _gt{constructor(e,n={}){this.isRenderer=!0;const{logarithmicDepthBuffer:r=!1,reversedDepthBuffer:i=!1,alpha:a=!0,depth:s=!0,stencil:o=!1,antialias:l=!1,samples:c=0,getFallback:u=null,outputBufferType:f=is,multiview:h=!1}=n;this.backend=e,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.alpha=a,this.logarithmicDepthBuffer=r,this.reversedDepthBuffer=i,this.outputColorSpace
4199=rc,this.toneMapping=cc,this.toneMappingExposure=1,this.sortObjects=!0,this.depth=s,this.stencil=o,this.info=new pht,this.contextNode=z2(),this.library=new m4e,this.lighting=new ugt,this._samples=c||l===!0?4:0,this._onCanvasTargetResize=this._onCanvasTargetResize.bind(this),this._canvasTarget=new vgt(e.getDomElement()),this._canvasTarget.addEventListener("resize",this._onCanvasTargetResize),this._canvasTarget.isDefaultCanvasTarget=!0,this._inspector=new Sxe,this._inspector.setRenderer(this),this._getFallback=u,this._attributes=null,this._geometries=null,this._nodes=null,this._animation=null,this._bindings=null,this._objects=null,this._pipelines=null,this._bundles=null,this._renderLists=null,this._renderContexts=null,this._textures=null,this._background=null,this._quadCache=new Map,this._currentRenderContext=null,this._opaqueSort=null,this._transparentSort=null,this._frameBufferTargets=new Map;const p=this.alpha===!0?0:1;this._clearColor=new _Z(0,0,0,p),this._clearDepth=1,this._clearStencil=0,this._renderTarget=null,this._activeCubeFace=0,this._activeMipmapLevel=0,this._outputRenderTarget=null,this._mrt=null,this._renderObjectFunction=null,this._currentRenderObjectFunction=null,this._currentRenderBundle=null,this._handleObjectFunction=this._renderObjectDirect,this._isDeviceLost=!1,this.onDeviceLost=this._onDeviceLost,this._outputBufferType=f,this._cacheShadowNodes=new WeakMap,this._initialized=!1,this._callDepth=-1,this._initPromise=null,this._compilationPromises=null,this.transparent=!0,this.opaque=!0,this.shadowMap={enabled:!1,transmitted:!1,type:h3},this.xr=new fgt(this,h),this.debug={checkShaderErrors:!0,onShaderError:null,getShaderAsync:async(A,g,w)=>{await this.compileAsync(A,g);const T=this._renderLists.get(A,g),C=this._renderContexts.get(this._renderTarget,this._mrt),M=A.overrideMaterial||w.material,D=this._objects.get(w,M,A,g,T.lightsNode,C,C.clippingContext),{fragmentShader:k,vertexShader:I}=D.getNodeBuilderState();return{fragmentShader:k,vertexShader:I}}}}
4199async init(){return this._initPromise!==null?this._initPromise:(this._initPromise=new Promise(async(e,n)=>{let r=this.backend;try{await r.init(this)}catch(i){if(this._getFallback!==null)try{this.backend=r=this._getFallback(i),await r.init(this)}catch(a){n(a);return}else{n(i);return}}this._nodes=new sgt(this,r),this._animation=new aht(this,this._nodes,this.info),this._attributes=new dht(r,this.info),this._background=new yAt(this,this._nodes),this._geometries=new hht(this._attributes,this.info),this._textures=new Mht(this,r,this.info),this._pipelines=new xht(r,this._nodes,this.info),this._bindings=new vht(r,this._nodes,this._textures,this._attributes,this._pipelines,this.info),this._objects=new cht(this,this._nodes,this._geometries,this._pipelines,this._bindings,this.info),this._renderLists=new bht(this.lighting),this._bundles=new lgt,this._renderContexts=new Tht(this),this._animation.start(),this._initialized=!0,this._inspector.init(),e(this)}),this._initPromise)}get domElement(){return this._canvasTarget.domElement}get coordinateSystem(){return this.backend.coordinateSystem}async compileAsync(e,n,r=null){if(this._isDeviceLost===!0)return;this._initialized===!1&&await this.init();const i=this._nodes.nodeFrame,a=i.renderId,s=this._currentRenderContext,o=this._currentRenderObjectFunction,l=this._handleObjectFunction,c=this._compilationPromises;r===null&&(r=e);const u=e.isScene===!0?e:r.isScene===!0?r:wse,h=this.needsFrameBufferTarget&&this._renderTarget===null?this._getFrameBufferTarget():this._renderTarget||this._outputRenderTarget,p=this._renderContexts.get(h,this._mrt),A=this._activeMipmapLevel,g=[];this._currentRenderContext=p,this._currentRenderObjectFunction=this.renderObject,this._handleObjectFunction=this._createObjectPipeline,this._compilationPromises=g,i.renderId++,i.update(),p.depth=this.depth,p.stencil=this.stencil,p.clippingContext||(p.clippingContext=new hD),p.clippingContext.updateGlobal(u,n),u.onBeforeRender(this,e,n,h);const w=this._renderLists.get(u,n);if(w.begin(),this._projectObject(e,n,0,w,p.clippingContext),r!==e&&r.traverseVisible(function(k){k.isLight&&k.layers.test(n.layers)&&w.pushLight(k)}),w.finish(),h!==null){this._textures.updateRenderTarget(h,A);const k=this._textures.get(h);p.textures=k.textures,p.depthTexture=k.depthTexture}else p.textures=null,p.depthTexture=null;r!==e?this._background.update(r,w,p):this._background.update(u,w,p);const T=w.opaque,C=w.transparent,M=w.transparentDoublePass,D=w.lightsNode;this.opaque===!0&&T.length>0&&this._renderObjects(T,n,u,D),this.transparent===!0&&C.length>0&&this._renderTransparents(C,M,n,u,D),i.renderId=a,this._currentRenderContext=s,this._currentRenderObjectFunction=o,this._handleObjectFunction=l,this._compilationPromises=c;for(const k of g){const I=this._objects.get(k.object,k.material,k.scene,k.camera,k.lightsNode,k.renderContext,k.clippingContext,k.passId);I.drawRange=k.object.geometry.drawRange,I.group=k.group,this._geometries.updateForRender(I),await this._nodes.getForRenderAsync(I),this._nodes.updateBefore(I),this._nodes.updateForRender(I),this._bindings.updateForRender(I);const L=[];this._pipelines.getForRender(I,L),L.length>0&&await Promise.all(L),this._nodes.updateAfter(I),await Gme()}}async renderAsync(e,n){Fa('Renderer: "renderAsync()" has been deprecated. Use "render()" and "await renderer.init();" when creating the renderer.'),await this.init(),this.render(e,n)}async waitForGPU(){nn("Renderer: waitForGPU() has been removed. Read https://github.com/mrdoob/three.js/issues/32012 for more information.")}set inspector(e){this._inspector!==null&&this._inspector.setRenderer(null),this._inspector=e,this._inspector.setRenderer(this)}get inspector(){return this._inspector}set highPrecision(e){const n=this.contextNode.value;e===!0?(n.modelViewMatrix=sH,n.modelNormalViewMatrix=oH):this.highPrecision&&(delete n.modelViewMatrix,delete n.modelNormalViewMatrix)}get highPrecision(){const e=this.contextNode.value;return e.modelViewMatrix===sH&&e.modelNormalViewMatrix===oH}setMRT(e){return this._mrt=e,this}getMRT(){return this._mrt}getOutputBufferType(){return this._outputBufferType}getColorBufferType(){return Fa('Renderer: ".getColorBufferType()" has been renamed to ".getOutputBufferType()".'),this.getOutputBufferType()}_onDeviceLost(e){let n=`THREE.WebGPURenderer: ${e.api} Device Lost: 4200 4201Message: ${e.message}`;e.reason&&(n+=` 4202Reason: ${e.reason}`),nn(n),this._isDeviceLost=!0}_renderBundle(e,n,r){const{bundleGroup:i,camera:a,renderList:s}=e,o=this._currentRenderContext,l=this._bundles.get(i,a,o),c=this.backend.get(l),u=i.version!==c.version;if(u||c.bundleGPU===void 0){this.backend.beginBundle(o),(c.renderObjects===void 0||u)&&(c.renderObjects=[]),this._currentRenderBundle=l;const{transparentDoublePass:h,transparent:p,opaque:A}=s;this.opaque===!0&&A.length>0&&this._renderObjects(A,a,n,r),this.transparent===!0&&p.length>0&&this._renderTransparents(p,h,a,n,r),this._currentRenderBundle=null,this.backend.finishBundle(o,l),c.version=i.version}else{const{renderObjects:h}=c;for(let p=0,A=h.length;p<A;p++){const g=h[p];this._nodes.needsRefresh(g)&&(this._nodes.updateBefore(g),this._nodes.updateForRender(g),this._bindings.updateForRender(g),this._nodes.updateAfter(g))}}this.backend.addBundle(o,l)}render(e,n){if(this._initialized===!1)throw new Error('Renderer: .render() called before the backend is initialized. Use "await renderer.init();" before rendering.');this._renderScene(e,n)}get initialized(){return this._initialized}_getFrameBufferTarget(){const{currentToneMapping:e,currentColorSpace:n}=this,r=e!==cc,i=n!==Ar.workingColorSpace;if(r===!1&&i===!1)return null;const{width:a,height:s}=this.getDrawingBufferSize(m8),{depth:o,stencil:l}=this,c=this._outputRenderTarget||this._canvasTarget;let u=this._frameBufferTargets.get(c);if(u===void 0){u=new Op(a,s,{depthBuffer:o,stencilBuffer:l,type:this._outputBufferType,format:fo,colorSpace:Ar.w
4202orkingColorSpace,generateMipmaps:!1,minFilter:Ba,magFilter:Ba,samples:this.samples}),u.isPostProcessingRenderTarget=!0;const w=()=>{c.removeEventListener("dispose",w),u.dispose(),this._frameBufferTargets.delete(c)};c.addEventListener("dispose",w),this._frameBufferTargets.set(c,u)}const f=this.getOutputRenderTarget();u.depthBuffer=o,u.stencilBuffer=l,f!==null?u.setSize(f.width,f.height,f.depth):u.setSize(a,s,1);const h=this._outputRenderTarget?this._outputRenderTarget.viewport:c._viewport,p=this._outputRenderTarget?this._outputRenderTarget.scissor:c._scissor,A=this._outputRenderTarget?1:c._pixelRatio,g=this._outputRenderTarget?this._outputRenderTarget.scissorTest:c._scissorTest;return u.viewport.copy(h),u.scissor.copy(p),u.viewport.multiplyScalar(A),u.scissor.multiplyScalar(A),u.scissorTest=g,u.multiview=f!==null?f.multiview:!1,u.resolveDepthBuffer=f!==null?f.resolveDepthBuffer:!0,u._autoAllocateDepthBuffer=f!==null?f._autoAllocateDepthBuffer:!1,u}_renderScene(e,n,r=!0){if(this._isDeviceLost===!0)return;const i=r?this._getFrameBufferTarget():null,a=this._nodes.nodeFrame,s=a.renderId,o=this._currentRenderContext,l=this._currentRenderObjectFunction,c=this._handleObjectFunction;this._callDepth++;const u=e.isScene===!0?e:wse,f=this._renderTarget||this._outputRenderTarget,h=this._activeCubeFace,p=this._activeMipmapLevel;let A;if(i!==null?(A=i,this.setRenderTarget(A)):A=f,A!==null&&A.depthBuffer===!0){const ee=this._textures.get(A);ee.depthInitialized!==!0&&((this.autoClear===!1||this.autoClear===!0&&this.autoClearDepth===!1)&&this.clearDepth(),ee.depthInitialized=!0)}const g=this._renderContexts.get(A,this._mrt,this._callDepth);this._currentRenderContext=g,this._currentRenderObjectFunction=this._renderObjectFunction||this.renderObject,this._handleObjectFunction=this._renderObjectDirect,this.info.calls++,this.info.render.calls++,this.info.render.frameCalls++,a.renderId=this.info.calls,this.backend.updateTimeStampUID(g),this.inspector.beginRender(this.backend.getTimestampUID(g),e,n,A);const w=this.xr;if(w.isPresenting===!1){let ee=!1;if(this.reversedDepthBuffer===!0&&n.reversedDepth!==!0){if(n._reversedDepth=!0,n.isArrayCamera)for(const X of n.cameras)X._reversedDepth=!0;ee=!0}const Z=this.coordinateSystem;if(n.coordinateSystem!==Z){if(n.coordinateSystem=Z,n.isArrayCamera)for(const X of n.cameras)X.coordinateSystem=Z;ee=!0}if(ee===!0&&(n.updateProjectionMatrix(),n.isArrayCamera))for(const X of n.cameras)X.updateProjectionMatrix()}e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),n.parent===null&&n.matrixWorldAutoUpdate===!0&&n.updateMatrixWorld(),w.enabled===!0&&w.isPresenting===!0&&(w.cameraAutoUpdate===!0&&w.updateCamera(n),n=w.getCamera());const T=this._canvasTarget;let C=T._viewport,M=T._scissor,D=T._pixelRatio;A!==null&&(C=A.viewport,M=A.scissor,D=1),this.getDrawingBufferSize(m8),CB.set(0,0,m8.width,m8.height);const k=C.minDepth===void 0?0:C.minDepth,I=C.maxDepth===void 0?1:C.maxDepth;g.viewportValue.copy(C).multiplyScalar(D).floor(),g.viewportValue.width>>=p,g.viewportValue.height>>=p,g.viewportValue.minDepth=k,g.viewportValue.maxDepth=I,g.viewport=g.viewportValue.equals(CB)===!1,g.scissorValue.copy(M).multiplyScalar(D).floor(),g.scissor=T._scissorTest&&g.scissorValue.equals(CB)===!1,g.scissorValue.width>>=p,g.scissorValue.height>>=p,g.clippingContext||(g.clippingContext=new hD),g.clippingContext.updateGlobal(u,n),u.onBeforeRender(this,e,n,A);const L=n.isArrayCamera?RB:NB;n.isArrayCamera||(yC.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),L.setFromProjectionMatrix(yC,n.coordinateSystem,n.reversedDepth));const O=this._renderLists.get(e,n);if(O.begin(),this._projectObject(e,n,0,O,g.clippingContext),O.finish(),this.sortObjects===!0&&O.sort(this._opaqueSort,this._transparentSort),A!==null){this._textures.updateRenderTarget(A,p);const ee=this._textures.get(A);g.textures=ee.textures,g.depthTexture=ee.depthTexture,g.width=ee.width,g.height=ee.height,g.renderTarget=A,g.depth=A.depthBuffer,g.stencil=A.stencilBuffer}else g.textures=null,g.depthTexture=null,g.width=m8.width,g.height=m8.height,g.depth=this.depth,g.stencil=this.stencil;g.width>>=p,g.height>>=p,g.activeCubeFace=h,g.activeMipmapLevel=p,g.occlusionQueryCount=O.occlusionQueryCount,g.scissorValue.max(Nm.set(0,0,0,0)),g.scissorValue.x+g.scissorValue.width>g.width&&(g.scissorValue.width=Math.max(g.width-g.scissorValue.x,0)),g.scissorValue.y+g.scissorValue.height>g.height&&(g.scissorValue.height=Math.max(g.height-g.scissorValue.y,0)),this._background.update(u,O,g),g.camera=n,this.backend.beginRender(g);const{bundles:B,lightsNode:G,transparentDoublePass:j,transparent:z,opaque:Q}=O;return B.length>0&&this._renderBundles(B,u,G),this.opaque===!0&&Q.length>0&&this._renderObjects(Q,n,u,G),this.transparent===!0&&z.length>0&&this._renderTransparents(z,j,n,u,G),this.backend.finishRender(g),a.renderId=s,this._currentRenderContext=o,this._currentRenderObjectFunction=l,this._handleObjectFunction=c,this._callDepth--,i!==null&&(this.setRenderTarget(f,h,p),this._renderOutput(A)),u.onAfterRender(this,e,n,A),this.inspector.finishRender(this.backend.getTimestampUID(g)),g}_setXRLayerSize(e,n){this._canvasTarget._width=e,this._canvasTarget._height=n,this.setViewport(0,0,e,n)}_renderOutput(e){const n=this._nodes.getOutputCacheKey();let r=this._quadCache.get(e.texture),i;
4202if(r===void 0){i=new TZ(new Js),i.name="Output Color Transform",i.material.name="outputColorTransform",i.material.fragmentNode=this._nodes.getOutputNode(e.texture),r={quad:i,cacheKey:n},this._quadCache.set(e.texture,r);const o=()=>{i.material.dispose(),this._quadCache.delete(e.texture),e.texture.removeEventListener("dispose",o)};e.texture.addEventListener("dispose",o)}else i=r.quad,r.cacheKey!==n&&(i.material.fragmentNode=this._nodes.getOutputNode(e.texture),i.material.needsUpdate=!0,r.cacheKey=n);const a=this.autoClear,s=this.xr.enabled;this.autoClear=!1,this.xr.enabled=!1,this._renderScene(i,i.camera,!1),this.autoClear=a,this.xr.enabled=s}getMaxAnisotropy(){return this.backend.capabilities.getMaxAnisotropy()}getActiveCubeFace(){return this._activeCubeFace}getActiveMipmapLevel(){return this._activeMipmapLevel}async setAnimationLoop(e){this._initialized===!1&&await this.init(),this._animation.setAnimationLoop(e)}getAnimationLoop(){return this._animation.getAnimationLoop()}async getArrayBufferAsync(e,n=null,r=0,i=-1){if(n!==null&&n.isReadbackBuffer&&this.info.memoryMap.has(n)===!1){this.info.createReadbackBuffer(n);const a=()=>{n.removeEventListener("dispose",a),this.info.destroyReadbackBuffer(n)};n.addEventListener("dispose",a)}if(r%4!==0||i>0&&i%4!==0)throw new Error('THREE.Renderer: "getArrayBufferAsync()" offset and count must be a multiple of 4.');return await this.backend.getArrayBufferAsync(e,n,r,i)}getContext(){return this.backend.getContext()}getPixelRatio(){return this._canvasTarget.getPixelRatio()}getDrawingBufferSize(e){return this._canvasTarget.getDrawingBufferSize(e)}getSize(e){return this._canvasTarget.getSize(e)}setPixelRatio(e=1){this._canvasTarget.setPixelRatio(e)}setDrawingBufferSize(e,n,r){this.xr&&this.xr.isPresenting||this._canvasTarget.setDrawingBufferSize(e,n,r)}setSize(e,n,r=!0){this.xr&&this.xr.isPresenting||this._canvasTarget.setSize(e,n,r)}setOpaqueSort(e){this._opaqueSort=e}setTransparentSort(e){this._transparentSort=e}getScissor(e){return this._canvasTarget.getScissor(e)}setScissor(e,n,r,i){this._canvasTarget.setScissor(e,n,r,i)}getScissorTest(){return this._canvasTarget.getScissorTest()}setScissorTest(e){this._canvasTarget.setScissorTest(e),this.backend.setScissorTest(e)}getViewport(e){return this._canvasTarget.getViewport(e)}setViewport(e,n,r,i,a=0,s=1){this._canvasTarget.setViewport(e,n,r,i,a,s)}getClearColor(e){return e.copy(this._clearColor)}setClearColor(e,n=1){this._clearColor.set(e),this._clearColor.a=n}getClearAlpha(){return this._clearColor.a}setClearAlpha(e){this._clearColor.a=e}getClearDepth(){return this.reversedDepthBuffer===!0?1-this._clearDepth:this._clearDepth}setClearDepth(e){this._clearDepth=e}getClearStencil(){return this._clearStencil}setClearStencil(e){this._clearStencil=e}isOccluded(e){const n=this._currentRenderContext;return n&&this.backend.isOccluded(n,e)}clear(e=!0,n=!0,r=!0){if(this._initialized===!1)throw new Error('Renderer: .clear() called before the backend is initialized. Use "await renderer.init();" before before using this method.');const i=this._renderTarget||this._getFrameBufferTarget();let a=null;if(i!==null){this._textures.updateRenderTarget(i);const s=this._textures.get(i);a=this._renderContexts.get(i,null,-1),a.textures=s.textures,a.depthTexture=s.depthTexture,a.width=s.width,a.height=s.height,a.renderTarget=i,a.depth=i.depthBuffer,a.stencil=i.stencilBuffer;const o=this.backend.getClearColor();a.clearColorValue.r=o.r,a.clearColorValue.g=o.g,a.clearColorValue.b=o.b,a.clearColorValue.a=o.a,a.clearDepthValue=this.getClearDepth(),a.clearStencilValue=this.getClearStencil(),a.activeCubeFace=this.getActiveCubeFace(),a.activeMipmapLevel=this.getActiveMipmapLevel(),i.depthBuffer===!0&&(s.depthInitialized=!0)}this.backend.clear(e,n,r,a),i!==null&&this._renderTarget===null&&this._renderOutput(i)}clearColor(){this.clear(!0,!1,!1)}clearDepth(){this.clear(!1,!0,!1)}clearStencil(){this.clear(!1,!1,!0)}async clearAsync(e=!0,n=!0,r=!0){Fa('Renderer: "clearAsync()" has been deprecated. Use "clear()" and "await renderer.init();" when creating the renderer.'),await this.init(),this.clear(e,n,r)}async clearColorAsync(){Fa('Renderer: "clearColorAsync()" has been deprecated. Use "clearColor()" and "await renderer.init();" when creating the renderer.'),this.clear(!0,!1,!1)}async clearDepthAsync(){Fa('Renderer: "clearDepthAsync()" has been deprecated. Use "clearDepth()" and "await renderer.init();" when creating the renderer.'),this.clear(!1,!0,!1)}async clearStencilAsync(){Fa('Renderer: "clearStencilAsync()" has been deprecated. Use "clearStencil()" and "await renderer.init();" when creating the renderer.'),this.clear(!1,!1,!0)}get needsFrameBufferTarget(){const e=this.currentToneMapping!==cc,n=this.currentColorSpace!==Ar.workingColorSpace;return e||n}get samples(){return this._samples}get currentSamples(){let e=this._samples;return this._renderTarget!==null?e=this._renderTarget.samples:this.needsFrameBufferTarget&&(e=0),e}get currentToneMapping(){return this.isOutputTarget?this.toneMapping:cc}get currentColorSpace(){return this.isOutputTarget?this.outputColorSpace:Ar.w
4202orkingColorSpace}get isOutputTarget(){return this._renderTarget===this._outputRenderTarget||this._renderTarget===null}dispose(){if(this._initialized===!0){this.info.dispose(),this.backend.dispose(),this._animation.dispose(),this._objects.dispose(),this._geometries.dispose(),this._pipelines.dispose(),this._nodes.dispose(),this._bindings.dispose(),this._renderLists.dispose(),this._renderContexts.dispose(),this._textures.dispose();for(const e of this._frameBufferTargets.keys())e.dispose();Object.values(this.backend.timestampQueryPool).forEach(e=>{e!==null&&e.dispose()})}this.setRenderTarget(null),this.setAnimationLoop(null)}setRenderTarget(e,n=0,r=0){this._renderTarget=e,this._activeCubeFace=n,this._activeMipmapLevel=r}getRenderTarget(){return this._renderTarget}setOutputRenderTarget(e){this._outputRenderTarget=e}getOutputRenderTarget(){return this._outputRenderTarget}setCanvasTarget(e){this._canvasTarget.removeEventListener("resize",this._onCanvasTargetResize),this._canvasTarget=e,this._canvasTarget.addEventListener("resize",this._onCanvasTargetResize)}getCanvasTarget(){return this._canvasTarget}_resetXRState(){this.backend.setXRTarget(null),this.setOutputRenderTarget(null),this.setRenderTarget(null);for(const e of this._frameBufferTargets.keys())e.dispose()}setRenderObjectFunction(e){this._renderObjectFunction=e}getRenderObjectFunction(){return this._renderObjectFunction}compute(e,n=null){if(this._isDeviceLost===!0)return;if(this._initialized===!1)return Kt("Renderer: .compute() called before the backend is initialized. Try using .computeAsync() instead."),this.computeAsync(e,n);const r=this._nodes.nodeFrame,i=r.renderId;this.info.calls++,this.info.compute.calls++,this.info.compute.frameCalls++,r.renderId=this.info.calls,this.backend.updateTimeStampUID(e),this.inspector.beginCompute(this.backend.getTimestampUID(e),e);const a=this.backend,s=this._pipelines,o=this._bindings,l=this._nodes,c=Array.isArray(e)?e:[e];if(c[0]===void 0||c[0].isComputeNode!==!0)throw new Error("THREE.Renderer: .compute() expects a ComputeNode.");a.beginCompute(e);for(const u of c){if(s.has(u)===!1){const p=()=>{u.removeEventListener("dispose",p),s.delete(u),o.deleteForCompute(u),l.delete(u)};u.addEventListener("dispose",p);const A=u.onInitFunction;A!==null&&A.call(u,{renderer:this})}l.updateForCompute(u),o.updateForCompute(u);const f=o.getForCompute(u),h=s.getForCompute(u,f);a.compute(e,u,f,h,n)}a.finishCompute(e),r.renderId=i,this.inspector.finishCompute(this.backend.getTimestampUID(e))}async computeAsync(e,n=null){this._initialized===!1&&await this.init(),this.compute(e,n)}async hasFeatureAsync(e){return Fa('Renderer: "hasFeatureAsync()" has been deprecated. Use "hasFeature()" and "await renderer.init();" when creating the renderer.'),await this.init(),this.hasFeature(e)}async resolveTimestampsAsync(e="render"){return this._initialized===!1&&await this.init(),this.backend.resolveTimestampsAsync(e)}hasFeature(e){if(this._initialized===!1)throw new Error('Renderer: .hasFeature() called before the backend is initialized. Use "await renderer.init();" before before using this method.');return this.backend.hasFeature(e)}hasInitialized(){return this._initialized}async initTextureAsync(e){Fa('Renderer: "initTextureAsync()" has been deprecated. Use "initTexture()" and "await renderer.init();" when creating the renderer.'),await this.init(),this.initTexture(e)}initTexture(e){if(this._initialized===!1)throw new Error('Renderer: .initTexture() called before the backend is initialized. Use "await renderer.init();" before before using this method.');this._textures.updateTexture(e)}initRenderTarget(e){if(this._initialized===!1)throw new Error('Renderer: .initRenderTarget() called before the backend is initialized. Use "await renderer.init();" before before using this method.');this._textures.updateRenderTarget(e);const n=this._textures.get(e),r=this._renderContexts.get(e);r.textures=n.textures,r.depthTexture=n.depthTexture,r.width=n.width,r.height=n.height,r.renderTarget=e,r.depth=e.depthBuffer,r.stencil=e.stencilBuffer,this.backend.initRenderTarget(r)}copyFramebufferToTexture(e,n=null){if(n!==null)if(n.isVector2)n=Nm.set(n.x,n.y,e.image.width,e.image.height).floor();else if(n.isVector4)n=Nm.copy(n).floor();else{nn("Renderer.copyFramebufferToTexture: Invalid rectangle.");return}else n=Nm.set(0,0,e.image.width,e.image.height);let r=this._currentRenderContext,i;r!==null?i=r.renderTarget:(i=this._renderTarget||this._getFrameBufferTarget(),i!==null&&(this._textures.updateRenderTarget(i),r=this._textures.get(i))),this._textures.updateTexture(e,{renderTarget:i}),this.backend.copyFramebufferToTexture(e,r,n),this._inspector.copyFramebufferToTexture(e)}copyTextureToTexture(e,n,r=null,i=null,a=0,s=0){this._textures.updateTexture(e),this._textures.updateTexture(n),this.backend.copyTextureToTexture(e,n,r,i,a,s),this._inspector.copyTextureToTexture(e,n)}async readRenderTargetPixelsAsync(e,n,r,i,a,s=0,o=0){return this.backend.copyTextureToBuffer(e.textures[s],n,r,i,a,o)}_projectObject(e,n,r,i,a){if(e.visible===!1)return;if(e.layers.test(n.layers)){if(e.isGroup)r=e.renderOrder,e.isClippingGroup&&e.enabled&&(a=a.getGroupContext(e));else if(e.isLOD)e.autoUpdate===!0&&e.update(n);else if(e.isLight)i.pushLight(e);else if(e.isSprite){const l=n.isArrayCamera?RB:NB;if(!e.frustumCulled||l.intersectsSprite(e,n)){this.sortObjects===!0&&Nm.setFromMatrixPosition(e.matrixWorld).applyMatrix4(yC);const{geometry:c,material:u}=e;u.visible&&i.push(e,c,u,r,Nm.z,null,a)}}else if(e.isLineLoop)nn("Renderer: Objects of type THREE.LineLoop are not supported. Please use THREE.Line or THREE.LineSegments.");else if(e.isMesh||e.isLine||e.isPoints){const l=n.isArrayCamera?RB:NB;if(!e.frustumCulled||l.intersectsObject(e,n)){const{geometry:c,material:u}=e;if(this.sortObjects===!0&&(c.boundingSphere===null&&c.computeBoundingSphere(),Nm.copy(c.boundingSphere.center).applyMatrix4(e.matrixWorld).applyMatrix4(yC)),Array.isArray(u)){const f=c.groups;for(let h=0,p=f.length;h<p;h++){const A=f[h],g=u[A.materialIndex];g&&g.visible&&i.push(e,c,g,r,Nm.z,A,a)}}else u.visible&&i.push(e,c,u,r,Nm.z,null,a)}}}if(e.isBundleGroup===!0&&this.backend.beginBundle!==void 0){const l=i;i=this._renderLists.get(e,n),i.begin(),l.pushBundle({bundleGroup:e,camera:n,renderList:i}),i.finish()}const o=e.children;for(let l=0,c=o.length;l<c;l++)this._projectObject(o[l],n,r,i,a)}_renderBundles(e,n,r){for(const i of e)this._renderBundle(i,n,r)}_renderTransparents(e,n,r,i,a){if(n.length>0){for(const{material:s}of n)s.side=ca;this._renderObjects(n,r,i,a,"backSide");for(const{material:s}of n)s.side=Uu;this._renderObjects(e,r,i,a);for(const{material:s}of n)s.side=Zs}else this._renderObjects(e,r,i,a)}_renderObjects(e,n,r,i,a=null){for(let s=0,o=e.length;s<o;s++){const{object:l,geometry:c,material:u,group:f,clippingContext:h}=e[s];this._currentRenderObjectFunction(l,r,n,c,u,f,i,h,a)}}_getShadowNodes(e){const n=e.version;let r=this._cacheShadowNodes.get(e);if(r===void 0||r.version!==n){const i=e.map!==null,a=e.colorNode&&e.colorNode.isNode,s=e.castShadowNode&&e.castShadowNode.isNode,o=e.maskShadowNode&&e.maskShadowNode.isNode||e.maskNode&&e.maskNode.isNode;let l=null,c=null,u=null;if(i||a||s||o){let f,h;if(s?(f=e.castShadowNode.rgb,h=e.castShadowNode.a,this.shadowMap.transmitted!==!0&&Fa("Renderer: `shadowMap.transmitted` needs to be set to `true` when using `material.castShadowNode`.")):(f=Je(0),h=ke(1)),i&&(h=h.mul(ss("map","texture",e).a)),a&&(h=h.mul(e.colorNode.a)),c=er(f,h),o){const p=e.maskShadowNode||e.maskNode;c=it(([A])=>(p.not().discard(),A))(c)}}e.depthNode&&e.depthNode.isNode&&(u=e.depthNode),e.castShadowPositionNode&&e.castShadowPositionNode.isNode?l=e.castShadowPositionNode:e.positionNode&&e.positionNode.isNode&&(l=e.positionNode),r={version:n,colorNode:c,depthNode:u,positionNode:l},this._cacheShadowNodes.set(e,r)}return r}renderObject(e,n,r,i,a,s,o,l=null,c=null){let u=!1,f,h,p,A;if(e.onBeforeRender(this,n,r,i,a,s),a.allowOverride===!0&&n.overrideMaterial!==null){const g=n.overrideMaterial;if(u=!0,f=g.isNodeMaterial?g.colorNode:null,h=g.isNodeMaterial?g.depthNode:null,p=g.isNodeMaterial?g.positionNode:null,A=n.overrideMaterial.side,a.positionNode&&a.positionNode.isNode&&(g.positionNode=a.positionNode),g.alphaTest=a.alph
4202aTest,g.alphaMap=a.alphaMap,g.transparent=a.transparent||a.transmission>0||a.transmissionNode&&a.transmissionNode.isNode||a.backdropNode&&a.backdropNode.isNode,g.isShadowPassMaterial){const{colorNode:w,depthNode:T,positionNode:C}=this._getShadowNodes(a);this.shadowMap.type===Z1?g.side=a.shadowSide!==null?a.shadowSide:a.side:g.side=a.shadowSide!==null?a.shadowSide:ygt[a.side],w!==null&&(g.colorNode=w),T!==null&&(g.depthNode=T),C!==null&&(g.positionNode=C)}a=g}a.transparent===!0&&a.side===Zs&&a.forceSinglePass===!1?(a.side=ca,this._handleObjectFunction(e,a,n,r,o,s,l,"backSide"),a.side=Uu,this._handleObjectFunction(e,a,n,r,o,s,l,c),a.side=Zs):this._handleObjectFunction(e,a,n,r,o,s,l,c),u&&(n.overrideMaterial.colorNode=f,n.overrideMaterial.depthNode=h,n.overrideMaterial.positionNode=p,n.overrideMaterial.side=A),e.onAfterRender(this,n,r,i,a,s)}hasCompatibility(e){if(this._initialized===!1)throw new Error('Renderer: .hasCompatibility() called before the backend is initialized. Use "await renderer.init();" before using this method.');return this.backend.hasCompatibility(e)}_renderObjectDirect(e,n,r,i,a,s,o,l){const c=this._objects.get(e,n,r,i,a,this._currentRenderContext,o,l);c.drawRange=e.geometry.drawRange,c.group=s,this._currentRenderBundle!==null&&(this.backend.get(this._currentRenderBundle).renderObjects.push(c),c.bundle=this._currentRenderBundle.bundleGroup);const u=this._nodes.needsRefresh(c);u&&(this._nodes.updateBefore(c),this._geometries.updateForRender(c),this._nodes.updateForRender(c),this._bindings.updateForRender(c)),this._pipelines.updateForRender(c),this._pipelines.isReady(c)&&(this.backend.draw(c,this.info),u&&this._nodes.updateAfter(c))}_createObjectPipeline(e,n,r,i,a,s,o,l){if(this._compilationPromises!==null){this._compilationPromises.push({object:e,material:n,scene:r,camera:i,lightsNode:a,group:s,clippingContext:o,passId:l,renderContext:this._currentRenderContext});return}const c=this._objects.get(e,n,r,i,a,this._currentRenderContext,o,l);c.drawRange=e.geometry.drawRange,c.group=s,this._nodes.updateBefore(c),this._geometries.updateForRender(c),this._nodes.updateForRender(c),this._bindings.updateForRender(c),this._pipelines.getForRender(c,this._compilationPromises),this._nodes.updateAfter(c)}_onCanvasTargetResize(){this._initialized&&this.backend.updateSize()}get compile(){return this.compileAsync}}class A4e{constructor(e=""){this.name=e,this.visibility=0}setVisibility(e){this.visibility|=e}getVisibility(){return this.visibility}clone(){return Object.assign(new this.constructor,this)}}function bgt(t){return t+(ZA-t%ZA)%ZA}let g4e=class extends A4e{constructor(e,n=null){super(e),this.isBuffer=!0,this.bytesPerElement=Float32Array.BYTES_PER_ELEMENT,this._buffer=n,this._updateRanges=[]}get updateRanges(){return this._updateRanges}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}get byteLength(){return bgt(this._buffer.byteLength)}get buffer(){return this._buffer}update(){return!0}};class x4e extends g4e{constructor(e,n=null){super(e,n),this.isUniformBuffer=!0}}let wgt=0;class v4e extends x4e{constructor(e,n){super("UniformBuffer_"+wgt++,e?e.value:null),this.nodeUniform=e,this.groupNode=n,this.isNodeUniformBuffer=!0}set updateRanges(e){this.nodeUniform.updateRanges=e}get updateRanges(){return this.nodeUniform.updateRanges}addUpdateRange(e,n){this.nodeUniform.addUpdateRange(e,n)}clearUpdateRanges(){this.nodeUniform.clearUpdateRanges()}get buffer(){return this.nodeUniform.value}}class Sgt extends x4e{constructor(e){super(e),this.isUniformsGroup=!0,this._values=null,this.uniforms=[],this._updateRangeCache=new Map}addUniformUpdateRange(e){const n=e.index;if(this._updateRangeCache.has(n)!==!0){const r=this.updateRanges,i=e.offset,a=e.itemSize,s={start:i,count:a};r.push(s),this._updateRangeCache.set(n,s)}}clearUpdateRanges(){this._updateRangeCache.clear(),super.clearUpdateRanges()}addUniform(e){return this.uniforms.push(e),this}removeUniform(e){const n=this.uniforms.indexOf(e);return n!==-1&&this.uniforms.splice(n,1),this}get values(){return this._values===null&&(this._values=Array.from(this.buffer)),this._values}get buffer(){let e=this._buffer;if(e===null){const n=this.byteLength;
4202e=new Float32Array(new ArrayBuffer(n)),this._buffer=e}return e}get byteLength(){const e=this.bytesPerElement;let n=0;for(let r=0,i=this.uniforms.length;r<i;r++){const a=this.uniforms[r],s=a.boundary,o=a.itemSize*e,l=n%ZA,c=l%s,u=l+c;n+=c,u!==0&&ZA-u<o&&(n+=ZA-u),a.offset=n/e,a.index=r,n+=o}return Math.ceil(n/ZA)*ZA}update(){let e=!1;for(const n of this.uniforms)this.updateByType(n)===!0&&(e=!0);return e}updateByType(e){if(e.isNumberUniform)return this.updateNumber(e);if(e.isVector2Uniform)return this.updateVector2(e);if(e.isVector3Uniform)return this.updateVector3(e);if(e.isVector4Uniform)return this.updateVector4(e);if(e.isColorUniform)return this.updateColor(e);if(e.isMatrix3Uniform)return this.updateMatrix3(e);if(e.isMatrix4Uniform)return this.updateMatrix4(e);nn("WebGPUUniformsGroup: Unsupported uniform type.",e)}updateNumber(e){let n=!1;const r=this.values,i=e.getValue(),a=e.offset,s=e.getType();if(r[a]!==i){const o=this._getBufferForType(s);o[a]=r[a]=i,n=!0,this.addUniformUpdateRange(e)}return n}updateVector2(e){let n=!1;const r=this.values,i=e.getValue(),a=e.offset,s=e.getType();if(r[a+0]!==i.x||r[a+1]!==i.y){const o=this._getBufferForType(s);o[a+0]=r[a+0]=i.x,o[a+1]=r[a+1]=i.y,n=!0,this.addUniformUpdateRange(e)}return n}updateVector3(e){let n=!1;const r=this.values,i=e.getValue(),a=e.offset,s=e.getType();if(r[a+0]!==i.x||r[a+1]!==i.y||r[a+2]!==i.z){const o=this._getBufferForType(s);o[a+0]=r[a+0]=i.x,o[a+1]=r[a+1]=i.y,o[a+2]=r[a+2]=i.z,n=!0,this.addUniformUpdateRange(e)}return n}updateVector4(e){let n=!1;const r=this.values,i=e.getValue(),a=e.offset,s=e.getType();if(r[a+0]!==i.x||r[a+1]!==i.y||r[a+2]!==i.z||r[a+3]!==i.w){const o=this._getBufferForType(s);o[a+0]=r[a+0]=i.x,o[a+1]=r[a+1]=i.y,o[a+2]=r[a+2]=i.z,o[a+3]=r[a+3]=i.w,n=!0,this.addUniformUpdateRange(e)}return n}updateColor(e){let n=!1;const r=this.values,i=e.getValue(),a=e.offset;if(r[a+0]!==i.r||r[a+1]!==i.g||r[a+2]!==i.b){const s=this.buffer;s[a+0]=r[a+0]=i.r,s[a+1]=r[a+1]=i.g,s[a+2]=r[a+2]=i.b,n=!0,this.addUniformUpdateRange(e)}return n}updateMatrix3(e){let n=!1;const r=this.values,i=e.getValue().elements,a=e.offset;if(r[a+0]!==i[0]||r[a+1]!==i[1]||r[a+2]!==i[2]||r[a+4]!==i[3]||r[a+5]!==i[4]||r[a+6]!==i[5]||r[a+8]!==i[6]||r[a+9]!==i[7]||r[a+10]!==i[8]){const s=this.buffer;s[a+0]=r[a+0]=i[0],s[a+1]=r[a+1]=i[1],s[a+2]=r[a+2]=i[2],s[a+4]=r[a+4]=i[3],s[a+5]=r[a+5]=i[4],s[a+6]=r[a+6]=i[5],s[a+8]=r[a+8]=i[6],s[a+9]=r[a+9]=i[7],s[a+10]=r[a+10]=i[8],n=!0,this.addUniformUpdateRange(e)}return n}updateMatrix4(e){let n=!1;const r=this.values,i=e.getValue().elements,a=e.offset;return Egt(r,i,a)===!1&&(this.buffer.set(i,a),Tgt(r,i,a),n=!0,this.addUniformUpdateRange(e)),n}_getBufferForType(e){return e==="int"||e==="ivec2"||e==="ivec3"||e==="ivec4"?new Int32Array(this.buffer.buffer):e==="uint"||e==="uvec2"||e==="uvec3"||e==="uvec4"?new Uint32Array(this.buffer.buffer):this.buffer}}function Tgt(t,e,n){for(let r=0,i=e.length;r<i;r++)t[n+r]=e[r]}function Egt(t,e,n){for(let r=0,i=e.length;r<i;r++)if(t[n+r]!==e[r])return!1;return!0}let Mgt=0;class y4e extends Sgt{constructor(e,n){super(e),this.id=Mgt++,this.groupNode=n,this.isNodeUniformsGroup=!0}}class _4e extends A4e{constructor(e,n){super(e),this._texture=null,this._onTextureDispose=()=>{this.generation=null,this.version=-1},this.texture=n,this.version=n?n.version:-1,this.generation=null,this.samplerKey="",this.isSampler=!0}set texture(e){this._texture!==e&&(this._texture&&this._texture.removeEventListener("dispose",this._onTextureDispose),this._texture=e,this.generation=null,this.version=-1,this._texture&&this._texture.addEventListener("dispose",this._onTextureDispose))}get texture(){return this._texture}update(){const{texture:e,version:n}=this;return n!==e.version?(this.version=e.version,!0):!1}clone(){const e=super.clone();return e._texture=null,e._onTextureDispose=()=>{e.generation=null,e.version=-1},e.texture=this.texture,e}}let Cgt=0;class Ngt extends _4e{constructor(e,n){super(e,n),this.id=Cgt++,this.store=!1,this.mipLevel=0,this.isSampledTexture=!0}}class Dk extends Ngt{constructor(e,n,r,i=null){super(e,n?n.value:null),this.textureNode=n,this.groupNode=r,this.access=i}update(){const{textureNode:e}=this;return this.texture!==e.value?(this.texture=e.value,!0):super.update(
4202)}}class b4e extends Dk{constructor(e,n,r,i=null){super(e,n,r,i),this.isSampledCubeTexture=!0}}class bH extends Dk{constructor(e,n,r,i=null){super(e,n,r,i),this.isSampledTexture3D=!0}}const Sse={bitcast_int_uint:new fl("uint tsl_bitcast_int_to_uint ( int x ) { return floatBitsToUint( intBitsToFloat ( x ) ); }"),bitcast_uint_int:new fl("uint tsl_bitcast_uint_to_int ( uint x ) { return floatBitsToInt( uintBitsToFloat ( x ) ); }")},Rgt={textureDimensions:"textureSize",equals:"equal",bitcast_float_int:"floatBitsToInt",bitcast_int_float:"intBitsToFloat",bitcast_uint_float:"uintBitsToFloat",bitcast_float_uint:"floatBitsToUint",bitcast_uint_int:"tsl_bitcast_uint_to_int",bitcast_int_uint:"tsl_bitcast_int_to_uint",floatpack_snorm_2x16:"packSnorm2x16",floatpack_unorm_2x16:"packUnorm2x16",floatpack_float16_2x16:"packHalf2x16",floatunpack_snorm_2x16:"unpackSnorm2x16",floatunpack_unorm_2x16:"unpackUnorm2x16",floatunpack_float16_2x16:"unpackHalf2x16"},Tse={low:"lowp",medium:"mediump",high:"highp"},Ese={swizzleAssign:!0,storageBuffer:!1},Mse={perspective:"smooth",linear:"noperspective"},Cse={centroid:"centroid"},Nse=` 4203precision highp float; 4204precision highp int; 4205precision highp sampler2D; 4206precision highp sampler3D; 4207precision highp samplerCube; 4208precision highp sampler2DArray; 4209 4210precision highp usampler2D; 4211precision highp usampler3D; 4212precision highp usamplerCube; 4213precision highp usampler2DArray; 4214 4215precision highp isampler2D; 4216precision highp isampler3D; 4217precision highp isamplerCube; 4218precision highp isampler2DArray; 4219 4220precision highp sampler2DShadow; 4221precision highp sampler2DArrayShadow; 4222precision highp samplerCubeShadow; 4223`;class Dgt extends h4e{constructor(e,n){super(e,n,new agt),this.uniformGroups={},this.transforms=[],this.extensions={},this.builtins={vertex:[],fragment:[],compute:[]}}needsToWorkingColorSpace(e){return e.isVideoTexture===!0&&e.colorSpace!==g0}_include(e){const n=Sse[e];return n.build(this),this.addInclude(n),n}getMethod(e){return Sse[e]!==void 0&&this._include(e),Rgt[e]||e}getBitcastMethod(e,n){return this.getMethod(`bitcast_${n}_${e}`)}getFloatPackingMethod(e){return this.getMethod(`floatpack_${e}_2x16`)}getFloatUnpackingMethod(e){return this.getMethod(`floatunpack_${e}_2x16`)}getTernary(e,n,r){return`${e} ? ${n} : ${r}`}getOutputStructName(){return""}buildFunctionCode(e){const n=e.layout,r=this.flowShaderNode(e),i=[];for(const s of n.inputs)i.push(this.getType(s.type)+" "+s.name);return`${this.getType(n.type)} ${n.name}( ${i.join(", ")} ) { 4224 4225 ${r.vars} 4226 4227${r.code} 4228 return ${r.result}; 4229 4230}`}setupPBO(e){const n=e.value;if(n.pbo===void 0){const r=n.array,i=n.count*n.itemSize,{itemSize:a}=n,s=n.array.constructor.name.toLowerCase().includes("int");let o=s?By:f6;a===2?o=s?Uy:uc:a===3?o=s?Bme:u6:a===4&&(o=s?d6:fo);const l={Float32Array:os,Uint8Array:rs,Uint16Array:dd,Uint32Array:_a,Int8Array:Sg,Int16Array:Tg,Int32Array:Al,Uint8ClampedArray:rs},c=Math.pow(2,Math.ceil(Math.log2(Math.sqrt(i/a))));let u=Math.ceil(i/a/c);c*u*a<i&&u++;const f=c*u*a,h=new r.constructor(f);h.set(r,0),n.array=h;const p=new Pq(n.array,c,u,o,l[n.array.constructor.name]||os);p.needsUpdate=!0,p.isPBOTexture=!0;const A=new bp(p,null,null);A.setPrecision("high"),n.pboNode=A,n.pbo=A.value,this.getUniformFromNode(n.pboNode,"texture",this.shaderStage,this.context.nodeName)}}getPropertyName(e,n=this.shaderStage){return e.isNodeUniform&&e.node.isTextureNode!==!0&&e.node.isBufferNode!==!0?e.name:super.getPropertyName(e,n)}generatePBO(e){const{node:n,indexNode:r}=e,i=n.value;if(this.renderer.backend.has(i)){const u=this.renderer.backend.get(i);u.pbo=i.pbo}const a=this.getUniformFromNode(i.pboNode,"texture",this.shaderStage,this.context.nodeName),s=this.getPropertyName(a);this.increaseUsage(r);const o=r.build(this,"uint"),l=this.getDataFromNode(e);let c=l.propertyName;if(c===void 0){const u=this.getVarFromNode(e);c=this.getPropertyName(u);const f=this.getDataFromNode(n);let h=f.propertySizeName;h===void 0&&(h=c+"Size",this.getVarFromNode(n,h,"uint"),this.addLineFlowCode(`${h} = uint( textureSize( ${s}, 0 ).x )`,e),f.propertySizeName=h);const{itemSize:p}
4230=i,A="."+Hy.join("").slice(0,p),g=`ivec2(${o} % ${h}, ${o} / ${h})`,w=this.generateTextureLoad(null,s,g,"0",null,null);let T="vec4";i.pbo.type===_a?T="uvec4":i.pbo.type===Al&&(T="ivec4"),this.addLineFlowCode(`${c} = ${T}(${w})${A}`,e),l.propertyName=c}return c}generateTextureLoad(e,n,r,i,a,s){i===null&&(i="0");let o;return a?s?o=`texelFetchOffset( ${n}, ivec3( ${r}, ${a} ), int( ${i} ), ${s} )`:o=`texelFetch( ${n}, ivec3( ${r}, ${a} ), int( ${i} ) )`:s?o=`texelFetchOffset( ${n}, ${r}, int( ${i} ), ${s} )`:o=`texelFetch( ${n}, ${r}, int( ${i} ) )`,e!==null&&e.isDepthTexture&&(o+=".x"),o}generateTexture(e,n,r,i,a){return i&&(r=`vec3( ${r}, ${i} )`),e.isDepthTexture?a?`textureOffset( ${n}, ${r}, ${a} ).x`:`texture( ${n}, ${r} ).x`:a?`textureOffset( ${n}, ${r}, ${a} )`:`texture( ${n}, ${r} )`}generateTextureLevel(e,n,r,i,a,s){return a&&(r=`vec3( ${r}, ${a} )`),s?`textureLodOffset( ${n}, ${r}, ${i}, ${s} )`:`textureLod( ${n}, ${r}, ${i} )`}generateTextureBias(e,n,r,i,a,s){return a&&(r=`vec3( ${r}, ${a} )`),s?`textureOffset( ${n}, ${r}, ${s}, ${i} )`:`texture( ${n}, ${r}, ${i} )`}generateTextureGrad(e,n,r,i,a,s){return a&&(r=`vec3( ${r}, ${a} )`),s?`textureGradOffset( ${n}, ${r}, ${i[0]}, ${i[1]}, ${s} )`:`textureGrad( ${n}, ${r}, ${i[0]}, ${i[1]} )`}generateTextureCompare(e,n,r,i,a,s,o=this.shaderStage){if(o==="fragment")return e.isCubeTexture?`texture( ${n}, vec4( ${r}, ${i} ) )`:a?s?`textureOffset( ${n}, vec4( ${r}, ${a}, ${i} ), ${s} )`:`texture( ${n}, vec4( ${r}, ${a}, ${i} ) )`:s?`textureOffset( ${n}, vec3( ${r}, ${i} ), ${s} )`:`texture( ${n}, vec3( ${r}, ${i} ) )`;nn(`WebGPURenderer: THREE.DepthTexture.compareFunction() does not support ${o} shader.`)}getUniforms(e){const n=this.uniforms[e],r=[],i={};for(const s of n){let o=null,l=!1;if(s.type==="texture"||s.type==="texture3D"){const c=s.node.value;let u="";(c.isDataTexture===!0||c.isData3DTexture===!0)&&(c.type===_a?u="u":c.type===Al&&(u="i")),s.type==="texture3D"&&c.isArrayTexture===!1?o=`${u}sampler3D ${s.name};`:c.compareFunction?c.isArrayTexture===!0?o=`sampler2DArrayShadow ${s.name};`:o=`sampler2DShadow ${s.name};`:c.isArrayTexture===!0||c.isDataArrayTexture===!0||c.isCompressedArrayTexture===!0?o=`${u}sampler2DArray ${s.name};`:o=`${u}sampler2D ${s.name};`}else if(s.type==="cubeTexture")o=`samplerCube ${s.name};`;else if(s.type==="cubeDepthTexture")s.node.value.compareFunction?o=`samplerCubeShadow ${s.name};`:o=`samplerCube ${s.name};`;else if(s.type==="buffer"){const c=s.node,u=this.getType(c.bufferType),f=c.bufferCount,h=f>0?f:"";o=`${c.name} { 4231 ${u} ${s.name}[${h}]; 4232}; 4233`}else{const c=s.groupNode.name;if(i[c]===void 0){const u=this.uniformGroups[c];if(u!==void 0){const f=[];for(const h of u.uniforms){const p=h.getType(),A=this.getVectorType(p),g=h.nodeUniform.node.precision;let w=`${A} ${h.name};`;g!==null&&(w=Tse[g]+" "+w),f.push(" "+w)}i[c]=f}}l=!0}if(!l){const c=s.node.precision;c!==null&&(o=Tse[c]+" "+o),o="uniform "+o,r.push(o)}}let a="";for(const s in i){const o=i[s];a+=this._getGLSLUniformStruct(s,o.join(` 4234`))+` 4235`}return a+=r.join(` 4236`),a}getTypeFromAttribute(e){let n=super.getTypeFromAttribute(e);if(/^[iu]/.test(n)&&e.gpuType!==Al){let r=e;e.isInterleavedBufferAttribute&&(r=e.data);const i=r.array;i instanceof Uint32Array||i instanceof Int32Array||(n=n.slice(1))}return n}getAttributes(e){let n="";if(e==="vertex"||e==="compute"){const r=this.getAttributesArray();let i=0;for(const a of r)n+=`layout( location = ${i++} ) in ${a.type} ${a.name}; 4237`}return n}getStructMembers(e){const n=[];for(const r of e.members)n.push(` ${r.type} ${r.name};`);return n.join(` 4238`)}getStructs(e){const n=[],r=this.structs[e],i=[];for(const a of r)if(a.output)for(const s of a.members)i.push(`layout( location = ${s.index} ) out ${s.type} ${s.name};`);else{let s="struct "+a.name+` { 4239`;s+=this.getStructMembers(a),s+=` 4240}; 4241`,n.push(s)}return i.length===0&&i.push("layout( location = 0 ) out vec4 fragColor;"),` 4242`+i.join(` 4243`)+` 4244 4245`+n.join(` 4246`)}getVaryings(e){let n="";const r=this.varyings;if(e==="vertex"||e==="compute")for(const i of r){e==="compute"&&(i.needsInterpolation=!0);const a=this.getType(i.type);if(i.needsInterpolation)if(i.interpolationType){const s=Mse[i.interpolationType]||i.interpolationType,o=Cse[i.interpolationSampling]||"";n+=`${s} ${o} out ${a} ${i.name}; 4247`}else{const s=a.includes("int")||a.includes("uv")||a.includes("iv")?"flat ":"";n+=`${s}out ${a} ${i.name}; 4248`}else n+=`${a} ${i.name}; 4249`}else if(e==="fragment"){for(const i of r)if(i.needsInterpolation){const a=this.getType(i.type);if(i.interpolationType){const s=Mse[i.interpolationType]||i.interpolationType,o=Cse[i.interpolationSampling]||"";n+=`${s} ${o} in ${a} ${i.name}; 4250`}else{const s=a.includes("int")||a.includes("uv")||a.includes("iv")?"flat ":"";n+=`${s}in ${a} ${i.name}; 4251`}}}for(const i of this.builtins[e])n+=`${i}; 4252`;return n}getVertexIndex(){return"uint( gl_VertexID )"}getInstanceIndex(){return"uint( gl_InstanceID )"}getInvocationLocalIndex(){return`uint( gl_InstanceID ) % ${this.object.workgroupSize.reduce((r,i)=>r*i,1)}u`}getSubgroupSize(){nn("GLSLNodeBuilder: WebGLBackend does not support the subgroupSize node")}getInvocationSubgroupIndex(){nn("GLSLNodeBuilder: WebGLBackend does not support the invocationSubgroupIndex node")}getSubgroupIndex(){nn("GLSLNodeBuilder: WebGLBackend does not support the subgroupIndex node")}getDrawIndex(){return this.renderer.backend.extensions.has("WEBGL_multi_draw")?"uint( gl_DrawID )":"nodeUniformDrawId"}getFrontFacing(){return"gl_FrontFacing"}getFragCoord(){return"gl_FragCoord.xy"}getFragDepth(){return"gl_FragDepth"}enableExtension(e,n,r=this.shaderStage){const i=this.extensions[r]||(this.extensions[r]=new Map);i.has(e)===!1&&i.set(e,{name:e,behavior:n})}getExtensions(e){const n=[];if(e==="vertex"){const i=this.renderer.backend.extensions;this.object.isBatchedMesh&&i.has("WEBGL_multi_draw")&&this.enableExtension("GL_ANGLE_multi_draw","require",e)}const r=this.extensions[e];if(r!==void 0)for(const{name:i,behavior:a}of r.values())n.push(`#extension ${i} : ${a}`);return n.join(` 4253`)}getClipDistance(){return"gl_ClipDistance"}isAvailable(e){let n=Ese[e];
4253if(n===void 0){let r;switch(n=!1,e){case"float32Filterable":r="OES_texture_float_linear";break;case"clipDistance":r="WEBGL_clip_cull_distance";break}if(r!==void 0){const i=this.renderer.backend.extensions;i.has(r)&&(i.get(r),n=!0)}Ese[e]=n}return n}isFlipY(){return!0}enableHardwareClipping(e){this.enableExtension("GL_ANGLE_clip_cull_distance","require"),this.builtins.vertex.push(`out float gl_ClipDistance[ ${e} ]`)}enableMultiview(){this.enableExtension("GL_OVR_multiview2","require","fragment"),this.enableExtension("GL_OVR_multiview2","require","vertex"),this.builtins.vertex.push("layout(num_views = 2) in")}registerTransform(e,n){this.transforms.push({varyingName:e,attributeNode:n})}getTransforms(){const e=this.transforms;let n="";for(let r=0;r<e.length;r++){const i=e[r],a=this.getPropertyName(i.attributeNode);a&&(n+=`${i.varyingName} = ${a}; 4254 `)}return n}_getGLSLUniformStruct(e,n){return` 4255layout( std140 ) uniform ${e} { 4256${n} 4257};`}_getGLSLVertexCode(e){return`#version 300 es 4258 4259${this.getSignature()} 4260 4261// extensions 4262${e.extensions} 4263 4264// precision 4265${Nse} 4266 4267// uniforms 4268${e.uniforms} 4269 4270// varyings 4271${e.varyings} 4272 4273// attributes 4274${e.attributes} 4275 4276// vars 4277${e.vars} 4278 4279// codes 4280${e.codes} 4281 4282void main() { 4283 4284 // transforms 4285 ${e.transforms} 4286 4287 // flow 4288 ${e.flow} 4289 4290 gl_PointSize = 1.0; 4291 4292} 4293`}_getGLSLFragmentCode(e){return`#version 300 es 4294 4295${this.getSignature()} 4296 4297// extensions 4298${e.extensions} 4299 4300// precision 4301${Nse} 4302 4303// structs 4304${e.structs} 4305 4306// uniforms 4307${e.uniforms} 4308 4309// varyings 4310${e.varyings} 4311 4312// vars 4313${e.vars} 4314 4315// codes 4316${e.codes} 4317 4318void main() { 4319 4320 // flow 4321 ${e.flow} 4322 4323} 4324`}buildCode(){const e=this.material!==null?{fragment:{},vertex:{}}:{compute:{}};this.sortBindingGroups();for(const n in e){let r=`// code 4325 4326`;r+=this.flowCode[n];const i=this.flowNodes[n],a=i[i.length-1];for(const o of i){const l=this.getFlowData(o),c=o.name;c&&(r.length>0&&(r+=` 4327`),r+=` // flow -> ${c} 4328 `),r+=`${l.code} 4329 `,o===a&&n!=="compute"&&(r+=`// result 4330 `,n==="vertex"?(r+="gl_Position = ",r+=`${l.result};`):n==="fragment"&&(o.outputNode.isOutputStructNode||(r+="fragColor = ",r+=`${l.result};`)))}const s=e[n];if(s.extensions=this.getExtensions(n),s.uniforms=this.getUniforms(n),s.attributes=this.getAttributes(n),s.varyings=this.getVaryings(n),s.vars=this.getVars(n,!0),s.structs=this.getStructs(n),s.codes=this.getCodes(n),s.transforms=this.getTransforms(n),s.flow=r,n==="vertex"){const o=this.renderer.backend.extensions;this.object.isBatchedMesh&&o.has("WEBGL_multi_draw")===!1&&(s.uniforms+=` 4331uniform uint nodeUniformDrawId; 4332`)}}this.material!==null?(this.vertexShader=this._getGLSLVertexCode(e.vertex),this.fragmentShader=this._getGLSLFragmentCode(e.fragment)):this.computeShader=this._getGLSLVertexCode(e.compute)}getUniformFromNode(e,n,r,i=null){const a=super.getUniformFromNode(e,n,r,i),s=this.getDataFromNode(e,r,this.globalCache);let o=s.uniformGPU;if(o===void 0){const l=e.groupNode,c=l.name,u=this.getBindGroupArray(c,r);if(n==="texture")o=new Dk(a.name,a.node,l),u.push(o);else if(n==="cubeTexture"||n==="cubeDepthTexture")o=new b4e(a.name,a.node,l),u.push(o);else if(n==="texture3D")o=new bH(a.name,a.node,l),u.push(o);else if(n==="buffer"){a.name=`buffer${e.id}`;const f=this.getSharedDataFromNode(e);let h=f.buffer;h===void 0&&(e.name=`NodeBuffer_${e.id}`,h=new v4e(e,l),h.name=e.name,f.buffer=h),u.push(h),o=h}else{let f=this.uniformGroups[c];f===void 0?(f=new y4e(c,l),this.uniformGroups[c]=f,u.push(f)):u.indexOf(f)===-1&&u.push(f),o=this.getNodeUniform(a,n);const h=o.name;f.uniforms.some(A=>A.name===h)||f.addUniform(o)}s.uniformGPU=o}return a}}let DB=null,A8=null;class w4e{constructor(e={}){this.parameters=Object.assign({},e),this.data=new WeakMap,this.renderer=null,this.domElement=null,this.timestampQueryPool={[Y1.RENDER]:null,[Y1.COMPUTE]:null},this.trackTimestamp=e.trackTimestamp===!0}async init(e){this.renderer=e}get coordinateSystem(){}beginRender(){}finishRender(){}beginCompute(){}finishCompute(){}draw(){}compute(){}createProgram(){}destroyProgram(){}createBindings(){}updateBindings(){}updateBinding(){}createRenderPipeline(){}createComputePipeline(){}needsRenderUpdate(){}getRenderCacheKey(){}createNodeBuilder(){}updateSampler(){}createDefaultTexture(){}createTexture(){}updateTexture(){}generateMipmaps(){}destroyTexture(){}async copyTextureToBuffer(){}copyTextureToTexture(){}copyFramebufferToTexture(){}createAttribute(){}createIndexAttribute(){}createStorageAttribute(){}updateAttribute(){}destroyAttribute(){}getContext(){}updateSize(){}updateViewport(){}updateTimeStampUID(e){const n=this.get(e),r=this.renderer.info.frame;let i;e.isComputeNode===!0?i="c:"+this.renderer.info.compute.frameCalls:i="r:"+this.renderer.info.render.frameCalls,n.timestampUID=i+":"+e.id+":f"+r}getTimestampUID(e){return this.get(e).timestampUID}getTimestampFrames(e){const n=this.timestampQueryPool[e];return n?n.getTimestampFrames():[]}_getQueryPool(e){const n=e.startsWith("c:")?Y1.COMPUTE:Y1.RENDER;return this.timestampQueryPool[n]}getTimestamp(e){return this._getQueryPool(e).getTimestamp(e)}hasTimestamp(e){return this._getQueryPool(e).hasTimestamp(e)}isOccluded(){}async resolveTimestampsAsync(e="render"){if(!this.trackTimestamp){Fa("WebGPURenderer: Timestamp tracking is disabled.");return}const n=this.timestampQueryPool[e];if(!n)return;const r=await n.resolveQueriesAsync();return this.renderer.info[e].timestamp=r,r}async getArrayBufferAsync(){}async hasFeatureAsync(){}hasFeature(){}getDrawingBufferSize(){return DB=DB||new tn,this.renderer.getDrawingBufferSize(DB)}setScissorTest(){}getClearColor(){const e=this.renderer;return A8=A8||new _Z,e.getClearColor(A8),A8.getRGB(A8),A8}getDomElement(){let e=this.domElement;return e===null&&(e=this.parameters.canvas!==void 0?this.parameters.canvas:jme(),"setAttribute"in e&&e.setAttribute("data-engine",`three.js r${Iy} webgpu`),this.domElement=e),e}hasCompatibility(){return!1}initRenderTarget(){}set(e,n){this.data.set(e,n)}get(e){let n=this.data.get(e);return n===void 0&&(n={},this.data.set(e,n)),n}has(e){return this.data.has(e)}delete(e){this.data.delete(e)}deleteBindGroupData(){}dispose(){}}let Pgt=0;class kgt{constructor(e,n){this.buffers=[e.bufferGPU,n],this.type=e.type,this.bufferType=e.bufferType,this.pbo=e.pbo,this.byteLength=e.byteLength,this.bytesPerElement=e.BYTES_PER_ELEMENT,this.version=e.version,this.isInteger=e.isInteger,this.activeBufferIndex=0,this.baseId=e.id}get id(){return`${this.baseId}|${this.activeBufferIndex}`}get bufferGPU(){return this.buffers[this.activeBufferIndex]}get transformBuffer(){return this.buffers[this.activeBufferIndex^1]}switchBuffers(){this.activeBufferIndex^=1}}class Lgt{constructor(e){this.backend=e}createAttribute(e,n){const r=this.backend,{gl:i}=r,a=e.array,s=e.usage||i.STATIC_DRAW,o=e.isInterleavedBufferAttribute?e.data:e,l=r.get(o);let c=l.bufferGPU;c===void 0&&(c=this._createBuffer(i,n,a,s),l.bufferGPU=c,l.bufferType=n,l.version=o.version);let u;if(a instanceof Float32Array)u=i.FLOAT;else if(typeof Float16Array<"u"&&a instanceof Float16Array)u=i.HALF_FLOAT;else if(a instanceof Uint16Array)e.isFloat16BufferAttribute?u=i.HALF_FLOAT:u=i.UNSIGNED_SHORT;else if(a instanceof Int16Array)u=i.SHORT;else if(a instanceof Uint32Array)u=i.UNSIGNED_INT;else if(a instanceof Int32Array)u=i.INT;else if(a instanceof Int8Array)u=i.BYTE;else if(a instanceof Uint8Array)u=i.UNSIGNED_BYTE;else if(a instanceof Uint8ClampedArray)u=i.UNSIGNED_BYTE;else throw new Error("THREE.WebGLBackend: Unsupported buffer data format: "+a);let f={bufferGPU:c,bufferType:n,type:u,byteLength:a.byteLength,bytesPerElement:a.BYTES_PER_ELEMENT,version:e.version,pbo:e.pbo,isInteger:u===i.INT||u===i.UNSIGNED_INT||e.gpuType===Al,id:Pgt++};if(e.isStorageBufferAttribute||e.isStorageInstancedBufferAttribute){const h=this._createBuffer(i,n,a,s);f=new kgt(f,h)}r.set(e,f)}updateAttribute(e){const n=this.backend,{gl:r}=n,i=e.array,a=e.isInterleavedBufferAttribute?e.data:e,s=n.get(a),o=s.bufferType,l=e.isInterleavedBufferAttribute?e.data.updateRanges:e.updateRanges;if(r.bindBuffer(o,s.bufferGPU),l.length===0)r.bufferSubData(o,0,i);else{for(let c=0,u=l.length;c<u;c++){const f=l[c];r.bufferSubData(o,f.start*i.BYTES_PER_ELEMENT,i,f.start,f.count)}a.clearUpdateRanges()}r.bindBuffer(o,null),s.version=a.version}destroyAttribute(e){const n=this.backend,{gl:r}=n;e.isInterleavedBufferAttribute&&n.delete(e.data);const i=n.get(e);r.deleteBuffer(i.bufferGPU),n.delete(e)}async getArrayBufferAsync(e,n=null,r=0,i=-1){const a=this.backend,{gl:s}=a,o=e.isInterleavedBufferAttribute?e.data:e,l=a.get(o),{bufferGPU:c}=l,u=i===-1?l.byteLength-r:i;let f;if(n===null)f=new Uint8Array(new ArrayBuffer(u));else if(n.isReadbackBuffer){if(n._mapped===!0)throw new Error("WebGPURenderer: ReadbackBuffer must be released before being used again.");const h=()=>{n.buffer=null,n._mapped=!1,n.removeEventListener("release",h),n.removeEventListener("dispose",h)};n.addEventListener("release",h),n.addEventListener("dispose",h),f=new Uint8Array(new ArrayBuffer(u)),n.buffer=f.buffer}else f=new Uint8Array(n);return s.bindBuffer(s.COPY_READ_BUFFER,c),s.getBufferSubData(s.COPY_READ_BUFFER,r,f),s.bindBuffer(s.COPY_READ_BUFFER,null),s.bindBuffer(s.COPY_WRITE_BUFFER,null),n&&n.isReadbackBuffer?n:f.buffer}_createBuffer(e,n,r,i){const a=e.createBuffer();return e.bindBuffer(n,a),e.bufferData(n,r,i),e.bindBuffer(n,null),a}}let ow,Rm;class Ogt{constructor(e){this.backend=e,this.gl=this.backend.gl,this.enabled={},this.parameters={},this.currentFlipSided=null,this.currentCullFace=null,this.currentProgram=null,this.currentBlendingEnabled=!1,this.currentBlending=null,this.currentBlendSrc=null,this.currentBlendDst=null,this.currentBlendSrcAlpha=null,this.currentBlendDstAlpha=null,this.currentPremultipledAlpha=null,this.currentPolygonOffsetFactor=null,this.currentPolygonOffsetUnits=null,this.currentColorMask=null,this.currentDepthReversed=!1,this.currentDepthFunc=null,this.currentDepthMask=null,this.currentStencilFunc=null,this.currentStencilRef=null,this.currentStencilFuncMask=null,this.currentStencilFail=null,this.currentStencilZFail=null,this.currentStencilZPass=null,this.currentStencilMask=null,this.currentLineWidth=null,this.currentClippingPlanes=0,this.currentVAO=null,this.currentIndex=null,this.currentBoundFramebuffers={},this.currentDrawbuffers=new WeakMap,this.maxTextures=this.gl.getParameter(this.gl.MAX_TEXTURE_IMAGE_UNITS),this.currentTextureSlot=null,this.currentBoundTextures={},this.currentBoundBufferBases={},this._init()}_init(){const e=this.gl;ow={[oc]:e.FUNC_ADD,[tq]:e.FUNC_SUBTRACT,[nq]:e.FUNC_REVERSE_SUBTRACT},Rm={[Bm]:e.ZERO,[rq]:e.ONE,[iq]:e.SRC_COLOR,[W3]:e.SRC_ALPHA,[uq]:e.SRC_ALPHA_SATURATE,[lq]:e.DST_COLOR,[sq]:e.DST_ALPHA,[aq]:e.ONE_MINUS_SRC_COLOR,[Z3]:e.ONE_MINUS_SRC_ALPHA,[cq]:e.ONE_MINUS_DST_COLOR,[oq]:e.ONE_MINUS_DST_ALPHA};const n=e.getParameter(e.SCISSOR_BOX),r=e.getParameter(e.VIEWPORT);this.currentScissor=new kr().fromArray(n),this.currentViewport=new kr().fromArray(r),this._tempVec4=new kr}enable(e){const{enabled:n}=this;n[e]!==!0&&(this.gl.enable(e),n[e]=!0)}disable(e){const{enabled:n}=this;n[e]!==!1&&(this.gl.disable(e),n[e]=!1)}setFlipSided(e){if(this.currentFlipSided!==e){const{gl:n}=this;e?n.frontFace(n.CW):n.frontFace(n.CCW),this.currentFlipSided=e}}setCullFace(e){const{gl:n}=this;e!==Rme?(this.enable(n.CULL_FACE),e!==this.currentCullFace&&(e===ij?n.cullFace(n.BACK):e===Dme?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):this.disable(n.CULL_FACE),this.currentCullFace=e}setLineWidth(e){const{currentLineWidth:n,gl:r}=this;e!==n&&(r.lineWidth(e),this.currentLineWidth=e)}setMRTBlending(e,n,r){const i=this.gl,a=this.backend.drawBuffersIndexedExt;if(!a){Fa("WebGPURenderer: Multiple Render Targets (MRT) blending configuration is not fully supported in compatibility mode. The material blending will be used for all render targets.");return}for(let s=0;s<e.length;s++){const o=e[s];let l=null;
4332if(n!==null){const c=n.getBlendMode(o.name);c.blending===eq?l=r:c.blending!==_l&&(l=c)}else l=r;l!==null?this._setMRTBlendingIndex(s,l):a.blendFuncSeparateiOES(s,i.ONE,i.ZERO,i.ONE,i.ZERO)}}_setMRTBlendingIndex(e,n){const{gl:r}=this,i=this.backend.drawBuffersIndexedExt,a=n.blending,s=n.blendSrc,o=n.blendDst,l=n.blendEquation,c=n.premultipliedAlpha;if(a===Qv){const u=n.blendSrcAlpha!==null?n.blendSrcAlpha:s,f=n.blendDstAlpha!==null?n.blendDstAlpha:o,h=n.blendEquationAlpha!==null?n.blendEquationAlpha:l;i.blendEquationSeparateiOES(e,ow[l],ow[h]),i.blendFuncSeparateiOES(e,Rm[s],Rm[o],Rm[u],Rm[f])}else if(i.blendEquationSeparateiOES(e,r.FUNC_ADD,r.FUNC_ADD),c)switch(a){case Hl:i.blendFuncSeparateiOES(e,r.ONE,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA);break;case og:i.blendFuncSeparateiOES(e,r.ONE,r.ONE,r.ONE,r.ONE);break;case lg:i.blendFuncSeparateiOES(e,r.ZERO,r.ONE_MINUS_SRC_COLOR,r.ZERO,r.ONE);break;case cg:i.blendFuncSeparateiOES(e,r.DST_COLOR,r.ONE_MINUS_SRC_ALPHA,r.ZERO,r.ONE);break;default:i.blendFuncSeparateiOES(e,r.ONE,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA);break}else switch(a){case Hl:i.blendFuncSeparateiOES(e,r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA);break;case og:i.blendFuncSeparateiOES(e,r.SRC_ALPHA,r.ONE,r.ONE,r.ONE);break;case lg:i.blendFuncSeparateiOES(e,r.ZERO,r.ONE_MINUS_SRC_COLOR,r.ZERO,r.ONE);break;case cg:i.blendFuncSeparateiOES(e,r.DST_COLOR,r.ONE_MINUS_SRC_ALPHA,r.ZERO,r.ONE);break;default:i.blendFuncSeparateiOES(e,r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA);break}}setBlending(e,n,r,i,a,s,o,l){const{gl:c}=this;if(e===_l){this.currentBlendingEnabled===!0&&(this.disable(c.BLEND),this.currentBlendingEnabled=!1);return}if(this.currentBlendingEnabled===!1&&(this.enable(c.BLEND),this.currentBlendingEnabled=!0),e!==Qv){if(e!==this.currentBlending||l!==this.currentPremultipledAlpha){if((this.currentBlendEquation!==oc||this.currentBlendEquationAlpha!==oc)&&(c.blendEquation(c.FUNC_ADD),this.currentBlendEquation=oc,this.currentBlendEquationAlpha=oc),l)switch(e){case Hl:c.blendFuncSeparate(c.ONE,c.ONE_MINUS_SRC_ALPHA,c.ONE,c.ONE_MINUS_SRC_ALPHA);break;case og:c.blendFunc(c.ONE,c.ONE);break;case lg:c.blendFuncSeparate(c.ZERO,c.ONE_MINUS_SRC_COLOR,c.ZERO,c.ONE);break;case cg:c.blendFuncSeparate(c.DST_COLOR,c.ONE_MINUS_SRC_ALPHA,c.ZERO,c.ONE);break;default:nn("WebGLState: Invalid blending: ",e);break}else switch(e){case Hl:c.blendFuncSeparate(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA,c.ONE,c.ONE_MINUS_SRC_ALPHA);break;case og:c.blendFuncSeparate(c.SRC_ALPHA,c.ONE,c.ONE,c.ONE);break;case lg:nn("WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true");break;case cg:nn("WebGLState: MultiplyBlending requires material.premultipliedAlpha = true");break;default:nn("WebGLState: Invalid blending: ",e);break}this.currentBlendSrc=null,this.currentBlendDst=null,this.currentBlendSrcAlpha=null,this.currentBlendDstAlpha=null,this.currentBlending=e,this.currentPremultipledAlpha=l}return}a=a||n,s=s||r,o=o||i,(n!==this.currentBlendEquation||a!==this.currentBlendEquationAlpha)&&(c.blendEquationSeparate(ow[n],ow[a]),this.currentBlendEquation=n,this.currentBlendEquationAlpha=a),(r!==this.currentBlendSrc||i!==this.currentBlendDst||s!==this.currentBlendSrcAlpha||o!==this.currentBlendDstAlpha)&&(c.blendFuncSeparate(Rm[r],Rm[
4332i],Rm[s],Rm[o]),this.currentBlendSrc=r,this.currentBlendDst=i,this.currentBlendSrcAlpha=s,this.currentBlendDstAlpha=o),this.currentBlending=e,this.currentPremultipledAlpha=!1}setColorMask(e){this.currentColorMask!==e&&(this.gl.colorMask(e,e,e,e),this.currentColorMask=e)}setDepthTest(e){const{gl:n}=this;e?this.enable(n.DEPTH_TEST):this.disable(n.DEPTH_TEST)}setReversedDepth(e){if(this.currentDepthReversed!==e){const n=this.backend.extensions.get("EXT_clip_control");e?n.clipControlEXT(n.LOWER_LEFT_EXT,n.ZERO_TO_ONE_EXT):n.clipControlEXT(n.LOWER_LEFT_EXT,n.NEGATIVE_ONE_TO_ONE_EXT),this.currentDepthReversed=e}}setDepthMask(e){this.currentDepthMask!==e&&(this.gl.depthMask(e),this.currentDepthMask=e)}setDepthFunc(e){if(this.currentDepthReversed&&(e=wq[e]),this.currentDepthFunc!==e){const{gl:n}=this;switch(e){case x5:n.depthFunc(n.NEVER);break;case v5:n.depthFunc(n.ALWAYS);break;case y5:n.depthFunc(n.LESS);break;case $g:n.depthFunc(n.LEQUAL);break;case _5:n.depthFunc(n.EQUAL);break;case b5:n.depthFunc(n.GEQUAL);break;case w5:n.depthFunc(n.GREATER);break;case S5:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}this.currentDepthFunc=e}}scissor(e,n,r,i){const a=this._tempVec4.set(e,n,r,i);if(this.currentScissor.equals(a)===!1){const{gl:s}=this;s.scissor(a.x,a.y,a.z,a.w),this.currentScissor.copy(a)}}viewport(e,n,r,i){const a=this._tempVec4.set(e,n,r,i);if(this.currentViewport.equals(a)===!1){const{gl:s}=this;s.viewport(a.x,a.y,a.z,a.w),this.currentViewport.copy(a)}}setScissorTest(e){const n=this.gl;e?this.enable(n.SCISSOR_TEST):this.disable(n.SCISSOR_TEST)}setStencilTest(e){const{gl:n}=this;e?this.enable(n.STENCIL_TEST):this.disable(n.STENCIL_TEST)}setStencilMask(e){this.currentStencilMask!==e&&(this.gl.stencilMask(e),this.currentStencilMask=e)}setStencilFunc(e,n,r){(this.currentStencilFunc!==e||this.currentStencilRef!==n||this.currentStencilFuncMask!==r)&&(this.gl.stencilFunc(e,n,r),this.currentStencilFunc=e,this.currentStencilRef=n,this.currentStencilFuncMask=r)}setStencilOp(e,n,r){(this.currentStencilFail!==e||this.currentStencilZFail!==n||this.currentStencilZPass!==r)&&(this.gl.stencilOp(e,n,r),this.currentStencilFail=e,this.currentStencilZFail=n,this.currentStencilZPass=r)}setMaterial(e,n,r){const{gl:i}=this;e.side===Zs?this.disable(i.CULL_FACE):this.enable(i.CULL_FACE);let a=e.side===ca;n&&(a=!a),this.setFlipSided(a),e.blending===Hl&&e.transparent===!1?this.setBlending(_l):this.setBlending(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),this.setDepthFunc(e.depthFunc),this.setDepthTest(e.depthTest),this.setDepthMask(e.depthWrite),this.setColorMask(e.colorWrite);const s=e.stencilWrite;if(this.setStencilTest(s),s&&(this.setStencilMask(e.stencilWriteMask),this.setStencilFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),this.setStencilOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),this.setPolygonOffset(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),e.alphaToCoverage===!0&&this.backend.renderer.currentSamples>0?this.enable(i.SAMPLE_ALPHA_TO_COVERAGE):this.disable(i.SAMPLE_ALPHA_TO_COVERAGE),r>0&&this.currentClippingPlanes!==r)for(let l=0;l<8;l++)l<r?this.enable(12288+l):this.disable(12288+l)}setPolygonOffset(e,n,r){const{gl:i}=this;e?(this.enable(i.POLYGON_OFFSET_FILL),(this.currentPolygonOffsetFactor!==n||this.currentPolygonOffsetUnits!==r)&&(i.polygonOffset(n,r),this.currentPolygonOffsetFactor=n,this.currentPolygonOffsetUnits=r)):this.disable(i.POLYGON_OFFSET_FILL)}useProgram(e){return this.currentProgram!==e?(this.gl.useProgram(e),this.currentProgram=e,!0):!1}setVertexState(e,n=null){const r=this.gl;return this.currentVAO!==e||this.currentIndex!==n?(r.bindVertexArray(e),n!==null&&r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,n),this.currentVAO=e,this.currentIndex=n,!0):!1}resetVertexState(){const e=this.gl;e.bindVertexArray(null),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null),this.currentVAO=null,this.currentIndex=null}bindFramebuffer(e,n){const{gl:r,currentBoundFramebuffers:i}=this;return i[e]!==n?(r.bindFramebuffer(e,n),i[e]=n,e===r.DRAW_FRAMEBUFFER&&(i[r.FRAMEBUFFER]=n),e===r.FRAMEBUFFER&&(i[r.DRAW_FRAMEBUFFER]=n),!0):!1}drawBuffers(e,n){const{gl:r}=this;let i=[],a=!1;if(e.textures!==null){i=this.currentDrawbuffers.get(n),i===void 0&&(i=[],this.currentDrawbuffers.set(n,i));const s=e.textures;if(i.length!==s.length||i[0]!==r.COLOR_ATTACHMENT0){for(let o=0,l=s.length;o<l;o++)i[o]=r.COLOR_ATTACHMENT0+o;i.length=s.length,a=!0}}else i[0]!==r.BACK&&(i[0]=r.BACK,a=!0);a&&r.drawBuffers(i)}activeTexture(e){const{gl:n,currentTextureSlot:r,maxTextures:i}=this;e===void 0&&(e=n.TEXTURE0+i-1),r!==e&&(n.activeTexture(e),this.currentTextureSlot=e)}bindTexture(e,n,r){const{gl:i,currentTextureSlot:a,currentBoundTextures:s,maxTextures:o}=this;r===void 0&&(a===null?r=i.TEXTURE0+o-1:r=a);let l=s[r];l===void 0&&(l={type:void 0,texture:void 0},s[r]=l),(l.type!==e||l.texture!==n)&&(a!==r&&(i.activeTexture(r),this.currentTextureSlot=r),i.bindTexture(e,n),l.type=e,l.texture=n)}bindBufferBase(e,n,r){const{gl:i}=this,a=`${e}-${n}`;return this.currentBoundBufferBases[a]!==r?(i.bindBufferBase(e,n,r),this.currentBoundBufferBases[a]=r,!0):!1}
4332unbindTexture(){const{gl:e,currentTextureSlot:n,currentBoundTextures:r}=this,i=r[n];i!==void 0&&i.type!==void 0&&(e.bindTexture(i.type,null),i.type=void 0,i.texture=void 0)}getParameter(e){const{gl:n,parameters:r}=this;return r[e]!==void 0?r[e]:n.getParameter(e)}pixelStorei(e,n){const{gl:r,parameters:i}=this;i[e]!==n&&(r.pixelStorei(e,n),i[e]=n)}}class Fgt{constructor(e){this.backend=e,this.gl=this.backend.gl,this.extensions=e.extensions}convert(e,n=g0){const{gl:r,extensions:i}=this;let a;const s=Ar.getTransfer(n);if(e===rs)return r.UNSIGNED_BYTE;if(e===HT)return r.UNSIGNED_SHORT_4_4_4_4;if(e===GT)return r.UNSIGNED_SHORT_5_5_5_1;if(e===zT)return r.UNSIGNED_INT_5_9_9_9_REV;if(e===$T)return r.UNSIGNED_INT_10F_11F_11F_REV;if(e===Sg)return r.BYTE;if(e===Tg)return r.SHORT;if(e===dd)return r.UNSIGNED_SHORT;if(e===Al)return r.INT;if(e===_a)return r.UNSIGNED_INT;if(e===os)return r.FLOAT;if(e===is)return r.HALF_FLOAT;if(e===zP)return r.ALPHA;if(e===u6)return r.RGB;if(e===fo)return r.RGBA;if(e===Gl)return r.DEPTH_COMPONENT;if(e===Wc)return r.DEPTH_STENCIL;if(e===f6)return r.RED;if(e===By)return r.RED_INTEGER;if(e===uc)return r.RG;if(e===Uy)return r.RG_INTEGER;if(e===d6)return r.RGBA_INTEGER;if(e===Eg||e===Mg||e===Cg||e===Ng)if(s===Bn)if(a=i.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(e===Eg)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(e===Mg)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(e===Cg)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(e===Ng)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=i.get("WEBGL_compressed_texture_s3tc"),a!==null){if(e===Eg)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Mg)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===Cg)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Ng)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(e===T5||e===E5||e===M5||e===C5)if(a=i.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(e===T5)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===E5)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===M5)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===C5)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(e===Y3||e===X3||e===Q3||e===K3||e===J3||e===qg||e===e_)if(a=i.get("WEBGL_compressed_texture_etc"),a!==null){if(e===Y3||e===X3)return s===Bn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(e===Q3)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC;if(e===K3)return a.COMPRESSED_R11_EAC;if(e===J3)return a.COMPRESSED_SIGNED_R11_EAC;if(e===qg)return a.COMPRESSED_RG11_EAC;if(e===e_)return a.COMPRESSED_SIGNED_RG11_EAC}else return null;if(e===t_||e===n_||e===r_||e===i_||e===a_||e===s_||e===o_||e===l_||e===c_||e===u_||e===f_||e===d_||e===h_||e===p_)if(a=i.get("WEBGL_compressed_texture_astc"),a!==null){if(e===t_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(e===n_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(e===r_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(e===i_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(e===a_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(e===s_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(e===o_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(e===l_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(e===c_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(e===u_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(e===f_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(e===d_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(e===h_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(e===p_)return s===Bn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(e===m_)if(a=i.get("EXT_texture_compression_bptc"),a!==null){if(e===m_)return s===Bn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}else return null;if(e===A_||e===g_||e===Wg||e===x_)if(a=i.get("EXT_texture_compression_rgtc"),a!==null){if(e===A_)return a.COMPRESSED_RED_RGT
4332C1_EXT;if(e===g_)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(e===Wg)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(e===x_)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return e===N0?r.UNSIGNED_INT_24_8:r[e]!==void 0?r[e]:null}_clientWaitAsync(){const{gl:e}=this,n=e.fenceSync(e.SYNC_GPU_COMMANDS_COMPLETE,0);return e.flush(),new Promise((r,i)=>{function a(){const s=e.clientWaitSync(n,e.SYNC_FLUSH_COMMANDS_BIT,0);if(s===e.WAIT_FAILED){e.deleteSync(n),i();return}if(s===e.TIMEOUT_EXPIRED){requestAnimationFrame(a);return}e.deleteSync(n),r()}a()})}}let Rse=!1,_C,PB,Dse;class Igt{constructor(e){this.backend=e,this.gl=e.gl,this.extensions=e.extensions,this.defaultTextures={},this._srcFramebuffer=null,this._dstFramebuffer=null,Rse===!1&&(this._init(),Rse=!0)}_init(){const e=this.gl;_C={[py]:e.REPEAT,[x0]:e.CLAMP_TO_EDGE,[my]:e.MIRRORED_REPEAT},PB={[sa]:e.NEAREST,[xq]:e.NEAREST_MIPMAP_NEAREST,[Km]:e.NEAREST_MIPMAP_LINEAR,[Ba]:e.LINEAR,[A3]:e.LINEAR_MIPMAP_NEAREST,[v0]:e.LINEAR_MIPMAP_LINEAR},Dse={[vq]:e.NEVER,[bq]:e.ALWAYS,[$P]:e.LESS,[sx]:e.LEQUAL,[yq]:e.EQUAL,[S2]:e.GEQUAL,[N5]:e.GREATER,[_q]:e.NOTEQUAL}}getGLTextureType(e){const{gl:n}=this;let r;return e.isCubeTexture===!0?r=n.TEXTURE_CUBE_MAP:e.isArrayTexture===!0||e.isDataArrayTexture===!0||e.isCompressedArrayTexture===!0?r=n.TEXTURE_2D_ARRAY:e.isData3DTexture===!0?r=n.TEXTURE_3D:r=n.TEXTURE_2D,r}getInternalFormat(e,n,r,i,a,s=!1){const{gl:o,extensions:l}=this;if(e!==null){if(o[e]!==void 0)return o[e];Kt("WebGLBackend: Attempt to use non-existing WebGL internal format '"+e+"'")}let c=null;i&&(c=l.get("EXT_texture_norm16"),c||Kt("WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension"));let u=n;if(n===o.RED&&(r===o.FLOAT&&(u=o.R32F),r===o.HALF_FLOAT&&(u=o.R16F),r===o.UNSIGNED_BYTE&&(u=o.R8),r===o.BYTE&&(u=o.R8_SNORM),r===o.UNSIGNED_SHORT&&c&&(u=c.R16_EXT),r===o.SHORT&&c&&(u=c.R16_SNORM_EXT)),n===o.RED_INTEGER&&(r===o.UNSIGNED_BYTE&&(u=o.R8UI),r===o.UNSIGNED_SHORT&&(u=o.R16UI),r===o.UNSIGNED_INT&&(u=o.R32UI),r===o.BYTE&&(u=o.R8I),r===o.SHORT&&(u=o.R16I),r===o.INT&&(u=o.R32I)),n===o.RG&&(r===o.FLOAT&&(u=o.RG32F),r===o.HALF_FLOAT&&(u=o.RG16F),r===o.UNSIGNED_BYTE&&(u=o.RG8),r===o.BYTE&&(u=o.RG8_SNORM),r===o.UNSIGNED_SHORT&&c&&(u=c.RG16_EXT),r===o.SHORT&&c&&(u=c.RG16_SNORM_EXT)),n===o.RG_INTEGER&&(r===o.UNSIGNED_BYTE&&(u=o.RG8UI),r===o.UNSIGNED_SHORT&&(u=o.RG16UI),r===o.UNSIGNED_INT&&(u=o.RG32UI),r===o.BYTE&&(u=o.RG8I),r===o.SHORT&&(u=o.RG16I),r===o.INT&&(u=o.RG32I)),n===o.RGB){const f=s?y_:Ar.getTransfer(a);r===o.FLOAT&&(u=o.RGB32F),r===o.HALF_FLOAT&&(u=o.RGB16F),r===o.UNSIGNED_BYTE&&(u=f===Bn?o.SRGB8:o.RGB8),r===o.BYTE&&(u=o.RGB8_SNORM),r===o.UNSIGNED_SHORT&&c&&(u=c.RGB16_EXT),r===o.SHORT&&c&&(u=c.RGB16_SNORM_EXT),r===o.UNSIGNED_SHORT_5_6_5&&(u=o.RGB565),r===o.UNSIGNED_SHORT_5_5_5_1&&(u=o.RGB5_A1),r===o.UNSIGNED_SHORT_4_4_4_4&&(u=o.RGB4),r===o.UNSIGNED_INT_5_9_9_9_REV&&(u=o.RGB9_E5),r===o.UNSIGNED_INT_10F_11F_11F_REV&&(u=o.R11F_G11F_B10F)}if(n===o.RGB_INTEGER&&(r===o.UNSIGNED_BYTE&&(u=o.RGB8UI),r===o.UNSIGNED_SHORT&&(u=o.RGB16UI),r===o.UNSIGNED_INT&&(u=o.RGB32UI),r===o.BYTE&&(u=o.RGB8I),r===o.SHORT&&(u=o.RGB16I),r===o.INT&&(u=o.RGB32I)),n===o.RGBA){const f=s?y_:Ar.getTransfer(a);r===o.FLOAT&&(u=o.RGBA32F),r===o.HALF_FLOAT&&(u=o.RGBA16F),r===o.UNSIGNED_BYTE&&(u=f===Bn?o.SRGB8_ALPHA8:o.RGBA8),r===o.BYTE&&(u=o.RGBA8_SNORM),r===o.UNSIGNED_SHORT&&c&&(u=c.RGBA16_EXT),r===o.SHORT&&c&&(u=c.RGBA16_SNORM_EXT),r===o.UNSIGNED_SHORT_4_4_4_4&&(u=o.RGBA4),r===o.UNSIGNED_SHORT_5_5_5_1&&(u=o.RGB5_A1)}return n===o.RGBA_INTEGER&&(r===o.UNSIGNED_BYTE&&(u=o.RGBA8UI),r===o.UNSIGNED_SHORT&&(u=o.RGBA16UI),r===o.UNSIGNED_INT&&(u=o.RGBA32UI),r===o.BYTE&&(u=o.RGBA8I),r===o.SHORT&&(u=o.RGBA16I),r===o.INT&&(u=o.RGBA32I)),n===o.DEPTH_COMPONENT&&(r===o.UNSIGNED_SHORT&&(u=o.DEPTH_COMPONENT16),r===o.UNSIGNED_INT&&(u=o.DEPTH_COMPONENT24),r===o.FLOAT&&(u=o.DEPTH_COMPONENT32F)),n===o.DEPTH_STENCIL&&r===o.UNSIGNED_INT_24_8&&(u=o.DEPTH24_STENCIL8),(u===o.R16F||u===o.R32F||u===o.RG16F||u===o.RG32F||u===o.RGBA16F||u===o.RGBA32F)&&l.get("EXT_color_buffer_float"),u}setTextureParameters(e,n){const{gl:r,extensions:i,backend:a}=this,{state:s}=this.backend,o=Ar.getPrimaries(Ar.workingColorSpace),l=n.colorSpace
4332===g0?null:Ar.getPrimaries(n.colorSpace),c=n.colorSpace===g0||o===l?r.NONE:r.BROWSER_DEFAULT_WEBGL;s.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,n.flipY),s.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),s.pixelStorei(r.UNPACK_ALIGNMENT,n.unpackAlignment),s.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,c),r.texParameteri(e,r.TEXTURE_WRAP_S,_C[n.wrapS]),r.texParameteri(e,r.TEXTURE_WRAP_T,_C[n.wrapT]),(e===r.TEXTURE_3D||e===r.TEXTURE_2D_ARRAY)&&(n.isArrayTexture||r.texParameteri(e,r.TEXTURE_WRAP_R,_C[n.wrapR])),r.texParameteri(e,r.TEXTURE_MAG_FILTER,PB[n.magFilter]);const u=n.mipmaps!==void 0&&n.mipmaps.length>0,f=n.minFilter===Ba&&u?v0:n.minFilter;if(r.texParameteri(e,r.TEXTURE_MIN_FILTER,PB[f]),n.compareFunction&&(r.texParameteri(e,r.TEXTURE_COMPARE_MODE,r.COMPARE_REF_TO_TEXTURE),r.texParameteri(e,r.TEXTURE_COMPARE_FUNC,Dse[n.compareFunction])),i.has("EXT_texture_filter_anisotropic")===!0){if(n.magFilter===sa||n.minFilter!==Km&&n.minFilter!==v0||n.type===os&&i.has("OES_texture_float_linear")===!1)return;if(n.anisotropy>1){const h=i.get("EXT_texture_filter_anisotropic");r.texParameterf(e,h.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(n.anisotropy,a.capabilities.getMaxAnisotropy()))}}}createDefaultTexture(e){const{gl:n,backend:r,defaultTextures:i}=this,a=this.getGLTextureType(e);let s=i[a];s===void 0&&(s=n.createTexture(),r.state.bindTexture(a,s),n.texParameteri(a,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(a,n.TEXTURE_MAG_FILTER,n.NEAREST),i[a]=s),r.set(e,{textureGPU:s,glTextureType:a})}createTexture(e,n){const{gl:r,backend:i}=this,{levels:a,width:s,height:o,depth:l}=n,c=i.utils.convert(e.format,e.colorSpace),u=i.utils.convert(e.type),f=this.getInternalFormat(e.internalFormat,c,u,e.normalized,e.colorSpace,e.isVideoTexture),h=r.createTexture(),p=this.getGLTextureType(e);i.state.bindTexture(p,h),this.setTextureParameters(p,e),e.isArrayTexture||e.isDataArrayTexture||e.isCompressedArrayTexture?r.texStorage3D(r.TEXTURE_2D_ARRAY,a,f,s,o,l):e.isData3DTexture?r.texStorage3D(r.TEXTURE_3D,a,f,s,o,l):e.isVideoTexture||r.texStorage2D(p,a,f,s,o),i.set(e,{textureGPU:h,glTextureType:p,glFormat:c,glType:u,glInternalFormat:f})}copyBufferToTexture(e,n){const{gl:r,backend:i}=this,{state:a}=i,{textureGPU:s,glTextureType:o,glFormat:l,glType:c}=i.get(n),{width:u,height:f}=n.source.data;r.bindBuffer(r.PIXEL_UNPACK_BUFFER,e),i.state.bindTexture(o,s),a.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),a.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.texSubImage2D(o,0,0,0,u,f,l,c,0),r.bindBuffer(r.PIXEL_UNPACK_BUFFER,null),i.state.unbindTexture()}updateTexture(e,n){const{gl:r}=this,{width:i,height:a}=n,{textureGPU:s,glTextureType:o,glFormat:l,glType:c,glInternalFormat:u}=this.backend.get(e);if(!(e.isRenderTargetTexture||s===void 0))if(this.backend.state.bindTexture(o,s),this.setTextureParameters(o,e),e.isCompressedTexture){const f=e.mipmaps,h=n.image;for(let p=0;p<f.length;p++){const A=f[p];e.isCompressedArrayTexture?e.format!==r.RGBA?l!==null?r.compressedTexSubImage3D(r.TEXTURE_2D_ARRAY,p,0,0,0,A.width,A.height,h.depth,l,A.data):Kt("WebGLBackend: Attempt to load unsupported compressed texture format in .uploadTexture()"):r.texSubImage3D(r.TEXTURE_2D_ARRAY,p,0,0,0,A.width,A.height,h.depth,l,c,A.data):l!==null?r.compressedTexSubImage2D(r.TEXTURE_2D,p,0,0,A.width,A.height,l,A.data):Kt("WebGLBackend: Unsupported compressed texture format")}}else if(e.isCubeTexture){const f=n.images,h=e.mipmaps;for(let p=0;p<6;p++){const A=bC(f[p]);r.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,0,0,i,a,l,c,A);for(let g=0;g<h.length;g++){const w=h[g],T=bC(w.images[p]);r.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+p,g+1,0,0,T.width,T.height,l,c,T)}}}else if(e.isDataArrayTexture||e.isArrayTexture){const f=n.image;if(e.layerUpdates.size>0){const h=hj(f.width,f.height,e.format,e.type);for(const p of e.layerUpdates){const A=f.data.subarray(p*h/f.data.BYTES_PER_ELEMENT,(p+1)*h/f.data.BYTES_PER_ELEMENT);r.texSubImage3D(r.TEXTURE_2D_ARRAY,0,0,0,p,f.width,f.height,1,l,c,A)}e.clearLayerUpdates()}else r.texSubImage3D(r.TEXTURE_2D_ARRAY,0,0,0,0,f.width,f.height,f.depth,l,c,f.data)}else if(e.isData3DTexture){const f=n.image;r.texSubImage3D(r.TEXTURE_3D,0,0,0,0,f.width,f.height,f.depth,l,c,f.data)}
4332else if(e.isVideoTexture)e.update(),r.texImage2D(o,0,u,l,c,n.image);else if(e.isHTMLTexture)typeof r.texElementImage2D=="function"&&r.texElementImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n.image);else{const f=e.mipmaps;if(f.length>0)for(let h=0,p=f.length;h<p;h++){const A=f[h],g=bC(A);r.texSubImage2D(o,h,0,0,A.width,A.height,l,c,g)}else{const h=bC(n.image);r.texSubImage2D(o,0,0,0,i,a,l,c,h)}}}generateMipmaps(e){const{gl:n,backend:r}=this,{textureGPU:i,glTextureType:a}=r.get(e);r.state.bindTexture(a,i),n.generateMipmap(a)}deallocateRenderBuffers(e){const{gl:n,backend:r}=this;if(e){const i=r.get(e);if(i.renderBufferStorageSetup=void 0,i.framebuffers){for(const a in i.framebuffers)n.deleteFramebuffer(i.framebuffers[a]);delete i.framebuffers}if(i.depthRenderbuffer&&(n.deleteRenderbuffer(i.depthRenderbuffer),delete i.depthRenderbuffer),i.stencilRenderbuffer&&(n.deleteRenderbuffer(i.stencilRenderbuffer),delete i.stencilRenderbuffer),i.msaaFrameBuffer&&(n.deleteFramebuffer(i.msaaFrameBuffer),delete i.msaaFrameBuffer),i.msaaRenderbuffers){for(let a=0;a<i.msaaRenderbuffers.length;a++)n.deleteRenderbuffer(i.msaaRenderbuffers[a]);delete i.msaaRenderbuffers}}}destroyTexture(e,n=!1){const{gl:r,backend:i}=this,{textureGPU:a,renderTarget:s}=i.get(e);this.deallocateRenderBuffers(s),n===!1&&r.deleteTexture(a),i.delete(e)}copyTextureToTexture(e,n,r=null,i=null,a=0,s=0){const{gl:o,backend:l}=this,{state:c}=this.backend,{textureGPU:u,glTextureType:f,glType:h,glFormat:p}=l.get(n);c.bindTexture(f,u);let A,g,w,T,C,M,D,k,I;const L=e.isCompressedTexture?e.mipmaps[s]:e.image;if(r!==null)A=r.max.x-r.min.x,g=r.max.y-r.min.y,w=r.isBox3?r.max.z-r.min.z:1,T=r.min.x,C=r.min.y,M=r.isBox3?r.min.z:0;else{const Z=Math.pow(2,-a);A=Math.floor(L.width*Z),g=Math.floor(L.height*Z),e.isDataArrayTexture||e.isArrayTexture?w=L.depth:e.isData3DTexture?w=Math.floor(L.depth*Z):w=1,T=0,C=0,M=0}i!==null?(D=i.x,k=i.y,I=i.z):(D=0,k=0,I=0),c.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,n.flipY),c.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),c.pixelStorei(o.UNPACK_ALIGNMENT,n.unpackAlignment);const O=c.getParameter(o.UNPACK_ROW_LENGTH),B=c.getParameter(o.UNPACK_IMAGE_HEIGHT),G=c.getParameter(o.UNPACK_SKIP_PIXELS),j=c.getParameter(o.UNPACK_SKIP_ROWS),z=c.getParameter(o.UNPACK_SKIP_IMAGES);c.pixelStorei(o.UNPACK_ROW_LENGTH,L.width),c.pixelStorei(o.UNPACK_IMAGE_HEIGHT,L.height),c.pixelStorei(o.UNPACK_SKIP_PIXELS,T),c.pixelStorei(o.UNPACK_SKIP_ROWS,C),c.pixelStorei(o.UNPACK_SKIP_IMAGES,M);const Q=e.isDataArrayTexture||e.isData3DTexture||n.isArrayTexture,ee=n.isDataArrayTexture||n.isData3DTexture||n.isArrayTexture;if(e.isDepthTexture){const Z=l.get(e),X=l.get(n),K=l.get(Z.renderTarget),se=l.get(X.renderTarget),ae=K.framebuffers[Z.cacheKey],J=se.framebuffers[X.cacheKey];c.bindFramebuffer(o.READ_FRAMEBUFFER,ae),c.bindFramebuffer(o.DRAW_FRAMEBUFFER,J);for(let oe=0;oe<w;oe++)Q&&(o.framebufferTextureLayer(o.READ_FRAMEBUFFER,o.COLOR_ATTACHMENT0,Z.textureGPU,a,M+oe),o.framebufferTextureLayer(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0,u,s,I+oe)),o.blitFramebuffer(T,C,A,g,D,k,A,g,o.DEPTH_BUFFER_BIT,o.NEAREST);c.bindFramebuffer(o.READ_FRAMEBUFFER,null),c.bindFramebuffer(o.DRAW_FRAMEBUFFER,null)}else if(a!==0||e.isRenderTargetTexture||l.has(e)){const Z=l.get(e);this._srcFramebuffer===null&&(this._srcFramebuffer=o.createFramebuffer()),this._dstFramebuffer===null&&(this._dstFramebuffer=o.createFramebuffer()),c.bindFramebuffer(o.READ_FRAMEBUFFER,this._srcFramebuffer),c.bindFramebuffer(o.DRAW_FRAMEBUFFER,this._dstFramebuffer);for(let X=0;X<w;X++)Q?o.framebufferTextureLayer(o.READ_FRAMEBUFFER,o.COLOR_ATTACHMENT0,Z.textureGPU,a,M+X):o.framebufferTexture2D(o.READ_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,Z.textureGPU,a),ee?o.framebufferTextureLayer(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0,u,s,I+X):o.framebufferTexture2D(o.DRAW_FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,u,s),a!==0?o.blitFramebuffer(T,C,A,g,D,k,A,g,o.COLOR_BUFFER_BIT,o.NEAREST):ee?o.copyTexSubImage3D(f,s,D,k,I+X,T,C,A,g):o.copyTexSubImage2D(f,s,D,k,T,C,A,g);c.bindFramebuffer(o.READ_FRAMEBUFFER,null),c.bindFramebuffer(o.DRAW_FRAMEBUFFER,null)}else ee?e.isDataTexture||e.isData3DTexture?o.texSubImage3D(f,s,D,k,I,A,g,w,p,h,L.data):n.isCompressedArrayTexture?o.compressedTexSubImage3D(f,s,D,k,I,A,g,w,p,L.data):o.texSubImage3D(f,s,D,k,I,A,g,w,p,h,L):e.isDataTexture?o.texSubImage2D(o.TEXTURE_2D,s,D,k,A,g,p,h,L.data):e.isCompressedTexture?o.compressedTexSubImage2D(o.TEXTURE_2D,s,D,k,L.width,L.height,p,L.data):o.texSubImage2D(o.TEXTURE_2D,s,D,k,A,g,p,h,L);c.pixelStorei(o.UNPACK_ROW_LENGTH,O),c.pixelStorei(o.UNPACK_IMAGE_HEIGHT,B),c.pixelStorei(o.UNPACK_SKIP_PIXELS,G),c.pixelStorei(o.UNPACK_SKIP_ROWS,j),c.pixelStorei(o.UNPACK_SKIP_IMAGES,z),s===0&&n.generateMipmaps&&o.generateMipmap(f),c.unbindTexture()}copyFramebufferToTexture(e,n,r){const{gl:i}=this,{state:a}=this.backend,{textureGPU:s}=this.backend.get(e),{x:o,y:l,z:c,w:u}=r,f=e.isDepthTexture===!0||n.renderTarget&&n.renderTarget.samples>0,h=n.renderTarget?n.renderTarget.height:this.backend.getDrawingBufferSize().y;if(f){const p=o!==0||l!==0;let A,g;if(e.isDepthTexture===!0?(A=i.DEPTH_BUFFER_BIT,g=i.DEPTH_ATTACHMENT,n.stencil&&(A|=i.STENCIL_BUFFER_BIT)):(A=i.COLOR_BUFFER_BIT,g=i.COLOR_ATTACHMENT0),p){const w=this.backend.get(n.renderTarget),T=w.framebuffers[n.getCacheKey()],C=w.msaaFrameBuffer;a.bindFramebuffer(i.DRAW_FRAMEBUFFER,T),a.bindFramebuffer(i.READ_FRAMEBUFFER,C);const M=h-l-u;i.blitFramebuffer(o,M,o+c,M+u,o,M,o+c,M+u,A,i.NEAREST),a.bindFramebuffer(i.READ_FRAMEBUFFER,T),a.bindTexture(i.TEXTURE_2D,s),i.copyTexSubImage2D(i.TEXTURE_2D,0,0,0,o,M,c,u),a.unbindTexture()}else{const w=i.createFramebuffer();a.bindFramebuffer(i.DRAW_FRAMEBUFFER,w),i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,g,i.TEXTURE_2D,s,0),i.blitFramebuffer(0,0,c,u,0,0,c,u,A,i.NEAREST),i.deleteFramebuffer(w)}}else a.bindTexture(i.TEXTURE_2D,s),i.copyTexSubImage2D(i.TEXTURE_2D,0,0,0,o,h-u-l,c,u),a.unbindTexture();e.generateMipmaps&&this.generateMipmaps(e),this.backend._setFramebuffer(n)}setupRenderBufferStorage(e,n,r,i=!1){const{gl:a}=this,s=n.renderTarget,{depthTexture:o,depthBuffer:l,stencilBuffer:c,width:u,height:f}=s;if(a.bindRenderbuffer(a.RENDERBUFFER,e),l&&!c){let h=a.DEPTH_COMPONENT24;i===!0?this.extensions.get("WEBGL_multisampled_render_to_texture").renderbufferStorageMultisampleEXT(a.RENDERBUFFER,s.samples,h,u,f):r>0?(o&&o.isDepthTexture&&o.type===a.FLOAT&&(h=a.DEPTH_COMPONENT32F),a.renderbufferStorageMultisample(a.RENDERBUFFER,r,h,u,f)):a.renderbufferStorage(a.RENDERBUFFER,h,u,f),a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_ATTACHMENT,a.RENDERBUFFER,e)}else l&&c&&(r>0?a.renderbufferStorageMultisample(a.RENDERBUFFER,r,a.DEPTH24_STENCIL8,u,f):a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,u,f),a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_STENCIL_ATTACHMENT,a.RENDERBUFFER,e));a.bindRenderbuffer(a.RENDERBUFFER,null)}async copyTextureToBuffer(e,n,r,i,a,s){const{backend:o,gl:l}=this,{textureGPU:c,glFormat:u,glType:f}=this.backend.get(e),h=l.createFramebuffer();o.state.bindFramebuffer(l.READ_FRAMEBUFFER,h);const p=e.isCubeTexture?l.TEXTURE_CUBE_MAP_POSITIVE_X+s:l.TEXTURE_2D;l.framebufferTexture2D(l.READ_FRAMEBUFFER,l.COLOR_ATTACHMENT0,p,c,0);const A=this._getTypedArrayType(f),g=this._getBytesPerTexel(f,u),T=i*a*g,C=l.createBuffer();l.bindBuffer(l.PIXEL_PACK_BUFFER,C),l.bufferData(l.PIXEL_PACK_BUFFER,T,l.STREAM_READ),l.readPixels(n,r,i,a,u,f,0),l.bindBuffer(l.PIXEL_PACK_BUFFER,null),await o.utils._clientWaitAsync();const M=new A(T/A.BYTES_PER_ELEMENT);return l.bindBuffer(l.PIXEL_PACK_BUFFER,C),l.getBufferSubData(l.PIXEL_PACK_BUFFER,0,M),l.bindBuffer(l.PIXEL_PACK_BUFFER,null),o.state.bindFramebuffer(l.READ_FRAMEBUFFER,null),l.deleteFramebuffer(h),M}_getTypedArrayType(e){const{gl:n}=this;if(e===n.UNSIGNED_BYTE)return Uint8Array;
4332if(e===n.UNSIGNED_SHORT_4_4_4_4||e===n.UNSIGNED_SHORT_5_5_5_1||e===n.UNSIGNED_SHORT_5_6_5||e===n.UNSIGNED_SHORT)return Uint16Array;if(e===n.UNSIGNED_INT)return Uint32Array;if(e===n.HALF_FLOAT)return Uint16Array;if(e===n.FLOAT)return Float32Array;throw new Error(`Unsupported WebGL type: ${e}`)}_getBytesPerTexel(e,n){const{gl:r}=this;let i=0;if(e===r.UNSIGNED_BYTE&&(i=1),(e===r.UNSIGNED_SHORT_4_4_4_4||e===r.UNSIGNED_SHORT_5_5_5_1||e===r.UNSIGNED_SHORT_5_6_5||e===r.UNSIGNED_SHORT||e===r.HALF_FLOAT)&&(i=2),(e===r.UNSIGNED_INT||e===r.FLOAT)&&(i=4),n===r.RGBA)return i*4;if(n===r.RGB)return i*3;if(n===r.ALPHA)return i}dispose(){const{gl:e}=this;this._srcFramebuffer!==null&&e.deleteFramebuffer(this._srcFramebuffer),this._dstFramebuffer!==null&&e.deleteFramebuffer(this._dstFramebuffer)}}function bC(t){return t.isDataTexture?t.image.data:typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?t:t.data}class Bgt{constructor(e){this.backend=e,this.gl=this.backend.gl,this.availableExtensions=this.gl.getSupportedExtensions(),this.extensions={}}get(e){let n=this.extensions[e];return n===void 0&&(n=this.gl.getExtension(e),this.extensions[e]=n),n}has(e){return this.availableExtensions.includes(e)}}class Ugt{constructor(e){this.backend=e,this.maxAnisotropy=null,this.maxUniformBlockSize=null}getMaxAnisotropy(){if(this.maxAnisotropy!==null)return this.maxAnisotropy;const e=this.backend.gl,n=this.backend.extensions;if(n.has("EXT_texture_filter_anisotropic")===!0){const r=n.get("EXT_texture_filter_anisotropic");this.maxAnisotropy=e.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else this.maxAnisotropy=0;return this.maxAnisotropy}getUniformBufferLimit(){if(this.maxUniformBlockSize!==null)return this.maxUniformBlockSize;const e=this.backend.gl;return this.maxUniformBlockSize=e.getParameter(e.MAX_UNIFORM_BLOCK_SIZE),this.maxUniformBlockSize}}const Pse={WEBGL_multi_draw:"WEBGL_multi_draw",WEBGL_compressed_texture_astc:"texture-compression-astc",WEBGL_compressed_texture_etc:"texture-compression-etc2",WEBGL_compressed_texture_etc1:"texture-compression-etc1",WEBGL_compressed_texture_pvrtc:"texture-compression-pvrtc",WEBGL_compressed_texture_s3tc:"texture-compression-s3tc",EXT_texture_compression_bptc:"texture-compression-bc",EXT_disjoint_timer_query_webgl2:"timestamp-query",OVR_multiview2:"OVR_multiview2"};class Vgt{constructor(e){this.gl=e.gl,this.extensions=e.extensions,this.info=e.renderer.info,this.mode=null,this.index=0,this.type=null,this.object=null}render(e,n){const{gl:r,mode:i,object:a,type:s,info:o,index:l}=this;l!==0?r.drawElements(i,n,s,e):r.drawArrays(i,e,n),o.update(a,n,1)}renderInstances(e,n,r){const{gl:i,mode:a,type:s,index:o,object:l,info:c}=this;r!==0&&(o!==0?i.drawElementsInstanced(a,n,s,e,r):i.drawArraysInstanced(a,e,n,r),c.update(l,n,r))}renderMultiDraw(e,n,r){const{extensions:i,mode:a,object:s,info:o}=this;if(r===0)return;const l=i.get("WEBGL_multi_draw");if(l===null)for(let c=0;c<r;c++)this.render(e[c],n[c]);else{this.index!==0?l.multiDrawElementsWEBGL(a,n,0,this.type,e,0,r):l.multiDrawArraysWEBGL(a,e,0,n,0,r);let c=0;for(let u=0;u<r;u++)c+=n[u];o.update(s,c,1)}}}class S4e{constructor(e=256){this.trackTimestamp=!0,this.maxQueries=e,this.currentQueryIndex=0,this.queryOffsets=new Map,this.isDisposed=!1,this.lastValue=0,this.frames=[],this.pendingResolve=!1,this.timestamps=new Map}getTimestampFrames(){return this.frames}getTimestamp(e){let n=this.timestamps.get(e);return n===void 0&&(Kt(`TimestampQueryPool: No timestamp available for uid ${e}.`),n=0),n}hasTimestamp(e){return this.timestamps.has(e)}allocateQueriesForContext(){}async resolveQueriesAsync(){}dispose(){}}class jgt extends S4e{constructor(e,n,r=2048){if(super(r),this.gl=e,this.type=n,this.ext=e.getExtension("EXT_disjoint_timer_query_webgl2")||e.getExtension("EXT_disjoint_timer_query"),!this.ext){Kt("EXT_disjoint_timer_query not supported; timestamps will be disabled."),this.trackTimestamp=!1;return}this.queries=[];for(let i=0;i<this.maxQueries;i++)this.queries.push(e.createQuery());this.activeQuery=null,this.queryStates=new Map}allocateQueriesForContext(e){if(!this.trackTimestamp)return null;if(this.currentQueryIndex+2>this.maxQueries)return Fa(`WebGLTimestampQueryPool [${this.type}]: Maximum number of queries exceeded, when using trackTimestamp it is necessary to resolves the queries via renderer.resolveTimestampsAsync( THREE.TimestampQuery.${this.type.toUpperCase()} ).`),null;const n=this.currentQueryIndex;return this.currentQueryIndex+=2,this.queryStates.set(n,"inactive"),this.queryOffsets.set(e,n),n}beginQuery(e){if(!this.trackTimestamp||this.isDisposed)return;const n=this.queryOffsets.get(e);if(n==null||this.activeQuery!==null)return;const r=this.queries[n];if(r)try{this.queryStates.get(n)==="inactive"&&(this.gl.beginQuery(this.ext.TIME_ELAPSED_EXT,r),this.activeQuery=n,this.queryStates.set(n,"started"))}catch(i){nn("Error in beginQuery:",i),this.activeQuery=null,this.queryStates.set(n,"inactive")}}endQuery(e){if(!this.trackTimestamp||this.isDisposed)return;const n=this.queryOffsets.get(e);if(n!=null&&this.activeQuery===n)try{this.gl.endQuery(this.ext.TIME_ELAPSED_EXT),this.queryStates.set(n,"ended"),this.activeQuery=null}catch(r){nn("Error in endQuery:",r),this.queryStates.set(n,"inactive"),this.activeQuery=null}}async resolveQueriesAsync(){if(!this.trackTimestamp||this.pendingResolve)return this.lastValue;this.pendingResolve=!0;try{const e=new Map;for(const[a,s]of this.queryOffsets)if(this.queryStates.get(s)==="ended"){const l=this.queries[s];e.set(a,this.resolveQuery(l))}if(e.size===0)return this.lastValue;const n={},r=[];for(const[a,s]of e){const o=a.match(/^(.*):f(\d+)$/),l=parseInt(o[2]);r.includes(l)===!1&&r.push(l),n[l]===void 0&&(n[l]=0);const c=await s;this.timestamps.set(a,c),n[l]+=c}const i=n[r[r.length-1]];return this.lastValue=i,this.frames=r,this.currentQueryIndex=0,this.queryOffsets.clear(),this.queryStates.clear(),this.activeQuery=null,i}catch(e){return nn("Error resolving queries:",e),this.lastValue}finally{this.pendingResolve=!1}}async resolveQuery(e){return new Promise(n=>{if(this.isDisposed){n(this.lastValue);return}let r,i=!1;const a=()=>{r&&(clearTimeout(r),r=null)},s=l=>{i||(i=!0,a(),n(l))},o=()=>
4332{if(this.isDisposed){s(this.lastValue);return}try{if(this.gl.getParameter(this.ext.GPU_DISJOINT_EXT)){s(this.lastValue);return}if(!this.gl.getQueryParameter(e,this.gl.QUERY_RESULT_AVAILABLE)){r=setTimeout(o,1);return}const u=this.gl.getQueryParameter(e,this.gl.QUERY_RESULT);n(Number(u)/1e6)}catch(l){nn("Error checking query:",l),n(this.lastValue)}};o()})}dispose(){if(!this.isDisposed&&(this.isDisposed=!0,!!this.trackTimestamp)){for(const e of this.queries)this.gl.deleteQuery(e);this.queries=[],this.queryStates.clear(),this.queryOffsets.clear(),this.lastValue=0,this.activeQuery=null}}}class kse extends w4e{constructor(e={}){super(e),this.isWebGLBackend=!0,this.attributeUtils=null,this.extensions=null,this.capabilities=null,this.textureUtils=null,this.bufferRenderer=null,this.gl=null,this.state=null,this.utils=null,this.vaoCache={},this.transformFeedbackCache={},this.discard=!1,this.disjoint=null,this.parallel=null,this._currentContext=null,this._knownBindings=new WeakSet,this._supportsInvalidateFramebuffer=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),this._xrFramebuffer=null}init(e){super.init(e);const n=this.parameters,r={antialias:e.currentSamples>0,alpha:!0,depth:e.depth,stencil:e.stencil},i=n.context!==void 0?n.context:e.domElement.getContext("webgl2",r);function a(s){s.preventDefault();const o={api:"WebGL",message:s.statusMessage||"Unknown reason",reason:null,originalEvent:s};e.onDeviceLost(o)}this._onContextLost=a,e.domElement.addEventListener("webglcontextlost",a,!1),this.gl=i,this.extensions=new Bgt(this),this.capabilities=new Ugt(this),this.attributeUtils=new Lgt(this),this.textureUtils=new Igt(this),this.bufferRenderer=new Vgt(this),this.state=new Ogt(this),this.utils=new Fgt(this),this.extensions.get("EXT_color_buffer_float"),this.extensions.get("WEBGL_clip_cull_distance"),this.extensions.get("OES_texture_float_linear"),this.extensions.get("EXT_color_buffer_half_float"),this.extensions.get("WEBGL_multisampled_render_to_texture"),this.extensions.get("WEBGL_render_shared_exponent"),this.extensions.get("WEBGL_multi_draw"),this.extensions.get("OVR_multiview2"),this.extensions.get("EXT_clip_control"),this.disjoint=this.extensions.get("EXT_disjoint_timer_query_webgl2"),this.parallel=this.extensions.get("KHR_parallel_shader_compile"),this.drawBuffersIndexedExt=this.extensions.get("OES_draw_buffers_indexed"),n.reversedDepthBuffer&&(this.extensions.has("EXT_clip_control")?e.reversedDepthBuffer=!0:(Kt("WebGPURenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer."),e.reversedDepthBuffer=!1)),e.reversedDepthBuffer&&this.state.setReversedDepth(!0)}get coordinateSystem(){return Iu}async getArrayBufferAsync(e,n=null,r=0,i=-1){return await this.attributeUtils.getArrayBufferAsync(e,n,r,i)}async makeXRCompatible(){this.gl.getContextAttributes().xrCompatible!==!0&&await this.gl.makeXRCompatible()}setXRTarget(e){this._xrFramebuffer=e}setXRRenderTargetTextures(e,n,r=null){const i=this.gl;if(this.set(e.texture,{textureGPU:n,glInternalFormat:i.RGBA8}),r!==null){const a=e.stencilBuffer?i.DEPTH24_STENCIL8:i.DEPTH_COMPONENT24;this.set(e.depthTexture,{textureGPU:r,glInternalFormat:a}),this.extensions.has("WEBGL_multisampled_render_to_texture")===!0&&e._autoAllocateDepthBuffer===!0&&e.multiview===!1&&Kt("WebGLBackend: Render-to-texture extension was disabled because an external texture was provided"),e._autoAllocateDepthBuffer=!1}}initTimestampQuery(e,n){if(!this.disjoint||!this.trackTimestamp)return;this.timestampQueryPool[e]||(this.timestampQueryPool[e]=new jgt(this.gl,e,2048));const r=this.timestampQueryPool[e];r.allocateQueriesForContext(n)!==null&&r.beginQuery(n)}prepareTimestampBuffer(e,n){if(!this.disjoint||!this.trackTimestamp)return;this.timestampQueryPool[e].endQuery(n)}getContext(){return this.gl}beginRender(e){const{state:n}=this,r=this.get(e);if(e.viewport)this.updateViewport(e);else{const{width:a,height:s}=this.getDrawingBufferSize();n.viewport(0,0,a,s)}if(e.scissor)this.updateScissor(e);else{const{width:a,height:s}=this.getDrawingBufferSize();n.scissor(0,0,a,s)}this.initTimestampQuery(Y1.RENDER,this.getTimestampUID(e)),r.previousContext=this._currentContext,this._currentContext=e,this._setFramebuffer(e),this.clear(e.clearColor,e.clearDepth,e.clearStencil,e,!1);const i=e.occlusionQueryCount;i>0&&(r.currentOcclusionQueries=r.occlusionQueries,r.currentOcclusionQueryObjects=r.occlusionQueryObjects,r.lastOcclusionObject=null,r.occlusionQueries=new Array(i),r.occlusionQueryObjects=new Array(i),r.occlusionQueryIndex=0)}finishRender(e){const{gl:n,state:r}=this,i=this.get(e),a=i.previousContext;r.resetVertexState();const s=e.occlusionQueryCount;s>0&&(s>i.occlusionQueryIndex&&n.endQuery(n.ANY_SAMPLES_PASSED),this.resolveOccludedAsync(e));const o=e.textures;if(o!==null)for(let l=0;l<o.length;l++){const c=o[l];c.generateMipmaps&&this.generateMipmaps(c)}if(this._currentContext=a,this._resolveRenderTarget(e),a!==null){if(this._setFramebuffer(a),a.viewport)this.updateViewport(a);else{const{width:l,height:c}=this.getDrawingBufferSize();r.viewport(0,0,l,c)}if(a.scissor)this.updateScissor(a);else{const{width:l,height:c}=this.getDrawingBufferSize();r.scissor(0,0,l,c)}}this.prepareTimestampBuffer(Y1.RENDER,this.getTimestampUID(e))}resolveOccludedAsync(e){const n=this.get(e),{currentOcclusionQueries:r,currentOcclusionQueryObjects:i}=n;if(r&&i){const a=new WeakSet,{gl:s}=this;n.currentOcclusionQueryObjects=null,n.currentOcclusionQueries=null;const o=()=>{let l=0;for(let c=0;c<r.length;c++){const u=r[c];u!==null&&s.getQueryParameter(u,s.QUERY_RESULT_AVAILABLE)&&(s.getQueryParameter(u,s.QUERY_RESULT)===0&&a.add(i[c]),r[c]=null,s.deleteQuery(u),l++)}l<r.length?requestAnimationFrame(o):n.occluded=a};o()}}isOccluded(e,n){const r=this.get(e);return r.occluded&&r.occluded.has(n)}updateViewport(e){const{state:n}=this,{x:r,y:i,width:a,height:s}=e.viewportValue;n.viewport(r,e.height-s-i,a,s)}updateScissor(e){const{state:n}=this,{x:r,y:i,width:a,height:s}=e.scissorValue;n.scissor(r,e.height-s-i,a,s)}setScissorTest(e){this.state.setScissorTest(e)}getClearColor(){const e=super.getClearColor();return e.r*=e.a,e.g*=e.a,e.b*=e.a,e}clear(e,n,r,i=null,a=!0,s=!0){const{gl:o,renderer:l}=this;i===null&&(i={textures:null,clearColorValue:this.getClearColor()});let c=0;if(e&&(c|=o.COLOR_BUFFER_BIT),n&&(c|=o.DEPTH_BUFFER_BIT),r&&(c|=o.STENCIL_BUFFER_BIT),c!==0){let u;i.clearColorValue?u=i.clearColorValue:u=this.getClearColor();const f=l.getClearDepth(),h=l.getClearStencil();if(n&&this.state.setDepthMask(!0),i.textures===null)o.clearColor(u.r,u.g,u.b,u.a),o.clear(c);else{if(a&&this._setFramebuffer(i),e)for(let p=0;p<i.textures.length;
4332p++)p===0?o.clearBufferfv(o.COLOR,p,[u.r,u.g,u.b,u.a]):o.clearBufferfv(o.COLOR,p,[0,0,0,1]);n&&r?o.clearBufferfi(o.DEPTH_STENCIL,0,f,h):n?o.clearBufferfv(o.DEPTH,0,[f]):r&&o.clearBufferiv(o.STENCIL,0,[h]),a&&s&&this._resolveRenderTarget(i)}}}beginCompute(e){const{state:n,gl:r}=this;n.bindFramebuffer(r.FRAMEBUFFER,null),this.initTimestampQuery(Y1.COMPUTE,this.getTimestampUID(e))}compute(e,n,r,i,a=null){const{state:s,gl:o}=this;this.discard===!1&&(s.enable(o.RASTERIZER_DISCARD),this.discard=!0);const{programGPU:l,transformBuffers:c,attributes:u}=this.get(i),f=this._getVaoKey(u),h=this.vaoCache[f];h===void 0?this.vaoCache[f]=this._createVao(u):s.setVertexState(h),s.useProgram(l),this._bindUniforms(r);const p=this._getTransformFeedback(c);o.bindTransformFeedback(o.TRANSFORM_FEEDBACK,p),o.beginTransformFeedback(o.POINTS),a=a!==null?a:n.count,Array.isArray(a)?(Fa("WebGLBackend.compute(): The count parameter must be a single number, not an array."),a=a[0]):a&&typeof a=="object"&&a.isIndirectStorageBufferAttribute&&(Fa("WebGLBackend.compute(): The count parameter must be a single number, not IndirectStorageBufferAttribute"),a=n.count),u[0].isStorageInstancedBufferAttribute?o.drawArraysInstanced(o.POINTS,0,1,a):o.drawArrays(o.POINTS,0,a),o.endTransformFeedback(),o.bindTransformFeedback(o.TRANSFORM_FEEDBACK,null);for(let A=0;A<c.length;A++){const g=c[A];g.pbo&&this.has(g.pbo)&&this.textureUtils.copyBufferToTexture(g.transformBuffer,g.pbo),g.switchBuffers()}}finishCompute(e){const{state:n,gl:r}=this;this.discard=!1,n.disable(r.RASTERIZER_DISCARD),this.prepareTimestampBuffer(Y1.COMPUTE,this.getTimestampUID(e)),this._currentContext&&this._setFramebuffer(this._currentContext)}_isRenderCameraDepthArray(e){return e.depthTexture&&e.depthTexture.isArrayTexture&&e.camera.isArrayCamera}_draw(e,n,r,i,a,s){if(e.isBatchedMesh)if(this.hasFeature("WEBGL_multi_draw")===!1){const{gl:o}=this,l=o.getUniformLocation(s,"nodeUniformDrawId"),c=e._multiDrawStarts,u=e._multiDrawCounts,f=e._multiDrawCount;for(let h=0;h<f;h++)o.uniform1ui(l,h),n.render(c[h],u[h])}else n.renderMultiDraw(e._multiDrawStarts,e._multiDrawCounts,e._multiDrawCount);else a>1?n.renderInstances(r,i,a):n.render(r,i)}draw(e){const{object:n,pipeline:r,material:i,context:a,hardwareClippingPlanes:s}=e,{programGPU:o}=this.get(r),{gl:l,state:c}=this,u=this.get(a),f=e.getDrawParameters();if(f===null)return;this._bindUniforms(e.getBindings());const h=n.isMesh&&n.matrixWorld.determinant()<0;c.setMaterial(i,h,s),a.mrt!==null&&a.textures!==null&&c.setMRTBlending(a.textures,a.mrt,i),c.useProgram(o);const p=e.getAttributes(),A=this.get(p);let g=A.vaoGPU;if(g===void 0){const L=this._getVaoKey(p);g=this.vaoCache[L],g===void 0&&(g=this._createVao(p),this.vaoCache[L]=g,A.vaoGPU=g)}const w=e.getIndex(),T=w!==null?this.get(w).bufferGPU:null;c.setVertexState(g,T);const C=u.lastOcclusionObject;if(C!==n&&C!==void 0){if(C!==null&&C.occlusionTest===!0&&(l.endQuery(l.ANY_SAMPLES_PASSED),u.occlusionQueryIndex++),n.occlusionTest===!0){const L=l.createQuery();l.beginQuery(l.ANY_SAMPLES_PASSED,L),u.occlusionQueries[u.occlusionQueryIndex]=L,u.occlusionQueryObjects[u.occlusionQueryIndex]=n}u.lastOcclusionObject=n}const M=this.bufferRenderer;n.isPoints?M.mode=l.POINTS:n.isLineSegments?M.mode=l.LINES:n.isLine?M.mode=l.LINE_STRIP:n.isLineLoop?M.mode=l.LINE_LOOP:i.wireframe===!0?(c.setLineWidth(i.wireframeLinewidth*this.renderer.getPixelRatio()),M.mode=l.LINES):M.mode=l.TRIANGLES;const{vertexCount:D,instanceCount:k}=f;let{firstVertex:I}=f;if(M.object=n,w!==null){I*=w.array.BYTES_PER_ELEMENT;const L=this.get(w);M.index=w.count,M.type=L.type}else M.index=0;if(e.camera.isArrayCamera===!0&&e.camera.cameras.length>0&&e.camera.isMultiViewCamera===!1){const L=this.get(e.camera),O=e.camera.cameras,B=e.getBindingGroup("cameraIndex").bindings[0];if(L.indexesGPU===void 0||L.indexesGPU.length!==O.length){const Z=new Uint32Array([0,0,0,0]),X=[];for(let K=0,se=O.length;K<se;K++){const ae=l.createBuffer();Z[0]=K,l.bindBuffer(l.UNIFORM_BUFFER,ae),l.bufferData(l.UNIFORM_BUFFER,Z,l.STATIC_DRAW),X.push(ae)}L.indexesGPU=X}let G=0;e:for(const Z of e.getBindings())for(const X of Z.bindings){if(X===B)break e;(X.isUniformsGroup||X.isUniformBuffer)&&G++}const j=this.renderer.getPixelRatio(),z=this._currentContext.renderTarget,Q=this._isRenderCameraDepthArray(this._currentContext),ee=this._currentContext.activeCubeFace;if(Q){const Z=this.get(z.depthTexture);if(Z.clearedRenderId!==this.renderer._nodes.nodeFrame.renderId){Z.clearedRenderId=this.renderer._nodes.nodeFrame.renderId;const{stencilBuffer:X}=z;for(let K=0,se=O.length;K<se;K++)this.renderer._activeCubeFace=K,this._currentContext.activeCubeFace=K,this._setFramebuffer(this._currentContext),this.clear(!1,!0,X,this._currentContext,!1,!1);this.renderer._activeCubeFace=ee,this._currentContext.activeCubeFace=ee}}for(let Z=0,X=O.length;Z<X;Z++){const K=O[Z];if(n.layers.test(K.layers)){Q&&(this.renderer._activeCubeFace=Z,this._currentContext.activeCubeFace=Z,this._setFramebuffer(this._currentContext));const se=K.viewport;
4332if(se!==void 0){const ae=se.x*j,J=se.y*j,oe=se.width*j,te=se.height*j;c.viewport(Math.floor(ae),Math.floor(e.context.height-te-J),Math.floor(oe),Math.floor(te))}c.bindBufferBase(l.UNIFORM_BUFFER,G,L.indexesGPU[Z]),this._draw(n,M,I,D,k,o)}this._currentContext.activeCubeFace=ee,this.renderer._activeCubeFace=ee}}else this._draw(n,M,I,D,k,o)}needsRenderUpdate(){return!1}getRenderCacheKey(){return""}createDefaultTexture(e){this.textureUtils.createDefaultTexture(e)}createTexture(e,n){this.textureUtils.createTexture(e,n)}updateTexture(e,n){this.textureUtils.updateTexture(e,n)}generateMipmaps(e){this.textureUtils.generateMipmaps(e)}destroyTexture(e,n=!1){this.textureUtils.destroyTexture(e,n)}async copyTextureToBuffer(e,n,r,i,a,s){return this.textureUtils.copyTextureToBuffer(e,n,r,i,a,s)}updateSampler(){return""}createNodeBuilder(e,n){return new Dgt(e,n)}createProgram(e){const n=this.gl,{stage:r,code:i}=e,a=r==="fragment"?n.createShader(n.FRAGMENT_SHADER):n.createShader(n.VERTEX_SHADER);n.shaderSource(a,i),n.compileShader(a),this.set(e,{shaderGPU:a})}destroyProgram(e){this.delete(e)}createRenderPipeline(e,n){const r=this.gl,i=e.pipeline,{fragmentProgram:a,vertexProgram:s}=i,o=r.createProgram(),l=this.get(a).shaderGPU,c=this.get(s).shaderGPU;if(r.attachShader(o,l),r.attachShader(o,c),r.linkProgram(o),this.set(i,{programGPU:o,fragmentShader:l,vertexShader:c}),n!==null&&this.parallel){const u=new Promise(f=>{const h=this.parallel,p=()=>{r.getProgramParameter(o,h.COMPLETION_STATUS_KHR)?(this._completeCompile(e,i),f()):requestAnimationFrame(p)};p()});n.push(u);return}this._completeCompile(e,i)}_handleSource(e,n){const r=e.split(` 4333`),i=[],a=Math.max(n-6,0),s=Math.min(n+6,r.length);for(let o=a;o<s;o++){const l=o+1;i.push(`${l===n?">":" "} ${l}: ${r[o]}`)}return i.join(` 4334`)}_getShaderErrors(e,n,r){const i=e.getShaderParameter(n,e.COMPILE_STATUS),s=(e.getShaderInfoLog(n)||"").trim();if(i&&s==="")return"";const o=/ERROR: 0:(\d+)/.exec(s);if(o){const l=parseInt(o[1]);return r.toUpperCase()+` 4335 4336`+s+` 4337 4338`+this._handleSource(e.getShaderSource(n),l)}else return s}_logProgramError(e,n,r){if(this.renderer.debug.checkShaderErrors){const i=this.gl,s=(i.getProgramInfoLog(e)||"").trim();if(i.getProgramParameter(e,i.LINK_STATUS)===!1)if(typeof this.renderer.debug.onShaderError=="function")this.renderer.debug.onShaderError(i,e,r,n);else{const o=this._getShaderErrors(i,r,"vertex"),l=this._getShaderErrors(i,n,"fragment");nn("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(e,i.VALIDATE_STATUS)+` 4339 4340Program Info Log: `+s+` 4341`+o+` 4342`+l)}else s!==""&&Kt("WebGLProgram: Program Info Log:",s)}}_completeCompile(e,n){const{state:r,gl:i}=this,a=this.get(n),{programGPU:s,fragmentShader:o,vertexShader:l}=a;i.getProgramParameter(s,i.LINK_STATUS)===!1&&this._logProgramError(s,o,l),r.useProgram(s);const c=e.getBindings();this._setupBindings(c,s),this.set(n,{programGPU:s,pipeline:s})}createComputePipeline(e,n){const{state:r,gl:i}=this,a={stage:"fragment",code:`#version 300 es 4343precision highp float; 4344void main() {}`};this.createProgram(a);const{computeProgram:s}=e,o=i.createProgram(),l=this.get(a).shaderGPU,c=this.get(s).shaderGPU,u=s.transforms,f=[],h=[];for(let w=0;w<u.length;w++){const T=u[w];f.push(T.varyingName),h.push(T.attributeNode)}i.attachShader(o,l),i.attachShader(o,c),i.transformFeedbackVaryings(o,f,i.SEPARATE_ATTRIBS),i.linkProgram(o),i.getProgramParameter(o,i.LINK_STATUS)===!1&&this._logProgramError(o,l,c),r.useProgram(o),this._setupBindings(n,o);const p=s.attributes,A=[],g=[];for(let w=0;w<p.length;w++){const T=p[w].node.attribute;A.push(T),this.has(T)||this.attributeUtils.createAttribute(T,i.ARRAY_BUFFER)}for(let w=0;w<h.length;w++){const T=h[w].attribute;this.has(T)||this.attributeUtils.createAttribute(T,i.ARRAY_BUFFER);const C=this.get(T);g.push(C)}this.set(e,{programGPU:o,transformBuffers:g,attributes:A})}createBindings(e,n){if(this._knownBindings.has(n)===!1){this._knownBindings.add(n);let r=0,i=0;for(const a of n){this.set(a,{textures:i,uniformBuffers:r});for(const s of a.bindings)s.isUniformBuffer&&r++,s.isSampledTexture&&i++}}this.updateBindings(e,n)}updateBindings(e){const{gl:n}=this;for(const r of e.bindings){const i=this.get(r);if(r.isUniformsGroup||r.isUniformBuffer){const a=r.buffer;let{bufferGPU:s}=this.get(a);s===void 0?(s=n.createBuffer(),n.bindBuffer(n.UNIFORM_BUFFER,s),n.bufferData(n.UNIFORM_BUFFER,a.byteLength,n.DYNAMIC_DRAW),this.set(a,{bufferGPU:s})):n.bindBuffer(n.UNIFORM_BUFFER,s);const o=r.updateRanges;if(n.bindBuffer(n.UNIFORM_BUFFER,s),o.length===0)n.bufferData(n.UNIFORM_BUFFER,a,n.DYNAMIC_DRAW);else{const l=fR(a),c=l?1:a.BYTES_PER_ELEMENT;for(let u=0,f=o.length;u<f;u++){const h=o[u],p=h.start*c,A=h.count*c,g=p*(l?a.BYTES_PER_ELEMENT:1);n.bufferSubData(n.UNIFORM_BUFFER,g,a,p,A)}}i.bufferGPU=s,this.set(r,i)}else if(r.isSampledTexture){const{textureGPU:a,glTextureType:s}=this.get(r.texture);i.textureGPU=a,i.glTextureType=s,this.set(r,i)}}}updateBinding(e){const n=this.gl;if(e.isUniformsGroup||e.isUniformBuffer){const i=this.get(e).bufferGPU,a=e.buffer,s=e.updateRanges;if(n.bindBuffer(n.UNIFORM_BUFFER,i),s.length===0)n.bufferData(n.UNIFORM_BUFFER,a,n.DYNAMIC_DRAW);else{const o=fR(a),l=o?1:a.BYTES_PER_ELEMENT;for(let c=0,u=s.length;c<u;c++){const f=s[c],h=f.start*l,p=f.count*l,A=h*(o?a.BYTES_PER_ELEMENT:1);n.bufferSubData(n.UNIFORM_BUFFER,A,a,h,p)}}}}createIndexAttribute(e){const n=this.gl;this.attributeUtils.createAttribute(e,n.ELEMENT_ARRAY_BUFFER)}createAttribute(e){if(this.has(e))return;const n=this.gl;this.attributeUtils.createAttribute(e,n.ARRAY_BUFFER)}createStorageAttribute(e){if(this.has(e))return;const n=this.gl;this.attributeUtils.createAttribute(e,n.ARRAY_BUFFER)}updateAttribute(e){this.attributeUtils.updateAttribute(e)}destroyAttribute(e){this.attributeUtils.destroyAttribute(e)}hasFeature(e){const n=Object.keys(Pse).filter(i=>Pse[i]===e),r=this.extensions;for(let i=0;i<n.length;i++)if(r.has(n[i]))return!0;return!1}copyTextureToTexture(e,n,r=null,i=null,a=0,s=0){this.textureUtils.copyTextureToTexture(e,n,r,i,a,s)}copyFramebufferToTexture(e,n,r){this.textureUtils.copyFramebufferToTexture(e,n,r)}hasCompatibility(e){return e===Vy.TEXTURE_COMPARE?!0:super.hasCompatibility(e)}initRenderTarget(e){const{gl:n,state:r}=this;this._setFramebuffer(e),r.bindFramebuffer(n.FRAMEBUFFER,null)}_setFramebuffer(e){const{gl:n,state:r}=this;let i=null;if(e.textures!==null){const a=e.renderTarget,s=this.get(a),{samples:o,depthBuffer:l,stencilBuffer:c}=a,u=a.isCubeRenderTarget===!0,f=a.isRenderTarget3D===!0,h=a.depth>
43441,p=a.isXRRenderTarget===!0,A=p===!0&&a._hasExternalTextures===!0;let g=s.msaaFrameBuffer,w=s.depthRenderbuffer;const T=this.extensions.get("WEBGL_multisampled_render_to_texture"),C=this.extensions.get("OVR_multiview2"),M=this._useMultisampledExtension(a),D=Aye(e);let k;if(u?(s.cubeFramebuffers||(s.cubeFramebuffers={}),k=s.cubeFramebuffers[D]):p&&A===!1?k=this._xrFramebuffer:(s.framebuffers||(s.framebuffers={}),k=s.framebuffers[D]),k===void 0){k=n.createFramebuffer(),r.bindFramebuffer(n.FRAMEBUFFER,k);const I=e.textures,L=[];if(u){s.cubeFramebuffers[D]=k;const{textureGPU:B}=this.get(I[0]),G=this.renderer._activeCubeFace,j=this.renderer._activeMipmapLevel;n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+G,B,j)}else{s.framebuffers[D]=k;for(let B=0;B<I.length;B++){const G=I[B],j=this.get(G);j.renderTarget=e.renderTarget,j.cacheKey=D;const z=n.COLOR_ATTACHMENT0+B;if(a.multiview)C.framebufferTextureMultisampleMultiviewOVR(n.FRAMEBUFFER,z,j.textureGPU,0,o,0,2);else if(f||h){const Q=this.renderer._activeCubeFace,ee=this.renderer._activeMipmapLevel;n.framebufferTextureLayer(n.FRAMEBUFFER,z,j.textureGPU,ee,Q)}else if(M)T.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,z,n.TEXTURE_2D,j.textureGPU,0,o);else{const Q=this.renderer._activeMipmapLevel;n.framebufferTexture2D(n.FRAMEBUFFER,z,n.TEXTURE_2D,j.textureGPU,Q)}}}const O=c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;if(a._autoAllocateDepthBuffer===!0){const B=n.createRenderbuffer();this.textureUtils.setupRenderBufferStorage(B,e,0,M),s.xrDepthRenderbuffer=B,L.push(c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT),n.bindRenderbuffer(n.RENDERBUFFER,B),n.framebufferRenderbuffer(n.FRAMEBUFFER,O,n.RENDERBUFFER,B)}else if(e.depthTexture!==null){L.push(c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT);const B=this.get(e.depthTexture);if(B.renderTarget=e.renderTarget,B.cacheKey=D,a.multiview)C.framebufferTextureMultisampleMultiviewOVR(n.FRAMEBUFFER,O,B.textureGPU,0,o,0,2);else if(A&&M)T.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,O,n.TEXTURE_2D,B.textureGPU,0,o);else if(e.depthTexture.isArrayTexture){const G=this.renderer._activeCubeFace;n.framebufferTextureLayer(n.FRAMEBUFFER,O,B.textureGPU,0,G)}else if(e.depthTexture.isCubeTexture){const G=this.renderer._activeCubeFace;n.framebufferTexture2D(n.FRAMEBUFFER,O,n.TEXTURE_CUBE_MAP_POSITIVE_X+G,B.textureGPU,0)}else n.framebufferTexture2D(n.FRAMEBUFFER,O,n.TEXTURE_2D,B.textureGPU,0)}s.depthInvalidationArray=L}else{if(this._isRenderCameraDepthArray(e)){r.bindFramebuffer(n.FRAMEBUFFER,k);const L=this.renderer._activeCubeFace,O=this.get(e.depthTexture),B=c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;n.framebufferTextureLayer(n.FRAMEBUFFER,B,O.textureGPU,0,L)}if((p||M||a.multiview)&&a._isOpaqueFramebuffer!==!0){r.bindFramebuffer(n.FRAMEBUFFER,k);const L=this.get(e.textures[0]);a.multiview?C.framebufferTextureMultisampleMultiviewOVR(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,L.textureGPU,0,o,0,2):M?T.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,L.textureGPU,0,o):n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,L.textureGPU,0);const O=c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;if(a._autoAllocateDepthBuffer===!0){const B=s.xrDepthRenderbuffer;n.bindRenderbuffer(n.RENDERBUFFER,B),n.framebufferRenderbuffer(n.FRAMEBUFFER,O,n.RENDERBUFFER,B)}else{const B=this.get(e.depthTexture);a.multiview?C.framebufferTextureMultisampleMultiviewOVR(n.FRAMEBUFFER,O,B.textureGPU,0,o,0,2):M?T.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,O,n.TEXTURE_2D,B.textureGPU,0,o):n.framebufferTexture2D(n.FRAMEBUFFER,O,n.TEXTURE_2D,B.textureGPU,0)}}}if(o>0&&M===!1&&!a.multiview){if(g===void 0){const I=[];g=n.createFramebuffer(),r.bindFramebuffer(n.FRAMEBUFFER,g);const L=[],O=e.textures;for(let B=0;B<O.length;B++){L[B]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,L[B]),I.push(n.COLOR_ATTACHMENT0+B);const G=e.textures[B],j=this.get(G);n.renderbufferStorageMultisample(n.RENDERBUFFER,o,j.glInternalFormat,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+B,n.RENDERBUFFER,L[B])}if(n.bindRenderbuffer(n.RENDERBUFFER,null),s.msaaFrameBuffer=g,s.msaaRenderbuffers=L,l&&w===void 0){w=n.
4344createRenderbuffer(),this.textureUtils.setupRenderBufferStorage(w,e,o),s.depthRenderbuffer=w;const B=c?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;I.push(B)}s.invalidationArray=I}i=s.msaaFrameBuffer}else i=k;r.drawBuffers(e,k)}r.bindFramebuffer(n.FRAMEBUFFER,i)}_getVaoKey(e){let n="";for(let r=0;r<e.length;r++){const i=this.get(e[r]);n+=":"+i.id}return n}_createVao(e){const{gl:n}=this,r=n.createVertexArray();n.bindVertexArray(r);for(let i=0;i<e.length;i++){const a=e[i],s=this.get(a);n.bindBuffer(n.ARRAY_BUFFER,s.bufferGPU),n.enableVertexAttribArray(i);let o,l;a.isInterleavedBufferAttribute===!0?(o=a.data.stride*s.bytesPerElement,l=a.offset*s.bytesPerElement):(o=0,l=0),s.isInteger?n.vertexAttribIPointer(i,a.itemSize,s.type,o,l):n.vertexAttribPointer(i,a.itemSize,s.type,a.normalized,o,l),a.isInstancedBufferAttribute&&!a.isInterleavedBufferAttribute?n.vertexAttribDivisor(i,a.meshPerAttribute):a.isInterleavedBufferAttribute&&a.data.isInstancedInterleavedBuffer&&n.vertexAttribDivisor(i,a.data.meshPerAttribute)}return n.bindBuffer(n.ARRAY_BUFFER,null),r}_getTransformFeedback(e){let n="";for(let a=0;a<e.length;a++)n+=":"+e[a].id;let r=this.transformFeedbackCache[n];if(r!==void 0)return r;const{gl:i}=this;r=i.createTransformFeedback(),i.bindTransformFeedback(i.TRANSFORM_FEEDBACK,r);for(let a=0;a<e.length;a++){const s=e[a];i.bindBufferBase(i.TRANSFORM_FEEDBACK_BUFFER,a,s.transformBuffer)}return i.bindTransformFeedback(i.TRANSFORM_FEEDBACK,null),this.transformFeedbackCache[n]=r,r}_setupBindings(e,n){const r=this.gl;let i=0,a=0;for(const s of e)for(const o of s.bindings)if(o.isUniformsGroup||o.isUniformBuffer){const l=i++,c=r.getUniformBlockIndex(n,o.name);r.uniformBlockBinding(n,c,l)}else if(o.isSampledTexture){const l=a++,c=r.getUniformLocation(n,o.name);r.uniform1i(c,l)}}_bindUniforms(e){const{gl:n,state:r}=this;let i=0,a=0;for(const s of e)for(const o of s.bindings){const l=this.get(o);if(o.isUniformsGroup||o.isUniformBuffer){const c=i++;r.bindBufferBase(n.UNIFORM_BUFFER,c,l.bufferGPU)}else if(o.isSampledTexture){const c=a++;r.bindTexture(l.glTextureType,l.textureGPU,n.TEXTURE0+c)}}}_resolveRenderTarget(e){const{gl:n,state:r}=this,i=e.renderTarget;if(e.textures!==null&&i){const a=this.get(i);if(i.samples>0&&this._useMultisampledExtension(i)===!1){const s=a.framebuffers[e.getCacheKey()];let o=n.COLOR_BUFFER_BIT;i.resolveDepthBuffer&&(i.depthBuffer&&(o|=n.DEPTH_BUFFER_BIT),i.stencilBuffer&&i.resolveStencilBuffer&&(o|=n.STENCIL_BUFFER_BIT));const l=a.msaaFrameBuffer,c=a.msaaRenderbuffers,u=e.textures,f=u.length>1;if(r.bindFramebuffer(n.READ_FRAMEBUFFER,l),r.bindFramebuffer(n.DRAW_FRAMEBUFFER,s),f)for(let h=0;h<u.length;h++)n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0+h,n.RENDERBUFFER,null),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+h,n.TEXTURE_2D,null,0);for(let h=0;h<u.length;h++){if(f){const{textureGPU:p}=this.get(u[h]);n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,c[h]),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,p,0)}if(e.scissor){const{x:p,y:A,width:g,height:w}=e.scissorValue,T=e.height-w-A;n.blitFramebuffer(p,T,p+g,T+w,p,T,p+g,T+w,o,n.NEAREST)}else n.blitFramebuffer(0,0,e.width,e.height,0,0,e.width,e.height,o,n.NEAREST)}if(f)for(let h=0;h<u.length;h++){const{textureGPU:p}=this.get(u[h]);n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0+h,n.RENDERBUFFER,c[h]),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+h,n.TEXTURE_2D,p,0)}this._supportsInvalidateFramebuffer===!0&&n.invalidateFramebuffer(n.READ_FRAMEBUFFER,a.invalidationArray)}else if(i.resolveDepthBuffer===!1&&a.framebuffers){const s=a.framebuffers[e.getCacheKey()];r.bindFramebuffer(n.DRAW_FRAMEBUFFER,s),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,a.depthInvalidationArray)}}}_useMultisampledExtension(e){return e.multiview===!0?!0:e.samples>0&&this.extensions.has("WEBGL_multisampled_render_to_texture")===!0&&e._autoAllocateDepthBuffer!==!1}dispose(){this.textureUtils!==null&&this.textureUtils.dispose();const e=this.extensions.get("WEBGL_lose_context");e&&e.loseContext(),this.renderer.domElement.removeEventListener("webglcontextlost",this._onContextLost)}}const wC={PointList:"point-list",LineList:"line-list",LineStrip:"line-strip",TriangleList:"triangle-list"},Q1=typeof self<"u"&&self.GPUShaderStage?self.GPUShaderStage:{VERTEX:1,FRAGMENT:2,COMPUTE:4},Ql={Never:"never",Less:"less",Equal:"equal",LessEqual:"less-equal",Greater:"greater",NotEqual:"not-equal",GreaterEqual:"greater-equal",Always:"always"},gu={Store:"store"},Aa={Load:"load",Clear:"clear"},Lse={CCW:"ccw",CW:"cw"},Ose={None:"none",Back:"back"},pD={Uint16:"uint16",Uint32:"uint32"},qe={R8Unorm:"r8unorm",R8Snorm:"r8snorm",R8Uint:"r8uint",R8Sint:"r8sint",R16Uint:"r16uint",R16Sint:"r16sint",R16Float:"r16float",RG8Unorm:"rg8unorm",RG8Snorm:"rg8snorm",RG8Uint:"rg8uint",RG8Sint:"rg8sint",R16Unorm:"r16unorm",R16Snorm:"r16snorm",R32Uint:"r32uint",R32Sint:"r32sint",R32Float:"r32float",RG16Uint:"rg16uint",RG16Sint:"rg16sint",RG16Float:"rg16float",RGBA8Unorm:"rgba8unorm",RGBA8UnormSRGB:"rgba8unorm-srgb",RGBA8Snorm:"rgba8snorm",RGBA8Uint:"rgba8uint",RGBA8Sint:"rgba8sint",BGRA8Unorm:"bgra8unorm",BGRA8UnormSRGB:"bgra8unorm-srgb",RG16Unorm:"rg16unorm",RG16Snorm:"rg16snorm",RGB9E5UFloat:"rgb9e5ufloat",RGB10A2Unorm:"rgb10a2unorm",RG11B10UFloat:"rg11b10ufloat",RG32Uint:"rg32uint",RG32Sint:"rg32sint",RG32Float:"rg32float",RGBA16Uint:"rgba16uint",RGBA16Sint:"rgba16sint",RGBA16Float:"rgba16float",RGBA16Unorm:"rgba16unorm",RGBA16Snorm:"rgba16snorm",RGBA32Uint:"rgba32uint",RGBA32Sint:"rgba32sint",RGBA32Float:"rgba32float",Depth16Unorm:"depth16unorm",Depth24Plus:"depth24plus",Depth24PlusStencil8:"depth24plus-stencil8",Depth32Float:"depth32float",Depth32FloatStencil8:"depth32float-stencil8",BC1RGBAUnorm:"bc1-rgba-unorm",BC1RGBAUnormSRGB:"bc1-rgba-unorm-srgb",BC2RGBAUnorm:"bc2-rgba-unorm",BC2RGBAUnormSRGB:"bc2-rgba-unorm-srgb",BC3RGBAUnorm:"bc3-rgba-unorm",BC3RGBAUnormSRGB:"bc3-rgba-unorm-srgb",BC4RUnorm:"bc4-r-unorm",BC4RSnorm:"bc4-r-snorm",BC5RGUnorm:"bc5-rg-unorm",BC5RGSnorm:"bc5-rg-snorm",BC6HRGBUFloat:"bc6h-rgb-ufloat",BC6HRGBFloat:"bc6h-rgb-float",BC7RGBAUnorm:"bc7-rgba-unorm",BC7RGBAUnormSRGB:"bc7-rgba-unorm-srgb",ETC2RGB8Unorm:"etc2-rgb8unorm",ETC2RGB8UnormSRGB:"etc2-rgb8unorm-srgb",ETC2RGB8A1Unorm:"etc2-rgb8a1unorm",ETC2RGB8A1UnormSRGB:"etc2-rgb8a1unorm-srgb",ETC2RGBA8Unorm:"etc2-rgba8unorm",ETC2RGBA8UnormSRGB:"etc2-rgba8unorm-srgb",EACR11Unorm:"eac-r11unorm",EACR11Snorm:"eac-r11snorm",EACRG11Unorm:"eac-rg11unorm",EACRG11Snorm:"eac-rg11snorm",ASTC4x4Unorm:"astc-4x4-unorm",ASTC4x4UnormSRGB:"astc-4x4-unorm-srgb",ASTC5x4Unorm:"astc-5x4-unorm",ASTC5x4UnormSRGB:"astc-5x4-unorm-srgb",ASTC5x5Unorm:"astc-5x5-unorm",ASTC5x5UnormSRGB:"astc-5x5-unorm-srgb",ASTC6x5Unorm:"astc-6x5-unorm",ASTC6x5UnormSRGB:"astc-6x5-unorm-srgb",ASTC6x6Unorm:"astc-6x6-unorm",ASTC6x6UnormSRGB:"astc-6x6-unorm-srgb",ASTC8x5Unorm:"astc-8x5-unorm",ASTC8x5UnormSRGB:"astc-8x5-unorm-srgb",ASTC8x6Unorm:"astc-8x6-unorm",ASTC8x6UnormSRGB:"astc-8x6-unorm-srgb",ASTC8x8Unorm:"astc-8x8-unorm",ASTC8x8UnormSRGB:"astc-8x8-unorm-srgb",ASTC10x5Unorm:"astc-10x5-unorm",ASTC10x5UnormSRGB:"astc-10x5-unorm-srgb",ASTC10x6Unorm:"astc-10x6-unorm",ASTC10x6UnormSRGB:"astc-10x6-unorm-srgb",ASTC10x8Unorm:"astc-10x8-unorm",ASTC10x8UnormSRGB:"astc-10x8-unorm-srgb",ASTC10x10Unorm:"astc-10x10-unorm",ASTC10x10UnormSRGB:"astc-10x10-unorm-srgb",ASTC12x10Unorm:"astc-12x10-unorm",ASTC12x10UnormSRGB:"astc-12x10-unorm-srgb",ASTC12x12Unorm:"astc-12x12-unorm",ASTC12x12UnormSRGB:"astc-12x12-unorm-srgb"},kB={ClampToEdge:"clamp-to-edge",Repeat:"repeat",MirrorRepeat:"mirror-repeat"},M1={Linear:"linear",Nearest:"nearest"},Ci={Zero:"zero",One:"one",Src:"src",OneMinusSrc:"one-minus-src",SrcAlpha:"src-alpha",OneMinusSrcAlpha:"one-minus-src-alpha",Dst:"dst",OneMinusDst:"one-minus-dst",DstAlpha:"dst-alpha",OneMinusDstAlpha:"one-minus-dst-alpha",SrcAlphaSaturated:"src-alpha-saturated",Constant:"constant",OneMinusConstant:"one-minus-constant"},Yx={Add:"add",Subtract:"subtract",ReverseSubtract:"reverse-subtract",Min:"min",Max:"max"},Fse={None:0,All:15},MA={Keep:"keep",Zero:"zero",Replace:"replace",Invert:"invert",IncrementClamp:"increment-clamp",DecrementClamp:"decrement-clamp",IncrementWrap:"increment-wrap",DecrementWrap:"decrement-wrap"},LB={Storage:"storage",ReadOnlyStorage:"read-only-storage"},OB={WriteOnly:"write-only",ReadOnly:"read-only",ReadWrite:"read-write"},Ise={NonFiltering:"non-filtering",Comparison:"comparison"},Xx={Float:"float",UnfilterableFloat:"unfilterable-float",Depth:"depth",SInt:"sint",UInt:"uint"},Bse={TwoD:"2d",ThreeD:"3d"},Ic={TwoD:"2d",TwoDArray:"2d-array",Cube:"cube",ThreeD:"3d"},Hgt={All:"all"},SC={Vertex:"vertex",Instance:"instance"},mD={CoreFeaturesAndLimits:"core-features-and-limits",DepthClipControl:"depth-clip-control",Depth32FloatStencil8:"depth32float-stencil8",TextureCompressionBC:"texture-compression-bc",TextureCompressionBCSliced3D:"texture-compression-bc-sliced-3d",TextureCompressionETC2:"texture-compression-etc2",TextureCompressionASTC:"texture-compression-astc",TextureCompressionASTCSliced3D:"texture-compression-astc-sliced-3d",TimestampQuery:"timestamp-query",IndirectFirstInstance:"indirect-first-instance",ShaderF16:"shader-f16",RG11B10UFloat:"rg11b10ufloat-renderable",BGRA8UNormStorage:"bgra8unorm-storage",Float32Filterable:"float32-filterable",Float32Blendable:"float32-blendable",ClipDistances:"clip-distances",DualSourceBlending:"dual-source-blending",Subgroups:"subgroups",TextureFormatsTier1:"texture-formats-tier1",TextureFormatsTier2:"texture-formats-tier2"},Use={"texture-compression-s3tc":"texture-compression-bc","texture-compression-etc1":"texture-compression-etc2"};class Ggt extends _4e{constructor(e,n,r){super(e,n?n.value:null),this.textureNode=n,this.groupNode=r}update(){const{textureNode:e}=this;return this.texture!==e.value?(this.texture=e.value,!0):super.update(
4344)}}class zgt extends g4e{constructor(e,n){super(e,n?n.array:null),this._attribute=n,this.isStorageBuffer=!0}get attribute(){return this._attribute}}let $gt=0;class qgt extends zgt{constructor(e,n){super("StorageBuffer_"+$gt++,e?e.value:null),this.nodeUniform=e,this.access=e?e.access:fc.READ_WRITE,this.groupNode=n}get attribute(){return this.nodeUniform.value}get buffer(){return this.nodeUniform.value.array}}class Wgt extends hx{constructor(e){super(),this.device=e;const n=` 4345struct VarysStruct { 4346 @builtin( position ) Position: vec4f, 4347 @location( 0 ) vTex : vec2f, 4348 @location( 1 ) @interpolate(flat, either) vBaseArrayLayer: u32, 4349}; 4350 4351@group( 0 ) @binding ( 2 ) 4352var<uniform> flipY: u32; 4353 4354@vertex 4355fn mainVS( 4356 @builtin( vertex_index ) vertexIndex : u32, 4357 @builtin( instance_index ) instanceIndex : u32 ) -> VarysStruct { 4358 4359 var Varys : VarysStruct; 4360 4361 var pos = array( 4362 vec2f( -1, -1 ), 4363 vec2f( -1, 3 ), 4364 vec2f( 3, -1 ), 4365 ); 4366 4367 let p = pos[ vertexIndex ]; 4368 let mult = select( vec2f( 0.5, -0.5 ), vec2f( 0.5, 0.5 ), flipY != 0 ); 4369 Varys.vTex = p * mult + vec2f( 0.5 ); 4370 Varys.Position = vec4f( p, 0, 1 ); 4371 Varys.vBaseArrayLayer = instanceIndex; 4372 4373 return Varys; 4374 4375} 4376 4377@group( 0 ) @binding( 0 ) 4378var imgSampler : sampler; 4379 4380@group( 0 ) @binding( 1 ) 4381var img2d : texture_2d<f32>; 4382 4383@fragment 4384fn main_2d( Varys: VarysStruct ) -> @location( 0 ) vec4<f32> { 4385 4386 return textureSample( img2d, imgSampler, Varys.vTex ); 4387 4388} 4389 4390@group( 0 ) @binding( 1 ) 4391var img2dArray : texture_2d_array<f32>; 4392 4393@fragment 4394fn main_2d_array( Varys: VarysStruct ) -> @location( 0 ) vec4<f32> { 4395 4396 return textureSample( img2dArray, imgSampler, Varys.vTex, Varys.vBaseArrayLayer ); 4397 4398} 4399 4400const faceMat = array( 4401 mat3x3f( 0, 0, -2, 0, -2, 0, 1, 1, 1 ), // pos-x 4402 mat3x3f( 0, 0, 2, 0, -2, 0, -1, 1, -1 ), // neg-x 4403 mat3x3f( 2, 0, 0, 0, 0, 2, -1, 1, -1 ), // pos-y 4404 mat3x3f( 2, 0, 0, 0, 0, -2, -1, -1, 1 ), // neg-y 4405 mat3x3f( 2, 0, 0, 0, -2, 0, -1, 1, 1 ), // pos-z 4406 mat3x3f( -2, 0, 0, 0, -2, 0, 1, 1, -1 ), // neg-z 4407); 4408 4409@group( 0 ) @binding( 1 ) 4410var imgCube : texture_cube<f32>; 4411 4412@fragment 4413fn main_cube( Varys: VarysStruct ) -> @location( 0 ) vec4<f32> { 4414 4415 return textureSample( imgCube, imgSampler, faceMat[ Varys.vBaseArrayLayer ] * vec3f( fract( Varys.vTex ), 1 ) ); 4416 4417} 4418`;this.mipmapSampler=e.createSampler({minFilter:M1.Linear}),this.flipYSampler=e.createSampler({minFilter:M1.Nearest}),this.flipUniformBuffer=e.createBuffer({size:4,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST}),e.queue.writeBuffer(this.flipUniformBuffer,0,new Uint32Array([1])),this.noFlipUniformBuffer=e.createBuffer({size:4,usage:GPUBufferUsage.UNIFORM}),this.transferPipelines={},this.mipmapShaderModule=e.createShaderModule({label:"mipmap",code:n})}getTransferPipeline(e,n){n=n||"2d-array";const r=`${e}-${n}`;let i=this.transferPipelines[r];return i===void 0&&(i=this.device.createRenderPipeline({label:`mipmap-${e}-${n}`,vertex:{module:this.mipmapShaderModule},fragment:{module:this.mipmapShaderModule,entryPoint:`main_${n.replace("-","_")}`,targets:[{format:e}]},layout:"auto"}),this.transferPipelines[r]=i),i}flipY(e,n,r=0){const i=n.format,{width:a,height:s}=n.size,o=this.device.createTexture({size:{width:a,height:s},format:i,usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING}),l=this.getTransferPipeline(i,e.textureBindingViewDimension),c=this.getTransferPipeline(i,o.textureBindingViewDimension),u=this.device.createCommandEncoder({}),f=(h,p,A,g,w,T)=>{const C=h.getBindGroupLayout(0),M=this.device.createBindGroup({layout:C,entries:[{binding:0,resource:this.flipYSampler},{binding:1,resource:p.createView({dimension:p.textureBindingViewDimension||"2d-array",baseMipLevel:0,mipLevelCount:1})},{binding:2,resource:{buffer:T?this.flipUniformBuffer:this.noFlipUniformBuffer}}]}),D=u.beginRenderPass({colorAttachments:[{view:g.createView({dimension:"2d",baseMipLevel:0,mipLevelCount:1,baseArrayLayer:w,arrayLayerCount:1}),loadOp:Aa.Clear,storeOp:gu.Store}]});D.setPipeline(h),D.setBindGroup(0,M),D.draw(3,1,0,A),D.end()};f(l,e,r,o,0,!1),f(c,o,0,e,r,!0),this.device.queue.submit([u.finish()]),o.destroy()}generateMipmaps(e,n=null){const r=this.get(e),i=r.layers||this._mipmapCreateBundles(e),a=n||this.device.createCommandEncoder({label:"mipmapEncoder"});this._mipmapRunBundles(a,i),n===null&&this.device.queue.submit([a.finish()]),r.layers=i}_mipmapCreateBundles(e){const n=e.textureBindingViewDimension||"2d-array",r=this.getTransferPipeline(e.format,n),i=r.getBindGroupLayout(0),a=[];for(let s=1;s<e.mipLevelCount;s++)for(let o=0;o<e.depthOrArrayLayers;o++){const l=this.device.createBindGroup({layout:i,entries:[{binding:0,resource:this.mipmapSampler},{binding:1,resource:e.createView({dimension:n,baseMipLevel:s-1,mipLevelCount:1})},{binding:2,resource:{buffer:this.noFlipUniformBuffer}}]}),c={colorAttachments:[{view:e.createView({dimension:"2d",baseMipLevel:s,mipLevelCount:1,baseArrayLayer:o,arrayLayerCount:1}),loadOp:Aa.Clear,storeOp:gu.Store}]},u=this.device.createRenderBundleEncoder({colorFormats:[e.format]});u.setPipeline(r),u.setBindGroup(0,l),u.draw(3,1,0,o),a.push({renderBundles:[u.finish()],passDescriptor:c})}return a}_mipmapRunBundles(e,n){const r=n.length;for(let i=0;i<r;i++){const a=n[i],s=e.beginRenderPass(a.passDescriptor);s.executeBundles(a.renderBundles),s.end()}}}const Zgt={[vq]:"never",[$P]:"less",[yq]:"equal",[sx]:"less-equal",[N5]:"greater",[S2]:"greater-equal",[bq]:"always",[_q]:"not-equal"},Ygt=[0,1,3,2,4,5];class Xgt{constructor(e){this.backend=e,this._passUtils=null,this.defaultTexture={},this.defaultCubeTexture={},this.defaultVideoFrame=null,this._samplerCache=new Map}updateSampler(e){const n=this.backend,r=e.minFilter+"-"+e.magFilter+"-"+e.wrapS+"-"+e.wrapT+"-"+(e.wrapR||"0")+"-"+e.anisotropy+"-"+(e.compareFunction||0);let i=this._samplerCache.get(r);if(i===void 0){const s={addressModeU:this._convertAddressMode(e.wrapS),addressModeV:this._convertAddressMode(e.wrapT),addressModeW:this._convertAddressMode(e.wrapR),magFilter:this._convertFilterMode(e.magFilter),minFilter:this._convertFilterMode(e.minFilter),mipmapFilter:this._convertFilterMode(e.minFilter),maxAnisotropy:1};e.isDepthTexture&&e.compareFunction===null&&(s.magFilter=M1.Nearest,s.minFilter=M1.Nearest,s.mipmapFilter=M1.Nearest),s.magFilter===M1.Linear&&s.minFilter===M1.Linear&&s.mipmapFilter===M1.Linear&&(s.maxAnisotropy=e.anisotropy),e.isDepthTexture&&e.compareFunction!==null&&n.hasCompatibility(Vy.TEXTURE_COMPARE)&&(s.compare=Zgt[e.compareFunction]),i={sampler:n.device.createSampler(s),usedTimes:0},this._samplerCache.set(r,i)}const a=n.get(e);if(a.sampler!==i.sampler){if(a.sampler!==void 0){const s=this._samplerCache.get(a.samplerKey);s.usedTimes--,s.usedTimes===0&&this._samplerCache.delete(a.samplerKey)}a.samplerKey=r,a.sampler=i.sampler,i.usedTimes++}
4418return r}createDefaultTexture(e){let n;const r=wH(e,this.backend.device);e.isCubeTexture?n=this._getDefaultCubeTextureGPU(r):n=this._getDefaultTextureGPU(r),this.backend.get(e).texture=n}createTexture(e,n={}){const r=this.backend,i=r.get(e);if(i.initialized)throw new Error("WebGPUTextureUtils: Texture already initialized.");if(e.isExternalTexture){i.texture=e.sourceTexture,i.initialized=!0;return}n.needsMipmaps===void 0&&(n.needsMipmaps=!1),n.levels===void 0&&(n.levels=1),n.depth===void 0&&(n.depth=1);const{width:a,height:s,depth:o,levels:l}=n;e.isFramebufferTexture&&(n.renderTarget?n.format=this.backend.utils.getCurrentColorFormat(n.renderTarget):n.format=this.backend.utils.getPreferredCanvasFormat());const c=this._getDimension(e),u=e.internalFormat||n.format||wH(e,r.device);i.format=u;const{samples:f,primarySamples:h,isMSAA:p}=r.utils.getTextureSampleData(e);let A=GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.COPY_SRC;e.isStorageTexture===!0&&(A|=GPUTextureUsage.STORAGE_BINDING),e.isCompressedTexture!==!0&&e.isCompressedArrayTexture!==!0&&u!==qe.RGB9E5UFloat&&(A|=GPUTextureUsage.RENDER_ATTACHMENT);const g={label:e.name,size:{width:a,height:s,depthOrArrayLayers:o},mipLevelCount:l,sampleCount:h,dimension:c,format:u,usage:A};if(u===void 0){Kt("WebGPURenderer: Texture format not supported."),this.createDefaultTexture(e);return}e.isCubeTexture&&(g.textureBindingViewDimension=Ic.Cube);try{i.texture=r.device.createTexture(g)}catch{Kt("WebGPURenderer: Failed to create texture with descriptor:",g),this.createDefaultTexture(e);return}if(p){const w=Object.assign({},g);w.label=w.label+"-msaa",w.sampleCount=f,w.mipLevelCount=1,i.msaaTexture=r.device.createTexture(w)}i.initialized=!0,i.textureDescriptorGPU=g}destroyTexture(e,n=!1){const r=this.backend,i=r.get(e);i.texture!==void 0&&n===!1&&i.texture.destroy(),i.msaaTexture!==void 0&&i.msaaTexture.destroy(),r.delete(e)}generateMipmaps(e,n=null){const r=this.backend.get(e);this._generateMipmaps(r.texture,n)}getColorBuffer(){const e=this.backend,n=e.renderer.getCanvasTarget(),{width:r,height:i}=e.getDrawingBufferSize(),a=e.renderer.currentSamples,s=n.colorTexture,o=e.get(s);if(s.width===r&&s.height===i&&s.samples===a)return o.texture;let l=o.texture;return l&&l.destroy(),l=e.device.createTexture({label:"colorBuffer",size:{width:r,height:i,depthOrArrayLayers:1},sampleCount:e.utils.getSampleCount(e.renderer.currentSamples),format:e.utils.getPreferredCanvasFormat(),usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC}),s.source.width=r,s.source.height=i,s.samples=a,o.texture=l,l}getDepthBuffer(e=!0,n=!1){const r=this.backend,i=r.renderer.getCanvasTarget(),{width:a,height:s}=r.getDrawingBufferSize(),o=r.renderer.currentSamples,l=i.depthTexture;if(l.width===a&&l.height===s&&l.samples===o&&l.depth===e&&l.stencil===n)return r.get(l).texture;const c=r.get(l).texture;let u,f;if(n?(u=Wc,f=r.renderer.reversedDepthBuffer===!0?os:N0):e&&(u=Gl,f=r.renderer.reversedDepthBuffer===!0?os:_a),c!==void 0){if(l.image.width===a&&l.image.height===s&&l.format===u&&l.type===f&&l.samples===o)return c;this.destroyTexture(l)}return l.name="depthBuffer",l.format=u,l.type=f,l.image.width=a,l.image.height=s,l.samples=o,this.createTexture(l,{width:a,height:s}),r.get(l).texture}updateTexture(e,n){const r=this.backend.get(e),i=e.mipmaps,{textureDescriptorGPU:a}=r;if(!(e.isRenderTargetTexture||a===void 0)){if(e.isDataTexture)if(i.length>0)for(let s=0,o=i.length;s<o;s++){const l=i[s];this._copyBufferToTexture(l,r.texture,a,0,e.flipY,0,s)}else this._copyBufferToTexture(n.image,r.texture,a,0,e.flipY);else if(e.isArrayTexture||e.isDataArrayTexture||e.isData3DTexture)if(e.layerUpdates&&e.layerUpdates.size>0){for(const s of e.layerUpdates)this._copyBufferToTexture(n.image,r.texture,a,s,e.flipY,s);e.clearLayerUpdates()}else for(let s=0;s<n.image.depth;s++)this._copyBufferToTexture(n.image,r.texture,a,s,e.flipY,s);else if(e.isCompressedTexture||e.isCompressedArrayTexture)this._copyCompressedBufferToTexture(e.mipmaps,r.texture,a);else if(e.isCubeTexture)this._copyCubeMapToTexture(e,r.texture,a);else if(e.isHTMLTexture){const s=this.backend.device,o=this.backend.renderer.domElement,l=e.image;if(typeof s.queue.copyElementImageToTexture!="function")return;if(!r.hasPaintCallback){r.hasPaintCallback=!0,o.requestPaint();return}const c=a.size.width,u=a.size.height;s.queue.copyElementImageToTexture(l,c,u,{texture:r.texture}),e.flipY&&this._flipY(r.texture,a)}else if(i.length>0)for(let s=0,o=i.length;s<o;s++){const l=i[s];this._copyImageToTexture(l,r.texture,a,0,e.flipY,e.premultiplyAlpha,s)}else this._copyImageToTexture(n.image,r.texture,a,0,e.flipY,e.premultiplyAlpha);r.version=e.version}}async copyTextureToBuffer(e,n,r,i,a,s){const o=this.backend.device,l=this.backend.get(e),c=l.texture,u=l.textureDescriptorGPU.format,f=this._getBytesPerTexel(u);let h=i*f;h=Math.ceil(h/256)*256;const p=o.createBuffer({size:(a-1)*h+i*f,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),A=o.createCommandEncoder();A.copyTextureToBuffer({texture:c,origin:{x:n,y:r,z:s}},{buffer:p,bytesPerRow:h},{width:i,height:a});const g=this._getTypedArrayType(u);o.queue.submit([A.finish()]),await p.mapAsync(GPUMapMode.READ);const w=p.getMappedRange().slice();return p.destroy(),new g(w)}dispose(){this._samplerCache.clear()}_getDefaultTextureGPU(e){let n=this.defaultTexture[e];if(n===void 0){const r=new Yo;r.minFilter=sa,r.magFilter=sa,this.createTexture(r,{width:1,height:1,format:e}),this.defaultTexture[e]=n=r}return this.backend.get(n).texture}_getDefaultCubeTextureGPU(e){let n=this.defaultCubeTexture[e];if(n===void 0){const r=new m6;r.minFilter=sa,r.magFilter=sa,this.createTexture(r,{width:1,height:1,depth:6}),this.defaultCubeTexture[e]=n=r}return this.backend.get(n).texture}_copyCubeMapToTexture(e,n,r){const i=e.images,a=e.mipmaps;for(let s=0;s<6;s++){const o=i[s],l=e.flipY===!0?Ygt[s]:s;o.isDataTexture?this._copyBufferToTexture(o.image,n,r,l,e.flipY):this._copyImageToTexture(o,n,r,l,e.flipY,e.premultiplyAlpha);for(let c=0;c<a.length;c++){const f=a[c].images[s];f.isDataTexture?this._copyBufferToTexture(f.image,n,r,l,e.flipY,0,c+1):this._copyImageToTexture(f,n,r,l,e.flipY,e.premultiplyAlpha,c+1)}}}_copyImageToTexture(e,n,r,i,a,s,o=0){const l=this.backend.device,c=o>0?e.width:r.size.width,u=o>0?e.height:r.size.height;try{l.queue.copyExternalImageToTexture({source:e,flipY:a},{texture:n,mipLevel:o,origin:{x:0,y:0,z:i},premultipliedAlpha:s},{width:c,height:u,depthOrArrayLayers:1})}catch{}}_getPassUtils(){let e=this._passUtils;return e===null&&(this._passUtils=e=new Wgt(this.backend.device)),e}_generateMipmaps(e,n=null){this._getPassUtils().generateMipmaps(e,n)}_flipY(e,n,r=0){this._getPassUtils().flipY(e,n,r)}_copyBufferToTexture(e,n,r,i,a,s=0,o=0){const l=this.backend.device,c=e.data,u=this._getBytesPerTexel(r.format),f=e.width*u;l.queue.writeTexture({texture:n,mipLevel:o,origin:{x:0,y:0,z:i}},c,{offset:e.width*e.height*u*s,bytesPerRow:f},{width:e.width,height:e.height,depthOrArrayLayers:1}),a===!0&&this._flipY(n,r,i)}_copyCompressedBufferToTexture(e,n,r){const i=this.backend.device,a=this._getBlockData(r.format),s=r.size.depthOrArrayLayers>1;for(let o=0;o<e.length;o++){const l=e[o],c=l.width,u=l.height,f=s?r.size.depthOrArrayLayers:1,h=Math.ceil(c/a.width)*a.byteLength,p=h*Math.ceil(u/a.height);for(let A=0;A<f;A++)i.queue.writeTexture({texture:n,mipLevel:o,origin:{x:0,y:0,z:A}},l.data,{offset:A*p,bytesPerRow:h,rowsPerImage:Math.ceil(u/a.height)},{width:Math.ceil(c/a.width)*a.width,height:Math.ceil(u/a.height)*a.height,depthOrArrayLayers:1})}}_getBlockData(e){if(e===qe.BC1RGBAUnorm||e===qe.BC1RGBAUnormSRGB)return{byteLength:8,width:4,height:4};if(e===qe.BC2RGBAUnorm||e===qe.BC2RGBAUnormSRGB)return{byteLength:16,width:4,height:4};if(e===qe.BC3RGBAUnorm||e===qe.BC3RGBAUnormSRGB)return{byteLength:16,width:4,height:4};if(e===qe.BC4RUnorm||e===qe.BC4RSnorm)return{byteLength:8,width:4,height:4};if(e===qe.BC5RGUnorm||e===qe.BC5RGSnorm)return{byteLength:16,width:4,height:4};if(e===qe.BC6HRGBUFloat||e===qe.BC6HRGBFloat)return{byteLength:16,width:4,height:4};if(e===qe.BC7RGBAUnorm||e===qe.BC7RGBAUnormSRGB)return{byteLength:16,width:4,height:4};if(e===qe.ETC2RGB8Unorm||e===qe.ETC2RGB8UnormSRGB)return{byteLength:8,width:4,height:4};if(e===qe.ETC2RGB8A1Unorm||e===qe.ETC2RGB8A1UnormSRGB)return{byteLength:8,width:4,height:4};if(e===qe.ETC2RGBA8Unorm||e===qe.ETC2RGBA8UnormSRGB)return{byteLength:16,width:4,height:4};if(e===qe.EACR11Unorm)return{byteLength:8,width:4,height:4};if(e===qe.EACR11Snorm)return{byteLength:8,width:4,height:4};if(e===qe.EACRG11Unorm)return{byteLength:16,width:4,height:4};if(e===qe.EACRG11Snorm)return{byteLength:16,width:4,height:4};if(e===qe.ASTC4x4Unorm||e===qe.ASTC4x4UnormSRGB)return{byteLength:16,width:4,height:4};if(e===qe.ASTC5x4Unorm||e===qe.ASTC5x4UnormSRGB)return{byteLength:16,width:5,height:4};if(e===qe.ASTC5x5Unorm||e===qe.ASTC5x5UnormSRGB)return{byteLength:16,width:5,height:5};if(e===qe.ASTC6x5Unorm||e===qe.ASTC6x5UnormSRGB)return{byteLength:16,width:6,height:5};if(e===qe.ASTC6x6Unorm||e===qe.ASTC6x6UnormSRGB)return{byteLength:16,width:6,height:6};if(e===qe.ASTC8x5Unorm||e===qe.ASTC8x5UnormSRGB)return{byteLength:16,width:8,height:5};if(e===qe.ASTC8x6Unorm||e===qe.ASTC8x6UnormSRGB)return{byteLength:16,width:8,height:6};if(e===qe.ASTC8x8Unorm||e===qe.ASTC8x8UnormSRGB)return{byteLength:16,width:8,height:8};if(e===qe.ASTC10x5Unorm||e===qe.ASTC10x5UnormSRGB)return{byteLength:16,width:10,height:5};if(e===qe.ASTC10x6Unorm||e===qe.ASTC10x6UnormSRGB)return{byteLength:16,width:10,height:6};if(e===qe.ASTC10x8Unorm||e===qe.ASTC10x8UnormSRGB)return{byteLength:16,width:10,height:8};if(e===qe.ASTC10x10Unorm||e===qe.ASTC10x10UnormSRGB)return{byteLength:16,width:10,height:10};if(e===qe.ASTC12x10Unorm||e===qe.ASTC12x10UnormSRGB)return{byteLength:16,width:12,height:10};if(e===qe.ASTC12x12Unorm||e===qe.ASTC12x12UnormSRGB)return{byteLength:16,width:12,height:12}}_convertAddressMode(e){let n=kB.ClampToEdge;return e===py?n=kB.Repeat:e===my&&(n=kB.MirrorRepeat),n}_convertFilterMode(e){let n=M1.Linear;return(e===sa||e===xq||e===Km)&&(n=M1.Nearest),n}_getBytesPerTexel(e){if(e===qe.R8Unorm||e===qe.R8Snorm||e===qe.R8Uint||e===qe.R8Sint)return 1;if(e===qe.R16Uint||e===qe.R16Sint||e===qe.R16Float||e===qe.RG8Unorm||e===qe.RG8Snorm||e===qe.RG8Uint||e===qe.RG8Sint||e===qe.R16Unorm||e===qe.R16Snorm)return 2;if(e===qe.R32Uint||e===qe.R32Sint||e===qe.R32Float||e===qe.RG16Uint||e===qe.RG16Sint||e===qe.RG16Float||e===qe.RGBA8Unorm||e===qe.RGBA8UnormSRGB||e===qe.RGBA8Snorm||e===qe.RGBA8Uint||e===qe.RGBA8Sint||e===qe.BGRA8Unorm||e===qe.BGRA8UnormSRGB||e===qe.RG16Unorm||e===qe.RG16Snorm||e===qe.RGB9E5UFloat||e===qe.RGB10A2Unorm||e===qe.RG11B10UFloat||e===qe.Depth32Float||e===qe.Depth24Plus||e===qe.Depth24PlusStencil8||e===qe.Depth32FloatStencil8)return 4;if(e===qe.RG32Uint||e===qe.RG32Sint||e===qe.RG32Float||e===qe.RGBA16Uint||e===qe.RGBA16Sint||e===qe.RGBA16Float||e===qe.RGBA16Unorm||e===qe.RGBA16Snorm)return 8;if(e===qe.RGBA32Uint||e===qe.RGBA32Sint||e===qe.RGBA32Float)return 16}_getTypedArrayType(e){if(e===qe.R8Uint)return Uint8Array;
4418if(e===qe.R8Sint)return Int8Array;if(e===qe.R8Unorm)return Uint8Array;if(e===qe.R8Snorm)return Int8Array;if(e===qe.RG8Uint)return Uint8Array;if(e===qe.RG8Sint)return Int8Array;if(e===qe.RG8Unorm)return Uint8Array;if(e===qe.RG8Snorm)return Int8Array;if(e===qe.RGBA8Uint)return Uint8Array;if(e===qe.RGBA8Sint)return Int8Array;if(e===qe.RGBA8Unorm||e===qe.RGBA8UnormSRGB)return Uint8Array;if(e===qe.RGBA8Snorm)return Int8Array;if(e===qe.R16Uint)return Uint16Array;if(e===qe.R16Sint)return Int16Array;if(e===qe.RG16Uint)return Uint16Array;if(e===qe.RG16Sint)return Int16Array;if(e===qe.RGBA16Uint)return Uint16Array;if(e===qe.RGBA16Sint)return Int16Array;if(e===qe.R16Float||e===qe.RG16Float||e===qe.RGBA16Float||e===qe.R16Unorm)return Uint16Array;if(e===qe.R16Snorm)return Int16Array;if(e===qe.RG16Unorm)return Uint16Array;if(e===qe.RG16Snorm)return Int16Array;if(e===qe.RGBA16Unorm)return Uint16Array;if(e===qe.RGBA16Snorm)return Int16Array;if(e===qe.R32Uint)return Uint32Array;if(e===qe.R32Sint)return Int32Array;if(e===qe.R32Float)return Float32Array;if(e===qe.RG32Uint)return Uint32Array;if(e===qe.RG32Sint)return Int32Array;if(e===qe.RG32Float)return Float32Array;if(e===qe.RGBA32Uint)return Uint32Array;if(e===qe.RGBA32Sint)return Int32Array;if(e===qe.RGBA32Float)return Float32Array;if(e===qe.BGRA8Unorm||e===qe.BGRA8UnormSRGB)return Uint8Array;
4418if(e===qe.RGB10A2Unorm||e===qe.RGB9E5UFloat||e===qe.RG11B10UFloat)return Uint32Array;if(e===qe.Depth32Float)return Float32Array;if(e===qe.Depth24Plus||e===qe.Depth24PlusStencil8)return Uint32Array;if(e===qe.Depth32FloatStencil8)return Float32Array}_getDimension(e){let n;return e.is3DTexture||e.isData3DTexture?n=Bse.ThreeD:n=Bse.TwoD,n}}function wH(t,e){const n=t.format,r=t.type,i=t.normalized,a=t.colorSpace,s=Ar.getTransfer(a);let o,l=!1;if(i&&(l=e.features.has(mD.TextureFormatsTier1),l===!1&&Kt("WebGPURenderer: Unable to use normalized textures without texture-formats-tier1 feature.")),t.isCompressedTexture===!0||t.isCompressedArrayTexture===!0)switch(n){case Eg:case Mg:o=s===Bn?qe.BC1RGBAUnormSRGB:qe.BC1RGBAUnorm;break;case Cg:o=s===Bn?qe.BC2RGBAUnormSRGB:qe.BC2RGBAUnorm;break;case Ng:o=s===Bn?qe.BC3RGBAUnormSRGB:qe.BC3RGBAUnorm;break;case A_:o=qe.BC4RUnorm;break;case g_:o=qe.BC4RSnorm;break;case Wg:o=qe.BC5RGUnorm;break;case x_:o=qe.BC5RGSnorm;break;case m_:o=s===Bn?qe.BC7RGBAUnormSRGB:qe.BC7RGBAUnorm;break;case X3:case Y3:o=s===Bn?qe.ETC2RGB8UnormSRGB:qe.ETC2RGB8Unorm;break;case Q3:o=s===Bn?qe.ETC2RGBA8UnormSRGB:qe.ETC2RGBA8Unorm;break;case K3:o=qe.EACR11Unorm;break;case J3:o=qe.EACR11Snorm;break;case qg:o=qe.EACRG11Unorm;break;case e_:o=qe.EACRG11Snorm;break;case t_:o=s===Bn?qe.ASTC4x4UnormSRGB:qe.ASTC4x4Unorm;break;case n_:o=s===Bn?qe.ASTC5x4UnormSRGB:qe.ASTC5x4Unorm;break;case r_:o=s===Bn?qe.ASTC5x5UnormSRGB:qe.ASTC5x5Unorm;break;case i_:o=s===Bn?qe.ASTC6x5UnormSRGB:qe.ASTC6x5Unorm;break;case a_:o=s===Bn?qe.ASTC6x6UnormSRGB:qe.ASTC6x6Unorm;break;case s_:o=s===Bn?qe.ASTC8x5UnormSRGB:qe.ASTC8x5Unorm;break;case o_:o=s===Bn?qe.ASTC8x6UnormSRGB:qe.ASTC8x6Unorm;break;case l_:o=s===Bn?qe.ASTC8x8UnormSRGB:qe.ASTC8x8Unorm;break;case c_:o=s===Bn?qe.ASTC10x5UnormSRGB:qe.ASTC10x5Unorm;break;case u_:o=s===Bn?qe.ASTC10x6UnormSRGB:qe.ASTC10x6Unorm;break;case f_:o=s===Bn?qe.ASTC10x8UnormSRGB:qe.ASTC10x8Unorm;break;case d_:o=s===Bn?qe.ASTC10x10UnormSRGB:qe.ASTC10x10Unorm;break;case h_:o=s===Bn?qe.ASTC12x10UnormSRGB:qe.ASTC12x10Unorm;break;case p_:o=s===Bn?qe.ASTC12x12UnormSRGB:qe.ASTC12x12Unorm;break;case fo:o=s===Bn?qe.RGBA8UnormSRGB:qe.RGBA8Unorm;break;default:nn("WebGPURenderer: Unsupported texture format.",n)}else switch(n){case fo:switch(r){case Sg:o=qe.RGBA8Snorm;break;case Tg:o=l?qe.RGBA16Snorm:qe.RGBA16Sint;break;case dd:o=l?qe.RGBA16Unorm:qe.RGBA16Uint;break;case _a:o=qe.RGBA32Uint;break;case Al:o=qe.RGBA32Sint;break;case rs:o=s===Bn?qe.RGBA8UnormSRGB:qe.RGBA8Unorm;break;case is:o=qe.RGBA16Float;break;case os:o=qe.RGBA32Float;break;default:nn("WebGPURenderer: Unsupported texture type with RGBAFormat.",r)}break;case u6:switch(r){case zT:o=qe.RGB9E5UFloat;break;case $T:o=qe.RG11B10UFloat;break;default:nn("WebGPURenderer: Unsupported texture type with RGBFormat.",r)}break;case f6:switch(r){case Sg:o=qe.R8Snorm;break;case Tg:o=l?qe.R16Snorm:qe.R16Sint;break;case dd:o=l?qe.R16Unorm:qe.R16Uint;break;case _a:o=qe.R32Uint;break;case Al:o=qe.R32Sint;break;case rs:o=qe.R8Unorm;break;case is:o=qe.R16Float;break;case os:o=qe.R32Float;break;default:nn("WebGPURenderer: Unsupported texture type with RedFormat.",r)}break;case uc:switch(r){case Sg:o=qe.RG8Snorm;break;case Tg:o=l?qe.RG16Snorm:qe.RG16Sint;break;case dd:o=l?qe.RG16Unorm:qe.RG16Uint;break;case _a:o=qe.RG32Uint;break;case Al:o=qe.RG32Sint;break;case rs:o=qe.RG8Unorm;break;case is:o=qe.RG16Float;break;case os:o=qe.RG32Float;break;default:nn("WebGPURenderer: Unsupported texture type with RGFormat.",r)}break;case Gl:switch(r){case dd:o=qe.Depth16Unorm;break;case _a:o=qe.Depth24Plus;break;case os:o=qe.Depth32Float;break;default:nn("WebGPURenderer: Unsupported texture type with DepthFormat.",r)}break;case Wc:switch(r){case N0:o=qe.Depth24PlusStencil8;break;case os:e&&e.features.has(mD.Depth32FloatStencil8)===!1&&nn('WebGPURenderer: Depth textures with DepthStencilFormat + FloatType can only be used with the "depth32float-stencil8" GPU feature.'),o=qe.Depth32FloatStencil8;break;default:nn("WebGPURenderer: Unsupported texture type with DepthStencilFormat.",r)}break;case By:switch(r){case Al:o=qe.R32Sint;break;case _a:o=qe.R32Uint;break;default:nn("WebGPURenderer: Unsupported texture type with RedIntegerFormat.",r)}break;case Uy:switch(r){case Al:o=qe.RG32Sint;break;case _a:o=qe.RG32Uint;break;default:nn("WebGPURenderer: Unsupported texture type with RGIntegerFormat.",r)}break;case d6:switch(r){case Al:o=qe.RGBA32Sint;break;case _a:o=qe.RGBA32Uint;break;default:nn("WebGPURenderer: Unsupported texture type with RGBAIntegerFormat.",r)}break;
4418default:nn("WebGPURenderer: Unsupported texture format.",n)}return o}const Qgt=/^[fn]*\s*([a-z_0-9]+)?\s*\(([\s\S]*?)\)\s*[\-\>]*\s*([a-z_0-9]+(?:<[\s\S]+?>)?)/i,Kgt=/([a-z_0-9]+)\s*:\s*([a-z_0-9]+(?:<[\s\S]+?>)?)/ig,Vse={f32:"float",i32:"int",u32:"uint",bool:"bool","vec2<f32>":"vec2","vec2<i32>":"ivec2","vec2<u32>":"uvec2","vec2<bool>":"bvec2",vec2f:"vec2",vec2i:"ivec2",vec2u:"uvec2",vec2b:"bvec2","vec3<f32>":"vec3","vec3<i32>":"ivec3","vec3<u32>":"uvec3","vec3<bool>":"bvec3",vec3f:"vec3",vec3i:"ivec3",vec3u:"uvec3",vec3b:"bvec3","vec4<f32>":"vec4","vec4<i32>":"ivec4","vec4<u32>":"uvec4","vec4<bool>":"bvec4",vec4f:"vec4",vec4i:"ivec4",vec4u:"uvec4",vec4b:"bvec4","mat2x2<f32>":"mat2",mat2x2f:"mat2","mat3x3<f32>":"mat3",mat3x3f:"mat3","mat4x4<f32>":"mat4",mat4x4f:"mat4",sampler:"sampler",texture_1d:"texture",texture_2d:"texture",texture_2d_array:"texture",texture_multisampled_2d:"cubeTexture",texture_depth_2d:"depthTexture",texture_depth_2d_array:"depthTexture",texture_depth_multisampled_2d:"depthTexture",texture_depth_cube:"depthTexture",texture_depth_cube_array:"depthTexture",texture_3d:"texture3D",texture_cube:"cubeTexture",texture_cube_array:"cubeTexture",texture_storage_1d:"storageTexture",texture_storage_2d:"storageTexture",texture_storage_2d_array:"storageTexture",texture_storage_3d:"storageTexture"},Jgt=t=>{t=t.trim();const e=t.match(Qgt);if(e!==null&&e.length===4){const n=e[2],r=[];let i=null;for(;(i=Kgt.exec(n))!==null;)r.push({name:i[1],type:i[2]});const a=[];for(let u=0;u<r.length;u++){const{name:f,type:h}=r[u];let p=h;p.startsWith("ptr")?p="pointer":(p.startsWith("texture")&&(p=h.split("<")[0]),p=Vse[p]),a.push(new UZ(p,f))}const s=t.substring(e[0].length),o=e[3]||"void",l=e[1]!==void 0?e[1]:"";return{type:Vse[o]||o,inputs:a,name:l,inputsCode:n,blockCode:s,outputType:o}}else throw new Error("FunctionNode: Function is not a WGSL code.")};class ext extends jZ{constructor(e){const{type:n,inputs:r,name:i,inputsCode:a,blockCode:s,outputType:o}=Jgt(e);super(n,r,i),this.inputsCode=a,this.blockCode=s,this.outputType=o}getCode(e=this.name){const n=this.outputType!=="void"?"-> "+this.outputType:"";return`fn ${e} ( ${this.inputsCode.trim()} ) ${n}`+this.blockCode}}class txt extends p4e{parseFunction(e){return new ext(e)}}const nxt={[fc.READ_ONLY]:"read",[fc.WRITE_ONLY]:"write",[fc.READ_WRITE]:"read_write"},jse={[py]:"repeat",[x0]:"clamp",[my]:"mirror"},FB={vertex:Q1.VERTEX,fragment:Q1.FRAGMENT,compute:Q1.COMPUTE},Hse={instance:!0,swizzleAssign:!1,storageBuffer:!0},rxt={"^^":"tsl_xor"},ixt={float:"f32",int:"i32",uint:"u32",bool:"bool",color:"vec3<f32>",vec2:"vec2<f32>",ivec2:"vec2<i32>",uvec2:"vec2<u32>",bvec2:"vec2<bool>",vec3:"vec3<f32>",ivec3:"vec3<i32>",uvec3:"vec3<u32>",bvec3:"vec3<bool>",vec4:"vec4<f32>",ivec4:"vec4<i32>",uvec4:"vec4<u32>",bvec4:"vec4<bool>",mat2:"mat2x2<f32>",mat3:"mat3x3<f32>",mat4:"mat4x4<f32>"},Gse={},lw={tsl_xor:new fl("fn tsl_xor( a : bool, b : bool ) -> bool { return ( a || b ) && !( a && b ); }"),mod_float:new fl("fn tsl_mod_float( x : f32, y : f32 ) -> f32 { return x - y * floor( x / y ); }"),mod_vec2:new fl("fn tsl_mod_vec2( x : vec2f, y : vec2f ) -> vec2f { return x - y * floor( x / y ); }"),mod_vec3:new fl("fn tsl_mod_vec3( x : vec3f, y : vec3f ) -> vec3f { return x - y * floor( x / y ); }"),mod_vec4:new fl("fn tsl_mod_vec4( x : vec4f, y : vec4f ) -> vec4f { return x - y * floor( x / y ); }"),equals_bool:new fl("fn tsl_equals_bool( a : bool, b : bool ) -> bool { return a == b; }"),equals_bvec2:new fl("fn tsl_equals_bvec2( a : vec2f, b : vec2f ) -> vec2<bool> { return vec2<bool>( a.x == b.x, a.y == b.y ); }"),equals_bvec3:new fl("fn tsl_equals_bvec3( a : vec3f, b : vec3f ) -> vec3<bool> { return vec3<bool>( a.x == b.x, a.y == b.y, a.z == b.z ); }"),equals_bvec4:new fl("fn tsl_equals_bvec4( a : vec4f, b : vec4f ) -> vec4<bool> { return vec4<bool>( a.x == b.x, a.y == b.y, a.z == b.z, a.w == b.w ); }"),repeatWrapping_float:new fl("fn tsl_repeatWrapping_float( coord: f32 ) -> f32 { return fract( coord ); }"),mirrorWrapping_float:new fl("fn tsl_mirrorWrapping_float( coord: f32 ) ->
4418 f32 { let mirrored = fract( coord * 0.5 ) * 2.0; return 1.0 - abs( 1.0 - mirrored ); }"),clampWrapping_float:new fl("fn tsl_clampWrapping_float( coord: f32 ) -> f32 { return clamp( coord, 0.0, 1.0 ); }"),biquadraticTexture:new fl(` 4419fn tsl_biquadraticTexture( map : texture_2d<f32>, coord : vec2f, iRes : vec2u, level : u32 ) -> vec4f { 4420 4421 let res = vec2f( iRes ); 4422 4423 let uvScaled = coord * res; 4424 let uvWrapping = ( ( uvScaled % res ) + res ) % res; 4425 4426 // https://www.shadertoy.com/view/WtyXRy 4427 4428 let uv = uvWrapping - 0.5; 4429 let iuv = floor( uv ); 4430 let f = fract( uv ); 4431 4432 let rg1 = textureLoad( map, vec2u( iuv + vec2( 0.5, 0.5 ) ) % iRes, level ); 4433 let rg2 = textureLoad( map, vec2u( iuv + vec2( 1.5, 0.5 ) ) % iRes, level ); 4434 let rg3 = textureLoad( map, vec2u( iuv + vec2( 0.5, 1.5 ) ) % iRes, level ); 4435 let rg4 = textureLoad( map, vec2u( iuv + vec2( 1.5, 1.5 ) ) % iRes, level ); 4436 4437 return mix( mix( rg1, rg2, f.x ), mix( rg3, rg4, f.x ), f.y ); 4438 4439} 4440`),biquadraticTextureArray:new fl(` 4441fn tsl_biquadraticTexture_array( map : texture_2d_array<f32>, coord : vec2f, iRes : vec2u, layer : u32, level : u32 ) -> vec4f { 4442 4443 let res = vec2f( iRes ); 4444 4445 let uvScaled = coord * res; 4446 let uvWrapping = ( ( uvScaled % res ) + res ) % res; 4447 4448 // https://www.shadertoy.com/view/WtyXRy 4449 4450 let uv = uvWrapping - 0.5; 4451 let iuv = floor( uv ); 4452 let f = fract( uv ); 4453 4454 let rg1 = textureLoad( map, vec2u( iuv + vec2( 0.5, 0.5 ) ) % iRes, layer, level ); 4455 let rg2 = textureLoad( map, vec2u( iuv + vec2( 1.5, 0.5 ) ) % iRes, layer, level ); 4456 let rg3 = textureLoad( map, vec2u( iuv + vec2( 0.5, 1.5 ) ) % iRes, layer, level ); 4457 let rg4 = textureLoad( map, vec2u( iuv + vec2( 1.5, 1.5 ) ) % iRes, layer, level ); 4458 4459 return mix( mix( rg1, rg2, f.x ), mix( rg3, rg4, f.x ), f.y ); 4460 4461} 4462`)},axt={dFdx:"dpdx",dFdy:"- dpdy",mod_float:"tsl_mod_float",mod_vec2:"tsl_mod_vec2",mod_vec3:"tsl_mod_vec3",mod_vec4:"tsl_mod_vec4",equals_bool:"tsl_equals_bool",equals_bvec2:"tsl_equals_bvec2",equals_bvec3:"tsl_equals_bvec3",equals_bvec4:"tsl_equals_bvec4",inversesqrt:"inverseSqrt",bitcast:"bitcast<f32>",floatpack_snorm_2x16:"pack2x16snorm",floatpack_unorm_2x16:"pack2x16unorm",floatpack_float16_2x16:"pack2x16float",floatunpack_snorm_2x16:"unpack2x16snorm",floatunpack_unorm_2x16:"unpack2x16unorm",floatunpack_float16_2x16:"unpack2x16float"};let T4e="";(typeof navigator<"u"&&/Firefox|Deno/g.test(navigator.userAgent))!==!0&&(T4e+=`diagnostic( off, derivative_uniformity ); 4463`);class sxt extends h4e{constructor(e,n){super(e,n,new txt),this.uniformGroups={},this.uniformGroupsBindings={},this.builtins={},this.directives={},this.scopedArrays=new Map,this.allowEarlyReturns=!0,this.allowGlobalVariables=!0}_generateTextureSample(e,n,r,i,a,s=this.shaderStage){return s==="fragment"?i?a?`textureSample( ${n}, ${n}_sampler, ${r}, ${i}, ${a} )`:`textureSample( ${n}, ${n}_sampler, ${r}, ${i} )`:a?`textureSample( ${n}, ${n}_sampler, ${r}, ${a} )`:`textureSample( ${n}, ${n}_sampler, ${r} )`:this.generateTextureSampleLevel(e,n,r,"0",i)}generateTextureSampleLevel(e,n,r,i,a,s){return this.isUnfilterable(e)===!1?a?s?`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${a}, ${i}, ${s} )`:`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${a}, ${i} )`:s?`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${i}, ${s} )`:`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${i} )`:this.isFilteredTexture(e)?this.generateFilteredTexture(e,n,r,s,i,a):this.generateTextureLod(e,n,r,a,s,i)}generateWrapFunction(e){const n=`tsl_coord_${jse[e.wrapS]}S_${jse[e.wrapT]}_${e.is3DTexture||e.isData3DTexture?"3d":"2d"}T`;let r=Gse[n];if(r===void 0){const i=[],a=e.is3DTexture||e.isData3DTexture?"vec3f":"vec2f";let s=`fn ${n}( coord : ${a} ) -> ${a} { 4464 4465 return ${a}( 4466`;const o=(l,c)=>{l===py?(i.push(lw.repeatWrapping_float),s+=` tsl_repeatWrapping_float( coord.${c} )`):l===x0?(i.push(lw.clampWrapping_float),s+=` tsl_clampWrapping_float( coord.${c} )`):l===my?(i.push(lw.mirrorWrapping_float),s+=` tsl_mirrorWrapping_float( coord.${c} )`):(s+=` coord.${c}`,Kt(`WebGPURenderer: Unsupported texture wrap type "${l}" for vertex shader.`))};o(e.wrapS,"x"),s+=`, 4467`,o(e.wrapT,"y"),(e.is3DTexture||e.isData3DTexture)&&(s+=`, 4468`,o(e.wrapR,"z")),s+=` 4469 ); 4470 4471} 4472`,Gse[n]=r=new fl(s,i)}return r.build(this),n}generateArrayDeclaration(e,n){return`array< ${this.getType(e)}, ${n} >`}generateTextureDimension(e,n,r){const i=this.getDataFromNode(e,this.shaderStage,this.cache);i.dimensionsSnippet===void 0&&(i.dimensionsSnippet={});let a=i.dimensionsSnippet[r];if(i.dimensionsSnippet[r]===void 0){let s,o;const{primarySamples:l}=this.renderer.backend.utils.getTextureSampleData(e),c=l>1;e.is3DTexture||e.isData3DTexture?o="vec3<u32>":o="vec2<u32>",c||e.isStorageTexture?s=n:s=`${n}${r?`, u32( ${r} )`:""}`,a=new J9(new eN(`textureDimensions( ${s} )`,o)),i.dimensionsSnippet[r]=a,(e.isArrayTexture||e.isDataArrayTexture||e.is3DTexture||e.isData3DTexture)&&(i.arrayLayerCount=new J9(new eN(`textureNumLayers(${n})`,"u32"))),e.isTextureCube&&(i.cubeFaceCount=new J9(new eN("6u","u32")))}return a.build(this)}generateFilteredTexture(e,n,r,i,a="0u",s){const o=this.generateWrapFunction(e),l=this.generateTextureDimension(e,n,a);return i&&(r=`${r} + vec2<f32>(${i}) / ${l}`),s?(this._include("biquadraticTextureArray"),`tsl_biquadraticTexture_array( ${n}, ${o}( ${r} ), ${l}, u32( ${s} ), u32( ${a} ) )`):(this._include("biquadraticTexture"),`tsl_biquadraticTexture( ${n}, ${o}( ${r} ), ${l}, u32( ${a} ) )`)}generateTextureLod(e,n,r,i,a,s="0u"){if(e.isCubeTexture===!0){a&&(r=`${r} + vec3<f32>(${a})`);const p=e.isDepthTexture?"u32":"f32";return`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${p}( ${s} ) )`}const o=this.generateWrapFunction(e),l=this.generateTextureDimension(e,n,s),c=e.is3DTexture||e.isData3DTexture?"vec3":"vec2",u=c==="vec3"?"vec3<u32>( 1, 1, 1 )":"vec2<u32>( 1, 1 )";a&&(r=`${r} + ${c}<f32>(${a}) / ${c}<f32>( ${l} )`);const f=`${c}<f32>( 0 )`,h=`${c}<f32>( ${l} - ${u} )`;return r=`${c}<u32>( clamp( floor( ${o}( ${r} ) * ${c}<f32>( ${l} ) ), ${f}, ${h} ) )`,this.generateTextureLoad(e,n,r,s,i,null)}generateStorageTextureLoad(e,n,r,i,a,s){s&&(r=`${r} + ${s}`);let o;return a?o=`textureLoad( ${n}, ${r}, ${a} )`:o=`textureLoad( ${n}, ${r} )`,o}generateTextureLoad(e,n,r,i,a,s){i===null&&(i="0u"),s&&(r=`${r} + ${s}`);let o;return a?o=`textureLoad( ${n}, ${r}, ${a}, u32( ${i} ) )`:(o=`textureLoad( ${n}, ${r}, u32( ${i} ) )`,this.renderer.backend.compatibilityMode&&e.isDepthTexture&&(o+=".x")),o}generateTextureStore(e,n,r,i,a){let s;return i?s=`textureStore( ${n}, ${r}, ${i}, ${a} )`:s=`textureStore( ${n}, ${r}, ${a} )`,s}isSampleCompare(e){return e.isDepthTexture===!0&&e.compareFunction!==null&&this.renderer.hasCompatibility(Vy.TEXTURE_COMPARE)}isUnfilterable(e){return this.getComponentTypeFromTexture(e)!=="float"||!this.isAvailable("float32Filterable")&&e.type===os||this.isSampleCompare(e)===!1&&e.minFilter===sa&&e.magFilter===sa||this.renderer.backend.utils.getTextureSampleData(e).primarySamples>1}generateTexture(e,n,r,i,a,s=this.shaderStage){let o=null;return this.isUnfilterable(e)?o=this.generateTextureLod(e,n,r,i,a,"0",s):o=this._generateTextureSample(e,n,r,i,a,s),o}generateTextureGrad(e,n,r,i,a,s,o=this.shaderStage){if(o==="fragment")return a?s?`textureSampleGrad( ${n}, ${n}_sampler, ${r}, ${a}, ${i[0]}, ${i[1]}, ${s} )`:`textureSampleGrad( ${n}, ${n}_sampler, ${r}, ${a}, ${i[0]}, ${i[1]} )`:s?`textureSampleGrad( ${n}, ${n}_sampler, ${r}, ${i[0]}, ${i[1]}, ${s} )`:`textureSampleGrad( ${n}, ${n}_sampler, ${r}, ${i[0]}, ${i[1]} )`;nn(`WebGPURenderer: THREE.TextureNode.gradient() does not support ${o} shader.`)}generateTextureCompare(e,n,r,i,a,s,o=this.shaderStage){if(o==="fragment")return e.isDepthTexture===!0&&e.isArrayTexture===!0?s?`textureSampleCompare( ${n}, ${n}_sampler, ${r}, ${a}, ${i}, ${s} )`:`textureSampleCompare( ${n}, ${n}_sampler, ${r}, ${a}, ${i} )`:s?`textureSampleCompare( ${n}, ${n}_sampler, ${r}, ${i}, ${s} )`:`textureSampleCompare( ${n}, ${n}_sampler, ${r}, ${i} )`;nn(`WebGPURenderer: THREE.DepthTexture.compareFunction() does not support ${o} shader.`)}generateTextureLevel(e,n,r,i,a,s){return this.isUnfilterable(e)===!1?a?s?`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${a}, ${i}, ${s} )`:`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${a}, ${i} )`:s?`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${i}, ${s} )`:`textureSampleLevel( ${n}, ${n}_sampler, ${r}, ${i} )`:this.isFilteredTexture(e)?this.generateFilteredTexture(e,n,r,s,i,a):this.generateTextureLod(e,n,r,a,s,i)}generateTextureBias(e,n,r,i,a,s,o=this.shaderStage){if(o==="fragment")return a?s?`textureSampleBias( ${n}, ${n}_sampler, ${r}, ${a}, ${i}, ${s} )`:`textureSampleBias( ${n}, ${n}_sampler, ${r}, ${a}, ${i} )`:s?`textureSampleBias( ${n}, ${n}_sampler, ${r}, ${i}, ${s} )`:`textureSampleBias( ${n}, ${n}_sampler, ${r}, ${i} )`;nn(`WebGPURenderer: THREE.TextureNode.biasNode does not support ${o} shader.`)}getPropertyName(e,n=this.shaderStage){if(e.isNodeVarying===!0&&e.needsInterpolation===!0){if(n==="vertex")return`varyings.${e.name}`}else if(e.isNodeUniform===!0){const r=e.name,i=e.type;return i==="texture"||i==="cubeTexture"||i==="cubeDepthTexture"||i==="storageTexture"||i==="texture3D"?r:i==="buffer"||i==="storageBuffer"||i==="indirectStorageBuffer"?this.isCu
4472stomStruct(e)?r:r+".value":e.groupNode.name+"."+r}return super.getPropertyName(e)}getOutputStructName(){return"output"}getFunctionOperator(e){const n=rxt[e];return n!==void 0?(this._include(n),n):null}getNodeAccess(e,n){return n!=="compute"?e.isAtomic===!0?(Kt("WebGPURenderer: Atomic operations are only supported in compute shaders."),fc.READ_WRITE):fc.READ_ONLY:e.access}getStorageAccess(e,n){return nxt[this.getNodeAccess(e,n)]}getUniformFromNode(e,n,r,i=null){const a=super.getUniformFromNode(e,n,r,i),s=this.getDataFromNode(e,r,this.globalCache);if(s.uniformGPU===void 0){let o;const l=e.groupNode,c=l.name,u=this.getBindGroupArray(c,r);if(n==="texture"||n==="cubeTexture"||n==="cubeDepthTexture"||n==="storageTexture"||n==="texture3D"){let f=null;const h=this.getNodeAccess(e,r);if(n==="texture"||n==="storageTexture"?e.value.is3DTexture===!0?f=new bH(a.name,a.node,l,h):f=new Dk(a.name,a.node,l,h):n==="cubeTexture"||n==="cubeDepthTexture"?f=new b4e(a.name,a.node,l,h):n==="texture3D"&&(f=new bH(a.name,a.node,l,h)),f.store=e.isStorageTextureNode===!0,f.mipLevel=f.store?e.mipLevel:0,f.setVisibility(FB[r]),e.value.isCubeTexture===!0||this.isUnfilterable(e.value)===!1&&f.store===!1){const A=new Ggt(`${a.name}_sampler`,a.node,l);A.setVisibility(FB[r]),u.push(A,f),o=[A,f]}else u.push(f),o=[f]}else if(n==="buffer"||n==="storageBuffer"||n==="indirectStorageBuffer"){const f=this.getSharedDataFromNode(e);let h=f.buffer;if(h===void 0){const p=n==="buffer"?v4e:qgt;h=new p(e,l),f.buffer=h}h.setVisibility(h.getVisibility()|FB[r]),u.push(h),o=h,a.name=i||"NodeBuffer_"+a.id}else{let f=this.uniformGroups[c];f===void 0&&(f=new y4e(c,l),f.setVisibility(Q1.VERTEX|Q1.FRAGMENT|Q1.COMPUTE),this.uniformGroups[c]=f),u.indexOf(f)===-1&&u.push(f),o=this.getNodeUniform(a,n);const h=o.name;f.uniforms.some(A=>A.name===h)||f.addUniform(o)}s.uniformGPU=o}return a}getBuiltin(e,n,r,i=this.shaderStage){const a=this.builtins[i]||(this.builtins[i]=new Map);return a.has(e)===!1&&a.set(e,{name:e,property:n,type:r}),n}hasBuiltin(e,n=this.shaderStage){return this.builtins[n]!==void 0&&this.builtins[n].has(e)}getVertexIndex(){return this.shaderStage==="vertex"?this.getBuiltin("vertex_index","vertexIndex","u32","attribute"):"vertexIndex"}buildFunctionCode(e){const n=e.layout,r=this.flowShaderNode(e),i=[];for(const s of n.inputs)i.push(s.name+" : "+this.getType(s.type));let a=`fn ${n.name}( ${i.join(", ")} ) -> ${this.getType(n.type)} { 4473${r.vars} 4474${r.code} 4475`;return r.result&&(a+=` return ${r.result}; 4476`),a+=` 4477} 4478`,a}getInstanceIndex(){return this.shaderStage==="vertex"?this.getBuiltin("instance_index","instanceIndex","u32","attribute"):"instanceIndex"}getInvocationLocalIndex(){return this.getBuiltin("local_invocation_index","invocationLocalIndex","u32","attribute")}getSubgroupSize(){return this.enableSubGroups(),this.getBuiltin("subgroup_size","subgroupSize","u32","attribute")}getInvocationSubgroupIndex(){return this.enableSubGroups(),this.getBuiltin("subgroup_invocation_id","invocationSubgroupIndex","u32","attribute")}getSubgroupIndex(){return this.enableSubGroups(),this.getBuiltin("subgroup_id","subgroupIndex","u32","attribute")}getDrawIndex(){return null}getFrontFacing(){return this.getBuiltin("front_facing","isFront","bool")}getFragCoord(){return this.getBuiltin("position","fragCoord","vec4<f32>")+".xy"}getFragDepth(){return"output."+this.getBuiltin("frag_depth","depth","f32","output")}getClipDistance(){return"varyings.hw_clip_distances"}isFlipY(){return!1}enableDirective(e,n=this.shaderStage){(this.directives[n]||(this.directives[n]=new Set)).add(e)}getDirectives(e){const n=[],r=this.directives[e];if(r!==void 0)for(const i of r)n.push(`enable ${i};`);return n.join(` 4479`)}enableSubGroups(){this.enableDirective("subgroups")}enableSubgroupsF16(){this.enableDirective("subgroups-f16")}enableClipDistances(){this.enableDirective("clip_distances")}enableShaderF16(){this.enableDirective("f16")}enableDualSourceBlending(){this.enableDirective("dual_source_blending")}enableHardwareClipping(e){this.enableClipDistances(),this.getBuiltin("clip_distances","hw_clip_distances",`array<f32, ${e} >`,"vertex")}getBuiltins(e){const n=[],r=this.builtins[e];if(r!==void 0)for(const{name:i,property:a,type:s}of r.values())n.push(`@builtin( ${i} ) ${a} : ${s}`);return n.join(`, 4480 `)}getScopedArray(e,n,r,i){return this.scopedArrays.has(e)===!1&&this.scopedArrays.set(e,{name:e,scope:n,bufferType:r,bufferCount:i}),e}getScopedArrays(e){if(e!=="compute")return;const n=[];for(const{name:r,scope:i,bufferType:a,bufferCount:s}of this.scopedArrays.values()){const o=this.getType(a);n.push(`var<${i}> ${r}: array< ${o}, ${s} >;`)}return n.join(` 4481`)}getAttributes(e){const n=[];if(e==="compute"&&(this.getBuiltin("global_invocation_id","globalId","vec3<u32>","attribute"),this.getBuiltin("workgroup_id","workgroupId","vec3<u32>","attribute"),this.getBuiltin("local_invocation_id","localId","vec3<u32>","attribute"),this.getBuiltin("num_workgroups","numWorkgroups","vec3<u32>","attribute"),this.renderer.hasFeature("subgroups")&&(this.enableDirective("subgroups",e),this.getBuiltin("subgroup_size","subgroupSize","u32","attribute"))),e==="vertex"||e==="compute"){const r=this.getBuiltins("attribute");r&&n.push(r);const i=this.getAttributesArray();for(let a=0,s=i.length;a<s;a++){const o=i[a],l=o.name,c=this.getType(o.type);n.push(`@location( ${a} ) ${l} : ${c}`)}}return n.join(`, 4482 `)}getStructMembers(e){const n=[];for(const r of e.members){const i=e.output?"@location( "+r.index+" ) ":"";let a=this.getType(r.type);r.atomic&&(a="atomic< "+a+" >"),n.push(` ${i+r.name} : ${a}`)}return e.output&&n.push(` ${this.getBuiltins("output")}`),n.join(`, 4483`)}getStructs(e){let n="";const r=this.structs[e];if(r.length>0){const i=[];for(const a of r){let s=`struct ${a.name} { 4484`;s+=this.getStructMembers(a),s+=` 4485};`,i.push(s)}n=` 4486`+i.join(` 4487 4488`)+` 4489`}return n}getVar(e,n,r=null,i=""){let a=`var${i} ${n} : `;return r!==null?a+=this.generateArrayDeclaration(e,r):a+=this.getType(e),a}getVars(e,n=!1){let r="";n&&(r="<private>");const i=[],a=this.vars[e];if(a!==void 0)for(const s of a)i.push(`${this.getVar(s.type,s.name,s.count,r)};`);return n?i.join(` 4490`):` 4491 ${i.join(` 4492 `)} 4493`}getVaryings(e){const n=[];if(e==="vertex"&&this.getBuiltin("position","builtinClipSpace","vec4<f32>","vertex"),e==="vertex"||e==="fragment"){const a=this.varyings,s=this.vars[e];let o=0;for(let l=0;l<a.length;l++){const c=a[l];if(c.needsInterpolation){let u=`@location( ${o++} )`;if(c.interpolationType){const f=c.interpolationSampling!==null?`, ${c.interpolationSampling} )`:" )";u+=` @interpolate( ${c.interpolationType}${f}`}
4493else/^(int|uint|ivec|uvec)/.test(c.type)&&(u+=" @interpolate(flat, either)");n.push(`${u} ${c.name} : ${this.getType(c.type)}`)}else e==="vertex"&&s.includes(c)===!1&&s.push(c)}}const r=this.getBuiltins(e);r&&n.push(r);const i=n.join(`, 4494 `);return e==="vertex"?this._getWGSLStruct("VaryingsStruct"," "+i):i}isCustomStruct(e){const n=e.value,r=e.node,i=(n.isBufferAttribute||n.isInstancedBufferAttribute)&&r.structTypeNode!==null,a=r.value&&r.value.array&&typeof r.value.itemSize=="number"&&r.value.array.length>r.value.itemSize;return i&&!a}getUniforms(e){const n=this.renderer.backend,r=this.uniforms[e],i=[],a=[],s=[],o={};for(const c of r){const u=c.groupNode.name,f=this.bindingsIndexes[u];if(c.type==="texture"||c.type==="cubeTexture"||c.type==="cubeDepthTexture"||c.type==="storageTexture"||c.type==="texture3D"){const h=c.node.value;(h.isCubeTexture===!0||this.isUnfilterable(h)===!1&&c.node.isStorageTextureNode!==!0)&&(this.isSampleCompare(h)?i.push(`@binding( ${f.binding++} ) @group( ${f.group} ) var ${c.name}_sampler : sampler_comparison;`):i.push(`@binding( ${f.binding++} ) @group( ${f.group} ) var ${c.name}_sampler : sampler;`));let A,g="";const{primarySamples:w}=n.utils.getTextureSampleData(h);if(w>1&&(g="_multisampled"),h.isCubeTexture===!0&&h.isDepthTexture===!0)A="texture_depth_cube";else if(h.isCubeTexture===!0)A="texture_cube<f32>";else if(h.isDepthTexture===!0)n.compatibilityMode&&h.compareFunction===null?A=`texture${g}_2d<f32>`:A=`texture_depth${g}_2d${h.isArrayTexture===!0?"_array":""}`;else if(c.node.isStorageTextureNode===!0){const T=wH(h,n.device),C=this.getStorageAccess(c.node,e),M=c.node.value.is3DTexture,D=c.node.value.isArrayTexture;A=`texture_storage_${M?"3d":`2d${D?"_array":""}`}<${T}, ${C}>`}else if(h.isArrayTexture===!0||h.isDataArrayTexture===!0||h.isCompressedArrayTexture===!0)A="texture_2d_array<f32>";else if(h.is3DTexture===!0||h.isData3DTexture===!0)A="texture_3d<f32>";else{const T=this.getComponentTypeFromTexture(h).charAt(0);A=`texture${g}_2d<${T}32>`}i.push(`@binding( ${f.binding++} ) @group( ${f.group} ) var ${c.name} : ${A};`)}else if(c.type==="buffer"||c.type==="storageBuffer"||c.type==="indirectStorageBuffer"){const h=c.node,p=this.getType(h.getNodeType(this)),A=h.bufferCount,g=A>0&&c.type==="buffer"?", "+A:"",w=h.isStorageBufferNode?`storage, ${this.getStorageAccess(h,e)}`:"uniform";if(this.isCustomStruct(c))a.push(`@binding( ${f.binding++} ) @group( ${f.group} ) var<${w}> ${c.name} : ${p};`);else{const C=` value : array< ${h.isAtomic?`atomic<${p}>`:`${p}`}${g} >`;a.push(this._getWGSLStructBinding(c.name,C,w,f.binding++,f.group))}}else{const h=c.groupNode.name;if(o[h]===void 0){const p=this.uniformGroups[h];if(p!==void 0){const A=[];for(const w of p.uniforms){const T=w.getType(),C=this.getType(this.getVectorType(T));A.push(` ${w.name} : ${C}`)}let g=this.uniformGroupsBindings[h];g===void 0&&(g={index:f.binding++,id:f.group},this.uniformGroupsBindings[h]=g),o[h]={index:g.index,id:g.id,snippets:A}}}}}for(const c in o){const u=o[c];s.push(this._getWGSLStructBinding(c,u.snippets.join(`, 4495`),"uniform",u.index,u.id))}return[...i,...a,...s].join(` 4496`)}buildCode(){const e=this.material!==null?{fragment:{},vertex:{}}:{compute:{}};this.sortBindingGroups();for(const n in e){this.shaderStage=n;const r=this.allowGlobalVariables,i=e[n];i.uniforms=this.getUniforms(n),i.attributes=this.getAttributes(n),i.varyings=this.getVaryings(n),i.structs=this.getStructs(n),i.vars=this.getVars(n,r),i.codes=this.getCodes(n),i.directives=this.getDirectives(n),i.scopedArrays=this.getScopedArrays(n);let a=`// code 4497 4498`;a+=this.flowCode[n];const s=this.flowNodes[n],o=s[s.length-1],l=o.outputNode,c=l!==void 0&&l.isOutputStructNode===!0;for(const u of s){const f=this.getFlowData(u),h=u.name;if(h&&(a.length>0&&(a+=` 4499`),a+=` // flow -> ${h} 4500`),a+=`${f.code} 4501 `,u===o&&n!=="compute"){if(a+=`// result 4502 4503 `,n==="vertex")a+=`varyings.builtinClipSpace = ${f.result};`;else if(n==="fragment")if(c)i.returnType=l.getNodeType(this),i.structs+="var<private> output : "+i.returnType+";",a+=`return ${f.result};`;else{let p=" @location( 0 ) color: vec4<f32>";const A=this.getBuiltins("output");A&&(p+=`, 4504 `+A),i.returnType="OutputStruct",i.structs+=this._getWGSLStruct("OutputStruct",p),i.structs+=` 4505var<private> output : OutputStruct;`,a+=`output.color = ${f.result}; 4506 4507 return output;`}}}i.flow=a}if(this.shaderStage=null,this.material!==null)this.vertexShader=this._getWGSLVertexCode(e.vertex),this.fragmentShader=this._getWGSLFragmentCode(e.fragment);else{const n=this.object.workgroupSize;this.computeShader=this._getWGSLComputeCode(e.compute,n)}}getMethod(e,n=null){let r;return n!==null&&(r=this._getWGSLMethod(e+"_"+n)),r===void 0&&(r=this._getWGSLMethod(e)),r||e}getBitcastMethod(e){return`bitcast<${this.getType(e)}>`}getFloatPackingMethod(e){return this.getMethod(`floatpack_${e}_2x16`)}getFloatUnpackingMethod(e){return this.getMethod(`floatunpack_${e}_2x16`)}getTernary(e,n,r){return`select( ${r}, ${n}, ${e} )`}getType(e){return ixt[e]||e}isAvailable(e){let n=Hse[e];return n===void 0&&(e==="float32Filterable"?n=this.renderer.hasFeature("float32-filterable"):e==="clipDistance"&&(n=this.renderer.hasFeature("clip-distances")),Hse[e]=n),n}_getWGSLMethod(e){return lw[e]!==void 0&&this._include(e),axt[e]}_include(e){const n=lw[e];return n.build(this),this.addInclude(n),n}
4507_getWGSLVertexCode(e){return`${this.getSignature()} 4508// directives 4509${e.directives} 4510 4511// structs 4512${e.structs} 4513 4514// uniforms 4515${e.uniforms} 4516 4517// varyings 4518${e.varyings} 4519var<private> varyings : VaryingsStruct; 4520 4521// vars 4522${e.vars} 4523 4524// codes 4525${e.codes} 4526 4527@vertex 4528fn main( ${e.attributes} ) -> VaryingsStruct { 4529 4530 // flow 4531 ${e.flow} 4532 4533 return varyings; 4534 4535} 4536`}_getWGSLFragmentCode(e){return`${this.getSignature()} 4537// global 4538${T4e} 4539 4540// structs 4541${e.structs} 4542 4543// uniforms 4544${e.uniforms} 4545 4546// vars 4547${e.vars} 4548 4549// codes 4550${e.codes} 4551 4552@fragment 4553fn main( ${e.varyings} ) -> ${e.returnType} { 4554 4555 // flow 4556 ${e.flow} 4557 4558} 4559`}_getWGSLComputeCode(e,n){const[r,i,a]=n;return`${this.getSignature()} 4560// directives 4561${e.directives} 4562 4563// system 4564var<private> instanceIndex : u32; 4565 4566// locals 4567${e.scopedArrays} 4568 4569// structs 4570${e.structs} 4571 4572// uniforms 4573${e.uniforms} 4574 4575// vars 4576${this.allowGlobalVariables?e.vars:""} 4577 4578// codes 4579${e.codes} 4580 4581@compute @workgroup_size( ${r}, ${i}, ${a} ) 4582fn main( ${e.attributes} ) { 4583 4584 // local vars 4585 ${this.allowGlobalVariables?"":e.vars} 4586 4587 // system 4588 instanceIndex = globalId.x 4589 + globalId.y * ( ${r} * numWorkgroups.x ) 4590 + globalId.z * ( ${r} * numWorkgroups.x ) * ( ${i} * numWorkgroups.y ); 4591 4592 // flow 4593 ${e.flow} 4594 4595} 4596`}_getWGSLStruct(e,n){return` 4597struct ${e} { 4598${n} 4599};`}_getWGSLStructBinding(e,n,r,i=0,a=0){const s=e+"Struct";return`${this._getWGSLStruct(s,n)} 4600@binding( ${i} ) @group( ${a} ) 4601var<${r}> ${e} : ${s};`}}class oxt{constructor(e){this.backend=e}getCurrentDepthStencilFormat(e){let n;return e.depth&&(e.depthTexture!==null?n=this.getTextureFormatGPU(e.depthTexture):e.stencil?this.backend.renderer.reversedDepthBuffer===!0?n=qe.Depth32FloatStencil8:n=qe.Depth24PlusStencil8:this.backend.renderer.reversedDepthBuffer===!0?n=qe.Depth32Float:n=qe.Depth24Plus),n}getTextureFormatGPU(e){return this.backend.get(e).format}getTextureSampleData(e){let n;if(e.isFramebufferTexture)n=1;else if(e.isDepthTexture&&!e.renderTarget){const a=this.backend.renderer,s=a.getRenderTarget();n=s?s.samples:a.currentSamples}else e.renderTarget&&(n=e.renderTarget.samples);n=n||1;const r=n>1&&e.renderTarget!==null&&e.isDepthTexture!==!0&&e.isFramebufferTexture!==!0;return{samples:n,primarySamples:r?1:n,isMSAA:r}}getCurrentColorFormat(e){let n;return e.textures!==null?n=this.getTextureFormatGPU(e.textures[0]):n=this.getPreferredCanvasFormat(),n}getCurrentColorFormats(e){return e.textures!==null?e.textures.map(n=>this.getTextureFormatGPU(n)):[this.getPreferredCanvasFormat()]}getCurrentColorSpace(e){return e.textures!==null?e.textures[0].colorSpace:this.backend.renderer.outputColorSpace}getPrimitiveTopology(e,n){if(e.isPoints)return wC.PointList;if(e.isLineSegments||e.isMesh&&n.wireframe===!0)return wC.LineList;if(e.isLine)return wC.LineStrip;if(e.isMesh)return wC.TriangleList}getSampleCount(e){return e>=4?4:1}
4601getSampleCountRenderContext(e){return e.textures!==null?this.getSampleCount(e.sampleCount):this.getSampleCount(this.backend.renderer.currentSamples)}getPreferredCanvasFormat(){const n=this.backend.parameters.outputType;if(n===void 0)return navigator.gpu.getPreferredCanvasFormat();if(n===rs)return qe.BGRA8Unorm;if(n===is)return qe.RGBA16Float;throw new Error("Unsupported output buffer type.")}}const E4e=new Map([[Int8Array,["sint8","snorm8"]],[Uint8Array,["uint8","unorm8"]],[Int16Array,["sint16","snorm16"]],[Uint16Array,["uint16","unorm16"]],[Int32Array,["sint32","snorm32"]],[Uint32Array,["uint32","unorm32"]],[Float32Array,["float32"]]]);typeof Float16Array<"u"&&E4e.set(Float16Array,["float16"]);const lxt=new Map([[$me,["float16"]]]),cxt=new Map([[Int32Array,"sint32"],[Int16Array,"sint32"],[Uint32Array,"uint32"],[Uint16Array,"uint32"],[Float32Array,"float32"]]);class uxt{constructor(e){this.backend=e}createAttribute(e,n){const r=this._getBufferAttribute(e),i=this.backend,a=i.get(r);let s=a.buffer;if(s===void 0){const o=i.device;let l=r.array;if(e.normalized===!1){if(l.constructor===Int16Array||l.constructor===Int8Array)l=new Int32Array(l);else if((l.constructor===Uint16Array||l.constructor===Uint8Array)&&(l=new Uint32Array(l),n&GPUBufferUsage.INDEX))for(let f=0;f<l.length;f++)l[f]===65535&&(l[f]=4294967295)}if(r.array=l,(r.isStorageBufferAttribute||r.isStorageInstancedBufferAttribute)&&r.itemSize===3){l=new l.constructor(r.count*4);for(let f=0;f<r.count;f++)l.set(r.array.subarray(f*3,f*3+3),f*4);r.itemSize=4,r.array=l,a._force3to4BytesAlignment=!0}const c=l.byteLength,u=c+(4-c%4)%4;s=o.createBuffer({label:r.name,size:u,usage:n,mappedAtCreation:!0}),new l.constructor(s.getMappedRange()).set(l),s.unmap(),a.buffer=s}}updateAttribute(e){const n=this._getBufferAttribute(e),r=this.backend,i=r.device,a=r.get(n),s=r.get(n).buffer;let o=n.array;if(a._force3to4BytesAlignment===!0){o=new o.constructor(n.count*4);for(let c=0;c<n.count;c++)o.set(n.array.subarray(c*3,c*3+3),c*4);n.array=o}const l=n.updateRanges;if(l.length===0)i.queue.writeBuffer(s,0,o,0);else{const c=fR(o),u=c?1:o.BYTES_PER_ELEMENT;for(let f=0,h=l.length;f<h;f++){const p=l[f];let A,g;if(a._force3to4BytesAlignment===!0){const T=Math.floor(p.start/3),C=Math.ceil(p.count/3);A=T*4*u,g=C*4*u}else A=p.start*u,g=p.count*u;const w=A*(c?o.BYTES_PER_ELEMENT:1);i.queue.writeBuffer(s,w,o,A,g)}n.clearUpdateRanges()}}createShaderVertexBuffers(e){const n=e.getAttributes(),r=new Map;for(let i=0;i<n.length;i++){const a=n[i],s=a.array.BYTES_PER_ELEMENT,o=this._getBufferAttribute(a);let l=r.get(o);if(l===void 0){let f,h;a.isInterleavedBufferAttribute===!0?(f=a.data.stride*s,h=a.data.isInstancedInterleavedBuffer?SC.Instance:SC.Vertex):(f=a.itemSize*s,h=a.isInstancedBufferAttribute?SC.Instance:SC.Vertex),a.normalized===!1&&(a.array.constructor===Int16Array||a.array.constructor===Uint16Array)&&(f=4),l={arrayStride:f,attributes:[],stepMode:h},r.set(o,l)}const c=this._getVertexFormat(a),u=a.isInterleavedBufferAttribute===!0?a.offset*s:0;l.attributes.push({shaderLocation:i,offset:u,format:c})}return Array.from(r.values())}destroyAttribute(e){const n=this.backend;n.get(this._getBufferAttribute(e)).buffer.destroy(),n.delete(e)}async getArrayBufferAsync(e,n=null,r=0,i=-1){const a=this.backend,s=a.device,l=a.get(this._getBufferAttribute(e)).buffer,c=i===-1?l.size-r:i;let u;if(n!==null&&n.isReadbackBuffer){const p=a.get(n);if(n._mapped===!0)throw new Error("WebGPURenderer: ReadbackBuffer must be released before being used again.");if(n._mapped=!0,p.readBufferGPU===void 0){u=s.createBuffer({label:`${n.name}_readback`,size:n.maxByteLength,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ});const A=()=>{n.buffer=null,n._mapped=!1,u.unmap()},g=()=>{n.buffer=null,n._mapped=!1,u.destroy(),a.delete(n),n.removeEventListener("release",A),n.removeEventListener("dispose",g)};n.addEventListener("release",A),n.addEventListener("dispose",g),p.readBufferGPU=u}else u=p.readBufferGPU}else u=s.createBuffer({label:`${e.name}_readback`,size:c,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ});const f=s.createCommandEncoder({label:`readback_encoder_${e.name}`});f.copyBufferToBuffer(l,r,u,0,c);const h=f.finish();if(s.queue.submit([h]),await u.mapAsync(GPUMapMode.READ,0,c),n===null){const A=u.getMappedRange(0,c).slice();return u.destroy(),A}else{if(n.isReadbackBuffer)return n.buffer=u.getMappedRange(0,c),n;{const p=u.getMappedRange(0,c);return new Uint8Array(n).set(new Uint8Array(p)),u.destroy(),n}}}_getVertexFormat(e){const{itemSize:n,normalized:r}=e,i=e.array.constructor,a=e.constructor;let s;if(n===1)s=cxt.get(i);else{const l=(lxt.get(a)||E4e.get(i))[r?1:0];if(l){const c=i.BYTES_PER_ELEMENT*n,f=Math.floor((c+3)/4)*4/i.BYTES_PER_ELEMENT;if(f%1)throw new Error("THREE.WebGPUAttributeUtils: Bad vertex format item size.");s=`${l}x${f}`}}return s||nn("WebGPUAttributeUtils: Vertex format not supported yet."),s}_getBufferAttribute(e){return e.isInterleavedBufferAttribute&&(e=e.data),e}}class fxt{constructor(e){this.layoutGPU=e,this.usedTimes=0}}class dxt{constructor(e){this.backend=e,this._bindGroupLayoutCache=new Map}createBindingsLayout(e){const n=this.backend,r=n.device,i=n.get(e);if(i.layout)return i.layout.layoutGPU;const a=this._createLayoutEntries(e),s=x6(JSON.stringify(a));let o=this._bindGroupLayoutCache.get(s);return o===void 0&&(o=new fxt(r.createBindGroupLayout({entries:a})),this._bindGroupLayoutCache.set(s,o)),o.usedTimes++,i.layout=o,i.layoutKey=s,o.layoutGPU}createBindings(e,n,r,i=0){const{backend:a}=this,s=a.get(e),o=this.createBindingsLayout(e);let l;r>0&&(s.groups===void 0&&(s.groups=[],s.versions=[]),s.versions[r]===i&&(l=s.groups[r])),l===void 0&&(l=this.createBindGroup(e,o),r>0&&(s.groups[r]=l,s.versions[r]=i)),s.group=l}updateBinding(e){const n=this.backend,r=n.device,i=e.buffer,a=n.get(e).buffer,s=e.updateRanges;if(s.length===0)r.queue.writeBuffer(a,0,i,0);else{const o=fR(i),l=o?1:i.BYTES_PER_ELEMENT;for(let c=0,u=s.length;c<u;c++){const f=s[c],h=f.start*l,p=f.count*l,A=h*(o?i.BYTES_PER_ELEMENT:1);r.queue.writeBuffer(a,A,i,h,p)}}}createBindGroupIndex(e,n){const i=this.backend.device,a=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST,s=e[0],o=i.createBuffer({label:"bindingCameraIndex_"+s,size:16,usage:a});i.queue.writeBuffer(o,0,e,0);const l=[{binding:0,resource:{buffer:o}}];return i.createBindGroup({label:"bindGroupCameraIndex_"+s,layout:n,entries:l})}createBindGroup(e,n){const r=this.backend,i=r.device;let a=0;const s=[];for(const o of e.bindings){if(o.isUniformBuffer){const l=r.get(o);if(l.buffer===void 0){const c=o.byteLength,u=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST,f=[];o.visibility&Q1.VERTEX&&f.push("vertex"),o.visibility&Q1.FRAGMENT&&f.push("fragment"),o.visibility&Q1.COMPUTE&&f.push("compute");const h=`(${f.join(",")})`,p=i.createBuffer({label:`bindingBuffer${o.id}_${o.name}_${h}`,size:c,usage:u});l.buffer=p}s.push({binding:a,resource:{buffer:l.buffer}})}else if(o.isStorageBuffer){const l=r.get(o.attribute).buffer;s.push({binding:a,resource:{buffer:l}})}else if(o.isSampledTexture){const l=r.get(o.texture);let c;if(l.externalTexture!==void 0)c=i.importExternalTexture({source:l.externalTexture});else{const u=o.store?1:l.texture.mipLevelCount,f=o.store?o.mipLevel:0;let h=`view-${l.texture.width}-${l.texture.height}`;if(l.texture.depthOrArrayLayers>1&&(h+=`-${l.texture.depthOrArrayLayers}`),h+=`-${u}-${f}`,c=l[h],c===void 0){const p=Hgt.All;let A;o.isSampledCubeTexture?A=Ic.Cube:o.isSampledTexture3D?A=Ic.ThreeD:o.texture.isArrayTexture||o.texture.isDataArrayTexture||o.texture.isCompressedArrayTexture?A=Ic.TwoDArray:A=Ic.TwoD,c=l[h]=l.texture.createView({aspect:p,dimension:A,mipLevelCount:u,baseMipLevel:f})}}s.push({binding:a,resource:c})}else if(o.isSampler){const l=r.get(o.texture);s.push({binding:a,resource:l.sampler})}a++}return i.createBindGroup({label:"bindGroup_"+e.name,layout:n,entries:s})}_createLayoutEntries(e){const n=[];let r=0;for(const i of e.bindings){const a=this.backend,s={binding:r,visibility:i.visibility};if(i.isUniformBuffer||i.isStorageBuffer){const o={};i.isStorageBuffer&&(i.visibility&Q1.COMPUTE&&(i.access===fc.READ_WRITE||i.access===fc.WRITE_ONLY)?o.type=LB.Storage:o.type=LB.ReadOnlyStorage),s.buffer=o}else if(i.isSampledTexture&&i.store){const o={};o.format=this.backend.get(i.texture).texture.format;const l=i.access;l===fc.READ_WRITE?o.access=OB.ReadWrite:l===fc.WRITE_ONLY?o.access=OB.WriteOnly:o.access=OB.ReadOnly,i.texture.isArrayTexture?o.viewDimension=Ic.TwoDArray:i.texture.is3DTexture&&(o.viewDimension=Ic.ThreeD),s.storageTexture=o}else if(i.isSampledTexture){const o={},{primarySamples:l}=a.utils.getTextureSampleData(i.texture);if(l>1&&(o.multisampled=!0,i.texture.isDepthTexture||(o.sampleType=Xx.UnfilterableFloat)),i.texture.isDepthTexture)a.compatibilityMode&&i.texture.compareFunction===null?o.sampleType=Xx.UnfilterableFloat:o.sampleType=Xx.Depth;else if(i.texture.isDataTexture||i.texture.isDataArrayTexture||i.texture.isData3DTexture||i.texture.isStorageTexture){const c=i.texture.type;c===Al?o.sampleType=Xx.SInt:c===_a?o.sampleType=Xx.UInt:c===os&&(this.backend.hasFeature("float32-filterable")?o.sampleType=Xx.Float:o.sampleType=Xx.UnfilterableFloat)}i.isSampledCubeTexture?o.viewDimension=Ic.Cube:i.texture.isArrayTexture||i.texture.isDataArrayTexture||i.texture.isCompressedArrayTexture?o.viewDimension=Ic.TwoDArray:i.isSampledTexture3D&&(o.viewDimension=Ic.ThreeD),s.texture=o}else if(i.isSampler){const o={};i.texture.isDepthTexture&&(i.texture.compareFunction!==null&&a.hasCompatibility(Vy.TEXTURE_COMPARE)?o.type=Ise.Comparison:o.type=Ise.NonFiltering),s.sampler=o}else nn(`WebGPUBindingUtils: Unsupported binding "${i}".`);n.push(s),r++}return n}deleteBindGroupData(e){const{backend:n}=this,r=n.get(e);r.layout&&(r.layout.usedTimes--,r.layout.usedTimes===0&&this._bindGroupLayoutCache.delete(r.layoutKey),r.layout=void 0,r.layoutKey=void 0)}dispose(){this._bindGroupLayoutCache.clear()}}class hxt{constructor(e){this.backend=e}getMaxAnisotropy(){return 16}getUniformBufferLimit(){return this.backend.device.limits.maxUniformBufferBindingSize}}class pxt{constructor(e){this.backend=e,this._activePipelines=new WeakMap}setPipeline(e,n){this._activePipelines.get(e)!==n&&(e.setPipeline(n),this._activePipelines.set(e,n))}
4601_getSampleCount(e){return this.backend.utils.getSampleCountRenderContext(e)}createRenderPipeline(e,n){const{object:r,material:i,geometry:a,pipeline:s}=e,{vertexProgram:o,fragmentProgram:l}=s,c=this.backend,u=c.device,f=c.utils,h=c.get(s),p=[];for(const Q of e.getBindings()){const ee=c.get(Q),{layoutGPU:Z}=ee.layout;p.push(Z)}const A=c.attributeUtils.createShaderVertexBuffers(e);let g;i.blending!==_l&&(i.blending!==Hl||i.transparent!==!1)&&(g=this._getBlending(i));let w={};i.stencilWrite===!0&&(w={compare:this._getStencilCompare(i),failOp:this._getStencilOperation(i.stencilFail),depthFailOp:this._getStencilOperation(i.stencilZFail),passOp:this._getStencilOperation(i.stencilZPass)});const T=this._getColorWriteMask(i),C=[];if(e.context.textures!==null){const Q=e.context.textures,ee=e.context.mrt;for(let Z=0;Z<Q.length;Z++){const X=Q[Z],K=f.getTextureFormatGPU(X);let se;if(ee!==null)if(this.backend.compatibilityMode!==!0){const ae=ee.getBlendMode(X.name);ae.blending===eq?se=g:ae.blending!==_l&&(se=this._getBlending(ae))}else Fa("WebGPURenderer: Multiple Render Targets (MRT) blending configuration is not fully supported in compatibility mode. The material blending will be used for all render targets."),se=g;else se=g;C.push({format:K,blend:se,writeMask:T})}}else{const Q=f.getCurrentColorFormat(e.context);C.push({format:Q,blend:g,writeMask:T})}const M=c.get(o).module,D=c.get(l).module,k=this._getPrimitiveState(r,a,i),I=this._getDepthCompare(i),L=f.getCurrentDepthStencilFormat(e.context),O=this._getSampleCount(e.context),B={label:`renderPipeline_${i.name||i.type}_${i.id}`,vertex:Object.assign({},M,{buffers:A}),fragment:Object.assign({},D,{targets:C}),primitive:k,multisample:{count:O,alphaToCoverageEnabled:i.alphaToCoverage&&O>1},layout:u.createPipelineLayout({bindGroupLayouts:p})},G={},j=e.context.depth,z=e.context.stencil;if((j===!0||z===!0)&&(j===!0&&(G.format=L,G.depthWriteEnabled=i.depthWrite,G.depthCompare=I),z===!0&&(G.stencilFront=w,G.stencilBack=w,G.stencilReadMask=i.stencilFuncMask,G.stencilWriteMask=i.stencilWriteMask),i.polygonOffset===!0&&(G.depthBias=i.polygonOffsetUnits,G.depthBiasSlopeScale=i.polygonOffsetFactor,G.depthBiasClamp=0),B.depthStencil=G),u.pushErrorScope("validation"),n===null)h.pipeline=u.createRenderPipeline(B),u.popErrorScope().then(Q=>{Q!==null&&(h.error=!0,nn(Q.message))});else{const Q=new Promise(async ee=>{try{h.pipeline=await u.createRenderPipelineAsync(B)}catch{}const Z=await u.popErrorScope();Z!==null&&(h.error=!0,nn(Z.message)),ee()});n.push(Q)}}createBundleEncoder(e,n="renderBundleEncoder"){const r=this.backend,{utils:i,device:a}=r,s=i.getCurrentDepthStencilFormat(e),o=i.getCurrentColorFormats(e),l=this._getSampleCount(e),c={label:n,colorFormats:o,depthStencilFormat:s,sampleCount:l};return a.createRenderBundleEncoder(c)}createComputePipeline(e,n){const r=this.backend,i=r.device,a=r.get(e.computeProgram).module,s=r.get(e),o=[];for(const l of n){const c=r.get(l),{layoutGPU:u}=c.layout;o.push(u)}s.pipeline=i.createComputePipeline({compute:a,layout:i.createPipelineLayout({bindGroupLayouts:o})})}_getBlending(e){let n,r;const i=e.blending,a=e.blendSrc,s=e.blendDst,o=e.blendEquation;if(i===Qv){const l=e.blendSrcAlpha!==null?e.blendSrcAlpha:a,c=e.blendDstAlpha!==null?e.blendDstAlpha:s,u=e.blendEquationAlpha!==null?e.blendEquationAlpha:o;n={srcFactor:this._getBlendFactor(a),dstFactor:this._getBlendFactor(s),operation:this._getBlendOperation(o)},r={srcFactor:this._getBlendFactor(l),dstFactor:this._getBlendFactor(c),operation:this._getBlendOperation(u)}}else{const l=e.premultipliedAlpha,c=(u,f,h,p)=>{n={srcFactor:u,dstFactor:f,operation:Yx.Add},r={srcFactor:h,dstFactor:p,operation:Yx.Add}};if(l)switch(i){case Hl:c(Ci.One,Ci.OneMinusSrcAlpha,Ci.One,Ci.OneMinusSrcAlpha);break;case og:c(Ci.One,Ci.One,Ci.One,Ci.One);break;case lg:c(Ci.Zero,Ci.OneMinusSrc,Ci.Zero,Ci.One);break;case cg:c(Ci.Dst,Ci.OneMinusSrcAlpha,Ci.Zero,Ci.One);break}else switch(i){case Hl:c(Ci.SrcAlpha,Ci.OneMinusSrcAlpha,Ci.One,Ci.OneMinusSrcAlpha);break;case og:c(Ci.SrcAlpha,Ci.One,Ci.One,Ci.One);break;case lg:nn(`WebGPURenderer: "SubtractiveBlending" requires "${e.isMaterial?"material":"blendMode"}.premultipliedAlpha = true".`);break;case cg:nn(`WebGPURenderer: "MultiplyBlending" requires "${e.isMaterial?"material":"blendMode"}.premultipliedAlpha = true".`);break}}if(n!==void 0&&r!==void 0)return{color:n,alpha:r};nn("WebGPURenderer: Invalid blending: ",i)}_getBlendFactor(e){let n;switch(e){case Bm:n=Ci.Zero;break;case rq:n=Ci.One;break;case iq:n=Ci.Src;break;case aq:n=Ci.OneMinusSrc;break;case W3:n=Ci.SrcAlpha;break;case Z3:n=Ci.OneMinusSrcAlpha;break;case lq:n=Ci.Dst;break;case cq:n=Ci.OneMinusDst;break;case sq:n=Ci.DstAlpha;break;case oq:n=Ci.OneMinusDstAlpha;break;case uq:n=Ci.SrcAlphaSaturated;break;case uht:n=Ci.Constant;break;case fht:n=Ci.OneMinusConstant;break;default:nn("WebGPURenderer: Blend factor not supported.",e)}return n}_getStencilCompare(e){let n;const r=e.stencilFunc;switch(r){case GYe:n=Ql.Never;break;case oj:n=Ql.Always;break;case zYe:n=Ql.Less;break;case qYe:n=Ql.LessEqual;break;case $Ye:n=Ql.Equal;break;case YYe:n=Ql.GreaterEqual;break;case WYe:n=Ql.Greater;break;case ZYe:n=Ql.NotEqual;break;default:nn("WebGPURenderer: Invalid stencil function.",r)}return n}_getStencilOperation(e){let n;switch(e){case av:n=MA.Keep;break;case FYe:n=MA.Zero;break;case IYe:n=MA.Replace;break;case HYe:n=MA.Invert;break;case BYe:n=MA.IncrementClamp;break;case UYe:n=MA.DecrementClamp;break;case VYe:n=MA.IncrementWrap;break;case jYe:n=MA.DecrementWrap;break;default:nn("WebGPURenderer: Invalid stencil operation.",n)}return n}_getBlendOperation(e){let n;switch(e){case oc:n=Yx.Add;break;case tq:n=Yx.Subtract;break;case nq:n=Yx.ReverseSubtract;break;case kme:n=Yx.Min;break;case Lme:n=Yx.Max;break;default:nn("WebGPUPipelineUtils: Blend equation not supported.",e)}return n}_getPrimitiveState(e,n,r){const i={},a=this.backend.utils;
4601i.topology=a.getPrimitiveTopology(e,r),n.index!==null&&e.isLine===!0&&e.isLineSegments!==!0&&(i.stripIndexFormat=n.index.array instanceof Uint16Array?pD.Uint16:pD.Uint32);let s=r.side===ca;return e.isMesh&&e.matrixWorld.determinant()<0&&(s=!s),i.frontFace=s===!0?Lse.CW:Lse.CCW,i.cullMode=r.side===Zs?Ose.None:Ose.Back,i}_getColorWriteMask(e){return e.colorWrite===!0?Fse.All:Fse.None}_getDepthCompare(e){let n;if(e.depthTest===!1)n=Ql.Always;else{const r=this.backend.parameters.reversedDepthBuffer?wq[e.depthFunc]:e.depthFunc;switch(r){case x5:n=Ql.Never;break;case v5:n=Ql.Always;break;case y5:n=Ql.Less;break;case $g:n=Ql.LessEqual;break;case _5:n=Ql.Equal;break;case b5:n=Ql.GreaterEqual;break;case w5:n=Ql.Greater;break;case S5:n=Ql.NotEqual;break;default:nn("WebGPUPipelineUtils: Invalid depth function.",r)}}return n}}class mxt extends S4e{constructor(e,n,r=2048){super(r),this.device=e,this.type=n,this.querySet=this.device.createQuerySet({type:"timestamp",count:this.maxQueries,label:`queryset_global_timestamp_${n}`});const i=this.maxQueries*8;this.resolveBuffer=this.device.createBuffer({label:`buffer_timestamp_resolve_${n}`,size:i,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),this.resultBuffer=this.device.createBuffer({label:`buffer_timestamp_result_${n}`,size:i,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ})}allocateQueriesForContext(e){if(!this.trackTimestamp||this.isDisposed)return null;if(this.currentQueryIndex+2>this.maxQueries)return Fa(`WebGPUTimestampQueryPool [${this.type}]: Maximum number of queries exceeded, when using trackTimestamp it is necessary to resolves the queries via renderer.resolveTimestampsAsync( THREE.TimestampQuery.${this.type.toUpperCase()} ).`),null;const n=this.currentQueryIndex;return this.currentQueryIndex+=2,this.queryOffsets.set(e,n),n}async resolveQueriesAsync(){if(!this.trackTimestamp||this.currentQueryIndex===0||this.isDisposed)return this.lastValue;if(this.pendingResolve)return this.pendingResolve;this.pendingResolve=this._resolveQueries();try{return await this.pendingResolve}finally{this.pendingResolve=null}}async _resolveQueries(){if(this.isDisposed)return this.lastValue;try{if(this.resultBuffer.mapState!=="unmapped")return this.lastValue;const e=new Map(this.queryOffsets),n=this.currentQueryIndex,r=n*8;this.currentQueryIndex=0,this.queryOffsets.clear();const i=this.device.createCommandEncoder();i.resolveQuerySet(this.querySet,0,n,this.resolveBuffer,0),i.copyBufferToBuffer(this.resolveBuffer,0,this.resultBuffer,0,r);const a=i.finish();if(this.device.queue.submit([a]),this.resultBuffer.mapState!=="unmapped")return this.lastValue;if(await this.resultBuffer.mapAsync(GPUMapMode.READ,0,r),this.isDisposed)return this.resultBuffer.mapState==="mapped"&&this.resultBuffer.unmap(),this.lastValue;const s=new BigUint64Array(this.resultBuffer.getMappedRange(0,r)),o={},l=[];for(const[u,f]of e){const h=u.match(/^(.*):f(\d+)$/),p=parseInt(h[2]);l.includes(p)===!1&&l.push(p),o[p]===void 0&&(o[p]=0);const A=s[f],g=s[f+1],w=Number(g-A)/1e6;this.timestamps.set(u,w),o[p]+=w}const c=o[l[l.length-1]];return this.resultBuffer.unmap(),this.lastValue=c,this.frames=l,c}catch(e){return nn("Error resolving queries:",e),this.resultBuffer.mapState==="mapped"&&this.resultBuffer.unmap(),this.lastValue}}async dispose(){if(!this.isDisposed){if(this.isDisposed=!0,this.pendingResolve)try{await this.pendingResolve}catch(e){nn("Error waiting for pending resolve:",e)}if(this.resultBuffer&&this.resultBuffer.mapState==="mapped")try{this.resultBuffer.unmap()}catch(e){nn("Error unmapping buffer:",e)}this.querySet&&(this.querySet.destroy(),this.querySet=null),this.resolveBuffer&&(this.resolveBuffer.destroy(),this.resolveBuffer=null),this.resultBuffer&&(this.resultBuffer.destroy(),this.resultBuffer=null),this.queryOffsets.clear(),this.pendingResolve=null}}}const oh={r:0,g:0,b:0,a:1};class Axt extends w4e{constructor(e={}){super(e),this.isWebGPUBackend=!0,this.parameters.alpha=e.alpha===void 0?!0:e.alpha,this.parameters.requiredLimits=e.requiredLimits===void 0?{}:e.requiredLimits,this.compatibilityMode=null,this.device=null,this.defaultRenderPassdescriptor=null,this.utils=new oxt(this),this.attributeUtils=new uxt(this),this.bindingUtils=new dxt(this),this.capabilities=new hxt
4601(this),this.pipelineUtils=new pxt(this),this.textureUtils=new Xgt(this),this.occludedResolveCache=new Map;const n=typeof navigator>"u"?!0:/Android/.test(navigator.userAgent)===!1;this._compatibility={[Vy.TEXTURE_COMPARE]:n}}async init(e){await super.init(e);const n=this.parameters;let r;if(n.device===void 0){const i={powerPreference:n.powerPreference,featureLevel:"compatibility"},a=typeof navigator<"u"?await navigator.gpu.requestAdapter(i):null;if(a===null)throw new Error("WebGPUBackend: Unable to create WebGPU adapter.");const s=Object.values(mD),o=[];for(const c of s)a.features.has(c)&&o.push(c);const l={requiredFeatures:o,requiredLimits:n.requiredLimits};r=await a.requestDevice(l)}else r=n.device;this.compatibilityMode=!r.features.has("core-features-and-limits"),this.compatibilityMode&&(e._samples=0),r.lost.then(i=>{if(i.reason==="destroyed")return;const a={api:"WebGPU",message:i.message||"Unknown reason",reason:i.reason||null,originalEvent:i};e.onDeviceLost(a)}),this.device=r,this.trackTimestamp=this.trackTimestamp&&this.hasFeature(mD.TimestampQuery),this.updateSize()}get context(){const e=this.renderer.getCanvasTarget(),n=this.get(e);let r=n.context;if(r===void 0){const i=this.parameters;e.isDefaultCanvasTarget===!0&&i.context!==void 0?r=i.context:r=e.domElement.getContext("webgpu"),"setAttribute"in e.domElement&&e.domElement.setAttribute("data-engine",`three.js r${Iy} webgpu`);const a=i.alpha?"premultiplied":"opaque",s=i.outputType===is?"extended":"standard";r.configure({device:this.device,format:this.utils.getPreferredCanvasFormat(),usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC,alphaMode:a,toneMapping:{mode:s}}),n.context=r}return r}get coordinateSystem(){return _d}async getArrayBufferAsync(e,n=null,r=0,i=-1){return await this.attributeUtils.getArrayBufferAsync(e,n,r,i)}getContext(){return this.context}_getDefaultRenderPassDescriptor(){const e=this.renderer,n=e.getCanvasTarget(),r=this.get(n),i=e.currentSamples;let a=r.descriptor;if(a===void 0||r.samples!==i){a={colorAttachments:[{view:null}]},(e.depth===!0||e.stencil===!0)&&(a.depthStencilAttachment={view:this.textureUtils.getDepthBuffer(e.depth,e.stencil).createView()});const o=a.colorAttachments[0];i>0?o.view=this.textureUtils.getColorBuffer().createView():o.resolveTarget=void 0,r.descriptor=a,r.samples=i}const s=a.colorAttachments[0];return i>0?s.resolveTarget=this.context.getCurrentTexture().createView():s.view=this.context.getCurrentTexture().createView(),a}_isRenderCameraDepthArray(e){return e.depthTexture&&e.depthTexture.image.depth>1&&e.camera.isArrayCamera}_getRenderPassDescriptor(e,n={}){const r=e.renderTarget,i=this.get(r);let a=i.descriptors;(a===void 0||i.width!==r.width||i.height!==r.height||i.samples!==r.samples)&&(a={},i.descriptors=a);const s=e.getCacheKey();let o=a[s];if(o===void 0){const c=e.textures,u=[];let f;const h=this._isRenderCameraDepthArray(e);for(let p=0;p<c.length;p++){const A=this.get(c[p]),g={label:`colorAttachment_${p}`,baseMipLevel:e.activeMipmapLevel,mipLevelCount:1,baseArrayLayer:e.activeCubeFace,arrayLayerCount:1,dimension:Ic.TwoD};if(r.isRenderTarget3D)f=e.activeCubeFace,g.baseArrayLayer=0,g.dimension=Ic.ThreeD,g.depthOrArrayLayers=c[p].image.depth;else if(r.isRenderTarget&&c[p].image.depth>1)if(h===!0){const w=e.camera.cameras;for(let T=0;T<w.length;T++){const C={...g,baseArrayLayer:T,arrayLayerCount:1,dimension:Ic.TwoD},M=A.texture.createView(C);u.push({view:M,resolveTarget:void 0,depthSlice:void 0})}}else g.dimension=Ic.TwoDArray,g.depthOrArrayLayers=c[p].image.depth;if(h!==!0){const w=A.texture.createView(g);let T,C;A.msaaTexture!==void 0?(T=A.msaaTexture.createView(),C=w):(T=w,C=void 0),u.push({view:T,resolveTarget:C,depthSlice:f})}}if(o={textureViews:u},e.depth){const p=this.get(e.depthTexture),A={};(e.depthTexture.isArrayTexture||e.depthTexture.isCubeTexture)&&(A.dimension=Ic.TwoD,A.arrayLayerCount=1,A.baseArrayLayer=e.activeCubeFace),o.depthStencilView=p.texture.createView(A)}a[s]=o,i.width=r.width,i.height=r.height,i.samples=r.samples,i.activeMipmapLevel=e.activeMipmapLevel,i.activeCubeFace=e.activeCubeFace}const l={colorAttachments:[]};for(let c=0;c<o.textureViews.length;c++){const u=o.textureViews[c];let f={r:0,g:0,b:0,a:1};c===0&&n.clearValue&&(f=n.clearValue),l.colorAttachments.push({view:u.view,depthSlice:u.depthSlice,resolveTarget:u.resolveTarget,loadOp:n.loadOp||Aa.Load,storeOp:n.storeOp||gu.Store,clearValue:f})}return o.depthStencilView&&(l.depthStencilAttachment={view:o.depthStencilView}),l}beginRender(e){const n=this.get(e),r=this.device,i=e.occlusionQueryCount;let a;i>0&&(n.currentOcclusionQuerySet&&n.currentOcclusionQuerySet.destroy(),n.currentOcclusionQueryBuffer&&n.currentOcclusionQueryBuffer.destroy(),n.currentOcclusionQuerySet=n.occlusionQuerySet,n.currentOcclusionQueryBuffer=n.occlusionQueryBuffer,n.currentOcclusionQueryObjects=n.occlusionQueryObjects,a=r.createQuerySet({type:"occlusion",count:i,label:`occlusionQuerySet_${e.id}`}),n.occlusionQuerySet=a,n.occlusionQueryIndex=0,n.occlusionQueryObjects=new Array(i),n.lastOcclusionObject=null);let s;e.textures===null?s=this._getDefaultRenderPassDescriptor():s=this._getRenderPassDescriptor(e,{loadOp:Aa.Load}),this.initTimestampQuery(Y1.RENDER,this.getTimestampUID(e),s),s.occlusionQuerySet=a;const o=s.depthStencilAttachment;if(e.textures!==null){const c=s.colorAttachments;for(let u=0;u<c.length;u++){const f=c[u];e.clearColor?(u===0?f.clearValue=e.clearColorValue:(oh.r=0,oh.g=0,oh.b=0,oh.a=1,f.clearValue=oh),f.loadOp=Aa.Clear):f.loadOp=Aa.Load,f.storeOp=gu.Store}}else{const c=s.colorAttachments[0];e.clearColor?(c.clearValue=e.clearColorValue,c.loadOp=Aa.Clear):c.loadOp=Aa.Load,c.storeOp=gu.Store}e.depth&&(e.clearDepth?(o.depthClearValue=e.clearDepthValue,o.depthLoadOp=Aa.Clear):o.depthLoadOp=Aa.Load,o.depthStoreOp=gu.Store),e.stencil&&(e.clearStencil?(o.stencilClearValue=e.clearStencilValue,o.stencilLoadOp=Aa.Clear):o.stencilLoadOp=Aa.Load,o.stencilStoreOp=gu.Store);const l=r.createCommandEncoder({label:"renderContext_"+e.id});if(this._isRenderCameraDepthArray(e)===!0){const c=e.camera.cameras;!n.layerDescriptors||n.layerDescriptors.length!==c.length?this._createDepthLayerDescriptors(e,n,s,c):this._updateDepthLayerDescriptors(e,n,c),n.bundleEncoders=[],n.bundleSets=[];for(let u=0;u<c.length;u++){const f=this.pipelineUtils.createBundleEncoder(e,"renderBundleArrayCamera_"+u),h={attributes:{},bindingGroups:[],pipeline:null,index:null};n.bundleEncoders.push(f),n.bundleSets.push(h)}n.currentPass=null}else{const c=l.beginRenderPass(s);n.currentPass=c,e.viewport&&this.updateViewport(e),e.scissor&&this.updateScissor(e)}n.descriptor=s,n.encoder=l,n.currentSets={attributes:{},bindingGroups:[],pipeline:null,index:null},n.renderBundles=[]}_createDepthLayerDescriptors(e,n,r,i){const a=r.depthStencilAttachment;n.layerDescriptors=[];const s=this.get(e.depthTexture);s.viewCache||(s.viewCache=[]);for(let o=0;o<i.length;o++){const l={...r,colorAttachments:[{...r.colorAttachments[0],view:r.colorAttachments[o].view}]};if(r.depthStencilAttachment){const c=o;s.viewCache[c]||(s.viewCache[c]=s.texture.createView({dimension:Ic.TwoD,baseArrayLayer:o,arrayLayerCount:1})),l.depthStencilAttachment={view:s.viewCache[c],depthLoadOp:a.depthLoadOp||Aa.Clear,depthStoreOp:a.depthStoreOp||gu.Store,depthClearValue:a.depthClearValue||1},e.stencil&&(l.depthStencilAttachment.stencilLoadOp=a.stencilLoadOp,l.depthStencilAttachment.stencilStoreOp=a.stencilStoreOp,l.depthStencilAttachment.stencilClearValue=a.stencilClearValue)}else l.depthStencilAttachment={...a};n.layerDescriptors.push(l)}}_updateDepthLayerDescriptors(e,n,r){for(let i=0;i<r.length;i++){const a=n.layerDescriptors[i];if(a.depthStencilAttachment){const s=a.depthStencilAttachment;e.depth&&(e.clearDepth?(s.depthClearValue=e.clearDepthValue,s.depthLoadOp=Aa.Clear):s.depthLoadOp=Aa.Load),e.stencil&&(e.clearStencil?(s.stencilClearValue=e.clearStencilValue,s.stencilLoadOp=Aa.Clear):s.stencilLoadOp=Aa.Load)}}}finishRender(e){const n=this.get(e),r=e.occlusionQueryCount;n.renderBundles.length>0&&n.currentPass.executeBundles(n.renderBundles),r>n.occlusionQueryIndex&&n.currentPass.endOcclusionQuery();const i=n.encoder;if(this._isRenderCameraDepthArray(e)===!0){const a=[];for(let s=0;s<n.bundleEncoders.length;s++){const o=n.bundleEncoders[s];a.push(o.finish())}for(let s=0;s<n.layerDescriptors.length;s++)if(s<a.length){const o=n.layerDescriptors[s],l=i.beginRenderPass(o);if(e.viewport){const{x:c,y:u,width:f,height:h,minDepth:p,maxDepth:A}=e.viewportValue;l.setViewport(c,u,f,h,p,A)}if(e.scissor){const{x:c,y:u,width:f,height:h}=e.scissorValue;
4601l.setScissorRect(c,u,f,h)}l.executeBundles([a[s]]),l.end()}}else n.currentPass&&n.currentPass.end();if(r>0){const a=r*8;let s=this.occludedResolveCache.get(a);s===void 0&&(s=this.device.createBuffer({size:a,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),this.occludedResolveCache.set(a,s));const o=this.device.createBuffer({size:a,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ});n.encoder.resolveQuerySet(n.occlusionQuerySet,0,r,s,0),n.encoder.copyBufferToBuffer(s,0,o,0,a),n.occlusionQueryBuffer=o,this.resolveOccludedAsync(e)}if(this.device.queue.submit([n.encoder.finish()]),e.textures!==null){const a=e.textures;for(let s=0;s<a.length;s++){const o=a[s];o.generateMipmaps===!0&&this.textureUtils.generateMipmaps(o)}}}isOccluded(e,n){const r=this.get(e);return r.occluded&&r.occluded.has(n)}async resolveOccludedAsync(e){const n=this.get(e),{currentOcclusionQueryBuffer:r,currentOcclusionQueryObjects:i}=n;if(r&&i){const a=new WeakSet;n.currentOcclusionQueryObjects=null,n.currentOcclusionQueryBuffer=null,await r.mapAsync(GPUMapMode.READ);const s=r.getMappedRange(),o=new BigUint64Array(s);for(let l=0;l<i.length;l++)o[l]===BigInt(0)&&a.add(i[l]);r.destroy(),n.occluded=a}}updateViewport(e){const{currentPass:n}=this.get(e),{x:r,y:i,width:a,height:s,minDepth:o,maxDepth:l}=e.viewportValue;n.setViewport(r,i,a,s,o,l)}updateScissor(e){const{currentPass:n}=this.get(e),{x:r,y:i,width:a,height:s}=e.scissorValue;n.setScissorRect(r,i,a,s)}getClearColor(){const e=super.getClearColor();return this.renderer.alpha===!0&&(e.r*=e.a,e.g*=e.a,e.b*=e.a),e}clear(e,n,r,i=null){const a=this.device,s=this.renderer;let o=[],l,c,u;if(e){const p=this.getClearColor();oh.r=p.r,oh.g=p.g,oh.b=p.b,oh.a=p.a}if(i===null){c=s.depth,u=s.stencil;const p=this._getDefaultRenderPassDescriptor();if(e){o=p.colorAttachments;const A=o[0];A.clearValue=oh,A.loadOp=Aa.Clear,A.storeOp=gu.Store}(c||u)&&(l=p.depthStencilAttachment)}else{c=i.depth,u=i.stencil;const p={loadOp:e?Aa.Clear:Aa.Load,clearValue:e?oh:void 0};c&&(p.depthLoadOp=n?Aa.Clear:Aa.Load,p.depthClearValue=n?s.getClearDepth():void 0,p.depthStoreOp=gu.Store),u&&(p.stencilLoadOp=r?Aa.Clear:Aa.Load,p.stencilClearValue=r?s.getClearStencil():void 0,p.stencilStoreOp=gu.Store);const A=this._getRenderPassDescriptor(i,p);o=A.colorAttachments,l=A.depthStencilAttachment}c&&l&&(n?(l.depthLoadOp=Aa.Clear,l.depthClearValue=s.getClearDepth(),l.depthStoreOp=gu.Store):(l.depthLoadOp=Aa.Load,l.depthStoreOp=gu.Store)),u&&l&&(r?(l.stencilLoadOp=Aa.Clear,l.stencilClearValue=s.getClearStencil(),l.stencilStoreOp=gu.Store):(l.stencilLoadOp=Aa.Load,l.stencilStoreOp=gu.Store));const f=a.createCommandEncoder({label:"clear"});f.beginRenderPass({colorAttachments:o,depthStencilAttachment:l}).end(),a.queue.submit([f.finish()])}beginCompute(e){const n=this.get(e),r={label:"computeGroup_"+e.id};this.initTimestampQuery(Y1.COMPUTE,this.getTimestampUID(e),r),n.cmdEncoderGPU=this.device.createCommandEncoder({label:"computeGroup_"+e.id}),n.passEncoderGPU=n.cmdEncoderGPU.beginComputePass(r)}compute(e,n,r,i,a=null){const s=this.get(n),{passEncoderGPU:o}=this.get(e),l=this.get(i).pipeline;this.pipelineUtils.setPipeline(o,l);for(let c=0,u=r.length;c<u;c++){const f=r[c],h=this.get(f);o.setBindGroup(c,h.group)}if(a===null&&(a=n.dispatchSize||n.count),a&&a.isIndirectStorageBufferAttribute){const c=this.get(a).buffer;o.dispatchWorkgroupsIndirect(c,0);return}if(typeof a=="number"){const c=a;if(s.dispatchSize===void 0||s.count!==c){s.dispatchSize=[0,1,1],s.count=c;const u=n.workgroupSize;let f=u[0];for(let A=1;A<u.length;A++)f*=u[A];const h=Math.ceil(c/f),p=this.device.limits.maxComputeWorkgroupsPerDimension;a=[h,1,1],h>p&&(a[0]=Math.min(h,p),a[1]=Math.ceil(h/p)),s.dispatchSize=a}a=s.dispatchSize}o.dispatchWorkgroups(a[0],a[1]||1,a[2]||1)}finishCompute(e){const n=this.get(e);n.passEncoderGPU.end(),this.device.queue.submit([n.cmdEncoderGPU.finish()])}_draw(e,n,r,i,a,s,o,l,c){const{object:u,material:f,context:h}=e,p=e.getIndex(),A=p!==null;this.pipelineUtils.setPipeline(l,i),c.pipeline=i;const g=c.bindingGroups;for(let w=0,T=a.length;w<T;w++){const C=a[w],M=this.get(C);g[w]!==C.id&&(l.setBindGroup(w,M.group),g[w]=C.id)}if(A===!0&&c.index!==p){const w=this.get(p).buffer,T=p.array instanceof Uint16Array?pD.Uint16:pD.Uint32;
4601l.setIndexBuffer(w,T),c.index=p}for(let w=0,T=s.length;w<T;w++){const C=s[w];if(c.attributes[w]!==C){const M=this.get(C).buffer;l.setVertexBuffer(w,M),c.attributes[w]=C}}if(h.stencil===!0&&f.stencilWrite===!0&&r.currentStencilRef!==f.stencilRef&&(l.setStencilReference(f.stencilRef),r.currentStencilRef=f.stencilRef),u.isBatchedMesh===!0){const w=u._multiDrawStarts,T=u._multiDrawCounts,C=u._multiDrawCount;let M=A===!0?p.array.BYTES_PER_ELEMENT:1;f.wireframe&&(M=u.geometry.attributes.position.count>65535?4:2);for(let D=0;D<C;D++)A===!0?l.drawIndexed(T[D],1,w[D]/M,0,D):l.draw(T[D],1,w[D],D),n.update(u,T[D],1)}else if(A===!0){const{vertexCount:w,instanceCount:T,firstVertex:C}=o,M=e.getIndirect();if(M!==null){const D=this.get(M).buffer,k=e.getIndirectOffset(),I=Array.isArray(k)?k:[k];for(let L=0;L<I.length;L++)l.drawIndexedIndirect(D,I[L])}else l.drawIndexed(w,T,C,0,0);n.update(u,w,T)}else{const{vertexCount:w,instanceCount:T,firstVertex:C}=o,M=e.getIndirect();if(M!==null){const D=this.get(M).buffer,k=e.getIndirectOffset(),I=Array.isArray(k)?k:[k];for(let L=0;L<I.length;L++)l.drawIndirect(D,I[L])}else l.draw(w,T,C,0);n.update(u,w,T)}}draw(e,n){const{object:r,context:i,pipeline:a}=e,s=this.get(i),o=this.get(a),l=o.pipeline;if(o.error===!0)return;const c=e.getDrawParameters();if(c===null)return;const u=e.getBindings(),f=e.getVertexBuffers();if(e.camera.isArrayCamera&&e.camera.cameras.length>0){const h=this.get(e.camera),p=e.camera.cameras,A=e.getBindingGroup("cameraIndex");if(h.indexesGPU===void 0||h.indexesGPU.length!==p.length){const w=this.get(A),T=[],C=new Uint32Array([0,0,0,0]);for(let M=0,D=p.length;M<D;M++){C[0]=M;const{layoutGPU:k}=w.layout,I=this.bindingUtils.createBindGroupIndex(C,k);T.push(I)}h.indexesGPU=T}const g=this.renderer.getPixelRatio();for(let w=0,T=p.length;w<T;w++){const C=p[w];if(r.layers.test(C.layers)){const M=C.viewport;let D=s.currentPass,k=s.currentSets;if(s.bundleEncoders){const I=s.bundleEncoders[w],L=s.bundleSets[w];D=I,k=L}if(M&&D.setViewport(Math.floor(M.x*g),Math.floor(M.y*g),Math.floor(M.width*g),Math.floor(M.height*g),i.viewportValue.minDepth,i.viewportValue.maxDepth),A&&h.indexesGPU){const I=u.indexOf(A);D.setBindGroup(I,h.indexesGPU[w]),k.bindingGroups[I]=A.id}this._draw(e,n,s,l,u,f,c,D,k)}}}else if(s.currentPass){if(s.occlusionQuerySet!==void 0){const h=s.lastOcclusionObject;h!==r&&(h!==null&&h.occlusionTest===!0&&(s.currentPass.endOcclusionQuery(),s.occlusionQueryIndex++),r.occlusionTest===!0&&(s.currentPass.beginOcclusionQuery(s.occlusionQueryIndex),s.occlusionQueryObjects[s.occlusionQueryIndex]=r),s.lastOcclusionObject=r)}this._draw(e,n,s,l,u,f,c,s.currentPass,s.currentSets)}}needsRenderUpdate(e){const n=this.get(e),{object:r,material:i}=e,a=this.utils,s=a.getSampleCountRenderContext(e.context),o=a.getCurrentColorSpace(e.context),l=a.getCurrentColorFormat(e.context),c=a.getCurrentDepthStencilFormat(e.context),u=a.getPrimitiveTopology(r,i);let f=!1;return(n.material!==i||n.materialVersion!==i.version||n.transparent!==i.transparent||n.blending!==i.blending||n.premultipliedAlpha!==i.premultipliedAlpha||n.blendSrc!==i.blendSrc||n.blendDst!==i.blendDst||n.blendEquation!==i.blendEquation||n.blendSrcAlpha!==i.blendSrcAlpha||n.blendDstAlpha!==i.blendDstAlpha||n.blendEquationAlpha!==i.blendEquationAlpha||n.colorWrite!==i.colorWrite||n.depthWrite!==i.depthWrite||n.depthTest!==i.depthTest||n.depthFunc!==i.depthFunc||n.stencilWrite!==i.stencilWrite||n.stencilFunc!==i.stencilFunc||n.stencilFail!==i.stencilFail||n.stencilZFail!==i.stencilZFail||n.stencilZPass!==i.stencilZPass||n.stencilFuncMask!==i.stencilFuncMask||n.stencilWriteMask!==i.stencilWriteMask||n.side!==i.side||n.alphaToCoverage!==i.alphaToCoverage||n.sampleCount!==s||n.colorSpace!==o||n.colorFormat!==l||n.depthStencilFormat!==c||n.primitiveTopology!==u||n.clippingContextCacheKey!==e.clippingContextCacheKey)&&(n.material=i,n.materialVersion=i.version,n.transparent=i.transparent,n.blending=i.blending,n.premultipliedAlpha=i.premultipliedAlpha,n.blendSrc=i.blendSrc,n.blendDst=i.blendDst,n.blendEquation=i.blendEquation,n.blendSrcAlpha=i.blendSrcAlpha,n.blendDstAlpha=i.blendDstAlpha,n.blendEquationAlpha=i.blendEquationAlpha,n.colorWrite=i.colorWrite,n.depthWrite=i.depthWrite,n.depthTest=i.depthTest,n.depthFunc=i.depthFunc,n.stencilWrite=i.stencilWrite,n.stencilFunc=i.stencilFunc,n.stencilFail=i.stencilFail,n.stencilZFail=i.stencilZFail,n.stencilZPass=i.stencilZPass,n.stencilFuncMask=i.stencilFuncMask,n.stencilWriteMask=i.stencilWriteMask,n.side=i.side,n.alph
4601aToCoverage=i.alphaToCoverage,n.sampleCount=s,n.colorSpace=o,n.colorFormat=l,n.depthStencilFormat=c,n.primitiveTopology=u,n.clippingContextCacheKey=e.clippingContextCacheKey,f=!0),f}getRenderCacheKey(e){const{object:n,material:r}=e,i=this.utils,a=e.context,s=n.isMesh&&n.matrixWorld.determinant()<0;return[r.transparent,r.blending,r.premultipliedAlpha,r.blendSrc,r.blendDst,r.blendEquation,r.blendSrcAlpha,r.blendDstAlpha,r.blendEquationAlpha,r.colorWrite,r.depthWrite,r.depthTest,r.depthFunc,r.stencilWrite,r.stencilFunc,r.stencilFail,r.stencilZFail,r.stencilZPass,r.stencilFuncMask,r.stencilWriteMask,r.side,s,i.getSampleCountRenderContext(a),i.getCurrentColorSpace(a),i.getCurrentColorFormat(a),i.getCurrentDepthStencilFormat(a),i.getPrimitiveTopology(n,r),e.getGeometryCacheKey(),e.clippingContextCacheKey].join()}updateSampler(e){return this.textureUtils.updateSampler(e)}createDefaultTexture(e){return this.textureUtils.createDefaultTexture(e)}createTexture(e,n){this.textureUtils.createTexture(e,n)}updateTexture(e,n){this.textureUtils.updateTexture(e,n)}generateMipmaps(e){this.textureUtils.generateMipmaps(e)}destroyTexture(e,n=!1){this.textureUtils.destroyTexture(e,n)}async copyTextureToBuffer(e,n,r,i,a,s){return this.textureUtils.copyTextureToBuffer(e,n,r,i,a,s)}initTimestampQuery(e,n,r){if(!this.trackTimestamp)return;this.timestampQueryPool[e]||(this.timestampQueryPool[e]=new mxt(this.device,e,2048));const i=this.timestampQueryPool[e],a=i.allocateQueriesForContext(n);r.timestampWrites={querySet:i.querySet,beginningOfPassWriteIndex:a,endOfPassWriteIndex:a+1}}createNodeBuilder(e,n){return new sxt(e,n)}createProgram(e){const n=this.get(e);n.module={module:this.device.createShaderModule({code:e.code,label:e.stage+(e.name!==""?`_${e.name}`:"")}),entryPoint:"main"}}destroyProgram(e){this.delete(e)}createRenderPipeline(e,n){this.pipelineUtils.createRenderPipeline(e,n)}createComputePipeline(e,n){this.pipelineUtils.createComputePipeline(e,n)}beginBundle(e){const n=this.get(e);n._currentPass=n.currentPass,n._currentSets=n.currentSets,n.currentSets={attributes:{},bindingGroups:[],pipeline:null,index:null},n.currentPass=this.pipelineUtils.createBundleEncoder(e)}finishBundle(e,n){const r=this.get(e),a=r.currentPass.finish();this.get(n).bundleGPU=a,r.currentSets=r._currentSets,r.currentPass=r._currentPass}addBundle(e,n){this.get(e).renderBundles.push(this.get(n).bundleGPU)}createBindings(e,n,r,i){this.bindingUtils.createBindings(e,n,r,i)}updateBindings(e,n,r,i){this.bindingUtils.createBindings(e,n,r,i)}updateBinding(e){this.bindingUtils.updateBinding(e)}deleteBindGroupData(e){this.bindingUtils.deleteBindGroupData(e)}createIndexAttribute(e){let n=GPUBufferUsage.INDEX|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST;(e.isStorageBufferAttribute||e.isStorageInstancedBufferAttribute)&&(n|=GPUBufferUsage.STORAGE),this.attributeUtils.createAttribute(e,n)}createAttribute(e){this.attributeUtils.createAttribute(e,GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST)}createStorageAttribute(e){this.attributeUtils.createAttribute(e,GPUBufferUsage.STORAGE|GPUBufferUsage.VERTEX|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST)}createIndirectStorageAttribute(e){this.attributeUtils.createAttribute(e,GPUBufferUsage.STORAGE|GPUBufferUsage.INDIRECT|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST)}updateAttribute(e){this.attributeUtils.updateAttribute(e)}destroyAttribute(e){this.attributeUtils.destroyAttribute(e)}updateSize(){this.delete(this.renderer.getCanvasTarget())}hasFeature(e){return Use[e]!==void 0&&(e=Use[e]),this.device.features.has(e)}copyTextureToTexture(e,n,r=null,i=null,a=0,s=0){let o=0,l=0,c=0,u=0,f=0,h=0,p=e.image.width,A=e.image.height,g=1;r!==null&&(r.isBox3===!0?(u=r.min.x,f=r.min.y,h=r.min.z,p=r.max.x-r.min.x,A=r.max.y-r.min.y,g=r.max.z-r.min.z):(u=r.min.x,f=r.min.y,p=r.max.x-r.min.x,A=r.max.y-r.min.y,g=1)),i!==null&&(o=i.x,l=i.y,c=i.z||0);const w=this.device.createCommandEncoder({label:"copyTextureToTexture_"+e.id+"_"+n.id}),T=this.get(e).texture,C=this.get(n).texture;w.copyTextureToTexture({texture:T,mipLevel:a,origin:{x:u,y:f,z:h}},{texture:C,mipLevel:s,origin:{x:o,y:l,z:c}},[p,A,g]),this.device.queue.submit([w.finish()]),s===0&&n.generateMipmaps&&this.textureUtils.generateMipmaps(n)}copyFramebufferToTexture(e,n,r){const i=this.get(n);let a=null;n.renderTarget?e.isDepthTexture?a=this.get(n.depthTexture).texture:a=this.get(n.textures[0]).texture:e.isDepthTexture?a=this.textureUtils.getDepthBuffer(n.depth,n.stencil):a=this.context.getCurrentTexture();const s=this.get(e).texture;if(a.format!==s.format){nn("WebGPUBackend: copyFramebufferToTexture: Source and destination formats do not match.",a.format,s.format);return}let o;if(i.currentPass?(i.currentPass.end(),o=i.encoder):o=this.device.createCommandEncoder({label:"copyFramebufferToTexture_"+e.id}),o.copyTextureToTexture({texture:a,origin:[r.x,r.y,0]},{texture:s},[r.z,r.w]),e.generateMipmaps&&this.textureUtils.generateMipmaps(e,o),i.currentPass){const{descriptor:l}=i;for(let c=0;c<l.colorAttachments.length;c++)l.colorAttachments[c].loadOp=Aa.Load;n.depth&&(l.depthStencilAttachment.depthLoadOp=Aa.Load),n.stencil&&(l.depthStencilAttachment.stencilLoadOp=Aa.Load),i.currentPass=o.beginRenderPass(l),i.currentSets={attributes:{},bindingGroups:[],pipeline:null,index:null},n.viewport&&this.updateViewport(n),n.scissor&&this.updateScissor(n)}else this.device.queue.submit([o.finish()])}hasCompatibility(e){return this._compatibility[e]!==void 0?this._compatibility[e]:super.hasCompatibility(e)}dispose(){if(this.bindingUtils.dispose(),this.textureUtils.dispose(),this.occludedResolveCache){for(const e of this.occludedResolveCache.values())e.destroy();this.occludedResolveCache.clear()}if(this.timestampQueryPool)for(const e of Object.values(this.timestampQueryPool))e!==null&&e.dispose();this.parameters.device===void 0&&this.device!==null&&this.device.destroy()}}class gxt extends Gq{constructor(e,n,r,i,a,s){super(e,n,r,i,a,s),this.iesMap=null}copy(e,n){return super.copy(e,n),this.iesMap=e.iesMap,this}}class xxt extends Gq{constructor(e,n,r,i,a,s){super(e,n,r,i,a,s),this.aspect=null}copy(e,n){return super.copy(e,n),this.aspect=e.aspect,this}}class vxt extends m4e{constructor(){super(),this.addMaterial(Jft,"MeshPhongMaterial"),this.addMaterial(uye,"MeshStandardMaterial"),this.addMaterial(Gdt,"MeshPhysicalMaterial"),this.addMaterial(Wdt,"MeshToonMaterial"),this.addMaterial(qft,"MeshBasicMaterial"),this.addMaterial(Qft,"MeshLambertMaterial"),this.addMaterial(jft,"MeshNormalMaterial"),this.addMaterial(Ydt,"MeshMatcapMaterial"),this.addMaterial(Ift,"LineBasicMaterial"),this.addMaterial(Uft,"LineDashedMaterial"),this.addMaterial(eht,"PointsMaterial"),this.addMaterial(dye,"SpriteMaterial"),this.addMaterial(iht,"ShadowMaterial"),this.addLight(Fmt,kQe),this.addLight(ZAt,l2e),this.addLight(egt,OQe),this.addLight(VZ,Gq),this.addLight(WAt,c2e),this.addLight(YAt,RQe),this.addLight(QAt,IQe),this.addLight(XAt,gxt),this.addLight(JAt,xxt),this.addToneMapping(Pye,fq),this.addToneMapping(kye,dq),this.addToneMapping(Lye,hq),this.addToneMapping(Oye,pq),this.addToneMapping(Fye,mq),this.addToneMapping(Iye,Aq)}}class M4e extends _gt{constructor(e={}){let n;e.forceWebGL?n=kse:(n=Axt,e.getFallback=()=>(Kt("WebGPURenderer: WebGPU is not available, running under WebGL2 backend."),new kse(e)));const r=new n(e);super(r,e),this.library=new vxt,this.isWebGPURenderer=!0,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}}ie.BRDF_GGX;ie.BRDF_Lambert;ie.BasicPointShadowFilter;ie.BasicShadowFilter;ie.Break;ie.Const;ie.Continue;ie.DFGLUT;ie.D_GGX;ie.Discard;ie.EPSILON;ie.F_Schlick;const yxt=ie.Fn;ie.INFINITY;const _xt=ie.If,bxt=ie.Loop;ie.NodeAccess;ie.NodeShaderStage;ie.NodeType;ie.NodeUpdateType;ie.PCFShadowFilter;ie.PCFSoftShadowFilter;ie.PI;ie.PI2;ie.TWO_PI;ie.HALF_PI;ie.PointShadowFilter;ie.Return;ie.Schlick_to_F0;ie.ShaderNode;ie.Stack;
4601ie.Switch;ie.TBNViewMatrix;ie.VSMShadowFilter;ie.V_GGX_SmithCorrelated;ie.Var;ie.VarIntent;ie.abs;ie.acesFilmicToneMapping;ie.acos;ie.acosh;ie.add;ie.addMethodChaining;ie.addNodeElement;ie.agxToneMapping;ie.all;ie.alphaT;ie.and;ie.anisotropy;ie.anisotropyB;ie.anisotropyT;ie.any;ie.append;ie.array;ie.arrayBuffer;const wxt=ie.asin;ie.asinh;ie.assign;ie.atan;ie.atanh;ie.atomicAdd;ie.atomicAnd;ie.atomicFunc;ie.atomicLoad;ie.atomicMax;ie.atomicMin;ie.atomicOr;ie.atomicStore;ie.atomicSub;ie.atomicXor;ie.attenuationColor;ie.attenuationDistance;ie.attribute;ie.attributeArray;ie.backgroundBlurriness;ie.backgroundIntensity;ie.backgroundRotation;ie.batch;ie.bentNormalView;ie.billboarding;ie.bitAnd;ie.bitNot;ie.bitOr;ie.bitXor;ie.bitangentGeometry;ie.bitangentLocal;ie.bitangentView;ie.bitangentWorld;ie.bitcast;ie.blendBurn;ie.blendColor;ie.blendDodge;ie.blendOverlay;ie.blendScreen;ie.blur;ie.bool;ie.buffer;ie.bufferAttribute;ie.bumpMap;ie.builtin;ie.builtinAOContext;ie.builtinShadowContext;ie.bvec2;ie.bvec3;ie.bvec4;ie.bypass;ie.cache;ie.call;ie.cameraFar;ie.cameraIndex;ie.cameraNear;ie.cameraNormalMatrix;ie.cameraPosition;ie.cameraProjectionMatrix;ie.cameraProjectionMatrixInverse;ie.cameraViewMatrix;ie.cameraViewport;ie.cameraWorldMatrix;ie.cbrt;ie.cdl;ie.ceil;ie.checker;ie.cineonToneMapping;ie.clamp;ie.clearcoat;ie.clearcoatNormalView;ie.clearcoatRoughness;ie.clipSpace;ie.code;ie.color;ie.colorSpaceToWorking;ie.colorToDirection;ie.compute;ie.computeKernel;ie.computeSkinning;ie.context;ie.convert;ie.convertColorSpace;ie.convertToTexture;ie.countLeadingZeros;ie.countOneBits;ie.countTrailingZeros;const Sxt=ie.cos;ie.cosh;ie.cross;ie.cubeTexture;ie.cubeTextureBase;ie.dFdx;ie.dFdy;ie.dashSize;ie.debug;ie.decrement;ie.decrementBefore;ie.defaultBuildStages;ie.defaultShaderStages;ie.defined;ie.degrees;ie.deltaTime;ie.densityFog;ie.densityFogFactor;ie.depth;ie.depthPass;ie.determinant;ie.difference;ie.diffuseColor;ie.directPointLight;ie.directionToColor;ie.directionToFaceDirection;ie.dispersion;ie.distance;ie.div;ie.dot;ie.drawIndex;ie.dynamicBufferAttribute;ie.element;ie.emissive;ie.equal;ie.equirectUV;const Txt=ie.exp;ie.exp2;ie.exponentialHeightFogFactor;ie.expression;ie.faceDirection;ie.faceForward;ie.faceforward;const Ext=ie.float;ie.floatBitsToInt;ie.floatBitsToUint;ie.floor;ie.fog;ie.fract;ie.frameGroup;ie.frameId;ie.frontFacing;ie.fwidth;ie.gain;ie.gapSize;ie.getConstNodeType;ie.getCurrentStack;ie.getDirection;ie.getDistanceAttenuation;ie.getGeometryRoughness;ie.getNormalFromDepth;ie.interleavedGradientNoise;ie.vogelDiskSample;ie.getParallaxCorrectNormal;ie.getRoughness;ie.getScreenPosition;ie.getShIrradianceAt;ie.getShadowMaterial;ie.getShadowRenderObjectFunction;ie.getTextureIndex;ie.getViewPosition;ie.globalId;ie.glsl;ie.glslFn;ie.grayscale;ie.greaterThan;ie.greaterThanEqual;ie.hash;ie.highpModelNormalViewMatrix;ie.highpModelViewMatrix;ie.hue;ie.increment;ie.incrementBefore;ie.instance;const Mxt=ie.instanceIndex;ie.instancedArray;ie.instancedBufferAttribute;ie.instancedDynamicBufferAttribute;ie.instancedMesh;ie.int;ie.intBitsToFloat;ie.inverse;ie.inverseSqrt;ie.inversesqrt;ie.invocationLocalIndex;ie.invocationSubgroupIndex;ie.ior;ie.iridescence;ie.iridescenceIOR;ie.iridescenceThickness;ie.ivec2;ie.ivec3;ie.ivec4;ie.js;ie.label;ie.length;ie.lengthSq;ie.lessThan;ie.lessThanEqual;ie.lightPosition;ie.lightProjectionUV;ie.lightShadowMatrix;ie.lightTargetDirection;ie.lightTargetPosition;ie.lightViewPosition;ie.lightingContext;ie.lights;ie.linearDepth;ie.linearToneMapping;ie.localId;ie.log;ie.log2;ie.logarithmicDepthToViewZ;ie.luminance;ie.mat2;ie.mat3;ie.mat4;ie.matcapUV;ie.materialAO;ie.materialAlphaTest;ie.materialAnisotropy;ie.materialAnisotropyVector;ie.materialAttenuationColor;ie.materialAttenuationDistance;ie.materialClearcoat;ie.materialClearcoatNormal;ie.materialClearcoatRoughness;ie.materialColor;ie.materialDispersion;ie.materialEmissive;ie.materialEnvIntensity;ie.materialEnvRotation;ie.materialIOR;ie.materialIridescence;ie.materialIridescenceIOR;ie.materialIridescenceThickness;ie.materialLightMap;ie.materialLineDashOffset;ie.materialLineDashSize;ie.materialLineGapSize;ie.materialLineScale;ie.materialLineWidth;ie.materialMetalness;ie.materialNormal;ie.materialOpacity;ie.materialPointSize;ie.materialReference;ie.materialReflectivity;ie.materialRefractionRatio;ie.materialRotation;ie.materialRoughness;ie.materialSheen;ie.materialSheenRoughness;ie.materialShininess;ie.materialSpecular;ie.materialSpecularColor;ie.materialSpecularIntensity;ie.materialSpecularStrength;ie.materialThickness;ie.materialTransmission;ie.max;ie.maxMipLevel;ie.mediumpModelViewMatrix;ie.metalness;ie.min;ie.mix;ie.mixElement;ie.mod;ie.modInt;ie.modelDirection;ie.modelNormalMatrix;ie.modelPosition;ie.modelRadius;ie.modelScale;ie.modelViewMatrix;ie.modelViewPosition;ie.modelViewProjection;ie.modelWorldMatrix;ie.modelWorldMatrixInverse;ie.morphReference;ie.mrt;ie.mul;ie.mx_aastep;ie.mx_add;ie.mx_atan2;ie.mx_cell_noise_float;ie.mx_contrast;ie.mx_divide;ie.mx_fractal_noise_float;ie.mx_fractal_noise_vec2;ie.mx_fractal_noise_vec3;ie.mx_fractal_noise_vec4;ie.mx_frame;ie.mx_heighttonormal;ie.mx_hsvtorgb;ie.mx_ifequal;ie.mx_ifgreater;ie.mx_ifgreatereq;ie.mx_invert;ie.mx_modulo;ie.mx_multiply;ie.mx_noise_float;ie.mx_noise_vec3;ie.mx_noise_vec4;ie.mx_place2d;ie.mx_power;ie.mx_ramp4;ie.mx_ramplr;ie.mx_ramptb;ie.mx_rgbtohsv;ie.mx_rotate2d;ie.mx_rotate3d;ie.mx_safepower;ie.mx_separate;ie.mx_splitlr;ie.mx_splittb;ie.mx_srgb_texture_to_lin_rec709;ie.mx_subtract;
4601ie.mx_timer;ie.mx_transform_uv;ie.mx_unifiednoise2d;ie.mx_unifiednoise3d;ie.mx_worley_noise_float;ie.mx_worley_noise_vec2;ie.mx_worley_noise_vec3;const Cxt=ie.negate;ie.neutralToneMapping;ie.nodeArray;ie.nodeImmutable;ie.nodeObject;ie.nodeObjectIntent;ie.nodeObjects;ie.nodeProxy;ie.nodeProxyIntent;ie.normalFlat;ie.normalGeometry;ie.normalLocal;ie.normalMap;ie.normalView;ie.normalViewGeometry;ie.normalWorld;ie.normalWorldGeometry;ie.normalize;ie.not;ie.notEqual;ie.numWorkgroups;ie.objectDirection;ie.objectGroup;ie.objectPosition;ie.objectRadius;ie.objectScale;ie.objectViewPosition;ie.objectWorldMatrix;ie.OnBeforeObjectUpdate;ie.OnBeforeMaterialUpdate;ie.OnObjectUpdate;ie.OnMaterialUpdate;ie.oneMinus;ie.or;ie.orthographicDepthToViewZ;ie.oscSawtooth;ie.oscSine;ie.oscSquare;ie.oscTriangle;ie.output;ie.outputStruct;ie.overloadingFn;ie.packHalf2x16;ie.packSnorm2x16;ie.packUnorm2x16;ie.parabola;ie.parallaxDirection;ie.parallaxUV;ie.parameter;ie.pass;ie.passTexture;ie.pcurve;ie.perspectiveDepthToViewZ;ie.pmremTexture;ie.pointShadow;ie.pointUV;ie.pointWidth;ie.positionGeometry;ie.positionLocal;ie.positionPrevious;ie.positionView;ie.positionViewDirection;ie.positionWorld;ie.positionWorldDirection;ie.posterize;ie.pow;ie.pow2;ie.pow3;ie.pow4;ie.premultiplyAlpha;ie.property;ie.radians;ie.rand;ie.range;ie.rangeFog;ie.rangeFogFactor;ie.reciprocal;ie.reference;ie.referenceBuffer;ie.reflect;ie.reflectVector;ie.reflectView;ie.reflector;ie.refract;ie.refractVector;ie.refractView;ie.reinhardToneMapping;ie.remap;ie.remapClamp;ie.renderGroup;ie.renderOutput;ie.rendererReference;ie.replaceDefaultUV;ie.rotate;ie.rotateUV;ie.roughness;ie.round;ie.rtt;ie.sRGBTransferEOTF;ie.sRGBTransferOETF;ie.sample;ie.sampler;ie.samplerComparison;ie.saturate;ie.saturation;ie.screen;ie.screenCoordinate;ie.screenDPR;ie.screenSize;ie.screenUV;ie.select;ie.setCurrentStack;ie.setName;ie.shaderStages;ie.shadow;ie.shadowPositionWorld;ie.shapeCircle;ie.sharedUniformGroup;ie.sheen;ie.sheenRoughness;ie.shiftLeft;ie.shiftRight;ie.shininess;ie.sign;const Nxt=ie.sin;ie.sinh;ie.sinc;ie.skinning;ie.smoothstep;ie.smoothstepElement;ie.specularColor;ie.specularF90;ie.spherizeUV;ie.split;ie.spritesheetUV;const Rxt=ie.sqrt;ie.stack;ie.step;ie.stepElement;const Dxt=ie.storage;ie.storageBarrier;ie.storageTexture;ie.string;ie.struct;ie.sub;ie.subgroupAdd;ie.subgroupAll;ie.subgroupAnd;ie.subgroupAny;ie.subgroupBallot;ie.subgroupBroadcast;ie.subgroupBroadcastFirst;ie.subBuild;ie.subgroupElect;ie.subgroupExclusiveAdd;ie.subgroupExclusiveMul;ie.subgroupInclusiveAdd;ie.subgroupInclusiveMul;ie.subgroupIndex;ie.subgroupMax;ie.subgroupMin;ie.subgroupMul;ie.subgroupOr;ie.subgroupShuffle;ie.subgroupShuffleDown;ie.subgroupShuffleUp;ie.subgroupShuffleXor;ie.subgroupSize;ie.subgroupXor;ie.tan;ie.tanh;ie.tangentGeometry;ie.tangentLocal;ie.tangentView;ie.tangentWorld;ie.texture;ie.texture3D;ie.textureBarrier;ie.textureBicubic;ie.textureBicubicLevel;ie.textureCubeUV;ie.textureLoad;ie.textureSize;ie.textureLevel;ie.textureStore;ie.thickness;ie.time;ie.toneMapping;ie.toneMappingExposure;ie.toonOutlinePass;ie.transformDirection;ie.transformNormal;ie.transformNormalToView;ie.transformedClearcoatNormalView;ie.transformedNormalView;ie.transformedNormalWorld;ie.transmission;ie.transpose;ie.triNoise3D;ie.triplanarTexture;ie.triplanarTextures;ie.trunc;ie.uint;ie.uintBitsToFloat;const Pxt=ie.uniform;ie.uniformArray;ie.uniformCubeTexture;ie.uniformGroup;ie.uniformFlow;ie.uniformTexture;ie.unpackHalf2x16;ie.unpackSnorm2x16;ie.unpackUnorm2x16;ie.unpremultiplyAlpha;ie.userData;ie.uv;ie.uvec2;ie.uvec3;ie.uvec4;ie.varying;ie.varyingProperty;ie.vec2;ie.vec3;ie.vec4;ie.vectorComponents;ie.velocity;ie.vertexColor;ie.vertexIndex;ie.vertexStage;ie.vibrance;ie.viewZToLogarithmicDepth;ie.viewZToOrthographicDepth;ie.viewZToPerspectiveDepth;ie.viewZToReversedOrthographicDepth;ie.viewZToReversedPerspectiveDepth;ie.viewport;ie.viewportCoordinate;ie.viewportDepthTexture;ie.viewportLinearDepth;ie.viewportMipTexture;ie.viewportOpaqueMipTexture;ie.viewportResolution;ie.viewportSafeUV;ie.viewportSharedTexture;ie.viewportSize;ie.viewportTexture;ie.viewportUV;ie.wgsl;ie.wgslFn;ie.workgroupArray;ie.workgroupBarrier;
4601ie.workgroupId;ie.workingToColorSpace;ie.xor;const zse=new H2,TC=new Pe;class C4e extends BQe{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],n=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],r=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(r),this.setAttribute("position",new Ui(e,3)),this.setAttribute("uv",new Ui(n,2))}applyMatrix4(e){const n=this.attributes.instanceStart,r=this.attributes.instanceEnd;return n!==void 0&&(n.applyMatrix4(e),r.applyMatrix4(e),n.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const r=new mR(n,6,1);return this.setAttribute("instanceStart",new X1(r,3,0)),this.setAttribute("instanceEnd",new X1(r,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const r=new mR(n,6,1);return this.setAttribute("instanceColorStart",new X1(r,3,0)),this.setAttribute("instanceColorEnd",new X1(r,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new pQe(e.geometry)),this}fromLineSegments(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new H2);const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;e!==void 0&&n!==void 0&&(this.boundingBox.setFromBufferAttribute(e),zse.setFromBufferAttribute(n),this.boundingBox.union(zse))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ox),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(e!==void 0&&n!==void 0){const r=this.boundingSphere.center;this.boundingBox.getCenter(r);let i=0;for(let a=0,s=e.count;a<s;a++)TC.fromBufferAttribute(e,a),i=Math.max(i,r.distanceToSquared(TC)),TC.fromBufferAttribute(n,a),i=Math.max(i,r.distanceToSquared(TC));this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}Fn.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new tn(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};h0.line={uniforms:YP.merge([Fn.common,Fn.fog,Fn
vendor: 6,078 bytes, lines 4601-4882
4601.line]),vertexShader:` 4602 #include <common> 4603 #include <color_pars_vertex> 4604 #include <fog_pars_vertex> 4605 #include <logdepthbuf_pars_vertex> 4606 #include <clipping_planes_pars_vertex> 4607 4608 uniform float linewidth; 4609 uniform vec2 resolution; 4610 4611 attribute vec3 instanceStart; 4612 attribute vec3 instanceEnd; 4613 4614 attribute vec3 instanceColorStart; 4615 attribute vec3 instanceColorEnd; 4616 4617 #ifdef WORLD_UNITS 4618 4619 varying vec4 worldPos; 4620 varying vec3 worldStart; 4621 varying vec3 worldEnd; 4622 4623 #ifdef USE_DASH 4624 4625 varying vec2 vUv; 4626 4627 #endif 4628 4629 #else 4630 4631 varying vec2 vUv; 4632 4633 #endif 4634 4635 #ifdef USE_DASH 4636 4637 uniform float dashScale; 4638 attribute float instanceDistanceStart; 4639 attribute float instanceDistanceEnd; 4640 varying float vLineDistance; 4641 4642 #endif 4643 4644 void trimSegment( const in vec4 start, inout vec4 end ) { 4645 4646 // trim end segment so it terminates between the camera plane and the near plane 4647 4648 // conservative estimate of the near plane 4649 float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column 4650 float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column 4651 float nearEstimate = - 0.5 * b / a; 4652 4653 float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); 4654 4655 end.xyz = mix( start.xyz, end.xyz, alpha ); 4656 4657 } 4658 4659 void main() { 4660 4661 #ifdef USE_COLOR 4662 4663 vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; 4664 4665 #endif 4666 4667 #ifdef USE_DASH 4668 4669 vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; 4670 vUv = uv; 4671 4672 #endif 4673 4674 float aspect = resolution.x / resolution.y; 4675 4676 // camera space 4677 vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); 4678 vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); 4679 4680 #ifdef WORLD_UNITS 4681 4682 worldStart = start.xyz; 4683 worldEnd = end.xyz; 4684 4685 #else 4686 4687 vUv = uv; 4688 4689 #endif 4690 4691 // special case for perspective projection, and segments that terminate either in, or behind, the camera plane 4692 // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space 4693 // but we need to perform ndc-space calculations in the shader, so we must address this issue directly 4694 // perhaps there is a more elegant solution -- WestLangley 4695 4696 bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column 4697 4698 if ( perspective ) { 4699 4700 if ( start.z < 0.0 && end.z >= 0.0 ) { 4701 4702 trimSegment( start, end ); 4703 4704 } else if ( end.z < 0.0 && start.z >= 0.0 ) { 4705 4706 trimSegment( end, start ); 4707 4708 } 4709 4710 } 4711 4712 // clip space 4713 vec4 clipStart = projectionMatrix * start; 4714 vec4 clipEnd = projectionMatrix * end; 4715 4716 // ndc space 4717 vec3 ndcStart = clipStart.xyz / clipStart.w; 4718 vec3 ndcEnd = clipEnd.xyz / clipEnd.w; 4719 4720 // direction 4721 vec2 dir = ndcEnd.xy - ndcStart.xy; 4722 4723 // account for clip-space aspect ratio 4724 dir.x *= aspect; 4725 dir = normalize( dir ); 4726 4727 #ifdef WORLD_UNITS 4728 4729 vec3 worldDir = normalize( end.xyz - start.xyz ); 4730 vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) ); 4731 vec3 worldUp = normalize( cross( worldDir, tmpFwd ) ); 4732 vec3 worldFwd = cross( worldDir, worldUp ); 4733 worldPos = position.y < 0.5 ? start: end; 4734 4735 // height offset 4736 float hw = linewidth * 0.5; 4737 worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp; 4738 4739 // don't extend the line if we're rendering dashes because we 4740 // won't be rendering the endcaps 4741 #ifndef USE_DASH 4742 4743 // cap extension 4744 worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir; 4745 4746 // add width to the box 4747 worldPos.xyz += worldFwd * hw; 4748 4749 // endcaps 4750 if ( position.y > 1.0 || position.y < 0.0 ) { 4751 4752 worldPos.xyz -= worldFwd * 2.0 * hw; 4753 4754 } 4755 4756 #endif 4757 4758 // project the worldpos 4759 vec4 clip = projectionMatrix * worldPos; 4760 4761 // shift the depth of the projected points so the line 4762 // segments overlap neatly 4763 vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; 4764 clip.z = clipPose.z * clip.w; 4765 4766 #else 4767 4768 vec2 offset = vec2( dir.y, - dir.x ); 4769 // undo aspect ratio adjustment 4770 dir.x /= aspect; 4771 offset.x /= aspect; 4772 4773 // sign flip 4774 if ( position.x < 0.0 ) offset *= - 1.0; 4775 4776 // endcaps 4777 if ( position.y < 0.0 ) { 4778 4779 offset += - dir; 4780 4781 } else if ( position.y > 1.0 ) { 4782 4783 offset += dir; 4784 4785 } 4786 4787 // adjust for linewidth 4788 offset *= linewidth; 4789 4790 // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... 4791 offset /= resolution.y; 4792 4793 // select end 4794 vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; 4795 4796 // back to clip space 4797 offset *= clip.w; 4798 4799 clip.xy += offset; 4800 4801 #endif 4802 4803 gl_Position = clip; 4804 4805 vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation 4806 4807 #include <logdepthbuf_vertex> 4808 #include <clipping_planes_vertex> 4809 #include <fog_vertex> 4810 4811 } 4812 `,fragmentShader:` 4813 uniform vec3 diffuse; 4814 uniform float opacity; 4815 uniform float linewidth; 4816 4817 #ifdef USE_DASH 4818 4819 uniform float dashOffset; 4820 uniform float dashSize; 4821 uniform float gapSize; 4822 4823 #endif 4824 4825 varying float vLineDistance; 4826 4827 #ifdef WORLD_UNITS 4828 4829 varying vec4 worldPos; 4830 varying vec3 worldStart; 4831 varying vec3 worldEnd; 4832 4833 #ifdef USE_DASH 4834 4835 varying vec2 vUv; 4836 4837 #endif 4838 4839 #else 4840 4841 varying vec2 vUv; 4842 4843 #endif 4844 4845 #include <common> 4846 #include <color_pars_fragment> 4847 #include <fog_pars_fragment> 4848 #include <logdepthbuf_pars_fragment> 4849 #include <clipping_planes_pars_fragment> 4850 4851 vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { 4852 4853 float mua; 4854 float mub; 4855 4856 vec3 p13 = p1 - p3; 4857 vec3 p43 = p4 - p3; 4858 4859 vec3 p21 = p2 - p1; 4860 4861 float d1343 = dot( p13, p43 ); 4862 float d4321 = dot( p43, p21 ); 4863 float d1321 = dot( p13, p21 ); 4864 float d4343 = dot( p43, p43 ); 4865 float d2121 = dot( p21, p21 ); 4866 4867 float denom = d2121 * d4343 - d4321 * d4321; 4868 4869 float numer = d1343 * d4321 - d1321 * d4343; 4870 4871 mua = numer / denom; 4872 mua = clamp( mua, 0.0, 1.0 ); 4873 mub = ( d1343 + d4321 * ( mua ) ) / d4343; 4874 mub = clamp( mub, 0.0, 1.0 ); 4875 4876 return vec2( mua, mub ); 4877 4878 } 4879 4880 void main() { 4881 4882
4882float alpha = opacity; 4883 vec4 diffuseColor = vec4( diffuse, alpha ); 4884 4885 #include <clipping_planes_fragment> 4886 4887 #ifdef USE_DASH 4888 4889 if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps 4890 4891 if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX 4892 4893 #endif 4894 4895 #ifdef WORLD_UNITS 4896 4897 // Find the closest points on the view ray and the line segment 4898 vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; 4899 vec3 lineDir = worldEnd - worldStart; 4900 vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); 4901 4902 vec3 p1 = worldStart + lineDir * params.x; 4903 vec3 p2 = rayEnd * params.y; 4904 vec3 delta = p1 - p2; 4905 float len = length( delta ); 4906 float norm = len / linewidth; 4907 4908 #ifndef USE_DASH 4909 4910 #ifdef USE_ALPHA_TO_COVERAGE 4911 4912 float dnorm = fwidth( norm ); 4913 alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); 4914 4915 #else 4916 4917 if ( norm > 0.5 ) { 4918 4919 discard; 4920 4921 } 4922 4923 #endif 4924 4925 #endif 4926 4927 #else 4928 4929 #ifdef USE_ALPHA_TO_COVERAGE 4930 4931 // artifacts appear on some hardware if a derivative is taken within a conditional 4932 float a = vUv.x; 4933 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 4934 float len2 = a * a + b * b; 4935 float dlen = fwidth( len2 ); 4936 4937 if ( abs( vUv.y ) > 1.0 ) { 4938 4939 alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); 4940 4941 } 4942 4943 #else 4944 4945 if ( abs( vUv.y ) > 1.0 ) { 4946 4947 float a = vUv.x; 4948 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 4949 float len2 = a * a + b * b; 4950 4951 if ( len2 > 1.0 ) discard; 4952 4953 } 4954 4955 #endif 4956 4957 #endif 4958 4959 #include <logdepthbuf_fragment> 4960 #include <color_fragment> 4961 4962 gl_FragColor = vec4( diffuseColor.rgb, alpha ); 4963 4964 #include <tonemapping_fragment> 4965 #include <colorspace_fragment> 4966 #include <fog_fragment> 4967 #include <premultiplied_alpha_fragment> 4968 4969 } 4970 `};class HZ extends ru{constructor(e){super({type:"LineMaterial",uniforms:YP.clone(h0.line.uniforms),vertexShader:h0.line.vertexShader,fragmentShader:h0.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(e)}get color(){return this.uniforms.diffuse.value}set color(e){this.uniforms.diffuse.value=e}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(e){e===!0!==this.worldUnits&&(this.needsUpdate=!0),e===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(e){this.uniforms.linewidth&&(this.uniforms.linewidth.value=e)}get dashed(){return"USE_DASH"in this.defines}set dashed(e){e===!0!==this.dashed&&(this.needsUpdate=!0),e===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(e){this.uniforms.dashScale.value=e}get dashSize(){return this.uniforms.dashSize.value}set dashSize(e){this.uniforms.dashSize.value=e}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(e){this.uniforms.dashOffset.value=e}get gapSize(){return this.uniforms.gapSize.value}set gapSize(e){this.uniforms.gapSize.value=e}get opacity(){return this.uniforms.opacity.value}set opacity(e){this.uniforms&&(this.uniforms.opacity.value=e)}get resolution(){return this.uniforms.resolution.value}set resolution(e){this.uniforms.resolution.value.copy(e)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(e){this.defines&&(e===!0!==this.alphaToCoverage&&(this.needsUpdate=!0),e===!0?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}const IB=new kr,$se=new Pe,qse=new Pe,Kl=new kr,Jl=new kr,y1=new kr,BB=new Pe,UB=new Fr,ec=new GQe,Wse=new Pe,EC=new H2,MC=new ox,_1=new kr;let G1,ny;function Zse(t,e,n){return _1.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),_1.multiplyScalar(1/_1.w),_1.x=ny/n.width,_1.y=ny/n.height,_1.applyMatrix4(t.projectionMatrixInverse),_1.multiplyScalar(1/_1.w),Math.abs(Math.max(_1.x,_1.y))}function kxt(t,e){const n=t.matrixWorld,r=t.geometry,i=r.attributes.instanceStart,a=r.attributes.instanceEnd,s=Math.min(r.instanceCount,i.count);for(let o=0,l=s;o<l;o++){ec.start.fromBufferAttribute(i,o),ec.end.fromBufferAttribute(a,o),ec.applyMatrix4(n);const c=new Pe,u=new Pe;G1.distanceSqToSegment(ec.start,ec.end,u,c),u.distanceTo(c)<ny*.5&&e.push({point:u,pointOnLine:c,distance:G1.origin.distanceTo(u),object:t,face:null,faceIndex:o,uv:null,uv1:null})}}function Lxt(t,e,n){const r=e.projectionMatrix,a=t.material.resolution,s=t.matrixWorld,o=t.geometry,l=o.attributes.instanceStart,c=o.attributes.instanceEnd,u=
4970Math.min(o.instanceCount,l.count),f=-e.near;G1.at(1,y1),y1.w=1,y1.applyMatrix4(e.matrixWorldInverse),y1.applyMatrix4(r),y1.multiplyScalar(1/y1.w),y1.x*=a.x/2,y1.y*=a.y/2,y1.z=0,BB.copy(y1),UB.multiplyMatrices(e.matrixWorldInverse,s);for(let h=0,p=u;h<p;h++){if(Kl.fromBufferAttribute(l,h),Jl.fromBufferAttribute(c,h),Kl.w=1,Jl.w=1,Kl.applyMatrix4(UB),Jl.applyMatrix4(UB),Kl.z>f&&Jl.z>f)continue;if(Kl.z>f){const M=Kl.z-Jl.z,D=(Kl.z-f)/M;Kl.lerp(Jl,D)}else if(Jl.z>f){const M=Jl.z-Kl.z,D=(Jl.z-f)/M;Jl.lerp(Kl,D)}Kl.applyMatrix4(r),Jl.applyMatrix4(r),Kl.multiplyScalar(1/Kl.w),Jl.multiplyScalar(1/Jl.w),Kl.x*=a.x/2,Kl.y*=a.y/2,Jl.x*=a.x/2,Jl.y*=a.y/2,ec.start.copy(Kl),ec.start.z=0,ec.end.copy(Jl),ec.end.z=0;const g=ec.closestPointToPointParameter(BB,!0);ec.at(g,Wse);const w=b_.lerp(Kl.z,Jl.z,g),T=w>=-1&&w<=1,C=BB.distanceTo(Wse)<ny*.5;if(T&&C){ec.start.fromBufferAttribute(l,h),ec.end.fromBufferAttribute(c,h),ec.start.applyMatrix4(s),ec.end.applyMatrix4(s);const M=new Pe,D=new Pe;G1.distanceSqToSegment(ec.start,ec.end,D,M),n.push({point:D,pointOnLine:M,distance:G1.origin.distanceTo(D),object:t,face:null,faceIndex:h,uv:null,uv1:null})}}}class Oxt extends ea{constructor(e=new C4e,n=new HZ({color:Math.random()*16777215})){super(e,n),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,n=e.attributes.instanceStart,r=e.attributes.instanceEnd,i=new Float32Array(2*n.count);for(let s=0,o=0,l=n.count;s<l;s++,o+=2)$se.fromBufferAttribute(n,s),qse.fromBufferAttribute(r,s),i[o]=o===0?0:i[o-1],i[o+1]=i[o]+$se.distanceTo(qse);const a=new mR(i,2,1);return e.setAttribute("instanceDistanceStart",new X1(a,1,0)),e.setAttribute("instanceDistanceEnd",new X1(a,1,1)),this}raycast(e,n){const r=this.material.worldUnits,i=e.camera;i===null&&!r&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');const a=e.params.Line2!==void 0&&e.params.Line2.threshold||0;G1=e.ray;const s=this.matrixWorld,o=this.geometry,l=this.material;ny=l.linewidth+a,o.boundingSphere===null&&o.computeBoundingSphere(),MC.copy(o.boundingSphere).applyMatrix4(s);let c;if(r)c=ny*.5;else{const f=Math.max(i.near,MC.distanceToPoint(G1.origin));c=Zse(i,f,l.resolution)}if(MC.radius+=c,G1.intersectsSphere(MC)===!1)return;o.boundingBox===null&&o.computeBoundingBox(),EC.copy(o.boundingBox).applyMatrix4(s);let u;if(r)u=ny*.5;else{const f=Math.max(i.near,EC.distanceToPoint(G1.origin));u=Zse(i,f,l.resolution)}EC.expandByScalar(u),G1.intersectsBox(EC)!==!1&&(r?kxt(this,n):Lxt(this,i,n))}onBeforeRender(e){const n=this.material.uniforms;n&&n.resolution&&(e.getViewport(IB),this.material.uniforms.resolution.value.set(IB.z,IB.w))}}class N4e extends C4e{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){const n=e.length-3,r=new Float32Array(2*n);for(let i=0;i<n;i+=3)r[2*i]=e[i],r[2*i+1]=e[i+1],r[2*i+2]=e[i+2],r[2*i+3]=e[i+3],r[2*i+4]=e[i+4],r[2*i+5]=e[i+5];return super.setPositions(r),this}setColors(e){const n=e.length-3,r=new Float32Array(2*n);for(let i=0;i<n;i+=3)r[2*i]=e[i],r[2*i+1]=e[i+1],r[2*i+2]=e[i+2],r[2*i+3]=e[i+3],r[2*i+4]=e[i+4],r[2*i+5]=e[i+5];return super.setColors(r),this}setFromPoints(e){const n=e.length-1,r=new Float32Array(6*n);for(let i=0;i<n;i++)r[6*i]=e[i].x,r[6*i+1]=e[i].y,r[6*i+2]=e[i].z||0,r[6*i+3]=e[i+1].x,r[6*i+4]=e[i+1].y,r[6*i+5]=e[i+1].z||0;return super.setPositions(r),this}fromLine(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}}class Fxt extends Oxt{constructor(e=new N4e,n=new HZ({color:Math.random()*16777215})){super(e,n),this.isLine2=!0,this.type="Line2"}}class R4e{constructor(e){this.isFont=!0,this.type="Font",this.data=e}generateShapes(e,n=100,r="ltr"){const i=[],a=Ixt(e,n,this.data,r);for(let s=0,o=a.length;s<o;s++)i.push(...a[s].toShapes());return i}}function Ixt(t,e,n,r){const i=Array.from(t),a=e/n.resolution,s=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*a,o=[];let l=0,c=0;(r=="rtl"||r=="tb")&&i.reverse();for(let u=0;u<i.length;u++){const f=i[u];if(f===` 4971`)l=0,c-=s;else{const h=Bxt(f,a,l,c,n);r=="tb"?(l=0,c+=n.ascender*a):l+=h.offsetX,o.push(h.path)}}return o}function Bxt(t,e,n,r,i){const a=i.glyphs[t]||i.glyphs["?"];if(!a){console.error('THREE.Font: character "'+t+'" does not exists in font family '+i.familyName+".");return}const s=new zQe;let o,l,c,u,f,h,p,A;if(a.o){const g=a._cachedOutline||(a._cachedOutline=a.o.split(" "));for(let w=0,T=g.length;w<T;)switch(g[w++]){case"m":o=g[w++]*e+n,l=g[w++]*e+r,s.moveTo(o,l);break;case"l":o=g[w++]*e+n,l=g[w++]*e+r,s.lineTo(o,l);break;
4971case"q":c=g[w++]*e+n,u=g[w++]*e+r,f=g[w++]*e+n,h=g[w++]*e+r,s.quadraticCurveTo(f,h,c,u);break;case"b":c=g[w++]*e+n,u=g[w++]*e+r,f=g[w++]*e+n,h=g[w++]*e+r,p=g[w++]*e+n,A=g[w++]*e+r,s.bezierCurveTo(f,h,p,A,c,u);break}}return{offsetX:a.ha*e,path:s}}class AD extends Bq{constructor(e,n={}){const r=n.font;if(r===void 0)super();else{const i=r.generateShapes(e,n.size,n.direction);n.depth===void 0&&(n.depth=50),n.bevelThickness===void 0&&(n.bevelThickness=10),n.bevelSize===void 0&&(n.bevelSize=8),n.bevelEnabled===void 0&&(n.bevelEnabled=!1),super(i,n)}this.type="TextGeometry"}toJSON(){return super.toJSON()}static fromJSON(e){const n=e.options;return n.font=new R4e(n.font.data),new AD(n.text,n)}}function SH(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Uxt(t){if(Array.isArray(t))return t}function Vxt(t){if(Array.isArray(t))return SH(t)}function D4e(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function jxt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yse(t,e,n,r,i,a,s){try{var o=t[a](s),l=o.value}catch(c){return void n(c)}o.done?e(l):Promise.resolve(l).then(r,i)}function Hxt(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function s(l){Yse(a,r,i,s,o,"next",l)}function o(l){Yse(a,r,i,s,o,"throw",l)}s(void 0)})}}function Pk(t,e,n){return e=B_(e),Qxt(t,zZ()?Reflect.construct(e,n||[],B_(t).constructor):e.apply(t,n))}function Gxt(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cw(t,e){return t.get(D4e(t,e))}function VB(t,e,n){Gxt(t,e),e.set(t,n)}function jB(t,e,n){return t.set(D4e(t,e),n),n}function GZ(t,e,n){if(zZ())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return i}function zxt(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,P4e(r.key),r)}}function Lk(t,e,n){return e&&zxt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zl(t,e,n){return(e=P4e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TH(){return TH=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=Kxt(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},TH.apply(null,arguments)}function B_(t){return B_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B_(t)}function Ok(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&MH(t,e)}function zZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zZ=function(){return!!t})()}function $xt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qxt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function Wxt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4972In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zxt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4973In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xse(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 Ta(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
4973e%2?Xse(Object(n),!0).forEach(function(r){Zl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xse(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yxt(t,e){if(t==null)return{};var n,r,i=Xxt(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Xxt(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Qxt(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 jxt(t)}function EH(){var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(p,A,g,w){var T=A&&A.prototype instanceof o?A:o,C=Object.create(T.prototype);return J0(C,"_invoke",(function(M,D,k){var I,L,O,B=0,G=k||[],j=!1,z={p:0,n:0,v:t,a:Q,f:Q.bind(t,4),d:function(ee,Z){return I=ee,L=0,O=t,z.n=Z,s}};function Q(ee,Z){for(L=ee,O=Z,e=0;!j&&B&&!X&&e<G.length;e++){var X,K=G[e],se=z.p,ae=K[2];ee>3?(X=ae===Z)&&(O=K[(L=K[4])?5:(L=3,3)],K[4]=K[5]=t):K[0]<=se&&((X=ee<2&&se<K[1])?(L=0,z.v=Z,z.n=K[1]):se<ae&&(X=ee<3||K[0]>Z||Z>ae)&&(K[4]=ee,K[5]=Z,z.n=ae,L=0))}if(X||ee>1)return s;throw j=!0,Z}return function(ee,Z,X){if(B>1)throw TypeError("Generator is already running");for(j&&Z===1&&Q(Z,X),L=Z,O=X;(e=L<2?t:O)||!j;){I||(L?L<3?(L>1&&(z.n=-1),Q(L,O)):z.n=O:z.v=O);try{if(B=2,I){if(L||(ee="next"),e=I[ee]){if(!(e=e.call(I,O)))throw TypeError("iterator result is not an object");if(!e.done)return e;O=e.value,L<2&&(L=0)}else L===1&&(e=I.return)&&e.call(I),L<2&&(O=TypeError("The iterator does not provide a '"+ee+"' method"),L=1);I=t}else if((e=(j=z.n<0)?O:M.call(D,z))!==s)break}catch(K){I=t,L=1,O=K}finally{B=1}}return{value:e,done:j}}})(p,g,w),!0),C}var s={};function o(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][r]?e(e([][r]())):(J0(e={},r,function(){return this}),e),f=c.prototype=o.prototype=Object.create(u);function h(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,J0(p,i,"GeneratorFunction")),p.prototype=Object.create(f),p}return l.prototype=c,J0(f,"constructor",c),J0(c,"constructor",l),l.displayName="GeneratorFunction",J0(c,i,"GeneratorFunction"),J0(f),J0(f,i,"Generator"),J0(f,r,function(){return this}),J0(f,"toString",function(){return"[object Generator]"}),(EH=function(){return{w:a,m:h}})()}function J0(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}J0=function(a,s,o,l){function c(u,f){J0(a,u,function(h){return this._invoke(u,f,h)})}s?i?i(a,s,{value:o,enumerable:!l,configurable:!l,writable:!l}):a[s]=o:(c("next",0),c("throw",1),c("return",2))},J0(t,e,n,r)}function MH(t,e){return MH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},MH(t,e)}function vs(t,e){return Uxt(t)||qxt(t,e)||k4e(t,e)||Wxt()}function Kxt(t,e){for(;!{}.hasOwnProperty.call(t,e)&&(t=B_(t))!==null;);return t}function HB(t,e,n,r){var i=TH(B_(t.prototype),e,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}function Ua(t){return Vxt(t)||$xt(t)||k4e(t)||Zxt()}function Jxt(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function P4e(t){var e=Jxt(t,"string");return typeof e=="symbol"?e:e+""}function k4e(t,e){if(t){if(typeof t=="string")return SH(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SH(t,e):void 0}}var L4e=function(e){e instanceof Array?e.forEach(L4e):(e.map&&e.map.dispose(),e.dispose())},hg=function(e){e.geometry&&e.geometry.dispose(),e.material&&L4e(e.material),e.texture&&e.texture.dispose(),e.children&&e.children.forEac
4973h(hg)},Ks=function(e){if(e&&e.children)for(;e.children.length;){var n=e.children[0];e.remove(n),hg(n)}};function Gu(t,e){var n=new e;return{linkProp:function(i){return{default:n[i](),onChange:function(s,o){o[t][i](s)},triggerUpdate:!1}},linkMethod:function(i){return function(a){for(var s=a[t],o=arguments.length,l=new Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];var u=s[i].apply(s,l);return u===s?this:u}}}}var ls=100;function Qse(){return ls}function Ed(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180,a=ls*(1+n),s=Math.sin(r);return{x:a*s*Math.cos(i),y:a*Math.cos(r),z:a*s*Math.sin(i)}}function O4e(t){var e=t.x,n=t.y,r=t.z,i=Math.sqrt(e*e+n*n+r*r),a=Math.acos(n/i),s=Math.atan2(r,e);return{lat:90-a*180/Math.PI,lng:90-s*180/Math.PI-(s<-Math.PI/2?360:0),altitude:i/ls-1}}function hv(t){return t*Math.PI/180}var Q5=window.THREE?window.THREE:{BackSide:ca,BufferAttribute:Is,Color:Xn,Mesh:ea,ShaderMaterial:ru},evt=` 4974uniform float hollowRadius; 4975 4976varying vec3 vVertexWorldPosition; 4977varying vec3 vVertexNormal; 4978varying float vCameraDistanceToObjCenter; 4979varying float vVertexAngularDistanceToHollowRadius; 4980 4981void main() { 4982 vVertexNormal = normalize(normalMatrix * normal); 4983 vVertexWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz; 4984 4985 vec4 objCenterViewPosition = modelViewMatrix * vec4(0.0, 0.0, 0.0, 1.0); 4986 vCameraDistanceToObjCenter = length(objCenterViewPosition); 4987 4988 float edgeAngle = atan(hollowRadius / vCameraDistanceToObjCenter); 4989 float vertexAngle = acos(dot(normalize(modelViewMatrix * vec4(position, 1.0)), normalize(objCenterViewPosition))); 4990 vVertexAngularDistanceToHollowRadius = vertexAngle - edgeAngle; 4991 4992 gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); 4993}`,tvt=` 4994uniform vec3 color; 4995uniform float coefficient; 4996uniform float power; 4997uniform float hollowRadius; 4998 4999varying vec3 vVertexNormal; 5000varying vec3 vVertexWorldPosition; 5001varying float vCameraDistanceToObjCenter; 5002varying float vVertexAngularDistanceToHollowRadius; 5003 5004void main() { 5005 if (vCameraDistanceToObjCenter < hollowRadius) discard; // inside the hollowRadius 5006 if (vVertexAngularDistanceToHollowRadius < 0.0) discard; // frag position is within the hollow radius 5007 5008 vec3 worldCameraToVertex = vVertexWorldPosition - cameraPosition; 5009 vec3 viewCameraToVertex = (viewMatrix * vec4(worldCameraToVertex, 0.0)).xyz; 5010 viewCameraToVertex = normalize(viewCameraToVertex); 5011 float intensity = pow( 5012 coefficient + dot(vVertexNormal, viewCameraToVertex), 5013 power 5014 ); 5015 gl_FragColor = vec4(color, intensity); 5016}`;function nvt(t,e,n,r){return new Q5.ShaderMaterial({depthWrite:!1,transparent:!0,vertexShader:evt,fragmentShader:tvt,uniforms:{coefficient:{value:t},color:{value:new Q5.Color(e)},power:{value:n},hollowRadius:{value:r}}})}function rvt(t,e){for(var n=t.clone(),r=new Float32Array(t.attributes.position.count*3),i=0,a=r.length;i<a;i++){var s=t.attributes.normal.array[i],o=t.attributes.position.array[i];r[i]=o+s*e}return n.setAttribute("position",new Q5.BufferAttribute(r,3)),n}var ivt=(function(t){function e(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.color,s=a===void 0?"gold":a,o=i.size,l=o===void 0?2:o,c=i.coefficient,u=c===void 0?.5:c,f=i.power,h=f===void 0?1:f,p=i.hollowRadius,A=p===void 0?0:p,g=i.backside,w=g===void 0?!0:g;kk(this,e),r=Pk(this,e);var T=rvt(n,l),C=nvt(u,s,h,A);return w&&(C.side=Q5.BackSide),r.geometry=T,r.material=C,r}return Ok(e,t),Lk(e)})(Q5.Mesh),b1=window.THREE?window.THREE:{Color:Xn,Group:y0,LineBasicMaterial:p6,LineSegments:qme,Mesh:ea,MeshPhongMaterial:o2e,SphereGeometry:Fp,SRGBColorSpace:rc,TextureLoader:jq},F4e=Ml({props:{globeImageUrl:{},bumpImageUrl:{}
5016,showGlobe:{default:!0,onChange:function(e,n){n.globeGroup.visible=!!e},triggerUpdate:!1},showGraticules:{default:!1,onChange:function(e,n){n.graticulesObj.visible=!!e},triggerUpdate:!1},showAtmosphere:{default:!0,onChange:function(e,n){n.atmosphereObj&&(n.atmosphereObj.visible=!!e)},triggerUpdate:!1},atmosphereColor:{default:"lightskyblue"},atmosphereAltitude:{default:.15},globeCurvatureResolution:{default:4},globeTileEngineUrl:{onChange:function(e,n){n.tileEngine.tileUrl=e}},globeTileEngineMaxLevel:{default:17,onChange:function(e,n){n.tileEngine.maxLevel=e},triggerUpdate:!1},updatePov:{onChange:function(e,n){n.tileEngine.updatePov(e)},triggerUpdate:!1},onReady:{default:function(){},triggerUpdate:!1}},methods:{globeMaterial:function(e,n){return n!==void 0?(e.globeObj.material=n||e.defaultGlobeMaterial,this):e.globeObj.material},globeTileEngineClearCache:function(e){e.tileEngine.clearTiles()},_destructor:function(e){hg(e.globeObj),hg(e.tileEngine),hg(e.graticulesObj)}},stateInit:function(){var e=new b1.MeshPhongMaterial({color:0}),n=new b1.Mesh(void 0,e);n.rotation.y=-Math.PI/2;var r=new cst(ls),i=new b1.Group;i.__globeObjType="globe",i.add(n),i.add(r);var a=new b1.LineSegments(new gAe(Mat(),ls,2),new b1.LineBasicMaterial({color:"lightgrey",transparent:!0,opacity:.1}));return{globeGroup:i,globeObj:n,graticulesObj:a,defaultGlobeMaterial:e,tileEngine:r}},init:function(e,n){Ks(e),n.scene=e,n.scene.add(n.globeGroup),n.scene.add(n.graticulesObj),n.ready=!1},update:function(e,n){var r=e.globeObj.material;if(e.tileEngine.visible=!(e.globeObj.visible=!e.globeTileEngineUrl),n.hasOwnProperty("globeCurvatureResolution")){var i;(i=e.globeObj.geometry)===null||i===void 0||i.dispose();var a=Math.max(4,Math.round(360/e.globeCurvatureResolution));e.globeObj.geometry=new b1.SphereGeometry(ls,a,a/2),e.tileEngine.curvatureResolution=e.globeCurvatureResolution}if(n.hasOwnProperty("globeImageUrl")&&(e.globeImageUrl?new b1.TextureLoader().load(e.globeImageUrl,function(o){var l;o.colorSpace=b1.SRGBColorSpace,(l=r.map)===null||l===void 0||l.dispose(),r.map=o,r.color=null,r.needsUpdate=!0,!e.ready&&(e.ready=!0)&&setTimeout(e.onReady)}):!r.color&&(r.color=new b1.Color(0))),n.hasOwnProperty("bumpImageUrl")&&(e.bumpImageUrl?e.bumpImageUrl&&new b1.TextureLoader().load(e.bumpImageUrl,function(o){var l;(l=r.bumpMap)===null||l===void 0||l.dispose(),r.bumpMap=o,r.needsUpdate=!0}):(r.bumpMap=null,r.needsUpdate=!0)),(n.hasOwnProperty("atmosphereColor")||n.hasOwnProperty("atmosphereAltitude"))&&(e.atmosphereObj&&(e.scene.remove(e.atmosphereObj),hg(e.atmosphereObj)),e.atmosphereColor&&e.atmosphereAltitude)){var s=e.atmosphereObj=new ivt(e.globeObj.geometry,{color:e.atmosphereColor,size:ls*e.atmosphereAltitude,hollowRadius:ls,coefficient:.1,power:3.5});s.visible=!!e.showAtmosphere,s.__globeObjType="atmosphere",e.scene.add(s)}!e.ready&&(!e.globeImageUrl||e.globeTileEngineUrl)&&(e.ready=!0,e.onReady())}}),Sp=function(e){return isNaN(e)?parseInt(br(e).toHex(),16):e},Ih=function(e){return e&&isNaN(e)?xy(e).opacity:1},Kg=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i,a=1,s=/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.eE+-]+)\s*\)$/.exec(e.trim().toLowerCase());if(s){var o=s.slice(1),l=vs(o,4),c=l[0],u=l[1],f=l[2],h=l[3];i=new Xn("rgb(".concat(+c,",").concat(+u,",").concat(+f,")")),a=Math.min(+h,1)}else i=new Xn(e);r&&i.convertLinearToSRGB();var p=i.toArray();return n?[].concat(Ua(p),[a]):p};function avt(t,e,n){return t.opacity=e,t.transparent=e<1,t.depthWrite=e>=1,t}var Kse=window.THREE?window.THREE:{BufferAttribute:Is};function Tp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Float32Array;if(e===1)return new Kse.BufferAttribute(new n(t),e);for(var r=new Kse.BufferAttribute(new n(t.length*e),e),i=0,a=t.length;i<a;i++)r.set(t[i],i*e);return r}function svt(t){for(var e=t.itemSize,n=[],r=0;r<t.count;r++)n.push(t.array.slice(r*e,(r+1)*e));return n}var GB=new WeakMap,CC=new WeakMap,NC=new WeakMap,F0=(function(t){function e(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.dataBindAttr,s=a===void 0?"__data":a,o=i.objBindAttr,l=o===void 0?"__threeObj":o,c=i.removeDelay,u=c===void 0?0:c;return kk(this,e),r=Pk(this,e),Zl(r,"scene",void 0),VB(r,GB,void 0),VB(r,CC,void 0),VB(r,NC,void 0),r.scene=n,jB(GB,r,s),jB(CC,r,l),jB(NC,r,u),r.onRemoveObj(function(){}),r}return Ok(e,t),Lk(e,[{key:"onCreateObj",value:function(r){var i=this;return HB(e,"onCreateObj",this)([function(a){var s=r(a);return a[cw(CC,i)]=s,s[cw(GB,i)]=a,i.scene.add(s),s}]),this}},{key:"onRemoveObj",value:function(r){var i=this;return HB(e,"onRemoveObj",this)([function(a,s){var o=HB(e,"getData",i)([a]);r(a,s);var l=function(){i.scene.remove(a),hg(a),delete o[cw(CC,i)]};cw(NC,i)?setTimeout(l,cw(NC,i)):l()}]),this}}])}
vendor: 5,315 bytes, lines 5016-5094
5016)(Bot),lh=window.THREE?window.THREE:{BufferGeometry:da,CylinderGeometry:ZP,Matrix4:Fr,Mesh:ea,MeshLambertMaterial:G2,Object3D:ys,Vector3:Pe},Jse=Object.assign({},rW),eoe=Jse.BufferGeometryUtils||Jse,I4e=Ml({props:{pointsData:{default:[]},pointLat:{default:"lat"},pointLng:{default:"lng"},pointColor:{default:function(){return"#ffffaa"}},pointAltitude:{default:.1},pointRadius:{default:.25},pointResolution:{default:12,triggerUpdate:!1},pointsMerge:{default:!1},pointsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjPoint"})},update:function(e,n){var r=un(e.pointLat),i=un(e.pointLng),a=un(e.pointAltitude),s=un(e.pointRadius),o=un(e.pointColor),l=new lh.CylinderGeometry(1,1,1,e.pointResolution);l.applyMatrix4(new lh.Matrix4().makeRotationX(Math.PI/2)),l.applyMatrix4(new lh.Matrix4().makeTranslation(0,0,-.5));var c=2*Math.PI*ls/360,u={};if(!e.pointsMerge&&n.hasOwnProperty("pointsMerge")&&Ks(e.scene),e.dataMapper.scene=e.pointsMerge?new lh.Object3D:e.scene,e.dataMapper.onCreateObj(p).onUpdateObj(A).digest(e.pointsData),e.pointsMerge){var f=e.pointsData.length?(eoe.mergeGeometries||eoe.mergeBufferGeometries)(e.pointsData.map(function(g){var w=e.dataMapper.getObj(g),T=w.geometry.clone();w.updateMatrix(),T.applyMatrix4(w.matrix);var C=Kg(o(g));return T.setAttribute("color",Tp(Array(T.getAttribute("position").count).fill(C),4)),T})):new lh.BufferGeometry,h=new lh.Mesh(f,new lh.MeshLambertMaterial({color:16777215,transparent:!0,vertexColors:!0}));h.__globeObjType="points",h.__data=e.pointsData,e.dataMapper.clear(),Ks(e.scene),e.scene.add(h)}function p(){var g=new lh.Mesh(l);return g.__globeObjType="point",g}function A(g,w){var T=function(O){var B=g.__currentTargetD=O,G=B.r,j=B.alt,z=B.lat,Q=B.lng;Object.assign(g.position,Ed(z,Q));var ee=e.pointsMerge?new lh.Vector3(0,0,0):e.scene.localToWorld(new lh.Vector3(0,0,0));g.lookAt(ee),g.scale.x=g.scale.y=Math.min(30,G)*c,g.scale.z=Math.max(j*ls,.1)},C={alt:+a(w),r:+s(w),lat:+r(w),lng:+i(w)},M=g.__currentTargetD||Object.assign({},C,{alt:-.001});if(Object.keys(C).some(function(L){return M[L]!==C[L]})&&(e.pointsMerge||!e.pointsTransitionDuration||e.pointsTransitionDuration<0?T(C):e.tweenGroup.add(new iu(M).to(C,e.pointsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(T).onComplete(function(){e.tweenGroup.remove(this)}).start())),!e.pointsMerge){var D=o(w),k=D?Ih(D):0,I=!!k;g.visible=I,I&&(u.hasOwnProperty(D)||(u[D]=new lh.MeshLambertMaterial({color:Sp(D),transparent:k<1,opacity:k})),g.material=u[D])}}}}),B4e=function(){return{uniforms:{dashOffset:{value:0},dashSize:{value:1},gapSize:{value:0},dashTranslate:{value:0}},vertexShader:` 5017 `.concat(Xr.common,` 5018 `).concat(Xr.logdepthbuf_pars_vertex,` 5019 5020 uniform float dashTranslate; 5021 5022 attribute vec4 color; 5023 varying vec4 vColor; 5024 5025 attribute float relDistance; 5026 varying float vRelDistance; 5027 5028 void main() { 5029 // pass through colors and distances 5030 vColor = color; 5031 vRelDistance = relDistance + dashTranslate; 5032 gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); 5033 5034 `).concat(Xr.logdepthbuf_vertex,` 5035 } 5036 `),fragmentShader:` 5037 `.concat(Xr.logdepthbuf_pars_fragment,` 5038 5039 uniform float dashOffset; 5040 uniform float dashSize; 5041 uniform float gapSize; 5042 5043 varying vec4 vColor; 5044 varying float vRelDistance; 5045 5046 void main() { 5047 // ignore pixels in the gap 5048 if (vRelDistance < dashOffset) discard; 5049 if (mod(vRelDistance - dashOffset, dashSize + gapSize) > dashSize) discard; 5050 5051 // set px color: [r, g, b, a], interpolated between vertices 5052 gl_FragColor = vColor; 5053 5054 `).concat(Xr.logdepthbuf_fragment,` 5055 } 5056 `)}},CH=function(e){return e.uniforms.uSurfaceRadius={type:"float",value:0},e.vertexShader=(`attribute float surfaceRadius; 5057varying float vSurfaceRadius; 5058varying vec3 vPos; 5059`+e.vertexShader).replace("void main() {",["void main() {","vSurfaceRadius = surfaceRadius;","vPos = position;"].join(` 5060`)),e.fragmentShader=(`uniform float uSurfaceRadius; 5061varying float vSurfaceRadius; 5062varying vec3 vPos; 5063`+e.fragmentShader).replace("void main() {",["void main() {","if (length(vPos) < max(uSurfaceRadius, vSurfaceRadius)) discard;"].join(` 5064`)),e},ovt=function(e){return e.vertexShader=` 5065 attribute float r; 5066 5067 const float PI = 3.1415926535897932384626433832795; 5068 float toRad(in float a) { 5069 return a * PI / 180.0; 5070 } 5071 5072 vec3 Polar2Cartesian(in vec3 c) { // [lat, lng, r] 5073 float phi = toRad(90.0 - c.x); 5074 float theta = toRad(90.0 - c.y); 5075 float r = c.z; 5076 return vec3( // x,y,z 5077 r * sin(phi) * cos(theta), 5078 r * cos(phi), 5079 r * sin(phi) * sin(theta) 5080 ); 5081 } 5082 5083 vec2 Cartesian2Polar(in vec3 p) { 5084 float r = sqrt(p.x * p.x + p.y * p.y + p.z * p.z); 5085 float phi = acos(p.y / r); 5086 float theta = atan(p.z, p.x); 5087 return vec2( // lat,lng 5088 90.0 - phi * 180.0 / PI, 5089 90.0 - theta * 180.0 / PI - (theta < -PI / 2.0 ? 360.0 : 0.0) 5090 ); 5091 } 5092 `.concat(e.vertexShader.replace("}",` 5093 vec3 pos = Polar2Cartesian(vec3(Cartesian2Polar(position), r)); 5094 gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0
5094); 5095 } 5096 `),` 5097 `),e},$Z=function(e,n){return e.onBeforeCompile=function(r){e.userData.shader=n(r)},e},lvt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(i){return i};if(e.userData.shader)n(e.userData.shader.uniforms);else{var r=e.onBeforeCompile;e.onBeforeCompile=function(i){r(i),n(i.uniforms)}}},cvt=["stroke"],ch=window.THREE?window.THREE:{BufferGeometry:da,CubicBezierCurve3:Xme,Curve:t1,Group:y0,Line:qP,Mesh:ea,NormalBlending:Hl,ShaderMaterial:ru,TubeGeometry:Uq,Vector3:Pe},uvt=R_.default||R_,U4e=Ml({props:{arcsData:{default:[]},arcStartLat:{default:"startLat"},arcStartLng:{default:"startLng"},arcStartAltitude:{default:0},arcEndLat:{default:"endLat"},arcEndLng:{default:"endLng"},arcEndAltitude:{default:0},arcColor:{default:function(){return"#ffffaa"}},arcAltitude:{},arcAltitudeAutoScale:{default:.5},arcStroke:{},arcCurveResolution:{default:64,triggerUpdate:!1},arcCircularResolution:{default:6,triggerUpdate:!1},arcDashLength:{default:1},arcDashGap:{default:0},arcDashInitialGap:{default:0},arcDashAnimateTime:{default:0},arcsTransitionDuration:{default:1e3,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.pause()},resumeAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.resume()},_destructor:function(e){var n;e.sharedMaterial.dispose(),(n=e.ticker)===null||n===void 0||n.dispose()}},stateInit:function(e){var n=e.tweenGroup;return{tweenGroup:n,ticker:new uvt,sharedMaterial:new ch.ShaderMaterial(Ta(Ta({},B4e()),{},{transparent:!0,blending:ch.NormalBlending}))}},init:function(e,n){Ks(e),n.scene=e,n.dataMapper=new F0(e,{objBindAttr:"__threeObjArc"}).onCreateObj(function(){var r=new ch.Group;return r.__globeObjType="arc",r}),n.ticker.onTick.add(function(r,i){n.dataMapper.entries().map(function(a){var s=vs(a,2),o=s[1];return o}
5097).filter(function(a){return a.children.length&&a.children[0].material&&a.children[0].__dashAnimateStep}).forEach(function(a){var s=a.children[0],o=s.__dashAnimateStep*i,l=s.material.uniforms.dashTranslate.value%1e9;s.material.uniforms.dashTranslate.value=l+o})})},update:function(e){var n=un(e.arcStartLat),r=un(e.arcStartLng),i=un(e.arcStartAltitude),a=un(e.arcEndLat),s=un(e.arcEndLng),o=un(e.arcEndAltitude),l=un(e.arcAltitude),c=un(e.arcAltitudeAutoScale),u=un(e.arcStroke),f=un(e.arcColor),h=un(e.arcDashLength),p=un(e.arcDashGap),A=un(e.arcDashInitialGap),g=un(e.arcDashAnimateTime);e.dataMapper.onUpdateObj(function(M,D){var k=u(D),I=k!=null;if(!M.children.length||I!==(M.children[0].type==="Mesh")){Ks(M);var L=I?new ch.Mesh:new ch.Line(new ch.BufferGeometry);L.material=e.sharedMaterial.clone(),M.add(L)}var O=M.children[0];Object.assign(O.material.uniforms,{dashSize:{value:h(D)},gapSize:{value:p(D)},dashOffset:{value:A(D)}});var B=g(D);O.__dashAnimateStep=B>0?1e3/B:0;var G=T(f(D),e.arcCurveResolution,I?e.arcCircularResolution+1:1),j=C(e.arcCurveResolution,I?e.arcCircularResolution+1:1,!0);O.geometry.setAttribute("color",G),O.geometry.setAttribute("relDistance",j);var z=function(X){var K=M.__currentTargetD=X,se=K.stroke,ae=Yxt(K,cvt),J=w(ae);I?(O.geometry&&O.geometry.dispose(),O.geometry=new ch.TubeGeometry(J,e.arcCurveResolution,se/2,e.arcCircularResolution),O.geometry.setAttribute("color",G),O.geometry.setAttribute("relDistance",j)):O.geometry.setFromPoints(J.getPoints(e.arcCurveResolution))},Q={stroke:k,alt:l(D),altAutoScale:+c(D),startLat:+n(D),startLng:+r(D),startAlt:+i(D),endLat:+a(D),endLng:+s(D),endAlt:+o(D)},ee=M.__currentTargetD||Object.assign({},Q,{altAutoScale:-.001});Object.keys(Q).some(function(Z){return ee[Z]!==Q[Z]})&&(!e.arcsTransitionDuration||e.arcsTransitionDuration<0?z(Q):e.tweenGroup.add(new iu(ee).to(Q,e.arcsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(z).onComplete(function(){e.tweenGroup.remove(this)}).start()))}).digest(e.arcsData);function w(M){var D=M.alt,k=M.altAutoScale,I=M.startLat,L=M.startLng,O=M.startAlt,B=M.endLat,G=M.endLng,j=M.endAlt,z=function(Ae){var Se=vs(Ae,3),Re=Se[0],Ne=Se[1],Fe=Se[2],Qe=Ed(Ne,Re,Fe),ge=Qe.x,Ie=Qe.y,De=Qe.z;return new ch.Vector3(ge,Ie,De)},Q=[L,I],ee=[G,B],Z=D;if(Z==null&&(Z=Zg(Q,ee)/2*k+Math.max(O,j)),Z||O||j){var X=Kq(Q,ee),K=function(Ae,Se){return Se+(Se-Ae)*(Ae<Se?.5:.25)},se=[.25,.75].map(function(de){return[].concat(Ua(X(de)),[K(de<.5?O:j,Z)])}),ae=vs(se,2),J=ae[0],oe=ae[1],te=GZ(ch.CubicBezierCurve3,Ua([[].concat(Q,[O]),J,oe,[].concat(ee,[j])].map(z)));return te}else{var he=.001;return me.apply(void 0,Ua([[].concat(Q,[he]),[].concat(ee,[he])].map(z)))}function me(de,Ae){var Se=de.angleTo(Ae),Re=Se===0?function(){return de.clone()}:function(Fe){return new ch.Vector3().addVectors(de.clone().multiplyScalar(Math.sin((1-Fe)*Se)),Ae.clone().multiplyScalar(Math.sin(Fe*Se))).divideScalar(Math.sin(Se))},Ne=new ch.Curve;return Ne.getPoint=Re,Ne}}function T(M,D){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,I=D+1,L;if(M instanceof Array||M instanceof Function){var O=M instanceof Array?T2().domain(M.map(function(Z,X){return X/(M.length-1)})).range(M):M;L=function(X){return Kg(O(X),!0,!0)}}else{var B=Kg(M,!0,!0);L=function(){return B}}for(var G=[],j=0,z=I;j<z;j++)for(var Q=L(j/(z-1)),ee=0;ee<k;ee++)G.push(Q);return Tp(G,4)}function C(M){for(var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,I=M+1,L=[],O=0,B=I;O<B;O++)for(var G=O/(B-1),j=0;j<D;j++)L.push(G);return k&&L.reverse(),Tp(L,1)}}}),CA=window.THREE?window.THREE:{BufferGeometry:da,DoubleSide:Zs,Mesh:ea,MeshLambertMaterial:G2,Object3D:ys},toe=Object.assign({},rW),noe=toe.BufferGeometryUtils||toe,V4e=Ml({props:{hexBinPointsData:{default:[]},hexBinPointLat:{default:"lat"},hexBinPointLng:{default:"lng"},hexBinPointWeight:{default:1},hexBinResolution:{default:4},hexMargin:{default:.2},hexTopCurvatureResolution:{default:5},hexTopColor:{default:function(){return"#ffffaa"}},hexSideColor:{default:function(){return"#ffffaa"}},hexAltitude:{default:function(e){var n=e.sumWeight;return n*.01}},hexBinMerge:{default:!1},hexTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjHexbin"})},update:function(e,n){var r=un(e.hexBinPointLat),i=un(e.hexBinPointLng),a=un(e.hexBinPointWeight),s=un(e.hexAltitude),o=un(e.hexTo
5097pColor),l=un(e.hexSideColor),c=un(e.hexMargin),u=sct(e.hexBinPointsData.map(function(C){return Ta(Ta({},C),{},{h3Idx:$ct(r(C),i(C),e.hexBinResolution)})}),"h3Idx"),f=Object.entries(u).map(function(C){var M=vs(C,2),D=M[0],k=M[1];return{h3Idx:D,points:k,sumWeight:k.reduce(function(I,L){return I+ +a(L)},0)}}),h={};if(!e.hexBinMerge&&n.hasOwnProperty("hexBinMerge")&&Ks(e.scene),e.dataMapper.scene=e.hexBinMerge?new CA.Object3D:e.scene,e.dataMapper.id(function(C){return C.h3Idx}).onCreateObj(w).onUpdateObj(T).digest(f),e.hexBinMerge){var p=f.length?(noe.mergeGeometries||noe.mergeBufferGeometries)(f.map(function(C){var M=e.dataMapper.getObj(C),D=M.geometry.toNonIndexed();M.updateMatrix(),D.applyMatrix4(M.matrix);var k=Kg(o(C)),I=Kg(l(C)),L=D.getAttribute("position").count,O=D.groups[0].count;return D.setAttribute("color",Tp(Ua(new Array(L)).map(function(B,G){return G>=O?k:I}),4)),D})):new CA.BufferGeometry,A=new CA.MeshLambertMaterial({color:16777215,transparent:!0,vertexColors:!0,side:CA.DoubleSide});A.onBeforeCompile=function(C){A.userData.shader=CH(C)};var g=new CA.Mesh(p,A);g.__globeObjType="hexBinPoints",g.__data=f,e.dataMapper.clear(),Ks(e.scene),e.scene.add(g)}function w(C){var M=new CA.Mesh;M.__hexCenter=FAe(C.h3Idx),M.__hexGeoJson=IAe(C.h3Idx,!0).reverse();var D=M.__hexCenter[1];return M.__hexGeoJson.forEach(function(k){var I=k[0];Math.abs(D-I)>170&&(k[0]+=D>I?360:-360)}),M.__globeObjType="hexbin",M}function T(C,M){var D=function(K,se,ae){return K-(K-se)*ae},k=Math.max(0,Math.min(1,+c(M))),I=vs(C.__hexCenter,2),L=I[0],O=I[1],B=k===0?C.__hexGeoJson:C.__hexGeoJson.map(function(X){var K=vs(X,2),se=K[0],ae=K[1];return[[se,O],[ae,L]].map(function(J){var oe=vs(J,2),te=oe[0],he=oe[1];return D(te,he,k)})}),G=e.hexTopCurvatureResolution;C.geometry&&C.geometry.dispose(),C.geometry=new lW([B],0,ls,!1,!0,!0,G);var j={alt:+s(M)},z=function(K){var se=C.__currentTargetD=K,ae=se.alt;C.scale.x=C.scale.y=C.scale.z=1+ae;var J=ls/(ae+1);C.geometry.setAttribute("surfaceRadius",Tp(Array(C.geometry.getAttribute("position").count).fill(J),1))},Q=C.__currentTargetD||Object.assign({},j,{alt:-.001});if(Object.keys(j).some(function(X){return Q[X]!==j[X]})&&(e.hexBinMerge||!e.hexTransitionDuration||e.hexTransitionDuration<0?z(j):e.tweenGroup.add(new iu(Q).to(j,e.hexTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(z).onComplete(function(){e.tweenGroup.remove(this)}).start())),!e.hexBinMerge){var ee=l(M),Z=o(M);[ee,Z].forEach(function(X){if(!h.hasOwnProperty(X)){var K=Ih(X);h[X]=$Z(new CA.MeshLambertMaterial({color:Sp(X),transparent:K<1,opacity:K,side:CA.DoubleSide}),CH)}}),C.material=[ee,Z].map(function(X){return h[X]})}}}}),j4e=function(e){return e*e},zm=function(e){return e*Math.PI/180};function fvt(t,e){var n=Math.sqrt,r=Math.cos,i=function(u){return j4e(Math.sin(u/2))},a=zm(t[1]),s=zm(e[1]),o=zm(t[0]),l=zm(e[0]);return 2*Math.asin(n(i(s-a)+r(a)*r(s)*i(l-o)))}var dvt=Math.sqrt(2*Math.PI);function hvt(t,e){return Math.exp(-j4e(t/e)/2)/(e*dvt)}var pvt=function(e){var n=vs(e,2),r=n[0],i=n[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=s.lngAccessor,l=o===void 0?function(w){return w[0]}:o,c=s.latAccessor,u=c===void 0?function(w){return w[1]}:c,f=s.weightAccessor,h=f===void 0?function(){return 1}:f,p=s.bandwidth,A=[r,i],g=p*Math.PI/180;return rit(a.map(function(w){var T=h(w);if(!T)return 0;var C=fvt(A,[l(w),u(w)]);return hvt(C,g)*T}))},mvt=(function(){var t=Hxt(EH().m(function e(n){var r,i,a,s,o,l,c,u,f,h,p,A,g,w,T,C,M,D,k,I,L,O,B,G,j,z,Q,ee,Z,X,K,se,ae,J,oe,te,he,me,de,Ae,Se=arguments,Re,Ne,Fe;return EH().w(function(Qe){for(;;)switch(Qe.n){case 0:if(i=Se.length>1&&Se[1]!==void 0?Se[1]:[],a=Se.length>2&&Se[2]!==void 0?Se[2]:{},s=a.lngAccessor,o=s===void 0?function(ge){return ge[0]}:s,l=a.latAccessor,c=l===void 0?function(ge){return ge[1]}:l,u=a.weightAccessor,f=u===void 0?function(){return 1}:u,h=a.bandwidth,(r=navigator)!==null&&r!==void 0&&r.gpu){Qe.n=1;break}return console.warn("WebGPU not enabled in browser. Please consider enabling it to improve performance."),Qe.a(2,n.map(function(ge){return pvt(ge,i,{lngAccessor:o,latAccessor:c,weightAccessor:f,bandwidth:h})}));case 1:return p=4,A=yxt,g=_xt,w=Pxt,T=Dxt,C=Ext,M=Mxt,D=bxt,k=Rxt,I=Nxt,L=Sxt,O=wxt,B=Txt,G=Cxt,j=T(new iN(new Float32Array(n.flat().map(zm)),2),"vec2",n.length),z=T(new iN(new Float32Array(i.map(function(ge){return[zm(o(ge)),zm(c(ge)),f(ge)]}).flat()),3),"vec3",i.length),Q=new iN(n.length,1),ee=T(Q,"float",n.length),Z=C(Math.PI),X=k(Z.mul(2)),K=function(Ie){return Ie.mul(Ie)},se=function(Ie){return K(I(Ie.div(2)))},ae=function(Ie,De){var Xe=C(Ie[1]),Ye=C(De[1]),Me=C(Ie[0]),lt=C(De[0]);return C(2).mul(O(k(se(Ye.sub(Xe)).add(L(Xe).mul(L(Ye)).mul(se(lt.sub(Me)))))))},J=function(Ie,De){return B(G(K(Ie.div(De)).div(2))).div(De.mul(X))},oe=w(zm(h)),te=w(zm(h*p)),he=w(i.length),me=A(function(){var ge=j.element
5097(M),Ie=ee.element(M);Ie.assign(0),D(he,function(De){var Xe=De.i,Ye=z.element(Xe),Me=Ye.z;g(Me,function(){var lt=ae(Ye.xy,ge.xy);g(lt&<.lessThan(te),function(){Ie.addAssign(J(lt,oe).mul(Me))})})})}),de=me().compute(n.length),Ae=new M4e,Qe.n=2,Ae.computeAsync(de);case 2:return Re=Array,Ne=Float32Array,Qe.n=3,Ae.getArrayBufferAsync(Q);case 3:return Fe=Qe.v,Qe.a(2,Re.from.call(Re,new Ne(Fe)))}},e)}));return function(n){return t.apply(this,arguments)}})(),RC=window.THREE?window.THREE:{Mesh:ea,MeshLambertMaterial:G2,SphereGeometry:Fp},Avt=3.5,gvt=.1,roe=100,xvt=function(e){var n=xy(Wct(e));return n.opacity=Math.cbrt(e),n.formatRgb()},H4e=Ml({props:{heatmapsData:{default:[]},heatmapPoints:{default:function(e){return e}},heatmapPointLat:{default:function(e){return e[0]}},heatmapPointLng:{default:function(e){return e[1]}},heatmapPointWeight:{default:1},heatmapBandwidth:{default:2.5},heatmapColorFn:{default:function(){return xvt}},heatmapColorSaturation:{default:1.5},heatmapBaseAltitude:{default:.01},heatmapTopAltitude:{},heatmapsTransitionDuration:{default:0,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjHeatmap"}).onCreateObj(function(){var a=new RC.Mesh(new RC.SphereGeometry(ls),$Z(new RC.MeshLambertMaterial({vertexColors:!0,transparent:!0}),ovt));return a.__globeObjType="heatmap",a})},update:function(e){var n=un(e.heatmapPoints),r=un(e.heatmapPointLat),i=un(e.heatmapPointLng),a=un(e.heatmapPointWeight),s=un(e.heatmapBandwidth),o=un(e.heatmapColorFn),l=un(e.heatmapColorSaturation),c=un(e.heatmapBaseAltitude),u=un(e.heatmapTopAltitude);e.dataMapper.onUpdateObj(function(f,h){var p=s(h),A=o(h),g=l(h),w=c(h),T=u(h),C=n(h).map(function(L){var O=r(L),B=i(L),G=Ed(O,B),j=G.x,z=G.y,Q=G.z;return{x:j,y:z,z:Q,lat:O,lng:B,weight:a(L)}}),M=Math.max(gvt,p/Avt),D=Math.ceil(360/(M||-1));f.geometry.parameters.widthSegments!==D&&(f.geometry.dispose(),f.geometry=new RC.SphereGeometry(ls,D,D/2));var k=svt(f.geometry.getAttribute("position")),I=k.map(function(L){var O=vs(L,3),B=O[0],G=O[1],j=O[2],z=O4e({x:B,y:G,z:j}),Q=z.lng,ee=z.lat;return[Q,ee]});mvt(I,C,{latAccessor:function(O){return O.lat},lngAccessor:function(O){return O.lng},weightAccessor:function(O){return O.weight},bandwidth:p}).then(function(L){var O=Ua(new Array(roe)).map(function(z,Q){return Kg(A(Q/(roe-1)))}),B=function(Q){var ee=f.__currentTargetD=Q,Z=ee.kdeVals,X=ee.topAlt,K=ee.saturation,se=eit(Z.map(Math.abs))||1e-15,ae=B2e([0,se/K],O);f.geometry.setAttribute("color",Tp(Z.map(function(oe){return ae(Math.abs(oe))}),4));var J=T2([0,se],[ls*(1+w),ls*(1+(X||w))]);f.geometry.setAttribute("r",Tp(Z.map(J)))},G={kdeVals:L,topAlt:T,saturation:g},j=f.__currentTargetD||Object.assign({}
5097,G,{kdeVals:L.map(function(){return 0}),topAlt:T&&w,saturation:.5});j.kdeVals.length!==L.length&&(j.kdeVals=L.slice()),Object.keys(G).some(function(z){return j[z]!==G[z]})&&(!e.heatmapsTransitionDuration||e.heatmapsTransitionDuration<0?B(G):e.tweenGroup.add(new iu(j).to(G,e.heatmapsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(B).onComplete(function(){e.tweenGroup.remove(this)}).start()))})}).digest(e.heatmapsData)}}),NA=window.THREE?window.THREE:{DoubleSide:Zs,Group:y0,LineBasicMaterial:p6,LineSegments:qme,Mesh:ea,MeshBasicMaterial:od},G4e=Ml({props:{polygonsData:{default:[]},polygonGeoJsonGeometry:{default:"geometry"},polygonSideColor:{default:function(){return"#ffffaa"}},polygonSideMaterial:{},polygonCapColor:{default:function(){return"#ffffaa"}},polygonCapMaterial:{},polygonStrokeColor:{},polygonAltitude:{default:.01},polygonCapCurvatureResolution:{default:5},polygonsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjPolygon"}).id(function(a){return a.id}).onCreateObj(function(){var a=new NA.Group;return a.__defaultSideMaterial=$Z(new NA.MeshBasicMaterial({side:NA.DoubleSide,depthWrite:!0}),CH),a.__defaultCapMaterial=new NA.MeshBasicMaterial({side:NA.DoubleSide,depthWrite:!0}),a.add(new NA.Mesh(void 0,[a.__defaultSideMaterial,a.__defaultCapMaterial])),a.add(new NA.LineSegments(void 0,new NA.LineBasicMaterial)),a.__globeObjType="polygon",a})},update:function(e){var n=un(e.polygonGeoJsonGeometry),r=un(e.polygonAltitude),i=un(e.polygonCapCurvatureResolution),a=un(e.polygonCapColor),s=un(e.polygonCapMaterial),o=un(e.polygonSideColor),l=un(e.polygonSideMaterial),c=un(e.polygonStrokeColor),u=[];e.polygonsData.forEach(function(f){var h={data:f,capColor:a(f),capMaterial:s(f),sideColor:o(f),sideMaterial:l(f),strokeColor:c(f),altitude:+r(f),capCurvatureResolution:+i(f)},p=n(f),A=f.__id||"".concat(Math.round(Math.random()*1e9));f.__id=A,p.type==="Polygon"?u.push(Ta({id:"".concat(A,"_0"),coords:p.coordinates},h)):p.type==="MultiPolygon"?u.push.apply(u,Ua(p.coordinates.map(function(g,w){return Ta({id:"".concat(A,"_").concat(w),coords:g},h)}))):console.warn("Unsupported GeoJson geometry type: ".concat(p.type,". Skipping geometry..."))}),e.dataMapper.onUpdateObj(function(f,h){var p=h.coords,A=h.capColor,g=h.capMaterial,w=h.sideColor,T=h.sideMaterial,C=h.strokeColor,M=h.altitude,D=h.capCurvatureResolution,k=vs(f.children,2),I=k[0],L=k[1],O=!!C;L.visible=O;var B=!!(A||g),G=!!(w||T);vvt(I.geometry.parameters||{},{polygonGeoJson:p,curvatureResolution:D,closedTop:B,includeSides:G})||(I.geometry&&I.geometry.dispose(),I.geometry=new lW(p,0,ls,!1,B,G,D)),O&&(!L.geometry.parameters||L.geometry.parameters.geoJson.coordinates!==p||L.geometry.parameters.resolution!==D)&&(L.geometry&&L.geometry.dispose(),L.geometry=new gAe({type:"Polygon",coordinates:p},ls,D));var j=G?0:-1,z=B?G?1:0:-1;if(j>=0&&(I.material[j]=T||f.__defaultSideMaterial),z>=0&&(I.material[z]=g||f.__defaultCapMaterial),[[!T&&w,j],[!g&&A,z]].forEach(function(se){var ae=vs(se,2),J=ae[0],oe=ae[1];if(!(!J||oe<0)){var te=I.material[oe],he=Ih(J);te.color.set(Sp(J)),te.transparent=he<1,te.opacity=he}}),O){var Q=L.material,ee=Ih(C);Q.color.set(Sp(C)),Q.transparent=ee<1,Q.opacity=ee}var Z={alt:M},X=function(ae){var J=f.__currentTargetD=ae,oe=J.alt;I.scale.x=I.scale.y=I.scale.z=1+oe,O&&(L.scale.x=L.scale.y=L.scale.z=1+oe+1e-4),lvt(f.__defaultSideMaterial,function(te){return te.uSurfaceRadius.value=ls/(oe+1)})},K=f.__currentTargetD||Object.assign({},Z,{alt:-.001});Object.keys(Z).some(function(se){return K[se]!==Z[se]})&&(!e.polygonsTransitionDuration||e.polygonsTransitionDuration<0||K.alt===Z.alt?X(Z):e.tweenGroup.add(new iu(K).to(Z,e.polygonsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(X).onComplete(function(){e.tweenGroup.remove(this)}).start()))}).digest(u)}});function vvt(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return function(r,i){return r===i}};return Object.entries(e).every(function(r){var i=vs(r,2),a=i[0],s=i[1];
5097return t.hasOwnProperty(a)&&n(a)(t[a],s)})}var g8=window.THREE?window.THREE:{BufferGeometry:da,DoubleSide:Zs,Mesh:ea,MeshLambertMaterial:G2,Vector3:Pe},ioe=Object.assign({},rW),aoe=ioe.BufferGeometryUtils||ioe,z4e=Ml({props:{hexPolygonsData:{default:[]},hexPolygonGeoJsonGeometry:{default:"geometry"},hexPolygonColor:{default:function(){return"#ffffaa"}},hexPolygonAltitude:{default:.001},hexPolygonResolution:{default:3},hexPolygonMargin:{default:.2},hexPolygonUseDots:{default:!1},hexPolygonCurvatureResolution:{default:5},hexPolygonDotResolution:{default:12},hexPolygonsTransitionDuration:{default:0,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjHexPolygon"}).onCreateObj(function(){var a=new g8.Mesh(void 0,new g8.MeshLambertMaterial({side:g8.DoubleSide}));return a.__globeObjType="hexPolygon",a})},update:function(e){var n=un(e.hexPolygonGeoJsonGeometry),r=un(e.hexPolygonColor),i=un(e.hexPolygonAltitude),a=un(e.hexPolygonResolution),s=un(e.hexPolygonMargin),o=un(e.hexPolygonUseDots),l=un(e.hexPolygonCurvatureResolution),c=un(e.hexPolygonDotResolution);e.dataMapper.onUpdateObj(function(u,f){var h=n(f),p=a(f),A=i(f),g=Math.max(0,Math.min(1,+s(f))),w=o(f),T=l(f),C=c(f),M=r(f),D=Ih(M);u.material.color.set(Sp(M)),u.material.transparent=D<1,u.material.opacity=D;var k={alt:A,margin:g,curvatureResolution:T},I={geoJson:h,h3Res:p},L=u.__currentTargetD||Object.assign({},k,{alt:-.001}),O=u.__currentMemD||I;if(Object.keys(k).some(function(z){return L[z]!==k[z]})||Object.keys(I).some(function(z){return O[z]!==I[z]})){u.__currentMemD=I;var B=[];h.type==="Polygon"?vae(h.coordinates,p,!0).forEach(function(z){return B.push(z)}):h.type==="MultiPolygon"?h.coordinates.forEach(function(z){return vae(z,p,!0).forEach(function(Q){return B.push(Q)})}):console.warn("Unsupported GeoJson geometry type: ".concat(h.type,". Skipping geometry..."));var G=B.map(function(z){var Q=FAe(z),ee=IAe(z,!0).reverse(),Z=Q[1];return ee.forEach(function(X){var K=X[0];Math.abs(Z-K)>170&&(X[0]+=Z>K?360:-360)}),{h3Idx:z,hexCenter:Q,hexGeoJson:ee}}),j=function(Q){var ee=u.__currentTargetD=Q,Z=ee.alt,X=ee.margin,K=ee.curvatureResolution;u.geometry&&u.geometry.dispose(),u.geometry=G.length?(aoe.mergeGeometries||aoe.mergeBufferGeometries)(G.map(function(se){var ae=vs(se.hexCenter,2),J=ae[0],oe=ae[1];if(w){var te=Ed(J,oe,Z),he=Ed(se.hexGeoJson[0][1],se.hexGeoJson[0][0],Z),me=.85*(1-X)*new g8.Vector3(te.x,te.y,te.z).distanceTo(new g8.Vector3(he.x,he.y,he.z)),de=new WP(me,C);return de.rotateX(hv(-J)),de.rotateY(hv(oe)),de.translate(te.x,te.y,te.z),de}else{var Ae=function(Ne,Fe,Qe){return Ne-(Ne-Fe)*Qe},Se=X===0?se.hexGeoJson:se.hexGeoJson.map(function(Re){var Ne=vs(Re,2),Fe=Ne[0],Qe=Ne[1];return[[Fe,oe],[Qe,J]].map(function(ge){var Ie=vs(ge,2),De=Ie[0],Xe=Ie[1];return Ae(De,Xe,X)})});return new lW([Se],ls,ls*(1+Z),!1,!0,!1,K)}})):new g8.BufferGeometry};!e.hexPolygonsTransitionDuration||e.hexPolygonsTransitionDuration<0?j(k):e.tweenGroup.add(new iu(L).to(k,e.hexPolygonsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(j).onComplete(function(){e.tweenGroup.remove(this)}).start())}}).digest(e.hexPolygonsData)}}),yvt=window.THREE?window.THREE:{Vector3:Pe};function _vt(t,e){var n=function(s,o){var l=s[s.length-1];return[].concat(Ua(s),Ua(Array(o-s.length).fill(l)))},r=Math.max(t.length,e.length),i=vit.apply(void 0,Ua([t,e].map(function(a){return a.map(function(s){var o=s.x,l=s.y,c=s.z;return[o,l,c]})}).map(function(a){return n(a,r)})));return function(a){return a===0?t:a===1?e:i(a).map(function(s){var o=vs(s,3),l=o[0],c=o[1],u=o[2];return new yvt.Vector3(l,c,u)})}}var Qx=window.THREE?window.THREE:{BufferGeometry:da,Color:Xn,Group:y0,Line:qP,NormalBlending:Hl,ShaderMaterial:ru,Vector3:Pe},bvt=R_.default||R_,$4e=Ml({props:{pathsData:{default:[]},pathPoints:{default:function(e){return e}},pathPointLat:{default:function(e){return e[0]}},pathPointLng:{default:function(e){return e[1]}},pathPointAlt:{default:.001},pathResolution:{default:2},pathColor:{default:function(){return"#ffffaa"}},pathStroke:{},pathDashLength:{default:1},pathDashGap:{default:0},pathDashInitialGap:{default:0},pathDashAnimateTime:{default:0},pathTransitionDuration:{default:1e3,triggerUpdate:!1},rendererSize:{}},methods:{pauseAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.pause()},resumeAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.resume()},_destructor:function(e){var n;(n=e.ticker)===null||n===void 0||n.dispose()}},stateInit:function(e){var n=e.tweenGroup;return{tweenGroup:n,ticker:new bvt,sharedMaterial:new Qx.ShaderMaterial(Ta(Ta({},B4e()),{},{transparent:!0,blending:Qx.NormalBlending}))}},init:function(e,n){Ks(e),n.scene=e,n.dataMapper=new F0(e,{objBindAttr:"__threeObjPath"}).onCreateObj(function(){var r=new Qx.Group;
5097return r.__globeObjType="path",r}),n.ticker.onTick.add(function(r,i){n.dataMapper.entries().map(function(a){var s=vs(a,2),o=s[1];return o}).filter(function(a){return a.children.length&&a.children[0].material&&a.children[0].__dashAnimateStep}).forEach(function(a){var s=a.children[0],o=s.__dashAnimateStep*i;if(s.type==="Line"){var l=s.material.uniforms.dashTranslate.value%1e9;s.material.uniforms.dashTranslate.value=l+o}else if(s.type==="Line2"){for(var c=s.material.dashOffset-o,u=s.material.dashSize+s.material.gapSize;c<=-u;)c+=u;s.material.dashOffset=c}})})},update:function(e){var n=un(e.pathPoints),r=un(e.pathPointLat),i=un(e.pathPointLng),a=un(e.pathPointAlt),s=un(e.pathStroke),o=un(e.pathColor),l=un(e.pathDashLength),c=un(e.pathDashGap),u=un(e.pathDashInitialGap),f=un(e.pathDashAnimateTime);e.dataMapper.onUpdateObj(function(w,T){var C=s(T),M=C!=null;if(!w.children.length||M===(w.children[0].type==="Line")){Ks(w);var D=M?new Fxt(new N4e,new HZ):new Qx.Line(new Qx.BufferGeometry,e.sharedMaterial.clone());w.add(D)}var k=w.children[0],I=p(n(T),r,i,a,e.pathResolution),L=f(T);if(k.__dashAnimateStep=L>0?1e3/L:0,M){k.material.resolution=e.rendererSize;{var G=l(T),j=c(T),z=u(T);k.material.dashed=j>0,k.material.dashed?k.material.defines.USE_DASH="":delete k.material.defines.USE_DASH,k.material.dashed&&(k.material.dashScale=1/h(I),k.material.dashSize=G,k.material.gapSize=j,k.material.dashOffset=-z)}{var Q=o(T);if(Q instanceof Array){var ee=A(o(T),I.length-1,1,!1);k.geometry.setColors(ee.array),k.material.vertexColors=!0}else{var Z=Q,X=Ih(Z);k.material.color=new Qx.Color(Sp(Z)),k.material.transparent=X<1,k.material.opacity=X,k.material.vertexColors=!1}}k.material.needsUpdate=!0}else{Object.assign(k.material.uniforms,{dashSize:{value:l(T)},gapSize:{value:c(T)},dashOffset:{value:u(T)}});var O=A(o(T),I.length),B=g(I.length,1,!0);k.geometry.setAttribute("color",O),k.geometry.setAttribute("relDistance",B)}var K=_vt(w.__currentTargetD&&w.__currentTargetD.points||[I[0]],I),se=function(te){var he=w.__currentTargetD=te,me=he.stroke,de=he.interpolK,Ae=w.__currentTargetD.points=K(de);if(M){var Se;k.geometry.setPositions((Se=[]).concat.apply(Se,Ua(Ae.map(function(Re){var Ne=Re.x,Fe=Re.y,Qe=Re.z;return[Ne,Fe,Qe]})))),k.material.linewidth=me,k.material.dashed&&k.computeLineDistances()}else k.geometry.setFromPoints(Ae),k.geometry.computeBoundingSphere()},ae={stroke:C,interpolK:1},J=Object.assign({},w.__currentTargetD||ae,{interpolK:0});Object.keys(ae).some(function(oe){return J[oe]!==ae[oe]})&&(!e.pathTransitionDuration||e.pathTransitionDuration<0?se(ae):e.tweenGroup.add(new iu(J).to(ae,e.pathTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(se).onComplete(function(){e.tweenGroup.remove(this)}).start()))}).digest(e.pathsData);function h(w){var T=0,C;return w.forEach(function(M){C&&(T+=C.distanceTo(M)),C=M}),T}function p(w,T,C,M,D){var k=function(B,G,j){for(var z=[],Q=1;Q<=j;Q++)z.push(B+(G-B)*Q/(j+1));return z},I=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,j=[],z=null;return B.forEach(function(Q){if(z){for(;Math.abs(z[1]-Q[1])>180;)z[1]+=360*(z[1]<Q[1]?1:-1);var ee=Math.sqrt(Math.pow(Q[0]-z[0],2)+Math.pow(Q[1]-z[1],2));if(ee>G)for(var Z=Math.floor(ee/G),X=k(z[0],Q[0],Z),K=k(z[1],Q[1],Z),se=k(z[2],Q[2],Z),ae=0,J=X.length;ae<J;ae++)j.push([X[ae],K[ae],se[ae]])}j.push(z=Q)}),j},L=function(B){var G=vs(B,3),j=G[0],z=G[1],Q=G[2],ee=Ed(j,z,Q),Z=ee.x,X=ee.y,K=ee.z;return new Qx.Vector3(Z,X,K)};return I(w.map(function(O){return[T(O),C(O),M(O)]}),D).map(L)}function A(w,T){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,D=T+1,k;if(w instanceof Array||w instanceof Function){var I=w instanceof Array?T2().domain(w.map(function(Q,ee){return ee/(w.length-1)})).range(w):w;k=function(ee){return Kg(I(ee),M,!0)}}else{var L=Kg(w,M,!0);k=function(){return L}}for(var O=[],B=0,G=D;B<G;B++)for(var j=k(B/(G-1)),z=0;z<C;z++)O.push(j);return Tp(O,M?4:3)}function g(w){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,M=w+1,D=[],k=0,I=M;k<I;
vendor: 4,720 bytes, line 5097
5097k++)for(var L=k/(I-1),O=0;O<T;O++)D.push(L);return C&&D.reverse(),Tp(D,1)}}}),DC=window.THREE?window.THREE:{Euler:Sf,Mesh:ea,MeshLambertMaterial:G2,SphereGeometry:Fp},q4e=Ml({props:{tilesData:{default:[]},tileLat:{default:"lat"},tileLng:{default:"lng"},tileAltitude:{default:.01},tileWidth:{default:1},tileHeight:{default:1},tileUseGlobeProjection:{default:!0},tileMaterial:{default:function(){return new DC.MeshLambertMaterial({color:"#ffbb88",opacity:.4,transparent:!0})}},tileCurvatureResolution:{default:5},tilesTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjTile"}).onCreateObj(function(){var a=new DC.Mesh;return a.__globeObjType="tile",a})},update:function(e){var n=un(e.tileLat),r=un(e.tileLng),i=un(e.tileAltitude),a=un(e.tileWidth),s=un(e.tileHeight),o=un(e.tileUseGlobeProjection),l=un(e.tileMaterial),c=un(e.tileCurvatureResolution);e.dataMapper.onUpdateObj(function(u,f){u.material=l(f);var h=o(f),p=c(f),A=function(C){var M=u.__currentTargetD=C,D=M.lat,k=M.lng,I=M.alt,L=M.width,O=M.height,B=x8(k),G=x8(-D);u.geometry&&u.geometry.dispose(),u.geometry=new DC.SphereGeometry(ls*(1+I),Math.ceil(L/(p||-1)),Math.ceil(O/(p||-1)),x8(90-L/2)+(h?B:0),x8(L),x8(90-O/2)+(h?G:0),x8(O)),h||u.setRotationFromEuler(new DC.Euler(G,B,0,"YXZ"))},g={lat:+n(f),lng:+r(f),alt:+i(f),width:+a(f),height:+s(f)},w=u.__currentTargetD||Object.assign({},g,{width:0,height:0});Object.keys(g).some(function(T){return w[T]!==g[T]})&&(!e.tilesTransitionDuration||e.tilesTransitionDuration<0?A(g):e.tweenGroup.add(new iu(w).to(g,e.tilesTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(A).onComplete(function(){e.tweenGroup.remove(this)}).start()))}).digest(e.tilesData)}}),x8=function(e){return e*Math.PI/180},uw=window.THREE?window.THREE:{BufferGeometry:da,Color:Xn,Points:FXe,PointsMaterial:Lq},W4e=Ml({props:{particlesData:{default:[]},particlesList:{default:function(e){return e}},particleLat:{default:"lat"},particleLng:{default:"lng"},particleAltitude:{default:.01},particlesSize:{default:.5},particlesSizeAttenuation:{default:!0},particlesColor:{default:function(){return"white"}},particlesTexture:{}},init:function(e,n){Ks(e),n.scene=e,n.dataMapper=new F0(e,{objBindAttr:"__threeObjParticles"}).onCreateObj(function(){var r=new uw.Points(new uw.BufferGeometry,new uw.PointsMaterial);return r.__globeObjType="particles",r}).onUpdateObj(function(r,i){var a=un(n.particlesList),s=un(n.particleLat),o=un(n.particleLng),l=un(n.particleAltitude);r.geometry.setAttribute("position",Tp(a(i).map(function(c){return Object.values(Ed(s(c),o(c),l(c)))}),3))})},update:function(e,n){["particlesData","particlesList","particleLat","particleLng","particleAltitude"].some(function(o){return n.hasOwnProperty(o)})&&e.dataMapper.digest(e.particlesData);var r=un(e.particlesColor),i=un(e.particlesSize),a=un(e.particlesSizeAttenuation),s=un(e.particlesTexture);e.dataMapper.entries().forEach(function(o){var l=vs(o,2),c=l[0],u=l[1];if(u.material.size=i(c),u.material.sizeAttenuation=a(c),e.particlesTexture)u.material.color=new uw.Color(16777215),u.material.transparent=!1,u.material.alphaTest=.5,u.material.map=s(c);else{var f=r(c),h=Ih(f);u.material.color=new uw.Color(Sp(f)),u.material.transparent=h<1,u.material.opacity=h,u.material.alphaTest=0}})}}),wvt=window.THREE?window.THREE:{BufferGeometry:da},Svt=(function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:32;kk(this,e),n=Pk(this,e),n.type="CircleLineGeometry",n.parameters={radius:r,segmentCount:i};for(var a=[],s=0;s<=i;s++){var o=(s/i-.25)*Math.PI*2;a.push({x:Math.cos(o)*r,y:Math.sin(o)*r,z:0})}return n.setFromPoints(a),n}return Ok(e,t),Lk(e)})(wvt.BufferGeometry),v8=window.THREE?window.THREE:{Color:Xn,Group:y0,Line:qP,LineBasicMaterial:p6,Vector3:Pe},Tvt=R_.default||R_,Z4e=Ml({props:{ringsData:{default:[]},ringLat:{default:"lat"},ringLng:{default:"lng"},ringAltitude:{default:.0015},ringColor:{default:function(){return"#ffffaa"},triggerUpdate:!1},ringResolution:{default:64,triggerUpdate:!1},ringMaxRadius:{default:2,triggerUpdate:!1},ringPropagationSpeed:{default:1,triggerUpdate:!1},ringRepeatPeriod:{default:700,triggerUpdate:!1}},methods:{pauseAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.pause()},resumeAnimation:function(e){var n;(n=e.ticker)===null||n===void 0||n.resume()},_destructor:function(e){var n;(n=e.ticker)===null||n===void 0||n.dispose()}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjRing",removeDelay:3e4}).onCreateObj(function(){var a=new v8.Group;
5097return a.__globeObjType="ring",a}),n.ticker=new Tvt,n.ticker.onTick.add(function(a){if(n.ringsData.length){var s=un(n.ringColor),o=un(n.ringAltitude),l=un(n.ringMaxRadius),c=un(n.ringPropagationSpeed),u=un(n.ringRepeatPeriod);n.dataMapper.entries().filter(function(f){var h=vs(f,2),p=h[1];return p}).forEach(function(f){var h=vs(f,2),p=h[0],A=h[1];if((A.__nextRingTime||0)<=a){var g=u(p)/1e3;A.__nextRingTime=a+(g<=0?1/0:g);var w=new v8.Line(new Svt(1,n.ringResolution),new v8.LineBasicMaterial),T=s(p),C=T instanceof Array||T instanceof Function,M;C?T instanceof Array?(M=T2().domain(T.map(function(j,z){return z/(T.length-1)})).range(T),w.material.transparent=T.some(function(j){return Ih(j)<1})):(M=T,w.material.transparent=!0):(w.material.color=new v8.Color(Sp(T)),avt(w.material,Ih(T)));var D=ls*(1+o(p)),k=l(p),I=k*Math.PI/180,L=c(p),O=L<=0,B=function(z){var Q=z.t,ee=(O?1-Q:Q)*I;if(w.scale.x=w.scale.y=D*Math.sin(ee),w.position.z=D*(1-Math.cos(ee)),C){var Z=M(Q);w.material.color=new v8.Color(Sp(Z)),w.material.transparent&&(w.material.opacity=Ih(Z))}};if(L===0)B({t:0}),A.add(w);else{var G=Math.abs(k/L)*1e3;n.tweenGroup.add(new iu({t:0}).to({t:1},G).onUpdate(B).onStart(function(){return A.add(w)}).onComplete(function(){n.tweenGroup.remove(this),A.remove(w),hg(w)}).start())}}})}})},update:function(e){var n=un(e.ringLat),r=un(e.ringLng),i=un(e.ringAltitude),a=e.scene.localToWorld(new v8.Vector3(0,0,0));e.dataMapper.onUpdateObj(function(s,o){var l=n(o),c=r(o),u=i(o);Object.assign(s.position,Ed(l,c,u)),s.lookAt(a)}).digest(e.ringsData)}}),Evt={0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},ο:{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "}
5097,"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},Τ:{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},Î :{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},Î:{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"â":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},Î:{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},Æ:{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},Ï:{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},Ï:{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "}
5097,"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"â":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},ÿ:{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},µ:{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},Î:{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},Î:{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"â":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},Î:{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},Ï:{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},Ψ:{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "}
5097,"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},ι:{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},Î:{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},ε:{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},Î:{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"â°":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"â":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},Ï:{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},Î:{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803
50971013 l 803 0 "},Î:{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"â¦":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},ν:{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},β:{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644
5097603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},Î:{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},Î:{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},Î:{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"â¢":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"Â¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},γ:{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},α:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"Â":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},Χ:{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"â ":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},Î:{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},Ϋ:{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},"â":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},Î:{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},Î:{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},Ï
:{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "}
5097,"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},Ï:{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},ί:{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},Î:{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"â¹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"â":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},δ:{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},Î:{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 43
50976 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},Ï:{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},Ï:{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},Ω:{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},Ï:{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"â¢":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},ή:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},Î:{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 28
50970 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},Î:{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},Ï:{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},ζ:{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},θ:{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},Î:{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},Î:{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 8
509710 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},Î:{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},Î:{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},Ϊ:{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},Ρ:{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},ª:{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"Î
":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},Φ:{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"â":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},Σ:{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},"âº":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},λ:{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},Ï:{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 43
50976 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},ξ:{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},Î:{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},ΰ:{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},Î¥:{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},μ:{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},Ï:{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"â":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},"â":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},Ï:{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257
5097-5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},Ï:{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},ά:{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "}
5097,"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},κ:{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"â¡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},Ï:{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},η:{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},Mvt="normal",Cvt=1189,Nvt=-100,Rvt="normal",Dvt={yMin:-334,xMin:-111,yMax:1189,xMax:1672},Pvt=1e3,kvt={postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Îagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Îagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:`Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r 5098\r 5099Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r 5100\r 5101The above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r 5102\r 5103The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r 5104\r 5105This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r 5106\r 5107The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r 5108\r 5109THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.`,manufacturer_name:"Îagenta ltd",font_sub_family_name:"Regular"},Lvt=-334,Ovt="Helvetiker",Fvt=1522,Ivt=50,Bvt={glyphs:Evt,cssFontWeight:Mvt,ascender:Cvt,underlinePosition:Nvt,cssFontStyle:Rvt,boundingBox:Dvt,resolution:Pvt,original_font_information:kvt,descender:Lvt,familyName:Ovt,lineHeight:Fvt,underlineThickness:Ivt},uh=Ta(Ta({},window.THREE?window.THREE:{BoxGeometry:lx,CircleGeometry:WP,DoubleSide:Zs,Group:y0,Mesh:ea,MeshLambertMaterial:G2,TextGeometry:AD,Vector3:Pe}),{},{Font:R4e,TextGeometry:AD}),Y4e=Ml({props:{labelsData:{default:[]},labelLat:{default:"lat"},labelLng:{default:"lng"},labelAltitude:{default:.002},labelText:{default:"text"},labelSize:{default:.5}
vendor: 10,494 bytes, line 5109
5109,labelTypeFace:{default:Bvt,onChange:function(e,n){n.font=new uh.Font(e)}},labelColor:{default:function(){return"lightgrey"}},labelRotation:{default:0},labelResolution:{default:3},labelIncludeDot:{default:!0},labelDotRadius:{default:.1},labelDotOrientation:{default:function(){return"bottom"}},labelsTransitionDuration:{default:1e3,triggerUpdate:!1}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i;var a=new uh.CircleGeometry(1,32);n.dataMapper=new F0(e,{objBindAttr:"__threeObjLabel"}).onCreateObj(function(){var s=new uh.MeshLambertMaterial;s.side=Zs;var o=new uh.Group;o.add(new uh.Mesh(a,s));var l=new uh.Mesh(void 0,s);o.add(l);var c=new uh.Mesh;return c.visible=!1,l.add(c),o.__globeObjType="label",o})},update:function(e){var n=un(e.labelLat),r=un(e.labelLng),i=un(e.labelAltitude),a=un(e.labelText),s=un(e.labelSize),o=un(e.labelRotation),l=un(e.labelColor),c=un(e.labelIncludeDot),u=un(e.labelDotRadius),f=un(e.labelDotOrientation),h=new Set(["right","top","bottom"]),p=2*Math.PI*ls/360;e.dataMapper.onUpdateObj(function(A,g){var w=vs(A.children,2),T=w[0],C=w[1],M=vs(C.children,1),D=M[0],k=l(g),I=Ih(k);C.material.color.set(Sp(k)),C.material.transparent=I<1,C.material.opacity=I;var L=c(g),O=f(g);!L||!h.has(O)&&(O="bottom");var B=L?+u(g)*p:1e-12;T.scale.x=T.scale.y=B;var G=+s(g)*p;if(C.geometry&&C.geometry.dispose(),C.geometry=new uh.TextGeometry(a(g),{font:e.font,size:G,depth:0,bevelEnabled:!0,bevelThickness:0,bevelSize:0,curveSegments:e.labelResolution}),D.geometry&&D.geometry.dispose(),C.geometry.computeBoundingBox(),D.geometry=GZ(uh.BoxGeometry,Ua(new uh.Vector3().subVectors(C.geometry.boundingBox.max,C.geometry.boundingBox.min).clampScalar(0,1/0).toArray())),O!=="right"&&C.geometry.center(),L){var j=B+G/2;O==="right"&&(C.position.x=j),C.position.y={right:-G/2,top:j+G/2,bottom:-j-G/2}[O]}var z=function(X){var K=A.__currentTargetD=X,se=K.lat,ae=K.lng,J=K.alt,oe=K.rot,te=K.scale;Object.assign(A.position,Ed(se,ae,J)),A.lookAt(e.scene.localToWorld(new uh.Vector3(0,0,0))),A.rotateY(Math.PI),A.rotateZ(-oe*Math.PI/180),A.scale.x=A.scale.y=A.scale.z=te},Q={lat:+n(g),lng:+r(g),alt:+i(g),rot:+o(g),scale:1},ee=A.__currentTargetD||Object.assign({},Q,{scale:1e-12});Object.keys(Q).some(function(Z){return ee[Z]!==Q[Z]})&&(!e.labelsTransitionDuration||e.labelsTransitionDuration<0?z(Q):e.tweenGroup.add(new iu(ee).to(Q,e.labelsTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(z).onComplete(function(){e.tweenGroup.remove(this)}).start()))}).digest(e.labelsData)}}),Uvt=Ta(Ta({},window.THREE?window.THREE:{}),{},{CSS2DObject:Gnt}),X4e=Ml({props:{htmlElementsData:{default:[]},htmlLat:{default:"lat"},htmlLng:{default:"lng"},htmlAltitude:{default:0},htmlElement:{},htmlElementVisibilityModifier:{triggerUpdate:!1},htmlTransitionDuration:{default:1e3,triggerUpdate:!1},isBehindGlobe:{onChange:function(){this.updateObjVisibility()},triggerUpdate:!1}},methods:{updateObjVisibility:function(e,n){if(e.dataMapper){var r=n?[n]:e.dataMapper.entries().map(function(i){var a=vs(i,2),s=a[1];return s}).filter(function(i){return i});r.forEach(function(i){var a=!e.isBehindGlobe||!e.isBehindGlobe(i.position);e.htmlElementVisibilityModifier?(i.visible=!0,e.htmlElementVisibilityModifier(i.element,a)):i.visible=a})}}},init:function(e,n,r){var i=r.tweenGroup;Ks(e),n.scene=e,n.tweenGroup=i,n.dataMapper=new F0(e,{objBindAttr:"__threeObjHtml"}).onCreateObj(function(a){var s=un(n.htmlElement)(a),o=new Uvt.CSS2DObject(s);return o.__globeObjType="html",o})},update:function(e,n){var r=this,i=un(e.htmlLat),a=un(e.htmlLng),s=un(e.htmlAltitude);n.hasOwnProperty("htmlElement")&&e.dataMapper.clear(),e.dataMapper.onUpdateObj(function(o,l){var c=function(h){var p=o.__currentTargetD=h,A=p.alt,g=p.lat,w=p.lng;Object.assign(o.position,Ed(g,w,A)),r.updateObjVisibility(o)},u={lat:+i(l),lng:+a(l),alt:+s(l)};!e.htmlTransitionDuration||e.htmlTransitionDuration<0||!o.__currentTargetD?c(u):e.tweenGroup.add(new iu(o.__currentTargetD).to(u,e.htmlTransitionDuration).easing(Xo.Quadratic.InOut).onUpdate(c).onComplete(function(){e.tweenGroup.remove(this)}).start())}).digest(e.htmlElementsData)}}),PC=window.THREE?window.THREE:{Group:y0,Mesh:ea,MeshLambertMaterial:G2,SphereGeometry:Fp},Q4e=Ml({props:{objectsData:{default:[]},objectLat:{default:"lat"},objectLng:{default:"lng"},objectAltitude:{default:.01},objectFacesSurface:{default:!0},objectRotation:{},objectThreeObject:{default:new PC.Mesh(new PC.SphereGeometry(1,16,8),new PC.MeshLambertMaterial({color:"#ffffaa",transparent:!0,opacity:.7}))}},init:function(e,n){Ks(e),n.scene=e,n.dataMapper=new F0(e,{objBindAttr:"__threeObjObject"}).onCreateObj(function(r){var i=un(n.objectThreeObject)(r);n.objectThreeObject===i&&(i=i.clone());var a=new PC.Group;return a.add(i),a.__globeObjType="object",a})},update:function(e,n){var r=un(e.objectLat),i=un(e.objectLng),a=un(e.objectAltitude),s=un(e.objectFacesSurface),o=un(e.objectRotation);n.hasOwnProperty("objectThreeObject")&&e.dataMapper.clear(),e.dataMapper.onUpdateObj(function(l,c){var u=+r(c),f=+i(c),h=+a(c);Object.assign(l.position,Ed(u,f,h)),s(c)?l.setRotationFromEuler(new Sf(hv(-u),hv(f),0,"YXZ")):l.rotation.set(0,0,0);var p=l.children[0],A=o(c);A&&p.setRotationFromEuler(new Sf(hv(A.x||0),hv(A.y||0),hv(A.z||0)))}).digest(e.objectsData)}}),K4e=Ml({props:{customLayerData:{default:[]},customThreeObject:{},customThreeObjectUpdate:{triggerUpdate:!1}},init:function(e,n){Ks(e),n.scene=e,n.dataMapper=new F0(e,{objBindAttr:"__threeObjCustom"}).onCreateObj(function(r){var i=un(n.customThreeObject)(r,ls);return i&&(n.customThreeObject===i&&(i=i.clone()),i.__globeObjType="custom"),i})},update:function(e,n){e.customThreeObjectUpdate||Ks(e.scene);var r=un(e.customThreeObjectUpdate);n.hasOwnProperty("customThreeObject")&&e.dataMapper.clear(),e.dataMapper.onUpdateObj(function(i,a){return r(i,a,ls)}).digest(e.customLayerData)}}),kC=window.THREE?window.THREE:{Camera:XP,Group:y0,Vector2:tn,Vector3:Pe},Vvt=["globeLayer","pointsLayer","arcsLayer","hexBinLayer","heatmapsLayer","polygonsLayer","hexedPolygonsLayer","pathsLayer","tilesLayer","particlesLayer","ringsLayer","labelsLayer","htmlElementsLayer","objectsLayer","customLayer"],J4e=Gu("globeLayer",F4e),jvt=Object.assign.apply(Object,Ua(["globeImageUrl","bumpImageUrl","globeCurvatureResolution","globeTileEngineUrl","globeTileEngineMaxLevel","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude"].map(function(t){return Zl({},t,J4e.linkProp(t))}))),Hvt=Object.assign.apply(Object,Ua(["globeMaterial","globeTileEngineClearCache"].map(function(t){return Zl({},t,J4e.linkMethod(t))}))),Gvt=Gu("pointsLayer",I4e),zvt=Object.assign.apply(Object,Ua(["pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration"].map(function(t){return Zl({},t,Gvt.linkProp(t))}))),$vt=Gu("arcsLayer",U4e),qvt=Object.assign.apply(Object,Ua(["arcsData","arcStartLat","arcStartLng","arcStartAltitude","arcEndLat","arcEndLng","arcEndAltitude","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration"].map(function(t){return Zl({},t,$vt.linkProp(t))}))),Wvt=Gu("hexBinLayer",V4e),Zvt=Object.assign.apply(Object,Ua(["hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinResolution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration"].map(function(t){return Zl({},t,Wvt.linkProp(t))}))),Yvt=Gu("heatmapsLayer",H4e),Xvt=Object.assign.apply(Object,Ua(["heatmapsData","heatmapPoints","heatmapPointLat","heatmapPointLng","heatmapPointWeight","heatmapBandwidth","heatmapColorFn","heatmapColorSaturation","heatmapBaseAltitude","heatmapTopAltitude","heatmapsTransitionDuration"].map(function(t){return Zl({},t,Yvt.linkProp(t))}))),Qvt=Gu("hexedPolygonsLayer",z4e),Kvt=Object.assign.apply(Object,Ua(["hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonUseDots","hexPolygonCurvatureResolution","hexPolygonDotResolution","hexPolygonsTransitionDuration"].map(function(t){return Zl({},t,Qvt.linkProp(t))}))),Jvt=Gu("polygonsLayer",G4e),eyt=Object.assign.apply(Object,Ua(["polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration"].map(function(t){return Zl({},t,Jvt.linkProp(t))}))),tyt=Gu("pathsLayer",$4e),nyt=Object.assign.apply(Object,Ua(["pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration"].map(function(t){return Zl({},t,tyt.linkProp(t))}))),ryt=Gu("tilesLayer",q4e),iyt=Object.assign.apply(Object,Ua(["tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration"].map(function(t){return Zl({},t,ryt.linkProp(t))}))),ayt=Gu("particlesLayer",W4e),syt=Object.assign.apply(Object,Ua(["particlesData","particlesList","particleLat","particleLng","particleAltitude","particlesSize","particlesSizeAttenuation","particlesColor","particlesTexture"].map(function(t){return Zl({},t,ayt.linkProp(t))}))),oyt=Gu("ringsLayer",Z4e),lyt=Object.assign.apply(Object,Ua(["ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod"].map(function(t){return Zl({},t,oyt.linkProp(t))}))),cyt=Gu("labelsLayer",Y4e),uyt=Object.assign.apply(Object,Ua(["labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration"].map(function(t){return Zl({},t,cyt.linkProp(t))}))),fyt=Gu("htmlElementsLayer",X4e),dyt=Object.assign.apply(Object,Ua(["htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlElementVisibilityModifier","htmlTransitionDuration"].map(function(t){return Zl({},t,fyt.linkProp(t))}))),hyt=Gu("objectsLayer",Q4e),pyt=Object.assign.apply(Object,Ua(["objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeOb
5109ject"].map(function(t){return Zl({},t,hyt.linkProp(t))}))),myt=Gu("customLayer",K4e),Ayt=Object.assign.apply(Object,Ua(["customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(t){return Zl({},t,myt.linkProp(t))}))),gyt=Ml({props:Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta(Ta({onGlobeReady:{triggerUpdate:!1},rendererSize:{default:new kC.Vector2(window.innerWidth,window.innerHeight),onChange:function(e,n){n.pathsLayer.rendererSize(e)},triggerUpdate:!1}},jvt),zvt),qvt),Zvt),Xvt),eyt),Kvt),nyt),iyt),syt),lyt),uyt),dyt),pyt),Ayt),methods:Ta({getGlobeRadius:Qse,getCoords:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ed.apply(void 0,r)},toGeoCoords:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O4e.apply(void 0,r)},setPointOfView:function(e,n){var r=n instanceof kC.Camera?n.position:n,i=Qse(),a=void 0;if(e.scene&&r){var s,o,l,c;a=function(f){s===void 0&&(s=r.clone().applyMatrix4(e.scene.matrixWorld.clone().invert())),o===void 0&&(o=s.length()),l===void 0&&(l=Math.sqrt(Math.pow(o,2)-Math.pow(i,2))),c===void 0&&(c=Math.acos(l/o));var h=s.distanceTo(f);if(h<l)return!1;var p=f.length(),A=Math.acos((Math.pow(o,2)+Math.pow(h,2)-Math.pow(p,2))/(2*o*h));return A<c}}e.layersThatNeedUpdatePov.forEach(function(u){return u.updatePov(n)}),e.layersThatNeedBehindGlobeChecker.forEach(function(u){return u.isBehindGlobe(a)})},pauseAnimation:function(e){return e.animationFrameRequestId!==null&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),e.pausableLayers.forEach(function(n){var r;return(r=n.pauseAnimation)===null||r===void 0?void 0:r.call(n)}),this},resumeAnimation:function(e){return e.animationFrameRequestId===null&&this._animationCycle(),e.pausableLayers.forEach(function(n){var r;return(r=n.resumeAnimation)===null||r===void 0?void 0:r.call(n)}),this},_animationCycle:function(e){e.animationFrameRequestId=requestAnimationFrame(this._animationCycle),e.tweenGroup.update()},_destructor:function(e){this.pauseAnimation(),e.destructableLayers.forEach(function(n){return n._destructor()})}},Hvt),stateInit:function(){var e=new JP,n={tweenGroup:e},r={globeLayer:F4e(n),pointsLayer:I4e(n),arcsLayer:U4e(n),hexBinLayer:V4e(n),heatmapsLayer:H4e(n),polygonsLayer:G4e(n),hexedPolygonsLayer:z4e(n),pathsLayer:$4e(n),tilesLayer:q4e(n),particlesLayer:W4e(n),ringsLayer:Z4e(n),labelsLayer:Y4e(n),htmlElementsLayer:X4e(n),objectsLayer:Q4e(n),customLayer:K4e(n)};return Ta(Ta({tweenGroup:e},r),{},{layersThatNeedUpdatePov:Object.values(r).filter(function(i){return i.hasOwnProperty("updatePov")}),layersThatNeedBehindGlobeChecker:Object.values(r).filter(function(i){return i.hasOwnProperty("isBehindGlobe")}),destructableLayers:Object.values(r).filter(function(i){return i.hasOwnProperty("_destructor")}),pausableLayers:Object.values(r).filter(function(i){return i.hasOwnProperty("pauseAnimation")})})},init:function(e,n,r){var i=r.animateIn,a=i===void 0?!0:i,s=r.waitForGlobeReady,o=s===void 0?!0:s;Ks(e),n.scene=e,n.scene.visible=!1,Vvt.forEach(function(c){var u=new kC.Group;n.scene.add(u),n[c](u)});var l=function(){if(a){n.scene.scale.set(1e-6,1e-6,1e-6),n.tweenGroup.add(new iu({k:1e-6}).to({k:1},600).easing(Xo.Quadratic.Out).onUpdate(function(f){var h=f.k;return n.scene.scale.set(h,h,h)}).onComplete(function(){n.tweenGroup.remove(this)}).start());var u=new kC.Vector3(0,1,0);n.tweenGroup.add(new iu({rot:Math.PI*2}).to({rot:0},1200).easing(Xo.Quintic.Out).onUpdate(function(f){var h=f.rot;return n.scene.setRotationFromAxisAngle(u,h)}).onComplete(function(){n.tweenGroup.remove(this)}).start())}n.scene.visible=!0,n.onGlobeReady&&n.onGlobeReady()};o?n.globeLayer.onReady(l):l(),this._animationCycle()},update:function(e){}});function xyt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Object,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=(function(i){function a(){var s;kk(this,a);for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return s=Pk(this,a,[].concat(l)),s.__kapsuleInstance=GZ(t,[].concat(Ua(n?[s]:[]),l)),s}return Ok(a,i),Lk(a)})(e);
5109return Object.keys(t()).forEach(function(i){return r.prototype[i]=function(){var a,s=(a=this.__kapsuleInstance)[i].apply(a,arguments);return s===this.__kapsuleInstance?this:s}}),r}var vyt=window.THREE?window.THREE:{Group:y0},e8e=xyt(gyt,vyt.Group,!0);const zB={type:"change"},qZ={type:"start"},WZ={type:"end"},soe=1e-6,ya={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4},LC=new tn,RA=new tn,yyt=new Pe,OC=new Pe,$B=new Pe,y8=new bd,ooe=new Pe,FC=new Pe,qB=new Pe,IC=new Pe;class _yt extends zq{constructor(e,n=null){super(e,n),this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:xd.ROTATE,MIDDLE:xd.DOLLY,RIGHT:xd.PAN},this.target=new Pe,this.state=ya.NONE,this.keyState=ya.NONE,this._lastPosition=new Pe,this._lastZoom=1,this._touchZoomDistanceStart=0,this._touchZoomDistanceEnd=0,this._lastAngle=0,this._eye=new Pe,this._movePrev=new tn,this._moveCurr=new tn,this._lastAxis=new Pe,this._zoomStart=new tn,this._zoomEnd=new tn,this._panStart=new tn,this._panEnd=new tn,this._pointers=[],this._pointerPositions={},this._onPointerMove=wyt.bind(this),this._onPointerDown=byt.bind(this),this._onPointerUp=Syt.bind(this),this._onPointerCancel=Tyt.bind(this),this._onContextMenu=Pyt.bind(this),this._onMouseWheel=Dyt.bind(this),this._onKeyDown=Myt.bind(this),this._onKeyUp=Eyt.bind(this),this._onTouchStart=kyt.bind(this),this._onTouchMove=Lyt.bind(this),this._onTouchEnd=Oyt.bind(this),this._onMouseDown=Cyt.bind(this),this._onMouseMove=Nyt.bind(this),this._onMouseUp=Ryt.bind(this),this._target0=this.target.clone(),this._position0=this.object.position.clone(),this._up0=this.object.up.clone(),this._zoom0=this.object.zoom,n!==null&&(this.connect(n),this.handleResize()),this.update()}connect(e){super.connect(e),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="none"}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction=""}dispose(){this.disconnect()}handleResize(){const e=this.domElement.getBoundingClientRect(),n=this.domElement.ownerDocument.documentElement;this.screen.left=e.left+window.pageXOffset-n.clientLeft,this.screen.top=e.top+window.pageYOffset-n.clientTop,this.screen.width=e.width,this.screen.height=e.height}update(){this._eye.subVectors(this.object.position,this.target),this.noRotate||this._rotateCamera(),this.noZoom||this._zoomCamera(),this.noPan||this._panCamera(),this.object.position.addVectors(this.target,this._eye),this.object.isPerspectiveCamera?(this._checkDistances(),this.object.lookAt(this.target),this._lastPosition.distanceToSquared(this.object.position)>soe&&(this.dispatchEvent(zB),this._lastPosition.copy(this.object.position))):this.object.isOrthographicCamera?(this.object.lookAt(this.target),(this._lastPosition.distanceToSquared(this.object.position)>soe||this._lastZoom!==this.object.zoom)&&(this.dispatchEvent(zB),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type.")}reset(){this.state=ya.NONE,this.keyState=ya.NONE,this.target.copy(this._target0),this.object.position.copy(this._position0),this.object.up.copy(this._up0),this.object.zoom=this._zoom0,this.object.updateProjectionMatrix(),this._eye.subVectors(this.object.position,this.target),this.object.lookAt(this.target),this.dispatchEvent(zB),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom}_panCamera(){if(RA.copy(this._panEnd).sub(this._panStart),RA.lengthSq()){if(this.object.isOrthographicCamera){const e=(this.object.right-this.object.left)/this.object.zoom/this.domElement.clientWidth,n=(this.object.top-this.object.bottom)/this.object.zoom/this.domElement.clientWidth;RA.x*=e,RA.y*=n}
5109RA.multiplyScalar(this._eye.length()*this.panSpeed),OC.copy(this._eye).cross(this.object.up).setLength(RA.x),OC.add(yyt.copy(this.object.up).setLength(RA.y)),this.object.position.add(OC),this.target.add(OC),this.staticMoving?this._panStart.copy(this._panEnd):this._panStart.add(RA.subVectors(this._panEnd,this._panStart).multiplyScalar(this.dynamicDampingFactor))}}_rotateCamera(){IC.set(this._moveCurr.x-this._movePrev.x,this._moveCurr.y-this._movePrev.y,0);let e=IC.length();e?(this._eye.copy(this.object.position).sub(this.target),ooe.copy(this._eye).normalize(),FC.copy(this.object.up).normalize(),qB.crossVectors(FC,ooe).normalize(),FC.setLength(this._moveCurr.y-this._movePrev.y),qB.setLength(this._moveCurr.x-this._movePrev.x),IC.copy(FC.add(qB)),$B.crossVectors(IC,this._eye).normalize(),e*=this.rotateSpeed,y8.setFromAxisAngle($B,e),this._eye.applyQuaternion(y8),this.object.up.applyQuaternion(y8),this._lastAxis.copy($B),this._lastAngle=e):!this.staticMoving&&this._lastAngle&&(this._lastAngle*=Math.sqrt(1-this.dynamicDampingFactor),this._eye.copy(this.object.position).sub(this.target),y8.setFromAxisAngle(this._lastAxis,this._lastAngle),this._eye.applyQuaternion(y8),this.object.up.applyQuaternion(y8)),this._movePrev.copy(this._moveCurr)}_zoomCamera(){let e;this.state===ya.TOUCH_ZOOM_PAN?(e=this._touchZoomDistanceStart/this._touchZoomDistanceEnd,this._touchZoomDistanceStart=this._touchZoomDistanceEnd,this.object.isPerspectiveCamera?this._eye.multiplyScalar(e):this.object.isOrthographicCamera?(this.object.zoom=b_.clamp(this.object.zoom/e,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(e=1+(this._zoomEnd.y-this._zoomStart.y)*this.zoomSpeed,e!==1&&e>0&&(this.object.isPerspectiveCamera?this._eye.multiplyScalar(e):this.object.isOrthographicCamera?(this.object.zoom=b_.clamp(this.object.zoom/e,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),this.staticMoving?this._zoomStart.copy(this._zoomEnd):this._zoomStart.y+=(this._zoomEnd.y-this._zoomStart.y)*this.dynamicDampingFactor)}_getMouseOnScreen(e,n){return LC.set((e-this.screen.left)/this.screen.width,(n-this.screen.top)/this.screen.height),LC}_getMouseOnCircle(e,n){return LC.set((e-this.screen.width*.5-this.screen.left)/(this.screen.width*.5),(this.screen.height+2*(this.screen.top-n))/this.screen.width),LC}_addPointer(e){this._pointers.push(e)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let n=0;n<this._pointers.length;n++)if(this._pointers[n].pointerId==e.pointerId){this._pointers.splice(n,1);return}}_trackPointer(e){let n=this._pointerPositions[e.pointerId];n===void 0&&(n=new tn,this._pointerPositions[e.pointerId]=n),n.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const n=e.pointerId===this._pointers[0].pointerId?this._pointers[1]:this._pointers[0];return this._pointerPositions[n.pointerId]}_checkDistances(){(!this.noZoom||!this.noPan)&&(this._eye.lengthSq()>this.maxDistance*this.maxDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.maxDistance)),this._zoomStart.copy(this._zoomEnd)),this._eye.lengthSq()<this.minDistance*this.minDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.minDistance)),this._zoomStart.copy(this._zoomEnd)))}}function byt(t){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),this._addPointer(t),t.pointerType==="touch"?this._onTouchStart(t):this._onMouseDown(t))}function wyt(t){this.enabled!==!1&&(t.pointerType==="touch"?this._onTouchMove(t):this._onMouseMove(t))}function Syt(t){this.enabled!==!1&&(t.pointerType==="touch"?this._onTouchEnd(t):this._onMouseUp(),this._removePointer(t),this._pointers.length===0&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp)))}function Tyt(t){this._removePointer(t)}function Eyt(){this.enabled!==!1&&(this.keyState=ya.NONE,window.addEventListener("keydown",this._onKeyDown))}function Myt(t){this.enabled!==!1&&(window.removeEventListener("keydown",this._onKeyDown),this.keyState===ya.NONE&&(t.code===this.keys[ya.ROTATE]&&!this.noRotate?this.keyState=ya.ROTATE:t.code===this.keys[ya.ZOOM]&&!this.noZoom?this.keyState=ya.ZOOM:t.code===this.keys[ya.PAN]&&!this.noPan&&(this.keyState=ya.PAN)))}function Cyt(t){let e;switch(t.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case xd.DOLLY:this.state=ya.ZOOM;break;case xd.ROTATE:this.state=ya.ROTATE;break;case xd.PAN:this.state=ya.PAN;break;default:this.state=ya.NONE}const n=this.keyState!==ya.NONE?this.keyState:this.state;n===ya.ROTATE&&!this.noRotate?(this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr)):n===ya.ZOOM&&!this.noZoom?(this._zoomStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._zoomEnd.copy(this._zoomStart)):n===ya.PAN&&!this.noPan&&(this._panStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._panEnd.copy(this._panStart)),this.dispatchEvent(qZ)}function Nyt(t){const e=this.keyState!==ya.NONE?this.keyState:this.state;e===ya.ROTATE&&!this.noRotate?(this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY))):e===ya.ZOOM&&!this.noZoom?this._zoomEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):e===ya.PAN&&!this.noPan&&this._panEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY))}function Ryt(){this.state=ya.NONE,this.dispatchEvent(WZ)}function Dyt(t){if(this.enabled!==!1&&this.noZoom!==!0){switch(t.preventDefault(),t.deltaMode){case 2:this._zoomStart.y-=t.deltaY*.025;break;case 1:this._zoomStart.y-=t.deltaY*.01;break;default:this._zoomStart.y-=t.deltaY*25e-5;break}this.dispatchEvent(qZ),this.dispatchEvent(WZ)}}function Pyt(t){this.enabled!==!1&&t.preventDefault()}function kyt(t){if(this._trackPointer(t),this._pointers.length===1)this.state=ya.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX,this._pointers[0].pageY)),this._movePrev.copy(this._moveCurr);else{this.state=ya.TOUCH_ZOOM_PAN;const e=this._pointers[0].pageX-this._pointers[1].pageX,n=this._pointers[0].pageY-this._pointers[1].pageY;this._touchZoomDistanceEnd=this._touchZoomDistanceStart=Math.sqrt(e*e+n*n);const r=(this._pointers[0].pageX+this._pointers[1].pageX)/2,i=(this._pointers[0].pageY+this._pointers[1].pageY)/2;
5109this._panStart.copy(this._getMouseOnScreen(r,i)),this._panEnd.copy(this._panStart)}this.dispatchEvent(qZ)}function Lyt(t){if(this._trackPointer(t),this._pointers.length===1)this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY));else{const e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y;this._touchZoomDistanceEnd=Math.sqrt(n*n+r*r);const i=(t.pageX+e.x)/2,a=(t.pageY+e.y)/2;this._panEnd.copy(this._getMouseOnScreen(i,a))}}function Oyt(t){switch(this._pointers.length){case 0:this.state=ya.NONE;break;case 1:this.state=ya.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr);break;case 2:this.state=ya.TOUCH_ZOOM_PAN;for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId!==t.pointerId){const n=this._pointerPositions[this._pointers[e].pointerId];this._moveCurr.copy(this._getMouseOnCircle(n.x,n.y)),this._movePrev.copy(this._moveCurr);break}break}this.dispatchEvent(WZ)}const loe={type:"change"},ZZ={type:"start"},t8e={type:"end"},BC=new qT,coe=new L1,Fyt=Math.cos(70*b_.DEG2RAD),ll=new Pe,s0=2*Math.PI,$a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},WB=1e-6;class Iyt extends zq{constructor(e,n=null){super(e,n),this.state=$a.NONE,this.target=new Pe,this.cursor=new Pe,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:xd.ROTATE,MIDDLE:xd.DOLLY,RIGHT:xd.PAN},this.touches={ONE:G8.ROTATE,TWO:G8.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._cursorStyle="auto",this._domElementKeyEvents=null,this._lastPosition=new Pe,this._lastQuaternion=new bd,this._lastTargetPosition=new Pe,this._quat=new bd().setFromUnitVectors(e.up,new Pe(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new bre,this._sphericalDelta=new bre,this._scale=1,this._panOffset=new Pe,this._rotateStart=new tn,this._rotateEnd=new tn,this._rotateDelta=new tn,this._panStart=new tn,this._panEnd=new tn,this._panDelta=new tn,this._dollyStart=new tn,this._dollyEnd=new tn,this._dollyDelta=new tn,this._dollyDirection=new Pe,this._mouse=new tn,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=Uyt.bind(this),this._onPointerDown=Byt.bind(this),this._onPointerUp=Vyt.bind(this),this._onContextMenu=Wyt.bind(this),this._onMouseWheel=Gyt.bind(this),this._onKeyDown=zyt.bind(this),this._onTouchStart=$yt.bind(this),this._onTouchMove=qyt.bind(this),this._onMouseDown=jyt.bind(this),this._onMouseMove=Hyt.bind(this),this._interceptControlDown=Zyt.bind(this),this._interceptControlUp=Yyt.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}set cursorStyle(e){this._cursorStyle=e,e==="grab"?this.domElement.style.cursor="grab":this.domElement.style.cursor="auto"}get cursorStyle(){return this._cursorStyle}connect(e){super.connect(e),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction=""}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(loe),this.update(),this.state=$a.NONE}pan(e,n){this._pan(e,n),this.update()}dollyIn(e){this._dollyIn(e),this.update()}dollyOut(e){this._dollyOut(e),this.update()}rotateLeft(e){this._rotateLeft(e),this.update()}rotateUp(e){this._rotateUp(e),this.update()}update(e=null){const n=this.object.position;ll.copy(n).sub(this.target),ll.applyQuaternion(this._quat),this._spherical.setFromVector3(ll),this.autoRotate&&this.state===$a.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let r=this.minAzimuthAngle,i=this.maxAzimuthAngle;isFinite(r)&&isFinite(i)&&(r<-Math.PI?r+=s0:r>Math.PI&&(r-=s0),i<-Math.PI?i+=s0:i>Math.PI&&(i-=s0),r<=i?this._spherical.theta=Math.max(r,Math.min(i,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(r+i)/2?Math.max(r,this._spherical.theta):Math.min(i,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let a=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radiu
vendor: 16,384 bytes, line 5109
5109s=this._clampDistance(this._spherical.radius);else{const s=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),a=s!=this._spherical.radius}if(ll.setFromSpherical(this._spherical),ll.applyQuaternion(this._quatInverse),n.copy(this.target).add(ll),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let s=null;if(this.object.isPerspectiveCamera){const o=ll.length();s=this._clampDistance(o*this._scale);const l=o-s;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),a=!!l}else if(this.object.isOrthographicCamera){const o=new Pe(this._mouse.x,this._mouse.y,0);o.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),a=l!==this.object.zoom;const c=new Pe(this._mouse.x,this._mouse.y,0);c.unproject(this.object),this.object.position.sub(c).add(o),this.object.updateMatrixWorld(),s=ll.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;s!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position):(BC.origin.copy(this.object.position),BC.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(BC.direction))<Fyt?this.object.lookAt(this.target):(coe.setFromNormalAndCoplanarPoint(this.object.up,this.target),BC.intersectPlane(coe,this.target))))}else if(this.object.isOrthographicCamera){const s=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),s!==this.object.zoom&&(this.object.updateProjectionMatrix(),a=!0)}return this._scale=1,this._performCursorZoom=!1,a||this._lastPosition.distanceToSquared(this.object.position)>WB||8*(1-this._lastQuaternion.dot(this.object.quaternion))>WB||this._lastTargetPosition.distanceToSquared(this.target)>WB?(this.dispatchEvent(loe),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?s0/60*this.autoRotateSpeed*e:s0/60/60*this.autoRotateSpeed}_getZoomScale(e){const n=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*n)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,n){ll.setFromMatrixColumn(n,0),ll.multiplyScalar(-e),this._panOffset.add(ll)}_panUp(e,n){this.screenSpacePanning===!0?ll.setFromMatrixColumn(n,1):(ll.setFromMatrixColumn(n,0),ll.crossVectors(this.object.up,ll)),ll.multiplyScalar(e),this._panOffset.add(ll)}_pan(e,n){const r=this.domElement;if(this.object.isPerspectiveCamera){const i=this.object.position;ll.copy(i).sub(this.target);let a=ll.length();a*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*a/r.clientHeight,this.object.matrix),this._panUp(2*n*a/r.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/r.clientWidth,this.object.matrix),this._panUp(n*(this.object.top-this.object.bottom)/this.object.zoom/r.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,n){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const r=this.domElement.getBoundingClientRect(),i=e-r.left,a=n-r.top,s=r.width,o=r.height;this._mouse.x=i/s*2-1,this._mouse.y=-(a/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const n=this.domElement;this._rotateLeft(s0*this._rotateDelta.x/n.clientHeight),this._rotateUp(s0*this._rotateDelta.y/n.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let n=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(s0*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),n=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-s0*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),n=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(s0*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),n=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-s0*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),n=!0;break}n&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),r=.5*(e.pageX+n.x),i=.5*(e.pageY+n.y);this._rotateStart.set(r,i)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),r=.5*(e.pageX+n.x),i=.5*(e.pageY+n.y);this._panStart.set(r,i)}}_handleTouchStartDolly(e){const n=this._getSecondPointerPosition(e),r=e.pageX-n.x,i=e.pageY-n.y,a=Math.sqrt(r*r+i*i);this._dollyStart.set(0,a)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const r=this._getSecondPointerPosition(e),i=.5*(e.pageX+r.x),a=.5*(e.pageY+r.y);this._rotateEnd.set(i,a)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const n=this.domElement;this._rotateLeft(s0*this._rotateDelta.x/n.clientHeight),this._rotateUp(s0*this._rotateDelta.y/n.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),r=.5*(e.pageX+n.x),i=.5*(e.pageY+n.y);this._panEnd.set(r,i)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const n=this._getSecondPointerPosition(e),r=e.pageX-n.x,i=e.pageY-n.y,a=Math.sqrt(r*r+i*i);this._dollyEnd.set(0,a),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const s=(e.pageX+n.x)*.5,o=(e.pageY+n.y)*.5;this._updateZoomParameters(s,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let n=0;n<this._pointers.length;n++)if(this._pointers[n]==e.pointerId){this._pointers.splice(n,1);return}}_isTrackingPointer(e){for(let n=0;n<this._pointers.length;n++)if(this._pointers[n]==e.pointerId)return!0;return!1}_trackPointer(e){let n=this._pointerPositions[e.pointerId];n===void 0&&(n=new tn,this._pointerPositions[e.pointerId]=n),n.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const n=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[n]}_customWheelEvent(e){const n=e.deltaMode,r={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(n){case 1:r.deltaY*=16;break;case 2:r.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(r.deltaY*=10),r}}function Byt(t){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(t)&&(this._addPointer(t),t.pointerType==="touch"?this._onTouchStart(t):this._onMouseDown(t),this._cursorStyle==="grab"&&(this.domElement.style.cursor="grabbing")))}function Uyt(t){this.enabled!==!1&&(t.pointerType==="touch"?this._onTouchMove(t):this._onMouseMove(t))}function Vyt(t){switch(this._removePointer(t),this._pointers.length){case 0:this.domElement.releasePointerCapture(t.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(t8e),this.state=$a.NONE,this._cursorStyle==="grab"&&(this.domElement.style.cursor="grab");break;case 1:const e=this._pointers[0],n=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:n.x,pageY:n.y});break}}function jyt(t){let e;switch(t.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case xd.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(t),this.state=$a.DOLLY;break;case xd.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(t),this.state=$a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(t),this.state=$a.ROTATE}break;case xd.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(t),this.state=$a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(t),this.state=$a.PAN}break;default:this.state=$a.NONE}this.state!==$a.NONE&&this.dispatchEvent(ZZ)}function Hyt(t){switch(this.state){case $a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(t);break;case $a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(t);break;case $a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(t);break}}function Gyt(t){this.enabled===!1||this.enableZoom===!1||this.state!==$a.NONE||(t.preventDefault(),this.dispatchEvent(ZZ),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(t8e))}function zyt(t){this.enabled!==!1&&this._handleKeyDown(t)}function $yt(t){switch(this._trackPointer(t),this._pointers.length){case 1:switch(this.touches.ONE){case G8.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(t),this.state=$a.TOUCH_ROTATE;break;case G8.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(t),this.state=$a.TOUCH_PAN;break;default:this.state=$a.NONE}break;case 2:switch(this.touches.TWO){case G8.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(t),this.state=$a.TOUCH_DOLLY_PAN;break;case G8.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(t),this.state=$a.TOUCH_DOLLY_ROTATE;break;default:this.state=$a.NONE}break;default:this.state=$a.NONE}this.state!==$a.NONE&&this.dispatchEvent(ZZ)}function qyt(t){switch(this._trackPointer(t),this.state){case $a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(t),this.update();break;case $a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(t),this.update();break;case $a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(t),this.update();break;case $a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=$a.NONE}}function Wyt(t){this.enabled!==!1&&t.preventDefault()}function Zyt(t){t.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function Yyt(t){t.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const Xyt={type:"change"},uoe=1e-6,foe=new bd;class Qyt extends zq{constructor(e,n=null){super(e,n),this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1,this._moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this._moveVector=new Pe(0,0,0),this._rotationVector=new Pe(0,0,0),this._lastQuaternion=new bd,this._lastPosition=new Pe,this._status=0,this._onKeyDown=Kyt.bind(this),this._onKeyUp=Jyt.bind(this),this._onPointerMove=t4t.bind(this),this._onPointerDown=e4t.bind(this),this._onPointerUp=n4t.bind(this),this._onPointerCancel=r4t.bind(this),this._onContextMenu=i4t.bind(this),n!==null&&this.connect(n)}connect(e){super.connect(e),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointerup",this._onPointerUp),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="none"}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction=""}dispose(){this.disconnect()}update(e){if(this.enabled===!1)return;const n=this.object,r=e*this.movementSpeed,i=e*this.rollSpeed;n.translateX(this._moveVector.x*r),n.translateY(this._moveVector.y*r),n.translateZ(this._moveVector.z*r),foe.set(this._rotationVector.x*i,this._rotationVector.y*i,this._rotationVector.z*i,1).normalize(),n.quaternion.multiply(foe),(this._lastPosition.distanceToSquared(n.position)>uoe||8*(1-this._lastQuaternion.dot(n.quaternion))>uoe)&&(this.dispatchEvent(Xyt),this._lastQuaternion.copy(n.quaternion),this._lastPosition.copy(n.position))}_updateMovementVector(){const e=this._moveState.forward||this.autoForward&&!this._moveState.back?1:0;this._moveVector.x=-this._moveState.left+this._move
5109State.right,this._moveVector.y=-this._moveState.down+this._moveState.up,this._moveVector.z=-e+this._moveState.back}_updateRotationVector(){this._rotationVector.x=-this._moveState.pitchDown+this._moveState.pitchUp,this._rotationVector.y=-this._moveState.yawRight+this._moveState.yawLeft,this._rotationVector.z=-this._moveState.rollRight+this._moveState.rollLeft}_getContainerDimensions(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}}}function Kyt(t){if(!(t.altKey||this.enabled===!1)){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this._moveState.forward=1;break;case"KeyS":this._moveState.back=1;break;case"KeyA":this._moveState.left=1;break;case"KeyD":this._moveState.right=1;break;case"KeyR":this._moveState.up=1;break;case"KeyF":this._moveState.down=1;break;case"ArrowUp":this._moveState.pitchUp=1;break;case"ArrowDown":this._moveState.pitchDown=1;break;case"ArrowLeft":this._moveState.yawLeft=1;break;case"ArrowRight":this._moveState.yawRight=1;break;case"KeyQ":this._moveState.rollLeft=1;break;case"KeyE":this._moveState.rollRight=1;break}this._updateMovementVector(),this._updateRotationVector()}}function Jyt(t){if(this.enabled!==!1){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this._moveState.forward=0;break;case"KeyS":this._moveState.back=0;break;case"KeyA":this._moveState.left=0;break;case"KeyD":this._moveState.right=0;break;case"KeyR":this._moveState.up=0;break;case"KeyF":this._moveState.down=0;break;case"ArrowUp":this._moveState.pitchUp=0;break;case"ArrowDown":this._moveState.pitchDown=0;break;case"ArrowLeft":this._moveState.yawLeft=0;break;case"ArrowRight":this._moveState.yawRight=0;break;case"KeyQ":this._moveState.rollLeft=0;break;case"KeyE":this._moveState.rollRight=0;break}this._updateMovementVector(),this._updateRotationVector()}}function e4t(t){if(this.enabled!==!1)if(this.dragToLook)this._status++;else{switch(t.button){case 0:this._moveState.forward=1;break;case 2:this._moveState.back=1;break}this._updateMovementVector()}}function t4t(t){if(this.enabled!==!1&&(!this.dragToLook||this._status>0)){const e=this._getContainerDimensions(),n=e.size[0]/2,r=e.size[1]/2;this._moveState.yawLeft=-(t.pageX-e.offset[0]-n)/n,this._moveState.pitchDown=(t.pageY-e.offset[1]-r)/r,this._updateRotationVector()}}function n4t(t){if(this.enabled!==!1){if(this.dragToLook)this._status--,this._moveState.yawLeft=this._moveState.pitchDown=0;else{switch(t.button){case 0:this._moveState.forward=0;break;case 2:this._moveState.back=0;break}this._updateMovementVector()}this._updateRotationVector()}}function r4t(){this.enabled!==!1&&(this.dragToLook?(this._status=0,this._moveState.yawLeft=this._moveState.pitchDown=0):(this._moveState.forward=0,this._moveState.back=0,this._updateMovementVector()),this._updateRotationVector())}function i4t(t){this.enabled!==!1&&t.preventDefault()}const a4t={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` 5110 5111 varying vec2 vUv; 5112 5113 void main() { 5114 5115 vUv = uv; 5116 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 5117 5118 }`,fragmentShader:` 5119 5120 uniform float opacity; 5121 5122 uniform sampler2D tDiffuse; 5123 5124 varying vec2 vUv; 5125 5126 void main() { 5127 5128 vec4 texel = texture2D( tDiffuse, vUv ); 5129 gl_FragColor = opacity * texel; 5130 5131 5132 }`};class Fk{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const s4t=new A6(-1,1,1,-1,0,1);class o4t extends da{constructor(){super(),this.setAttribute("position",new Ui([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new Ui([0,2,0,0,2,0],2))}}const l4t=new o4t;class c4t{constructor(e){this._mesh=new ea(l4t,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,s4t)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class u4t extends Fk{constructor(e,n="tDiffuse"){super(),this.textureID=n,this.uniforms=null,this.material=null,e instanceof ru?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=YP.clone(e.uniforms),this.material=new ru({
vendor: 2,770 bytes, line 5132
5132name:e.name!==void 0?e.name:"unspecified",defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this._fsQuad=new c4t(this.material)}render(e,n,r){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=r.texture),this._fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(n),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class doe extends Fk{constructor(e,n){super(),this.scene=e,this.camera=n,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,n,r){const i=e.getContext(),a=e.state;a.buffers.color.setMask(!1),a.buffers.depth.setMask(!1),a.buffers.color.setLocked(!0),a.buffers.depth.setLocked(!0);let s,o;this.inverse?(s=0,o=1):(s=1,o=0),a.buffers.stencil.setTest(!0),a.buffers.stencil.setOp(i.REPLACE,i.REPLACE,i.REPLACE),a.buffers.stencil.setFunc(i.ALWAYS,s,4294967295),a.buffers.stencil.setClear(o),a.buffers.stencil.setLocked(!0),e.setRenderTarget(r),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),a.buffers.color.setLocked(!1),a.buffers.depth.setLocked(!1),a.buffers.color.setMask(!0),a.buffers.depth.setMask(!0),a.buffers.stencil.setLocked(!1),a.buffers.stencil.setFunc(i.EQUAL,1,4294967295),a.buffers.stencil.setOp(i.KEEP,i.KEEP,i.KEEP),a.buffers.stencil.setLocked(!0)}}class f4t extends Fk{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class d4t{constructor(e,n){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),n===void 0){const r=e.getSize(new tn);this._width=r.width,this._height=r.height,n=new Oh(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:is}),n.texture.name="EffectComposer.rt1"}else this._width=n.width,this._height=n.height;this.renderTarget1=n,this.renderTarget2=n.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new u4t(a4t),this.copyPass.material.blending=_l,this.timer=new d2e}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,n){this.passes.splice(n,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const n=this.passes.indexOf(e);n!==-1&&this.passes.splice(n,1)}isLastEnabledPass(e){for(let n=e+1;n<this.passes.length;n++)if(this.passes[n].enabled)return!1;return!0}
5132render(e){this.timer.update(),e===void 0&&(e=this.timer.getDelta());const n=this.renderer.getRenderTarget();let r=!1;for(let i=0,a=this.passes.length;i<a;i++){const s=this.passes[i];if(s.enabled!==!1){if(s.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(i),s.render(this.renderer,this.writeBuffer,this.readBuffer,e,r),s.needsSwap){if(r){const o=this.renderer.getContext(),l=this.renderer.state.buffers.stencil;l.setFunc(o.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),l.setFunc(o.EQUAL,1,4294967295)}this.swapBuffers()}doe!==void 0&&(s instanceof doe?r=!0:s instanceof f4t&&(r=!1))}}this.renderer.setRenderTarget(n)}reset(e){if(e===void 0){const n=this.renderer.getSize(new tn);this._pixelRatio=this.renderer.getPixelRatio(),this._width=n.width,this._height=n.height,e=this.renderTarget1.clone(),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(e,n){this._width=e,this._height=n;const r=this._width*this._pixelRatio,i=this._height*this._pixelRatio;this.renderTarget1.setSize(r,i),this.renderTarget2.setSize(r,i);for(let a=0;a<this.passes.length;a++)this.passes[a].setSize(r,i)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class h4t extends Fk{constructor(e,n,r=null,i=null,a=null){super(),this.scene=e,this.camera=n,this.overrideMaterial=r,this.clearColor=i,this.clearAlpha=a,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this.isRenderPass=!0,this._oldClearColor=new Xn}render(e,n,r){const i=e.autoClear;e.autoClear=!1;let a,s;this.overrideMaterial!==null&&(s=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor!==null&&(e.getClearColor(this._oldClearColor),e.setClearColor(this.clearColor,e.getClearAlpha())),this.clearAlpha!==null&&(a=e.getClearAlpha(),e.setClearAlpha(this.clearAlpha)),this.clearDepth==!0&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:r),this.clear===!0&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor!==null&&e.setClearColor(this._oldClearColor),this.clearAlpha!==null&&e.setClearAlpha(a),this.overrideMaterial!==null&&(this.scene.overrideMaterial=s),e.autoClear=i}}function p4t(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,B3(t,e)}function m4t(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function A4t(t,e,n){if(D$())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&B3(i,n.prototype),i}function NH(t){var e=typeof Map=="function"?new Map:void 0;return NH=function(r){if(r===null||!m4t(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return A4t(r,arguments,f5(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),B3(i,r)},NH(t)}var K1=(function(t){p4t(e,t);function e(n){var r;return r=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,epe(r)}return e})(NH(Error));function ZB(t){return Math.round(t*255)}function g4t(t,e,n){return ZB(t)+","+ZB(e)+","+ZB(n)}function gD(t,e,n,r){if(r===void 0&&(r=g4t),e===0)return r(n,n,n);var i=(t%360+360)%360/60,a=(1-Math.abs(2*n-1))*e,s=a*(1-Math.abs(i%2-1)),o=0,l=0,c=0;i>=0&&i<1?(o=a,l=s):i>=1&&i<2?(o=s,l=a):i>=2&&i<3?(l=a,c=s):i>=3&&i<4?(l=s,c=a):i>=4&&i<5?(o=s,c=a):i>=5&&i<6&&(o=a,c=s);var u=n-a/2,f=o+u,h=l+u,p=c+u;return r(f,h,p)}var hoe={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
51320",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function x4t(t){if(typeof t!="string")return t;var e=t.toLowerCase();return hoe[e]?"#"+hoe[e]:t}var v4t=/^#[a-fA-F0-9]{6}$/,y4t=/^#[a-fA-F0-9]{8}$/,_4t=/^#[a-fA-F0-9]{3}$/,b4t=/^#[a-fA-F0-9]{4}$/,YB=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,w4t=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,S4t=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,T4t=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function U_(t){if(typeof t!="string")throw new K1(3);var e=x4t(t);if(e.match(v4t))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(y4t)){var n=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alph
5132a:n}}if(e.match(_4t))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(b4t)){var r=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:r}}var i=YB.exec(e);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var a=w4t.exec(e.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var s=S4t.exec(e);if(s){var o=parseInt(""+s[1],10),l=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,u="rgb("+gD(o,l,c)+")",f=YB.exec(u);if(!f)throw new K1(4,e,u);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var h=T4t.exec(e.substring(0,50));if(h){var p=parseInt(""+h[1],10),A=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,w="rgb("+gD(p,A,g)+")",T=YB.exec(w);if(!T)throw new K1(4,e,w);return{red:parseInt(""+T[1],10),green:parseInt(""+T[2],10),blue:parseInt(""+T[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new K1(5)}function E4t(t){var e=t.red/255,n=t.green/255,r=t.blue/255,i=Math.max(e,n,r),a=Math.min(e,n,r),s=(i+a)/2;if(i===a)return t.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:t.alpha}:{hue:0,saturation:0,lightness:s};var o,l=i-a,c=s>.5?l/(2-i-a):l/(i+a);switch(i){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;default:o=(e-n)/l+4;break}return o*=60,t.alpha!==void 0?{hue:o,saturation:c,lightness:s,alpha:t.alpha}:{hue:o,saturation:c,lightness:s}}function mx(t){return E4t(U_(t))}var M4t=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},RH=M4t;function ov(t){var e=t.toString(16);return e.length===1?"0"+e:e}function XB(t){return ov(Math.round(t*255))}function C4t(t,e,n){return RH("#"+XB(t)+XB(e)+XB(n))}function n8e(t,e,n){return gD(t,e,n,C4t)}function N4t(t,e,n){if(typeof t=="object"&&e===void 0&&n===void 0)return n8e(t.hue,t.saturation,t.lightness);throw new K1(1)}function R4t(t,e,n,r){if(typeof t=="object"&&e===void 0&&n===void 0&&r===void 0)return t.alpha>=1?n8e(t.hue,t.saturation,t.lightness):"rgba("+gD(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new K1(2)}function r8e(t,e,n){if(typeof t=="number"&&typeof e=="number"&&typeof n=="number")return RH("#"+ov(t)+ov(e)+ov(n));if(typeof t=="object"&&e===void 0&&n===void 0)return RH("#"+ov(t.red)+ov(t.green)+ov(t.blue));throw new K1(6)}function Ik(t,e,n,r){if(typeof t=="object"&&e===void 0&&n===void 0&&r===void 0)return t.alpha>=1?r8e(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new K1(7)}var D4t=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},P4t=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},k4t=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},L4t=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Ax(t){if(typeof t!="object")throw new K1(8);if(P4t(t))return Ik(t);if(D4t(t))return r8e(t);if(L4t(t))return R4t(t);if(k4t(t))return N4t(t);throw new K1(8)}function i8e(t,e,n){return function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=e?t.apply(this,i):i8e(t,e,i)}}function Pf(t){return i8e(t,t.length,[])}function O4t(t,e){if(e==="transparent")return e;var n=mx(e);return Ax(cr({},n,{hue:n.hue+parseFloat(t)}))}Pf(O4t);function S6(t,e,n){return Math.max(t,Math.min(e,n))}function F4t(t,e){if(e==="transparent")return e;var n=mx(e);return Ax(cr({},n,{lightness:S6(0,1,n.lightness-parseFloat(t))}))}Pf(F4t);function I4t(t,e){if(e==="transparent")return e;var n=mx(e);return Ax(cr({},n,{saturation:S6(0,1,n.saturation-parseFloat(t))}))}Pf(I4t);function B4t(t,e){if(e==="transparent")return e;var n=mx(e);return Ax(cr({},n,{lightness:S6(0,1,n.lightness+parseFloat(t))}))}Pf(B4t);function U4t(t,e,n){if(e==="transparent")return n;if(n==="transparent")return e;if(t===0)return n;var r=U_(e),i=cr({},r,{alpha:typeof r.alpha=="number"?r.alpha:1}),a=U_(n),s=cr({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),o=i.alpha-s.alpha,l=parseFloat(t)*2-1,c=l*o===-1?l:l+o,u=1+l*o,f=(c/u+1)/2,h=1-f,p={red:Math.floor(i.red*f+s.red*h),green:Math.floor(i.green*f+s.green*h),blue:Math.floor(i.blue*f+s.blue*h),alpha:i.alpha*parseFloat(t)+s.alpha*(1-parseFloat(t))};return Ik(p)}var V4t=Pf(U4t),a8e=V4t;function j4t(t,e){if(e==="transparent")return e;var n=U_(e),r=typeof n.alpha=="number"?n.alpha:1,i=cr({},n,{alpha:S6(0,1,(r*100+parseFloat(t)*100)/100)});return Ik(i)}var H4t=Pf(j4t),G4t=H4t;function z4t(t,e){if(e==="transparent")return e;var n=mx(e);return Ax(cr({},n,{saturation:S6(0,1,n.saturation+parseFloat(t))}))}Pf(z4t);function $4t(t,e){return e==="transparent"?e:Ax(cr({},mx(e),{hue:parseFloat(t)}))}Pf($4t);function q4t(t,e){return e==="transparent"?e:Ax(cr({},mx(e),{lightness:parseFloat(t)}))}Pf(q4t);function W4t(t,e){return e==="transparent"?e:Ax(cr({},mx(e),{saturation:parseFloat(t)}))}Pf(W4t);function Z4t(t,e){return e==="transparent"?e:a8e(parseFloat(t),"rgb(0, 0, 0)",e)}Pf(Z4t);function Y4t(t,e){return e==="transparent"?e:a8e(parseFloat(t),"rgb(255, 255, 255)",e)}Pf(Y4t);function X4t(t,e){if(e==="transparent")return e;var n=U_(e),r=typeof n.alpha=="number"?n.alpha:1,i=cr({}
vendor: 7,557 bytes, line 5132
5132,n,{alpha:S6(0,1,+(r*100-parseFloat(t)*100).toFixed(2)/100)});return Ik(i)}Pf(X4t);var DH="http://www.w3.org/1999/xhtml";const poe={svg:"http://www.w3.org/2000/svg",xhtml:DH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function s8e(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),poe.hasOwnProperty(e)?{space:poe[e],local:t}:t}function Q4t(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===DH&&e.documentElement.namespaceURI===DH?e.createElement(t):e.createElementNS(n,t)}}function K4t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function o8e(t){var e=s8e(t);return(e.local?K4t:Q4t)(e)}function J4t(){}function l8e(t){return t==null?J4t:function(){return this.querySelector(t)}}function e8t(t){typeof t!="function"&&(t=l8e(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],s=a.length,o=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=a[u])&&(c=t.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new Md(r,this._parents)}function t8t(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function n8t(){return[]}function r8t(t){return t==null?n8t:function(){return this.querySelectorAll(t)}}function i8t(t){return function(){return t8t(t.apply(this,arguments))}}function a8t(t){typeof t=="function"?t=i8t(t):t=r8t(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var s=e[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new Md(r,i)}function s8t(t){return function(){return this.matches(t)}}function c8e(t){return function(e){return e.matches(t)}}var o8t=Array.prototype.find;function l8t(t){return function(){return o8t.call(this.children,t)}}function c8t(){return this.firstElementChild}function u8t(t){return this.select(t==null?c8t:l8t(typeof t=="function"?t:c8e(t)))}var f8t=Array.prototype.filter;function d8t(){return Array.from(this.children)}function h8t(t){return function(){return f8t.call(this.children,t)}}function p8t(t){return this.selectAll(t==null?d8t:h8t(typeof t=="function"?t:c8e(t)))}function m8t(t){typeof t!="function"&&(t=s8t(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],s=a.length,o=r[i]=[],l,c=0;c<s;++c)(l=a[c])&&t.call(l,l.__data__,c,a)&&o.push(l);return new Md(r,this._parents)}function u8e(t){return new Array(t.length)}function A8t(){return new Md(this._enter||this._groups.map(u8e),this._parents)}function xD(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}xD.prototype={constructor:xD,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function g8t(t){return function(){return t}}function x8t(t,e,n,r,i,a){for(var s=0,o,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new xD(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function v8t(t,e,n,r,i,a,s){var o,l,c=new Map,u=e.length,f=a.length,h=new Array(u),p;for(o=0;o<u;++o)(l=e[o])&&(h[o]=p=s.call(l,l.__data__,o,e)+"",c.has(p)?i[o]=l:c.set(p,l));for(o=0;o<f;++o)p=s.call(t,a[o],o,a)+"",(l=c.get(p))?(r[o]=l,l.__data__=a[o],c.delete(p)):n[o]=new xD(t,a[o]);for(o=0;o<u;++o)(l=e[o])&&c.get(h[o])===l&&(i[o]=l)}function y8t(t){return t.__data__}function _8t(t,e){if(!arguments.length)return Array.from(this,y8t);var n=e?v8t:x8t,r=this._parents,i=this._groups;typeof t!="function"&&(t=g8t(t));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],f=i[c],h=f.length,p=b8t(t.call(u,u&&u.__data__,c,r)),A=p.length,g=o[c]=new Array(A),w=s[c]=new Array(A),T=l[c]=new Array(h);n(u,f,g,w,T,p,e);for(var C=0,M=0,D,k;C<A;++C)if(D=g[C]){for(C>=M&&(M=C+1);!(k=w[M])&&++M<A;);D._next=k||null}}return s=new Md(s,r),s._enter=o,s._exit=l,s}function b8t(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function w8t(){return new Md(this._exit||this._groups.map(u8e),this._parents)}function S8t(t,e,n){var r=this.enter(),i=this,a=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function T8t(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],f=c.length,h=o[l]=new Array(f),p,A=0;A<f;++A)(p=c[A]||u[A])&&(h[A]=p);for(;l<i;++l)o[l]=n[l];return new Md(o,this._parents)}function E8t(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,a=r[i],s;--i>=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function M8t(t){t||(t=C8t);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var s=n[a],o=s.length,l=i[a]=new Array(o),c,u=0;u<o;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new Md(i,this._parents).order()}function C8t(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function N8t(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function R8t(){return Array.from(this)}function D8t(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null}function P8t(){let t=0;for(const e of this)++t;return t}function k8t(){return!this.node()}function L8t(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],a=0,s=i.length,o;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this}function O8t(t){return function(){this.removeAttribute(t)}}function F8t(t){return function(){this.removeAttributeNS(t.space,t.local)}}function I8t(t,e){return function(){this.setAttribute(t,e)}}function B8t(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function U8t(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function V8t(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function j8t(t,e){var n=s8e(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?F8t:O8t:typeof e=="function"?n.local?V8t:U8t:n.local?B8t:I8t)(n,e))}function f8e(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function H8t(t){return function(){this.style.removeProperty(t)}}function G8t(t,e,n){return function(){this.style.setProperty(t,e,n)}}function z8t(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function $8t(t,e,n){return arguments.length>1?this.each((e==null?H8t:typeof e=="function"?z8t:G8t)(t,e,n??"")):q8t(this.node(),t)}function q8t(t,e){return t.style.getPropertyValue(e)||f8e(t).getComputedStyle(t,null).getPropertyValue(e)}function W8t(t){return function(){delete this[t]}}function Z8t(t,e){return function(){this[t]=e}}function Y8t(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function X8t(t,e){return arguments.length>1?this.each((e==null?W8t:typeof e=="function"?Y8t:Z8t)(t,e)):this.node()[t]}function d8e(t){return t.trim().split(/^|\s+/)}function YZ(t){return t.classList||new h8e(t)}
vendor: 4,724 bytes, line 5132
5132function h8e(t){this._node=t,this._names=d8e(t.getAttribute("class")||"")}h8e.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function p8e(t,e){for(var n=YZ(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function m8e(t,e){for(var n=YZ(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Q8t(t){return function(){p8e(this,t)}}function K8t(t){return function(){m8e(this,t)}}function J8t(t,e){return function(){(e.apply(this,arguments)?p8e:m8e)(this,t)}}function e3t(t,e){var n=d8e(t+"");if(arguments.length<2){for(var r=YZ(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?J8t:e?Q8t:K8t)(n,e))}function t3t(){this.textContent=""}function n3t(t){return function(){this.textContent=t}}function r3t(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function i3t(t){return arguments.length?this.each(t==null?t3t:(typeof t=="function"?r3t:n3t)(t)):this.node().textContent}function a3t(){this.innerHTML=""}function s3t(t){return function(){this.innerHTML=t}}function o3t(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function l3t(t){return arguments.length?this.each(t==null?a3t:(typeof t=="function"?o3t:s3t)(t)):this.node().innerHTML}function c3t(){this.nextSibling&&this.parentNode.appendChild(this)}function u3t(){return this.each(c3t)}function f3t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function d3t(){return this.each(f3t)}function h3t(t){var e=typeof t=="function"?t:o8e(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function p3t(){return null}function m3t(t,e){var n=typeof t=="function"?t:o8e(t),r=e==null?p3t:typeof e=="function"?e:l8e(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function A3t(){var t=this.parentNode;t&&t.removeChild(this)}function g3t(){return this.each(A3t)}function x3t(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function v3t(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function y3t(t){return this.select(t?v3t:x3t)}function _3t(t){return arguments.length?this.property("__data__",t):this.node().__data__}function b3t(t){return function(e){t.call(this,e,this.__data__)}}function w3t(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function S3t(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,a;n<i;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++r]=a;++r?e.length=r:delete this.__on}}}function T3t(t,e,n){return function(){var r=this.__on,i,a=b3t(e);if(r){for(var s=0,o=r.length;s<o;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=e;return}}this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function E3t(t,e,n){var r=w3t(t+""),i,a=r.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<a;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(o=e?T3t:S3t,i=0;i<a;++i)this.each(o(r[i],e,n));return this}function A8e(t,e,n){var r=f8e(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function M3t(t,e){return function(){return A8e(this,t,e)}}function C3t(t,e){return function(){return A8e(this,t,e.apply(this,arguments))}}function N3t(t,e){return this.each((typeof e=="function"?C3t:M3t)(t,e))}function*R3t(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length,s;i<a;++i)(s=r[i])&&(yield s)}var D3t=[null];function Md(t,e){this._groups=t,this._parents=e}function P3t(){return this}Md.prototype={constructor:Md,select:e8t,selectAll:a8t,selectChild:u8t,selectChildren:p8t,filter:m8t,data:_8t,enter:A8t,exit:w8t,join:S8t,merge:T8t,selection:P3t,order:E8t,sort:M8t,call:N8t,nodes:R8t,node:D8t,size:P8t,empty:k8t,each:L8t,attr:j8t,style:$8t,property:X8t,classed:e3t,text:i3t,html:l3t,raise:u3t,lower:d3t,append:h3t,insert:m3t,remove:g3t,clone:y3t,datum:_3t,on:E3t,dis
5132patch:N3t,[Symbol.iterator]:R3t};function k3t(t){return typeof t=="string"?new Md([[document.querySelector(t)]],[document.documentElement]):new Md([[t]],D3t)}function L3t(t){let e;for(;e=t.sourceEvent;)t=e;return t}function O3t(t,e){if(t=L3t(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var oE,Fs,g8e,x8e,UA,moe,v8e,y8e,QB,aN,SS,_8e,XZ,PH,kH,vD={},yD=[],F3t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Bk=Array.isArray;function J1(t,e){for(var n in e)t[n]=e[n];return t}function QZ(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function I3t(t,e,n){var r,i,a,s={};for(a in e)a=="key"?r=e[a]:a=="ref"?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?oE.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)s[a]===void 0&&(s[a]=t.defaultProps[a]
vendor: 10,062 bytes, line 5132
5132);return TS(t,s,r,i,null)}function TS(t,e,n,r,i){var a={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++g8e,__i:-1,__u:0};return i==null&&Fs.vnode!=null&&Fs.vnode(a),a}function Uk(t){return t.children}function sN(t,e){this.props=t,this.context=e}function V_(t,e){if(e==null)return t.__?V_(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?V_(t):null}function B3t(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,r=[],i=[],a=J1({},e);a.__v=e.__v+1,Fs.vnode&&Fs.vnode(a),KZ(t.__P,a,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,r,n??V_(e),!!(32&e.__u),i),a.__v=e.__v,a.__.__k[a.__i]=a,T8e(r,a,i),e.__e=e.__=null,a.__e!=n&&b8e(a)}}function b8e(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),b8e(t)}function Aoe(t){(!t.__d&&(t.__d=!0)&&UA.push(t)&&!_D.__r++||moe!=Fs.debounceRendering)&&((moe=Fs.debounceRendering)||v8e)(_D)}function _D(){try{for(var t,e=1;UA.length;)UA.length>e&&UA.sort(y8e),t=UA.shift(),e=UA.length,B3t(t)}finally{UA.length=_D.__r=0}}function w8e(t,e,n,r,i,a,s,o,l,c,u){var f,h,p,A,g,w,T,C=r&&r.__k||yD,M=e.length;for(l=U3t(n,e,C,l,M),f=0;f<M;f++)(p=n.__k[f])!=null&&(h=p.__i!=-1&&C[p.__i]||vD,p.__i=f,w=KZ(t,p,h,i,a,s,o,l,c,u),A=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&JZ(h.ref,null,p),u.push(p.ref,p.__c||A,p)),g==null&&A!=null&&(g=A),(T=!!(4&p.__u))||h.__k===p.__k?(l=S8e(p,l,t,T),T&&h.__e&&(h.__e=null)):typeof p.type=="function"&&w!==void 0?l=w:A&&(l=A.nextSibling),p.__u&=-7);return n.__e=g,l}function U3t(t,e,n,r,i){var a,s,o,l,c,u=n.length,f=u,h=0;for(t.__k=new Array(i),a=0;a<i;a++)(s=e[a])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=t.__k[a]=TS(null,s,null,null,null):Bk(s)?s=t.__k[a]=TS(Uk,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=t.__k[a]=TS(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):t.__k[a]=s,l=a+h,s.__=t,s.__b=t.__b+1,o=null,(c=s.__i=V3t(s,n,l,f))!=-1&&(f--,(o=n[c])&&(o.__u|=2)),o==null||o.__v==null?(c==-1&&(i>u?h--:i<u&&h++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,s.__u|=4))):t.__k[a]=null;if(f)for(a=0;a<u;a++)(o=n[a])!=null&&(2&o.__u)==0&&(o.__e==r&&(r=V_(o)),M8e(o,o));return r}function S8e(t,e,n,r){var i,a;if(typeof t.type=="function"){for(i=t.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=t,e=S8e(i[a],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=V_(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function V3t(t,e,n,r){var i,a,s,o=t.key,l=t.type,c=e[n],u=c!=null&&(2&c.__u)==0;if(c===null&&o==null||u&&o==c.key&&l==c.type)return n;if(r>(u?1:0)){for(i=n-1,a=n+1;i>=0||a<e.length;)if((c=e[s=i>=0?i--:a++])!=null&&(2&c.__u)==0&&o==c.key&&l==c.type)return s}return-1}function goe(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||F3t.test(e)?n:n+"px"}function UC(t,e,n,r,i){var a,s;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||goe(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||goe(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")a=e!=(e=e.replace(_8e,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=n,n?r?n[SS]=r[SS]:(n[SS]=XZ,t.addEventListener(e,a?kH:PH,a)):t.removeEventListener(e,a?kH:PH,a);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function xoe(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[aN]==null)e[aN]=XZ++;else if(e[aN]<n[SS])return;return n(Fs.event?Fs.event(e):e)}}}function KZ(t,e,n,r,i,a,s,o,l,c){var u,f,h,p,A,g,w,T,C,M,D,k,I,L,O,B=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[o=e.__e=n.__e]),(u=Fs.__b)&&u(e);e:if(typeof B=="function")try{if(T=e.props,C=B.prototype&&B.prototype.render,M=(u=B.contextType)&&r[u.__c],D=u?M?M.props.value:u.__:r,n.__c?w=(f=e.__c=n.__c).__=f.__E:(C?e.__c=f=new B(T,D):(e.__c=f=new sN(T,D),f.constructor=B,f.render=H3t),M&&M.sub(f),f.state||(f.state={}),f.__n=r,h=f.__d=!0,f.__h=[],f._sb=[]),C&&f.__s==null&&(f.__s=f.state),C&&B.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=J1({},f.__s)),J1(f.__s,B.getDerivedStateFromProps(T,f.__s))),p=f.props,A=f.state,f.__v=e,h)C&&B.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),C&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(C&&B.getDerivedStateFromProps==null&&T!==p&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(T,D),e.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(T,f.__s,D)===!1){e.__v!=n.__v&&(f.props=T,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(G){G&&(G.__=e)}),yD.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(T,f.__s,D),C&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(p,A,g)})}if(f.context=D,f.props=T,f.__P=t,f.__e=!1,k=Fs.__r,I=0,C)f.state=f.__s,f.__d=!1,k&&k(e),u=f.render(f.props,f.state,f.context),yD.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,k&&k(e),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++I<25);f.state=f.__s,f.getChildContext!=null&&(r=J1(J1({},r),f.getChildContext())),C&&!h&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(p,A)),L=u!=null&&u.type===Uk&&u.key==null?E8e(u.props.children):u,o=w8e(t,Bk(L)?L:[L],e,n,r,i,a,s,o,l,c),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),w&&(f.__E=f.__=null)}catch(G){if(e.__v=null,l||a!=null)if(G.then){for(e.__u|=l?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;a[a.indexOf(o)]=null,e.__e=o}else{for(O=a.length;O--;)QZ(a[O]);LH(e)}else e.__e=n.__e,e.__k=n.__k,G.then||LH(e);Fs.__e(G,e,n)}else a==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):o=e.__e=j3t(n.__e,e,n,r,i,a,s,l,c);return(u=Fs.diffed)&&u(e),128&e.__u?void 0:o}function LH(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(LH))}function T8e(t,e,n){for(var r=0;r<n.length;r++)JZ(n[r],n[++r],n[++r]);Fs.__c&&Fs.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(a){a.call(i)})}catch(a){Fs.__e(a,i.__v)}})}function E8e(t){return typeof t!="object"||t==null||t.__b>0?t:Bk(t)?t.map(E8e):J1({},t)}function j3t(t,e,n,r,i,a,s,o,l){var c,u,f,h,p,A,g,w=n.props||vD,T=e.props,C=e.type;if(C=="svg"?i="http://www.w3.org/2000/svg":C=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),a!=null){for(c=0;c<a.length;c++)if((p=a[c])&&"setAttribute"in p==!!C&&(C?p.localName==C:p.nodeType==3)){t=p,a[c]=null;break}}if(t==null){if(C==null)return document.createTextNode(T);t=document.createElementNS(i,C,T.is&&T),o&&(Fs.__m&&Fs.__m(e,a),o=!1),a=null}if(C==null)w===T||o&&t.data==T||(t.data=T);else{if(a=a&&oE.call(t.childNodes),!o&&a!=null)for(w={},c=0;c<t.attributes.length;c++)w[(p=t.attributes[c]).name]=p.value;for(c in w)p=w[c],c=="dangerouslySetInnerHTML"?f=p:c=="children"||c in T||c=="value"&&"defaultValue"in T||c=="checked"&&"defaultChecked"in T||UC(t,c,null,p,i);for(c in T)p=T[c],c=="children"?h=p:c=="dangerouslySetInnerHTML"?u=p:c=="value"?A=p:c=="checked"?g=p:o&&typeof p!="function"||w[c]===p||UC(t,c,p,w[c],i);if(u)o||f&&(u.__html==f.__html||u.__html==t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(f&&(t.innerHTML=""),w8e(e.type=="template"?t.content:t,Bk(h)?h:[h],e,n,r,C=="foreignObject"?"http://www.w3.org/1999/xhtml":i,a,s,a?a[0]:n.__k&&V_(n,0),o,l),a!=null)for(c=a.length;c--;)QZ(a[c]);o||(c="value",C=="progress"&&A==null?t.removeAttribute("value"):A!=null&&(A!==t[c]||C=="progress"&&!A||C=="option"&&A!=w[c])&&UC(t,c,A,w[c],i),c="checked",g!=null&&g!=t[c]&&UC(t,c,g,w[c],i))}return t}function JZ(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Fs.__e(i,n)}}function M8e(t,e,n){var r,i;if(Fs.unmount&&Fs.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||JZ(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){Fs.__e(a,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&M8e(r[i],e,n||typeof t.type!="function");n||QZ(t.__e),t.__c=t.__=t.__e=void 0}function H3t(t,e,n){return this.constructor(t,n)}function G3t(t,e,n){var r,i,a,s;e==document&&(e=document.documentElement),Fs.__&&Fs.__(t,e),i=(r=!1)?null:e.__k,a=[],s=[],KZ(e,t=e.__k=I3t(Uk,null,[t]),i||vD,vD,e.namespaceURI,i?null:e.firstChild?oE.call(e.childNodes):null,a,i?i.__e:e.firstChild,r,s),T8e(a,t,s)}function C8e(t,e,n){var r,i,a,s,o=J1({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)a=="key"?r=e[a]:a=="ref"?i=e[a]:o[a]=e[a]===void 0&&s!=null?s[a]:e[a];return arguments.length>2&&(o.children=arguments.length>3?oE.call(arguments,2):n),TS(t.type,o,r||t.key,i||t.ref,null)}oE=yD.slice,Fs={__e:function(t,e,n,r){for(var i,a,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(o){t=o}throw t}},g8e=0,x8e=function(t){return t!=null&&t.constructor===void 0},sN.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=J1({},this.state),typeof t=="function"&&(t=t(J1({},n),this.props)),t&&J1(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Aoe(this))},sN.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Aoe(this))},sN.prototype.render=Uk,UA=[],v8e=typeof Promise=="function"?Promise.prototype.then.bind(Prom
5132ise.resolve()):setTimeout,y8e=function(t,e){return t.__v.__b-e.__v.__b},_D.__r=0,QB=Math.random().toString(8),aN="__d"+QB,SS="__a"+QB,_8e=/(PointerCapture)$|Capture$/i,XZ=0,PH=xoe(!1),kH=xoe(!0);function voe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function z3t(t){if(Array.isArray(t))return t}function $3t(t,e,n){return(e=Q3t(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q3t(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function W3t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5133In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yoe(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 Z3t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yoe(Object(n),!0).forEach(function(r){$3t(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yoe(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Y3t(t,e){return z3t(t)||q3t(t,e)||K3t(t,e)||W3t()}function X3t(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Q3t(t){var e=X3t(t,"string");return typeof e=="symbol"?e:e+""}function bD(t){"@babel/helpers - typeof";return bD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bD(t)}function K3t(t,e){if(t){if(typeof t=="string")return voe(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?voe(t,e):void 0}}var OH=function(e){if(bD(e)!=="object")return e;var n=C8e(e);if(n.props){var r;n.props=Z3t({},n.props),n!=null&&(r=n.props)!==null&&r!==void 0&&r.children&&(n.props.children=Array.isArray(n.props.children)?n.props.children.map(OH):OH(n.props.children))}return n},J3t=function(e){return x8e(C8e(e))},e_t=function(e,n){delete n.__k,G3t(OH(e),n)};function t_t(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var n_t=`.float-tooltip-kap { 5134 position: absolute; 5135 width: max-content; /* prevent shrinking near right edge */ 5136 max-width: max(50%, 150px); 5137 padding: 3px 5px; 5138 border-radius: 3px; 5139 font: 12px sans-serif; 5140 color: #eee; 5141 background: rgba(0,0,0,0.6); 5142 pointer-events: none; 5143} 5144`;t_t(n_t);var r_t=Ml({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.style,a=i===void 0?{}:i,s=!!e&&bD(e)==="object"&&!!e.node&&typeof e.node=="function",o=k3t(s?e.node():e);o.style("position")==="static"&&o.style("position","relative"),n.tooltipEl=o.append("div").attr("class","float-tooltip-kap"),Object.entries(a).forEach(function(c){var u=Y3t(c,2),f=u[0],h=u[1];return n.tooltipEl.style(f,h)}),n.tooltipEl.style("left","-10000px").style("display","none");var l="tooltip-".concat(Math.round(Math.random()*1e12));n.mouseInside=!1,o.on("mousemove.".concat(l),function(c){n.mouseInside=!0;var u=O3t(c),f=o.node(),h=f.offsetWidth,p=f.offsetHeight,A=[n.offsetX===null||n.offsetX===void 0?"-".concat(u[0]/h*100,"%"):typeof n.offsetX=="number"?"calc(-50% + ".concat(n.offsetX,"px)"):n.offsetX,n.offsetY===null||n.offsetY===void 0?p>130&&p-u[1]<100?"calc(-100% - 6px)":"21px":typeof n.offsetY=="number"?n.offsetY<0?"calc(-100% - ".concat(Math.abs(n.offsetY),"px)"):"".concat(n.offsetY,"px"):n.offsetY];n.tooltipEl.style("left",u[0]+"px").style("top",u[1]+"px").style("transform","translate(".concat(A.join(","),")")),n.content&&n.tooltipEl.style("display","inline")}
5144),o.on("mouseover.".concat(l),function(){n.mouseInside=!0,n.content&&n.tooltipEl.style("display","inline")}),o.on("mouseout.".concat(l),function(){n.mouseInside=!1,n.tooltipEl.style("display","none")})},update:function(e){e.tooltipEl.style("display",e.content&&e.mouseInside?"inline":"none"),e.content?e.content instanceof HTMLElement?(e.tooltipEl.text(""),e.tooltipEl.append(function(){return e.content})):typeof e.content=="string"?e.tooltipEl.html(e.content):J3t(e.content)?(e.tooltipEl.text(""),e_t(e.content,e.tooltipEl.node())):(e.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",e.content,e.content.toString())):e.tooltipEl.text("")}});function i_t(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var a_t=`.scene-nav-info { 5145 position: absolute; 5146 bottom: 5px; 5147 width: 100%; 5148 text-align: center; 5149 color: slategrey; 5150 opacity: 0.7; 5151 font-size: 10px; 5152 font-family: sans-serif; 5153 pointer-events: none; 5154 user-select: none; 5155} 5156 5157.scene-container canvas:focus { 5158 outline: none; 5159}`;i_t(a_t);function FH(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s_t(t){if(Array.isArray(t))return t}function o_t(t){if(Array.isArray(t))return FH(t)}function l_t(t,e,n){return(e=m_t(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c_t(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u_t(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function f_t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5161In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h_t(t,e){return s_t(t)||u_t(t,e)||N8e(t,e)||f_t()}function Kx(t){return o_t(t)||c_t(t)||N8e(t)||d_t()}function p_t(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function m_t(t){var e=p_t(t,"string");return typeof e=="symbol"?e:e+""}function N8e(t,e){if(t){if(typeof t=="string")return FH(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FH(t,e):void 0}}var R8e=function(e){e instanceof Array?e.forEach(R8e):(e.map&&e.map.dispose(),e.dispose())},D8e=function(e){e.geometry&&e.geometry.dispose(),e.material&&R8e(e.material),e.texture&&e.texture.dispose(),e.children&&e.children.forEach(D8e)},A_t=function(e){for(;e.children.length;){var n=e.children[0];e.remove(n),D8e(n)}},Rs=window.THREE?window.THREE:{WebGLRenderer:Hnt,Scene:Cq,PerspectiveCamera:jl,Raycaster:VQe,SRGBColorSpace:rc,TextureLoader:jq,Vector2:tn,Vector3:Pe,Box3:H2,Color:Xn,Mesh:ea,SphereGeometry:Fp,MeshBasicMaterial:od,BackSide:ca,Timer:d2e},P8e=Ml({props:{width:{default:window.innerWidth,onChange:function(e,n,r){isNaN(e)&&(n.width=r)}},height:{default:window.innerHeight,onChange:function(e,n,r){isNaN(e)&&(n.height=r)}},viewOffset:{default:[0,0]},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},lights:{default:[]}
5161,enablePointerInteraction:{default:!0,onChange:function(e,n){n.hoverObj=null,n.tooltip&&n.tooltip.content(null)},triggerUpdate:!1},pointerRaycasterThrottleMs:{default:50,triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},pointsHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(e){if(e.initialised){e.controls.enabled&&e.controls.update&&e.controls.update(Math.min(1,e.timer.update().getDelta())),e.postProcessingComposer?e.postProcessingComposer.render():e.renderer.render(e.scene,e.camera),e.extraRenderers.forEach(function(s){return s.render(e.scene,e.camera)});var n=+new Date;if(e.enablePointerInteraction&&n-e.lastRaycasterCheck>=e.pointerRaycasterThrottleMs){e.lastRaycasterCheck=n;var r=null;if(e.hoverDuringDrag||!e.isPointerDragging){var i=this.intersectingObjects(e.pointerPos.x,e.pointerPos.y);e.hoverOrderComparator&&i.sort(function(s,o){return e.hoverOrderComparator(s.object,o.object)});var a=i.find(function(s){return e.hoverFilter(s.object)})||null;r=a?a.object:null,e.intersection=a||null}r!==e.hoverObj&&(e.onHover(r,e.hoverObj,e.intersection),e.tooltip.content(r&&un(e.tooltipContent)(r,e.intersection)||null),e.hoverObj=r)}e.tweenGroup.update()}return this},getPointerPos:function(e){var n=e.pointerPos,r=n.x,i=n.y;return{x:r,y:i}},cameraPosition:function(e,n,r,i){var a=e.camera;if(n&&e.initialised){var s=n,o=r||{x:0,y:0,z:0};if(!i)u(s),f(o);else{var l=Object.assign({},a.position),c=h();e.tweenGroup.add(new iu(l).to(s,i).easing(Xo.Quadratic.Out).onUpdate(u).onComplete(function(){e.tweenGroup.remove(this)}).start()),e.tweenGroup.add(new iu(c).to(o,i/3).easing(Xo.Quadratic.Out).onUpdate(f).onComplete(function(){e.tweenGroup.remove(this)}).start())}return this}return Object.assign({},a.position,{lookAt:h()});function u(p){var A=p.x,g=p.y,w=p.z;A!==void 0&&(a.position.x=A),g!==void 0&&(a.position.y=g),w!==void 0&&(a.position.z=w)}function f(p){var A=new Rs.Vector3(p.x,p.y,p.z);e.controls.enabled&&e.controls.target?e.controls.target=A:a.lookAt(A)}function h(){return Object.assign(new Rs.Vector3(0,0,-1e3).applyQuaternion(a.quaternion).add(a.position))}},zoomToFit:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return this.fitToBbox(this.getBbox.apply(this,a),n,r)},fitToBbox:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:10,a=e.camera;if(n){var s=new Rs.Vector3(0,0,0),o=Math.max.apply(Math,Kx(Object.entries(n).map(function(p){var A=h_t(p,2),g=A[0],w=A[1];return Math.max.apply(Math,Kx(w.map(function(T){return Math.abs(s[g]-T)})))})))*2,l=(1-i*2/e.height)*a.fov,c=o/Math.atan(l*Math.PI/180),u=c/a.aspect,f=Math.max(c,u);if(f>0){var h=s.clone().sub(a.position).normalize().multiplyScalar(-f);this.cameraPosition(h,s,r)}}return this},getBbox:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},r=new Rs.Box3(new Rs.Vector3(0,0,0),new Rs.Vector3(0,0,0)),i=e.objects.filter(n);return i.length?(i.forEach(function(a){return r.expandByObject(a)}),Object.assign.apply(Object,Kx(["x","y","z"].map(function(a){return l_t({},a,[r.min[a],r.max[a]])})))):null},getScreenCoords:function(e,n,r,i){var a=new Rs.Vector3(n,r,i);return a.project(this.camera()),{x:(a.x+1)*e.width/2,y:-(a.y-1)*e.height/2}},getSceneCoords:function(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=new Rs.Vector2(n/e.width*2-1,-(r/e.height)*2+1),s=new Rs.Raycaster;return s.setFromCamera(a,e.camera),Object.assign({},s.ray.at(i,new Rs.Vector3))},intersectingObjects:function(e,n,r){var i=new Rs.Vector2(n/e.width*2-1,-(r/e.height)*2+1),a=new Rs.Raycaster;return a.params.Line.threshold=e.lineHoverPrecision,a.params.Points.threshold=e.pointsHoverPrecision,a.setFromCamera(i,e.camera),a.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer}
5161,scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls},_destructor:function(e){var n,r,i;A_t(e.scene),(n=e.controls)===null||n===void 0||n.dispose(),(r=e.renderer)===null||r===void 0||r.dispose(),(i=e.postProcessingComposer)===null||i===void 0||i.dispose()}},stateInit:function(){return{scene:new Rs.Scene,camera:new Rs.PerspectiveCamera,timer:new Rs.Timer,tweenGroup:new JP,lastRaycasterCheck:0}},init:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.controlType,a=i===void 0?"trackball":i,s=r.useWebGPU,o=s===void 0?!1:s,l=r.rendererConfig,c=l===void 0?{}:l,u=r.extraRenderers,f=u===void 0?[]:u,h=r.waitForLoadComplete,p=h===void 0?!0:h;e.innerHTML="",e.appendChild(n.container=document.createElement("div")),n.container.className="scene-container",n.container.style.position="relative",n.container.appendChild(n.navInfo=document.createElement("div")),n.navInfo.className="scene-nav-info",n.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[a]||"",n.navInfo.style.display=n.showNavInfo?null:"none",n.tooltip=new r_t(n.container),n.pointerPos=new Rs.Vector2,n.pointerPos.x=-2,n.pointerPos.y=-2,["pointermove","pointerdown"].forEach(function(A){return n.container.addEventListener(A,function(g){if(A==="pointerdown"&&(n.isPointerPressed=!0),!n.isPointerDragging&&g.type==="pointermove"&&(g.pressure>0||n.isPointerPressed)&&(g.pointerType==="mouse"||g.movementX===void 0||[g.movementX,g.movementY].some(function(C){return Math.abs(C)>1}))&&(n.isPointerDragging=!0),n.enablePointerInteraction){var w=T(n.container);n.pointerPos.x=g.pageX-w.left,n.pointerPos.y=g.pageY-w.top}function T(C){var M=C.getBoundingClientRect(),D=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:M.top+k,left:M.left+D}}},{passive:!0})}),n.container.addEventListener("pointerup",function(A){n.isPointerPressed&&(n.isPointerPressed=!1,!(n.isPointerDragging&&(n.isPointerDragging=!1,!n.clickAfterDrag))&&requestAnimationFrame(function(){A.button===0&&n.onClick(n.hoverObj||null,A,n.intersection),A.button===2&&n.onRightClick&&n.onRightClick(n.hoverObj||null,A,n.intersection)}))},{passive:!0,capture:!0}),n.container.addEventListener("contextmenu",function(A){n.onRightClick&&A.preventDefault()}),n.renderer=new(o?M4e:Rs.WebGLRenderer)(Object.assign({antialias:!0,alpha:!0},c)),n.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),n.container.appendChild(n.renderer.domElement),n.extraRenderers=f,n.extraRenderers.forEach(function(A){A.domElement.style.position="absolute",A.domElement.style.top="0px",A.domElement.style.pointerEvents="none",n.container.appendChild(A.domElement)}),n.postProcessingComposer=new d4t(n.renderer),n.postProcessingComposer.addPass(new h4t(n.scene,n.camera)),n.controls=new{trackball:_yt,orbit:Iyt,fly:Qyt}[a](n.camera,n.renderer.domElement),a==="fly"&&(n.controls.movementSpeed=300,n.controls.rollSpeed=Math.PI/6,n.controls.dragToLook=!0),(a==="trackball"||a==="orbit")&&(n.controls.minDistance=.1,n.controls.maxDistance=n.skyRadius,n.controls.addEventListener("start",function(){n.controlsEngaged=!0}),n.controls.addEventListener("change",function(){n.controlsEngaged&&(n.controlsDragging=!0)}),n.controls.addEventListener("end",function(){n.controlsEngaged=!1,n.controlsDragging=!1})),[n.renderer,n.postProcessingComposer].concat(Kx(n.extraRenderers)).forEach(function(A){return A.setSize(n.width,n.height)}),n.camera.aspect=n.width/n.height,n.camera.updateProjectionMatrix(),n.camera.position.z=1e3,n.scene.add(n.skysphere=new Rs.Mesh),n.skysphere.visible=!1,n.loadComplete=n.scene.visible=!p,window.scene=n.scene},update:function(e,n){if(e.width&&e.height&&(n.hasOwnProperty("width")||n.hasOwnProperty("height"))){var r,i=e.width,a=e.height;e.container.style.width="".concat(i,"px"),e.container.style.height="".concat(a,"px"),[e.renderer,e.postProcessingComposer].concat(Kx(e.extraRenderers)).forEac
5161h(function(p){return p.setSize(i,a)}),e.camera.aspect=i/a;var s=e.viewOffset.slice(0,2);s.some(function(p){return p})&&(r=e.camera).setViewOffset.apply(r,[i,a].concat(Kx(s),[i,a])),e.camera.updateProjectionMatrix()}if(n.hasOwnProperty("viewOffset")){var o,l=e.width,c=e.height,u=e.viewOffset.slice(0,2);u.some(function(p){return p})?(o=e.camera).setViewOffset.apply(o,[l,c].concat(Kx(u),[l,c])):e.camera.clearViewOffset()}if(n.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&n.skyRadius&&(e.controls.maxDistance=Math.min(e.controls.maxDistance,e.skyRadius)),e.camera.far=e.skyRadius*2.5,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new Rs.SphereGeometry(e.skyRadius)),n.hasOwnProperty("backgroundColor")){var f=U_(e.backgroundColor).alpha;f===void 0&&(f=1),e.renderer.setClearColor(new Rs.Color(G4t(1,e.backgroundColor)),f)}n.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?new Rs.TextureLoader().load(e.backgroundImageUrl,function(p){p.colorSpace=Rs.SRGBColorSpace,e.skysphere.material=new Rs.MeshBasicMaterial({map:p,side:Rs.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),!e.loadComplete&&h()}):(e.skysphere.visible=!1,e.skysphere.material.map=null,!e.loadComplete&&h())),n.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),n.hasOwnProperty("lights")&&((n.lights||[]).forEach(function(p){return e.scene.remove(p)}),e.lights.forEach(function(p){return e.scene.add(p)})),n.hasOwnProperty("objects")&&((n.objects||[]).forEach(function(p){return e.scene.remove(p)}),e.objects.forEach(function(p){return e.scene.add(p)}));function h(){e.loadComplete=e.scene.visible=!0}}});function g_t(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var x_t=`.scene-container .clickable { 5162 cursor: pointer; 5163}`;g_t(x_t);function IH(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function v_t(t){if(Array.isArray(t))return IH(t)}function lE(t,e,n){return(e=T_t(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y_t(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function __t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5164In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _oe(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 pv(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_oe(Object(n),!0).forEach(function(r){lE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_oe(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b_t(t,e){if(t==null)return{};var n,r,i=w_t(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function w_t(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Vk(t){return v_t(t)||y_t(t)||E_t(t)||__t()}function S_t(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function T_t(t){var e=S_t(t,"string");return typeof e=="symbol"?e:e+""}function E_t(t,e){if(t){if(typeof t=="string")return IH(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IH(t,e):void 0}}function k8e(t,e){var n=new e;return n._destructor&&n._destructor(),{linkProp:function(i){return{default:n[i](),onChange:function(s,o){o[t][i](s)},triggerUpdate:!1}},linkMethod:function(i){return function(a){for(var s=a[t],o=arguments.length,l=new Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];var u=s[i].apply(s,l);return u===s?this:u}}}}var M_t=["rendererConfig","waitForGlobeReady"],fw=pv(pv({},window.THREE?window.THREE:{AmbientLight:c2e,DirectionalLight:l2e,Vector2:tn,REVISION:Iy}),{},{CSS2DRenderer:znt}),L8e=k8e("globe",e8e),C_t=Object.assign.apply(Object,Vk(["globeImageUrl","bumpImageUrl","globeTileEngineUrl","globeTileEngineMaxLevel","globeCurvatureResolution","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude","onGlobeReady","pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration","arcsData","arcStartLat","arcStartLng","arcStartAltitude","arcEndLat","arcEndLng","arcEndAltitude","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration","polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration","pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration","heatmapsData","heatmapPoints","heatmapPointLat","heatmapPointLng","heatmapPointWeight","heatmapBandwidth","heatmapColorFn","heatmapColorSaturation","heatmapBaseAltitude","heatmapTopAltitude","heatmapsTransitionDuration","hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinRes
5164olution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration","hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonUseDots","hexPolygonCurvatureResolution","hexPolygonDotResolution","hexPolygonsTransitionDuration","tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration","particlesData","particlesList","particleLat","particleLng","particleAltitude","particlesSize","particlesSizeAttenuation","particlesColor","particlesTexture","ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod","labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration","htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlElementVisibilityModifier","htmlTransitionDuration","objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeObject","customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(t){return lE({},t,L8e.linkProp(t))}))),N_t=Object.assign.apply(Object,Vk(["globeMaterial","globeTileEngineClearCache","getGlobeRadius","getCoords","toGeoCoords"].map(function(t){return lE({},t,L8e.linkMethod(t))}))),O8e=k8e("renderObjs",P8e),R_t=Object.assign.apply(Object,Vk(["width","height","backgroundColor","backgroundImageUrl","enablePointerInteraction"].map(function(t){return lE({},t,O8e.linkProp(t))}))),D_t=Object.assign.apply(Object,Vk(["lights","postProcessingComposer"].map(function(t){return lE({},t,O8e.linkMethod(t))}))),P_t=Ml({props:pv(pv({onZoom:{triggerUpdate:!1},onGlobeClick:{triggerUpdate:!1},onGlobeRightClick:{triggerUpdate:!1},pointLabel:{default:"name",triggerUpdate:!1},onPointClick:{triggerUpdate:!1},onPointRightClick:{triggerUpdate:!1},onPointHover:{triggerUpdate:!1},arcLabel:{default:"name",triggerUpdate:!1},onArcClick:{triggerUpdate:!1},onArcRightClick:{triggerUpdate:!1},onArcHover:{triggerUpdate:!1},polygonLabel:{default:"name",triggerUpdate:!1},onPolygonClick:{triggerUpdate:!1},onPolygonRightClick:{triggerUpdate:!1},onPolygonHover:{triggerUpdate:!1},pathLabel:{default:"name",triggerUpdate:!1},onPathClick:{triggerUpdate:!1},onPathRightClick:{triggerUpdate:!1},onPathHover:{triggerUpdate:!1},onHeatmapClick:{triggerUpdate:!1},onHeatmapRightClick:{triggerUpdate:!1},onHeatmapHover:{triggerUpdate:!1},hexLabel:{triggerUpdate:!1},onHexClick:{triggerUpdate:!1},onHexRightClick:{triggerUpdate:!1},onHexHover:{triggerUpdate:!1},hexPolygonLabel:{triggerUpdate:!1},onHexPolygonClick:{triggerUpdate:!1},onHexPolygonRightClick:{triggerUpdate:!1},onHexPolygonHover:{triggerUpdate:!1},tileLabel:{default:"name",triggerUpdate:!1},onTileClick:{triggerUpdate:!1},onTileRightClick:{triggerUpdate:!1},onTileHover:{triggerUpdate:!1},particleLabel:{default:"name",triggerUpdate:!1},onParticleClick:{triggerUpdate:!1},onParticleRightClick:{triggerUpdate:!1},onParticleHover:{triggerUpdate:!1},labelLabel:{triggerUpdate:!1},onLabelClick:{triggerUpdate:!1},onLabelRightClick:{triggerUpdate:!1},onLabelHover:{triggerUpdate:!1},objectLabel:{default:"name",triggerUpdate:!1},onObjectClick:{triggerUpdate:!1},onObjectRightClick:{triggerUpdate:!1},onObjectHover:{triggerUpdate:!1},customLayerLabel:{default:"name",triggerUpdate:!1},onCustomLayerClick:{triggerUpdate:!1},onCustomLayerRightClick:{triggerUpdate:!1},onCustomLayerHover:{triggerUpdate:!1},pointerEventsFilter:{default:function(){return!0},triggerUpdate:!1},lineHoverPrecision:{default:.2,triggerUpdate:!1,onChange:function(e,n){
5164n.renderObjs.lineHoverPrecision(e),n.renderObjs.pointsHoverPrecision(e)}},showPointerCursor:{default:!0,triggerUpdate:!1},globeOffset:{default:[0,0],triggerUpdate:!1,onChange:function(e,n){return Array.isArray(e)&&e.length===2&&n.renderObjs.viewOffset(e.map(function(r){return-r}))}}},C_t),R_t),methods:pv(pv({pauseAnimation:function(e){var n;return e.animationFrameRequestId!==null&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),(n=e.globe)===null||n===void 0||n.pauseAnimation(),this},resumeAnimation:function(e){var n;return e.animationFrameRequestId===null&&this._animationCycle(),(n=e.globe)===null||n===void 0||n.resumeAnimation(),this},_animationCycle:function(e){e.renderObjs.tick(),e.tweenGroup.update(),e.animationFrameRequestId=requestAnimationFrame(this._animationCycle)},pointOfView:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=s();if(n.lat===void 0&&n.lng===void 0&&n.altitude===void 0)return i;var a=Object.assign({},i,n);if(["lat","lng","altitude"].forEach(function(l){return a[l]=+a[l]}),!r)o(a);else{for(;i.lng-a.lng>180;)i.lng-=360;for(;i.lng-a.lng<-180;)i.lng+=360;e.tweenGroup.add(new iu(i).to(a,r).easing(Xo.Cubic.InOut).onUpdate(o).onComplete(function(){e.tweenGroup.remove(this)}).start())}return this;function s(){return e.globe.toGeoCoords(e.renderObjs.cameraPosition())}function o(l){var c=l.lat,u=l.lng,f=l.altitude;e.renderObjs.cameraPosition(e.globe.getCoords(c,u,f)),e.globe.setPointOfVie
5164w(e.renderObjs.camera())}},getScreenCoords:function(e){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var s=(n=e.globe).getCoords.apply(n,i);return e.renderObjs.getScreenCoords(s.x,s.y,s.z)},toGlobeCoords:function(e,n,r){var i=e.renderObjs.intersectingObjects(n,r).find(function(l){return(l.object.__globeObjType||l.object.parent.__globeObjType)==="globe"});if(!i)return null;var a=e.globe.toGeoCoords(i.point),s=a.lat,o=a.lng;return{lat:s,lng:o}},scene:function(e){return e.renderObjs.scene()},camera:function(e){return e.renderObjs.camera()},renderer:function(e){return e.renderObjs.renderer()},controls:function(e){return e.renderObjs.controls()},_destructor:function(e){this.pauseAnimation(),this.pointsData([]),this.arcsData([]),this.polygonsData([]),this.pathsData([]),this.heatmapsData([]),this.hexBinPointsData([]),this.hexPolygonsData([]),this.tilesData([]),this.particlesData([]),this.labelsData([]),this.htmlElementsData([]),this.objectsData([]),this.customLayerData([]),e.globe._destructor(),e.renderObjs._destructor()}},N_t),D_t),stateInit:function(e){var n=e.rendererConfig,r=e.waitForGlobeReady,i=r===void 0?!0:r,a=b_t(e,M_t),s=new e8e(pv({waitForGlobeReady:i},a));return{globe:s,renderObjs:P8e({controlType:"orbit",rendererConfig:n,waitForLoadComplete:i,extraRenderers:[new fw.CSS2DRenderer]}).skyRadius(s.getGlobeRadius()*500).showNavInfo(!1).objects([s]).lights([new fw.AmbientLight(13421772,Math.PI),new fw.DirectionalLight(16777215,.6*Math.PI)]),tweenGroup:new JP}},init:function(e,n){var r=this;e.innerHTML="",e.appendChild(n.container=document.createElement("div")),n.container.style.position="relative";var i=document.createElement("div");n.container.appendChild(i),n.renderObjs(i),n.globe.rendererSize(n.renderObjs.renderer().getSize(new fw.Vector2)),this.pointOfView({altitude:2.5});var a=n.globe.getGlobeRadius(),s=n.renderObjs.controls();n.renderObjs.camera().near=.05,s.minDistance=a+Math.max(.001,n.renderObjs.camera().near*1.1),s.maxDistance=a*100,s.enablePan=!1,s.enableDamping=!0,s.dampingFactor=.1,s.rotateSpeed=.3,s.zoomSpeed=.3,s.zoomToCursor=!0,s.addEventListener("change",function(){s.target.setScalar(0);var c=r.pointOfView();s.rotateSpeed=c.altitude*.3,s.zoomSpeed=Math.sqrt(c.altitude)*.5,n.globe.setPointOfVie
5164w(n.renderObjs.camera()),n.onZoom&&n.onZoom(c)});var o=function(u){for(var f=u;f&&!f.hasOwnProperty("__globeObjType");)f=f.parent;return f},l={point:function(u){return u},arc:function(u){return u},polygon:function(u){return u.data},path:function(u){return u},heatmap:function(u){return u},hexbin:function(u){return u},hexPolygon:function(u){return u},tile:function(u){return u},particles:function(u,f){return!f||!f.hasOwnProperty("index")||u.length<=f.index?u:u[f.index]},label:function(u){return u},object:function(u){return u},custom:function(u){return u}};fw.REVISION<155&&(n.renderObjs.renderer().useLegacyLights=!1),n.renderObjs.hoverFilter(function(c){var u=o(c);if(!u)return!1;var f=u.__globeObjType;if(f!=="globe"&&!l.hasOwnProperty(f))return!1;var h=l.hasOwnProperty(f)&&u.__data?l[f](u.__data):null;return["points","hexBinPoints"].some(function(p){return p===f})&&Array.isArray(h)?!1:n.pointerEventsFilter(u,h)}).tooltipContent(function(c,u){var f={point:n.pointLabel,arc:n.arcLabel,polygon:n.polygonLabel,path:n.pathLabel,hexbin:n.hexLabel,hexPolygon:n.hexPolygonLabel,tile:n.tileLabel,particles:n.particleLabel,label:n.labelLabel,object:n.objectLabel,custom:n.customLayerLabel},h=o(c),p=h&&h.__globeObjType;return h&&p&&f.hasOwnProperty(p)&&l.hasOwnProperty(p)&&un(f[p])(l[p](h.__data,u))||""}).onHover(function(c,u,f){var h={point:n.onPointHover,arc:n.onArcHover,polygon:n.onPolygonHover,path:n.onPathHover,heatmap:n.onHeatmapHover,hexbin:n.onHexHover,hexPolygon:n.onHexPolygonHover,tile:n.onTileHover,particles:n.onParticleHover,label:n.onLabelHover,object:n.onObjectHover,custom:n.onCustomLayerHover},p={globe:n.onGlobeClick,point:n.onPointClick,arc:n.onArcClick,polygon:n.onPolygonClick,path:n.onPathClick,heatmap:n.onHeatmapClick,hexbin:n.onHexClick,hexPolygon:n.onHexPolygonClick,tile:n.onTileClick,particles:n.onParticleClick,label:n.onLabelClick,object:n.onObjectClick,custom:n.onCustomLayerClick},A=o(c);if(A&&!h.hasOwnProperty(A.__globeObjType)&&(A=null),A!==n.hoverObj){var g,w=n.hoverObj?n.hoverObj.__globeObjType:null,T=n.hoverData,C=A?A.__globeObjType:null,M=(g=A)!==null&&g!==void 0&&g.__data?l[C](A.__data,f):null;w&&w!==C&&h[w]&&h[w](null,T||null),C&&h[C]&&h[C](M,w===C?T:null),n.renderObjs.renderer().domElement.classList[C&&p[C]&&un(n.showPointerCursor)(C,M)?"add":"remove"]("clickable"),n.hoverObj=A,n.hoverData=M}}).onClick(function(c,u,f){if(c){var h={globe:n.onGlobeClick,point:n.onPointClick,arc:n.onArcClick,polygon:n.onPolygonClick,path:n.onPathClick,heatmap:n.onHeatmapClick,hexbin:n.onHexClick,hexPolygon:n.onHexPolygonClick,tile:n.onTileClick,particles:n.onParticleClick,label:n.onLabelClick,object:n.onObjectClick,custom:n.onCustomLayerClick},p=o(c),A=p.__globeObjType;if(p&&h.hasOwnProperty(A)&&h[A]){var g=[u],w=f!=null&&f.isVector3?f:f?.point;if(A==="globe"){var T=r.toGeoCoords(w),C=T.lat,M=T.lng;g.unshift({lat:C,lng:M})}else g.push(r.toGeoCoords(w));l.hasOwnProperty(A)&&g.unshift(l[A](p.__data,f)),h[A].apply(h,g)}}}).onRightClick(function(c,u,f){if(c){var h={globe:n.onGlobeRightClick,point:n.onPointRightClick,arc:n.onArcRightClick,polygon:n.onPolygonRightClick,path:n.onPathRightClick,heatmap:n.onHeatmapRightClick,hexbin:n.onHexRightClick,hexPolygon:n.onHexPolygonRightClick,tile:n.onTileRightClick,particles:n.onParticleRightClick,label:n.onLabelRightClick,object:n.onObjectRightClick,custom:n.onCustomLayerRightClick},p=o(c),A=p.__globeObjType;if(p&&h.hasOwnProperty(A)&&h[A]){var g=[u],w=f!=null&&f.isVector3?f:f?.point;if(A==="globe"){var T=r.toGeoCoords(w),C=T.lat,M=T.lng;g.unshift({lat:C,lng:M})}else g.push(r.toGeoCoords(w));l.hasOwnProperty(A)&&g.unshift(l[A](p.__data,f)),h[A].apply(h,g)}}}),this._animationCycle()}}),k_t={width:re.number,height:re.number,globeOffset:re.arrayOf(re.number),backgroundColor:re.string,backgroundImageUrl:re.string,globeImageUrl:re.string,bumpImageUrl:re.string,globeTileEngineUrl:re.func,showGlobe:re.bool,showGraticules:re.bool,showAtmosphere:re.bool,atmosphereColor:re.string,atmosphereAltitude:re.number,globeMaterial:re.object,onGlobeReady:re.func,onGlobeClick:re.func,onGlobeRightClick:re.func,pointsData:re.arrayOf(re.object),pointLat:re.oneOfType([re.number,re.string,re.func]),pointLng:re.oneOfType([re.number,re.string,re.func]),pointColor:re.oneOfType([re.string,re.func]),pointAltitude:re.oneOfType([re.number,re.string,re.func]),pointRadius:re.oneOfType([re.number,re.string,re.func]),pointResolution:re.number,pointsMerge:re.bool,pointsTransitionDuration:re.number,pointLabel:re.oneOfType([re.string,re.func]),onPointClick:re.func,onPointRightClick:re.func,onPointHover:re.func,arcsData:re.arrayOf(re.object),arcStartLat:re.oneOfType([re.number,re.string,re.func]),arcStartLng:re.oneOfType([re.number,re.string,re.func]),arcEndLat:re.oneOfType([re.number,re.string,re.func]),arcEndLng:re.oneOfType([re.number,re.string,re.func]),arcColor:re.oneOfType([re.string,re.arrayOf(re.string),re.func]),arcAltitude:re.oneOfType([re.number,re.string,re.func]),arcAltitudeAutoScale:re.oneOfType([re.number,re.string,re.func]),arcStroke:re.oneOfType([re.number,re.string,re.func]),arcCurveResolution:re.number,arcCircularResolution:re.number,arcDashLength:re.oneOfType([re.number,re.string,re.func]),arcDashGap:re.oneOfType([re.number,re.string,re.func]),arcDashInitialGap:re.oneOfType([re.number,re.string,re.func]),arcDashAnimateTime:re.oneOfType([re.number,re.string,re.func]),arcsTransitionDuration:re.number,arcLabel:re.oneOfType([re.string,re.func]),onArcClick:re.func,onArcRightClick:re.func,onArcHover:re.func,polygonsData:re.arrayOf(re.object),polygonGeoJsonGeometry:re.oneOfType([re.string,re.func]),polygonCapColor:re.oneOfType([re.string,re.func]),polygonCapMaterial:re.oneOfType([re.object,re.string,re.func]),polygonSideColor:re.oneOfType([re.string,re.func]),polygonSideMaterial:re.oneOfType([re.object,re.string,re.func]),polygonStrokeColor:re.oneOfType([re.string,re.func]),polygonAltitude:re.oneOfType([re.number,re.string,re.func]),polygonCapCurvatureResolution:re.oneOfType([re.number,re.string,re.func]),polygonsTransitionDuration:re.number,polygonLabel:re.oneOfType([re.string,re.func]),onPolygonClick:re.func,onPolygonRightClick:re.func,onPolygonHover:re.func,pathsData:re.array,pathPoints:re.oneOfType([re.array,re.string,re.func]),pathPointLat:re.oneOfType([re.number,re.string,re.func]),pathPointLng:re.oneOfType([re.number,re.string,re.func]),pathPointAlt:re.oneOfType([re.number,re.string,re.func]),pathResolution:re.number,pathColor:re.oneOfType([re.string,re.arrayOf(re.string),re.func]),pathStroke:re.oneOfType([re.number,re.string,re.func]),pathDashLength:re.oneOfType([re.number,re.string,re.func]),pathDashGap:re.oneOfType([re.number,re.string,re.func]),pathDashInitialGap:re.oneOfType([re.number,re.string,re.func]),pathDashAnimateTime:re.oneOfType([re.number,re.string,re.func]),pathTransitionDuration:re.number,pathLabel:re.oneOfType([re.string,re.func]),onPathClick:re.func,onPathRightClick:re.func,onPathHover:re.func,heatmapsData:re.array,heatmapPoints:re.oneOfType([re.array,re.string,re.func]),heatmapPointLat:re.oneOfType([re.number,re.string,re.func]),heatmapPointLng:re.oneOfType([re.number,re.string,re.func]),heatmapPointWeight:re.oneOfType([re.number,re.string,re.func]),heatmapBandwidth:re.oneOfType([re.number,re.string,re.func]),heatmapColorFn:re.oneOfType([re.string,re.func]),heatmapColorSaturation:re.oneOfType([re.number,re.string,re.func]),heatmapBaseAltitude:re.oneOfType([re.number,re.string,re.func]),heatmapTopAltitude:re.oneOfType([re.number,re.string,re.func]),heatmapsTransitionDuration:re.number,onHeatmapClick:re.func,onHeatmapRightClick:re.func,onHeatmapHover:re.func,hexBinPointsData:re.arrayOf(re.object),hexBinPointLat:re.oneOfType([re.number,re.string,re.func]),hexBinPointLng:re.oneOfType([re.number,re.string,re.func]),hexBinPointWeight:re.oneOfType([re.number,re.string,re.func]),hexBinRes
5164olution:re.number,hexMargin:re.oneOfType([re.number,re.func]),hexTopColor:re.func,hexSideColor:re.func,hexAltitude:re.oneOfType([re.number,re.func]),hexTopCurvatureResolution:re.number,hexBinMerge:re.bool,hexTransitionDuration:re.number,hexLabel:re.oneOfType([re.string,re.func]),onHexClick:re.func,onHexRightClick:re.func,onHexHover:re.func,hexPolygonsData:re.arrayOf(re.object),hexPolygonGeoJsonGeometry:re.oneOfType([re.string,re.func]),hexPolygonColor:re.oneOfType([re.string,re.func]),hexPolygonAltitude:re.oneOfType([re.number,re.string,re.func]),hexPolygonResolution:re.oneOfType([re.number,re.string,re.func]),hexPolygonMargin:re.oneOfType([re.number,re.string,re.func]),hexPolygonUseDots:re.oneOfType([re.bool,re.string,re.func]),hexPolygonCurvatureResolution:re.oneOfType([re.number,re.string,re.func]),hexPolygonDotResolution:re.oneOfType([re.number,re.string,re.func]),hexPolygonsTransitionDuration:re.number,hexPolygonLabel:re.oneOfType([re.string,re.func]),onHexPolygonClick:re.func,onHexPolygonRightClick:re.func,onHexPolygonHover:re.func,tilesData:re.arrayOf(re.object),tileLat:re.oneOfType([re.number,re.string,re.func]),tileLng:re.oneOfType([re.number,re.string,re.func]),tileAltitude:re.oneOfType([re.number,re.string,re.func]),tileWidth:re.oneOfType([re.number,re.string,re.func]),tileHeight:re.oneOfType([re.number,re.string,re.func]),tileUseGlobeProjection:re.oneOfType([re.bool,re.string,re.func]),tileMaterial:re.oneOfType([re.object,re.string,re.func]),tileCurvatureResolution:re.oneOfType([re.number,re.string,re.func]),tilesTransitionDuration:re.number,tileLabel:re.oneOfType([re.string,re.func]),onTileClick:re.func,onTileRightClick:re.func,onTileHover:re.func,particlesData:re.arrayOf(re.object),particlesList:re.oneOfType([re.string,re.func]),particleLat:re.oneOfType([re.number,re.string,re.func]),particleLng:re.oneOfType([re.number,re.string,re.func]),particleAltitude:re.oneOfType([re.number,re.string,re.func]),particlesSize:re.oneOfType([re.number,re.string,re.func]),particlesSizeAttenuation:re.oneOfType([re.bool,re.string,re.func]),particlesColor:re.oneOfType([re.string,re.func]),particlesTexture:re.oneOfType([re.string,re.func]),particleLabel:re.oneOfType([re.string,re.func]),onParticleClick:re.func,onParticleRightClick:re.func,onParticleHover:re.func,ringsData:re.arrayOf(re.object),ringLat:re.oneOfType([re.number,re.string,re.func]),ringLng:re.oneOfType([re.number,re.string,re.func]),ringAltitude:re.oneOfType([re.number,re.string,re.func]),ringColor:re.oneOfType([re.string,re.arrayOf(re.string),re.func]),ringResolution:re.number,ringMaxRadius:re.oneOfType([re.number,re.string,re.func]),ringPropagationSpeed:re.oneOfType([re.number,re.string,re.func]),ringRepeatPeriod:re.oneOfType([re.number,re.string,re.func]),labelsData:re.arrayOf(re.object),labelLat:re.oneOfType([re.number,re.string,re.func]),labelLng:re.oneOfType([re.number,re.string,re.func]),labelAltitude:re.oneOfType([re.number,re.string,re.func]),labelRotation:re.oneOfType([re.number,re.string,re.func]),labelText:re.oneOfType([re.string,re.func]),labelSize:re.oneOfType([re.number,re.string,re.func]),labelTypeFace:re.object,labelColor:re.oneOfType([re.string,re.func]),labelResolution:re.number,labelIncludeDot:re.oneOfType([re.bool,re.string,re.func]),labelDotRadius:re.oneOfType([re.number,re.string,re.func]),labelDotOrientation:re.oneOfType([re.string,re.func]),labelsTransitionDuration:re.number,labelLabel:re.oneOfType([re.string,re.func]),onLabelClick:re.func,onLabelRightClick:re.func,onLabelHover:re.func,htmlElementsData:re.arrayOf(re.object),htmlLat:re.oneOfType([re.number,re.string,re.func]),htmlLng:re.oneOfType([re.number,re.string,re.func]),htmlAltitude:re.oneOfType([re.number,re.string,re.func]),htmlElement:re.oneOfType([re.string,re.func]),htmlElementVisibilityModifier:re.func,htmlTransitionDuration:re.number,objectsData:re.arrayOf(re.object),objectLat:re.oneOfType([re.number,re.string,re.func]),objectLng:re.oneOfType([re.number,re.string,re.func]),objectAltitude:re.oneOfType([re.number,re.string,re.func]),objectRotation:re.oneOfType([re.shape({x:re.number,y:re.number,z:re.number}),re.string,re.func]),objectFacesSurface:re.oneOfType([re.bool,re.string,re.func]),objectThreeOb
5164ject:re.oneOfType([re.object,re.string,re.func]),objectLabel:re.oneOfType([re.string,re.func]),onObjectClick:re.func,onObjectRightClick:re.func,onObjectHover:re.func,customLayerData:re.arrayOf(re.object),customThreeObject:re.oneOfType([re.object,re.string,re.func]),customThreeObjectUpdate:re.oneOfType([re.string,re.func]),customLayerLabel:re.oneOfType([re.string,re.func]),onCustomLayerClick:re.func,onCustomLayerRightClick:re.func,onCustomLayerHover:re.func,enablePointerInteraction:re.bool,pointerEventsFilter:re.func,lineHoverPrecision:re.number,showPointerCursor:re.oneOfType([re.bool,re.func]),onZoom:re.func},eY=TYe(P_t,{methodNames:["pauseAnimation","resumeAnimation","pointOfView","lights","scene","camera","renderer","postProcessingComposer","controls","getGlobeRadius","getCoords","getScreenCoords","toGeoCoords","toGlobeCoords","globeTileEngineClearCache"],initPropNames:["animateIn","waitForGlobeReady","rendererConfig"]});eY.displayName="Globe";eY.propTypes=k_t;function L_t(t){const e=Dn.c(32),{lat:n,lng:r,selectedCountryName:i}=t,a=b.useRef(),{isDark:s}=B2();let o;e[0]!==n||e[1]!==r?(o=tj.find(L=>L.lat===n&&L.lng===r),e[0]=n,e[1]=r,e[2]=o):o=e[2];const l=o;let c;e[3]!==n||e[4]!==r||e[5]!==l?.label||e[6]!==i?(c=i??l?.label??(n&&r?`${Number(n).toFixed(2)}°, ${Number(r).toFixed(2)}°`:""),e[3]=n,e[4]=r,e[5]=l?.label,e[6]=i,e[7]=c):c=e[7];const u=c;let f;e[8]!==u||e[9]!==n||e[10]!==r?(f=n&&r?[{lat:n,lng:r,name:u}]:[],e[8]=u,e[9]=n,e[10]=r,e[11]=f):f=e[11];const h=f;let p;e[12]!==n||e[13]!==r?(p=n&&r?[{lat:n,lng:r}]:[],e[12]=n,e[13]=r,e[14]=p):p=e[14];const A=p;let g;e[15]!==n||e[16]!==r?(g=n&&r?[{startLat:20.5937,startLng:78.9629,endLat:n,endLng:r}]:[],e[15]=n,e[16]=r,e[17]=g):g=e[17];const w=g;let T,C;e[18]!==n||e[19]!==r?(T=()=>{if(!a.current||n==null||r==null)return;const L=a.current.controls();L.autoRotate=!1,a.current.pointOfView({lat:n,lng:r,altitude:1.8},500)},C=[n,r],e[18]=n,e[19]=r,e[20]=T,e[21]=C):(T=e[20],C=e[21]),b.useEffect(T,C);let M;e[22]===Symbol.for("react.memo_cache_sentinel")?(M={width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"transparent"},e[22]=M):M=e[22];const D=s?"https://unpkg.com/[email protected]/example/img/earth-blue-marble.jpg":"/images/earth.png";let k;e[23]!==n||e[24]!==r?(k=()=>{const L=a.current.controls();L.autoRotate=!n&&!r,L.autoRotateSpeed=2,L.enableZoom=!1},e[23]=n,e[24]=r,e[25]=k):k=e[25];let I;return e[26]!==w||e[27]!==h||e[28]!==A||e[29]!==k||e[30]!==D?(I=x.jsx("div",{style:M,children:x.jsx(eY,{ref:a,width:400,height:400,globeImageUrl:D,bumpImageUrl:"https://unpkg.com/three-globe/example/img/earth-topology.png",backgroundColor:"rgba(0,0,0,0)",showAtmosphere:!0,atmosphereColor:"#06b6d4",atmosphereAltitude:.15,onGlobeReady:k,htmlElementsData:h,htmlLat:"lat",htmlLng:"lng",htmlAltitude:.3,htmlElement:U_t,ringsData:A,ringLat:"lat",ringLng:"lng",ringColor:I_t,ringMaxRadius:10,ringPropagationSpeed:2,ringRepeatPeriod:1200,arcsData:w,arcColor:F_t,arcStroke:3,arcDashInitialGap:1.5,arcsTransitionDuration:1e3,arcDashAnimateTime:O_t})}),e[26]=w,e[27]=h,e[28]=A,e[29]=k,e[30]=D,e[31]=I):I=e[31],I}function O_t(){return Math.random()*4e3+500}function F_t(){return["#2CD5C4","#2CD5C4"]}function I_t(){return B_t}function B_t(t){return"#2CD5C4"}function U_t(t){const e=document.createElement("div");return e.style.cssText=` 5165 background: rgba(6,182,212,0.92); 5166 color: #fff; 5167 font-size: 12px; 5168 font-weight: 600; 5169 padding: 5px 14px; 5170 border-radius: 20px; 5171 white-space: nowrap; 5172 `,e.textContent=t.name,e}function V_t(){const t=Dn.c(85),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={labelName:"",value:""},t[0]=n):n=t[0];const[r,i]=b.useState(n);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=[],t[1]=a):a=t[1],b.useState(a);const[s,o]=b.useState(!1);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=[],t[2]=l):l=t[2];const[c,u]=b.useState(l);let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f={lat:0,lng:0},t[3]=f):f=t[3];const[h,p]=b.useState(f);let A;t[4]===Symbol.for("react.memo_cache_sentinel")?(A={adults:1,children:0,infants:0,nationality:"IN",clientId:"tripgainuat",destination:{destinationName:"",destinationCode:""},visaTypes:[],filters:[],childAges:[],infantAges:[]},t[4]=A):A=t[4];const[g,w]=b.useState(A),[T,C]=b.useState(null),M=W_t;let D;t[5]===Symbol.for("react.memo_cache_sentinel")?(D=async()=>{const Nt=await Sme();if(Nt.statusCode===200){const Ct=Nt.data.map(It=>
5172({label:M(It),value:It.countryCode,labelName:It.countryName}));u(Ct)}},t[5]=D):D=t[5];const k=D;let I,L;t[6]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{k(),(bOe(S0)?.documentResponse??[]).some(q_t)&&C({title:"Documents Upload Pending",description:"Documents upload pending, please upload in profile section.",variant:"warning"})},L=[],t[6]=I,t[7]=L):(I=t[6],L=t[7]),b.useEffect(I,L);let O;t[8]!==e||t[9]!==g.adults||t[10]!==g.childAges||t[11]!==g.children||t[12]!==g.clientId||t[13]!==g.filters||t[14]!==g.infantAges||t[15]!==g.infants||t[16]!==g.nationality||t[17]!==g.visaTypes||t[18]!==r.labelName||t[19]!==r.value?(O=()=>{for(let Ct=0;Ct<g.childAges.length;Ct++)if(g.childAges[Ct]==0){C({title:"Please select valid child ages",description:"Please select valid child ages to proceed",variant:"error"});return}for(let Ct=0;Ct<g.infantAges.length;Ct++)if(g.infantAges[Ct]=="-"){C({title:"Please select valid infant ages",description:"Please select valid infant ages to proceed",variant:"error"});return}const Nt=new URLSearchParams({destinationName:r.labelName,destinationCode:r.value,nationality:g.nationality,adults:g.adults,children:g.children,infants:g.infants,clientId:g.clientId,visaType:g.visaTypes,filters:g.filters,childAges:g.childAges,infantAges:g.infantAges});e(`${Zn.SEARCH_RESULTS_PAGE}?${Nt.toString()}`)},t[8]=e,t[9]=g.adults,t[10]=g.childAges,t[11]=g.children,t[12]=g.clientId,t[13]=g.filters,t[14]=g.infantAges,t[15]=g.infants,t[16]=g.nationality,t[17]=g.visaTypes,t[18]=r.labelName,t[19]=r.value,t[20]=O):O=t[20];const B=O;let G;t[21]!==r.value?(G=()=>{if(r.value===""){C({title:"Please select a country",description:"Please select a country to proceed",variant:"error"});return}o(!0)},t[21]=r.value,t[22]=G):G=t[22];const j=G;let z,Q;if(t[23]!==g){z=ht=>{w(ve=>({...ve,[ht]:ve[ht]+1})),ht==="children"&&Nt(),ht==="infants"&&It()},Q=ht=>{const ve=ht==="adults"?1:0;g[ht]>ve&&w(ce=>({...ce,[ht]:ce[ht]-1})),ht==="children"&&Ct(),ht==="infants"&&nt()};const Nt=()=>{w($_t)},Ct=()=>{w(z_t)},It=()=>{w(G_t)},nt=()=>{w(H_t)};t[23]=g,t[24]=z,t[25]=Q}else z=t[24],Q=t[25];let ee;t[26]===Symbol.for("react.memo_cache_sentinel")?(ee=(Nt,Ct)=>{w(It=>{const nt=[...It.infantAges];return nt[Nt]=Ct,{...It,infantAges:nt}})},t[26]=ee):ee=t[26];const Z=ee;let X;t[27]===Symbol.for("react.memo_cache_sentinel")?(X=(Nt,Ct)=>{w(It=>{const nt=[...It.childAges];return nt[Nt]=Ct,{...It,childAges:nt}})},t[27]=X):X=t[27];const K=X;let se;t[28]!==T?(se=T&&x.jsx(Do,{title:T.title,description:T.description,variant:T.variant,onHide:()=>C(null)}),t[28]=T,t[29]=se):se=t[29];let ae;t[30]===Symbol.for("react.memo_cache_sentinel")?(ae={opacity:1,height:"auto",marginTop:80},t[30]=ae):ae=t[30];let J;t[31]!==s?(J=s?{opacity:0,height:0,marginTop:0}:{opacity:1,height:"auto",marginTop:80},t[31]=s,t[32]=J):J=t[32];let oe,te,he;t[33]===Symbol.for("react.memo_cache_sentinel")?(oe={duration:.4,ease:"easeInOut"},te=x.jsx("div",{className:"text-xl md:text-3xl font-medium my-2",children:"Zero Guesswork. Total Clearance."}),he=x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Data-backed reputation for your agency"}),t[33]=oe,t[34]=te,t[35]=he):(oe=t[33],te=t[34],he=t[35]);let me;t[36]!==J?(me=x.jsxs(ql.div,{className:"overflow-hidden",initial:ae,animate:J,transition:oe,children:[te,he]}),t[36]=J,t[37]=me):me=t[37];let de;t[38]===Symbol.for("react.memo_cache_sentinel")?(de=x.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mx-3",children:"Select Destination"}),t[38]=de):de=t[38];let Ae;t[39]===Symbol.for("react.memo_cache_sentinel")?(Ae=Nt=>{i(Nt);const Ct=tj.find(It=>It.value===Nt.value);Ct&&p({lat:Ct.lat,lng:Ct.lng,countryName:Ct.label})},t[39]=Ae):Ae=t[39];let Se;t[40]!==r.value||t[41]!==c?(Se=x.jsxs("div",{className:"col-span-9 md:col-span-10",children:[de,x.jsx("div",{children:x.jsx(Ia,{placeholder:"Where is the traveler going ?",options:c,selectedValue:r.value,onSelect:Ae,placeholderText:"Where is the traveler going ?",className:"border-0 text-sm md:text-xl",hideDropdownIndicator:!0,filterOption:j_t})})]}),t[40]=r.value,t[41]=c,t[42]=Se):Se=t[42];let Re;t[43]!==s||t[44]!==j?(Re=x.jsx("div",{className:"col-span-3 md:col-span-2",children:s?x.jsx(fi,{btnText:"",iconPosition:"right",variant:"secondary",className:"h-full rounded-xl text-2xl",onClick:()=>o(!1),children:x.jsx(bT,{size:24,color:"#ffffff"})}):x.jsx(fi,{btnText:"Next",iconPosition:"right",variant:"secondary",className:"h-full rounded-xl",onClick:()=>j(),children:x.jsx(ms,{size:24,color:"#ffffff"})})}),t[43]=s,t[44]=j,t[45]=Re):Re=t[45];let Ne;t[46]!==Se||t[47]!==Re?(Ne=x.jsxs("div",{className:"grid grid-cols-12 items-stretch",children:[Se,Re]}),t[46]=Se,t[47]=Re,t[48]=Ne):Ne=t[48];let Fe;t[49]!==z||t[50]!==Q||t[51]!==B||t[52]!==s||t[53]!==g.adults||t[54]!==g.childAges||t[55]!==g.children||t[56]!==g.infantAges||t[57]!==g.infants||t[58]!==g.nationality||t[59]!==g.visaTypes?(Fe=s&&x.jsxs(ql.div,{initial:{opacity:0,y:10,height:0}
5172,animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-10,height:0},transition:{duration:.3,ease:"easeInOut"},children:[x.jsx("div",{className:"border border-dashed border-gray-400 dark:border-gray-600 my-2"}),x.jsxs("div",{className:"grid grid-cols-12 gap-3 mt-4",children:[x.jsxs("div",{className:"col-span-12 md:col-span-6 order-2 md:order-1",children:[x.jsx("div",{children:x.jsx(Ia,{options:tj,selectedValue:g.nationality,onSelect:Nt=>{w(Ct=>({...Ct,nationality:Nt.value}))},label:"Nationality",placeholder:"Nationality",minHeight:"60px",isDisabled:!0,className:"text-xs md:text-xl"})}),x.jsx("div",{className:"mt-3",children:x.jsx(Ia,{options:F0e,selectedValue:g.visaTypes[0],onSelect:Nt=>w(Ct=>({...Ct,visaTypes:[Nt.value]})),label:"Visa Type",placeholder:"All Visa Types",minHeight:"60px",className:"text-xs md:text-xl"})})]}),x.jsxs("div",{className:"col-span-12 md:col-span-6 order-1 md:order-2 bg-gray-100 dark:bg-gray-700 p-3 rounded-2xl drop-shadow",children:[x.jsxs("div",{className:"grid grid-cols-12 ",children:[x.jsx("div",{className:"col-span-6 text-sm font-semibold",children:"No.of Travellers"}),x.jsx("div",{className:"col-span-6 text-right text-sm font-semibold",children:g.adults+g.children+g.infants})]}),x.jsx("div",{className:"border-b-2 border-gray-300 dark:border-gray-600 border-dashed mt-2"}),x.jsxs("div",{className:"grid grid-cols-12 items-center my-2",children:[x.jsxs("div",{className:"col-span-8 text-sm",children:["Adults"," ",x.jsx("span",{className:"text-xs hidden md:inline",children:"(18 Yrs & Above)"})]}),x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>Q("adults"),children:x.jsx(h9,{})}),x.jsx("span",{className:"font-semibold",children:g.adults}),x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>z("adults"),children:x.jsx(Iv,{})})]})})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center my-2",children:[x.jsxs("div",{className:"col-span-8 text-sm",children:["Child ",x.jsx("span",{className:"text-xs hidden md:inline",children:"(2-17 Yrs)"})]}),x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>Q("children"),children:x.jsx(h9,{})}),x.jsx("span",{className:"font-semibold",children:g.children}),x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>z("children"),children:x.jsx(Iv,{})})]})})]}),g.children>0&&x.jsx("div",{className:"grid grid-cols-12 items-center my-2",children:Array.from({length:g.children}).map((Nt,Ct)=>x.jsxs("div",{className:"col-span-6",children:[x.jsxs("div",{className:"text-xs",children:["Child ",Ct+1," Age"]}),x.jsx("div",{className:"text-xs",children:x.jsxs("select",{className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 rounded-[8px] p-1 focus:outline-none focus:border-[var(--secondary-color)] focus:border-2 flex items-center justify-between",onChange:It=>K(Ct,It.target.value),children:[x.jsx("option",{value:"",children:"Select Age"}),[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17].map(It=>x.jsx("option",{value:It,selected:g.childAges[Ct]===It,children:It},It))]})})]},Ct))}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsxs("div",{className:"col-span-8 text-sm",children:["Infant ",x.jsx("span",{className:"text-xs hidden md:inline",children:"(0-1 Yrs)"})]}),x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>Q("infants"),children:x.jsx(h9,{})}),x.jsx("span",{className:"font-semibold",children:g.infants}),x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:()=>z("infants"),children:x.jsx(Iv,{})})]})})]}),g.infants>0&&x.jsx("div",{className:"grid grid-cols-12 items-center my-2",children:Array.from({length:g.infants}).map((Nt,Ct)=>x.jsxs("div",{className:"col-span-6",children:[x.jsxs("div",{className:"text-xs",children:["Infant ",Ct+1," Age"]}),x.jsx("div",{className:"text-xs",children:x.jsxs("select",{className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 rounded-[8px] p-1 focus:outline-none focus:border-[var(--secondary-color)] focu
5172s:border-2 flex items-center justify-between",onChange:It=>Z(Ct,It.target.value),children:[x.jsx("option",{value:"-",children:"Select Age"}),[0,1].map(It=>x.jsx("option",{value:It,selected:g.infantAges[Ct]===It,children:It},It))]})})]},Ct))})]})]}),x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"mt-2",btnText:"Search",onClick:B,children:x.jsx(ms,{})})]}),t[49]=z,t[50]=Q,t[51]=B,t[52]=s,t[53]=g.adults,t[54]=g.childAges,t[55]=g.children,t[56]=g.infantAges,t[57]=g.infants,t[58]=g.nationality,t[59]=g.visaTypes,t[60]=Fe):Fe=t[60];let Qe;t[61]!==Fe?(Qe=x.jsx(Np,{initial:!1,children:Fe}),t[61]=Fe,t[62]=Qe):Qe=t[62];let ge;t[63]!==Ne||t[64]!==Qe?(ge=x.jsxs("div",{className:"bg-white dark:bg-[#374151] p-5 rounded-[20px] shadow-[0_4px_20px_rgba(0,0,0,0.25)] mt-4",children:[Ne,Qe]}),t[63]=Ne,t[64]=Qe,t[65]=ge):ge=t[65];let Ie;t[66]!==me||t[67]!==ge?(Ie=x.jsxs("div",{className:"col-span-12 lg:col-span-6 p-3 lg:p-7 bg-[url('/images/ivs_icon.svg')] bg-cover bg-center lg:bg-none relative",children:[me,ge]}),t[66]=me,t[67]=ge,t[68]=Ie):Ie=t[68];const De=`col-span-6 hidden lg:flex items-center ${s?"justify-center":"justify-end"} overflow-hidden`;let Xe;t[69]!==s||t[70]!==r.name||t[71]!==h?(Xe=s?x.jsx(L_t,{lat:h.lat,lng:h.lng,selectedCountryName:r?.name}):x.jsx("img",{src:"/images/ivs_icon.svg",alt:""}),t[69]=s,t[70]=r.name,t[71]=h,t[72]=Xe):Xe=t[72];let Ye;t[73]!==De||t[74]!==Xe?(Ye=x.jsx("div",{className:De,children:Xe}),t[73]=De,t[74]=Xe,t[75]=Ye):Ye=t[75];let Me;t[76]!==Ie||t[77]!==Ye?(Me=x.jsx("div",{className:"pt-2 bg-linear-to-r from-[#DFEDFA] to-[#FFFFFF] dark:from-gray-800 dark:to-gray-900 rounded-2xl shadow-[0_0px_20px_rgba(0,0,0,0.25)] mt-10 mb-5",children:x.jsxs("div",{className:"grid grid-cols-12 relative",children:[Ie,Ye]})}),t[76]=Ie,t[77]=Ye,t[78]=Me):Me=t[78];let lt;t[79]===Symbol.for("react.memo_cache_sentinel")?(lt=x.jsx("div",{children:x.jsx(GZe,{})}),t[79]=lt):lt=t[79];let Ht;t[80]!==Me?(Ht=x.jsx("div",{className:"overflow-hidden",children:x.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[Me,lt]})}),t[80]=Me,t[81]=Ht):Ht=t[81];let Le;return t[82]!==se||t[83]!==Ht?(Le=x.jsxs(x.Fragment,{children:[se,Ht]}),t[82]=se,t[83]=Ht,t[84]=Le):Le=t[84],Le}function j_t(t,e){const n=e.toLowerCase();return t.data.labelName.toLowerCase().includes(n)||t.data.value.toLowerCase().includes(n)}function H_t(t){return{...t,infantAges:t.infantAges.slice(0,-1)}}function G_t(t){return{...t,infantAges:[...t.infantAges,"-"]}}function z_t(t){return{...t,childAges:t.childAges.slice(0,-1)}}function $_t(t){return{...t,childAges:[...t.childAges,0]}}function q_t(t){return!t.docUrl}function W_t(t){return x.jsxs("div",{className:"flex justify-between items-center p-1",children:[x.jsxs("span",{className:"fs-14",children:[t.countryName," ",x.jsxs("span",{className:"text-gray-500 text-sm",children:["(",t.countryCode,")"]})]}),x.jsx("div",{children:x.jsx("img",{style:{width:"25px",height:"25px"},src:`https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/${t.countryCode.toLowerCase()}.svg`,alt:t.countryCode})})]})}function as(t){const e=Dn.c(3),{children:n,className:r}=t,a=`relative inline-block group ${r===void 0?"":r}`;let s;return e[0]!==n||e[1]!==a?(s=x.jsx("div",{className:a,children:n}),e[0]=n,e[1]=a,e[2]=s):s=e[2],s}as.Trigger=function({children:e,className:n=""}){return x.jsx("div",{className:`cursor-pointer ${n}`,tabIndex:0,children:e})};as.Content=function({children:e,align:n="right",width:r="w-40",className:i=""}){const a=n==="left"?"left-0":"right-0";return x.jsx("div",{className:` 5173 absolute ${a} top-full 5174 ${r} 5175 bg-white dark:bg-gray-800 drop-shadow-2xl rounded-2xl 5176 z-9999 5177 opacity-0 invisible 5178 group-hover:opacity-100 group-hover:visible 5179 group-focus-within:opacity-100 group-focus-within:visible 5180 transition duration-200 5181 ${i} 5182 `,children:e})};as.Item=function({children:e,onClick:n,className:r=""}){return x.jsx("div",{onClick:n,className:` 5183 px-4 py-2 text-sm text-gray-700 dark:text-gray-200 dark:hover:bg-gray-700 5184 cursor-pointer 5185 transition 5186 ${r} 5187 `,children:e})};as.propTypes={children:re.node.isRequired,className:re.string};as.Trigger.propTypes={children:re.node.isRequired,className:re.string};as.Content.propTypes={children:re.node.isRequired,align:re.oneOf(["left","right"]),width:re.string,className:re.string};as.Item.propTypes={children:re.node.isRequired,onClick:re.func,className:re.string};function KB(t){const e=Dn.c(4),{children:n,className:r}=t,a=`inline-flex items-center gap-1 ${r===void 0?"":r}`;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(KD,{size:14,className:"text-(--secondary-color) shrink-0"}),e[0]=s):s=e[0];let o;return e[1]!==n||e[2]!==a?(o=x.jsxs("div",{className:a,children:[n,s]}),e[1]=n,e[2]=a,e[3]=o):o=e[3],o}function boe(t){const e=Dn.c(154),{searchRequest:n}=t;console.log(n),Ss();const[r,i]=b.useState("AE"),[a,s]=b.useState("IN"),[o,l]=b.useState("tourist");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[u,f]=b.useState(c),[h,p]=b.useState(n),[A,g]=b.useState(null);let w;e[1]===Symbol.for("react.memo_cache_sentinel")?(w={adults:1,children:0,infants:0},e[1]=w):w=e[1];const[,T]=b.useState(w),C=J_t;let M;e[2]===Symbol.for("react.memo_cache_sentinel")?(M=async()=>{const Ke=await Sme();if(Ke.statusCode===200){const rt=Ke.data.map(Rt=>({label:C(Rt),value:Rt.countryCode,labelName:Rt.countryName}));f(rt)}},e[2]=M):M=e[2];const D=M;let k,I;e[3]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{D()},I=[],e[3]=k,e[4]=I):(k=e[3],I=e[4]),b.useEffect(k,I);let L,O;e[5]!==n?(L=()=>{n&&(p(n),s(n.nationality),i(n.destination.destinationCode),l(n.visaTypes[0]??""),T({adults:n.adults,children:n.children,infants:n.infants}))},O=[n],e[5]=n,e[6]=L,e[7]=O):(L=e[6],O=e[7]),b.useEffect(L,O);let B;e[8]!==h.adults||e[9]!==h.childAges||e[10]!==h.children||e[11]!==h.clientId||e[12]!==h.filters||e[13]!==h.infantAges||e[14]!==h.infants||e[15]!==r||e[16]!==a||e[17]!==o?(B=()=>{for(let Rt=0;Rt<h.childAges.length;Rt++)if(h.childAges[Rt]==0){g({title:"Please select valid child ages",description:"Please select valid child ages to proceed",variant:"error"});return}for(let Rt=0;Rt<h.infantAges.length;Rt++)if(h.infantAges[Rt]=="-"){g({title:"Please select valid infant ages",description:"Please select valid infant ages to proceed",variant:"error"});return}const Ke=new URLSearchParams({destinationName:Yv.find(Rt=>Rt.value===r)?.label??r,destinationCode:r,nationality:a,adults:h.adults,children:h.children,infants:h.infants,clientId:h?.clientId??"tripgainuat",visaType:o,childAges:h?.childAges??[],infantAges:h?.infantAges??[]});
5187(h?.filters??[]).forEach(Rt=>Ke.append("filter",Rt));const rt=`${Zn.SEARCH_RESULTS_PAGE}?${Ke.toString()}`;window.location.href=rt},e[8]=h.adults,e[9]=h.childAges,e[10]=h.children,e[11]=h.clientId,e[12]=h.filters,e[13]=h.infantAges,e[14]=h.infants,e[15]=r,e[16]=a,e[17]=o,e[18]=B):B=e[18];const G=B;let j,z;if(e[19]!==h){j=rn=>{p(en=>({...en,[rn]:en[rn]+1})),rn==="children"&&Ke(),rn==="infants"&&Rt()},z=rn=>{const en=rn==="adults"?1:0;h[rn]>en&&p(Qt=>({...Qt,[rn]:Qt[rn]-1})),rn==="children"&&rt(),rn==="infants"&&Xt()};const Ke=()=>{p(K_t)},rt=()=>{p(Q_t)},Rt=()=>{p(X_t)},Xt=()=>{p(Y_t)};e[19]=h,e[20]=j,e[21]=z}else j=e[20],z=e[21];let Q;e[22]===Symbol.for("react.memo_cache_sentinel")?(Q=(Ke,rt)=>{p(Rt=>{const Xt=[...Rt.infantAges];return Xt[Ke]=rt,{...Rt,infantAges:Xt}})},e[22]=Q):Q=e[22];const ee=Q;let Z;e[23]===Symbol.for("react.memo_cache_sentinel")?(Z=(Ke,rt)=>{p(Rt=>{const Xt=[...Rt.childAges];return Xt[Ke]=rt,{...Rt,childAges:Xt}})},e[23]=Z):Z=e[23];const X=Z;let K;e[24]!==A?(K=A&&x.jsx(Do,{title:A.title,description:A.description,variant:A.variant,onHide:()=>g(null)}),e[24]=A,e[25]=K):K=e[25];let se;e[26]===Symbol.for("react.memo_cache_sentinel")?(se=x.jsx("div",{className:"text-xs font-light",children:"VISA FOR CITIZEN OF"}),e[26]=se):se=e[26];const ae=a||"Select";let J;e[27]!==ae?(J=x.jsx("div",{className:"text-2xl font-semibold",children:ae}),e[27]=ae,e[28]=J):J=e[28];let oe;e[29]!==a?(oe=Yv.find(Ke=>Ke.value===a)?.label,e[29]=a,e[30]=oe):oe=e[30];let te;e[31]!==oe?(te=x.jsx("div",{className:"text-xs",children:oe}),e[31]=oe,e[32]=te):te=e[32];let he;e[33]!==J||e[34]!==te?(he=x.jsxs("div",{className:"col-span-5 text-left",children:[se,J,te]}),e[33]=J,e[34]=te,e[35]=he):he=e[35];let me;e[36]===Symbol.for("react.memo_cache_sentinel")?(me=x.jsx("div",{className:"col-span-2 flex items-center justify-center",children:x.jsx("div",{className:"bg-[var(--secondary-color)] rounded-[100px] p-2 w-1/2 flex justify-center items-center",children:x.jsx(ms,{color:"white"})})}),e[36]=me):me=e[36];let de;e[37]===Symbol.for("react.memo_cache_sentinel")?(de=x.jsx("div",{className:"text-xs font-light",children:"DESTINATION COUNTRY"}),e[37]=de):de=e[37];const Ae=r||"Select";let Se;e[38]!==Ae?(Se=x.jsx(as.Trigger,{className:"flex justify-end",children:x.jsx(KB,{children:x.jsx("div",{className:"text-2xl font-semibold",children:Ae})})}),e[38]=Ae,e[39]=Se):Se=e[39];let Re;e[40]===Symbol.for("react.memo_cache_sentinel")?(Re=Ke=>i(Ke.value),e[40]=Re):Re=e[40];let Ne;e[41]!==r||e[42]!==u?(Ne=x.jsx(as.Content,{align:"right",className:"w-[300px]",children:x.jsx(as.Item,{children:x.jsx(Ia,{options:u,selectedValue:r,onSelect:Re,filterOption:Z_t})})}),e[41]=r,e[42]=u,e[43]=Ne):Ne=e[43];let Fe;e[44]!==Se||e[45]!==Ne?(Fe=x.jsxs(as,{children:[Se,Ne]}),e[44]=Se,e[45]=Ne,e[46]=Fe):Fe=e[46];let Qe;e[47]!==r?(Qe=Yv.find(Ke=>Ke.value===r)?.label,e[47]=r,e[48]=Qe):Qe=e[48];let ge;e[49]!==Qe?(ge=x.jsx("div",{className:"text-xs",children:Qe}),e[49]=Qe,e[50]=ge):ge=e[50];let Ie;e[51]!==Fe||e[52]!==ge?(Ie=x.jsxs("div",{className:"col-span-5 text-right",children:[de,Fe,ge]}),e[51]=Fe,e[52]=ge,e[53]=Ie):Ie=e[53];let De;e[54]!==he||e[55]!==Ie?(De=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[he,me,Ie]})}),e[54]=he,e[55]=Ie,e[56]=De):De=e[56];let Xe;e[57]===Symbol.for("react.memo_cache_sentinel")?(Xe=x.jsx("div",{className:"md:col-span-1 hidden md:flex justify-center",children:x.jsx("div",{className:"h-16 border-l border-dashed border-gray-400"})}),e[57]=Xe):Xe=e[57];let Ye;e[58]===Symbol.for("react.memo_cache_sentinel")?(Ye=x.jsx("div",{className:"text-xs font-light",children:"VISA TYPE"}),e[58]=Ye):Ye=e[58];const Me=o.length===0?"All":o;let lt;e[59]!==Me?(lt=x.jsx(as.Trigger,{children:x.jsx(KB,{children:x.jsx("div",{className:"font-semibold",children:Me})})}),e[59]=Me,e[60]=lt):lt=e[60];let Ht;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ht=Ke=>l(Ke.value),e[61]=Ht):Ht=e[61];let Le;e[62]!==o?(Le=x.jsx(as.Content,{align:"left",children:x.jsx(as.Item,{children:x.jsx(Ia,{options:F0e,selectedValue:o,onSelect:Ht})})}),e[62]=o,e[63]=Le):Le=e[63];let Nt;
5187e[64]!==lt||e[65]!==Le?(Nt=x.jsx("div",{className:"col-span-6 md:col-span-4",children:x.jsxs("div",{children:[Ye,x.jsxs(as,{children:[lt,Le]})]})}),e[64]=lt,e[65]=Le,e[66]=Nt):Nt=e[66];let Ct;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ct=x.jsx("div",{className:"text-xs font-light",children:"TRAVELLERS"}),e[67]=Ct):Ct=e[67];const It=h.adults+h.children+h.infants;let nt;e[68]!==It?(nt=x.jsx(as.Trigger,{children:x.jsx(KB,{children:x.jsxs("div",{className:"font-semibold",children:[It," Travellers"]})})}),e[68]=It,e[69]=nt):nt=e[69];let ht;e[70]===Symbol.for("react.memo_cache_sentinel")?(ht=x.jsx("div",{className:"col-span-6 text-sm font-semibold",children:"No.of Travellers"}),e[70]=ht):ht=e[70];const ve=h.adults+h.children+h.infants;let ce;e[71]!==ve?(ce=x.jsxs("div",{className:"grid grid-cols-12 ",children:[ht,x.jsx("div",{className:"col-span-6 text-right text-sm font-semibold",children:ve})]}),e[71]=ve,e[72]=ce):ce=e[72];let je;e[73]===Symbol.for("react.memo_cache_sentinel")?(je=x.jsx("div",{className:"border-b-2 border-gray-300 border-dashed mt-2"}),e[73]=je):je=e[73];let dt;e[74]===Symbol.for("react.memo_cache_sentinel")?(dt=x.jsxs("div",{className:"col-span-8 text-sm",children:["Adults ",x.jsx("span",{className:"text-xs",children:"(18 Yrs & Above)"})]}),e[74]=dt):dt=e[74];let ft;e[75]!==z?(ft=()=>z("adults"),e[75]=z,e[76]=ft):ft=e[76];let at;e[77]===Symbol.for("react.memo_cache_sentinel")?(at=x.jsx(m9,{}),e[77]=at):at=e[77];let St;e[78]!==ft?(St=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:ft,children:at}),e[78]=ft,e[79]=St):St=e[79];let ut;e[80]!==h.adults?(ut=x.jsx("span",{className:"font-semibold",children:h.adults}),e[80]=h.adults,e[81]=ut):ut=e[81];let gt;e[82]!==j?(gt=()=>j("adults"),e[82]=j,e[83]=gt):gt=e[83];let Vt;e[84]===Symbol.for("react.memo_cache_sentinel")?(Vt=x.jsx(Iv,{}),e[84]=Vt):Vt=e[84];let Zt;e[85]!==gt?(Zt=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:gt,children:Vt}),e[85]=gt,e[86]=Zt):Zt=e[86];let Wt;e[87]!==St||e[88]!==ut||e[89]!==Zt?(Wt=x.jsxs("div",{className:"grid grid-cols-12 items-center my-2",children:[dt,x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[St,ut,Zt]})})]}),e[87]=St,e[88]=ut,e[89]=Zt,e[90]=Wt):Wt=e[90];let qt;e[91]===Symbol.for("react.memo_cache_sentinel")?(qt=x.jsxs("div",{className:"col-span-8 text-sm",children:["Child ",x.jsx("span",{className:"text-xs",children:"(2-17 Yrs)"})]}),e[91]=qt):qt=e[91];let We;e[92]!==z?(We=()=>z("children"),e[92]=z,e[93]=We):We=e[93];let yn;e[94]===Symbol.for("react.memo_cache_sentinel")?(yn=x.jsx(m9,{}),e[94]=yn):yn=e[94];let vn;e[95]!==We?(vn=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:We,children:yn}),e[95]=We,e[96]=vn):vn=e[96];let Ge;e[97]!==h.children?(Ge=x.jsx("span",{className:"font-semibold",children:h.children}),e[97]=h.children,e[98]=Ge):Ge=e[98];let kt;e[99]!==j?(kt=()=>j("children"),e[99]=j,e[100]=kt):kt=e[100];let _t;e[101]===Symbol.for("react.memo_cache_sentinel")?(_t=x.jsx(Iv,{}),e[101]=_t):_t=e[101];let Dt;e[102]!==kt?(Dt=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:kt,children:_t}),e[102]=kt,e[103]=Dt):Dt=e[103];let jt;e[104]!==vn||e[105]!==Ge||e[106]!==Dt?(jt=x.jsxs("div",{className:"grid grid-cols-12 items-center my-2",children:[qt,x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[vn,Ge,Dt]})})]}),e[104]=vn,e[105]=Ge,e[106]=Dt,e[107]=jt):jt=e[107];let Lt;e[108]!==h.childAges||e[109]!==h.children?(Lt=h.children>0&&x.jsx("div",{className:"grid grid-cols-12 items-center my-2",children:Array.from({length:h.children}).map((Ke,rt)=>x.jsxs("div",{className:"col-span-6",children:[x.jsxs("div",{className:"text-xs",children:["Child ",rt+1," Age"]}),x.jsx("div",{className:"text-xs",children:x.jsxs("select",{className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 rounded-[8px] p-1 focus:outline-none focus:border-[var(--secondary-color)] focu
5187s:border-2 flex items-center justify-between",onChange:Rt=>X(rt,Rt.target.value),children:[x.jsx("option",{value:"",children:"Select Age"}),[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17].map(Rt=>x.jsx("option",{value:Rt,selected:Number(h.childAges[rt])===Rt,age:h.childAges[rt],indexValue:Rt,children:Rt},Rt))]})})]},rt))}),e[108]=h.childAges,e[109]=h.children,e[110]=Lt):Lt=e[110];let Bt;e[111]===Symbol.for("react.memo_cache_sentinel")?(Bt=x.jsxs("div",{className:"col-span-8 text-sm",children:["Infant ",x.jsx("span",{className:"text-xs",children:"(0-1 Yrs)"})]}),e[111]=Bt):Bt=e[111];let Gt;e[112]!==z?(Gt=()=>z("infants"),e[112]=z,e[113]=Gt):Gt=e[113];let hn;e[114]===Symbol.for("react.memo_cache_sentinel")?(hn=x.jsx(m9,{}),e[114]=hn):hn=e[114];let Ve;e[115]!==Gt?(Ve=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:Gt,children:hn}),e[115]=Gt,e[116]=Ve):Ve=e[116];let pt;e[117]!==h.infants?(pt=x.jsx("span",{className:"font-semibold",children:h.infants}),e[117]=h.infants,e[118]=pt):pt=e[118];let Tt;e[119]!==j?(Tt=()=>j("infants"),e[119]=j,e[120]=Tt):Tt=e[120];let xt;e[121]===Symbol.for("react.memo_cache_sentinel")?(xt=x.jsx(Iv,{}),e[121]=xt):xt=e[121];let v;e[122]!==Tt?(v=x.jsx(fi,{variant:"secondary",iconPosition:"right",className:"px-1 py-1",onClick:Tt,children:xt}),e[122]=Tt,e[123]=v):v=e[123];let W;e[124]!==Ve||e[125]!==pt||e[126]!==v?(W=x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[Bt,x.jsx("div",{className:"col-span-4 text-right text-sm",children:x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[Ve,pt,v]})})]}),e[124]=Ve,e[125]=pt,e[126]=v,e[127]=W):W=e[127];let Te;e[128]!==h.infantAges||e[129]!==h.infants?(Te=h.infants>0&&x.jsx("div",{className:"grid grid-cols-12 items-center my-2",children:Array.from({length:h.infants}).map((Ke,rt)=>x.jsxs("div",{className:"col-span-6",children:[x.jsxs("div",{className:"text-xs",children:["Infant ",rt+1," Age"]}),x.jsx("div",{className:"text-xs",children:x.jsxs("select",{className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 rounded-[8px] p-1 focus:outline-none focus:border-[var(--secondary-color)] focus:border-2 flex items-center justify-between",onChange:Rt=>ee(rt,Rt.target.value),children:[x.jsx("option",{value:"-",children:"Select Age"}),[0,1].map(Rt=>x.jsx("option",{value:Rt,selected:Number(h.infantAges[rt])===Rt,children:Rt},Rt))]})})]},rt))}),e[128]=h.infantAges,e[129]=h.infants,e[130]=Te):Te=e[130];let _e;e[131]!==ce||e[132]!==Wt||e[133]!==jt||e[134]!==Lt||e[135]!==W||e[136]!==Te?(_e=x.jsx(as.Content,{align:"right",width:"w-80",children:x.jsx(as.Item,{children:x.jsxs("div",{className:"col-span-12 p-3 rounded-2xl drop-shadow",children:[ce,je,Wt,jt,Lt,W,Te]})})}),e[131]=ce,e[132]=Wt,e[133]=jt,e[134]=Lt,e[135]=W,e[136]=Te,e[137]=_e):_e=e[137];let be;e[138]!==nt||e[139]!==_e?(be=x.jsx("div",{className:"col-span-6 md:col-span-4 flex justify-center",children:x.jsxs("div",{children:[Ct,x.jsxs(as,{children:[nt,_e]})]})}),e[138]=nt,e[139]=_e,e[140]=be):be=e[140];let xe;e[141]===Symbol.for("react.memo_cache_sentinel")?(xe=x.jsx(bT,{}),e[141]=xe):xe=e[141];let we;e[142]!==G?(we=x.jsx("div",{className:"col-span-12 md:col-span-4 flex justify-end",children:x.jsx(fi,{btnText:"Modify",iconPosition:"left",variant:"secondary",className:"md:w-1/2 w-full",onClick:G,children:xe})}),e[142]=G,e[143]=we):we=e[143];let tt;e[144]!==Nt||e[145]!==be||e[146]!==we?(tt=x.jsx("div",{className:"col-span-12 md:col-span-7 mt-8 md:mt-0",children:x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[Nt,be,we]})}),e[144]=Nt,e[145]=be,e[146]=we,e[147]=tt):tt=e[147];let ot;e[148]!==De||e[149]!==tt?(ot=x.jsx("div",{className:"p-[2px] border-[0px] border-transparent rounded-[20px] bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]",children:x.jsxs("div",{className:"grid grid-cols-12 items-center bg-white dark:bg-[#1f2937] rounded-[18px] py-2 px-4",children:[De,Xe,tt]})}),e[148]=De,e[149]=tt,e[150]=ot):ot=e[150];let ze;return e[151]!==K||e[152]!==ot?(ze=x.jsxs(x.Fragment,{children:[K,ot]}),e[151]=K,e[152]=ot,e[153]=ze):ze=e[153],ze}function Z_t(t,e){const n=e.toLowerCase();return t.data.labelName.toLowerCase().includes(n)||t.data.value.toLowerCase().includes(n)}function Y_t(t){return{...t,infantAges:t.infantAges.slice(0,-1)}}function X_t(t){return{...t,infantAges:[...t.infantAges,"-"]}}function Q_t(t){return{...t,childAges:t.childAges.slice(0,-1)}}function K_t(t){return{...t,childAges:[...t.childAges,0]}}function J_t(t){return x.jsxs("div",{className:"flex justify-between items-center p-1",children:[x.jsx("span",{className:"fs-14",children:t.countryName}),x.jsx("div",{children:x.jsx("img",{style:{width:"25px",height:"25px"},src:`https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/${t.countryCode.toLowerCase()}.svg`,alt:t.countryCode})})]})}function jk(t){const e=Dn.c(72),{visa:n,selectedFare:r,onSelect:i,isSelectionMode:a,isChecked:s,onToggleSelect:o}=t,[l,c]=b.useState(!1),u=r?.bookingKey===n.bookingKey,f=`relative app-card drop-shadow-lg !p-0 !rounded-[16px] my-4 border-2 cursor-pointer ${s?"border-green-500 bg-green-50 dark:bg-green-950/10":u?"border-[var(--secondary-color)]":"border-transparent"}`;let h;e[0]!==a||e[1]!==i||e[2]!==o||e[3]!==n?(h=()=>a?o(n.bookingKey):i(n),e[0]=a,e[1]=i,e[2]=o,e[3]=n,e[4]=h):h=e[4];const p=n.bookingKey;let A;e[5]!==n.visaName?(A=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx("div",{className:"bg-gradient-to-r from-[#2230FB] to-[#01DAC1] text-white rounded-t-[14px] md:rounded-t-none md:rounded-br-[16px] md:rounded-tl-[14px] text-lg md:text-xl text-center md:text-left font-semibold p-2 pl-4",children:n.visaName})}),e[5]=n.visaName,e[6]=A):A=e[6];let g;e[7]!==n.visaFare.fareQuoteTotal?(g=xr(n.visaFare.fareQuoteTotal),e[7]=n.visaFare.fareQuoteTotal,e[8]=g):g=e[8];let w;e[9]!==g?(w=x.jsx("div",{className:"text-2xl md:text-3xl font-semibold text-[var(--secondary-color)] pr-2",children:g}),e[9]=g,e[10]=w):w=e[10];let T;e[11]!==s||e[12]!==a||e[13]!==o||e[14]!==n.bookingKey?(T=a&&x.jsx("div",{className:"",onClick:de=>{de.stopPropagation(),o(n.bookingKey)},children:s?x.jsx(_T,{size:24,weight:"fill",className:"text-green-500"}):x.jsx("div",{className:"w-6 h-6 rounded-full border-2 border-gray-400 bg-white dark:bg-gray-700"})}),e[11]=s,e[12]=a,e[13]=o,e[14]=n.bookingKey,e[15]=T):T=e[15];let C;e[16]!==w||e[17]!==T?(C=x.jsx("div",{className:"col-span-12 md:col-span-6 text-right md:text-right p-2",children:x.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[w,T]})}),e[16]=w,e[17]=T,e[18]=C):C=e[18];let M;e[19]!==A||e[20]!==C?(M=x.jsxs("div",{className:"grid grid-cols-12",children:[A,C]}),e[19]=A,e[20]=C,e[21]=M):M=e[21];let D;e[22]!==n.providerName?(D=x.jsx("div",{className:"border border-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-3 py-1 rounded-full text-sm",children:n.providerName}),e[22]=n.providerName,e[23]=D):D=e[23];let k;e[24]!==n.visaType?(k=x.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-3 py-1 rounded-full text-sm",children:n.visaType}),e[24]=n.visaType,e[25]=k):k=e[25];let I;e[26]!==n.purpose?(I=x.jsx("div",{className:"bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-3 py-1 rounded-full text-sm",children:n.purpose}),e[26]=n.purpose,e[27]=I):I=e[27];let L;e[28]!==n.processingTime?(L=n.processingTime!=="NA"&&x.jsxs("div",{className:"text-green-600 text-sm flex items-center gap-1",children:[x.jsx(Q0e,{size:16})," ",n.processingTime]}),e[28]=n.processingTime,e[29]=L):L=e[29];let O;e[30]!==D||e[31]!==k||e[32]!==I||e[33]!==L?(O=x.jsxs("div",{className:"px-2 mt-2 flex flex-wrap gap-2 items-center",children:[D,k,I,L]}),e[30]=D,e[31]=k,e[32]=I,e[33]=L,e[34]=O):O=e[34];let B;e[35]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx("div",{className:"text-[10px] md:text-sm text-gray-500 dark:text-gray-400",children:"Entry Type"}),e[35]=B):B=e[35];let G;e[36]!==n.entry?(G=x.jsxs("div",{className:"col-span-6 md:col-span-4",children:[B,x.jsx("div",{className:"font-semibold text-[11px] md:text-base text-gray-700 dark:text-gray-200",children:n.entry})]}),e[36]=n.entry,e[37]=G):G=e[37];let j;e[38]===Symbol.for("react.memo_cache_sentinel")?(j=x.jsx("div",{className:"text-[10px] md:text-sm text-gray-500 dark:text-gray-400",children:"Validity Duration"}),e[38]=j):j=e[38];const z=n.validity===0?"":n.validity,Q=n.validityType==="ASPEREM
5187BASY"?"As Per Embassy":n.validityType;let ee;e[39]!==z||e[40]!==Q?(ee=x.jsxs("div",{className:"col-span-6 md:col-span-4 flex flex-col md:items-center",children:[j,x.jsxs("div",{className:"font-semibold text-[11px] md:text-base text-gray-700 dark:text-gray-200",children:[z," ",Q]})]}),e[39]=z,e[40]=Q,e[41]=ee):ee=e[41];let Z;e[42]===Symbol.for("react.memo_cache_sentinel")?(Z=x.jsx("div",{className:"text-[10px] md:text-sm text-gray-500 dark:text-gray-400",children:"Stay Duration"}),e[42]=Z):Z=e[42];const X=n.duration===0?"":n.duration,K=n.durationType==="ASPEREMBASY"?"As Per Embassy":n.durationType;let se;e[43]!==X||e[44]!==K?(se=x.jsxs("div",{className:"col-span-12 md:col-span-4 flex flex-col md:items-end",children:[Z,x.jsxs("div",{className:"font-semibold text-[11px] md:text-base text-gray-700 dark:text-gray-200",children:[X," ",K]})]}),e[43]=X,e[44]=K,e[45]=se):se=e[45];let ae;e[46]!==G||e[47]!==ee||e[48]!==se?(ae=x.jsx("div",{className:"p-2 pt-0",children:x.jsx("div",{className:"border border-[#D2D4D7] dark:border-gray-700 rounded-xl p-2 mt-2 shadow-[0_0px_8px_rgba(0,0,0,0.19)]",children:x.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[G,ee,se]})})}),e[46]=G,e[47]=ee,e[48]=se,e[49]=ae):ae=e[49];let J;e[50]!==l||e[51]!==n.moreFare||e[52]!==n.moreFareList?.length?(J=n.moreFare&&n.moreFareList?.length>0&&x.jsx("div",{className:"px-2 pb-3",children:x.jsx("button",{type:"button",className:"text-xs font-semibold text-[var(--secondary-color)] border border-[var(--secondary-color)] rounded-full px-3 py-1 hover:bg-[var(--secondary-color-30)] transition-colors",onClick:de=>{de.stopPropagation(),c(e6t)},children:l?"- Hide":"+ View More Options"})}),e[50]=l,e[51]=n.moreFare,e[52]=n.moreFareList?.length,e[53]=J):J=e[53];let oe;e[54]!==f||e[55]!==O||e[56]!==h||e[57]!==ae||e[58]!==J||e[59]!==M||e[60]!==n.bookingKey?(oe=x.jsxs("div",{className:f,onClick:h,bookingKey:p,children:[M,O,ae,J]}),e[54]=f,e[55]=O,e[56]=h,e[57]=ae,e[58]=J,e[59]=M,e[60]=n.bookingKey,e[61]=oe):oe=e[61];let te;e[62]!==i||e[63]!==r||e[64]!==l||e[65]!==n.moreFareList?(te=l&&x.jsx(ql.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden p-2 border-l-2 border-[var(--secondary-color-10)]",children:n.moreFareList.map(de=>x.jsx(jk,{visa:de,selectedFare:r,onSelect:i},de.bookingKey))}),e[62]=i,e[63]=r,e[64]=l,e[65]=n.moreFareList,e[66]=te):te=e[66];let he;e[67]!==te?(he=x.jsx(Np,{children:te}),e[67]=te,e[68]=he):he=e[68];let me;return e[69]!==oe||e[70]!==he?(me=x.jsxs(x.Fragment,{children:[oe,he]}),e[69]=oe,e[70]=he,e[71]=me):me=e[71],me}function e6t(t){return!t}jk.defaultProps={isSelectionMode:!1,isChecked:!1,onToggleSelect:()=>{}};jk.propTypes={visa:re.object.isRequired,selectedFare:re.object,onSelect:re.func.isRequired,isSelectionMode:re.bool,isChecked:re.bool,onToggleSelect:re.func};function F8e(t){const e=Dn.c(20),{onProceed:n,selectedFare:r,searchRequest:i,ongetVisaDetails:a}=t,s=r?.destination.destinationName,o=r?.destination.destinationCode;let l;e[0]!==s||e[1]!==o?(l=x.jsxs("div",{className:"font-semibold text-xs md:text-sm",children:[s," (",o,")"]}),e[0]=s,e[1]=o,e[2]=l):l=e[2];const c=r?.visaName,u=i.adults+i.children+i.infants;let f;e[3]!==c||e[4]!==u?(f=x.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:[c," | ",u," Traveler"]}),e[3]=c,e[4]=u,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==f?(h=x.jsxs("div",{children:[l,f]}),e[6]=l,e[7]=f,e[8]=h):h=e[8];let p;e[9]!==a?(p=x.jsx(gr,{btnText:"View Details",variant:"outlined",onClick:a}),e[9]=a,e[10]=p):p=e[10];let A;e[11]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx(ms,{}),e[11]=A):A=e[11];let g;e[12]!==n?(g=x.jsx(fi,{btnText:"Proceed to Add Traveler",iconPosition:"right",variant:"secondary",onClick:n,children:A}),e[12]=n,e[13]=g):g=e[13];let w;e[14]!==g||e[15]!==p?(w=x.jsxs("div",{className:"flex gap-2 md:text-base text-xs",children:[p,g]}),e[14]=g,e[15]=p,e[16]=w):w=e[16];let T;return e[17]!==w||e[18]!==h?(T=x.jsx("div",{className:"fixed bottom-2 left-0 right-0 px-4 sm:px-6 lg:px-8",children:x.jsxs("div",{className:"app-card max-w-7xl mx-auto flex flex-wrap justify-between gap-4 md:gap-0 md:justify-between items-center p-2 py-6! shadow-[0_0px_10px_rgba(0,0,0,0.2)]!",children:[h,w]})}),e[17]=w,e[18]=h,e[19]=T):T=e[19],T}F8e.propTypes={onProceed:re.func.isRequired,selectedFare:re.object.isRequired,searchRequest:re.object.isRequired,ongetVisaDetails:re.func.isRequired};function BH(t){const e=Dn.c(9),{title:n,items:r}=t;if(!r?.length)return null;let i;e[0]!==n?(i=x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-2",children:n}),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==r?(a=r.map(t6t),e[2]=r,e[3]=a):a=e[3];let s;e[4]!==a?(s=x.jsx("ul",{className:"space-y-2",children:a}),e[4]=a,e[5]=s):s=e[5];let o;return e[6]!==i||e[7]!==s?(o=x.jsxs("div",{children:[i,s]}),e[6]=i,e[7]=s,e[8]=o):o=e[8],o}function t6t(t){return x.jsxs("li",{className:"text-xs text-gray-500 dark:text-gray-400 leading-relaxed flex gap-2 items-start",children:[x.jsx("span",{className:"mt-1.5 shrink-0 w-1.5 h-1.5 rounded-full bg-[var(--secondary-color)]"}),t]},t)}BH.propTypes={title:re.string.isRequired,items:re.arrayOf(re.string)};function I8e(t){const e=Dn.c(64),{detail:n}=t,[r,i]=b.useState(null);if(!n)return null;if(!n.status||!n.visaDetail){let Z;return e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=x.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-16 text-center",children:[x.jsx(qS,{size:40,className:"text-gray-300 dark:text-gray-600"}),x.jsx("div",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Details unavailable"}),x.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:"Could not load visa details for this option."})]}),e[0]=Z):Z=e[0],Z}const{visaDetail:a}=n;let s;e[1]!==n.validity||e[2]!==n.validityType?(s=n.validity!=null&&n.val
5187idityType?{label:"Validity",value:`${n.validity} ${n.validityType}`}:null,e[1]=n.validity,e[2]=n.validityType,e[3]=s):s=e[3];let o;e[4]!==n.duration||e[5]!==n.durationType?(o=n.duration!=null&&n.durationType?{label:"Stay Duration",value:`${n.duration} ${n.durationType}`}:null,e[4]=n.duration,e[5]=n.durationType,e[6]=o):o=e[6];let l;e[7]!==a.turnAroundTime?(l=a.turnAroundTime?{label:"Processing Time",value:a.turnAroundTime}:null,e[7]=a.turnAroundTime,e[8]=l):l=e[8];let c;e[9]!==a.minApplyBeforeTravel?(c=a.minApplyBeforeTravel?{label:"Apply Before",value:a.minApplyBeforeTravel}:null,e[9]=a.minApplyBeforeTravel,e[10]=c):c=e[10];let u;e[11]!==s||e[12]!==o||e[13]!==l||e[14]!==c?(u=[s,o,l,c].filter(Boolean),e[11]=s,e[12]=o,e[13]=l,e[14]=c,e[15]=u):u=e[15];const f=u;let h;e[16]!==a.biometricRequired?(h={label:"Biometric",required:a.biometricRequired},e[16]=a.biometricRequired,e[17]=h):h=e[17];let p;e[18]!==a.interviewRequirement?(p={label:"Interview",required:a.interviewRequirement},e[18]=a.interviewRequirement,e[19]=p):p=e[19];let A;e[20]!==a.originalDocumentsRequired?(A={label:"Original Documents",required:a.originalDocumentsRequired},e[20]=a.originalDocumentsRequired,e[21]=A):A=e[21];let g;e[22]!==h||e[23]!==p||e[24]!==A?(g=[h,p,A].filter(a6t),e[22]=h,e[23]=p,e[24]=A,e[25]=g):g=e[25];const w=g;let T;e[26]!==n.visaType?(T=n.visaType&&x.jsx("span",{className:"text-xs px-2 py-1 rounded-full bg-[var(--secondary-color)] text-white font-medium",children:n.visaType}),e[26]=n.visaType,e[27]=T):T=e[27];let C;e[28]!==n.entry?(C=n.entry&&x.jsxs("span",{className:"text-xs px-2 py-1 rounded-full border border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 font-medium",children:[n.entry," ENTRY"]}),e[28]=n.entry,e[29]=C):C=e[29];let M;e[30]!==T||e[31]!==C?(M=x.jsxs("div",{className:"flex flex-wrap gap-2 mb-2",children:[T,C]}),e[30]=T,e[31]=C,e[32]=M):M=e[32];let D;e[33]!==n.visaName?(D=n.visaName&&x.jsx("p",{className:"text-sm font-semibold text-gray-800 dark:text-white leading-snug",children:n.visaName}),e[33]=n.visaName,e[34]=D):D=e[34];let k;e[35]!==M||e[36]!==D?(k=x.jsxs("div",{children:[M,D]}),e[35]=M,e[36]=D,e[37]=k):k=e[37];let I;e[38]!==f?(I=f.length>0&&x.jsx("div",{className:"grid grid-cols-2 gap-3",children:f.map(i6t)}),e[38]=f,e[39]=I):I=e[39];let L;e[40]!==w?(L=w.length>0&&x.jsxs("div",{children:[x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-3",children:"Requirements"}),x.jsx("div",{className:"space-y-1",children:w.map(r6t)})]}),e[40]=w,e[41]=L):L=e[41];let O;e[42]!==a.description?(O=a.description&&x.jsxs("div",{children:[x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-2",children:"About this Visa"}),x.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 leading-relaxed",children:a.description})]}),e[42]=a.description,e[43]=O):O=e[43];let B;e[44]!==a.eligibility?(B=a.eligibility&&x.jsxs("div",{children:[x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-2",children:"Eligibility"}),x.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 leading-relaxed",children:a.eligibility})]}),e[44]=a.eligibility,e[45]=B):B=e[45];let G;e[46]!==n.disclaimer?(G=n.disclaimer?.split("|").map(n6t).filter(Boolean),e[46]=n.disclaimer,e[47]=G):G=e[47];let j;e[48]!==G?(j=x.jsx(BH,{title:"Disclaimer",items:G}),e[48]=G,e[49]=j):j=e[49];let z;e[50]!==a.travelGuidelines?(z=x.jsx(BH,{title:"Travel Guidelines",items:a.travelGuidelines}),e[50]=a.travelGuidelines,e[51]=z):z=e[51];let Q;e[52]!==r||e[53]!==a.questionAndAnswer?(Q=a.questionAndAnswer?.length>0&&x.jsxs("div",{children:[x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-3",children:"FAQs"}),x.jsx("div",{className:"space-y-2",children:a.questionAndAnswer.map(Z=>{const X=r===Z.questionId;return x.jsxs("div",{className:"border border-gray-100 dark:border-gray-700 rounded-2xl overflow-hidden",children:[x.jsxs("button",{type:"button",className:"w-full flex items-center justify-between gap-3 px-4 py-3 text-left bg-gray-50 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",onClick:()=>i(X?null:Z.questionId),children:[x.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-200 leading-snug",children:Z.question}),x.jsx(ql.span,{animate:{rotate:X?180:0},transition:{duration:.2},className:"shrink-0 text-gray-400 dark:text-gray-500",children:x.jsx(KD,{size:16})})]}),x.jsx(Np,{initial:!1,children:X&&x.jsx(ql.div,{initial:{height:0,opacity:0}
5187,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22,ease:"easeInOut"},className:"overflow-hidden",children:x.jsx("div",{className:"px-4 py-3 text-sm text-gray-500 dark:text-gray-400 leading-relaxed border-t border-gray-100 dark:border-gray-700",children:Z.answer})},"answer")})]},Z.questionId)})})]}),e[52]=r,e[53]=a.questionAndAnswer,e[54]=Q):Q=e[54];let ee;return e[55]!==k||e[56]!==I||e[57]!==L||e[58]!==O||e[59]!==B||e[60]!==j||e[61]!==z||e[62]!==Q?(ee=x.jsxs("div",{className:"space-y-6 md:px-3 px-2",children:[k,I,L,O,B,j,z,Q]}),e[55]=k,e[56]=I,e[57]=L,e[58]=O,e[59]=B,e[60]=j,e[61]=z,e[62]=Q,e[63]=ee):ee=e[63],ee}function n6t(t){return t.trim()}function r6t(t){return x.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-dashed border-gray-100 dark:border-gray-700 last:border-0",children:[x.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:t.label}),x.jsx("div",{className:`flex items-center gap-1 text-xs font-medium ${t.required?"text-orange-500":"text-green-500"}`,children:t.required?x.jsxs(x.Fragment,{children:[x.jsx(nz,{size:15,weight:"fill"}),"Required"]}):x.jsxs(x.Fragment,{children:[x.jsx(_T,{size:15,weight:"fill"}),"Not Required"]})})]},t.label)}function i6t(t){return x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-2xl p-3 border border-gray-100 dark:border-gray-700",children:[x.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500 mb-1",children:t.label}),x.jsx("div",{className:"text-sm font-semibold text-gray-800 dark:text-white",children:t.value})]},t.label)}function a6t(t){return t.required!=null}I8e.propTypes={detail:re.object};function woe(t){const e=Dn.c(45),{visaResults:n,isSelectionMode:r,selectedVisaIds:i,onEnterSelectionMode:a,onClearSelection:s,onAlert:o}=t;console.log(n);const[l,c]=b.useState(!1),[u,f]=b.useState(""),[h,p]=b.useState("");let A;e[0]!==r||e[1]!==o||e[2]!==a||e[3]!==i?(A=()=>{if(!r){a();return}if(i.length===0){o({title:"Warning",description:"Please select at least one visa",variant:"warning"});return}c(!0)},e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=A):A=e[4];const g=A;let w;e[5]!==s?(w=()=>{c(!1),f(""),p(""),s()},e[5]=s,e[6]=w):w=e[6];const T=w;let C;e[7]!==i||e[8]!==n||e[9]!==u?(C=()=>{const se=u.replace(/\s+/g,"");if(!se){p("Please enter a WhatsApp number");return}if(!/^\+?[0-9]{7,15}$/.test(se)){p("Enter a valid number with country code (e.g. +919876543210)");return}const ae={ADT:"Adult",CHD:"Child",INF:"Infant"},oe=n.filter(te=>i.includes(te.bookingKey)).map((te,he)=>{const me=te.visaFare.paxWisePriceList.map(de=>{const Ae=ae[de.PaxType]??de.PaxType,Se=de.PaxType!=="ADT"&&de.age?` (age ${de.age})`:"",Re=Number(de.tax??0)+Number(de.hiddenAgentMarkup??0)+Number(de.hiddenMarkup??0)+Number(de.platformFee??0)+Number(de.marketplaceFees??0);return` ⢠${Ae}${Se} x${de.paxCount}: ${xr(de.fareQuoteTotal)} (${xr(de.fareQuoteTotal/de.paxCount)} * ${de.paxCount}) 5188 Government Fees: ${xr(de.embassyFees)} | Service Fee: ${xr(de.serviceFees??0)} | Tax: ${xr(Re)}`}).join(` 5189`);return`${he+1}. *${te.visaName}* 5190 Type: ${te.visaType} | Entry: ${te.entry} 5191 Validity: ${te.validity} ${te.validityType} | Stay: ${te.duration??"-"} ${te.durationType} 5192 *Fare Breakdown:* 5193${me} 5194 *Total: ${xr(te.visaFare.fareQuoteTotal)}*`}).join(` 5195 5196âââââââââââââââââ 5197 5198`);window.open(`https://api.whatsapp.com/send?phone=${se.replace("+","")}&text=${encodeURIComponent(`*Visa Quotation* 5199 5200${oe}`)}`,"_blank")},e[7]=i,e[8]=n,e[9]=u,e[10]=C):C=e[10];const M=C,D=r?i.length>0?`Share (${i.length})`:"Select Visas":"Share Quotation",k=r&&i.length===0?"outlined":"secondary";let I;e[11]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(vfe,{}),e[11]=I):I=e[11];let L;e[12]!==D||e[13]!==g||e[14]!==k?(L=x.jsx(fi,{btnText:D,iconPosition:"right",className:"text-xs md:text-sm",variant:k,onClick:g,children:I}),e[12]=D,e[13]=g,e[14]=k,e[15]=L):L=e[15];let O;if(e[16]!==i||e[17]!==n){let se;e[19]!==i?(se=ae=>i.includes(ae.bookingKey),e[19]=i,e[20]=se):se=e[20],O=n.filter(se).map(s6t),e[16]=i,e[17]=n,e[18]=O}else O=e[18];let B;e[21]!==O?(B=x.jsx("div",{className:"space-y-2",children:O}),e[21]=O,e[22]=B):B=e[22];let G;e[23]===Symbol.for("react.memo_cache_sentinel")?(G=se=>{f(se.target.value),p("")},e[23]=G):G=e[23];let j;e[24]!==h||e[25]!==u?(j=x.jsx("div",{className:"border-t border-gray-200 dark:border-gray-600 pt-4",children:x.jsx(dr,{label:"WhatsApp Number",required:!0,placeholder:"+919876543210",value:u,onChange:G,errorText:h})}),e[24]=h,e[25]=u,e[26]=j):j=e[26];let z;e[27]!==T?(z=x.jsx(gr,{btnText:"Cancel",variant:"outlined",onClick:T}),e[27]=T,e[28]=z):z=e[28];let Q;e[29]!==M?(Q=x.jsx(gr,{btnText:"Send via WhatsApp",variant:"secondary",onClick:M}),e[29]=M,e[30]=Q):Q=e[30];let ee;e[31]!==z||e[32]!==Q?(ee=x.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[z,Q]}),e[31]=z,e[32]=Q,e[33]=ee):ee=e[33];let Z;e[34]!==j||e[35]!==ee||e[36]!==B?(Z=x.jsxs("div",{className:"space-y-4",children:[B,j,ee]}),e[34]=j,e[35]=ee,e[36]=B,e[37]=Z):Z=e[37];let X;e[38]!==T||e[39]!==l||e[40]!==Z?(X=x.jsx(kh,{isOpen:l,onModalClose:T,modalTitle:"Share Quotation via WhatsApp",showCloseButton:!0,children:Z}),e[38]=T,e[39]=l,e[40]=Z,e[41]=X):X=e[41];let K;return e[42]!==X||e[43]!==L?(K=x.jsxs(x.Fragment,{children:[L,X]}),e[42]=X,e[43]=L,e[44]=K):K=e[44],K}function s6t(t){return x.jsxs("div",{className:"border border-gray-200 dark:border-gray-600 rounded-2xl p-3 flex justify-between items-center gap-4",children:[x.jsxs("div",{children:[x.jsx("div",{className:"font-semibold text-gray-800 dark:text-gray-100",children:t.visaName}),x.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:[t.visaType," · ",t.entry," Entry · Stay ",t.duration," ",t.durationType]})]}),x.jsx("div",{className:"text-lg font-bold text-(--secondary-color) whitespace-nowrap",children:xr(t.visaFare.fareQuoteTotal)})]},t.bookingKey)}function Bw(t){const e=Dn.c(5),{title:n,children:r}=t;let i;e[0]!==n?(i=x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-3",children:n}),e[0]=n,e[1]=i):i=e[1];let a;return e[2]!==r||e[3]!==i?(a=x.jsxs("div",{className:"border-b border-gray-100 dark:border-gray-700 pb-4 mb-4 last:border-0 last:mb-0",children:[i,r]}),e[2]=r,e[3]=i,e[4]=a):a=e[4],a}Bw.propTypes={title:re.string.isRequired,children:re.node.isRequired};function oN(t){const e=Dn.c(11),{label:n,checked:r,onChange:i}=t,a=`w-4 h-4 shrink-0 rounded flex items-center justify-center border transition-colors ${r?"bg-(--secondary-color) border-(--secondary-color)":"border-gray-300 dark:border-gray-600 group-hover:border-(--secondary-color)"}`;let s;e[0]!==r?(s=r&&x.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:x.jsx("path",{d:"M1 4L3.5 6.5L9 1",stroke:"white",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==a||e[3]!==s?(o=x.jsx("div",{className:a,children:s}),e[2]=a,e[3]=s,e[4]=o):o=e[4];let l;e[5]!==n?(l=x.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:n}),e[5]=n,e[6]=l):l=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==l?(c=x.jsxs("label",{className:"flex items-center gap-2 cursor-pointer py-1.5 group",onClick:i,children:[o,l]}),e[7]=i,e[8]=o,e[9]=l,e[10]=c):c=e[10],c}oN.propTypes={label:re.string.isRequired,checked:re.bool.isRequired,onChange:re.func.isRequired};function B8e(t){const e=Dn.c(45),{min:n,max:r,value:i,onChange:a,step:s}=t,o=s===void 0?100:s,[l,c]=i;let u;e[0]!==r||e[1]!==n?(u=Q=>(Q-n)/(r-n)*100,e[0]=r,e[1]=n,e[2]=u):u=e[2];const f=u;let h;e[3]!==c||e[4]!==a||e[5]!==o?(h=Q=>{const ee=Math.min(Number(Q.target.value),c-o);a([ee,c])},e[3]=c,e[4]=a,e[5]=o,e[6]=h):h=e[6];const p=h;let A;e[7]!==l||e[8]!==a||e[9]!==o?(A=Q=>{const ee=Math.max(Number(Q.target.value),l+o);a([l,ee])},e[7]=l,e[8]=a,e[9]=o,e[10]=A):A=e[10];const g=A;let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx("div",{className:"absolute w-full h-1 rounded-full bg-gray-200 dark:bg-gray-600"}),e[11]=w):w=e[11];const T=`${f(l)}%`,C=`${100-f(c)}%`;let M;e[12]!==T||e[13]!==C?(M=x.jsx("div",{className:"absolute h-1 rounded-full bg-(--secondary-color)",style:{left:T,right:C}}),e[12]=T,e[13]=C,e[14]=M):M=e[14];let D;e[15]!==p||e[16]!==l||e[17]!==r||e[18]!==n||e[19]!==o?(D=x.jsx("input",{type:"range",min:n,max:r,step:o,value:l,onCh
5200ange:p,className:"absolute w-full appearance-none bg-transparent pointer-events-none [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-(--secondary-color) [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:shadow-md [&::-webkit-slider-thumb]:cursor-grab [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-(--secondary-color) [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-solid [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:shadow-md [&::-moz-range-thumb]:cursor-grab"}),e[15]=p,e[16]=l,e[17]=r,e[18]=n,e[19]=o,e[20]=D):D=e[20];let k;e[21]!==g||e[22]!==c||e[23]!==r||e[24]!==n||e[25]!==o?(k=x.jsx("input",{type:"range",min:n,max:r,step:o,value:c,onChange:g,className:"absolute w-full appearance-none bg-transparent pointer-events-none [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-(--secondary-color) [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:shadow-md [&::-webkit-slider-thumb]:cursor-grab [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-(--secondary-color) [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-solid [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:shadow-md [&::-moz-range-thumb]:cursor-grab"}),e[21]=g,e[22]=c,e[23]=r,e[24]=n,e[25]=o,e[26]=k):k=e[26];let I;e[27]!==k||e[28]!==M||e[29]!==D?(I=x.jsxs("div",{className:"relative h-5 flex items-center",children:[w,M,D,k]}),e[27]=k,e[28]=M,e[29]=D,e[30]=I):I=e[30];let L;e[31]!==n?(L=xr(n),e[31]=n,e[32]=L):L=e[32];let O;e[33]!==L?(O=x.jsx("span",{children:L}),e[33]=L,e[34]=O):O=e[34];let B;e[35]!==r?(B=xr(r),e[35]=r,e[36]=B):B=e[36];let G;e[37]!==B?(G=x.jsx("span",{children:B}),e[37]=B,e[38]=G):G=e[38];let j;e[39]!==O||e[40]!==G?(j=x.jsxs("div",{className:"flex justify-between text-xs text-gray-400 dark:text-gray-500 mt-2",children:[O,G]}),e[39]=O,e[40]=G,e[41]=j):j=e[41];let z;return e[42]!==I||e[43]!==j?(z=x.jsxs("div",{className:"px-1",children:[I,j]}),e[42]=I,e[43]=j,e[44]=z):z=e[44],z}B8e.propTypes={min:re.number.isRequired,max:re.number.isRequired,value:re.arrayOf(re.number).isRequired,onChange:re.func.isRequired,step:re.number};function U8e(t){const e=Dn.c(52),{filters:n,onChange:r,onApply:i,onReset:a,priceRange:s,options:o}=t,[l,c]=s;let u;e[0]!==n||e[1]!==r?(u=(Q,ee)=>{const Z=n[Q],X=Z.includes(ee)?Z.filter(K=>K!==ee):[...Z,ee];r({...n,[Q]:X})},e[0]=n,e[1]=r,e[2]=u):u=e[2];const f=u,h=o6t;let p;e[3]!==n.priceRange[0]?(p=xr(n.priceRange[0]),e[3]=n.priceRange[0],e[4]=p):p=e[4];let A;e[5]!==p?(A=x.jsx("span",{children:p}),e[5]=p,e[6]=A):A=e[6];let g;e[7]!==n.priceRange[1]?(g=xr(n.priceRange[1]),e[7]=n.priceRange[1],e[8]=g):g=e[8];let w;e[9]!==g?(w=x.jsx("span",{children:g}),e[9]=g,e[10]=w):w=e[10];let T;e[11]!==A||e[12]!==w?(T=x.jsxs("div",{className:"flex justify-between text-sm font-semibold text-(--secondary-color) mb-4",children:[A,w]}),e[11]=A,e[12]=w,e[13]=T):T=e[13];let C;e[14]!==n||e[15]!==r?(C=Q=>r({...n,priceRange:Q}),e[14]=n,e[15]=r,e[16]=C):C=e[16];let M;e[17]!==n.priceRange||e[18]!==c||e[19]!==l||e[20]!==C?(M=x.jsx(B8e,{min:l,max:c,value:n.priceRange,onChange:C}),e[17]=n.priceRange,e[18]=c,e[19]=l,e[20]=C,e[21]=M):M=e[21];let D;e[22]!==T||e[23]!==M?(D=x.jsxs(Bw,{title:"Price Range",children:[T,M]}),e[22]=T,e[23]=M,e[24]=D):D=e[24];let k;e[25]!==n.entryTypes||e[26]!==o.entryTypes||e[27]!==f?(k=o.entryTypes.length>0&&x.jsx(Bw,{title:"Entry Type",children:x.jsx("div",{className:"space-y-0.5",children:o.entryTypes.map(Q=>x.jsx(oN,{label:h(Q),checked:n.entryTypes.includes(Q),onChange:()=>f("entryTypes",Q)},Q))})}),e[25]=n.entryTypes,e[26]=o.entryTypes,e[27]=f,e[28]=k):k=e[28];let I;e[29]!==n.purposes||e[30]!==o.purposes||e[31]!==f?(I=o.purposes.length>0&&x.jsx(Bw,{title:"Purpose",children:x.jsx("div",{className:"space-y-0.5",children:o.purposes.map(Q=>x.jsx(oN,{label:Q,checked:n.purposes.includes(Q),onChange:()=>f("purposes",Q)},Q))})}),e[29]=n.purposes,e[30]=o.purposes,e[31]=f,e[32]=I):I=e[32];let L;e[33]!==n.visaTypes||e[34]!==o.visaTypes||e[35]!==f?(L=o.visaTypes.length>0&&x.jsx(Bw,{title:"Visa Type",children:x.jsx("div",{className:"space-y-0.5",children:o.visaTypes.map(Q=>x.jsx(oN,{label:Q,checked:n.visaTypes.includes(Q),onChange:()=>f("visaTypes",Q)},Q))})}),e[33]=n.visaTypes,e[34]=o.visaTypes,e[35]=f,e[36]=L):L=e[36];let O;e[37]!==k||e[38]!==I||e[39]!==L||e[40]!==D?(O=x.jsxs("div",{className:"flex-1 overflow-y-auto",children:[D,k,I,L]}),e[37]=k,e[38]=I,e[39]=L,e[40]=D,e[41]=O):O=e[41];let B;e[42]!==a?(B=x.jsx("button",{type:"button",onClick:a,className:"flex-1 py-2.5 rounded-xl border border-gray-300 dark:border-gray-600 text-sm font-semibold text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:"Reset"}),e[42]=a,e[43]=B):B=e[43];let G;e[44]!==i?(G=x.jsx("button",{type:"button",onClick:i,className:"flex-1 py-2.5 rounded-xl bg-(--secondary-color) text-white text-sm font-semibold hover:opacity-90 transition-opacity",children:"Apply Filters"}),e[44]=i,e[45]=G):G=e[45];let j;e[46]!==B||e[47]!==G?(j=x.jsxs("div",{className:"border-t border-gray-100 dark:border-gray-700 pt-4 flex gap-3",children:[B,G]}),e[46]=B,e[47]=G,e[48]=j):j=e[48];let z;return e[49]!==O||e[50]!==j?(z=x.jsxs("div",{className:"flex flex-col h-full",children:[O,j]}),e[49]=O,e[50]=j,e[51]=z):z=e[51],z}function o6t(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}U8e.propTypes={filters:re.shape({priceRange:re.arrayOf(re.number).isRequired,entryTypes:re.arrayOf(re.string).isRequired,purposes:re.arrayOf(re.string).isRequired,providers:re.arrayOf(re.string).isRequired,visaTypes:re.arrayOf(re.string).isRequired}).isRequired,onChange:re.func.isRequired,onApply:re.func.isRequired,onReset:re.func.isRequired,priceRange:re.arrayOf(re.number).isRequired,options:re.shape({entryTypes:re.arrayOf(re.string).isRequired,purposes:re.arrayOf(re.string).isRequired,providers:re.arrayOf(re.string).isRequired,visaTypes:re.arrayOf(re.string).isRequired}).isRequired};function l6t(){const t=Ss(),[e]=AT(),[n,r]=b.useState(!1),[i,a]=b.useState(!0),[s,o]=b.useState(null),[l,c]=b.useState(!1),[u,f]=b.useState(null),h=b.useRef(null),[p,A]=b.useState([]),[g,w]=b.useState(null),[T,C]=b.useState(!1),[M,D]=b.useState(!1),[k,I]=b.useState(!1),[L,O]=b.useState({}),[B,G]=b.useState({}),[j,z]=b.useState(!1),[Q,ee]=b.useState(""),[Z,X]=b.useState("price"),[K,se]=b.useState(!1),[ae,J]=b.useState([]),[oe,te]=b.useState(!1),[he,me]=b.useState(null),[de,Ae]=b.useState(null),Se=b.useRef(!0),Re=b.useRef("price");console.log(g);const Ne=[{id:"price",label:"Price Low to High"},{id:"stay",label:"Longest Stay"}],Fe=async ht=>{if(L&&L[ht.visaId])return;const ve={traceId:Q,bookingKey:ht.visaBookingKey,providerId:ht.providerId},ce=await Tme(ve);ce.statusCode===200?O(je=>({...je,[ht.visaId]:ce.data.visaDocumentList})):o({title:"Error",description:ce.message,variant:"error"})},Qe=async()=>
5200{if(B&&B[g.visaId]){z(!0);return}const ht={traceId:Q,bookingKey:g.visaBookingKey,providerId:g.providerId};z(!0);const ve=await Eme(ht);ve.statusCode===200?G(ce=>({...ce,[g.visaId]:ve.data})):o({title:"Error",description:ve.message,variant:"error"})},ge=ht=>{if(!ht||ht.length===0)return{entryTypes:[],purposes:[],providers:[],visaTypes:[]};const ve=[...new Set(ht.map(ft=>ft.entry).filter(Boolean))],ce=[...new Set(ht.flatMap(ft=>ft.purpose?ft.purpose.split(",").map(at=>at.trim()):[]).filter(Boolean))],je=[...new Set(ht.map(ft=>ft.providerName).filter(Boolean))],dt=[...new Set(ht.map(ft=>ft.visaType).filter(Boolean))];return{entryTypes:ve,purposes:ce,providers:je,visaTypes:dt}},Ie=ht=>{if(!ht||ht.length===0)return null;const ve=ht.map(dt=>dt.visaFare.totalAmount),ce=Math.floor(Math.min(...ve)),je=Math.ceil(Math.max(...ve));return{priceRange:[ce,je],entryTypes:[],purposes:[],providers:[],visaTypes:[]}},De=async ht=>{A([]),h.current=[],G({}),O({}),Ae(null),me(null),a(!0);const ve=await qZe(ht);if(ve.statusCode===200){ee(ve.data.traceId);const ce=ve.data.visaList?[...ve.data.visaList].sort((dt,ft)=>dt.visaFare.totalAmount-ft.visaFare.totalAmount):[];Fe(ce[0]),h.current=ce,A(ce),w(ce[0]);const je=Ie(ce);me(je)}a(!1)};b.useEffect(()=>{O({}),A([]),w(null);const ht=e.get("childAges"),ve=e.get("infantAges"),ce=ht?ht.split(",").filter(Boolean).map(Number):[],je=ve?ve.split(",").filter(Boolean).map(Number):[],dt={adults:Number(e.get("adults")),children:Number(e.get("children")),infants:Number(e.get("infants")),nationality:e.get("nationality"),clientId:e.get("clientId"),destination:{destinationName:e.get("destinationName")?.toUpperCase(),destinationCode:e.get("destinationCode")},visaTypes:e.getAll("visaType").filter(Boolean),filters:e.getAll("filter").filter(Boolean),childAges:ce,infantAges:je};f(dt),De(dt),console.log(dt)},[e]);const Xe=()=>{if(!g||!u)return;const ht=new URLSearchParams({traceId:Q,visaBookingKey:g.visaBookingKey,providerId:g.providerId,destinationName:u.destination.destinationName,destinationCode:u.destination.destinationCode,nationality:u.nationality,adults:u.adults,children:u.children,infants:u.infants,clientId:u.clientId,visaType:u.visaTypes,filters:u.filters});t(`${Zn.BOOKING_PAGE}?${ht}`,{state:{selectedVisa:g,searchRequest:u}})},Ye=ht=>{J(ve=>ve.includes(ht)?ve.filter(ce=>ce!==ht):[...ve,ht])},Me=(ht,ve)=>ve?ht.filter(ce=>{try{const je=ce.visaFare.totalAmount;return!(je<ve.priceRange[0]||je>ve.priceRange[1]||ve.entryTypes.length>0&&!ve.entryTypes.includes(ce.entry)||ve.purposes.length>0&&!ve.purposes.some(ft=>(ce.purpose||"").toLowerCase().includes(ft.toLowerCase()))||ve.providers.length>0&&!ve.providers.includes(ce.providerName)||ve.visaTypes.length>0&&!ve.visaTypes.includes(ce.visaType))}catch(je){return console.warn("Excluded visa due to error:",ce,je),!1}}):ht,lt=ht=>{if(!ht)return 0;const ve=Ie(h.current);if(!ve)return 0;let ce=0;return(ht.priceRange[0]!==ve.priceRange[0]||ht.priceRange[1]!==ve.priceRange[1])&&ce++,ht.entryTypes.length>0&&ce++,ht.purposes.length>0&&ce++,ht.providers.length>0&&ce++,ht.visaTypes.length>0&&ce++,ce},Ht=ht=>{const ve=Re.current===ht?!Se.current:!0;Se.current=ve,Re.current=ht,X(ht);const ce=[...h.current];ht==="price"&&ce.sort((je,dt)=>ve?je.visaFare.totalAmount-dt.visaFare.totalAmount:dt.visaFare.totalAmount-je.visaFare.totalAmount),ht==="processing"&&ce.sort((je,dt)=>ve?je.processingTime-dt.processingTime:dt.processingTime-je.processingTime),ht==="stay"&&ce.sort((je,dt)=>ve?dt.duration-je.duration:je.duration-dt.duration),A(Me(ce,de))},Le=()=>{Ae(he),A(Me([...h.current].sort((ht,ve)=>ht.visaFare.totalAmount-ve.visaFare.totalAmount),he)),te(!1)},Nt=()=>{const ht=Ie(h.current);me(ht),Ae(null),A([...h.current].sort((ve,ce)=>ve.visaFare.totalAmount-ce.visaFare.totalAmount)),te(!1)},Ct=ht=>{w(ht),Fe(ht)},It=ht=>g?.visaFare.paxWisePriceList.find(ve=>ve.PaxType===ht)?.fareQuoteTotal,nt=(ht,ve,ce,je,dt)=>{if(ce<=0||!It(ht))return null;const ft=g.visaFare.paxWisePriceList.filter(at=>at.PaxType===ht);return console.log(ft),ft.map(at=>(Number(at?.platformFee)+Number(at?.serviceFees)+Number(at?.tax)+Number(at?.hiddenMarkup)+Number(at?.hiddenAgentMarkup),x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex justify-between items-center text-sm mt-2 cursor-pointer",onClick:()=>dt(St=>!St),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[je?x.jsx(KG,{}):x.jsx(nP,{}),x.jsxs("span",{children:[ve," ",x.jsx("sup",{children:"*"})," ",at?.paxCount,at.PaxType!=="ADT"&&x.jsxs("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:["age - ",at?.age," "]})]})]}),x.jsxs("div",{children:[x.jsx("div",{className:"text-right",children:xr(at?.fareQuoteTotal)}),x.jsxs("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:["(",xr(at?.fareQuoteTotal/at?.paxCount)," * ",at?.paxCount,")"]})]})]}),x.jsxs("div",{className:`overflow-hidden transition-all duration-300 ease-in-out ${je?"max-h-40 opacity-100 mb-2":"max-h-0 opacity-0"} bg-gray-50 dark:bg-gray-700 rounded-xl px-3 py-2 text-xs text-gray-500 dark:text-gray-400 space-y-1 mt-2`,children:[x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Government Fees"}),x.jsx("span",{children:xr(at?.embassyFees)})]}),x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Service Fee"}),x.jsx("span",{children:xr(at?.serviceFees??0)})]}),x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Tax"}),x.jsx("span",{children:xr(at?.tax??0)})]})]})]})))};return x.jsxs(x.Fragment,{children:[n&&x.jsx(go,{isLoading:n}
5200),s&&x.jsx(Do,{title:s.title,description:s.description,variant:s.variant,onHide:()=>o(null)}),x.jsxs("div",{className:"max-w-7xl mx-auto mt-2 md:mt-5 px-4 sm:px-6 lg:px-8",children:[x.jsxs("button",{type:"button",onClick:()=>t(Zn.SEARCH_PAGE),className:"flex items-center gap-1.5 mb-3 text-sm font-medium text-gray-600 dark:text-gray-300 hover:text-(--secondary-color) transition-colors cursor-pointer",children:[x.jsx(Ap,{size:18})," Back to Search"]}),x.jsxs("div",{children:[u&&x.jsx("div",{className:"hidden lg:block",children:x.jsx(boe,{searchRequest:u})}),x.jsxs("div",{className:"lg:hidden grid grid-cols-12 gap-2 items-center",children:[x.jsx("div",{className:"col-span-7",children:x.jsx(woe,{visaResults:p,isSelectionMode:K,selectedVisaIds:ae,onEnterSelectionMode:()=>se(!0),onClearSelection:()=>{se(!1),J([])},onAlert:o})}),x.jsx("div",{className:"col-span-5",children:x.jsx(fi,{variant:"outlined",btnText:"Modify",className:"text-xs md:text-sm",onClick:()=>c(!l),iconPosition:"left",children:x.jsx(bT,{})})})]}),x.jsx(Np,{children:l&&x.jsx(ql.div,{initial:{opacity:0,y:-40,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-40,height:0},transition:{duration:.3,ease:"easeInOut"},children:x.jsx("div",{className:"mt-2",children:x.jsx(boe,{searchRequest:u})})})})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-4 mt-4 mb-30",children:[x.jsxs("div",{className:`col-span-12 ${g?"lg:col-span-9":"lg:col-span-12"}
5200 app-card`,children:[x.jsxs("div",{className:"grid grid-cols-12",children:[x.jsx("div",{className:"col-span-12 md:col-span-10",children:x.jsxs("div",{className:"flex gap-2 flex-wrap",children:[x.jsxs("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400",children:[x.jsx(z0e,{size:20}),x.jsx("span",{className:"text-sm",children:"Sort By :"})]}),x.jsx("div",{className:"flex bg-gray-100 dark:bg-gray-700 rounded-xl p-1 relative",children:Ne.map(ht=>x.jsxs("button",{onClick:()=>Ht(ht.id),className:"relative px-6 py-3 text-sm font-medium rounded-xl",children:[Z===ht.id&&x.jsx(ql.div,{layoutId:"activeTab",className:"absolute inset-0 bg-white dark:bg-gray-600 rounded-xl shadow-md",transition:{type:"spring",stiffness:300,damping:30}}),x.jsx("span",{className:`relative z-10 ${Z===ht.id?"text-[var(--secondary-color)]":"text-gray-500 dark:text-gray-400"}`,children:ht.label})]},ht.id))})]})}),x.jsx("div",{className:"col-span-12 md:col-span-2 flex items-center justify-end",children:x.jsx("div",{className:"relative mt-2",children:x.jsx(fi,{variant:"outlined-secondary",btnText:`Filter ${lt(de)>0?`(${lt(de)})`:""}`,className:"text-xs md:text-sm",onClick:()=>te(!0),iconPosition:"left",children:x.jsx(sfe,{size:16})})})})]}),i?x.jsx("div",{className:"mt-6 flex items-center justify-center",children:x.jsxs("div",{children:[x.jsx("img",{src:"/images/loader.gif",alt:"loading"}),x.jsx("div",{className:"text-xl text-gray-500 dark:text-gray-400 text-center",children:"Loading..."})]})}):x.jsx("div",{className:"mt-4",children:p.map(ht=>x.jsx(jk,{visa:ht,selectedFare:g,traceId:Q,onSelect:Ct,getVisaDetails:Qe,isSelectionMode:K,isChecked:ae.includes(ht.bookingKey),onToggleSelect:Ye},ht.bookingKey))}),p.length===0&&!i&&x.jsx("div",{className:"text-center text-gray-500 dark:text-gray-400",children:"No results found"})]}),g&&u&&x.jsxs("div",{className:"hidden lg:block lg:col-span-3",children:[x.jsx(woe,{visaResults:p,isSelectionMode:K,selectedVisaIds:ae,onEnterSelectionMode:()=>se(!0),onClearSelection:()=>{se(!1),J([])},onAlert:o}),x.jsxs("div",{className:"sticky top-4",children:[x.jsxs("div",{className:"app-card mt-4 self-start",children:[x.jsxs("div",{children:[x.jsx("div",{className:"text-xl font-semibold",children:"Fare Summary"}),x.jsx("div",{className:"h-[2px] w-20 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"})]}),x.jsxs("div",{className:"p-1 px-2 bg-[var(--primary-color-40)] shadow-sm rounded-[10px] flex justify-between items-center mt-4 text-sm font-semibold dark:text-black",children:[x.jsx("div",{children:"No. of Travellers"}),x.jsx("div",{children:u.adults+u.children+u.infants})]}),nt("ADT","Adult",u.adults,T,C),nt("CHD","Child",u.children,M,D),nt("INF","Infant",u.infants,k,I),x.jsxs("div",{className:"py-2 border-2 border-dashed border-l-0 border-r-0 border-gray-300 dark:border-gray-600 flex justify-between items-center font-semibold mt-4",children:[x.jsx("div",{children:"Total Cost"}),x.jsx("div",{children:xr(g.visaFare.fareQuoteTotal)})]})]}),x.jsxs("div",{className:"app-card mt-4 self-start",children:[x.jsxs("div",{className:"mb-4",children:[x.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x.jsx("div",{className:"text-xl font-semibold",children:"Required Documents"}),x.jsx("div",{onClick:()=>Qe(),children:x.jsx(JD,{size:20,color:"var(--secondary-color)"})})]}),x.jsx("div",{className:"h-[2px] bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)] w-20"})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[L[g.visaId]?L[g.visaId].map(ht=>x.jsx("div",{visaid:g.visaId,className:"text-sm col-span-6",children:ht.documentName},ht.documentId)):x.jsx("div",{className:"text-sm col-span-12 flex items-center justify-center",children:x.jsx("img",{src:"/images/spinner.gif",alt:"loading",className:"w-10 h-10"})}),L[g.visaId]?.length===0&&x.jsx("div",{className:"text-sm col-span-12 flex items-center justify-center text-gray-500 dark:text-gray-400",children:"No Documents Found"})]})]})]})]})]}),g&&u&&x.jsx(F8e,{onProceed:Xe,selectedFare:g,searchRequest:u,ongetVisaDetails:Qe})]}),he&&x.jsx(qc,{isOpen:oe,onHideSidebar:()=>te(!1),sidebarTitle:"Filter Results",children:x.jsx(U8e,{filters:he,onChange:me,options:ge(h.current),priceRange:Ie(h.current)?.priceRange??[0,1e5],onApply:Le,onReset:Nt})}
5200),x.jsxs(qc,{isOpen:j,onHideSidebar:()=>z(!1),sidebarTitle:"Visa Details",children:[g&&u&&x.jsxs("div",{className:"lg:hidden mb-6 space-y-4",children:[x.jsxs("div",{className:"app-card",children:[x.jsxs("div",{children:[x.jsx("div",{className:"text-xl",children:"Fare Summary"}),x.jsx("div",{className:"h-[2px] bg-[var(--secondary-color)] w-20"})]}),x.jsxs("div",{className:"p-1 px-2 bg-[var(--secondary-color-30)] shadow-sm rounded-[10px] flex justify-between items-center mt-4 text-sm font-semibold dark:text-blue-200",children:[x.jsx("div",{children:"No. of Travellers"}),x.jsx("div",{children:u.adults+u.children+u.infants})]}),nt("ADT","Adult",u.adults,T,C),nt("CHD","Child",u.children,M,D),nt("INF","Infant",u.infants,k,I),x.jsxs("div",{className:"py-2 border-2 border-dashed border-l-0 border-r-0 border-gray-300 dark:border-gray-600 flex justify-between items-center font-semibold mt-4",children:[x.jsx("div",{children:"Total Cost"}),x.jsx("div",{children:xr(g.visaFare.fareQuoteTotal)})]})]}),x.jsxs("div",{className:"app-card",children:[x.jsxs("div",{className:"mb-4",children:[x.jsx("div",{className:"text-xl",children:"Required Documents"}),x.jsx("div",{className:"h-[2px] bg-[var(--secondary-color)] w-20"})]}),x.jsx("div",{className:"grid grid-cols-12 gap-2",children:L[g.visaId]?L[g.visaId].map(ht=>x.jsx("div",{className:"text-sm col-span-6",children:ht.documentName},ht.documentId)):x.jsx("div",{className:"text-sm col-span-12 flex items-center justify-center",children:x.jsx("img",{src:"/images/spinner.gif",alt:"loading",className:"w-10 h-10"})})})]})]}),g&&B[g.visaId]?x.jsx(I8e,{detail:B[g.visaId]}):x.jsx("div",{className:"flex items-center justify-center h-40",children:x.jsx("img",{src:"/images/spinner.gif",alt:"loading",className:"w-10 h-10"})})]})]})}function c6t(){const t=Dn.c(133),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=uy(S0),t[0]=n):n=t[0];const r=n,[i,a]=b.useState(!1),[,s]=b.useState(!1),[o,l]=b.useState(null);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={},t[1]=c):c=t[1],b.useState(c);const[u,f]=b.useState(0);let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[2]=h):h=t[2];const[p,A]=b.useState(h),[g,w]=b.useState(!1),[T,C]=b.useState("");let M;t[3]===Symbol.for("react.memo_cache_sentinel")?(M=uy(d9),t[3]=M):M=t[3];const D=M,{isDark:k,toggleTheme:I}=B2();let L;t[4]!==e?(L=async()=>{s(!0),(await zUe()).statusCode===200?(s(!1),l({title:"BYE !",description:"Logout successful",variant:"success"}),localStorage.clear(),setTimeout(()=>{e("/")},1e3)):(s(!1),l({title:"Error",description:"Logout failed",variant:"error"}))},t[4]=e,t[5]=L):L=t[5];const O=L;let B;t[6]===Symbol.for("react.memo_cache_sentinel")?(B=async()=>{const Ke=await Ate();Ke?.statusCode===200&&(f(Ke?.result?.balance),PV(YU,Ke?.result?.balance))},t[6]=B):B=t[6];const G=B;let j;t[7]===Symbol.for("react.memo_cache_sentinel")?(j=async()=>{const Ke=await ZUe();if(Ke.statusCode===200){const rt=Ke.result.map(u6t);A(rt)}},t[7]=j):j=t[7];const z=j;let Q;t[8]!==T?(Q=async()=>{if(!T)return;const Ke=await XUe(T);if(Ke.statusCode===200){Zm(d9,Ke.result.accessToken);const rt=await ZN();rt.statusCode===200&&Zm(S0,rt.result);const Rt=await Ate();Rt?.statusCode===200&&PV(YU,Rt.result.balance),w(!1),l({title:"Success",description:"Emulation successful",variant:"success"}),window.location.reload()}else l({title:"Error",description:"Emulation failed",variant:"error"})},t[8]=T,t[9]=Q):Q=t[9];const ee=Q;let Z;t[10]===Symbol.for("react.memo_cache_sentinel")?(Z=async()=>{const Ke=await QUe();if(Ke.statusCode===200){l({title:"Success",description:"Switch back successful",variant:"success"}),localStorage.removeItem(d9),Zm(EN,Ke.result.accessToken);const rt=await ZN();rt.statusCode===200?(Zm(S0,rt.result),window.location.reload()):l({title:"Error",description:"Error in getching user Details",variant:"error"})}else l({title:"Error",description:"Switch back failed",variant:"error"});console.log(Ke)},t[10]=Z):Z=t[10];const X=Z;let K,se;t[11]===Symbol.for("react.memo_cache_sentinel")?(se=()=>{G(),(FA()===Fm.ADMIN_STAFF||FA()===Fm.ADMIN)&&z()},K=[],t[11]=K,t[12]=se):(K=t[11],se=t[12]),b.useEffect(se,K);let ae;
5200t[13]!==o?(ae=o&&x.jsx(Do,{title:o.title,description:o.description,variant:o.variant,onHide:()=>l(null)}),t[13]=o,t[14]=ae):ae=t[14];let J;t[15]!==e?(J=()=>e(Zn.SEARCH_PAGE),t[15]=e,t[16]=J):J=t[16];const oe=k?"/images/app_logo_white.svg":"/images/app_logo_black.svg";let te;t[17]!==oe?(te=x.jsx("img",{src:oe,className:"w-[130px]"}),t[17]=oe,t[18]=te):te=t[18];let he;t[19]!==J||t[20]!==te?(he=x.jsx("div",{className:"text-xl font-bold text-[var(--primary-color)]",onClick:J,children:te}),t[19]=J,t[20]=te,t[21]=he):he=t[21];let me;t[22]===Symbol.for("react.memo_cache_sentinel")?(me=D&&x.jsx("div",{children:x.jsx(gr,{variant:"outlined",btnText:"Switch Back",className:"text-xs",onClick:()=>X()})}),t[22]=me):me=t[22];let de;t[23]===Symbol.for("react.memo_cache_sentinel")?(de=x.jsx("div",{className:"color-[--outlined-grey-color]",children:x.jsx(R3,{size:24,style:{color:"var(--outlined-gray-color)"},weight:"duotone"})}),t[23]=de):de=t[23];let Ae;t[24]!==u?(Ae=xr(u),t[24]=u,t[25]=Ae):Ae=t[25];let Se;t[26]!==Ae?(Se=x.jsxs("div",{className:"flex gap-2",children:[de,x.jsx("div",{className:"color-[--primary-color] text-gray-500 dark:text-gray-400",children:Ae})]}),t[26]=Ae,t[27]=Se):Se=t[27];let Re;t[28]===Symbol.for("react.memo_cache_sentinel")?(Re=x.jsx("div",{className:"text-gray-300 text-2xl",children:"|"}),t[28]=Re):Re=t[28];let Ne;t[29]===Symbol.for("react.memo_cache_sentinel")?(Ne=x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-xs text-right",children:"Welcome !"}),t[29]=Ne):Ne=t[29];let Fe;t[30]===Symbol.for("react.memo_cache_sentinel")?(Fe=x.jsxs("div",{className:"color-[--outlined-grey-color]",children:[Ne,x.jsx("div",{className:"text-right dark:text-gray-200 font-semibold",children:r?.company})]}),t[30]=Fe):Fe=t[30];let Qe;t[31]===Symbol.for("react.memo_cache_sentinel")?(Qe=x.jsx(as.Trigger,{children:x.jsx("div",{className:"bg-[var(--secondary-color)] rounded-full p-2",children:x.jsx(Yw,{size:24,color:"white",weight:"duotone"})})}),t[31]=Qe):Qe=t[31];let ge;t[32]!==e?(ge=x.jsx(as.Item,{onClick:()=>e(Zn.ACCOUNTS),children:"Accounts"}),t[32]=e,t[33]=ge):ge=t[33];let Ie;t[34]===Symbol.for("react.memo_cache_sentinel")?(Ie=(FA()===Fm.ADMIN_STAFF||FA()===Fm.ADMIN)&&x.jsx(as.Item,{onClick:()=>w(!0),children:"Emulate"}),t[34]=Ie):Ie=t[34];let De;t[35]!==k?(De=k?x.jsx(JU,{size:15}):x.jsx(KU,{size:15}),t[35]=k,t[36]=De):De=t[36];const Xe=k?"Light":"Dark";let Ye;t[37]!==Xe?(Ye=x.jsx("span",{children:Xe}),t[37]=Xe,t[38]=Ye):Ye=t[38];let Me;t[39]!==De||t[40]!==Ye?(Me=x.jsxs("div",{className:"flex items-center gap-2",children:[De,Ye]}),t[39]=De,t[40]=Ye,t[41]=Me):Me=t[41];const lt=`w-9 h-5 rounded-full relative transition-colors duration-200 ${k?"bg-[var(--secondary-color)]":"bg-gray-300"}`,Ht=`absolute top-0.5 w-4 h-4 bg-white rounded-full shadow transition-transform duration-200 ${k?"translate-x-4":"translate-x-0.5"}`;let Le;t[42]!==Ht?(Le=x.jsx("div",{className:Ht}),t[42]=Ht,t[43]=Le):Le=t[43];let Nt;t[44]!==lt||t[45]!==Le?(Nt=x.jsx("div",{className:lt,children:Le}),t[44]=lt,t[45]=Le,t[46]=Nt):Nt=t[46];let Ct;t[47]!==Me||t[48]!==Nt?(Ct=x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[Me,Nt]}),t[47]=Me,t[48]=Nt,t[49]=Ct):Ct=t[49];let It;t[50]!==Ct||t[51]!==I?(It=x.jsx(as.Item,{onClick:I,children:Ct}),t[50]=Ct,t[51]=I,t[52]=It):It=t[52];let nt;t[53]!==O?(nt=x.jsx(as.Item,{onClick:()=>O(),className:"text-red-500",children:"Logout"}),t[53]=O,t[54]=nt):nt=t[54];let ht;t[55]!==ge||t[56]!==It||t[57]!==nt?(ht=x.jsxs("div",{className:"flex gap-4 items-center",children:[Fe,x.jsxs(as,{children:[Qe,x.jsxs(as.Content,{children:[ge,Ie,It,nt]})]})]}),t[55]=ge,t[56]=It,t[57]=nt,t[58]=ht):ht=t[58];let ve;t[59]!==Se||t[60]!==ht?(ve=x.jsxs("div",{className:"hidden md:flex gap-4 items-center",children:[me,Se,Re,ht]}),t[59]=Se,t[60]=ht,t[61]=ve):ve=t[61];let ce;t[62]===Symbol.for("react.memo_cache_sentinel")?(ce=D&&x.jsx("div",{children:x.jsx(gr,{variant:"outlined",btnText:"Switch Back",className:"text-xs",onClick:()=>X()})}),t[62]=ce):ce=t[62];let je;t[63]!==i?(je=x.jsxs("div",{className:"md:hidden flex gap-2 items-center",children:[ce,x.jsx("button",{onClick:()=>a(!i),children:i?x.jsx(I9e,{size:24}):x.jsx(O9e,{size:24})})]}),t[63]=i,t[64]=je):je=t[64];let dt;t[65]!==he||t[66]!==ve||t[67]!==je?(dt=x.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:x.jsxs("div",{className:"flex justify-between items-center h-16",children:[he,ve,je]})}),t[65]=he,t[66]=ve,t[67]=je,t[68]=dt):dt=t[68];let ft;t[69]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>a(!1),t[69]=ft):ft=t[69];let at;t[70]===Symbol.for("react.memo_cache_sentinel")?(at=x.jsx("div",{className:"bg-[var(--secondary-color)] rounded-full p-3 shrink-0",children:x.jsx(Yw,{size:26,color:"white"})}),t[70]=at):at=t[70];let St;t[71]===Symbol.for("react.memo_cache_sentinel")?(St=x.jsx("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:"Welcome!"}),t[71]=St):St=t[71];let ut;t[72]===Symbol.for("react.memo_cache_sentinel")?(ut=x.jsxs("div",{className:"min-w-0",children:[St,x.jsx("div",{className:"font-semibold text-gray-800 dark:text-white truncate",children:r?.company})]}),t[72]=ut):ut=t[72];let gt;t[73]===Symbol.for("react.memo_cache_sentinel")?(gt=x.jsx(R3,{size:15,className:"text-gray-400 dark:text-gray-300"}),t[73]=gt):gt=t[73];let Vt;
5200t[74]!==u?(Vt=xr(u),t[74]=u,t[75]=Vt):Vt=t[75];let Zt;t[76]!==Vt?(Zt=x.jsxs("div",{className:"flex items-center gap-3 p-4 bg-gray-50 dark:bg-gray-800 rounded-2xl mb-6",children:[at,ut,x.jsxs("div",{className:"ml-auto flex items-center gap-1.5 bg-white dark:bg-gray-700 px-3 py-1.5 rounded-xl shadow-sm shrink-0",children:[gt,x.jsx("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-200",children:Vt})]})]}),t[76]=Vt,t[77]=Zt):Zt=t[77];let Wt;t[78]!==e?(Wt=()=>{a(!1),e(Zn.ACCOUNTS)},t[78]=e,t[79]=Wt):Wt=t[79];let qt,We;t[80]===Symbol.for("react.memo_cache_sentinel")?(qt=x.jsx("div",{className:"w-9 h-9 bg-blue-50 dark:bg-blue-900/30 rounded-xl flex items-center justify-center shrink-0",children:x.jsx(Yw,{size:18,className:"text-blue-500"})}),We=x.jsx("span",{className:"text-gray-700 dark:text-gray-200 font-medium",children:"Accounts"}),t[80]=qt,t[81]=We):(qt=t[80],We=t[81]);let yn;t[82]!==Wt?(yn=x.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-3 rounded-xl hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors text-left",onClick:Wt,children:[qt,We]}),t[82]=Wt,t[83]=yn):yn=t[83];let vn;t[84]===Symbol.for("react.memo_cache_sentinel")?(vn=(FA()===Fm.ADMIN_STAFF||FA()===Fm.ADMIN)&&x.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-3 rounded-xl hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors text-left",onClick:()=>{a(!1),w(!0)},children:[x.jsx("div",{className:"w-9 h-9 bg-purple-50 dark:bg-purple-900/30 rounded-xl flex items-center justify-center shrink-0",children:x.jsx(ofe,{size:18,className:"text-purple-500"})}),x.jsx("span",{className:"text-gray-700 dark:text-gray-200 font-medium",children:"Emulate"})]}),t[84]=vn):vn=t[84];let Ge;t[85]!==k?(Ge=x.jsx("div",{className:"w-9 h-9 bg-amber-50 dark:bg-amber-900/30 rounded-xl flex items-center justify-center shrink-0",children:k?x.jsx(JU,{size:18,className:"text-amber-400"}):x.jsx(KU,{size:18,className:"text-amber-500"})}),t[85]=k,t[86]=Ge):Ge=t[86];const kt=k?"Light Mode":"Dark Mode";let _t;t[87]!==kt?(_t=x.jsx("span",{className:"text-gray-700 dark:text-gray-200 font-medium",children:kt}),t[87]=kt,t[88]=_t):_t=t[88];const Dt=`w-11 h-6 rounded-full relative transition-colors duration-200 ${k?"bg-[var(--secondary-color)]":"bg-gray-300"}`,jt=`absolute top-1 w-4 h-4 bg-white rounded-full shadow transition-transform duration-200 ${k?"translate-x-6":"translate-x-1"}`;let Lt;t[89]!==jt?(Lt=x.jsx("div",{className:jt}),t[89]=jt,t[90]=Lt):Lt=t[90];let Bt;t[91]!==Dt||t[92]!==Lt?(Bt=x.jsx("div",{className:"ml-auto",children:x.jsx("div",{className:Dt,children:Lt})}),t[91]=Dt,t[92]=Lt,t[93]=Bt):Bt=t[93];let Gt;t[94]!==Ge||t[95]!==_t||t[96]!==Bt||t[97]!==I?(Gt=x.jsxs("div",{className:"flex items-center gap-3 px-3 py-3 rounded-xl hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors cursor-pointer",onClick:I,children:[Ge,_t,Bt]}),t[94]=Ge,t[95]=_t,t[96]=Bt,t[97]=I,t[98]=Gt):Gt=t[98];let hn;t[99]!==yn||t[100]!==Gt?(hn=x.jsxs("div",{className:"space-y-1",children:[yn,vn,Gt]}),t[99]=yn,t[100]=Gt,t[101]=hn):hn=t[101];let Ve;t[102]===Symbol.for("react.memo_cache_sentinel")?(Ve=x.jsx("div",{className:"border-t border-gray-200 dark:border-gray-700 my-4"}),t[102]=Ve):Ve=t[102];let pt,Tt;t[103]===Symbol.for("react.memo_cache_sentinel")?(pt=x.jsx("div",{className:"w-9 h-9 bg-red-50 dark:bg-red-900/30 rounded-xl flex items-center justify-center shrink-0",children:x.jsx(_fe,{size:18,className:"text-red-500"})}),Tt=x.jsx("span",{className:"text-red-500 font-medium",children:"Logout"}),t[103]=pt,t[104]=Tt):(pt=t[103],Tt=t[104]);let xt;t[105]!==O?(xt=x.jsxs("button",{onClick:O,className:"w-full flex items-center gap-3 px-3 py-3 rounded-xl hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors text-left",children:[pt,Tt]}),t[105]=O,t[106]=xt):xt=t[106];let v;t[107]!==i||t[108]!==Zt||t[109]!==hn||t[110]!==xt?(v=x.jsxs(qc,{isOpen:i,onHideSidebar:ft,sidebarTitle:"Menu",children:[Zt,hn,Ve,xt]}),t[107]=i,t[108]=Zt,t[109]=hn,t[110]=xt,t[111]=v):v=t[111];let W;t[112]!==dt||t[113]!==v?(W=x.jsxs("nav",{className:"bg-white dark:bg-gray-900 shadow-md dark:shadow-gray-700 app-header transition-colors duration-200 print:hidden",children:[dt,v]}
5200),t[112]=dt,t[113]=v,t[114]=W):W=t[114];let Te;t[115]===Symbol.for("react.memo_cache_sentinel")?(Te=()=>w(!1),t[115]=Te):Te=t[115];let _e;t[116]===Symbol.for("react.memo_cache_sentinel")?(_e={height:"200px"},t[116]=_e):_e=t[116];let be;t[117]===Symbol.for("react.memo_cache_sentinel")?(be=Ke=>C(Ke.value),t[117]=be):be=t[117];let xe;t[118]!==p||t[119]!==T?(xe=x.jsx("div",{className:"col-span-8",children:x.jsx(Ia,{options:p,selectedValue:T,onChange:be})}),t[118]=p,t[119]=T,t[120]=xe):xe=t[120];let we;t[121]!==ee?(we=x.jsx("div",{className:"col-span-4",children:x.jsx(gr,{btnText:"Emulate",variant:"secondary",onClick:()=>ee()})}),t[121]=ee,t[122]=we):we=t[122];let tt;t[123]!==xe||t[124]!==we?(tt=x.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center",children:[xe,we]}),t[123]=xe,t[124]=we,t[125]=tt):tt=t[125];let ot;t[126]!==g||t[127]!==tt?(ot=x.jsx(kh,{isOpen:g,onModalClose:Te,modalTitle:"Emulate",showCloseButton:!0,size:"sm",styles:_e,children:tt}),t[126]=g,t[127]=tt,t[128]=ot):ot=t[128];let ze;return t[129]!==ae||t[130]!==W||t[131]!==ot?(ze=x.jsxs(x.Fragment,{children:[ae,W,ot]}),t[129]=ae,t[130]=W,t[131]=ot,t[132]=ze):ze=t[132],ze}function u6t(t){return{label:`${t.company} (${t.userId})`,value:t.userId}}function f6t(t){const e=Dn.c(6),{children:n}=t,r=Dd();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[Zn.LOGIN,Zn.AGENT_REGISTRATION,Zn.CONTACT_US,Zn.ABOUT,Zn.PRIVACY_POLICY,Zn.TERMS_CONDITIONS,Zn.PRIVACY_POLICY_IVS,Zn.TERMS_CONDITIONS_IVS,Zn.VISA_TYPES_STATIC,Zn.PRESS_RELEASE,Zn.COMING_SOON],e[0]=i):i=e[0];const s=!i.includes(r.pathname);let o;e[1]!==s?(o=s&&x.jsx(c6t,{}),e[1]=s,e[2]=o):o=e[2];let l;return e[3]!==n||e[4]!==o?(l=x.jsxs(x.Fragment,{children:[o,n]}),e[3]=n,e[4]=o,e[5]=l):l=e[5],l}function UH({fileName:t,description:e,documentUrl:n,errorText:r,className:i,onUploaded:a,onRemoved:s,paxIndex:o,documentId:l,documentNumber:c,documentName:u,documentFormat:f}){const h=b.useRef(null),[p,A]=b.useState(n||null),g={"application/pdf":"pdf","image/jpeg":"jpg","image/png":"png","image/jpg":"jpg"};b.useEffect(()=>{A(n||null)},[n]);const[w,T]=b.useState(!1),[C,M]=b.useState(""),D=async L=>{const O=L.target.files[0];if(!O)return;if(!["image/jpeg","image/jpg","image/png","application/pdf"].includes(O.type)){M("Only JPG, JPEG, PNG, or PDF files are allowed."),h.current&&(h.current.value="");return}if(O.size>5*1024*1024){M("File size must not exceed 5MB."),h.current&&(h.current.value="");return}T(!0),M("");const G=new FormData;G.append("file",O);try{const j=await Mme(u,G);j.statusCode===200?(A(j.data.documentUrl),j.data.ocr?j.data.ocrDetails.isValidImg?a&&a(j.data.documentUrl,l,c,o,!0,j.data.ocrDetails):(A(""),M("Failed. Please upload valid image."),h.current&&(h.current.value="")):a&&a(j.data.documentUrl,l,c,o,!1)):(M(j.message||"Upload failed. Please try again."),h.current&&(h.current.value=""))}catch{M("Upload failed. Please try again."),h.current&&(h.current.value="")}finally{T(!1)}},k=()=>{A(null),M(""),h.current&&(h.current.value=""),s&&s(l,o)},I=r&&r!==""||C&&C!=="";return p?x.jsxs("div",{className:N3(`relative flex flex-col items-center justify-center w-full h-full rounded-2xl border-2 border-green-400 bg-green-50 dark:bg-green-950/20 transition ${i}`),children:[x.jsx("div",{className:"p-4 rounded-full flex items-center justify-center text-white",children:x.jsx("img",{src:p,alt:"check",width:100,style:{height:"100px"},onError:L=>{L.target.src="/images/docpng.png"},onClick:()=>window.open(p,"_blank")})}),x.jsx("p",{className:"mt-4 font-semibold text-gray-700 dark:text-gray-200 text-center text-xs px-3 break-all",children:t}),x.jsx("button",{type:"button",onClick:k,className:"absolute top-3 right-3 bg-red-400 text-white rounded-full p-1.5",children:x.jsx(rx,{size:12,weight:"bold"})})]}):x.jsxs("label",{className:"relative block w-full cursor-pointer h-full",children:[x.jsx("input",{ref:h,type:"file",accept:f==null||f==""?"image/*,application/pdf":f,className:"hidden",onChange:D,disabled:w}),x.jsxs("div",{className:N3(`flex flex-col items-center justify-center h-full rounded-2xl border-2 border-dashed transition ${I?"border-red-400 bg-red-50 dark:bg-red-950/20 dark:border-red-700":"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600"} ${i}`),children:[x.jsxs("div",{className:"absolute top-5 right-5 text-gray-500 dark:text-gray-400 group",children:[x.jsx(JD,{size:22}),x.jsx("div",{className:`absolute bottom-full w-50 text-left left-0 mb-2 5201 opacity-0 invisible group-hover:opacity-100 group-hover:visible 5202 transition duration-200 bg-gray-900 text-white text-xs px-3 py-1 rounded-lg shadow-lg z-10`,children:e&&e.map((L,O)=>x.jsxs("p",{children:[" ",O+1,". ",L]},O))})]}),x.jsx("div",{className:`p-4 rounded-full flex items-center justify-center text-white ${I?"bg-red-400":"bg-[var(--secondary-color)]"}`,children:w?x.jsx(ST,{size:25,className:"animate-spin"}):x.jsx(TT,{size:25})}),x.jsx("p",{className:"mt-6 font-semibold text-gray-700 dark:text-gray-200 text-center px-2 text-[12px]",children:t}),x.jsxs("span",{className:"text-xs",children:[" ",f==null||f==""?"":`${g[f]}`]}),w&&x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-1",children:"Uploading..."}),I&&x.jsx("p",{className:"text-red-500 text-[10px] mt-2 text-center px-2",children:C||r})]})]})}function Ep(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ms(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function zu(t){Ms(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||b2(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.
52021 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function V8e(t,e){Ms(2,arguments);var n=zu(t),r=Ep(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function d6t(t,e){Ms(2,arguments);var n=zu(t).getTime(),r=Ep(e);return new Date(n+r)}var h6t={};function Hk(){return h6t}function p6t(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Soe(t){Ms(1,arguments);var e=zu(t);return e.setHours(0,0,0,0),e}var j8e=6e4,H8e=36e5;function G8e(t,e){Ms(2,arguments);var n=Soe(t),r=Soe(e);return n.getTime()===r.getTime()}function m6t(t){return Ms(1,arguments),t instanceof Date||b2(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function z8e(t){if(Ms(1,arguments),!m6t(t)&&typeof t!="number")return!1;var e=zu(t);return!isNaN(Number(e))}function A6t(t,e){Ms(2,arguments);var n=Ep(e);return d6t(t,-n)}var g6t=864e5;function x6t(t){Ms(1,arguments);var e=zu(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/g6t)+1}function wD(t){Ms(1,arguments);var e=1,n=zu(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function $8e(t){Ms(1,arguments);var e=zu(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=wD(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var s=wD(a);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function v6t(t){Ms(1,arguments);var e=$8e(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=wD(n);return r}var y6t=6048e5;function _6t(t){Ms(1,arguments);var e=zu(t),n=wD(e).getTime()-v6t(e).getTime();return Math.round(n/y6t)+1}function SD(t,e){var n,r,i,a,s,o,l,c;Ms(1,arguments);var u=Hk(),f=Ep((n=(r=(i=(a=e?.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=zu(t),p=h.getUTCDay(),A=(p<f?7:0)+p-f;return h.setUTCDate(h.getUTCDate()-A),h.setUTCHours(0,0,0,0),h}function q8e(t,e){var n,r,i,a,s,o,l,c;Ms(1,arguments);var u=zu(t),f=u.getUTCFullYear(),h=Hk(),p=Ep((n=(r=(i=(a=e?.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=new Date(0);A.setUTCFullYear(f+1,0,p),A.setUTCHours(0,0,0,0);var g=SD(A,e),w=new Date(0);w.setUTCFullYear(f,0,p),w.setUTCHours(0,0,0,0);var T=SD(w,e);return u.getTime()>=g.getTime()?f+1:u.getTime()>=T.getTime()?f:f-1}function b6t(t,e){var n,r,i,a,s,o,l,c;Ms(1,arguments);var u=Hk(),f=Ep((n=(r=(i=(a=e?.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=q8e(t,e),p=new Date(0);p.setUTCFullYear(h,0,f),p.setUTCHours(0,0,0,0);var A=SD(p,e);return A}var w6t=6048e5;function S6t(t,e){Ms(1,arguments);var n=zu(t),r=SD(n,e).getTime()-b6t(n,e).getTime();return Math.round(r/w6t)+1}function La(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var DA={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return La(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):La(r+1,2)},d:function(e,n){return La(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return La(e.getUTCHours()%12||12,n.length)},H:function(e,n){return La(e.getUTCHours(),n.length)},m:function(e,n){return La(e.getUTCMinutes(),n.length)},s:function(e,n){return La(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return La(a,n.length)}},_8={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T6t={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return DA.y(e,n)},Y:function(e,n,r,i){var a=q8e(e,i),s=a>0?a:1-a;if(n==="YY"){var o=s%100;return La(o,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):La(s,n.length)},R:function(e,n){var r=$8e(e);return La(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return La(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return La(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return La(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return DA.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return La(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var a=S6t(e,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):La(a,n.length)},I:function(e,n,r){var i=_6t(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):La(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):DA.d(e,n)},D:function(e,n,r){var i=x6t(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):La(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var a=e.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return La(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var a=e.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return La(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return La(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),a;switch(i===12?a=_8.noon:i===0?a=_8.midnight:a=i/12>
vendor: 3,549 bytes, line 5202
5202=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),a;switch(i>=17?a=_8.evening:i>=12?a=_8.afternoon:i>=4?a=_8.morning:a=_8.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return DA.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):DA.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):La(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):La(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):DA.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):DA.s(e,n)},S:function(e,n){return DA.S(e,n)},X:function(e,n,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Eoe(s);case"XXXX":case"XX":return lv(s);default:return lv(s,":")}},x:function(e,n,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(n){case"x":return Eoe(s);case"xxxx":case"xx":return lv(s);default:return lv(s,":")}},O:function(e,n,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Toe(s,":");default:return"GMT"+lv(s,":")}},z:function(e,n,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Toe(s,":");default:return"GMT"+lv(s,":")}},t:function(e,n,r,i){var a=i._originalDate||e,s=Math.floor(a.getTime()/1e3);return La(s,n.length)},T:function(e,n,r,i){var a=i._originalDate||e,s=a.getTime();return La(s,n.length)}};function Toe(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var s=e;return n+String(i)+s+La(a,2)}function Eoe(t,e){if(t%60===0){var n=t>0?"-":"+";return n+La(Math.abs(t)/60,2)}return lv(t,e)}function lv(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),a=La(Math.floor(i/60),2),s=La(i%60,2);return r+a+n+s}var Moe=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},W8e=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},E6t=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return Moe(e,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Moe(i,n)).replace("{{time}}",W8e(a,n))},M6t={p:W8e,P:E6t},C6t=["D","DD"],N6t=["YY","YYYY"];function R6t(t){return C6t.indexOf(t)!==-1}function D6t(t){return N6t.indexOf(t)!==-1}function Coe(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").
vendor: 7,711 bytes, line 5202
5202concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var P6t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},k6t=function(e,n,r){var i,a=P6t[e];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function JB(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var L6t={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},O6t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F6t={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},I6t={date:JB({formats:L6t,defaultWidth:"full"}),time:JB({formats:O6t,defaultWidth:"full"}),dateTime:JB({formats:F6t,defaultWidth:"full"})},B6t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},U6t=function(e,n,r,i){return B6t[e]};function dw(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=t.formattingValues[s]||t.formattingValues[a]}else{var o=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[o]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var V6t={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j6t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},H6t={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G6t={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},z6t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$6t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},q6t=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},W6t={ordinalNumber:q6t,era:dw({values:V6t,defaultWidth:"wide"}),quarter:dw({values:j6t,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dw({values:H6t,defaultWidth:"wide"}),day:dw({values:G6t,defaultWidth:"wide"}),dayPeriod:dw({values:z6t,defaultWidth:"wide",formattingValues:$6t,defaultFormattingWidth:"wide"})};function hw(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var s=a[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?Y6t(o,function(f){return f.test(s)}):Z6t(o,function(f){return f.test(s)}),c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(s.length);return{value:c,rest:u}}}function Z6t(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Y6t(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function X6t(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],a=e.match(t.parsePattern);if(!a)return null;var s=t.valueCallback?t.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;var o=e.slice(i.length);return{value:s,rest:o}}}var Q6t=/^(\d+)(th|st|nd|rd)?/i,K6t=/\d+/i,J6t={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ebt={any:[/^b/i,/^(a|c)/i]},tbt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nbt={any:[/1/i,/2/i,/3/i,/4/i]},rbt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ibt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},abt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sbt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},obt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lbt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cbt={ordinalNumber:X6t({matchPattern:Q6t,parsePattern:K6t,valueCallback:function(e){return parseInt(e,10)}}),era:hw({matchPatterns:J6t,defaultMatchWidth:"wide",parsePatterns:ebt,defaultParseWidth:"any"}),quarter:hw({matchPatterns:tbt,defaultMatchWidth:"wide",parsePatterns:nbt,defaultParseWidth:"any",valueCallback:function(e){return e+1}}
5202),month:hw({matchPatterns:rbt,defaultMatchWidth:"wide",parsePatterns:ibt,defaultParseWidth:"any"}),day:hw({matchPatterns:abt,defaultMatchWidth:"wide",parsePatterns:sbt,defaultParseWidth:"any"}),dayPeriod:hw({matchPatterns:obt,defaultMatchWidth:"any",parsePatterns:lbt,defaultParseWidth:"any"})},ubt={code:"en-US",formatDistance:k6t,formatLong:I6t,formatRelative:U6t,localize:W6t,match:cbt,options:{weekStartsOn:0,firstWeekContainsDate:1}},fbt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dbt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hbt=/^'([^]*?)'?$/,pbt=/''/g,mbt=/[a-zA-Z]/;function K5(t,e,n){var r,i,a,s,o,l,c,u,f,h,p,A,g,w;Ms(2,arguments);var T=String(e),C=Hk(),M=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:ubt,D=Ep((a=(s=(o=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&o!==void 0?o:C.firstWeekContainsDate)!==null&&s!==void 0?s:(c=C.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Ep((f=(h=(p=(A=void 0)!==null&&A!==void 0?A:void 0)!==null&&p!==void 0?p:C.weekStartsOn)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&f!==void 0?f:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var I=zu(t);if(!z8e(I))throw new RangeError("Invalid time value");var L=p6t(I),O=A6t(I,L),B={firstWeekContainsDate:D,weekStartsOn:k,locale:M,_originalDate:I},G=T.match(dbt).map(function(j){var z=j[0];if(z==="p"||z==="P"){var Q=M6t[z];return Q(j,M.formatLong)}return j}).join("").match(fbt).map(function(j){if(j==="''")return"'";var z=j[0];if(z==="'")return Abt(j);var Q=T6t[z];if(Q)return D6t(j)&&Coe(j,e,String(t)),R6t(j)&&Coe(j,e,String(t)),Q(O,j,M.localize,B);if(z.match(mbt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return j}).join("");return G}function Abt(t){var e=t.match(hbt);return e?e[1].replace(pbt,"'"):t}function Noe(t){Ms(1,arguments);var e=zu(t),n=e.getDate();return n}function VC(t){Ms(1,arguments);var e=zu(t),n=e.getMonth();return n}function jC(t){return Ms(1,arguments),zu(t).getFullYear()}function gbt(t){return Ms(1,arguments),G8e(t,Date.now())}function xbt(t,e){Ms(2,arguments);var n=Ep(e);return V8e(t,-n)}function vbt(t){return Ms(1,arguments),G8e(t,xbt(Date.now(),1))}function ybt(t,e){var n;Ms(1,arguments);var r=Ep((n=void 0)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=Sbt(t),a;if(i.date){var s=Tbt(i.date,r);a=Ebt(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var o=a.getTime(),l=0,c;if(i.time&&(l=Mbt(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Cbt(i.timezone),isNaN(c))return new Date(NaN)}else{var u=new Date(o+l),f=new Date(0);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return new Date(o+l+c)}var HC={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_bt=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bbt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wbt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Sbt(t){var e={},n=t.split(HC.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],HC.timeZoneDelimiter.test(e.date)&&(e.date=t.split(HC.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=HC.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function Tbt(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function Ebt(t,e){if(e===null)return new Date(NaN);var n=t.match(_bt);if(!n)return new Date(NaN);var r=!!n[4],i=pw(n[1]),a=pw(n[2])-1,s=pw(n[3]),o=pw(n[4]),l=pw(n[5])-1;if(r)return kbt(e,o,l)?Nbt(e,o,l):new Date(NaN);var c=new Date(0);return!Dbt(e,a,s)||!Pbt(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,s)),c)}function pw(t){return t?parseInt(t):1}function Mbt(t){var e=t.match(bbt);if(!e)return NaN;var n=eU(e[1]),r=eU(e[2]),i=eU(e[3]);return Lbt(n,r,i)?n*H8e+r*j8e+i*1e3:NaN}function eU(t){return t&&parseFloat(t.replace(",","."))||0}function Cbt(t){if(t==="Z")return 0;var e=t.match(wbt);
5202if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return Obt(r,i)?n*(r*H8e+i*j8e):NaN}function Nbt(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,a=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Rbt=[31,null,31,30,31,30,31,31,30,31,30,31];function Z8e(t){return t%400===0||t%4===0&&t%100!==0}function Dbt(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Rbt[e]||(Z8e(t)?29:28))}function Pbt(t,e){return e>=1&&e<=(Z8e(t)?366:365)}function kbt(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Lbt(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Obt(t,e){return e>=0&&e<=59}const Roe=t=>{if(!t)return"â";const e=ybt(t);return z8e(e)?K5(e,"dd MMM, yyyy"):"â"};function Fbt(t){const e=Dn.c(29),{isOpen:n,paxIndex:r,currentPax:i,onClose:a,onApply:s}=t,[o,l]=b.useState(""),[c,u]=b.useState(null);let f;e[0]!==o?(f=async()=>{u(null);const O={agentId:GLe(),passportNumber:o.trim()},B=await ZZe(O);if(B.statusCode===200&&B.data.length>0){const G=[];B.data.forEach(z=>{z.visaDocumentList.forEach(Q=>{G.find(Z=>Z.documentName.toLowerCase().replace(/\s+/g,"_")===Q.documentName.toLowerCase().replace(/\s+/g,"_"))||G.push(Q)})});const j={age:B.data[B.data.length-1].age,dob:B.data[B.data.length-1].dob,firstName:B.data[B.data.length-1].firstName,lastName:B.data[B.data.length-1].lastName,occupation:B.data[B.data.length-1].occupation,passportExpiry:B.data[B.data.length-1].passportExpiry,passportNumber:B.data[B.data.length-1].passportNumber,paxType:B.data[B.data.length-1].paxType,title:B.data[B.data.length-1].title};u({age:j.age,dob:j.dob,firstName:j.firstName,lastName:j.lastName,occupation:j.occupation,passportExpiry:j.passportExpiry,passportNumber:j.passportNumber,paxType:j.paxType,title:j.title,visaDocumentList:G})}else u(void 0)},e[0]=o,e[1]=f):f=e[1];const h=f;let p;e[2]!==a?(p=()=>{l(""),u(null),a()},e[2]=a,e[3]=p):p=e[3];const A=p;let g;e[4]!==i||e[5]!==s||e[6]!==r||e[7]!==c?(g=()=>{if(!c||r===null)return;const O={...i,title:c.title||i.title,firstName:c.firstName||i.firstName,lastName:c.lastName||i.lastName,dob:c.dob||i.dob,passportNumber:c.passportNumber||i.passportNumber,occupation:c.occupation||i.occupation,passportExpiry:c.passportExpiry||i.passportExpiry,visaDocumentList:i.visaDocumentList?.map(B=>{const G=c.visaDocumentList.find(j=>j.documentName.toLowerCase().replace(/\s+/g,"_")===B.documentName.toLowerCase().replace(/\s+/g,"_"));return G?.documentUrl?{...B,documentUrl:G.documentUrl}:B})};s(O),l(""),u(null)},e[4]=i,e[5]=s,e[6]=r,e[7]=c,e[8]=g):g=e[8];const w=g;let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=O=>l(O.target.value),e[9]=T):T=e[9];let C;e[10]!==o?(C=x.jsx("div",{className:"col-span-8",children:x.jsx(dr,{value:o,onChange:T,placeholder:"Passport Number"})}),e[10]=o,e[11]=C):C=e[11];let M;e[12]!==h?(M=x.jsx("div",{className:"col-span-4",children:x.jsx(gr,{btnText:"Fetch",variant:"secondary",onClick:h})}),e[12]=h,e[13]=M):M=e[13];let D;e[14]!==C||e[15]!==M?(D=x.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center",children:[C,M]}),e[14]=C,e[15]=M,e[16]=D):D=e[16];let k;e[17]!==c?(k=c===void 0&&x.jsx("p",{className:"mt-4 text-sm text-center text-gray-400 dark:text-gray-500",children:"No passenger found for this passport number."}),e[17]=c,e[18]=k):k=e[18];let I;e[19]!==w||e[20]!==r||e[21]!==c?(I=c&&x.jsxs("div",{className:"mt-4 space-y-4",children:[x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800/60 rounded-xl border border-gray-200 dark:border-gray-700 p-4",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("div",{className:"w-11 h-11 rounded-full bg-linear-to-br from-blue-500 to-cyan-400 flex items-center justify-center text-white font-bold text-sm shrink-0",children:[(c.firstName?.[0]??"").toUpperCase(),(c.lastName?.[0]??"").toUpperCase()]}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("p",{className:"font-semibold text-gray-800 dark:text-gray-100 text-sm leading-tight",children:[c.title," ",c.firstName," ",c.lastName]}),x.jsx("p",{className:"text-xs text-gray-400 mt-0.5 font-mono",children:c.passportNumber})]}),x.jsx("span",{className:"text-xs px-2 py-1 rounded-full bg-blue-100 text-blue-600 dar
5202k:bg-blue-900/40 dark:text-blue-400 font-medium shrink-0",children:c.paxType==="ADT"?"Adult":c.paxType==="CHD"?"Child":"Infant"})]}),x.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 text-xs",children:[c.dob&&x.jsxs("div",{children:[x.jsx("p",{className:"text-gray-400",children:"Date of Birth"}),x.jsx("p",{className:"text-gray-700 dark:text-gray-200 font-medium mt-0.5",children:Roe(c.dob)})]}),c.passportExpiry&&x.jsxs("div",{children:[x.jsx("p",{className:"text-gray-400",children:"Passport Expiry"}),x.jsx("p",{className:"text-gray-700 dark:text-gray-200 font-medium mt-0.5",children:Roe(c.passportExpiry)})]}),c.occupation&&x.jsxs("div",{children:[x.jsx("p",{className:"text-gray-400",children:"Occupation"}),x.jsx("p",{className:"text-gray-700 dark:text-gray-200 font-medium mt-0.5",children:c.occupation})]})]})]}),c.visaDocumentList?.length>0&&x.jsxs("div",{children:[x.jsxs("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wide mb-2",children:["Documents (",c.visaDocumentList.length,")"]}),x.jsx("div",{className:"space-y-2",children:c.visaDocumentList.map(Ibt)})]}),x.jsx(gr,{btnText:`Apply to Pax ${(r??0)+1}`,variant:"secondary",onClick:w,className:"w-full"})]}),e[19]=w,e[20]=r,e[21]=c,e[22]=I):I=e[22];let L;return e[23]!==A||e[24]!==n||e[25]!==D||e[26]!==k||e[27]!==I?(L=x.jsxs(qc,{isOpen:n,sidebarTitle:"Fetch Pax",onHideSidebar:A,children:[D,k,I]}),e[23]=A,e[24]=n,e[25]=D,e[26]=k,e[27]=I,e[28]=L):L=e[28],L}function Ibt(t){return x.jsxs("div",{className:"flex items-center gap-3 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-2",children:[t.documentUrl?x.jsx("img",{src:t.documentUrl,alt:t.documentName,className:"w-12 h-12 rounded-md object-cover border border-gray-200 dark:border-gray-700 shrink-0"}):x.jsx("div",{className:"w-12 h-12 rounded-md bg-gray-100 dark:bg-gray-700 flex items-center justify-center shrink-0",children:x.jsx(Dy,{size:20,className:"text-gray-400"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-xs font-semibold text-gray-700 dark:text-gray-200 leading-tight",children:t.documentName}),x.jsx("p",{className:`text-[11px] mt-0.5 ${t.documentUrl?"text-green-500":"text-gray-400"}`,children:t.documentUrl?"Uploaded":"Not uploaded"})]}),t.documentUrl&&x.jsx("a",{href:t.documentUrl,target:"_blank",rel:"noreferrer",className:"text-xs text-blue-500 hover:underline shrink-0",children:"View"})]},t.documentId)}function Doe(t){const e=Dn.c(50),{selectedVisa:n}=t,[r]=b.useState(n?.destination?.destinationCode),[i]=b.useState("IN"),[a]=b.useState(n?.visaType);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={adults:1,children:0,infants:0},e[0]=s):s=e[0],b.useState(s);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx("div",{className:"text-xs font-light",children:"VISA FOR CITIZEN OF"}),e[1]=o):o=e[1];const l=i||"Select";let c;e[2]!==l?(c=x.jsx("div",{className:"text-2xl font-semibold",children:l}),e[2]=l,e[3]=c):c=e[3];let u;e[4]!==i?(u=Yv.find(ae=>ae.value===i)?.label,e[4]=i,e[5]=u):u=e[5];let f;e[6]!==u?(f=x.jsx("div",{className:"text-xs",children:u}),e[6]=u,e[7]=f):f=e[7];let h;e[8]!==c||e[9]!==f?(h=x.jsxs("div",{className:"col-span-5 text-left",children:[o,c,f]}),e[8]=c,e[9]=f,e[10]=h):h=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx("div",{className:"col-span-2 flex items-center justify-center",children:x.jsx("div",{className:"bg-[var(--secondary-color)] rounded-[100px] p-2 w-1/2 flex justify-center items-center",children:x.jsx(ms,{color:"white"})})}),e[11]=p):p=e[11];let A;e[12]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx("div",{className:"text-xs font-light",children:"DESTINATION COUNTRY"}),e[12]=A):A=e[12];const g=r||"Select";let w;e[13]!==g?(w=x.jsx("div",{className:"text-2xl font-semibold",children:g}),e[13]=g,e[14]=w):w=e[14];let T;e[15]!==r?(T=Yv.find(ae=>ae.value===r)?.label,e[15]=r,e[16]=T):T=e[16];let C;e[17]!==T?(C=x.jsx("div",{className:"text-xs",children:T}),e[17]=T,e[18]=C):C=e[18];let M;e[19]!==w||e[20]!==C?(M=x.jsxs("div",{className:"col-span-5 text-right",children:[A,w,C]}),e[19]=w,e[20]=C,e[21]=M):M=e[21];let D;e[22]!==M||e[23]!==h?(D=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[h,p,M]})}),e[22]=M,e[23]=h,e[24]=D):D=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsx("div",{className:"md:col-span-1 hidden md:flex justify-center",children:x.jsx("div",{className:"h-16 border-l border-dashed border-gray-400"})}),e[25]=k):k=e[25];let I;e[26]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx("div",{className:"text-xs font-light",children:"VISA TYPE"}),e[26]=I):I=e[26];let L;e[27]!==a?(L=a?.toLocaleUpperCase()||"Select",e[27]=a,e[28]=L):L=e[28];let O;e[29]!==L?(O=x.jsx("div",{className:"col-span-6 md:col-span-3 flex justify-center",children:x.jsxs("div",{children:[I,x.jsx("div",{className:"font-semibold",children:L})]})}),e[29]=L,e[30]=O):O=e[30];let B;e[31]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx("div",{className:"text-xs font-light",children:"ENTRY TYPE"}),e[31]=B):B=e[31];let G;e[32]!==n.entry?(G=x.jsx("div",{className:"col-span-6 md:col-span-3 flex justify-center",children:x.jsxs("div",{children:[B,x.jsx("div",{className:"font-semibold",children:n.entry})]})}),e[32]=n.entry,e[33]=G):G=e[33];let j;e[34]===Symbol.for("react.memo_cache_sentinel")?(j=x.jsx("div",{className:"text-xs font-light",children:"VALIDITY DURATION"}),e[34]=j):j=e[34];const z=n.validity===0?"":n.validity;let Q;e[35]!==n.validityType||e[36]!==z?(Q=x.jsx("div",{className:"col-span-6 md:col-span-3 flex justify-center mt-4 md:mt-0",children:x.jsxs("div",{children:[j,x.jsxs("div",{className:"font-semibold",children:[z," ",n.validityType]})]})}),e[35]=n.validityType,e[36]=z,e[37]=Q):Q=e[37];let ee;e[38]===Symbol.for("react.memo_cache_sentinel")?(ee=x.jsx("div",{className:"text-xs font-light",children:"STAY DURATION"}),e[38]=ee):ee=e[38];const Z=n.duration===0?"":n.duration;let X;e[39]!==n.durationType||e[40]!==Z?(X=x.jsx("div",{className:"col-span-6 md:col-span-3 flex justify-center mt-4 md:mt-0",children:x.jsxs("div",{children:[ee,x.jsxs("div",{className:"font-semibold",children:[Z," ",n.durationType]})]})}),e[39]=n.durationType,e[40]=Z,e[41]=X):X=e[41];let K;e[42]!==O||e[43]!==G||e[44]!==Q||e[45]!==X?(K=x.jsx("div",{className:"col-span-12 md:col-span-7 mt-8 md:mt-0",children:x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[O,G,Q,X]})}),e[42]=O,e[43]=G,e[44]=Q,e[45]=X,e[46]=K):K=e[46];let se;return e[47]!==D||e[48]!==K?(se=x.jsx(x.Fragment,{children:x.jsx("div",{className:"p-[2px] border-[0px] border-transparent roun
5202ded-[20px] bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]",children:x.jsxs("div",{className:"grid grid-cols-12 items-center bg-white dark:bg-[#1f2937] rounded-[18px] py-2 px-4",children:[D,k,K]})})}),e[47]=D,e[48]=K,e[49]=se):se=e[49],se}function Bbt(){const t=Dn.c(245),e=Dd(),n=Ss(),{selectedVisa:r,isSavedBooking:i,savedOrder:a}=e.state,[s]=b.useState(e.state.searchRequest);console.log(e.state);const[o,l]=b.useState(!1),[c]=AT(),[u,f]=b.useState(!1),[h,p]=b.useState(null),[A,g]=b.useState(!1),[w,T]=b.useState(!1);let C;t[0]===Symbol.for("react.memo_cache_sentinel")?(C=[],t[0]=C):C=t[0];const[M,D]=b.useState(C),[k,I]=b.useState(0),[L,O]=b.useState(!1),[B,G]=b.useState(!1),[j,z]=b.useState(!1),[Q,ee]=b.useState(!1),[Z,X]=b.useState(!1);let K;t[1]===Symbol.for("react.memo_cache_sentinel")?(K=[],t[1]=K):K=t[1];const[se,ae]=b.useState(K),[J,oe]=b.useState("deposit");let te;t[2]===Symbol.for("react.memo_cache_sentinel")?(te=[],t[2]=te):te=t[2];const[he]=b.useState(te),[me,de]=b.useState("");let Ae;t[3]===Symbol.for("react.memo_cache_sentinel")?(Ae={show:!1,paxIndex:null},t[3]=Ae):Ae=t[3];const[Se,Re]=b.useState(Ae);let Ne;t[4]===Symbol.for("react.memo_cache_sentinel")?(Ne={travelFromDate:"",travelToDate:"",travelerEmail:"",travelerContact:""},t[4]=Ne):Ne=t[4];const[Fe,Qe]=b.useState(Ne);let ge;t[5]===Symbol.for("react.memo_cache_sentinel")?(ge={bookingKey:"",nationalty:"IN",traceId:"",travelFromDate:"",travelToDate:"",travelerEmail:"",travelerContact:"",paxList:[]},t[5]=ge):ge=t[5];const[Ie,De]=b.useState(ge),[Xe,Ye]=b.useState(!1),[Me,lt]=b.useState(""),[Ht,Le]=b.useState(5),[Nt,Ct]=b.useState(!1);let It;t[6]!==Me||t[7]!==Xe||t[8]!==n||t[9]!==Ht?(It=()=>{if(!Xe)return;if(Ht<=0){n(`${Zn.ACCOUNTS}?type=my-bookings&statusFor=${Me}`);return}const An=setTimeout(()=>Le(Kbt),1e3);return()=>clearTimeout(An)},t[6]=Me,t[7]=Xe,t[8]=n,t[9]=Ht,t[10]=It):It=t[10];let nt;t[11]!==Xe||t[12]!==Ht?(nt=[Xe,Ht],t[11]=Xe,t[12]=Ht,t[13]=nt):nt=t[13],b.useEffect(It,nt);let ht;t[14]===Symbol.for("react.memo_cache_sentinel")?(ht=async(An,Wn,mr)=>{f(!0),await Eme({traceId:An,bookingKey:Wn,providerId:mr}),f(!1)},t[14]=ht):ht=t[14];const ve=ht,ce=Qbt;let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=async(An,Wn,mr)=>{const $r=await Tme({traceId:An,bookingKey:Wn,providerId:mr});if($r.statusCode===200){const Vi=ce($r.data.visaDocumentList);D(ra=>ra.map(ji=>({...ji,visaDocumentList:Vi}))),ee(!0)}else p({title:"Error",description:$r.message,variant:"error"})},t[15]=je):je=t[15];const dt=je;let ft;t[16]!==i||t[17]!==a||t[18]!==r.visaFare.paxWisePriceList?(ft=()=>{if(i){const An={title:"",firstName:"",lastName:"",dob:"",passportNumber:"",occupation:"",passportExpiry:"",docs:{}},Wn={bookingKey:"",nationalty:"IN",traceId:"",travelFromDate:a.travelFromDate,travelToDate:a.travelToDate,travelerEmail:a.travelerEmail,travelerContact:a.travelerContact,paxList:[]};De(Wn);const mr=a.passengerDetailList.map(Xbt);D(mr),console.log(mr),ae(mr.map(()=>({...An})))}
5202else{const An=r.visaFare.paxWisePriceList,Wn=[],mr=[],$r={title:"",firstName:"",lastName:"",dob:"",passportNumber:"",occupation:"",passportExpiry:"",docs:{}};An.forEach(Vi=>{Vi.PaxType==="ADT"?Array.from({length:Vi.paxCount}).forEach(()=>{Wn.push({...fF,paxType:"ADT",selectedAge:Vi.age}),mr.push({...$r})}):Vi.PaxType==="CHD"?Array.from({length:Vi.paxCount}).forEach(()=>{Wn.push({...fF,paxType:"CHD",selectedAge:Vi.age}),mr.push({...$r})}):Vi.PaxType==="INF"&&Array.from({length:Vi.paxCount}).forEach(()=>{Wn.push({...fF,paxType:"INF",selectedAge:Vi.age}),mr.push({...$r})})}),D(Wn),ae(mr)}},t[16]=i,t[17]=a,t[18]=r.visaFare.paxWisePriceList,t[19]=ft):ft=t[19];let at;t[20]===Symbol.for("react.memo_cache_sentinel")?(at=[],t[20]=at):at=t[20],b.useEffect(ft,at);let St;t[21]!==i||t[22]!==c?(St=()=>{window.scrollTo(0,0);const An=c.get("traceId"),Wn=c.get("visaBookingKey"),mr=c.get("providerId");De($r=>({...$r,bookingKey:Wn,traceId:An})),ve(An,Wn,mr),i||dt(An,Wn,mr)},t[21]=i,t[22]=c,t[23]=St):St=t[23];let ut;t[24]!==c?(ut=[c],t[24]=c,t[25]=ut):ut=t[25],b.useEffect(St,ut);let gt;t[26]!==k?(gt=(An,Wn)=>{if(D(mr=>mr.map(($r,Vi)=>Vi===k?{...$r,[An]:Wn}:$r)),ae(mr=>mr.map(($r,Vi)=>Vi===k?{...$r,[An]:""}:$r)),An==="dob"){const mr=kV(Wn);D($r=>$r.map((Vi,ra)=>ra===k?{...Vi,age:mr}:Vi))}},t[26]=k,t[27]=gt):gt=t[27];const Vt=gt;let Zt;t[28]!==r.visaFare.paxWisePriceList?(Zt=An=>r?.visaFare.paxWisePriceList.find(Wn=>Wn.PaxType===An)?.paxTotalAmount,t[28]=r.visaFare.paxWisePriceList,t[29]=Zt):Zt=t[29];const Wt=Zt;let qt;t[30]!==Wt||t[31]!==r.visaFare.paxWisePriceList?(qt=(An,Wn,mr,$r,Vi)=>mr<=0||!Wt(An)?null:r.visaFare.paxWisePriceList.filter(ji=>ji.PaxType===An).map(ji=>(Number(ji?.platformFee),Number(ji?.serviceFees),Number(ji?.tax),Number(ji?.hiddenMarkup),Number(ji?.hiddenAgentMarkup),x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex justify-between items-center mt-2 text-sm cursor-pointer",onClick:()=>Vi(Ybt),children:[x.jsxs("div",{className:"flex items-center gap-1",children:[$r?x.jsx(KG,{}):x.jsx(nP,{}),x.jsxs("span",{children:[Wn," ",x.jsx("sup",{children:"*"})," ",ji?.paxCount,ji.PaxType!=="ADT"&&x.jsxs("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:["age - ",ji?.age," "]})]})]}),x.jsxs("div",{children:[x.jsx("div",{className:"text-right",children:xr(ji?.fareQuoteTotal)}),x.jsxs("div",{className:"text-xs text-gray-400 dark:text-gray-500",children:["(",xr(ji?.fareQuoteTotal/ji?.paxCount)," * ",ji?.paxCount,")"]})]})]}),x.jsxs("div",{className:`overflow-hidden transition-all duration-300 ease-in-out ${$r?"max-h-40 opacity-100 mb-2":"max-h-0 opacity-0"} bg-gray-50 dark:bg-gray-700 rounded-xl px-3 py-2 text-xs text-gray-500 dark:text-gray-400 space-y-1`,children:[x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Government Fees"}),x.jsx("span",{children:xr(ji?.embassyFees)})]}),x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Market Place Fee"}),x.jsx("span",{children:xr(ji?.serviceFees??0)})]}),x.jsxs("div",{className:"flex justify-between",children:[x.jsx("span",{children:"Tax on Market Place Fee"}),x.jsx("span",{children:xr(ji?.tax??0)})]})]})]}))),t[30]=Wt,t[31]=r.visaFare.paxWisePriceList,t[32]=qt):qt=t[32];const We=qt;let yn;t[33]===Symbol.for("react.memo_cache_sentinel")?(yn=(An,Wn)=>{De(mr=>({...mr,[An]:Wn})),Qe(mr=>({...mr,[An]:""}))},t[33]=yn):yn=t[33];const vn=yn;let Ge;t[34]!==Ie.travelFromDate||t[35]!==Ie.travelToDate||t[36]!==Ie.travelerContact||t[37]!==Ie.travelerEmail||t[38]!==Z?(Ge=()=>{const An={travelFromDate:Ie.travelFromDate?"":"From date is required",travelToDate:Ie.travelToDate?"":"Return date is required",travelerEmail:Ie.travelerEmail?I3(Ie.travelerEmail)?"":"Enter a valid email address":"Email address is required",travelerContact:Ie.travelerContact?Ie.travelerContact.length<10||Ie.travelerContact.length>10?"Enter a valid contact number":"":"Contact number is required"},Wn=new Date(Ie.travelFromDate),mr=new Date(Ie.travelToDate);if(Wn>mr&&(An.travelToDate="Return date should be greater than from date"),Qe(An),!Object.values(An).some(Zbt)){if(!Z){p({title:"Error",description:"Please confirm the contact details",variant:"error"});return}ee(!1)}},t[34]=Ie.travelFromDate,t[35]=Ie.travelToDate,t[36]=Ie.travelerContact,t[37]=Ie.travelerEmail,t[38]=Z,t[39]=Ge):Ge=t[39];const kt=Ge;let _t;t[40]!==Vt?(_t=(An,Wn,mr,$r,Vi,ra)=>{D(ji=>{const ha=[...ji];return ha[$r].visaDocumentList=ha[$r].visaDocumentList.map(vo=>vo.documentId===Wn?{...vo,documentUrl:An}:vo),ha}),ae(ji=>ji.map((ha,vo)=>vo===$r?{...ha,docs:{...ha.docs,[Wn]:""}}:ha)),Vi&&(ra.isValidImg?(Vt("title",ra.gender=="M"?"Mr":ra.gender=="F"?"Mrs":"Mstr"),Vt("firstName",ra.firstname),Vt("lastName",ra.lastname),Vt("passportNumber",ra.passport_number),Vt("dob",$o(new Date(ra.date_of_birth),hee)),Vt("passportExpiry",$o(new Date(ra.date_of_expiry),hee))):(p({title:"Error",description:"Please upload a valid passport",variant:"error"}),D(ji=>{const ha=[...ji];return ha[$r].visaDocumentList=ha[$r].visaDocumentList.map(vo=>vo.documentId===Wn?{...vo,documentUrl:""}:vo),ha})))},t[40]=Vt,t[41]=_t):_t=t[41];const Dt=_t;let jt;t[42]===Symbol.for("react.memo_cache_sentinel")?(jt=(An,Wn)=>{D(mr=>{const $r=[...mr];return $r[Wn].visaDocumentList=$r[Wn].visaDocumentList.map(Vi=>Vi.documentId===An?{...Vi,documentUrl:""}:Vi),$r})},t[42]=jt):jt=t[42];const Lt=jt;let Bt;t[43]!==Ie.travelFromDate||t[44]!==M?(Bt=async()=>{console.log(M);const An=M.map(ra=>{const ji={};
5202if((ra.visaDocumentList||[]).forEach(ha=>{ha.documentUrl||(ji[ha.documentId]="Please upload this document")}),ra.paxType!=="ADT"){const ha=ra.selectedAge,vo=ra.age;if(ha!==vo)return p({title:"Error",description:`Selected age(${ha}) is not matching with date of birth`,variant:"error"}),{dob:`Selected age(${ha}) is not matching with date of birth`}}return{title:ra.title?"":"Title is required",firstName:ra.firstName?"":"First name is required",lastName:ra.lastName?"":"Last name is required",dob:ra.dob?"":"Date of birth is required",passportNumber:ra.passportNumber?"":"Passport number is required",occupation:ra.occupation?"":"Occupation is required",passportExpiry:ra.passportExpiry?Ie.travelFromDate&&(()=>{const ha=new Date(Ie.travelFromDate);return ha.setMonth(ha.getMonth()+6),new Date(ra.passportExpiry)<ha})()?"Passport must be valid for at least 6 months from travel date":"":"Passport expiry date is required",docs:ji}});ae(An);const Wn=An.findIndex($bt);if(Wn!==-1){I(Wn),p({title:"Error",description:"Please fill in all traveler details",variant:"error"});return}const mr=M.map(zbt),$r=mr.findIndex((ra,ji)=>mr.indexOf(ra)!==ji);if($r!==-1){I($r),p({title:"Error",description:`Passport number "${M[$r].passportNumber}" is used for more than one traveler. Each traveler must have a unique passport number.`,variant:"error"});return}const Vi=M.findIndex(Gbt);if(Vi!==-1){I(Vi),p({title:"Error",description:"Please enter a valid Indian passport number.",variant:"error"});return}l(!0),f(!1)},t[43]=Ie.travelFromDate,t[44]=M,t[45]=Bt):Bt=t[45];const Gt=Bt;let hn;t[46]!==Ie||t[47]!==i||t[48]!==M||t[49]!==J||t[50]!==a?.refId||t[51]!==me?(hn=async()=>{const An=M.map(Hbt),Wn={...Ie,passengerDetailList:An,travelFromDate:$o(Ie.travelFromDate,Ou),travelToDate:$o(Ie.travelToDate,Ou),bookingProgressRefId:i?a?.refId:null};f(!0);let mr;if(J==="deposit"?mr=await YZe(Wn):mr=await QZe(Wn,{pgName:me,pgMode:J}),mr.statusCode===200)if(J!=="deposit"){const $r=mr.data.returnUrl;window.location.href=$r;return}else lt(mr.data.bookingId),Ye(!0);else Ct(!0);f(!1)},t[46]=Ie,t[47]=i,t[48]=M,t[49]=J,t[50]=a?.refId,t[51]=me,t[52]=hn):hn=t[52];const Ve=hn;let pt;t[53]!==Ie||t[54]!==i||t[55]!==M||t[56]!==a?.refId||t[57]!==w?(pt=async()=>{if(!w){p({title:"Error",description:"Please accept terms and conditions",variant:"error"});return}const An=M.map(jbt),Wn={...Ie,passengerDetailList:An,travelFromDate:$o(Ie.travelFromDate,Ou),travelToDate:$o(Ie.travelToDate,Ou),bookingProgressRefId:i?a?.refId:null};f(!0);const mr=await XZe(Wn);mr.statusCode===200?p({title:"Success",description:mr.message,variant:"success"}):p({title:"Error",description:"Failed to save booking",variant:"error"}),f(!1)},t[53]=Ie,t[54]=i,t[55]=M,t[56]=a?.refId,t[57]=w,t[58]=pt):pt=t[58];const Tt=pt;let xt;t[59]!==u?(xt=u&&x.jsx(go,{isLoading:u}),t[59]=u,t[60]=xt):xt=t[60];let v;t[61]!==h?(v=h&&x.jsx(Do,{title:h.title,description:h.description,variant:h.variant,onHide:()=>p(null)}),t[61]=h,t[62]=v):v=t[62];let W;t[63]!==n?(W=()=>n(-1),t[63]=n,t[64]=W):W=t[64];let Te;t[65]===Symbol.for("react.memo_cache_sentinel")?(Te=x.jsx(Ap,{size:18}),t[65]=Te):Te=t[65];let _e;t[66]!==W?(_e=x.jsxs("button",{type:"button",onClick:W,className:"flex items-center gap-1.5 mb-3 text-sm font-medium text-gray-600 dark:text-gray-300 hover:text-(--secondary-color) transition-colors cursor-pointer",children:[Te," Back to Results"]}),t[66]=W,t[67]=_e):_e=t[67];let be;t[68]!==A?(be=x.jsx("div",{className:"block md:hidden",children:x.jsx(gr,{variant:"outlined",btnText:"View Details",onClick:()=>g(!A)})}),t[68]=A,t[69]=be):be=t[69];let xe;t[70]!==r?(xe=x.jsx("div",{className:"hidden md:block",children:x.jsx(Doe,{selectedVisa:r})}),t[70]=r,t[71]=xe):xe=t[71];let we;t[72]!==r||t[73]!==A?(we=A&&x.jsx(ql.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden mt-4",children:x.jsx(Doe,{selectedVisa:r})}),t[72]=r,t[73]=A,t[74]=we):we=t[74];let tt;t[75]!==we?(tt=x.jsx(Np,{children:we}),t[75]=we,t[76]=tt):tt=t[76];let ot;t[77]!==xe||t[78]!==tt?(ot=x.jsxs("div",{children:[xe,tt]}),t[77]=xe,t[78]=tt,t[79]=ot):ot=t[79];let ze;t[80]!==k||t[81]!==Ie.travelFromDate||t[82]!==Dt||t[83]!==Vt||t[84]!==M||t[85]!==se||t[86]!==o?(ze=!o&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"col-span-12 md:col-span-2 flex gap-2 md:block",children:M.map((An,Wn)=>x.jsxs("div",{className:`px-2 py-4 ${k===Wn?"bg-(--secondary-color) text-white":"dark:bg-gray-800 border border-gray-300 dark:border-gray-600 bg-white"} rounded-2xl my-2 mt-0 cursor-pointer pl-5`,onClick:()=>I(Wn),children:[x.jsxs("div",{className:"text-xs font-extralight",children:["Traveler ",Wn+1]}),x.jsx("div",{children:M[Wn].firstName===""||M[Wn].lastName===""?"Add Traveler":M[Wn].firstName+" "+M[Wn].lastName})]},Wn))}),M[k]&&x.jsx(x.Fragment,{children:x.jsx("div",{className:"col-span-12 md:col-span-7",children:x.jsxs("div",{className:"app-card",children:[x.jsxs("div",{className:"flex justify-between items-center mb-4",children:[x.jsx("p",{className:"text-xl font-semibold",children:"Traveler Details"}),x.jsx(gr,{btnText:"Fetch Pax",variant:"outlined",className:"text-xs",onClick:()=>Re({show:!0,paxIndex:k})})]}),x.jsxs("div",{className:"border border-gray-300 dark:border-gray-600 p-2 rounded-2xl grid grid-cols-12 gap-4",children:[x.jsx("div",{className:"col-span-12 md:col-span-3",children:M[k].visaDocumentList?M[k].visaDocumentList.filter(Vbt).map(An=>x.jsx("div",{children:x.jsx(UH,{fileName:An.documentName,className:"h-80",paxIndex:k,documentName:An.documentName,documentUrl:An.documentUrl,documentId:An.documentId,documentNumber:An.documentNumber,description:An.documentContent,onUploaded:Dt,onRemoved:Lt,errorText:se[k]?.docs?.[An.documentId]})},`${k}-${An.documentId}`)):x.jsx("div",{className:"text-center text-gray-500 dark:text-gray-400",children:x.jsx("img",{src:"/images/spinner.gif",alt:"loading",className:"w-10 h-10"})})}),x.jsxs("div",{className:"col-span-12 md:col-span-9",children:[x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"First Name :"}),x.jsx("div",{className:"col-span-8",children:x.jsxs("div",{className:"grid grid-cols-12 md:gap-2",children:[x.jsx("div",{className:"md:col-span-5 col-span-12",children:x.jsx(Ia,{options:M[k].paxType==="ADT"?XD:sCe,placeholder:"Title",className:"text-xs md:text-base",selectedValue:M[k].title,onSelect:An=>Vt("title",An.value),errorText:se[k]?.title})}),x.jsx("div",{className:"md:col-span-7 col-span-12",children:x.jsx(dr,{placeholder:"Enter First Name",inputClassName:"text-xs md:text-base",value:M[k].firstName,onChange:An=>Vt("firstName",An.target.value),errorText:se[k]?.firstName})})]})})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"Last Name :"}),x.jsx("div",{className:"col-span-8",children:x.jsx(dr,{placeholder:"Enter Last Name",inputClassName:"text-xs md:text-base",value:M[k].lastName,onChange:An=>Vt("lastName",An.target.value),errorText:se[k]?.lastName})})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"Passport No :"}),x.jsx("div",{className:"col-span-8",children:x.jsx(dr,{placeholder:"Enter Passport Number",inputClassName:"text-xs md:text-base",value:M[k].passportNumber,onChange:An=>Vt("passportNumber",An.target.value),errorText:se[k]?.passportNumber})})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"Passport Expiry Date :"}),x.jsx("div",{className:"col-span-8",children:x.jsx(fd,{placeholder:"Passport Expiry Date",inputClassName:"text-xs md:text-base",onChange:An=>Vt("passportExpiry",An),selectedDate:M[k].passportExpiry,minDate:(()=>{const An=Ie.travelFromDate?new Date(Ie.travelFromDate):new Date,Wn=new Date(An);return Wn.setMonth(Wn.getMonth()+6),Wn})(),dateFormat:"dd MMM, yyyy",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",errorText:se[k]?.passportExpiry})})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"DOB :"}),x.jsxs("div",{className:"col-span-8",children:[x.jsx(fd,{placeholder:"Select Date of Birth",inputClassName:"text-xs md:text-base",onChange:An=>Vt("dob",An),selectedDate:M[k].dob,maxDate:new Date,dateFormat:"dd MMM, yyyy",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",errorText:se[k]?.dob}),M[k].dob&&x.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Age: ",kV(M[k].dob)," years"]})]})]}),x.jsxs("div",{className:"grid grid-cols-12 items-center",children:[x.jsx("div",{className:"col-span-4 text-gray-500 dark:text-gray-400 text-xs md:text-base",children:"Occupation :"}),x.jsx("div",{className:"col-span-8",children:x.jsx(Ia,{placeholder:"Select Occupation",className:"text-xs md:text-base",selectedValue:M[k].occupation,onChange:An=>Vt("occupation",An.value),errorText:se[k]?.occupation,options:oCe})})]})]})]}),x.jsxs("div",{className:"my-4",children:[x.jsx("div",{className:"text-xl mb-4 font-semibold",onClick:()=>console.log(M),children:"Upload Documents"}),M[k].visaDocumentList?x.jsx("div",{className:"grid grid-cols-12 gap-4",children:M[k].visaDocumentList.filter(Ubt).map(An=>x.jsx("div",{className:"col-span-6 md:col-span-3",children:x.jsx(UH,{fileName:An.documentName,className:"h-50",paxIndex:k,documentName:An.documentName,documentUrl:An.documentUrl,documentId:An.documentId,documentNumber:An.documentNumber,description:An.documentContent,onUploaded:Dt,onRemoved:Lt,errorText:se[k]?.docs?.[An.documentId]})},`${k}-${An.documentId}`))}):x.jsx("div",{className:"text-center text-gray-500 dark:text-gray-400",children:x.jsx("img",{src:"/images/spinner.gif",alt:"loading",className:"w-10 h-10"})})]})]})})})]}),t[80]=k,t[81]=Ie.travelFromDate,t[82]=Dt,t[83]=Vt,t[84]=M,t[85]=se,t[86]=o,t[87]=ze):ze=t[87];let Ke;t[88]!==he||t[89]!==Ve||t[90]!==J||t[91]!==me||t[92]!==o?(Ke=o&&x.jsx(x.Fragment,{children:x.jsxs("div",{className:"col-span-12 md:col-span-9 gap-2 md:block",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-2 cursor-pointer",onClick:()=>l(!1),children:[x.jsx(Ap,{})," ",x.jsx("div",{children:"Back to Details"})]}),x.jsxs("div",{className:"app-card h-fit p-5!",children:[x.jsx("div",{className:"text-xl mb-4",children:"Payment Mode"}),x.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[{value:"deposit",label:"Wallet",Icon:R3,desc:"Use wallet balance"}].map(An=>{const{value:Wn,label:mr,Icon:$r,desc:Vi}=An;return x.jsxs("button",{type:"button",onClick:()=>oe(Wn),className:`flex flex-col items-center gap-1.5 p-4 rounded-xl border-2 transition-all cursor-pointer text-center focus:outline-none ${J===Wn?"border-(--secondary-color) bg-(--secondary-color-30) text-(--secondary-color)":"border-(--surface-border) bg-(--surface-bg) text-(--muted-text) hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-sm"}`,children:[x.jsx($r,{size:28,weight:J===Wn?"fill":"regular"}),x.jsx("div",{className:"text-sm font-semibold",children:mr}),x.jsx("div",{className:"text-xs text-(--muted-text) leading-tight",children:Vi})]},Wn)})}),J!=="deposit"&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"mt-5 text-sm font-semibold text-(--body-text)",children:"Select Payment Gateway"}),x.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:he&&he.length>0&&he.map(An=>x.jsx("button",{type:"button",onClick:()=>de(An),className:`px-4 py-2 rounded-lg border-2 text-sm font-medium transition-all focus:outline-none ${me===An?"border-(--secondary-color) bg-(--secondary-color-30) text-(--secondary-color)":"border-(--surface-border) bg-(--surface-bg) text-(--muted-text) hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-sm"}`,children:An},An))})]})]}),x.jsx("div",{className:"mt-4 text-center",children:x.jsx(gr,{btnText:"Book",variant:"secondary",onClick:()=>Ve()})})]})}),t[88]=he,t[89]=Ve,t[90]=J,t[91]=me,t[92]=o,t[93]=Ke):Ke=t[93];let rt;t[94]!==r.visaName?(rt=x.jsx("div",{className:"text-center mb-2 px-4 dark:text-black",children:r.visaName}),t[94]=r.visaName,t[95]=rt):rt=t[95];let Rt;t[96]===Symbol.for("react.memo_cache_sentinel")?(Rt=x.jsxs("div",{children:[x.jsx("div",{className:"text-xl font-semibold",children:"Fare Summary"}),x.jsx("div",{className:"h-[2px] bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)] w-20"})]}),t[96]=Rt):Rt=t[96];let Xt;t[97]===Symbol.for("react.memo_cache_sentinel")?(Xt=x.jsx("div",{children:"No. of Travellers"}),t[97]=Xt):Xt=t[97];const rn=s.adults+s.children+s.infants;let en;t[98]!==rn?(en=x.jsxs("div",{className:"p-1 px-2 bg-(--primary-color-40) shadow-sm rounded-[10px] flex justify-between items-center mt-4 text-sm font-semibold dark:text-black",children:[Xt,x.jsx("div",{children:rn})]}
5202),t[98]=rn,t[99]=en):en=t[99];let Qt;t[100]!==We||t[101]!==s.adults||t[102]!==L?(Qt=We("ADT","Adult",s.adults,L,O),t[100]=We,t[101]=s.adults,t[102]=L,t[103]=Qt):Qt=t[103];let sn;t[104]!==We||t[105]!==s.children||t[106]!==B?(sn=We("CHD","Child",s.children,B,G),t[104]=We,t[105]=s.children,t[106]=B,t[107]=sn):sn=t[107];let ur;t[108]!==We||t[109]!==s.infants||t[110]!==j?(ur=We("INF","Infant",s.infants,j,z),t[108]=We,t[109]=s.infants,t[110]=j,t[111]=ur):ur=t[111];let ye;t[112]===Symbol.for("react.memo_cache_sentinel")?(ye=x.jsx("div",{children:"Total Cost"}),t[112]=ye):ye=t[112];let He;t[113]!==r.visaFare.fareQuoteTotal?(He=xr(r.visaFare.fareQuoteTotal),t[113]=r.visaFare.fareQuoteTotal,t[114]=He):He=t[114];let ue;t[115]!==He?(ue=x.jsxs("div",{className:"py-2 border-2 border-dashed border-l-0 border-r-0 border-gray-300 dark:border-gray-600 flex justify-between items-center font-semibold mt-4",children:[ye,x.jsx("div",{children:He})]}),t[115]=He,t[116]=ue):ue=t[116];let Ze;t[117]!==en||t[118]!==Qt||t[119]!==sn||t[120]!==ur||t[121]!==ue?(Ze=x.jsxs("div",{className:"app-card self-start shadow-lg",children:[Rt,en,Qt,sn,ur,ue]}),t[117]=en,t[118]=Qt,t[119]=sn,t[120]=ur,t[121]=ue,t[122]=Ze):Ze=t[122];let yt;t[123]!==rt||t[124]!==Ze?(yt=x.jsxs("div",{className:"font-medium bg-(--primary-color-40) pt-2 rounded-3xl shadow-lg",children:[rt,Ze]}),t[123]=rt,t[124]=Ze,t[125]=yt):yt=t[125];let _n;t[126]===Symbol.for("react.memo_cache_sentinel")?(_n=()=>ee(!0),t[126]=_n):_n=t[126];let Sn;t[127]===Symbol.for("react.memo_cache_sentinel")?(Sn=x.jsxs("div",{onClick:_n,className:"cursor-pointer",children:[x.jsxs("div",{className:"flex justify-between items-center",children:[x.jsx("div",{className:"text-xl font-semibold",children:"Traveler Contact Info"}),x.jsx("div",{children:x.jsx(bT,{size:16})})]}),x.jsx("div",{className:"h-[2px] bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)] w-20"})]}),t[127]=Sn):Sn=t[127];let pn;t[128]===Symbol.for("react.memo_cache_sentinel")?(pn=x.jsx("div",{children:x.jsx(Ry,{})}),t[128]=pn):pn=t[128];let wn;t[129]!==Ie.travelerEmail?(wn=x.jsxs("div",{className:"flex items-center gap-2",children:[pn,x.jsx("div",{className:"text-xs",children:Ie.travelerEmail})]}),t[129]=Ie.travelerEmail,t[130]=wn):wn=t[130];let pe;t[131]===Symbol.for("react.memo_cache_sentinel")?(pe=x.jsx("div",{children:x.jsx(wT,{})}),t[131]=pe):pe=t[131];let Hn;t[132]!==Ie.travelerContact?(Hn=x.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[pe,x.jsx("div",{className:"text-xs",children:Ie.travelerContact})]}),t[132]=Ie.travelerContact,t[133]=Hn):Hn=t[133];let Tn;t[134]===Symbol.for("react.memo_cache_sentinel")?(Tn=x.jsx("div",{children:x.jsx(QD,{})}),t[134]=Tn):Tn=t[134];let bn;t[135]!==Ie.travelFromDate?(bn=$o(Ie.travelFromDate,pee),t[135]=Ie.travelFromDate,t[136]=bn):bn=t[136];let vr;t[137]!==Ie.travelToDate?(vr=$o(Ie.travelToDate,pee),t[137]=Ie.travelToDate,t[138]=vr):vr=t[138];let Zr;t[139]!==bn||t[140]!==vr?(Zr=x.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[Tn,x.jsxs("div",{className:"text-xs",children:[bn," -"," ",vr]})]}),t[139]=bn,t[140]=vr,t[141]=Zr):Zr=t[141];let kn;t[142]!==wn||t[143]!==Hn||t[144]!==Zr?(kn=x.jsxs("div",{className:"app-card mt-4 !shadow-2xl",children:[Sn,x.jsxs("div",{className:"mt-4",children:[wn,Hn,Zr]}
5202)]}),t[142]=wn,t[143]=Hn,t[144]=Zr,t[145]=kn):kn=t[145];let ti;t[146]!==Tt?(ti=()=>Tt(),t[146]=Tt,t[147]=ti):ti=t[147];let Qr;t[148]===Symbol.for("react.memo_cache_sentinel")?(Qr=x.jsx(XG,{}),t[148]=Qr):Qr=t[148];let Cn;t[149]!==ti?(Cn=x.jsx(fi,{btnText:"Save Progress",iconPosition:"left",variant:"secondary",className:"mt-4",onClick:ti,children:Qr}),t[149]=ti,t[150]=Cn):Cn=t[150];let zi;t[151]!==yt||t[152]!==kn||t[153]!==Cn?(zi=x.jsxs("div",{className:"col-span-12 md:col-span-3 relative",children:[yt,kn,Cn]}),t[151]=yt,t[152]=kn,t[153]=Cn,t[154]=zi):zi=t[154];let or;t[155]!==ze||t[156]!==Ke||t[157]!==zi?(or=x.jsxs("div",{className:"mt-4 grid grid-cols-12 gap-4",children:[ze,Ke,zi]}),t[155]=ze,t[156]=Ke,t[157]=zi,t[158]=or):or=t[158];let ja;t[159]!==Gt||t[160]!==n||t[161]!==o||t[162]!==w?(ja=!o&&x.jsx("div",{className:"fixed bottom-2 left-2 right-2 md:left-0 md:right-0 md:px-6 lg:px-8",children:x.jsxs("div",{className:"app-card max-w-7xl mx-auto flex flex-col md:flex-row md:justify-between items-start md:items-center gap-3 p-3 md:p-2 md:py-6!",children:[x.jsx(Sh,{id:"terms",name:"terms",labelText:"I confirm the details and agree to the terms and conditions.",labelClassName:"md:text-base text-xs",checked:w,onChange:An=>T(An.target.checked)}),x.jsxs("div",{className:"flex gap-2 self-end md:self-auto",children:[x.jsx(gr,{btnText:"Back",variant:"outlined",onClick:()=>n(-1),className:"text-xs md:text-base"}),x.jsx(fi,{btnText:"Pay",iconPosition:"right",variant:w?"secondary":"disabled",disabled:!w,className:"text-xs md:text-base",onClick:()=>Gt(),children:x.jsx(ms,{})})]})]})}),t[159]=Gt,t[160]=n,t[161]=o,t[162]=w,t[163]=ja):ja=t[163];let Vs;t[164]!==_e||t[165]!==be||t[166]!==ot||t[167]!==or||t[168]!==ja?(Vs=x.jsxs("div",{className:"max-w-7xl mx-auto mt-2 md:mt-5 px-4 sm:px-6 lg:px-8 mb-30",children:[_e,be,ot,or,ja]}),t[164]=_e,t[165]=be,t[166]=ot,t[167]=or,t[168]=ja,t[169]=Vs):Vs=t[169];let Nl;t[170]===Symbol.for("react.memo_cache_sentinel")?(Nl=()=>ee(!1),t[170]=Nl):Nl=t[170];let to,Ri,na;t[171]===Symbol.for("react.memo_cache_sentinel")?(to=x.jsx("div",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Travelling Date"}),Ri=x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm mt-1",children:"Travellers flight date? (Enter tentative if not booked)"}),na=x.jsx("div",{className:"h-[2px] bg-(--secondary-color) w-20 mt-2"}),t[171]=to,t[172]=Ri,t[173]=na):(to=t[171],Ri=t[172],na=t[173]);const ou=Ie.travelFromDate;let Si;t[174]===Symbol.for("react.memo_cache_sentinel")?(Si=An=>vn("travelFromDate",An),t[174]=Si):Si=t[174];let tl;t[175]!==r.minTravelDays?(tl=V8e(new Date,r.minTravelDays),t[175]=r.minTravelDays,t[176]=tl):tl=t[176];let si;t[177]!==Ie.travelFromDate||t[178]!==Fe.travelFromDate||t[179]!==tl?(si=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(fd,{label:"From Date",required:!0,placeholder:"Select Date",inputClassName:"text-xs md:text-base",selectedDate:ou,onChange:Si,minDate:tl,errorText:Fe.travelFromDate,dateFormat:"dd MMM, yyyy"})}),t[177]=Ie.travelFromDate,t[178]=Fe.travelFromDate,t[179]=tl,t[180]=si):si=t[180];let vc;t[181]===Symbol.for("react.memo_cache_sentinel")?(vc=An=>vn("travelToDate",An),t[181]=vc):vc=t[181];let nl;t[182]!==Ie.travelFromDate?(nl=Ie.travelFromDate||new Date,t[182]=Ie.travelFromDate,t[183]=nl):nl=t[183];let kf;t[184]!==Ie.travelToDate||t[185]!==Fe.travelToDate||t[186]!==nl?(kf=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(fd,{label:"Return Date",required:!0,placeholder:"Select Date",inputClassName:"text-xs md:text-base",selectedDate:Ie.travelToDate,onChange:vc,minDate:nl,errorText:Fe.travelToDate,dateFormat:"dd MMM, yyyy"})}),t[184]=Ie.travelToDate,t[185]=Fe.travelToDate,t[186]=nl,t[187]=kf):kf=t[187];let Lf;t[188]!==si||t[189]!==kf?(Lf=x.jsxs("div",{className:"app-card",children:[to,Ri,na,x.jsxs("div",{className:"grid grid-cols-12 gap-4 mt-6",children:[si,kf]})]}),t[188]=si,t[189]=kf,t[190]=Lf):Lf=t[190];let I0,$u,Vd;t[191]===Symbol.for("react.memo_cache_sentinel")?(I0=x.jsx("div",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Contact Details"}),$u=x.jsx("div",{className:"text-gray-500 dark:text-gray-400 text-sm mt-1",children:"Contact details for visa updates and communication."}),Vd=x.jsx("div",{className:"h-[2px] bg-(--secondary-color) w-20 mt-2"}),t[191]=I0,t[192]=$u,t[193]=Vd):(I0=t[191],$u=t[192],Vd=t[193]);let Of;t[194]===Symbol.for("react.memo_cache_sentinel")?(Of=An=>vn("travelerEmail",An.target.value),t[194]=Of):Of=t[194];let jd;t[195]!==Ie.travelerEmail||t[196]!==Fe.travelerEmail?(jd=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Traveler Email Address",required:!0,placeholder:"Enter Email Address",inputClassName:"text-xs md:text-base",type:"email",value:Ie.travelerEmail,onChange:Of,errorText:Fe.travelerEmail})}),t[195]=Ie.travelerEmail,t[196]=Fe.travelerEmail,t[197]=jd):jd=t[197];let Ff;t[198]===Symbol.for("react.memo_cache_sentinel")?(Ff=An=>vn("travelerContact",An.target.value),t[198]=Ff):Ff=t[198];let Rl;t[199]!==Ie.travelerContact||t[200]!==Fe.travelerContact?(Rl=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Traveler Contact Number",required:!0,placeholder:"Enter Mobile Number",inputClassName:"text-xs md:text-base",type:"number",value:Ie.travelerContact,onChange:Ff,errorText:Fe.travelerContact})}),t[199]=Ie.travelerContact,t[200]=Fe.travelerContact,t[201]=Rl):Rl=t[201];let B0;t[202]!==jd||t[203]!==Rl?(B0=x.jsxs("div",{className:"grid grid-cols-12 gap-4 mt-6",children:[jd,Rl]}),t[202]=jd,t[203]=Rl,t[204]=B0):B0=t[204];let If;t[205]===Symbol.for("react.memo_cache_sentinel")?(If=An=>X(An.target.checked),t[205]=If):If=t[205];let rl;t[206]!==Z?(rl=x.jsx("div",{className:"mt-5",children:x.jsx(Sh,{id:"confirm-contact",name:"confirm-contact",labelText:"Confirm: These are the traveler's contact details.",checked:Z,onChange:If})}),t[206]=Z,t[207]=rl):rl=t[207];let qu;t[208]!==B0||t[209]!==rl?(qu=x.jsxs("div",{className:"app-card",children:[I0,$u,Vd,B0,rl]}),t[208]=B0,t[209]=rl,t[210]=qu):qu=t[210];let Hd;t[211]===Symbol.for("react.memo_cache_sentinel")?(Hd=x.jsx(ms,{size:18}),t[211]=Hd):Hd=t[211];let Bf;t[212]!==kt?(Bf=x.jsx("div",{className:"flex justify-end pb-2 md:mb-0 mb-5",children:x.jsx(fi,{btnText:"Continue",variant:"secondary",iconPosition:"right",className:"rounded-full px-6",onClick:kt,children:Hd})}),t[212]=kt,t[213]=Bf):Bf=t[213];let Wu;t[214]!==Lf||t[215]!==qu||t[216]!==Bf?(Wu=x.jsxs("div",{className:"space-y-4",children:[Lf,qu,Bf]}),t[214]=Lf,t[215]=qu,t[216]=Bf,t[217]=Wu):Wu=t[217];let Zu;t[218]!==Q||t[219]!==Wu?(Zu=x.jsx(kh,{isOpen:Q,onModalClose:Nl,modalTitle:"Lead Pax Details",children:Wu}),t[218]=Q,t[219]=Wu,t[220]=Zu):Zu=t[220];let Gd;t[221]!==Se.paxIndex||t[222]!==M?(Gd=M[Se.paxIndex]??{},t[221]=Se.paxIndex,t[222]=M,t[223]=Gd):Gd=t[223];let xo;t[224]===Symbol.for("react.memo_cache_sentinel")?(xo=()=>Re({show:!1,paxIndex:null}),t[224]=xo):xo=t[224];let yc;t[225]!==Se.paxIndex?(yc=An=>{D(Wn=>Wn.map((mr,$r)=>$r===Se.paxIndex?An:mr)),Re({show:!1,paxIndex:null})},t[225]=Se.paxIndex,t[226]=yc):yc=t[226];let U0;t[227]!==Se.paxIndex||t[228]!==Se.show||t[229]!==Gd||t[230]!==yc?(U0=x.jsx(Fbt,{isOpen:Se.show,paxIndex:Se.paxIndex,currentPax:Gd,onClose:xo,onApply:yc}),t[227]=Se.paxIndex,t[228]=Se.show,t[229]=Gd,t[230]=yc,t[231]=U0):U0=t[231];let Na;t[232]!==Xe||t[233]!==Ht?(Na=Xe&&x.jsx(kh,{isOpen:Xe,onModalClose:()=>Ye(!1),modalTitle:"",showCloseButton:!1,children:x.jsxs("div",{className:"flex flex-col items-center text-center py-6 px-4",children:[x.jsx("div",{className:"w-28 h-28 rounded-full bg-green-100 flex items-center justify-center mb-6",children:x.jsx(X0e,{size:56,weight:"bold",className:"text-green-500"})}),x.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-3",children:"Payment Successful !"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-base leading-relaxed mb-6",children:"Payment Verified. Your application has just been bumped to the Priority Processing Queue. We've alerted our filing team to begin the verification immediately."}),x.jsxs("p",{className:"text-blue-500 text-sm",children:["Redirecting You to Status Page in ",Ht," secs...."]})]})}),t[232]=Xe,t[233]=Ht,t[234]=Na):Na=t[234];let _c;t[235]!==Nt?(_c=Nt&&x.jsx(kh,{isOpen:Nt,onModalClose:()=>Ct(!1),modalTitle:"",showCloseButton:!1,children:x.jsxs("div",{className:"flex flex-col items-center text-center py-6 px-4",children:[x.jsx("div",{className:"w-28 h-28 rounded-full bg-red-100 flex items-center justify-center mb-6",children:x.jsx(rx,{size:56,weight:"bold",className:"text-red-500"})}),x.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-3",children:"Booking Failed !"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-base leading-relaxed mb-6",children:"We were unable to process your booking at this time. Please try again or c
5202ontact support if the issue persists."}),x.jsx("button",{type:"button",className:"text-blue-500 text-sm underline cursor-pointer",onClick:()=>Ct(!1),children:"Close and Try Again"})]})}),t[235]=Nt,t[236]=_c):_c=t[236];let Cs;return t[237]!==xt||t[238]!==v||t[239]!==Vs||t[240]!==Zu||t[241]!==U0||t[242]!==Na||t[243]!==_c?(Cs=x.jsxs(x.Fragment,{children:[xt,v,Vs,Zu,U0,Na,_c]}),t[237]=xt,t[238]=v,t[239]=Vs,t[240]=Zu,t[241]=U0,t[242]=Na,t[243]=_c,t[244]=Cs):Cs=t[244],Cs}function Ubt(t,e){return e!==0}function Vbt(t,e){return e===0}function jbt(t){return{...t,dob:$o(t.dob,Ou),passportExpiry:$o(t.passportExpiry,Ou)}}function Hbt(t){return{...t,dob:$o(t.dob,Ou),passportExpiry:$o(t.passportExpiry,Ou)}}function Gbt(t){return!$Le(t.passportNumber)}function zbt(t){return t.passportNumber?.trim().toLowerCase()}function $bt(t){const{docs:e,...n}=t;return Object.values(n).some(Wbt)||Object.values(e).some(qbt)}function qbt(t){return t!==""}function Wbt(t){return t!==""}function Zbt(t){return t!==""}function Ybt(t){return!t}function Xbt(t){return{...t,selectedAge:t.age,age:kV(t.dob)}}function Qbt(t){const e=["PASSPORT_FRONT","passport front","passport front page","passport","Passport","PASSPORT","passport back","PASSPORT_BACK","passport_front","passport_back"];return[...t].sort((n,r)=>{const i=e.indexOf(n.documentName.toLowerCase()),a=e.indexOf(r.documentName.toLowerCase());return i!==-1&&a!==-1?i-a:i!==-1?-1:a!==-1?1:0})}function Kbt(t){return t-1}const Y8e="dd MMM, yyyy",Jbt="HH:mm:ss";function ewt(t){const e=new Date(t);return gbt(e)?"Today":vbt(e)?"Yesterday":K5(e,Y8e)}function twt(t){const e={};return t.forEach(n=>{const r=ewt(n.createdAt);e[r]||(e[r]=[]),e[r].push(n)}),e}function nwt(t){const e=Dn.c(39),{txn:n}=t,r=n.transactionType==="CREDIT";let i,a;if(e[0]!==n.createdAt){const O=new Date(n.createdAt);i=K5(O,Y8e),a=K5(O,Jbt),e[0]=n.createdAt,e[1]=i,e[2]=a}else i=e[1],a=e[2];const s=a,o=`w-12 h-12 rounded-full flex items-center justify-center shrink-0 ${r?"bg-[#6EC5A8] text-white":"bg-gray-100 dark:bg-gray-700 text-gray-500 dark:text-gray-400"}`;let l;e[3]!==r?(l=r?x.jsx(V0e,{size:20,weight:"bold"}):x.jsx(H0e,{size:20,weight:"bold"}),e[3]=r,e[4]=l):l=e[4];let c;e[5]!==o||e[6]!==l?(c=x.jsx("div",{className:o,children:l}),e[5]=o,e[6]=l,e[7]=c):c=e[7];const u=r?"Credit":"Debit";let f;e[8]!==u?(f=x.jsx("p",{className:"font-semibold text-gray-800 dark:text-white text-sm",children:u}),e[8]=u,e[9]=f):f=e[9];let h;e[10]!==n.remarks?(h=x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:n.remarks}),e[10]=n.remarks,e[11]=h):h=e[11];let p;e[12]!==n.referenceId?(p=x.jsx("p",{className:"text-xs font-mono text-gray-400 dark:text-gray-500 mt-0.5",children:n.referenceId}),e[12]=n.referenceId,e[13]=p):p=e[13];let A;e[14]!==f||e[15]!==h||e[16]!==p?(A=x.jsxs("div",{className:"flex-1 min-w-0",children:[f,h,p]}),e[14]=f,e[15]=h,e[16]=p,e[17]=A):A=e[17];const g=`font-bold text-lg ${r?"text-[#6EC5A8]":"text-gray-700 dark:text-gray-200"}`,w=r?"+ ":"- ";let T;e[18]!==n.amount?(T=xr(n.amount),e[18]=n.amount,e[19]=T):T=e[19];let C;e[20]!==g||e[21]!==w||e[22]!==T?(C=x.jsxs("p",{className:g,children:[w,T]}),e[20]=g,e[21]=w,e[22]=T,e[23]=C):C=e[23];let M;e[24]!==n.balanceAfterTxn?(M=xr(n.balanceAfterTxn),e[24]=n.balanceAfterTxn,e[25]=M):M=e[25];let D;e[26]!==M?(D=x.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:["Balance: ",M]}),e[26]=M,e[27]=D):D=e[27];let k;e[28]!==i||e[29]!==s?(k=x.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:[i," · ",s]}),e[28]=i,e[29]=s,e[30]=k):k=e[30];let I;e[31]!==C||e[32]!==D||e[33]!==k?(I=x.jsxs("div",{className:"text-right shrink-0",children:[C,D,k]}),e[31]=C,e[32]=D,e[33]=k,e[34]=I):I=e[34];let L;return e[35]!==I||e[36]!==c||e[37]!==A?(L=x.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl px-5 py-4 flex items-center gap-4 shadow-sm border border-gray-100 dark:border-gray-700",children:[c,A,I]}),e[35]=I,e[36]=c,e[37]=A,e[38]=L):L=e[38],L}function rwt(t){const e=Dn.c(13),{ledger:n,openingBalance:r,closingBalance:i}=t;n.filter(lwt).reduce(owt,0),n.filter(swt).reduce(awt,0);let a;e[0]!==r?(a=xr(r),e[0]=r,e[1]=a):a=e[1];let s;e[2]!==a?(s={label:"Opening Balance",value:a,color:"text-gray-800 dark:text-white"},e[2]=a,e[3]=s):s=e[3];let o;e[4]!==i?(o=xr(i),e[4]=i,e[5]=o):o=e[5];let l;
5202e[6]!==o?(l={label:"Closing Balance",value:o,color:"text-gray-800 dark:text-white"},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==s||e[9]!==l?(c=[s,l],e[8]=s,e[9]=l,e[10]=c):c=e[10];const u=c;let f;return e[11]!==u?(f=x.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 shadow-sm overflow-hidden",children:x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 divide-x divide-y md:divide-y-0 divide-gray-100 dark:divide-gray-700",children:u.map(iwt)})}),e[11]=u,e[12]=f):f=e[12],f}function iwt(t){const{label:e,value:n,color:r}=t;return x.jsxs("div",{className:"px-6 py-4",children:[x.jsx("p",{className:"text-xs text-gray-400 font-medium mb-1",children:e}),x.jsx("p",{className:`text-xl font-bold ${r}`,children:n})]},e)}function awt(t,e){return t+e.amount}function swt(t){return t.transactionType==="DEBIT"}function owt(t,e){return t+e.amount}function lwt(t){return t.transactionType==="CREDIT"}function cwt(){const t=Dn.c(55);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,r]=b.useState(e),[i,a]=b.useState(!1),[s,o]=b.useState(null),[l,c]=b.useState(!1);let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u=new Date,t[1]=u):u=t[1];const[f,h]=b.useState(u);let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=new Date,t[2]=p):p=t[2];const[A,g]=b.useState(p),[w,T]=b.useState(0),[C,M]=b.useState(0);let D;t[3]!==f||t[4]!==A?(D=async()=>{a(!0);const X={fromDate:$o(f,Ou),toDate:$o(A,Ou)},K=await GUe(X);K.statusCode===200?(r(K.data.transactions),T(K.data.openingBalance),M(K.data.closingBalance),c(!0)):o({title:"Error",description:K.message,variant:"error"}),a(!1)},t[3]=f,t[4]=A,t[5]=D):D=t[5];const k=D;let I;t[6]!==k?(I=()=>{k()},t[6]=k,t[7]=I):I=t[7];let L;t[8]===Symbol.for("react.memo_cache_sentinel")?(L=[],t[8]=L):L=t[8],b.useEffect(I,L);let O,B,G,j,z,Q;if(t[9]!==s||t[10]!==C||t[11]!==f||t[12]!==k||t[13]!==l||t[14]!==i||t[15]!==n||t[16]!==w||t[17]!==A){const X=twt(n);t[24]!==i?(G=i&&x.jsx(go,{isLoading:i}),t[24]=i,t[25]=G):G=t[25],t[26]!==s?(j=s&&x.jsx(Do,{title:s.title,description:s.description,variant:s.variant,onHide:()=>o(null)}),t[26]=s,t[27]=j):j=t[27],t[28]===Symbol.for("react.memo_cache_sentinel")?(z=x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Ledger"}),Q=x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"View your complete transaction history."}),t[28]=z,t[29]=Q):(z=t[28],Q=t[29]);let K;t[30]===Symbol.for("react.memo_cache_sentinel")?(K=te=>h(te),t[30]=K):K=t[30];let se;t[31]!==f?(se=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(fd,{label:"From Date",placeholder:"Select From Date",selectedDate:f,onChange:K,dateFormat:"dd MMM, yyyy"})}),t[31]=f,t[32]=se):se=t[32];let ae;t[33]===Symbol.for("react.memo_cache_sentinel")?(ae=te=>g(te),t[33]=ae):ae=t[33];let J;t[34]!==f||t[35]!==A?(J=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(fd,{label:"To Date",placeholder:"Select To Date",selectedDate:A,onChange:ae,minDate:f,dateFormat:"dd MMM, yyyy"})}),t[34]=f,t[35]=A,t[36]=J):J=t[36];let oe;t[37]!==k?(oe=x.jsx("div",{className:"col-span-12 md:col-span-2",children:x.jsx(gr,{btnText:"Fetch",variant:"secondary",onClick:k,className:"mb-1"})}),t[37]=k,t[38]=oe):oe=t[38],t[39]!==se||t[40]!==J||t[41]!==oe?(O=x.jsx("div",{className:"app-card",children:x.jsxs("div",{className:"grid grid-cols-12 items-end gap-4",children:[se,J,oe]})}),t[39]=se,t[40]=J,t[41]=oe,t[42]=O):O=t[42],B=l&&n.length>0&&x.jsxs("div",{className:"mt-4 space-y-5",children:[x.jsx(rwt,{ledger:n,openingBalance:w,closingBalance:C}),Object.entries(X).map(uwt)]}),t[9]=s,t[10]=C,t[11]=f,t[12]=k,t[13]=l,t[14]=i,t[15]=n,t[16]=w,t[17]=A,t[18]=O,t[19]=B,t[20]=G,t[21]=j,t[22]=z,t[23]=Q}else O=t[18],B=t[19],G=t[20],j=t[21],z=t[22],Q=t[23];let ee;t[43]!==l||t[44]!==i||t[45]!==n?(ee=l&&n.length===0&&!i&&x.jsx("div",{className:"mt-10 text-center text-gray-400 dark:text-gray-500",children:x.jsx("p",{children:"No transactions found for the selected date range."})}),t[43]=l,t[44]=i,t[45]=n,t[46]=ee):ee=t[46];let Z;return t[47]!==O||t[48]!==B||t[49]!==ee||t[50]!==G||t[51]!==j||t[52]!==z||t[53]!==Q?(Z=x.jsxs(x.Fragment,{children:[G,j,z,Q,O,B,ee]}),t[47]=O,t[48]=B,t[49]=ee,t[50]=G,t[51]=j,t[52]=z,t[53]=Q,t[54]=Z):Z=t[54],Z}function uwt(t){const[e,n]=t;return x.jsxs("div",{children:[x.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 font-medium mb-2 px-1",children:e}),x.jsx("div",{className:"space-y-2",children:n.map(fwt)})]},e)}function fwt(t,e){return x.jsx(nwt,{txn:t},`${t.referenceId}-${e}`)}function dwt({fileName:t,description:e,documentType:n,errorText:r,className:i,onUploaded:a,onRemoved:s,paxIndex:o,documentId:l,documentNumber:c,uploadedFile:u,documentName:f}){const h=b.useRef(null),[p,A]=b.useState(u),[g,w]=b.useState(""),[T,C]=b.useState(!1),[M,D]=b.useState(""),k=async O=>{const B=O.target.files[0];if(!B)return;if(!["image/jpeg","image/jpg","image/png","application/pdf"].includes(B.type)){D("Only JPG, JPEG, PNG, or PDF files are allowed."),h.current&&(h.current.value="");return}if(B.size>5*1024*1024){D("File size must not exceed 5MB."),h.current&&(h.current.value="");return}C(!0),D("");const j=new FormData;j.append("file",B);try{const z=await Mme(n,j);z.statusCode===200?(A(z.data.documentUrl),w(z.data.documentUrl.split("/").pop()),a&&a(z.data.documentUrl)):(D(z.message||"Upload failed. Please try again."),h.current&&(h.current.value=""))}catch{D("Upload failed. Please try again."),h.current&&(h.current.value="")}finally{C(!1)}},I=()=>{A(null),w(""),D(""),h.current&&(h.current.value=""),s&&s()},L=r&&r!==""||M&&M!=="";return p?x.jsxs("div",{className:N3(`relative flex flex-col items-center justify-center w-full h-full rounded-[32px] border-2 border-green-400 bg-green-50 dark:bg-green-950/20 transition ${i}`),children:[x.jsx("div",{className:"p-4 rounded-full flex items-center justify-center text-white",children:x.jsx("img",{src:p,alt:"check",className:"w-[90px]"})}),x.jsx("p",{className:"mt-4 font-semibold text-gray-700 dark:text-gray-200 text-center text-sm px-3 break-all",children:t}),x.jsx("button",{type:"button",onClick:I,className:"absolute top-3 right-3 bg-red-400 text-white rounded-full p-1.5",children:x.jsx(rx,{size:12,weight:"bold"})})]}):x.jsxs("label",{className:"relative block w-full cursor-pointer h-full",children:[x.jsx("input",{ref:h,type:"file",accept:"image/*,application/pdf",className:"hidden",onChange:k,disabled:T}),x.jsxs("div",{className:N3(`flex flex-col items-center justify-center h-full rounded-[32px] border-2 border-dashed transition ${L?"border-red-400 bg-red-50 dark:bg-red-950/20 dark:border-red-700":"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600"} ${i}`),children:[x.jsxs("div",{className:"absolute top-5 left-5 text-gray-500 dark:text-gray-400 group",children:[x.jsx(JD,{size:22}),x.jsx("div",{className:`absolute bottom-full w-50 text-left left-0 mb-2 5203 opacity-0 invisible group-hover:opacity-100 group-hover:visible 5204 transition duration-200 bg-gray-900 text-white text-xs px-3 py-1 rounded-lg shadow-lg z-10`,children:e})]}),x.jsx("div",{className:`p-4 rounded-full flex items-center justify-center text-white ${L?"bg-red-400":"bg-[var(--secondary-color)]"}`,children:T?x.jsx(ST,{size:25,className:"animate-spin"}):x.jsx(TT,{size:25})}),x.jsx("p",{className:"mt-6 font-semibold text-gray-700 dark:text-gray-200 text-center px-2",children:t}),T&&x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-1",children:"Uploading..."}),L&&x.jsx("p",{className:"text-red-500 text-xs mt-2 text-center px-2",children:M||r})]})]})}const hwt=[{label:"Bank",value:"HDFC BANK LIMITED"}
5204,{label:"Account No.",value:"00030330014791"},{label:"RTGS/NEFT IFSC",value:"HDFC0000003"},{label:"Address",value:"G3-4, Suryakiran Building, 19 Kasturba Gandhi Marg, New Delhi-110001"}];function pwt(){const t=Dn.c(67),[e,n]=b.useState(null),[r]=b.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={paymentMode:"",depositAmount:"",depositDate:"",remarks:"",checkNum:"",receiptUrl:"",bankName:"",depositedBranchName:"",ourBankDetails:""},t[0]=i):i=t[0];const[a,s]=b.useState(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={paymentMode:"",depositAmount:"",depositDate:"",checkNum:"",bankName:"",depositedBranchName:"",ourBankDetails:"",receiptUrl:""},t[1]=o):o=t[1];const[l,c]=b.useState(o);let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=(Ne,Fe)=>{s(Qe=>({...Qe,[Ne]:Fe})),c(Qe=>({...Qe,[Ne]:""}))},t[2]=u):u=t[2];const f=u;let h;t[3]===Symbol.for("react.memo_cache_sentinel")?(h=Ne=>{s(Fe=>({...Fe,receiptUrl:Ne})),c(vwt)},t[3]=h):h=t[3];const p=h;let A;t[4]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{s(xwt),c(gwt)},t[4]=A):A=t[4];const g=A;let w;t[5]!==a?(w=async()=>{const{paymentMode:Ne,depositAmount:Fe,depositDate:Qe,checkNum:ge,bankName:Ie,depositedBranchName:De,ourBankDetails:Xe,receiptUrl:Ye,remarks:Me}=a,lt=parseFloat(Fe),Ht={paymentMode:Ne?"":"Please select a payment mode",depositAmount:Fe?isNaN(lt)||lt<=0?"Enter a valid amount greater than 0":"":"Deposit amount is required",depositDate:Qe?"":"Deposit date is required",checkNum:Ne==="CHEQUE"&&!ge?"Cheque number is required":"",bankName:Ie?"":"Bank name is required",depositedBranchName:De?"":"Branch name is required",ourBankDetails:Xe?"":"Account number is required"};if(c(Ht),Object.values(Ht).some(Awt))return;const Le={paymentMode:Ne,depositAmount:Fe,depositDate:$o(Qe,Ou),checkNum:ge,bankName:Ie,depositedBranchName:De,ourBankDetails:Xe,receiptUrl:Ye,remarks:Me},Nt=await HUe(Le);Nt.statusCode===200?(s({paymentMode:"",depositAmount:"",depositDate:"",checkNum:"",bankName:"",depositedBranchName:"",ourBankDetails:"",receiptUrl:"",remarks:""}),n({title:"Success",description:Nt.message,variant:"success"})):n({title:"Error",description:Nt.message,variant:"error"})},t[5]=a,t[6]=w):w=t[6];const T=w;let C;t[7]!==r?(C=r&&x.jsx(go,{isLoading:r}),t[7]=r,t[8]=C):C=t[8];let M;t[9]!==e?(M=e&&x.jsx(Do,{title:e.title,description:e.description,variant:e.variant,onHide:()=>n(null)}),t[9]=e,t[10]=M):M=t[10];let D;t[11]===Symbol.for("react.memo_cache_sentinel")?(D=x.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-(--surface-border)",children:[x.jsx($0e,{size:22,weight:"duotone",className:"text-(--secondary-color) shrink-0"}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs uppercase tracking-wide text-(--muted-text)",children:"Remit To"}),x.jsx("p",{className:"font-bold text-(--body-text)",children:"CALLEO DISTRIBUTION TECHNOLOGIES PVT. LTD"})]})]}),t[11]=D):D=t[11];let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsxs("div",{className:"app-card rounded-xl! mt-4",children:[D,x.jsx("dl",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6",children:hwt.map(mwt)})]}),t[12]=k):k=t[12];let I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I=[{label:"CASH",value:"CASH"},{label:"CHEQUE",value:"CHEQUE"},{label:"NEFT",value:"NEFT"},{label:"RTGS",value:"RTGS"},{label:"IMPS",value:"IMPS"},{label:"ONLINE",value:"ONLINE"}],t[13]=I):I=t[13];let L;t[14]===Symbol.for("react.memo_cache_sentinel")?(L=Ne=>f("paymentMode",Ne.value),t[14]=L):L=t[14];let O;t[15]!==l.paymentMode||t[16]!==a.paymentMode?(O=x.jsx("div",{className:"col-span-6",children:x.jsx(Ia,{label:"Payment Mode",required:!0,options:I,selectedValue:a.paymentMode,onSelect:L,errorText:l.paymentMode})}),t[15]=l.paymentMode,t[16]=a.paymentMode,t[17]=O):O=t[17];let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=Ne=>f("depositAmount",Ne.target.value),t[18]=B):B=t[18];let G;t[19]!==l.depositAmount||t[20]!==a.depositAmount?(G=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Deposit Amount",required:!0,placeholder:"Enter amount",type:"number",value:a.depositAmount,onChange:B,errorText:l.depositAmount})}),t[19]=l.depositAmount,t[20]=a.depositAmount,t[21]=G):G=t[21];let j;t[22]===Symbol.for("react.memo_cache_sentinel")?(j=zLe(L0e),t[22]=j):j=t[22];let z;t[23]===Symbol.for("react.memo_cache_sentinel")?(z=Ne=>f("depositDate",Ne),t[23]=z):z=t[23];let Q;t[24]!==l.depositDate||t[25]!==a.depositDate?(Q=x.jsx("div",{className:"col-span-6",children:x.jsx(fd,{label:"Deposit Date *",required:!0,maxDate:j,selectedDate:a.depositDate,onChange:z,errorText:l.depositDate})}),t[24]=l.depositDate,t[25]=a.depositDate,t[26]=Q):Q=t[26];const ee=a.paymentMode==="CHEQUE";let Z;t[27]===Symbol.for("react.memo_cache_sentinel")?(Z=Ne=>f("checkNum",Ne.target.value),t[27]=Z):Z=t[27];let X;t[28]!==l.checkNum||t[29]!==a.checkNum||t[30]!==ee?(X=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Cheque Number",required:ee,placeholder:"e.g. CHK123456",value:a.checkNum,onChange:Z,errorText:l.checkNum})}),t[28]=l.checkNum,t[29]=a.checkNum,t[30]=ee,t[31]=X):X=t[31];let K;t[32]===Symbol.for("react.memo_cache_sentinel")?(K=Ne=>f("bankName",Ne.target.value),t[32]=K):K=t[32];let se;t[33]!==l.bankName||t[34]!==a.bankName?(se=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Bank Name",required:!0,placeholder:"e.g. HDFC Bank",value:a.bankName,onChange:K,errorText:l.bankName})}),t[33]=l.bankName,t[34]=a.bankName,t[35]=se):se=t[35];let ae;t[36]===Symbol.for("react.memo_cache_sentinel")?(ae=Ne=>f("depositedBranchName",Ne.target.value),t[36]=ae):ae=t[36];let J;t[37]!==l.depositedBranchName||t[38]!==a.depositedBranchName?(J=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Deposited Branch Name",required:!0,placeholder:"e.g. Bangalore Main Branch",value:a.depositedBranchName,onChange:ae,errorText:l.depositedBranchName})}),t[37]=l.depositedBranchName,t[38]=a.depositedBranchName,t[39]=J):J=t[39];let oe;t[40]===Symbol.for("react.memo_cache_sentinel")?(oe=Ne=>
5204f("ourBankDetails",Ne.target.value),t[40]=oe):oe=t[40];let te;t[41]!==l.ourBankDetails||t[42]!==a.ourBankDetails?(te=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Account Number",required:!0,placeholder:"Enter account number",value:a.ourBankDetails,onChange:oe,errorText:l.ourBankDetails})}),t[41]=l.ourBankDetails,t[42]=a.ourBankDetails,t[43]=te):te=t[43];let he;t[44]===Symbol.for("react.memo_cache_sentinel")?(he=Ne=>f("remarks",Ne.target.value),t[44]=he):he=t[44];let me;t[45]!==a.remarks?(me=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Remarks",placeholder:"Optional remarks",value:a.remarks,onChange:he})}),t[45]=a.remarks,t[46]=me):me=t[46];let de;t[47]!==l.receiptUrl||t[48]!==a.receiptUrl?(de=x.jsx("div",{className:"col-span-12",children:x.jsx(dwt,{fileName:"Receipt",className:"h-40",documentType:"Receipt",description:"Upload JPG, JPEG, PNG formats only and should not exceed 5MB",uploadedFile:a.receiptUrl,onUploaded:p,onRemoved:g,errorText:l.receiptUrl})}),t[47]=l.receiptUrl,t[48]=a.receiptUrl,t[49]=de):de=t[49];let Ae;t[50]!==T?(Ae=x.jsx("div",{className:"col-span-12",children:x.jsx(gr,{btnText:"Submit",onClick:()=>T(),variant:"secondary"})}),t[50]=T,t[51]=Ae):Ae=t[51];let Se;t[52]!==O||t[53]!==G||t[54]!==Q||t[55]!==X||t[56]!==se||t[57]!==J||t[58]!==te||t[59]!==me||t[60]!==de||t[61]!==Ae?(Se=x.jsx("div",{className:"app-card rounded-xl! mt-4",children:x.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[O,G,Q,X,se,J,te,me,de,Ae]})}),t[52]=O,t[53]=G,t[54]=Q,t[55]=X,t[56]=se,t[57]=J,t[58]=te,t[59]=me,t[60]=de,t[61]=Ae,t[62]=Se):Se=t[62];let Re;return t[63]!==Se||t[64]!==C||t[65]!==M?(Re=x.jsxs(x.Fragment,{children:[C,M,k,Se]}),t[63]=Se,t[64]=C,t[65]=M,t[66]=Re):Re=t[66],Re}function mwt(t){const{label:e,value:n}=t;return x.jsxs("div",{className:"flex flex-col sm:flex-row sm:gap-3 py-2.5 border-b border-(--surface-border) last:border-b-0",children:[x.jsx("dt",{className:"text-xs text-(--muted-text) sm:w-36 sm:shrink-0 sm:pt-0.5",children:e}),x.jsx("dd",{className:"text-sm font-semibold text-(--body-text) break-words",children:n})]},e)}function Awt(t){return t!==""}function gwt(t){return{...t,receiptUrl:""}}function xwt(t){return{...t,receiptUrl:""}}function vwt(t){return{...t,receiptUrl:""}}function ywt(){const t=Dn.c(40),[e,n]=b.useState(null),[r,i]=b.useState(!1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],t[0]=a):a=t[0];const[s,o]=b.useState(a),[l,c]=b.useState("");let u;t[1]===Symbol.for("react.memo_cache_sentinel")?(u={},t[1]=u):u=t[1];const[f,h]=b.useState(u),[p,A]=b.useState(null),[g,w]=b.useState(0);let T;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=async()=>{const oe=await WZe();oe.statusCode===200&&(o(oe.data),c(oe.data[0]))},t[2]=T):T=t[2];const C=T;let M,D;t[3]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{C()},D=[],t[3]=M,t[4]=D):(M=t[3],D=t[4]),b.useEffect(M,D);let k;t[5]!==g||t[6]!==p||t[7]!==l?(k=async()=>{if(i(!0),!p){h({paymentMode:"Payment mode is required"}),i(!1);return}if(g<=0){h({amount:"Amount must be greater than 0"}),i(!1);return}const oe={userId:jhe(k0e),amount:g,currency:"INR",pgName:l,pgMode:p},te=await KUe(oe);te.statusCode===200?(n({title:"Success",description:"Routing to payment gateway",variant:"success"}),window.location.href=te.data.returnUrl+"&type=wallet"):n({title:"Error",description:"Payment failed",variant:"error"}),i(!1)},t[5]=g,t[6]=p,t[7]=l,t[8]=k):k=t[8];const I=k;let L;t[9]!==r?(L=r&&x.jsx(go,{isLoading:r}),t[9]=r,t[10]=L):L=t[10];let O;t[11]!==e?(O=e&&x.jsx(Do,{title:e.title,description:e.description,variant:e.variant,onHide:()=>n(null)}),t[11]=e,t[12]=O):O=t[12];let B;t[13]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx("div",{className:"text-sm font-semibold text-gray-800 dark:text-white",children:"Payment Gateway:"}),t[13]=B):B=t[13];let G;t[14]!==s||t[15]!==l?(G=s&&s.length>0&&s.map(oe=>x.jsx(gr,{btnText:oe.toUpperCase(),variant:l===oe?"secondary":"outlined-gray",onClick:()=>c(oe),className:"text-xs"},oe)),t[14]=s,t[15]=l,t[16]=G):G=t[16];let j;t[17]!==G?(j=x.jsxs("div",{className:"flex gap-2 items-center",children:[B,x.jsx("div",{className:"flex gap-2",children:G})]}),t[17]=G,t[18]=j):j=t[18];let z;t[19]===Symbol.for("react.memo_cache_sentinel")?(z=[{label:"Credit Card",value:"credit"},{label:"Debit Card",value:"debit"},{label:"Net Banking",value:"netbanking"},{label:"UPI",value:"upi"}],t[19]=z):z=t[19];let Q;t[20]===Symbol.for("react.memo_cache_sentinel")?(Q=oe=>A(oe.value),t[20]=Q):Q=t[20];let ee;t[21]!==f.paymentMode||t[22]!==p?(ee=x.jsx("div",{className:"col-span-6",children:x.jsx(Ia,{label:"Payment Mode",required:!0,options:z,selectedValue:p,onSelect:Q,errorText:f.paymentMode})}),t[21]=f.paymentMode,t[22]=p,t[23]=ee):ee=t[23];let Z;t[24]===Symbol.for("react.memo_cache_sentinel")?(Z=oe=>w(oe.target.value),t[24]=Z):Z=t[24];let X;t[25]!==g?(X=x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Amount",type:"number",required:!0,value:g,onChange:Z})}),t[25]=g,t[26]=X):X=t[26];let K;t[27]!==ee||t[28]!==X?(K=x.jsxs("div",{className:"grid grid-cols-12 mt-4 gap-4",children:[ee,X]}),t[27]=ee,t[28]=X,t[29]=K):K=t[29];let se;t[30]!==I?(se=x.jsx("div",{className:"flex justify-end mt-4",children:x.jsx(gr,{btnText:"Pay",variant:"secondary",onClick:()=>I(),className:"w-50"})}),t[30]=I,t[31]=se):se=t[31];let ae;t[32]!==j||t[33]!==K||t[34]!==se?(ae=x.jsxs("div",{className:"app-card rounded-xl! mt-4",children:[j,K,se]}),t[32]=j,t[33]=K,t[34]=se,t[35]=ae):ae=t[35];let J;return t[36]!==ae||t[37]!==L||t[38]!==O?(J=x.jsxs(x.Fragment,{children:[L,O,ae]}),t[36]=ae,t[37]=L,t[38]=O,t[39]=J):J=t[39],J}function X8e(){const t=Dn.c(15),[e,n]=b.useState(!1),[r,i]=b.useState(!1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=FA(),t[0]=a):a=t[0];const s=a;let o,l;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"My Wallet"}),l=x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1",children:"Manage your funds."}),t[1]=o,t[2]=l):(o=t[1],l=t[2]);let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(R3,{strokeWidth:.7,width:200,height:200,color:"white",className:"absolute top-0 bottom-0 w-64 left-1/2 -translate-x-1/2 md:left-auto md:translate-x-0 md:right-0 md:pr-6 flex items-center justify-center md:justify-end pointer-events-none select-none opacity-30"}),t[3]=c):c=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx("div",{className:"text-xs font-semibold text-gray-400 tracking-widest mb-3",children:"WALLET BALANCE"}),t[4]=u):u=t[4];let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("span",{className:"text-4xl font-bold text-white",children:xr(jhe(YU))}),t[5]=f):f=t[5];let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsxs("div",{className:"flex items-center gap-3",children:[f,x.jsx("button",{className:"text-gray-400 hover:text-white transition-colors",onClick:_wt,children:x.jsx(G0e,{size:22})})]}),t[6]=h):h=t[6];let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsxs("div",{children:[o,l,x.jsxs("div",{className:"relative mt-6 bg-[linear-gradient(90deg,var(--secondary-color)_10%,var(--primary-color)_100%)] rounded-2xl p-8 overflow-hidden",children:[c,x.jsxs("div",{className:"relative z-10",children:[u,h,x.jsx("div",{className:"flex gap-2 flex-wrap",children:s!==Fm.AGENT_STAFF&&x.jsxs("button",{className:"mt-5 flex items-center gap-2 border border-white text-white hover:bg-blue-400 hover:text-white transition-colors px-5 py-2 rounded-full text-sm font-medium",onClick:()=>{i(!1),n(!0)},children:[x.jsx(nP,{size:18}),"Top Up Wallet - Offline"]})})]})]})]}),t[7]=p):p=t[7];let A;t[8]!==e?(A=e&&x.jsx(pwt,{}),t[8]=e,t[9]=A):A=t[9];let g;t[10]!==r?(g=r&&x.jsx(ywt,{}
5204),t[10]=r,t[11]=g):g=t[11];let w;return t[12]!==A||t[13]!==g?(w=x.jsxs(x.Fragment,{children:[p,A,g]}),t[12]=A,t[13]=g,t[14]=w):w=t[14],w}function _wt(){return window.location.reload()}const bwt="APP_INVOICE_LOGO",wwt=["image/jpeg","image/jpg","image/png"],Swt=5*1024*1024,VH=t=>t.split("_").map(e=>e.charAt(0)+e.slice(1).toLowerCase()).join(" "),Twt=t=>t?.toLowerCase().includes(".pdf");function w1(t){const e=Dn.c(7),{label:n,value:r}=t;if(!r)return null;let i;e[0]!==n?(i=x.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500 sm:w-36 shrink-0",children:n}),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==r?(a=x.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white break-all",children:r}),e[2]=r,e[3]=a):a=e[3];let s;return e[4]!==i||e[5]!==a?(s=x.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-0.5 py-2.5 border-b border-gray-100 dark:border-gray-700 last:border-0",children:[i,a]}),e[4]=i,e[5]=a,e[6]=s):s=e[6],s}function Ewt(t){const e=Dn.c(16),{doc:n}=t;let r;e[0]!==n.documentType?(r=VH(n.documentType),e[0]=n.documentType,e[1]=r):r=e[1];const i=r;let a;e[2]!==n.docUrl?(a=Twt(n.docUrl),e[2]=n.docUrl,e[3]=a):a=e[3];const s=a;let o;e[4]!==n.docUrl||e[5]!==s||e[6]!==i?(o=x.jsx("div",{className:"h-28 flex items-center justify-center bg-gray-50 dark:bg-gray-700",children:s?x.jsxs("a",{href:n.docUrl,target:"_blank",rel:"noreferrer",className:"flex flex-col items-center gap-1 text-red-400 hover:text-red-500 transition-colors",children:[x.jsx(ife,{size:36}),x.jsx("span",{className:"text-xs",children:"View PDF"})]}):x.jsx("a",{href:n.docUrl,target:"_blank",rel:"noreferrer",className:"w-full h-full",children:x.jsx("img",{src:n.docUrl,alt:i,className:"w-full h-28 object-cover"})})}),e[4]=n.docUrl,e[5]=s,e[6]=i,e[7]=o):o=e[7];let l;e[8]!==i?(l=x.jsx("div",{className:"text-xs font-semibold text-gray-600 dark:text-gray-300 truncate",children:i}),e[8]=i,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx("div",{className:"text-xs text-green-500 mt-0.5",children:"Uploaded"}),e[10]=c):c=e[10];let u;e[11]!==l?(u=x.jsxs("div",{className:"px-3 py-2",children:[l,c]}),e[11]=l,e[12]=u):u=e[12];let f;return e[13]!==o||e[14]!==u?(f=x.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-700 overflow-hidden bg-white dark:bg-gray-800",children:[o,u]}),e[13]=o,e[14]=u,e[15]=f):f=e[15],f}function Mwt(){const t=uy(S0),[e,n]=b.useState(t?.logoS3Url),[r,i]=b.useState(null),[a,s]=b.useState(null),[o,l]=b.useState(!1),[c,u]=b.useState(null),[f,h]=b.useState(t?.documentResponse??[]),p=b.useRef(null),A=(he,me)=>{const de=f.map(Ae=>Ae.docId===he?{...Ae,docUrl:me}:Ae);h(de),Zm(S0,{...t,documentResponse:de})},g=he=>{const me=he.target.files[0];if(he.target.value="",!me)return;if(!wwt.includes(me.type)){u("Only JPG, JPEG, and PNG images are allowed."),i(null),s(null);return}if(me.size>Swt){u("File size must not exceed 5MB."),i(null),s(null);return}u(null),i(me);const de=new FileReader;de.onload=Ae=>
5204s(Ae.target.result),de.readAsDataURL(me)},w=async()=>{if(r){l(!0),u(null);try{const he=new FormData;he.append("documentType","COMPANY_LOGO"),he.append("file",r);const me=await rVe(he);if(me?.statusCode===200){const de=me.data?.logoUrl??a;localStorage.setItem(bwt,de),n(de),i(null),s(null)}else u(me?.message??"Upload failed. Please try again.")}catch{u("Upload failed. Please try again.")}finally{l(!1)}}};if(!t)return x.jsx("div",{className:"text-gray-500 dark:text-gray-400 p-4",children:"No profile data found."});const{userId:T,title:C,firstName:M,lastName:D,email:k,phone:I,company:L,gstNumber:O,address1:B,address2:G,city:j,state:z,countryCode:Q,pinCode:ee,userstatus:Z,createdOn:X}=t,K=f,se=K.find(he=>he.documentType==="PROFILE_PHOTO"&&he.docUrl),ae=K.filter(he=>he.documentType!=="PROFILE_PHOTO"&&he.docUrl),J=K.filter(he=>he.documentType!=="PROFILE_PHOTO"&&!he.docUrl),oe=[C,M,D].filter(Boolean).join(" "),te=X?K5(new Date(X),"dd MMM, yyyy"):null;return x.jsxs("div",{className:"space-y-4",children:[x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white mb-0",children:"Profile"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"View your profile information."}),x.jsxs("div",{className:"app-card flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[x.jsx("div",{className:"w-16 h-16 rounded-full overflow-hidden bg-(--secondary-color-30) flex items-center justify-center shrink-0",children:se?.docUrl?x.jsx("img",{src:se.docUrl,alt:"Profile",className:"w-full h-full object-cover"}):x.jsx(tz,{size:40,className:"text-(--secondary-color)"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("div",{className:"text-xl font-bold text-gray-800 dark:text-white",children:oe}),x.jsx("div",{className:"text-sm text-gray-400 dark:text-gray-500 mt-0.5",children:T}),x.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:x.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-medium ${Z==="ACTIVE"?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"}`,children:Z})})]}),te&&x.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-400 dark:text-gray-500 shrink-0",children:[x.jsx(W0e,{size:14}),"Member since ",te]})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[x.jsxs("div",{className:"col-span-12 md:col-span-6 app-card",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx(Ry,{size:17,className:"text-(--secondary-color)"}),x.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Contact"})]}),x.jsx(w1,{label:"Email",value:k}),x.jsx(w1,{label:"Phone",value:I})]}),x.jsxs("div",{className:"col-span-12 md:col-span-6 app-card",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx(q0e,{size:17,className:"text-(--secondary-color)"}),x.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Company"})]}),x.jsx(w1,{label:"Company Name",value:L}),x.jsx(w1,{label:"GST Number",value:O})]}),x.jsxs("div",{className:"col-span-12 app-card",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[x.jsx(p9,{size:17,className:"text-(--secondary-color)"}),x.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Invoice Logo"})]}),x.jsx("input",{ref:p,type:"file",accept:".jpg,.jpeg,.png",className:"hidden",onChange:g}),x.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-5",children:[x.jsx("div",{className:"w-48 h-24 rounded-xl border-2 border-dashed border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 flex items-center justify-center overflow-hidden shrink-0",children:a??e?x.jsx("img",{src:a??e,alt:"Invoice logo",className:"w-full h-full object-contain p-2"}):x.jsxs("div",{className:"flex flex-col items-center gap-1 text-gray-300 dark:text-gray-500",children:[x.jsx(p9,{size:28}),x.jsx("span",{className:"text-xs",children:"No logo"})]})}),x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:["This logo appears on customer invoices.",x.jsx("br",{}),"Accepted: JPG, JPEG, PNG · Max size: 5MB"]}
5204),c&&x.jsx("p",{className:"text-xs text-red-500 font-medium",children:c}),x.jsxs("div",{className:"flex flex-wrap gap-2",children:[x.jsxs("button",{onClick:()=>p.current?.click(),disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-lg border border-gray-200 dark:border-gray-600 text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors disabled:opacity-50",children:[x.jsx(p9,{size:14}),e&&!r?"Change Logo":"Choose File"]}),r&&x.jsx("button",{onClick:w,disabled:o,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-lg bg-(--secondary-color) text-white hover:opacity-90 transition-opacity disabled:opacity-50",children:o?"Uploadingâ¦":"Upload"})]}),r&&x.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:[r.name," · ",(r.size/1024).toFixed(0)," KB"]})]})]})]}),x.jsxs("div",{className:"col-span-12 app-card",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx(tP,{size:17,className:"text-(--secondary-color)"}),x.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Address"})]}),x.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8",children:[x.jsx(w1,{label:"Address Line 1",value:B}),x.jsx(w1,{label:"Address Line 2",value:G}),x.jsx(w1,{label:"City",value:j}),x.jsx(w1,{label:"State",value:z}),x.jsx(w1,{label:"PIN Code",value:ee}),x.jsx(w1,{label:"Country",value:Q})]})]}),K.length>0&&x.jsxs("div",{className:"col-span-12 app-card",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[x.jsx(QG,{size:17,className:"text-(--secondary-color)"}),x.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Documents"})]}),ae.length>0&&x.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3",children:ae.map(he=>x.jsx(Ewt,{doc:he},he.docId))}),J.length>0&&x.jsxs("div",{className:"mt-4 space-y-3",children:[x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:"Pending documents â upload to complete your verification."}),J.map(he=>x.jsx(wme,{title:VH(he.documentType),description:`Upload your ${VH(he.documentType)}. PDF, JPG or PNG, max 5MB.`,documentId:he.docId,userId:T,onUploaded:A},he.docId))]})]})]})]})}const Cwt={ORDER_CREATED:{label:"Order Created",cls:""},DOCUMENT_UPLOADED:{label:"Doc Uploaded",cls:""},DOCUMENT_PARTIALLY_UPLOADED:{label:"Doc Partially Uploaded",cls:""},DOCUMENT_VERIFICATION_IN_PROGRESS:{label:"Verification In Progress",cls:""},PAYMENT_COMPLETED:{label:"Payment Completed",cls:""},PAYMENT_FAILED:{label:"Payment Failed",cls:""},DOCUMENT_UPLOAD_FAILED:{label:"Doc Upload Failed",cls:""},ADDITIONAL_DOCUMENTS_REQUIRED:{label:"Additional Docs Required",cls:""},APPROVED:{label:"Approved",cls:""},CANCELLED:{label:"Cancelled",cls:""}},Nwt={ADT:"Adult",CHD:"Child",INF:"Infant"};function Q8e(t){const e=Dn.c(5),{status:n}=t;let r;e[0]!==n?(r=Cwt[n]??{label:Hhe(n),cls:""},e[0]=n,e[1]=r):r=e[1];const i=r,a=`text-xs p-2 py-1 rounded-full whitespace-wrap text-center ${i.cls}`;let s;return e[2]!==i.label||e[3]!==a?(s=x.jsx("span",{className:a,children:i.label}),e[2]=i.label,e[3]=a,e[4]=s):s=e[4],s}function Rwt({applicants:t,statusHistory:e,qnaLinks:n={}}){const[r,i]=b.useState(null),a=r??t?.[0]?.applicantId,s=e.reduce((o,l)=>(o[l.applicantId]||(o[l.applicantId]=[]),o[l.applicantId].push(l),o),{});return x.jsx("div",{className:"space-y-2",children:t.map(o=>{const l=[o.title,o.firstName,o.lastName].filter(Boolean).join(" "),c=[o.firstName?.[0],o.lastName?.[0]].filter(Boolean).join("").toUpperCase()||"?",u=s[o.applicantId]??[],f=n[o.applicantRefNo],h=a===o.applicantId;return x.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-700 overflow-hidden",children:[x.jsxs("button",{type:"button",onClick:()=>i(h?"":o.applicantId),className:"w-full flex items-center gap-3 px-4 py-3 bg-gray-50 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors text-left focus:outline-none",children:[x.jsx("div",{className:"w-9 h-9 rounded-full bg-linear-to-br from-blue-500 to-cyan-400 flex items-center justify-center text-white font-bold text-sm shrink-0",children:c}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"font-semibold text-gray-800 dark:text-white text-sm leading-tight truncate",children:l}),x.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:[Nwt[o.paxType]??o.paxType," · ",u.length," event",u.length!==1?"s":""]})]}),x.jsx(Q8e,{status:o.applicantStatus}),x.jsx(KD,{size:14,className:`text-gray-400 shrink-0 transition-transform duration-200 ${h?"rotate-180":""}`})]}),h&&x.jsxs("div",{className:"px-4 py-3 bg-white dark:bg-gray-800/50",children:[f&&x.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"inline-block mb-3 text-xs font-semibold text-(--secondary-color) underline break-all",children:"Complete additional documents questionnaire"}),u.length===0?x.jsx("p",{className:"text-xs text-gray-400",children:"No history found."}):x.jsxs("div",{className:"relative pl-5",children:[x.jsx("div",{className:"absolute left-[7px] top-1 bottom-1 w-px bg-gray-200 dark:bg-gray-700"}),x.jsx("div",{className:"space-y-3",children:u.map((p,A)=>{const g=A===u.length-1;return x.jsxs("div",{className:"relative flex gap-3",children:[x.jsx("div",{className:`absolute -left-5 mt-1 w-3.5 h-3.5 rounded-full border-2 shrink-0 ${g?"border-(--secondary-color) bg-(--secondary-color)":"border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800"}`}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"text-sm font-semibold text-gray-700 dark:text-gray-200 capitalize",children:p.newStatus?.toLowerCase().replace(/_/g," ")}),p.remarks&&x.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:p.remarks}),x.jsx("p",{className:"text-[10px] text-gray-400 mt-0.5",children:new Date(p.createdAt).toLocaleStr
5204ing("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})})]})]},A)})})]})]})]},o.applicantId)})})}var Yc=function(){return Yc=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Yc.apply(this,arguments)};function TD(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var ps="-ms-",ES="-moz-",ga="-webkit-",K8e="comm",Gk="rule",tY="decl",Dwt="@import",Pwt="@namespace",J8e="@keyframes",kwt="@layer",e3e=Math.abs,nY=String.fromCharCode,jH=Object.assign;function Lwt(t,e){return ml(t,0)^45?(((e<<2^ml(t,0))<<2^ml(t,1))<<2^ml(t,2))<<2^ml(t,3):0}function t3e(t){return t.trim()}function Lm(t,e){return(t=e.exec(t))?t[0]:t}function ui(t,e,n){return t.replace(e,n)}function lN(t,e,n){return t.indexOf(e,n)}function ml(t,e){return t.charCodeAt(e)|0}function Sy(t,e,n){return t.slice(e,n)}function Ah(t){return t.length}function n3e(t){return t.length}function Uw(t,e){return e.push(t),t}function Owt(t,e){return t.map(e).join("")}function Poe(t,e){return t.filter(function(n){return!Lm(n,e)})}var zk=1,j_=1,r3e=0,Cd=0,Zo=0,T6="";function $k(t,e,n,r,i,a,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:zk,column:j_,length:s,return:"",siblings:o}}function OA(t,e){return jH($k("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function b8(t){for(;t.root;)t=OA(t.root,{children:[t]});Uw(t,t.siblings)}function Fwt(){return Zo}function Iwt(){return Zo=Cd>0?ml(T6,--Cd):0,j_--,Zo===10&&(j_=1,zk--),Zo}function Bh(){return Zo=Cd<r3e?ml(T6,Cd++):0,j_++,Zo===10&&(j_=1,zk++),Zo}function pg(){return ml(T6,Cd)}function cN(){return Cd}function qk(t,e){return Sy(T6,t,e)}function J5(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bwt(t){return zk=j_=1,r3e=Ah(T6=t),Cd=0,[]}function Uwt(t){return T6="",t}function tU(t){return t3e(qk(Cd-1,HH(t===91?t+2:t===40?t+1:t)))}function Vwt(t){for(;(Zo=pg())&&Zo<33;)Bh();return J5(t)>2||J5(Zo)>3?"":" "}function jwt(t,e){for(;--e&&Bh()&&!(Zo<48||Zo>102||Zo>57&&Zo<65||Zo>70&&Zo<97););return qk(t,cN()+(e<6&&pg()==32&&Bh()==32))}function HH(t){for(;Bh();)switch(Zo){case t:return Cd;case 34:case 39:t!==34&&t!==39&&HH(Zo);break;case 40:t===41&&HH(t);break;case 92:Bh();break}return Cd}function Hwt(t,e){for(;Bh()&&t+Zo!==57;)if(t+Zo===84&&pg()===47)break;return"/*"+qk(e,Cd-1)+"*"+nY(t===47?t:Bh())}function Gwt(t){for(;!J5(pg());)Bh();return qk(t,Cd)}function zwt(t){return Uwt(uN("",null,null,null,[""],t=Bwt(t),0,[0],t))}function uN(t,e,n,r,i,a,s,o,l){for(var c=0,u=0,f=s,h=0,p=0,A=0,g=1,w=1,T=1,C=0,M="",D=i,k=a,I=r,L=M;w;)switch(A=C,C=Bh()){case 40:if(A!=108&&ml(L,f-1)==58){lN(L+=ui(tU(C),"&","&\f"),"&\f",e3e(c?o[c-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:L+=tU(C);break;case 9:case 10:case 13:case 32:L+=Vwt(A);break;case 92:L+=jwt(cN()-1,7);continue;case 47:switch(pg()){case 42:case 47:Uw($wt(Hwt(Bh(),cN()),e,n,l),l),(J5(A||1)==5||J5(pg()||1)==5)&&Ah(L)&&Sy(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*g:o[c++]=Ah(L)*T;case 125*g:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+u:T==-1&&(L=ui(L,/\f/g,"")),p>0&&(Ah(L)-f||g===0&&A===47)&&Uw(p>32?Loe(L+";",r,n,f-1,l):Loe(ui(L," ","")+";",r,n,f-2,l),l);break;case 59:L+=";";default:if(Uw(I=koe(L,e,n,c,u,i,o,M,D=[],k=[],f,a),a),C===123)if(u===0)uN(L,e,I,I,D,a,f,o,k);else{switch(h){case 99:if(ml(L,3)===110)break;case 108:if(ml(L,2)===97)break;default:u=0;case 100:case 109:case 115:}u?uN(t,I,I,r&&Uw(koe(t,I,I,0,0,i,o,M,i,D=[],f,k),k),i,k,f,o,r?D:k):uN(L,I,I,I,[""],k,0,o,k)}}c=u=p=0,g=T=1,M=L="",f=s;break;case 58:f=1+Ah(L),p=A;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&Iwt()==125)continue}switch(L+=nY(C),C*g){case 38:T=u>0?1:(L+="\f",-1);break;case 44:o[c++]=(Ah(L)-1)*T,T=1;break;
vendor: 1,144 bytes, line 5204
5204case 64:pg()===45&&(L+=tU(Bh())),h=pg(),u=f=Ah(M=L+=Gwt(cN())),C++;break;case 45:A===45&&Ah(L)==2&&(g=0)}}return a}function koe(t,e,n,r,i,a,s,o,l,c,u,f){for(var h=i-1,p=i===0?a:[""],A=n3e(p),g=0,w=0,T=0;g<r;++g)for(var C=0,M=Sy(t,h+1,h=e3e(w=s[g])),D=t;C<A;++C)(D=t3e(w>0?p[C]+" "+M:ui(M,/&\f/g,p[C])))&&(l[T++]=D);return $k(t,e,n,i===0?Gk:o,l,c,u,f)}function $wt(t,e,n,r){return $k(t,e,n,K8e,nY(Fwt()),Sy(t,2,-2),0,r)}function Loe(t,e,n,r,i){return $k(t,e,n,tY,Sy(t,0,r),Sy(t,r+1,-1),r,i)}function i3e(t,e,n){switch(Lwt(t,e)){case 5103:return ga+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ga+t+t;case 4855:return ga+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return ES+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ga+t+ES+t+ps+t+t;case 5936:switch(ml(t,e+11)){case 114:return ga+t+ps+ui(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 4,954 bytes, lines 5204-5205
5204case 108:return ga+t+ps+ui(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ga+t+ps+ui(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return ga+t+ps+t+t;case 6165:return ga+t+ps+"flex-"+t+t;case 5187:return ga+t+ui(t,/(\w+).+(:[^]+)/,ga+"box-$1$2"+ps+"flex-$1$2")+t;case 5443:return ga+t+ps+"flex-item-"+ui(t,/flex-|-self/g,"")+(Lm(t,/flex-|baseline/)?"":ps+"grid-row-"+ui(t,/flex-|-self/g,""))+t;case 4675:return ga+t+ps+"flex-line-pack"+ui(t,/align-content|flex-|-self/g,"")+t;case 5548:return ga+t+ps+ui(t,"shrink","negative")+t;case 5292:return ga+t+ps+ui(t,"basis","preferred-size")+t;case 6060:return ga+"box-"+ui(t,"-grow","")+ga+t+ps+ui(t,"grow","positive")+t;case 4554:return ga+ui(t,/([^-])(transform)/g,"$1"+ga+"$2")+t;case 6187:return ui(ui(ui(t,/(zoom-|grab)/,ga+"$1"),/(image-set)/,ga+"$1"),t,"")+t;case 5495:case 3959:return ui(t,/(image-set\([^]*)/,ga+"$1$`$1");case 4968:return ui(ui(t,/(.+:)(flex-)?(.*)/,ga+"box-pack:$3"+ps+"flex-pack:$3"),/space-between/,"justify")+ga+t+t;case 4200:if(!Lm(t,/flex-|baseline/))return ps+"grid-column-align"+Sy(t,e)+t;break;case 2592:case 3360:return ps+ui(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(r,i){return e=i,Lm(r.props,/grid-\w+-end/)})?~lN(t+(n=n[e].value),"span",0)?t:ps+ui(t,"-start","")+t+ps+"grid-row-span:"+(~lN(n,"span",0)?Lm(n,/\d+/):+Lm(n,/\d+/)-+Lm(t,/\d+/))+";":ps+ui(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(r){return Lm(r.props,/grid-\w+-start/)})?t:ps+ui(ui(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return ui(t,/(.+)-inline(.+)/,ga+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ah(t)-1-e>6)switch(ml(t,e+1)){case 109:if(ml(t,e+4)!==45)break;case 102:return ui(t,/(.+:)(.+)-([^]+)/,"$1"+ga+"$2-$3$1"+ES+(ml(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~lN(t,"stretch",0)?i3e(ui(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return ui(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,s,o,l,c){return ps+i+":"+a+c+(s?ps+i+"-span:"+(o?l:+l-+a)+c:"")+t});case 4949:if(ml(t,e+6)===121)return ui(t,":",":"+ga)+t;break;case 6444:switch(ml(t,ml(t,14)===45?18:11)){case 120:return ui(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ga+(ml(t,14)===45?"inline-":"")+"box$3$1"+ga+"$2$3$1"+ps+"$2box$3")+t;case 100:return ui(t,":",":"+ps)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ui(t,"scroll-","scroll-snap-")+t}return t}function ED(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function qwt(t,e,n,r){switch(t.type){case kwt:if(t.children.length)break;case Dwt:case Pwt:case tY:return t.return=t.return||t.value;case K8e:return"";case J8e:return t.return=t.value+"{"+ED(t.children,r)+"}";case Gk:if(!Ah(t.value=t.props.join(",")))return""}return Ah(n=ED(t.children,r))?t.return=t.value+"{"+n+"}":""}function Wwt(t){var e=n3e(t);return function(n,r,i,a){for(var s="",o=0;o<e;o++)s+=t[o](n,r,i,a)||"";return s}}function Zwt(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ywt(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case tY:t.return=i3e(t.value,t.length,n);return;case J8e:return ED([OA(t,{value:ui(t.value,"@","@"+ga)})],r);case Gk:if(t.length)return Owt(n=t.props,function(i){switch(Lm(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":b8(OA(t,{props:[ui(i,/:(read-\w+)/,":"+ES+"$1")]})),b8(OA(t,{props:[i]})),jH(t,{props:Poe(n,r)});break;case"::placeholder":b8(OA(t,{props:[ui(i,/:(plac\w+)/,":"+ga+"input-$1")]})),b8(OA(t,{props:[ui(i,/:(plac\w+)/,":"+ES+"$1")]})),b8(OA(t,{props:[ui(i,/:(plac\w+)/,ps+"input-$1")]})),b8(OA(t,{props:[i]})),jH(t,{props:Poe(n,r)});break}return""})}}var ef={},H_=typeof process<"u"&&ef!==void 0&&(ef.REACT_APP_SC_ATTR||ef.SC_ATTR)||"data-styled",a3e="active",s3e="data-styled-version",Wk="6.3.12",rY=`/*!sc*/ 5205`,MS=typeof window<"u"&&typeof document<"u",Xwt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ef!==void 0&&ef.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ef.REACT_APP_SC_DISABLE_SPEEDY!==""?ef.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ef.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ef!==void 0&&ef.SC_DISABLE_SPEEDY!==void 0&&ef.SC_DISABLE_SPEEDY!==""&&ef.SC_DISABLE_SPEEDY!=="false"&&ef.SC_DISABLE_SPEEDY);function G_(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var fN=new Map,MD=new Map,dN=1,Vw=function(t){if(fN.has(t))return fN.get(t);for(;MD.has(dN);)dN++;var e=dN++;return fN.set(t,e),MD.set(e,t),e},Qwt=function(t,e){dN=e+1,fN.set(t,e),MD.set(e,t)},iY=Object.freeze([]),z_=Object.freeze({});function Kwt(t,e,n){return n===void 0&&(n=z_),t.theme!==n.theme&&t.theme||e||n.theme}
5205var o3e=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Jwt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eSt=/(^-|-$)/g;function Ooe(t){return t.replace(Jwt,"-").replace(eSt,"")}var tSt=/(a)(d)/gi,Foe=function(t){return String.fromCharCode(t+(t>25?39:97))};function GH(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Foe(e%52)+n;return(Foe(e%52)+n).replace(tSt,"$1-$2")}var nU,mv=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},l3e=function(t){return mv(5381,t)};function nSt(t){return GH(l3e(t)>>>0)}function rSt(t){return t.displayName||t.name||"Component"}function rU(t){return typeof t=="string"&&!0}var c3e=typeof Symbol=="function"&&Symbol.for,u3e=c3e?Symbol.for("react.memo"):60115,iSt=c3e?Symbol.for("react.forward_ref"):60112,aSt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sSt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},f3e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oSt=((nU={})[iSt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nU[u3e]=f3e,nU);function Ioe(t){return("type"in(e=t)&&e.type.$$typeof)===u3e?f3e:"$$typeof"in t?oSt[t.$$typeof]:aSt;var e}var lSt=Object.defineProperty,cSt=Object.getOwnPropertyNames,Boe=Object.getOwnPropertySymbols,uSt=Object.getOwnPropertyDescriptor,fSt=Object.getPrototypeOf,Uoe=Object.prototype;function d3e(t,e,n){if(typeof e!="string"){if(Uoe){var r=fSt(e);r&&r!==Uoe&&d3e(t,r,n)}var i=cSt(e);Boe&&(i=i.concat(Boe(e)));for(var a=Ioe(t),s=Ioe(e),o=0;o<i.length;++o){var l=i[o];if(!(l in sSt||n&&n[l]||s&&l in s||a&&l in a)){var c=uSt(e,l);try{lSt(t,l,c)}catch{}}}}return t}function Ty(t){return typeof t=="function"}function aY(t){return typeof t=="object"&&"styledComponentId"in t}function Lv(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function Voe(t,e){return t.join("")}function eT(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function zH(t,e,n){if(n===void 0&&(n=!1),!n&&!eT(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=zH(t[r],e[r]);else if(eT(e))for(var r in e)t[r]=zH(t[r],e[r]);return t}function h3e(t,e){Object.defineProperty(t,"toString",{value:e})}var dSt=(function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return t.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var n=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)n+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)n-=this.groupSizes[r];return this._cGroup=e,this._cIndex=n,n},t.prototype.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;e>=a;)if((a<<=1)<0)throw G_(16,"".concat(e));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var s=i;s<a;s++)this.groupSizes[s]=0}for(var o=this.indexOfGroup(e+1),l=0,c=(s=0,n.length);s<c;s++)this.tag.insertRule(o,n[s])&&(this.groupSizes[e]++,o++,l++);l>0&&this._cGroup>e&&(this._cIndex+=l)},t.prototype.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;this.groupSizes[e]=0;for(var a=r;a<i;a++)this.tag.deleteRule(r);n>0&&this._cGroup>e&&(this._cIndex-=n)}},t.prototype.getGroup=function(e){var n="";if(e>=this.length||this.groupSizes[e]===0)return n;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),a=i+r,s=i;s<a;s++)n+=this.tag.getRule(s)+rY;return n},t})(),hSt="style[".concat(H_,"][").concat(s3e,'="').concat(Wk,'"]'),pSt=new RegExp("^".concat(H_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),joe=function(t){return typeof ShadowRoot<"u"&&t instanceof ShadowRoot||"host"in t&&t.nodeType===11},$H=function(t){if(!t)return document;if(joe(t))return t;if("getRootNode"in t){var e=t.getRootNode();if(joe(e))return e}return document},mSt=function(t,e,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&t.registerName(e,r)},ASt=function(t,e){for(var n,r=((n=e.textContent)!==null&&n!==void 0?n:"").split(rY),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(pSt);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(Qwt(u,c),mSt(t,u,l[3]),t.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},iU=function(t){for(var e=$H(t.options.target).querySelectorAll(hSt),n=0,r=e.length;n<r;n++){var i=e[n];i&&i.getAttribute(H_)!==a3e&&(ASt(t,i),i.parentNode&&i.parentNode.removeChild(i))}};function gSt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var p3e=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=(function(o){var l=Array.from(o.querySelectorAll("style[".concat(H_,"]")));return l[l.length-1]})(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(H_,a3e),r.setAttribute(s3e,Wk);var s=gSt();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},xSt=(function(){function t(e){this.element=p3e(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){var r;if(n.sheet)return n.sheet;for(var i=(r=n.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets,a=0,s=i.length;a<s;a++){var o=i[a];if(o.ownerNode===n)return o}throw G_(17)})(this.element),this.length=0}return t.prototype.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.prototype.getRule=function(e){var n=this.sheet.cssRules[e];return n&&n.cssText?n.cssText:""},t})(),vSt=(function(){function t(e){this.element=p3e(e),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(e,n){if(e<=this.length&&e>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},t})(),ySt=(function(){function t(e){this.rules=[],this.length=0}return t.prototype.insertRule=function(e,n){return e<=this.length&&(e===this.length?this.rules.push(n):this.rules.splice(e,0,n),this.length++,!0)},t.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},t})(),Hoe=MS,_St={isServer:!MS,useCSSOMInjection:!Xwt},m3e=(function(){function t(e,n,r){e===void 0&&(e=z_),n===void 0&&(n={});var i=this;this.options=Yc(Yc({},_St),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&MS&&Hoe&&(Hoe=!1,iU(this)),h3e(this,function(){return(function(a){for(var s=a.getTag(),o=s.length,l="",c=function(f){var h=(function(T){return MD.get(T)})(f);if(h===void 0)return"continue";var p=a.names.get(h);if(p===void 0||!p.size)return"continue";var A=s.getGroup(f);if(A.length===0)return"continue";var g=H_+".g"+f+'[id="'+h+'"]',w="";p.forEach(function(T){T.length>0&&(w+=T+",")}),l+=A+g+'{content:"'+w+'"}'+rY},u=0;u<o;u++)c(u);return l})(i)})}return t.registerId=function(e){return Vw(e)},t.prototype.rehydrate=function(){!this.server&&MS&&iU(this)}
5205,t.prototype.reconstructWithOptions=function(e,n){n===void 0&&(n=!0);var r=new t(Yc(Yc({},this.options),e),this.gs,n&&this.names||void 0);return!this.server&&MS&&e.target!==this.options.target&&$H(this.options.target)!==$H(e.target)&&iU(r),r},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new ySt(i):r?new xSt(i):new vSt(i)})(this.options),new dSt(e)));var e},t.prototype.hasNameForId=function(e,n){var r,i;return(i=(r=this.names.get(e))===null||r===void 0?void 0:r.has(n))!==null&&i!==void 0&&i},t.prototype.registerName=function(e,n){Vw(e);var r=this.names.get(e);r?r.add(n):this.names.set(e,new Set([n]))},t.prototype.insertRules=function(e,n,r){this.registerName(e,n),this.getTag().insertRules(Vw(e),r)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(Vw(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t})();function bSt(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e!="number"||e===0||t in cpe||t.startsWith("--")?String(e).trim():"".concat(e,"px")}var wSt=function(t){return t>="A"&&t<="Z"};function Goe(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if(n===1&&r==="-"&&t[0]==="-")return t;wSt(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var SSt=Symbol.for("sc-keyframes");function TSt(t){return typeof t=="object"&&t!==null&&SSt in t}var A3e=function(t){return t==null||t===!1||t===""},g3e=function(t){var e=[];for(var n in t){var r=t[n];t.hasOwnProperty(n)&&!A3e(r)&&(Array.isArray(r)&&r.isCss||Ty(r)?e.push("".concat(Goe(n),":"),r,";"):eT(r)?e.push.apply(e,TD(TD(["".concat(n," {")],g3e(r),!1),["}"],!1)):e.push("".concat(Goe(n),": ").concat(bSt(n,r),";")))}return e};function ry(t,e,n,r,i){if(i===void 0&&(i=[]),typeof t=="string")return t&&i.push(t),i;if(A3e(t))return i;if(aY(t))return i.push(".".concat(t.styledComponentId)),i;if(Ty(t)){if(!Ty(s=t)||s.prototype&&s.prototype.isReactComponent||!e)return i.push(t),i;var a=t(e);return ry(a,e,n,r,i)}var s;if(TSt(t))return n?(t.inject(n,r),i.push(t.getName(r))):i.push(t),i;if(eT(t)){for(var o=g3e(t),l=0;l<o.length;l++)i.push(o[l]);return i}if(!Array.isArray(t))return i.push(t.toString()),i;for(l=0;l<t.length;l++)ry(t[l],e,n,r,i);return i}function ESt(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Ty(n)&&!aY(n))return!1}return!0}var MSt=l3e(Wk),CSt=(function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&ESt(e),this.componentId=n,this.baseHash=mv(MSt,n),this.baseStyle=r,m3e.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,n,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Lv(i,this.staticRulesId);
5205else{var a=Voe(ry(this.rules,e,n,r)),s=GH(mv(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,s)){var o=r(a,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,o)}i=Lv(i,s),this.staticRulesId=s}else{for(var l=mv(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")c+=f;else if(f){var h=Voe(ry(f,e,n,r));l=mv(mv(l,String(u)),h),c+=h}}if(c){var p=GH(l>>>0);if(!n.hasNameForId(this.componentId,p)){var A=r(c,".".concat(p),void 0,this.componentId);n.insertRules(this.componentId,p,A)}i=Lv(i,p)}}return{className:i,css:typeof window>"u"?n.getTag().getGroup(Vw(this.componentId)):""}},t})(),NSt=/&/g,Om=47,Av=42;function zoe(t){if(t.indexOf("}")===-1)return!1;for(var e=t.length,n=0,r=0,i=!1,a=0;a<e;a++){var s=t.charCodeAt(a);if(r!==0||i||s!==Om||t.charCodeAt(a+1)!==Av)if(i)s===Av&&t.charCodeAt(a+1)===Om&&(i=!1,a++);else if(s!==34&&s!==39||a!==0&&t.charCodeAt(a-1)===92){if(r===0){if(s===123)n++;else if(s===125&&--n<0)return!0}}else r===0?r=s:r===s&&(r=0);else i=!0,a++}return n!==0||r!==0}function x3e(t,e){return t.map(function(n){return n.type==="rule"&&(n.value="".concat(e," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(e," ")),n.props=n.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=x3e(n.children,e)),n})}function RSt(t){var e,n,r,i=z_,a=i.options,s=a===void 0?z_:a,o=i.plugins,l=o===void 0?iY:o,c=function(A,g,w){return w.startsWith(n)&&w.endsWith(n)&&w.replaceAll(n,"").length>0?".".concat(e):A},u=l.slice();u.push(function(A){A.type===Gk&&A.value.includes("&")&&(r||(r=new RegExp("\\".concat(n,"\\b"),"g")),A.props[0]=A.props[0].replace(NSt,n).replace(r,c))}),s.prefix&&u.push(Ywt),u.push(qwt);var f=[],h=Wwt(u.concat(Zwt(function(A){return f.push(A)}))),p=function(A,g,w,T){g===void 0&&(g=""),w===void 0&&(w=""),T===void 0&&(T="&"),e=T,n=g,r=void 0;var C=(function(D){if(!zoe(D))return D;for(var k=D.length,I="",L=0,O=0,B=0,G=!1,j=0;j<k;j++){var z=D.charCodeAt(j);if(B!==0||G||z!==Om||D.charCodeAt(j+1)!==Av)if(G)z===Av&&D.charCodeAt(j+1)===Om&&(G=!1,j++);else if(z!==34&&z!==39||j!==0&&D.charCodeAt(j-1)===92){if(B===0)if(z===123)O++;else if(z===125){if(--O<0){for(var Q=j+1;Q<k;
5205){var ee=D.charCodeAt(Q);if(ee===59||ee===10)break;Q++}Q<k&&D.charCodeAt(Q)===59&&Q++,O=0,j=Q-1,L=Q;continue}O===0&&(I+=D.substring(L,j+1),L=j+1)}else z===59&&O===0&&(I+=D.substring(L,j+1),L=j+1)}else B===0?B=z:B===z&&(B=0);else G=!0,j++}if(L<k){var Z=D.substring(L);zoe(Z)||(I+=Z)}return I})((function(D){if(D.indexOf("//")===-1)return D;for(var k=D.length,I=[],L=0,O=0,B=0,G=0;O<k;){var j=D.charCodeAt(O);if(j!==34&&j!==39||O!==0&&D.charCodeAt(O-1)===92)if(B===0)if(j===Om&&O+1<k&&D.charCodeAt(O+1)===Av){for(O+=2;O+1<k&&(D.charCodeAt(O)!==Av||D.charCodeAt(O+1)!==Om);)O++;O+=2}else if(j===40&&O>=3&&(32|D.charCodeAt(O-1))==108&&(32|D.charCodeAt(O-2))==114&&(32|D.charCodeAt(O-3))==117)G=1,O++;else if(G>0)j===41?G--:j===40&&G++,O++;else if(j===Av&&O+1<k&&D.charCodeAt(O+1)===Om)O>L&&I.push(D.substring(L,O)),L=O+=2;else if(j===Om&&O+1<k&&D.charCodeAt(O+1)===Om){for(O>L&&I.push(D.substring(L,O));O<k&&D.charCodeAt(O)!==10;)O++;L=O}else O++;else O++;else B===0?B=j:B===j&&(B=0),O++}return L===0?D:(L<k&&I.push(D.substring(L)),I.join(""))})(A)),M=zwt(w||g?"".concat(w," ").concat(g," { ").concat(C," }"):C);return s.namespace&&(M=x3e(M,s.namespace)),f=[],ED(M,h),f};return p.hash=l.length?l.reduce(function(A,g){return g.name||G_(15),mv(A,g.name)},5381).toString():"",p}var DSt=new m3e,PSt=RSt(),v3e=wt.createContext({shouldForwardProp:void 0,styleSheet:DSt,stylis:PSt});v3e.Consumer;wt.createContext(void 0);function $oe(){return wt.useContext(v3e)}var CD=wt.createContext(void 0);CD.Consumer;function kSt(t){var e=wt.useContext(CD),n=wt.useMemo(function(){return(function(r,i){if(!r)throw G_(14);if(Ty(r)){var a=r(i);return a}if(Array.isArray(r)||typeof r!="object")throw G_(8);return i?Yc(Yc({},i),r):r})(t.theme,e)},[t.theme,e]);return t.children?wt.createElement(CD.Provider,{value:n},t.children):null}var aU={};function LSt(t,e,n){var r=aY(t),i=t,a=!rU(t),s=e.attrs,o=s===void 0?iY:s,l=e.componentId,c=l===void 0?(function(D,k){var I=typeof D!="string"?"sc":Ooe(D);aU[I]=(aU[I]||0)+1;var L="".concat(I,"-").concat(nSt(Wk+I+aU[I]));return k?"".concat(k,"-").concat(L):L})(e.displayName,e.parentComponentId):l,u=e.displayName,f=u===void 0?(function(D){return rU(D)?"styled.".concat(D):"Styled(".concat(rSt(D),")")})(t):u,h=e.displayName&&e.componentId?"".concat(Ooe(e.displayName),"-").concat(e.componentId):e.componentId||c,p=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,A=e.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;A=function(D,k){return g(D,k)&&w(D,k)}}else A=g}var T=new CSt(n,h,r?i.componentStyle:void 0);function C(D,k){return(function(I,L,O){var B=I.attrs,G=I.componentStyle,j=I.defaultProps,z=I.foldedComponentIds,Q=I.styledComponentId,ee=I.target,Z=wt.useContext(CD),X=$oe(),K=I.shouldForwardProp||X.shouldForwardProp,se=Kwt(L,Z,j)||z_,ae=(function(Ae,Se,Re){for(var Ne,Fe=Yc(Yc({},Se),{className:void 0,theme:Re}),Qe=0;Qe<Ae.length;Qe+=1){var ge=Ty(Ne=Ae[Qe])?Ne(Fe):Ne;for(var Ie in ge)Ie==="className"?Fe.className=Lv(Fe.className,ge[Ie]):Ie==="style"?Fe.style=Yc(Yc({},Fe.style),ge[Ie]):Ie in Se&&Se[Ie]===void 0||(Fe[Ie]=ge[Ie])}return"className"in Se&&typeof Se.className=="string"&&(Fe.className=Lv(Fe.className,Se.className)),Fe})(B,L,se),J=ae.as||ee,oe={};for(var te in ae)ae[te]===void 0||te[0]==="$"||te==="as"||te==="theme"&&ae.theme===se||(te==="forwardedAs"?oe.as=ae.forwardedAs:K&&!K(te,J)||(oe[te]=ae[te]));var he=(function(Ae,Se){var Re=$oe(),Ne=Ae.generateAndInjectStyles(Se,Re.styleSheet,Re.stylis);return Ne})(G,ae),me=he.className,de=Lv(z,Q);return me&&(de+=" "+me),ae.className&&(de+=" "+ae.className),oe[rU(J)&&!o3e.has(J)?"class":"className"]=de,O&&(oe.ref=O),b.createElement(J,oe)})(M,D,k)}C.displayName=f;var M=wt.forwardRef(C);return M.attrs=p,M.componentStyle=T,M.displayName=f,M.shouldForwardProp=A,M.foldedComponentIds=r?Lv(i.foldedComponentIds,i.styledComponentId):"",M.styledComponentId=h,M.target=r?i.target:t,Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(D){this._foldedDefaultProps=r?(function(k){for(var I=[],L=1;L<arguments.length;L++)I[L-1]=arguments[L];for(var O=0,B=I;O<B.length;O++)zH(k,B[O],!0);return k})({},i.defaultProps,D):D}}
5205),h3e(M,function(){return".".concat(M.styledComponentId)}),a&&d3e(M,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),M}function qoe(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n}var Woe=function(t){return Object.assign(t,{isCss:!0})};function Tl(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Ty(t)||eT(t))return Woe(ry(qoe(iY,TD([t],e,!0))));var r=t;return e.length===0&&r.length===1&&typeof r[0]=="string"?ry(r):Woe(ry(qoe(r,e)))}function qH(t,e,n){if(n===void 0&&(n=z_),!e)throw G_(1,e);var r=function(i){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return t(e,n,Tl.apply(void 0,TD([i],a,!1)))};return r.attrs=function(i){return qH(t,e,Yc(Yc({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return qH(t,e,Yc(Yc({},n),i))},r}var y3e=function(t){return qH(LSt,t)},wi=y3e;o3e.forEach(function(t){wi[t]=y3e(t)});var Lg;function $_(t,e){return t[e]}function OSt(t=[],e,n=0){return[...t.slice(0,n),e,...t.slice(n)]}function FSt(t=[],e,n="id"){const r=t.slice(),i=$_(e,n);return i?r.splice(r.findIndex((a=>$_(a,n)===i)),1):r.splice(r.findIndex((a=>a===e)),1),r}function Zoe(t){return t.map(((e,n)=>{const r=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(r.id=n+1),r}))}function CS(t,e){return Math.ceil(t/e)}function sU(t,e){return Math.min(t,e)}(function(t){t.ASC="asc",t.DESC="desc"})(Lg||(Lg={}));const dl=()=>null;function _3e(t,e=[],n=[]){let r={},i=[...n];return e.length&&e.forEach((a=>{if(!a.when||typeof a.when!="function")throw new Error('"when" must be defined in the conditional style object and must be function');a.when(t)&&(r=a.style||{},a.classNames&&(i=[...i,...a.classNames]),typeof a.style=="function"&&(r=a.style(t)||{}))})),{conditionalStyle:r,classNames:i.join(" ")}}function hN(t,e=[],n="id"){const r=$_(t,n);return r?e.some((i=>$_(i,n)===r)):e.some((i=>i===t))}function GC(t,e){return e?t.findIndex((n=>NS(n.id,e))):-1}function NS(t,e){return t==e}function ISt(t,e){const n=!t.toggleOnSelectedRowsChange;switch(e.type){case"SELECT_ALL_ROWS":{const{keyField:r,rows:i,rowCount:a,mergeSelections:s}=e,o=!t.allSelected,l=!t.toggleOnSelectedRowsChange;if(s){const c=o?[...t.selectedRows,...i.filter((u=>!hN(u,t.selectedRows,r)))]:t.selectedRows.filter((u=>!hN(u,i,r)));return Object.assign(Object.assign({},t),{allSelected:o,selectedCount:c.length,selectedRows:c,toggleOnSelectedRowsChange:l})}return Object.assign(Object.assign({},t),{allSelected:o,selectedCount:o?a:0,selectedRows:o?i:[],toggleOnSelectedRowsChange:l})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:i,isSelected:a,rowCount:s,singleSelect:o}=e;return o?a?Object.assign(Object.assign({},t),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:1,allSelected:!1,selectedRows:[i],toggleOnSelectedRowsChange:n}):a?Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length>0?t.selectedRows.length-1:0,allSelected:!1,selectedRows:FSt(t.selectedRows,i,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length+1,allSelected:t.selectedRows.length+1===s,selectedRows:OSt(t.selectedRows,i),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:i,totalRows:a,mergeSelections:s}=e;if(s){const o=[...t.selectedRows,...i.filter((l=>!hN(l,t.selectedRows,r)))];return Object.assign(Object.assign({},t),{selectedCount:o.length,allSelected:!1,selectedRows:o,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},t),{selectedCount:i.length,allSelected:i.length===a,selectedRows:i,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:r}=e;return Object.assign(Object.assign({},t),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:r})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:i,clearSelectedOnSort:a}=e;return Object.assign(Object.assign(Object.assign({},t),{selectedColumn:i,sortDirection:r,currentPage:1}),a&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:i,visibleOnly:a,persistSelectedOnPageChange:s}=e,o=i&&s,l=i&&!s||a;return Object.assign(Object.assign(Object.assign(Object.assign({},t),{currentPage:r}),o&&{allSelected:!1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:r,page:i}=e;return Object.assign(Object.assign({},t),{currentPage:i,rowsPerPage:r})}}}const BSt=Tl` 5206 pointer-events: none; 5207 opacity: 0.4; 5208`,USt=wi.div` 5209 position: relative; 5210 box-sizing: border-box; 5211 display: flex; 5212 flex-direction: column; 5213 width: 100%; 5214 height: 100%; 5215 max-width: 100%; 5216 ${({disabled:t})=>t&&BSt}; 5217 ${({theme:t})=>t.table.style}; 5218`,VSt=Tl` 5219 position: sticky; 5220 position: -webkit-sticky; /* Safari */ 5221 top: 0; 5222 z-index: 1; 5223`,jSt=wi.div` 5224 display: flex; 5225 width: 100%; 5226 ${({$fixedHeader:t})=>t&&VSt}; 5227 ${({theme:t})=>t.head.style}; 5228`,HSt=wi.div` 5229 display: flex; 5230 align-items: stretch; 5231 width: 100%; 5232 ${({theme:t})=>t.headRow.style}; 5233 ${({$dense:t,theme:e})=>t&&e.headRow.denseStyle}; 5234`,b3e=(t,...e)=>Tl` 5235 @media screen and (max-width: ${599}px) { 5236 ${Tl(t,...e)} 5237 } 5238 `,GSt=(t,...e)=>Tl` 5239 @media screen and (max-width: ${959}px) { 5240 ${Tl(t,...e)} 5241 } 5242 `,zSt=(t,...e)=>Tl` 5243 @media screen and (max-width: ${1280}px) { 5244 ${Tl(t,...e)} 5245 } 5246 `,$St=t=>(e,...n)=>Tl` 5247 @media screen and (max-width: ${t}px) { 5248 ${Tl(e,...n)} 5249 } 5250 `,E6=wi.div` 5251 position: relative;
5252 display: flex; 5253 align-items: center; 5254 box-sizing: border-box; 5255 line-height: normal; 5256 ${({theme:t,$headCell:e})=>t[e?"headCells":"cells"].style}; 5257 ${({$noPadding:t})=>t&&"padding: 0"}; 5258`,w3e=wi(E6)` 5259 flex-grow: ${({button:t,grow:e})=>e===0||t?0:e||1}; 5260 flex-shrink: 0; 5261 flex-basis: 0; 5262 max-width: ${({maxWidth:t})=>t||"100%"}; 5263 min-width: ${({minWidth:t})=>t||"100px"}; 5264 ${({width:t})=>t&&Tl` 5265 min-width: ${t}; 5266 max-width: ${t}; 5267 `}; 5268 ${({right:t})=>t&&"justify-content: flex-end"}; 5269 ${({button:t,center:e})=>(e||t)&&"justify-content: center"}; 5270 ${({compact:t,button:e})=>(t||e)&&"padding: 0"}; 5271 5272 /* handle hiding cells */ 5273 ${({hide:t})=>t&&t==="sm"&&b3e` 5274 display: none; 5275 `}; 5276 ${({hide:t})=>t&&t==="md"&&GSt` 5277 display: none; 5278 `}; 5279 ${({hide:t})=>t&&t==="lg"&&zSt` 5280 display: none; 5281 `}; 5282 ${({hide:t})=>t&&Number.isInteger(t)&&$St(t)` 5283 display: none; 5284 `}; 5285`,qSt=Tl` 5286 div:first-child { 5287 white-space: ${({$wrapCell:t})=>t?"normal":"nowrap"}; 5288 overflow: ${({$allowOverflow:t})=>t?"visible":"hidden"}; 5289 text-overflow: ellipsis; 5290 } 5291`,WSt=wi(w3e).attrs((t=>({style:t.style})))` 5292 ${({$renderAsCell:t})=>!t&&qSt}; 5293 ${({theme:t,$isDragging:e})=>e&&t.cells.draggingStyle}; 5294 ${({$cellStyle:t})=>t}; 5295`;var ZSt=b.memo((function({id:t,column:e,row:n,rowIndex:r,dataTag:i,isDragging:a,onDragStart:s,onDragOver:o,onDragEnd:l,onDragEnter:c,onDragLeave:u}){const{conditionalStyle:f,classNames:h}=_3e(n,e.conditionalCellStyles,["rdt_TableCell"]);return b.createElement(WSt,{id:t,"data-column-id":e.id,role:"cell",className:h,"data-tag":i,$cellStyle:e.style,$renderAsCell:!!e.cell,$allowOverflow:e.allowOverflow,button:e.button,center:e.center,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,width:e.width,$wrapCell:e.wrap,style:f,$isDragging:a,onDragStart:s,onDragOver:o,onDragEnd:l,onDragEnter:c,onDragLeave:u},!e.cell&&b.createElement("div",{"data-tag":i},(function(p,A,g,w){return A?g&&typeof g=="function"?g(p,w):A(p,w):null})(n,e.selector,e.format,r)),e.cell&&e.cell(n,r,e,t))}));const Yoe="input";var S3e=b.memo((function({name:t,component:e=Yoe,componentOptions:n={style:{}},indeterminate:r=!1,checked:i=!1,disabled:a=!1,onClick:s=dl}){const o=e,l=o!==Yoe?n.style:(u=>Object.assign(Object.assign({fontSize:"18px"},!u&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(a),c=b.useMemo((()=>(function(u,...f){let h;return Object.keys(u).map((p=>u[p])).forEach(((p,A)=>{typeof p=="function"&&(h=Object.assign(Object.assign({},u),{[Object.keys(u)[A]]:p(...f)}))})),h||u})(n,r)),[n,r]);return b.createElement(o,Object.assign({type:"checkbox",ref:u=>{u&&(u.indeterminate=r)},style:l,onClick:a?dl:s,name:t,"aria-label":t,checked:i,disabled:a},c,{onChange:dl}))}));const YSt=wi(E6)` 5296 flex: 0 0 48px; 5297 min-width: 48px; 5298 justify-content: center; 5299 align-items: center; 5300 user-select: none; 5301 white-space: nowrap; 5302`;function XSt({name:t,keyField:e,row:n,rowCount:r,selected:i,selectableRowsComponent:a,selectableRowsComponentProps:s,selectableRowsSingle:o,selectableRowDisabled:l,onSelectedRow:c}){const u=!(!l||!l(n));return b.createElement(YSt,{onClick:f=>f.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},b.createElement(S3e,{name:t,component:a,componentOptions:s,checked:i,"aria-checked":i,onClick:()=>{c({type:"SELECT_SINGLE_ROW",row:n,isSelected:i,keyField:e,rowCount:r,singleSelect:o})},disabled:u}))}const QSt=wi.button` 5303 display: inline-flex; 5304 align-items: center; 5305 user-select: none; 5306 white-space: nowrap; 5307 border: none; 5308 background-color: transparent; 5309 ${({theme:t})=>t.expanderButton.style}; 5310`;function KSt({disabled:t=!1,expanded:e=!1,expandableIcon:n,id:r,row:i,onToggled:a}){const s=e?n.expanded:n.collapsed;return b.createElement(QSt,{"aria-disabled":t,onClick:()=>a&&a(i),"data-testid":`expander-button-${r}`,disabled:t,"aria-label":e?"Collapse Row":"Expand Row",role:"button",type:"button"},s)}const JSt=wi(E6)` 5311 white-space: nowrap; 5312 font-weight: 400; 5313 min-width: 48px; 5314 ${({theme:t})=>t.expanderCell.style}; 5315`;function e5t({row:t,expanded:e=!1,expandableIcon:n,id:r,onToggled:i,disabled:a=!1}){return b.createElement(JSt,{onClick:s=>s.stopPropagation(),$noPadding:!0},b.createElement(KSt,{id:r,row:t,expanded:e,expandableIcon:n,disabled:a,onToggled:i}))}const t5t=wi.div` 5316 width: 100%; 5317 box-sizing: border-box; 5318 ${({theme:t})=>t.expanderRow.style}; 5319 ${({$extendedRowStyle:t})=>t}; 5320`;var n5t=b.memo((function({data:t,ExpanderComponent:e,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:i}){const a=["rdt_ExpanderRow",...i.split(" ").filter((s=>s!=="rdt_TableRow"))].join(" ");return b.createElement(t5t,{className:a,$extendedRowStyle:r},b.createElement(e,Object.assign({data:t},n)))}));const oU="allowRowEvents";var ND,WH,Xoe;(function(t){t.LTR="ltr",t.RTL="rtl",t.AUTO="auto"})(ND||(ND={})),(function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center"})(WH||(WH={})),(function(t){t.SM="sm",t.MD="md",t.LG="lg"})(Xoe||(Xoe={}));const r5t=Tl` 5321 &:hover { 5322 ${({$highlightOnHover:t,theme:e})=>t&&e.rows.highlightOnHoverStyle}; 5323 } 5324`,i5t=Tl` 5325 &:hover { 5326 cursor: pointer; 5327 } 5328`,a5t=wi.div.attrs((t=>({style:t.style})))` 5329 display: flex; 5330 align-items: stretch; 5331 align-content: stretch; 5332 width: 100%; 5333 box-sizing: border-box; 5334 ${({theme:t})=>t.rows.style}; 5335 ${({$dense:t,theme:e})=>t&&e.rows.denseStyle}; 5336 ${({$striped:t,theme:e})=>t&&e.rows.stripedStyle}; 5337 ${({$highlightOnHover:t})=>t&&r5t}; 5338 ${({$pointerOnHover:t})=>t&&i5t}; 5339 ${({$selected:t,theme:e})=>t&&e.rows.selectedHighlightStyle}; 5340 ${({$conditionalStyle:t})=>t}; 5341`;function s5t({columns:t=[],conditionalRowStyles:e=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:i=!1,expandableIcon:a,expandableRows:s=!1,expandableRowsComponent:o,expandableRowsComponentProps:l,expandableRowsHideExpander:c,exp
5341andOnRowClicked:u=!1,expandOnRowDoubleClicked:f=!1,highlightOnHover:h=!1,id:p,expandableInheritConditionalStyles:A,keyField:g,onRowClicked:w=dl,onRowDoubleClicked:T=dl,onRowMouseEnter:C=dl,onRowMouseLeave:M=dl,onRowExpandToggled:D=dl,onSelectedRow:k=dl,pointerOnHover:I=!1,row:L,rowCount:O,rowIndex:B,selectableRowDisabled:G=null,selectableRows:j=!1,selectableRowsComponent:z,selectableRowsComponentProps:Q,selectableRowsHighlight:ee=!1,selectableRowsSingle:Z=!1,selected:X,striped:K=!1,draggingColumnId:se,onDragStart:ae,onDragOver:J,onDragEnd:oe,onDragEnter:te,onDragLeave:he}){const[me,de]=b.useState(n);b.useEffect((()=>{de(n)}),[n]);const Ae=b.useCallback((()=>{de(!me),D(!me,L)}),[me,D,L]),Se=I||s&&(u||f),Re=b.useCallback((lt=>{lt.target.getAttribute("data-tag")===oU&&(w(L,lt),!r&&s&&u&&Ae())}),[r,u,s,Ae,w,L]),Ne=b.useCallback((lt=>{lt.target.getAttribute("data-tag")===oU&&(T(L,lt),!r&&s&&f&&Ae())}),[r,f,s,Ae,T,L]),Fe=b.useCallback((lt=>{C(L,lt)}),[C,L]),Qe=b.useCallback((lt=>{M(L,lt)}),[M,L]),ge=$_(L,g),{conditionalStyle:Ie,classNames:De}=_3e(L,e,["rdt_TableRow"]),Xe=ee&&X,Ye=A?Ie:{},Me=K&&B%2==0;return b.createElement(b.Fragment,null,b.createElement(a5t,{id:`row-${p}`,role:"row",$striped:Me,$highlightOnHover:h,$pointerOnHover:!r&&Se,$dense:i,onClick:Re,onDoubleClick:Ne,onMouseEnter:Fe,onMouseLeave:Qe,className:De,$selected:Xe,$conditionalStyle:Ie},j&&b.createElement(XSt,{name:`select-row-${ge}`,keyField:g,row:L,rowCount:O,selected:X,selectableRowsComponent:z,selectableRowsComponentProps:Q,selectableRowDisabled:G,selectableRowsSingle:Z,onSelectedRow:k}),s&&!c&&b.createElement(e5t,{id:ge,expandableIcon:a,expanded:me,row:L,onToggled:Ae,disabled:r}),t.map((lt=>lt.omit?null:b.createElement(ZSt,{id:`cell-${lt.id}-${ge}`,key:`cell-${lt.id}-${ge}`,dataTag:lt.ignoreRowClick||lt.button?null:oU,column:lt,row:L,rowIndex:B,isDragging:NS(se,lt.id),onDragStart:ae,onDragOver:J,onDragEnd:oe,onDragEnter:te,onDragLeave:he})))),s&&me&&b.createElement(n5t,{key:`expander-${ge}`,data:L,extendedRowStyle:Ye,extendedClassNames:De,ExpanderComponent:o,expanderComponentProps:l}))}const o5t=wi.span` 5342 padding: 2px; 5343 color: inherit; 5344 flex-grow: 0; 5345 flex-shrink: 0; 5346 ${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"}; 5347 ${({$sortDirection:t})=>t==="desc"&&"transform: rotate(180deg)"}; 5348`,l5t=({sortActive:t,sortDirection:e})=>wt.createElement(o5t,{$sortActive:t,$sortDirection:e},"â²"),c5t=wi(w3e)` 5349 ${({button:t})=>t&&"text-align: center"}; 5350 ${({theme:t,$isDragging:e})=>e&&t.headCells.draggingStyle}; 5351`,u5t=Tl` 5352 cursor: pointer; 5353 span.__rdt_custom_sort_icon__ { 5354 i, 5355 svg { 5356 transform: 'translate3d(0, 0, 0)'; 5357 ${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"}; 5358 color: inherit; 5359 font-size: 18px; 5360 height: 18px; 5361 width: 18px; 5362 backface-visibility: hidden; 5363 transform-style: preserve-3d; 5364 transition-duration: 95ms; 5365 transition-property: transform; 5366 } 5367 5368 &.asc i, 5369 &.asc svg { 5370 transform: rotate(180deg); 5371 } 5372 } 5373 5374 ${({$sortActive:t})=>!t&&Tl` 5375 &:hover, 5376 &:focus { 5377 opacity: 0.7; 5378 5379 span, 5380 span.__rdt_custom_sort_icon__ * { 5381 opacity: 0.7; 5382 } 5383 } 5384 `}; 5385`,f5t=wi.div` 5386 display: inline-flex; 5387 align-items: center; 5388 justify-content: inherit; 5389 height: 100%; 5390 width: 100%; 5391 outline: none; 5392 user-select: none; 5393 overflow: hidden; 5394 ${({disabled:t})=>!t&&u5t}; 5395`,d5t=wi.div` 5396 overflow: hidden; 5397 white-space: nowrap; 5398 text-overflow: ellipsis; 5399`;var h5t=b.memo((function({column:t,disabled:e,draggingColumnId:n,selectedColumn:r={},sortDirection:i,sortIcon:a,sortServer:s,pagination:o,paginationServer:l,persistSelectedOnSort:c,selectableRowsVisibleOnly:u,onSort:f,onDragStart:h,onDragOver:p,onDragEnd:A,onDragEnter:g,onDragLeave:w}){b.useEffect((()=>{typeof t.selector=="string"&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[T,C]=b.useState(!1),M=b.useRef(null);if(b.useEffect((()=>{M.current&&C(M.current.scrollWidth>M.current.clientWidth)}),[T]),t.omit)return null;const D=()=>{if(!t.sortable&&!t.selector)return;let Q=i;NS(r.id,t.id)&&(Q=i===Lg.ASC?Lg.DESC:Lg.ASC),f({type:"SORT_CHANGE",sortDirection:Q,selectedColumn:t,clearSelectedOnSort:o&&l&&!c||s||u})},k=Q=>b.createElement(l5t,{sortActive:Q,sortDirection:i}),I=()=>b.createElement("span",{className:[i,"__rdt_custom_sort_icon__"].join(" ")},a),L=!(!t.sortable||!NS(r.id,t.id)),O=!t.sortable||e,B=t.sortable&&!a&&!t.right,G=t.sortable&&!a&&t.right,j=t.sortable&&a&&!t.right,z=t.sortable&&a&&t.right;return b.createElement(c5t,{"data-column-id":t.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,$isDragging:NS(t.id,n),onDragStart:h,onDragOver:p,onDragEnd:A,onDragEnter:g,onDragLeave:w},t.name&&b.createElement(f5t,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:O?void 0:D,onKeyPress:O?void 0:Q=>{Q.key==="Enter"&&D()},$sortActive:!O&&L,disabled:O},!O&&z&&I(),!O&&G&&k(L),typeof t.name=="string"?b.createElement(d5t,{title:T?t.name:void 0,ref:M,"data-column-id":t.id},t.name):t.name,!O&&j&&I(),!O&&B&&k(L)))}));const p5t=wi(E6)` 5400 flex: 0 0 48px; 5401 justify-content: center; 5402 align-items: center; 5403 user-select: none; 5404 white-space: nowrap; 5405 font-size: unset; 5406`;function m5t({headCell:t=!0,rowData:e,keyField:n,allSelected:r,mergeSelections:i,selectedRows:a,selectableRowsComponent:s,selectableRowsComponentProps:o,selectableRowDisabled:l,onSelectAllRows:c}){const u=a.length>0&&!r,f=l?e.filter((A=>!l(A))):e,h=f.length===0,p=Math.min(e.length,f.length);return b.createElement(p5t,{className:"rdt_TableCol",$headCell:t,$noPadding:!0},b.createElement(S3e,{name:"select-all-rows",component:s,componentOptions:o,onClick:()=>{c({type:"SELECT_ALL_ROWS",rows:f,rowCount:p,mergeSelections:i,keyField:n})},checked:r,indeterminate:u,disabled:h}))}function T3e(t=ND.AUTO){const e=typeof window=="object",[n,r]=b.useState(!1);return b.useEffect((()=>
5406{if(e)if(t!=="auto")r(t==="rtl");else{const i=!(!window.document||!window.document.createElement),a=document.getElementsByTagName("BODY")[0],s=document.getElementsByTagName("HTML")[0],o=a.dir==="rtl"||s.dir==="rtl";r(i&&o)}}),[t,e]),n}const A5t=wi.div` 5407 display: flex; 5408 align-items: center; 5409 flex: 1 0 auto; 5410 height: 100%; 5411 color: ${({theme:t})=>t.contextMenu.fontColor}; 5412 font-size: ${({theme:t})=>t.contextMenu.fontSize}; 5413 font-weight: 400; 5414`,g5t=wi.div` 5415 display: flex; 5416 align-items: center; 5417 justify-content: flex-end; 5418 flex-wrap: wrap; 5419`,Qoe=wi.div` 5420 position: absolute; 5421 top: 0; 5422 left: 0; 5423 width: 100%; 5424 height: 100%; 5425 box-sizing: inherit; 5426 z-index: 1; 5427 align-items: center; 5428 justify-content: space-between; 5429 display: flex; 5430 ${({$rtl:t})=>t&&"direction: rtl"}; 5431 ${({theme:t})=>t.contextMenu.style}; 5432 ${({theme:t,$visible:e})=>e&&t.contextMenu.activeStyle}; 5433`;function x5t({contextMessage:t,contextActions:e,contextComponent:n,selectedCount:r,direction:i}){const a=T3e(i),s=r>0;return n?b.createElement(Qoe,{$visible:s},b.cloneElement(n,{selectedCount:r})):b.createElement(Qoe,{$visible:s,$rtl:a},b.createElement(A5t,null,((o,l,c)=>{if(l===0)return null;const u=l===1?o.singular:o.plural;return c?`${l} ${o.message||""} ${u}`:`${l} ${u} ${o.message||""}`})(t,r,a)),b.createElement(g5t,null,e))}const v5t=wi.div` 5434 position: relative; 5435 box-sizing: border-box; 5436 overflow: hidden; 5437 display: flex; 5438 flex: 1 1 auto; 5439 align-items: center; 5440 justify-content: space-between; 5441 width: 100%; 5442 flex-wrap: wrap; 5443 ${({theme:t})=>t.header.style} 5444`,y5t=wi.div` 5445 flex: 1 0 auto; 5446 color: ${({theme:t})=>t.header.fontColor}; 5447 font-size: ${({theme:t})=>t.header.fontSize}; 5448 font-weight: 400; 5449`,_5t=wi.div` 5450 flex: 1 0 auto; 5451 display: flex; 5452 align-items: center; 5453 justify-content: flex-end; 5454 5455 > * { 5456 margin-left: 5px; 5457 } 5458`,b5t=({title:t,actions:e=null,contextMessage:n,contextActions:r,contextComponent:i,selectedCount:a,direction:s,showMenu:o=!0})=>b.createElement(v5t,{className:"rdt_TableHeader",role:"heading","aria-level":1},b.createElement(y5t,null,t),e&&b.createElement(_5t,null,e),o&&b.createElement(x5t,{contextMessage:n,contextActions:r,contextComponent:i,direction:s,selectedCount:a}));function E3e(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"){var i=0;for(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}const w5t={left:"flex-start",right:"flex-end",center:"center"},S5t=wi.header` 5459 position: relative; 5460 display: flex; 5461 flex: 1 1 auto; 5462 box-sizing: border-box; 5463 align-items: center; 5464 padding: 4px 16px 4px 24px; 5465 width: 100%; 5466 justify-content: ${({align:t})=>w5t[t]}; 5467 flex-wrap: ${({$wrapContent:t})=>t?"wrap":"nowrap"}; 5468 ${({theme:t})=>t.subHeader.style} 5469`,T5t=t=>{var{align:e="right",wrapContent:n=!0}=t,r=E3e(t,["align","wrapContent"]);return b.createElement(S5t,Object.assign({align:e,$wrapContent:n},r))},E5t=wi.div` 5470 display: flex; 5471 flex-direction: column; 5472`,M5t=wi.div` 5473 position: relative; 5474 width: 100%; 5475 border-radius: inherit; 5476 ${({$responsive:t,$fixedHeader:e})=>t&&Tl` 5477 overflow-x: auto; 5478 5479 // hidden prevents vertical scrolling in firefox when fixedHeader is disabled 5480 overflow-y: ${e?"auto":"hidden"}; 5481 min-height: 0; 5482 `}; 5483 5484 ${({$fixedHeader:t=!1,$fixedHeaderScrollHeight:e="100vh"})=>t&&Tl` 5485 max-height: ${e}; 5486 -webkit-overflow-scrolling: touch; 5487 `}; 5488 5489 ${({theme:t})=>t.responsiveWrapper.style}; 5490`,Koe=wi.div` 5491 position: relative; 5492 box-sizing: border-box; 5493 width: 100%; 5494 height: 100%; 5495 ${t=>t.theme.progress.style}; 5496`,C5t=wi.div` 5497 position: relative; 5498 width: 100%; 5499 ${({theme:t})=>t.tableWrapper.style}; 5500`,N5t=wi(E6)` 5501 white-space: nowrap; 5502 ${({theme:t})=>t.expanderCell.style}; 5503`,R5t=wi.div` 5504 box-sizing: border-box; 5505 width: 100%; 5506 height: 100%; 5507 ${({theme:t})=>t.noData.style}; 5508`,D5t=()=>wt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},wt.createElement("path",{d:"M7 10l5 5 5-5z"}),wt.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),P5t=wi.select` 5509 cursor: pointer; 5510 height: 24px; 5511 max-width: 100%; 5512 user-select: none; 5513 padding-left: 8px; 5514 padding-right: 24px; 5515 box-sizing: content-box; 5516 font-size: inherit; 5517 color: inherit; 5518 border: none; 5519 background-color: transparent; 5520 appearance: none; 5521 direction: ltr; 5522 flex-shrink: 0; 5523 5524 &::-ms-expand { 5525 display: none; 5526 } 5527 5528 &:disabled::-ms-expand { 5529 background: #f60; 5530 } 5531 5532 option { 5533 color: initial; 5534 } 5535`,k5t=wi.div` 5536 position: relative; 5537 flex-shrink: 0; 5538 font-size: inherit; 5539 color: inherit;
5540 margin-top: 1px; 5541 5542 svg { 5543 top: 0; 5544 right: 0; 5545 color: inherit; 5546 position: absolute; 5547 fill: currentColor; 5548 width: 24px; 5549 height: 24px; 5550 display: inline-block; 5551 user-select: none; 5552 pointer-events: none; 5553 } 5554`,L5t=t=>{var{defaultValue:e,onChange:n}=t,r=E3e(t,["defaultValue","onChange"]);return b.createElement(k5t,null,b.createElement(P5t,Object.assign({onChange:n,defaultValue:e},r)),b.createElement(D5t,null))},Nn={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return wt.createElement("div",null,"To add an expander pass in a component instance via ",wt.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:wt.createElement((()=>wt.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},wt.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),wt.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:wt.createElement((()=>wt.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},wt.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),wt.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:wt.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:wt.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:WH.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:wt.createElement((()=>wt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},wt.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),wt.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:wt.createElement((()=>wt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},wt.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),wt.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:wt.createElement((()=>wt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},wt.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),wt.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:wt.createElement((()=>wt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},wt.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),wt.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{}
5554,direction:ND.AUTO,onChangePage:dl,onChangeRowsPerPage:dl,onRowClicked:dl,onRowDoubleClicked:dl,onRowMouseEnter:dl,onRowMouseLeave:dl,onRowExpandToggled:dl,onSelectedRowsChange:dl,onSort:dl,onColumnOrderChange:dl},O5t={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},F5t=wi.nav` 5555 display: flex; 5556 flex: 1 1 auto; 5557 justify-content: flex-end; 5558 align-items: center; 5559 box-sizing: border-box; 5560 padding-right: 8px; 5561 padding-left: 8px; 5562 width: 100%; 5563 ${({theme:t})=>t.pagination.style}; 5564`,zC=wi.button` 5565 position: relative; 5566 display: block; 5567 user-select: none; 5568 border: none; 5569 ${({theme:t})=>t.pagination.pageButtonsStyle}; 5570 ${({$isRTL:t})=>t&&"transform: scale(-1, -1)"}; 5571`,I5t=wi.div` 5572 display: flex; 5573 align-items: center; 5574 border-radius: 4px; 5575 white-space: nowrap; 5576 ${b3e` 5577 width: 100%; 5578 justify-content: space-around; 5579 `}; 5580`,M3e=wi.span` 5581 flex-shrink: 1; 5582 user-select: none; 5583`,B5t=wi(M3e)` 5584 margin: 0 24px; 5585`,U5t=wi(M3e)` 5586 margin: 0 4px; 5587`;var V5t=b.memo((function({rowsPerPage:t,rowCount:e,currentPage:n,direction:r=Nn.direction,paginationRowsPerPageOptions:i=Nn.paginationRowsPerPageOptions,paginationIconLastPage:a=Nn.paginationIconLastPage,paginationIconFirstPage:s=Nn.paginationIconFirstPage,paginationIconNext:o=Nn.paginationIconNext,paginationIconPrevious:l=Nn.paginationIconPrevious,paginationComponentOptions:c=Nn.paginationComponentOptions,onChangeRowsPerPage:u=Nn.onChangeRowsPerPage,onChangePage:f=Nn.onChangePage}){const h=(()=>{const Q=typeof window=="object";function ee(){return{width:Q?window.innerWidth:void 0,height:Q?window.innerHeight:void 0}}const[Z,X]=b.useState(ee);return b.useEffect((()=>{if(!Q)return()=>null;function K(){X(ee())}return window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),Z})(),p=T3e(r),A=h.width&&h.width>599,g=CS(e,t),w=n*t,T=w-t+1,C=n===1,M=n===g,D=Object.assign(Object.assign({},O5t),c),k=n===g?`${T}-${e} ${D.rangeSeparatorText} ${e}`:`${T}-${w} ${D.rangeSeparatorText} ${e}`,I=b.useCallback((()=>f(n-1)),[n,f]),L=b.useCallback((()=>f(n+1)),[n,f]),O=b.useCallback((()=>f(1)),[f]),B=b.useCallback((()=>f(CS(e,t))),[f,e,t]),G=b.useCallback((Q=>u(Number(Q.target.value),n)),[n,u]),j=i.map((Q=>b.createElement("option",{key:Q,value:Q},Q)));D.selectAllRowsItem&&j.push(b.createElement("option",{key:-1,value:e},D.selectAllRowsItemText));const z=b.createElement(L5t,{onChange:G,defaultValue:t,"aria-label":D.rowsPerPageText},j);return b.createElement(F5t,{className:"rdt_Pagination"},!D.noRowsPerPage&&A&&b.createElement(b.Fragment,null,b.createElement(U5t,null,D.rowsPerPageText),z),A&&b.createElement(B5t,null,k),b.createElement(I5t,null,b.createElement(zC,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":C,onClick:O,disabled:C,$isRTL:p},s),b.createElement(zC,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":C,onClick:I,disabled:C,$isRTL:p},l),!D.noRowsPerPage&&!A&&z,b.createElement(zC,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":M,onClick:L,disabled:M,$isRTL:p},o),b.createElement(zC,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":M,onClick:B,disabled:M,$isRTL:p},a)))}));const cv=(t,e)=>{const n=b.useRef(!0);b.useEffect((()=>{n.current?n.current=!1:t()}),e)};function j5t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H5t=function(t){return(function(e){return!!e&&typeof e=="object"})(t)&&!(function(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||(function(r){return r.$$typeof===G5t})(e)})(t)},G5t=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function tT(t,e){return e.clone!==!1&&e.isMergeableObject(t)?q_((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function z5t(t,e,n){return t.concat(e).map((function(r){return tT(r,n)}))}function Joe(t){return Object.keys(t).concat((function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(n){return Object.propertyIsEnumerable.call(e,n)})):[]})(t))}function ele(t,e){try{return e in t}catch{return!1}}function $5t(t,e,n){var r={};return n.isMergeableObject(t)&&Joe(t).forEach((function(i){r[i]=tT(t[i],n)})),Joe(e).forEach((function(i){(function(a,s){return ele(a,s)&&!(Object.hasOwnProperty.call(a,s)&&Object.propertyIsEnumerable.call(a,s))})(t,i)||(ele(t,i)&&n.isMergeableObject(e[i])?r[i]=(function(a,s){if(!s.customMerge)return q_;var o=s.customMerge(a);return typeof o=="function"?o:q_})(i,n)(t[i],e[i],n):r[i]=tT(e[i],n))})),r}function q_(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||z5t,n.isMergeableObject=n.isMergeableObject||H5t,n.cloneUnlessOtherwiseSpecified=tT;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):$5t(t,e,n):tT(e,n)}q_.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(n,r){return q_(n,r,e)}),{})};var ZH=j5t(q_);const tle={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},VA={default:tle,light:tle,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function sY(t="default",e,n="default"){return VA[t]||(VA[t]=ZH(VA[n],e||{})),VA[t]=ZH(VA[t],e||{}),VA[t]}function q5t(t,e,n,r){const[i,a]=b.useState((()=>Zoe(t))),[s,o]=b.useState(""),l=b.useRef("");cv((()=>{a(Zoe(t))}),[t]);const c=b.useCallback((w=>{var T,C,M;const{attributes:D}=w.target,k=(T=D.getNamedItem("data-column-id"))===null||T===void 0?void 0:T.value;k&&(l.current=((M=(C=i[GC(i,k)])===null||C===void 0?void 0:C.id)===null||M===void 0?void 0:M.toString())||"",o(l.current))}),[i]),u=b.useCallback((w=>{var T;const{attributes:C}=w.target,M=(T=C.getNamedItem("data-column-id"))===null||T===void 0?void 0:T.value;if(M&&l.current&&M!==l.current){const D=GC(i,l.current),k=GC(i,M),I=[...i];I[D]=i[k],I[k]=i[D],a(I),e(I)}}),[e,i]),f=b.useCallback((w=>{w.preventDefault()}),[]),h=b.useCallback((w=>{w.preventDefault()}),[]),p=b.useCallback((w=>{w.preventDefault(),l.current="",o("")}),[]),A=(function(w=!1){return w?Lg.ASC:Lg.DESC})(r),g=b.useMemo((()=>i[GC(i,n?.toString())]||{}),[n,i]);return{tableColumns:i,draggingColumnId:s,handleDragStart:c,handleDragEnter:u,handleDragOver:f,handleDragLeave:h,handleDragEnd:p,defaultSortDirection:A,defaultSortColumn:g}}var oY=b.memo((function(t){const{data:e=Nn.data,columns:n=Nn.columns,title:r=Nn.title,actions:i=Nn.actions,keyField:a=Nn.keyField,striped:s=Nn.striped,highlightOnHover:o=Nn.highlightOnHover,pointerOnHover:l=Nn.pointerOnHover,dense:c=Nn.dense,selectableRows:u=Nn.selectableRows,selectableRowsSingle:f=Nn.selectableRowsSingle,selectableRowsHighlight:h=Nn.selectableRowsHighlight,selectableRowsNoSelectAll:p=Nn.selectableRowsNoSelectAll,selectableRowsVisibleOnly:A=Nn.selectableRowsVisibleOnly,selectableRowSelected:g=Nn.selectableRowSelected,selectableRowDisabled:w=Nn.selectableRowDisabled,selectableRowsComponent:T=Nn.selectableRowsComponent,selectableRowsComponentProps:C=Nn.selectableRowsComponentProps,onRowExpandToggled:M=Nn.onRowExpandToggled,onSelectedRowsChange:D=Nn.onSelectedRowsChange,expandableIcon:k=Nn.expandableIcon,onChangeRowsPerPage:I=Nn.onChangeRowsPerPage,onChangePage:L=Nn.onChangePage,paginationServer:O=Nn.paginationServer,paginationServerOptions:B=Nn.paginationServerOptions,paginationTotalRows:G=Nn.paginationTotalRows,paginationDefaultPage:j=Nn.paginationDefaultPage,paginationResetDefaultPage:z=Nn.paginationResetDefaultPage,paginationPerPage:Q=Nn.paginationPerPage,paginationRowsPerPageOptions:ee=Nn.paginationRowsPerPageOptions,paginationIconLastPage:Z=Nn.paginationIconLastPage,paginationIconFirstPage:X=Nn.paginationIconFirstPage,paginationIconNext:K=Nn.paginationIconNext,paginationIconPrevious:se=Nn.paginationIconPrevious,paginationComponent:ae=Nn.paginationComponent,paginationComponentOptions:J=Nn.paginationComponentOptions,responsive:oe=Nn.responsive,progressPending:te=Nn.progressPending,progressComponent:he=Nn.progressComponent,persistTableHead:me=Nn.persistTableHead,noDataComponent:de=Nn.noDataComponent,disabled:Ae=Nn.disabled,noTableHead:Se=Nn.noTableHead,noHeader:Re=Nn.noHeader,fixedHeader:Ne=Nn.fixedHeader,fixedHeaderScrollHeight:Fe=Nn.fixedHeaderScrollHeight,pagination:Qe=Nn.pagination,subHeader:ge=Nn.subHeader,subHeaderAlign:Ie=Nn.subHeaderAlign,subHeaderWrap:De=Nn.subHeaderWrap,subHeaderComponent:Xe=Nn.subHeaderComponent,noContextMenu:Ye=Nn.noContextMenu,contextMessage:Me=Nn.contextMessage,contextActions:lt=Nn.contextActions,contextComponent:Ht=Nn.
5587contextComponent,expandableRows:Le=Nn.expandableRows,onRowClicked:Nt=Nn.onRowClicked,onRowDoubleClicked:Ct=Nn.onRowDoubleClicked,onRowMouseEnter:It=Nn.onRowMouseEnter,onRowMouseLeave:nt=Nn.onRowMouseLeave,sortIcon:ht=Nn.sortIcon,onSort:ve=Nn.onSort,sortFunction:ce=Nn.sortFunction,sortServer:je=Nn.sortServer,expandableRowsComponent:dt=Nn.expandableRowsComponent,expandableRowsComponentProps:ft=Nn.expandableRowsComponentProps,expandableRowDisabled:at=Nn.expandableRowDisabled,expandableRowsHideExpander:St=Nn.expandableRowsHideExpander,expandOnRowClicked:ut=Nn.expandOnRowClicked,expandOnRowDoubleClicked:gt=Nn.expandOnRowDoubleClicked,expandableRowExpanded:Vt=Nn.expandableRowExpanded,expandableInheritConditionalStyles:Zt=Nn.expandableInheritConditionalStyles,defaultSortFieldId:Wt=Nn.defaultSortFieldId,defaultSortAsc:qt=Nn.defaultSortAsc,clearSelectedRows:We=Nn.clearSelectedRows,conditionalRowStyles:yn=Nn.conditionalRowStyles,theme:vn=Nn.theme,customStyles:Ge=Nn.customStyles,direction:kt=Nn.direction,onColumnOrderChange:_t=Nn.onColumnOrderChange,className:Dt,ariaLabel:jt}=t,{tableColumns:Lt,draggingColumnId:Bt,handleDragStart:Gt,handleDragEnter:hn,handleDragOver:Ve,handleDragLeave:pt,handleDragEnd:Tt,defaultSortDirection:xt,defaultSortColumn:v}=q5t(n,_t,Wt,qt),[{rowsPerPage:W,currentPage:Te,selectedRows:_e,allSelected:be,selectedCount:xe,selectedColumn:we,sortDirection:tt,toggleOnSelectedRowsChange:ot},ze]=b.useReducer(ISt,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:v,toggleOnSelectedRowsChange:!1,sortDirection:xt,currentPage:j,rowsPerPage:Q,selectedRowsFlag:!1,contextMessage:Nn.contextMessage}),{persistSelectedOnSort:Ke=!1,persistSelectedOnPageChange:rt=!1}=B,Rt=!(!O||!rt&&!Ke),Xt=Qe&&!te&&e.length>0,rn=ae||V5t,en=b.useMemo((()=>((Tn={},bn="default",vr="default")=>{const Zr=VA[bn]?bn:vr;return ZH({table:{style:{color:(kn=VA[Zr]).text.primary,backgroundColor:kn.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:kn.text.primary,backgroundColor:kn.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:kn.background.default,minHeight:"52px"}},head:{style:{color:kn.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:kn.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:kn.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:kn.context.background,fontSize:"18px",fontWeight:400,color:kn.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:kn.text.primary,backgroundColor:kn.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:kn.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:kn.selected.text,backgroundColor:kn.selected.default,borderBottomColor:kn.background.default}},highlightOnHoverStyle:{color:kn.highlightOnHover.text,backgroundColor:kn.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:kn.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:kn.background.default},stripedStyle:{color:kn.striped.text,backgroundColor:kn.striped.default}},expanderRow:{style:{color:kn.text.primary,backgroundColor:kn.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:kn.button.default,fill:kn.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:kn.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:kn.button.hover},"&:focus":{outline:"none",backgroundColor:kn.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:kn.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:kn.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:kn.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:kn.button.default,fill:kn.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:kn.button.disabled,fill:kn.button.disabled},"&:hover:not(:disabled)":{backgroundColor:kn.button.hover},"&:focus":{outline:"none",backgroundColor:kn.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:kn.text.primary,backgroundColor:kn.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:kn.text.primary,backgroundColor:kn.background.default}}},Tn);var kn})(Ge,vn)),[Ge,vn]),Qt=b.useMemo((()=>Object.assign({},kt!=="auto"&&{dir:kt})),[kt]),sn=b.useMemo((()=>
5587{if(je)return e;if(we?.sortFunction&&typeof we.sortFunction=="function"){const Tn=we.sortFunction,bn=tt===Lg.ASC?Tn:(vr,Zr)=>-1*Tn(vr,Zr);return[...e].sort(bn)}return(function(Tn,bn,vr,Zr){return bn?Zr&&typeof Zr=="function"?Zr(Tn.slice(0),bn,vr):Tn.slice(0).sort(((kn,ti)=>{const Qr=bn(kn),Cn=bn(ti);if(vr==="asc"){if(Qr<Cn)return-1;if(Qr>Cn)return 1}if(vr==="desc"){if(Qr>Cn)return-1;if(Qr<Cn)return 1}return 0})):Tn})(e,we?.selector,tt,ce)}),[je,we,tt,e,ce]),ur=b.useMemo((()=>{if(Qe&&!O){const Tn=Te*W,bn=Tn-W;return sn.slice(bn,Tn)}return sn}),[Te,Qe,O,W,sn]),ye=b.useCallback((Tn=>{ze(Tn)}),[]),He=b.useCallback((Tn=>{ze(Tn)}),[]),ue=b.useCallback((Tn=>{ze(Tn)}),[]),Ze=b.useCallback(((Tn,bn)=>Nt(Tn,bn)),[Nt]),yt=b.useCallback(((Tn,bn)=>Ct(Tn,bn)),[Ct]),_n=b.useCallback(((Tn,bn)=>It(Tn,bn)),[It]),Sn=b.useCallback(((Tn,bn)=>nt(Tn,bn)),[nt]),pn=b.useCallback((Tn=>ze({type:"CHANGE_PAGE",page:Tn,paginationServer:O,visibleOnly:A,persistSelectedOnPageChange:rt})),[O,rt,A]),wn=b.useCallback((Tn=>{const bn=CS(G||ur.length,Tn),vr=sU(Te,bn);O||pn(vr),ze({type:"CHANGE_ROWS_PER_PAGE",page:vr,rowsPerPage:Tn})}),[Te,pn,O,G,ur.length]);if(Qe&&!O&&sn.length>0&&ur.length===0){const Tn=CS(sn.length,W),bn=sU(Te,Tn);pn(bn)}cv((()=>{D({allSelected:be,selectedCount:xe,selectedRows:_e.slice(0)})}),[ot]),cv((()=>{ve(we,tt,sn.slice(0))}),[we,tt]),cv((()=>{L(Te,G||sn.length)}),[Te]),cv((()=>{I(W,Te)}),[W]),cv((()=>{pn(j)}),[j,z]),cv((()=>{if(Qe&&O&&G>0){const Tn=CS(G,W),bn=sU(Te,Tn);Te!==bn&&pn(bn)}}),[G]),b.useEffect((()=>{ze({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:We})}),[f,We]),b.useEffect((()=>{if(!g)return;const Tn=sn.filter((vr=>g(vr))),bn=f?Tn.slice(0,1):Tn;ze({type:"SELECT_MULTIPLE_ROWS",keyField:a,selectedRows:bn,totalRows:sn.length,mergeSelections:Rt})}),[e,g]);const pe=A?ur:sn,Hn=rt||f||p;return b.createElement(kSt,{theme:en},!Re&&(!!r||!!i)&&b.createElement(b5t,{title:r,actions:i,showMenu:!Ye,selectedCount:xe,direction:kt,contextActions:lt,contextComponent:Ht,contextMessage:Me}),ge&&b.createElement(T5t,{align:Ie,wrapContent:De},Xe),b.createElement(M5t,Object.assign({$responsive:oe,$fixedHeader:Ne,$fixedHeaderScrollHeight:Fe,className:Dt},Qt),b.createElement(C5t,null,te&&!me&&b.createElement(Koe,null,he),b.createElement(USt,Object.assign({disabled:Ae,className:"rdt_Table",role:"table"},jt&&{"aria-label":jt}),!Se&&(!!me||sn.length>0&&!te)&&b.createElement(jSt,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:Ne},b.createElement(HSt,{className:"rdt_TableHeadRow",role:"row",$dense:c},u&&(Hn?b.createElement(E6,{style:{flex:"0 0 48px"}}):b.createElement(m5t,{allSelected:be,selectedRows:_e,selectableRowsComponent:T,selectableRowsComponentProps:C,selectableRowDisabled:w,rowData:pe,keyField:a,mergeSelections:Rt,onSelectAllRows:He})),Le&&!St&&b.createElement(N5t,null),Lt.map((Tn=>b.createElement(h5t,{key:Tn.id,column:Tn,selectedColumn:we,disabled:te||sn.length===0,pagination:Qe,paginationServer:O,persistSelectedOnSort:Ke,selectableRowsVisibleOnly:A,sortDirection:tt,sortIcon:ht,sortServer:je,onSort:ye,onDragStart:Gt,onDragOver:Ve,onDragEnd:Tt,onDragEnter:hn,onDragLeave:pt,draggingColumnId:Bt}))))),!sn.length&&!te&&b.createElement(R5t,null,de),te&&me&&b.createElement(Koe,null,he),!te&&sn.length>0&&b.createElement(E5t,{className:"rdt_TableBody",role:"rowgroup"},ur.map(((Tn,bn)=>{const vr=$_(Tn,a),Zr=(function(Cn=""){return typeof Cn!="number"&&(!Cn||Cn.length===0)})(vr)?bn:vr,kn=hN(Tn,_e,a),ti=!!(Le&&Vt&&Vt(Tn)),Qr=!!(Le&&at&&at(Tn));return b.createElement(s5t,{id:Zr,key:Zr,keyField:a,"data-row-id":Zr,columns:Lt,row:Tn,rowCount:sn.length,rowIndex:bn,selectableRows:u,expandableRows:Le,expandableIcon:k,highlightOnHover:o,pointerOnHover:l,dense:c,expandOnRowClicked:ut,expandOnRowDoubleClicked:gt,expandableRowsComponent:dt,expandableRowsComponentProps:ft,expandableRowsHideExpander:St,defaultExpanderDisabled:Qr,defaultExpanded:ti,expandableInheritConditionalStyles:Zt,conditionalRowStyles:yn,selected:kn,selectableRowsHighlight:h,selectableRowsComponent:T,selectableRowsComponentProps:C,selectableRowDisabled:w,selectableRowsSingle:f,striped:s,onRowExpandToggled:M,onRowClicked:
5587Ze,onRowDoubleClicked:yt,onRowMouseEnter:_n,onRowMouseLeave:Sn,onSelectedRow:ue,draggingColumnId:Bt,onDragStart:Gt,onDragOver:Ve,onDragEnd:Tt,onDragEnter:hn,onDragLeave:pt})})))))),Xt&&b.createElement("div",null,b.createElement(rn,{onChangePage:pn,onChangeRowsPerPage:wn,rowCount:G||sn.length,currentPage:Te,rowsPerPage:W,direction:kt,paginationRowsPerPageOptions:ee,paginationIconLastPage:Z,paginationIconFirstPage:X,paginationIconNext:K,paginationIconPrevious:se,paginationComponentOptions:J})))}));function W5t(t){const e=Dn.c(34),{visaApplicationId:n,onClose:r}=t,[i,a]=b.useState(!1),[s,o]=b.useState(null),[,l]=b.useState(null);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[u,f]=b.useState(c);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[1]=h):h=e[1];const[p,A]=b.useState(h);let g;e[2]!==n?(g=async()=>{const Z=await Xv(n);if(Z.statusCode===200){l(Z.data.applicants);const{applicants:X}=Z.data,K=[];for(let se=0;se<X.length;se++){const ae={applicantId:X[se].applicantId,name:(X[se].title??"")+" "+X[se].firstName+" "+X[se].lastName,visaDocumentList:[]};X[se].documents.filter(Q5t).forEach(J=>{ae.visaDocumentList.push({documentId:J.documentId,documentType:J.documentType,documentName:J.documnetName,documentUrl:J.documentUrl,documentFormat:J.documentFormat})}),K.push(ae)}f(K)}},e[2]=n,e[3]=g):g=e[3];const w=g;let T;e[4]!==u?(T=(Z,X,K,se)=>{const ae=[...u];ae[se].visaDocumentList.find(J=>J.documentId===X).documentUrl=Z,f(ae),A(J=>{const oe=[...J];return oe[se]?.docs&&(oe[se]={...oe[se],docs:{...oe[se].docs,[X]:""}}),oe})},e[4]=u,e[5]=T):T=e[5];const C=T;let M;e[6]!==u?(M=(Z,X)=>{const K=[...u];K[X].visaDocumentList.find(se=>se.documentId===Z).documentUrl="",f(K)},e[6]=u,e[7]=M):M=e[7];const D=M;let k;e[8]!==w?(k=()=>{w()},e[8]=w,e[9]=k):k=e[9];let I;e[10]!==n?(I=[n],e[10]=n,e[11]=I):I=e[11],b.useEffect(k,I);let L;e[12]!==r||e[13]!==u||e[14]!==n?(L=async()=>{const Z=u.map(X5t);if(A(Z),Z.some(Z5t)){o({title:"Error",description:"Please upload all the documents",variant:"error"});return}a(!0),(await eYe({visaApplicationId:n,visaRePushPassengerList:u})).statusCode===200?(o({title:"Success",description:"Documents re-uploaded successfully",variant:"success"}),setTimeout(()=>r(),1e3)):o({title:"Error",description:"Failed to re-upload documents",variant:"error"}),a(!1)},e[12]=r,e[13]=u,e[14]=n,e[15]=L):L=e[15];const O=L;let B;e[16]!==i?(B=i&&x.jsx(go,{isLoading:i}),e[16]=i,e[17]=B):B=e[17];let G;e[18]!==s?(G=s&&x.jsx(Do,{title:s.title,description:s.description,variant:s.variant,onHide:()=>o(null)}),e[18]=s,e[19]=G):G=e[19];let j;e[20]!==D||e[21]!==C||e[22]!==u||e[23]!==p?(j=u.length>0&&u.map((Z,X)=>x.jsxs("div",{children:[x.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700/50 rounded-xl px-4 py-3 mb-3",children:[x.jsxs("p",{className:"text-[10px] font-semibold text-gray-400 tracking-widest uppercase mb-0.5",children:["Traveler ",X+1]}),x.jsx("p",{className:"text-sm font-semibold text-gray-800 dark:text-white",children:Z.name})]}),x.jsx("div",{className:"grid grid-cols-12 gap-4",children:Z.visaDocumentList.map((K,se)=>x.jsx("div",{className:"col-span-6",children:x.jsx(UH,{className:"h-50",fileName:K.documentName,documentType:K.documentType,documentUrl:K.documentUrl,documentId:K.documentId,documentName:K.documentName,description:K.documentContent,documentFormat:K.documentFormat,onUploaded:C,onRemoved:D,paxIndex:X,errorText:p[X]?.docs?.[K.documentId]})},K.documentId??se))}),x.jsx("div",{className:"h-1 bg-gray-200 my-4"})]},X)),e[20]=D,e[21]=C,e[22]=u,e[23]=p,e[24]=j):j=e[24];let z;e[25]!==O?(z=x.jsx("div",{className:"absolute bottom-4",children:x.jsx(gr,{btnText:"Re-upload",variant:"secondary",onClick:O})}),e[25]=O,e[26]=z):z=e[26];let Q;e[27]!==j||e[28]!==z?(Q=x.jsxs("div",{className:"p-4",children:[j,z]}),e[27]=j,e[28]=z,e[29]=Q):Q=e[29];let ee;return e[30]!==G||e[31]!==Q||e[32]!==B?(ee=x.jsxs(x.Fragment,{children:[B,G,Q]}),e[30]=G,e[31]=Q,e[32]=B,e[33]=ee):ee=e[33],ee}function Z5t(t){const{docs:e}=t;return Object.values(e).some(Y5t)}function Y5t(t){return t!==""}function X5t(t){const e={};return t.visaDocumentList.forEach(n=>
5587{n.documentUrl||(e[n.documentId]="Please upload this document")}),{docs:e}}function Q5t(t){return t.status==="DOCUMENT_UPLOAD_FAILED"||t.status==="ADDITIONAL_DOCUMENTS_REQUIRED"}function RD(t){const e=Dn.c(21);let n,r,i,a,s,o,l,c;e[0]!==t?({id:r,name:s,labelText:a,onChange:o,labelClassName:i,radioClassName:l,checked:n,...c}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=c):(n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],c=e[8]);const u=`flex items-center text-xs font-medium gap-2 ${i} ${n?"text-[--secondary-color]":"text-[#768391]"}`,f=`appearance-none w-4 h-4 rounded-full border-2 ${n?"border-[var(--secondary-color)] bg-[var(--secondary-color)] shadow-[inset_0_0_0_2px_white]":"border-[#768391] bg-white"} ${l}`;let h;e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==o||e[13]!==c||e[14]!==f?(h=x.jsx("input",{id:r,type:"radio",name:s,checked:n,onChange:o,...c,className:f}),e[9]=n,e[10]=r,e[11]=s,e[12]=o,e[13]=c,e[14]=f,e[15]=h):h=e[15];let p;return e[16]!==r||e[17]!==a||e[18]!==u||e[19]!==h?(p=x.jsxs("label",{htmlFor:r,className:u,children:[h,a]}),e[16]=r,e[17]=a,e[18]=u,e[19]=h,e[20]=p):p=e[20],p}RD.defaultProps={labelClassName:"",radioClassName:"",labelText:"",checked:!1};RD.propTypes={id:re.string.isRequired,name:re.string.isRequired,labelText:re.any,labelClassName:re.string,radioClassName:re.string,checked:re.any,onChange:re.func.isRequired};function K5t(t){const e=Dn.c(76),{visaApplication:n,closeSideBar:r}=t;console.log(n);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[a,s]=b.useState(i),[o,l]=b.useState(!1),[c,u]=b.useState(null),[f,h]=b.useState("DEPOSIT");let p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=["Cancellation requests must be submitted through the platform's designated cancellation module by an authorised agent.","All cancellation requests are subject to review and approval. The final refund amount will be determined based on the stage of processing at the time of the request.","Cancellation requests cannot be raised once the visa has been stamped, approved, or issued by the respective embassy or consulate.","Embassy and consulate fees are levied by the respective government authority and are strictly non-refundable under all circumstances, regardless of the reason for cancellation.","Requests submitted outside of business hours will be processed on the next working day.","Refunds are subject to the terms and conditions set by the respective visa authorities and may vary based on the visa type, nationality, and application stage.","If the visa application is rejected by the embassy or consulate, no refund of embassy fees or service charges will be provided. The platform does not guarantee visa approval, as the decision rests solely with the respective immigration authority.","The refund amount, if any, will be credited to the user's account wallet.","Processing of cancellation requests typically takes 5â10 business days, depending on the visa authority.","Once the cancellation is processed, the visa application will be considered null and void, and no further actions can be taken on it.","The platform reserves the right to amend, modify, or update these cancellation terms at any time without prior notice."],e[1]=p):p=e[1];const A=p;if(!n)return null;const{application:g,applicants:w}=n,T=w.length,C=a.length===T,M=a.length>0&&!C;let D;e[2]===Symbol.for("react.memo_cache_sentinel")?(D=Ie=>{s(De=>De.includes(Ie)?De.filter(Xe=>Xe!==Ie):[...De,Ie])},e[2]=D):D=e[2];const k=D;let I;e[3]!==C||e[4]!==w?(I=()=>{s(C?[]:w.map(eTt))},e[3]=C,e[4]=w,e[5]=I):I=e[5];const L=I;let O;e[6]!==g.visaApplicationId||e[7]!==r||e[8]!==f||e[9]!==a?(O=async Ie=>{l(!0);const De={visaApplicationId:g.visaApplicationId,applicantIds:a,refundMode:f};l(!0);const Xe=await tYe(Ie,De);l(!1),Xe?.statusCode===200?(u({title:"Success",description:"Cancellation request submitted.",variant:"success"}),s([]),setTimeout(()=>{r()},1500)):u({title:"Error",description:Xe?.message??"Cancellation failed.",variant:"error"}),l(!1)},e[6]=g.visaApplicationId,e[7]=r,e[8]=f,e[9]=a,e[10]=O):O=e[10];const B=O;let G;
5587e[11]!==c?(G=c&&x.jsx(Do,{title:c.title,description:c.description,variant:c.variant,onHide:()=>u(null)}),e[11]=c,e[12]=G):G=e[12];let j;e[13]!==g.visaName?(j=x.jsx("p",{className:"font-semibold text-gray-800 dark:text-white",children:g.visaName}),e[13]=g.visaName,e[14]=j):j=e[14];let z;e[15]!==g.applicationRefNo?(z=x.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:["Ref: ",g.applicationRefNo]}),e[15]=g.applicationRefNo,e[16]=z):z=e[16];let Q;e[17]!==g.bookingStatus?(Q=g.bookingStatus?.replace(/_/g," "),e[17]=g.bookingStatus,e[18]=Q):Q=e[18];let ee;e[19]!==Q?(ee=x.jsxs("span",{children:["Booking Status: ",x.jsx("span",{className:"font-medium",children:Q})]}),e[19]=Q,e[20]=ee):ee=e[20];let Z;e[21]!==g.totalAmount?(Z=xr(g.totalAmount),e[21]=g.totalAmount,e[22]=Z):Z=e[22];let X;e[23]!==Z?(X=x.jsxs("span",{children:["Amount: ",x.jsx("span",{className:"font-medium",children:Z})]}),e[23]=Z,e[24]=X):X=e[24];let K;e[25]!==g.entry?(K=x.jsxs("span",{children:["Entry: ",x.jsx("span",{className:"font-medium",children:g.entry})]}),e[25]=g.entry,e[26]=K):K=e[26];let se;e[27]!==g.travelDate?(se=new Date(g.travelDate).toLocaleDateString("en-GB"),e[27]=g.travelDate,e[28]=se):se=e[28];let ae;e[29]!==se?(ae=x.jsxs("span",{children:["Travel: ",x.jsx("span",{className:"font-medium",children:se})]}),e[29]=se,e[30]=ae):ae=e[30];let J;e[31]!==ee||e[32]!==X||e[33]!==K||e[34]!==ae?(J=x.jsxs("div",{className:"flex flex-wrap gap-3 mt-2 text-xs text-gray-600 dark:text-gray-300",children:[ee,X,K,ae]}),e[31]=ee,e[32]=X,e[33]=K,e[34]=ae,e[35]=J):J=e[35];let oe;e[36]!==J||e[37]!==j||e[38]!==z?(oe=x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-xl p-4 mb-4 space-y-1",children:[j,z,J]}),e[36]=J,e[37]=j,e[38]=z,e[39]=oe):oe=e[39];let te;e[40]!==C||e[41]!==L?(te=x.jsx("div",{className:"mb-3 px-1",children:x.jsx(Sh,{id:"select-all",name:"select-all",labelText:"Select All Applicants",checked:C,onChange:L,labelClassName:"flex items-center"})}),e[40]=C,e[41]=L,e[42]=te):te=e[42];let he;if(e[43]!==w||e[44]!==a){let Ie;e[46]!==a?(Ie=De=>{const Xe=a.includes(De.applicantId);return x.jsx("div",{onClick:()=>k(De.applicantId),className:`flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors ${Xe?"border-(--secondary-color) bg-blue-50 dark:bg-blue-900/20":"border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800"}`,children:x.jsx(Sh,{id:`applicant-${De.applicantId}`,name:`applicant-${De.applicantId}`,checked:Xe,onChange:()=>k(De.applicantId),labelClassName:"flex items-center",labelText:x.jsxs("div",{className:"min-w-0",children:[x.jsxs("p",{className:"text-sm font-medium text-gray-800 dark:text-white",children:[De.title," ",De.firstName," ",De.lastName]}),x.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:[De.paxType," · Passport: ",De.passportNumber]})]})})},De.applicantId)},e[46]=a,e[47]=Ie):Ie=e[47],he=w.map(Ie),e[43]=w,e[44]=a,e[45]=he}else he=e[45];let me;e[48]!==he?(me=x.jsx("div",{className:"space-y-2 mb-6",children:he}),e[48]=he,e[49]=me):me=e[49];let de;e[50]!==g.paymentType||e[51]!==f?(de=g.paymentType!=="DEPOSIT"&&x.jsxs(x.Fragment,{children:[x.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:["The Payment for this application is done through ",g.paymentType,", choose the refund mode to proceed."]}),x.jsxs("div",{className:"flex gap-4 mt-2",children:[x.jsx(RD,{id:"refund-deposit",name:"refund-mode",value:"DEPOSIT",labelText:"Wallet",checked:f==="DEPOSIT",onChange:Ie=>h(Ie.target.value),labelClassName:"flex items-center"}),x.jsx(RD,{id:"refund-payment-type",name:"refund-mode",value:g.paymentType,labelText:g.paymentType,checked:f===g.paymentType,onChange:Ie=>h(Ie.target.value)})]})]}),e[50]=g.paymentType,e[51]=f,e[52]=de):de=e[52];let Ae;e[53]!==de?(Ae=x.jsx("div",{className:"mb-3 px-1",children:de}),e[53]=de,e[54]=Ae):Ae=e[54];let Se;e[55]!==C||e[56]!==B||e[57]!==o?(Se=C&&x.jsx(gr,{btnText:"Full Cancellation",variant:"secondary",onClick:()=>B("full"),isLoading:o,className:"w-full bg-red-500 hover:bg-red-600 border-red-500"}),e[55]=C,e[56]=B,e[57]=o,e[58]=Se):Se=e[58];let Re;
5587e[59]!==B||e[60]!==o||e[61]!==a.length||e[62]!==M||e[63]!==T?(Re=M&&x.jsx(gr,{btnText:`Partial Cancel (${a.length} of ${T})`,variant:"outlined",onClick:()=>B("partial"),isLoading:o,className:"w-full"}),e[59]=B,e[60]=o,e[61]=a.length,e[62]=M,e[63]=T,e[64]=Re):Re=e[64];let Ne;e[65]===Symbol.for("react.memo_cache_sentinel")?(Ne=x.jsx("div",{className:"mt-2",children:x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-0.5",children:"By proceeding with the cancellation, you agree to the terms and conditions mentioned below."})}),e[65]=Ne):Ne=e[65];let Fe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Fe=x.jsx("h3",{className:"font-semibold text-gray-800 dark:text-white",children:"Terms & Conditions"}),e[66]=Fe):Fe=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=x.jsxs("div",{className:"mt-4",children:[Fe,x.jsx("ul",{className:"mt-2 space-y-1",children:A.map(J5t)})]}),e[67]=Qe):Qe=e[67];let ge;return e[68]!==oe||e[69]!==te||e[70]!==me||e[71]!==Ae||e[72]!==Se||e[73]!==Re||e[74]!==G?(ge=x.jsxs(x.Fragment,{children:[G,oe,te,me,Ae,Se,Re,Ne,Qe]}),e[68]=oe,e[69]=te,e[70]=me,e[71]=Ae,e[72]=Se,e[73]=Re,e[74]=G,e[75]=ge):ge=e[75],ge}function J5t(t,e){return x.jsxs("li",{className:"text-xs text-gray-500 dark:text-gray-400",children:[x.jsxs("span",{className:"font-medium",children:[e+1,"."]})," ",t]},e)}function eTt(t){return t.applicantId}sY("appDark",{text:{primary:"#e5e7eb",secondary:"#9ca3af"},background:{default:"#1f2937"},context:{background:"#374151",text:"#ffffff"},divider:{default:"#374151"},highlightOnHover:{default:"#374151",text:"#e5e7eb"}},"dark");const tTt={headRow:{style:{backgroundColor:"#f3f4f6",borderBottomWidth:"1px",minHeight:"44px"}},headCells:{style:{fontSize:"12px",fontWeight:"600",color:"#6b7280",paddingLeft:"16px",paddingRight:"16px"}},rows:{style:{minHeight:"80px"},highlightOnHoverStyle:{backgroundColor:"#f9fafb",transitionDuration:"0.15s"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px"}}};function nTt({onCollapseSidebar:t}){const{isDark:e}=B2(),[n,r]=b.useState(new Date),[i,a]=b.useState(new Date),[s,o]=b.useState(!1),[l,c]=b.useState(null),[u,f]=b.useState([]),[h,p]=b.useState(!1),[A,g]=b.useState(0),[w,T]=b.useState([]),[C,M]=b.useState({modal:!1,visaApplicationId:""}),[D,k]=b.useState({modal:!1,data:null}),[I,L]=b.useState({sideBar:!1,data:void 0}),[O,B]=b.useState({applicants:[],history:[],qnaLinks:{}}),[G,j]=b.useState({modal:!1,data:null}),[z]=AT(),Q=[{name:"Transaction ID",sortable:!0,selector:J=>J.visaApplicationId,cell:J=>x.jsxs("div",{className:"",children:[x.jsx("p",{className:"text-blue-500 dark:text-blue-400 font-medium text-xs mb-2",children:J.visaApplicationId??"â"}),x.jsxs("p",{className:"text-gray-400 dark:text-gray-500 text-xs mt-0.5 capitalize mb-2",children:["Ref: ",J.applicationRefNo]}),x.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-xs mt-0.5 capitalize",children:J.paymentType?.toLowerCase()})]}),width:"200px"},{name:"Visa Details",sortable:!0,selector:J=>J.countryTo,grow:2,cell:J=>x.jsxs("div",{children:[x.jsxs("p",{className:"font-semibold text-gray-800 dark:text-gray-100 text-xs",children:[J.duration," ",J.durationType," ",J.visaType," â ",J.countryTo]}),x.jsxs("p",{className:"text-gray-400 dark:text-gray-500 text-xs mt-0.5",children:[J.entry," · validity - ",J.validity===0?"":J.validity," ",J.validityType==="ASPEREMBASY"?"As Per Embassy":J.validityType]})]})},{name:"Amount",sortable:!0,selector:J=>J.totalAmount,cell:J=>x.jsxs("span",{className:"font-semibold text-gray-800 dark:text-gray-100 whitespace-nowrap text-sm",children:[J.currency," ",xr(J.totalAmount)]})},{name:"Application Status",sortable:!0,selector:J=>J.bookingStatus,width:"200px",cell:J=>x.jsx(Q8e,{status:J.bookingStatus})},{name:"Remarks",cell:J=>J.remarks.length>0&&x.jsxs("div",{children:[x.jsx("div",{className:"text-gray-400 dark:text-gray-500 text-sm mt-0.5",children:J.remarks[J.remarks.length-1]?.visaRemarks}),x.jsx("button",{className:"text-blue-500 dark:text-blue-400 text-xs mt-0.5",onClick:()=>ee(J),children:"View More"})]})}],ee=J=>{j({modal:!0,data:J.remarks})},Z=async()=>
5587{if(n===null||i===null){c({title:"Error",description:"Please select from and to dates",variant:"error"});return}const J={fromDate:$o(n,Ou),toDate:$o(i,Ou)};try{o(!0);const oe=await KZe(J);if(oe.statusCode===200){const te=["all"];oe.data.forEach(he=>{te.push(he.bookingStatus)}),T([...new Set(te)]),f(oe.data),p(!0),g("all"),t?.()}else c({title:"Error",description:oe.message,variant:"error"});o(!1)}catch{c({title:"Error",description:"Something went wrong. Please try again.",variant:"error"}),o(!1)}};b.useEffect(()=>{Z()},[n,i]),b.useEffect(()=>{const J=z.get("statusFor");J&&K({visaApplicationId:J})},[z]);const X=A==="all"?u:u.filter(J=>J.bookingStatus===A),K=async J=>{let oe={visaApplicationId:J.visaApplicationId,applicantIds:[]};const te=await Xv(J.visaApplicationId),he={};te.statusCode===200&&(oe.applicantIds=te.data.applicants.map(Ae=>Ae.applicantId),((await nYe(oe))?.data?.applicantStatusList||[]).forEach(Ae=>{Ae.additionalDocsQnALink&&(he[Ae.applicantId]=Ae.additionalDocsQnALink)}));const me=await Xv(J.visaApplicationId);me.statusCode===200?(B({applicants:me.data.applicants||[],history:me.data.statusHistory||[],qnaLinks:he}),L({sideBar:!0,data:null})):c({title:"Error",description:"Failed to fetch applicant status",variant:"error"})},se=async J=>{try{o(!0);const oe=await Xv(J);oe.statusCode===200&&k({modal:!0,data:oe.data}),o(!1)}catch{c({title:"Error",description:"Failed to fetch application details",variant:"error"}),o(!1)}},ae=async J=>{try{o(!0);const oe=await rYe(J);oe.statusCode===200&&oe.data?.eVisaZipFileS3Url?window.open(oe.data.eVisaZipFileS3Url,"_blank"):c({title:"Error",description:oe.message||"Failed to download e-visa",variant:"error"}),o(!1)}catch{c({title:"Error",description:"Failed to download e-visa",variant:"error"}),o(!1)}};return x.jsxs(x.Fragment,{children:[s&&x.jsx(go,{isLoading:s}),l&&x.jsx(Do,{title:l.title,description:l.description,variant:l.variant,onHide:()=>c(null)}),x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"My Bookings"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"Manage your bookings and view transaction history."}),x.jsx("div",{className:"app-card",children:x.jsxs("div",{className:"grid grid-cols-12 items-end gap-4",children:[x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(fd,{label:"From Date",placeholder:"Select From Date",selectedDate:n,onChange:J=>r(J),dateFormat:"dd MMM, yyyy"})}),x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(fd,{label:"To Date",placeholder:"Select To Date",selectedDate:i,onChange:J=>a(J),minDate:n,dateFormat:"dd MMM, yyyy"})}),x.jsx("div",{className:"col-span-12 md:col-span-2",children:x.jsx(gr,{btnText:"Fetch",variant:"secondary",onClick:Z,className:"mb-1"})})]})}),h&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"grid grid-cols-3 md:grid-cols-5 gap-3 mt-4",children:w&&w.map((J,oe)=>x.jsxs("button",{type:"button",onClick:()=>g(J),className:`app-card cursor-pointer text-left transition-all px-2 ${A===J?"ring-2 ring-offset-1 dark:ring-[var(--secondary-color)] ring-[var(--secondary-color)] bg-blue-50 border-l-4 border-[var(--secondary-color)]":"dark:bg-blue-900"}`,children:[x.jsx("p",{className:"text-[10px] text-gray-500 dark:text-gray-400",children:J==="all"?"All":Hhe(J)}),x.jsx("p",{className:"text-2xl font-bold text-gray-800 dark:text-white mt-1",children:J==="all"?u.length:u.filter(te=>te.bookingStatus===J).length})]},J))}),x.jsx("div",{className:"app-card mt-4 p-0!",children:x.jsx(oY,{columns:Q,data:X,highlightOnHover:!e,responsive:!0,theme:e?"appDark":"default",customStyles:tTt,expandableRows:!0,expandableRowsComponent:({data:J})=>x.jsxs("div",{className:"p-4 flex gap-2",children:[x.jsx(gr,{btnText:"Agent Invoice",variant:"outlined",onClick:()=>window.open(Zn.INVOICE.replace(":visaApplicationId",J.visaApplicationId),"_blank"),className:"text-xs"}),x.jsx(gr,{btnText:"Customer Invoice",variant:"outlined",onClick:()=>window.open(Zn.CUSTOMER_INVOICE.replace(":visaApplicationId",J.visaApplicationId),"_blank"),className:"text-xs"}),x.jsx(gr,{btnText:"Order Details",variant:"outlined",onClick:()=>
5587window.open(Zn.VISA_ORDER_DETAILS.replace(":visaApplicationId",J.visaApplicationId),"_blank"),className:"text-xs"}),x.jsx(gr,{btnText:"Status",variant:"outlined",onClick:()=>K(J),className:"text-xs"}),(J.bookingStatus==="DOCUMENT_PARTIALLY_UPLOADED"||J.bookingStatus==="DOCUMENT_UPLOAD_FAILED"||J.bookingStatus==="ADDITIONAL_DOCUMENTS_REQUIRED")&&x.jsx(gr,{btnText:"Re-Upload Docs",variant:"outlined",onClick:()=>M({modal:!0,visaApplicationId:J.visaApplicationId}),className:"text-xs"}),J.bookingStatus!=="APPROVED"&&J.bookingStatus!=="CANCELLED"&&J.bookingStatus!=="Cancellation_InProgress"&&x.jsx(gr,{btnText:"Cancel",variant:"outlined",className:"text-xs",onClick:()=>se(J.visaApplicationId)}),(J.bookingStatus==="APPROVED"||J.bookingStatus==="PARTIAL_APPROVED")&&x.jsx(gr,{btnText:"Download Visa",variant:"outlined",className:"text-xs",onClick:()=>ae(J.visaApplicationId)})]}),noDataComponent:x.jsxs("div",{className:"py-12 text-center text-gray-400 dark:text-gray-500",children:[x.jsx(Dy,{size:40,className:"mx-auto mb-2 opacity-40"}),x.jsx("p",{children:"No bookings found for this filter."})]})})})]}),x.jsx(qc,{isOpen:C.modal,onHideSidebar:()=>M({modal:!1,visaApplicationId:""}),sidebarTitle:"Re-upload Documents - "+C.visaApplicationId,children:x.jsx(W5t,{visaApplicationId:C.visaApplicationId,onClose:()=>M({modal:!1,visaApplicationId:""})})}),x.jsx(qc,{isOpen:I.sideBar,onHideSidebar:()=>L({sideBar:!1,data:null}),sidebarTitle:"Application Status",children:x.jsx(Rwt,{applicants:O.applicants,statusHistory:O.history,qnaLinks:O.qnaLinks})}),x.jsx(qc,{isOpen:D.modal,onHideSidebar:()=>k({modal:!1,data:{}}),sidebarTitle:"Cancel Application",children:x.jsx(K5t,{visaApplication:D.data,closeSideBar:()=>k({modal:!1,data:{}})})}),x.jsx(qc,{isOpen:G.modal,onHideSidebar:()=>j({modal:!1,data:null}),sidebarTitle:"Remarks",children:G.data?.length>0?x.jsx("div",{className:"flex flex-col gap-3",children:G.data.map(J=>x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-3 py-2",children:[x.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:J.visaRemarks}),J.createdOn&&x.jsx("p",{className:"text-[10px] text-gray-400 dark:text-gray-500 mt-1 text-right",children:new Date(J.createdOn).toLocaleString("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})})]},J.remarkId))}):x.jsxs("div",{className:"flex flex-col items-center justify-center py-16 gap-3 text-gray-400 dark:text-gray-600",children:[x.jsx(Y0e,{size:40,weight:"thin"}),x.jsx("p",{className:"text-sm",children:"No remarks found."})]})})]})}var C3e=1252,rTt=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],lY={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},cY=function(t){rTt.indexOf(t)!=-1&&(C3e=lY[0]=t)};function iTt(){cY(1252)}var Mh=function(t){cY(t)};function N3e(){Mh(1200),iTt()}function nle(t){for(var e=[],n=0,r=t.length;n<r;++n)e[n]=t.charCodeAt(n);return e}function aTt(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n)+(t.charCodeAt(2*n+1)<<8));return e.join("")}function R3e(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n+1)+(t.charCodeAt(2*n)<<8));return e.join("")}var jw=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return e==255&&n==254?aTt(t.slice(2)):e==254&&n==255?R3e(t.slice(2)):e==65279?t.slice(1):t},$C=function(e){return String.fromCharCode(e)},rle=function(e){return String.fromCharCode(e)},nT,mg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ile(t){for(var e="",n=0,r=0,i=0,a=0,s=0,o=0,l=0,c=0;c<t.length;)n=t.charCodeAt(c++),a=n>>2,r=t.charCodeAt(c++),s=(n&3)<<4|r>>4,i=t.charCodeAt(c++),o=(r&15)<<2|i>>6,l=i&63,isNaN(r)?o=l=64:isNaN(i)&&(l=64),e+=mg.charAt(a)+mg.charAt(s)+mg.charAt(o)+mg.charAt(l);return e}function Cf(t){var e="",n=0,r=0,i=0,a=0,s=0,o=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<t.length;)a=mg.indexOf(t.charAt(c++)),s=mg.indexOf(t.charAt(c++)),n=a<<2|s>>4,e+=String.fromCharCode(n),o=mg.indexOf(t.charAt(c++)),r=(s&15)<<4|o>>2,o!==64&&(e+=String.fromCharCode(r)),l=mg.indexOf(t.charAt(c++)),i=(o&3)<<6|l,l!==64&&(e+=String.fromCharCode(i));return e}var Hi=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Wy=(function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,n){return n?new Buffer(e,n):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}})();function Jg(t){return Hi?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}
5587function ale(t){return Hi?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var _h=function(e){return Hi?Wy(e,"binary"):e.split("").map(function(n){return n.charCodeAt(0)&255})};function Zy(t){if(Array.isArray(t))return t.map(function(r){return String.fromCharCode(r)}).join("");for(var e=[],n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function uY(t){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return uY(new Uint8Array(t));for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n];return e}var YA=Hi?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:Wy(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,n=0;for(e=0;e<t.length;++e)n+=t[e].length;var r=new Uint8Array(n),i=0;for(e=0,n=0;e<t.length;n+=i,++e)if(i=t[e].length,t[e]instanceof Uint8Array)r.set(t[e],n);else{if(typeof t[e]=="string")throw"wtf";r.set(new Uint8Array(t[e]),n)}return r}return[].concat.apply([],t.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function sTt(t){for(var e=[],n=0,r=t.length+250,i=Jg(t.length+255),a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s<128)i[n++]=s;else if(s<2048)i[n++]=192|s>>6&31,i[n++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=t.charCodeAt(++a)&1023;i[n++]=240|s>>8&7,i[n++]=128|s>>2&63,i[n++]=128|o>>6&15|(s&3)<<4,i[n++]=128|o&63}else i[n++]=224|s>>12&15,i[n++]=128|s>>6&63,i[n++]=128|s&63;n>r&&(e.push(i.slice(0,n)),n=0,i=Jg(65535),r=65530)}return e.push(i.slice(0,n)),YA(e)}var ju=/\u0000/g,Hw=/[\u0001-\u0006]/g;function T3(t){for(var e="",n=t.length-1;n>=0;)e+=t.charAt(n--);return e}function Ch(t,e){var n=""+t;return n.length>=e?n:lo("0",e-n.length)+n}function fY(t,e){var n=""+t;return n.length>=e?n:lo(" ",e-n.length)+n}function DD(t,e){var n=""+t;return n.length>=e?n:n+lo(" ",e-n.length)}function oTt(t,e){var n=""+Math.round(t);return n.length>=e?n:lo("0",e-n.length)+n}function lTt(t,e){var n=""+t;return n.length>=e?n:lo("0",e-n.length)+n}var sle=Math.pow(2,32);function w8(t,e){if(t>sle||t<-sle)return oTt(t,e);var n=Math.round(t);return lTt(n,e)}function PD(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var ole=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],lU=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function cTt(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"ä¸å/ä¸å "hh"æ"mm"å"ss"ç§ "',t}var ai={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"ä¸å/ä¸å "hh"æ"mm"å"ss"ç§ "'},lle={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},uTt={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);
5587_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function kD(t,e,n){for(var r=t<0?-1:1,i=t*r,a=0,s=1,o=0,l=1,c=0,u=0,f=Math.floor(i);c<e&&(f=Math.floor(i),o=f*s+a,u=f*c+l,!(i-f<5e-8));)i=1/(i-f),a=s,s=o,l=c,c=u;if(u>e&&(c>e?(u=l,o=a):(u=c,o=s)),!n)return[0,r*o,u];var h=Math.floor(r*o/u);return[h,r*o-h*u,u]}function Ov(t,e,n){if(t>2958465||t<0)return null;var r=t|0,i=Math.floor(86400*(t-r)),a=0,s=[],o={D:r,T:i,u:86400*(t-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),e&&e.date1904&&(r+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++r,++o.D)),r===60)s=n?[1317,10,29]:[1900,2,29],a=3;else if(r===0)s=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),r<60&&(a=(a+6)%7),n&&(a=ATt(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var D3e=new Date(1899,11,31,0,0,0),fTt=D3e.getTime(),dTt=new Date(1900,2,1,0,0,0);function P3e(t,e){var n=t.getTime();return e?n-=1461*24*60*60*1e3:t>=dTt&&(n+=1440*60*1e3),(n-(fTt+(t.getTimezoneOffset()-D3e.getTimezoneOffset())*6e4))/(1440*60*1e3)}function dY(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function hTt(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function pTt(t){var e=t<0?12:11,n=dY(t.toFixed(12));return n.length<=e||(n=t.toPrecision(10),n.length<=e)?n:t.toExponential(5)}function mTt(t){var e=dY(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function rT(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),n;return e>=-4&&e<=-1?n=t.toPrecision(10+e):Math.abs(e)<=9?n=pTt(t):e===10?n=t.toFixed(10).substr(0,12):n=mTt(t),dY(hTt(n.toUpperCase()))}function Ey(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):rT(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Nd(14,P3e(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function ATt(t,e){e[0]-=581;var n=t.getDay();return t<60&&(n=(n+6)%7),n}function gTt(t,e,n,r){var i="",a=0,s=0,o=n.y,l,c=0;switch(t){case 98:o=n.y+543;case 121:switch(e.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(e.length){case 1:case 2:l=n.m,c=e.length;break;case 3:return lU[n.m-1][1];case 5:return lU[n.m-1][0];default:return lU[n.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=n.d,c=e.length;break;case 3:return ole[n.q][0];default:return ole[n.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(n.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=n.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=n.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return n.u===0&&(e=="s"||e=="ss")?Ch(n.S,e.length):(r>=2?s=r===3?1e3:100:s=r===1?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),e==="s"?a===0?"0":""+a/s:(i=Ch(a,2+r),e==="ss"?i.substr(0,2):"."+i.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=n.D*24+n.H;break;case"[m]":case"[mm]":l=(n.D*24+n.H)*60+n.M;break;case"[s]":case"[ss]":l=((n.D*24+n.H)*60+n.M)*60+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+e}c=e.length===3?1:2;break;case 101:l=o,c=1;break}var u=c>0?Ch(l,c):"";return u}function Ag(t){var e=3;if(t.length<=e)return t;for(var n=t.length%e,r=t.substr(0,n);n!=t.length;n+=e)r+=(r.length>0?",":"")+t.substr(n,e);return r}var k3e=/%/g;function xTt(t,e,n){var r=e.replace(k3e,""),i=e.length-r.length;return p2(t,r,n*Math.pow(10,2*i))+lo("%",i)}function vTt(t,e,n){for(var r=e.length-1;e.charCodeAt(r-1)===44;)--r;return p2(t,e.substr(0,r),n/Math.pow(10,3*(e.length-r)))}function L3e(t,e){var n,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+L3e(t,-e);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),n=(e/Math.pow(10,a)).toPrecision(r+1+(i+a)%i),n.indexOf("e")===-1){var s=Math.floor(Math.log(e)*Math.LOG10E);
vendor: 5,055 bytes, line 5587
5587for(n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a);n.substr(0,2)==="0.";)n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else n=e.toExponential(r);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var O3e=/# (\?+)( ?)\/( ?)(\d+)/;function yTt(t,e,n){var r=parseInt(t[4],10),i=Math.round(e*r),a=Math.floor(i/r),s=i-a*r,o=r;return n+(a===0?"":""+a)+" "+(s===0?lo(" ",t[1].length+1+t[4].length):fY(s,t[1].length)+t[2]+"/"+t[3]+Ch(o,t[4].length))}function _Tt(t,e,n){return n+(e===0?"":""+e)+lo(" ",t[1].length+2+t[4].length)}var F3e=/^#*0*\.([0#]+)/,I3e=/\).*[0#]/,B3e=/\(###\) ###\\?-####/;function Su(t){for(var e="",n,r=0;r!=t.length;++r)switch(n=t.charCodeAt(r)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(n)}return e}function cle(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}function ule(t,e){var n=t-Math.floor(t),r=Math.pow(10,e);return e<(""+Math.round(n*r)).length?0:Math.round(n*r)}function bTt(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function wTt(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Xf(t,e,n){if(t.charCodeAt(0)===40&&!e.match(I3e)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Xf("n",r,n):"("+Xf("n",r,-n)+")"}if(e.charCodeAt(e.length-1)===44)return vTt(t,e,n);if(e.indexOf("%")!==-1)return xTt(t,e,n);if(e.indexOf("E")!==-1)return L3e(e,n);if(e.charCodeAt(0)===36)return"$"+Xf(t,e.substr(e.charAt(1)==" "?2:1),n);var i,a,s,o,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+w8(l,e.length);if(e.match(/^[#?]+$/))return i=w8(n,0),i==="0"&&(i=""),i.length>e.length?i:Su(e.substr(0,e.length-i.length))+i;if(a=e.match(O3e))return yTt(a,l,c);if(e.match(/^#+0+$/))return c+w8(l,e.length-e.indexOf("0"));if(a=e.match(F3e))return i=cle(n,a[1].length).replace(/^([^\.]+)$/,"$1."+Su(a[1])).replace(/\.$/,"."+Su(a[1])).replace(/\.(\d*)$/,function(A,g){return"."+g+lo("0",Su(a[1]).length-g.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return c+cle(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return c+Ag(w8(l,0));if(a=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Xf(t,e,-n):Ag(""+(Math.floor(n)+bTt(n,a[1].length)))+"."+Ch(ule(n,a[1].length),a[1].length);if(a=e.match(/^#,#*,#0/))return Xf(t,e.replace(/^#,#*,/,""),n);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=T3(Xf(t,e.replace(/[\\-]/g,""),n)),s=0,T3(T3(e.replace(/\\/g,"")).replace(/[0#]/g,function(A){return s<i.length?i.charAt(s++):A==="0"?"0":""}));if(e.match(B3e))return i=Xf(t,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=kD(l,Math.pow(10,s)-1,!1),i=""+c,u=p2("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=DD(o[2],s),u.length<a[4].length&&(u=Su(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=kD(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?fY(o[1],s)+a[2]+"/"+a[3]+DD(o[2],s):lo(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=w8(n,0),e.length<=i.length?i:Su(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0?]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var f=e.indexOf(".")-s,h=e.length-i.length-f;return Su(e.substr(0,f)+i+e.substr(e.length-h))}if(a=e.match(/^00,000\.([#0]*0)$/))return s=ule(n,a[1].length),n<0?"-"+Xf(t,e,-n):Ag(wTt(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(A){return"00,"+(A.length<3?Ch(0,3-A.length):"")+A})+"."+Ch(s,a[1].length);switch(e){case"###,##0.00":return Xf(t,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var p=Ag(w8(l,0));return p!=="0"?c+p:"";case"###,###.00":return Xf(t,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Xf(t,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function STt(t,e,n){for(var r=e.length-1;e.charCodeAt(r-1)===44;)--r;return p2(t,e.substr(0,r),n/Math.pow(10,3*(e.length-r)))}function TTt(t,e,n){var r=e.replace(k3e,""),i=e.length-r.length;return p2(t,r,n*Math.pow(10,2*i))+lo("%",i)}function U3e(t,e){var n,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+U3e(t,-e);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),n=(e/Math.pow(10,a)).toPrecision(r+1+(i+a)%i),!n.match(/[Ee]/)){var s=Math.floor(Math.log(e)*Math.LOG10E);
vendor: 8,422 bytes, line 5587
5587n.indexOf(".")===-1?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else n=e.toExponential(r);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function T1(t,e,n){if(t.charCodeAt(0)===40&&!e.match(I3e)){var r=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?T1("n",r,n):"("+T1("n",r,-n)+")"}if(e.charCodeAt(e.length-1)===44)return STt(t,e,n);if(e.indexOf("%")!==-1)return TTt(t,e,n);if(e.indexOf("E")!==-1)return U3e(e,n);if(e.charCodeAt(0)===36)return"$"+T1(t,e.substr(e.charAt(1)==" "?2:1),n);var i,a,s,o,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+Ch(l,e.length);if(e.match(/^[#?]+$/))return i=""+n,n===0&&(i=""),i.length>e.length?i:Su(e.substr(0,e.length-i.length))+i;if(a=e.match(O3e))return _Tt(a,l,c);if(e.match(/^#+0+$/))return c+Ch(l,e.length-e.indexOf("0"));if(a=e.match(F3e))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Su(a[1])).replace(/\.$/,"."+Su(a[1])),i=i.replace(/\.(\d*)$/,function(A,g){return"."+g+lo("0",Su(a[1]).length-g.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return c+Ag(""+l);if(a=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+T1(t,e,-n):Ag(""+n)+"."+lo("0",a[1].length);if(a=e.match(/^#,#*,#0/))return T1(t,e.replace(/^#,#*,/,""),n);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=T3(T1(t,e.replace(/[\\-]/g,""),n)),s=0,T3(T3(e.replace(/\\/g,"")).replace(/[0#]/g,function(A){return s<i.length?i.charAt(s++):A==="0"?"0":""}));if(e.match(B3e))return i=T1(t,"##########",n),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=kD(l,Math.pow(10,s)-1,!1),i=""+c,u=p2("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=DD(o[2],s),u.length<a[4].length&&(u=Su(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=kD(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?fY(o[1],s)+a[2]+"/"+a[3]+DD(o[2],s):lo(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=""+n,e.length<=i.length?i:Su(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0]+)\.([#0]+)$/)){i=""+n.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var f=e.indexOf(".")-s,h=e.length-i.length-f;return Su(e.substr(0,f)+i+e.substr(e.length-h))}if(a=e.match(/^00,000\.([#0]*0)$/))return n<0?"-"+T1(t,e,-n):Ag(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(A){return"00,"+(A.length<3?Ch(0,3-A.length):"")+A})+"."+Ch(0,a[1].length);switch(e){case"###,###":case"##,###":case"#,###":var p=Ag(""+l);return p!=="0"?c+p:"";default:if(e.match(/\.[0#?]*$/))return T1(t,e.slice(0,e.lastIndexOf(".")),n)+Su(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function p2(t,e,n){return(n|0)===n?T1(t,e,n):Xf(t,e,n)}function ETt(t){for(var e=[],n=!1,r=0,i=0;r<t.length;++r)switch(t.charCodeAt(r)){case 34:n=!n;break;case 95:case 42:case 92:++r;break;case 59:e[e.length]=t.substr(i,r-i),i=r+1}if(e[e.length]=t.substr(i),n===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var V3e=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function M6(t){for(var e=0,n="",r="";e<t.length;)switch(n=t.charAt(e)){case"G":PD(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"ä¸":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="ä¸å/ä¸å")return!0;++e;break;case"[":for(r=n;t.charAt(e++)!=="]"&&e<t.length;)r+=t.charAt(e);if(r.match(V3e))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(n=t.charAt(++e))>-1||n=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===n;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function MTt(t,e,n,r){for(var i=[],a="",s=0,o="",l="t",c,u,f,h="H";s<t.length;)switch(o=t.charAt(s)){case"G":if(!PD(t,s))throw new Error("unrecognized character "+o+" in "+t);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(f=t.charCodeAt(++s))!==34&&s<t.length;)a+=String.fromCharCode(f);i[i.length]={t:"t",v:a},++s;break;case"\\":var p=t.charAt(++s),A=p==="("||p===")"?p:"t";i[i.length]={t:A,v:p},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:e},++s;break;case"B":case"b":if(t.charAt(s+1)==="1"||t.charAt(s+1)==="2"){if(c==null&&(c=Ov(e,n,t.charAt(s+1)==="2"),c==null))return"";i[i.length]={t:"X",v:t.substr(s,2)},l=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||c==null&&(c=Ov(e,n),c==null))return"";for(a=o;++s<t.length&&t.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=h),i[i.length]={t:o,v:a},l=o;break;case"A":case"a":case"ä¸":var g={t:o,v:o};if(c==null&&(c=Ov(e,n)),t.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(g.v=c.H>=12?"P":"A"),g.t="T",h="h",s+=3):t.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(g.v=c.H>=12?"PM":"AM"),g.t="T",s+=5,h="h"):t.substr(s,5).toUpperCase()==="ä¸å/ä¸å"?(c!=null&&(g.v=c.H>=12?"ä¸å":"ä¸å"),g.t="T",s+=5,h="h"):(g.t="t",++s),c==null&&g.t==="T")return"";i[i.length]=g,l=o;break;case"[":for(a=o;t.charAt(s++)!=="]"&&s<t.length;)a+=t.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(V3e)){if(c==null&&(c=Ov(e,n),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",M6(t)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=o;++s<t.length&&(o=t.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<t.length&&"0#?.,E+-%".indexOf(o=t.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;t.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},l=o;break;case"*":++s,(t.charAt(s)==" "||t.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:r===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<t.length&&"0123456789".indexOf(t.charAt(++s))>-1;)a+=t.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=â¬acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+t);i[i.length]={t:"t",v:o},++s;break}var w=0,T=0,C;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=h,l="h",w<1&&(w=1);break;case"s":(C=i[s].v.match(/\.0+$/))&&(T=Math.max(T,C[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&i[s].v.match(/[Hh]/)&&(w=1),w<2&&i[s].v.match(/[Mm]/)&&(w=2),w<3&&i[s].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var M="",D;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=gTt(i[s].t.charCodeAt(0),i[s].v,c,T),i[s].t="t";break;case"n":case"?":for(D=s+1;i[D]!=null&&((o=i[D].t)==="?"||o==="D"||(o===" "||o==="t")&&i[D+1]!=null&&(i[D+1].t==="?"||i[D+1].t==="t"&&i[D+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[D].v==="/"||i[D].v===" "&&i[D+1]!=null&&i[D+1].t=="?"));
vendor: 4,470 bytes, line 5587
5587)i[s].v+=i[D].v,i[D]={v:"",t:";"},++D;M+=i[s].v,s=D-1;break;case"G":i[s].t="t",i[s].v=Ey(e,n);break}var k="",I,L;if(M.length>0){M.charCodeAt(0)==40?(I=e<0&&M.charCodeAt(0)===45?-e:e,L=p2("n",M,I)):(I=e<0&&r>1?-e:e,L=p2("n",M,I),I<0&&i[0]&&i[0].t=="t"&&(L=L.substr(1),i[0].v="-"+i[0].v)),D=L.length-1;var O=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){O=s;break}var B=i.length;if(O===i.length&&L.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(D>=i[s].v.length-1?(D-=i[s].v.length,i[s].v=L.substr(D+1,i[s].v.length)):D<0?i[s].v="":(i[s].v=L.substr(0,D+1),D=-1),i[s].t="t",B=s);D>=0&&B<i.length&&(i[B].v=L.substr(0,D+1)+i[B].v)}else if(O!==i.length&&L.indexOf("E")===-1){for(D=L.indexOf(".")-1,s=O;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(u=i[s].v.indexOf(".")>-1&&s===O?i[s].v.indexOf(".")-1:i[s].v.length-1,k=i[s].v.substr(u+1);u>=0;--u)D>=0&&(i[s].v.charAt(u)==="0"||i[s].v.charAt(u)==="#")&&(k=L.charAt(D--)+k);i[s].v=k,i[s].t="t",B=s}for(D>=0&&B<i.length&&(i[B].v=L.substr(0,D+1)+i[B].v),D=L.indexOf(".")+1,s=O;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==O)){for(u=i[s].v.indexOf(".")>-1&&s===O?i[s].v.indexOf(".")+1:0,k=i[s].v.substr(0,u);u<i[s].v.length;++u)D<L.length&&(k+=L.charAt(D++));i[s].v=k,i[s].t="t",B=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(I=r>1&&e<0&&s>0&&i[s-1].v==="-"?-e:e,i[s].v=p2(i[s].t,i[s].v,I),i[s].t="t");var G="";for(s=0;s!==i.length;++s)i[s]!=null&&(G+=i[s].v);return G}var fle=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function dle(t,e){if(e==null)return!1;var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return!0;break;case">":if(t>n)return!0;break;case"<":if(t<n)return!0;break;case"<>":if(t!=n)return!0;break;case">=":if(t>=n)return!0;break;case"<=":if(t<=n)return!0;break}return!1}function CTt(t,e){var n=ETt(t),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if(typeof e!="number")return[4,n.length===4||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break}var a=e>0?n[0]:e<0?n[1]:n[2];if(n[0].indexOf("[")===-1&&n[1].indexOf("[")===-1)return[r,a];if(n[0].match(/\[[=<>]/)!=null||n[1].match(/\[[=<>]/)!=null){var s=n[0].match(fle),o=n[1].match(fle);return dle(e,s)?[r,n[0]]:dle(e,o)?[r,n[1]]:[r,n[s!=null&&o!=null?2:1]]}return[r,a]}function Nd(t,e,n){n==null&&(n={});var r="";switch(typeof t){case"string":t=="m/d/yy"&&n.dateNF?r=n.dateNF:r=t;break;case"number":t==14&&n.dateNF?r=n.dateNF:r=(n.table!=null?n.table:ai)[t],r==null&&(r=n.table&&n.table[lle[t]]||ai[lle[t]]),r==null&&(r=uTt[t]||"General");break}if(PD(r,0))return Ey(e,n);e instanceof Date&&(e=P3e(e,n.date1904));var i=CTt(r,e);if(PD(i[1]))return Ey(e,n);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return MTt(i[1],e,n,i[0])}function iy(t,e){if(typeof e!="number"){e=+e||-1;for(var n=0;n<392;++n){if(ai[n]==null){e<0&&(e=n);continue}if(ai[n]==t){e=n;break}}e<0&&(e=391)}return ai[e]=t,e}function j3e(){ai=cTt()}var NTt={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},H3e=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function RTt(t){var e=typeof t=="number"?ai[t]:t;return e=e.replace(H3e,"(\\d+)"),new RegExp("^"+e+"$")}function DTt(t,e,n){var r=-1,i=-1,a=-1,s=-1,o=-1,l=-1;
vendor: 21,041 bytes, line 5587
5587(e.match(H3e)||[]).forEach(function(f,h){var p=parseInt(n[h+1],10);switch(f.toLowerCase().charAt(0)){case"y":r=p;break;case"d":a=p;break;case"h":s=p;break;case"s":l=p;break;case"m":s>=0?o=p:i=p;break}}),l>=0&&o==-1&&i>=0&&(o=i,i=-1);var c=(""+(r>=0?r:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&o==-1&&l==-1?c:r==-1&&i==-1&&a==-1?u:c+"T"+u}var PTt=(function(){var t={};t.version="1.2.0";function e(){for(var L=0,O=new Array(256),B=0;B!=256;++B)L=B,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,O[B]=L;return typeof Int32Array<"u"?new Int32Array(O):O}var n=e();function r(L){var O=0,B=0,G=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)j[G]=L[G];for(G=0;G!=256;++G)for(B=L[G],O=256+G;O<4096;O+=256)B=j[O]=B>>>8^L[B&255];var z=[];for(G=1;G!=16;++G)z[G-1]=typeof Int32Array<"u"?j.subarray(G*256,G*256+256):j.slice(G*256,G*256+256);return z}var i=r(n),a=i[0],s=i[1],o=i[2],l=i[3],c=i[4],u=i[5],f=i[6],h=i[7],p=i[8],A=i[9],g=i[10],w=i[11],T=i[12],C=i[13],M=i[14];function D(L,O){for(var B=O^-1,G=0,j=L.length;G<j;)B=B>>>8^n[(B^L.charCodeAt(G++))&255];return~B}function k(L,O){for(var B=O^-1,G=L.length-15,j=0;j<G;)B=M[L[j++]^B&255]^C[L[j++]^B>>8&255]^T[L[j++]^B>>16&255]^w[L[j++]^B>>>24]^g[L[j++]]^A[L[j++]]^p[L[j++]]^h[L[j++]]^f[L[j++]]^u[L[j++]]^c[L[j++]]^l[L[j++]]^o[L[j++]]^s[L[j++]]^a[L[j++]]^n[L[j++]];for(G+=15;j<G;)B=B>>>8^n[(B^L[j++])&255];return~B}function I(L,O){for(var B=O^-1,G=0,j=L.length,z=0,Q=0;G<j;)z=L.charCodeAt(G++),z<128?B=B>>>8^n[(B^z)&255]:z<2048?(B=B>>>8^n[(B^(192|z>>6&31))&255],B=B>>>8^n[(B^(128|z&63))&255]):z>=55296&&z<57344?(z=(z&1023)+64,Q=L.charCodeAt(G++)&1023,B=B>>>8^n[(B^(240|z>>8&7))&255],B=B>>>8^n[(B^(128|z>>2&63))&255],B=B>>>8^n[(B^(128|Q>>6&15|(z&3)<<4))&255],B=B>>>8^n[(B^(128|Q&63))&255]):(B=B>>>8^n[(B^(224|z>>12&15))&255],B=B>>>8^n[(B^(128|z>>6&63))&255],B=B>>>8^n[(B^(128|z&63))&255]);return~B}return t.table=n,t.bstr=D,t.buf=k,t.str=I,t})(),$i=(function(){var e={};e.version="1.2.1";function n(W,Te){for(var _e=W.split("/"),be=Te.split("/"),xe=0,we=0,tt=Math.min(_e.length,be.length);xe<tt;++xe){if(we=_e[xe].length-be[xe].length)return we;if(_e[xe]!=be[xe])return _e[xe]<be[xe]?-1:1}return _e.length-be.length}function r(W){if(W.charAt(W.length-1)=="/")return W.slice(0,-1).indexOf("/")===-1?W:r(W.slice(0,-1));var Te=W.lastIndexOf("/");return Te===-1?W:W.slice(0,Te+1)}function i(W){if(W.charAt(W.length-1)=="/")return i(W.slice(0,-1));var Te=W.lastIndexOf("/");return Te===-1?W:W.slice(Te+1)}function a(W,Te){typeof Te=="string"&&(Te=new Date(Te));var _e=Te.getHours();_e=_e<<6|Te.getMinutes(),_e=_e<<5|Te.getSeconds()>>>1,W.write_shift(2,_e);var be=Te.getFullYear()-1980;be=be<<4|Te.getMonth()+1,be=be<<5|Te.getDate(),W.write_shift(2,be)}function s(W){var Te=W.read_shift(2)&65535,_e=W.read_shift(2)&65535,be=new Date,xe=_e&31;_e>>>=5;var we=_e&15;_e>>>=4,be.setMilliseconds(0),be.setFullYear(_e+1980),be.setMonth(we-1),be.setDate(xe);var tt=Te&31;Te>>>=5;var ot=Te&63;return Te>>>=6,be.setHours(Te),be.setMinutes(ot),be.setSeconds(tt<<1),be}function o(W){ic(W,0);for(var Te={},_e=0;W.l<=W.length-4;){var be=W.read_shift(2),xe=W.read_shift(2),we=W.l+xe,tt={};be===21589&&(_e=W.read_shift(1),_e&1&&(tt.mtime=W.read_shift(4)),xe>5&&(_e&2&&(tt.atime=W.read_shift(4)),_e&4&&(tt.ctime=W.read_shift(4))),tt.mtime&&(tt.mt=new Date(tt.mtime*1e3))),W.l=we,Te[be]=tt}return Te}var l;function c(){return l||(l={})}function u(W,Te){if(W[0]==80&&W[1]==75)return yn(W,Te);if((W[0]|32)==109&&(W[1]|32)==105)return Gt(W,Te);if(W.length<512)throw new Error("CFB file size "+W.length+" < 512");var _e=3,be=512,xe=0,we=0,tt=0,ot=0,ze=0,Ke=[],rt=W.slice(0,512);ic(rt,0);var Rt=f(rt);switch(_e=Rt[0],_e){case 3:be=512;break;case 4:be=4096;break;case 0:if(Rt[1]==0)return yn(W,Te);default:throw new Error("Major Version: Expected 3 or 4 saw "+_e)}be!==512&&(rt=W.slice(0,be),ic(rt,28));var Xt=W.slice(0,be);h(rt,_e);var rn=rt.read_shift(4,"i");if(_e===3&&rn!==0)throw new Error("# Directory Sectors: Expected 0 saw "+rn);rt.l+=4,tt=rt.read_shift(4,"i"),rt.l+=4,rt.chk("00100000","Mini Stream Cutoff Size: "),ot=rt.read_shift(4,"i"),xe=rt.read_shift(4,"i"),ze=rt.read_shift(4,"i"),we=rt.read_shift(4,"i");for(var en=-1,Qt=0;Qt<109&&(en=rt.read_shift(4,"i"),!(en<0));++Qt)Ke[Qt]=en;var sn=p(W,be);w(ze,we,sn,be,Ke);var ur=C(sn,tt,Ke,be);ur[tt].name="!Directory",xe>0&&ot!==Q&&(ur[ot].name="!MiniFAT"),ur[Ke[0]].name="!FAT",ur.fat_addrs=Ke,ur.ssz=be;var ye={},He=[],ue=[],Ze=[];M(tt,ur,sn,He,xe,ye,ue,ot),A(ue,Ze,He),He.shift();var yt={FileIndex:ue,FullPaths:Ze};return Te&&Te.raw&&(yt.raw={header:Xt,sectors:sn}),yt}function f(W){if(W[W.l]==80&&W[W.l+1]==75)return[0,0];W.chk(ee,"Header Signature: "),W.l+=16;var Te=W.read_shift(2,"u");return[W.read_shift(2,"u"),Te]}function h(W,Te){var _e=9;switch(W.l+=2,_e=W.read_shift(2)){case 9:if(Te!=3)throw new Error("Sector Shift: Expected 9 saw "+_e);break;case 12:if(Te!=4)throw new Error("Sector Shift: Expected 12 saw "+_e);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+_e)}W.chk("0600","Mini Sector Shift: "),W.chk("000000000000","Reserved: ")}function p(W,Te){for(var _e=Math.ceil(W.length/Te)-1,be=[],xe=1;xe<_e;++xe)be[xe-1]=W.slice(xe*Te,(xe+1)*Te);return be[_e-1]=W.slice(_e*Te),be}function A(W,Te,_e){for(var be=0,xe=0,we=0,tt=0,ot=0,ze=_e.length,Ke=[],rt=[];be<ze;++be)Ke[be]=rt[be]=be,Te[be]=_e[be];for(;ot<rt.length;++ot)be=rt[ot],xe=W[be].L,we=W[be].R,tt=W[be].C,Ke[be]===be&&(xe!==-1&&Ke[xe]!==xe&&(Ke[be]=Ke[xe]),we!==-1&&Ke[we]!==we&&(Ke[be]=Ke[we])),tt!==-1&&(Ke[tt]=be),xe!==-1&&be!=Ke[be]&&(Ke[xe]=Ke[be],rt.lastIndexOf(xe)<ot&&rt.push(xe)),we!==-1&&be!=Ke[be]&&(Ke[we]=Ke[be],rt.lastIndexOf(we)<ot&&rt.push(we));for(be=1;be<ze;++be)Ke[be]===be&&(we!==-1&&Ke[we]!==we?Ke[be]=Ke[we]:xe!==-1&&Ke[xe]!==xe&&(Ke[be]=Ke[xe]));for(be=1;be<ze;++be)if(W[be].type!==0){if(ot=be,ot!=Ke[ot])do ot=Ke[ot],Te[be]=Te[ot]+"/"+Te[be];while(ot!==0&&Ke[ot]!==-1&&ot!=Ke[ot]);Ke[be]=-1}for(Te[0]+="/",be=1;be<ze;++be)W[be].type!==2&&(Te[be]+="/")}function g(W,Te,_e){for(var be=W.start,xe=W.size,we=[],tt=be;_e&&xe>0&&tt>=0;)we.push(Te.slice(tt*z,tt*z+z)),xe-=z,tt=gv(_e,tt*4);return we.length===0?hl(0):YA(we).slice(0,W.size)}function w(W,Te,_e,be,xe){var we=Q;if(W===Q){if(Te!==0)throw new Error("DIFAT chain shorter than expected")}else if(W!==-1){var tt=_e[W],ot=(be>>>2)-1;if(!tt)return;for(var ze=0;ze<ot&&(we=gv(tt,ze*4))!==Q;++ze)xe.push(we);w(gv(tt,be-4),Te-1,_e,be,xe)}}function T(W,Te,_e,be,xe){var we=[],tt=[];xe||(xe=[]);var ot=be-1,ze=0,Ke=0;for(ze=Te;ze>=0;){xe[ze]=!0,we[we.length]=ze,tt.push(W[ze]);var rt=_e[Math.floor(ze*4/be)];if(Ke=ze*4&ot,be<4+Ke)throw new Error("FAT boundary crossed: "+ze+" 4 "+be);if(!W[rt])break;ze=gv(W[rt],Ke)}return{nodes:we,data:ble([tt])}}function C(W,Te,_e,be){var xe=W.length,we=[],tt=[],ot=[],ze=[],Ke=be-1,rt=0,Rt=0,Xt=0,rn=0;for(rt=0;rt<xe;++rt)if(ot=[],Xt=rt+Te,Xt>=xe&&(Xt-=xe),!tt[Xt]){ze=[];var en=[];for(Rt=Xt;Rt>=0;){en[Rt]=!0,tt[Rt]=!0,ot[ot.length]=Rt,ze.push(W[Rt]);var Qt=_e[Math.floor(Rt*4/be)];if(rn=Rt*4&Ke,be<4+rn)throw new Error("FAT boundary crossed: "+Rt+" 4 "+be);if(!W[Qt]||(Rt=gv(W[Qt],rn),en[Rt]))break}we[Xt]={nodes:ot,data:ble([ze])}}return we}function M(W,Te,_e,be,xe,we,tt,ot){for(var ze=0,Ke=be.length?2:0,rt=Te[W].data,Rt=0,Xt=0,rn;Rt<rt.length;Rt+=128){var en=rt.slice(Rt,Rt+128);ic(en,64),Xt=en.read_shift(2),rn=gY(en,0,Xt-Ke),be.push(rn);var Qt={name:rn,type:en.read_shift(1),color:en.read_shift(1),L:en.read_shift(4,"i"),R:en.read_shift(4,"i"),C:en.read_shift(4,"i"),clsid:en.read_shift(16),state:en.read_shift(4,"i"),start:0,size:0},sn=en.read_shift(2)+en.read_shift(2)+en.read_shift(2)+en.read_shift(2);sn!==0&&(Qt.ct=D(en,en.l-8));var ur=en.read_shift(2)+en.read_shift(2)+en.read_shift(2)+en.read_shift(2);ur!==0&&(Qt.mt=D(en,en.l-8)),Qt.start=en.read_shift(4,"i"),Qt.size=en.read_shift(4,"i"),Qt.size<0&&Qt.start<0&&(Qt.size=Qt.type=0,Qt.start=Q,Qt.name=""),Qt.type===5?(ze=Qt.start,xe>0&&ze!==Q&&(Te[ze].name="!StreamData")):Qt.size>=4096?(Qt.storage="fat",Te[Qt.start]===void 0&&(Te[Qt.start]=T(_e,Qt.start,Te.fat_addrs,Te.ssz)),Te[Qt.start].name=Qt.name,Qt.content=Te[Qt.start].data.slice(0,Qt.size)):(Qt.storage="minifat",Qt.size<0?Qt.size=0:ze!==Q&&Qt.start!==Q&&Te[ze]&&(Qt.content=g(Qt,Te[ze].data,(Te[ot]||{}).data))),Qt.content&&ic(Qt.content,0),we[rn]=Qt,tt.push(Qt)}}function D(W,Te){return new Date((ff(W,Te+4)/1e7*Math.pow(2,32)+ff(W,Te)/1e7-11644473600)*1e3)}function k(W,Te){return c(),u(l.readFileSync(W),Te)}function I(W,Te){var _e=Te&&Te.type;switch(_e||Hi&&Buffer.isBuffer(W)&&(_e="buffer"),_e||"base64"){case"file":return k(W,Te);case"base64":return u(_h(Cf(W)),Te);case"binary":return u(_h(W),Te)}return u(W,Te)}function L(W,Te){var _e=Te||{},be=_e.root||"Root Entry";if(W.FullPaths||(W.FullPaths=[]),W.FileIndex||(W.FileIndex=[]),W.FullPaths.length!==W.FileIndex.length)throw new Error("inconsistent CFB structure");W.FullPaths.length===0&&(W.FullPaths[0]=be+"/",W.FileIndex[0]={name:be,type:5}),_e.CLSID&&(W.FileIndex[0].clsid=_e.CLSID),O(W)}function O(W){var Te="�Sh33tJ5";if(!$i.find(W,"/"+Te)){var _e=hl(4);_e[0]=55,_e[1]=_e[3]=50,_e[2]=54,W.FileIndex.push({name:Te,type:2,content:_e,size:4,L:69,R:69,C:69}),W.FullPaths.push(W.FullPaths[0]+Te),B(W)}}function B(W,Te){L(W);for(var _e=!1,be=!1,xe=W.FullPaths.length-1;xe>=0;--xe){var we=W.FileIndex[xe];switch(we.type){case 0:be?_e=!0:(W.FileIndex.pop(),W.FullPaths.pop());break;case 1:case 2:case 5:be=!0,isNaN(we.R*we.L*we.C)&&(_e=!0),we.R>-1&&we.L>-1&&we.R==we.L&&(_e=!0);break;default:_e=!0;break}}if(!(!_e&&!Te)){var tt=new Date(1987,1,19),ot=0,ze=Object.create?Object.create(null):{},Ke=[];for(xe=0;xe<W.FullPaths.length;++xe)ze[W.FullPaths[xe]]=!0,W.FileIndex[xe].type!==0&&Ke.push([W.FullPaths[xe],W.FileIndex[xe]]);for(xe=0;xe<Ke.length;++xe){var rt=r(Ke[xe][0]);be=ze[rt],be||(Ke.push([rt,{name:i(rt).replace("/",""),type:1,clsid:X,ct:tt,mt:tt,content:null}]),ze[rt]=!0)}for(Ke.sort(function(rn,en){return n(rn[0],en[0])}),W.FullPaths=[],W.FileIndex=[],xe=0;xe<Ke.length;++xe)W.FullPaths[xe]=Ke[xe][0],W.FileIndex[xe]=Ke[xe][1];for(xe=0;xe<Ke.length;++xe){var Rt=W.FileIndex[xe],Xt=W.FullPaths[xe];if(Rt.name=i(Xt).replace("/",""),Rt.L=Rt.R=Rt.C=-(Rt.color=1),Rt.size=Rt.content?Rt.content.length:0,Rt.start=0,Rt.clsid=Rt.clsid||X,xe===0)Rt.C=Ke.length>1?1:-1,Rt.size=0,Rt.type=5;else if(Xt.slice(-1)=="/"){for(ot=xe+1;ot<Ke.length&&r(W.FullPaths[ot])!=Xt;++ot);for(Rt.C=ot>=Ke.length?-1:ot,ot=xe+1;ot<Ke.length&&r(W.FullPaths[ot])!=r(Xt);++ot);Rt.R=ot>=Ke.length?-1:ot,Rt.type=1}else r(W.FullPaths[xe+1]||"")==r(Xt)&&(Rt.R=xe+1),Rt.type=2}}}function G(W,Te){var _e=Te||{};if(_e.fileType=="mad")return hn(W,_e);if(B(W),_e.fileType==="zip")return Ge(W,_e);var be=(function(rn){for(var en=0,Qt=0,sn=0;sn<rn.FileIndex.length;++sn){var ur=rn.FileIndex[sn];if(ur.content){var ye=ur.content.length;ye>0&&(ye<4096?en+=ye+63>>6:Qt+=ye+511>>9)}}for(var He=rn.FullPaths.length+3>>2,ue=en+7>>3,Ze=en+127>>7,yt=ue+Qt+He+Ze,_n=yt+127>>7,Sn=_n<=109?0:Math.ceil((_n-109)/127);yt+_n+Sn+127>>7>_n;)Sn=++_n<=109?0:Math.ceil((_n-109)/127);var pn=[1,Sn,_n,Ze,He,Qt,en,0];return rn.FileIndex[0].size=en<<6,pn[7]=(rn.FileIndex[0].start=pn[0]+pn[1]+pn[2]+pn[3]+pn[4]+pn[5])+(pn[6]+7>>3),pn})(W),xe=hl(be[7]<<9),we=0,tt=0;{for(we=0;we<8;++we)xe.write_shift(1,Z[we]);for(we=0;we<8;++we)xe.write_shift(2,0);for(xe.write_shift(2,62),xe.write_shift(2,3),xe.write_shift(2,65534),xe.write_shift(2,9),xe.write_shift(2,6),we=0;we<3;++we)xe.write_shift(2,0);for(xe.write_shift(4,0),xe.write_shift(4,be[2]),xe.write_shift(4,be[0]+be[1]+be[2]+be[3]-1),xe.write_shift(4,0),xe.write_shift(4,4096),xe.write_shift(4,be[3]?be[0]+be[1]+be[2]-1:Q),xe.write_shift(4,be[3]),xe.write_shift(-4,be[1]?be[0]-1:Q),xe.write_shift(4,be[1]),we=0;we<109;++we)xe.write_shift(-4,we<be[2]?be[1]+we:-1)}if(be[1])for(tt=0;tt<be[1];++tt){for(;we<236+tt*127;++we)xe.write_shift(-4,we<be[2]?be[1]+we:-1);xe.write_shift(-4,tt===be[1]-1?Q:tt+1)}var ot=function(rn){for(tt+=rn;we<tt-1;++we)xe.write_shift(-4,we+1);rn&&(++we,xe.write_shift(-4,Q))};for(tt=we=0,tt+=be[1];we<tt;++we)xe.write_shift(-4,K.DIFSECT);for(tt+=be[2];we<tt;++we)xe.write_shift(-4,K.FATSECT);ot(be[3]),ot(be[4]);for(var ze=0,Ke=0,rt=W.FileIndex[0];ze<W.FileIndex.length;++ze)rt=W.FileIndex[ze],rt.content&&(Ke=rt.content.length,!(Ke<4096)&&(rt.start=tt,ot(Ke+511>>9)));for(ot(be[6]+7>>3);xe.l&511;)xe.write_shift(-4,K.ENDOFCHAIN);for(tt=we=0,ze=0;ze<W.FileIndex.length;++ze)rt=W.FileIndex[ze],rt.content&&(Ke=rt.content.length,!(!Ke||Ke>=4096)&&(rt.start=tt,ot(Ke+63>>6)));for(;xe.l&511;)xe.write_shift(-4,K.ENDOFCHAIN);for(we=0;we<be[4]<<2;++we){var Rt=W.FullPaths[we];if(!Rt||Rt.length===0){for(ze=0;ze<17;++ze)xe.write_shift(4,0);for(ze=0;ze<3;++ze)xe.write_shift(4,-1);for(ze=0;ze<12;++ze)xe.write_shift(4,0);continue}rt=W.FileIndex[we],we===0&&(rt.start=rt.size?rt.start-1:Q);var Xt=we===0&&_e.root||rt.name;if(Ke=2*(Xt.length+1),xe.write_shift(64,Xt,"utf16le"),xe.write_shift(2,Ke),xe.write_shift(1,rt.type),xe.write_shift(1,rt.color),xe.write_shift(-4,rt.L),xe.write_shift(-4,rt.R),xe.write_shift(-4,rt.C),rt.clsid)xe.write_shift(16,rt.clsid,"hex");else for(ze=0;ze<4;++ze)xe.write_shift(4,0);xe.write_shift(4,rt.state||0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,rt.start),xe.write_shift(4,rt.size),xe.write_shift(4,0)}for(we=1;we<W.FileIndex.length;++we)if(rt=W.FileIndex[we],rt.size>=4096)if(xe.l=rt.start+1<<9,Hi&&Buffer.isBuffer(rt.content))rt.content.copy(xe,xe.l,0,rt.size),xe.l+=rt.size+511&-512;else{for(ze=0;ze<rt.size;++ze)xe.write_shift(1,rt.content[ze]);for(;ze&511;++ze)xe.write_shift(1,0)}for(we=1;we<W.FileIndex.length;++we)if(rt=W.FileIndex[we],rt.size>0&&rt.size<4096)if(Hi&&Buffer.isBuffer(rt.content))rt.content.copy(xe,xe.l,0,rt.size),xe.l+=rt.size+63&-64;else{for(ze=0;ze<rt.size;++ze)xe.write_shift(1,rt.content[ze]);for(;ze&63;++ze)xe.write_shift(1,0)}if(Hi)xe.l=xe.length;else for(;xe.l<xe.length;)xe.write_shift(1,0);return xe}function j(W,Te){var _e=W.FullPaths.map(function(ze){return ze.toUpperCase()}),be=_e.map(function(ze){var Ke=ze.split("/");return Ke[Ke.length-(ze.slice(-1)=="/"?2:1)]}),xe=!1;Te.charCodeAt(0)===47?(xe=!0,Te=_e[0].slice(0,-1)+Te):xe=Te.indexOf("/")!==-1;var we=Te.toUpperCase(),tt=xe===!0?_e.indexOf(we):be.indexOf(we);if(tt!==-1)return W.FileIndex[tt];var ot=!we.match(Hw);for(we=we.replace(ju,""),ot&&(we=we.replace(Hw,"!")),tt=0;tt<_e.length;++tt)if((ot?_e[tt].replace(Hw,"!"):_e[tt]).replace(ju,"")==we||(ot?be[tt].replace(Hw,"!"):be[tt]).replace(ju,"")==we)return W.FileIndex[tt];return null}var z=64,Q=-2,ee="d0cf11e0a1b11ae1",Z=[208,207,17,224,161,177,26,225],X="00000000000000000000000000000000",K={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Q,FREESECT:-1,HEADER_SIGNATURE:ee,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:X,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function se(W,Te,_e){c();var be=G(W,_e);l.writeFileSync(Te,be)}function ae(W){for(var Te=new Array(W.length),_e=0;_e<W.length;++_e)Te[_e]=String.fromCharCode(W[_e]);return Te.join("")}function J(W,Te){var _e=G(W,Te);switch(Te&&Te.type||"buffer"){case"file":return c(),l.writeFileSync(Te.filename,_e),_e;case"binary":return typeof _e=="string"?_e:ae(_e);case"base64":return ile(typeof _e=="string"?_e:ae(_e));case"buffer":if(Hi)return Buffer.isBuffer(_e)?_e:Wy(_e);case"array":return typeof _e=="string"?_h(_e):_e}return _e}var oe;function te(W){try{var Te=W.InflateRaw,_e=new Te;if(_e._processChunk(new Uint8Array([3,0]),_e._finishFlushFlag),_e.bytesRead)oe=W;else throw new Error("zlib does not expose bytesRead")}catch(be){console.error("cannot use native zlib: "+(be.message||be))}}function he(W,Te){if(!oe)return qt(W,Te);var _e=oe.InflateRaw,be=new _e,xe=be._processChunk(W.slice(W.l),be._finishFlushFlag);return W.l+=be.bytesRead,xe}function me(W){return oe?oe.deflateRawSync(W):ft(W)}var de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ae=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Se=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Re(W){var Te=(W<<1|W<<11)&139536|(W<<5|W<<15)&558144;return(Te>>16|Te>>8|Te)&255}for(var Ne=typeof Uint8Array<"u",Fe=Ne?new Uint8Array(256):[],Qe=0;Qe<256;++Qe)Fe[Qe]=Re(Qe);function ge(W,Te){var _e=Fe[W&255];return Te<=8?_e>>>8-Te:(_e=_e<<8|Fe[W>>8&255],Te<=16?_e>>>16-Te:(_e=_e<<8|Fe[W>>16&255],_e>>>24-Te))}function Ie(W,Te){var _e=Te&7,be=Te>>>3;return(W[be]|(_e<=6?0:W[be+1]<<8))>>>_e&3}function De(W,Te){var _e=Te&7,be=Te>>>3;return(W[be]|(_e<=5?0:W[be+1]<<8))>>>_e&7}function Xe(W,Te){var _e=Te&7,be=Te>>>3;return(W[be]|(_e<=4?0:W[be+1]<<8))>>>_e&15}function Ye(W,Te){var _e=Te&7,be=Te>>>3;return(W[be]|(_e<=3?0:W[be+1]<<8))>>>_e&31}function Me(W,Te){var _e=Te&7,be=Te>>>3;return(W[be]|(_e<=1?0:W[be+1]<<8))>>>_e&127}function lt(W,Te,_e){var be=Te&7,xe=Te>>>3,we=(1<<_e)-1,tt=W[xe]>>>be;return _e<8-be||(tt|=W[xe+1]<<8-be,_e<16-be)||(tt|=W[xe+2]<<16-be,_e<24-be)||(tt|=W[xe+3]<<24-be),tt&we}function Ht(W,Te,_e){var be=Te&7,xe=Te>>>3;return be<=5?W[xe]|=(_e&7)<<be:(W[xe]|=_e<<be&255,W[xe+1]=(_e&7)>>8-be),Te+3}function Le(W,Te,_e){var be=Te&7,xe=Te>>>3;return _e=(_e&1)<<be,W[xe]|=_e,Te+1}function Nt(W,Te,_e){var be=Te&7,xe=Te>>>3;return _e<<=be,W[xe]|=_e&255,_e>>>=8,W[xe+1]=_e,Te+8}function Ct(W,Te,_e){var be=Te&7,xe=Te>>>3;return _e<<=be,W[xe]|=_e&255,_e>>>=8,W[xe+1]=_e&255,W[xe+2]=_e>>>8,Te+16}function It(W,Te){var _e=W.length,be=2*_e>Te?2*_e:Te+5,xe=0;if(_e>=Te)return W;if(Hi){var we=ale(be);if(W.copy)W.copy(we);else for(;xe<W.length;++xe)we[xe]=W[xe];return we}else if(Ne){var tt=new Uint8Array(be);if(tt.set)tt.set(W);else for(;xe<_e;++xe)tt[xe]=W[xe];return tt}return W.length=be,W}function nt(W){for(var Te=new Array(W),_e=0;_e<W;++_e)Te[_e]=0;return Te}function ht(W,Te,_e){var be=1,xe=0,we=0,tt=0,ot=0,ze=W.length,Ke=Ne?new Uint16Array(32):nt(32);for(we=0;we<32;++we)Ke[we]=0;for(we=ze;we<_e;++we)W[we]=0;ze=W.length;var rt=Ne?new Uint16Array(ze):nt(ze);for(we=0;we<ze;++we)Ke[xe=W[we]]++,be<xe&&(be=xe),rt[we]=0;for(Ke[0]=0,we=1;we<=be;++we)Ke[we+16]=ot=ot+Ke[we-1]<<1;for(we=0;we<ze;++we)ot=W[we],ot!=0&&(rt[we]=Ke[ot+16]++);var Rt=0;for(we=0;we<ze;++we)if(Rt=W[we],Rt!=0)for(ot=ge(rt[we],be)>>be-Rt,tt=(1<<be+4-Rt)-1;tt>=0;--tt)Te[ot|tt<<Rt]=Rt&15|we<<4;return be}var ve=Ne?new Uint16Array(512):nt(512),ce=Ne?new Uint16Array(32):nt(32);if(!Ne){for(var je=0;je<512;++je)ve[je]=0;for(je=0;je<32;++je)ce[je]=0}(function(){for(var W=[],Te=0;Te<32;Te++)W.push(5);ht(W,ce,32);var _e=[];for(Te=0;Te<=143;Te++)_e.push(8);for(;Te<=255;Te++)_e.push(9);for(;Te<=279;Te++)_e.push(7);for(;Te<=287;Te++)_e.push(8);ht(_e,ve,288)})();var dt=(function(){for(var Te=Ne?new Uint8Array(32768):[],_e=0,be=0;_e<Se.length-1;++_e)for(;be<Se[_e+1];++be)Te[be]=_e;for(;be<32768;++be)Te[be]=29;var xe=Ne?new Uint8Array(259):[];for(_e=0,be=0;_e<Ae.length-1;++_e)for(;be<Ae[_e+1];++be)xe[be]=_e;function we(ot,ze){for(var Ke=0;Ke<ot.length;){var rt=Math.min(65535,ot.length-Ke),Rt=Ke+rt==ot.length;for(ze.write_shift(1,+Rt),ze.write_shift(2,rt),ze.write_shift(2,~rt&65535);rt-- >0;)ze[ze.l++]=ot[Ke++]}return ze.l}function tt(ot,ze){for(var Ke=0,rt=0,Rt=Ne?new Uint16Array(32768):[];rt<ot.length;){var Xt=Math.min(65535,ot.length-rt);if(Xt<10){for(Ke=Ht(ze,Ke,+(rt+Xt==ot.length)),Ke&7&&(Ke+=8-(Ke&7)),ze.l=Ke/8|0,ze.write_shift(2,Xt),ze.write_shift(2,~Xt&65535);Xt-- >0;)ze[ze.l++]=ot[rt++];Ke=ze.l*8;continue}Ke=Ht(ze,Ke,+(rt+Xt==ot.length)+2);for(var rn=0;Xt-- >0;){var en=ot[rt];rn=(rn<<5^en)&32767;var Qt=-1,sn=0;if((Qt=Rt[rn])&&(Qt|=rt&-32768,Qt>rt&&(Qt-=32768),Qt<rt))for(;ot[Qt+sn]==ot[rt+sn]&&sn<250;)++sn;if(sn>2){en=xe[sn],en<=22?Ke=Nt(ze,Ke,Fe[en+1]>>1)-1:(Nt(ze,Ke,3),Ke+=5,Nt(ze,Ke,Fe[en-23]>>5),Ke+=3);var ur=en<8?0:en-4>>2;ur>0&&(Ct(ze,Ke,sn-Ae[en]),Ke+=ur),en=Te[rt-Qt],Ke=Nt(ze,Ke,Fe[en]>>3),Ke-=3;var ye=en<4?0:en-2>>1;ye>0&&(Ct(ze,Ke,rt-Qt-Se[en]),Ke+=ye);for(var He=0;He<sn;++He)Rt[rn]=rt&32767,rn=(rn<<5^ot[rt])&32767,++rt;Xt-=sn-1}else en<=143?en=en+48:Ke=Le(ze,Ke,1),Ke=Nt(ze,Ke,Fe[en]),Rt[rn]=rt&32767,++rt}Ke=Nt(ze,Ke,0)-1}return ze.l=(Ke+7)/8|0,ze.l}return function(ze,Ke){return ze.length<8?we(ze,Ke):tt(ze,Ke)}})();function ft(W){var Te=hl(50+Math.floor(W.length*1.1)),_e=dt(W,Te);return Te.slice(0,_e)}var at=Ne?new Uint16Array(32768):nt(32768),St=Ne?new Uint16Array(32768):nt(32768),ut=Ne?new Uint16Array(128):nt(128),gt=1,Vt=1;function Zt(W,Te){var _e=Ye(W,Te)+257;Te+=5;var be=Ye(W,Te)+1;Te+=5;var xe=Xe(W,Te)+4;Te+=4;for(var we=0,tt=Ne?new Uint8Array(19):nt(19),ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ze=1,Ke=Ne?new Uint8Array(8):nt(8),rt=Ne?new Uint8Array(8):nt(8),Rt=tt.length,Xt=0;Xt<xe;
vendor: 7,521 bytes, lines 5587-5595
5587++Xt)tt[de[Xt]]=we=De(W,Te),ze<we&&(ze=we),Ke[we]++,Te+=3;var rn=0;for(Ke[0]=0,Xt=1;Xt<=ze;++Xt)rt[Xt]=rn=rn+Ke[Xt-1]<<1;for(Xt=0;Xt<Rt;++Xt)(rn=tt[Xt])!=0&&(ot[Xt]=rt[rn]++);var en=0;for(Xt=0;Xt<Rt;++Xt)if(en=tt[Xt],en!=0){rn=Fe[ot[Xt]]>>8-en;for(var Qt=(1<<7-en)-1;Qt>=0;--Qt)ut[rn|Qt<<en]=en&7|Xt<<3}var sn=[];for(ze=1;sn.length<_e+be;)switch(rn=ut[Me(W,Te)],Te+=rn&7,rn>>>=3){case 16:for(we=3+Ie(W,Te),Te+=2,rn=sn[sn.length-1];we-- >0;)sn.push(rn);break;case 17:for(we=3+De(W,Te),Te+=3;we-- >0;)sn.push(0);break;case 18:for(we=11+Me(W,Te),Te+=7;we-- >0;)sn.push(0);break;default:sn.push(rn),ze<rn&&(ze=rn);break}var ur=sn.slice(0,_e),ye=sn.slice(_e);for(Xt=_e;Xt<286;++Xt)ur[Xt]=0;for(Xt=be;Xt<30;++Xt)ye[Xt]=0;return gt=ht(ur,at,286),Vt=ht(ye,St,30),Te}function Wt(W,Te){if(W[0]==3&&!(W[1]&3))return[Jg(Te),2];for(var _e=0,be=0,xe=ale(Te||1<<18),we=0,tt=xe.length>>>0,ot=0,ze=0;(be&1)==0;){if(be=De(W,_e),_e+=3,be>>>1)be>>1==1?(ot=9,ze=5):(_e=Zt(W,_e),ot=gt,ze=Vt);else{_e&7&&(_e+=8-(_e&7));var Ke=W[_e>>>3]|W[(_e>>>3)+1]<<8;if(_e+=32,Ke>0)for(!Te&&tt<we+Ke&&(xe=It(xe,we+Ke),tt=xe.length);Ke-- >0;)xe[we++]=W[_e>>>3],_e+=8;continue}for(;;){!Te&&tt<we+32767&&(xe=It(xe,we+32767),tt=xe.length);var rt=lt(W,_e,ot),Rt=be>>>1==1?ve[rt]:at[rt];if(_e+=Rt&15,Rt>>>=4,(Rt>>>8&255)===0)xe[we++]=Rt;else{if(Rt==256)break;Rt-=257;var Xt=Rt<8?0:Rt-4>>2;Xt>5&&(Xt=0);var rn=we+Ae[Rt];Xt>0&&(rn+=lt(W,_e,Xt),_e+=Xt),rt=lt(W,_e,ze),Rt=be>>>1==1?ce[rt]:St[rt],_e+=Rt&15,Rt>>>=4;var en=Rt<4?0:Rt-2>>1,Qt=Se[Rt];for(en>0&&(Qt+=lt(W,_e,en),_e+=en),!Te&&tt<rn&&(xe=It(xe,rn+100),tt=xe.length);we<rn;)xe[we]=xe[we-Qt],++we}}}return Te?[xe,_e+7>>>3]:[xe.slice(0,we),_e+7>>>3]}function qt(W,Te){var _e=W.slice(W.l||0),be=Wt(_e,Te);return W.l+=be[1],be[0]}function We(W,Te){if(W)typeof console<"u"&&console.error(Te);else throw new Error(Te)}function yn(W,Te){var _e=W;ic(_e,0);var be=[],xe=[],we={FileIndex:be,FullPaths:xe};L(we,{root:Te.root});for(var tt=_e.length-4;(_e[tt]!=80||_e[tt+1]!=75||_e[tt+2]!=5||_e[tt+3]!=6)&&tt>=0;)--tt;_e.l=tt+4,_e.l+=4;var ot=_e.read_shift(2);_e.l+=6;var ze=_e.read_shift(4);for(_e.l=ze,tt=0;tt<ot;++tt){_e.l+=20;var Ke=_e.read_shift(4),rt=_e.read_shift(4),Rt=_e.read_shift(2),Xt=_e.read_shift(2),rn=_e.read_shift(2);_e.l+=8;var en=_e.read_shift(4),Qt=o(_e.slice(_e.l+Rt,_e.l+Rt+Xt));_e.l+=Rt+Xt+rn;var sn=_e.l;_e.l=en+4,vn(_e,Ke,rt,we,Qt),_e.l=sn}return we}function vn(W,Te,_e,be,xe){W.l+=2;var we=W.read_shift(2),tt=W.read_shift(2),ot=s(W);if(we&8257)throw new Error("Unsupported ZIP encryption");for(var ze=W.read_shift(4),Ke=W.read_shift(4),rt=W.read_shift(4),Rt=W.read_shift(2),Xt=W.read_shift(2),rn="",en=0;en<Rt;++en)rn+=String.fromCharCode(W[W.l++]);if(Xt){var Qt=o(W.slice(W.l,W.l+Xt));(Qt[21589]||{}).mt&&(ot=Qt[21589].mt),((xe||{})[21589]||{}).mt&&(ot=xe[21589].mt)}W.l+=Xt;var sn=W.slice(W.l,W.l+Ke);switch(tt){case 8:sn=he(W,rt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+tt)}var ur=!1;we&8&&(ze=W.read_shift(4),ze==134695760&&(ze=W.read_shift(4),ur=!0),Ke=W.read_shift(4),rt=W.read_shift(4)),Ke!=Te&&We(ur,"Bad compressed size: "+Te+" != "+Ke),rt!=_e&&We(ur,"Bad uncompressed size: "+_e+" != "+rt),pt(be,rn,sn,{unsafe:!0,mt:ot})}function Ge(W,Te){var _e=Te||{},be=[],xe=[],we=hl(1),tt=_e.compression?8:0,ot=0,ze=0,Ke=0,rt=0,Rt=0,Xt=W.FullPaths[0],rn=Xt,en=W.FileIndex[0],Qt=[],sn=0;for(ze=1;ze<W.FullPaths.length;++ze)if(rn=W.FullPaths[ze].slice(Xt.length),en=W.FileIndex[ze],!(!en.size||!en.content||rn=="�Sh33tJ5")){var ur=rt,ye=hl(rn.length);for(Ke=0;Ke<rn.length;++Ke)ye.write_shift(1,rn.charCodeAt(Ke)&127);ye=ye.slice(0,ye.l),Qt[Rt]=PTt.buf(en.content,0);var He=en.content;tt==8&&(He=me(He)),we=hl(30),we.write_shift(4,67324752),we.write_shift(2,20),we.write_shift(2,ot),we.write_shift(2,tt),en.mt?a(we,en.mt):we.write_shift(4,0),we.write_shift(-4,Qt[Rt]),we.write_shift(4,He.length),we.write_shift(4,en.content.length),we.write_shift(2,ye.length),we.write_shift(2,0),rt+=we.length,be.push(we),rt+=ye.length,be.push(ye),rt+=He.length,be.push(He),we=hl(46),we.write_shift(4,33639248),we.write_shift(2,0),we.write_shift(2,20),we.write_shift(2,ot),we.write_shift(2,tt),we.write_shift(4,0),we.write_shift(-4,Qt[Rt]),we.write_shift(4,He.length),we.write_shift(4,en.content.length),we.write_shift(2,ye.length),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(4,0),we.write_shift(4,ur),sn+=we.l,xe.push(we),sn+=ye.length,xe.push(ye),++Rt}return we=hl(22),we.write_shift(4,101010256),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,Rt),we.write_shift(2,Rt),we.write_shift(4,sn),we.write_shift(4,rt),we.write_shift(2,0),YA([YA(be),YA(xe),we])}var kt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function _t(W,Te){if(W.ctype)return W.ctype;var _e=W.name||"",be=_e.match(/\.([^\.]+)$/);return be&&kt[be[1]]||Te&&(be=(_e=Te).match(/[\.\\]([^\.\\])+$/),be&&kt[be[1]])?kt[be[1]]:"application/octet-stream"}function Dt(W){for(var Te=ile(W),_e=[],be=0;be<Te.length;be+=76)_e.push(Te.slice(be,be+76));return _e.join(`\r 5588`)+`\r 5589`}function jt(W){var Te=W.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ke){var rt=Ke.charCodeAt(0).toString(16).toUpperCase();return"="+(rt.length==1?"0"+rt:rt)});Te=Te.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),Te.charAt(0)==` 5590`&&(Te="=0D"+Te.slice(1)),Te=Te.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,` 5591=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var _e=[],be=Te.split(`\r 5592`),xe=0;xe<be.length;++xe){var we=be[xe];if(we.length==0){_e.push("");continue}for(var tt=0;tt<we.length;){var ot=76,ze=we.slice(tt,tt+ot);ze.charAt(ot-1)=="="?ot--:ze.charAt(ot-2)=="="?ot-=2:ze.charAt(ot-3)=="="&&(ot-=3),ze=we.slice(tt,tt+ot),tt+=ot,tt<we.length&&(ze+="="),_e.push(ze)}}return _e.join(`\r 5593`)}function Lt(W){for(var Te=[],_e=0;_e<W.length;++_e){for(var be=W[_e];_e<=W.length&&be.charAt(be.length-1)=="=";)be=be.slice(0,be.length-1)+W[++_e];Te.push(be)}for(var xe=0;xe<Te.length;++xe)Te[xe]=Te[xe].replace(/[=][0-9A-Fa-f]{2}/g,function(we){return String.fromCharCode(parseInt(we.slice(1),16))});return _h(Te.join(`\r 5594`))}function Bt(W,Te,_e){for(var be="",xe="",we="",tt,ot=0;ot<10;++ot){var ze=Te[ot];if(!ze||ze.match(/^\s*$/))break;var Ke=ze.match(/^(.*?):\s*([^\s].*)$/);if(Ke)switch(Ke[1].toLowerCase()){case"content-location":be=Ke[2].trim();break;case"content-type":we=Ke[2].trim();break;case"content-transfer-encoding":xe=Ke[2].trim();break}}switch(++ot,xe.toLowerCase()){case"base64":tt=_h(Cf(Te.slice(ot).join("")));break;case"quoted-printable":tt=Lt(Te.slice(ot));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+xe)}var rt=pt(W,be.slice(_e.length),tt,{unsafe:!0});we&&(rt.ctype=we)}function Gt(W,Te){if(ae(W.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var _e=Te&&Te.root||"",be=(Hi&&Buffer.isBuffer(W)?W.toString("binary"):ae(W)).split(`\r 5595`),xe=0,we="";for(xe=0;xe<be.length;++xe)if(we=be[xe],!!/^Content-Location:/i.test(we)&&(we=we.slice(we.indexOf("file")),_e||(_e=we.slice(0,we.lastIndexOf("/")+1)),we.slice(0,_e.length)!=_e))for(;_e.length>0&&(_e=_e.slice(0,_e.length-1),_e=_e.slice(0,_e.lastIndexOf("/")+1),we.slice(0,_e.length)!=_e););var tt=(be[1]||"").match(/boundary="(.*?)"/);if(!tt)throw new Error("MAD cannot find boundary");var ot="--"+(tt[1]||""),ze=[],Ke=[],rt={FileIndex:ze,FullPaths:Ke};L(rt);var Rt,Xt=0;for(xe=0;xe<be.length;++xe){var rn=be[xe];
5595rn!==ot&&rn!==ot+"--"||(Xt++&&Bt(rt,be.slice(Rt,xe),_e),Rt=xe)}return rt}function hn(W,Te){var _e=Te||{},be=_e.boundary||"SheetJS";be="------="+be;for(var xe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+be.slice(2)+'"',"","",""],we=W.FullPaths[0],tt=we,ot=W.FileIndex[0],ze=1;ze<W.FullPaths.length;++ze)if(tt=W.FullPaths[ze].slice(we.length),ot=W.FileIndex[ze],!(!ot.size||!ot.content||tt=="�Sh33tJ5")){tt=tt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(sn){return"_x"+sn.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(sn){return"_u"+sn.charCodeAt(0).toString(16)+"_"});for(var Ke=ot.content,rt=Hi&&Buffer.isBuffer(Ke)?Ke.toString("binary"):ae(Ke),Rt=0,Xt=Math.min(1024,rt.length),rn=0,en=0;en<=Xt;++en)(rn=rt.charCodeAt(en))>=32&&rn<128&&++Rt;var Qt=Rt>=Xt*4/5;xe.push(be),xe.push("Content-Location: "+(_e.root||"file:///C:/SheetJS/")+tt),xe.push("Content-Transfer-Encoding: "+(Qt?"quoted-printable":"base64")),xe.push("Content-Type: "+_t(ot,tt)),xe.push(""),xe.push(Qt?jt(rt):Dt(rt))}return xe.push(be+`--\r 5596`),xe.join(`\r 5597`)}function Ve(W){var Te={};return L(Te,W),Te}function pt(W,Te,_e,be){var xe=be&&be.unsafe;xe||L(W);var we=!xe&&$i.find(W,Te);if(!we){var tt=W.FullPaths[0];Te.slice(0,tt.length)==tt?tt=Te:(tt.slice(-1)!="/"&&(tt+="/"),tt=(tt+Te).replace("//","/")),we={name:i(Te),type:2},W.FileIndex.push(we),W.FullPaths.push(tt),xe||$i.utils.cfb_gc(W)}return we.content=_e,we.size=_e?_e.length:0,be&&(be.CLSID&&(we.clsid=be.CLSID),be.mt&&(we.mt=be.mt),be.ct&&(we.ct=be.ct)),we}function Tt(W,Te){L(W);var _e=$i.find(W,Te);if(_e){for(var be=0;be<W.FileIndex.length;++be)if(W.FileIndex[be]==_e)return W.FileIndex.splice(be,1),W.FullPaths.splice(be,1),!0}return!1}function xt(W,Te,_e){L(W);var be=$i.find(W,Te);if(be){for(var xe=0;xe<W.FileIndex.length;++xe)if(W.FileIndex[xe]==be)return W.FileIndex[xe].name=i(_e),W.FullPaths[xe]=_e,!0}return!1}function v(W){B(W,!0)}return e.find=j,e.read=I,e.parse=u,e.write=J,e.writeFile=se,e.utils={cfb_new:Ve,cfb_add:pt,cfb_del:Tt,cfb_mov:xt,cfb_gc:v,ReadShift:RS,CheckField:u_e,prep_blob:ic,bconcat:YA,use_zlib:te,_deflateRaw:ft,_inflateRaw:qt,consts:K},e})();function kTt(t){if(typeof Deno<"u")return Deno.readFileSync(t);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var e=File(t);e.open("r"),e.encoding="binary";var n=e.read();return e.close(),n}catch(r){if(!r.message||!r.message.match(/onstruct/))throw r}throw new Error("Cannot access file "+t)}function Mp(t){for(var e=Object.keys(t),n=[],r=0;r<e.length;++r)Object.prototype.hasOwnProperty.call(t,e[r])&&n.push(e[r]);return n}function hY(t){for(var e=[],n=Mp(t),r=0;r!==n.length;++r)e[t[n[r]]]=n[r];return e}var LD=new Date(1899,11,30,0,0,0);function Hu(t,e){var n=t.getTime(),r=LD.getTime()+(t.getTimezoneOffset()-LD.getTimezoneOffset())*6e4;return(n-r)/(1440*60*1e3)}var G3e=new Date,LTt=LD.getTime()+(G3e.getTimezoneOffset()-LD.getTimezoneOffset())*6e4,hle=G3e.getTimezoneOffset();function Zk(t){var e=new Date;return e.setTime(t*24*60*60*1e3+LTt),e.getTimezoneOffset()!==hle&&e.setTime(e.getTime()+(e.getTimezoneOffset()-hle)*6e4),e}function OTt(t){var e=0,n=0,r=!1,i=t.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+t+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(n=1,a>3&&(r=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":n*=24;case"H":n*=60;case"M":if(r)n*=60;else throw new Error("Unsupported ISO Duration Field: M")}e+=n*parseInt(i[a],10)}return e}var ple=new Date("2017-02-19T19:06:09.000Z"),z3e=isNaN(ple.getFullYear())?new Date("2/19/17"):ple,FTt=z3e.getFullYear()==2017;function $l(t,e){var n=new Date(t);if(FTt)return e>0?n.setTime(n.getTime()+n.getTimezoneOffset()*60*1e3):e<0&&n.setTime(n.getTime()-n.getTimezoneOffset()*60*1e3),n;if(t instanceof Date)return t;if(z3e.getFullYear()==1917&&!isNaN(n.getFullYear())){var r=n.getFullYear();return t.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=t.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return t.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function My(t,e){if(Hi&&Buffer.isBuffer(t)){if(e){if(t[0]==255&&t[1]==254)return zw(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return zw(R3e(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(e){if(t[0]==255&&t[1]==254)return zw(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return zw(new TextDecoder("utf-16be").decode(t.slice(2)))}var n={"â¬":"Â","â":"Â",Æ:"Â","â":"Â","â¦":" ","â ":"Â","â¡":"Â","Ë":"Â","â°":"Â",Å :"Â","â¹":"Â",Å:"Â",Ž:"Â","â":"Â","â":"Â","â":"Â","â":"Â","â¢":"Â","â":"Â","â":"Â","Ë":"Â","â¢":"Â",Å¡:"Â","âº":"Â",Å:"Â",ž:"Â",Ÿ:"Â"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[â¬âÆââ¦â â¡Ëâ°Å â¹ÅŽâââââ¢ââËâ¢Å¡âºÅžŸ]/g,function(a){return n[a]||a})}catch{}for(var r=[],i=0;i!=t.length;++i)r.push(String.fromCharCode(t[i]));return r.join("")}function pc(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=pc(t[n]));return e}function lo(t,e){for(var n="";n.length<e;)n+=t;return n}function Uh(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var n=1,r=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return!isNaN(e=Number(r))||(r=r.replace(/[(](.*)[)]/,function(i,a){return n=-n,a}),!isNaN(e=Number(r)))?e/n:e}var ITt=["january","february","march","april","may","june","july","august","september","october","november","december"];function W_(t){var e=new Date(t),n=new Date(NaN),r=e.getYear(),i=e.getMonth(),a=e.getDate();if(isNaN(a))return n;var s=t.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&ITt.indexOf(s)==-1)return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&r!=101?e:t.match(/[^-0-9:,\/\\]/)?n:e}var BTt=(function(){var t="abacaba".split(/(:?b)/i).length==5;return function(n,r,i){if(t||typeof r=="string")return n.split(r);for(var a=n.split(r),s=[a[0]],o=1;o<a.length;++o)s.push(i),s.push(a[o]);return s}})();function $3e(t){return t?t.content&&t.type?My(t.content,!0):t.data?jw(t.data):t.asNodeBuffer&&Hi?jw(t.asNodeBuffer().toString("binary")):t.asBinary?jw(t.asBinary()):t._data&&t._data.getContent?jw(My(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function q3e(t){if(!t)return null;if(t.data)return nle(t.data);if(t.asNodeBuffer&&Hi)return t.asNodeBuffer();if(t._data&&t._data.getContent){var e=t._data.getContent();return typeof e=="string"?nle(e):Array.prototype.slice.call(e)}return t.content&&t.type?t.content:null}function UTt(t){return t&&t.name.slice(-4)===".bin"?q3e(t):$3e(t)}
5597function Kf(t,e){for(var n=t.FullPaths||Mp(t.files),r=e.toLowerCase().replace(/[\/]/g,"\\"),i=r.replace(/\\/g,"/"),a=0;a<n.length;++a){var s=n[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==s||i==s)return t.files?t.files[n[a]]:t.FileIndex[a]}return null}function pY(t,e){var n=Kf(t,e);if(n==null)throw new Error("Cannot find file "+e+" in zip");return n}function Uo(t,e,n){if(!n)return UTt(pY(t,e));if(!e)return null;try{return Uo(t,e)}catch{return null}}function mf(t,e,n){if(!n)return $3e(pY(t,e));if(!e)return null;try{return mf(t,e)}catch{return null}}function VTt(t,e,n){return q3e(pY(t,e))}function mle(t){for(var e=t.FullPaths||Mp(t.files),n=[],r=0;r<e.length;++r)e[r].slice(-1)!="/"&&n.push(e[r].replace(/^Root Entry[\/]/,""));return n.sort()}function jTt(t,e,n){if(t.FullPaths){if(typeof n=="string"){var r;return Hi?r=Wy(n):r=sTt(n),$i.utils.cfb_add(t,e,r)}$i.utils.cfb_add(t,e,n)}else t.file(e,n)}function W3e(t,e){switch(e.type){case"base64":return $i.read(t,{type:"base64"});case"binary":return $i.read(t,{type:"binary"});case"buffer":case"array":return $i.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+e.type)}function Gw(t,e){if(t.charAt(0)=="/")return t.slice(1);var n=e.split("/");e.slice(-1)!="/"&&n.pop();for(var r=t.split("/");r.length!==0;){var i=r.shift();i===".."?n.pop():i!=="."&&n.push(i)}return n.join("/")}var Z3e=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r 5598`,HTt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Ale=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,GTt=/<[^>]*>
5598/g,su=Z3e.match(Ale)?Ale:GTt,zTt=/<\w*:/,$Tt=/<(\/?)\w+:/;function jr(t,e,n){for(var r={},i=0,a=0;i!==t.length&&!((a=t.charCodeAt(i))===32||a===10||a===13);++i);if(e||(r[0]=t.slice(0,i)),i===t.length)return r;var s=t.match(HTt),o=0,l="",c=0,u="",f="",h=1;if(s)for(c=0;c!=s.length;++c){for(f=s[c],a=0;a!=f.length&&f.charCodeAt(a)!==61;++a);for(u=f.slice(0,a).trim();f.charCodeAt(a+1)==32;)++a;for(h=(i=f.charCodeAt(a+1))==34||i==39?1:0,l=f.slice(a+1+h,f.length-h),o=0;o!=u.length&&u.charCodeAt(o)!==58;++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,r[u.toLowerCase()]=l;else{var p=(o===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(o+1);if(r[p]&&u.slice(o-3,o)=="ext")continue;r[p]=l,r[p.toLowerCase()]=l}}return r}function Bp(t){return t.replace($Tt,"<$1")}var Y3e={""":'"',"'":"'",">":">","<":"<","&":"&"},qTt=hY(Y3e),Ji=(function(){var t=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,e=/_x([\da-fA-F]{4})_/ig;return function n(r){var i=r+"",a=i.indexOf("<![CDATA[");if(a==-1)return i.replace(t,function(o,l){return Y3e[o]||String.fromCharCode(parseInt(l,o.indexOf("x")>-1?16:10))||o}).replace(e,function(o,l){return String.fromCharCode(parseInt(l,16))});var s=i.indexOf("]]>");return n(i.slice(0,a))+i.slice(a+9,s)+n(i.slice(s+3))}})(),WTt=/[&<>'"]/g,ZTt=/[\u0000-\u001f]/g;function mY(t){var e=t+"";return e.replace(WTt,function(n){return qTt[n]}).replace(/\n/g,"<br/>").replace(ZTt,function(n){return"&#x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+";"})}var gle=(function(){var t=/&#(\d+);/g;function e(n,r){return String.fromCharCode(parseInt(r,10))}return function(r){return r.replace(t,e)}})();function Ls(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function cU(t){for(var e="",n=0,r=0,i=0,a=0,s=0,o=0;n<t.length;){if(r=t.charCodeAt(n++),r<128){e+=String.fromCharCode(r);continue}if(i=t.charCodeAt(n++),r>191&&r<224){s=(r&31)<<6,s|=i&63,e+=String.fromCharCode(s);continue}if(a=t.charCodeAt(n++),r<240){e+=String.fromCharCode((r&15)<<12|(i&63)<<6|a&63);continue}s=t.charCodeAt(n++),o=((r&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,e+=String.fromCharCode(55296+(o>>>10&1023)),e+=String.fromCharCode(56320+(o&1023))}return e}function xle(t){var e=Jg(2*t.length),n,r,i=1,a=0,s=0,o;for(r=0;r<t.length;r+=i)i=1,(o=t.charCodeAt(r))<128?n=o:o<224?(n=(o&31)*64+(t.charCodeAt(r+1)&63),i=2):o<240?(n=(o&15)*4096+(t.charCodeAt(r+1)&63)*64+(t.charCodeAt(r+2)&63),i=3):(i=4,n=(o&7)*262144+(t.charCodeAt(r+1)&63)*4096+(t.charCodeAt(r+2)&63)*64+(t.charCodeAt(r+3)&63),n-=65536,s=55296+(n>>>10&1023),n=56320+(n&1023)),s!==0&&(e[a++]=s&255,e[a++]=s>>>8,s=0),e[a++]=n%256,e[a++]=n>>>8;return e.slice(0,a).toString("ucs2")}function vle(t){return Wy(t,"binary").toString("utf8")}var qC="foo bar bazâÂÂð£",us=Hi&&(vle(qC)==cU(qC)&&vle||xle(qC)==cU(qC)&&xle)||cU,zw=Hi?function(t){return Wy(t,"utf8").toString("binary")}:function(t){for(var e=[],n=0,r=0,i=0;n<t.length;)switch(r=t.charCodeAt(n++),!0){case r<128:e.push(String.fromCharCode(r));break;case r<2048:e.push(String.fromCharCode(192+(r>>6))),e.push(String.fromCharCode(128+(r&63)));break;case(r>=55296&&r<57344):r-=55296,i=t.charCodeAt(n++)-56320+(r<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(i&63)));break;default:e.push(String.fromCharCode(224+(r>>12))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(r&63)))}return e.join("")},iT=(function(){var t={};return function(n,r){var i=n+"|"+(r||"");return t[i]?t[i]:t[i]=new RegExp("<(?:\\w+:)?"+n+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+n+">",r||"")}})(),X3e=(function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(n){for(var r=n.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` 5599`).replace(/<[^>]*>/g,""),i=0;i<t.length;++i)r=r.replace(t[i][0],t[i][1]);return r}})(),YTt=(function(){var t={};return function(n){return t[n]!==void 0?t[n]:t[n]=new RegExp("<(?:vt:)?"+n+">([\\s\\S]*?)</(?:vt:)?"+n+">","g")}}
5599)(),XTt=/<\/?(?:vt:)?variant>/g,QTt=/<(?:vt:)([^>]*)>([\s\S]*)</;function yle(t,e){var n=jr(t),r=t.match(YTt(n.baseType))||[],i=[];if(r.length!=n.size){if(e.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return i}return r.forEach(function(a){var s=a.replace(XTt,"").match(QTt);s&&i.push({v:us(s[2]),t:s[1]})}),i}var KTt=/(^\s|\s$|\n)/;function JTt(t){return Mp(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function eEt(t,e,n){return"<"+t+(n!=null?JTt(n):"")+(e!=null?(e.match(KTt)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function AY(t){if(Hi&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return us(Zy(uY(t)));throw new Error("Bad input format: expected Buffer or string")}var aT=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,tEt={CT:"http://schemas.openxmlformats.org/package/2006/content-types"},nEt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function rEt(t,e){for(var n=1-2*(t[e+7]>>>7),r=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),i=t[e+6]&15,a=5;a>=0;--a)i=i*256+t[e+a];return r==2047?i==0?n*(1/0):NaN:(r==0?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function iEt(t,e,n){var r=(e<0||1/e==-1/0?1:0)<<7,i=0,a=0,s=r?-e:e;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(e)?26985:0);for(var o=0;o<=5;++o,a/=256)t[n+o]=a&255;t[n+6]=(i&15)<<4|a&15,t[n+7]=i>>4|r}var _le=function(t){for(var e=[],n=10240,r=0;r<t[0].length;++r)if(t[0][r])for(var i=0,a=t[0][r].length;i<a;i+=n)e.push.apply(e,t[0][r].slice(i,i+n));return e},ble=Hi?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:Wy(e)})):_le(t)}:_le,wle=function(t,e,n){for(var r=[],i=e;i<n;i+=2)r.push(String.fromCharCode(e2(t,i)));return r.join("").replace(ju,"")},gY=Hi?function(t,e,n){return Buffer.isBuffer(t)?t.toString("utf16le",e,n).replace(ju,""):wle(t,e,n)}:wle,Sle=function(t,e,n){for(var r=[],i=e;i<e+n;++i)r.push(("0"+t[i].toString(16)).slice(-2));return r.join("")},Q3e=Hi?function(t,e,n){return Buffer.isBuffer(t)?t.toString("hex",e,e+n):Sle(t,e,n)}:Sle,Tle=function(t,e,n){for(var r=[],i=e;i<n;i++)r.push(String.fromCharCode(P8(t,i)));return r.join("")},cE=Hi?function(e,n,r){return Buffer.isBuffer(e)?e.toString("utf8",n,r):Tle(e,n,r)}:Tle,K3e=function(t,e){var n=ff(t,e);return n>0?cE(t,e+4,e+4+n-1):""},J3e=K3e,e_e=function(t,e){var n=ff(t,e);return n>0?cE(t,e+4,e+4+n-1):""},t_e=e_e,n_e=function(t,e){var n=2*ff(t,e);return n>0?cE(t,e+4,e+4+n-1):""},r_e=n_e,i_e=function(e,n){var r=ff(e,n);return r>0?gY(e,n+4,n+4+r):""},a_e=i_e,s_e=function(t,e){var n=ff(t,e);return n>0?cE(t,e+4,e+4+n):""},o_e=s_e,l_e=function(t,e){return rEt(t,e)},OD=l_e,c_e=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};Hi&&(J3e=function(e,n){if(!Buffer.isBuffer(e))return K3e(e,n);var r=e.readUInt32LE(n);return r>0?e.toString("utf8",n+4,n+4+r-1):""},t_e=function(e,n){if(!Buffer.isBuffer(e))return e_e(e,n);var r=e.readUInt32LE(n);return r>0?e.toString("utf8",n+4,n+4+r-1):""},r_e=function(e,n){if(!Buffer.isBuffer(e))return n_e(e,n);var r=2*e.readUInt32LE(n);return e.toString("utf16le",n+4,n+4+r-1)},a_e=function(e,n){if(!Buffer.isBuffer(e))return i_e(e,n);var r=e.readUInt32LE(n);return e.toString("utf16le",n+4,n+4+r)},o_e=function(e,n){if(!Buffer.isBuffer(e))return s_e(e,n);var r=e.readUInt32LE(n);return e.toString("utf8",n+4,n+4+r)},OD=function(e,n){return Buffer.isBuffer(e)?e.readDoubleLE(n):l_e(e,n)},c_e=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var P8=function(t,e){return t[e]},e2=function(t,e){return t[e+1]*256+t[e]},aEt=function(t,e){var n=t[e+1]*256+t[e];return n<32768?n:(65535-n+1)*-1},ff=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},gv=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},sEt=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function RS(t,e){var n="",r,i,a=[],s,o,l,c;switch(e){case"dbcs":if(c=this.l,Hi&&Buffer.isBuffer(this))n=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)n+=String.fromCharCode(e2(this,c)),c+=2;t*=2;break;case"utf8":n=cE(this,this.l,this.l+t);break;case"utf16le":t*=2,n=gY(this,this.l,this.l+t);break;case"wstr":return RS.call(this,t,"dbcs");case"lpstr-ansi":n=J3e(this,this.l),t=4+ff(this,this.l);break;case"lpstr-cp":n=t_e(this,this.l),t=4+ff(this,this.l);break;case"lpwstr":n=r_e(this,this.l),t=4+2*ff(this,this.l);break;case"lpp4":t=4+ff(this,this.l),n=a_e(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+ff(this,this.l),n=o_e(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,n="";(s=P8(this,this.l+t++))!==0;)a.push($C(s));n=a.join("");break;case"_wstr":for(t=0,n="";(s=e2(this,this.l+t))!==0;)a.push($C(s)),t+=2;t+=2,n=a.join("");break;case"dbcs-cont":for(n="",c=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=P8(this,c),this.l=c+1,o=RS.call(this,t-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push($C(e2(this,c))),c+=2}n=a.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(n="",c=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=P8(this,c),this.l=c+1,o=RS.call(this,t-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push($C(P8(this,c))),c+=1}n=a.join("");break;default:switch(t){case 1:return r=P8(this,this.l),this.l++,r;case 2:return r=(e==="i"?aEt:e2)(this,this.l),this.l+=2,r;case 4:case-4:return e==="i"||(this[this.l+3]&128)===0?(r=(t>0?gv:sEt)(this,this.l),this.l+=4,r):(i=ff(this,this.l),this.l+=4,i);case 8:case-8:if(e==="f")return t==8?i=OD(this,this.l):i=OD([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:n=Q3e(this,this.l,t);break}}return this.l+=t,n}var oEt=function(t,e,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24&255},lEt=function(t,e,n){t[n]=e&255,t[n+1]=e>>8&255,t[n+2]=e>>16&255,t[n+3]=e>>24&255},cEt=function(t,e,n){t[n]=e&255,t[n+1]=e>>>8&255};function uEt(t,e,n){var r=0,i=0;if(n==="dbcs"){for(i=0;i!=e.length;++i)cEt(this,e.charCodeAt(i),this.l+2*i);r=2*e.length}else if(n==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=e.length;++i)this[this.l+i]=e.charCodeAt(i)&255;r=e.length}else if(n==="hex"){for(;i<t;++i)this[this.l++]=parseInt(e.slice(2*i,2*i+2),16)||0;return this}else if(n==="utf16le"){var a=Math.min(this.l+t,this.length);for(i=0;i<Math.min(e.length,t);++i){var s=e.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(t){case 1:r=1,this[this.l]=e&255;break;case 2:r=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:r=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:r=4,oEt(this,e,this.l);break;case 8:if(r=8,n==="f"){iEt(this,e,this.l);break}case 16:break;case-4:r=4,lEt(this,e,this.l);break}return this.l+=r,this}function u_e(t,e){var n=Q3e(this,this.l,t.length>>1);if(n!==t)throw new Error(e+"Expected "+t+" saw "+n);this.l+=t.length>>1}function ic(t,e){t.l=e,t.read_shift=RS,t.chk=u_e,t.write_shift=uEt}function au(t,e){t.l+=e}function hl(t){var e=Jg(t);return ic(e,0),e}function q2(t,e,n){if(t){var r,i,a;ic(t,t.l||0);for(var s=t.length,o=0,l=0;t.l<s;){o=t.read_shift(1),o&128&&(o=(o&127)+((t.read_shift(1)&127)<<7));var c=jD[o]||jD[65535];for(r=t.read_shift(1),a=r&127,i=1;i<4&&r&128;++i)a+=((r=t.read_shift(1))&127)<<7*i;l=t.l+a;var u=c.f&&c.f(t,a,n);if(t.l=l,e(u,c,o))return}}}
5599function YH(){var t=[],e=Hi?256:2048,n=function(c){var u=hl(c);return ic(u,0),u},r=n(e),i=function(){r&&(r.length>r.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&t.push(r),r=null)},a=function(c){return r&&c<r.length-r.l?r:(i(),r=n(Math.max(c+1,e)))},s=function(){return i(),YA(t)},o=function(c){i(),r=c,r.l==null&&(r.l=r.length),a(e)};return{next:a,push:o,end:s,_bufs:t}}function DS(t,e,n){var r=pc(t);if(e.s?(r.cRel&&(r.c+=e.s.c),r.rRel&&(r.r+=e.s.r)):(r.cRel&&(r.c+=e.c),r.rRel&&(r.r+=e.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Ele(t,e,n){var r=pc(t);return r.s=DS(r.s,e.s,n),r.e=DS(r.e,e.s,n),r}function PS(t,e){if(t.cRel&&t.c<0)for(t=pc(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=pc(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var n=Jr(t);return!t.cRel&&t.cRel!=null&&(n=hEt(n)),!t.rRel&&t.rRel!=null&&(n=fEt(n)),n}function uU(t,e){return t.s.r==0&&!t.s.rRel&&t.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+yl(t.s.c)+":"+(t.e.cRel?"":"$")+yl(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(e.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+mc(t.s.r)+":"+(t.e.rRel?"":"$")+mc(t.e.r):PS(t.s,e.biff)+":"+PS(t.e,e.biff)}function xY(t){return parseInt(dEt(t),10)-1}function mc(t){return""+(t+1)}function fEt(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function dEt(t){return t.replace(/\$(\d+)$/,"$1")}function vY(t){for(var e=pEt(t),n=0,r=0;r!==e.length;++r)n=26*n+e.charCodeAt(r)-64;return n-1}function yl(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function hEt(t){return t.replace(/^([A-Z])/,"$$$1")}function pEt(t){return t.replace(/^\$([A-Z])/,"$1")}function mEt(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Bu(t){for(var e=0,n=0,r=0;r<t.length;++r){var i=t.charCodeAt(r);i>=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:e-1}}function Jr(t){for(var e=t.c+1,n="";e;e=(e-1)/26|0)n=String.fromCharCode((e-1)%26+65)+n;return n+(t.r+1)}function C6(t){var e=t.indexOf(":");return e==-1?{s:Bu(t),e:Bu(t)}:{s:Bu(t.slice(0,e)),e:Bu(t.slice(e+1))}}function qi(t,e){return typeof e>"u"||typeof e=="number"?qi(t.s,t.e):(typeof t!="string"&&(t=Jr(t)),typeof e!="string"&&(e=Jr(e)),t==e?t:t+":"+e)}function Ao(t){var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=t.length;for(n=0;r<a&&!((i=t.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(e.s.c=--n,n=0;r<a&&!((i=t.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;if(e.s.r=--n,r===a||i!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++r,n=0;r!=a&&!((i=t.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(e.e.c=--n,n=0;r!=a&&!((i=t.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return e.e.r=--n,e}function Mle(t,e){var n=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=Nd(t.z,n?Hu(e):e)}catch{}try{return t.w=Nd((t.XF||{}).numFmtId||(n?14:0),n?Hu(e):e)}catch{return""+e}}function P2(t,e,n){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&n&&n.dateNF&&(t.z=n.dateNF),t.t=="e"?Qy[t.v]||t.v:e==null?Mle(t,t.v):Mle(t,e))}function gx(t,e){var n=e&&e.sheet?e.sheet:"Sheet1",r={};return r[n]=t,{SheetNames:[n],Sheets:r}}function f_e(t,e,n){var r=n||{},i=t?Array.isArray(t):r.dense,a=t||(i?[]:{}),s=0,o=0;if(a&&r.origin!=null){if(typeof r.origin=="number")s=r.origin;else{var l=typeof r.origin=="string"?Bu(r.origin):r.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Ao(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),s==-1&&(c.e.r=s=u.e.r+1)}for(var f=0;f!=e.length;++f)if(e[f]){if(!Array.isArray(e[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=e[f].length;++h)if(!(typeof e[f][h]>"u")){var p={v:e[f][h]}
5599,A=s+f,g=o+h;if(c.s.r>A&&(c.s.r=A),c.s.c>g&&(c.s.c=g),c.e.r<A&&(c.e.r=A),c.e.c<g&&(c.e.c=g),e[f][h]&&typeof e[f][h]=="object"&&!Array.isArray(e[f][h])&&!(e[f][h]instanceof Date))p=e[f][h];else if(Array.isArray(p.v)&&(p.f=e[f][h][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(r.nullError)p.t="e",p.v=0;else if(r.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=r.dateNF||ai[14],r.cellDates?(p.t="d",p.w=Nd(p.z,Hu(p.v))):(p.t="n",p.v=Hu(p.v),p.w=Nd(p.z,p.v))):p.t="s";if(i)a[A]||(a[A]=[]),a[A][g]&&a[A][g].z&&(p.z=a[A][g].z),a[A][g]=p;else{var w=Jr({c:g,r:A});a[w]&&a[w].z&&(p.z=a[w].z),a[w]=p}}}return c.s.c<1e7&&(a["!ref"]=qi(c)),a}function N6(t,e){return f_e(null,t,e)}function AEt(t){return t.read_shift(4,"i")}function tu(t){var e=t.read_shift(4);return e===0?"":t.read_shift(e,"dbcs")}function gEt(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function yY(t,e){var n=t.l,r=t.read_shift(1),i=tu(t),a=[],s={t:i,h:i};if((r&1)!==0){for(var o=t.read_shift(4),l=0;l!=o;++l)a.push(gEt(t));s.r=a}else s.r=[{ich:0,ifnt:0}];return t.l=n+e,s}var xEt=yY;function Ud(t){var e=t.read_shift(4),n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:n}}function Yy(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}var vEt=tu;function _Y(t){var e=t.read_shift(4);return e===0||e===4294967295?"":t.read_shift(e,"dbcs")}var yEt=tu,XH=_Y;function bY(t){var e=t.slice(t.l,t.l+4),n=e[0]&1,r=e[0]&2;t.l+=4;var i=r===0?OD([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):gv(e,0)>>2;return n?i/100:i}function d_e(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}var Xy=d_e;function zc(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function _Et(t){var e={},n=t.read_shift(1),r=n>>>1,i=t.read_shift(1),a=t.read_shift(2,"i"),s=t.read_shift(1),o=t.read_shift(1),l=t.read_shift(1);switch(t.l++,r){case 0:e.auto=1;break;case 1:e.index=i;var c=ay[i];c&&(e.rgb=oT(c));break;case 2:e.rgb=oT([s,o,l]);break;case 3:e.theme=i;break}return a!=0&&(e.tint=a>0?a/32767:a/32768),e}function bEt(t){var e=t.read_shift(1);t.l++;var n={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return n}function h_e(t,e){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=t.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[t.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return t.l-=4,t.read_shift(0,e==1?"lpstr":"lpwstr")}function wEt(t){return h_e(t,1)}function SEt(t){return h_e(t,2)}var wY=2,f0=3,WC=11,Cle=12,FD=19,ZC=64,TEt=65,EEt=71,MEt=4108,CEt=4126,Ul=80,p_e=81,NEt=[Ul,p_e],REt={1:{n:"CodePage",t:wY},2:{n:"Category",t:Ul},3:{n:"PresentationFormat",t:Ul},4:{n:"ByteCount",t:f0},5:{n:"LineCount",t:f0},6:{n:"ParagraphCount",t:f0},7:{n:"SlideCount",t:f0},8:{n:"NoteCount",t:f0},9:{n:"HiddenCount",t:f0},10:{n:"MultimediaClipCount",t:f0},11:{n:"ScaleCrop",t:WC},12:{n:"HeadingPairs",t:MEt},13:{n:"TitlesOfParts",t:CEt},14:{n:"Manager",t:Ul},15:{n:"Company",t:Ul},16:{n:"LinksUpToDate",t:WC},17:{n:"CharacterCount",t:f0},19:{n:"SharedDoc",t:WC},22:{n:"HyperlinksChanged",t:WC},23:{n:"AppVersion",t:f0,p:"version"},24:{n:"DigSig",t:TEt},26:{n:"ContentType",t:Ul},27:{n:"ContentStatus",t:Ul},28:{n:"Language",t:Ul},29:{n:"Version",t:Ul},255:{},2147483648:{n:"Locale",t:FD},2147483651:{n:"Behavior",t:FD},1919054434:{}},DEt={1:{n:"CodePage",t:wY},2:{n:"Title",t:Ul},3:{n:"Subject",t:Ul},4:{n:"Author",t:Ul},5:{n:"Keywords",t:Ul},6:{n:"Comments",t:Ul},7:{n:"Template",t:Ul},8:{n:"LastAuthor",t:Ul},9:{n:"RevNumber",t:Ul},10:{n:"EditTime",t:ZC},11:{n:"LastPrinted",t:ZC},12:{n:"CreatedDate",t:ZC},13:{n:"ModifiedDate",t:ZC},14:{n:"PageCount",t:f0},15:{n:"WordCount",t:f0},16:{n:"CharCount",t:f0},17:{n:"Thumbnail",t:EEt},18:{n:"Application",t:Ul},19:{n:"DocSecurity",t:f0},255:{},2147483648:{n:"Locale",t:FD},2147483651:{n:"Behavior",t:FD},1919054434:{}},Nle={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},PEt=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","dar
5599kVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function kEt(t){return t.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var LEt=kEt([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ay=pc(LEt),Qy={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},m_e={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Rle={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function OEt(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function FEt(t){var e=OEt();if(!t||!t.match)return e;var n={};
5599if((t.match(su)||[]).forEach(function(r){var i=jr(r);switch(i[0].replace(zTt,"<")){case"<?xml":break;case"<Types":e.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":n[i.Extension]=i.ContentType;break;case"<Override":e[Rle[i.ContentType]]!==void 0&&e[Rle[i.ContentType]].push(i.PartName);break}}),e.xmlns!==tEt.CT)throw new Error("Unknown Namespace: "+e.xmlns);return e.calcchain=e.calcchains.length>0?e.calcchains[0]:"",e.sst=e.strs.length>0?e.strs[0]:"",e.style=e.styles.length>0?e.styles[0]:"",e.defaults=n,delete e.calcchains,e}var Y8
vendor: 2,399 bytes, line 5599
5599={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",
5599VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function QH(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function kS(t,e){var n={"!id":{}};if(!t)return n;e.charAt(0)!=="/"&&(e="/"+e);var r={};return(t.match(su)||[]).forEach(function(i){var a=jr(i);if(a[0]==="<Relationship"){var s={};s.Type=a.Type,s.Target=a.Target,s.Id=a.Id,a.TargetMode&&(s.TargetMode=a.TargetMode);var o=a.TargetMode==="External"?a.Target:Gw(a.Target,e);n[o]=s,r[a.Id]=s}}),n["!id"]=r,n}var IEt="application/vnd.oasis.opendocument.spreadsheet";function BEt(t,e){for(var n=AY(t),r,i;r=aT.exec(n);)switch(r[3]){case"manifest":break;case"file-entry":if(i=jr(r[0],!1),i.path=="/"&&i.type!==IEt)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(e&&e.WTF)throw r}}var LS=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],UEt=(function(){for(var t=new Array(LS.length),e=0;e<LS.length;++e){var n=LS[e],r="(?:"+n[0].slice(0,n[0].indexOf(":"))+":)"+n[0].slice(n[0].indexOf(":")+1);t[e]=new RegExp("<"+r+"[^>]*>([\\s\\S]*?)</"+r+">")}return t})();function A_e(t){var e={};t=us(t);for(var n=0;n<LS.length;++n){var r=LS[n],i=t.match(UEt[n]);i!=null&&i.length>0&&(e[r[1]]=Ji(i[1])),r[2]==="date"&&e[r[1]]&&(e[r[1]]=$l(e[r[1]]))}return e}var VEt=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function g_e(t,e,n,r){var i=[];if(typeof t=="string")i=yle(t,r);else for(var a=0;a<t.length;++a)i=i.concat(t[a].map(function(u){return{v:u}}));var s=typeof e=="string"?yle(e,r).map(function(u){return u.v}):e,o=0,l=0;if(s.length>0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"å·¥ä½è¡¨":case"ÐиÑÑÑ":case"Ø£ÙØ±Ø§Ù Ø§ÙØ¹Ù
Ù":case"ã¯ã¼ã¯ã·ã¼ã":case"××××× ×ת ×¢××××":case"Arbeitsblätter":case"ÃalıÅma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=s.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"ååä»ãä¸è¦§":case"Benannte Bereiche":case"Navngivne omrÃ¥der":n.NamedRanges=l,n.DefinedNames=s.slice(o,o+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=s.slice(o,o+l);break}o+=l}}function jEt(t,e,n){var r={};return e||(e={}),t=us(t),VEt.forEach(function(i){var a=(t.match(iT(i[0]))||[])[1];switch(i[2]){case"string":a&&(e[i[1]]=Ji(a));break;case"bool":e[i[1]]=a==="true";break;case"raw":var s=t.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));s&&s.length>0&&(r[i[1]]=s[1]);break}}),r.HeadingPairs&&r.TitlesOfParts&&g_e(r.HeadingPairs,r.TitlesOfParts,e,n),e}var HEt=/<[^>]+>[^<]*/g;function GEt(t,e){var n={},r="",i=t.match(HEt);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=jr(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":r=Ji(o.name);break;case"</property>":r=null;break;default:if(s.indexOf("<vt:")===0){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ji(u);break;case"bool":n[r]=Ls(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=$l(u);break;case"cy":case"error":n[r]=Ji(u);break;default:if(c.slice(-1)=="/")break;e.WTF&&typeof console<"u"&&console.warn("Unexpected",s,c,l)}}else if(s.slice(0,2)!=="</"){if(e.WTF)throw new Error(s)}}}return n}var zEt={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},fU;function $Et(t,e,n){fU||(fU=hY(zEt)),e=fU[e]||e,t[e]=n}function SY(t){var e=t.read_shift(4),n=t.read_shift(4);return new Date((n/1e7*Math.pow(2,32)+e/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function x_e(t,e,n){var r=t.l,i=t.read_shift(0,"lpstr-cp");if(n)for(;t.l-r&3;)++t.l;return i}function v_e(t,e,n){var r=t.read_shift(0,"lpwstr");return r}function y_e(t,e,n){return e===31?v_e(t):x_e(t,e,n)}function KH(t,e,n){return y_e(t,e,n===!1?0:4)}function qEt(t,e){if(!e)throw new Error("VtUnalignedString must have positive length");return y_e(t,e,0)}function WEt(t){for(var e=t.read_shift(4),n=[],r=0;r!=e;++r){var i=t.l;n[r]=t.read_shift(0,"lpwstr").replace(ju,""),t.l-i&2&&(t.l+=2)}return n}function ZEt(t){for(var e=t.read_shift(4),n=[],r=0;r!=e;++r)n[r]=t.read_shift(0,"lpstr-cp").replace(ju,"");return n}function YEt(t){var e=t.l,n=ID(t,p_e);t[t.l]==0&&t[t.l+1]==0&&t.l-e&2&&(t.l+=2);var r=ID(t,f0);return[n,r]}function XEt(t){for(var e=t.read_shift(4),n=[],r=0;r<e/2;++r)n.push(YEt(t));return n}function Dle(t,e){for(var n=t.read_shift(4),r={},i=0;i!=n;++i){var a=t.read_shift(4),s=t.read_shift(4);r[a]=t.read_shift(s,e===1200?"utf16le":"utf8").replace(ju,"").replace(Hw,"!"),e===1200&&s%2&&(t.l+=2)}return t.l&3&&(t.l=t.l>>3<<2),r}function __e(t){var e=t.read_shift(4),n=t.slice(t.l,t.l+e);return t.l+=e,(e&3)>0&&(t.l+=4-(e&3)&3),n}function QEt(t){var e={};return e.Size=t.read_shift(4),t.l+=e.Size+3-(e.Size-1)%4,e}function ID(t,e,n){var r=t.read_shift(2),i,a=n||{};if(t.l+=2,e!==Cle&&r!==e&&NEt.indexOf(e)===-1&&!((e&65534)==4126&&(r&65534)==4126))throw new Error("Expected type "+e+" saw "+r);switch(e===Cle?r:e){case 2:return i=t.read_shift(2,"i"),a.raw||(t.l+=2),i;case 3:return i=t.read_shift(4,"i"),i;case 11:return t.read_shift(4)!==0;case 19:return i=t.read_shift(4),i;case 30:return x_e(t,r,4).replace(ju,"");case 31:return v_e(t);case 64:return SY(t);case 65:return __e(t);case 71:return QEt(t);case 80:return KH(t,r,!a.raw).replace(ju,"");case 81:return qEt(t,r).replace(ju,"");case 4108:return XEt(t);case 4126:case 4127:return r==4127?WEt(t):ZEt(t);default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}}function Ple(t,e){var n=t.l,r=t.read_shift(4),i=t.read_shift(4),a=[],s=0,o=0,l=-1,c={};for(s=0;s!=i;++s){var u=t.read_shift(4),f=t.read_shift(4);a[s]=[u,f+n]}a.sort(function(C,M){return C[1]-M[1]});var h={};for(s=0;s!=i;++s){if(t.l!==a[s][1]){var p=!0;if(s>0&&e)switch(e[a[s-1][0]].t){case 2:t.l+2===a[s][1]&&(t.l+=2,p=!1);break;case 80:t.l<=a[s][1]&&(t.l=a[s][1],p=!1);break;case 4108:t.l<=a[s][1]&&(t.l=a[s][1],p=!1);break}if((!e||s==0)&&t.l<=a[s][1]&&(p=!1,t.l=a[s][1]),p)throw new Error("Read Error: Expected address "+a[s][1]+" at "+t.l+" :"+s)}if(e){var A=e[a[s][0]];if(h[A.n]=ID(t,A.t,{raw:!0}),A.p==="version"&&(h[A.n]=String(h[A.n]>>16)+"."+("0000"+String(h[A.n]&65535)).slice(-4)),A.n=="CodePage")switch(h[A.n]){case 0:h[A.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Mh(o=h[A.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[A.n])}}else if(a[s][0]===1){if(o=h.CodePage=ID(t,wY),Mh(o),l!==-1){var g=t.l;t.l=a[l][1],c=Dle(t,o),t.l=g}}else if(a[s][0]===0){if(o===0){l=s,t.l=a[s+1][1];continue}c=Dle(t,o)}else{var w=c[a[s][0]],T;switch(t[t.l]){case 65:t.l+=4,T=__e(t);break;case 30:t.l+=4,T=KH(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 31:t.l+=4,T=KH(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 3:t.l+=4,T=t.read_shift(4,"i");break;case 19:t.l+=4,T=t.read_shift(4);break;case 5:t.l+=4,T=t.read_shift(8,"f");break;case 11:t.l+=4,T=bo(t,4);break;case 64:t.l+=4,T=$l(SY(t));break;default:throw new Error("unparsed value: "+t[t.l])}h[w]=T}}return t.l=n+r,h}function kle(t,e,n){var r=t.content;if(!r)return{};ic(r,0);var i,a,s,o,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==$i.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(a=r.read_shift(16),o=r.read_shift(4),i===1&&o!==r.l)throw new Error("Length mismatch: "+o+" !== "+r.l);i===2&&(s=r.read_shift(16),l=r.read_shift(4));var f=Ple(r,e),h={SystemIdentifier:c};for(var p in f)h[p]=f[p];if(h.FMTID=a,i===1)return h;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);var A;try{A=Ple(r,null)}catch{}for(p in A)h[p]=A[p];return h.FMTID=[a,s],h}function PA(t,e){return t.read_shift(e),null}function KEt(t,e,n){for(var r=[],i=t.l+e;t.l<i;)r.push(n(t,i-t.l));if(i!==t.l)throw new Error("Slurp error");return r}function bo(t,e){return t.read_shift(e)===1}function Vo(t){return t.read_shift(2,"u")}function b_e(t,e){return KEt(t,e,Vo)}function JEt(t){var e=t.read_shift(1),n=t.read_shift(1);return n===1?e:e===1}function uE(t,e,n){var r=t.read_shift(n&&n.biff>=12?2:1),i="sbcs-cont";if(n&&n.biff>=8,!n||n.biff==8){var a=t.read_shift(1);a&&(i="dbcs-cont")}else n.biff==12&&(i="wstr");n.biff>=2&&n.biff<=5&&(i="cpstr");var s=r?t.read_shift(r,i):"";return s}function eMt(t){var e=t.read_shift(2),n=t.read_shift(1),r=n&4,i=n&8,a=1+(n&1),s=0,o,l={};i&&(s=t.read_shift(2)),r&&(o=t.read_shift(4));var c=a==2?"dbcs-cont":"sbcs-cont",u=e===0?"":t.read_shift(e,c);return i&&(t.l+=4*s),r&&(t.l+=o),l.t=u,i||(l.raw="<t>
5599"+l.t+"</t>",l.r=l.t),l}function Cy(t,e,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return t.read_shift(e,"cpstr");if(n.biff>=12)return t.read_shift(e,"dbcs-cont")}var i=t.read_shift(1);return i===0?r=t.read_shift(e,"sbcs-cont"):r=t.read_shift(e,"dbcs-cont"),r}function fE(t,e,n){var r=t.read_shift(n&&n.biff==2?1:2);return r===0?(t.l++,""):Cy(t,r,n)}function Ky(t,e,n){if(n.biff>5)return fE(t,e,n);var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,n.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function tMt(t){var e=t.read_shift(1);t.l++;var n=t.read_shift(2);return t.l+=2,[e,n]}function nMt(t){var e=t.read_shift(4),n=t.l,r=!1;e>24&&(t.l+=e-24,t.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(r=!0),t.l=n);var i=t.read_shift((r?e-24:e)>>1,"utf16le").replace(ju,"");return r&&(t.l+=24),i}function rMt(t){for(var e=t.read_shift(2),n="";e-- >0;)n+="../";var r=t.read_shift(0,"lpstr-ansi");if(t.l+=2,t.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=t.read_shift(4);if(i===0)return n+r.replace(/\\/g,"/");var a=t.read_shift(4);if(t.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=t.read_shift(a>>1,"utf16le").replace(ju,"");return n+s}function iMt(t,e){var n=t.read_shift(16);switch(n){case"e0c9ea79f9bace118c8200aa004ba90b":return nMt(t);case"0303000000000000c000000000000046":return rMt(t);default:throw new Error("Unsupported Moniker "+n)}}function YC(t){var e=t.read_shift(4),n=e>0?t.read_shift(e,"utf16le").replace(ju,""):"";return n}function aMt(t,e){var n=t.l+e,r=t.read_shift(4);if(r!==2)throw new Error("Unrecognized streamVersion: "+r);var i=t.read_shift(2);t.l+=2;var a,s,o,l,c="",u,f;i&16&&(a=YC(t,n-t.l)),i&128&&(s=YC(t,n-t.l)),(i&257)===257&&(o=YC(t,n-t.l)),(i&257)===1&&(l=iMt(t,n-t.l)),i&8&&(c=YC(t,n-t.l)),i&32&&(u=t.read_shift(16)),i&64&&(f=SY(t)),t.l=n;var h=s||o||l||"";h&&c&&(h+="#"+c),h||(h="#"+c),i&2&&h.charAt(0)=="/"&&h.charAt(1)!="/"&&(h="file://"+h);var p={Target:h};return u&&(p.guid=u),f&&(p.time=f),a&&(p.Tooltip=a),p}function w_e(t){var e=t.read_shift(1),n=t.read_shift(1),r=t.read_shift(1),i=t.read_shift(1);return[e,n,r,i]}function S_e(t,e){var n=w_e(t);return n[3]=0,n}function Up(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(2);return{r:e,c:n,ixfe:r}}function sMt(t){var e=t.read_shift(2),n=t.read_shift(2);return t.l+=8,{type:e,flags:n}}function oMt(t,e,n){return e===0?"":Ky(t,e,n)}function lMt(t,e,n){var r=n.biff>8?4:2,i=t.read_shift(r),a=t.read_shift(r,"i"),s=t.read_shift(r,"i");return[i,a,s]}function T_e(t){var e=t.read_shift(2),n=bY(t);return[e,n]}function cMt(t,e,n){t.l+=4,e-=4;var r=t.l+e,i=uE(t,e,n),a=t.read_shift(2);if(r-=t.l,a!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+a);return t.l+=a,i}function Yk(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(2),i=t.read_shift(2);return{s:{c:r,r:e},e:{c:i,r:n}}}function E_e(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(1),i=t.read_shift(1);return{s:{c:r,r:e},e:{c:i,r:n}}}var uMt=E_e;function M_e(t){t.l+=4;var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(2);return t.l+=12,[n,e,r]}function fMt(t){var e={};return t.l+=4,t.l+=16,e.fSharedNote=t.read_shift(2),t.l+=4,e}function dMt(t){var e={};return t.l+=4,t.cf=t.read_shift(2),e}function Pc(t){t.l+=2,t.l+=t.read_shift(2)}var hMt={0:Pc,4:Pc,5:Pc,6:Pc,7:dMt,8:Pc,9:Pc,10:Pc,11:Pc,12:Pc,13:fMt,14:Pc,15:Pc,16:Pc,17:Pc,18:Pc,19:Pc,20:Pc,21:M_e};function pMt(t,e){for(var n=t.l+e,r=[];t.l<n;){var i=t.read_shift(2);t.l-=2;try{r.push(hMt[i](t,n-t.l))}catch{return t.l=n,r}}return t.l!=n&&(t.l=n),r}function XC(t,e){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=t.read_shift(2),e-=2,e>=2&&(n.dt=t.read_shift(2),t.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(e>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return t.read_shift(e),n}function mMt(t,e){return e===0||t.read_shift(2),1200}function AMt(t,e,n){if(n.enc)return t.l+=e,"";var r=t.l,i=Ky(t,0,n);return t.read_shift(e+r-t.l),i}function gMt(t,e,n){var r=n&&n.biff==8||e==2?t.read_shift(2):(t.l+=e,0);return{fDialog:r&16,fBelow:r&64,fRight:r&128}}function xMt(t,e,n){var r=t.read_shift(4),i=t.read_shift(1)&3,a=t.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule";break}var s=uE(t,0,n);return s.length===0&&(s="Sheet1"),{pos:r,hs:i,dt:a,name:s}}function vMt(t,e){for(var n=t.l+e,r=t.read_shift(4),i=t.read_shift(4),a=[],s=0;s!=i&&t.l<n;++s)a.push(eMt(t));return a.Count=r,a.Unique=i,a}function yMt(t,e){var n={};return n.dsst=t.read_shift(2),t.l+=e-2,n}function _Mt(t){var e={};e.r=t.read_shift(2),e.c=t.read_shift(2),e.cnt=t.read_shift(2)-e.c;var n=t.read_shift(2);t.l+=4;var r=t.read_shift(1);return t.l+=3,r&7&&(e.level=r&7),r&32&&(e.hidden=!0),r&64&&(e.hpt=n/20),e}function bMt(t){var e=sMt(t);if(e.type!=2211)throw new Error("Invalid Future Record "+e.type);var n=t.read_shift(4);return n!==0}function wMt(t){return t.read_shift(2),t.read_shift(4)}function Lle(t,e,n){var r=0;n&&n.biff==2||(r=t.read_shift(2));var i=t.read_shift(2);n&&n.biff==2&&(r=1-(i>>15),i&=32767);var a={Unsynced:r&1,DyZero:(r&2)>>1,ExAsc:(r&4)>>2,ExDsc:(r&8)>>3};return[a,i]}function SMt(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(2),i=t.read_shift(2),a=t.read_shift(2),s=t.read_shift(2),o=t.read_shift(2),l=t.read_shift(2),c=t.read_shift(2);return{Pos:[e,n],Dim:[r,i],Flags:a,CurTab:s,FirstTab:o,Selected:l,TabRatio:c}}function TMt(t,e,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=t.read_shift(2);return{RTL:r&64}}function EMt(){}function MMt(t,e,n){var r={dyHeight:t.read_shift(2),fl:t.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:t.l+=2;break;default:t.l+=10;break}return r.name=uE(t,0,n),r}function CMt(t){var e=Up(t);return e.isst=t.read_shift(4),e}function NMt(t,e,n){n.biffguess&&n.biff==2&&(n.biff=5);var r=t.l+e,i=Up(t);n.biff==2&&t.l++;var a=fE(t,r-t.l,n);return i.val=a,i}function RMt(t,e,n){var r=t.read_shift(2),i=Ky(t,0,n);return[r,i]}var DMt=Ky;function Ole(t,e,n){var r=t.l+e,i=n.biff==8||!n.biff?4:2,a=t.read_shift(i),s=t.read_shift(i),o=t.read_shift(2),l=t.read_shift(2);return t.l=r,{s:{r:a,c:o},e:{r:s,c:l}}}function PMt(t){var e=t.read_shift(2),n=t.read_shift(2),r=T_e(t);return{r:e,c:n,ixfe:r[0],rknum:r[1]}}function kMt(t,e){for(var n=t.l+e-2,r=t.read_shift(2),i=t.read_shift(2),a=[];t.l<n;)a.push(T_e(t));if(t.l!==n)throw new Error("MulRK read error");var s=t.read_shift(2);if(a.length!=s-i+1)throw new Error("MulRK length mismatch");return{r,c:i,C:s,rkrec:a}}function LMt(t,e){for(var n=t.l+e-2,r=t.read_shift(2),i=t.read_shift(2),a=[];t.l<n;)a.push(t.read_shift(2));if(t.l!==n)throw new Error("MulBlank read error");var s=t.read_shift(2);if(a.length!=s-i+1)throw new Error("MulBlank length mismatch");return{r,c:i,C:s,ixfe:a}}function OMt(t,e,n,r){var i={},a=t.read_shift(4),s=t.read_shift(4),o=t.read_shift(4),l=t.read_shift(2);return i.patternType=PEt[o>>26],r.cellStyles&&(i.alc=a&7,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=s&15,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=o&127,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=l&127,i.icvBack=l>>7&127,i.fsxButton=l>>
559914&1),i}function FMt(t,e,n){var r={};return r.ifnt=t.read_shift(2),r.numFmtId=t.read_shift(2),r.flags=t.read_shift(2),r.fStyle=r.flags>>2&1,e-=6,r.data=OMt(t,e,r.fStyle,n),r}function IMt(t){t.l+=4;var e=[t.read_shift(2),t.read_shift(2)];if(e[0]!==0&&e[0]--,e[1]!==0&&e[1]--,e[0]>7||e[1]>7)throw new Error("Bad Gutters: "+e.join("|"));return e}function Fle(t,e,n){var r=Up(t);(n.biff==2||e==9)&&++t.l;var i=JEt(t);return r.val=i,r.t=i===!0||i===!1?"b":"e",r}function BMt(t,e,n){n.biffguess&&n.biff==2&&(n.biff=5);var r=Up(t),i=zc(t);return r.val=i,r}var Ile=oMt;function UMt(t,e,n){var r=t.l+e,i=t.read_shift(2),a=t.read_shift(2);if(n.sbcch=a,a==1025||a==14849)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var s=Cy(t,a),o=[];r>t.l;)o.push(fE(t));return[a,i,s,o]}function Ble(t,e,n){var r=t.read_shift(2),i,a={fBuiltIn:r&1,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return n.sbcch===14849&&(i=cMt(t,e-2,n)),a.body=i||t.read_shift(e-2),typeof i=="string"&&(a.Name=i),a}var VMt=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Ule(t,e,n){var r=t.l+e,i=t.read_shift(2),a=t.read_shift(1),s=t.read_shift(1),o=t.read_shift(n&&n.biff==2?1:2),l=0;(!n||n.biff>=5)&&(n.biff!=5&&(t.l+=2),l=t.read_shift(2),n.biff==5&&(t.l+=2),t.l+=4);var c=Cy(t,s,n);i&32&&(c=VMt[c.charCodeAt(0)]);var u=r-t.l;n&&n.biff==2&&--u;var f=r==t.l||o===0||!(u>0)?[]:_Nt(t,u,n,o);return{chKey:a,Name:c,itab:l,rgce:f}}function C_e(t,e,n){if(n.biff<8)return jMt(t,e,n);for(var r=[],i=t.l+e,a=t.read_shift(n.biff>8?4:2);a--!==0;)r.push(lMt(t,n.biff>8?12:6,n));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return r}function jMt(t,e,n){t[t.l+1]==3&&t[t.l]++;var r=uE(t,e,n);return r.charCodeAt(0)==3?r.slice(1):r}function HMt(t,e,n){if(n.biff<8){t.l+=e;return}var r=t.read_shift(2),i=t.read_shift(2),a=Cy(t,r,n),s=Cy(t,i,n);return[a,s]}function GMt(t,e,n){var r=E_e(t);t.l++;var i=t.read_shift(1);return e-=8,[bNt(t,e,n),i,r]}function Vle(t,e,n){var r=uMt(t);switch(n.biff){case 2:t.l++,e-=7;break;case 3:case 4:t.l+=2,e-=8;break;default:t.l+=6,e-=12}return[r,vNt(t,e,n)]}function zMt(t){var e=t.read_shift(4)!==0,n=t.read_shift(4)!==0,r=t.read_shift(4);return[e,n,r]}function $Mt(t,e,n){if(!(n.biff<8)){var r=t.read_shift(2),i=t.read_shift(2),a=t.read_shift(2),s=t.read_shift(2),o=Ky(t,0,n);return n.biff<8&&t.read_shift(1),[{r,c:i},o,s,a]}}function qMt(t,e,n){return $Mt(t,e,n)}function WMt(t,e){for(var n=[],r=t.read_shift(2);r--;)n.push(Yk(t));return n}function ZMt(t,e,n){if(n&&n.biff<8)return XMt(t,e,n);var r=M_e(t),i=pMt(t,e-22,r[1]);return{cmo:r,ft:i}}var YMt={8:function(t,e){var n=t.l+e;t.l+=10;var r=t.read_shift(2);t.l+=4,t.l+=2,t.l+=2,t.l+=2,t.l+=4;var i=t.read_shift(1);return t.l+=i,t.l=n,{fmt:r}}};function XMt(t,e,n){t.l+=4;var r=t.read_shift(2),i=t.read_shift(2),a=t.read_shift(2);t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=6,e-=36;var s=[];return s.push((YMt[r]||au)(t,e,n)),{cmo:[i,r,a],ft:s}}function QMt(t,e,n){var r=t.l,i="";try{t.l+=4;var a=(n.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(a)==-1?t.l+=6:s=tMt(t,6,n);var o=t.read_shift(2);t.read_shift(2),Vo(t,2);var l=t.read_shift(2);t.l+=l;for(var c=1;c<t.lens.length-1;++c){if(t.l-r!=t.lens[c])throw new Error("TxO: bad continue record");var u=t[t.l],f=Cy(t,t.lens[c+1]-t.lens[c]-1);if(i+=f,i.length>=(u?o:2*o))break}if(i.length!==o&&i.length!==o*2)throw new Error("cchText: "+o+" != "+i.length);return t.l=r+e,{t:i}}catch{return t.l=r+e,{t:i}}}function KMt(t,e){var n=Yk(t);t.l+=16;var r=aMt(t,e-24);return[n,r]}function JMt(t,e){t.read_shift(2);var n=Yk(t),r=t.read_shift((e-10)/2,"dbcs-cont");return r=r.replace(ju,""),[n,r]}function e7t(t){var e=[0,0],n;return n=t.read_shift(2),e[0]=Nle[n]||n,n=t.read_shift(2),e[1]=Nle[n]||n,e}function t7t(t){for(var e=t.read_shift(2),n=[];e-- >0;)n.push(S_e(t));return n}function n7t(t){for(var e=t.read_shift(2),n=[];e-- >0;)n.push(S_e(t));return n}function r7t(t){t.l+=2;var e={cxfs:0,crc:0};return e.cxfs=t.read_shift(2),e.crc=t.read_shift(4),e}function N_e(t,e,n){if(!n.cellStyles)return au(t,e);var r=n&&n.biff>=12?4:2,i=t.read_shift(r),a=t.read_shift(r),s=t.read_shift(r),o=t.read_shift(r),l=t.read_shift(2);r==2&&(t.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function i7t(t,e){var n={};return e<32||(t.l+=16,n.header=zc(t),n.footer=zc(t),t.l+=2),n}function a7t(t,e,n){var r={area:!1};if(n.biff!=5)return t.l+=e,r;var i=t.read_shift(1);return t.l+=3,i&16&&(r.area=!0),r}var s7t=Up,o7t=b_e,l7t=fE;function c7t(t){var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(4),i={fmt:e,env:n,len:r,data:t.slice(t.l,t.l+r)};return t.l+=r,i}
vendor: 7,523 bytes, line 5599
5599function u7t(t,e,n){n.biffguess&&n.biff==5&&(n.biff=2);var r=Up(t);++t.l;var i=Ky(t,e-7,n);return r.t="str",r.val=i,r}function f7t(t){var e=Up(t);++t.l;var n=zc(t);return e.t="n",e.val=n,e}function d7t(t){var e=Up(t);++t.l;var n=t.read_shift(2);return e.t="n",e.val=n,e}function h7t(t){var e=t.read_shift(1);return e===0?(t.l++,""):t.read_shift(e,"sbcs-cont")}function p7t(t,e){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=e-13}function m7t(t,e,n){var r=t.l+e,i=Up(t),a=t.read_shift(2),s=Cy(t,a,n);return t.l=r,i.t="str",i.val=s,i}var A7t=[2,3,48,49,131,139,140,245],jle=(function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=hY({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(o,l){var c=[],u=Jg(1);switch(l.type){case"base64":u=_h(Cf(o));break;case"binary":u=_h(o);break;case"buffer":case"array":u=o;break}ic(u,0);var f=u.read_shift(1),h=!!(f&136),p=!1,A=!1;switch(f){case 2:break;case 3:break;case 48:p=!0,h=!0;break;case 49:p=!0,h=!0;break;case 131:break;case 139:break;case 140:A=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var g=0,w=521;f==2&&(g=u.read_shift(2)),u.l+=3,f!=2&&(g=u.read_shift(4)),g>1048576&&(g=1e6),f!=2&&(w=u.read_shift(2));var T=u.read_shift(2),C=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(C=t[u[u.l]]),u.l+=1,u.l+=2),A&&(u.l+=36);for(var M=[],D={},k=Math.min(u.length,f==2?521:w-10-(p?264:0)),I=A?32:11;u.l<k&&u[u.l]!=13;)switch(D={},D.name=nT.utils.decode(C,u.slice(u.l,u.l+I)).replace(/[\u0000\r\n].*$/g,""),u.l+=I,D.type=String.fromCharCode(u.read_shift(1)),f!=2&&!A&&(D.offset=u.read_shift(4)),D.len=u.read_shift(1),f==2&&(D.offset=u.read_shift(2)),D.dec=u.read_shift(1),D.name.length&&M.push(D),f!=2&&(u.l+=A?13:14),D.type){case"B":(!p||D.len!=8)&&l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+D.name+":"+D.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+D.type)}if(u[u.l]!==13&&(u.l=w-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=w;var L=0,O=0;for(c[0]=[],O=0;O!=M.length;++O)c[0][O]=M[O].name;for(;g-- >0;){if(u[u.l]===42){u.l+=T;continue}for(++u.l,c[++L]=[],O=0,O=0;O!=M.length;++O){var B=u.slice(u.l,u.l+M[O].len);u.l+=M[O].len,ic(B,0);var G=nT.utils.decode(C,B);switch(M[O].type){case"C":G.trim().length&&(c[L][O]=G.replace(/\s+$/,""));break;case"D":G.length===8?c[L][O]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):c[L][O]=G;break;case"F":c[L][O]=parseFloat(G.trim());break;case"+":case"I":c[L][O]=A?B.read_shift(-4,"i")^2147483648:B.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":c[L][O]=!0;break;case"N":case"F":c[L][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[L][O]="##MEMO##"+(A?parseInt(G.trim(),10):B.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(c[L][O]=+G||0);break;case"@":c[L][O]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":c[L][O]=new Date((B.read_shift(4)-2440588)*864e5+B.read_shift(4));break;case"Y":c[L][O]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[L][O]=-B.read_shift(-8,"f");break;case"B":if(p&&M[O].len==8){c[L][O]=B.read_shift(8,"f");break}case"G":case"P":B.l+=M[O].len;break;case"0":if(M[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+M[O].type)}}}if(f!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=M,c}function r(o,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=N6(n(o,c),c);return u["!cols"]=c.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete c.DBF,u}function i(o,l){try{return gx(r(o,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,l){var c=l||{};if(+c.codepage>=0&&Mh(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=YH(),f=aG(o,{header:1,raw:!0,cellDates:!0}),h=f[0],p=f.slice(1),A=o["!cols"]||[],g=0,w=0,T=0,C=1;for(g=0;g<h.length;++g){if(((A[g]||{}).DBF||{}).name){h[g]=A[g].DBF.name,++T;continue}if(h[g]!=null){if(++T,typeof h[g]=="number"&&(h[g]=h[g].toString(10)),typeof h[g]!="string")throw new Error("DBF Invalid column name "+h[g]+" |"+typeof h[g]+"|");if(h.indexOf(h[g])!==g){for(w=0;w<1024;++w)if(h.indexOf(h[g]+"_"+w)==-1){h[g]+="_"+w;break}}}}var M=Ao(o["!ref"]),D=[],k=[],I=[];for(g=0;g<=M.e.c-M.s.c;++g){var L="",O="",B=0,G=[];for(w=0;w<p.length;++w)p[w][g]!=null&&G.push(p[w][g]);if(G.length==0||h[g]==null){D[g]="?";continue}for(w=0;w<G.length;++w){switch(typeof G[w]){case"number":O="B";break;case"string":O="C";break;case"boolean":O="L";break;case"object":O=G[w]instanceof Date?"D":"C";break;default:O="C"}B=Math.max(B,String(G[w]).length),L=L&&L!=O?"C":O}B>250&&(B=250),O=((A[g]||{}).DBF||{}).type,O=="C"&&A[g].DBF.len>B&&(B=A[g].DBF.len),L=="B"&&O=="N"&&(L="N",I[g]=A[g].DBF.dec,B=A[g].DBF.len),k[g]=L=="C"||O=="N"?B:a[L]||0,C+=k[g],D[g]=L}var j=u.next(32);for(j.write_shift(4,318902576),j.write_shift(4,p.length),j.write_shift(2,296+32*T),j.write_shift(2,C),g=0;g<4;++g)j.write_shift(4,0);for(j.write_shift(4,0|(+e[C3e]||3)<<8),g=0,w=0;g<h.length;++g)if(h[g]!=null){var z=u.next(32),Q=(h[g].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);z.write_shift(1,Q,"sbcs"),z.write_shift(1,D[g]=="?"?"C":D[g],"sbcs"),z.write_shift(4,w),z.write_shift(1,k[g]||a[D[g]]||0),z.write_shift(1,I[g]||0),z.write_shift(1,2),z.write_shift(4,0),z.write_shift(1,0),z.write_shift(4,0),z.write_shift(4,0),w+=k[g]||a[D[g]]||0}var ee=u.next(264);for(ee.write_shift(4,13),g=0;g<65;++g)ee.write_shift(4,0);for(g=0;g<p.length;++g){var Z=u.next(C);for(Z.write_shift(1,0),w=0;w<h.length;++w)if(h[w]!=null)switch(D[w]){case"L":Z.write_shift(1,p[g][w]==null?63:p[g][w]?84:70);break;case"B":Z.write_shift(8,p[g][w]||0,"f");break;case"N":var X="0";for(typeof p[g][w]=="number"&&(X=p[g][w].toFixed(I[w]||0)),T=0;T<k[w]-X.length;++T)Z.write_shift(1,32);Z.write_shift(1,X,"sbcs");break;case"D":p[g][w]?(Z.write_shift(4,("0000"+p[g][w].getFullYear()).slice(-4),"sbcs"),Z.write_shift(2,("00"+(p[g][w].getMonth()+1)).slice(-2),"sbcs"),Z.write_shift(2,("00"+p[g][w].getDate()).slice(-2),"sbcs")):Z.write_shift(8,"00000000","sbcs");break;case"C":var K=String(p[g][w]!=null?p[g][w]:"").slice(0,k[w]);for(Z.write_shift(1,K,"sbcs"),T=0;T<k[w]-K.length;++T)Z.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:r,from_sheet:s}})(),g7t=(function(){var t={AA:"Ã",BA:"Ã",CA:"Ã",DA:195,HA:"Ã",JA:197,AE:"Ã",BE:"Ã",CE:"Ã",HE:"Ã",AI:"Ã",BI:"Ã",C
5599I:"Ã",HI:"Ã",AO:"Ã",BO:"Ã",CO:"Ã",DO:213,HO:"Ã",AU:"Ã",BU:"Ã",CU:"Ã",HU:"Ã",Aa:"à ",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"Ã",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ã",Kc:"ç",q:"æ",z:"Å",a:"Ã",j:"Å",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+Mp(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(h,p){var A=t[p];return typeof A=="number"?rle(A):A},r=function(h,p,A){var g=p.charCodeAt(0)-32<<4|A.charCodeAt(0)-48;return g==59?h:rle(g)};t["|"]=254;function i(h,p){switch(p.type){case"base64":return a(Cf(h),p);case"binary":return a(h,p);case"buffer":return a(Hi&&Buffer.isBuffer(h)?h.toString("binary"):Zy(h),p);case"array":return a(My(h),p)}throw new Error("Unrecognized type "+p.type)}function a(h,p){var A=h.split(/[\n\r]+/),g=-1,w=-1,T=0,C=0,M=[],D=[],k=null,I={},L=[],O=[],B=[],G=0,j;for(+p.codepage>=0&&Mh(+p.codepage);T!==A.length;++T){G=0;
5599var z=A[T].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(e,n),Q=z.replace(/;;/g,"\0").split(";").map(function(de){return de.replace(/\u0000/g,";")}),ee=Q[0],Z;if(z.length>0)switch(ee){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Q[1].charAt(0)=="P"&&D.push(z.slice(3).replace(/;;/g,";"));break;case"C":var X=!1,K=!1,se=!1,ae=!1,J=-1,oe=-1;for(C=1;C<Q.length;++C)switch(Q[C].charAt(0)){case"A":break;case"X":w=parseInt(Q[C].slice(1))-1,K=!0;break;case"Y":for(g=parseInt(Q[C].slice(1))-1,K||(w=0),j=M.length;j<=g;++j)M[j]=[];break;case"K":Z=Q[C].slice(1),Z.charAt(0)==='"'?Z=Z.slice(1,Z.length-1):Z==="TRUE"?Z=!0:Z==="FALSE"?Z=!1:isNaN(Uh(Z))?isNaN(W_(Z).getDate())||(Z=$l(Z)):(Z=Uh(Z),k!==null&&M6(k)&&(Z=Zk(Z))),X=!0;break;case"E":ae=!0;var te=E3(Q[C].slice(1),{r:g,c:w});M[g][w]=[M[g][w],te];break;case"S":se=!0,M[g][w]=[M[g][w],"S5S"];break;case"G":break;case"R":J=parseInt(Q[C].slice(1))-1;break;case"C":oe=parseInt(Q[C].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+z)}if(X&&(M[g][w]&&M[g][w].length==2?M[g][w][0]=Z:M[g][w]=Z,k=null),se){if(ae)throw new Error("SYLK shared formula cannot have own formula");var he=J>-1&&M[J][oe];if(!he||!he[1])throw new Error("SYLK shared formula cannot find base");M[g][w][1]=U_e(he[1],{r:g-J,c:w-oe})}break;case"F":var me=0;for(C=1;C<Q.length;++C)switch(Q[C].charAt(0)){case"X":w=parseInt(Q[C].slice(1))-1,++me;break;case"Y":for(g=parseInt(Q[C].slice(1))-1,j=M.length;j<=g;++j)M[j]=[];break;case"M":G=parseInt(Q[C].slice(1))/20;break;case"F":break;case"G":break;case"P":k=D[parseInt(Q[C].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(B=Q[C].slice(1).split(" "),j=parseInt(B[0],10);j<=parseInt(B[1],10);++j)G=parseInt(B[2],10),O[j-1]=G===0?{hidden:!0}:{wch:G},Z_(O[j-1]);break;case"C":w=parseInt(Q[C].slice(1))-1,O[w]||(O[w]={});break;case"R":g=parseInt(Q[C].slice(1))-1,L[g]||(L[g]={}),G>0?(L[g].hpt=G,L[g].hpx=lT(G)):G===0&&(L[g].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+z)}me<1&&(k=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+z)}}return L.length>0&&(I["!rows"]=L),O.length>0&&(I["!cols"]=O),p&&p.sheetRows&&(M=M.slice(0,p.sheetRows)),[M,I]}function s(h,p){var A=i(h,p),g=A[0],w=A[1],T=N6(g,p);return Mp(w).forEach(function(C){T[C]=w[C]}),T}function o(h,p){return gx(s(h,p),p)}function l(h,p,A,g){var w="C;Y"+(A+1)+";X"+(g+1)+";K";switch(h.t){case"n":w+=h.v||0,h.f&&!h.F&&(w+=";E"+r9t(h.f,{r:A,c:g}));break;case"b":w+=h.v?"TRUE":"FALSE";break;case"e":w+=h.w||h.v;break;case"d":w+='"'+(h.w||h.v)+'"';break;case"s":w+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function c(h,p){p.forEach(function(A,g){var w="F;W"+(g+1)+" "+(g+1)+" ";A.hidden?w+="0":(typeof A.width=="number"&&!A.wpx&&(A.wpx=UD(A.width)),typeof A.wpx=="number"&&!A.wch&&(A.wch=VD(A.wpx)),typeof A.wch=="number"&&(w+=Math.round(A.wch))),w.charAt(w.length-1)!=" "&&h.push(w)})}function u(h,p){p.forEach(function(A,g){var w="F;";A.hidden?w+="M0;":A.hpt?w+="M"+20*A.hpt+";":A.hpx&&(w+="M"+20*F_e(A.hpx)+";"),w.length>2&&h.push(w+"R"+(g+1))})}function f(h,p){var A=["ID;PWXL;N;E"],g=[],w=Ao(h["!ref"]),T,C=Array.isArray(h),M=`\r 5600`;A.push("P;PGeneral"),A.push("F;P0;DG0G8;M255"),h["!cols"]&&c(A,h["!cols"]),h["!rows"]&&u(A,h["!rows"]),A.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var D=w.s.r;D<=w.e.r;++D)for(var k=w.s.c;k<=w.e.c;++k){var I=Jr({r:D,c:k});T=C?(h[D]||[])[k]:h[I],!(!T||T.v==null&&(!T.f||T.F))&&g.push(l(T,h,D,k))}return A.join(M)+M+g.join(M)+M+"E"+M}return{to_workbook:o,to_sheet:s,from_sheet:f}})(),x7t=(function(){function t(a,s){switch(s.type){case"base64":return e(Cf(a),s);case"binary":return e(a,s);case"buffer":return e(Hi&&Buffer.isBuffer(a)?a.toString("binary"):Zy(a),s);case"array":return e(My(a),s)}throw new Error("Unrecognized type "+s.type)}function e(a,s){for(var o=a.split(` 5601`),l=-1,c=-1,u=0,f=[];u!==o.length;++u){if(o[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var h=o[u].trim().split(","),p=h[0],A=h[1];++u;for(var g=o[u]||"";(g.match(/["]/g)||[]).length&1&&u<o.length-1;)g+=` 5602`+o[++u];switch(g=g.trim(),+p){case-1:if(g==="BOT"){f[++l]=[],c=0;continue}else if(g!=="EOD")throw new Error("Unrecognized DIF special command "+g);break;case 0:g==="TRUE"?f[l][c]=!0:g==="FALSE"?f[l][c]=!1:isNaN(Uh(A))?isNaN(W_(A).getDate())?f[l][c]=A:f[l][c]=$l(A):f[l][c]=Uh(A),++c;break;case 1:g=g.slice(1,g.length-1),g=g.replace(/""/g,'"'),g&&g.match(/^=".*"$/)&&(g=g.slice(2,-1)),f[l][c++]=g!==""?g:null;break}if(g==="EOD")break}}return s&&s.sheetRows&&(f=f.slice(0,s.sheetRows)),f}function n(a,s){return N6(t(a,s),s)}function r(a,s){return gx(n(a,s),s)}var i=(function(){var a=function(l,c,u,f,h){l.push(c),l.push(u+","+f),l.push('"'+h.replace(/"/g,'""')+'"')},s=function(l,c,u,f){l.push(c+","+u),l.push(c==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var c=[],u=Ao(l["!ref"]),f,h=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,u.e.r-u.s.r+1,""),a(c,"TUPLES",0,u.e.c-u.s.c+1,""),a(c,"DATA",0,0,"");for(var p=u.s.r;p<=u.e.r;++p){s(c,-1,0,"BOT");for(var A=u.s.c;A<=u.e.c;++A){var g=Jr({r:p,c:A});if(f=h?(l[p]||[])[A]:l[g],!f){s(c,1,0,"");continue}switch(f.t){case"n":var w=f.w;!w&&f.v!=null&&(w=f.v),w==null?f.f&&!f.F?s(c,1,0,"="+f.f):s(c,1,0,""):s(c,0,w,"V");break;
vendor: 9,811 bytes, lines 5602-5613
5602case"b":s(c,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":s(c,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=Nd(f.z||ai[14],Hu($l(f.v)))),s(c,0,f.w,"V");break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var T=`\r 5603`,C=c.join(T);return C}})();return{to_workbook:r,to_sheet:n,from_sheet:i}})(),v7t=(function(){function t(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` 5604`)}function e(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(f,h){for(var p=f.split(` 5605`),A=-1,g=-1,w=0,T=[];w!==p.length;++w){var C=p[w].trim().split(":");if(C[0]==="cell"){var M=Bu(C[1]);if(T.length<=M.r)for(A=T.length;A<=M.r;++A)T[A]||(T[A]=[]);switch(A=M.r,g=M.c,C[2]){case"t":T[A][g]=t(C[3]);break;case"v":T[A][g]=+C[3];break;case"vtf":var D=C[C.length-1];case"vtc":C[3]==="nl"?T[A][g]=!!+C[4]:T[A][g]=+C[4],C[2]=="vtf"&&(T[A][g]=[T[A][g],D])}}}return h&&h.sheetRows&&(T=T.slice(0,h.sheetRows)),T}function r(f,h){return N6(n(f,h),h)}function i(f,h){return gx(r(f,h),h)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` 5606`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` 5607`)+` 5608`,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` 5609`),l="--SocialCalcSpreadsheetControlSave--";function c(f){if(!f||!f["!ref"])return"";for(var h=[],p=[],A,g="",w=C6(f["!ref"]),T=Array.isArray(f),C=w.s.r;C<=w.e.r;++C)for(var M=w.s.c;M<=w.e.c;++M)if(g=Jr({r:C,c:M}),A=T?(f[C]||[])[M]:f[g],!(!A||A.v==null||A.t==="z")){switch(p=["cell",g,"t"],A.t){case"s":case"str":p.push(e(A.v));break;case"n":A.f?(p[2]="vtf",p[3]="n",p[4]=A.v,p[5]=e(A.f)):(p[2]="v",p[3]=A.v);break;case"b":p[2]="vt"+(A.f?"f":"c"),p[3]="nl",p[4]=A.v?"1":"0",p[5]=e(A.f||(A.v?"TRUE":"FALSE"));break;case"d":var D=Hu($l(A.v));p[2]="vtc",p[3]="nd",p[4]=""+D,p[5]=A.w||Nd(A.z||ai[14],D);break;case"e":continue}h.push(p.join(":"))}return h.push("sheet:c:"+(w.e.c-w.s.c+1)+":r:"+(w.e.r-w.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(` 5610`)}function u(f){return[a,s,o,s,c(f),l].join(` 5611`)}return{to_workbook:i,to_sheet:r,from_sheet:u}})(),sT=(function(){function t(u,f,h,p,A){A.raw?f[h][p]=u:u===""||(u==="TRUE"?f[h][p]=!0:u==="FALSE"?f[h][p]=!1:isNaN(Uh(u))?isNaN(W_(u).getDate())?f[h][p]=u:f[h][p]=$l(u):f[h][p]=Uh(u))}function e(u,f){var h=f||{},p=[];if(!u||u.length===0)return p;for(var A=u.split(/[\r\n]/),g=A.length-1;g>=0&&A[g].length===0;)--g;for(var w=10,T=0,C=0;C<=g;++C)T=A[C].indexOf(" "),T==-1?T=A[C].length:T++,w=Math.max(w,T);for(C=0;C<=g;++C){p[C]=[];var M=0;for(t(A[C].slice(0,w).trim(),p,C,M,h),M=1;M<=(A[C].length-w)/10+1;++M)t(A[C].slice(w+(M-1)*10,w+M*10).trim(),p,C,M,h)}return h.sheetRows&&(p=p.slice(0,h.sheetRows)),p}var n={44:",",9:" ",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function i(u){for(var f={},h=!1,p=0,A=0;p<u.length;++p)(A=u.charCodeAt(p))==34?h=!h:!h&&A in n&&(f[A]=(f[A]||0)+1);A=[];for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&A.push([f[p],p]);if(!A.length){f=r;for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&A.push([f[p],p])}return A.sort(function(g,w){return g[0]-w[0]||r[g[1]]-r[w[1]]}),n[A.pop()[1]]||44}function a(u,f){var h=f||{},p="",A=h.dense?[]:{},g={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(p=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(p=u.charAt(4),u=u.slice(6)):p=i(u.slice(0,1024)):h&&h.FS?p=h.FS:p=i(u.slice(0,1024));var w=0,T=0,C=0,M=0,D=0,k=p.charCodeAt(0),I=!1,L=0,O=u.charCodeAt(0);u=u.replace(/\r\n/mg,` 5612`);var B=h.dateNF!=null?RTt(h.dateNF):null;function G(){var j=u.slice(M,D),z={};if(j.charAt(0)=='"'&&j.charAt(j.length-1)=='"'&&(j=j.slice(1,-1).replace(/""/g,'"')),j.length===0)z.t="z";else if(h.raw)z.t="s",z.v=j;else if(j.trim().length===0)z.t="s",z.v=j;else if(j.charCodeAt(0)==61)j.charCodeAt(1)==34&&j.charCodeAt(j.length-1)==34?(z.t="s",z.v=j.slice(2,-1).replace(/""/g,'"')):a9t(j)?(z.t="n",z.f=j.slice(1)):(z.t="s",z.v=j);else if(j=="TRUE")z.t="b",z.v=!0;else if(j=="FALSE")z.t="b",z.v=!1;else if(!isNaN(C=Uh(j)))z.t="n",h.cellText!==!1&&(z.w=j),z.v=C;else if(!isNaN(W_(j).getDate())||B&&j.match(B)){z.z=h.dateNF||ai[14];var Q=0;B&&j.match(B)&&(j=DTt(j,h.dateNF,j.match(B)||[]),Q=1),h.cellDates?(z.t="d",z.v=$l(j,Q)):(z.t="n",z.v=Hu($l(j,Q))),h.cellText!==!1&&(z.w=Nd(z.z,z.v instanceof Date?Hu(z.v):z.v)),h.cellNF||delete z.z}else z.t="s",z.v=j;if(z.t=="z"||(h.dense?(A[w]||(A[w]=[]),A[w][T]=z):A[Jr({c:T,r:w})]=z),M=D+1,O=u.charCodeAt(M),g.e.c<T&&(g.e.c=T),g.e.r<w&&(g.e.r=w),L==k)++T;else if(T=0,++w,h.sheetRows&&h.sheetRows<=w)return!0}e:for(;D<u.length;++D)switch(L=u.charCodeAt(D)){case 34:O===34&&(I=!I);break;case k:case 10:case 13:if(!I&&G())break e;break}return D-M>0&&G(),A["!ref"]=qi(g),A}function s(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,f):N6(e(u,f),f)}function o(u,f){var h="",p=f.type=="string"?[0,0,0,0]:PY(u,f);switch(f.type){case"base64":h=Cf(u);break;case"binary":h=u;break;case"buffer":f.codepage==65001?h=u.toString("utf8"):f.codepage&&typeof nT<"u"||(h=Hi&&Buffer.isBuffer(u)?u.toString("binary"):Zy(u));break;case"array":h=My(u);break;case"string":h=u;break;default:throw new Error("Unrecognized type "+f.type)}return p[0]==239&&p[1]==187&&p[2]==191?h=us(h.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?h=us(h):f.type=="binary"&&typeof nT<"u",h.slice(0,19)=="socialcalc:version:"?v7t.to_sheet(f.type=="string"?h:us(h),f):s(h,f)}function l(u,f){return gx(o(u,f),f)}function c(u){for(var f=[],h=Ao(u["!ref"]),p,A=Array.isArray(u),g=h.s.r;g<=h.e.r;++g){for(var w=[],T=h.s.c;T<=h.e.c;++T){var C=Jr({r:g,c:T});if(p=A?(u[g]||[])[T]:u[C],!p||p.v==null){w.push(" ");continue}for(var M=(p.w||(P2(p),p.w)||"").slice(0,10);M.length<10;)M+=" ";w.push(M+(T===0?" ":""))}f.push(w.join(""))}return f.join(` 5613`)}return{to_workbook:l,to_sheet:o,from_sheet:c}})();function y7t(t,e){var n=e||{},r=!!n.WTF;n.WTF=!0;try{var i=g7t.to_workbook(t,n);return n.WTF=r,i}catch(a){if(n.WTF=r,!a.message.match(/SYLK bad record ID/)&&r)throw a;return sT.to_workbook(t,e)}}var OS=(function(){function t(te,he,me){if(te){ic(te,te.l||0);for(var de=me.Enum||J;te.l<te.length;){var Ae=te.read_shift(2),Se=de[Ae]||de[65535],Re=te.read_shift(2),Ne=te.l+Re,Fe=Se.f&&Se.f(te,Re,me);if(te.l=Ne,he(Fe,Se,Ae))return}}}function e(te,he){switch(he.type){case"base64":return n(_h(Cf(te)),he);case"binary":return n(_h(te),he);case"buffer":case"array":return n(te,he)}throw"Unsupported type "+he.type}function n(te,he){if(!te)return te;var me=he||{},de=me.dense?[]:{},Ae="Sheet1",Se="",Re=0,Ne={},Fe=[],Qe=[],ge={s:{r:0,c:0},e:{r:0,c:0}},Ie=me.sheetRows||0;if(te[2]==0&&(te[3]==8||te[3]==9)&&te.length>=16&&te[14]==5&&te[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(te[2]==2)me.Enum=J,t(te,function(Me,lt,Ht){switch(Ht){case 0:me.vers=Me,Me>=4096&&(me.qpro=!0);break;case 6:ge=Me;break;case 204:Me&&(Se=Me);break;case 222:Se=Me;break;case 15:case 51:me.qpro||(Me[1].v=Me[1].v.slice(1));case 13:case 14:case 16:Ht==14&&(Me[2]&112)==112&&(Me[2]&15)>1&&(Me[2]&15)<15&&(Me[1].z=me.dateNF||ai[14],me.cellDates&&(Me[1].t="d",Me[1].v=Zk(Me[1].v))),me.qpro&&Me[3]>Re&&(de["!ref"]=qi(ge),Ne[Ae]=de,Fe.push(Ae),de=me.dense?[]:{},ge={s:{r:0,c:0},e:{r:0,c:0}},Re=Me[3],Ae=Se||"Sheet"+(Re+1),Se="");var Le=me.dense?(de[Me[0].r]||[])[Me[0].c]:de[Jr(Me[0])];if(Le){Le.t=Me[1].t,Le.v=Me[1].v,Me[1].z!=null&&(Le.z=Me[1].z),Me[1].f!=null&&(Le.f=Me[1].f);break}me.dense?(de[Me[0].r]||(de[Me[0].r]=[]),de[Me[0].r][Me[0].c]=Me[1]):de[Jr(Me[0])]=Me[1];break}},me);else if(te[2]==26||te[2]==14)me.Enum=oe,te[2]==14&&(me.qpro=!0,te.l=0),t(te,function(Me,lt,Ht){switch(Ht){case 204:Ae=Me;break;case 22:Me[1].v=Me[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Me[3]>Re&&(de["!ref"]=qi(ge),Ne[Ae]=de,Fe.push(Ae),de=me.dense?[]:{},ge={s:{r:0,c:0},e:{r:0,c:0}},Re=Me[3],Ae="Sheet"+(Re+1)),Ie>0&&Me[0].r>=Ie)break;me.dense?(de[Me[0].r]||(de[Me[0].r]=[]),de[Me[0].r][Me[0].c]=Me[1]):de[Jr(Me[0])]=Me[1],ge.e.c<Me[0].c&&(ge.e.c=Me[0].c),ge.e.r<Me[0].r&&(ge.e.r=Me[0].r);break;case 27:Me[14e3]&&(Qe[Me[14e3][0]]=Me[14e3][1]);break;case 1537:Qe[Me[0]]=Me[1],Me[0]==Re&&(Ae=Me[1]);break}},me);else throw new Error("Unrecognized LOTUS BOF "+te[2]);if(de["!ref"]=qi(ge),Ne[Se||Ae]=de,Fe.push(Se||Ae),!Qe.length)return{SheetNames:Fe,Sheets:Ne};for(var De={},Xe=[],Ye=0;Ye<Qe.length;++Ye)Ne[Fe[Ye]]?(Xe.push(Qe[Ye]||Fe[Ye]),De[Qe[Ye]]=Ne[Qe[Ye]]||Ne[Fe[Ye]]):(Xe.push(Qe[Ye]),De[Qe[Ye]]={"!ref":"A1"});return{SheetNames:Xe,Sheets:De}}function r(te,he){var me=he||{};if(+me.codepage>=0&&Mh(+me.codepage),me.type=="string")throw new Error("Cannot write WK1 to JS string");var de=YH(),Ae=Ao(te["!ref"]),Se=Array.isArray(te),Re=[];dh(de,0,a(1030)),dh(de,6,l(Ae));for(var Ne=Math.min(Ae.e.r,8191),Fe=Ae.s.r;Fe<=Ne;++Fe)for(var Qe=mc(Fe),ge=Ae.s.c;ge<=Ae.e.c;++ge){Fe===Ae.s.r&&(Re[ge]=yl(ge));var Ie=Re[ge]+Qe,De=Se?(te[Fe]||[])[ge]:te[Ie];if(!(!De||De.t=="z"))if(De.t=="n")(De.v|0)==De.v&&De.v>=-32768&&De.v<=32767?dh(de,13,p(Fe,ge,De.v)):dh(de,14,g(Fe,ge,De.v));else{var Xe=P2(De);dh(de,15,f(Fe,ge,Xe.slice(0,239)))}}return dh(de,1),de.end()}function i(te,he){var me=he||{};if(+me.codepage>=0&&Mh(+me.codepage),me.type=="string")throw new Error("Cannot write WK3 to JS string");var de=YH();dh(de,0,s(te));for(var Ae=0,Se=0;Ae<te.SheetNames.length;++Ae)(te.Sheets[te.SheetNames[Ae]]||{})["!ref"]&&dh(de,27,ae(te.SheetNames[Ae],Se++));var Re=0;for(Ae=0;Ae<te.SheetNames.length;++Ae){var Ne=te.Sheets[te.SheetNames[Ae]];if(!(!Ne||!Ne["!ref"])){for(var Fe=Ao(Ne["!ref"]),Qe=Array.isArray(Ne),ge=[],Ie=Math.min(Fe.e.r,8191),De=Fe.s.r;De<=Ie;++De)for(var Xe=mc(De),Ye=Fe.s.c;Ye<=Fe.e.c;++Ye){De===Fe.s.r&&(ge[Ye]=yl(Ye));var Me=ge[Ye]+Xe,lt=Qe?(Ne[De]||[])[Ye]:Ne[Me];
vendor: 4,147 bytes, line 5613
5613if(!(!lt||lt.t=="z"))if(lt.t=="n")dh(de,23,G(De,Ye,Re,lt.v));else{var Ht=P2(lt);dh(de,22,L(De,Ye,Re,Ht.slice(0,239)))}}++Re}}return dh(de,1),de.end()}function a(te){var he=hl(2);return he.write_shift(2,te),he}function s(te){var he=hl(26);he.write_shift(2,4096),he.write_shift(2,4),he.write_shift(4,0);for(var me=0,de=0,Ae=0,Se=0;Se<te.SheetNames.length;++Se){var Re=te.SheetNames[Se],Ne=te.Sheets[Re];if(!(!Ne||!Ne["!ref"])){++Ae;var Fe=C6(Ne["!ref"]);me<Fe.e.r&&(me=Fe.e.r),de<Fe.e.c&&(de=Fe.e.c)}}return me>8191&&(me=8191),he.write_shift(2,me),he.write_shift(1,Ae),he.write_shift(1,de),he.write_shift(2,0),he.write_shift(2,0),he.write_shift(1,1),he.write_shift(1,2),he.write_shift(4,0),he.write_shift(4,0),he}function o(te,he,me){var de={s:{c:0,r:0},e:{c:0,r:0}};return he==8&&me.qpro?(de.s.c=te.read_shift(1),te.l++,de.s.r=te.read_shift(2),de.e.c=te.read_shift(1),te.l++,de.e.r=te.read_shift(2),de):(de.s.c=te.read_shift(2),de.s.r=te.read_shift(2),he==12&&me.qpro&&(te.l+=2),de.e.c=te.read_shift(2),de.e.r=te.read_shift(2),he==12&&me.qpro&&(te.l+=2),de.s.c==65535&&(de.s.c=de.e.c=de.s.r=de.e.r=0),de)}function l(te){var he=hl(8);return he.write_shift(2,te.s.c),he.write_shift(2,te.s.r),he.write_shift(2,te.e.c),he.write_shift(2,te.e.r),he}function c(te,he,me){var de=[{c:0,r:0},{t:"n",v:0},0,0];return me.qpro&&me.vers!=20768?(de[0].c=te.read_shift(1),de[3]=te.read_shift(1),de[0].r=te.read_shift(2),te.l+=2):(de[2]=te.read_shift(1),de[0].c=te.read_shift(2),de[0].r=te.read_shift(2)),de}function u(te,he,me){var de=te.l+he,Ae=c(te,he,me);if(Ae[1].t="s",me.vers==20768){te.l++;var Se=te.read_shift(1);return Ae[1].v=te.read_shift(Se,"utf8"),Ae}return me.qpro&&te.l++,Ae[1].v=te.read_shift(de-te.l,"cstr"),Ae}function f(te,he,me){var de=hl(7+me.length);de.write_shift(1,255),de.write_shift(2,he),de.write_shift(2,te),de.write_shift(1,39);for(var Ae=0;Ae<de.length;++Ae){var Se=me.charCodeAt(Ae);de.write_shift(1,Se>=128?95:Se)}return de.write_shift(1,0),de}function h(te,he,me){var de=c(te,he,me);return de[1].v=te.read_shift(2,"i"),de}function p(te,he,me){var de=hl(7);return de.write_shift(1,255),de.write_shift(2,he),de.write_shift(2,te),de.write_shift(2,me,"i"),de}function A(te,he,me){var de=c(te,he,me);return de[1].v=te.read_shift(8,"f"),de}function g(te,he,me){var de=hl(13);return de.write_shift(1,255),de.write_shift(2,he),de.write_shift(2,te),de.write_shift(8,me,"f"),de}function w(te,he,me){var de=te.l+he,Ae=c(te,he,me);if(Ae[1].v=te.read_shift(8,"f"),me.qpro)te.l=de;else{var Se=te.read_shift(2);D(te.slice(te.l,te.l+Se),Ae),te.l+=Se}return Ae}function T(te,he,me){var de=he&32768;return he&=-32769,he=(de?te:0)+(he>=8192?he-16384:he),(de?"":"$")+(me?yl(he):mc(he))}var C={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},M=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function D(te,he){ic(te,0);for(var me=[],de=0,Ae="",Se="",Re="",Ne="";te.l<te.length;){var Fe=te[te.l++];switch(Fe){case 0:me.push(te.read_shift(8,"f"));break;case 1:Se=T(he[0].c,te.read_shift(2),!0),Ae=T(he[0].r,te.read_shift(2),!1),me.push(Se+Ae);break;case 2:{var Qe=T(he[0].c,te.read_shift(2),!0),ge=T(he[0].r,te.read_shift(2),!1);Se=T(he[0].c,te.read_shift(2),!0),Ae=T(he[0].r,te.read_shift(2),!1),me.push(Qe+ge+":"+Se+Ae)}break;case 3:if(te.l<te.length){console.error("WK1 premature formula end");return}break;case 4:me.push("("+me.pop()+")");break;case 5:me.push(te.read_shift(2));break;case 6:{for(var Ie="";Fe=te[te.l++];)Ie+=String.fromCharCode(Fe);me.push('"'+Ie.replace(/"/g,'""')+'"')}break;case 8:me.push("-"+me.pop());break;case 23:me.push("+"+me.pop());break;case 22:me.push("NOT("+me.pop()+")");break;case 20:case 21:Ne=me.pop(),Re=me.pop(),me.push(["AND","OR"][Fe-20]+"("+Re+","+Ne+")");break;default:if(Fe<32&&M[Fe])Ne=me.pop(),Re=me.pop(),me.push(Re+M[Fe]+Ne);else if(C[Fe]){if(de=C[Fe][1],de==69&&(de=te[te.l++]),de>me.length){console.error("WK1 bad formula parse 0x"+Fe.toString(16)+":|"+me.join("|")+"|");return}var De=me.slice(-de);me.length-=de,me.push(C[Fe][0]+"("+De.join(",")+")")}
5613else return Fe<=7?console.error("WK1 invalid opcode "+Fe.toString(16)):Fe<=24?console.error("WK1 unsupported op "+Fe.toString(16)):Fe<=30?console.error("WK1 invalid opcode "+Fe.toString(16)):Fe<=115?console.error("WK1 unsupported function opcode "+Fe.toString(16)):console.error("WK1 unrecognized opcode "+Fe.toString(16))}}me.length==1?he[1].f=""+me[0]:console.error("WK1 bad formula parse |"+me.join("|")+"|")}function k(te){var he=[{c:0,r:0},{t:"n",v:0},0];return he[0].r=te.read_shift(2),he[3]=te[te.l++],he[0].c=te[te.l++],he}function I(te,he){var me=k(te);return me[1].t="s",me[1].v=te.read_shift(he-4,"cstr"),me}function L(te,he,me,de){var Ae=hl(6+de.length);Ae.write_shift(2,te),Ae.write_shift(1,me),Ae.write_shift(1,he),Ae.write_shift(1,39);for(var Se=0;Se<de.length;++Se){var Re=de.charCodeAt(Se);Ae.write_shift(1,Re>=128?95:Re)}return Ae.write_shift(1,0),Ae}function O(te,he){var me=k(te);me[1].v=te.read_shift(2);var de=me[1].v>>1;if(me[1].v&1)switch(de&7){case 0:de=(de>>3)*5e3;break;case 1:de=(de>>3)*500;break;case 2:de=(de>>3)/20;break;case 3:de=(de>>3)/200;break;case 4:de=(de>>3)/2e3;break;case 5:de=(de>>3)/2e4;break;case 6:de=(de>>3)/16;break;case 7:de=(de>>3)/64;break}return me[1].v=de,me}function B(te,he){var me=k(te),de=te.read_shift(4),Ae=te.read_shift(4),Se=te.read_shift(2);if(Se==65535)return de===0&&Ae===3221225472?(me[1].t="e",me[1].v=15):de===0&&Ae===3489660928?(me[1].t="e",me[1].v=42):me[1].v=0,me;var Re=Se&32768;return Se=(Se&32767)-16446,me[1].v=(1-Re*2)*(Ae*Math.pow(2,Se+32)+de*Math.pow(2,Se)),me}function G(te,he,me,de){var Ae=hl(14);if(Ae.write_shift(2,te),Ae.write_shift(1,me),Ae.write_shift(1,he),de==0)return Ae.write_shift(4,0),Ae.write_shift(4,0),Ae.write_shift(2,65535),Ae;var Se=0,Re=0,Ne=0,Fe=0;return de<0&&(Se=1,de=-de),Re=Math.log2(de)|0,de/=Math.pow(2,Re-31),Fe=de>>>0,(Fe&2147483648)==0&&(de/=2,++Re,Fe=de>>>0),de-=Fe,Fe|=2147483648,Fe>>>=0,de*=Math.pow(2,32),Ne=de>>>0,Ae.write_shift(4,Ne),Ae.write_shift(4,Fe),Re+=16383+(Se?32768:0),Ae.write_shift(2,Re),Ae}function j(te,he){var me=B(te);return te.l+=he-14,me}function z(te,he){var me=k(te),de=te.read_shift(4);return me[1].v=de>>6,me}function Q(te,he){var me=k(te),de=te.read_shift(8,"f");return me[1].v=de,me}function ee(te,he){var me=Q(te);return te.l+=he-10,me}function Z(te,he){return te[te.l+he-1]==0?te.read_shift(he,"cstr"):""}function X(te,he){var me=te[te.l++];me>he-1&&(me=he-1);for(var de="";de.length<me;)de+=String.fromCharCode(te[te.l++]);return de}function K(te,he,me){if(!(!me.qpro||he<21)){var de=te.read_shift(1);te.l+=17,te.l+=1,te.l+=2;var Ae=te.read_shift(he-21,"cstr");return[de,Ae]}}function se(te,he){for(var me={},de=te.l+he;te.l<de;){var Ae=te.read_shift(2);if(Ae==14e3){for(me[Ae]=[0,""],me[Ae][0]=te.read_shift(2);te[te.l];)me[Ae][1]+=String.fromCharCode(te[te.l]),te.l++;te.l++}}return me}function ae(te,he){var me=hl(5+te.length);me.write_shift(2,14e3),me.write_shift(2,he);for(var de=0;de<te.length;++de){var Ae=te.charCodeAt(de);me[me.l++]=Ae>127?95:Ae}return me[me.l++]=0,me}var J={0:{n:"BOF",f:Vo},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:A},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:w},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Z},222:{n:"SHEETNAMELP",f:X},65535:{n:""}},oe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:I},23:{n:"NUMBER17",f:B},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:j},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:se},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"}
5613,37:{n:"NUMBER25",f:z},38:{n:"??"},39:{n:"NUMBER27",f:Q},40:{n:"FORMULA28",f:ee},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Z},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:K},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:e}})();function _7t(t){var e={},n=t.match(su),r=0,i=!1;if(n)for(;r!=n.length;++r){var a=jr(n[r]);switch(a[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":e.shadow=1;break;case"</shadow>":break;case"<charset":if(a.val=="1")break;e.cp=lY[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":e.outline=1;break;case"</outline>":break;case"<rFont":e.name=a.val;break;case"<sz":e.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":e.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":e.uval="double";break;case"singleAccounting":e.uval="single-accounting";break;case"doubleAccounting":e.uval="double-accounting";break}case"<u>":case"<u/>":e.u=1;break;case"</u>":break;case"<b":if(a.val=="0")break;case"<b>":case"<b/>":e.b=1;break;case"</b>":break;case"<i":if(a.val=="0")break;case"<i>":case"<i/>":e.i=1;break;case"</i>":break;case"<color":a.rgb&&(e.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":e.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":e.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+a[0])}}return e}var b7t=(function(){var t=iT("t"),e=iT("rPr");function n(a){var s=a.match(t);if(!s)return{t:"s",v:""};var o={t:"s",v:Ji(s[1])},l=a.match(e);return l&&(o.s=_7t(l[1])),o}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(s){return s.replace(r,"").split(i).map(n).filter(function(o){return o.v})}})(),w7t=(function(){var e=/(\r\n|\n)/g;function n(i,a,s){var o=[];i.u&&o.push("text-decoration: underline;"),i.uval&&o.push("text-underline-style:"+i.uval+";"),i.sz&&o.push("font-size:"+i.sz+"pt;"),i.outline&&o.push("text-effect: outline;"),i.shadow&&o.push("text-shadow: auto;"),a.push('<span style="'+o.join("")+'">'),i.b&&(a.push("<b>"),s.push("</b>")),i.i&&(a.push("<i>"),s.push("</i>")),i.strike&&(a.push("<s>"),s.push("</s>"));var l=i.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(a.push("<"+l+">"),s.push("</"+l+">")),s.push("</span>"),i}function r(i){var a=[[],i.v,[]];return i.v?(i.s&&n(i.s,a[0],a[2]),a[0].join("")+a[1].replace(e,"<br/>")+a[2].join("")):""}return function(a){return a.map(r).join("")}})(),S7t=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,T7t=/<(?:\w+:)?r>/,E7t=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function TY(t,e){var n=e?e.cellHTML:!0,r={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ji(us(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=us(t),n&&(r.h=mY(r.t))):t.match(T7t)&&(r.r=us(t),r.t=Ji(us((t.replace(E7t,"").match(S7t)||[]).join("").replace(su,""))),n&&(r.h=w7t(b7t(r.r)))),r):{t
5613:""}}var M7t=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,C7t=/<(?:\w+:)?(?:si|sstItem)>/g,N7t=/<\/(?:\w+:)?(?:si|sstItem)>/;function R7t(t,e){var n=[],r="";if(!t)return n;var i=t.match(M7t);if(i){r=i[2].replace(C7t,"").split(N7t);for(var a=0;a!=r.length;++a){var s=TY(r[a].trim(),e);s!=null&&(n[n.length]=s)}i=jr(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function D7t(t){return[t.read_shift(4),t.read_shift(4)]}function P7t(t,e){var n=[],r=!1;return q2(t,function(a,s,o){switch(o){case 159:n.Count=a[0],n.Unique=a[1];break;case 19:n.push(a);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(s.T,!r||e.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),n}function R_e(t){for(var e=[],n=t.split(""),r=0;r<n.length;++r)e[r]=n[r].charCodeAt(0);return e}function m2(t,e){var n={};return n.Major=t.read_shift(2),n.Minor=t.read_shift(2),e>=4&&(t.l+=e-4),n}function k7t(t){var e={};return e.id=t.read_shift(0,"lpp4"),e.R=m2(t,4),e.U=m2(t,4),e.W=m2(t,4),e}function L7t(t){for(var e=t.read_shift(4),n=t.l+e-4,r={},i=t.read_shift(4),a=[];i-- >0;)a.push({t:t.read_shift(4),v:t.read_shift(0,"lpp4")});if(r.name=t.read_shift(0,"lpp4"),r.comps=a,t.l!=n)throw new Error("Bad DataSpaceMapEntry: "+t.l+" != "+n);return r}function O7t(t){var e=[];t.l+=4;for(var n=t.read_shift(4);n-- >0;)e.push(L7t(t));return e}function F7t(t){var e=[];t.l+=4;for(var n=t.read_shift(4);n-- >0;)e.push(t.read_shift(0,"lpp4"));return e}function I7t(t){var e={};return t.read_shift(4),t.l+=4,e.id=t.read_shift(0,"lpp4"),e.name=t.read_shift(0,"lpp4"),e.R=m2(t,4),e.U=m2(t,4),e.W=m2(t,4),e}function B7t(t){var e=I7t(t);if(e.ename=t.read_shift(0,"8lpp4"),e.blksz=t.read_shift(4),e.cmode=t.read_shift(4),t.read_shift(4)!=4)throw new Error("Bad !Primary record");return e}function D_e(t,e){var n=t.l+e,r={};r.Flags=t.read_shift(4)&63,t.l+=4,r.AlgID=t.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=r.Flags==36;break;case 26625:i=r.Flags==4;break;case 0:i=r.Flags==16||r.Flags==4||r.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=t.read_shift(4),r.KeySize=t.read_shift(4),r.ProviderType=t.read_shift(4),t.l+=8,r.CSPName=t.read_shift(n-t.l>>1,"utf16le"),t.l=n,r}function P_e(t,e){var n={},r=t.l+e;return t.l+=4,n.Salt=t.slice(t.l,t.l+16),t.l+=16,n.Verifier=t.slice(t.l,t.l+16),t.l+=16,t.read_shift(4),n.VerifierHash=t.slice(t.l,r),t.l=r,n}function U7t(t){var e=m2(t);switch(e.Minor){case 2:return[e.Minor,V7t(t)];case 3:return[e.Minor,j7t()];case 4:return[e.Minor,H7t(t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+e.Minor)}function V7t(t){var e=t.read_shift(4);if((e&63)!=36)throw new Error("EncryptionInfo mismatch");var n=t.read_shift(4),r=D_e(t,n),i=P_e(t,t.length-t.l);return{t:"Std",h:r,v:i}}function j7t(){throw new Error("File is password-protected: ECMA-376 Extensible")}function H7t(t){var e=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];t.l+=4;var n=t.read_shift(t.length-t.l,"utf8"),r={};return n.replace(su,function(a){var s=jr(a);switch(Bp(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":e.forEach(function(o){r[o]=s[o]});break;case"<dataIntegrity":r.encryptedHmacKey=s.encryptedHmacKey,r.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":r.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":r.encs.push(s);break;default:throw s[0]}}),r}function G7t(t,e){var n={},r=n.EncryptionVersionInfo=m2(t,4);if(e-=4,r.Minor!=2)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=t.read_shift(4),e-=4;var i=t.read_shift(4);return e-=4,n.EncryptionHeader=D_e(t,i),e-=i,n.EncryptionVerifier=P_e(t,e),n}function z7t(t){var e={},n=e.EncryptionVersionInfo=m2(t,4);if(n.Major!=1||n.Minor!=1)throw"unrecognized version code "+n.Major+" : "+n.Minor;return e.Salt=t.read_shift(16),e.EncryptedVerifier=t.read_shift(16),e.EncryptedVerifierHash=t.read_shift(16),e}function $7t(t){var e=0,n,r=R_e(t),i=r.length+1,a,s,o,l,c;for(n=Jg(i),n[0]=r.length,a=1;a!=i;++a)n[a]=r[a-1];for(a=i-1;a>=0;--a)s=n[a],o=(e&16384)===0?0:1,l=e<<1&32767,c=o|l,e=c^s;return e^52811}var k_e=(function(){var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],e=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,354
56130,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(s){return(s/2|s*128)&255},i=function(s,o){return r(s^o)},a=function(s){for(var o=e[s.length-1],l=104,c=s.length-1;c>=0;--c)for(var u=s[c],f=0;f!=7;++f)u&64&&(o^=n[l]),u*=2,--l;return o};return function(s){for(var o=R_e(s),l=a(o),c=o.length,u=Jg(16),f=0;f!=16;++f)u[f]=0;var h,p,A;for((c&1)===1&&(h=l>>8,u[c]=i(t[0],h),--c,h=l&255,p=o[o.length-1],u[c]=i(p,h));c>0;)--c,h=l>>8,u[c]=i(o[c],h),--c,h=l&255,u[c]=i(o[c],h);for(c=15,A=15-o.length;A>0;)h=l>>8,u[c]=i(t[A],h),--c,--A,h=l&255,u[c]=i(o[c],h),--c,--A;return u}})(),q7t=function(t,e,n,r,i){i||(i=e),r||(r=k_e(t));var a,s;for(a=0;a!=e.length;++a)s=e[a],s^=r[n],s=(s>>5|s<<3)&255,i[a]=s,++n;return[i,n,r]},W7t=function(t){var e=0,n=k_e(t);return function(r){var i=q7t("",r,e,n);return e=i[1],i[0]}};function Z7t(t,e,n,r){var i={key:Vo(t),verificationBytes:Vo(t)};return n.password&&(i.verifier=$7t(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=W7t(n.password)),i}function Y7t(t,e,n){var r=n||{};return r.Info=t.read_shift(2),t.l-=2,r.Info===1?r.Data=z7t(t):r.Data=G7t(t,e),r}function X7t(t,e,n){var r={Type:n.biff>=8?t.read_shift(2):0};return r.Type?Y7t(t,e-2,r):Z7t(t,n.biff>=8?e:e-2,n,r),r}var Q7t=(function(){function t(i,a){switch(a.type){case"base64":return e(Cf(i),a);case"binary":return e(i,a);case"buffer":return e(Hi&&Buffer.isBuffer(i)?i.toString("binary"):Zy(i),a);case"array":return e(My(i),a)}throw new Error("Unrecognized type "+a.type)}function e(i,a){var s=a||{},o=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(o)&&(o[f]=[]);for(var h=/\\\w+\b/g,p=0,A,g=-1;A=h.exec(u);){switch(A[0]){case"\\cell":var w=u.slice(p,h.lastIndex-A[0].length);if(w[0]==" "&&(w=w.slice(1)),++g,w.length){var T={v:w,t:"s"};Array.isArray(o)?o[f][g]=T:o[Jr({r:f,c:g})]=T}break}p=h.lastIndex}g>c.e.c&&(c.e.c=g)}),o["!ref"]=qi(c),o}function n(i,a){return gx(t(i,a),a)}function r(i){for(var a=["{\\rtf1\\ansi"],s=Ao(i["!ref"]),o,l=Array.isArray(i),c=s.s.r;c<=s.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var f=Jr({r:c,c:u});o=l?(i[c]||[])[u]:i[f],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(P2(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:n,to_sheet:t,from_sheet:r}})();function K7t(t){var e=t.slice(t[0]==="#"?1:0).slice(0,6);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}function oT(t){for(var e=0,n=1;e!=3;++e)n=n*256+(t[e]>255?255:t[e]<0?0:t[e]);return n.toString(16).toUpperCase().slice(1)}function J7t(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(e,n,r),a=Math.min(e,n,r),s=i-a;if(s===0)return[0,0,e];var o=0,l=0,c=i+a;switch(l=s/(c>1?2-c:c),i){case e:o=((n-r)/s+6)%6;break;case n:o=(r-e)/s+2;break;case r:o=(e-n)/s+4;break}return[o/6,l,c/2]}function eCt(t){var e=t[0],n=t[1],r=t[2],i=n*2*(r<.5?r:1-r),a=r-i/2,s=[a,a,a],o=6*e,l;if(n!==0)switch(o|0){case 0:case 6:l=i*o,s[0]+=i,s[1]+=l;break;case 1:l=i*(2-o),s[0]+=l,s[1]+=i;break;case 2:l=i*(o-2),s[1]+=i,s[2]+=l;break;case 3:l=i*(4-o),s[1]+=l,s[2]+=i;break;case 4:l=i*(o-4),s[2]+=i,s[0]+=l;break;case 5:l=i*(6-o),s[2]+=l,s[0]+=i;break}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function BD(t,e){if(e===0)return t;var n=J7t(K7t(t));return e<0?n[2]=n[2]*(1+e):n[2]=1-(1-n[2])*(1-e),oT(eCt(n))}var L_e=6,tCt=15,nCt=1,Nu=L_e;function UD(t){return Math.floor((t+Math.round(128/Nu)/256)*Nu)}function VD(t){return Math.floor((t-5)/Nu*100+.5)/100}function JH(t){return Math.round((t*Nu+5)/Nu*256)/256}function dU(t){return JH(VD(UD(t)))}function EY(t){var e=Math.abs(t-dU(t)),n=Nu;if(e>.005)for(Nu=nCt;Nu<tCt;++Nu)Math.abs(t-dU(t))<=e&&(e=Math.abs(t-dU(t)),n=Nu);Nu=n}
vendor: 5,191 bytes, line 5613
5613function Z_(t){t.width?(t.wpx=UD(t.width),t.wch=VD(t.wpx),t.MDW=Nu):t.wpx?(t.wch=VD(t.wpx),t.width=JH(t.wch),t.MDW=Nu):typeof t.wch=="number"&&(t.width=JH(t.wch),t.wpx=UD(t.width),t.MDW=Nu),t.customWidth&&delete t.customWidth}var rCt=96,O_e=rCt;function F_e(t){return t*96/O_e}function lT(t){return t*O_e/96}var iCt={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function aCt(t,e,n,r){e.Borders=[];var i={},a=!1;(t[0].match(su)||[]).forEach(function(s){var o=jr(s);switch(Bp(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},o.diagonalUp&&(i.diagonalUp=Ls(o.diagonalUp)),o.diagonalDown&&(i.diagonalDown=Ls(o.diagonalDown)),e.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in borders")}})}function sCt(t,e,n,r){e.Fills=[];var i={},a=!1;(t[0].match(su)||[]).forEach(function(s){var o=jr(s);switch(Bp(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},e.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":e.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":o.patternType&&(i.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),o.indexed&&(i.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(i.bgColor.theme=parseInt(o.theme,10)),o.tint&&(i.bgColor.tint=parseFloat(o.tint)),o.rgb&&(i.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),o.theme&&(i.fgColor.theme=parseInt(o.theme,10)),o.tint&&(i.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(i.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fills")}})}function oCt(t,e,n,r){e.Fonts=[];var i={},a=!1;(t[0].match(su)||[]).forEach(function(s){var o=jr(s);switch(Bp(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":e.Fonts.push(i),i={};break;case"<name":o.val&&(i.name=us(o.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=o.val?Ls(o.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=o.val?Ls(o.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(o.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=o.val?Ls(o.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=o.val?Ls(o.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=o.val?Ls(o.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=o.val?Ls(o.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=o.val?Ls(o.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":o.val&&(i.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(i.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(i.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(i.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=lY[parseInt(o.val,10)];break;case"<color":if(i.color||(i.color={}),o.auto&&(i.color.auto=Ls(o.auto)),o.rgb)i.color.rgb=o.rgb.slice(-6);else if(o.indexed){i.color.index=parseInt(o.indexed,10);var l=ay[i.color.index];i.color.index==81&&(l=ay[1]),l||(l=ay[1]),i.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else o.theme&&(i.color.theme=parseInt(o.theme,10),o.tint&&(i.color.tint=parseFloat(o.tint)),o.theme&&n.themeElements&&n.themeElements.clr
5613Scheme&&(i.color.rgb=BD(n.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fonts")}})}function lCt(t,e,n){e.NumberFmt=[];for(var r=Mp(ai),i=0;i<r.length;++i)e.NumberFmt[r[i]]=ai[r[i]];var a=t[0].match(su);if(a)for(i=0;i<a.length;++i){var s=jr(a[i]);switch(Bp(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=Ji(us(s.formatCode)),l=parseInt(s.numFmtId,10);if(e.NumberFmt[l]=o,l>0){if(l>392){for(l=392;l>60&&e.NumberFmt[l]!=null;--l);e.NumberFmt[l]=o}iy(o,l)}}break;case"</numFmt>":break;default:if(n.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}var QC=["numFmtId","fillId","fontId","borderId","xfId"],KC=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function cCt(t,e,n){e.CellXf=[];var r,i=!1;(t[0].match(su)||[]).forEach(function(a){var s=jr(a),o=0;switch(Bp(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(r=s,delete r[0],o=0;o<QC.length;++o)r[QC[o]]&&(r[QC[o]]=parseInt(r[QC[o]],10));for(o=0;o<KC.length;++o)r[KC[o]]&&(r[KC[o]]=Ls(r[KC[o]]));if(e.NumberFmt&&r.numFmtId>392){for(o=392;o>60;--o)if(e.NumberFmt[r.numFmtId]==e.NumberFmt[o]){r.numFmtId=o;break}}e.CellXf.push(r);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};s.vertical&&(l.vertical=s.vertical),s.horizontal&&(l.horizontal=s.horizontal),s.textRotation!=null&&(l.textRotation=s.textRotation),s.indent&&(l.indent=s.indent),s.wrapText&&(l.wrapText=Ls(s.wrapText)),r.alignment=l;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}var uCt=(function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,n=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,l,c){var u={};if(!o)return u;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var f;return(f=o.match(e))&&lCt(f,u,c),(f=o.match(i))&&oCt(f,u,l,c),(f=o.match(r))&&sCt(f,u,l,c),(f=o.match(a))&&aCt(f,u,l,c),(f=o.match(n))&&cCt(f,u,c),u}})();function fCt(t,e){var n=t.read_shift(2),r=tu(t);return[n,r]}function dCt(t,e,n){var r={};r.sz=t.read_shift(2)/20;var i=bEt(t);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var a=t.read_shift(2);switch(a===700&&(r.bold=1),t.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var s=t.read_shift(1);s!=0&&(r.underline=s);var o=t.read_shift(1);o>0&&(r.family=o);var l=t.read_shift(1);switch(l>0&&(r.charset=l),t.l++,r.color=_Et(t),t.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=tu(t),r}var hCt=au;function pCt(t,e){var n=t.l+e,r=t.read_shift(2),i=t.read_shift(2);return t.l=n,{ixfe:r,numFmtId:i}}var mCt=au;function ACt(t,e,n){var r={};r.NumberFmt=[];for(var i in ai)r.NumberFmt[i]=ai[i];r.CellXf=[],r.Fonts=[];var a=[],s=!1;return q2(t,function(l,c,u){switch(u){case 44:r.NumberFmt[l[0]]=l[1],iy(l[1],l[0]);break;case 43:r.Fonts.push(l),l.color.theme!=null&&e&&e.themeElements&&e.themeElements.clrScheme&&(l.color.rgb=BD(e.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:a[a.length-1]==617&&r.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(u),s=!0;break;case 38:a.pop(),s=!1;break;default:if(c.T>0)a.push(u);else if(c.T<0)a.pop();else if(!s||n.WTF&&a[a.length-1]!=37)throw new Error("Unexpected record 0x"+u.toString(16))}}),r}var gCt=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];
5613function xCt(t,e,n){e.themeElements.clrScheme=[];var r={};(t[0].match(su)||[]).forEach(function(i){var a=jr(i);switch(a[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=a.val;break;case"<a:sysClr":r.rgb=a.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":a[0].charAt(1)==="/"?(e.themeElements.clrScheme[gCt.indexOf(a[0])]=r,r={}):r.name=a[0].slice(3,a[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}})}function vCt(){}function yCt(){}var _Ct=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,bCt=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,wCt=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function SCt(t,e,n){e.themeElements={};var r;[["clrScheme",_Ct,xCt],["fontScheme",bCt,vCt],["fmtScheme",wCt,yCt]].forEach(function(i){if(!(r=t.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,e,n)})}var TCt=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function I_e(t,e){(!t||t.length===0)&&(t=ECt());var n,r={};if(!(n=t.match(TCt)))throw new Error("themeElements not found in theme");return SCt(n[0],r,e),r.raw=t,r}function ECt(t,e){var n=[Z3e];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',n[n.length]='<a:font script="Hang" typeface="ë§ì ê³ ë"/>',n[n.length]='<a:font script="Hans" typeface="å®ä½"/>',n[n.length]='<a:font script="Hant" typeface="æ°ç´°æé«"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>
5613',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',n[n.length]='<a:font script="Hang" typeface="ë§ì ê³ ë"/>',n[n.length]='<a:font script="Hans" typeface="å®ä½"/>',n[n.length]='<a:font script="Hant" typeface="æ°ç´°æé«"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>
5613",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function MCt(t,e,n){var r=t.l+e,i=t.read_shift(4);if(i!==124226){if(!n.cellStyles){t.l=r;return}var a=t.slice(t.l);t.l=r;var s;try{s=W3e(a,{type:"array"})}catch{return}var o=mf(s,"theme/theme/theme1.xml",!0);if(o)return I_e(o,n)}}function CCt(t){return t.read_shift(4)}function NCt(t){var e={};switch(e.xclrType=t.read_shift(2),e.nTintShade=t.read_shift(2),e.xclrType){case 0:t.l+=4;break;case 1:e.xclrValue=RCt(t,4);break;case 2:e.xclrValue=w_e(t);break;case 3:e.xclrValue=CCt(t);break;case 4:t.l+=4;break}return t.l+=8,e}function RCt(t,e){return au(t,e)}function DCt(t,e){return au(t,e)}function PCt(t){var e=t.read_shift(2),n=t.read_shift(2)-4,r=[e];switch(e){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=NCt(t);break;case 6:r[1]=DCt(t,n);break;case 14:case 15:r[1]=t.read_shift(n===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+e+" "+n)}return r}function kCt(t,e){var n=t.l+e;t.l+=2;var r=t.read_shift(2);t.l+=2;for(var i=t.read_shift(2),a=[];i-- >0;)a.push(PCt(t,n-t.l));return{ixfe:r,ext:a}}function LCt(t,e){e.forEach(function(n){n[0]})}function OCt(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:tu(t)}
5613}function FCt(t){for(var e=[],n=t.read_shift(4);n-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function ICt(t){return t.l+=4,t.read_shift(4)!=0}function BCt(t,e,n){var r={Types:[],Cell:[],Value:[]},i=n||{},a=[],s=!1,o=2;return q2(t,function(l,c,u){switch(u){case 335:r.Types.push({name:l.name});break;case 51:l.forEach(function(f){o==1?r.Cell.push({type:r.Types[f[0]-1].name,index:f[1]}):o==0&&r.Value.push({type:r.Types[f[0]-1].name,index:f[1]})});break;case 337:o=l?1:0;break;case 338:o=2;break;case 35:a.push(u),s=!0;break;case 36:a.pop(),s=!1;break;default:if(!c.T){if(!s||i.WTF&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}}),r}function UCt(t,e,n){var r={Types:[],Cell:[],Value:[]};if(!t)return r;var i=!1,a=2,s;return t.replace(su,function(o){var l=jr(o);switch(Bp(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":r.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var c=0;c<r.Types.length;++c)r.Types[c].name==l.name&&(s=r.Types[c]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":a==1?r.Cell.push({type:r.Types[l.t-1].name,index:+l.v}):a==0&&r.Value.push({type:r.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":a=1;break;case"</cellMetadata>":a=2;break;case"<valueMetadata":a=0;break;case"</valueMetadata>":a=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+l.i);break;default:if(!i&&n.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return o}),r}function VCt(t){var e=[];if(!t)return e;var n=1;return(t.match(su)||[]).forEach(function(r){var i=jr(r);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?n=i.i:i.i=n,e.push(i);break}}),e}function jCt(t){var e={};e.i=t.read_shift(4);var n={};n.r=t.read_shift(4),n.c=t.read_shift(4),e.r=Jr(n);var r=t.read_shift(1);return r&2&&(e.l="1"),r&8&&(e.a="1"),e}function HCt(t,e,n){var r=[];return q2(t,function(a,s,o){switch(o){case 63:r.push(a);break;default:if(!s.T)throw new Error("Unexpected record 0x"+o.toString(16))}}),r}function GCt(t,e,n,r){if(!t)return t;var i=r||{},a=!1;q2(t,function(o,l,c){switch(c){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(!l.T){if(!a||i.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}},i)}function zCt(t,e){if(!t)return"??";var n=(t.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return e["!id"][n].Target}function Hle(t,e,n,r){var i=Array.isArray(t),a;e.forEach(function(s){var o=Bu(s.ref);
5613if(i?(t[o.r]||(t[o.r]=[]),a=t[o.r][o.c]):a=t[s.ref],!a){a={t:"z"},i?t[o.r][o.c]=a:t[s.ref]=a;var l=Ao(t["!ref"]||"BDWGO1000001:A1");l.s.r>o.r&&(l.s.r=o.r),l.e.r<o.r&&(l.e.r=o.r),l.s.c>o.c&&(l.s.c=o.c),l.e.c<o.c&&(l.e.c=o.c);var c=qi(l);c!==t["!ref"]&&(t["!ref"]=c)}a.c||(a.c=[]);var u={a:s.author,t:s.t,r:s.r,T:n};s.h&&(u.h=s.h);for(var f=a.c.length-1;f>=0;--f){if(!n&&a.c[f].T)return;n&&!a.c[f].T&&a.c.splice(f,1)}if(n&&r){for(f=0;f<r.length;++f)if(u.a==r[f].id){u.a=r[f].name||u.a;break}}a.c.push(u)})}function $Ct(t,e){if(t.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],i=t.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&n.push(o[1])}});var a=t.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var l=jr(o[0]),c={author:l.authorId&&n[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},u=Bu(l.ref);if(!(e.sheetRows&&e.sheetRows<=u.r)){var f=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),h=!!f&&!!f[1]&&TY(f[1])||{r:"",t:"",h:""};c.r=h.r,h.r=="<t></t>"&&(h.t=h.h=""),c.t=(h.t||"").replace(/\r\n/g,` 5614`).replace(/\r/g,` 5615`),e.cellHTML&&(c.h=h.h),r.push(c)}}}}),r}function qCt(t,e){var n=[],r=!1,i={},a=0;return t.replace(su,function(o,l){var c=jr(o);switch(Bp(c[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":i.t!=null&&n.push(i);break;case"<text>":case"<text":a=l+o.length;break;case"</text>":i.t=t.slice(a,l).replace(/\r\n/g,` 5616`).replace(/\r/g,` 5617`);break;case"<mentions":case"<mentions>":r=!0;break;case"</mentions>":r=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(!r&&e.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return o}),n}function WCt(t,e){var n=[],r=!1;return t.replace(su,function(a){var s=jr(a);switch(Bp(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":n.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;default:if(!r&&e.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return a}),n}function ZCt(t){var e={};e.iauthor=t.read_shift(4);var n=Xy(t);return e.rfx=n.s,e.ref=Jr(n.s),t.l+=16,e}var YCt=tu;function XCt(t,e){var n=[],r=[],i={},a=!1;return q2(t,function(o,l,c){switch(c){case 632:r.push(o);break;case 635:i=o;break;case 637:i.t=o.t,i.h=o.h,i.r=o.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,e.sheetRows&&i.rfx&&e.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!a||e.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),n}var QCt="application/vnd.ms-office.vbaProject";function KCt(t){var e=$i.utils.cfb_new({root:"R"});return t.FullPaths.forEach(function(n,r){if(!(n.slice(-1)==="/"||!n.match(/_VBA_PROJECT_CUR/))){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");$i.utils.cfb_add(e,i,t.FileIndex[r].content)}}),$i.write(e)}function JCt(){return{"!type":"dialog"}}function e9t(){return{"!type":"dialog"}}function t9t(){return{"!type":"macro"}}function n9t(){return{"!type":"macro"}}var E3=(function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function n(r,i,a,s){var o=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return o?u+=e.c:--u,l?c+=e.r:--c,i+(o?"":"$")+yl(u)+(l?"":"$")+mc(c)}return function(i,a){return e=a,i.replace(t,n)}})(),B_e=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,r9t=(function(){return function(e,n){return e.replace(B_e,function(r,i,a,s,o,l){var c=vY(s)-(a?0:n.c),u=xY(l)-(o?0:n.r),f=u==0?"":o?u+1:"["+u+"]",h=c==0?"":a?c+1:"["+c+"]";return i+"R"+f+"C"+h})}})();function U_e(t,e){return t.replace(B_e,function(n,r,i,a,s,o){return r+(i=="$"?i+a:yl(vY(a)+e.c))+(s=="$"?s+o:mc(xY(o)+e.r))})}function i9t(t,e,n){var r=C6(e),i=r.s,a=Bu(n),s={r:a.r-i.r,c:a.c-i.c};return U_e(t,s)}function a9t(t){return t.length!=1}function Gle(t){return t.replace(/_xlfn\./g,"")}function Io(t){t.l+=1}function ex(t,e){var n=t.read_shift(2);
5617return[n&16383,n>>14&1,n>>15&1]}function V_e(t,e,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return j_e(t);n.biff==12&&(r=4)}var i=t.read_shift(r),a=t.read_shift(r),s=ex(t),o=ex(t);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function j_e(t){var e=ex(t),n=ex(t),r=t.read_shift(1),i=t.read_shift(1);return{s:{r:e[0],c:r,cRel:e[1],rRel:e[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function s9t(t,e,n){if(n.biff<8)return j_e(t);var r=t.read_shift(n.biff==12?4:2),i=t.read_shift(n.biff==12?4:2),a=ex(t),s=ex(t);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function H_e(t,e,n){if(n&&n.biff>=2&&n.biff<=5)return o9t(t);var r=t.read_shift(n&&n.biff==12?4:2),i=ex(t);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function o9t(t){var e=ex(t),n=t.read_shift(1);return{r:e[0],c:n,cRel:e[1],rRel:e[2]}}function l9t(t){var e=t.read_shift(2),n=t.read_shift(2);return{r:e,c:n&255,fQuoted:!!(n&16384),cRel:n>>15,rRel:n>>15}}function c9t(t,e,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return u9t(t);var i=t.read_shift(r>=12?4:2),a=t.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function u9t(t){var e=t.read_shift(2),n=t.read_shift(1),r=(e&32768)>>15,i=(e&16384)>>14;return e&=16383,r==1&&e>=8192&&(e=e-16384),i==1&&n>=128&&(n=n-256),{r:e,c:n,cRel:i,rRel:r}}function f9t(t,e,n){var r=(t[t.l++]&96)>>5,i=V_e(t,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function d9t(t,e,n){var r=(t[t.l++]&96)>>5,i=t.read_shift(2,"i"),a=8;if(n)switch(n.biff){case 5:t.l+=12,a=6;break;case 12:a=12;break}var s=V_e(t,a,n);return[r,i,s]}function h9t(t,e,n){var r=(t[t.l++]&96)>>5;return t.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function p9t(t,e,n){var r=(t[t.l++]&96)>>5,i=t.read_shift(2),a=8;if(n)switch(n.biff){case 5:t.l+=12,a=6;break;case 12:a=12;break}return t.l+=a,[r,i]}function m9t(t,e,n){var r=(t[t.l++]&96)>>5,i=s9t(t,e-1,n);return[r,i]}function A9t(t,e,n){var r=(t[t.l++]&96)>>5;return t.l+=n.biff==2?6:n.biff==12?14:7,[r]}function zle(t){var e=t[t.l+1]&1,n=1;return t.l+=4,[e,n]}function g9t(t,e,n){t.l+=2;for(var r=t.read_shift(n&&n.biff==2?1:2),i=[],a=0;a<=r;++a)i.push(t.read_shift(n&&n.biff==2?1:2));return i}function x9t(t,e,n){var r=t[t.l+1]&255?1:0;return t.l+=2,[r,t.read_shift(n&&n.biff==2?1:2)]}function v9t(t,e,n){var r=t[t.l+1]&255?1:0;return t.l+=2,[r,t.read_shift(n&&n.biff==2?1:2)]}function y9t(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function _9t(t,e,n){var r=t[t.l+1]&255?1:0;return t.l+=n&&n.biff==2?3:4,[r]}function G_e(t){var e=t.read_shift(1),n=t.read_shift(1);return[e,n]}function b9t(t){return t.read_shift(2),G_e(t)}function w9t(t){return t.read_shift(2),G_e(t)}function S9t(t,e,n){var r=(t[t.l]&96)>>5;t.l+=1;var i=H_e(t,0,n);return[r,i]}function T9t(t,e,n){var r=(t[t.l]&96)>>5;t.l+=1;var i=c9t(t,0,n);return[r,i]}function E9t(t,e,n){var r=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(2);n&&n.biff==5&&(t.l+=12);var a=H_e(t,0,n);return[r,i,a]}function M9t(t,e,n){var r=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(n&&n.biff<=3?1:2);return[CNt[i],q_e[i],r]}function C9t(t,e,n){var r=t[t.l++],i=t.read_shift(1),a=n&&n.biff<=3?[r==88?-1:0,t.read_shift(1)]:N9t(t);return[i,(a[0]===0?q_e:MNt)[a[1]]]}function N9t(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function R9t(t,e,n){t.l+=n&&n.biff==2?3:4}function D9t(t,e,n){if(t.l++,n&&n.biff==12)return[t.read_shift(4,"i"),0];var r=t.read_shift(2),i=t.read_shift(n&&n.biff==2?1:2);return[r,i]}function P9t(t){return t.l++,Qy[t.read_shift(1)]}function k9t(t){return t.l++,t.read_shift(2)}function L9t(t){return t.l++,t.read_shift(1)!==0}function O9t(t){return t.l++,zc(t)}function F9t(t,e,n){return t.l++,uE(t,e-1,n)}function I9t(t,e){var n=[t.read_shift(1)];if(e==12)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=bo(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:n[1]=Qy[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:n[1]=zc(t);break;case 2:n[1]=Ky(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function B9t(t,e,n){for(var r=t.read_shift(n.biff==12?4:2),i=[],a=0;a!=r;++a)i.push((n.biff==12?Xy:Yk)(t));return i}function U9t(t,e,n){var r=0,i=0;n.biff==12?(r=t.read_shift(4),i=t.read_shift(4)):(i=1+t.read_shift(1),r=1+t.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,--i==0&&(i=256));for(var a=0,s=[];a!=r&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=I9t(t,n.biff);return s}function V9t(t,e,n){var r=t.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=t.read_shift(i);switch(n.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[r,0,a]}function j9t(t,e,n){if(n.biff==5)return H9t(t);var r=t.read_shift(1)>>>5&3,i=t.read_shift(2),a=t.read_shift(4);return[r,i,a]}function H9t(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2,"i");t.l+=8;var r=t.read_shift(2);return t.l+=12,[e,n,r]}function G9t(t,e,n){var r=t.read_shift(1)>>>5&3;t.l+=n&&n.biff==2?3:4;var i=t.read_shift(n&&n.biff==2?1:2);return[r,i]}function z9t(t,e,n){var r=t.read_shift(1)>>>5&3,i=t.read_shift(n&&n.biff==2?1:2);return[r,i]}function $9t(t,e,n){var r=t.read_shift(1)>>>5&3;return t.l+=4,n.biff<8&&t.l--,n.biff==12&&(t.l+=2),[r]}function q9t(t,e,n){var r=(t[t.l++]&96)>>5,i=t.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6;break}return t.l+=a,[r,i]}var W9t=au,Z9t=au,Y9t=au;function dE(t,e,n){return t.l+=2,[l9t(t)]}function MY(t){return t.l+=6,[]}var X9t=dE,Q9t=MY,K9t=MY,J9t=dE;function z_e(t){return t.l+=2,[Vo(t),t.read_shift(2)&1]}var eNt=dE,tNt=z_e,nNt=MY,rNt=dE,iNt=dE,aNt=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function sNt(t){t.l+=2;var e=t.read_shift(2),n=t.read_shift(2),r=t.read_shift(4),i=t.read_shift(2),a=t.read_shift(2),s=aNt[n>>2&31];return{ixti:e,coltype:n&3,rt:s,idx:r,c:i,C:a}}function oNt(t){return t.l+=2,[t.read_shift(4)]}function lNt(t,e,n){return t.l+=5,t.l+=2,t.l+=n.biff==2?1:4,["PTGSHEET"]}function cNt(t,e,n){return t.l+=n.biff==2?4:5,["PTGENDSHEET"]}function uNt(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2);return[e,n]}function fNt(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2);return[e,n]}function dNt(t){return t.l+=4,[0,0]}var $le={1:{n:"PtgExp",f:D9t},2:{n:"PtgTbl",f:Y9t},3:{n:"PtgAdd",f:Io},4:{n:"PtgSub",f:Io},5:{n:"PtgMul",f:Io},6:{n:"PtgDiv",f:Io},7:{n:"PtgPower",f:Io},8:{n:"PtgConcat",f:Io},9:{n:"PtgLt",f:Io},10:{n:"PtgLe",f:Io},11:{n:"PtgEq",f:Io},12:{n:"PtgGe",f:Io},13:{n:"PtgGt",f:Io},14:{n:"PtgNe",f:Io},15:{n:"PtgIsect",f:Io},16:{n:"PtgUnion",f:Io},17:{n:"PtgRange",f:Io},18:{n:"PtgUplus",f:Io},19:{n:"PtgUminus",f:Io},20:{n:"PtgPercent",f:Io},21:{n:"PtgParen",f:Io}
vendor: 5,253 bytes, line 5617
5617,22:{n:"PtgMissArg",f:Io},23:{n:"PtgStr",f:F9t},26:{n:"PtgSheet",f:lNt},27:{n:"PtgEndSheet",f:cNt},28:{n:"PtgErr",f:P9t},29:{n:"PtgBool",f:L9t},30:{n:"PtgInt",f:k9t},31:{n:"PtgNum",f:O9t},32:{n:"PtgArray",f:A9t},33:{n:"PtgFunc",f:M9t},34:{n:"PtgFuncVar",f:C9t},35:{n:"PtgName",f:V9t},36:{n:"PtgRef",f:S9t},37:{n:"PtgArea",f:f9t},38:{n:"PtgMemArea",f:G9t},39:{n:"PtgMemErr",f:W9t},40:{n:"PtgMemNoMem",f:Z9t},41:{n:"PtgMemFunc",f:z9t},42:{n:"PtgRefErr",f:$9t},43:{n:"PtgAreaErr",f:h9t},44:{n:"PtgRefN",f:T9t},45:{n:"PtgAreaN",f:m9t},46:{n:"PtgMemAreaN",f:uNt},47:{n:"PtgMemNoMemN",f:fNt},57:{n:"PtgNameX",f:j9t},58:{n:"PtgRef3d",f:E9t},59:{n:"PtgArea3d",f:d9t},60:{n:"PtgRefErr3d",f:q9t},61:{n:"PtgAreaErr3d",f:p9t},255:{}},hNt={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},pNt={1:{n:"PtgElfLel",f:z_e},2:{n:"PtgElfRw",f:rNt},3:{n:"PtgElfCol",f:X9t},6:{n:"PtgElfRwV",f:iNt},7:{n:"PtgElfColV",f:J9t},10:{n:"PtgElfRadical",f:eNt},11:{n:"PtgElfRadicalS",f:nNt},13:{n:"PtgElfColS",f:Q9t},15:{n:"PtgElfColSV",f:K9t},16:{n:"PtgElfRadicalLel",f:tNt},25:{n:"PtgList",f:sNt},29:{n:"PtgSxName",f:oNt},255:{}},mNt={0:{n:"PtgAttrNoop",f:dNt},1:{n:"PtgAttrSemi",f:_9t},2:{n:"PtgAttrIf",f:v9t},4:{n:"PtgAttrChoose",f:g9t},8:{n:"PtgAttrGoto",f:x9t},16:{n:"PtgAttrSum",f:R9t},32:{n:"PtgAttrBaxcel",f:zle},33:{n:"PtgAttrBaxcel",f:zle},64:{n:"PtgAttrSpace",f:b9t},65:{n:"PtgAttrSpaceSemi",f:w9t},128:{n:"PtgAttrIfError",f:y9t},255:{}};function hE(t,e,n,r){if(r.biff<8)return au(t,e);for(var i=t.l+e,a=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=U9t(t,0,r),a.push(n[s][1]);break;case"PtgMemArea":n[s][2]=B9t(t,n[s][1],r),a.push(n[s][2]);break;case"PtgExp":r&&r.biff==12&&(n[s][1][1]=t.read_shift(4),a.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return e=i-t.l,e!==0&&a.push(au(t,e)),a}function pE(t,e,n){for(var r=t.l+e,i,a,s=[];r!=t.l;)e=r-t.l,a=t[t.l],i=$le[a]||$le[hNt[a]],(a===24||a===25)&&(i=(a===24?pNt:mNt)[t[t.l+1]]),!i||!i.f?au(t,e):s.push([i.n,i.f(t,e,n)]);return s}function ANt(t){for(var e=[],n=0;n<t.length;++n){for(var r=t[n],i=[],a=0;a<r.length;++a){var s=r[a];s?s[0]===2?i.push('"'+s[1].replace(/"/g,'""')+'"'):i.push(s[1]):i.push("")}e.push(i.join(","))}return e.join(";")}var gNt={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function xNt(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function $_e(t,e,n){if(!t)return"SH33TJSERR0";if(n.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var r=t.XTI[e];if(n.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(t[r[0]][0]){case 357:return i=r[1]==-1?"#REF":t.SheetNames[r[1]],r[1]==r[2]?i:i+":"+t.SheetNames[r[2]];case 358:return n.SID!=null?t.SheetNames[n.SID]:"SH33TJSSAME"+t[r[0]][0];default:return"SH33TJSSRC"+t[r[0]][0]}switch(t[r[0]][0][0]){case 1025:return i=r[1]==-1?"#REF":t.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+t.SheetNames[r[2]];case 14849:return t[r[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return t[r[0]][0][3]?(i=r[1]==-1?"#REF":t[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+t[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function qle(t,e,n){var r=$_e(t,e,n);return r=="#REF"?r:xNt(r,n)}function Uc(t,e,n,r,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],l,c,u,f=0,h=0,p,A="";if(!t[0]||!t[0][0])return"";for(var g=-1,w="",T=0,C=t[0].length;T<C;++T){var M=t[0][T];switch(M[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=o.pop(),c=o.pop(),g>=0){switch(t[0][g][1][0]){case 0:w=lo(" ",t[0][g][1][1]);break;case 1:w=lo("\r",t[0][g][1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}c=c+w,g=-1}o.push(c+gNt[M[0]]+l);break;case"PtgIsect":l=o.pop(),c=o.pop(),o.push(c+" "+l);break;case"PtgUnion":l=o.pop(),c=o.pop(),o.push(c+","+l);break;case"PtgRange":l=o.pop(),c=o.pop(),o.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=DS(M[1][1],s,i),o.push(PS(u,a));break;case"PtgRefN":u=n?DS(M[1][1],n,i):M[1][1],o.push(PS(u,a));break;case"PtgRef3d":f=M[1][1],u=DS(M[1][2],s,i),A=qle(r,f,i),o.push(A+"!"+PS(u,a));break;case"PtgFunc":case"PtgFuncVar":var D=M[1][0],k=M[1][1];D||(D=0),D&=127;var I=D==0?[]:o.slice(-D);o.length-=D,k==="User"&&(k=I.shift()),o.push(k+"("+I.join(",")+")");break;case"PtgBool":o.push(M[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(M[1]);break;case"PtgNum":o.push(String(M[1]));break;case"PtgStr":o.push('"'+M[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(M[1]);break;
5617case"PtgAreaN":p=Ele(M[1][1],n?{s:n}:s,i),o.push(uU(p,i));break;case"PtgArea":p=Ele(M[1][1],s,i),o.push(uU(p,i));break;case"PtgArea3d":f=M[1][1],p=M[1][2],A=qle(r,f,i),o.push(A+"!"+uU(p,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=M[1][2];var L=(r.names||[])[h-1]||(r[0]||[])[h],O=L?L.Name:"SH33TJSNAME"+String(h);O&&O.slice(0,6)=="_xlfn."&&!i.xlfn&&(O=O.slice(6)),o.push(O);break;case"PtgNameX":var B=M[1][1];h=M[1][2];var G;if(i.biff<=5)B<0&&(B=-B),r[B]&&(G=r[B][h]);else{var j="";if(((r[B]||[])[0]||[])[0]==14849||(((r[B]||[])[0]||[])[0]==1025?r[B][h]&&r[B][h].itab>0&&(j=r.SheetNames[r[B][h].itab-1]+"!"):j=r.SheetNames[h-1]+"!"),r[B]&&r[B][h])j+=r[B][h].Name;else if(r[0]&&r[0][h])j+=r[0][h].Name;else{var z=($_e(r,B,i)||"").split(";;");z[h-1]?j=z[h-1]:j+="SH33TJSERRX"}o.push(j);break}G||(G={Name:"SH33TJSERRY"}),o.push(G.Name);break;case"PtgParen":var Q="(",ee=")";if(g>=0){switch(w="",t[0][g][1][0]){case 2:Q=lo(" ",t[0][g][1][1])+Q;break;case 3:Q=lo("\r",t[0][g][1][1])+Q;break;case 4:ee=lo(" ",t[0][g][1][1])+ee;break;case 5:ee=lo("\r",t[0][g][1][1])+ee;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}o.push(Q+o.pop()+ee);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:M[1][1],r:M[1][0]};var Z={c:n.c,r:n.r};if(r.sharedf[Jr(u)]){var X=r.sharedf[Jr(u)];o.push(Uc(X,s,Z,r,i))}else{var K=!1;for(l=0;l!=r.arrayf.length;++l)if(c=r.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){o.push(Uc(c[1],s,Z,r,i)),K=!0;break}K||o.push(M[1])}break;case"PtgArray":o.push("{"+ANt(M[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=T;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+M[1].idx+"[#"+M[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(M));default:throw new Error("Unrecognized Formula Token: "+String(M))}var se=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&g>=0&&se.indexOf(t[0][T][0])==-1){M=t[0][g];var ae=!0;switch(M[1][0]){case 4:ae=!1;case 0:w=lo(" ",M[1][1]);break;case 5:ae=!1;case 1:w=lo("\r",M[1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+M[1][0])}o.push((ae?w:"")+o.pop()+(ae?"":w)),g=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function vNt(t,e,n){var r=t.l+e,i=n.biff==2?1:2,a,s=t.read_shift(i);if(s==65535)return[[],au(t,e-2)];var o=pE(t,s,n);return e!==s+i&&(a=hE(t,e-s-i,o,n)),t.l=r,[o,a]}function yNt(t,e,n){var r=t.l+e,i=n.biff==2?1:2,a,s=t.read_shift(i);if(s==65535)return[[],au(t,e-2)];var o=pE(t,s,n);return e!==s+i&&(a=hE(t,e-s-i,o,n)),t.l=r,[o,a]}function _Nt(t,e,n,r){var i=t.l+e,a=pE(t,r,n),s;return i!==t.l&&(s=hE(t,i-t.l,a,n)),[a,s]}function bNt(t,e,n){var r=t.l+e,i,a=t.read_shift(2),s=pE(t,a,n);return a==65535?[[],au(t,e-2)]:(e!==a+2&&(i=hE(t,r-a-2,s,n)),[s,i])}function wNt(t){var e;if(e2(t,t.l+6)!==65535)return[zc(t),"n"];switch(t[t.l]){case 0:return t.l+=8,["String","s"];case 1:return e=t[t.l+2]===1,t.l+=8,[e,"b"];case 2:return e=t[t.l+2],t.l+=8,[e,"e"];case 3:return t.l+=8,["","s"]}return[]}function hU(t,e,n){var r=t.l+e,i=Up(t);n.biff==2&&++t.l;var a=wNt(t),s=t.read_shift(1);n.biff!=2&&(t.read_shift(1),n.biff>=5&&t.read_shift(4));var o=yNt(t,r-t.l,n);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function Xk(t,e,n){var r=t.read_shift(4),i=pE(t,r,n),a=t.read_shift(4),s=a>0?hE(t,a,i,n):null;return[i,s]}var SNt=Xk,Qk=Xk,TNt=Xk,ENt=Xk,MNt
vendor: 7,369 bytes, line 5617
5617={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"}
5617,q_e={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERA
5617NKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},CNt={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Wle(t){return t.slice(0,3)=="of:"&&(t=t.slice(3)),t.charCodeAt(0)==61&&(t=t.
5617slice(1),t.charCodeAt(0)==61&&(t=t.slice(1))),t=t.replace(/COM\.MICROSOFT\./g,""),t=t.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,n){return n.replace(/\./g,"")}),t=t.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),t.replace(/[;~]/g,",").replace(/\|/g,";")}function pU(t){var e=t.split(":"),n=e[0].split(".")[0];return[n,e[0].split(".")[1]+(e.length>1?":"+(e[1].split(".")[1]||e[1].split(".")[0]):"")]}var FS={},M3={};function IS(t,e){if(t){var n=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(n=[1,1,1,1,.5,.5]),t.left==null&&(t.left=n[0]),t.right==null&&(t.right=n[1]),t.top==null&&(t.top=n[2]),t.bottom==null&&(t.bottom=n[3]),t.header==null&&(t.header=n[4]),t.footer==null&&(t.footer=n[5])}}function W_e(t,e,n,r,i,a){try{r.cellNF&&(t.z=ai[e])}catch(o){if(r.WTF)throw o}if(!(t.t==="z"&&!r.cellStyles)){if(t.t==="d"&&typeof t.v=="string"&&(t.v=$l(t.v)),(!r||r.cellText!==!1)&&t.t!=="z")try{if(ai[e]==null&&iy(NTt[e]||"General",e),t.t==="e")t.w=t.w||Qy[t.v];else if(e===0)if(t.t==="n")(t.v|0)===t.v?t.w=t.v.toString(10):t.w=rT(t.v);else if(t.t==="d"){var s=Hu(t.v);(s|0)===s?t.w=s.toString(10):t.w=rT(s)}else{if(t.v===void 0)return"";t.w=Ey(t.v,M3)}else t.t==="d"?t.w=Nd(e,Hu(t.v),M3):t.w=Nd(e,t.v,M3)}catch(o){if(r.WTF)throw o}if(r.cellStyles&&n!=null)try{t.s=a.Fills[n],t.s.fgColor&&t.s.fgColor.theme&&!t.s.fgColor.rgb&&(t.s.fgColor.rgb=BD(i.themeElements.clrScheme[t.s.fgColor.theme].rgb,t.s.fgColor.tint||0),r.WTF&&(t.s.fgColor.raw_rgb=i.themeElements.clrScheme[t.s.fgColor.theme].rgb)),t.s.bgColor&&t.s.bgColor.theme&&(t.s.bgColor.rgb=BD(i.themeElements.clrScheme[t.s.bgColor.theme].rgb,t.s.bgColor.tint||0),r.WTF&&(t.s.bgColor.raw_rgb=i.themeElements.clrScheme[t.s.bgColor.theme].rgb))}catch(o){if(r.WTF&&a.Fills)throw o}}}function NNt(t,e){var n=Ao(e);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(t["!ref"]=qi(n))}var RNt=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,DNt=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,PNt=/<(?:\w:)?hyperlink [^>]*>/mg,kNt=/"(\w*:\w*)"/,LNt=/<(?:\w:)?col\b[^>]*[\/]?>/g,ONt=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,FNt=/<(?:\w:)?pageMargins[^>]*\/>/g,Z_e=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,INt=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,BNt=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function UNt(t,e,n,r,i,a,s){if(!t)return t;r||(r={"!id":{}});var o=e.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",f=t.match(DNt);f?(c=t.slice(0,f.index),u=t.slice(f.index+f[0].length)):c=u=t;var h=c.match(Z_e);h?CY(h[0],o,i,n):(h=c.match(INt))&&VNt(h[0],h[1]||"",o,i,n);var p=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var A=c.slice(p,p+50).match(kNt);A&&NNt(o,A[1])}var g=c.match(BNt);g&&g[1]&&qNt(g[1],i);var w=[];if(e.cellStyles){var T=c.match(LNt);T&&GNt(w,T)}f&&WNt(f[1],o,e,l,a,s);var C=u.match(ONt);C&&(o["!autofilter"]=zNt(C[0]));var M=[],D=u.match(RNt);if(D)for(p=0;p!=D.length;++p)M[p]=Ao(D[p].slice(D[p].indexOf('"')+1));var k=u.match(PNt);k&&jNt(o,k,r);var I=u.match(FNt);if(I&&(o["!margins"]=HNt(jr(I[0]))),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=qi(l)),e.sheetRows>0&&o["!ref"]){var L=Ao(o["!ref"]);e.sheetRows<=+L.e.r&&(L.e.r=e.sheetRows-1,L.e.r>l.e.r&&(L.e.r=l.e.r),L.e.r<L.s.r&&(L.s.r=L.e.r),L.e.c>l.e.c&&(L.e.c=l.e.c),L.e.c<L.s.c&&(L.s.c=L.e.c),o["!fullref"]=o["!ref"],o["!ref"]=qi(L))}return w.length>0&&(o["!cols"]=w),M.length>0&&(o["!merges"]=M),o}function CY(t,e,n,r){var i=jr(t);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Ji(us(i.codeName)))}function VNt(t,e,n,r,i){CY(t.slice(0,t.indexOf(">")),n,r,i)}function jNt(t,e,n){for(var r=Array.isArray(t),i=0;i!=e.length;++i){var a=jr(us(e[i]),!0);if(!a.ref)return;var s=((n||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+Ji(a.location))):(a.Target="#"+Ji(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=Ao(a.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var u=Jr({c,r:l});r?(t[l]||(t[l]=[]),t[l][c]||(t[l][c]={t:"z",v:void 0}),t[l][c].l=a):(t[u]||(t[u]={t:"z",v:void 0}),t[u].l=a)}}}function HNt(t){var e={};return["left","right","top","bottom","header","footer"].forEach(function(n){t[n]&&(e[n]=parseFloat(t[n]))}),e}function GNt(t,e){for(var n=!1,r=0;r!=e.length;++r){var i=jr(e[r],!0);i.hidden&&(i.hidden=Ls(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,EY(i.width)),Z_(i);a<=s;)t[a++]=pc(i)}}function zNt(t){var e={ref:(t.match(/ref="([^"]*)"/)||[])[1]};return e}
5617var $Nt=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function qNt(t,e){e.Views||(e.Views=[{}]),(t.match($Nt)||[]).forEach(function(n,r){var i=jr(n);e.Views[r]||(e.Views[r]={}),+i.zoomScale&&(e.Views[r].zoom=+i.zoomScale),Ls(i.rightToLeft)&&(e.Views[r].RTL=!0)})}var WNt=(function(){var t=/<(?:\w+:)?c[ \/>]/,e=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=iT("v"),s=iT("f");return function(l,c,u,f,h,p){for(var A=0,g="",w=[],T=[],C=0,M=0,D=0,k="",I,L,O=0,B=0,G,j,z=0,Q=0,ee=Array.isArray(p.CellXf),Z,X=[],K=[],se=Array.isArray(c),ae=[],J={},oe=!1,te=!!u.sheetStubs,he=l.split(e),me=0,de=he.length;me!=de;++me){g=he[me].trim();var Ae=g.length;if(Ae!==0){var Se=0;e:for(A=0;A<Ae;++A)switch(g[A]){case">":if(g[A-1]!="/"){++A;break e}if(u&&u.cellStyles){if(L=jr(g.slice(Se,A),!0),O=L.r!=null?parseInt(L.r,10):O+1,B=-1,u.sheetRows&&u.sheetRows<O)continue;J={},oe=!1,L.ht&&(oe=!0,J.hpt=parseFloat(L.ht),J.hpx=lT(J.hpt)),L.hidden=="1"&&(oe=!0,J.hidden=!0),L.outlineLevel!=null&&(oe=!0,J.level=+L.outlineLevel),oe&&(ae[O-1]=J)}break;case"<":Se=A;break}if(Se>=A)break;if(L=jr(g.slice(Se,A),!0),O=L.r!=null?parseInt(L.r,10):O+1,B=-1,!(u.sheetRows&&u.sheetRows<O)){f.s.r>O-1&&(f.s.r=O-1),f.e.r<O-1&&(f.e.r=O-1),u&&u.cellStyles&&(J={},oe=!1,L.ht&&(oe=!0,J.hpt=parseFloat(L.ht),J.hpx=lT(J.hpt)),L.hidden=="1"&&(oe=!0,J.hidden=!0),L.outlineLevel!=null&&(oe=!0,J.level=+L.outlineLevel),oe&&(ae[O-1]=J)),w=g.slice(A).split(t);for(var Re=0;Re!=w.length&&w[Re].trim().charAt(0)=="<";++Re);for(w=w.slice(Re),A=0;A!=w.length;++A)if(g=w[A].trim(),g.length!==0){if(T=g.match(n),C=A,M=0,D=0,g="<c "+(g.slice(0,1)=="<"?">":"")+g,T!=null&&T.length===2){for(C=0,k=T[1],M=0;M!=k.length&&!((D=k.charCodeAt(M)-64)<1||D>26);++M)C=26*C+D;--C,B=C}else++B;for(M=0;M!=g.length&&g.charCodeAt(M)!==62;++M);if(++M,L=jr(g.slice(0,M),!0),L.r||(L.r=Jr({r:O-1,c:B})),k=g.slice(M),I={t:""},(T=k.match(a))!=null&&T[1]!==""&&(I.v=Ji(T[1])),u.cellFormula){if((T=k.match(s))!=null&&T[1]!==""){if(I.f=Ji(us(T[1])).replace(/\r\n/g,` 5618`),u.xlfn||(I.f=Gle(I.f)),T[0].indexOf('t="array"')>-1)I.F=(k.match(i)||[])[1],I.F.indexOf(":")>-1&&X.push([Ao(I.F),I.F]);else if(T[0].indexOf('t="shared"')>-1){j=jr(T[0]);var Ne=Ji(us(T[1]));u.xlfn||(Ne=Gle(Ne)),K[parseInt(j.si,10)]=[j,Ne,L.r]}}else(T=k.match(/<f[^>]*\/>/))&&(j=jr(T[0]),K[j.si]&&(I.f=i9t(K[j.si][1],K[j.si][2],L.r)));var Fe=Bu(L.r);for(M=0;M<X.length;++M)Fe.r>=X[M][0].s.r&&Fe.r<=X[M][0].e.r&&Fe.c>=X[M][0].s.c&&Fe.c<=X[M][0].e.c&&(I.F=X[M][1])}if(L.t==null&&I.v===void 0)if(I.f||I.F)I.v=0,I.t="n";else if(te)I.t="z";else continue;else I.t=L.t||"n";switch(f.s.c>B&&(f.s.c=B),f.e.c<B&&(f.e.c=B),I.t){case"n":if(I.v==""||I.v==null){if(!te)continue;I.t="z"}else I.v=parseFloat(I.v);break;case"s":if(typeof I.v>"u"){if(!te)continue;I.t="z"}else G=FS[parseInt(I.v,10)],I.v=G.t,I.r=G.r,u.cellHTML&&(I.h=G.h);break;case"str":I.t="s",I.v=I.v!=null?us(I.v):"",u.cellHTML&&(I.h=mY(I.v));break;case"inlineStr":T=k.match(r),I.t="s",T!=null&&(G=TY(T[1]))?(I.v=G.t,u.cellHTML&&(I.h=G.h)):I.v="";break;case"b":I.v=Ls(I.v);break;case"d":u.cellDates?I.v=$l(I.v,1):(I.v=Hu($l(I.v,1)),I.t="n");break;case"e":(!u||u.cellText!==!1)&&(I.w=I.v),I.v=m_e[I.v];break}if(z=Q=0,Z=null,ee&&L.s!==void 0&&(Z=p.CellXf[L.s],Z!=null&&(Z.numFmtId!=null&&(z=Z.numFmtId),u.cellStyles&&Z.fillId!=null&&(Q=Z.fillId))),W_e(I,z,Q,u,h,p),u.cellDates&&ee&&I.t=="n"&&M6(ai[z])&&(I.t="d",I.v=Zk(I.v)),L.cm&&u.xlmeta){var Qe=(u.xlmeta.Cell||[])[+L.cm-1];Qe&&Qe.type=="XLDAPR"&&(I.D=!0)}if(se){var ge=Bu(L.r);c[ge.r]||(c[ge.r]=[]),c[ge.r][ge.c]=I}else c[L.r]=I}}}}ae.length>0&&(c["!rows"]=ae)}})();function ZNt(t,e){var n={},r=t.l+e;n.r=t.read_shift(4),t.l+=4;var i=t.read_shift(2);t.l+=1;var a=t.read_shift(1);return t.l=r,a&7&&(n.level=a&7),a&16&&(n.hidden=!0),a&32&&(n.hpt=i/20),n}var YNt=Xy;function XNt(){}function QNt(t,e){var n={},r=t[t.l];return++t.l,n.above=!(r&64),n.left=!(r&128),t.l+=18,n.name=vEt(t),n}function KNt(t){var e=Ud(t);return[e]}function JNt(t){var e=Yy(t);return[e]}function eRt(t){var e=Ud(t),n=t.read_shift(1);return[e,n,"b"]}function tRt(t){var e=Yy(t),n=t.read_shift(1);return[e,n,"b"]}function nRt(t){var e=Ud(t),n=t.read_shift(1);return[e,n,"e"]}function rRt(t){var e=Yy(t),n=t.read_shift(1);return[e,n,"e"]}function iRt(t){var e=Ud(t),n=t.read_shift(4);return[e,n,"s"]}function aRt(t){var e=Yy(t),n=t.read_shift(4);return[e,n,"s"]}function sRt(t){var e=Ud(t),n=zc(t);return[e,n,"n"]}function Y_e(t){var e=Yy(t),n=zc(t);return[e,n,"n"]}function oRt(t){var e=Ud(t),n=bY(t);return[e,n,"n"]}function lRt(t){var e=Yy(t),n=bY(t);return[e,n,"n"]}function cRt(t){var e=Ud(t),n=yY(t);return[e,n,"is"]}function uRt(t){var e=Ud(t),n=tu(t);return[e,n,"str"]}function fRt(t){var e=Yy(t),n=tu(t);return[e,n,"str"]}function dRt(t,e,n){var r=t.l+e,i=Ud(t);i.r=n["!row"];var a=t.read_shift(1),s=[i,a,"b"];if(n.cellFormula){t.l+=2;var o=Qk(t,r-t.l,n);s[3]=Uc(o,null,i,n.supbooks,n)}else t.l=r;return s}function hRt(t,e,n){var r=t.l+e,i=Ud(t);i.r=n["!row"];var a=t.read_shift(1),s=[i,a,"e"];if(n.cellFormula){t.l+=2;var o=Qk(t,r-t.l,n);s[3]=Uc(o,null,i,n.supbooks,n)}else t.l=r;return s}function pRt(t,e,n){var r=t.l+e,i=Ud(t);i.r=n["!row"];var a=zc(t),s=[i,a,"n"];
vendor: 4,123 bytes, line 5618
5618if(n.cellFormula){t.l+=2;var o=Qk(t,r-t.l,n);s[3]=Uc(o,null,i,n.supbooks,n)}else t.l=r;return s}function mRt(t,e,n){var r=t.l+e,i=Ud(t);i.r=n["!row"];var a=tu(t),s=[i,a,"str"];if(n.cellFormula){t.l+=2;var o=Qk(t,r-t.l,n);s[3]=Uc(o,null,i,n.supbooks,n)}else t.l=r;return s}var ARt=Xy;function gRt(t,e){var n=t.l+e,r=Xy(t),i=_Y(t),a=tu(t),s=tu(t),o=tu(t);t.l=n;var l={rfx:r,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}function xRt(){}function vRt(t,e,n){var r=t.l+e,i=d_e(t),a=t.read_shift(1),s=[i];if(s[2]=a,n.cellFormula){var o=SNt(t,r-t.l,n);s[1]=o}else t.l=r;return s}function yRt(t,e,n){var r=t.l+e,i=Xy(t),a=[i];if(n.cellFormula){var s=ENt(t,r-t.l,n);a[1]=s,t.l=r}else t.l=r;return a}var _Rt=["left","right","top","bottom","header","footer"];function bRt(t){var e={};return _Rt.forEach(function(n){e[n]=zc(t)}),e}function wRt(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function SRt(){}function TRt(){}function ERt(t,e,n,r,i,a,s){if(!t)return t;var o=e||{};r||(r={"!id":{}});var l=o.dense?[]:{},c,u={s:{r:2e6,c:2e6},e:{r:0,c:0}},f=!1,h=!1,p,A,g,w,T,C,M,D,k,I=[];o.biff=12,o["!row"]=0;var L=0,O=!1,B=[],G={},j=o.supbooks||i.supbooks||[[]];if(j.sharedf=G,j.arrayf=B,j.SheetNames=i.SheetNames||i.Sheets.map(function(se){return se.name}),!o.supbooks&&(o.supbooks=j,i.Names))for(var z=0;z<i.Names.length;++z)j[0][z+1]=i.Names[z];var Q=[],ee=[],Z=!1;jD[16]={n:"BrtShortReal",f:Y_e};var X;if(q2(t,function(ae,J,oe){if(!h)switch(oe){case 148:c=ae;break;case 0:p=ae,o.sheetRows&&o.sheetRows<=p.r&&(h=!0),D=mc(w=p.r),o["!row"]=p.r,(ae.hidden||ae.hpt||ae.level!=null)&&(ae.hpt&&(ae.hpx=lT(ae.hpt)),ee[ae.r]=ae);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(A={t:ae[2]},ae[2]){case"n":A.v=ae[1];break;case"s":M=FS[ae[1]],A.v=M.t,A.r=M.r;break;case"b":A.v=!!ae[1];break;case"e":A.v=ae[1],o.cellText!==!1&&(A.w=Qy[A.v]);break;case"str":A.t="s",A.v=ae[1];break;case"is":A.t="s",A.v=ae[1].t;break}if((g=s.CellXf[ae[0].iStyleRef])&&W_e(A,g.numFmtId,null,o,a,s),T=ae[0].c==-1?T+1:ae[0].c,o.dense?(l[w]||(l[w]=[]),l[w][T]=A):l[yl(T)+D]=A,o.cellFormula){for(O=!1,L=0;L<B.length;++L){var te=B[L];p.r>=te[0].s.r&&p.r<=te[0].e.r&&T>=te[0].s.c&&T<=te[0].e.c&&(A.F=qi(te[0]),O=!0)}!O&&ae.length>3&&(A.f=ae[3])}if(u.s.r>p.r&&(u.s.r=p.r),u.s.c>T&&(u.s.c=T),u.e.r<p.r&&(u.e.r=p.r),u.e.c<T&&(u.e.c=T),o.cellDates&&g&&A.t=="n"&&M6(ai[g.numFmtId])){var he=Ov(A.v);he&&(A.t="d",A.v=new Date(he.y,he.m-1,he.d,he.H,he.M,he.S,he.u))}X&&(X.type=="XLDAPR"&&(A.D=!0),X=void 0);break;case 1:case 12:if(!o.sheetStubs||f)break;A={t:"z",v:void 0},T=ae[0].c==-1?T+1:ae[0].c,o.dense?(l[w]||(l[w]=[]),l[w][T]=A):l[yl(T)+D]=A,u.s.r>p.r&&(u.s.r=p.r),u.s.c>T&&(u.s.c=T),u.e.r<p.r&&(u.e.r=p.r),u.e.c<T&&(u.e.c=T),X&&(X.type=="XLDAPR"&&(A.D=!0),X=void 0);break;case 176:I.push(ae);break;case 49:X=((o.xlmeta||{}).Cell||[])[ae-1];break;case 494:var me=r["!id"][ae.relId];for(me?(ae.Target=me.Target,ae.loc&&(ae.Target+="#"+ae.loc),ae.Rel=me):ae.relId==""&&(ae.Target="#"+ae.loc),w=ae.rfx.s.r;w<=ae.rfx.e.r;++w)for(T=ae.rfx.s.c;T<=ae.rfx.e.c;++T)o.dense?(l[w]||(l[w]=[]),l[w][T]||(l[w][T]={t:"z",v:void 0}),l[w][T].l=ae):(C=Jr({c:T,r:w}),l[C]||(l[C]={t:"z",v:void 0}),l[C].l=ae);break;case 426:if(!o.cellFormula)break;B.push(ae),k=o.dense?l[w][T]:l[yl(T)+D],k.f=Uc(ae[1],u,{r:p.r,c:T},j,o),k.F=qi(ae[0]);break;case 427:if(!o.cellFormula)break;G[Jr(ae[0].s)]=ae[1],k=o.dense?l[w][T]:l[yl(T)+D],k.f=Uc(ae[1],u,{r:p.r,c:T},j,o);break;case 60:if(!o.cellStyles)break;for(;ae.e>=ae.s;)Q[ae.e--]={width:ae.w/256,hidden:!!(ae.flags&1),level:ae.level},Z||(Z=!0,EY(ae.w/256)),Z_(Q[ae.e+1]);break;case 161:l["!autofilter"]={ref:qi(ae)};break;case 476:l["!margins"]=ae;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),ae.name&&(i.Sheets[n].CodeName=ae.name),(ae.above||ae.left)&&(l["!outline"]={above:ae.above,left:ae.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),ae.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case
5618649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:f=!0;break;case 38:f=!1;break;default:if(!J.T){if(!f||o.WTF)throw new Error("Unexpected record 0x"+oe.toString(16))}}},o),delete o.supbooks,delete o["!row"],!l["!ref"]&&(u.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=qi(c||u)),o.sheetRows&&l["!ref"]){var K=Ao(l["!ref"]);o.sheetRows<=+K.e.r&&(K.e.r=o.sheetRows-1,K.e.r>u.e.r&&(K.e.r=u.e.r),K.e.r<K.s.r&&(K.s.r=K.e.r),K.e.c>u.e.c&&(K.e.c=u.e.c),K.e.c<K.s.c&&(K.s.c=K.e.c),l["!fullref"]=l["!ref"],l["!ref"]=qi(K))}return I.length>0&&(l["!merges"]=I),Q.length>0&&(l["!cols"]=Q),ee.length>0&&(l["!rows"]=ee),l}function MRt(t){var e=[],n=t.match(/^<c:numCache>/),r;(t.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(a){var s=a.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(e[+s[1]]=n?+s[2]:s[2])});var i=Ji((t.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(t.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(a){r=a.replace(/<.*?>/g,"")}),[e,i,r]}function CRt(t,e,n,r,i,a){var s=a||{"!type":"chart"};if(!t)return a;var o=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(t.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var h=MRt(f);u.s.r=u.s.c=0,u.e.c=o,c=yl(o),h[0].forEach(function(p,A){s[c+mc(A)]={t:"n",v:p,z:h[1]},l=A}),u.e.r<l&&(u.e.r=l),++o}),o>0&&(s["!ref"]=qi(u)),s}function NRt(t,e,n,r,i){if(!t)return t;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s,o=t.match(Z_e);return o&&CY(o[0],a,i,n),(s=t.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=s[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function RRt(t,e){t.l+=10;var n=tu(t);return{name:n}}function DRt(t,e,n,r,i){if(!t)return t;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=!1;return q2(t,function(l,c,u){switch(u){case 550:a["!rel"]=l;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),l.name&&(i.Sheets[n].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(c.T>0)){if(!(c.T<0)){if(!s||e.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}},e),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}var X_e=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],PRt=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],kRt=[],LRt=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Zle(t,e){for(var n=0;n!=t.length;++n)for(var r=t[n],i=0;i!=e.length;++i){var a=e[i];if(r[a[0]]==null)r[a[0]]=a[1];else switch(a[2]){case"bool":typeof r[a[0]]=="string"&&(r[a[0]]=Ls(r[a[0]]));break;case"int":typeof r[a[0]]=="string"&&(r[a[0]]=parseInt(r[a[0]],10));break}}}function Yle(t,e){for(var n=0;n!=e.length;++n){var r=e[n];if(t[r[0]]==null)t[r[0]]=r[1];else switch(r[2]){case"bool":typeof t[r[0]]=="string"&&(t[r[0]]=Ls(t[r[0]]));break;case"int":typeof t[r[0]]=="string"&&(t[r[0]]=parseInt(t[r[0]],10));break}}}function Q_e(t){Yle(t.WBProps,X_e),Yle(t.CalcPr,LRt),Zle(t.WBView,PRt),Zle(t.Sheets,kRt),M3.date1904=Ls(t.WBProps.date1904)}var ORt="][*?/\\".split("");function FRt(t,e){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var n=!0;return ORt.forEach(function(r){if(t.indexOf(r)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),n}var IRt=/<\w+:workbook/;function BRt(t,e){if(!t)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",a={},s=0;if(t.replace(su,function(l,c){var u=jr(l);switch(Bp(u[0])){case"<?xml":break;case"<workbook":l.match(IRt)&&(i="xmlns"+l.match(/<(\w+):/)[1]),n.xmlns=u[i];break;case"</workbook>":break;case"<fileVersion":delete u[0],n.AppVersion=u;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;
vendor: 4,761 bytes, line 5618
5618case"<workbookPr":case"<workbookPr/>":X_e.forEach(function(f){if(u[f[0]]!=null)switch(f[2]){case"bool":n.WBProps[f[0]]=Ls(u[f[0]]);break;case"int":n.WBProps[f[0]]=parseInt(u[f[0]],10);break;default:n.WBProps[f[0]]=u[f[0]]}}),u.codeName&&(n.WBProps.CodeName=us(u.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete u[0],n.WBView.push(u);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(u.state){case"hidden":u.Hidden=1;break;case"veryHidden":u.Hidden=2;break;default:u.Hidden=0}delete u.state,u.name=Ji(us(u.name)),delete u[0],n.Sheets.push(u);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":r=!0;break;case"</definedNames>":r=!1;break;case"<definedName":a={},a.Name=us(u.name),u.comment&&(a.Comment=u.comment),u.localSheetId&&(a.Sheet=+u.localSheetId),Ls(u.hidden||"0")&&(a.Hidden=!0),s=c+l.length;break;case"</definedName>":a.Ref=Ji(us(t.slice(s,c))),n.Names.push(a);break;case"<definedName/>":break;case"<calcPr":delete u[0],n.CalcPr=u;break;case"<calcPr/>":delete u[0],n.CalcPr=u;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":r=!0;break;case"</AlternateContent>":r=!1;break;case"<revisionPtr":break;default:if(!r&&e.WTF)throw new Error("unrecognized "+u[0]+" in workbook")}return l}),nEt.indexOf(n.xmlns)===-1)throw new Error("Unknown Namespace: "+n.xmlns);return Q_e(n),n}function URt(t,e){var n={};return n.Hidden=t.read_shift(4),n.iTabID=t.read_shift(4),n.strRelID=XH(t),n.name=tu(t),n}function VRt(t,e){var n={},r=t.read_shift(4);n.defaultThemeVersion=t.read_shift(4);var i=e>8?tu(t):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(r&65536),n.backupFile=!!(r&64),n.checkCompatibility=!!(r&4096),n.date1904=!!(r&1),n.filterPrivacy=!!(r&8),n.hidePivotFieldList=!!(r&1024),n.promptedSolutions=!!(r&16),n.publishItems=!!(r&2048),n.refreshAllConnections=!!(r&262144),n.saveExternalLinkValues=!!(r&128),n.showBorderUnselectedTables=!!(r&4),n.showInkAnnotation=!!(r&32),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(r&32768),n.updateLinks=["userSet","never","always"][r>>8&3],n}function jRt(t,e){var n={};return t.read_shift(4),n.ArchID=t.read_shift(4),t.l+=e-8,n}function HRt(t,e,n){var r=t.l+e;t.l+=4,t.l+=1;var i=t.read_shift(4),a=yEt(t),s=TNt(t,0,n),o=_Y(t);t.l=r;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}function GRt(t,e){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;e||(e={}),e.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],jD[16]={n:"BrtFRTArchID$",f:jRt},q2(t,function(l,c,u){switch(u){case 156:s.SheetNames.push(l.name),n.Sheets.push(l);break;case 153:n.WBProps=l;break;case 39:l.Sheet!=null&&(e.SID=l.Sheet),l.Ref=Uc(l.Ptg,null,null,s,e),delete e.SID,delete l.Ptg,a.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([u,l]):s[0]=[u,l],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(l),s.XTI=s.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(u),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(u),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(!c.T){if(!i||e.WTF&&r[r.length-1]!=37&&r[r.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}}
5618,e),Q_e(n),n.Names=a,n.supbooks=s,n}function zRt(t,e,n){return e.slice(-4)===".bin"?GRt(t,n):BRt(t,n)}function $Rt(t,e,n,r,i,a,s,o){return e.slice(-4)===".bin"?ERt(t,r,n,i,a,s,o):UNt(t,r,n,i,a,s,o)}function qRt(t,e,n,r,i,a,s,o){return e.slice(-4)===".bin"?DRt(t,r,n,i,a):NRt(t,r,n,i,a)}function WRt(t,e,n,r,i,a,s,o){return e.slice(-4)===".bin"?t9t():n9t()}function ZRt(t,e,n,r,i,a,s,o){return e.slice(-4)===".bin"?JCt():e9t()}function YRt(t,e,n,r){return e.slice(-4)===".bin"?ACt(t,n,r):uCt(t,n,r)}function XRt(t,e,n){return I_e(t,n)}function QRt(t,e,n){return e.slice(-4)===".bin"?P7t(t,n):R7t(t,n)}function KRt(t,e,n){return e.slice(-4)===".bin"?XCt(t,n):$Ct(t,n)}function JRt(t,e,n){return e.slice(-4)===".bin"?HCt(t):VCt(t)}function eDt(t,e,n,r){return n.slice(-4)===".bin"?GCt(t,e,n,r):void 0}function tDt(t,e,n){return e.slice(-4)===".bin"?BCt(t,e,n):UCt(t,e,n)}var K_e=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,J_e=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function fh(t,e){var n=t.split(/\s+/),r=[];if(r[0]=n[0],n.length===1)return r;var i=t.match(K_e),a,s,o,l;if(i)for(l=0;l!=i.length;++l)a=i[l].match(J_e),(s=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(s+1),r[o]=a[2].slice(1,a[2].length-1));return r}function nDt(t){var e=t.split(/\s+/),n={};if(e.length===1)return n;var r=t.match(K_e),i,a,s,o;if(r)for(o=0;o!=r.length;++o)i=r[o].match(J_e),(a=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(a+1),n[s]=i[2].slice(1,i[2].length-1));return n}var BS;function rDt(t,e){var n=BS[t]||Ji(t);return n==="General"?Ey(e):Nd(n,e)}function iDt(t,e,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Ls(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=$l(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}t[Ji(e)]=i}function aDt(t,e,n){if(t.t!=="z"){if(!n||n.cellText!==!1)try{t.t==="e"?t.w=t.w||Qy[t.v]:e==="General"?t.t==="n"?(t.v|0)===t.v?t.w=t.v.toString(10):t.w=rT(t.v):t.w=Ey(t.v):t.w=rDt(e||"General",t.v)}catch(a){if(n.WTF)throw a}try{var r=BS[e]||e||"General";if(n.cellNF&&(t.z=r),n.cellDates&&t.t=="n"&&M6(r)){var i=Ov(t.v);i&&(t.t="d",t.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(a){if(n.WTF)throw a}}}function sDt(t,e,n){if(n.cellStyles&&e.Interior){var r=e.Interior;r.Pattern&&(r.patternType=iCt[r.Pattern]||r.Pattern)}t[e.ID]=e}function oDt(t,e,n,r,i,a,s,o,l,c){var u="General",f=r.StyleID,h={};c=c||{};var p=[],A=0;for(f===void 0&&o&&(f=o.StyleID),f===void 0&&s&&(f=s.StyleID);a[f]!==void 0&&(a[f].nf&&(u=a[f].nf),a[f].Interior&&p.push(a[f].Interior),!!a[f].Parent);)f=a[f].Parent;switch(n.Type){case"Boolean":r.t="b",r.v=Ls(t);break;case"String":r.t="s",r.r=gle(Ji(t)),r.v=t.indexOf("<")>-1?Ji(e||t).replace(/<.*?>/g,""):r.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),r.v=($l(t)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),r.v!==r.v?r.v=Ji(t):r.v<60&&(r.v=r.v-1),(!u||u=="General")&&(u="yyyy-mm-dd");case"Number":r.v===void 0&&(r.v=+t),r.t||(r.t="n");break;case"Error":r.t="e",r.v=m_e[t],c.cellText!==!1&&(r.w=t);break;default:t==""&&e==""?r.t="z":(r.t="s",r.v=gle(e||t));break}if(aDt(r,u,c),c.cellFormula!==!1)if(r.Formula){var g=Ji(r.Formula);g.charCodeAt(0)==61&&(g=g.slice(1)),r.f=E3(g,i),delete r.Formula,r.ArrayRange=="RC"?r.F=E3("RC:RC",i):r.ArrayRange&&(r.F=E3(r.ArrayRange,i),l.push([Ao(r.F),r.F]))}else for(A=0;A<l.length;++A)i.r>=l[A][0].s.r&&i.r<=l[A][0].e.r&&i.c>=l[A][0].s.c&&i.c<=l[A][0].e.c&&(r.F=l[A][1]);c.cellStyles&&(p.forEach(function(w){!h.patternType&&w.patternType&&(h.patternType=w.patternType)}),r.s=h),r.StyleID!==void 0&&(r.ixfe=r.StyleID)}function lDt(t){t.t=t.v||"",t.t=t.t.replace(/\r\n/g,` 5619`).replace(/\r/g,` 5620`),t.v=t.w=t.ixfe=void 0}function mU(t,e){var n=e||{};j3e();var r=jw(AY(t));(n.type=="binary"||n.type=="array"||n.type=="base64")&&(r=us(r));var i=r.slice(0,1024).toLowerCase(),a=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var s=pc(n);return s.type="string",sT.to_workbook(r,s)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(lt){i.indexOf("<"+lt)>=0&&(a=!0)}),a)return gDt(r,n);BS={"General Number":"General","General Date":ai[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":ai[15],"Short Date":ai[14],"Long Time":
vendor: 10,210 bytes, line 5620
5620ai[19],"Medium Time":ai[18],"Short Time":ai[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:ai[2],Standard:ai[4],Percent:ai[10],Scientific:ai[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,l=[],c,u={},f=[],h=n.dense?[]:{},p="",A={},g={},w=fh('<Data ss:Type="String">'),T=0,C=0,M=0,D={s:{r:2e6,c:2e6},e:{r:0,c:0}},k={},I={},L="",O=0,B=[],G={},j={},z=0,Q=[],ee=[],Z={},X=[],K,se=!1,ae=[],J=[],oe={},te=0,he=0,me={Sheets:[],WBProps:{date1904:!1}},de={};aT.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/mg,"");for(var Ae="";o=aT.exec(r);)switch(o[3]=(Ae=o[3]).toLowerCase()){case"data":if(Ae=="data"){if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break}if(l[l.length-1][1])break;o[1]==="/"?oDt(r.slice(T,o.index),L,w,l[l.length-1][0]=="comment"?Z:A,{c:C,r:M},k,X[C],g,ae,n):(L="",w=fh(o[0]),T=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(ee.length>0&&(A.c=ee),(!n.sheetRows||n.sheetRows>M)&&A.v!==void 0&&(n.dense?(h[M]||(h[M]=[]),h[M][C]=A):h[yl(C)+mc(M)]=A),A.HRef&&(A.l={Target:Ji(A.HRef)},A.HRefScreenTip&&(A.l.Tooltip=A.HRefScreenTip),delete A.HRef,delete A.HRefScreenTip),(A.MergeAcross||A.MergeDown)&&(te=C+(parseInt(A.MergeAcross,10)|0),he=M+(parseInt(A.MergeDown,10)|0),B.push({s:{c:C,r:M},e:{c:te,r:he}})),!n.sheetStubs)A.MergeAcross?C=te+1:++C;else if(A.MergeAcross||A.MergeDown){for(var Se=C;Se<=te;++Se)for(var Re=M;Re<=he;++Re)(Se>C||Re>M)&&(n.dense?(h[Re]||(h[Re]=[]),h[Re][Se]={t:"z"}):h[yl(Se)+mc(Re)]={t:"z"});C=te+1}else++C;else A=nDt(o[0]),A.Index&&(C=+A.Index-1),C<D.s.c&&(D.s.c=C),C>D.e.c&&(D.e.c=C),o[0].slice(-2)==="/>"&&++C,ee=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(M<D.s.r&&(D.s.r=M),M>D.e.r&&(D.e.r=M),o[0].slice(-2)==="/>"&&(g=fh(o[0]),g.Index&&(M=+g.Index-1)),C=0,++M):(g=fh(o[0]),g.Index&&(M=+g.Index-1),oe={},(g.AutoFitHeight=="0"||g.Height)&&(oe.hpx=parseInt(g.Height,10),oe.hpt=F_e(oe.hpx),J[M]=oe),g.Hidden=="1"&&(oe.hidden=!0,J[M]=oe));break;case"worksheet":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));f.push(p),D.s.r<=D.e.r&&D.s.c<=D.e.c&&(h["!ref"]=qi(D),n.sheetRows&&n.sheetRows<=D.e.r&&(h["!fullref"]=h["!ref"],D.e.r=n.sheetRows-1,h["!ref"]=qi(D))),B.length&&(h["!merges"]=B),X.length>0&&(h["!cols"]=X),J.length>0&&(h["!rows"]=J),u[p]=h}else D={s:{r:2e6,c:2e6},e:{r:0,c:0}},M=C=0,l.push([o[3],!1]),c=fh(o[0]),p=Ji(c.Name),h=n.dense?[]:{},B=[],ae=[],J=[],de={name:p,Hidden:0},me.Sheets.push(de);break;case"table":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else{if(o[0].slice(-2)=="/>")break;l.push([o[3],!1]),X=[],se=!1}break;case"style":o[1]==="/"?sDt(k,I,n):I=fh(o[0]);break;case"numberformat":I.nf=Ji(fh(o[0]).Format||"General"),BS[I.nf]&&(I.nf=BS[I.nf]);for(var Ne=0;Ne!=392&&ai[Ne]!=I.nf;++Ne);if(Ne==392){for(Ne=57;Ne!=392;++Ne)if(ai[Ne]==null){iy(I.nf,Ne);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(K=fh(o[0]),K.Hidden&&(K.hidden=!0,delete K.Hidden),K.Width&&(K.wpx=parseInt(K.Width,10)),!se&&K.wpx>10){se=!0,Nu=L_e;for(var Fe=0;Fe<X.length;++Fe)X[Fe]&&Z_(X[Fe])}se&&Z_(K),X[K.Index-1||X.length]=K;for(var Qe=0;Qe<+K.Span;++Qe)X[X.length]=pc(K);break;case"namedrange":if(o[1]==="/")break;me.Names||(me.Names=[]);var ge=jr(o[0]),Ie={Name:ge.Name,Ref:E3(ge.RefersTo.slice(1),{r:0,c:0})};me.Sheets.length>0&&(Ie.Sheet=me.Sheets.length-1),me.Names.push(Ie);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?L+=r.slice(O,o.index):O=o.index+o[0].length;break;case"interior":if(!n.cellStyles)break;I.Interior=fh(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?$Et(G,Ae,r.slice(z,o.index)):z=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else l.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));lDt(Z),ee.push(Z)}else l.push([o[3],!1]),c=fh(o[0]),Z={a:c.Author};break;case"autofilter":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var De=fh(o[0]);h["!autofilter"]={ref:E3(De.Range).replace(/\$/g,"")},l.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"null":break;default:if(l.length==0&&o[3]=="document"||l.length==0&&o[3]=="uof")return tce(r,n);var Xe=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Xe=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Xe=!1}break;case"excelworkbook":switch(o[3]){case"date1904":me.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Xe=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:Xe=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(r.slice(z,o.index)){case"SheetHidden":de.Hidden=1;break;case"SheetVeryHidden":de.Hidden=2;break}else z=o.index+o[0].length;break;case"header":h["!margins"]||IS(h["!margins"]={},"xlml"),isNaN(+jr(o[0]).Margin)||(h["!margins"].header=+jr(o[0]).Margin);break;case"footer":h["!margins"]||IS(h["!margins"]={},"xlml"),isNaN(+jr(o[0]).Margin)||(h["!margins"].footer=+jr(o[0]).Margin);break;case"pagemargins":var Ye=jr(o[0]);h["!margins"]||IS(h["!margins"]={},"xlml"),isNaN(+Ye.Top)||(h["!margins"].top=+Ye.Top),isNaN(+Ye.Left)||(h["!margins"].left=+Ye.Left),isNaN(+Ye.Right)||(h["!margins"].right=+Ye.Right),isNaN(+Ye.Bottom)||(h["!margins"].bottom=+Ye.Bottom);break;case"displayrighttoleft":me.Views||(me.Views=[]),me.Views[0]||(me.Views[0]={}),me.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;
5620case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Xe=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Xe=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Xe=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Xe=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Xe=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Xe=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Xe=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Xe=!1}break;case"smarttags":break;default:Xe=!1;break}if(Xe||o[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?iDt(j,Ae,Q,r.slice(z,o.index)):(Q=o,z=o.index+o[0].length);break}if(n.WTF)throw"Unrecognized tag: "+o[3]+"|"+l.join("|")}var Me={};return!n.bookSheets&&!n.bookProps&&(Me.Sheets=u),Me.SheetNames=f,Me.Workbook=me,Me.SSF=pc(ai),Me.Props=G,Me.Custprops=j,Me}function eG(t,e){switch(DY(e=e||{}),e.type||"base64"){case"base64":return mU(Cf(t),e);case"binary":case"buffer":case"file":return mU(t,e);case"array":return mU(Zy(t),e)}}function cDt(t){var e={},n=t.content;if(n.l=28,e.AnsiUserType=n.read_shift(0,"lpstr-ansi"),e.AnsiClipboardFormat=wEt(n),n.length-n.l<=4)return e;var r=n.read_shift(4);if(r==0||r>40||(n.l-=4,e.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4)||(r=n.read_shift(4),r!==1907505652)||(e.UnicodeClipboardFormat=SEt(n),r=n.read_shift(4),r==0||r>40))return e;n.l-=4,e.Reserved2=n.read_shift(0,"lpwstr")}var uDt=[60,1084,2066,2165,2175];function fDt(t,e,n,r,i){var a=r,s=[],o=n.slice(n.l,n.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(t){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(o)}s.push(o),n.l+=a;for(var l=e2(n,n.l),c=tG[l],u=0;c!=null&&uDt.indexOf(l)>-1;)a=e2(n,n.l+2),u=n.l+4,l==2066?u+=4:(l==2165||l==2175)&&(u+=12),o=n.slice(u,n.l+4+a),s.push(o),n.l+=4+a,c=tG[l=e2(n,n.l)];var f=YA(s);ic(f,0);var h=0;f.lens=[];for(var p=0;p<s.length;++p)f.lens.push(h),h+=s[p].length;if(f.length<r)throw"XLS Record 0x"+t.toString(16)+" Truncated: "+f.length+" < "+r;return e.f(f,f.length,i)}function S1(t,e,n){if(t.t!=="z"&&t.XF){var r=0;try{r=t.z||t.XF.numFmtId||0,e.cellNF&&(t.z=ai[r])}catch(a){if(e.WTF)throw a}if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||Qy[t.v]:r===0||r=="General"?t.t==="n"?(t.v|0
vendor: 7,812 bytes, line 5620
5620)===t.v?t.w=t.v.toString(10):t.w=rT(t.v):t.w=Ey(t.v):t.w=Nd(r,t.v,{date1904:!!n,dateNF:e&&e.dateNF})}catch(a){if(e.WTF)throw a}if(e.cellDates&&r&&t.t=="n"&&M6(ai[r]||String(r))){var i=Ov(t.v);i&&(t.t="d",t.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function JC(t,e,n){return{v:t,ixfe:e,t:n}}function dDt(t,e){var n={opts:{}},r={},i=e.dense?[]:{},a={},s={},o=null,l=[],c="",u={},f,h="",p,A,g,w,T={},C=[],M,D,k=[],I=[],L={Sheets:[],WBProps:{date1904:!1},Views:[{}]},O={},B=function(ft){return ft<8?ay[ft]:ft<64&&I[ft-8]||ay[ft]},G=function(ft,at,St){var ut=at.XF.data;if(!(!ut||!ut.patternType||!St||!St.cellStyles)){at.s={},at.s.patternType=ut.patternType;var gt;(gt=oT(B(ut.icvFore)))&&(at.s.fgColor={rgb:gt}),(gt=oT(B(ut.icvBack)))&&(at.s.bgColor={rgb:gt})}},j=function(ft,at,St){if(!(oe>1)&&!(St.sheetRows&&ft.r>=St.sheetRows)){if(St.cellStyles&&at.XF&&at.XF.data&&G(ft,at,St),delete at.ixfe,delete at.XF,f=ft,h=Jr(ft),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),ft.r<s.s.r&&(s.s.r=ft.r),ft.c<s.s.c&&(s.s.c=ft.c),ft.r+1>s.e.r&&(s.e.r=ft.r+1),ft.c+1>s.e.c&&(s.e.c=ft.c+1),St.cellFormula&&at.f){for(var ut=0;ut<C.length;++ut)if(!(C[ut][0].s.c>ft.c||C[ut][0].s.r>ft.r)&&!(C[ut][0].e.c<ft.c||C[ut][0].e.r<ft.r)){at.F=qi(C[ut][0]),(C[ut][0].s.c!=ft.c||C[ut][0].s.r!=ft.r)&&delete at.f,at.f&&(at.f=""+Uc(C[ut][1],s,ft,ae,z));break}}St.dense?(i[ft.r]||(i[ft.r]=[]),i[ft.r][ft.c]=at):i[h]=at}},z={enc:!1,sbcch:0,snames:[],sharedf:T,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!e&&!!e.cellStyles,WTF:!!e&&!!e.wtf};e.password&&(z.password=e.password);var Q,ee=[],Z=[],X=[],K=[],se=!1,ae=[];ae.SheetNames=z.snames,ae.sharedf=z.sharedf,ae.arrayf=z.arrayf,ae.names=[],ae.XTI=[];var J=0,oe=0,te=0,he=[],me=[],de;z.codepage=1200,Mh(1200);for(var Ae=!1;t.l<t.length-1;){var Se=t.l,Re=t.read_shift(2);if(Re===0&&J===10)break;var Ne=t.l===t.length?0:t.read_shift(2),Fe=tG[Re];if(Fe&&Fe.f){if(e.bookSheets&&J===133&&Re!==133)break;if(J=Re,Fe.r===2||Fe.r==12){var Qe=t.read_shift(2);if(Ne-=2,!z.enc&&Qe!==Re&&((Qe&255)<<8|Qe>>8)!==Re)throw new Error("rt mismatch: "+Qe+"!="+Re);Fe.r==12&&(t.l+=10,Ne-=10)}var ge={};if(Re===10?ge=Fe.f(t,Ne,z):ge=fDt(Re,Fe,t,Ne,z),oe==0&&[9,521,1033,2057].indexOf(J)===-1)continue;switch(Re){case 34:n.opts.Date1904=L.WBProps.date1904=ge;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(z.enc||(t.l=0),z.enc=ge,!e.password)throw new Error("File is password-protected");if(ge.valid==null)throw new Error("Encryption scheme unsupported");if(!ge.valid)throw new Error("Password is incorrect");break;case 92:z.lastuser=ge;break;case 66:var Ie=Number(ge);switch(Ie){case 21010:Ie=1200;break;case 32768:Ie=1e4;break;case 32769:Ie=1252;break}Mh(z.codepage=Ie),Ae=!0;break;case 317:z.rrtabid=ge;break;case 25:z.winlocked=ge;break;case 439:n.opts.RefreshAll=ge;break;case 12:n.opts.CalcCount=ge;break;case 16:n.opts.CalcDelta=ge;break;case 17:n.opts.CalcIter=ge;break;case 13:n.opts.CalcMode=ge;break;case 14:n.opts.CalcPrecision=ge;break;case 95:n.opts.CalcSaveRecalc=ge;break;case 15:z.CalcRefMode=ge;break;case 2211:n.opts.FullCalc=ge;break;case 129:ge.fDialog&&(i["!type"]="dialog"),ge.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),ge.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:k.push(ge);break;case 430:ae.push([ge]),ae[ae.length-1].XTI=[];break;case 35:case 547:ae[ae.length-1].push(ge);break;case 24:case 536:de={Name:ge.Name,Ref:Uc(ge.rgce,s,null,ae,z)},ge.itab>0&&(de.Sheet=ge.itab-1),ae.names.push(de),ae[0]||(ae[0]=[],ae[0].XTI=[]),ae[ae.length-1].push(ge),ge.Name=="_xlnm._FilterDatabase"&&ge.itab>0&&ge.rgce&&ge.rgce[0]&&ge.rgce[0][0]&&ge.rgce[0][0][0]=="PtgArea3d"&&(me[ge.itab-1]={ref:qi(ge.rgce[0][0][1][2])});break;case 22:z.ExternCount=ge;break;case 23:ae.length==0&&(ae[0]=[],ae[0].XTI=[]),ae[ae.length-1].XTI=ae[ae.length-1].XTI.concat(ge),ae.XTI=ae.XTI.concat(ge);break;case 2196:if(z.biff<8)break;de!=null&&(de.Comment=ge[1]);break;case 18:i["!protect"]=ge;break;case 19:ge!==0&&z.WTF&&console.error("Password verifier: "+ge);break;case 133:a[ge.pos]=ge,z.snames.push(ge.name);break;case 10:{if(--oe)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,i["!ref"]=qi(s),e.sheetRows&&e.sheetRows<=s.e.r){var De=s.e.r;s.e.r=e.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=qi(s),s.e.r=De}s.e.r++,s.e.c++}ee.length>0&&(i["!merges"]=ee),Z.length>0&&(i["!objects"]=Z),X.length>0&&(i["!cols"]=X),K.length>0&&(i["!rows"]=K),L.Sheets.push(O)}c===""?u=i:r[c]=i,i=e.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(z.biff===8&&(z.biff={9:2,521:3,1033:4}[Re]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[ge.BIFFVer]||8),z.biffguess=ge.BIFFVer==0,ge.BIFFVer==0&&ge.dt==4096&&(z.biff=5,Ae=!0,Mh(z.codepage=28591)),z.biff==8&&ge.BIFFVer==0&&ge.dt==16&&(z.biff=2),oe++)break;if(i=e.dense?[]:{},z.biff<8&&!Ae&&(Ae=!0,Mh(z.codepage=e.codepage||1252)),z.biff<5||ge.BIFFVer==0&&ge.dt==4096){c===""&&(c="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var Xe={pos:t.l-Ne,name:c};a[Xe.pos]=Xe,z.snames.push(c)}else c=(a[Se]||{name:""}).name;ge.dt==32&&(i["!type"]="chart"),ge.dt==64&&(i["!type"]="macro"),ee=[],Z=[],z.arrayf=C=[],X=[],K=[],se=!1,O={Hidden:(a[Se]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(e.dense?(i[ge.r]||[])[ge.c]:i[Jr({c:ge.c,r:ge.r})])&&++ge.c,M={ixfe:ge.ixfe,XF:k[ge.ixfe]||{},v:ge.val,t:"n"},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e);break;case 5:case 517:M={ixfe:ge.ixfe,XF:k[ge.ixfe],v:ge.val,t:ge.t},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e);break;case 638:M={ixfe:ge.ixfe,XF:k[ge.ixfe],v:ge.rknum,t:"n"},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e);break;case 189:for(var Ye=ge.c;Ye<=ge.C;++Ye){var Me=ge.rkrec[Ye-ge.c][0];M={ixfe:Me,XF:k[Me],v:ge.rkrec[Ye-ge.c][1],t:"n"},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:Ye,r:ge.r},M,e)}break;case 6:case 518:case 1030:{if(ge.val=="String"){o=ge;break}if(M=JC(ge.val,ge.cell.ixfe,ge.tt),M.XF=k[M.ixfe],e.cellFormula){var lt=ge.formula;if(lt&<[0]&<[0][0]&<[0][0][0]=="PtgExp"){var Ht=lt[0][0][1][0],Le=lt[0][0][1][1],Nt=Jr({r:Ht,c:Le});T[Nt]?M.f=""+Uc(ge.formula,s,ge.cell,ae,z):M.F=((e.dense?(i[Ht]||[])[Le]:i[Nt])||{}).F}else M.f=""+Uc(ge.formula,s,ge.cell,ae,z)}te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j(ge.cell,M,e),o=ge}break;case 7:case 519:if(o)o.val=ge,M=JC(ge,o.cell.ixfe,"s"),M.XF=k[M.ixfe],e.cellFormula&&(M.f=""+Uc(o.formula,s,o.cell,ae,z)),te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j(o.cell,M,e),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{C.push(ge);var Ct=Jr(ge[0].s);if(p=e.dense?(i[ge[0].s.r]||[])[ge[0].s.c]:i[Ct],e.cellFormula&&p){if(!o||!Ct||!p)break;p.f=""+Uc(ge[1],s,ge[0],ae,z),p.F=qi(ge[0])}}break;case 1212:{if(!e.cellFormula)break;if(h){if(!o)break;T[Jr(o.cell)]=ge[0],p=e.dense?(i[o.cell.r]||[])[o.cell.c]:i[Jr(o.cell)],(p||{}).f=""+Uc(ge[0],s,f,ae,z)}}break;case 253:M=JC(l[ge.isst].t,ge.ixfe,"s"),l[ge.isst].h&&(M.h=l[ge.isst].h),M.XF=k[M.ixfe],te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e);break;case 513:e.sheetStubs&&(M={ixfe:ge.ixfe,XF:k[ge.ixfe],t:"z"},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e));break;case 190:if(e.sheetStubs)for(var It=ge.c;It<=ge.C;++It){var nt=ge.ixfe[It-ge.c];M={ixfe:nt,XF:k[nt],t:"z"},te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:It,r:ge.r},M,e)}break;case 214:case 516:case 4:M=JC(ge.val,ge.ixfe,"s"),M.XF=k[M.ixfe],te>0&&(M.z=he[M.ixfe>>8&63]),S1(M,e,n.opts.Date1904),j({c:ge.c,r:ge.r},M,e);break;case 0:case 512:oe===1&&(s=ge);break;case 252:l=ge;break;case 1054:if(z.biff==4){he[te++]=ge[1];for(var ht=0;ht<te+163&&ai[ht]!=ge[1];++ht);ht>=163&&iy(ge[1],te+163)}else iy(ge[1],ge[0]);break;case 30:{he[te++]=ge;
5620for(var ve=0;ve<te+163&&ai[ve]!=ge;++ve);ve>=163&&iy(ge,te+163)}break;case 229:ee=ee.concat(ge);break;case 93:Z[ge.cmo[0]]=z.lastobj=ge;break;case 438:z.lastobj.TxO=ge;break;case 127:z.lastobj.ImData=ge;break;case 440:for(w=ge[0].s.r;w<=ge[0].e.r;++w)for(g=ge[0].s.c;g<=ge[0].e.c;++g)p=e.dense?(i[w]||[])[g]:i[Jr({c:g,r:w})],p&&(p.l=ge[1]);break;case 2048:for(w=ge[0].s.r;w<=ge[0].e.r;++w)for(g=ge[0].s.c;g<=ge[0].e.c;++g)p=e.dense?(i[w]||[])[g]:i[Jr({c:g,r:w})],p&&p.l&&(p.l.Tooltip=ge[1]);break;case 28:{if(z.biff<=5&&z.biff>=2)break;p=e.dense?(i[ge[0].r]||[])[ge[0].c]:i[Jr(ge[0])];var ce=Z[ge[2]];p||(e.dense?(i[ge[0].r]||(i[ge[0].r]=[]),p=i[ge[0].r][ge[0].c]={t:"z"}):p=i[Jr(ge[0])]={t:"z"},s.e.r=Math.max(s.e.r,ge[0].r),s.s.r=Math.min(s.s.r,ge[0].r),s.e.c=Math.max(s.e.c,ge[0].c),s.s.c=Math.min(s.s.c,ge[0].c)),p.c||(p.c=[]),A={a:ge[1],t:ce.TxO.t},p.c.push(A)}break;case 2173:LCt(k[ge.ixfe],ge.ext);break;case 125:{if(!z.cellStyles)break;for(;ge.e>=ge.s;)X[ge.e--]={width:ge.w/256,level:ge.level||0,hidden:!!(ge.flags&1)},se||(se=!0,EY(ge.w/256)),Z_(X[ge.e+1])}break;case 520:{var je={};ge.level!=null&&(K[ge.r]=je,je.level=ge.level),ge.hidden&&(K[ge.r]=je,je.hidden=!0),ge.hpt&&(K[ge.r]=je,je.hpt=ge.hpt,je.hpx=lT(ge.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||IS(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Re]]=ge;break;case 161:i["!margins"]||IS(i["!margins"]={}),i["!margins"].header=ge.header,i["!margins"].footer=ge.footer;break;case 574:ge.RTL&&(L.Views[0].RTL=!0);break;case 146:I=ge;break;case 2198:Q=ge;break;case 140:D=ge;break;case 442:c?O.CodeName=ge||O.name:L.WBProps.CodeName=ge||"ThisWorkbook";break}}else Fe||console.error("Missing Info for XLS Record 0x"+Re.toString(16)),t.l+=Ne}return n.SheetNames=Mp(a).sort(function(dt,ft){return Number(dt)-Number(ft)}).map(function(dt){return a[dt].name}),e.bookSheets||(n.Sheets=r),!n.SheetNames.length&&u["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets.Sheet1=u)):n.Preamble=u,n.Sheets&&me.forEach(function(dt,ft){n.Sheets[n.SheetNames[ft]]["!autofilter"]=dt}),n.Strings=l,n.SSF=pc(ai),z.enc&&(n.Encryption=z.enc),Q&&(n.Themes=Q),n.Metadata={},D!==void 0&&(n.Metadata.Country=D),ae.names.length>0&&(L.Names=ae.names),n.Workbook=L,n}var Xle={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function hDt(t,e,n){var r=$i.find(t,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=kle(r,REt,Xle.DSI);for(var a in i)e[a]=i[a]}catch(c){if(n.WTF)throw c}var s=$i.find(t,"/!SummaryInformation");if(s&&s.size>0)try{var o=kle(s,DEt,Xle.SI);for(var l in o)e[l]==null&&(e[l]=o[l])}catch(c){if(n.WTF)throw c}e.HeadingPairs&&e.TitlesOfParts&&(g_e(e.HeadingPairs,e.TitlesOfParts,e,n),delete e.HeadingPairs,delete e.TitlesOfParts)}function e6e(t,e){e||(e={}),DY(e),N3e(),e.codepage&&cY(e.codepage);var n,r;if(t.FullPaths){if($i.find(t,"/encryption"))throw new Error("File is password-protected");n=$i.find(t,"!CompObj"),r=$i.find(t,"/Workbook")||$i.find(t,"/Book")}else{switch(e.type){case"base64":t=_h(Cf(t));break;case"binary":t=_h(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t));break}ic(t,0),r={content:t}}var i,a;if(n&&cDt(n),e.bookProps&&!e.bookSheets)i={};else{var s=Hi?"buffer":"array";if(r&&r.content)i=dDt(r.content,e);else if((a=$i.find(t,"PerfectOffice_MAIN"))&&a.content)i=OS.to_workbook(a.content,(e.type=s,e));else if((a=$i.find(t,"NativeContent_MAIN"))&&a.content)i=OS.to_workbook(a.content,(e.type=s,e));else throw(a=$i.find(t,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");e.bookVBA&&t.FullPaths&&$i.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=KCt(t))}var o={};return t.FullPaths&&hDt(t,o,e),i.Props=i.Custprops=o,e.bookFiles&&(i.cfb=t),i}var jD={0:{f:ZNt},1:{f:KNt},2:{f:oRt},3:{f:nRt},4:{f:eRt},5:{f:sRt},6:{f:uRt},7:{f:iRt},8:{f:mRt},9:{f:pRt},10:{f:dRt},11:{f:hRt},12:{f:JNt},13:{f:lRt},14:{f:rRt},15:{f:tRt},16:{f:Y_e},17:{f:fRt},18:{f:aRt},19:{f:yY},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:HRt},40:{},42:{},43:{f:dCt},44:{f:fCt},45:{f:hCt},46:{f:mCt},47:{f:pCt},48:{},49:{f:AEt},50:{},51:{f:FCt},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:N_e},62:{f:cRt},63:{f:jCt},64:{f:SRt},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:au,p:0}
vendor: 8,515 bytes, line 5620
5620,132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:wRt},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:QNt},148:{f:YNt,p:16},151:{f:xRt},152:{},153:{f:VRt},154:{},155:{},156:{f:URt},157:{},158:{},159:{T:1,f:D7t},160:{T:-1},161:{T:1,f:Xy},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:ARt},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:OCt},336:{T:-1},337:{f:ICt,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:XH},357:{},358:{},359:{},360:{T:1},361:{},362:{f:C_e},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:vRt},427:{f:yRt},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:bRt},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:XNt},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:gRt},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:XH},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:YCt},633:{T:1},634:{T:-1},635:{T:1,f:ZCt},636:{T:-1},637:{f:xEt},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:RRt},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:TRt},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},tG={6:{f:hU},10:{f:PA},12:{f:Vo},13:{f:Vo},14:{f:bo},15:{f:bo},16:{f:zc},17:{f:bo},18:{f:bo},19:{f:Vo},20:{f:Ile},21:{f:Ile},23:{f:C_e},24:{f:Ule},25:{f:bo},26:{},27:{},28:{f:qMt},29:{},34:{f:bo},35:{f:Ble},38:{f:zc},39:{f:zc},40:{f:zc},41:{f:zc},42:{f:bo},43:{f:bo},47:{f:X7t},49:{f:MMt},51:{f:Vo},60:{},61:{f:SMt},64:{f:bo},65:{f:EMt},66:{f:Vo},77:{},80:{},81:{},82:{},85:{f:Vo},89:{},90:{},91:{},92:{f:AMt},93:{f:ZMt},94:{},95:{f:bo},96:{},97:{},99:{f:bo},125:{f:N_e},128:{f:IMt},129:{f:gMt},130:{f:Vo},131:{f:bo},132:{f:bo},133:{f:xMt},134:{},140:{f:e7t},141:{f:Vo},144:{},146:{f:n7t},151:{},152:{}
5620,153:{},154:{},155:{},156:{f:Vo},157:{},158:{},160:{f:o7t},161:{f:i7t},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:kMt},190:{f:LMt},193:{f:PA},197:{},198:{},199:{},200:{},201:{},202:{f:bo},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Vo},220:{},221:{f:bo},222:{},224:{f:FMt},225:{f:mMt},226:{f:PA},227:{},229:{f:WMt},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:vMt},253:{f:CMt},255:{f:yMt},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:b_e},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:bo},353:{f:PA},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:UMt},431:{f:bo},432:{},433:{},434:{},437:{},438:{f:QMt},439:{f:bo},440:{f:KMt},441:{},442:{f:fE},443:{},444:{f:Vo},445:{},446:{},448:{f:PA},449:{f:wMt,r:2},450:{f:PA},512:{f:Ole},513:{f:s7t},515:{f:BMt},516:{f:NMt},517:{f:Fle},519:{f:l7t},520:{f:_Mt},523:{},545:{f:Vle},549:{f:Lle},566:{},574:{f:TMt},638:{f:PMt},659:{},1048:{},1054:{f:RMt},1084:{},1212:{f:GMt},2048:{f:JMt},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:XC},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:PA},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:r7t,r:12},2173:{f:kCt,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:bo,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:HMt,r:12},2197:{},2198:{f:MCt,r:12},2199:{},2200:{},2201:{},2202:{f:zMt,r:12},2203:{f:PA},2204:{},2205:{},2206:{},2207:{},2211:{f:bMt},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Vo},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:a7t},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:t7t},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Ole},1:{},2:{f:d7t},3:{f:f7t},4:{f:u7t},5:{f:Fle},7:{f:h7t},8:{},9:{f:XC},11:{},22:{f:Vo},30:{f:DMt},31:{},32:{},33:{f:Vle},36:{},37:{f:Lle},50:{f:p7t},62:{},52:{},67:{},68:{f:Vo},69:{},86:{},126:{},127:{f:c7t},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:m7t},223:{},234:{},354:{},421:{},518:{f:hU},521:{f:XC},536:{f:Ule},547:{f:Ble},561:{},579:{},1030:{f:hU},1033:{f:XC},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function dh(t,e,n,r){var i=e;if(!isNaN(i)){var a=(n||[]).length||0,s=t.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&c_e(n)&&t.push(n)}}function Qle(t,e){var n=e||{},r=n.dense?[]:{};t=t.replace(/<!--.*?-->/g,"");var i=t.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=t.match(/<\/table/i),s=i.index,o=a&&a.index||t.length,l=BTt(t.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,u=0,f=0,h=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},A=[];for(s=0;s<l.length;++s){var g=l[s].trim(),w=g.slice(0,3).toLowerCase();if(w=="<tr"){if(++c,n.sheetRows&&n.sheetRows<=c){--c;break}u=0;continue}if(!(w!="<td"&&w!="<th")){var T=g.split(/<\/t[dh]>/i);for(o=0;o<T.length;++o){var C=T[o].trim();if(C.match(/<t[dh]/i)){for(var M=C,D=0;M.charAt(0)=="<"&&(D=M.indexOf(">"))>-1;)M=M.slice(D+1);for(var k=0;k<A.length;++k){var I=A[k];I.s.c==u&&I.s.r<c&&c<=I.e.r&&(u=I.e.c+1,k=-1)}var L=jr(C.slice(0,C.indexOf(">")));h=L.colspan?+L.colspan:1,((f=+L.rowspan)>1||h>1)&&A.push({s:{r:c,c:u},e:{r:c+(f||1)-1,c:u+h-1}});var O=L.t||L["data-t"]||"";if(!M.length){u+=h;continue}if(M=X3e(M),p.s.r>c&&(p.s.r=c),p.e.r<c&&(p.e.r=c),p.s.c>
vendor: 6,103 bytes, lines 5620-5621
5620u&&(p.s.c=u),p.e.c<u&&(p.e.c=u),!M.length){u+=h;continue}var B={t:"s",v:M};n.raw||!M.trim().length||O=="s"||(M==="TRUE"?B={t:"b",v:!0}:M==="FALSE"?B={t:"b",v:!1}:isNaN(Uh(M))?isNaN(W_(M).getDate())||(B={t:"d",v:$l(M)},n.cellDates||(B={t:"n",v:Hu(B.v)}),B.z=n.dateNF||ai[14]):B={t:"n",v:Uh(M)}),n.dense?(r[c]||(r[c]=[]),r[c][u]=B):r[Jr({r:c,c:u})]=B,u+=h}}}}return r["!ref"]=qi(p),A.length&&(r["!merges"]=A),r}function pDt(t,e,n,r){for(var i=t["!merges"]||[],a=[],s=e.s.c;s<=e.e.c;++s){for(var o=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>n||i[c].s.c>s)&&!(i[c].e.r<n||i[c].e.c<s)){if(i[c].s.r<n||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var u=Jr({r:n,c:s}),f=r.dense?(t[n]||[])[s]:t[u],h=f&&f.v!=null&&(f.h||mY(f.w||(P2(f),f.w)||""))||"",p={};o>1&&(p.rowspan=o),l>1&&(p.colspan=l),r.editable?h='<span contenteditable="true">'+h+"</span>":f&&(p["data-t"]=f&&f.t||"z",f.v!=null&&(p["data-v"]=f.v),f.z!=null&&(p["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),p.id=(r.id||"sjs")+"-"+u,a.push(eEt("td",h,p))}}var A="<tr>";return A+a.join("")+"</tr>"}var mDt='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',ADt="</body></html>";function gDt(t,e){var n=t.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||n.length==0)throw new Error("Invalid HTML: could not find <table>");if(n.length==1)return gx(Qle(n[0],e),e);var r=kY();return n.forEach(function(i,a){LY(r,Qle(i,e),"Sheet"+(a+1))}),r}function xDt(t,e,n){var r=[];return r.join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function vDt(t,e){var n=e||{},r=n.header!=null?n.header:mDt,i=n.footer!=null?n.footer:ADt,a=[r],s=C6(t["!ref"]);n.dense=Array.isArray(t),a.push(xDt(t,s,n));for(var o=s.s.r;o<=s.e.r;++o)a.push(pDt(t,s,o,n));return a.push("</table>"+i),a.join("")}function t6e(t,e,n){var r=n||{},i=0,a=0;if(r.origin!=null)if(typeof r.origin=="number")i=r.origin;else{var s=typeof r.origin=="string"?Bu(r.origin):r.origin;i=s.r,a=s.c}var o=e.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(t["!ref"]){var u=C6(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),i==-1&&(c.e.r=i=u.e.r+1)}var f=[],h=0,p=t["!rows"]||(t["!rows"]=[]),A=0,g=0,w=0,T=0,C=0,M=0;for(t["!cols"]||(t["!cols"]=[]);A<o.length&&g<l;++A){var D=o[A];if(Kle(D)){if(r.display)continue;p[g]={hidden:!0}}var k=D.children;for(w=T=0;w<k.length;++w){var I=k[w];if(!(r.display&&Kle(I))){var L=I.hasAttribute("data-v")?I.getAttribute("data-v"):I.hasAttribute("v")?I.getAttribute("v"):X3e(I.innerHTML),O=I.getAttribute("data-z")||I.getAttribute("z");for(h=0;h<f.length;++h){var B=f[h];B.s.c==T+a&&B.s.r<g+i&&g+i<=B.e.r&&(T=B.e.c+1-a,h=-1)}M=+I.getAttribute("colspan")||1,((C=+I.getAttribute("rowspan")||1)>1||M>1)&&f.push({s:{r:g+i,c:T+a},e:{r:g+i+(C||1)-1,c:T+a+(M||1)-1}});var G={t:"s",v:L},j=I.getAttribute("data-t")||I.getAttribute("t")||"";L!=null&&(L.length==0?G.t=j||"z":r.raw||L.trim().length==0||j=="s"||(L==="TRUE"?G={t:"b",v:!0}:L==="FALSE"?G={t:"b",v:!1}:isNaN(Uh(L))?isNaN(W_(L).getDate())||(G={t:"d",v:$l(L)},r.cellDates||(G={t:"n",v:Hu(G.v)}),G.z=r.dateNF||ai[14]):G={t:"n",v:Uh(L)})),G.z===void 0&&O!=null&&(G.z=O);var z="",Q=I.getElementsByTagName("A");if(Q&&Q.length)for(var ee=0;ee<Q.length&&!(Q[ee].hasAttribute("href")&&(z=Q[ee].getAttribute("href"),z.charAt(0)!="#"));++ee);z&&z.charAt(0)!="#"&&(G.l={Target:z}),r.dense?(t[g+i]||(t[g+i]=[]),t[g+i][T+a]=G):t[Jr({c:T+a,r:g+i})]=G,c.e.c<T+a&&(c.e.c=T+a),T+=M}}++g}return f.length&&(t["!merges"]=(t["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,g-1+i),t["!ref"]=qi(c),g>=l&&(t["!fullref"]=qi((c.e.r=o.length-A+g-1+i,c))),t}function n6e(t,e){var n=e||{},r=n.dense?[]:{};return t6e(r,t,e)}function yDt(t,e){return gx(n6e(t,e),e)}function Kle(t){var e="",n=_Dt(t);return n&&(e=n(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function _Dt(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function bDt(t){var e=t.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(r,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` 5621`),n=Ji(e.replace(/<[^>]*>/g,""));return[n]}var Jle={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function r6e(t,e){var n=e||{},r=AY(t),i=[],a,s,o={name:""},l="",c=0,u,f,h={},p=[],A=n.dense?[]:{},g,w,T={value:""},C="",M=0,D=[],k=-1,I=-1,L={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,B={},G=[],j={},z=0,Q=0,ee=[],Z=1,X=1,K=[],se={Names:[]},ae={},J=["",""],oe=[],te={},he="",me=0,de=!1,Ae=!1,Se=0;for(aT.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");g=aT.exec(r);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"å·¥ä½è¡¨":g[1]==="/"?(L.e.c>=L.s.c&&L.e.r>=L.s.r?A["!ref"]=qi(L):A["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=L.e.r&&(A["!fullref"]=A["!ref"],L.e.r=n.sheetRows-1,A["!ref"]=qi(L)),G.length&&(A["!merges"]=G),ee.length&&(A["!rows"]=ee),u.name=u.åç§°||u.name,typeof JSON<"u"&&JSON.stringify(u),p.push(u.name),h[u.name]=A,Ae=!1):g[0].charAt(g[0].length-2)!=="/"&&(u=jr(g[0],!1),k=I=-1,L.s.r=L.s.c=1e7,L.e.r=L.e.c=0,A=n.dense?[]:{},G=[],ee=[],Ae=!0);break;case"table-row-group":g[1]==="/"?--O:++O;break;case"table-row":case"è¡":if(g[1]==="/"){k+=Z,Z=1;break}if(f=jr(g[0],!1),f.è¡å·?k=f.è¡å·-1:k==-1&&(k=0),Z=+f["number-rows-repeated"]||1,Z<10)for(Se=0;Se<Z;++Se)O>0&&(ee[k+Se]={level:O});I=-1;break;case"covered-table-cell":g[1]!=="/"&&++I,n.sheetStubs&&(n.dense?(A[k]||(A[k]=[]),A[k][I]={t:"z"}):A[Jr({r:k,c:I})]={t:"z"}),C="",D=[];break;case"table-cell":case"æ°æ®":if(g[0].charAt(g[0].length-2)==="/")++I,T=jr(g[0],!1),X=p
vendor: 4,580 bytes, line 5621
5621arseInt(T["number-columns-repeated"]||"1",10),w={t:"z",v:null},T.formula&&n.cellFormula!=!1&&(w.f=Wle(Ji(T.formula))),(T.æ°æ®ç±»å||T["value-type"])=="string"&&(w.t="s",w.v=Ji(T["string-value"]||""),n.dense?(A[k]||(A[k]=[]),A[k][I]=w):A[Jr({r:k,c:I})]=w),I+=X-1;else if(g[1]!=="/"){++I,C="",M=0,D=[],X=1;var Re=Z?k+Z-1:k;if(I>L.e.c&&(L.e.c=I),I<L.s.c&&(L.s.c=I),k<L.s.r&&(L.s.r=k),Re>L.e.r&&(L.e.r=Re),T=jr(g[0],!1),oe=[],te={},w={t:T.æ°æ®ç±»å||T["value-type"],v:null},n.cellFormula)if(T.formula&&(T.formula=Ji(T.formula)),T["number-matrix-columns-spanned"]&&T["number-matrix-rows-spanned"]&&(z=parseInt(T["number-matrix-rows-spanned"],10)||0,Q=parseInt(T["number-matrix-columns-spanned"],10)||0,j={s:{r:k,c:I},e:{r:k+z-1,c:I+Q-1}},w.F=qi(j),K.push([j,w.F])),T.formula)w.f=Wle(T.formula);else for(Se=0;Se<K.length;++Se)k>=K[Se][0].s.r&&k<=K[Se][0].e.r&&I>=K[Se][0].s.c&&I<=K[Se][0].e.c&&(w.F=K[Se][1]);switch((T["number-columns-spanned"]||T["number-rows-spanned"])&&(z=parseInt(T["number-rows-spanned"],10)||0,Q=parseInt(T["number-columns-spanned"],10)||0,j={s:{r:k,c:I},e:{r:k+z-1,c:I+Q-1}},G.push(j)),T["number-columns-repeated"]&&(X=parseInt(T["number-columns-repeated"],10)),w.t){case"boolean":w.t="b",w.v=Ls(T["boolean-value"]);break;case"float":w.t="n",w.v=parseFloat(T.value);break;case"percentage":w.t="n",w.v=parseFloat(T.value);break;case"currency":w.t="n",w.v=parseFloat(T.value);break;case"date":w.t="d",w.v=$l(T["date-value"]),n.cellDates||(w.t="n",w.v=Hu(w.v)),w.z="m/d/yy";break;case"time":w.t="n",w.v=OTt(T["time-value"])/86400,n.cellDates&&(w.t="d",w.v=Zk(w.v)),w.z="HH:MM:SS";break;case"number":w.t="n",w.v=parseFloat(T.æ°æ®æ°å¼);break;default:if(w.t==="string"||w.t==="text"||!w.t)w.t="s",T["string-value"]!=null&&(C=Ji(T["string-value"]),D=[]);else throw new Error("Unsupported value type "+w.t)}}else{if(de=!1,w.t==="s"&&(w.v=C||"",D.length&&(w.R=D),de=M==0),ae.Target&&(w.l=ae),oe.length>0&&(w.c=oe,oe=[]),C&&n.cellText!==!1&&(w.w=C),de&&(w.t="z",delete w.v),(!de||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=k))for(var Ne=0;Ne<Z;++Ne){if(X=parseInt(T["number-columns-repeated"]||"1",10),n.dense)for(A[k+Ne]||(A[k+Ne]=[]),A[k+Ne][I]=Ne==0?w:pc(w);--X>0;)A[k+Ne][I+X]=pc(w);else for(A[Jr({r:k+Ne,c:I})]=w;--X>0;)A[Jr({r:k+Ne,c:I+X})]=pc(w);L.e.c<=I&&(L.e.c=I)}X=parseInt(T["number-columns-repeated"]||"1",10),I+=X-1,X=0,w={},C="",D=[]}ae={};break;case"document":case"document-content":case"çµåè¡¨æ ¼ææ¡£":case"spreadsheet":case"主ä½":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a;te.t=C,D.length&&(te.R=D),te.a=he,oe.push(te)}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);he="",me=0,C="",M=0,D=[];break;case"creator":g[1]==="/"?he=r.slice(me,g.index):me=g.index+g[0].length;break;case"meta":case"å
æ°æ®":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);C="",M=0,D=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){if(B[o.name]=l,(a=i.pop())[0]!==g[3])throw"Bad state: "+a}else g[0].charAt(g[0].length-2)!=="/"&&(l="",o=jr(g[0],!1),i.push([g[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":s=jr(g[0],!1),l+=Jle[g[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":s=jr(g[0],!1),l+=Jle[g[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(g[0].slice(-2)==="/>")break;
5621if(g[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":l+=r.slice(c,g.index);break}else c=g.index+g[0].length;break;case"named-range":s=jr(g[0],!1),J=pU(s["cell-range-address"]);var Fe={Name:s.name,Ref:J[0]+"!"+J[1]};Ae&&(Fe.Sheet=p.length),se.Names.push(Fe);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"çµåè¡¨æ ¼":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"ææ¬ä¸²":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(g[1]==="/"&&(!T||!T["string-value"])){var Qe=bDt(r.slice(M,g.index));C=(C.length>0?C+` 5622`:"")+Qe[0]}else jr(g[0],!1),M=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{J=pU(jr(g[0])["target-range-address"]),h[J[0]]["!autofilter"]={ref:J[1]}}catch{}break;case"date":break;case"object":break;case"title":case"æ é¢":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(g[1]!=="/"){if(ae=jr(g[0],!1),!ae.href)break;ae.Target=Ji(ae.href),delete ae.href,ae.Target.charAt(0)=="#"&&ae.Target.indexOf(".")>-1?(J=pU(ae.Target.slice(1)),ae.Target="#"+J[0]+"!"+J[1]):ae.Target.match(/^\.\.[\\\/]/)&&(ae.Target=ae.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"å:":break;default:if(n.WTF)throw new Error(g)}}var ge={Sheets:h,SheetNames:p,Workbook:se};return n.bookSheets&&delete ge.Sheets,ge}function ece(t,e){e=e||{},Kf(t,"META-INF/manifest.xml")&&BEt(Uo(t,"META-INF/manifest.xml"),e);var n=mf(t,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=r6e(us(n),e);return Kf(t,"meta.xml")&&(r.Props=A_e(Uo(t,"meta.xml"))),r}function tce(t,e){return r6e(t,e)}function NY(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function nG(t){return typeof TextDecoder<"u"?new TextDecoder().decode(t):us(Zy(t))}function rG(t){var e=t.reduce(function(i,a){return i+a.length},0),n=new Uint8Array(e),r=0;return t.forEach(function(i){n.set(i,r),r+=i.length}),n}function nce(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),(t+(t>>4)&252645135)*16843009>>>24}function wDt(t,e){for(var n=(t[e+15]&127)<<7|t[e+14]>>1,r=t[e+14]&1,i=e+13;i>=e;--i)r=r*256+t[i];return(t[e+15]&128?-r:r)*Math.pow(10,n-6176)}function cT(t,e){var n=e?e[0]:0,r=t[n]&127;e:if(t[n++]>=128&&(r|=(t[n]&127)<<7,t[n++]<128||(r|=(t[n]&127)<<14,t[n++]<128)||(r|=(t[n]&127)<<21,t[n++]<128)||(r+=(t[n]&127)*Math.pow(2,28),++n,t[n++]<128)||(r+=(t[n]&127)*Math.pow(2,35),++n,t[n++]<128)||(r+=(t[n]&127)*Math.pow(2,42),++n,t[n++]<128)))break e;return e&&(e[0]=n),r}function bl(t){var e=0,n=t[e]&127;e:if(t[e++]>=128){if(n|=(t[e]&127)<<7,t[e++]<128||(n|=(t[e]&127)<<14,t[e++]<128)||(n|=(t[e]&127)<<21,t[e++]<128))break e;n|=(t[e]&127)<<28}return n}function Xc(t){for(var e=[],n=[0];n[0]<t.length;){var r=n[0],i=cT(t,n),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var l=n[0];t[n[0]++]>=128;);o=t.slice(l,n[0])}break;case 5:s=4,o=t.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,o=t.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=cT(t,n),o=t.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(r))}var c={data:o,type:a};e[i]==null?e[i]=[c]:e[i].push(c)}return e}function RY(t,e){return t?.map(function(n){return e(n.data)})||[]}function SDt(t){for(var e,n=[],r=[0];r[0]<t.length;){var i=cT(t,r),a=Xc(t.slice(r[0],r[0]+i));r[0]+=i;var s={id:bl(a[1][0].data),messages:[]};a[2].forEach(function(o){var l=Xc(o.data),c=bl(l[3][0].data);s.messages.push({meta:l,data:t.slice(r[0],r[0]+c)}),r[0]+=c}),(e=a[3])!=null&&e[0]&&(s.merge=bl(a[3][0].data)>>>0>0),n.push(s)}return n}function TDt(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var n=[0],r=cT(e,n),i=[];n[0]<e.length;){var a=e[n[0]]&3;
vendor: 4,344 bytes, line 5622
5622if(a==0){var s=e[n[0]++]>>2;if(s<60)++s;else{var o=s-59;s=e[n[0]],o>1&&(s|=e[n[0]+1]<<8),o>2&&(s|=e[n[0]+2]<<16),o>3&&(s|=e[n[0]+3]<<24),s>>>=0,s++,n[0]+=o}i.push(e.slice(n[0],n[0]+s)),n[0]+=s;continue}else{var l=0,c=0;if(a==1?(c=(e[n[0]]>>2&7)+4,l=(e[n[0]++]&224)<<3,l|=e[n[0]++]):(c=(e[n[0]++]>>2)+1,a==2?(l=e[n[0]]|e[n[0]+1]<<8,n[0]+=2):(l=(e[n[0]]|e[n[0]+1]<<8|e[n[0]+2]<<16|e[n[0]+3]<<24)>>>0,n[0]+=4)),i=[rG(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var u=rG(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function EDt(t){for(var e=[],n=0;n<t.length;){var r=t[n++],i=t[n]|t[n+1]<<8|t[n+2]<<16;n+=3,e.push(TDt(r,t.slice(n,n+i))),n+=i}if(n!==t.length)throw new Error("data is not a valid framed stream!");return rG(e)}function MDt(t,e,n,r){var i=NY(t),a=i.getUint32(4,!0),s=(r>1?12:8)+nce(a&(r>1?3470:398))*4,o=-1,l=-1,c=NaN,u=new Date(2001,0,1);a&512&&(o=i.getUint32(s,!0),s+=4),s+=nce(a&(r>1?12288:4096))*4,a&16&&(l=i.getUint32(s,!0),s+=4),a&32&&(c=i.getFloat64(s,!0),s+=8),a&64&&(u.setTime(u.getTime()+i.getFloat64(s,!0)*1e3),s+=8);var f;switch(t[2]){case 0:break;case 2:f={t:"n",v:c};break;case 3:f={t:"s",v:e[l]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:n[o]};else if(l>-1)f={t:"s",v:e[l]};else if(!isNaN(c))f={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(t.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(t.slice(0,4)))}return f}function CDt(t,e,n){var r=NY(t),i=r.getUint32(8,!0),a=12,s=-1,o=-1,l=NaN,c=NaN,u=new Date(2001,0,1);i&1&&(l=wDt(t,a),a+=16),i&2&&(c=r.getFloat64(a,!0),a+=8),i&4&&(u.setTime(u.getTime()+r.getFloat64(a,!0)*1e3),a+=8),i&8&&(o=r.getUint32(a,!0),a+=4),i&16&&(s=r.getUint32(a,!0),a+=4);var f;switch(t[1]){case 0:break;case 2:f={t:"n",v:l};break;case 3:f={t:"s",v:e[o]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:n[s]};else throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(i&31," : ").concat(t.slice(0,4)));break;case 10:f={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(i&31," : ").concat(t.slice(0,4)))}return f}function NDt(t,e,n){switch(t[0]){case 0:case 1:case 2:case 3:return MDt(t,e,n,t[0]);case 5:return CDt(t,e,n);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function Og(t){var e=Xc(t);return cT(e[1][0].data)}function rce(t,e){var n=Xc(e.data),r=bl(n[1][0].data),i=n[3],a=[];return(i||[]).forEach(function(s){var o=Xc(s.data),l=bl(o[1][0].data)>>>0;switch(r){case 1:a[l]=nG(o[3][0].data);break;case 8:{var c=t[Og(o[9][0].data)][0],u=Xc(c.data),f=t[Og(u[1][0].data)][0],h=bl(f.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var p=Xc(f.data);a[l]=p[3].map(function(A){return nG(A.data)}).join("")}break}}),a}function RDt(t,e){var n,r,i,a,s,o,l,c,u,f,h,p,A,g,w=Xc(t),T=bl(w[1][0].data)>>>0,C=bl(w[2][0].data)>>>0,M=((r=(n=w[8])==null?void 0:n[0])==null?void 0:r.data)&&bl(w[8][0].data)>0||!1,D,k;if((a=(i=w[7])==null?void 0:i[0])!=null&&a.data&&e!=0)D=(o=(s=w[7])==null?void 0:s[0])==null?void 0:o.data,k=(c=(l=w[6])==null?void 0:l[0])==null?void 0:c.data;else if((f=(u=w[4])==null?void 0:u[0])!=null&&f.data&&e!=1)D=(p=(h=w[4])==null?void 0:h[0])==null?void 0:p.data,k=(g=(A=w[3])==null?void 0:A[0])==null?void 0:g.data;else throw"NUMBERS Tile missing ".concat(e," cell storage");for(var I=M?4:1,L=NY(D),O=[],B=0;B<D.length/2;++B){var G=L.getUint16(B*2,!0);G<65535&&O.push([B,G])}if(O.length!=C)throw"Expected ".concat(C," cells, found ").concat(O.length);var j=[];for(B=0;B<O.length-1;++B)j[O[B][0]]=k.subarray(O[B][1]*I,O[B+1][1]*I);return O.length>=1&&(j[O[O.length-1][0]]=k.subarray(O[O.length-1][1]*I)),{R:T,cells:j}}function DDt(t,e){var n,r=Xc(e.data),i=(n=r?.[7])!=null&&n[0]?bl(r[7][0].data)>>>0>0?1:0:-1,a=RY(r[5],function(s){return RDt(s,i)});return{nrows:bl(r[4][0].data)>>>0,data:a.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEac
5622h(function(l,c){if(s[o.R][c])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(c));s[o.R][c]=l}),s},[])}}function PDt(t,e,n){var r,i=Xc(e.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(bl(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(bl(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=qi(a);var s=Xc(i[4][0].data),o=rce(t,t[Og(s[4][0].data)][0]),l=(r=s[17])!=null&&r[0]?rce(t,t[Og(s[17][0].data)][0]):[],c=Xc(s[3][0].data),u=0;c[1].forEach(function(f){var h=Xc(f.data),p=t[Og(h[2][0].data)][0],A=bl(p.meta[1][0].data);if(A!=6002)throw new Error("6001 unexpected reference to ".concat(A));var g=DDt(t,p);g.data.forEach(function(w,T){w.forEach(function(C,M){var D=Jr({r:u+T,c:M}),k=NDt(C,o,l);k&&(n[D]=k)})}),u+=g.nrows})}function kDt(t,e){var n=Xc(e.data),r={"!ref":"A1"},i=t[Og(n[2][0].data)],a=bl(i[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return PDt(t,i[0],r),r}function LDt(t,e){var n,r=Xc(e.data),i={name:(n=r[1])!=null&&n[0]?nG(r[1][0].data):"",sheets:[]},a=RY(r[2],Og);return a.forEach(function(s){t[s].forEach(function(o){var l=bl(o.meta[1][0].data);l==6e3&&i.sheets.push(kDt(t,o))})}),i}function ODt(t,e){var n=kY(),r=Xc(e.data),i=RY(r[1],Og);if(i.forEach(function(a){t[a].forEach(function(s){var o=bl(s.meta[1][0].data);if(o==2){var l=LDt(t,s);l.sheets.forEach(function(c,u){LY(n,c,u==0?l.name:l.name+"_"+u,!0)})}})}),n.SheetNames.length==0)throw new Error("Empty NUMBERS file");return n}function AU(t){var e,n,r,i,a={},s=[];if(t.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),t.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var c;try{c=EDt(l.content)}catch(f){return console.log("?? "+l.content.length+" "+(f.message||f))}var u;try{u=SDt(c)}catch(f){return console.log("## "+(f.message||f))}u.forEach(function(f){a[f.id]=f.messages,s.push(f.id)})}}),!s.length)throw new Error("File has no messages");var o=((i=(r=(n=(e=a?.[1])==null?void 0:e[0])==null?void 0:n.meta)==null?void 0:r[1])==null?void 0:i[0].data)&&bl(a[1][0].meta[1][0].data)==1&&a[1][0];if(o||s.forEach(function(l){a[l].forEach(function(c){var u=bl(c.meta[1][0].data)>>>0;if(u==1)if(!o)o=c;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return ODt(a,o)}function FDt(t){return function(n){for(var r=0;r!=t.length;++r){var i=t[r];n[i[0]]===void 0&&(n[i[0]]=i[1]),i[2]==="n"&&(n[i[0]]=Number(n[i[0]]))}}}function DY(t){FDt([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(t)}function IDt(t){return Y8.WS.indexOf(t)>-1?"sheet":t==Y8.CS?"chart":t==Y8.DS?"dialog":t==Y8.MS?"macro":t&&t.length?t:"sheet"}function BDt(t,e){if(!t)return 0;try{t=e.map(function(r){return r.id||(r.id=r.strRelID),[r.name,t["!id"][r.id].Target,IDt(t["!id"][r.id].Type)]})}catch{return null}return!t||t.length===0?null:t}function UDt(t,e,n,r,i,a,s,o,l,c,u,f){try{a[r]=kS(mf(t,n,!0),e);var h=Uo(t,e),p;switch(o){case"sheet":p=$Rt(h,e,i,l,a[r],c,u,f);break;case"chart":if(p=qRt(h,e,i,l,a[r],c,u,f),!p||!p["!drawel"])break;var A=Gw(p["!drawel"].Target,e),g=QH(A),w=zCt(mf(t,A,!0),kS(mf(t,g,!0),A)),T=Gw(w,A),C=QH(T);p=CRt(mf(t,T,!0),T,l,kS(mf(t,C,!0),T),c,p);break;case"macro":p=WRt(h,e,i,l,a[r],c,u,f);break;case"dialog":p=ZRt(h,e,i,l,a[r],c,u,f);break;default:throw new Error("Unrecognized sheet type "+o)}s[r]=p;var M=[];a&&a[r]&&Mp(a[r]).forEach(function(D){var k="";if(a[r][D].Type==Y8.CMNT){k=Gw(a[r][D].Target,e);var I=KRt(Uo(t,k,!0),k,l);if(!I||!I.length)return;Hle(p,I,!1)}a[r][D].Type==Y8.TCMNT&&(k=Gw(a[r][D].Target,e),M=M.concat(qCt(Uo(t,k,!0),l)))}),M&&M.length&&Hle(p,M,!0,l.people||[])}catch(D){if(l.WTF)throw D}}function Yf(t){return t.charAt(0)=="/"?t.slice(1):t}function VDt(t,e){if(j3e(),e=e||{},DY(e),Kf(t,"META-INF/manifest.xml")||Kf(t,"objectdata.xml"))return ece(t,e);if(Kf(t,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array supp
5622ort");if(typeof AU<"u"){if(t.FileIndex)return AU(t);var n=$i.utils.cfb_new();return mle(t).forEach(function(ee){jTt(n,ee,VTt(t,ee))}),AU(n)}throw new Error("Unsupported NUMBERS file")}if(!Kf(t,"[Content_Types].xml"))throw Kf(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Kf(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var r=mle(t),i=FEt(mf(t,"[Content_Types].xml")),a=!1,s,o;if(i.workbooks.length===0&&(o="xl/workbook.xml",Uo(t,o,!0)&&i.workbooks.push(o)),i.workbooks.length===0){if(o="xl/workbook.bin",!Uo(t,o,!0))throw new Error("Could not find workbook");i.workbooks.push(o),a=!0}i.workbooks[0].slice(-3)=="bin"&&(a=!0);var l={},c={};if(!e.bookSheets&&!e.bookProps){if(FS=[],i.sst)try{FS=QRt(Uo(t,Yf(i.sst)),i.sst,e)}catch(ee){if(e.WTF)throw ee}e.cellStyles&&i.themes.length&&(l=XRt(mf(t,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],e)),i.style&&(c=YRt(Uo(t,Yf(i.style)),i.style,l,e))}i.links.map(function(ee){try{var Z=kS(mf(t,QH(Yf(ee))),ee);return eDt(Uo(t,Yf(ee)),Z,ee,e)}catch{}});var u=zRt(Uo(t,Yf(i.workbooks[0])),i.workbooks[0],e),f={},h="";i.coreprops.length&&(h=Uo(t,Yf(i.coreprops[0]),!0),h&&(f=A_e(h)),i.extprops.length!==0&&(h=Uo(t,Yf(i.extprops[0]),!0),h&&jEt(h,f,e)));var p={};(!e.bookSheets||e.bookProps)&&i.custprops.length!==0&&(h=mf(t,Yf(i.custprops[0]),!0),h&&(p=GEt(h,e)));var A={};if((e.bookSheets||e.bookProps)&&(u.Sheets?s=u.Sheets.map(function(Z){return Z.name}):f.Worksheets&&f.SheetNames.length>0&&(s=f.SheetNames),e.bookProps&&(A.Props=f,A.Custprops=p),e.bookSheets&&typeof s<"u"&&(A.SheetNames=s),e.bookSheets?A.SheetNames:e.bookProps))return A;s={};var g={};e.bookDeps&&i.calcchain&&(g=JRt(Uo(t,Yf(i.calcchain)),i.calcchain));var w=0,T={},C,M;{var D=u.Sheets;f.Worksheets=D.length,f.SheetNames=[];for(var k=0;k!=D.length;++k)f.SheetNames[k]=D[k].name}var I=a?"bin":"xml",L=i.workbooks[0].lastIndexOf("/"),O=(i.workbooks[0].slice(0,L+1)+"_rels/"+i.workbooks[0].slice(L+1)+".rels").replace(/^\//,"");Kf(t,O)||(O="xl/_rels/workbook."+I+".rels");var B=kS(mf(t,O,!0),O.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(e.xlmeta=tDt(Uo(t,Yf(i.metadata[0])),i.metadata[0],e)),(i.people||[]).length>=1&&(e.people=WCt(Uo(t,Yf(i.people[0])),e)),B&&(B=BDt(B,u.Sheets));var G=Uo(t,"xl/worksheets/sheet.xml",!0)?1:0;e:for(w=0;w!=f.Worksheets;++w){var j="sheet";if(B&&B[w]?(C="xl/"+B[w][1].replace(/[\/]?xl\//,""),Kf(t,C)||(C=B[w][1]),Kf(t,C)||(C=O.replace(/_rels\/.*$/,"")+B[w][1]),j=B[w][2]):(C="xl/worksheets/sheet"+(w+1-G)+"."+I,C=C.replace(/sheet0\./,"sheet.")),M=C.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),e&&e.sheets!=null)switch(typeof e.sheets){case"number":if(w!=e.sheets)continue e;break;case"string":if(f.SheetNames[w].toLowerCase()!=e.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(e.sheets)){for(var z=!1,Q=0;Q!=e.sheets.length;++Q)typeof e.sheets[Q]=="number"&&e.sheets[Q]==w&&(z=1),typeof e.sheets[Q]=="string"&&e.sheets[Q].toLowerCase()==f.SheetNames[w].toLowerCase()&&(z=1);if(!z)continue e}}UDt(t,C,M,f.SheetNames[w],w,T,s,j,e,u,l,c)}return A={Directory:i,Workbook:u,Props:f,Custprops:p,Deps:g,Sheets:s,SheetNames:f.SheetNames,Strings:FS,Styles:c,Themes:l,SSF:pc(ai)},e&&e.bookFiles&&(t.files?(A.keys=r,A.files=t.files):(A.keys=[],A.files={},t.FullPaths.forEach(function(ee,Z){ee=ee.replace(/^Root Entry[\/]/,""),A.keys.push(ee),A.files[ee]=t.FileIndex[Z]}))),e&&e.bookVBA&&(i.vba.length>0?A.vbaraw=Uo(t,Yf(i.vba[0]),!0):i.defaults&&i.defaults.bin===QCt&&(A.vbaraw=Uo(t,"xl/vbaProject.bin",!0))),A}function jDt(t,e){var n=e||{},r="Workbook",i=$i.find(t,r);try{if(r="/!DataSpaces/Version",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(k7t(i.content),r="/!DataSpaces/DataSpaceMap",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=O7t(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=F7t(i.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);B7t(i.content)}catch{}if(r="/EncryptionInfo",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=U7t(i.content);if(r="/EncryptedPackage",i=$i.find(t,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],i.content,n.password||"",n);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function PY(t,e){var n="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":n=Cf(t.slice(0,12));break;case"binary":n=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}
vendor: 4,669 bytes, line 5622
5622return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function HDt(t,e){return $i.find(t,"EncryptedPackage")?jDt(t,e):e6e(t,e)}function GDt(t,e){var n,r=t,i=e||{};return i.type||(i.type=Hi&&Buffer.isBuffer(t)?"buffer":"base64"),n=W3e(r,i),VDt(n,i)}function i6e(t,e){var n=0;e:for(;n<t.length;)switch(t.charCodeAt(n)){case 10:case 13:case 32:++n;break;case 60:return eG(t.slice(n),e);default:break e}return sT.to_workbook(t,e)}function zDt(t,e){var n="",r=PY(t,e);switch(e.type){case"base64":n=Cf(t);break;case"binary":n=t;break;case"buffer":n=t.toString("binary");break;case"array":n=My(t);break;default:throw new Error("Unrecognized type "+e.type)}return r[0]==239&&r[1]==187&&r[2]==191&&(n=us(n)),e.type="binary",i6e(n,e)}function $Dt(t,e){var n=t;return e.type=="base64"&&(n=Cf(n)),n=nT.utils.decode(1200,n.slice(2),"str"),e.type="binary",i6e(n,e)}function qDt(t){return t.match(/[^\x00-\x7F]/)?zw(t):t}function gU(t,e,n,r){return r?(n.type="string",sT.to_workbook(t,n)):sT.to_workbook(e,n)}function iG(t,e){N3e();var n=e||{};if(typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return iG(new Uint8Array(t),(n=pc(n),n.type="array",n));typeof Uint8Array<"u"&&t instanceof Uint8Array&&!n.type&&(n.type=typeof Deno<"u"?"buffer":"array");var r=t,i=[0,0,0,0],a=!1;if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),M3={},n.dateNF&&(M3.dateNF=n.dateNF),n.type||(n.type=Hi&&Buffer.isBuffer(t)?"buffer":"base64"),n.type=="file"&&(n.type=Hi?"buffer":"binary",r=kTt(t),typeof Uint8Array<"u"&&!Hi&&(n.type="array")),n.type=="string"&&(a=!0,n.type="binary",n.codepage=65001,r=qDt(t)),n.type=="array"&&typeof Uint8Array<"u"&&t instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return n=pc(n),n.type="array",iG(uY(r),n)}switch((i=PY(r,n))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return HDt($i.read(r,n),n);break;case 9:if(i[1]<=8)return e6e(r,n);break;case 60:return eG(r,n);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return y7t(r,n);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return x7t.to_workbook(r,n);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?GDt(r,n):gU(t,r,n,a);case 239:return i[3]===60?eG(r,n):gU(t,r,n,a);case 255:if(i[1]===254)return $Dt(r,n);if(i[1]===0&&i[2]===2&&i[3]===0)return OS.to_workbook(r,n);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return OS.to_workbook(r,n);break;case 3:case 131:case 139:case 140:return jle.to_workbook(r,n);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return Q7t.to_workbook(r,n);break;case 10:case 13:case 32:return zDt(r,n);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return A7t.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?jle.to_workbook(r,n):gU(t,r,n,a)}function WDt(t,e,n,r,i,a,s,o){var l=mc(n),c=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),f=!0,h=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch{h.__rowNum__=n}else h.__rowNum__=n;if(!s||t[n])for(var p=e.s.c;p<=e.e.c;++p){var A=s?t[n][p]:t[r[p]+l];if(A===void 0||A.t===void 0){if(c===void 0)continue;a[p]!=null&&(h[a[p]]=c);continue}var g=A.v;switch(A.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+A.t)}if(a[p]!=null){if(g==null)if(A.t=="e"&&g===null)h[a[p]]=null;else if(c!==void 0)h[a[p]]=c;else if(u&&g===null)h[a[p]]=null;else continue;else h[a[p]]=u&&(A.t!=="n"||A.t==="n"&&o.rawNumbers!==!1)?g:P2(A,g,o);g!=null&&(f=!1)}}return{row:h,isempty:f}}function aG(t,e){if(t==null||t["!ref"]==null)return[];var n={t:"n",v:0},r=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=c.range!=null?c.range:t["!ref"];switch(c.header===1?r=1:c.header==="A"?r=2:Array.isArray(c.header)?r=3:c.header==null&&(r=0),typeof u){case"string":l=Ao(u);break;case"number":l=Ao(t["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var f=mc(l.s.r),h=[],p=[],A=0,g=0,w=Array.isArray(t),T=l.s.r,C=0,M={};w&&!t[T]&&(t[T]=[]);var D=c.skipHidden&&t["!cols"]||[],k=c.skipHidden&&t["!rows"]||[];for(C=l.s.c;C<=l.e.c;++C)if(!(D[C]||{}).hidden)switch(h[C]=yl(C),n=w?t[T][C]:t[h[C]+f],r){case 1:a[C]=C-l.s.c;break;case 2:a[C]=h[C];break;case 3:a[C]=c.header[C-l.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),o=s=P2(n,null,c),g=M[s]||0,!g)M[s]=1;else{do o=s+"_"+g++;while(M[o]);M[s]=g,M[o]=1}a[C]=o}for(T=l.s.r+i;T<=l.e.r;++T)if(!(k[T]||{}
5622).hidden){var I=WDt(t,l,T,h,r,a,w,c);(I.isempty===!1||(r===1?c.blankrows!==!1:c.blankrows))&&(p[A++]=I.row)}return p.length=A,p}var ice=/"/g;function ZDt(t,e,n,r,i,a,s,o){for(var l=!0,c=[],u="",f=mc(n),h=e.s.c;h<=e.e.c;++h)if(r[h]){var p=o.dense?(t[n]||[])[h]:t[r[h]+f];if(p==null)u="";else if(p.v!=null){l=!1,u=""+(o.rawNumbers&&p.t=="n"?p.v:P2(p,null,o));for(var A=0,g=0;A!==u.length;++A)if((g=u.charCodeAt(A))===i||g===a||g===34||o.forceQuotes){u='"'+u.replace(ice,'""')+'"';break}u=="ID"&&(u='"ID"')}else p.f!=null&&!p.F?(l=!1,u="="+p.f,u.indexOf(",")>=0&&(u='"'+u.replace(ice,'""')+'"')):u="";c.push(u)}return o.blankrows===!1&&l?null:c.join(s)}function a6e(t,e){var n=[],r=e??{};if(t==null||t["!ref"]==null)return"";var i=Ao(t["!ref"]),a=r.FS!==void 0?r.FS:",",s=a.charCodeAt(0),o=r.RS!==void 0?r.RS:` 5623`,l=o.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",f=[];r.dense=Array.isArray(t);for(var h=r.skipHidden&&t["!cols"]||[],p=r.skipHidden&&t["!rows"]||[],A=i.s.c;A<=i.e.c;++A)(h[A]||{}).hidden||(f[A]=yl(A));for(var g=0,w=i.s.r;w<=i.e.r;++w)(p[w]||{}).hidden||(u=ZDt(t,i,w,f,s,l,a,r),u!=null&&(r.strip&&(u=u.replace(c,"")),(u||r.blankrows!==!1)&&n.push((g++?o:"")+u)));return delete r.dense,n.join("")}function YDt(t,e){e||(e={}),e.FS=" ",e.RS=` 5624`;var n=a6e(t,e);return n}function XDt(t){var e="",n,r="";if(t==null||t["!ref"]==null)return[];var i=Ao(t["!ref"]),a="",s=[],o,l=[],c=Array.isArray(t);for(o=i.s.c;o<=i.e.c;++o)s[o]=yl(o);for(var u=i.s.r;u<=i.e.r;++u)for(a=mc(u),o=i.s.c;o<=i.e.c;++o)if(e=s[o]+a,n=c?(t[u]||[])[o]:t[e],r="",n!==void 0){if(n.F!=null){if(e=n.F,!n.f)continue;r=n.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(n.f!=null)r=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)r=""+n.v;else if(n.t=="b")r=n.v?"TRUE":"FALSE";else if(n.w!==void 0)r="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?r="'"+n.v:r=""+n.v}}l[l.length]=e+"="+r}return l}function s6e(t,e,n){var r=n||{},i=+!r.skipHeader,a=t||{},s=0,o=0;if(a&&r.origin!=null)if(typeof r.origin=="number")s=r.origin;else{var l=typeof r.origin=="string"?Bu(r.origin):r.origin;s=l.r,o=l.c}var c,u={s:{c:0,r:0},e:{c:o,r:s+e.length-1+i}};if(a["!ref"]){var f=Ao(a["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),s==-1&&(s=f.e.r+1,u.e.r=s+e.length-1+i)}else s==-1&&(s=0,u.e.r=e.length-1+i);var h=r.header||[],p=0;e.forEach(function(g,w){Mp(g).forEach(function(T){(p=h.indexOf(T))==-1&&(h[p=h.length]=T);var C=g[T],M="z",D="",k=Jr({c:o+p,r:s+w+i});c=uT(a,k),C&&typeof C=="object"&&!(C instanceof Date)?a[k]=C:(typeof C=="number"?M="n":typeof C=="boolean"?M="b":typeof C=="string"?M="s":C instanceof Date?(M="d",r.cellDates||(M="n",C=Hu(C)),D=r.dateNF||ai[14]):C===null&&r.nullError&&(M="e",C=0),c?(c.t=M,c.v=C,delete c.w,delete c.R,D&&(c.z=D)):a[k]=c={t:M,v:C},D&&(c.z=D))})}),u.e.c=Math.max(u.e.c,o+h.length-1);var A=mc(s);if(i)for(p=0;p<h.length;++p)a[yl(p+o)+A]={t:"s",v:h[p]};return a["!ref"]=qi(u),a}function QDt(t,e){return s6e(null,t,e)}function uT(t,e,n){if(typeof e=="string"){if(Array.isArray(t)){var r=Bu(e);return t[r.r]||(t[r.r]=[]),t[r.r][r.c]||(t[r.r][r.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?uT(t,Jr(e)):uT(t,Jr({r:e,c:n||0}))}function KDt(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var n=t.SheetNames.indexOf(e);if(n>-1)return n;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function kY(){return{SheetNames:[],Sheets:{}}}function LY(t,e,n,r){var i=1;if(!n)for(;i<=65535&&t.SheetNames.indexOf(n="Sheet"+i)!=-1;++i,n=void 0);if(!n||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&t.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||n;for(++i;i<=65535&&t.SheetNames.indexOf(n=s+i)!=-1;++i);}if(FRt(n),t.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return t.SheetNames.push(n),t.Sheets[n]=e,n}function JDt(t,e,n){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var r=KDt(t,e);switch(t.Workbook.Sheets[r]||(t.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}t.Workbook.Sheets[r].Hidden=n}function ePt(t,e){return t.z=e,t}function o6e(t,e,n){return e?(t.l={Target:e},n&&(t.l.Tooltip=n)):delete t.l,t}function tPt(t,e,n){return o6e(t,"#"+e,n)}function nPt(t,e,n){t.c||(t.c=[]),t.c.push({t:e,a:n||"SheetJS"})}function rPt(t,e,n,r){for(var i=typeof e!="string"?e:Ao(e),a=typeof e=="string"?e:qi(e),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var l=uT(t,s,o);l.t="n",l.F=a,delete l.v,s==i.s.r&&o==i.s.c&&(l.f=n,r&&(l.D=!0))}return t}var iPt={encode_col:yl,encode_row:mc,encode_cell:Jr,encode_range:qi,decode_col:vY,decode_row:xY,split_cell:mEt,decode_cell:
5624Bu,decode_range:C6,format_cell:P2,sheet_add_aoa:f_e,sheet_add_json:s6e,sheet_add_dom:t6e,aoa_to_sheet:N6,json_to_sheet:QDt,table_to_sheet:n6e,table_to_book:yDt,sheet_to_csv:a6e,sheet_to_txt:YDt,sheet_to_json:aG,sheet_to_html:vDt,sheet_to_formulae:XDt,sheet_to_row_object_array:aG,sheet_get_cell:uT,book_new:kY,book_append_sheet:LY,book_set_sheet_visibility:JDt,cell_set_number_format:ePt,cell_set_hyperlink:o6e,cell_set_internal_link:tPt,cell_add_comment:nPt,sheet_set_array_formula:rPt,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const l6e=t=>{const e=localStorage.getItem(t);return e!==null?JSON.parse(e):null},ace={title:"",firstName:"",lastName:"",email:"",phone:"",password:"",company:"",address1:"",address2:"",countryCode:"IN",state:"",city:"",pinCode:"",mfaEnabled:!0,mfaType:"EMAIL",role:"AGENTSTAFF"};function c6e(t){const e=Dn.c(114),{onSuccess:n}=t,[r,i]=b.useState(!1),[a,s]=b.useState(null),[o,l]=b.useState(""),[c,u]=b.useState(ace);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[h,p]=b.useState(f),A=l6e(S0)?.company;let g;e[1]!==c.address1||e[2]!==c.city||e[3]!==c.email||e[4]!==c.firstName||e[5]!==c.lastName||e[6]!==c.password||e[7]!==c.phone||e[8]!==c.pinCode||e[9]!==c.state||e[10]!==c.title||e[11]!==o?(g=()=>{const De={};return c.title.trim()||(De.title="Title is required"),c.firstName.trim()||(De.firstName="First name is required"),c.lastName.trim()||(De.lastName="Last name is required"),c.email.trim()?I3(c.email)||(De.email="Invalid email address"):De.email="Email is required",c.phone.trim()?/^\d{10}$/.test(c.phone)||(De.phone="Phone must be exactly 10 digits"):De.phone="Phone is required",c.password.trim()||(De.password="Password is required"),c.address1.trim()||(De.address1="Address is required"),c.state.trim()||(De.state="State is required"),c.city.trim()||(De.city="City is required"),c.pinCode.trim()||(De.pinCode="Pin code is required"),o.trim()?c.password!==o&&(De.confirmPassword="Passwords do not match"):De.confirmPassword="Confirm password is required",p(De),Object.keys(De).length===0},e[1]=c.address1,e[2]=c.city,e[3]=c.email,e[4]=c.firstName,e[5]=c.lastName,e[6]=c.password,e[7]=c.phone,e[8]=c.pinCode,e[9]=c.state,e[10]=c.title,e[11]=o,e[12]=g):g=e[12];const w=g;let T;e[13]!==h?(T=(De,Xe)=>{u(Ye=>({...Ye,[De]:Xe})),h[De]&&p(Ye=>({...Ye,[De]:""}))},e[13]=h,e[14]=T):T=e[14];const C=T;let M;e[15]!==c||e[16]!==n||e[17]!==w?(M=async()=>{if(!w())return;i(!0);const De={...c,company:A},Xe=await $Ue(De);Xe.statusCode===200?(s({title:"Success",description:"Staff added successfully",variant:"success"}),u(ace),l(""),p({}),n()):s({title:"Error",description:Xe.message||"Something went wrong",variant:"error"}),i(!1)},e[15]=c,e[16]=n,e[17]=w,e[18]=M):M=e[18];const D=M;let k;e[19]!==r?(k=r&&x.jsx(go,{isLoading:r}),e[19]=r,e[20]=k):k=e[20];let I;e[21]!==a?(I=a&&x.jsx(Do,{title:a.title,description:a.description,variant:a.variant,onHide:()=>s(null)}),e[21]=a,e[22]=I):I=e[22];let L;e[23]!==C?(L=De=>C("title",De.value),e[23]=C,e[24]=L):L=e[24];let O;e[25]!==c.title||e[26]!==h.title||e[27]!==L?(O=x.jsx("div",{className:"col-span-12 md:col-span-3",children:x.jsx(Ia,{label:"Title",selectedValue:c.title,onChange:L,errorText:h.title,options:XD,placeholder:"Title"})}),e[25]=c.title,e[26]=h.title,e[27]=L,e[28]=O):O=e[28];let B;e[29]!==C?(B=De=>C("firstName",De.target.value),e[29]=C,e[30]=B):B=e[30];let G;e[31]!==c.firstName||e[32]!==h.firstName||e[33]!==B?(G=x.jsx("div",{className:"col-span-12 md:col-span-5",children:x.jsx(dr,{label:"First Name",value:c.firstName,onChange:B,errorText:h.firstName,placeholder:"First Name"})}),e[31]=c.firstName,e[32]=h.firstName,e[33]=B,e[34]=G):G=e[34];let j;e[35]!==C?(j=De=>C("lastName",De.target.value),e[35]=C,e[36]=j):j=e[36];let z;e[37]!==c.lastName||e[38]!==h.lastName||e[39]!==j?(z=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(dr,{label:"Last Name",value:c.lastName,onChange:j,errorText:h.lastName,placeholder:"Last Name"})}),e[37]=c.lastName,e[38]=h.lastName,e[39]=j,e[40]=z):z=e[40];let Q;e[41]!==C?(Q=De=>C("email",De.target.value),e[41]=C,e[42]=Q):Q=e[42];let ee;e[43]!==c.email||e[44]!==h.email||e[45]!==Q?(ee=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Email",value:c.email,onChange:Q,errorText:h.email,placeholder:"Email"})}),e[43]=c.email,e[44]=h.email,e[45]=Q,e[46]=ee):ee=e[46];let Z;e[47]!==C?(Z=De=>C("phone",De.target.value),e[47]=C,e[48]=Z):Z=e[48];let X;e[49]!==c.phone||e[50]!==h.phone||e[51]!==Z?(X=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Phone",value:c.phone,onChange:Z,errorText:h.phone,placeholder:"Phone"})}),e[49]=c.phone,e[50]=h.phone,e[51]=Z,e[52]=X):X=e[52];let K;e[53]!==C?(K=De=>C("address1",De.target.value),e[53]=C,e[54]=K):K=e[54];let se;e[55]!==c.address1||e[56]!==h.address1||e[57]!==K?(se=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Address 1",value:c.address1,onChange:K,errorText:h.address1,placeholder:"Address 1"})}),e[55]=c.address1,e[56]=h.address1,e[57]=K,e[58]=se):se=e[58];let ae;e[59]!==C?(ae=De=>C("address2",De.target.value),e[59]=C,e[60]=ae):ae=e[60];let J;e[61]!==c.address2||e[62]!==ae?(J=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Address 2",value:c.address2,onChange:ae,placeholder:"Address 2"})}),e[61]=c.address2,e[62]=ae,e[63]=J):J=e[63];let oe;e[64]!==C?(oe=De=>C("state",De.value),e[64]=C,e[65]=oe):oe=e[65];let te;e[66]!==c.state||e[67]!==h.state||e[68]!==oe?(te=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(Ia,{label:"State",options:J$,selectedValue:c.state,onChange:oe,placeholder:"State",errorText:h.state})}),e[66]=c.state,e[67]=h.state,e[68]=oe,e[69]=te):te=e[69];let he;e[70]!==C?(he=De=>C("city",De.target.value),e[70]=C,e[71]=he):he=e[71];let me;e[72]!==c.city||e[73]!==h.city||e[74]!==he?(me=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"City",value:c.city,onChange:he,errorText:h.city,placeholder:"City"})}),e[72]=c.city,e[73]=h.city,e[74]=he,e[75]=me):me=e[75];let de;e[76]!==C?(de=De=>C("pinCode",De.target.value),e[76]=C,e[77]=de):de=e[77];let Ae;e[78]!==c.pinCode||e[79]!==h.pinCode||e[80]!==de?(Ae=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Pin Code",value:c.pinCode,onChange:de,errorText:h.pinCode,type:"number",placeholder:"Pin Code"})}),e[78]=c.pinCode,e[79]=h.pinCode,e[80]=de,e[81]=Ae):Ae=e[81];let Se;e[82]!==C?(Se=De=>C("password",De.target.value),e[82]=C,e[83]=Se):Se=e[83];let Re;e[84]!==c.password||e[85]!==h.password||e[86]!==Se?(Re=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Password",type:"password",value:c.password,onChange:Se,errorText:h.password,placeholder:"Password"})}),e[84]=c.password,e[85]=h.password,e[86]=Se,e[87]=Re):Re=e[87];let Ne;e[88]!==h.confirmPassword?(Ne=De=>{l(De.target.value),h.confirmPassword&&p(aPt)},e[88]=h.confirmPassword,e[89]=Ne):Ne=e[89];let Fe;e[90]!==o||e[91]!==h.confirmPassword||e[92]!==Ne?(Fe=x.jsx("div",{className:"col-span-12",children:x.jsx(dr,{label:"Confirm Password",type:"password",value:o,onChange:Ne,errorText:h.confirmPassword,placeholder:"Confirm Password"})}),e[90]=o,e[91]=h.confirmPassword,e[92]=Ne,e[93]=Fe):Fe=e[93];let Qe;e[94]!==D?(Qe=x.jsx("div",{className:"col-span-12",children:x.jsx(gr,{btnText:"Add Staff",variant:"secondary",onClick:D})}),e[94]=D,e[95]=Qe):Qe=e[95];let ge;e[96]!==G||e[97]!==z||e[98]!==ee||e[99]!==X||e[100]!==se||e[101]!==J||e[102]!==te||e[103]!==me||e[104]!==Ae||e[105]!==Re||e[106]!==Fe||e[107]!==Qe||e[108]!==O?(ge=x.jsx("div",{className:"p-4",children:x.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[O,G,z,ee,X,se,J,te,me,Ae,Re,Fe,Qe]})}),e[96]=G,e[97]=z,e[98]=ee,e[99]=X,e[100]=se,e[101]=J,e[102]=te,e[103]=me,e[104]=Ae,e[105]=Re,e[106]=Fe,e[107]=Qe,e[108]=O,e[109]=ge):ge=e[109];let Ie;return e[110]!==ge||e[111]!==k||e[112]!==I?(Ie=x.jsxs(x.Fragment,{children:[k,I,ge]}),e[110]=ge,e[111]=k,e[112]=I,e[113]=Ie):Ie=e[113],Ie}function aPt(t){return{...t,confirmPassword:""}}c6e.propTypes={onSuccess:re.func.isRequired};function u6e(t){const e=Dn.c(105),{staff:n,onSuccess:r}=t,[i,a]=b.useState(!1),[s,o]=b.useState(null),[l,c]=b.useState(n);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={},e[0]=u):u=e[0];const[f,h]=b.useState(u),p=l6e(S0)?.company;let A;e[1]!==l.address1||e[2]!==l.city||e[3]!==l.email||e[4]!==l.firstName||e[5]!==l.lastName||e[6]!==l.phone||e[7]!==l.pinCode||e[8]!==l.state||e[9]!==l.title?(A=()=>{const ge={};return l.title.trim()||(ge.title="Title is required"),l.firstName.trim()||(ge.firstName="First name is required"),l.lastName.trim()||(ge.lastName="Last name is required"),l.email.trim()?I3(l.email)||(ge.email="Invalid email address"):ge.email="Email is required",l.phone.trim()?/^\d{10}$/.test(l.phone)||(ge.phone="Phone must be exactly 10 digits"):ge.phone="Phone is required",l.address1.trim()||(ge.address1="Address is required"),l.state.trim()||(ge.state="State is required"),l.city.trim()||(ge.city="City is required"),l.pinCode.trim()||(ge.pinCode="Pin code is required"),h(ge),Object.keys(ge).length===0},e[1]=l.address1,e[2]=l.city,e[3]=l.email,e[4]=l.firstName,e[5]=l.lastName,e[6]=l.phone,e[7]=l.pinCode,e[8]=l.state,e[9]=l.title,e[10]=A):A=e[10];const g=A;let w;e[11]!==f?(w=(ge,Ie)=>{c(De=>({...De,[ge]:Ie})),f[ge]&&h(De=>({...De,[ge]:""}))},e[11]=f,e[12]=w):w=e[12];const T=w;let C;e[13]!==l||e[14]!==r||e[15]!==g?(C=async()=>
5624{if(!g())return;a(!0);const ge={...l,company:p},Ie=await qUe(ge);Ie.statusCode===200?(o({title:"Success",description:"Staff updated successfully",variant:"success"}),c({}),h({}),setTimeout(()=>{r()},1e3)):o({title:"Error",description:Ie.message||"Something went wrong",variant:"error"}),a(!1)},e[13]=l,e[14]=r,e[15]=g,e[16]=C):C=e[16];const M=C;let D;e[17]!==i?(D=i&&x.jsx(go,{isLoading:i}),e[17]=i,e[18]=D):D=e[18];let k;e[19]!==s?(k=s&&x.jsx(Do,{title:s.title,description:s.description,variant:s.variant,onHide:()=>o(null)}),e[19]=s,e[20]=k):k=e[20];let I;e[21]!==T?(I=ge=>T("title",ge.value),e[21]=T,e[22]=I):I=e[22];let L;e[23]!==l.title||e[24]!==f.title||e[25]!==I?(L=x.jsx("div",{className:"col-span-12 md:col-span-3",children:x.jsx(Ia,{label:"Title",selectedValue:l.title,onChange:I,errorText:f.title,options:XD,placeholder:"Title"})}),e[23]=l.title,e[24]=f.title,e[25]=I,e[26]=L):L=e[26];let O;e[27]!==T?(O=ge=>T("firstName",ge.target.value),e[27]=T,e[28]=O):O=e[28];let B;e[29]!==l.firstName||e[30]!==f.firstName||e[31]!==O?(B=x.jsx("div",{className:"col-span-12 md:col-span-5",children:x.jsx(dr,{label:"First Name",value:l.firstName,onChange:O,errorText:f.firstName,placeholder:"First Name"})}),e[29]=l.firstName,e[30]=f.firstName,e[31]=O,e[32]=B):B=e[32];let G;e[33]!==T?(G=ge=>T("lastName",ge.target.value),e[33]=T,e[34]=G):G=e[34];let j;e[35]!==l.lastName||e[36]!==f.lastName||e[37]!==G?(j=x.jsx("div",{className:"col-span-12 md:col-span-4",children:x.jsx(dr,{label:"Last Name",value:l.lastName,onChange:G,errorText:f.lastName,placeholder:"Last Name"})}),e[35]=l.lastName,e[36]=f.lastName,e[37]=G,e[38]=j):j=e[38];let z;e[39]!==T?(z=ge=>T("email",ge.target.value),e[39]=T,e[40]=z):z=e[40];let Q;e[41]!==l.email||e[42]!==f.email||e[43]!==z?(Q=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Email",value:l.email,onChange:z,errorText:f.email,placeholder:"Email"})}),e[41]=l.email,e[42]=f.email,e[43]=z,e[44]=Q):Q=e[44];let ee;e[45]!==T?(ee=ge=>T("phone",ge.target.value),e[45]=T,e[46]=ee):ee=e[46];let Z;e[47]!==l.phone||e[48]!==f.phone||e[49]!==ee?(Z=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Phone",value:l.phone,onChange:ee,errorText:f.phone,placeholder:"Phone"})}),e[47]=l.phone,e[48]=f.phone,e[49]=ee,e[50]=Z):Z=e[50];let X;e[51]!==T?(X=ge=>T("address1",ge.target.value),e[51]=T,e[52]=X):X=e[52];let K;e[53]!==l.address1||e[54]!==f.address1||e[55]!==X?(K=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Address 1",value:l.address1,onChange:X,errorText:f.address1,placeholder:"Address 1"})}),e[53]=l.address1,e[54]=f.address1,e[55]=X,e[56]=K):K=e[56];let se;e[57]!==T?(se=ge=>T("address2",ge.target.value),e[57]=T,e[58]=se):se=e[58];let ae;e[59]!==l.address2||e[60]!==se?(ae=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Address 2",value:l.address2,onChange:se,placeholder:"Address 2"})}),e[59]=l.address2,e[60]=se,e[61]=ae):ae=e[61];let J;e[62]!==T?(J=ge=>T("state",ge.value),e[62]=T,e[63]=J):J=e[63];let oe;e[64]!==l.state||e[65]!==f.state||e[66]!==J?(oe=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(Ia,{label:"State",options:J$,selectedValue:l.state,onChange:J,placeholder:"State",errorText:f.state})}),e[64]=l.state,e[65]=f.state,e[66]=J,e[67]=oe):oe=e[67];let te;e[68]!==T?(te=ge=>T("city",ge.target.value),e[68]=T,e[69]=te):te=e[69];let he;e[70]!==l.city||e[71]!==f.city||e[72]!==te?(he=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"City",value:l.city,onChange:te,errorText:f.city,placeholder:"City"})}),e[70]=l.city,e[71]=f.city,e[72]=te,e[73]=he):he=e[73];let me;e[74]!==T?(me=ge=>T("pinCode",ge.target.value),e[74]=T,e[75]=me):me=e[75];let de;e[76]!==l.pinCode||e[77]!==f.pinCode||e[78]!==me?(de=x.jsx("div",{className:"col-span-12 md:col-span-6",children:x.jsx(dr,{label:"Pin Code",value:l.pinCode,onChange:me,errorText:f.pinCode,type:"number",placeholder:"Pin Code"})}),e[76]=l.pinCode,e[77]=f.pinCode,e[78]=me,e[79]=de):de=e[79];let Ae;e[80]!==T?(Ae=ge=>T("mfaEnabled",ge.value),e[80]=T,e[81]=Ae):Ae=e[81];let Se;e[82]===Symbol.for("react.memo_cache_sentinel")?(Se=[{label:"Yes",value:!0},{label:"No",value:!1}],e[82]=Se):Se=e[82];let Re;e[83]!==l.mfaEnabled||e[84]!==Ae?(Re=x.jsx("div",{className:"col-span-12 md:col-span-6 hidden",children:x.jsx(Ia,{label:"MFA",selectedValue:l.mfaEnabled,onChange:Ae,options:Se})}),e[83]=l.mfaEnabled,e[84]=Ae,e[85]=Re):Re=e[85];let Ne;e[86]!==M?(Ne=x.jsx("div",{className:"col-span-12",children:x.jsx(gr,{btnText:"Update Staff",variant:"secondary",onClick:M})}),e[86]=M,e[87]=Ne):Ne=e[87];let Fe;e[88]!==B||e[89]!==j||e[90]!==Q||e[91]!==Z||e[92]!==K||e[93]!==ae||e[94]!==oe||e[95]!==he||e[96]!==de||e[97]!==Re||e[98]!==Ne||e[99]!==L?(Fe=x.jsx("div",{className:"p-4",children:x.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[L,B,j,Q,Z,K,ae,oe,he,de,Re,Ne]})}),e[88]=B,e[89]=j,e[90]=Q,e[91]=Z,e[92]=K,e[93]=ae,e[94]=oe,e[95]=he,e[96]=de,e[97]=Re,e[98]=Ne,e[99]=L,e[100]=Fe):Fe=e[100];let Qe;return e[101]!==Fe||e[102]!==D||e[103]!==k?(Qe=x.jsxs(x.Fragment,{children:[D,k,Fe]}),e[101]=Fe,e[102]=D,e[103]=k,e[104]=Qe):Qe=e[104],Qe}
5624u6e.propTypes={staff:re.obj};const sPt={PENDING_DOC_UPLOAD:{label:"Pending Docs",className:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400"},ACTIVE:{label:"Active",className:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400"},SUSPENDED:{label:"Suspended",className:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"}},sce=["bg-blue-500","bg-violet-500","bg-emerald-500","bg-rose-500","bg-amber-500","bg-cyan-500"];function oPt(t){const e=Dn.c(47),{staff:n,index:r,onClick:i}=t;let a;e[0]!==n.userstatus?(a=sPt[n.userstatus]??{label:n.userstatus,className:"bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-400"},e[0]=n.userstatus,e[1]=a):a=e[1];const s=a,o=sce[r%sce.length];let l;e[2]!==n.title?.[0]?(l=n.title?.[0]?.toUpperCase()??"?",e[2]=n.title?.[0],e[3]=l):l=e[3];const c=l;let u;e[4]!==i||e[5]!==n?(u=()=>i(n),e[4]=i,e[5]=n,e[6]=u):u=e[6];const f=`${o} w-11 h-11 rounded-full flex items-center justify-center text-white font-semibold text-sm shrink-0`;let h;e[7]!==c||e[8]!==f?(h=x.jsx("div",{className:f,children:c}),e[7]=c,e[8]=f,e[9]=h):h=e[9];let p;e[10]!==n.firstName||e[11]!==n.lastName||e[12]!==n.title?(p=x.jsxs("p",{className:"font-semibold text-gray-900 dark:text-white truncate",children:[n.title," ",n.firstName," ",n.lastName]}),e[10]=n.firstName,e[11]=n.lastName,e[12]=n.title,e[13]=p):p=e[13];let A;e[14]!==n.userId?(A=x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:n.userId}),e[14]=n.userId,e[15]=A):A=e[15];let g;e[16]!==p||e[17]!==A?(g=x.jsxs("div",{className:"flex-1 min-w-0",children:[p,A]}),e[16]=p,e[17]=A,e[18]=g):g=e[18];const w=`text-xs font-medium px-2 py-0.5 rounded-full shrink-0 ${s.className}`;let T;e[19]!==s.label||e[20]!==w?(T=x.jsx("span",{className:w,children:s.label}),e[19]=s.label,e[20]=w,e[21]=T):T=e[21];let C;e[22]!==T||e[23]!==h||e[24]!==g?(C=x.jsxs("div",{className:"flex items-center gap-3",children:[h,g,T]}),e[22]=T,e[23]=h,e[24]=g,e[25]=C):C=e[25];let M;e[26]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsx(Ry,{size:14,className:"shrink-0 text-gray-400"}),e[26]=M):M=e[26];const D=n.email||"â";let k;e[27]!==D?(k=x.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[M,x.jsx("span",{className:"truncate",children:D})]}),e[27]=D,e[28]=k):k=e[28];let I;e[29]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(wT,{size:14,className:"shrink-0 text-gray-400"}),e[29]=I):I=e[29];const L=n.phone||"â";let O;e[30]!==L?(O=x.jsxs("div",{className:"flex items-center gap-2",children:[I,x.jsx("span",{children:L})]}),e[30]=L,e[31]=O):O=e[31];let B;e[32]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx(tP,{size:14,className:"shrink-0 text-gray-400"}),e[32]=B):B=e[32];let G;e[33]!==n.city||e[34]!==n.pinCode||e[35]!==n.state?(G=[n.city,n.state,n.pinCode].filter(Boolean).join(", ")||"â",e[33]=n.city,e[34]=n.pinCode,e[35]=n.state,e[36]=G):G=e[36];let j;e[37]!==G?(j=x.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[B,x.jsx("span",{className:"truncate",children:G})]}),e[37]=G,e[38]=j):j=e[38];let z;e[39]!==k||e[40]!==O||e[41]!==j?(z=x.jsxs("div",{className:"flex flex-col gap-1.5 text-sm text-gray-600 dark:text-gray-400",children:[k,O,j]}),e[39]=k,e[40]=O,e[41]=j,e[42]=z):z=e[42];let Q;return e[43]!==C||e[44]!==z||e[45]!==u?(Q=x.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-100 dark:border-gray-700 p-4 flex flex-col gap-3 hover:shadow-md transition-shadow cursor-pointer",onClick:u,children:[C,z]}),e[43]=C,e[44]=z,e[45]=u,e[46]=Q):Q=e[46],Q}function lPt(){const t=Dn.c(63),[e,n]=b.useState(!1),[r,i]=b.useState(null),[a,s]=b.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const[l,c]=b.useState(o),[u,f]=b.useState(null);let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h={headers:[],rows:[]},t[1]=h):h=t[1];const[p,A]=b.useState(h),[g,w]=b.useState(!1);let T;t[2]===Symbol.for("react.memo_cache_sentinel")?(T={},t[2]=T):T=t[2];const[C,M]=b.useState(T),[D,k]=b.useState(!1);let I;t[3]===Symbol.for("react.memo_cache_sentinel")?(I=[],t[3]=I):I=t[3];const[L,O]=b.useState(I);let B;t[4]===Symbol.for("react.memo_cache_sentinel")?(B=async()=>{n(!0);const nt=await WUe();nt.statusCode===200?c(nt.result):i({title:"Error",description:"Failed to fetch agent staff",variant:"error"}),n(!1)},t[4]=B):B=t[4];const G=B;let j,z;t[5]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{G()},z=[],t[5]=j,t[6]=z):(j=t[5],z=t[6]),b.useEffect(j,z);let Q;t[7]!==u?(Q=async()=>
5624{if(n(!0),!u){i({title:"Error",description:"Please select a file",variant:"error"}),n(!1);return}const nt=new FormData;nt.append("file",u);const ht=await YUe(nt);ht.statusCode===200?(w(!1),A({headers:[],rows:[]}),f(null),G()):(i({title:"Error",description:"Failed to upload staff excel",variant:"error"}),O(ht.result.errors)),n(!1)},t[7]=u,t[8]=Q):Q=t[8];const ee=Q;let Z;t[9]===Symbol.for("react.memo_cache_sentinel")?(Z=nt=>{const ht={title:nt.title,firstName:nt.firstName,lastName:nt.lastName,email:nt.email,phone:nt.phone,company:nt.company,address1:nt.address1,address2:nt.address2,countryCode:nt.countryCode,state:nt.state,city:nt.city,pinCode:nt.pinCode,mfaEnabled:nt.mfaEnabled,userId:nt.userId};M(ht),k(!0)},t[9]=Z):Z=t[9];const X=Z;let K;t[10]!==e?(K=e&&x.jsx(go,{isLoading:e}),t[10]=e,t[11]=K):K=t[11];let se;t[12]!==r?(se=r&&x.jsx(Do,{title:r.title,description:r.description,variant:r.variant,onHide:()=>i(null)}),t[12]=r,t[13]=se):se=t[13];let ae;t[14]===Symbol.for("react.memo_cache_sentinel")?(ae=x.jsx("div",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"My Staff"}),t[14]=ae):ae=t[14];let J;t[15]===Symbol.for("react.memo_cache_sentinel")?(J=x.jsx(gr,{btnText:"Add Staff",variant:"secondary",onClick:()=>s(!0)}),t[15]=J):J=t[15];let oe;t[16]===Symbol.for("react.memo_cache_sentinel")?(oe=x.jsx("div",{className:"app-card shadow-xl!",children:x.jsxs("div",{className:"flex justify-between w-full items-center",children:[ae,x.jsxs("div",{className:"flex gap-2",children:[J,x.jsx(gr,{btnText:"Bulk Upload",variant:"secondary",onClick:()=>w(!0)})]})]})}),t[16]=oe):oe=t[16];let te;t[17]!==e||t[18]!==l?(te=x.jsx("div",{className:"app-card mt-2 shadow-xl!",children:!e&&l.length===0?x.jsxs("div",{className:"flex flex-col items-center justify-center py-16 gap-3 text-gray-400 dark:text-gray-600",children:[x.jsx(Sfe,{size:48,weight:"thin"}),x.jsx("p",{className:"text-sm",children:"No staff members yet. Add one to get started."})]}):x.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map((nt,ht)=>x.jsx(oPt,{staff:nt,index:ht,onClick:ve=>{X(ve)}},nt.userId))})}),t[17]=e,t[18]=l,t[19]=te):te=t[19];let he;t[20]===Symbol.for("react.memo_cache_sentinel")?(he=()=>s(!1),t[20]=he):he=t[20];let me;t[21]===Symbol.for("react.memo_cache_sentinel")?(me=x.jsx(c6e,{onSuccess:()=>{s(!1),G()}}),t[21]=me):me=t[21];let de;t[22]!==a?(de=x.jsx(qc,{isOpen:a,onHideSidebar:he,sidebarTitle:"Add Staff",children:me}),t[22]=a,t[23]=de):de=t[23];let Ae;t[24]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>k(!1),t[24]=Ae):Ae=t[24];let Se;t[25]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{k(!1),G()},t[25]=Se):Se=t[25];let Re;t[26]!==C?(Re=x.jsx(u6e,{staff:C,onSuccess:Se}),t[26]=C,t[27]=Re):Re=t[27];let Ne;t[28]!==D||t[29]!==Re?(Ne=x.jsx(qc,{isOpen:D,onHideSidebar:Ae,sidebarTitle:"Edit Staff",children:Re}),t[28]=D,t[29]=Re,t[30]=Ne):Ne=t[30];let Fe;t[31]===Symbol.for("react.memo_cache_sentinel")?(Fe=()=>w(!1),t[31]=Fe):Fe=t[31];let Qe;t[32]!==ee?(Qe=()=>ee(),t[32]=ee,t[33]=Qe):Qe=t[33];let ge;t[34]===Symbol.for("react.memo_cache_sentinel")?(ge=x.jsx(TT,{size:16}),t[34]=ge):ge=t[34];const Ie=u?u.name:"Choose Excel file";let De;t[35]!==Ie?(De=x.jsx("span",{className:"max-w-[200px] truncate",children:Ie}),t[35]=Ie,t[36]=De):De=t[36];let Xe;t[37]===Symbol.for("react.memo_cache_sentinel")?(Xe=x.jsx("input",{type:"file",accept:".xlsx,.xls,.csv",className:"hidden",onChange:nt=>{const ht=nt.target.files[0];if(!ht)return;f(ht);const ve=new FileReader;ve.onload=ce=>{const je=iG(ce.target.result,{type:"array"}),dt=je.Sheets[je.SheetNames[0]],ft=iPt.sheet_to_json(dt,{header:1,defval:""}),[at,...St]=ft;A({headers:at===void 0?[]:at,rows:St})},ve.readAsArrayBuffer(ht)}}
5624),t[37]=Xe):Xe=t[37];let Ye;t[38]!==De?(Ye=x.jsxs("label",{className:"flex items-center gap-2 cursor-pointer px-3 py-1.5 rounded-lg border border-dashed border-gray-300 dark:border-gray-600 text-sm text-gray-500 dark:text-gray-400 hover:border-blue-400 hover:text-blue-500 transition-colors w-fit",children:[ge,De,Xe]}),t[38]=De,t[39]=Ye):Ye=t[39];let Me;t[40]===Symbol.for("react.memo_cache_sentinel")?(Me=x.jsxs("a",{href:"/assets/staffBulkUpload_Sample.xlsx",download:"staffBulkUpload_Sample.xlsx",className:"flex items-center gap-1.5 text-xs text-blue-500 hover:text-blue-600 dark:text-blue-400 dark:hover:text-blue-300 transition-colors",children:[x.jsx(efe,{size:14}),"Download Sample Format"]}),t[40]=Me):Me=t[40];let lt;t[41]!==Ye?(lt=x.jsxs("div",{className:"flex items-center justify-between",children:[Ye,Me]}),t[41]=Ye,t[42]=lt):lt=t[42];let Ht;t[43]!==p.headers||t[44]!==p.rows?(Ht=p.headers.length>0&&x.jsx("div",{className:"overflow-auto max-h-72 rounded-lg border border-gray-200 dark:border-gray-700",children:x.jsxs("table",{className:"min-w-full text-xs",children:[x.jsx("thead",{className:"sticky top-0 bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300",children:x.jsx("tr",{children:p.headers.map(uPt)})}),x.jsx("tbody",{children:p.rows.map((nt,ht)=>x.jsx("tr",{className:"even:bg-gray-50 dark:even:bg-gray-800/50 hover:bg-blue-50 dark:hover:bg-blue-900/20 transition-colors",children:p.headers.map((ve,ce)=>x.jsx("td",{className:"px-3 py-1.5 text-gray-700 dark:text-gray-300 whitespace-nowrap border-b border-gray-100 dark:border-gray-700/50",children:nt[ce]},ce))},ht))})]})}),t[43]=p.headers,t[44]=p.rows,t[45]=Ht):Ht=t[45];let Le;t[46]!==L?(Le=L.length>0&&x.jsxs("div",{className:"mt-2",children:[x.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 mb-2",children:"Errors"}),x.jsx("div",{className:"space-y-1",children:L.map(cPt)})]}),t[46]=L,t[47]=Le):Le=t[47];let Nt;t[48]!==lt||t[49]!==Ht||t[50]!==Le?(Nt=x.jsxs("div",{className:"flex flex-col gap-4",children:[lt,Ht,Le]}),t[48]=lt,t[49]=Ht,t[50]=Le,t[51]=Nt):Nt=t[51];let Ct;t[52]!==g||t[53]!==Qe||t[54]!==Nt?(Ct=x.jsx(kh,{modalTitle:"Bulk Upload",isOpen:g,onModalClose:Fe,showCloseButton:!0,showFooter:!0,cancelText:"Cancel",okText:"Upload",onOk:Qe,children:Nt}),t[52]=g,t[53]=Qe,t[54]=Nt,t[55]=Ct):Ct=t[55];let It;return t[56]!==se||t[57]!==te||t[58]!==de||t[59]!==Ne||t[60]!==Ct||t[61]!==K?(It=x.jsxs(x.Fragment,{children:[K,se,oe,te,de,Ne,Ct]}),t[56]=se,t[57]=te,t[58]=de,t[59]=Ne,t[60]=Ct,t[61]=K,t[62]=It):It=t[62],It}function cPt(t,e){return x.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 leading-relaxed flex gap-2 items-start",children:[x.jsx("span",{className:"mt-1.5 shrink-0 w-1.5 h-1.5 rounded-full bg-[var(--secondary-color)]"}),t]},e)}function uPt(t,e){return x.jsx("th",{className:"px-3 py-2 text-left font-medium whitespace-nowrap border-b border-gray-200 dark:border-gray-600",children:t},e)}const xU=["January","February","March","April","May","June","July","August","September","October","November","December"],fPt=["PENDING","ROLLEDBACK"];function oce(t){return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}function dPt(){const[t,e]=b.useState(!1),[n,r]=b.useState(null),[i,a]=b.useState([]),[s,o]=b.useState(new Date),l=(()=>{const h=new Date().getFullYear();return Array.from({length:8},(p,A)=>h-2+A)})(),c=async(h,p)=>{const A=new Date(p,h,1),g=new Date(p,h+1,0);try{e(!0);const w=await JZe({fromDate:oce(A),toDate:oce(g)});w?.statusCode===200?a(w.data??[]):r({title:"Error",description:w?.message??"Failed to load.",variant:"error"})}catch{r({title:"Error",description:"Something went wrong. Please try again.",variant:"error"})}finally{e(!1)}};b.useEffect(()=>{const h=new Date;c(h.getMonth(),h.getFullYear())},[]);const u=h=>{c(VC(h),jC(h))},f=(h,p)=>{const A=i.filter(g=>{if(fPt.includes(g.bookingStatus))return!1;const w=new Date(g.travelDate);return!isNaN(w)&&Noe(w)===Noe(p)&&VC(w)===VC(p)&&jC(w)===jC(p)});return x.jsxs("div",{className:"visa-cal-day",children:[x.jsx("span",{className:"visa-cal-day__num",children:h}),x.jsx("div",{className:"visa-cal-day__events",children:A.map(g=>x.jsxs("div",{className:"visa-cal-event",title:`${g.visaApplicationId} â ${g.visaName}`,onClick:()=>
5624window.open(Zn.VISA_ORDER_DETAILS.replace(":visaApplicationId",g.visaApplicationId),"_blank"),children:[x.jsx("span",{className:"visa-cal-event__id",children:g.visaApplicationId}),x.jsx("span",{className:"visa-cal-event__name",children:g.visaName})]},g.visaApplicationId))})]})};return x.jsxs(x.Fragment,{children:[t&&x.jsx(go,{isLoading:t}),n&&x.jsx(Do,{title:n.title,description:n.description,variant:n.variant,onHide:()=>r(null)}),x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Visa Calendar"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"View your bookings by travel date."}),x.jsx("div",{className:"app-card p-0! overflow-auto visa-calendar",children:x.jsx(bme,{inline:!0,selected:s,onChange:h=>o(h),onMonthChange:u,onYearChange:u,renderDayContents:f,renderCustomHeader:({date:h,changeYear:p,changeMonth:A,decreaseMonth:g,increaseMonth:w,prevMonthButtonDisabled:T,nextMonthButtonDisabled:C})=>x.jsxs("div",{className:"flex items-center justify-between gap-2 px-4 py-3",children:[x.jsx("button",{type:"button",onClick:g,disabled:T,className:"px-2 py-1 text-xs rounded-lg border border-(--surface-border) text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 disabled:opacity-30 transition-colors bg-(--surface-bg)",children:"â¹ Prev"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("select",{value:jC(h),onChange:({target:{value:M}})=>p(Number(M)),className:"text-sm font-semibold bg-(--surface-bg) text-(--body-text) border border-(--surface-border) rounded-lg px-2 py-1 focus:outline-none",children:l.map(M=>x.jsx("option",{value:M,children:M},M))}),x.jsx("select",{value:xU[VC(h)],onChange:({target:{value:M}})=>A(xU.indexOf(M)),className:"text-sm font-semibold bg-(--surface-bg) text-(--body-text) border border-(--surface-border) rounded-lg px-2 py-1 focus:outline-none",children:xU.map(M=>x.jsx("option",{value:M,children:M},M))})]}),x.jsx("button",{type:"button",onClick:w,disabled:C,className:"px-2 py-1 text-xs rounded-lg border border-(--surface-border) text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 disabled:opacity-30 transition-colors bg-(--surface-bg)",children:"Next âº"})]})})})]})}sY("appDark",{text:{primary:"#e5e7eb",secondary:"#9ca3af"},background:{default:"#1f2937"},context:{background:"#374151",text:"#ffffff"},divider:{default:"#374151"},highlightOnHover:{default:"#374151",text:"#e5e7eb"}},"dark");const hPt={headRow:{style:{backgroundColor:"#f3f4f6",borderBottomWidth:"1px",minHeight:"44px"}},headCells:{style:{fontSize:"12px",fontWeight:"600",color:"#6b7280",paddingLeft:"16px",paddingRight:"16px"}},rows:{style:{minHeight:"64px"},highlightOnHoverStyle:{backgroundColor:"#f9fafb",transitionDuration:"0.15s"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px"}}};function pPt(t){const e=Dn.c(19),{data:n,onResume:r,onDelete:i}=t;let a;e[0]!==n.passengerDetailList?(a=n.passengerDetailList??[],e[0]=n.passengerDetailList,e[1]=a):a=e[1];const s=a;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wide mb-2",children:"Passengers"}),e[2]=o):o=e[2];let l;e[3]!==s?(l=s.map(mPt),e[3]=s,e[4]=l):l=e[4];let c;e[5]!==l?(c=x.jsxs("div",{className:"flex-1",children:[o,x.jsx("div",{className:"flex flex-wrap gap-2",children:l})]}),e[5]=l,e[6]=c):c=e[6];let u;e[7]!==n||e[8]!==r?(u=x.jsx(gr,{btnText:"Resume Booking",variant:"secondary",onClick:()=>r(n),className:"text-sm"}),e[7]=n,e[8]=r,e[9]=u):u=e[9];let f;e[10]!==n||e[11]!==i?(f=x.jsx(gr,{btnText:"Delete Booking",variant:"danger",onClick:()=>i(n),className:"text-sm"}),e[10]=n,e[11]=i,e[12]=f):f=e[12];let h;e[13]!==u||e[14]!==f?(h=x.jsxs("div",{className:"shrink-0 flex items-center gap-2",children:[u,f]}),e[13]=u,e[14]=f,e[15]=h):h=e[15];let p;return e[16]!==c||e[17]!==h?(p=x.jsx("div",{className:"px-6 py-4 bg-gray-50 dark:bg-gray-800/50 border-t border-gray-100 dark:border-gray-700",children:x.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4",children:[c,h]})}),e[16]=c,e[17]=h,e[18]=p):p=e[18],p}function mPt(t,e){const n=t.visaDocumentList?.filter(APt)?.length??0,r=t.visaDocumentList?.length??0,i=n===r&&r>0;return x.jsxs("div",{className:"flex items-center gap-2 bg-white dark:bg-gray-700 rounded-lg border border-gray-200 dark:border-gray-600 px-3 py-2",children:[x.jsx("div",{className:"w-7 h-7 rounded-full bg-linear-to-br from-blue-500 to-cyan-400 flex items-center justify-center text-white text-xs font-bold shrink-0",children:(t.firstName?.[0]??"").toUpperCase()}),x.jsxs("div",{children:[x.jsxs("p",{className:"text-xs font-semibold text-gray-800 dark:text-gray-100 leading-tight",children:[t.title," ",t.firstName," ",t.lastName]}),x.jsxs("p",{className:"text-[10px] text-gray-400 dark:text-gray-500 mt-0.5",children:[t.paxType==="ADT"?"Adult":t.paxType==="CHD"?"Child":"Infant"," · ",x.jsxs("span",{className:i?"text-green-500":"text-amber-500",children:[n,"/",r," docs"]})]})]})]},e)}function APt(t){return t.documentUrl}function gPt(){const{isDark:t}=B2(),e=Ss(),[n,r]=b.useState(!1),[i,a]=b.useState(null),[s,o]=b.useState([]),[l,c]=b.useState(!1),[u,f]=b.useState(null),[h,p]=b.useState(!1),A=async()=>{try{r(!0);const M=await iYe();M?.statusCode===200?o(M.data??[]):a({title:"Error",description:M?.message??"Failed to load saved progress.",variant:"error"})}catch{a({title:"Error",description:"Something went wrong. Please try again.",variant:"error"})}finally{r(!1),c(!0)}};b.useEffect(()=>{A()},[]);const g=async M=>{r(!0);const D=await aYe(M.refId);D.statusCode===200?(f(D.data),D.data.priceChanged?p(!0):T(D.data)):a({title:"Error",description:D?.message??"Failed to load saved progress.",variant:"error"}),r(!1)},w=async M=>{r(!0);const D=await sYe(M.refId);D.statusCode===200?(a({title:"Success",description:"Booking deleted successfully.",variant:"success"}),A()):a({title:"Error",description:D?.message??"Failed to delete booking.",variant:"error"}),r(!1)}
5624,T=M=>{console.log(M);const D=new URLSearchParams({traceId:M.visa.traceId,visaBookingKey:M.visa.visaBookingKey,providerId:M.visa.providerId}),k=M.visa.visaFare.paxWisePriceList.filter(B=>B.PaxType==="ADT").reduce((B,G)=>B+G.paxCount,0),I=M.visa.visaFare.paxWisePriceList.filter(B=>B.PaxType==="CHD").reduce((B,G)=>B+G.paxCount,0),L=M.visa.visaFare.paxWisePriceList.filter(B=>B.PaxType==="INF").reduce((B,G)=>B+G.paxCount,0),O=`${Zn.BOOKING_PAGE}?${D}`;e(O,{state:{selectedVisa:M.visa,savedOrder:M,isSavedBooking:!0,searchRequest:{nationality:M.nationalty,travelFromDate:M.travelFromDate,travelerEmail:M.travelerEmail,travelerContact:M.travelerContact,adults:k,children:I,infants:L}}})},C=[{name:"Ref ID",selector:M=>M.refId,sortable:!0,width:"160px",cell:M=>x.jsx("span",{className:"text-blue-500 dark:text-blue-400 font-medium text-xs whitespace-nowrap",children:M.refId})},{name:"Visa Details",selector:M=>M.visa?.visaName,sortable:!0,grow:2,cell:M=>x.jsxs("div",{children:[x.jsx("p",{className:"font-semibold text-gray-800 dark:text-gray-100 text-xs leading-snug",children:M.visa?.visaName}),x.jsxs("p",{className:"text-gray-400 dark:text-gray-500 text-[11px] mt-0.5",children:[M.visa?.destination?.destinationName," · ",M.visa?.entry," Entry"," · ",M.visa?.purpose]}),x.jsxs("p",{className:"text-gray-400 dark:text-gray-500 text-[11px]",children:["Validity ",M.visa?.validity," ",M.visa?.validityType," · ",M.visa?.processingTime]})]})},{name:"Travel Date",selector:M=>M.travelFromDate,sortable:!0,width:"130px",cell:M=>x.jsx("span",{className:"text-gray-600 dark:text-gray-300 text-xs whitespace-nowrap",children:M.travelFromDate?new Date(M.travelFromDate).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"â"})},{name:"Passengers",selector:M=>M.passengerDetailList?.length,sortable:!0,width:"120px",cell:M=>{const D=M.passengerDetailList?.length??0;return x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx(Yw,{size:14,className:"text-gray-400 shrink-0"}),x.jsxs("span",{className:"text-gray-700 dark:text-gray-200 text-xs font-medium",children:[D," Pax"]})]})}},{name:"Amount",selector:M=>M.visa?.visaFare?.totalAmount,sortable:!0,width:"130px",cell:M=>x.jsx("span",{className:"font-semibold text-gray-800 dark:text-gray-100 text-sm whitespace-nowrap",children:xr(M.visa?.visaFare?.totalAmount??0)})},{name:"Saved On",selector:M=>M.createdAt,sortable:!0,width:"140px",cell:M=>x.jsxs("div",{children:[x.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-xs",children:new Date(M.createdAt).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})}),x.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-[11px] mt-0.5",children:new Date(M.createdAt).toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"})})]})}];return x.jsxs(x.Fragment,{children:[n&&x.jsx(go,{isLoading:n}),i&&x.jsx(Do,{title:i.title,description:i.description,variant:i.variant,onHide:()=>a(null)}),x.jsx(kh,{modalTitle:"Price Changed",isOpen:h,onModalClose:()=>p(!1),showCloseButton:!0,showFooter:!0,cancelText:"Cancel",okText:"Proceed",onOk:()=>{p(!1),T(u)},children:x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"The price for this booking has changed since you last saved. Please review the updated price before proceeding."}),x.jsxs("div",{className:"flex items-center justify-around rounded-xl border border-gray-200 dark:border-gray-700 p-4 bg-gray-50 dark:bg-gray-800",children:[x.jsxs("div",{className:"text-center",children:[x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-1",children:"Old Price"}),x.jsx("p",{className:"text-lg font-semibold text-gray-400 dark:text-gray-500 line-through",children:xr(u?.oldPrice??0)})]}),x.jsx("div",{className:"text-2xl text-gray-300 dark:text-gray-600",children:"â"}),x.jsxs("div",{className:"text-center",children:[x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-1",children:"New Price"}),x.jsx("p",{className:"text-lg font-bold text-[var(--secondary-color)]",children:xr(u?.updatedPrice??0)})]})]})]})}),x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Saved Progress"}),x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"Resume incomplete bookings, pick up right where you left."}),x.jsx("div",{className:"app-card p-0!",children:x.jsx(oY,{columns:C,data:s,pagination:!0,paginationPerPage:10,highlightOnHover:!t,responsive:!0,theme:t?"appDark":"default",customStyles:hPt,expandableRows:!0,expandableRowsComponent:({data:M})=>x.jsx(pPt,{data:M,onResume:g,onDelete:w}),noDataComponent:l?x.jsxs("div",{className:"py-16 text-center text-gray-400 dark:text-gray-500",children:[x.jsx(K0e,{size:48,className:"mx-auto mb-3 opacity-40"}),x.jsx("p",{className:"font-medium",children:"No saved progress found."}),x.jsx("p",{className:"text-sm mt-1",children:'Start a booking and click "Save Progress" to resume later.'})]}):x.jsxs("div",{className:"py-10 text-center text-gray-400 dark:text-gray-500",children:[x.jsx(Dy,{size:40,className:"mx-auto mb-2 opacity-40"}),x.jsx("p",{children:"Loadingâ¦"})]})})})]})}sY("appDark",{text:{primary:"#e5e7eb",secondary:"#9ca3af"},background:{default:"#1f2937"},context:{background:"#374151",text:"#ffffff"},divider:{default:"#374151"},highlightOnHover:{default:"#374151",text:"#e5e7eb"}},"dark");const xPt={headRow:{style:{backgroundColor:"#f3f4f6",borderBottomWidth:"1px",minHeight:"44px"}},headCells:{style:{fontSize:"12px",fontWeight:"600",color:"#6b7280",paddingLeft:"16px",paddingRight:"16px"}},rows:{style:{minHeight:"56px"},highlightOnHoverStyle:{backgroundColor:"#f9fafb",transitionDuration:"0.15s"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px"}}},e9=t=>{const e=Dn.c(2),{value:n}=t;let r;return e[0]!==n?(r=n?x.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-400",children:"Yes"}):x.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-500 dark:bg-gray-700 dark:text-gray-400",children:"No"}),e[0]=n,e[1]=r):r=e[1],r},vPt=[{name:"#",width:"60px",selector:t=>t.id,cell:t=>x.jsx("span",{className:"text-xs text-[--muted-text]",children:t.id})},{name:"Type",sortable:!0,selector:t=>t.chargeType,cell:t=>x.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-semibold bg-[var(--secondary-color-40)] text-[var(--secondary-color)] dark:bg-purple-900/40 dark:text-purple-400",children:t.chargeType}),width:"130px"},{name:"Value",sortable:!0,selector:t=>t.value,cell:t=>x.jsx("span",{className:"text-sm font-semibold text-[--body-text]",children:t.value})},{name:"Destination",sortable:!0,selector:t=>t.destCountry,cell:t=>x.jsx("span",{className:"text-xs text-[--body-text] capitalize",children:t.destCountry==="all"?"All Countries":t.destCountry})},{name:"Visa Type",sortable:!0,selector:t=>t.visaType,cell:t=>x.jsx("span",{className:"text-xs text-[--body-text] capitalize",children:t.visaType==="all"?"All Types":t.visaType})},{name:"Per Applicant",center:!0,selector:t=>t.isPerApplicant,cell:t=>x.jsx(e9,{value:t.isPerApplicant})},{name:"Per Txn",center:!0,selector:t=>t.isPerTransaction,cell:t=>x.jsx(e9,{value:t.isPerTransaction})},{name:"On Embassy Fare",center:!0,selector:t=>t.onEmbassyFare,cell:t=>x.jsx(e9,{value:t.onEmbassyFare})},{name:"On Tax",center:!0,selector:t=>t.onTax,cell:t=>x.jsx(e9,{value:t.onTax})},{name:"Created On",sortable:!0,selector:t=>t.createdOn,cell:t=>x.jsx("span",{className:"text-xs text-[--muted-text]",children:$o(t.createdOn,aCe)})}],vU={type:"",value:0,taxValue:0,serviceTax:0,onEmbassyFare:!1,onTax:!1},lce=[{label:"Flat",value:"FLAT"},{label:"Percentage",value:"PERCENTAGE"}],cce=[{label:"Per Applicant",value:"perApplicant"},{label:"Per Transaction",value:"perTransaction"}],uce=[{value:"all",label:"All Visa Types"},{value:"Tourist",label:"Tourist"},{value:"Business",label:"Business"},{value:"Student Visa",label:"Student"},{value:"Transit",label:"Transit"}];function yPt(){const t=Dn.c(145),{isDark:e}=B2(),[n,r]=b.useState(!1),[i,a]=b.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],t[0]=s):s=t[0];const[o,l]=b.useState(s),[c,u]=b.useState(!1);let f;t[1]===Symbol.for("react.memo_cache_sentinel")?(f={open:!1,id:null},t[1]=f):f=t[1];const[h,p]=b.useState(f);let A;t[2]===Symbol.for("react.memo_cache_sentinel")?(A={visaType:"all",applicantType:"",destCountry:"all",supplier:"all",hiddenMarkup:{...vU}},t[2]=A):A=t[2];const[g,w]=b.useState(A);let T;t[3]===Symbol.for("react.memo_cache_sentinel")?(T={visaType:"all",applicantType:"",destCountry:"all",supplier:"all",hiddenMarkup:{...vU}},t[3]=T):T=t[3];const[C,M]=b.useState(T),[D,k]=b.useState(!1);let I;t[4]===Symbol.for("react.memo_cache_sentinel")?(I=async()=>{r(!0);const xe=await JUe();xe?.statusCode===200&&l(xe?.data),r(!1)},t[4]=I):I=t[4];const L=I;let O,B;t[5]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{L()},B=[],t[5]=O,t[6]=B):(O=t[5],B=t[6]),b.useEffect(O,B);let G;t[7]===Symbol.for("react.memo_cache_sentinel")?(G=(xe,we)=>{w(tt=>({...tt,[xe]:{...vU,type:we}}))},t[7]=G):G=t[7];const j=G;let z;t[8]===Symbol.for("react.memo_cache_sentinel")?(z=(xe,we,tt)=>{w(ot=>({...ot,[xe]:{...ot[xe],[we]:tt}}
5624))},t[8]=z):z=t[8];const Q=z;let ee;t[9]!==g?(ee=async()=>{const xe=g.applicantType==="perApplicant",we=g.applicantType==="perTransaction";if(!xe&&!we){a({title:"Validation Error",description:"Please select an Applicant Type (Per Applicant or Per Transaction).",variant:"error"});return}const{hiddenMarkup:tt}=g,ot={visaType:g.visaType,isPerApplicant:xe,isPerTransaction:we,destCountry:g.destCountry,supplier:"all",hiddenMarkup:{type:tt.type,value:Number(tt.value),taxValue:Number(tt.taxValue),serviceTax:Number(tt.serviceTax),onEmbassyFare:tt.onEmbassyFare,onTax:tt.onTax}};r(!0),(await eVe(ot))?.statusCode===200?(a({title:"Success",description:"Markup added successfully.",variant:"success"}),u(!1),L()):a({title:"Error",description:"Failed to add markup.",variant:"error"}),r(!1)},t[9]=g,t[10]=ee):ee=t[10];const Z=ee;let X;t[11]===Symbol.for("react.memo_cache_sentinel")?(X=async xe=>{r(!0),(await tVe(xe))?.statusCode===200?(a({title:"Success",description:"Markup deleted successfully.",variant:"success"}),L()):a({title:"Error",description:"Failed to delete markup.",variant:"error"}),r(!1)},t[11]=X):X=t[11];const K=X;let se;t[12]!==C?(se=async()=>{const{hiddenMarkup:xe}=C,we={visaType:C.visaType,isPerApplicant:C.applicantType==="perApplicant",isPerTransaction:C.applicantType==="perTransaction",destCountry:C.destCountry,supplier:"all",hiddenMarkup:{id:xe.id,type:xe.type,value:Number(xe.value),taxValue:Number(xe.taxValue),serviceTax:Number(xe.serviceTax),onEmbassyFare:xe.onEmbassyFare,onTax:xe.onTax}};r(!0),(await nVe(we))?.statusCode===200?(a({title:"Success",description:"Markup updated successfully.",variant:"success"}),k(!1),L()):a({title:"Error",description:"Failed to update markup.",variant:"error"}),r(!1)},t[12]=C,t[13]=se):se=t[13];const ae=se;let J;t[14]===Symbol.for("react.memo_cache_sentinel")?(J=xe=>{const we={visaType:xe.visaType,applicantType:xe.isPerApplicant?"perApplicant":"perTransaction",destCountry:xe.destCountry,supplier:"all",hiddenMarkup:{id:xe.id,type:xe.chargeType,value:xe.value,taxValue:xe.taxValue,serviceTax:xe.serviceTax,onEmbassyFare:xe.onEmbassyFare,onTax:xe.onTax}};M(we),k(!0)},t[14]=J):J=t[14];const oe=J;let te;t[15]!==n?(te=n&&x.jsx(go,{isLoading:n}),t[15]=n,t[16]=te):te=t[16];let he;t[17]!==i?(he=i&&x.jsx(Do,{title:i.title,description:i.description,variant:i.variant,onHide:()=>a(null)}),t[17]=i,t[18]=he):he=t[18];let me,de;t[19]===Symbol.for("react.memo_cache_sentinel")?(me=x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Agent Markup"}),de=x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"View your Markup structure ."}),t[19]=me,t[20]=de):(me=t[19],de=t[20]);const Ae=o.length!==1?"s":"";let Se;t[21]!==o.length||t[22]!==Ae?(Se=x.jsx("div",{children:x.jsxs("p",{className:"text-sm font-medium text-[--body-text]",children:[o.length," rule",Ae," configured"]})}),t[21]=o.length,t[22]=Ae,t[23]=Se):Se=t[23];let Re;t[24]===Symbol.for("react.memo_cache_sentinel")?(Re=x.jsx(gr,{btnText:"Add Markup",variant:"secondary",onClick:()=>u(!0)}),t[24]=Re):Re=t[24];let Ne;t[25]!==Se?(Ne=x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[Se,Re]}),t[25]=Se,t[26]=Ne):Ne=t[26];const Fe=e?"appDark":"default",Qe=!e;let ge;t[27]===Symbol.for("react.memo_cache_sentinel")?(ge=x.jsx("div",{className:"py-16 text-center text-[--muted-text] text-sm",children:'No markup rules found. Click "Add Markup" to create one.'}),t[27]=ge):ge=t[27];let Ie;t[28]===Symbol.for("react.memo_cache_sentinel")?(Ie=xe=>{const{data:we}=xe;return x.jsxs("div",{className:"p-4 flex gap-2",children:[x.jsx(gr,{btnText:"Edit",variant:"secondary",className:"text-xs",onClick:()=>oe(we)}),x.jsx(gr,{btnText:"Delete",variant:"primary",className:"text-xs",onClick:()=>p({open:!0,id:we.id})})]})},t[28]=Ie):Ie=t[28];let De;t[29]!==o||t[30]!==Fe||t[31]!==Qe?(De=x.jsx(oY,{columns:vPt,data:o,customStyles:xPt,theme:Fe,highlightOnHover:Qe,pointerOnHover:!0,noDataComponent:ge,expandableRows:!0,expandableRowsComponent:Ie}),t[29]=o,t[30]=Fe,t[31]=Qe,t[32]=De):De=t[32];let Xe;t[33]!==Ne||t[34]!==De?(Xe=x.jsxs("div",{className:"app-card",children:[Ne,De]}),t[33]=Ne,t[34]=De,t[35]=Xe):Xe=t[35];let Ye;t[36]===Symbol.for("react.memo_cache_sentinel")?(Ye=()=>p({open:!1,id:null}),t[36]=Ye):Ye=t[36];let Me;t[37]===Symbol.for("react.memo_cache_sentinel")?(Me={height:220,width:420},t[37]=Me):Me=t[37];let lt;t[38]!==h.id?(lt=()=>{K(h.id),p({open:!1,id:null})},t[38]=h.id,t[39]=lt):lt=t[39];let Ht;t[40]===Symbol.for("react.memo_cache_sentinel")?(Ht=x.jsx("p",{className:"text-[--body-text] text-sm",children:"Are you sure you want to delete this markup rule? This action cannot be undone."}),t[40]=Ht):Ht=t[40];let Le;t[41]!==h.open||t[42]!==lt?(Le=x.jsx(kh,{isOpen:h.open,onModalClose:Ye,showCloseButton:!0,modalTitle:"Confirm Delete",showFooter:!0,cancelText:"No",okText:"Yes",styles:Me,onOk:lt,children:Ht}),t[41]=h.open,t[42]=lt,t[43]=Le):Le=t[43];let Nt;t[44]===Symbol.for("react.memo_cache_sentinel")?(Nt=()=>u(!1),t[44]=Nt):Nt=t[44];let Ct;t[45]!==g?(Ct=xe=>w({...g,visaType:xe.value}),t[45]=g,t[46]=Ct):Ct=t[46];let It;t[47]!==g.visaType||t[48]!==Ct?(It=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Visa Type",selectedValue:g.visaType,options:uce,onCh
5624ange:Ct})}),t[47]=g.visaType,t[48]=Ct,t[49]=It):It=t[49];let nt;t[50]!==g?(nt=xe=>w({...g,applicantType:xe.value}),t[50]=g,t[51]=nt):nt=t[51];let ht;t[52]!==g.applicantType||t[53]!==nt?(ht=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Applicant Type",selectedValue:g.applicantType,options:cce,onChange:nt})}),t[52]=g.applicantType,t[53]=nt,t[54]=ht):ht=t[54];let ve;t[55]===Symbol.for("react.memo_cache_sentinel")?(ve=[{label:"All Countries",value:"all"},...Yv],t[55]=ve):ve=t[55];let ce;t[56]!==g?(ce=xe=>w({...g,destCountry:xe.value}),t[56]=g,t[57]=ce):ce=t[57];let je;t[58]!==g.destCountry||t[59]!==ce?(je=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Destination Country",selectedValue:g.destCountry,options:ve,onChange:ce})}),t[58]=g.destCountry,t[59]=ce,t[60]=je):je=t[60];let dt;t[61]!==It||t[62]!==ht||t[63]!==je?(dt=x.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[It,ht,je]}),t[61]=It,t[62]=ht,t[63]=je,t[64]=dt):dt=t[64];let ft;t[65]===Symbol.for("react.memo_cache_sentinel")?(ft=x.jsx("div",{className:"mb-4",children:"Hidden Markup"}),t[65]=ft):ft=t[65];let at;t[66]===Symbol.for("react.memo_cache_sentinel")?(at=xe=>j("hiddenMarkup",xe.value),t[66]=at):at=t[66];let St;t[67]!==g.hiddenMarkup.type?(St=x.jsx("div",{className:"col-span-6",children:x.jsx(Ia,{label:"Type",selectedValue:g.hiddenMarkup.type,options:lce,onChange:at})}),t[67]=g.hiddenMarkup.type,t[68]=St):St=t[68];let ut;t[69]!==g?(ut=g.hiddenMarkup.type==="FLAT"&&x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Value",type:"number",value:g.hiddenMarkup.value,onChange:xe=>w({...g,hiddenMarkup:{...g.hiddenMarkup,value:xe.target.value}})})}),t[69]=g,t[70]=ut):ut=t[70];let gt;t[71]!==St||t[72]!==ut?(gt=x.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[St,ut]}),t[71]=St,t[72]=ut,t[73]=gt):gt=t[73];let Vt;t[74]!==g.hiddenMarkup.onEmbassyFare||t[75]!==g.hiddenMarkup.onTax||t[76]!==g.hiddenMarkup.taxValue||t[77]!==g.hiddenMarkup.type||t[78]!==g.hiddenMarkup.value?(Vt=g.hiddenMarkup.type&&x.jsx("div",{children:g.hiddenMarkup.type==="PERCENTAGE"&&x.jsxs("div",{className:"mt-4",children:[x.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center",children:[x.jsx("div",{className:"col-span-4",children:x.jsx(Sh,{labelText:"On Embassy Fare",checked:g.hiddenMarkup.onEmbassyFare,onChange:xe=>Q("hiddenMarkup","onEmbassyFare",xe.target.checked)})}),x.jsx("div",{className:"col-span-4",children:g.hiddenMarkup.onEmbassyFare&&x.jsx(dr,{label:"Value",type:"number",value:g.hiddenMarkup.value,onChange:xe=>Q("hiddenMarkup","value",xe.target.value)})})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center mt-4",children:[x.jsx("div",{className:"col-span-4",children:x.jsx(Sh,{labelText:"On Tax",checked:g.hiddenMarkup.onTax,onChange:xe=>Q("hiddenMarkup","onTax",xe.target.checked)})}),x.jsx("div",{className:"col-span-4",children:g.hiddenMarkup.onTax&&x.jsx(dr,{label:"Value",type:"number",value:g.hiddenMarkup.taxValue,onChange:xe=>Q("hiddenMarkup","taxValue",xe.target.value)})})]})]})}),t[74]=g.hiddenMarkup.onEmbassyFare,t[75]=g.hiddenMarkup.onTax,t[76]=g.hiddenMarkup.taxValue,t[77]=g.hiddenMarkup.type,t[78]=g.hiddenMarkup.value,t[79]=Vt):Vt=t[79];let Zt;t[80]!==gt||t[81]!==Vt?(Zt=x.jsxs("div",{className:"app-card mt-4",children:[ft,gt,Vt]}),t[80]=gt,t[81]=Vt,t[82]=Zt):Zt=t[82];let Wt;t[83]!==Z?(Wt=x.jsx("div",{className:"flex justify-end mt-4 gap-2",children:x.jsx(gr,{btnText:"Save",onClick:()=>Z(),variant:"secondary"})}),t[83]=Z,t[84]=Wt):Wt=t[84];let qt;t[85]!==dt||t[86]!==Zt||t[87]!==Wt?(qt=x.jsxs("div",{className:"p-2",children:[dt,Zt,Wt]}),t[85]=dt,t[86]=Zt,t[87]=Wt,t[88]=qt):qt=t[88];let We;t[89]!==c||t[90]!==qt?(We=x.jsx(qc,{isOpen:c,onHideSidebar:Nt,sidebarTitle:"Add Markup",size:"md",className:"w-full",children:qt}),t[89]=c,t[90]=qt,t[91]=We):We=t[91];let yn;t[92]===Symbol.for("react.memo_cache_sentinel")?(yn=()=>k(!1),t[92]=yn):yn=t[92];let vn;t[93]!==C?(vn=xe=>M({...C,visaType:xe.value}),t[93]=C,t[94]=vn):vn=t[94];let Ge;t[95]!==C.visaType||t[96]!==vn?(Ge=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Visa Type",selectedValue:C.visaType,options:uce,onCh
5624ange:vn})}),t[95]=C.visaType,t[96]=vn,t[97]=Ge):Ge=t[97];let kt;t[98]!==C?(kt=xe=>M({...C,applicantType:xe.value}),t[98]=C,t[99]=kt):kt=t[99];let _t;t[100]!==C.applicantType||t[101]!==kt?(_t=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Applicant Type",selectedValue:C.applicantType,options:cce,onChange:kt})}),t[100]=C.applicantType,t[101]=kt,t[102]=_t):_t=t[102];let Dt;t[103]===Symbol.for("react.memo_cache_sentinel")?(Dt=[{label:"All Countries",value:"all"},...Yv],t[103]=Dt):Dt=t[103];let jt;t[104]!==C?(jt=xe=>M({...C,destCountry:xe.value}),t[104]=C,t[105]=jt):jt=t[105];let Lt;t[106]!==C.destCountry||t[107]!==jt?(Lt=x.jsx("div",{className:"col-span-4",children:x.jsx(Ia,{label:"Destination Country",selectedValue:C.destCountry,options:Dt,onChange:jt})}),t[106]=C.destCountry,t[107]=jt,t[108]=Lt):Lt=t[108];let Bt;t[109]!==Ge||t[110]!==_t||t[111]!==Lt?(Bt=x.jsxs("div",{className:"grid grid-cols-12 gap-2",children:[Ge,_t,Lt]}),t[109]=Ge,t[110]=_t,t[111]=Lt,t[112]=Bt):Bt=t[112];let Gt;t[113]===Symbol.for("react.memo_cache_sentinel")?(Gt=x.jsx("div",{className:"mb-4",children:"Hidden Markup"}),t[113]=Gt):Gt=t[113];let hn;t[114]!==C?(hn=xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,type:xe.value}}),t[114]=C,t[115]=hn):hn=t[115];let Ve;t[116]!==C.hiddenMarkup.type||t[117]!==hn?(Ve=x.jsx("div",{className:"col-span-6",children:x.jsx(Ia,{label:"Type",selectedValue:C.hiddenMarkup.type,options:lce,onChange:hn})}),t[116]=C.hiddenMarkup.type,t[117]=hn,t[118]=Ve):Ve=t[118];let pt;t[119]!==C?(pt=C.hiddenMarkup.type==="FLAT"&&x.jsx("div",{className:"col-span-6",children:x.jsx(dr,{label:"Value",type:"number",value:C.hiddenMarkup.value,onChange:xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,value:xe.target.value}})})}),t[119]=C,t[120]=pt):pt=t[120];let Tt;t[121]!==Ve||t[122]!==pt?(Tt=x.jsxs("div",{className:"grid grid-cols-12 gap-4",children:[Ve,pt]}),t[121]=Ve,t[122]=pt,t[123]=Tt):Tt=t[123];let xt;t[124]!==C?(xt=C.hiddenMarkup.type&&x.jsx("div",{children:C.hiddenMarkup.type==="PERCENTAGE"&&x.jsxs("div",{className:"mt-4",children:[x.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center",children:[x.jsx("div",{className:"col-span-4",children:x.jsx(Sh,{labelText:"On Embassy Fare",checked:C.hiddenMarkup.onEmbassyFare,onChange:xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,onEmbassyFare:xe.target.checked}})})}),x.jsx("div",{className:"col-span-4",children:C.hiddenMarkup.onEmbassyFare&&x.jsx(dr,{label:"Value",type:"number",value:C.hiddenMarkup.value,onChange:xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,value:xe.target.value}})})})]}),x.jsxs("div",{className:"grid grid-cols-12 gap-4 items-center mt-4",children:[x.jsx("div",{className:"col-span-4",children:x.jsx(Sh,{labelText:"On Tax",checked:C.hiddenMarkup.onTax,onChange:xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,onTax:xe.target.checked}})})}),x.jsx("div",{className:"col-span-4",children:C.hiddenMarkup.onTax&&x.jsx(dr,{label:"Value",type:"number",value:C.hiddenMarkup.taxValue,onChange:xe=>M({...C,hiddenMarkup:{...C.hiddenMarkup,taxValue:xe.target.value}})})})]})]})}),t[124]=C,t[125]=xt):xt=t[125];let v;t[126]!==Tt||t[127]!==xt?(v=x.jsxs("div",{className:"app-card mt-4",children:[Gt,Tt,xt]}),t[126]=Tt,t[127]=xt,t[128]=v):v=t[128];let W;t[129]!==ae?(W=x.jsx("div",{className:"flex justify-end mt-4 gap-2",children:x.jsx(gr,{btnText:"Update",onClick:()=>ae(),variant:"secondary"})}),t[129]=ae,t[130]=W):W=t[130];let Te;t[131]!==Bt||t[132]!==v||t[133]!==W?(Te=x.jsxs("div",{className:"p-2",children:[Bt,v,W]}),t[131]=Bt,t[132]=v,t[133]=W,t[134]=Te):Te=t[134];let _e;t[135]!==D||t[136]!==Te?(_e=x.jsx(qc,{isOpen:D,onHideSidebar:yn,sidebarTitle:"Edit Markup",size:"md",className:"w-full",children:Te}),t[135]=D,t[136]=Te,t[137]=_e):_e=t[137];let be;return t[138]!==te||t[139]!==he||t[140]!==Xe||t[141]!==Le||t[142]!==We||t[143]!==_e?(be=x.jsxs(x.Fragment,{children:[te,he,me,de,Xe,Le,We,_e]}),t[138]=te,t[139]=he,t[140]=Xe,t[141]=Le,t[142]=We,t[143]=_e,t[144]=be):be=t[144],be}function _Pt(){const t=Dn.c(34),[e,n]=b.useState(!1),[r,i]=b.useState(null);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=new Date,t[0]=a):a=t[0];const[s,o]=b.useState(a);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=new Date,t[1]=l):l=t[1];const[c,u]=b.useState(l),[f,h]=b.useState(void 0);let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=[{label:"Full Sale Report",value:"FULL_SALE"},{label:"Pax Wise Sale",value:"PAX_WISE_SALE"}],t[2]=p):p=t[2];const A=p;let g;t[3]!==s||t[4]!==f||t[5]!==c?(g=async()=>
5624{if(!s||!c||!f){i({title:"Error",description:"Please select all the fields",variant:"error"});return}const ee={fromDate:$o(s,Ou),toDate:$o(c,Ou),reportType:f};n(!0);const Z=await iVe(ee);if(Z){const X=await Z.blob(),K=window.URL.createObjectURL(X),se=document.createElement("a");se.href=K,se.download=f+"_"+Date.now()+".xlsx",document.body.appendChild(se),se.click(),se.remove(),window.URL.revokeObjectURL(K)}n(!1)},t[3]=s,t[4]=f,t[5]=c,t[6]=g):g=t[6];const w=g;let T;t[7]!==e?(T=e&&x.jsx(go,{isLoading:e}),t[7]=e,t[8]=T):T=t[8];let C;t[9]!==r?(C=r&&x.jsx(Do,{title:r.title,description:r.description,variant:r.variant,onHide:()=>i(null)}),t[9]=r,t[10]=C):C=t[10];let M,D;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Reports"}),D=x.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 mb-4",children:"Download your complete transactions in Excel format."}),t[11]=M,t[12]=D):(M=t[11],D=t[12]);let k;t[13]===Symbol.for("react.memo_cache_sentinel")?(k=ee=>h(ee.value),t[13]=k):k=t[13];let I;t[14]!==f?(I=x.jsx("div",{className:"col-span-12 md:col-span-3",children:x.jsx(Ia,{label:"Report Type",selectedValue:f,onSelect:k,options:A})}),t[14]=f,t[15]=I):I=t[15];let L;t[16]===Symbol.for("react.memo_cache_sentinel")?(L=ee=>o(ee),t[16]=L):L=t[16];let O;t[17]!==s?(O=x.jsx("div",{className:"col-span-12 md:col-span-3",children:x.jsx(fd,{label:"From Date",placeholder:"Select From Date",selectedDate:s,onChange:L,dateFormat:"dd MMM, yyyy"})}),t[17]=s,t[18]=O):O=t[18];let B;t[19]===Symbol.for("react.memo_cache_sentinel")?(B=ee=>u(ee),t[19]=B):B=t[19];let G;t[20]!==s||t[21]!==c?(G=x.jsx("div",{className:"col-span-12 md:col-span-3",children:x.jsx(fd,{label:"To Date",placeholder:"Select To Date",selectedDate:c,onChange:B,minDate:s,dateFormat:"dd MMM, yyyy"})}),t[20]=s,t[21]=c,t[22]=G):G=t[22];let j;t[23]!==w?(j=x.jsx("div",{className:"col-span-12 md:col-span-2",children:x.jsx(gr,{btnText:"Download",variant:"secondary",onClick:()=>w(),className:"mb-1"})}),t[23]=w,t[24]=j):j=t[24];let z;t[25]!==O||t[26]!==G||t[27]!==j||t[28]!==I?(z=x.jsx("div",{className:"app-card",children:x.jsxs("div",{className:"grid grid-cols-12 items-end gap-4",children:[I,O,G,j]})}),t[25]=O,t[26]=G,t[27]=j,t[28]=I,t[29]=z):z=t[29];let Q;return t[30]!==z||t[31]!==T||t[32]!==C?(Q=x.jsxs(x.Fragment,{children:[T,C,M,D,z]}),t[30]=z,t[31]=T,t[32]=C,t[33]=Q):Q=t[33],Q}const t9="[email protected]",bPt=[{id:"user-profile",label:"User Profile",icon:tz,component:Mwt},{id:"my-wallet",label:"My Wallet",icon:R3,component:X8e},{id:"my-bookings",label:"My Bookings",icon:$S,component:nTt},{id:"reports",label:"Reports",icon:mfe,component:_Pt},{id:"ledger",label:"Ledger",icon:$S,component:cwt},{id:"agent-markup",label:"Agent Markup",icon:J0e,component:yPt,hideForRoles:[Fm.AGENT_STAFF]},{id:"agent-staff",label:"My Staff",icon:Tfe,component:lPt,hideForRoles:[Fm.AGENT_STAFF]},{id:"visa-calender",label:"Visa Calendar",icon:QD,component:dPt},{id:"save-progress",label:"Resume Booking",icon:XG,component:gPt}];function fce(t){const e=Dn.c(19),{navItems:n,activeId:r,onSelect:i,isCollapsed:a}=t;let s;e[0]!==a?(s=!a&&x.jsx("div",{className:"text-xs font-semibold text-gray-400 tracking-widest mb-4 px-1",children:"SETTINGS"}),e[0]=a,e[1]=s):s=e[1];let o;if(e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==i){let f;e[7]!==r||e[8]!==a||e[9]!==i?(f=h=>{const p=r===h.id;return x.jsxs("button",{title:a?h.label:void 0,onClick:()=>i(h.id),className:`w-full flex items-center rounded-xl text-sm font-medium transition-colors ${a?"justify-center px-2 py-2.5":"gap-3 px-3 py-2.5 text-left"} ${p?"bg-(--secondary-color) dark:bg-blue-900/20 text-white dark:text-blue-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[x.jsx(h.icon,{size:20,className:p?"text-white":"text-gray-400 dark:text-gray-500"}),!a&&h.label]},h.id)},e[7]=r,e[8]=a,e[9]=i,e[10]=f):f=e[10],o=n.map(f),e[2]=r,e[3]=a,e[4]=n,e[5]=i,e[6]=o}else o=e[6];let l;e[11]!==o?(l=x.jsx("nav",{className:"flex-1 space-y-0.5",children:o}),e[11]=o,e[12]=l):l=e[12];let c;e[13]!==a?(c=a?x.jsx("a",{href:`mailto:${t9}`,title:t9,className:"flex justify-center mt-6 text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",children:x.jsx(QU,{size:20})}):x.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-xl p-3 mt-6",children:[x.jsx("div",{className:"text-xs font-semibold text-gray-400 tracking-widest mb-2",children:"NEED HELP?"}),x.jsxs("a",{href:`mailto:${t9}`,className:"flex items-center gap-2 text-gray-600 dark:text-gray-300 hover:text-gray-800 dark:hover:text-white text-sm transition-colors break-all",children:[x.jsx(QU,{size:20,className:"shrink-0"}),t9]})]}),e[13]=a,e[14]=c):c=e[14];let u;return e[15]!==s||e[16]!==l||e[17]!==c?(u=x.jsxs(x.Fragment,{children:[s,l,c]}),e[15]=s,e[16]=l,e[17]=c,e[18]=u):u=e[18],u}function wPt(){const t=Dn.c(47),[e]=AT(),[n,r]=b.useState("my-wallet"),[i,a]=b.useState(!1),[s,o]=b.useState(!1);let l,c;if(t[0]!==n){const J=FA();l=bPt.filter(oe=>!oe.hideForRoles?.includes(J)),c=l.find(oe=>oe.id===n),t[0]=n,t[1]=l,t[2]=c}else l=t[1],c=t[2];const u=c,f=u?.component??X8e,h=u?.label??"";let p;t[3]!==l||t[4]!==e?(p=()=>{const J=e.get("type");if(J){const oe=l.find(te=>te.id===J);oe&&r(oe.id)}},t[3]=l,t[4]=e,t[5]=p):p=t[5];let A;t[6]!==e?(A=[e],t[6]=e,t[7]=A):A=t[7],b.useEffect(p,A);let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=J=>{r(J),a(!1)},t[8]=g):g=t[8];const w=g;let T;t[9]===Symbol.for("react.memo_cache_sentinel")?(T=()=>a(!0),t[9]=T):T=t[9];let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx("button",{onClick:T,className:"p-2 rounded-xl bg-white dark:bg-gray-800 shadow-sm text-gray-600 dark:text-gray-300",children:x.jsx(eP,{size:22})}),t[10]=C):C=t[10];let M;t[11]!==h?(M=x.jsxs("div",{className:"flex items-center gap-3 mb-4 lg:hidden",children:[C,x.jsx("span",{className:"text-base font-semibold text-gray-700 dark:text-white",children:h})]}),t[11]=h,t[12]=M):M=t[12];const D=`hidden lg:flex shrink-0 bg-white dark:bg-gray-800 rounded-2xl shadow-sm p-4 flex-col min-h-[600px] transition-all duration-300 ${s?"w-16":"w-64"}`;let k;t[13]===Symbol.for("react.memo_cache_sentinel")?(k=()=>o(SPt),t[13]=k):k=t[13];
5624const I=`self-end mb-3 p-1.5 rounded-lg text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors ${s?"self-center":""}`,L=s?"Expand sidebar":"Collapse sidebar";let O;t[14]!==s?(O=s?x.jsx(ZG,{size:16}):x.jsx(Z0e,{size:16}),t[14]=s,t[15]=O):O=t[15];let B;t[16]!==L||t[17]!==O||t[18]!==I?(B=x.jsx("button",{onClick:k,className:I,title:L,children:O}),t[16]=L,t[17]=O,t[18]=I,t[19]=B):B=t[19];let G;t[20]!==n||t[21]!==l||t[22]!==s?(G=x.jsx(fce,{navItems:l,activeId:n,onSelect:w,isCollapsed:s}),t[20]=n,t[21]=l,t[22]=s,t[23]=G):G=t[23];let j;t[24]!==B||t[25]!==G||t[26]!==D?(j=x.jsxs("aside",{className:D,children:[B,G]}),t[24]=B,t[25]=G,t[26]=D,t[27]=j):j=t[27];let z;t[28]===Symbol.for("react.memo_cache_sentinel")?(z=()=>o(!0),t[28]=z):z=t[28];let Q;t[29]!==f?(Q=x.jsx("main",{className:"flex-1 min-w-0",children:x.jsx(f,{onCollapseSidebar:z})}),t[29]=f,t[30]=Q):Q=t[30];let ee;t[31]!==j||t[32]!==Q?(ee=x.jsxs("div",{className:"flex gap-6 items-start",children:[j,Q]}),t[31]=j,t[32]=Q,t[33]=ee):ee=t[33];let Z;t[34]!==ee||t[35]!==M?(Z=x.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[M,ee]}),t[34]=ee,t[35]=M,t[36]=Z):Z=t[36];let X;t[37]===Symbol.for("react.memo_cache_sentinel")?(X=()=>a(!1),t[37]=X):X=t[37];let K;t[38]!==n||t[39]!==l?(K=x.jsx(fce,{navItems:l,activeId:n,onSelect:w}),t[38]=n,t[39]=l,t[40]=K):K=t[40];let se;t[41]!==i||t[42]!==K?(se=x.jsx(qc,{isOpen:i,onHideSidebar:X,sidebarTitle:"Settings",children:K}),t[41]=i,t[42]=K,t[43]=se):se=t[43];let ae;return t[44]!==Z||t[45]!==se?(ae=x.jsxs("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-950 p-4 lg:p-8",children:[Z,se]}),t[44]=Z,t[45]=se,t[46]=ae):ae=t[46],ae}function SPt(t){return!t}const OY={ADT:"Adult",CHD:"Child",INF:"Infant"},TPt={COMPLETED:"bg-green-100 text-green-700",APPROVED:"bg-teal-100 text-teal-700",SUBMITTED:"bg-teal-100 text-teal-700",CREATED:"bg-blue-100 text-blue-700",REJECTED:"bg-red-100 text-red-700",DOCUMENT_PENDING:"bg-amber-100 text-amber-700"},EPt={COMPLETED:"Completed",APPROVED:"Approved",SUBMITTED:"Sumbitted",CREATED:"Created",REJECTED:"Rejected",DOCUMENT_PENDING:"Documents Pending"};function f6e(t){const e=Dn.c(5),{status:n}=t,r=`text-xs font-semibold px-2.5 py-0.5 rounded-full ${TPt[n]??"bg-gray-100 text-gray-600"}`;let i;e[0]!==n?(i=EPt[n]??n?.replace(/_/g," "),e[0]=n,e[1]=i):i=e[1];let a;return e[2]!==r||e[3]!==i?(a=x.jsx("span",{className:r,children:i}),e[2]=r,e[3]=i,e[4]=a):a=e[4],a}function yU(t){const e=Dn.c(7),{label:n,value:r}=t;let i;e[0]!==n?(i=x.jsx("span",{className:"text-xs font-bold",children:n}),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==r?(a=x.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white",children:r}),e[2]=r,e[3]=a):a=e[3];let s;return e[4]!==i||e[5]!==a?(s=x.jsxs("div",{className:"flex justify-between items-center py-2 border-gray-100 dark:border-gray-700 last:border-0",children:[i,a]}),e[4]=i,e[5]=a,e[6]=s):s=e[6],s}function MPt(){const t=Dn.c(98),{visaApplicationId:e}=pT();Ss();const[n,r]=b.useState(null);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=uy(S0),t[0]=i):i=t[0];const a=i;let s,o;if(t[1]!==e?(s=()=>{(async()=>{const nt=await Xv(e);nt.statusCode===200&&r(nt.data)})()},o=[e],t[1]=e,t[2]=s,t[3]=o):(s=t[2],o=t[3]),b.useEffect(s,o),!n){let It;return t[4]===Symbol.for("react.memo_cache_sentinel")?(It=x.jsx("div",{className:"text-center py-20 text-gray-400",children:"Invoice not found."}),t[4]=It):It=t[4],It}const{application:l,applicants:c,pricing:u}=n;let f;t[5]!==l.createdOn?(f=new Date(l.createdOn).toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"}),t[5]=l.createdOn,t[6]=f):f=t[6];const h=f;let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx("div",{className:"max-w-4xl mx-auto mb-5 flex items-center justify-between print:hidden",children:x.jsxs("button",{onClick:PPt,className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-xl hover:bg-blue-700 transition-colors shadow-sm",children:[x.jsx(JG,{size:18}),"Print / Download"]})}),t[7]=p):p=t[7];let A;t[8]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsxs("div",{children:[x.jsx("img",{src:"/images/app_logo_black.png",alt:"IVS Logo",className:"object-contain"}),x.jsx("div",{className:"text-sm mt-0.5",children:"Visa Concierge Service"})]}),t[8]=A):A=t[8];let g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("div",{className:"px-8 py-7",children:x.jsxs("div",{className:"flex justify-between items-center",children:[A,x.jsx("div",{className:"text-right",children:x.jsx("div",{className:"text-4xl font-bold tracking-widest opacity-90",children:"INVOICE"})})]})}),t[9]=g):g=t[9];let w;t[10]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-2",children:"BILLED TO"}),t[10]=w):w=t[10];let T;t[11]===Symbol.for("react.memo_cache_sentinel")?(T=x.jsx("p",{className:"font-bold text-gray-800 dark:text-white text-lg leading-tight",children:a?.agencyName??a?.name??"Agent"}),t[11]=T):T=t[11];const C=a?.agentId??l.agentId;let M;t[12]!==C?(M=x.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:["Agent ID: ",x.jsx("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:C})]}),t[12]=C,t[13]=M):M=t[13];let D;t[14]===Symbol.for("react.memo_cache_sentinel")?(D=a?.email&&x.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:a.email}),t[14]=D):D=t[14];let k;t[15]!==M?(k=x.jsxs("div",{children:[w,T,M,D]}),t[15]=M,t[16]=k):k=t[16];let I;t[17]!==l.visaApplicationId?(I=x.jsx(yU,{label:"Invoice No",value:l.visaApplicationId}),t[17]=l.visaApplicationId,t[18]=I):I=t[18];let L;t[19]!==h?(L=x.jsx(yU,{label:"Date",value:h}),t[19]=h,t[20]=L):L=t[20];let O;t[21]!==l.paymentType?(O=x.jsx(yU,{label:"Payment Type",value:l.paymentType}),t[21]=l.paymentType,t[22]=O):O=t[22];let B;t[23]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx("span",{className:"text-xs font-bold",children:"Status"}),t[23]=B):B=t[23];let G;t[24]!==l.bookingStatus?(G=x.jsxs("div",{className:"flex justify-between items-center pt-2",children:[B,x.jsx(f6e,{status:l.bookingStatus})]}),t[24]=l.bookingStatus,t[25]=G):G=t[25];let j;t[26]!==I||t[27]!==L||t[28]!==O||t[29]!==G?(j=x.jsxs("div",{className:"dark:bg-gray-700/40 rounded-xl p-4",children:[I,L,O,G]}),t[26]=I,t[27]=L,t[28]=O,t[29]=G,t[30]=j):j=t[30];let z;t[31]!==k||t[32]!==j?(z=x.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[k,j]}),t[31]=k,t[32]=j,t[33]=z):z=t[33];let Q;t[34]===Symbol.for("react.memo_cache_sentinel")?(Q=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"VISA DETAILS"}),t[34]=Q):Q=t[34];let ee;t[35]!==l.countryTo?(ee={label:"Destination",value:l.countryTo},t[35]=l.countryTo,t[36]=ee):ee=t[36];let Z;t[37]!==l.visaType?(Z=l.visaType?.toUpperCase(),t[37]=l.visaType,t[38]=Z):Z=t[38];let X;t[39]!==Z?(X={label:"Visa Type",value:Z},t[39]=Z,t[40]=X):X=t[40];let K;t[41]!==l.entry?(K={label:"Entry",value:l.entry},t[41]=l.entry,t[42]=K):K=t[42];const se=`${l.validity===0?"":l.validity}
5624 ${l.validityType==="ASPEREMBASY"?"As Per Embassy":l.validityType}`;let ae;t[43]!==se?(ae={label:"Validity",value:se},t[43]=se,t[44]=ae):ae=t[44];const J=`${l.duration===0?"":l.duration} ${l.durationType==="ASPEREMBASY"?"As Per Embassy":l.durationType}`;let oe;t[45]!==J?(oe={label:"Stay Duration",value:J},t[45]=J,t[46]=oe):oe=t[46];let te;t[47]!==l.totalAdults?(te={label:"Adults",value:l.totalAdults},t[47]=l.totalAdults,t[48]=te):te=t[48];let he;t[49]!==l.totalChild?(he={label:"Children",value:l.totalChild},t[49]=l.totalChild,t[50]=he):he=t[50];let me;t[51]!==l.totalInfants?(me={label:"Infants",value:l.totalInfants},t[51]=l.totalInfants,t[52]=me):me=t[52];let de;t[53]!==ee||t[54]!==X||t[55]!==K||t[56]!==ae||t[57]!==oe||t[58]!==te||t[59]!==he||t[60]!==me?(de=x.jsxs("div",{children:[Q,x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-px bg-gray-100 dark:bg-gray-700 rounded-xl overflow-hidden border border-gray-300 dark:border-gray-600",children:[ee,X,K,ae,oe,te,he,me].map(DPt)})]}),t[53]=ee,t[54]=X,t[55]=K,t[56]=ae,t[57]=oe,t[58]=te,t[59]=he,t[60]=me,t[61]=de):de=t[61];let Ae;t[62]!==c.length?(Ae=x.jsxs("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:["APPLICANTS (",c.length,")"]}),t[62]=c.length,t[63]=Ae):Ae=t[63];let Se;t[64]===Symbol.for("react.memo_cache_sentinel")?(Se=x.jsx("thead",{className:"bg-gray-50 dark:bg-gray-700/60",children:x.jsxs("tr",{className:"text-xs text-gray-400 font-semibold tracking-wide",children:[x.jsx("th",{className:"text-left px-4 py-3",children:"#"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Ref No"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Name"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Pax Type"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Nationality"}),x.jsx("th",{className:"text-center px-4 py-3",children:"Docs"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Status"})]})}),t[64]=Se):Se=t[64];let Re;t[65]!==c?(Re=c.map(RPt),t[65]=c,t[66]=Re):Re=t[66];let Ne;t[67]!==Re?(Ne=x.jsx("div",{className:"rounded-xl border border-gray-300 dark:border-gray-600 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[Se,x.jsx("tbody",{children:Re})]})}),t[67]=Re,t[68]=Ne):Ne=t[68];let Fe;t[69]!==Ae||t[70]!==Ne?(Fe=x.jsxs("div",{children:[Ae,Ne]}),t[69]=Ae,t[70]=Ne,t[71]=Fe):Fe=t[71];let Qe;t[72]===Symbol.for("react.memo_cache_sentinel")?(Qe=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"PRICING BREAKDOWN"}),t[72]=Qe):Qe=t[72];let ge;t[73]===Symbol.for("react.memo_cache_sentinel")?(ge=x.jsx("thead",{className:"bg-gray-50 dark:bg-gray-700/60",children:x.jsxs("tr",{className:"text-xs text-gray-400 font-semibold tracking-wide",children:[x.jsx("th",{className:"text-left px-4 py-3",children:"Pax Type"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Government Fees"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Tax"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Market Place Fee"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Tax on Market Place Fee"}),x.jsx("th",{className:"text-right px-4 py-3",children:"Subtotal"})]})}),t[73]=ge):ge=t[73];let Ie;t[74]!==u?(Ie=u.map(NPt),t[74]=u,t[75]=Ie):Ie=t[75];let De;t[76]!==Ie?(De=x.jsxs("div",{children:[Qe,x.jsx("div",{className:"rounded-xl border border-gray-300 dark:border-gray-600 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[ge,x.jsx("tbody",{children:Ie})]})})]}),t[76]=Ie,t[77]=De):De=t[77];let Xe;t[78]!==u?(Xe=u.map(CPt),t[78]=u,t[79]=Xe):Xe=t[79];let Ye;t[80]===Symbol.for("react.memo_cache_sentinel")?(Ye=x.jsx("span",{className:"font-bold text-gray-800 dark:text-white text-base",children:"Grand Total"}),t[80]=Ye):Ye=t[80];let Me;t[81]!==l.totalAmount?(Me=xr(l.totalAmount),t[81]=l.totalAmount,t[82]=Me):Me=t[82];let lt;t[83]!==Me?(lt=x.jsxs("div",{className:"border-t border-gray-200 dark:border-gray-600 pt-3 mt-1 flex justify-between items-center",children:[Ye,x.jsx("span",{className:"font-extrabold text-2xl text-blue-600 dark:text-blue-400",children:Me})]}),t[83]=Me,t[84]=lt):lt=t[84];let Ht;t[85]!==l.currency?(Ht=x.jsxs("p",{className:"text-xs text-gray-400 text-right",children:[l.currency," · All taxes included"]}),t[85]=l.currency,t[86]=Ht):Ht=t[86];let Le;t[87]!==Xe||t[88]!==lt||t[89]!==Ht?(Le=x.jsx("div",{className:"flex justify-end",children:x.jsxs("div",{className:"w-80 bg-gray-50 dark:bg-gray-700/40 rounded-xl p-5 space-y-2",children:[Xe,lt,Ht]})}),t[87]=Xe,t[88]=lt,t[89]=Ht,t[90]=Le):Le=t[90];let Nt;t[91]===Symbol.for("react.memo_cache_sentinel")?(Nt=x.jsxs("div",{className:"border-t border-gray-300 dark:border-gray-600 pt-6 text-center space-y-1",children:[x.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Thank y
5624ou for choosing IVS Visa Concierge Service."}),x.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:"This is a system-generated invoice and does not require a signature."})]}),t[91]=Nt):Nt=t[91];let Ct;return t[92]!==z||t[93]!==de||t[94]!==Fe||t[95]!==De||t[96]!==Le?(Ct=x.jsxs("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-950 p-4 md:p-8 print:bg-white print:p-0",children:[p,x.jsxs("div",{className:"max-w-4xl mx-auto bg-white dark:bg-gray-800 rounded-2xl shadow-xl overflow-hidden border-2 border-gray-300 dark:border-gray-600 print:shadow-none print:rounded-none",children:[g,x.jsxs("div",{className:"p-8 space-y-7",children:[z,de,Fe,De,Le,Nt]})]})]}),t[92]=z,t[93]=de,t[94]=Fe,t[95]=De,t[96]=Le,t[97]=Ct):Ct=t[97],Ct}function CPt(t,e){return x.jsxs("div",{className:"flex justify-between text-sm text-gray-500 dark:text-gray-400",children:[x.jsxs("span",{children:[OY[t.paxType]??t.paxType," Ã ",t.paxCount]}),x.jsx("span",{children:xr(t.paxTotalAmount)})]},e)}function NPt(t,e){const n=Number(t.platformFee)+Number(t.serviceFees)+Number(t.tax)+Number(t.hiddenMarkup);return x.jsxs("tr",{className:"border-t border-gray-300 dark:border-gray-600",children:[x.jsxs("td",{className:"px-4 py-4 font-semibold text-gray-800 dark:text-white",children:[OY[t.paxType]??t.paxType," Ã ",t.paxCount]}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600 dark:text-gray-300",children:xr(t.embassyFees)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600 dark:text-gray-300",children:xr(n)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600 dark:text-gray-300",children:xr(t.marketplaceFees)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600 dark:text-gray-300",children:xr(t.taxOnHandlingCharge)}),x.jsx("td",{className:"px-4 py-4 text-right font-semibold text-gray-800 dark:text-white",children:xr(t.paxTotalAmount)})]},e)}function RPt(t,e){return x.jsxs("tr",{className:"border-t border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700/30 transition-colors",children:[x.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:e+1}),x.jsx("td",{className:"px-4 py-3 font-mono font-medium text-gray-800 dark:text-white text-xs",children:t.applicantRefNo}),x.jsx("td",{className:"px-4 py-3",children:x.jsx("p",{className:"font-medium text-gray-800 dark:text-white text-sm",children:[t.title,t.firstName,t.lastName].filter(Boolean).join(" ")})}),x.jsx("td",{className:"px-4 py-3 text-gray-600 dark:text-gray-300",children:OY[t.paxType]??t.paxType}),x.jsx("td",{className:"px-4 py-3 text-gray-600 dark:text-gray-300",children:t.nationality}),x.jsx("td",{className:"px-4 py-3 text-center",children:x.jsx("span",{className:"text-xs bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300 px-2 py-0.5 rounded-full font-medium",children:t.documents.length})}),x.jsx("td",{className:"px-4 py-3",children:x.jsx(f6e,{status:t.applicantStatus})})]},t.applicantId)}function DPt(t){const{label:e,value:n}=t;return x.jsxs("div",{className:"bg-white dark:bg-gray-800 px-4 py-3",children:[x.jsx("p",{className:"text-xs text-gray-400 mb-0.5",children:e}),x.jsx("p",{className:"font-semibold text-gray-800 dark:text-white text-sm",children:n})]},e)}function PPt(){return window.print()}const d6e={ADT:"Adult",CHD:"Child",INF:"Infant"},sG={COMPLETED:{pill:"bg-green-100 text-green-700",dot:"bg-green-500"},APPROVED:{pill:"bg-teal-100 text-teal-700",dot:"bg-teal-500"},SUBMITTED:{pill:"bg-teal-100 text-teal-700",dot:"bg-teal-500"},CREATED:{pill:"bg-blue-100 text-blue-700",dot:"bg-blue-500"},REJECTED:{pill:"bg-red-100 text-red-700",dot:"bg-red-500"},DOCUMENT_PENDING:{pill:"bg-amber-100 text-amber-700",dot:"bg-amber-400"},UPLOADED:{pill:"bg-green-100 text-green-700",dot:"bg-green-500"},PENDING:{pill:"bg-amber-100 text-amber-700",dot:"bg-amber-400"},DOCUMENT_UPLOADED:{pill:"bg-green-100 text-green-700",dot:"bg-green-500"},DOCUMENT_UPLOAD_FAILED:{pill:"bg-red-100 text-red-700",dot:"bg-red-500"}},oG={COMPLETED:"Completed",APPROVED:"Approved",SUBMITTED:"Sumbitted",CREATED:"Created",REJECTED:"Rejected",DOCUMENT_PENDING:"Docs Pending",UPLOADED:"Uploaded",PENDING:"Pending",DOCUMENT_UPLOADED:"Doc Uploaded",DOCUMENT_UPLOAD_FAILED:"Doc Upload Failed"};function h6e(t){const e=Dn.c(10),{status:n}=t;let r;e[0]!==n?(r=sG[n]??{pill:"bg-gray-100 text-gray-500",dot:"bg-gray-400"},e[0]=n,e[1]=r):r=e[1];const i=r,a=`inline-flex items-center gap-1.5 text-xs font-semibold px-2.5 py-1 rounded-full ${i.pill}`,s=`w-1.5 h-1.5 rounded-full ${i.dot}`;let o;e[2]!==s?(o=x.jsx("span",{className:s}),e[2]=s,e[3]=o):o=e[3];let l;e[4]!==n?(l=oG[n]??n?.replace(/_/g," "),e[4]=n,e[5]=l):l=e[5];let c;
5624return e[6]!==a||e[7]!==o||e[8]!==l?(c=x.jsxs("span",{className:a,children:[o,l]}),e[6]=a,e[7]=o,e[8]=l,e[9]=c):c=e[9],c}function n9(t){const e=Dn.c(7),{label:n,value:r}=t;let i;e[0]!==n?(i=x.jsx("p",{className:"text-[10px] font-semibold text-gray-400 tracking-widest uppercase mb-0.5",children:n}),e[0]=n,e[1]=i):i=e[1];const a=r??"â";let s;e[2]!==a?(s=x.jsx("p",{className:"text-sm font-semibold text-gray-800 dark:text-white",children:a}),e[2]=a,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o=x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-xl px-4 py-3",children:[i,s]}),e[4]=i,e[5]=s,e[6]=o):o=e[6],o}function kPt(t){const e=Dn.c(34),{doc:n}=t;let r;e[0]!==n.documnetUrl?(r=n.documnetUrl?.toLowerCase().endsWith(".pdf"),e[0]=n.documnetUrl,e[1]=r):r=e[1];const i=r,a=sG[n.status]??sG.PENDING;let s;e[2]!==n.documnetName||e[3]!==n.documnetUrl||e[4]!==i?(s=i?x.jsxs("div",{className:"flex flex-col items-center gap-1 text-gray-400",children:[x.jsx(Dy,{size:36}),x.jsx("span",{className:"text-xs",children:"PDF"})]}):x.jsx("img",{src:n.documnetUrl,alt:n.documnetName,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),e[2]=n.documnetName,e[3]=n.documnetUrl,e[4]=i,e[5]=s):s=e[5];let o;e[6]!==n.documnetUrl?(o=()=>window.open(n.documnetUrl,"_blank"),e[6]=n.documnetUrl,e[7]=o):o=e[7];let l;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(pfe,{size:24}),e[8]=l):l=e[8];let c;e[9]!==o?(c=x.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center text-white",children:l}),e[9]=o,e[10]=c):c=e[10];let u;e[11]!==s||e[12]!==c?(u=x.jsxs("div",{className:"relative h-32 bg-gray-100 dark:bg-gray-700 flex items-center justify-center overflow-hidden",children:[s,c]}),e[11]=s,e[12]=c,e[13]=u):u=e[13];let f;e[14]!==n.documnetName?(f=x.jsx("p",{className:"text-xs font-medium text-gray-700 dark:text-gray-200",children:n.documnetName}),e[14]=n.documnetName,e[15]=f):f=e[15];const h=`shrink-0 inline-flex items-center gap-1 text-[10px] font-semibold px-2 py-0.5 rounded-full ${a.pill}`,p=`w-1.5 h-1.5 rounded-full ${a.dot}`;let A;e[16]!==p?(A=x.jsx("span",{className:p}),e[16]=p,e[17]=A):A=e[17];const g=oG[n.status]??n.status,w=oG[n.status]??n.status;let T;e[18]!==g||e[19]!==w?(T=x.jsx("div",{className:"truncate max-w-[120px]",title:g,children:w}),e[18]=g,e[19]=w,e[20]=T):T=e[20];let C;e[21]!==A||e[22]!==T||e[23]!==h?(C=x.jsxs("span",{className:h,children:[A,T]}),e[21]=A,e[22]=T,e[23]=h,e[24]=C):C=e[24];let M;e[25]!==C||e[26]!==f?(M=x.jsxs("div",{className:"px-3 py-2 gap-2",children:[f,C]}),e[25]=C,e[26]=f,e[27]=M):M=e[27];let D;e[28]!==n.rejectionReason?(D=n.rejectionReason&&x.jsx("p",{className:"px-3 pb-2 text-[10px] text-red-500",children:n.rejectionReason}),e[28]=n.rejectionReason,e[29]=D):D=e[29];let k;return e[30]!==M||e[31]!==D||e[32]!==u?(k=x.jsxs("div",{className:"rounded-xl border border-gray-200 dark:border-gray-600 overflow-hidden bg-white dark:bg-gray-800 group",children:[u,M,D]}),e[30]=M,e[31]=D,e[32]=u,e[33]=k):k=e[33],k}function LPt({applicant:t,index:e}){const n=[t.title,t.firstName,t.lastName].filter(Boolean).join(" ")||`Applicant ${e+1}`,r=[t.firstName?.[0],t.lastName?.[0]].filter(Boolean).join("").toUpperCase()||"?";return x.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 overflow-hidden shadow-sm",children:[x.jsxs("div",{className:"flex items-center gap-4 px-6 py-4 bg-gray-50 dark:bg-gray-700/50 border-b border-gray-200 dark:border-gray-700",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-blue-500 to-cyan-400 flex items-center justify-center text-white font-bold text-lg shrink-0",children:r}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"font-bold text-gray-800 dark:text-white text-base leading-tight",children:n}),x.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:[d6e[t.paxType]??t.paxType," · Ref: ",t.applicantRefNo]})]}),x.jsx(h6e,{status:t.applicantStatus})]}),x.jsxs("div",{className:"p-6 space-y-5",children:[x.jsxs("div",{children:[x.jsxs("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3 flex items-center gap-2",children:[x.jsx(QG,{size:14}),"PERSONAL DETAILS"]}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[x.jsx(n9,{label:"First Name",value:t.firstName}),x.jsx(n9,{label:"Last Name",value:t.lastName}),x.jsx(n9,{label:"Nationality",value:t.nationality}),x.jsx(n9,{label:"Passport No",value:t.passportNumber})]})]}),t.documents?.length>0&&x.jsxs("div",{children:[x.jsxs("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3 flex items-center gap-2",children:[x.jsx(Dy,{size:14}),"DOCUMENTS (",t.documents.length,")"]}),x.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3",children:t.documents.map(i=>x.jsx(kPt,{doc:i},i.documentId))})]})]})]})}function OPt(){const t=Dn.c(71),{visaApplicationId:e}=pT(),n=Ss(),[r,i]=b.useState(null),[a,s]=b.useState(!0);let o,l;if(t[0]!==e?(o=()=>{(async()=>{const Re=await Xv(e);Re.statusCode===200&&i(Re.data),s(!1)})()},l=[e],t[0]=e,t[1]=o,t[2]=l):(o=t[1],l=t[2]),b.useEffect(o,l),a){let Se;return t[3]===Symbol.for("react.memo_cache_sentinel")?(Se=x.jsx(go,{isLoading:!0}),t[3]=Se):Se=t[3],Se}if(!r){let Se;return t[4]===Symbol.for("react.memo_cache_sentinel")?(Se=x.jsx("div",{className:"text-center py-20 text-gray-400",children:"Order details not found."}),t[4]=Se):Se=t[4],Se}const{application:c,applicants:u,pricing:f}=r;let h;t[5]!==c.visaApplicationId||t[6]!==n?(h=()=>n(Zn.INVOICE.replace(":visaApplicationId",c.visaApplicationId)),t[5]=c.visaApplicationId,t[6]=n,t[7]=h):h=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx(ez,{size:18}),t[8]=p):p=t[8];let A;t[9]!==h?(A=x.jsx("div",{className:"flex items-center justify-between",children:x.jsxs("button",{onClick:h,className:"flex items-center gap-2 px-4 py-2 bg-[var(--secondary-color)] text-white text-sm font-semibold rounded-xl transition-colors shadow-sm",children:[p,"View Invoice"]})}),t[9]=h,t[10]=A):A=t[10];let g;t[11]!==c.countryTo?(g=x.jsx("p",{className:"text-white font-bold text-lg",children:c.countryTo}),t[11]=c.countryTo,t[12]=g):g=t[12];let w;t[13]!==c.entry||t[14]!==c.visaType?(w=x.jsxs("p",{className:"text-blue-200 text-sm capitalize",children:[c.visaType," · ",c.entry," Entry"]}),t[13]=c.entry,t[14]=c.visaType,t[15]=w):w=t[15];let T;t[16]!==g||t[17]!==w?(T=x.jsxs("div",{children:[g,w]}
5624),t[16]=g,t[17]=w,t[18]=T):T=t[18];let C;t[19]!==c.bookingStatus?(C=x.jsx(h6e,{status:c.bookingStatus}),t[19]=c.bookingStatus,t[20]=C):C=t[20];let M;t[21]!==T||t[22]!==C?(M=x.jsxs("div",{className:"bg-[linear-gradient(90deg,var(--secondary-color)_10%,var(--primary-color)_100%)] px-6 py-4 flex items-center justify-between",children:[T,C]}),t[21]=T,t[22]=C,t[23]=M):M=t[23];let D;t[24]!==c.visaApplicationId?(D={label:"Application ID",value:c.visaApplicationId},t[24]=c.visaApplicationId,t[25]=D):D=t[25];let k;t[26]!==c.applicationRefNo?(k={label:"Ref No",value:c.applicationRefNo},t[26]=c.applicationRefNo,t[27]=k):k=t[27];const I=`${c.validity===0?"":c.validity} ${c.validityType==="ASPEREMBASY"?"As Per Embassy":c.validityType}`;let L;t[28]!==I?(L={label:"Validity",value:I},t[28]=I,t[29]=L):L=t[29];const O=`${c.duration===0?"":c.duration} ${c.durationType==="ASPEREMBASY"?"As Per Embassy":c.durationType}`;let B;t[30]!==O?(B={label:"Stay",value:O},t[30]=O,t[31]=B):B=t[31];let G;t[32]!==c.paymentType?(G={label:"Payment",value:c.paymentType},t[32]=c.paymentType,t[33]=G):G=t[33];const j=c.currency;let z;t[34]!==c.totalAmount?(z=xr(c.totalAmount),t[34]=c.totalAmount,t[35]=z):z=t[35];const Q=`${j} ${z}`;let ee;t[36]!==Q?(ee={label:"Total Amount",value:Q},t[36]=Q,t[37]=ee):ee=t[37];let Z;t[38]!==D||t[39]!==k||t[40]!==L||t[41]!==B||t[42]!==G||t[43]!==ee?(Z=x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-px bg-gray-100 dark:bg-gray-700",children:[D,k,L,B,G,ee].map(BPt)}),t[38]=D,t[39]=k,t[40]=L,t[41]=B,t[42]=G,t[43]=ee,t[44]=Z):Z=t[44];let X;t[45]!==Z||t[46]!==M?(X=x.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 shadow-sm overflow-hidden",children:[M,Z]}),t[45]=Z,t[46]=M,t[47]=X):X=t[47];let K;t[48]!==u.length?(K=x.jsxs("p",{className:"text-xs font-bold text-gray-400 tracking-widest uppercase",children:["Applicants (",u.length,")"]}),t[48]=u.length,t[49]=K):K=t[49];let se;t[50]!==u?(se=u.map(IPt),t[50]=u,t[51]=se):se=t[51];let ae;t[52]!==K||t[53]!==se?(ae=x.jsxs("div",{className:"space-y-4",children:[K,se]}),t[52]=K,t[53]=se,t[54]=ae):ae=t[54];let J;t[55]===Symbol.for("react.memo_cache_sentinel")?(J=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-4",children:"PRICING SUMMARY"}),t[55]=J):J=t[55];let oe;t[56]!==f?(oe=f.map(FPt),t[56]=f,t[57]=oe):oe=t[57];let te;t[58]===Symbol.for("react.memo_cache_sentinel")?(te=x.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Grand Total"}),t[58]=te):te=t[58];let he;t[59]!==c.totalAmount?(he=xr(c.totalAmount),t[59]=c.totalAmount,t[60]=he):he=t[60];let me;t[61]!==he?(me=x.jsxs("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-3 flex justify-end items-center gap-3",children:[te,x.jsx("span",{className:"text-2xl font-extrabold text-blue-600 dark:text-blue-400",children:he})]}),t[61]=he,t[62]=me):me=t[62];let de;t[63]!==oe||t[64]!==me?(de=x.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 shadow-sm p-6",children:[J,x.jsxs("div",{className:"space-y-3",children:[oe,me]})]}),t[63]=oe,t[64]=me,t[65]=de):de=t[65];let Ae;return t[66]!==X||t[67]!==ae||t[68]!==de||t[69]!==A?(Ae=x.jsx("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-950 p-4 md:p-8",children:x.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 space-y-5",children:[A,X,ae,de]})}),t[66]=X,t[67]=ae,t[68]=de,t[69]=A,t[70]=Ae):Ae=t[70],Ae}function FPt(t,e){const n=Number(t.platformFee)+Number(t.serviceFees)+Number(t.tax)+Number(t.hiddenMarkup);return x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-12 gap-3 text-sm items-center",children:[x.jsxs("div",{className:"font-semibold text-gray-800 dark:text-white md:col-span-1",children:[d6e[t.paxType]??t.paxType," Ã ",t.paxCount]}),x.jsxs("div",{className:"text-gray-500 dark:text-gray-400 md:col-span-11 grid grid-cols-2 md:grid-cols-5 gap-2",children:[x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg px-3 py-2",children:[x.jsx("p",{className:"text-[10px] text-gray-400",children:"Embassy"}),x.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:xr(t.embassyFees)})]}),x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg px-3 py-2",children:[x.jsx("p",{className:"text-[10px] text-gray-400",children:"Tax"}),x.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:xr(n)})]}),x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg px-3 py-2",children:[x.jsx("p",{className:"text-[10px] text-gray-400",children:"Market Place Fee"}),x.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:xr(t.marketplaceFees)})]}),x.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg px-3 py-2",children:[x.jsx("p",{className:"text-[10px] text-gray-400",children:"Tax on Market Place Fee"}),x.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:xr(t.taxOnHandlingCharge)})]}),x.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 rounded-lg px-3 py-2",children:[x.jsx("p",{className:"text-[10px] text-blue-400",children:"Subtotal"}
5624),x.jsx("p",{className:"font-bold text-blue-600 dark:text-blue-400",children:xr(t.paxTotalAmount)})]})]})]},e)}function IPt(t,e){return x.jsx(LPt,{applicant:t,index:e},t.applicantId)}function BPt(t){const{label:e,value:n}=t;return x.jsxs("div",{className:"bg-white dark:bg-gray-800 px-4 py-3",children:[x.jsx("p",{className:"text-[10px] text-gray-400 font-semibold tracking-widest uppercase mb-0.5",children:e}),x.jsx("p",{className:"text-sm font-semibold text-gray-800 dark:text-white truncate",children:n})]},e)}const dce="https://www.ivsource.com/orch/api",UPt="rzp_test_hbNXQsG1PWlGM5";function VPt(){const t=Dn.c(15),[e]=AT(),n=Ss();let r;t[0]!==e?(r=e.get("order_id"),t[0]=e,t[1]=r):r=t[1];const i=r;let a;t[2]!==e?(a=e.get("booking_id"),t[2]=e,t[3]=a):a=t[3];const s=a;let o;t[4]!==e?(o=e.get("type")||"visaBooking",t[4]=e,t[5]=o):o=t[5];const l=o;let c;t[6]!==s||t[7]!==i||t[8]!==l?(c=()=>{const h=async function(g){console.log(g);const w={...g,booking_id:s},T=l==="visaBooking"?`${dce}/visa/pgorder/razorpay/verify`:`${dce}/visa/pgorder/rechargewallet/verify`,M=await(await fetch(T,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:`Bearer ${O2()}`},body:JSON.stringify(w)})).json();M.statusCode===200?l==="visaBooking"?window.location.href=Zn.PG.PAYMENT_SUCCESS.replace(":status",M.data.status).replace(":bookingId",M.data.bookingId).replace(":message",M.data.message):window.location.href=Zn.ACCOUNTS+"?type=ledger":window.location.href=Zn.PG.PAYMENT_FAILED.replace(":status",M.data.status).replace(":bookingId",M.data.bookingId).replace(":message",M.data.message)},p=document.createElement("script");return p.src="https://checkout.razorpay.com/v1/checkout.js",p.async=!0,p.onload=()=>{const A={key:UPt,currency:"INR",name:"IVS",description:"Visa Booking Payment",order_id:i,handler:w=>h(w),prefill:{name:"",email:"",contact:""},theme:{color:"#2783de"}},g=new window.Razorpay(A);g.on("payment.failed",w=>h(w.error.metadata)),g.open()},document.body.appendChild(p),()=>{document.body.contains(p)&&document.body.removeChild(p)}},t[6]=s,t[7]=i,t[8]=l,t[9]=c):c=t[9];let u;t[10]!==s||t[11]!==n||t[12]!==i?(u=[i,s,n],t[10]=s,t[11]=n,t[12]=i,t[13]=u):u=t[13],b.useEffect(c,u);let f;return t[14]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("div",{className:"flex items-center justify-center min-h-[80vh]",children:x.jsx(go,{})}),t[14]=f):f=t[14],f}function jPt(){const t=Dn.c(40),{status:e,bookingId:n,message:r}=pT(),i=Ss();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx("div",{className:"h-2 w-full bg-(--success)"}),t[0]=a):a=t[0];let s,o;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx("div",{className:"w-24 h-24 rounded-full mx-auto mb-6 flex items-center justify-center",style:{backgroundColor:"color-mix(in srgb, var(--success) 15%, transparent)"},children:x.jsx(_T,{size:56,weight:"fill",color:"var(--success)"})}),o=x.jsx("h1",{className:"text-2xl font-extrabold text-(--body-text) mb-2",children:"Payment Successful!"}),t[1]=s,t[2]=o):(s=t[1],o=t[2]);const l=r??"Your visa booking payment has been processed successfully.";let c;t[3]!==l?(c=x.jsx("p",{className:"text-(--muted-text) text-sm leading-relaxed mb-8",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==n?(u=n&&x.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[x.jsx("span",{className:"text-xs font-semibold text-(--muted-text) uppercase tracking-widest",children:"Booking ID"}),x.jsx("span",{className:"text-sm font-bold text-(--body-text)",children:n})]}),t[5]=n,t[6]=u):u=t[6];let f;t[7]!==e?(f=e&&x.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[x.jsx("span",{className:"text-xs font-semibold text-(--muted-text) uppercase tracking-widest",children:"Status"}),x.jsx("span",{className:"text-xs font-semibold px-3 py-1 rounded-full",style:{backgroundColor:"color-mix(in srgb, var(--success) 15%, transparent)",color:"var(--success)"},children:e})]}),t[7]=e,t[8]=f):f=t[8];let h;t[9]!==u||t[10]!==f?(h=x.jsxs("div",{className:"bg-(--page-bg) rounded-2xl divide-y divide-(--surface-border) text-left mb-8",children:[u,f]}),t[9]=u,t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n||t[13]!==i?(p=x.jsx(gr,{btnText:"View Order Details",variant:"secondary",onClick:()=>i(Zn.VISA_ORDER_DETAILS.replace(":visaApplicationId",n))}),t[12]=n,t[13]=i,t[14]=p):p=t[14];let A;t[15]!==i?(A=x.jsx(gr,{btnText:"Go to My Bookings",variant:"outlined-secondary",onClick:()=>i(`${Zn.ACCOUNTS}?type=my-bookings`)}),t[15]=i,t[16]=A):A=t[16];let g;t[17]!==p||t[18]!==A?(g=x.jsxs("div",{className:"flex flex-col gap-3",children:[p,A]}),t[17]=p,t[18]=A,t[19]=g):g=t[19];let w;t[20]!==g||t[21]!==c||t[22]!==h?(w=x.jsxs("div",{className:"bg-(--surface-bg) rounded-3xl border border-(--surface-border) shadow-xl overflow-hidden",children:[a,x.jsxs("div",{className:"p-8 text-center",children:[s,o,c,h,g]})]}),t[20]=g,t[21]=c,t[22]=h,t[23]=w):w=t[23];let T;t[24]!==n?(T=()=>window.open(Zn.INVOICE.replace(":visaApplicationId",n),"_blank"),t[24]=n,t[25]=T):T=t[25];let C;t[26]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx(ez,{size:14}),t[26]=C):C=t[26];let M;t[27]!==T?(M=x.jsxs("button",{type:"button",className:"flex items-center gap-1.5 hover:text-(--secondary-color) transition-colors",onClick:T,children:[C,"View Invoice"]}),t[27]=T,t[28]=M):M=t[28];let D;t[29]!==i?(D=()=>i(`${Zn.ACCOUNTS}?type=my-bookings`),t[29]=i,t[30]=D):D=t[30];let k;t[31]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsx($S,{size:14}),t[31]=k):k=t[31];let I;t[32]!==D?(I=x.jsxs("button",{type:"button",className:"flex items-center gap-1.5 hover:text-(--secondary-color) transition-colors",onClick:D,children:[k,"My Bookings"]}),t[32]=D,t[33]=I):I=t[33];let L;t[34]!==M||t[35]!==I?(L=x.jsxs("div",{className:"flex justify-center gap-6 mt-6 text-xs text-(--muted-text)",children:[M,I]}),t[34]=M,t[35]=I,t[36]=L):L=t[36];let O;return t[37]!==w||t[38]!==L?(O=x.jsx("div",{className:"min-h-screen bg-(--page-bg) flex items-center justify-center p-4",children:x.jsxs("div",{className:"w-full max-w-md",children:[w,L]})}),t[37]=w,t[38]=L,t[39]=O):O=t[39],O}function HPt(){const t=Dn.c(26),{status:e,bookingId:n,message:r}=pT(),i=Ss();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx("div",{className:"h-2 w-full bg-(--red-color)"}),t[0]=a):a=t[0];let s,o;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx("div",{className:"w-24 h-24 rounded-full mx-auto mb-6 flex items-center justify-center",style:{backgroundColor:"color-mix(in srgb, var(--red-color) 12%, transparent)"},children:x.jsx(nz,{size:56,weight:"fill",color:"var(--red-color)"})}),o=x.jsx("h1",{className:"text-2xl font-extrabold text-(--body-text) mb-2",children:"Payment Failed"}),t[1]=s,t[2]=o):(s=t[1],o=t[2]);const l=r??"We were unable to process your payment. Please try again or c
5624ontact support.";let c;t[3]!==l?(c=x.jsx("p",{className:"text-(--muted-text) text-sm leading-relaxed mb-8",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==n?(u=n&&x.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[x.jsx("span",{className:"text-xs font-semibold text-(--muted-text) uppercase tracking-widest",children:"Booking ID"}),x.jsx("span",{className:"text-sm font-bold text-(--body-text)",children:n})]}),t[5]=n,t[6]=u):u=t[6];let f;t[7]!==e?(f=e&&x.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[x.jsx("span",{className:"text-xs font-semibold text-(--muted-text) uppercase tracking-widest",children:"Status"}),x.jsx("span",{className:"text-xs font-semibold px-3 py-1 rounded-full",style:{backgroundColor:"color-mix(in srgb, var(--red-color) 12%, transparent)",color:"var(--red-color)"},children:e})]}),t[7]=e,t[8]=f):f=t[8];let h;t[9]!==u||t[10]!==f?(h=x.jsxs("div",{className:"bg-(--page-bg) rounded-2xl divide-y divide-(--surface-border) text-left mb-8",children:[u,f]}),t[9]=u,t[10]=f,t[11]=h):h=t[11];let p;t[12]!==i?(p=x.jsx("div",{className:"flex flex-col gap-3",children:x.jsx(gr,{btnText:"Go to My Bookings",variant:"outlined-secondary",onClick:()=>i(`${Zn.ACCOUNTS}?type=my-bookings`)})}),t[12]=i,t[13]=p):p=t[13];let A;t[14]!==c||t[15]!==h||t[16]!==p?(A=x.jsxs("div",{className:"bg-(--surface-bg) rounded-3xl border border-(--surface-border) shadow-xl overflow-hidden",children:[a,x.jsxs("div",{className:"p-8 text-center",children:[s,o,c,h,p]})]}),t[14]=c,t[15]=h,t[16]=p,t[17]=A):A=t[17];let g;t[18]!==i?(g=()=>i(`${Zn.ACCOUNTS}?type=my-bookings`),t[18]=i,t[19]=g):g=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx($S,{size:14}),t[20]=w):w=t[20];let T;t[21]!==g?(T=x.jsx("div",{className:"flex justify-center gap-6 mt-6 text-xs text-(--muted-text)",children:x.jsxs("button",{type:"button",className:"flex items-center gap-1.5 hover:text-(--secondary-color) transition-colors",onClick:g,children:[w,"My Bookings"]})}),t[21]=g,t[22]=T):T=t[22];let C;return t[23]!==T||t[24]!==A?(C=x.jsx("div",{className:"min-h-screen bg-(--page-bg) flex items-center justify-center p-4",children:x.jsxs("div",{className:"w-full max-w-md",children:[A,T]})}),t[23]=T,t[24]=A,t[25]=C):C=t[25],C}const FY={ADT:"Adult",CHD:"Child",INF:"Infant"},GPt={COMPLETED:"bg-green-100 text-green-700",APPROVED:"bg-teal-100 text-teal-700",SUBMITTED:"bg-teal-100 text-teal-700",CREATED:"bg-blue-100 text-blue-700",REJECTED:"bg-red-100 text-red-700",DOCUMENT_PENDING:"bg-amber-100 text-amber-700"},zPt={COMPLETED:"Completed",APPROVED:"Approved",SUBMITTED:"Submitted",CREATED:"Created",REJECTED:"Rejected",DOCUMENT_PENDING:"Documents Pending"};function $Pt(t){const e=Dn.c(5),{status:n}=t,r=`text-xs font-semibold px-2.5 py-1 rounded-full ${GPt[n]??"bg-gray-100 text-gray-600"}`;let i;e[0]!==n?(i=zPt[n]??n?.replace(/_/g," "),e[0]=n,e[1]=i):i=e[1];let a;return e[2]!==r||e[3]!==i?(a=x.jsx("span",{className:r,children:i}),e[2]=r,e[3]=i,e[4]=a):a=e[4],a}function qPt(){const t=Dn.c(134),{visaApplicationId:e}=pT();Ss();const[n,r]=b.useState(null);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=uy(S0),t[0]=i):i=t[0];const a=i,s=a?.logoS3Url;let o,l;if(t[1]!==e?(o=()=>{(async()=>{const Tt=await Xv(e);Tt.statusCode===200&&r(Tt.data)})()},l=[e],t[1]=e,t[2]=o,t[3]=l):(o=t[2],l=t[3]),b.useEffect(o,l),!n){let pt;return t[4]===Symbol.for("react.memo_cache_sentinel")?(pt=x.jsx("div",{className:"text-center py-20 text-gray-400",children:"Loading invoice..."}),t[4]=pt):pt=t[4],pt}const{application:c,applicants:u,pricing:f}=n,h=u[0],p=h?.title,A=h?.firstName,g=h?.lastName;let w;t[5]!==p||t[6]!==A||t[7]!==g?(w=[p,A,g].filter(Boolean),t[5]=p,t[6]=A,t[7]=g,t[8]=w):w=t[8];const T=w.join(" ");let C;t[9]!==c.createdOn?(C=new Date(c.createdOn).toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"}),t[9]=c.createdOn,t[10]=C):C=t[10];const M=C,D=`${c.validity===0?"":c.validity} ${c.validityType==="ASPEREMBASY"?"As Per Embassy":c.validityType}`;let k;t[11]!==D?(k=D.trim(),t[11]=D,t[12]=k):k=t[12];const I=k,L=`${c.duration===0?"":c.duration}
5624 ${c.durationType==="ASPEREMBASY"?"As Per Embassy":c.durationType}`;let O;t[13]!==L?(O=L.trim(),t[13]=L,t[14]=O):O=t[14];const B=O;let G;t[15]===Symbol.for("react.memo_cache_sentinel")?(G=x.jsx("div",{className:"max-w-4xl mx-auto mb-5 flex items-center justify-between print:hidden",children:x.jsxs("button",{onClick:JPt,className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-xl hover:bg-blue-700 transition-colors shadow-sm",children:[x.jsx(JG,{size:18})," Print / Download"]})}),t[15]=G):G=t[15];let j;t[16]===Symbol.for("react.memo_cache_sentinel")?(j=x.jsx("img",{src:s??"/images/app_logo_black.png",alt:"Logo",className:"h-10 object-contain mb-2",onError:KPt}),t[16]=j):j=t[16];let z;t[17]===Symbol.for("react.memo_cache_sentinel")?(z=x.jsxs("div",{children:[j,x.jsx("p",{className:"text-[var(--secondary-color)] text-sm font-medium",children:a?.agencyName??"Travel Agency"})]}),t[17]=z):z=t[17];let Q;t[18]===Symbol.for("react.memo_cache_sentinel")?(Q=x.jsx("p",{className:"text-[var(--secondary-color)] text-3xl font-extrabold tracking-wider",children:"INVOICE"}),t[18]=Q):Q=t[18];let ee;t[19]!==c.visaApplicationId?(ee=x.jsxs("p",{className:"text-blue-300 text-sm font-mono mt-1",children:["#",c.visaApplicationId]}),t[19]=c.visaApplicationId,t[20]=ee):ee=t[20];let Z;t[21]!==M?(Z=x.jsx("p",{className:"text-blue-300 text-xs mt-0.5",children:M}),t[21]=M,t[22]=Z):Z=t[22];let X;t[23]!==ee||t[24]!==Z?(X=x.jsxs("div",{className:"px-8 py-8 flex justify-between items-center",children:[z,x.jsxs("div",{className:"text-right",children:[Q,ee,Z]})]}),t[23]=ee,t[24]=Z,t[25]=X):X=t[25];let K;t[26]===Symbol.for("react.memo_cache_sentinel")?(K=x.jsx("div",{className:"h-1 bg-gradient-to-r from-cyan-400 to-blue-500"}),t[26]=K):K=t[26];let se;t[27]===Symbol.for("react.memo_cache_sentinel")?(se=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"FROM"}),t[27]=se):se=t[27];let ae;t[28]===Symbol.for("react.memo_cache_sentinel")?(ae=x.jsx("p",{className:"font-bold text-gray-900 text-base",children:a?.agencyName??a?.name??"Agency"}),t[28]=ae):ae=t[28];const J=a?.agentId??c.agentId;let oe;t[29]!==J?(oe=x.jsxs("p",{className:"text-sm text-gray-500 mt-0.5",children:["Agent ID:"," ",x.jsx("span",{className:"font-medium text-gray-700",children:J})]}),t[29]=J,t[30]=oe):oe=t[30];let te,he,me;t[31]===Symbol.for("react.memo_cache_sentinel")?(te=a?.email&&x.jsx("p",{className:"text-sm text-gray-500",children:a.email}),he=a?.phone&&x.jsx("p",{className:"text-sm text-gray-500",children:a.phone}),me=a?.gstNumber&&x.jsxs("p",{className:"text-sm text-gray-500",children:["GST:",a?.gstNumber]}),t[31]=te,t[32]=he,t[33]=me):(te=t[31],he=t[32],me=t[33]);let de;t[34]!==oe?(de=x.jsxs("div",{children:[se,ae,oe,te,he,me]}),t[34]=oe,t[35]=de):de=t[35];let Ae;t[36]===Symbol.for("react.memo_cache_sentinel")?(Ae=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"BILLED TO"}),t[36]=Ae):Ae=t[36];const Se=T||"Customer";let Re;t[37]!==Se?(Re=x.jsx("p",{className:"font-bold text-gray-900 text-base",children:Se}),t[37]=Se,t[38]=Re):Re=t[38];const Ne=h?.nationality;let Fe;t[39]!==Ne?(Fe=x.jsxs("p",{className:"text-sm text-gray-500 mt-0.5",children:["Nationality:"," ",x.jsx("span",{className:"font-medium text-gray-700",children:Ne})]}),t[39]=Ne,t[40]=Fe):Fe=t[40];let Qe;t[41]!==u.length?(Qe=x.jsxs("p",{className:"text-sm text-gray-500",children:["Total Travellers:"," ",x.jsx("span",{className:"font-medium text-gray-700",children:u.length})]}),t[41]=u.length,t[42]=Qe):Qe=t[42];let ge;t[43]!==c.bookingStatus?(ge=x.jsx("div",{className:"mt-2",children:x.jsx($Pt,{status:c.bookingStatus})}),t[43]=c.bookingStatus,t[44]=ge):ge=t[44];let Ie;t[45]!==Re||t[46]!==Fe||t[47]!==Qe||t[48]!==ge?(Ie=x.jsxs("div",{className:"text-right",children:[Ae,Re,Fe,Qe,ge]}),t[45]=Re,t[46]=Fe,t[47]=Qe,t[48]=ge,t[49]=Ie):Ie=t[49];let De;t[50]!==de||t[51]!==Ie?(De=x.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[de,Ie]}),t[50]=de,t[51]=Ie,t[52]=De):De=t[52];let Xe;t[53]!==c.visaApplicationId?(Xe={label:"Invoice No",value:c.visaApplicationId},t[53]=c.visaApplicationId,t[54]=Xe):Xe=t[54];let Ye;t[55]!==M?(Ye={label:"Date",value:M},t[55]=M,t[56]=Ye):Ye=t[56];let Me;t[57]!==c.paymentType?(Me={label:"Payment Type",value:c.paymentType},t[57]=c.paymentType,t[58]=Me):Me=t[58];let lt;t[59]!==Xe||t[60]!==Ye||t[61]!==Me?(lt=x.jsx("div",{className:"grid grid-cols-3 gap-4 bg-gray-50 rounded-xl p-4 border border-gray-100",children:[Xe,Ye,Me].map(QPt)}),t[59]=Xe,t[60]=Ye,t[61]=Me,t[62]=lt):lt=t[62];let Ht;t[63]===Symbol.for("react.memo_cache_sentinel")?(Ht=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"VISA DETAILS"}),t[63]=Ht):Ht=t[63];let Le;t[64]!==c.countryTo?(Le={label:"Destination",value:c.countryTo},t[64]=c.countryTo,t[65]=Le):Le=t[65];let Nt;t[66]!==c.visaType?(Nt=c.visaType?.toUpperCase(),t[66]=c.visaType,t[67]=Nt):Nt=t[67];let Ct;t[68]!==Nt?(Ct={label:"Visa Type",value:Nt},t[68]=Nt,t[69]=Ct):Ct=t[69];let It;t[70]!==c.entry?(It={label:"Entry Type",value:c.entry},t[70]=c.entry,t[71]=It):It=t[71];const nt=I||"â";let ht;t[72]!==nt?(ht={label:"Validity",value:nt},t[72]=nt,t[73]=ht):ht=t[73];const ve=B||"â";let ce;t[74]!==ve?(ce={label:"Stay Duration",value:ve},t[74]=ve,t[75]=ce):ce=t[75];let je;t[76]!==c.totalAdults?(je={label:"Adults",value:c.totalAdults}
5624,t[76]=c.totalAdults,t[77]=je):je=t[77];let dt;t[78]!==c.totalChild?(dt={label:"Children",value:c.totalChild},t[78]=c.totalChild,t[79]=dt):dt=t[79];let ft;t[80]!==c.totalInfants?(ft={label:"Infants",value:c.totalInfants},t[80]=c.totalInfants,t[81]=ft):ft=t[81];let at;t[82]!==Le||t[83]!==Ct||t[84]!==It||t[85]!==ht||t[86]!==ce||t[87]!==je||t[88]!==dt||t[89]!==ft?(at=x.jsxs("div",{children:[Ht,x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-px bg-gray-100 rounded-xl overflow-hidden border border-gray-200",children:[Le,Ct,It,ht,ce,je,dt,ft].map(XPt)})]}),t[82]=Le,t[83]=Ct,t[84]=It,t[85]=ht,t[86]=ce,t[87]=je,t[88]=dt,t[89]=ft,t[90]=at):at=t[90];let St;t[91]!==u.length?(St=x.jsxs("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:["TRAVELLERS (",u.length,")"]}),t[91]=u.length,t[92]=St):St=t[92];let ut;t[93]===Symbol.for("react.memo_cache_sentinel")?(ut=x.jsx("thead",{className:"bg-gray-50",children:x.jsxs("tr",{className:"text-[10px] text-gray-400 font-bold tracking-widest uppercase",children:[x.jsx("th",{className:"text-left px-4 py-3",children:"#"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Name"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Type"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Nationality"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Ref No"})]})}),t[93]=ut):ut=t[93];let gt;t[94]!==u?(gt=u.map(YPt),t[94]=u,t[95]=gt):gt=t[95];let Vt;t[96]!==gt?(Vt=x.jsx("div",{className:"rounded-xl border border-gray-200 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[ut,x.jsx("tbody",{children:gt})]})}),t[96]=gt,t[97]=Vt):Vt=t[97];let Zt;t[98]!==St||t[99]!==Vt?(Zt=x.jsxs("div",{children:[St,Vt]}),t[98]=St,t[99]=Vt,t[100]=Zt):Zt=t[100];let Wt;t[101]===Symbol.for("react.memo_cache_sentinel")?(Wt=x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest mb-3",children:"PRICING BREAKDOWN"}),t[101]=Wt):Wt=t[101];let qt;t[102]===Symbol.for("react.memo_cache_sentinel")?(qt=x.jsx("thead",{className:"bg-gray-50",children:x.jsxs("tr",{className:"text-[10px] text-gray-400 font-bold tracking-widest uppercase",children:[x.jsx("th",{className:"text-left px-4 py-3",children:"Pax Type"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Government Fees"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Tax"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Market Place Fee"}),x.jsx("th",{className:"text-left px-4 py-3",children:"Tax on Market Place Fee"}),x.jsx("th",{className:"text-right px-4 py-3",children:"Subtotal"})]})}),t[102]=qt):qt=t[102];let We;t[103]!==f?(We=f.map(ZPt),t[103]=f,t[104]=We):We=t[104];let yn;t[105]!==We?(yn=x.jsxs("div",{children:[Wt,x.jsx("div",{className:"rounded-xl border border-gray-200 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[qt,x.jsx("tbody",{children:We})]})})]}),t[105]=We,t[106]=yn):yn=t[106];let vn;t[107]!==f?(vn=f.map(WPt),t[107]=f,t[108]=vn):vn=t[108];let Ge;t[109]===Symbol.for("react.memo_cache_sentinel")?(Ge=x.jsx("span",{className:"font-bold text-sm tracking-wide",children:"GRAND TOTAL"}),t[109]=Ge):Ge=t[109];let kt;t[110]!==c.fareQuoteTotal?(kt=xr(c.fareQuoteTotal),t[110]=c.fareQuoteTotal,t[111]=kt):kt=t[111];let _t;t[112]!==kt?(_t=x.jsxs("div",{className:"flex justify-between items-center rounded-xl px-5 py-4 text-[var(--secondary-color)]",children:[Ge,x.jsx("span",{className:"font-extrabold text-2xl",children:kt})]}),t[112]=kt,t[113]=_t):_t=t[113];let Dt;t[114]!==c.currency?(Dt=x.jsxs("p",{className:"text-xs text-gray-400 text-right mt-2",children:[c.currency," · All taxes included"]}),t[114]=c.currency,t[115]=Dt):Dt=t[115];let jt;t[116]!==_t||t[117]!==Dt?(jt=x.jsxs("div",{className:"pt-3 mt-1 border-t border-gray-100",children:[_t,Dt]}),t[116]=_t,t[117]=Dt,t[118]=jt):jt=t[118];let Lt;t[119]!==vn||t[120]!==jt?(Lt=x.jsx("div",{className:"flex justify-end",children:x.jsxs("div",{className:"w-72 space-y-2",children:[vn,jt]})}),t[119]=vn,t[120]=jt,t[121]=Lt):Lt=t[121];let Bt;t[122]===Symbol.for("react.memo_cache_sentinel")?(Bt=x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-gray-700",children:a?.agencyName??"Travel Agency"}),a?.email&&x.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:a.email})]}),t[122]=Bt):Bt=t[122];let Gt;t[123]===Symbol.for("react.memo_cache_sentinel")?(Gt=x.jsxs("div",{className:"border-t border-gray-100 pt-6 flex justify-between items-end",children:[Bt,x.jsxs("div",{className:"text-right",children:[x.jsx("p",{className:"text-sm text-gray-500",children:"Thank y
5624ou for travelling with us."}),x.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"This is a computer-generated invoice and does not require a signature."})]})]}),t[123]=Gt):Gt=t[123];let hn;t[124]!==De||t[125]!==lt||t[126]!==at||t[127]!==Zt||t[128]!==yn||t[129]!==Lt?(hn=x.jsxs("div",{className:"p-8 space-y-8",children:[De,lt,at,Zt,yn,Lt,Gt]}),t[124]=De,t[125]=lt,t[126]=at,t[127]=Zt,t[128]=yn,t[129]=Lt,t[130]=hn):hn=t[130];let Ve;return t[131]!==X||t[132]!==hn?(Ve=x.jsxs("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-950 p-4 md:p-8 print:bg-white print:p-0",children:[G,x.jsxs("div",{className:"max-w-4xl mx-auto bg-white rounded-2xl shadow-xl overflow-hidden print:shadow-none print:rounded-none",children:[X,K,hn]})]}),t[131]=X,t[132]=hn,t[133]=Ve):Ve=t[133],Ve}function WPt(t,e){return x.jsxs("div",{className:"flex justify-between text-sm text-gray-500",children:[x.jsxs("span",{children:[FY[t.paxType]??t.paxType," Ã ",t.paxCount]}),x.jsx("span",{children:xr(t.fareQuoteTotal)})]},e)}function ZPt(t,e){const n=Number(t.platformFee)+Number(t.serviceFees)+Number(t.tax)+Number(t.hiddenMarkup)+Number(t.hiddenAgentMarkup);return x.jsxs("tr",{className:"border-t border-gray-100",children:[x.jsxs("td",{className:"px-4 py-4 font-semibold text-gray-800",children:[FY[t.paxType]??t.paxType," Ã ",t.paxCount]}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600",children:xr(t.embassyFees)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600",children:xr(n)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600",children:xr(t.marketplaceFees)}),x.jsx("td",{className:"px-4 py-4 text-left text-gray-600",children:xr(t.taxOnHandlingCharge)}),x.jsx("td",{className:"px-4 py-4 text-right font-semibold text-gray-800",children:xr(t.fareQuoteTotal)})]},e)}function YPt(t,e){return x.jsxs("tr",{className:"border-t border-gray-100 hover:bg-gray-50 transition-colors",children:[x.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:e+1}),x.jsx("td",{className:"px-4 py-3 font-medium text-gray-800",children:[t.title,t.firstName,t.lastName].filter(Boolean).join(" ")}),x.jsx("td",{className:"px-4 py-3 text-gray-500",children:FY[t.paxType]??t.paxType}),x.jsx("td",{className:"px-4 py-3 text-gray-500",children:t.nationality}),x.jsx("td",{className:"px-4 py-3 font-mono text-xs text-gray-400",children:t.applicantRefNo})]},t.applicantId)}function XPt(t){const{label:e,value:n}=t;return x.jsxs("div",{className:"bg-white px-4 py-3",children:[x.jsx("p",{className:"text-[10px] text-gray-400 uppercase tracking-wide mb-0.5",children:e}),x.jsx("p",{className:"font-semibold text-gray-800 text-sm",children:n})]},e)}function QPt(t){const{label:e,value:n}=t;return x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] font-bold text-gray-400 tracking-widest uppercase",children:e}),x.jsx("p",{className:"text-sm font-semibold text-gray-800 mt-0.5",children:n})]},e)}function KPt(t){t.target.style.display="none"}function JPt(){return window.print()}zr.registerPlugin(Ai);const ekt="https://maps.app.goo.gl/BkNZrQfjTtfA9nMQ9",tkt="https://www.whatsapp.com/channel/0029ValhOKA5fM5R2sWm4H1R";function nkt(){const t=Dn.c(26),e=Ss(),n=b.useRef(null);let r,i;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const G=zr.context(rkt,n);return()=>{G.revert(),window.scrollTo(0,0)}},i=[],t[0]=r,t[1]=i):(r=t[0],i=t[1]),b.useLayoutEffect(r,i);let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a={backgroundColor:"var(--page-bg)"},t[2]=a):a=t[2];let s,o;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),o=x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"}),t[3]=s,t[4]=o):(s=t[3],o=t[4]);let l;t[5]!==e?(l=()=>e(-1),t[5]=e,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(Ap,{size:18,weight:"bold"}),t[7]=c):c=t[7];let u;t[8]!==l?(u=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[s,o,x.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm font-medium text-(--body-text) hover:text-(--secondary-color) transition-colors cursor-pointer",children:[c," Back"]})]})}),t[8]=l,t[9]=u):u=t[9];let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[10]=f):f=t[10];let h;t[11]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-20 md:py-28",children:x.jsx("h1",{className:"cu-hero-text text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight",children:"Get in Touch."})}),t[11]=h):h=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsxs("div",{className:"relative overflow-hidden",children:[f,h,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[12]=p):p=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsxs("div",{children:[x.jsx("p",{className:"font-bold text-sm mb-2",style:{color:"var(--primary-color)"},children:"COMPANY"}),x.jsx("p",{className:"text-(--body-text) text-base",children:"Calleo Distribution Technologies Pvt. Ltd."}),x.jsx("p",{className:"text-(--body-text) text-base",children:"c/o ITQ Technologies Pvt. Ltd."})]}),t[13]=A):A=t[13];let g;t[14]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsxs("div",{children:[x.jsx("p",{className:"font-bold text-sm mb-2",style:{color:"var(--primary-color)"},children:"ADDRESS"}),x.jsx("p",{className:"text-(--body-text) text-base leading-relaxed",children:"302, Level 3, Pegasus One Building, Sector-53, Golf Course Road, Gurugram-122023"})]}),t[14]=g):g=t[14];let w,T;t[15]===Symbol.for("react.memo_cache_sentinel")?(w={backgroundColor:"var(--primary-color)",width:"fit-content"},T=x.jsx(tP,{size:18,weight:"bold"}),t[15]=w,t[16]=T):(w=t[15],T=t[16]);let C;t[17]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsxs("div",{className:"cu-animate bg-(--surface-bg) rounded-2xl p-8 border border-(--surface-border) flex flex-col gap-6",children:[A,g,x.jsxs("a",{href:ekt,target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-flex items-center gap-2 px-6 py-3 rounded-full text-base font-semibold text-white transition-opacity hover:opacity-85",style:w,children:[T,"Vie
5624w on Google Maps",x.jsx(ZG,{size:16,weight:"bold"})]})]}),t[17]=C):C=t[17];let M;t[18]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsx("div",{className:"flex items-center gap-4",children:x.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:"var(--primary-color)"},children:x.jsx(wT,{size:20,color:"white",weight:"bold"})})}),t[18]=M):M=t[18];let D;t[19]===Symbol.for("react.memo_cache_sentinel")?(D=x.jsxs("div",{className:"bg-(--surface-bg) rounded-2xl p-8 border border-(--surface-border) flex flex-col gap-5",children:[M,x.jsxs("div",{className:"flex items-start gap-4",children:[x.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:"var(--primary-color)"},children:x.jsx(Ry,{size:20,color:"white",weight:"bold"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-(--muted-text) text-sm",children:"EMAIL"}),x.jsx("a",{href:"mailto:[email protected]",className:"text-(--body-text) text-base font-bold hover:underline block",children:"[email protected]"}),x.jsx("a",{href:"mailto:[email protected]",className:"text-(--body-text) text-base font-bold hover:underline block",children:"[email protected]"})]})]})]}),t[19]=D):D=t[19];let k;t[20]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center shrink-0",style:{backgroundColor:"var(--primary-color)"},children:x.jsx(Efe,{size:32,color:"white",weight:"fill"})}),t[20]=k):k=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"font-bold text-base",style:{color:"var(--primary-color)"},children:"IVS Whatsapp Channel"}),x.jsx("p",{className:"text-(--muted-text) text-sm",children:"Follow for updates and offers"})]}),t[21]=I):I=t[21];let L;t[22]===Symbol.for("react.memo_cache_sentinel")?(L=x.jsx("div",{className:"cu-content max-w-7xl mx-auto px-8 md:px-16 py-16 md:py-24",children:x.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[C,x.jsxs("div",{className:"cu-animate flex flex-col gap-6",children:[D,x.jsxs("div",{className:"bg-(--surface-bg) rounded-2xl p-6 border border-(--surface-border) flex items-center gap-4",children:[k,I,x.jsx("a",{href:tkt,target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-full text-sm font-bold text-white shrink-0 hover:opacity-85 transition-opacity",style:{backgroundColor:"var(--primary-color)"},children:"Follow"})]})]})]})}),t[22]=L):L=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsxs("div",{className:"border-t border-(--surface-border) px-8 md:px-16 py-6 flex flex-col md:flex-row items-center justify-between gap-3",children:[x.jsx("p",{className:"text-(--muted-text) text-xs",children:"© 2026 IVS â All Rights Reserved"}),x.jsx("p",{className:"text-(--muted-text) text-xs",children:"Calleo Distribution Technologies Pvt. Ltd."})]}),t[23]=O):O=t[23];let B;return t[24]!==u?(B=x.jsxs("div",{ref:n,style:a,children:[u,p,L,O]}),t[24]=u,t[25]=B):B=t[25],B}function rkt(){zr.from(".cu-hero-text",{y:60,opacity:0,duration:.9,stagger:.12,ease:"power4.out",force3D:!0}),zr.from(".cu-animate",{y:40,opacity:0,duration:.75,stagger:.1,ease:"power3.out",force3D:!0,scrollTrigger:{trigger:".cu-content",start:"top 100%",toggleActions:"play none none none"}})}const ikt=[{title:"100+ Countries",subtitle:"Global Visa Coverage"},{title:"Real-Time Updates",subtitle:"Accurate and Transparent"},{title:"End-to-End Support",subtitle:"From application to delivery"},{title:"Tech-Driven Platform",subtitle:"Smarter Visa Processing"},{title:"Trusted Since 1987",subtitle:"Decades of expertise"}],akt=[{Icon:wT,label:"+91 (124) 428 4800",href:"tel:+911244284800"},{Icon:Ry,label:"[email protected]",href:"mailto:[email protected]"},{Icon:ufe,label:"www.ivsource.com",href:"https://www.ivsource.com"}];function skt(){const t=Dn.c(19),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--page-bg)"},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),i=x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]!==e?(a=()=>e(-1),t[3]=e,t[4]=a):a=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(Ap,{size:18,weight:"bold"}),t[5]=s):s=t[5];let o;t[6]!==a?(o=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[r,i,x.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-sm font-medium text-(--body-text) hover:text-(--secondary-color) transition-colors cursor-pointer",children:[s," Back"]})]})}),t[6]=a,t[7]=o):o=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[8]=l):l=t[8];let c;t[9]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-20 md:py-28",children:x.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight text-center",children:"About Us"})}),t[9]=c):c=t[9];let u;t[10]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs("div",{className:"relative overflow-hidden",children:[l,c,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[10]=u):u=t[10];let f;t[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("p",{className:"text-base md:text-lg leading-relaxed text-(--body-text)",children:"IVS is a premium Visa Concierge & Processing platform delivering reliable, and seamless visa enablement facilities for global travel requirements. We simplify complex visa processes through responsive coordination, operational flexibility, attention to detail, and personalized support tailored to the evolving needs of travel agencies, corporates, and international travellers."}
5624),t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:"Why are we doing this?"}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"Visa processing today often involves fragmented communication, evolving documentation requirements, and time-consuming coordination across multiple traveller requests. Our goal is to make this process simpler, smoother, and more manageable through a secure framework, operational efficiency, service quality, and seamless at every step"})]}),t[12]=h):h=t[12];let p;t[13]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:"Built for agencies â One platform. Every visa. Zero Chaos."}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"IVS is designed to reduce the operational burden of Visa Concierge & Processing so you can focus on your clients and day-to-day operations while we handle the process behind the scenes with clarity, care, and confidence."})]}),t[13]=p):p=t[13];let A;t[14]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx("div",{className:"rounded-2xl bg-linear-to-l from-(--primary-color) to-(--secondary-color) p-0.5 shadow-sm",children:x.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 rounded-2xl bg-(--surface-bg) overflow-hidden",children:ikt.map(lkt)})}),t[14]=A):A=t[14];let g;t[15]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("div",{className:"rounded-2xl bg-linear-to-r from-(--primary-color) to-(--secondary-color) p-0.5 shadow-sm",children:x.jsxs("div",{className:"rounded-2xl bg-(--surface-bg) px-6 py-5",children:[x.jsx("p",{className:"font-bold text-(--body-text) text-lg",children:"Want to know more about IVS?"}),x.jsx("p",{className:"text-sm text-(--muted-text) mt-1",children:"Explore the complete IVS product walkthrough, market insights, and partner network."})]})}),t[15]=g):g=t[15];let w;t[16]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsxs("div",{className:"mx-auto max-w-6xl space-y-10 px-4 md:py-15",children:[f,h,p,A,g,x.jsx("div",{className:"flex flex-col sm:flex-row sm:justify-center sm:items-center gap-4 sm:gap-8",children:akt.map(okt)})]}),t[16]=w):w=t[16];let T;return t[17]!==o?(T=x.jsxs("div",{style:n,children:[o,u,w]}),t[17]=o,t[18]=T):T=t[18],T}function okt(t){const{Icon:e,label:n,href:r}=t;return x.jsxs("a",{href:r,className:"flex items-center gap-2.5 text-(--body-text) hover:text-(--secondary-color) transition-colors",children:[x.jsx(e,{size:22,weight:"duotone",className:"text-(--secondary-color) shrink-0"}),x.jsx("span",{className:"text-sm font-medium",children:n})]},n)}function lkt(t,e){const{title:n,subtitle:r}=t;return x.jsxs("div",{className:`px-5 py-5 border-(--surface-border) ${e>0?"border-t md:border-t-0 md:border-l":""}`,children:[x.jsx("p",{className:"font-bold text-(--body-text) leading-tight",children:n}),x.jsx("p",{className:"text-xs text-(--muted-text) mt-1",children:r})]},n)}const ckt=["At IVS, weâre committed to protect and respect your privacy. This Privacy Notice explains how IVS (âIVSâ, âwe,â or âusâ) handle your personal data (also known as personal information in certain jurisdictions).","We may change this Privacy Notice (also known as Privacy Policy in certain jurisdictions) from time to time. We will always make the latest Privacy Notice available to you via this page. Any changes to this Privacy Notice will apply to you and your data immediately.","Under the Visa Assistance services arrangement made available via the IndiGo platform, IVS shall act as the Data Controller in respect of the Personal Data processed in connection with such services and shall be solely responsible for compliance with applicable data protection laws in relation to such processing."],ukt=["Who are we (IVS)?","Services provided by IVS","What personal data do we collect?","The lawful basis for processing your personal data","How is your personal data used?","How long do we hold your data?","Who do we share your personal data with?","Transferring your personal data offshore","Your rights","How IVS protects your personal data","Our contact details and how to ask questions or make a privacy-related complaint","The date this Privacy Policy was last updated"],fkt=[{title:"I. Who We Are?",body:["At IVS we offer you travel-related services so that you can optimize your travel experience. The services offered by IVS range from travel facilitation to Visa Concierge Service."]},{title:"II. Services Provided By IVS",body:[["Visa Concierge Services"]]},{title:"III. What Personal Data Do We Collect?",body:["When we provide our services to you, we may collect the following data categories from you:",["First Name","Last Name","Nationality","Gender","Marital status","Delivery Address or home address","Email address","Mobile Phone Number","Date of birth","Copy of your passport (for example for the form filling service)","Visa Application reference number","Govt ID proof if required."],"If required by the relevant government authorities, we might ask you for sensitive information such as:",["Photo","Race","Religion","Health related information","Biometrics such as your fingerprint","Information about your criminal history","AADHAR","Passport"],"This list is not exhaustive and varies depen
5624ding on the relevant governmentâs requirements and the type of visa.","When you make use of our Wi-Fi/hotspot services provided by us at venues, some information is collected automatically. This information includes e.g., the unique device identifiers known as MAC ID, start and stop timestamps of your connections, amount of traffic and the logout reason type. In some countries, where mandated by law we must keep the logbooks of users of our Wi-Fi. For this purpose, we might request your name, surname, ID number."]},{title:"IV. The Lawful Basis For Processing Your Personal Data",body:["We will use the âperformance of a contractâ or âConsentâ as the lawful basis for the processing of your personal data. This means that when you purchase a service from us, you enter into a contract with us to receive that service. We cannot deliver a service to you without using personal data from you. For example, in order to provide the form filling assistant, we will need a copy of your passport.","If we do not rely on âperformance of a contract,â as a lawful basis, we will ask for your consent for the processing of your personal data.","To the extent that the legal basis for our processing of your personal information is consent, you can anytime withdraw your consent that was given to IVS earlier. However, without your consent in most circumstances we cannot continue to process the services that you have requested. Withdrawal of your consent will not affect the lawfulness of processing before the withdrawal. Regarding marketing purposes, we will not contact you for marketing purposes unless you have given us your explicit permission to do so, nevertheless you have right at any time to withdraw your consent for marketing purposes without effect on our services, provided to you."]},{title:"V. How Do We Use Your Personal Data",body:["We may use your personal data for the following purposes:",["To book an appointment with us.","To identify you.","To enable you to track the progress of your visa application.","To provide you with our services such as form filling, courier delivery, for which we will need a copy of your passport and we will need to know the delivery address.","To send you information that you have requested and that may be of interest to you.","For analytical purposes. We use your personal data to carry out research. We study trends and use personal data with the aim of analysing and continuing to develop our products and services. We may use new technologies as part of this.","For marketing purposes. You receive tips and offers that are appropriate for you and can benefit you as a client. In this context, we use personal data that we received from you, for example when you requested information about sustainable products and services in the past, or because you are already a client of ours. In this context, we may also use personal data that we received from other sources, such as public data sources and marketing agencies. We only do this if it is permitted by law.","If you visit our office, we may capture images of you on camera. This is necessary to prevent burglary, theft and vandalism and to ensure the safety of our clients and employees."],"We process your personal data only for the purpose/s it was collected for. If we plan to use personal data for a different purpose, we will inform you via this Privacy Notice. Please check this page regularly to ensure that youâre happy with any changes."]},{title:"VI. Who Do We Share Your Personal Data With?",body:["We may have to share your personal data to other parties for us to be able to provide you, our service. We will only share your data as part of the performance of our contract with you. We will never sell your personal data to a third party. For example, we will share your personal data with a courier company if you have asked us to deliver your travel document to your home or office, we will need to provide the courier company with your name, delivery address, and a contact phone number.","We only use suppliers and partners that have sufficient privacy and data protection measures in place."]},{title:"VII. Transferring Your Personal Data Offshore",body:["We do not transfer your data outside of India unless required by a third-party providing services you have requested from us."]},{title:"VIII. Your Rights",body:["Under the Indian Data Protection Law (Digital Personal Data Protection Act, 2023), you have rights regarding how your personal data is handled. We enable you to exercise your data protection rights, your rights under the Data Protection law are as below:",["The Right to Access Information on your personal data to know what personal data is being processed, how it is being used, and which third parties it is shared with.","The Right to Correction and Erasure to request corrections to inaccurate or outdated data and request the deletion of personal data (dependent on case to case basis as per our retention policy and/or legal requirements).","The Right to Grievance Redressal to raise complaints about how your personal data is being handled.","The Right to Nominate to de
5624signate a trusted individual to manage your personal data in case of death or incapacity."],"In order to protect your privacy and to authenticate that the request is genuinely from you and not from anyone else masquerading as you, we might request some additional details of your last interaction with us, some details that nobody else would know about. This is to ensure that it is really you who is making the request and not someone else. We will only request enough information to enable us to identify you properly."]},{title:"IX. How IVS Protects Your Personal Data",body:["We are committed to protecting all personal data that we hold about you. When you give us personal data, we take steps to ensure that it is safeguarded and held securely. Any sensitive information is encrypted and protected.","On our websites, when you are on a secure page, a lock icon will appear in the address bar of most web browsers. This means the transfer of information from your browser to our web servers is encrypted to keep it safe."]}];function dkt(){const t=Dn.c(14);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:"var(--page-bg)"},t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"})]})}),t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[2]=r):r=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-8 md:py-12",children:x.jsx("h1",{className:"text-3xl md:text-4xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Privacy Policy"})}),t[3]=i):i=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsxs("div",{className:"relative overflow-hidden",children:[r,i,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[4]=a):a=t[4];let s,o,l;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:"Introduction"}),o=ckt.map(gkt),l=x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"With respect to the services provided by IVS, this Privacy Notice describes:"}),t[5]=s,t[6]=o,t[7]=l):(s=t[5],o=t[6],l=t[7]);let c,u;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs("section",{className:"space-y-3",children:[s,o,l,x.jsx("ul",{className:"list-disc pl-6 space-y-2 text-base leading-relaxed text-(--muted-text)",children:ukt.map(Akt)}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"IVS is committed to ensuring that your privacy is protected. We want to make sure that when we collect information from you then the same is used only in accordance with the applicable laws."})]}),u=fkt.map(hkt),t[8]=c,t[9]=u):(c=t[8],u=t[9]);let f,h;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:"X. Our Contact Details And How To Ask Questions Or Make A Privacy-Related Complaint"}),h=x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"We are committed to protecting your privacy. If you wish to contact us or if you have any questions or wish to lodge a complaint about our privacy practices or the way we have handled your personal data, including if you believe that there has been a possible breach of any relevant privacy principles, you may contact us at:"}),t[10]=f,t[11]=h):(f=t[10],h=t[11]);let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsxs("section",{className:"space-y-3",children:[f,h,x.jsx("div",{className:"rounded-2xl bg-linear-to-r from-(--primary-color) to-(--secondary-color) p-0.5 shadow-sm",children:x.jsxs("div",{className:"rounded-2xl bg-(--surface-bg) px-6 py-5",children:[x.jsx("p",{className:"font-bold text-(--body-text)",children:"Data Protection Officer"}),x.jsx("a",{href:"mailto:[email protected]",className:"text-sm font-medium text-(--secondary-color) hover:underline",children:"[email protected]"})]})})]}),t[12]=p):p=t[12];let A;return t[13]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsxs("div",{style:e,children:[n,a,x.jsxs("div",{className:"mx-auto max-w-6xl space-y-10 px-4 py-12 md:py-15",children:[c,u,p,x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:"XI. The Date This Privacy Policy Was Last Updated"}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:"This Privacy Policy was last updated on 14.03.2026."})]})]})]}),t[13]=A):A=t[13],A}function hkt(t){const{title:e,body:n}=t;return x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:e}),n.map(pkt)]},e)}function pkt(t){return Array.isArray(t)?x.jsx("ul",{className:"list-disc pl-6 space-y-2 text-base leading-relaxed text-(--muted-text)",children:t.map(mkt)},t[0]):x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:t},t)}function mkt(t){return x.jsx("li",{children:t},t)}function Akt(t){return x.jsx("li",{children:t},t)}function gkt(t){return x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:t},t)}const xkt=[{title:"1. Acceptance of Terms",text:"These Terms and Conditions govern the use of Visa Assistance services made available through the IndiGo website and/or mobile application, facilitated in association with IVS. By accessing, browsing, or using the Visa Assistance service, the user expressly agrees to be bound by these Terms and the applicable IVS Privacy Policy. If the User does not agree to these Terms, they must refrain from using the service."},{title:"2. Nature of Arrangement",text:"IndiGo acts solely as a facilitator, enabling Users to access visa assistance. All Visa Assistance services are provided, managed, and executed exclusively by IVS. IndiGo shall have no control over and no responsibility for visa application processing, documentation handling, decisions made by embassies or consulates, or the delivery of services by IVS."},{title:"3. Scope of Services",text:"IVS shall provide visa facilitation services, including application guidance, documentation support, submission coordination, and appointment scheduling where applicable. All services are subject to the requirements, rules, and discretion of the relevant embassies or consulates, as well as applicable laws and regulations."},{title:"4. Eligibility",text:"The User represents and warrants that they are at least 18 years of age, are legally competent to enter into binding agreements, and that all information and documents submitted are true, complete, and accurate."},{title:"5. User Obligations",text:"The User undertakes to provide accurate and complete information and documentation, to comply with all applicable laws and embassy requirements, and to refrain from submitting false, misleading, or fraudulent information. The User further agrees not to misuse the Platform, disrupt services, or attempt unauthorized access to the system."},{title:"6. Data Protection and Privacy",text:"The User consents to the collection, storage, processing, and transfer of personal data by IVS for the purpose of visa processing. Such data may be shared with embassies, consulates, government authorities, and authorized service providers, and shall be governed by the IVS Privacy Policy."},{title:"7. Fees and Payments",text:"All applicable fees shall be displayed on the Platform at the time of booking or application. Payments made are non-refundable. Additional charges may arise due to embassy requirements, requests for additional documentation services. Payments for visa assistance services are collected directly by IVS. IndiGo is not responsible and/or liable for any disputes related to visa assistance services, payments or processing of applications."},{title:"8. Turnaround Time (TAT)",text:"Any timelines communicated for visa processing are indicative estimates only and are subject to the processing timelines of embassies or consulates, public holidays, and other external factors beyond the control of IVS. IVS does not guarantee any specific turnaround time."},{title:"9. Intellectual Property",text:"All intellectual property rights in the Platform and related service content are owned by IndiGo and/
5624or IVS. The User is granted a limited, non-exclusive, non-transferable, and revocable license to access and use the service strictly for personal and non-commercial purposes."},{title:"10. Prohibited Conduct",text:"The User shall not violate any applicable laws or third-party rights, upload or transmit false or harmful content, use automated tools such as bots or scrapers, or interfere with the operation or security of the Platform."},{title:"11. Disclaimer of Warranties",text:"The services are provided on an âas isâ and âas availableâ basis. IVS does not make any representations or warranties, express or implied, including with respect to the accuracy or completeness of information, visa approval outcomes, or adherence to timelines. IndiGo shall not be responsible and/or liable for any direct, indirect, incidental, or consequential damages arising from the use or inability to use or access the visa assistance services."},{title:"12. Limitation of Liability",text:"IndiGo shall not be liable for visa rejection, delay, or cancellation, for errors or omissions by IVS, or for any losses arising from reliance on the services. IVS shall not be liable for decisions made by embassies or consulates or delays due to regulatory or external factors. In no event shall IndiGo be liable for indirect, incidental, or consequential damages, including loss of profits, business, or opportunities."},{title:"13. Visa Decision Disclaimer",text:"The User acknowledges that visa approval or refusal is solely at the discretion of the relevant embassy or consulate. IVS have no influence over such decisions, and the embassy may request additional documentation or reject applications without providing reasons."},{title:"14. Suspension and Termination",text:"IVS reserves the right to suspend or terminate access to services in cases of breach of these Terms, fraudulent or suspicious activity, or non-compliance with applicable laws."},{title:"15. Third-Party Links",text:"The Platform may redirect Users to IVS. IndiGo shall not be responsible for the content, accuracy, or practices of such external platforms."},{title:"16. Indemnity",text:"The User agrees to indemnify and hold harmless IndiGo, along with their affiliates, employees, and agents, from any claims, losses, or liabilities arising out of a breach of these Terms, violation of applicable laws, or misuse of the service."},{title:"17. Governing Law and Jurisdiction",text:"These Terms shall be governed by the laws of India. Any disputes arising out of or in connection with these Terms shall be subject to the exclusive jurisdiction of the courts located in New Delhi."},{title:"18. Modifications",text:"IVS reserves the right to amend or modify these Terms at any time. Continued use of the service after such changes shall constitute acceptance of the revised Terms."},{title:"19. General Provisions",text:"If any provision of these Terms is held to be invalid or unenforceable, the remaining provisions shall continue to be valid and enforceable. Failure to enforce any provision shall not constitute a waiver of rights. These Terms constitute the entire agreement between the User and the relevant parties with respect to the subject matter."},{title:"20. Important Notices",text:"Visa processing shall commence only upon submission of complete documentation. Embassy working schedules and public holidays may impact processing timelines. Applications submitted on non-working days will be processed on the next working day. Users are strongly advised to apply well in advance of their intended travel date."},{title:"21. User Acknowledgment",text:"By proceeding with the Visa Assistance, the User confirms that they have read, understood, and agreed to these Terms, acknowledge that IVS is the sole service provider, and accept all risks associated with third-party processing and decision-making."}];function vkt(){const t=Dn.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:"var(--page-bg)"},t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"})]})}),t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[2]=r):r=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-8 md:py-12",children:[x.jsx("h1",{className:"text-3xl md:text-4xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Terms & Conditions"}),x.jsx("p",{className:"mt-2 text-center text-xs md:text-sm text-white/80 tracking-wide",children:"Visa Assistance"})]}),t[3]=i):i=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsxs("div",{className:"relative overflow-hidden",children:[r,i,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[4]=a):a=t[4];let s;return t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsxs("div",{style:e,children:[n,a,x.jsx("div",{className:"mx-auto max-w-6xl space-y-8 px-4 py-12 md:py-15",children:xkt.map(ykt)})]}),t[5]=s):s=t[5],s}function ykt(t){const{title:e,text:n}=t;return x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:e}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:n})]},e)}const _kt=[{title:"Tourist / Visitor Visa",text:"Typically issued for leisure travel or family visits, these visas are non-convertible and often single-entry permits. Holders are strictly prohibited from engaging in paid work or long-term study, ensuring the visit remains recreational in nature."},{title:"Business Visa",text:"Granted for short-term activities like meetings, conferences, or trade negotiations, but does not permit local employment. It is designed to facilitate international business relations without allowing salary-based work in the host country."},{title:"eVisa (Electronic Visa)",text:"A visa that is applied for and processed online, without the applicant necessarily needing to visit an embassy or consulate to submit a traditional paper visa application."},{title:"eVisa on Arrival",text:"Generally means a visa process where the traveller completes an online application before travelling, receives a pre-approval/electronic authorization, and the actual visa is issued or finalized upon arrival at the destination."},{title:"Sticker Visa",text:"A sticker visa is a physical visa sticker that is placed inside your passport by the embassy or consulate."}];function bkt(){const t=Dn.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:"var(--page-bg)"},t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"})]})}),t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[2]=r):r=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-8 md:py-12",children:[x.jsx("h1",{className:"text-3xl md:text-4xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Visa Types"}),x.jsx("p",{className:"mt-2 text-center text-xs md:text-sm text-white/80 tracking-wide",children:"Basic Descriptions of Visa Types"})]}),t[3]=i):i=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsxs("div",{className:"relative overflow-hidden",children:[r,i,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[4]=a):a=t[4];let s;return t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsxs("div",{style:e,children:[n,a,x.jsx("div",{className:"mx-auto max-w-6xl grid gap-6 md:grid-cols-2 px-4 py-12 md:py-15",children:_kt.map(wkt)})]}),t[5]=s):s=t[5],s}function wkt(t){const{title:e,text:n}=t;return x.jsx("div",{className:"rounded-2xl bg-linear-to-r from-(--primary-color) to-(--secondary-color) p-0.5 shadow-sm",children:x.jsxs("div",{className:"h-full rounded-2xl bg-(--surface-bg) px-6 py-5 space-y-2",children:[x.jsx("h2",{className:"text-lg md:text-xl font-bold text-(--body-text)",children:e}),x.jsx("p",{className:"text-base leading-relaxed text-(--muted-text)",children:n})]})},e)}
5624function Skt(){const t=Dn.c(13),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--page-bg)"},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),i=x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]!==e?(a=()=>e(-1),t[3]=e,t[4]=a):a=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(Ap,{size:18,weight:"bold"}),t[5]=s):s=t[5];let o;t[6]!==a?(o=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[r,i,x.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-sm font-medium text-(--body-text) hover:text-(--secondary-color) transition-colors cursor-pointer",children:[s," Back"]})]})}),t[6]=a,t[7]=o):o=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[8]=l):l=t[8];let c;t[9]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-20 md:py-28",children:[x.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Privacy Policy"}),x.jsx("p",{className:"mt-4 text-center text-sm md:text-base text-white/80 tracking-wide",children:"Visa Assistance"})]}),t[9]=c):c=t[9];let u;t[10]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs("div",{className:"relative overflow-hidden",children:[l,c,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[10]=u):u=t[10];let f;return t[11]!==o?(f=x.jsxs("div",{style:n,children:[o,u]}),t[11]=o,t[12]=f):f=t[12],f}function Tkt(){const t=Dn.c(13),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--page-bg)"},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),i=x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]!==e?(a=()=>e(-1),t[3]=e,t[4]=a):a=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(Ap,{size:18,weight:"bold"}),t[5]=s):s=t[5];let o;t[6]!==a?(o=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[r,i,x.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-sm font-medium text-(--body-text) hover:text-(--secondary-color) transition-colors cursor-pointer",children:[s," Back"]})]})}),t[6]=a,t[7]=o):o=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[8]=l):l=t[8];let c;t[9]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-20 md:py-28",children:[x.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Terms & Conditions"}),x.jsx("p",{className:"mt-4 text-center text-sm md:text-base text-white/80 tracking-wide",children:"Visa Assistance"})]}),t[9]=c):c=t[9];let u;t[10]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs("div",{className:"relative overflow-hidden",children:[l,c,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[10]=u):u=t[10];let f;return t[11]!==o?(f=x.jsxs("div",{style:n,children:[o,u]}),t[11]=o,t[12]=f):f=t[12],f}const Ekt=[{title:"1. IVS Expands Visa Assistance Network Across Asia-Pacific",text:"IVS announced the exp
5624ansion of its visa assistance network to additional destinations across the Asia-Pacific region, enabling travel partners to process a wider range of tourist, business and transit visa applications through a single platform."},{title:"2. IVS Launches B2B Visa Processing Platform for Travel Agencies",text:"IVS launched its dedicated B2B platform, giving travel agencies centralised document collection, real-time application tracking and consolidated billing for every visa application they submit."},{title:"3. IVS Introduces Digital Document Verification",text:"IVS introduced digital document verification for visa applications, reducing rejection caused by incomplete or invalid paperwork and shortening the time taken to prepare an application for submission."},{title:"4. Media Enquiries",text:"For media enquiries, interview requests or brand assets, write to [email protected]."}];function Mkt(){const t=Dn.c(14),e=Ss();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--page-bg)"},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("img",{src:"/images/app_logo_black.svg",alt:"IVS",className:"h-12 object-contain dark:hidden"}),i=x.jsx("img",{src:"/images/app_logo_white.svg",alt:"IVS",className:"h-12 object-contain hidden dark:block"}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]!==e?(a=()=>e(-1),t[3]=e,t[4]=a):a=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(Ap,{size:18,weight:"bold"}),t[5]=s):s=t[5];let o;t[6]!==a?(o=x.jsx("div",{className:"bg-(--surface-bg)",children:x.jsxs("div",{className:"px-10 md:px-16 py-5 border-b border-(--surface-border) max-w-7xl mx-auto flex items-center justify-between",children:[r,i,x.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-sm font-medium text-(--body-text) hover:text-(--secondary-color) transition-colors cursor-pointer",children:[s," Back"]})]})}),t[6]=a,t[7]=o):o=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),t[8]=l):l=t[8];let c;t[9]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-8 md:px-16 py-20 md:py-28",children:[x.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight text-center",children:"Press Release"}),x.jsx("p",{className:"mt-4 text-center text-sm md:text-base text-white/80 tracking-wide",children:"Media"})]}),t[9]=c):c=t[9];let u;t[10]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs("div",{className:"relative overflow-hidden",children:[l,c,x.jsx("div",{className:"relative z-10 h-1 w-full",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]}),t[10]=u):u=t[10];let f;t[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx("div",{className:"mx-auto max-w-6xl space-y-8 px-4 py-12 md:py-15",children:Ekt.map(Ckt)}),t[11]=f):f=t[11];let h;return t[12]!==o?(h=x.jsxs("div",{style:n,children:[o,u,f]}),t[12]=o,t[13]=h):h=t[13],h}function Ckt(t){const{title:e,text:n}=t;return x.jsxs("section",{className:"space-y-3",children:[x.jsx("h2",{className:"text-xl md:text-2xl font-bold text-(--body-text)",children:e}),x.jsx("p",{className:"text-base leading-relaxed text-(--body-text)",children:n})]},e)}function Nkt(){const t=Dn.c(6);Ss();let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:"var(--page-bg)"},t[0]=e):e=t[0];let n,r;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(90deg,var(--secondary-color)_30%,var(--primary-color)_100%)]"}),r=x.jsx("div",{className:"absolute -top-24 -left-24 w-96 h-96 rounded-full bg-white/10 blur-3xl animate-pulse"}),t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx("div",{className:"absolute -bottom-32 -right-20 w-[28rem] h-[28rem] rounded-full bg-white/10 blur-3xl animate-pulse",style:{animationDelay:"1.2s"}}),t[3]=i):i=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsxs("div",{className:"relative z-10 px-6 py-24 md:py-32 text-center max-w-3xl mx-auto",children:[x.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-full bg-white/15 backdrop-blur-sm mb-8 animate-bounce",children:x.jsx(gfe,{size:38,color:"white",weight:"duotone"})}),x.jsx("h1",{className:"text-5xl md:text-7xl font-black uppercase leading-none text-white tracking-tight",children:"Coming Soon"}),x.jsx("div",{className:"mt-6 h-1 w-24 mx-auto rounded-full bg-white/60"}),x.jsx("p",{className:"mt-8 text-base md:text-lg leading-relaxed text-white/85",children:"Something smarter is on the way. Stay tuned!"})]}),t[4]=a):a=t[4];let s;return t[5]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx("div",{className:"min-h-screen flex flex-col",style:e,children:x.jsxs("div",{className:"relative flex-1 overflow-hidden flex items-center justify-center",children:[n,r,i,a,x.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 h-1",style:{background:"linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%)"}})]})}),t[5]=s):s=t[5],s}function Rkt(){const t=Dn.c(29),e=Dd();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(hs,{path:"/",element:x.jsx(lVe,{})}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(hs,{path:Zn.AGENT_REGISTRATION,element:x.jsx(VZe,{})}),t[1]=r):r=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(hs,{path:Zn.SEARCH_PAGE,element:x.jsx(V_t,{})}),t[2]=i):i=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(hs,{path:Zn.SEARCH_RESULTS_PAGE,element:x.jsx(l6t,{})}),t[3]=a):a=t[3];let s;t[4]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(hs,{path:Zn.BOOKING_PAGE,element:x.jsx(Bbt,{})}),t[4]=s):s=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(hs,{path:Zn.ACCOUNTS,element:x.jsx(wPt,{})}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(hs,{path:Zn.INVOICE,element:x.jsx(MPt,{})}),t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(hs,{path:Zn.CUSTOMER_INVOICE,element:x.jsx(qPt,{})}),t[7]=c):c=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx(hs,{path:Zn.
5624VISA_ORDER_DETAILS,element:x.jsx(OPt,{})}),t[8]=u):u=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(hs,{path:Zn.PG.RAZORPAY_PAYMENT,element:x.jsx(VPt,{})}),t[9]=f):f=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(hs,{path:Zn.PG.PAYMENT_SUCCESS,element:x.jsx(jPt,{})}),t[10]=h):h=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx(hs,{path:Zn.PG.PAYMENT_FAILED,element:x.jsx(HPt,{})}),t[11]=p):p=t[11];let A;t[12]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx(hs,{path:"/pageone",element:x.jsx(rCe,{})}),t[12]=A):A=t[12];let g;t[13]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx(hs,{path:"/pagetwo",element:x.jsx(iCe,{})}),t[13]=g):g=t[13];let w;t[14]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx(hs,{path:"/components",element:x.jsx(yZe,{})}),t[14]=w):w=t[14];let T;t[15]===Symbol.for("react.memo_cache_sentinel")?(T=x.jsx(hs,{path:Zn.CONTACT_US,element:x.jsx(nkt,{})}),t[15]=T):T=t[15];let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx(hs,{path:Zn.ABOUT,element:x.jsx(skt,{})}),t[16]=C):C=t[16];let M;t[17]===Symbol.for("react.memo_cache_sentinel")?(M=x.jsx(hs,{path:Zn.PRIVACY_POLICY,element:x.jsx(dkt,{})}),t[17]=M):M=t[17];let D;t[18]===Symbol.for("react.memo_cache_sentinel")?(D=x.jsx(hs,{path:Zn.PRIVACY_POLICY_IVS,element:x.jsx(Skt,{})}),t[18]=D):D=t[18];let k;t[19]===Symbol.for("react.memo_cache_sentinel")?(k=x.jsx(hs,{path:Zn.TERMS_CONDITIONS,element:x.jsx(vkt,{})}),t[19]=k):k=t[19];let I;t[20]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(hs,{path:Zn.TERMS_CONDITIONS_IVS,element:x.jsx(Tkt,{})}),t[20]=I):I=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=x.jsx(hs,{path:Zn.VISA_TYPES_STATIC,element:x.jsx(bkt,{})}),t[21]=L):L=t[21];let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsx(hs,{path:Zn.PRESS_RELEASE,element:x.jsx(Mkt,{})}),t[22]=O):O=t[22];let B;t[23]===Symbol.for("react.memo_cache_sentinel")?(B=x.jsx(hs,{path:Zn.COMING_SOON,element:x.jsx(Nkt,{})}),t[23]=B):B=t[23];let G;t[24]!==e?(G=x.jsxs(Lwe,{location:e,children:[n,r,i,a,s,o,l,c,u,f,h,p,A,g,w,T,C,M,D,k,I,L,O,B]},e.pathname),t[24]=e,t[25]=G):G=t[25];let j;return t[26]!==e.pathname||t[27]!==G?(j=x.jsx(f6t,{children:x.jsx(Np,{mode:"wait",children:x.jsx(OZe,{children:G},e.pathname)})}),t[26]=e.pathname,t[27]=G,t[28]=j):j=t[28],j}class Dkt extends wt.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,n){console.error(e,n)}render(){const{hasError:e}=this.state,{children:n}=this.props;return e?x.jsx("section",{className:"app-container p-3 mt-5 mb-5",children:x.jsxs("div",{className:"text-center",children:[x.jsx("h4",{children:"Oops"}),x.jsx("p",{className:"mt-3 mb-3",children:"Something went wrong"})]})}):n}}function Pkt(){const t=Dn.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx(x.Fragment,{children:x.jsx(Q1e,{children:x.jsx(Dkt,{children:x.jsx(aSe,{children:x.jsx(Rkt,{})})})})}),t[0]=e):e=t[0],e}yOe();Obe.createRoot(document.getElementById("root")).render(x.jsx(b.StrictMode,{children:x.jsx(Pkt,{})}))});export default kkt();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.