PageSourceSearch

https://con-el-papa.netlify.app/assets/index-CRsTFQNr.js

js con-el-papa.netlify.app collected 2026-10-03 10:35:53 UTC 1,610,657 bytes, 4,372 lines download raw bytes

vendor: 20,667 bytes, lines 1-3
1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},I={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=I,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var ee=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],L=-1;function re(e){return{current:e}}function ie(e){0>L||(e.current=ne[L],ne[L]=null,L--)}function R(e,t){L++,ne[L]=e.current,e.current=t}var ae=re(null),z=re(null),oe=re(null),se=re(null);function B(e,t){switch(R(oe,t),R(z,e),R(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Yd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ie(ae),R(ae,e)}function ce(){ie(ae),ie(z),ie(oe)}function le(e){e.memoizedState!==null&&R(se,e);var t=ae.current,n=Yd(t,e.type);t!==n&&(R(z,e),R(ae,n))}function ue(e){z.current===e&&(ie(ae),ie(z)),se.current===e&&(ie(se),ap._currentValue=te)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1<e.stack.indexOf(`
2    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3`+de+e+fe}var V=!1;function me(e,t){if(!e||V)return``;V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 6,578 bytes, lines 3-8
3else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4`),l=s.split(`
5`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{V=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return pe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7Error generating stack: `+e.message+`
8`+e.stack}}var H=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,U=t.unstable_cancelCallback,ve=t.unstable_shouldYield,ye=t.unstable_requestPaint,be=t.unstable_now,xe=t.unstable_getCurrentPriorityLevel,Se=t.unstable_ImmediatePriority,Ce=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,Te=t.unstable_LowPriority,Ee=t.unstable_IdlePriority,De=t.log,Oe=t.unstable_setDisableYieldValue,ke=null,Ae=null;function je(e){if(typeof De==`function`&&Oe(e),Ae&&typeof Ae.setStrictMode==`function`)try{Ae.setStrictMode(ke,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var Ie=256,Le=262144,Re=4194304;function ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function W(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ze(n))):i=ze(o):i=ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ze(n))):i=ze(o)):i=ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 He(){var e=Re;return Re<<=1,!(Re&62914560)&&(Re=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Me(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ke(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ke(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Me(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Je(e,t){var n=t&-t;return n=n&42?1:Ye(n),(n&(e.suspendedLanes|t))===0?n:0}function Ye(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ze(){var e=I.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function Qe(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var $e=Math.random().toString(36).slice(2),et=`__reactFiber$`+$e,tt=`__reactProps$`+$e,nt=`__reactContainer$`+$e,rt=`__reactEvents$`+$e,it=`__reactListeners$`+$e,at=`__reactHandles$`+$e,ot=`__reactResources$`+$e,st=`__reactMarker$`+$e;function ct(e){delete e[et],delete e[tt],delete e[rt],delete e[it],delete e[at]}function lt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vf(e);e!==null;){if(n=e[et])return n;e=vf(e)}return t}e=n,n=e.parentNode}return null}function ut(e){if(e=e[et]||e[nt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ft(e){var t=e[ot];return t||=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function pt(e){e[st]=!0}var mt=new Set,ht={};function gt(e,t){_t(e,t),_t(e+`Capture`,t)}function _t(e,t){for(ht[e]=t,e=0;e<t.length;e++)mt.add(t[e])}var vt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
8037D\\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={},bt={};function xt(e){return H.call(bt,e)?!0:H.call(yt,e)?!1:vt.test(e)?bt[e]=!0:(yt[e]=!0,!1)}function St(e,t,n){if(xt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ct(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Tt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){if(!e._valueTracker){var t=Et(e)?`checked`:`value`;e._valueTracker=Dt(e,t,``+e[t])}}function kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Et(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function At(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var jt=/[\n"\\]/g;function Mt(e){return e.replace(jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Nt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Tt(t)):e.value!==``+Tt(t)&&(e.value=``+Tt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ft(e,o,Tt(n)):Ft(e,o,Tt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Tt(s):e.removeAttribute(`name`)}function Pt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ot(e);return}n=n==null?``:``+Tt(n),t=t==null?n:``+Tt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ot(e)}function Ft(e,t,n){t===`number`&&At(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function It(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lt(e,t,n){if(t!=null&&(t=``+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Tt(n)}function Rt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ee(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 133,569 bytes, lines 8-9
8n=Tt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ot(e)}function zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bt=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 Vt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Bt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ht(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Vt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Vt(e,o,t[o])}function Ut(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 Wt=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`],[`colorRendering`,`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`]]),Gt=/^[\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 Kt(e){return Gt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function qt(){}var Jt=null;function Yt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xt=null,Zt=null;function Qt(e){var t=ut(e);if(t&&(e=t.stateNode)){var n=e[tt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Nt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Mt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[tt]||null;if(!a)throw Error(i(90));Nt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&kt(r)}break a;case`textarea`:Lt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&It(e,!!n.multiple,t,!1)}}}var $t=!1;function en(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(Xt!==null||Zt!==null)&&(Tu(),Xt&&(t=Xt,e=Zt,Zt=Xt=null,Qt(t),e)))for(t=0;t<e.length;t++)Qt(e[t])}}function tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[tt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var nn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,`passive`,{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return cn=i.slice(e,1<r?1-r:void 0)}function un(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dn(){return!0}function fn(){return!1}function pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?dn:fn,this.isPropagationStopped=fn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=dn)},persist:function(){},isPersistent:dn}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=pn(mn),gn=f({},mn,{view:0,detail:0}),_n=pn(gn),vn,yn,bn,xn=f({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==bn&&(bn&&e.type===`mousemove`?(vn=e.screenX-bn.screenX,yn=e.screenY-bn.screenY):yn=vn=0,bn=e),vn)},movementY:function(e){return`movementY`in e?e.movementY:yn}}),Sn=pn(xn),Cn=pn(f({},xn,{dataTransfer:0})),wn=pn(f({},gn,{relatedTarget:0})),Tn=pn(f({},mn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=pn(f({},mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Dn=pn(f({},mn,{data:0})),On={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},kn={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`},An={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=An[e])?!!t[e]:!1}function Mn(){return jn}var Nn=pn(f({},gn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=un(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return e.type===`keypress`?un(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?un(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Pn=pn(f({},xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=pn(f({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),In=pn(f({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=pn(f({},xn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=pn(f({},mn,{newState:0,oldState:0})),zn=[9,13,27,32],Bn=nn&&`CompositionEvent`in window,Vn=null;nn&&`documentMode`in document&&(Vn=document.documentMode);var Hn=nn&&`TextEvent`in window&&!Vn,Un=nn&&(!Bn||Vn&&8<Vn&&11>=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Un&&t.locale!==`ko`?null:t.data;default:return null}}var Zn={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 Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Zn[e.type]:t===`textarea`}function $n(e,t,n,r){Xt?Zt?Zt.push(r):Zt=[r]:Xt=r,t=Md(t,`onChange`),0<t.length&&(n=new hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var er=null,tr=null;function nr(e){Td(e,0)}function rr(e){if(kt(dt(e)))return e}function ir(e,t){if(e===`change`)return t}var ar=!1;if(nn){var or;if(nn){var sr=`oninput`in document;if(!sr){var cr=document.createElement(`div`);cr.setAttribute(`oninput`,`return;`),sr=typeof cr.oninput==`function`}or=sr}else or=!1;ar=or&&(!document.documentMode||9<document.documentMode)}function lr(){er&&(er.detachEvent(`onpropertychange`,ur),tr=er=null)}function ur(e){if(e.propertyName===`value`&&rr(tr)){var t=[];$n(t,tr,e,Yt(e)),en(nr,t)}}function dr(e,t,n){e===`focusin`?(lr(),er=t,tr=n,er.attachEvent(`onpropertychange`,ur)):e===`focusout`&&lr()}function fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return rr(tr)}function pr(e,t){if(e===`click`)return rr(t)}function mr(e,t){if(e===`input`||e===`change`)return rr(t)}function hr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var gr=typeof Object.is==`function`?Object.is:hr;function _r(e,t){if(gr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!H.call(t,i)||!gr(e[i],t[i]))return!1}return!0}function vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yr(e,t){var n=vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=vr(n)}}function br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Cr=nn&&`documentMode`in document&&11>=document.documentMode,wr=null,Tr=null,Er=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dr||wr==null||wr!==At(r)||(r=wr,`selectionStart`in r&&Sr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&_r(Er,r)||(Er=r,r=Md(Tr,`onSelect`),0<r.length&&(t=new hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ar={animationend:kr(`Animation`,`AnimationEnd`),animationiteration:kr(`Animation`,`AnimationIteration`),animationstart:kr(`Animation`,`AnimationStart`),transitionrun:kr(`Transition`,`TransitionRun`),transitionstart:kr(`Transition`,`TransitionStart`),transitioncancel:kr(`Transition`,`TransitionCancel`),transitionend:kr(`Transition`,`TransitionEnd`)},jr={},Mr={};nn&&(Mr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),`TransitionEvent`in window||delete Ar.transitionend.transition);function Nr(e){if(jr[e])return jr[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mr)return jr[e]=t[n];return e}var Pr=Nr(`animationend`),Fr=Nr(`animationiteration`),Ir=Nr(`animationstart`),Lr=Nr(`transitionrun`),Rr=Nr(`transitionstart`),zr=Nr(`transitioncancel`),Br=Nr(`transitionend`),Vr=new Map,Hr=`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(` `);Hr.push(`scrollEnd`);function Ur(e,t){Vr.set(e,t),gt(t,[e])}var Wr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Gr=[],Kr=0,qr=0;function Jr(){for(var e=Kr,t=qr=Kr=0;t<e;){var n=Gr[t];Gr[t++]=null;var r=Gr[t];Gr[t++]=null;var i=Gr[t];Gr[t++]=null;var a=Gr[t];if(Gr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Qr(n,i,a)}}function Yr(e,t,n,r){Gr[Kr++]=e,Gr[Kr++]=t,Gr[Kr++]=n,Gr[Kr++]=r,qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Xr(e,t,n,r){return Yr(e,t,n,r),$r(e)}function Zr(e,t){return Yr(e,null,null,t),$r(e)}function Qr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Me(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function $r(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,n,r){return new ti(e,t,n,r)}function ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ii(e,t){var n=e.alternate;return n===null?(n=ni(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ai(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ri(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,ae.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ni(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return si(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ni(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ni(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ni(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ni(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function si(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function ci(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function li(e){var t=ni(18,null,null,0);return t.stateNode=e,t}function ui(e,t,n){return t=ni(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var di=new WeakMap;function fi(e,t){if(typeof e==`object`&&e){var n=di.get(e);return n===void 0?(t={value:e,source:t,stack:ge(t)},di.set(e,t),t):n}return{value:e,source:t,stack:ge(t)}}var G=[],pi=0,mi=null,hi=0,gi=[],_i=0,vi=null,yi=1,bi=``;function xi(e,t){G[pi++]=hi,G[pi++]=mi,mi=e,hi=t}function Si(e,t,n){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,vi=e;var r=yi;e=bi;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var a=32-Me(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yi=1<<32-Me(t)+i|n<<i|r,bi=a+e}else yi=1<<a|n<<i|r,bi=e}function Ci(e){e.return!==null&&(xi(e,1),Si(e,1,0))}function wi(e){for(;e===mi;)mi=G[--pi],G[pi]=null,hi=G[--pi],G[pi]=null;for(;e===vi;)vi=gi[--_i],gi[_i]=null,bi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null}function Ti(e,t){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,yi=t.id,bi=t.overflow,vi=e}var Ei=null,Di=null,Oi=!1,ki=null,Ai=!1,ji=Error(i(519));function Mi(e){throw Ri(fi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ji}function Ni(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[et]=e,t[tt]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),Pt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Rt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Rd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||Mi(e,!0)}function Pi(e){for(Ei=e.return;Ei;)switch(Ei.tag){case 5:case 31:case 13:Ai=!1;return;case 27:case 3:Ai=!0;return;default:Ei=Ei.return}}function Fi(e){if(e!==Ei)return!1;if(!Oi)return Pi(e),Oi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Xd(e.type,e.memoizedProps)),n=!n),n&&Di&&Mi(e),Pi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=_f(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=_f(e)}else t===27?(t=Di,af(e.type)?(e=gf,gf=null,Di=e):Di=t):Di=Ei?hf(e.stateNode.nextSibling):null;return!0}function Ii(){Di=Ei=null,Oi=!1}function Li(){var e=ki;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),ki=null),e}function Ri(e){ki===null?ki=[e]:ki.push(e)}var zi=re(null),Bi=null,Vi=null;function Hi(e,t,n){R(zi,t._currentValue),t._currentValue=n}function Ui(e){e._currentValue=zi.current,ie(zi)}function Wi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Gi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Wi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Wi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ki(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;gr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}a=a.return}e!==null&&Gi(t,e,n,r),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!gr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){Bi=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yi(e){return Zi(Bi,e)}function Xi(e,t){return Bi===null&&Ji(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(i(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var Qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=_d(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var da=F.S;F.S=function(e,t){au=be(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=re(null);function pa(){var e=fa.current;return e===null?Bl.pooledCache:e}function ma(e,t){t===null?R(fa,fa.current):R(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qt,qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(qt,qt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ii(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ci(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=oi(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ui(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=si(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ci(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=oi(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=ui(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(ee(t)||M(t))return t=si(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,Xi(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(ee(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,Xi(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(ee(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,Xi(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Oi&&xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Oi&&xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Oi&&xi(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Oi&&xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oi&&xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oi&&xi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(ee(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Pa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=re(null),qa=re(0);function Ja(e,t){e=Jl,R(qa,e),R(Ka,t),Jl=e|t.baseLanes}function Ya(){R(qa,Jl),R(Ka,Ka.current)}function Xa(){Jl=qa.current,ie(Ka),ie(qa)}var Za=re(null),Qa=null;function $a(e){var t=e.alternate;R(io,io.current&1),R(Za,e),Qa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Qa=e)}function eo(e){R(io,io.current),R(Za,e),Qa===null&&(Qa=e)}function to(e){e.tag===22?(R(io,io.current),R(Za,e),Qa===null&&(Qa=e)):no(e)}function no(){R(io,io.current),R(Za,Za.current)}function ro(e){ie(Za),Qa===e&&(Qa=null),ie(io)}var io=re(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ff(n)||pf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=0,so=null,co=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){throw Error(i(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gr(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return oo=a,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Ls:Rs,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){F.H=Is;var t=co!==null&&co.next!==null;if(oo=0,lo=co=so=null,uo=!1,ho=0,go=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&qi(e)&&(tc=!0))}function So(e,t,n,r){so=e;var a=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=a)throw Error(i(301));if(a+=1,lo=co=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=zs,o=t(n,r)}while(fo);return o}function Co(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(co===null?null:co.memoizedState)!==e&&(so.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}oo=0,lo=co=so=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?so.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(co===null){var e=so.alternate;e=e===null?null:e.memoizedState}else e=co.next;var t=lo===null?so.memoizedState:lo.next;if(t!==null)lo=t,co=e;else{if(e===null)throw so.alternate===null?Error(i(467)):Error(i(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},lo===null?so.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=xa(go,e,t),t=so,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Yi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=so.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=so.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ko(),so.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),co,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(oo&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===oa&&(d=!0);else if((oo&p)===p){u=u.next,p===oa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,so.lanes|=p,Xl|=p;f=u.action,po&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,so.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!gr(o,e.memoizedState)&&(tc=!0,d&&(n=sa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);gr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=so,a=Oo(),o=Oi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!gr((co||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||oo&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=so.updateQueue,t===null?(t=ko(),so.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gr(e,n)}catch{return!0}}function Ho(e){var t=Zr(e,2);t!==null&&bu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,co,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(Oi){var n=Bl.formState;if(n!==null){a:{var r=so;if(Oi){if(Di){b:{for(var i=Di,a=Ai;i.nodeType!==8;){if(!a){i=null;break b}if(i=hf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Di=hf(i.nextSibling),r=i.data===`F!`;break a}}Mi(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,so,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,so,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,so,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),co,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===ga?va:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(so.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=co;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=so.updateQueue,t===null&&(t=ko(),so.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();so.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;co!==null&&r!==null&&yo(r,co.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(so.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){so.flags|=4;var t=so.updateQueue;if(t===null)t=ko(),so.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||oo&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),so.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return gr(n,t)?n:Ka.current===null?!(oo&42)||oo&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),so.lanes|=e,Xl|=e,t):(e=vs(e,n,r),gr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};F.T=s,Ms(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,te,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(ap)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Xr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,gr(s,o))return Yr(e,t,i,0),Bl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(Oi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,so,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,so)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),co.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return co===null?vs(n,e,t):ys(n,co.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return co===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(bu(t,e,n),za(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!_r(n,r)||!_r(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Wr(e)}function Ks(e){console.error(e)}function qs(e){Wr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=La(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ki(t,n,a,!0),n=Za.current,n!==null){switch(n.tag){case 31:case 13:return Qa===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(Oi)return t=Za.current,t===null?(r!==ji&&(t=Error(i(423),{cause:r}),Ri(fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=fi(r,n),a=Xs(e.stateNode,r,a),Ba(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ji&&(e=Error(i(422),{cause:r}),Ri(fi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=fi(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=fi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Ba(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ji(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&s&&Ci(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ri(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?_r:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ii(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(_r(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),to(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),no(t)):(ma(t,a.cachePool),Ja(t,a),no(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),to(t),e!==null&&Ki(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Ma(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,ro(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Oi){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(eo(t),(e=Di)?(e=df(e,Ai),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(eo(t),a)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tc||Ki(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=Bl,r!==null&&(s=Je(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Zr(e,s),bu(r,e,s),ec;Mu(),t=uc(e,t,n)}else e=o.treeContext,Di=hf(s.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ii(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Ji(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Ji(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!tc?(To(e,t,a),Dc(e,t,a)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Ji(t),t.stateNode===null){var a=ei,o=n.contextType;typeof o==`object`&&o&&(a=Yi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?Yi(o):ei,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ei,typeof u==`object`&&u&&(o=Yi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Pa||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ei,typeof l==`object`&&l&&(c=Yi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Pa||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ii(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ha()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(io.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Oi){if(a?$a(t):no(t),(e=Di)?(e=df(e,Ai),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=li(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return pf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(no(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=si(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):($a(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?($a(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(no(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=si(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(no(t),t.child=e.child,t.flags|=128,t=null);else if($a(t),pf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ri({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ki(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=Je(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Zr(e,r),bu(s,e,r),ec;ff(c)||Mu(),t=Cc(e,t,n)}else ff(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Di=hf(c.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(no(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ii(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=si(c,a,n,null),c.flags|=2):c=ii(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):($a(t),n=e.child,e=n.sibling,n=ii(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ni(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Ma(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=io.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,R(io,o),nc(e,t,r,n),r=Oi?hi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ki(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ii(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ii(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&qi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:B(t,t.stateNode.containerInfo),Hi(t,ta,e.memoizedState.cache),Ii();break;case 27:case 5:le(t);break;case 4:B(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($a(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):($a(t),t.flags|=128,null);$a(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ki(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),R(io,io.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Hi(t,ta,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,Oi&&t.flags&1048576&&Si(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)ri(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=rc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(B(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Hi(t,ta,r),r!==o.cache&&Gi(t,[ta],n,!0),Ha(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==a){a=fi(Error(i(424)),t),Ri(a),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Di=hf(e.firstChild),Ei=t,Oi=!0,ki=null,Ai=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=If(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oi||(n=t.type,e=t.pendingProps,r=qd(oe.current).createElement(n),r[et]=t,r[tt]=e,Vd(r,n,e),pt(r),t.stateNode=r):t.memoizedState=If(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&Oi&&(r=t.stateNode=yf(t.type,t.pendingProps,oe.current),Ei=t,Ai=!0,a=Di,af(t.type)?(gf=a,Di=hf(r.firstChild)):Di=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oi&&((a=r=Di)&&(r=lf(r,t.type,t.pendingProps,Ai),r===null?a=!1:(t.stateNode=r,Ei=t,Di=hf(r.firstChild),Ai=!1,a=!0)),a||Mi(t)),le(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Xd(a,o)?r=null:s!==null&&Xd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=bo(e,t,Co,null,null,n),ap._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Oi&&((e=n=Di)&&(n=uf(n,t.pendingProps,Ai),n===null?e=!1:(t.stateNode=n,Ei=t,Di=null,e=!0)),e||Mi(t)),null;case 13:return bc(e,t,n);case 4:return B(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Hi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Yi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Ji(t),r=Yi(ta),e===null?(a=pa(),a===null&&(a=Bl,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Hi(t,ta,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Hi(t,ta,r),r!==a.cache&&Gi(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hi(t,ta,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Ca=ya,_a}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(ku())e.flags|=8192;else throw Ca=ya,_a}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:He(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!Oi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ui(ta),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(ue(t),n=oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=ae.current,Fi(t)?Ni(t,e):(e=yf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(ue(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=ae.current,Fi(t))Ni(t,o);else{var s=qd(oe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[et]=t,o[tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Vd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ei,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Rd(e.nodeValue,n)),e||Mi(t,!0)}else e=qd(e).createTextNode(r),e[et]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[et]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[et]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return ce(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(ie(io),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return R(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&be()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*be()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=be(),e.sibling=null,n=io.current,R(io,a?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ie(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(io),null;case 4:return ce(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ie(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),ce();break;case 26:case 27:case 5:ue(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ie(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ie(fa);break;case 24:Ui(ta)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Hd(r,e.type,n,t),r[tt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&af(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&af(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Vd(t,r,n),t[et]=e,t[tt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Gd=mp,e=xr(e),Sr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},mp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),mf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount==`function`)try{Ae.onCommitFiberUnmount(ke,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;af(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),bf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,of(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Bp(e)):of(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(af(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[st]||o[et]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Vd(o,r,n),o[et]=e,pt(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Jf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[et]=e,pt(o),r=o}e.stateNode=r}else Yf(a,e.type,e.stateNode);else e.stateNode=Uf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Yf(a,e.type,e.stateNode):Uf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{zt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(qf=null,a=gl,gl=Cf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=Cf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=be()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?sf(m,!0):sf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(zt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:bf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ra(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=Cf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Yi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yi(ta).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:F.T===null?Ze():_d()}function yu(){if($l===0)if(!(Hl&536870912)||Oi){var e=Le;Le<<=1,!(Le&3932160)&&(Le=262144),$l=e}else $l=536870912;return e=Za.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),We(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Be(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Cu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-be(),10<a)){if(wu(r,t,$l,!Gl),W(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=$d(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},jl(t,a,d);var m=(a&62914560)===a?iu-be():(a&4194048)===a?au-be():0;if(m=ep(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!gr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Me(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ke(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Vi=Bi=null,Eo(e),Ea=null,Da=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ef(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=ii(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=Be(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Me(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Jr(),n}function Ou(e,t){so=null,F.H=Is,t===ga||t===va?(t=wa(),Ul=3):t===_a?(t=wa(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,fi(t,e.current)))}function ku(){var e=Za.current;return e===null?!0:(Hl&4194048)===Hl?Qa===null:(Hl&62914560)===Hl||Hl&536870912?e===Qa:!1}function Au(){var e=F.H;return F.H=Is,e===null?Is:e}function ju(){var e=F.A;return F.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&Za.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:Za.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Vi=Bi=null,zl=r,F.H=i,F.A=a,Vl===null&&(Bl=null,Hl=0,Jr()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),a=ju();Bl!==e||Hl!==t?(su=null,ou=be()+500,Du(e,t)):Kl=Be(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(ba(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:ba(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Zf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Vi=Bi=null,F.H=r,F.A=a,zl=n,Vl===null?(Bl=null,Hl=0,Jr(),Yl):0}function Iu(){for(;Vl!==null&&!ve();)Lu(Vl)}function Lu(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:Eo(t);default:zc(n,t),t=Vl=ai(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Vi=Bi=null,Eo(t),Ea=null,Da=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,fi(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,fi(n,e.current)),Vl=null;return}t.flags&32768?(Oi||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Za.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=qr,Ge(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(we,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=F.T,F.T=null,a=I.p,I.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,I.p=a,F.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=zl;zl|=4;try{_l(t,e);var a=Kd,o=xr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&br(s.ownerDocument.documentElement,s)){if(c!==null&&Sr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=yr(s,h),v=yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!Gd,Kd=Gd=null}finally{zl=i,I.p=r,F.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,I.p=r,F.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,ye();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Xe(n),t=t.stateNode,Ae&&typeof Ae.onCommitFiberRoot==`function`)try{Ae.onCommitFiberRoot(ke,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=F.T,i=I.p,I.p=2,F.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{F.T=t,I.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Xe(fu),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot==`function`)try{Ae.onPostCommitFiberRoot(ke,o)}catch{}return!0}finally{I.p=a,F.T=r,Ku(e,t)}}function Yu(e,t,n){t=fi(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(We(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=fi(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),We(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>be()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=He()),e=Zr(e,t),e!==null&&(We(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return _e(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=W(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&Qd()&&(e=cd);for(var t=be(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Me(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ve(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=W(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&U(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Be(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&U(r),Xe(n)){case 2:case 8:n=Ce;break;case 32:n=we;break;case 268435456:n=Ee;break;default:n=we}return r=md.bind(null,e),n=_e(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&U(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=W(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,be()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){nf(function(){zl&6?_e(Se,dd):fd()})}function _d(){if(cd===0){var e=oa;e===0&&(e=Ie,Ie<<=1,!(Ie&261888)&&(Ie=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Kt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[tt]||null).action),o=r.submitter;o&&(t=(t=o[tt]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Hr.length;xd++){var Sd=Hr[xd];Ur(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Ur(Pr,`onAnimationEnd`),Ur(Fr,`onAnimationIteration`),Ur(Ir,`onAnimationStart`),Ur(`dblclick`,`onDoubleClick`),Ur(`focusin`,`onFocus`),Ur(`focusout`,`onBlur`),Ur(Lr,`onTransitionRun`),Ur(Rr,`onTransitionStart`),Ur(zr,`onTransitionCancel`),Ur(Br,`onTransitionEnd`),_t(`onMouseEnter`,[`mouseout`,`mouseover`]),_t(`onMouseLeave`,[`mouseout`,`mouseover`]),_t(`onPointerEnter`,[`pointerout`,`pointerover`]),_t(`onPointerLeave`,[`pointerout`,`pointerover`]),gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[rt];n===void 0&&(n=t[rt]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,mt.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!rn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=lt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}en(function(){var r=a,i=Yt(n),s=[];a:{var c=Vr.get(e);if(c!==void 0){var l=hn,u=e;switch(e){case`keypress`:if(un(n)===0)break a;case`keydown`:case`keyup`:l=Nn;break;case`focusin`:u=`focus`,l=wn;break;case`focusout`:u=`blur`,l=wn;break;case`beforeblur`:case`afterblur`:l=wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Sn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Cn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Fn;break;case Pr:case Fr:case Ir:l=Tn;break;case Br:l=In;break;case`scroll`:case`scrollend`:l=_n;break;case`wheel`:l=Ln;break;case`copy`:case`cut`:case`paste`:l=En;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Pn;break;case`toggle`:case`beforetoggle`:l=Rn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=tn(m,p),g!=null&&d.push(K(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Jt&&(u=n.relatedTarget||n.fromElement)&&(lt(u)||u[nt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?lt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Sn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Pn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:dt(l),h=u==null?c:dt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,lt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Nd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Pd(s,c,l,d,!1),u!==null&&f!==null&&Pd(s,f,u,d,!0)}}a:{if(c=r?dt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ir;else if(Qn(c))if(ar)v=mr;else{v=fr;var y=dr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Ut(r.elementType)&&(v=ir):v=pr;if(v&&=v(e,r)){$n(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ft(c,`number`,c.value)}switch(y=r?dt(r):window,e){case`focusin`:(Qn(y)||y.contentEditable===`true`)&&(wr=y,Tr=r,Er=null);break;case`focusout`:Er=Tr=wr=null;break;case`mousedown`:Dr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Dr=!1,Or(s,n,i);break;case`selectionchange`:if(Cr)break;case`keydown`:case`keyup`:Or(s,n,i)}var b;if(Bn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Jn?Kn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Un&&n.locale!==`ko`&&(Jn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Jn&&(b=ln()):(on=i,sn=`value`in on?on.value:on.textContent,Jn=!0)),y=Md(r,x),0<y.length&&(x=new Dn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=qn(n),b!==null&&(x.data=b)))),(b=Hn?Yn(e,n):Xn(e,n))&&(x=Md(r,`onBeforeInput`),0<x.length&&(y=new Dn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function K(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=tn(e,n),i!=null&&r.unshift(K(e,i,a)),i=tn(e,t),i!=null&&r.push(K(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Nd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=tn(n,a),l!=null&&o.unshift(K(n,l,c))):i||(l=tn(n,a),l!=null&&o.push(K(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Fd=/\r\n?/g,Id=/\u0000|\uFFFD/g;function Ld(e){return(typeof e==`string`?e:``+e).replace(Fd,`
9`).replace(Id,``)}function Rd(e,t){return t=Ld(t),Ld(e)===t}function zd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&zt(e,``+r);break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Ht(e,r,o);break;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&zd(e,t,`name`,a.name,a,null),zd(e,t,`formEncType`,a.formEncType,a,null),zd(e,t,`formMethod`,a.formMethod,a,null),zd(e,t,`formTarget`,a.formTarget,a,null)):(zd(e,t,`encType`,a.encType,a,null),zd(e,t,`method`,a.method,a,null),zd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Kt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Wt.get(n)||n,St(e,n,r))}}function Bd(e,t,n,r,a,o){switch(n){case`style`:Ht(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&zt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[tt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):St(e,n,r)}}}function Vd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,o,s,n,null)}}a&&zd(e,t,`srcSet`,n.srcSet,n,null),r&&zd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:zd(e,t,r,d,n,null)}}Pt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:zd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&It(e,!!r,n,!0):It(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:zd(e,t,s,c,n,null)}Rt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:zd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,u,r,n,null)}return;default:if(Ut(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Bd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&zd(e,t,c,r,n,null))}function Hd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||zd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&zd(e,t,p,m,r,f)}}Nt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||zd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&zd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?It(e,!!n,n?[]:``,!1):It(e,!!n,t,!0)):It(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:zd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&zd(e,t,s,a,r,o)}Lt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:zd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:zd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&zd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:zd(e,t,u,p,r,m)}return;default:if(Ut(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Bd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 9
9for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Bd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&zd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||zd(e,t,f,p,r,m)}function Ud(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Wd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ud(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ud(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Gd=null,Kd=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function Jd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Yd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Xd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zd=null;function Qd(){var e=window.event;return e&&e.type===`popstate`?e===Zd?!1:(Zd=e,!0):(Zd=null,!1)}var $d=typeof setTimeout==`function`?setTimeout:void 0,ef=typeof clearTimeout==`function`?clearTimeout:void 0,tf=typeof Promise==`function`?Promise:void 0,nf=typeof queueMicrotask==`function`?queueMicrotask:tf===void 0?$d:function(e){return tf.resolve(null).then(e).catch(rf)};function rf(e){setTimeout(function(){throw e})}function af(e){return e===`head`}function of(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Bp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[st]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bf(e.ownerDocument.body);n=i}while(n);Bp(t)}function sf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function cf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cf(n),ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[st])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hf(e.nextSibling),e===null)break}return null}function uf(e,t,n){if(t===``)return null;for(;
vendor: 20,906 bytes, line 9
9e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hf(e.nextSibling),e===null))return null;return e}function df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hf(e.nextSibling),e===null))return null;return e}function ff(e){return e.data===`$?`||e.data===`$~`}function pf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gf=null;function _f(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function yf(e,t,n){switch(t=qd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ct(e)}var xf=new Map,Sf=new Set;function Cf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wf=I.d;I.d={f:Tf,r:Ef,D:kf,C:Af,L:jf,m:Mf,X:Pf,S:Nf,M:Ff};function Tf(){var e=wf.f(),t=Tu();return e||t}function Ef(e){var t=ut(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):wf.r(e)}var Df=typeof document>`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Vd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}xf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Vd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!xf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),xf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Vd(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=ft(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);pt(c),Vd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=ft(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),pt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=ft(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),pt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var a=(a=oe.current)?Cf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=ft(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var o=ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),xf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xf.set(e,n),o||Bf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=ft(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lf(e){return`href="`+Mt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Vd(t,`link`,n),pt(t),e.head.appendChild(t))}function Vf(e){return`[src="`+Mt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Vd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lf(n.href);var o=e.querySelector(Rf(a));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=zf(n),(a=xf.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Vd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Vf(n.src),(a=e.querySelector(Hf(o)))?(t.instance=a,pt(a),a):(r=n,(a=xf.get(o))&&(r=f({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),pt(a),Vd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[st]||a[et]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=zf(r),(i=xf.get(i))&&Gf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Vd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Wd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:C,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ue(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ue(0),this.hiddenUpdates=Ue(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ni(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function cp(e){return e?(e=ei,e):ei}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(bu(n,e,t),za(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=Zr(e,67108864);t!==null&&bu(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=vu();t=Ye(t);var n=Zr(e,t);n!==null&&bu(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,_p(e,t,n,r)}finally{I.p=a,F.T=i}}function gp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,_p(e,t,n,r)}finally{I.p=a,F.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)jd(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=ut(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ze(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Me(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=be()+500,ud(0,!1))}}break;case 31:case 13:s=Zr(a,2),s!==null&&bu(s,a,2),Tu(),dp(a,2)}if(a=vp(r),a===null&&jd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function vp(e){return e=Yt(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=lt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`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(xe()){case Se:return 2;case Ce:return 8;case we:case Te:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`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 Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ut(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=lt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Qe(e.priority,function(){pp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Qe(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jt=r,n.target.dispatchEvent(r),Jt=null}else return t=ut(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function zp(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=ut(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[tt]||null;if(typeof a==`function`)o||zp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[tt]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Vp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}Up.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;lp(n,vu(),e,t,null,null)},Up.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),Tu(),t[nt]=null}};function Up(e){this._internalRoot=e}Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Wp=n.version;if(Wp!==`19.2.5`)throw Error(i(527,Wp,`19.2.5`));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Gp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.2.5`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kp.isDisabled&&Kp.supportsFiber)try{ke=Kp.inject(Gp),Ae=Kp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=sp(e,1,!1,null,null,n,r,null,o,s,c,Vp),e[nt]=t.current,kd(e),new Hp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=`modulepreload`,x=function(e){return`/`+e},S={},C=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=x(t,n),t in S)return;S[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:b,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},w=u(p(),1),T=`popstate`;function E(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function D(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return M(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:N(t)}return ee(t,n,null,e)}function O(e,t){if(e===!1||e==null)throw Error(t)}function k(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function A(){return Math.random().toString(36).substring(2,10)}function j(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function M(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?P(t):t,state:n,key:t&&t.key||r||A(),mask:i}}function N({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function P(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ee(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u()+1;let d=j(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u();let i=j(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return F(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(T,d),c=e,()=>{i.removeEventListener(T,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function F(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),O(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:N(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function I(e,t,n=`/`){return te(e,t,n,!1)}function te(e,t,n,r,i){let a=he((typeof t==`string`?P(t):t).pathname||`/`,n);if(a==null)return null;let o=i??L(e),s=null,c=me(a);for(let e=0;s==null&&e<o.length;++e)s=fe(o[e],c,r);return s}function ne(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function L(e){let t=re(e);return R(t),t}function re(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;O(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
9" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Se([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(O(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),re(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:ue(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ie(e.path))a(e,t,!0,n)}),t}function ie(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ie(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function R(e){e.sort((e,t)=>e.score===t.score?de(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ae=/^:[\w-]+$/,z=3,oe=2,se=1,B=10,ce=-2,le=e=>e===`*`;function ue(e,t){let n=e.split(`/`),r=n.length;return n.some(le)&&(r+=ce),t&&(r+=oe),n.filter(e=>!le(e)).reduce((e,t)=>e+(ae.test(t)?z:t===``?se:B),r)}function de(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function fe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=pe({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=pe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
9Object.assign(i,u.params),o.push({params:i,pathname:Se([a,u.pathname]),pathnameBase:we(Se([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Se([a,u.pathnameBase]))}return o}function pe(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=V(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function V(e,t=!1,n=!0){k(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function me(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return k(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function he(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function H(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?P(e):e,a;return n?(n=xe(n),a=n.startsWith(`/`)?_e(n.substring(1),`/`):_e(n,t)):a=t,{pathname:a,search:Te(r),hash:Ee(i)}}function _e(e,t){let n=Ce(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function U(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` 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 ve(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ye(e){let t=ve(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function be(e,t,n,r=!1){let i;typeof e==`string`?i=P(e):(i={...e},O(!i.pathname||!i.pathname.includes(`?`),U(`?`,`pathname`,`search`,i)),O(!i.pathname||!i.pathname.includes(`#`),U(`#`,`pathname`,`hash`,i)),O(!i.search||!i.search.includes(`#`),U(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=H(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var xe=e=>e.replace(/\/\/+/g,`/`),Se=e=>xe(e.join(`/`)),Ce=e=>e.replace(/\/+$/,``),we=e=>Ce(e).replace(/^\/*/,`/`),Te=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,De=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Oe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ke(e){return Se(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e,t){let n=e;if(typeof n!=`string`||!ge.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ae)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=he(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{k(!1,`<Link to="${n}">
9 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 Me=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Me);var Ne=[`GET`,...Me];new Set(Ne);var Pe=w.createContext(null);Pe.displayName=`DataRouter`;var Fe=w.createContext(null);Fe.displayName=`DataRouterState`;var Ie=w.createContext(!1);function Le(){return w.useContext(Ie)}var Re=w.createContext({isTransitioning:!1});Re.displayName=`ViewTransition`;var ze=w.createContext(new Map);ze.displayName=`Fetchers`;var W=w.createContext(null);W.displayName=`Await`;var Be=w.createContext(null);Be.displayName=`Navigation`;var Ve=w.createContext(null);Ve.displayName=`Location`;var He=w.createContext({outlet:null,matches:[],isDataRoute:!1});He.displayName=`Route`;var Ue=w.createContext(null);Ue.displayName=`RouteError`;var We=`REACT_ROUTER_ERROR`,Ge=`REDIRECT`,Ke=`ROUTE_ERROR_RESPONSE`;function qe(e){if(e.startsWith(`${We}:${Ge}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Je(e){if(e.startsWith(`${We}:${Ke}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new De(t.status,t.statusText,t.data)}catch{}}function Ye(e,{relative:t}={}){O(Xe(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=w.useContext(Be),{hash:i,pathname:a,search:o}=nt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Se([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Xe(){return w.useContext(Ve)!=null}function Ze(){return O(Xe(),`useLocation() may be used only in the context of a <Router> component.`),w.useContext(Ve).location}var Qe=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function $e(e){w.useContext(Be).static||w.useLayoutEffect(e)}function et(){let{isDataRoute:e}=w.useContext(He);return e?xt():tt()}function tt(){O(Xe(),`useNavigate() may be used only in the context of a <Router> component.`);let e=w.useContext(Pe),{basename:t,navigator:n}=w.useContext(Be),{matches:r}=w.useContext(He),{pathname:i}=Ze(),a=JSON.stringify(ye(r)),o=w.useRef(!1);return $e(()=>{o.current=!0}),w.useCallback((r,s={})=>{if(k(o.current,Qe),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=be(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Se([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}w.createContext(null);function nt(e,{relative:t}={}){let{matches:n}=w.useContext(He),{pathname:r}=Ze(),i=JSON.stringify(ye(n));return w.useMemo(()=>be(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function rt(e,t){return it(e,t)}function it(e,t,n){O(Xe(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=w.useContext(Be),{matches:i}=w.useContext(He),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ct(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) 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="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Ze(),d;if(t){let e=typeof t==`string`?P(t):t;O(c===`/`||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):I(e,{pathname:p});k(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),k(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 h=dt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Se([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Se([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?w.createElement(Ve.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function at(){let e=bt(),t=Oe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=w.createElement(w.Fragment,null,w.createElement(`p`,null,`💿 Hey developer 👋`),w.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,w.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,w.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),w.createElement(w.Fragment,null,w.createElement(`h2`,null,`Unexpected Application 
11Error!`),w.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?w.createElement(`pre`,{style:i},n):null,o)}var ot=w.createElement(at,null),st=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Je(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:w.createElement(He.Provider,{value:this.props.routeContext},w.createElement(Ue.Provider,{value:e,children:this.props.component}));return this.context?w.createElement(lt,{error:e},t):t}};st.contextType=Ie;var ct=new WeakMap;function lt({children:e,error:t}){let{basename:n}=w.useContext(Be);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=qe(t.digest);if(e){let r=ct.get(t);if(r)throw r;let i=je(e.location,n);if(Ae&&!ct.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw ct.set(t,n),n}return w.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ut({routeContext:e,match:t,children:n}){let r=w.useContext(Pe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(He.Provider,{value:e},n)}function dt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);O(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ke(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ot,o&&(s<0&&c===0?(Ct(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?w.createElement(n.route.Component,null):n.route.element?n.route.element:e,w.createElement(ut,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?w.createElement(st,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function ft(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function pt(e){let t=w.useContext(Pe);return O(t,ft(e)),t}function mt(e){let t=w.useContext(Fe);return O(t,ft(e)),t}function ht(e){let t=w.useContext(He);return O(t,ft(e)),t}function gt(e){let t=ht(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function _t(){return gt(`useRouteId`)}function vt(){return mt(`useNavigation`).navigation}function yt(){let{matches:e,loaderData:t}=mt(`useMatches`);return w.useMemo(()=>e.map(e=>ne(e,t)),[e,t])}function bt(){let e=w.useContext(Ue),t=mt(`useRouteError`),n=gt(`useRouteError`);return e===void 0?t.errors?.[n]:e}
11function xt(){let{router:e}=pt(`useNavigate`),t=gt(`useNavigate`),n=w.useRef(!1);return $e(()=>{n.current=!0}),w.useCallback(async(r,i={})=>{k(n.current,Qe),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var St={};function Ct(e,t,n){!t&&!St[e]&&(St[e]=!0,k(!1,n))}w.memo(wt);function wt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return it(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Tt(e){O(!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 Et({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){O(!Xe(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=w.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=P(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=w.useMemo(()=>{let e=he(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return k(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:w.createElement(Be.Provider,{value:c},w.createElement(Ve.Provider,{children:t,value:h}))}function Dt({children:e,location:t}){return rt(Ot(e),t)}w.Component;function Ot(e,t=[]){let n=[];return w.Children.forEach(e,(e,r)=>{if(!w.isValidElement(e))return;let i=[...t,r];if(e.type===w.Fragment){n.push.apply(n,Ot(e.props.children,i));return}O(e.type===Tt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ot(e.props.children,i)),n.push(a)}),n}var kt=`get`,At=`application/x-www-form-urlencoded`;function jt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Mt(e){return jt(e)&&e.tagName.toLowerCase()===`button`}function Nt(e){return jt(e)&&e.tagName.toLowerCase()===`form`}function Pt(e){return jt(e)&&e.tagName.toLowerCase()===`input`}function Ft(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function It(e,t){return e.button===0&&(!t||t===`_self`)&&!Ft(e)}var Lt=null;function Rt(){if(Lt===null)try{new FormData(document.createElement(`form`),0),Lt=!1}catch{Lt=!0}return Lt}var zt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Bt(e){return e!=null&&!zt.has(e)?(k(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${At}"`),null):e}function Vt(e,t){let n,r,i,a,o;if(Nt(e)){let o=e.getAttribute(`action`);r=o?he(o,t):null,n=e.getAttribute(`method`)||kt,i=Bt(e.getAttribute(`enctype`))||At,a=new FormData(e)}else if(Mt(e)||Pt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?he(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||kt,i=Bt(e.getAttribute(`formenctype`))||Bt(o.getAttribute(`enctype`))||At,a=new FormData(o,e),!Rt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(jt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=kt,r=null,i=At,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ht={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Ut=/[&><\u2028\u2029]/g;function Wt(e){return e.replace(Ut,e=>Ht[e])}function Gt(e,t){if(e===!1||e==null)throw Error(t)}function Kt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>
11`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&he(i.pathname,t)===`/`?i.pathname=`${Ce(t)}/_root.${r}`:i.pathname=`${Ce(i.pathname)}.${r}`,i}async function qt(e,t){if(e.id in t)return t[e.id];try{let n=await C(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jt(e){return e!=null&&typeof e.page==`string`}function Yt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Xt(e,t,n){return tn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await qt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Yt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Zt(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Qt(e,t,{includeHydrateFallback:n}={}){return $t(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function $t(e){return[...new Set(e)]}function en(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Jt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(en(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function nn(){let e=w.useContext(Pe);return Gt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function rn(){let e=w.useContext(Fe);return Gt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var an=w.createContext(void 0);an.displayName=`FrameworkContext`;function on(){let e=w.useContext(an);return Gt(e,`You must render this element inside a <HydratedRouter> element`),e}function sn(e,t){let n=w.useContext(an),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=w.useRef(null);w.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),w.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:cn(s,p),onBlur:cn(c,m),onMouseEnter:cn(l,p),onMouseLeave:cn(u,m),onTouchStart:cn(d,p)}]:[a,f,{}]:[!1,f,{}]}function cn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ln({page:e,...t}){let n=Le(),{router:r}=nn(),i=w.useMemo(()=>I(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?w.createElement(dn,{page:e,matches:i,...t}):w.createElement(fn,{page:e,matches:i,...t}):null}function un(e){let{manifest:t,routeModules:n}=on(),[r,i]=w.useState([]);return w.useEffect(()=>{let r=!1;return Xt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function dn({page:e,matches:t,...n}){let r=Ze(),{future:i}=on(),{basename:a}=nn(),o=w.useMemo(()=>
11{if(e===r.pathname+r.search+r.hash)return[];let n=Kt(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,o.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function fn({page:e,matches:t,...n}){let r=Ze(),{future:i,manifest:a,routeModules:o}=on(),{basename:s}=nn(),{loaderData:c,matches:l}=rn(),u=w.useMemo(()=>Zt(e,t,l,a,r,`data`),[e,t,l,a,r]),d=w.useMemo(()=>Zt(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Kt(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=w.useMemo(()=>Qt(d,a),[d,a]),m=un(d);return w.createElement(w.Fragment,null,f.map(e=>w.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>w.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>w.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function pn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}w.Component;var mn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{mn&&(window.__reactRouterVersion=`7.15.0`)}catch{}function hn({basename:e,children:t,useTransitions:n,window:r}){let i=w.useRef();i.current??=D({window:r,v5Compat:!0});let a=i.current,[o,s]=w.useState({action:a.action,location:a.location}),c=w.useCallback(e=>{n===!1?s(e):w.startTransition(()=>s(e))},[n]);return w.useLayoutEffect(()=>a.listen(c),[a,c]),w.createElement(Et,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function gn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=w.useState({action:n.action,location:n.location}),o=w.useCallback(e=>{r===!1?a(e):w.startTransition(()=>a(e))},[r]);return w.useLayoutEffect(()=>n.listen(o),[n,o]),w.createElement(Et,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}gn.displayName=`unstable_HistoryRouter`;var _n=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vn=w.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=w.useContext(Be),v=typeof l==`string`&&_n.test(l),y=je(l,h);l=y.to;let b=Ye(l,{relative:r}),x=Ze(),S=null;if(o){let e=be(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Se([h,e.pathname])),S=g.createHref(e)}let[C,T,E]=sn(n,p),D=Tn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=w.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:pn(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?w.createElement(w.Fragment,null,A,w.createElement(ln,{page:b})):A});vn.displayName=`Link`;var yn=w.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=nt(a,{relative:c.relative}),d=Ze(),f=w.useContext(Fe),{navigator:p,basename:m}=w.useContext(Be),h=f!=null&&Fn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=he(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(
11Boolean).join(` `);let E=typeof i==`function`?i(S):i;return w.createElement(vn,{...c,"aria-current":C,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});yn.displayName=`NavLink`;var bn=w.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=kt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=w.useContext(Be),g=On(),_=kn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&_n.test(s);return w.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?w.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});bn.displayName=`Form`;function xn({getKey:e,storageKey:t,...n}){let r=w.useContext(an),{basename:i}=w.useContext(Be),a=Ze(),o=yt();Nn({getKey:e,storageKey:t});let s=w.useMemo(()=>{if(!r||!e)return null;let t=Mn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
11typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return w.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Wt(JSON.stringify(t||An))}, ${Wt(JSON.stringify(s))})`}})}xn.displayName=`ScrollRestoration`;function Sn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cn(e){let t=w.useContext(Pe);return O(t,Sn(e)),t}function wn(e){let t=w.useContext(Fe);return O(t,Sn(e)),t}function Tn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=et(),d=Ze(),f=nt(e,{relative:o});return w.useCallback(p=>{if(It(p,t)){p.preventDefault();let t=n===void 0?N(d)===N(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?w.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var En=0,Dn=()=>`__${String(++En)}__`;function On(){let{router:e}=Cn(`useSubmit`),{basename:t}=w.useContext(Be),n=_t(),r=e.fetch,i=e.navigate;return w.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Vt(e,t);a.navigate===!1?await r(a.fetcherKey||Dn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function kn(e,{relative:t}={}){let{basename:n}=w.useContext(Be),r=w.useContext(He);O(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...nt(e||`.`,{relative:t})},o=Ze();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Se([n,a.pathname])),N(a)}var An=`react-router-scroll-positions`,jn={};function Mn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:he(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Nn({getKey:e,storageKey:t}={}){let{router:n}=Cn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=wn(`useScrollRestoration`),{basename:a}=w.useContext(Be),o=Ze(),s=yt(),c=vt();w.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Pn(w.useCallback(()=>{if(c.state===`idle`){let t=Mn(o,s,a,e);jn[t]=window.scrollY}try{sessionStorage.setItem(t||An,JSON.stringify(jn))}catch(e){k(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(w.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||An);e&&(jn=JSON.parse(e))}catch{}},[t]),w.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(jn,()=>window.scrollY,e?(t,n)=>Mn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),w.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{k(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Pn(e,t){let{capture:n}=t||{};w.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Fn(e,{relative:t}={}){let n=w.useContext(Re);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Cn(`useViewTransitionState`),i=nt(e,{relative:t});if(!n.isTransitioning)return!1;let a=he(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=he(n.nextLocation.pathname,r)||n.nextLocation.pathname;return pe(i.pathname,o)!=null||pe(i.pathname,a)!=null}var In=u(y(),1),Ln=s((e=>{var t=p().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),Rn=s(((e,t)=>{t.exports=Ln()}))(),zn=`/assets/logoPapa-hQ53UjCG.png`,Bn=`data:image/svg+xml,%3csvg%20viewBox='0%200%20123%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M97.7784%2028.7358H2.77844M16.2784%2043L2.77844%2028.7358L16.2784%2015'%20stroke='black'%20stroke-width='4'%20stroke-linecap='round'/%3e%3cpath%20d='M36.8384%208.06L31.5784%2022H29.4784L24.2184%208.06H26.1584L30.5384%2020.08L34.9184%208.06H36.8384ZM45.1541%2022.14C43.8607%2022.14%2042.6807%2021.84%2041.6141%2021.24C40.5474%2020.6267%2039.7007%2019.78%2039.0741%2018.7C38.4607%2017.6067%2038.1541%2016.38%2038.1541%2015.02C38.1541%2013.66%2038.4607%2012.44%2039.0741%2011.36C39.7007%2010.2667%2040.5474%209.42%2041.6141%208.82C42.6807%208.20667%2043.8607%207.9%2045.1541%207.9C46.4607%207.9%2047.6474%208.20667%2048.7141%208.82C49.7807%209.42%2050.6207%2010.26%2051.2341%2011.34C51.8474%2012.42%2052.1541%2013.6467%2052.1541%2015.02C52.1541%2016.3933%2051.8474%2017.62%2051.2341%2018.7C50.6207%2019.78%2049.7807%2020.6267%2048.7141%2021.24C47.6474%2021.84%2046.4607%2022.14%2045.1541%2022.14ZM45.
111541%2020.56C46.1274%2020.56%2047.0007%2020.3333%2047.7741%2019.88C48.5607%2019.4267%2049.1741%2018.78%2049.6141%2017.94C50.0674%2017.1%2050.2941%2016.1267%2050.2941%2015.02C50.2941%2013.9%2050.0674%2012.9267%2049.6141%2012.1C49.1741%2011.26%2048.5674%2010.6133%2047.7941%2010.16C47.0207%209.70667%2046.1407%209.48%2045.1541%209.48C44.1674%209.48%2043.2874%209.70667%2042.5141%2010.16C41.7407%2010.6133%2041.1274%2011.26%2040.6741%2012.1C40.2341%2012.9267%2040.0141%2013.9%2040.0141%2015.02C40.0141%2016.1267%2040.2341%2017.1%2040.6741%2017.94C41.1274%2018.78%2041.7407%2019.4267%2042.5141%2019.88C43.3007%2020.3333%2044.1807%2020.56%2045.1541%2020.56ZM56.3767%2020.52H61.2567V22H54.5567V8.06H56.3767V20.52ZM74.7095%208.06L69.4495%2022H67.3495L62.0895%208.06H64.0295L68.4095%2020.08L72.7895%208.06H74.7095ZM78.5252%209.54V14.2H83.6052V15.7H78.5252V20.5H84.2052V22H76.7052V8.04H84.2052V9.54H78.5252ZM94.2991%2022L90.9791%2016.3H88.7791V22H86.9591V8.06H91.4591C92.5124%208.06%2093.3991%208.24%2094.1191%208.6C94.8524%208.96%2095.3991%209.44667%2095.7591%2010.06C96.1191%2010.6733%2096.2991%2011.3733%2096.2991%2012.16C96.2991%2013.12%2096.0191%2013.9667%2095.4591%2014.7C94.9124%2015.4333%2094.0857%2015.92%2092.9791%2016.16L96.4791%2022H94.2991ZM88.7791%2014.84H91.4591C92.4457%2014.84%2093.1857%2014.6%2093.6791%2014.12C94.1724%2013.6267%2094.4191%2012.9733%2094.4191%2012.16C94.4191%2011.3333%2094.1724%2010.6933%2093.6791%2010.24C93.1991%209.78667%2092.4591%209.56%2091.4591%209.56H88.7791V14.84Z'%20fill='black'/%3e%3c/svg%3e`,Vn=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Hn=s(((e,t)=>{t.exports=Vn()})),Un=(0,w.createContext)({});function Wn(e){let t=(0,w.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Gn=typeof window<`u`?w.useLayoutEffect:w.useEffect,Kn=(0,w.createContext)(null);function qn(e,t){e.indexOf(t)===-1&&e.push(t)}function Jn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Yn=(e,t,n)=>n>t?t:n<e?e:n,Xn={},Zn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Qn(e){return typeof e==`object`&&!!e}var $n=e=>/^0[^.\s]+$/u.test(e);function er(e){let t;return()=>(t===void 0&&(t=e()),t)}var tr=e=>e,nr=(e,t)=>n=>t(e(n)),rr=(...e)=>e.reduce(nr),ir=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},ar=class{constructor(){this.subscriptions=[]}add(e){return qn(this.subscriptions,e),()=>Jn(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},or=e=>e*1e3,sr=e=>e/1e3;function cr(e,t){return t?1e3/t*e:0}var lr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ur=1e-7,dr=12;function fr(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=lr(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ur&&++s<dr);return o}function pr(e,t,n,r){if(e===t&&n===r)return tr;let i=t=>fr(t,0,1,e,n);return e=>e===0||e===1?e:lr(i(e),t,r)}var mr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hr=e=>t=>1-e(1-t),gr=pr(.33,1.53,.69,.99),_r=hr(gr),vr=mr(_r),yr=e=>e>=1?1:(e*=2)<1?.5*_r(e):.5*(2-2**(-10*(e-1))),br=e=>1-Math.sin(Math.acos(e)),xr=hr(br),Sr=mr(br),Cr=pr(.42,0,1,1),wr=pr(0,0,.58,1),Tr=pr(.42,0,.58,1),Er=e=>Array.isArray(e)&&typeof e[0]!=`number`,Dr=e=>Array.isArray(e)&&typeof e[0]==`number`,Or={linear:tr,easeIn:Cr,easeInOut:Tr,easeOut:wr,circIn:br,circInOut:Sr,circOut:xr,backIn:_r,backInOut:vr,backOut:gr,anticipate:yr},kr=e=>typeof e==`string`,Ar=e=>{if(Dr(e)){e.length;let[t,n,r,i]=e;return pr(t,n,r,i)}else if(kr(e))return Or[e],`${e}`,Or[e];return e},jr=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Mr={value:null,addProjectionMetrics:null};function Nr(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;
11n=r,r=o,n.forEach(l),t&&Mr.value&&Mr.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Pr=40;function Fr(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=jr.reduce((e,n)=>(e[n]=Nr(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Xn.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Pr),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:jr.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<jr.length;t++)o[jr[t]].cancel(e)},state:i,steps:o}}var{schedule:Ir,cancel:Lr,state:Rr,steps:zr}=Fr(typeof requestAnimationFrame<`u`?requestAnimationFrame:tr,!0),Br;function Vr(){Br=void 0}var Hr={now:()=>(Br===void 0&&Hr.set(Rr.isProcessing||Xn.useManualTiming?Rr.timestamp:performance.now()),Br),set:e=>{Br=e,queueMicrotask(Vr)}},Ur={layout:0,mainThread:0,waapi:0},Wr=e=>t=>typeof t==`string`&&t.startsWith(e),Gr=Wr(`--`),Kr=Wr(`var(--`),qr=e=>Kr(e)?Jr.test(e.split(`/*`)[0].trim()):!1,Jr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Yr(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Xr={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Zr={...Xr,transform:e=>Yn(0,1,e)},Qr={...Xr,default:1},$r=e=>Math.round(e*1e5)/1e5,ei=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ti(e){return e==null}var ni=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ri=(e,t)=>n=>!!(typeof n==`string`&&ni.test(n)&&n.startsWith(e)||t&&!ti(n)&&Object.prototype.hasOwnProperty.call(n,t)),ii=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ei);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ai=e=>Yn(0,255,e),oi={...Xr,transform:e=>Math.round(ai(e))},si={test:ri(`rgb`,`red`),parse:ii(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+oi.transform(e)+`, `+oi.transform(t)+`, `+oi.transform(n)+`, `+$r(Zr.transform(r))+`)`};function ci(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var li={test:ri(`#`),parse:ci,transform:si.transform},ui=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),di=ui(`deg`),fi=ui(`%`),G=ui(`px`),pi=ui(`vh`),mi=ui(`vw`),hi={...fi,parse:e=>fi.parse(e)/100,transform:e=>fi.transform(e*100)},gi={test:ri(`hsl`,`hue`),parse:ii(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+fi.transform($r(t))+`, `+fi.transform($r(n))+`, `+$r(Zr.transform(r))+`)`},_i={test:e=>si.test(e)||li.test(e)||gi.test(e),parse:e=>si.test(e)?si.parse(e):gi.test(e)?gi.parse(e):li.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?si.transform(e):gi.transform(e),getAnimatableNone:e=>{let t=_i.parse(e);return t.alpha=0,_i.transform(t)}},vi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yi(e){return isNaN(e)&&typeof e==`string`&&(e.match(ei)?.length||0)+(e.match(vi)?.length||0)>0}var bi=`number`,xi=`color`,Si=`var`,Ci=`var(`,wi="${}",Ti=/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 Ei(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ti,e=>(_i.test(e)?(r.color.push(a),i.push(xi),n.push(_i.parse(e))):e.startsWith(Ci)?(r.var.push(a),i.push(Si),n.push(e)):(r.number.push(a),i.push(bi),n.push(parseFloat(e))),++a,wi)).split(wi),indexes:r,types:i}}function Di(e){return Ei(e).values}function Oi({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];
11e===bi?i+=$r(r[a]):e===xi?i+=_i.transform(r[a]):i+=r[a]}return i}}function ki(e){return Oi(Ei(e))}var Ai=e=>typeof e==`number`?0:_i.test(e)?_i.getAnimatableNone(e):e,ji=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ai(e);function Mi(e){let t=Ei(e);return Oi(t)(t.values.map((e,n)=>ji(e,t.split[n])))}var Ni={test:yi,parse:Di,createTransformer:ki,getAnimatableNone:Mi};function Pi(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fi({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Pi(s,r,e+1/3),a=Pi(s,r,e),o=Pi(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ii(e,t){return n=>n>0?t:e}var Li=(e,t,n)=>e+(t-e)*n,Ri=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},zi=[li,si,gi],Bi=e=>zi.find(t=>t.test(e));function Vi(e){let t=Bi(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===gi&&(n=Fi(n)),n}var Hi=(e,t)=>{let n=Vi(e),r=Vi(t);if(!n||!r)return Ii(e,t);let i={...n};return e=>(i.red=Ri(n.red,r.red,e),i.green=Ri(n.green,r.green,e),i.blue=Ri(n.blue,r.blue,e),i.alpha=Li(n.alpha,r.alpha,e),si.transform(i))},Ui=new Set([`none`,`hidden`]);function Wi(e,t){return Ui.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Gi(e,t){return n=>Li(e,t,n)}function Ki(e){return typeof e==`number`?Gi:typeof e==`string`?qr(e)?Ii:_i.test(e)?Hi:Xi:Array.isArray(e)?qi:typeof e==`object`?_i.test(e)?Hi:Ji:Ii}function qi(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ki(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ji(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ki(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Yi(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Xi=(e,t)=>{let n=Ni.createTransformer(t),r=Ei(e),i=Ei(t);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?Ui.has(e)&&!i.values.length||Ui.has(t)&&!r.values.length?Wi(e,t):rr(qi(Yi(r,i),i.values),n):(`${e}${t}`,Ii(e,t))};function Zi(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Li(e,t,n):Ki(e)(e,t)}var Qi=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Ir.update(t,e),stop:()=>Lr(t),now:()=>Rr.isProcessing?Rr.timestamp:Hr.now()}},$i=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ea=2e4;function ta(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function na(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(ta(r),ea);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:sr(i)}}var ra={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};function ia(e,t){return e*Math.sqrt(1-t*t)}var aa=12;function oa(e,t,n){let r=n;for(let n=1;n<aa;n++)r-=e(r)/t(r);return r}var sa=.001;function ca({duration:e=ra.duration,bounce:t=ra.bounce,velocity:n=ra.velocity,mass:r=ra.mass}){let i,a;ra.maxDuration;let o=1-t;o=Yn(ra.minDamping,ra.maxDamping,o),e=Yn(ra.minDuration,ra.maxDuration,sr(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=ia(t,o),c=Math.exp(-i);return sa-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=ia(t**2,o);return(-i(t)+sa>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-sa+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=oa(i,a,s);if(e=or(e),isNaN(c))return{stiffness:ra.stiffness,damping:ra.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var la=[`duration`,`bounce`],ua=[`stiffness`,`damping`,`mass`];function da(e,t){return t.some(t=>e[t]!==void 0)}function fa(e){let t={velocity:ra.velocity,stiffness:ra.stiffness,damping:ra.damping,mass:ra.mass,isResolvedFromDuration:!1,...e};if(!da(e,ua)&&da(e,la))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ra.mass,stiffness:i,damping:a}}else{let n=ca({...e,velocity:0});t={...t,...n,mass:ra.mass},t.isResolvedFromDuration=!0}return t}function pa(e=ra.visualDuration,t=ra.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=fa({...n,velocity:-sr(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=sr(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?ra.restSpeed.granular:ra.restSpeed.default,i||=v?ra.restDelta.granular:ra.restDelta.default;let y,b,x,S,C,w;if(h<1)x=ia(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>or(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=or(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=or(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(ta(T),ea),t=$i(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}pa.applyToOptions=e=>{let t=na(e,100,pa);return e.ease=t.ease,e.duration=or(t.duration),e.type=`keyframes`,e};var ma=5;
11function ha(e,t,n){let r=Math.max(t-ma,0);return cr(n-e(r),t-r)}function ga({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=pa({keyframes:[f.value,m(f.value)],velocity:ha(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function _a(e,t,n){let r=[],i=n||Xn.mix||Zi,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=rr(Array.isArray(t)?t[n]||tr:t,a)),r.push(a)}return r}function va(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=_a(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ir(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Yn(e[0],e[a-1],t)):l}function ya(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ir(0,t,r);e.push(Li(n,1,i))}}function ba(e){let t=[0];return ya(t,e.length-1),t}function xa(e,t){return e.map(e=>e*t)}function Sa(e,t){return e.map(()=>t||Tr).splice(0,e.length-1)}function Ca({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Er(r)?r.map(Ar):Ar(r),a={done:!1,value:t[0]},o=va(xa(n&&n.length===t.length?n:ba(t),e),t,{ease:Array.isArray(i)?i:Sa(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var wa=e=>e!==null;function Ta(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(wa),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ea={decay:ga,inertia:ga,tween:Ca,keyframes:Ca,spring:pa};function Da(e){typeof e.type==`string`&&(e.type=Ea[e.type])}var Oa=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},ka=e=>e/100,Aa=class extends Oa{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Hr.now()&&this.tick(Hr.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Ur.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Da(e);let{type:t=Ca,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ca;s!==Ca&&typeof o[0]!=`number`&&(this.mixKeyframes=rr(ka,Zi(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=ta(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Yn(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==ga&&(b.value=Ta(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return sr(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+sr(e)}get time(){return sr(this.currentTime)}set time(e){e=or(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?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ha(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Hr.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=sr(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Qi,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Hr.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,Ur.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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 ja(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ma=e=>e*180/Math.PI,Na=e=>Fa(Ma(Math.atan2(e[1],e[0]))),Pa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Na,rotateZ:Na,skewX:e=>Ma(Math.atan(e[1])),skewY:e=>Ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Fa=e=>(e%=360,e<0&&(e+=360),e),Ia=Na,La=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ra=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),za={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:La,scaleY:Ra,scale:e=>(La(e)+Ra(e))/2,rotateX:e=>Fa(Ma(Math.atan2(e[6],e[5]))),rotateY:e=>Fa(Ma(Math.atan2(-e[2],e[0]))),rotateZ:Ia,rotate:Ia,skewX:e=>Ma(Math.atan(e[4])),skewY:e=>Ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ba(e){return+!!e.includes(`scale`)}
11function Va(e,t){if(!e||e===`none`)return Ba(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=za,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Pa,i=t}if(!i)return Ba(t);let a=r[t],o=i[1].split(`,`).map(Ua);return typeof a==`function`?a(o):o[a]}var Ha=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Va(n,t)};function Ua(e){return parseFloat(e.trim())}var Wa=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ga=new Set(Wa),Ka=e=>e===Xr||e===G,qa=new Set([`x`,`y`,`z`]),Ja=Wa.filter(e=>!qa.has(e));function Ya(e){let t=[];return Ja.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Xa={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Va(t,`x`),y:(e,{transform:t})=>Va(t,`y`)};Xa.translateX=Xa.x,Xa.translateY=Xa.y;var Za=new Set,Qa=!1,$a=!1,eo=!1;function to(){if($a){let e=Array.from(Za).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ya(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}
11$a=!1,Qa=!1,Za.forEach(e=>e.complete(eo)),Za.clear()}function no(){Za.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($a=!0)})}function ro(){eo=!0,no(),to(),eo=!1}var io=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Za.add(this),Qa||(Qa=!0,Ir.read(no),Ir.resolveKeyframes(to))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ja(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Za.delete(this)}cancel(){this.state===`scheduled`&&(Za.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ao=e=>e.startsWith(`--`);function oo(e,t,n){ao(t)?e.style.setProperty(t,n):e.style[t]=n}var so={};function co(e,t){let n=er(e);return()=>so[t]??n()}var lo=co(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),uo=co(()=>{try{document.createElement(`div`).animate({opacity:0}
11,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),fo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,po={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:fo([0,.65,.55,1]),circOut:fo([.55,0,1,.45]),backIn:fo([.31,.01,.66,-.59]),backOut:fo([.33,1.53,.69,.99])};function mo(e,t){if(e)return typeof e==`function`?uo()?$i(e,t):`ease-out`:Dr(e)?fo(e):Array.isArray(e)?e.map(e=>mo(e,t)||po.easeOut):po[e]}function ho(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=mo(s,i);Array.isArray(d)&&(u.easing=d),Mr.value&&Ur.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Mr.value&&p.finished.finally(()=>{Ur.waapi--}),p}function go(e){return typeof e==`function`&&`applyToOptions`in e}function _o({type:e,...t}){return go(e)&&uo()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var vo=class extends Oa{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=_o(e);this.animation=ho(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ta(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),oo(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return sr(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+sr(e)}get time(){return sr(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=or(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
11inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&lo()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),tr):r(this)}},yo={anticipate:yr,backInOut:vr,circInOut:Sr};function bo(e){return e in yo}function xo(e){typeof e.ease==`string`&&bo(e.ease)&&(e.ease=yo[e.ease])}var So=10,Co=class extends vo{constructor(e){xo(e),Da(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Aa({...a,autoplay:!1}),s=Math.max(So,Hr.now()-this.startTime),c=Yn(0,So,s-So),l=o.sample(s).value,{name:u}=this.options;i&&u&&oo(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},wo=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ni.test(e)||e===`0`)&&!e.startsWith(`url(`));function To(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Eo(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=wo(i,t),s=wo(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:To(e)||(n===`spring`||go(n))&&r}function Do(e){e.duration=0,e.type=`keyframes`}var Oo=new Set([`opacity`,`clipPath`,`filter`,`transform`]),ko=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ao(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ko.test(e[t]))return!0;return!1}var jo=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Mo=er(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function No(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Mo()&&n&&(Oo.has(n)||jo.has(n)&&Ao(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Po=40,Fo=class extends Oa{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Hr.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||io;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Hr.now();let u=!0;Eo(e,i,a,o)||(u=!1,(Xn.instantAnimations||!s)&&l?.(Ta(e,n,t)),e[0]=e[e.length-1],Do(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Po?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&No(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Co({...d,element:p})}catch{m=new Aa(d)}else m=new Aa(d);m.finished.then(()=>{this.notifyFinished()}).catch(tr),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ro()),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 Io(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
11e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Lo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ro(e){let t=Lo.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zo(e,t,n=1){`${e}`;let[r,i]=Ro(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Zn(e)?parseFloat(e):e}return qr(i)?zo(i,t,n+1):i}var Bo={type:`spring`,stiffness:500,damping:25,restSpeed:10},Vo=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ho={type:`keyframes`,duration:.8},Uo={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Wo=(e,{keyframes:t})=>t.length>2?Ho:Ga.has(e)?e.startsWith(`scale`)?Vo(t[1]):Bo:Uo;function Go(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ko(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Go(n,e)}var qo=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Jo(e){for(let t in e)if(!qo.has(t))return!0;return!1}var Yo=(e,t,n,r={},i,a)=>o=>{let s=Ko(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=or(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Jo(s)||Object.assign(u,Wo(e,u)),u.duration&&=or(u.duration),u.repeatDelay&&=or(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Do(u),u.delay===0&&(d=!0)),(Xn.instantAnimations||Xn.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Do(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Ta(u.keyframes,s);if(e!==void 0){Ir.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Aa(u):new Fo(u)};function Xo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Zo(e,t,n,r){if(typeof t==`function`){let[i,a]=Xo(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Xo(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Qo(e,t,n){let r=e.getProps();return Zo(r,t,n===void 0?r.custom:n,e)}var $o=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Wa]),es=30,ts=e=>!isNaN(parseFloat(e)),ns={current:void 0},rs=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Hr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Hr.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ts(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ar);let n=this.events[e].add(t);return e===`change`?()=>{n(),Ir.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ns.current&&ns.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Hr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>es)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,es);return cr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 is(e,t){return new rs(e,t)}var as=e=>Array.isArray(e);function os(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,is(n))}function ss(e){return as(e)?e[e.length-1]||0:e}function cs(e,t){let{transitionEnd:n={},transition:r={},...i}=Qo(e,t)||{};i={...i,...n};for(let t in i)os(e,t,ss(i[t]))}var ls=e=>!!(e&&e.getVelocity);function us(e){return!!(ls(e)&&e.add)}function ds(e,t){let n=e.getValue(`willChange`);if(us(n))return n.add(t);if(!n&&Xn.WillChange){let n=new Xn.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function fs(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ps=`data-`+fs(`framerAppearId`);function ms(e){return e.props[ps]}function hs({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function gs(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Go(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&hs(d,t))continue;let o={delay:n,...Ko(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Ir.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=ms(e);if(n){let e=window.MotionHandoffAnimation(n,t,Ir);e!==null&&(o.startTime=e,f=!0)}}ds(e,t);let p=l??e.shouldReduceMotion;r.start(Yo(t,r,i,p&&$o.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>Ir.update(()=>{o&&cs(e,o)});u.length?Promise.all(u).then(t):t()}return u}function _s(e,t,n={}){let r=Qo(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(gs(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return vs(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;
11if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function vs(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(_s(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Io(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ys(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>_s(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=_s(e,t,n);else{let i=typeof t==`function`?Qo(e,t,n.custom):t;r=Promise.all(gs(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var bs={test:e=>e===`auto`,parse:e=>e},xs=e=>t=>t.test(e),Ss=[Xr,G,fi,di,mi,pi,bs],Cs=e=>Ss.find(xs(e));function ws(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||$n(e)}var Ts=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Es(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ei)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ts.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ds=/\b([a-z-]*)\(.*?\)/gu,Os={...Ni,getAnimatableNone:e=>{let t=e.match(Ds);return t?t.map(Es).join(` `):e}},ks={...Ni,getAnimatableNone:e=>{let t=Ni.parse(e);return Ni.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},As={...Xr,transform:Math.round},js={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:di,rotateX:di,rotateY:di,rotateZ:di,scale:Qr,scaleX:Qr,scaleY:Qr,scaleZ:Qr,skew:di,skewX:di,skewY:di,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:Zr,originX:hi,originY:hi,originZ:G,zIndex:As,fillOpacity:Zr,strokeOpacity:Zr,numOctaves:As},Ms={...js,color:_i,backgroundColor:_i,outlineColor:_i,fill:_i,stroke:_i,borderColor:_i,borderTopColor:_i,borderRightColor:_i,borderBottomColor:_i,borderLeftColor:_i,filter:Os,WebkitFilter:Os,mask:ks,WebkitMask:ks},Ns=e=>Ms[e],Ps=new Set([Os,ks]);function Fs(e,t){let n=Ns(e);return Ps.has(n)||(n=Ni),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Is=new Set([`auto`,`none`,`0`]);function Ls(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Is.has(t)&&Ei(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Fs(n,i)}var Rs=class extends io{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),qr(r))){let i=zo(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!$o.has(n)||e.length!==2)return;let[r,i]=e,a=Cs(r),o=Cs(i);if(Yr(r)!==Yr(i)&&Xa[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ka(a)&&Ka(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Xa[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ws(e[t]))&&n.push(t);n.length&&Ls(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xa[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Xa[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
11h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function zs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Bs=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Vs(e){return Qn(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Hs,cancel:Us}=Fr(queueMicrotask,!1),Ws={x:!1,y:!1};function Gs(){return Ws.x||Ws.y}function Ks(e){return e===`x`||e===`y`?Ws[e]?null:(Ws[e]=!0,()=>{Ws[e]=!1}):Ws.x||Ws.y?null:(Ws.x=Ws.y=!0,()=>{Ws.x=Ws.y=!1})}function qs(e,t){let n=zs(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Js(e){return!(e.pointerType===`touch`||Gs())}function Ys(e,t,n={}){let[r,i,a]=qs(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Js(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Xs=(e,t)=>t?e===t?!0:Xs(e,t.parentElement):!1,Zs=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Qs=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function $s(e){return Qs.has(e.tagName)||e.isContentEditable===!0}var ec=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function tc(e){return ec.has(e.tagName)||e.isContentEditable===!0}var nc=new WeakSet;function rc(e){return t=>{t.key===`Enter`&&e(t)}}function ic(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ac=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=rc(()=>{if(nc.has(n))return;ic(n,`down`);let e=rc(()=>{ic(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ic(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function oc(e){return Zs(e)&&!Gs()}var sc=new WeakSet;function cc(e,t,n={}){let[r,i,a]=qs(e,n),o=e=>{let r=e.currentTarget;if(!oc(e)||sc.has(e))return;nc.add(r),n.stopPropagation&&sc.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),nc.has(r)&&nc.delete(r),oc(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Xs(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Vs(e)&&(e.addEventListener(`focus`,e=>ac(e,i)),!$s(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function lc(e){return Qn(e)&&`ownerSVGElement`in e}var uc=new WeakMap,dc,fc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:lc(r)&&`getBBox`in r?r.getBBox()[t]:r[n],pc=fc(`inline`,`width`,`offsetWidth`),mc=fc(`block`,`height`,`offsetHeight`);function hc({target:e,borderBoxSize:t}){uc.get(e)?.forEach(n=>{n(e,{get width(){return pc(e,t)},get height(){return mc(e,t)}})})}function gc(e){e.forEach(hc)}function _c(){typeof ResizeObserver>`u`||(dc=new ResizeObserver(gc))}function vc(e,t){dc||_c();let n=zs(e);return n.forEach(e=>{let n=uc.get(e);n||(n=new Set,uc.set(e,n)),n.add(t),dc?.observe(e)}),()=>{n.forEach(e=>{let n=uc.get(e);n?.delete(t),n?.size||dc?.unobserve(e)})}}var yc=new Set,bc;function xc(){bc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yc.forEach(t=>t(e))},window.addEventListener(`resize`,bc)}function Sc(e){return yc.add(e),bc||xc(),()=>{yc.delete(e),!yc.size&&typeof bc==`function`&&(window.removeEventListener(`resize`,bc),bc=void 0)}}function Cc(e,t){return typeof e==`function`?Sc(e):vc(e,t)}function wc(e){return lc(e)&&e.tagName===`svg`}var Tc=[...Ss,_i,Ni],Ec=e=>Tc.find(xs(e)),Dc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oc=()=>({x:Dc(),y:Dc()}),kc=()=>({min:0,max:0}),Ac=()=>({x:kc(),y:kc()}),jc=new WeakMap;function Mc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Nc(e){return typeof e==`string`||Array.isArray(e)}var Pc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Fc=[`initial`,...Pc];function Ic(e){return Mc(e.animate)||Fc.some(t=>Nc(e[t]))}function Lc(e){return!!(Ic(e)||e.variants)}function Rc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(ls(i))e.addValue(r,i);else if(ls(a))e.addValue(r,is(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,is(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var zc={current:null},Bc={current:!1},Vc=typeof window<`u`;function Hc(){if(Bc.current=!0,Vc)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>zc.current=e.matches;e.addEventListener(`change`,t),t()}else zc.current=!1}var Uc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Wc={};function Gc(e){Wc=e}function Kc(){return Wc}var qc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=io,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=()=>{let e=Hr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Ir.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ic(t),this.isVariantNode=Lc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&ls(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,jc.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.forEac
11h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Bc.current||Hc(),this.shouldReduceMotion=zc.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(),Lr(this.notifyUpdate),Lr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Oo.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new vo({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:or(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Ga.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Ir.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.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 Wc){let t=Wc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ac()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Uc.length;t++){let n=Uc[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Rc(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}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=is(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);
11return n!=null&&(typeof n==`string`&&(Zn(n)||$n(n))?n=parseFloat(n):!Ec(n)&&Ni.test(t)&&(n=Fs(e,t)),this.setBaseTarget(e,ls(n)?n.get():n)),ls(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Zo(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!ls(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ar),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Hs.render(this.render)}},Jc=class extends qc{constructor(){super(...arguments),this.KeyframeResolver=Rs}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ls(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Yc=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Xc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Zc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Qc(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function $c(e){return e===void 0||e===1}function el({scale:e,scaleX:t,scaleY:n}){return!$c(e)||!$c(t)||!$c(n)}function tl(e){return el(e)||nl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nl(e){return rl(e.x)||rl(e.y)}function rl(e){return e&&e!==`0%`}function il(e,t,n){return n+t*(e-n)}function al(e,t,n,r,i){return i!==void 0&&(e=il(e,i,r)),il(e,n,r)+t}function ol(e,t=0,n=1,r,i){e.min=al(e.min,t,n,r,i),e.max=al(e.max,t,n,r,i)}function sl(e,{x:t,y:n}){ol(e.x,t.translate,t.scale,t.originPoint),ol(e.y,n.translate,n.scale,n.originPoint)}var cl=.999999999999,ll=1.0000000000001;function ul(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(dl(e.x,-a.scroll.offset.x),dl(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,sl(e,o)),r&&tl(a.latestValues)&&ml(e,a.latestValues,a.layout?.layoutBox))}t.x<ll&&t.x>cl&&(t.x=1),t.y<ll&&t.y>cl&&(t.y=1)}function dl(e,t){e.min+=t,e.max+=t}function fl(e,t,n,r,i=.5){ol(e,t,n,Li(e.min,e.max,i),r)}function pl(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function ml(e,t,n){let r=n??e;fl(e.x,pl(t.x,r.x),t.scaleX,t.scale,t.originX),fl(e.y,pl(t.y,r.y),t.scaleY,t.scale,t.originY)}function hl(e,t){return Xc(Qc(e.getBoundingClientRect(),t))}function gl(e,t,n){let r=hl(e,n),{scroll:i}=t;return i&&(dl(r.x,i.offset.x),dl(r.y,i.offset.y)),r}var _l={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},vl=Wa.length;function yl(e,t,n){let r=``,i=!0;for(let a=0;a<vl;a++){let o=Wa[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Bs(s,js[o]);if(!c){i=!1;let t=_l[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function bl(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Ga.has(e)){o=!0;continue}else if(Gr(e)){i[e]=n;continue}else{let t=Bs(n,js[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=yl(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function xl(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Cl={correct:(e,t)=>
11{if(!t.target)return e;if(typeof e==`string`)if(G.test(e))e=parseFloat(e);else return e;return`${Sl(e,t.target.x)}% ${Sl(e,t.target.y)}%`}},wl={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Ni.parse(e);if(i.length>5)return r;let a=Ni.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Li(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Tl={borderRadius:{...Cl,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Cl,borderTopRightRadius:Cl,borderBottomLeftRadius:Cl,borderBottomRightRadius:Cl,boxShadow:wl};function El(e,{layout:t,layoutId:n}){return Ga.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Tl[e]||e===`opacity`)}function Dl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(ls(r[t])||i&&ls(i[t])||El(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ol(e){return window.getComputedStyle(e)}var kl=class extends Jc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=xl}readValueFromInstance(e,t){if(Ga.has(t))return this.projection?.isProjecting?Ba(t):Ha(e,t);{let n=Ol(e),r=(Gr(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return hl(e,t)}build(e,t,n){bl(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Dl(e,t,n)}},Al={offset:`stroke-dashoffset`,array:`stroke-dasharray`},jl={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ml(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Al:jl;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Nl=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Pl(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(bl(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Nl)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ml(d,i,a,o,!1)}var Fl=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`]),Il=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ll(e,t,n,r){xl(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Fl.has(n)?n:fs(n),t.attrs[n])}function Rl(e,t,n){let r=Dl(e,t,n);for(let n in e)if(ls(e[n])||ls(t[n])){let t=Wa.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var zl=class extends Jc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Ac}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ga.has(t)){let e=Ns(t);return e&&e.default||0}return t=Fl.has(t)?t:fs(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Rl(e,t,n)}
11build(e,t,n){Pl(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ll(e,t,n,r)}mount(e){this.isSVGTag=Il(e.tagName),super.mount(e)}},Bl=Fc.length;function Vl(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Vl(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Bl;n++){let r=Fc[n],i=e.props[r];(Nc(i)||i===!1)&&(t[r]=i)}return t}function Hl(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ul=[...Pc].reverse(),Wl=Pc.length;function Gl(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ys(e,t,n)))}function Kl(e){let t=Gl(e),n=Yl(),r=!0,i=!1,a=t=>(n,r)=>{let i=Qo(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Vl(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Wl;t++){let p=Ul[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Nc(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Mc(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=ql(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=as(t)&&as(n)?!Hl(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Qo(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Io(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Qo(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Yl(),i=!0}}}function ql(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Hl(t,e):!1}function Jl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yl(){return{animate:Jl(!0),whileInView:Jl(),whileHover:Jl(),whileTap:Jl(),whileDrag:Jl(),whileFocus:Jl(),exit:Jl()}}function Xl(e,t){e.min=t.min,e.max=t.max}function Zl(e,t){Xl(e.x,t.x),Xl(e.y,t.y)}function Ql(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var $l=1e-4,eu=1-$l,tu=1+$l,nu=.01,ru=0-nu,iu=0+nu;function au(e){return e.max-e.min}function ou(e,t,n){return Math.abs(e-t)<=n}function su(e,t,n,r=.5){e.origin=r,e.originPoint=Li(t.min,t.max,e.origin),e.scale=au(n)/au(t),e.translate=Li(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eu&&e.scale<=tu||isNaN(e.scale))&&(e.scale=1),(e.translate>=ru&&e.translate<=iu||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){su(e.x,t.x,n.x,r?r.originX:void 0),su(e.y,t.y,n.y,r?r.originY:void 0)}function lu(e,t,n,r=0){e.min=(r?Li(n.min,n.max,r):n.min)+t.min,e.max=e.min+au(t)}function uu(e,t,n,r){lu(e.x,t.x,n.x,r?.x),lu(e.y,t.y,n.y,r?.y)}function du(e,t,n,r=0){let i=r?Li(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+au(t)}function fu(e,t,n,r){du(e.x,t.x,n.x,r?.x),du(e.y,t.y,n.y,r?.y)}function pu(e,t,n,r,i){return e-=t,e=il(e,1/n,r),i!==void 0&&(e=il(e,1/i,r)),e}function mu(e,t=0,n=1,r=.5,i,a=e,o=e){if(fi.test(t)&&(t=parseFloat(t),t=Li(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Li(a.min,a.max,r);e===a&&(s-=t),e.min=pu(e.min,t,n,s,i),e.max=pu(e.max,t,n,s,i)}function hu(e,t,[n,r,i],a,o){mu(e,t[n],t[r],t[i],t.scale,a,o)}var gu=[`x`,`scaleX`,`originX`],_u=[`y`,`scaleY`,`originY`];function vu(e,t,n,r){hu(e.x,t,gu,n?n.x:void 0,r?r.x:void 0),hu(e.y,t,_u,n?n.y:void 0,r?r.y:void 0)}function yu(e){return e.translate===0&&e.scale===1}function bu(e){return yu(e.x)&&yu(e.y)}function xu(e,t){return e.min===t.min&&e.max===t.max}function Su(e,t){return xu(e.x,t.x)&&xu(e.y,t.y)}function Cu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wu(e,t){return Cu(e.x,t.x)&&Cu(e.y,t.y)}function Tu(e){return au(e.x)/au(e.y)}function Eu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Du(e){return[e(`x`),e(`y`)]}function Ou(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var ku=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Au=ku.length,ju=e=>typeof e==`string`?parseFloat(e):e,Mu=e=>typeof e==`number`||G.test(e);function Nu(e,t,n,r,i,a){i?(e.opacity=Li(0,n.opacity??1,Fu(r)),e.o
11pacityExit=Li(t.opacity??1,0,Iu(r))):a&&(e.opacity=Li(t.opacity??1,n.opacity??1,r));for(let i=0;i<Au;i++){let a=ku[i],o=Pu(t,a),s=Pu(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Mu(o)===Mu(s)?(e[a]=Math.max(Li(ju(o),ju(s),r),0),(fi.test(s)||fi.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Li(t.rotate||0,n.rotate||0,r))}function Pu(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Fu=Lu(0,.5,xr),Iu=Lu(.5,.95,tr);function Lu(e,t,n){return r=>r<e?0:r>t?1:n(ir(e,t,r))}function Ru(e,t,n){let r=ls(e)?e:is(e);return r.start(Yo(``,r,t,n)),r.animation}function zu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Bu=(e,t)=>e.depth-t.depth,Vu=class{constructor(){this.children=[],this.isDirty=!1}add(e){qn(this.children,e),this.isDirty=!0}remove(e){Jn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bu),this.isDirty=!1,this.children.forEach(e)}};function Hu(e,t){let n=Hr.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Lr(r),e(a-t))};return Ir.setup(r,!0),()=>Lr(r)}function Uu(e){return ls(e)?e.get():e}var Wu=class{constructor(){this.members=[]}add(e){qn(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Jn(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Jn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.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)}},Gu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ku={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qu=[``,`X`,`Y`,`Z`],Ju=1e3,Yu=0;function Xu(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ms(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Ir,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zu(r)}function Qu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yu++,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=()=>{this.projectionUpdateScheduled=!1,Mr.value&&(Ku.nodes=Ku.calculatedTargetDeltas=Ku.calculatedProjections=0),this.nodes.forEach(td),this.nodes.forEach(ud),this.nodes.forEach(dd),this.nodes.forEach(nd),Mr.addProjectionMetrics&&Mr.addProjectionMetrics(Ku)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ar),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=lc(t)&&!wc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Ir.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Hu(i,250),Gu.hasAnimatedSinceResize&&(Gu.hasAnimatedSinceResize=!1,this.nodes.forEac
11h(ld)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||vd,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!wu(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ko(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||ld(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Lr(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(fd),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ad),this.nodes.forEach(id);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(od);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sd),this.nodes.forEach(cd),this.nodes.forEach($u),this.nodes.forEach(ed)):this.nodes.forEach(od),this.clearAllSnapshots();let e=Hr.now();Rr.delta=Yn(0,1e3/60,e-Rr.timestamp),Rr.timestamp=e,Rr.isProcessing=!0,zr.update.process(Rr),zr.preRender.process(Rr),zr.render.process(Rr),Rr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rd),this.sharedNodes.forEach(pd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ir.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ir.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!au(this.snapshot.measuredBox.x)&&!au(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Ac(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!bu(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tl(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Sd(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Ac();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wd))){let{scroll:e}=this.root;e&&(dl(t.x,e.offset.x),dl(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Ac();if(Zl(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Zl(t,e),dl(t.x,i.offset.x),dl(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Ac();Zl(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(dl(r.x,-n.scroll.offset.x),dl(r.y,-n.scroll.offset.y)),tl(n.latestValues)&&ml(r,n.latestValues,n.layout?.layoutBox)}return tl(this.latestValues)&&ml(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Ac();Zl(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!tl(n.latestValues))continue;let r;n.instance&&(el(n.latestValues)&&n.updateSnapshot(),r=Ac(),Zl(r,n.measurePageBox())),vu(t,n.latestValues,n.snapshot?.layoutBox,r)}return tl(this.latestValues)&&vu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}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!==Rr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
11if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Rr.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ac(),this.targetWithTransforms=Ac()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uu(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Zl(this.target,this.layout.layoutBox),sl(this.target,this.targetDelta)):Zl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Mr.value&&Ku.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||el(this.parent.latestValues)||nl(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ac(),this.relativeTargetOrigin=Ac(),fu(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Zl(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Rr.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Zl(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ul(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Ac());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ql(this.prevProjectionDelta.x,this.projectionDelta.x),Ql(this.prevProjectionDelta.y,this.projectionDelta.y)),cu(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Eu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Eu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Mr.value&&Ku.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oc(),this.projectionDelta=Oc(),this.projectionDeltaWithTransform=Oc()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Oc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Ac(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(_d));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;md(a.x,e.x,n),md(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gd(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Su(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Ac(),Zl(d,this.relativeTarget)),s&&(this.animationValues=i,Nu(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Lr(this.pendingAnimation),void 0),this.pendingAnimation=Ir.update(()=>{Gu.hasAnimatedSinceResize=!0,Ur.layout++,this.motionValue||=is(0),this.motionValue.jump(0,!1),this.currentAnimation=Ru(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Ur.layout--},onComplete:()=>{Ur.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ju),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Cd(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Ac();let t=au(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=au(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Zl(t,n),ml(t,i),cu(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
11)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wu),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Xu(`z`,e,r,this.animationValues);for(let t=0;t<qu.length;t++)Xu(`rotate${qu[t]}`,e,r,this.animationValues),Xu(`skew${qu[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Uu(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Uu(t?.pointerEvents)||``),this.hasProjected&&!tl(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ou(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Tl){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Tl[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Uu(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(id),this.root.sharedNodes.clear()}}}function $u(e){e.updateLayout()}function ed(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Du(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=au(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Xl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Cd(i,t.layoutBox,n)&&Du(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=au(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Oc();cu(o,n,t.layoutBox);let s=Oc();a?cu(s,e.applyTransform(r,!0),t.measuredBox):cu(s,n,t.layoutBox);let c=!bu(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Ac();fu(s,t.layoutBox,i.layoutBox,o);let c=Ac();fu(c,n,a.layoutBox,o),wu(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function td(e){Mr.value&&Ku.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}
11function nd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rd(e){e.clearSnapshot()}function id(e){e.clearMeasurements()}function ad(e){e.isLayoutDirty=!0,e.updateLayout()}function od(e){e.isLayoutDirty=!1}function sd(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cd(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function ld(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ud(e){e.resolveTargetDelta()}function dd(e){e.calcProjection()}function fd(e){e.resetSkewAndRotation()}function pd(e){e.removeLeadSnapshot()}function md(e,t,n){e.translate=Li(t.translate,0,n),e.scale=Li(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hd(e,t,n,r){e.min=Li(t.min,n.min,r),e.max=Li(t.max,n.max,r)}function gd(e,t,n,r){hd(e.x,t.x,n.x,r),hd(e.y,t.y,n.y,r)}function _d(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vd={duration:.45,ease:[.4,0,.1,1]},yd=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bd=yd(`applewebkit/`)&&!yd(`chrome/`)?Math.round:tr;function xd(e){e.min=bd(e.min),e.max=bd(e.max)}function Sd(e){xd(e.x),xd(e.y)}function Cd(e,t,n){return e===`position`||e===`preserve-aspect`&&!ou(Tu(t),Tu(n),.2)}function wd(e){return e!==e.root&&e.scroll?.wasRoot}var Td=Qu({attachResizeListener:(e,t)=>zu(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ed={current:void 0},Dd=Qu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ed.current){let e=new Td({});e.mount(window),e.setOptions({layoutScroll:!0}),Ed.current=e}return Ed.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Od=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function kd(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ad(...e){return t=>{let n=!1,r=e.map(e=>{let r=kd(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():kd(e[t],null)}}}}function jd(...e){return w.useCallback(Ad(...e),e)}var K=Hn(),Md=class extends w.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Vs(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Vs(e)&&e.offsetWidth||0,r=Vs(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function Nd({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,w.useId)(),s=(0,w.useRef)(null),c=(0,w.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,w.useContext)(Od),u=jd(s,e.props?.ref??e?.ref);return(0,w.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
12          [data-motion-pop-id="${o}"] {
13            position: absolute !important;
14            width: ${e}px !important;
15            height: ${u}px !important;
16            ${h}px !important;
17            ${g}px !important;
18          }
19        `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),v.contains(_)&&v.removeChild(_)}},[t]),(0,K.jsx)(Md,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:w.cloneElement(e,{ref:u})})}var Pd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Wn(Fd),d=(0,w.useId)(),f=!0,p=(0,w.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[n,u,r]);return a&&f&&(p={...p}),(0,w.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),w.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,K.jsx)(Nd,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,K.jsx)(Kn.Provider,{value:p,children:e})};function Fd(){return new Map}function Id(e=!0){let t=(0,w.useContext)(Kn);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,w.useId)();(0,w.useEffect)(()=>
19{if(e)return i(a)},[e]);let o=(0,w.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Ld=e=>e.key||``;function Rd(e){let t=[];return w.Children.forEach(e,e=>{(0,w.isValidElement)(e)&&t.push(e)}),t}var zd=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Id(o),f=(0,w.useMemo)(()=>Rd(e),[e]),p=o&&!u?[]:f.map(Ld),m=(0,w.useRef)(!0),h=(0,w.useRef)(f),g=Wn(()=>new Map),_=(0,w.useRef)(new Set),[v,y]=(0,w.useState)(f),[b,x]=(0,w.useState)(f);Gn(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=Ld(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=Ld(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Rd(e)),y(f),null}let{forceRender:C}=(0,w.useContext)(Un);return(0,K.jsx)(K.Fragment,{children:b.map(e=>{let v=Ld(e),y=o&&!u?!1:f===b||p.includes(v);return(0,K.jsx)(Pd,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},Bd=(0,w.createContext)({strict:!1}),Vd={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`]},Hd=!1;function Ud(){if(Hd)return;let e={};for(let t in Vd)e[t]={isEnabled:e=>Vd[t].some(t=>!!e[t])};Gc(e),Hd=!0}function Wd(){return Ud(),Kc()}function Gd(e){let t=Wd();for(let n in e)t[n]={...t[n],...e[n]};Gc(t)}var Kd=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`.split(`.`));function qd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Kd.has(e)}var Jd=c({default:()=>Yd}),Yd,Xd=o((()=>{throw Yd={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Zd=e=>!qd(e);function Qd(e){typeof e==`function`&&(Zd=t=>t.startsWith(`on`)?!qd(t):e(t))}try{Qd((Xd(),d(Jd)).default)}catch{}function $d(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||ls(e[i])||(Zd(i)||n===!0&&qd(i)||!t&&!qd(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var ef=(0,w.createContext)({});function tf(e,t){if(Ic(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Nc(t)?t:void 0,animate:Nc(n)?n:void 0}}return e.inherit===!1?{}:t}function nf(e){let{initial:t,animate:n}=tf(e,(0,w.useContext)(ef));return(0,w.useMemo)(()=>({initial:t,animate:n}),[rf(t),rf(n)])}function rf(e){return Array.isArray(e)?e.join(` `):e}var af=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function of(e,t,n){for(let r in t)!ls(t[r])&&!El(r,n)&&(e[r]=t[r])}function sf({transformTemplate:e},t){return(0,w.useMemo)(()=>{let n=af();return bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cf(e,t){let n=e.style||{},r={};return of(r,n,e),Object.assign(r,sf(e,t)),r}function lf(e,t){let n={},r=cf(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var uf=()=>({...af(),attrs:{}});function df(e,t,n,r){let i=(0,w.useMemo)(()=>{let n=uf();return Pl(n,t,Il(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};of(t,e.style,e),i.style={...t,...i.style}}return i}var ff=[`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 pf(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ff.indexOf(e)>-1||/[A-Z]/u.test(e))}function mf(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??pf(e)?df:lf)(t,r,i,e),c=$d(t,typeof e==`string`,a),l=e===w.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,w.useMemo)(()=>ls(u)?u.get():u,[u]);return(0,w.createElement)(e,{...l,children:d})}function hf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:gf(n,r,i,e),renderState:t()}}function gf(e,t,n,r){let i={}
19,a=r(e,{});for(let e in a)i[e]=Uu(a[e]);let{initial:o,animate:s}=e,c=Ic(e),l=Lc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Mc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Zo(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var _f=e=>(t,n)=>{let r=(0,w.useContext)(ef),i=(0,w.useContext)(Kn),a=()=>hf(e,t,r,i);return n?a():Wn(a)},vf=_f({scrapeMotionValuesFromProps:Dl,createRenderState:af}),yf=_f({scrapeMotionValuesFromProps:Rl,createRenderState:uf}),bf=Symbol.for(`motionComponentSymbol`);function xf(e,t,n){let r=(0,w.useRef)(n);(0,w.useInsertionEffect)(()=>{r.current=n});let i=(0,w.useRef)(null);return(0,w.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var Sf=(0,w.createContext)({});function Cf(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function wf(e,t,n,r,i,a){let{visualElement:o}=(0,w.useContext)(ef),s=(0,w.useContext)(Bd),c=(0,w.useContext)(Kn),l=(0,w.useContext)(Od),u=l.reducedMotion,d=l.skipAnimations,f=(0,w.useRef)(null),p=(0,w.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,w.useContext)(Sf);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Tf(f.current,n,i,h);let g=(0,w.useRef)(!1);(0,w.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[ps],v=(0,w.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Gn(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,w.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Tf(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ef(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Cf(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ef(e){if(e)return e.options.allowProjection===!1?Ef(e.parent):e.projection}function Df(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Gd(r);let a=n?n===`svg`:pf(e),o=a?yf:vf;function s(n,s){let c,l={...(0,w.useContext)(Od),...n,layoutId:Of(n)},{isStatic:u}=l,d=nf(n),f=o(n,u);if(!u&&typeof window<`u`){kf(l,r);let t=Af(l);c=t.MeasureLayout,d.visualElement=wf(e,f,l,i,t.ProjectionNode,a)}return(0,K.jsxs)(ef.Provider,{value:d,children:[c&&d.visualElement?(0,K.jsx)(c,{visualElement:d.visualElement,...l}):null,mf(e,n,xf(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,w.forwardRef)(s);return c[bf]=e,c}function Of({layoutId:e}){let t=(0,w.useContext)(Un).id;return t&&e!==void 0?t+`-`+e:e}function kf(e,t){(0,w.useContext)(Bd).strict}function Af(e){let{drag:t,layout:n}=Wd();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function jf(e,t){if(typeof Proxy>`u`)return Df;let n=new Map,r=(n,r)=>Df(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Df(a,void 0,e,t)),n.get(a))})}var Mf=(e,t)=>t.isSVG??pf(e)?new zl(t):new kl(t,{allowProjection:e!==w.Fragment}),Nf=class extends Yc{constructor(e){super(e),e.animationState||=Kl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Mc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Pf=0,Ff={animation:{Feature:Nf},exit:{Feature:class extends Yc{constructor(){super(...arguments),this.id=Pf++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=Qo(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>
19{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function If(e){return{point:{x:e.pageX,y:e.pageY}}}var Lf=e=>t=>Zs(t)&&e(t,If(t));function Rf(e,t,n,r){return zu(e,t,Lf(n),r)}var zf=({current:e})=>e?e.ownerDocument.defaultView:null,Bf=(e,t)=>Math.abs(e-t);function Vf(e,t){let n=Bf(e.x,t.x),r=Bf(e.y,t.y);return Math.sqrt(n**2+r**2)}var Hf=new Set([`auto`,`scroll`]),Uf=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Wf(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Kf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Vf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Rr;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Wf(t,this.transformPagePoint),Ir.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Kf(e.type===`pointercancel`?this.lastMoveEventInfo:Wf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Zs(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Wf(If(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Rr;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Kf(s,this.history)),this.removeListeners=rr(Rf(this.contextWindow,`pointermove`,this.handlePointerMove),Rf(this.contextWindow,`pointerup`,this.handlePointerUp),Rf(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Hf.has(e.overflowX)||Hf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Ir.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Lr(this.updatePoint)}};function Wf(e,t){return t?{point:t(e.point)}:e}function Gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kf({point:e},t){return{point:e,delta:Gf(e,Jf(t)),offset:Gf(e,qf(t)),velocity:Yf(t,.1)}}function qf(e){return e[0]}function Jf(e){return e[e.length-1]}function Yf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Jf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>or(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>or(t)*2&&(r=e[1]);let a=sr(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Xf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Li(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Li(n,e,r.max):Math.min(e,n)),e}function Zf(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Qf(e,{top:t,left:n,bottom:r,right:i}){return{x:Zf(e.x,n,i),y:Zf(e.y,t,r)}}function $f(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ep(e,t){return{x:$f(e.x,t.x),y:$f(e.y,t.y)}}function tp(e,t){let n=.5,r=au(e),i=au(t);return i>r?n=ir(t.min,t.max-r,e.min):r>i&&(n=ir(e.min,e.max-i,t.min)),Yn(0,1,n)}function np(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var rp=.35;function ip(e=rp){return e===!1?e=0:e===!0&&(e=rp),{x:ap(e,`left`,`right`),y:ap(e,`top`,`bottom`)}}
19function ap(e,t,n){return{min:op(e,t),max:op(e,n)}}function op(e,t){return typeof e==`number`?e:e[t]||0}var sp=new WeakMap,cp=class{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=Ac(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(If(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ks(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Du(e=>{let t=this.getAxisMotionValue(e).get()||0;if(fi.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=au(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Ir.update(()=>i(e,t),!1,!0),ds(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=fp(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Ir.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Uf(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:zf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Ir.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!dp(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Xf(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Cf(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Qf(n.layoutBox,e):this.constraints=!1,this.elastic=ip(t),r!==this.constraints&&!Cf(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Du(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=np(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Cf(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=gl(n,r.root,this.visualElement.getTransformPagePoint()),a=ep(r.layout.layoutBox,i);if(t){let e=t(Zc(a));this.hasMutatedConstraints=!!e,e&&(a=Xc(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Du(o=>{if(!dp(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ds(this.visualElement,e),n.start(Yo(e,n,0,t,this.visualElement,!1))}stopAnimation(){Du(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Du(t=>{let{drag:n}=this.getProps();if(!dp(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Li(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Cf(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Du(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=tp({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Du(t=>{if(!dp(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Li(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;sp.set(this.visualElement,this);let e=this.visualElement.current,t=Rf(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&tc(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Cf(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=up(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ir.read(r);let o=zu(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Du(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=rp,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function lp(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function up(e,t,n){let r=Cc(e,lp(n)),i=Cc(t,lp(n));return()=>{r(),i()}}function dp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fp(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var pp=class extends Yc{constructor(e){super(e),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new cp(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},mp=e=>(t,n)=>{e&&Ir.update(()=>e(t,n),!1,!0)},hp=class extends Yc{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(e){this.session=new Uf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:mp(e),onStart:mp(t),onMove:mp(n),onEnd:(e,t)=>{delete this.session,r&&Ir.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Rf(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},gp=!1,_p=class extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),gp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),gp=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Ir.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Hs.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;gp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function vp(e){let[t,n]=Id(),r=(0,w.useContext)(Un);return(0,K.jsx)(_p,{...e,layoutGroup:r,switchLayoutGroup:(0,w.useContext)(Sf),isPresent:t,safeToRemove:n})}var yp={pan:{Feature:hp},drag:{Feature:pp,ProjectionNode:Dd,MeasureLayout:vp}};function bp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Ir.postRender(()=>i(t,If(t)))}var xp=class extends Yc{mount(){let{current:e}=this.node;e&&(this.unmount=Ys(e,(e,t)=>(bp(this.node,t,`Start`),e=>bp(this.node,e,`End`))))}unmount(){}},Sp=class extends Yc{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=rr(zu(this.node.current,`focus`,()=>this.onFocus()),zu(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};
19function Cp(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Ir.postRender(()=>i(t,If(t)))}var wp=class extends Yc{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=cc(e,(e,t)=>(Cp(this.node,t,`Start`),(e,{success:t})=>Cp(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Tp=new WeakMap,Ep=new WeakMap,Dp=e=>{let t=Tp.get(e.target);t&&t(e)},Op=e=>{e.forEach(Dp)};function kp({root:e,...t}){let n=e||document;Ep.has(n)||Ep.set(n,{});let r=Ep.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Op,{root:e,...t})),r[i]}function Ap(e,t,n){let r=kp(t);return Tp.set(e,n),r.observe(e),()=>{Tp.delete(e),r.unobserve(e)}}var jp={some:0,all:1},Mp=class extends Yc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:jp[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Ap(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Np(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Np({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Pp={inView:{Feature:Mp},tap:{Feature:wp},focus:{Feature:Sp},hover:{Feature:xp}},Fp={layout:{ProjectionNode:Dd,MeasureLayout:vp}},Ip=jf({...Ff,...Pp,...yp,...Fp},Mf);function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lp.apply(null,arguments)}var Rp={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},zp={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Bp=`attached`,Vp=`detached`,Hp=1e3,Up=1001,Wp=1002,Gp=1003,Kp=1004,qp=1004,Jp=1005,Yp=1005,Xp=1006,Zp=1007,Qp=1007,$p=1008,em=1008,tm=1009,nm=1010,rm=1011,im=1012,am=1013,om=1014,sm=1015,cm=1016,lm=1017,um=1018,dm=1020,fm=35902,pm=35899,mm=1021,hm=1022,gm=1023,_m=1026,vm=1027,ym=1028,bm=1029,xm=1030,Sm=1031,Cm=1032,wm=1033,Tm=33776,Em=33777,Dm=33778,Om=33779,km=35840,Am=35841,jm=35842,Mm=35843,Nm=36196,Pm=37492,Fm=37496,Im=37488,Lm=37489,Rm=37490,zm=37491,Bm=37808,Vm=37809,Hm=37810,Um=37811,Wm=37812,Gm=37813,Km=37814,qm=37815,Jm=37816,Ym=37817,Xm=37818,Zm=37819,Qm=37820,$m=37821,eh=36492,th=36494,nh=36495,rh=36283,ih=36284,ah=36285,oh=36286,sh=2200,ch=2201,lh=2202,uh=2300,dh=2301,fh=2302,ph=2303,mh=2400,hh=2401,gh=2402,_h=2500,vh=2501,yh=3200,bh=3201,xh=3202,Sh=3203,Ch=`srgb`,wh=`srgb-linear`,Th=`linear`,Eh=`srgb`,Dh=7680,Oh=7681,kh=7682,Ah=7683,jh=34055,Mh=34056,Nh=5386,Ph=35044,Fh=35048,Ih=35040,Lh=35045,Rh=35049,zh=35041,Bh=35046,Vh=35050,Hh=35042,Uh=`300 es`,Wh=2e3,Gh=2001,Kh={COMPUTE:`compute`,RENDER:`render`},qh={PERSPECTIVE:`perspective`,LINEAR:`linear`,FLAT:`flat`},Jh={NORMAL:`normal`,CENTROID:`centroid`,SAMPLE:`sample`,FIRST:`first`,EITHER:`either`},Yh={TEXTURE_COMPARE:`depthTextureCompare`};function Xh(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}var Zh={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Qh(e,t){return new Zh[e](t)}function $h(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function eg(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function tg(){let e=eg(`canvas`);return e.style.display=`block`,e}var ng={},rg=null;function ig(e){rg=e}function ag(){return rg}function og(...e){let t=`THREE.`+e.shift();rg?rg(`log`,t,...e):console.log(t,...e)}function sg(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function q(...e){e=sg(e);let t=`THREE.`+e.shift();if(rg)rg(`warn`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function J(...e){e=sg(e);let t=`THREE.`+e.shift();if(rg)rg(`error`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function cg(...e){let t=e.join(` `);t in ng||(ng[t]=!0,q(...e))}function lg(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var ug={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},dg=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n<r;n++)t[n].call(this,e);e.target=null}}},fg=`00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.
19cd.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`.split(`.`),pg=1234567,mg=Math.PI/180,hg=180/Math.PI;function gg(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(fg[e&255]+fg[e>>8&255]+fg[e>>16&255]+fg[e>>24&255]+`-`+fg[t&255]+fg[t>>8&255]+`-`+fg[t>>16&15|64]+fg[t>>24&255]+`-`+fg[n&63|128]+fg[n>>8&255]+`-`+fg[n>>16&255]+fg[n>>24&255]+fg[r&255]+fg[r>>8&255]+fg[r>>16&255]+fg[r>>24&255]).toLowerCase()}function _g(e,t,n){return Math.max(t,Math.min(n,e))}function vg(e,t){return(e%t+t)%t}function yg(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function bg(e,t,n){return e===t?0:(n-e)/(t-e)}function xg(e,t,n){return(1-n)*e+n*t}function Sg(e,t,n,r){return xg(e,t,1-Math.exp(-n*r))}function Cg(e,t=1){return t-Math.abs(vg(e,t*2)-t)}function wg(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Tg(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Eg(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Dg(e,t){return e+Math.random()*(t-e)}function Og(e){return e*(.5-Math.random())}function kg(e){e!==void 0&&(pg=e);let t=pg+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Ag(e){return e*mg}function jg(e){return e*hg}function Mg(e){return(e&e-1)==0&&e!==0}function Ng(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function Pg(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function Fg(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:q(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function Ig(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function Lg(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}var Rg={DEG2RAD:mg,RAD2DEG:hg,generateUUID:gg,clamp:_g,euclideanModulo:vg,mapLinear:yg,inverseLerp:bg,lerp:xg,damp:Sg,pingpong:Cg,smoothstep:wg,smootherstep:Tg,randInt:Eg,randFloat:Dg,randFloatSpread:Og,seededRandom:kg,degToRad:Ag,radToDeg:jg,isPowerOfTwo:Mg,ceilPowerOfTwo:Ng,floorPowerOfTwo:Pg,setQuaternionFromProperEuler:Fg,normalize:Lg,denormalize:Ig},Y=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,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,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw 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 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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.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)}
vendor: 5,076 bytes, line 19
19applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=_g(this.x,e.x,t.x),this.y=_g(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=_g(this.x,e,t),this.y=_g(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(_g(n,e,t))}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){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(_g(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},zg=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,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,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:q(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>
vendor: 4,443 bytes, line 19
19Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(_g(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),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}},X=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,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,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw 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 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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,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,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.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,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Vg.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Vg.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}
vendor: 4,446 bytes, line 19
19applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=_g(this.x,e.x,t.x),this.y=_g(this.y,e.y,t.y),this.z=_g(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=_g(this.x,e,t),this.y=_g(this.y,e,t),this.z=_g(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(_g(n,e,t))}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,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Bg.copy(this).projectOnVector(e),this.sub(Bg)}reflect(e){return this.sub(Bg.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(_g(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*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,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}
vendor: 6,417 bytes, line 19
19,Bg=new X,Vg=new zg,Hg=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Ug.makeScale(e,t)),this}rotate(e){return this.premultiply(Ug.makeRotation(-e)),this}translate(e,t){return this.premultiply(Ug.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},Ug=new Hg,Wg=new Hg().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Gg=new Hg().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Kg(){let e={enabled:!0,workingColorSpace:wh,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=Jg(e.r),e.g=Jg(e.g),e.b=Jg(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Yg(e.r),e.g=Yg(e.g),e.b=Yg(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Th:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return cg(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return cg(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[wh]:{primaries:t,whitePoint:r,transfer:Th,toXYZ:Wg,fromXYZ:Gg,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Ch},outputColorSpaceConfig:{drawingBufferColorSpace:Ch}},[Ch]:{primaries:t,whitePoint:r,transfer:Eh,toXYZ:Wg,fromXYZ:Gg,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Ch}}}),e}var qg=Kg();function Jg(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Yg(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var Xg,Zg=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Xg===void 0&&(Xg=eg(`canvas`)),Xg.width=e.width,Xg.height=e.height;let t=Xg.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Xg}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=eg(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=Jg(i[e]/255)*255;return n.putImageData(r,0,0),t}else if(e.data){let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(Jg(t[e]/255
vendor: 4,493 bytes, line 19
19)*255):t[e]=Jg(t[e]);return{data:t,width:e.width,height:e.height}}else return q(`ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied.`),e}},Qg=0,$g=class{constructor(e=null){this.isSource=!0,Object.defineProperty(this,`id`,{value:Qg++}),this.uuid=gg(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return typeof HTMLVideoElement<`u`&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):typeof VideoFrame<`u`&&t instanceof VideoFrame?e.set(t.displayWidth,t.displayHeight,0):t===null?e.set(0,0,0):e.set(t.width,t.height,t.depth||0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];let n={uuid:this.uuid,url:``},r=this.data;if(r!==null){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(e_(r[t].image)):e.push(e_(r[t]))}else e=e_(r);n.url=e}return t||(e.images[this.uuid]=n),n}};function e_(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap?Zg.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(q(`Texture: Unable to serialize Texture.`),{})}var t_=0,n_=new X,r_=class e extends dg{constructor(t=e.DEFAULT_IMAGE,n=e.DEFAULT_MAPPING,r=Up,i=Up,a=Xp,o=$p,s=gm,c=tm,l=e.DEFAULT_ANISOTROPY,u=``){super(),this.isTexture=!0,Object.defineProperty(this,`id`,{value:t_++}),this.uuid=gg(),this.name=``,this.source=new $g(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=c,this.offset=new Y(0,0),this.repeat=new Y(1,1),this.center=new Y(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Hg,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=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(n_).x}get height(){return this.source.getSize(n_).y}get depth(){return this.source.getSize(n_).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,t){this.updateRanges.push({start:e,count:t})}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(let t in e){let n=e[t];if(n===void 0){q(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){q(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={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.t
vendor: 4,924 bytes, line 19
19ype,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&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Hp:e.x-=Math.floor(e.x);break;case Up:e.x=e.x<0?0:1;break;case Wp:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Hp:e.y-=Math.floor(e.y);break;case Up:e.y=e.y<0?0:1;break;case Wp:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(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++}};r_.DEFAULT_IMAGE=null,r_.DEFAULT_MAPPING=300,r_.DEFAULT_ANISOTROPY=1;var i_=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw 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 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?1:e.w,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,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,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,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.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){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,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);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)<a&&Math.abs(u-m)<a&&Math.abs(p-h)<a){if(Math.abs(l+d)<o&&Math.abs(u+m)<o&&Math.abs(p+h)<o&&Math.abs(c+f+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;let e=(c+1)/2,s=(f+1)/2,_=(g+1)/2,v=(l+d)/4,y=(u+m)/4,b=(p+h)/4;return e>s&&e>_?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=v/n,i=y/n):s>_?s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=v/r,i=b/r):_<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(_),n=y/i,r=b/i),this.set(n,r,i,t),this}let _=Math.sqrt((h-p)*(h-p)+(u-m)*(u-m)+(d-l)*(d-l));return Math.abs(_)<.001&&(_=1),this.x=(h-p)/_,this.y=(u-m)/_,this.z=(d-l)/_,this.w=Math.acos((c+f+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[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,t){return this.x=_g(this.x,e.x,t.x),this.y=_g(this.y,e.y,t.y),this.z=_g(this.z,e.z,t.z),this.w=_g(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=_g(this.x,e,t),this.y=_g(this.y,e,t),this.z=_g(this.z,e,t),this.w=_g(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(_g(n,e,t))}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}
vendor: 13,533 bytes, line 19
19round(){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,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),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}},a_=class extends dg{constructor(e=1,t=1,n={}){super(),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Xp,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},n),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=n.depth,this.scissor=new i_(0,0,e,t),this.scissorTest=!1,this.viewport=new i_(0,0,e,t),this.textures=[];let r=new r_({width:e,height:t,depth:n.depth}),i=n.count;for(let e=0;e<i;e++)this.textures[e]=r.clone(),this.textures[e].isRenderTargetTexture=!0,this.textures[e].renderTarget=this;this._setTextureOptions(n),this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this._depthTexture=null,this.depthTexture=n.depthTexture,this.samples=n.samples,this.multiview=n.multiview}_setTextureOptions(e={}){let t={minFilter:Xp,generateMipmaps:!1,flipY:!1,internalFormat:null};e.mapping!==void 0&&(t.mapping=e.mapping),e.wrapS!==void 0&&(t.wrapS=e.wrapS),e.wrapT!==void 0&&(t.wrapT=e.wrapT),e.wrapR!==void 0&&(t.wrapR=e.wrapR),e.magFilter!==void 0&&(t.magFilter=e.magFilter),e.minFilter!==void 0&&(t.minFilter=e.minFilter),e.format!==void 0&&(t.format=e.format),e.type!==void 0&&(t.type=e.type),e.anisotropy!==void 0&&(t.anisotropy=e.anisotropy),e.colorSpace!==void 0&&(t.colorSpace=e.colorSpace),e.flipY!==void 0&&(t.flipY=e.flipY),e.generateMipmaps!==void 0&&(t.generateMipmaps=e.generateMipmaps),e.internalFormat!==void 0&&(t.internalFormat=e.internalFormat);for(let e=0;e<this.textures.length;e++)this.textures[e].setValues(t)}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,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let r=0,i=this.textures.length;r<i;r++)this.textures[r].image.width=e,this.textures[r].image.height=t,this.textures[r].image.depth=n,this.textures[r].isData3DTexture!==!0&&(this.textures[r].isArrayTexture=this.textures[r].image.depth>1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}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 t=0,n=e.textures.length;t<n;t++){this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0,this.textures[t].renderTarget=this;let n=Object.assign({},e.textures[t].image);this.textures[t].source=new $g(n)}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`})}},o_=class extends a_{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}},s_=class extends r_{constructor(e=null,t=1,n=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Gp,this.minFilter=Gp,this.wrapR=Up,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}},c_=class extends o_{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGLArrayRenderTarget=!0,this.depth=n,this.texture=new s_(null,e,t,n),this._setTextureOptions(r),this.texture.isRenderTargetTexture=!0}},l_=class extends r_{constructor(e=null,t=1,n=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Gp,this.minFilter=Gp,this.wrapR=Up,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},u_=class extends o_{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGL3DRenderTarget=!0,this.depth=n,this.texture=new l_(null,e,t,n),this._setTextureOptions(r),this.texture.isRenderTargetTexture=!0}},d_=class e{static{e.prototype.isMatrix4=!0}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,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 e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return this.determinant()===0?(e.set(1,0,0),t.set(0,1,0),n.set(0,0,1),this):(e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this)}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){if(e.determinant()===0)return this.identity();let t=this.elements,n=e.elements,r=1/f_.setFromMatrixColumn(e,0).length(),i=1/f_.setFromMatrixColumn(e,1).length(),a=1/f_.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(m_,e,h_)}lookAt(e,t,n){let r=this.elements;return v_.subVectors(e,t),v_.lengthSq()===0&&(v_.z=1),v_.normalize(),g_.crossVectors(n,v_),g_.lengthSq()===0&&(Math.abs(n.z)===1?v_.x+=1e-4:v_.z+=1e-4,v_.normalize(),g_.crossVectors(n,v_)),g_.normalize(),__.crossVectors(v_,g_),r[0]=g_.x,r[4]=__.x,r[8]=v_.x,r[1]=g_.y,r[5]=__.y,r[9]=v_.y,r[2]=g_.z,r[6]=__.z,r[10]=v_.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],D=r[9],O=r[13],k=r[2],A=r[6],j=r[10],M=r[14],N=r[3],P=r[7],ee=r[11],F=r[15];return i[0]=a*x+o*T+s*k+c*N,i[4]=a*S+o*E+s*A+c*P,i[8]=a*C+o*D+s*j+c*ee,i[12]=a*w+o*O+s*M+c*F,i[1]=l*x+u*T+d*k+f*N,i[5]=l*S+u*E+d*A+f*P,i[9]=l*C+u*D+d*j+f*ee,i[13]=l*w+u*O+d*M+f*F,i[2]=p*x+m*T+h*k+g*N,i[6]=p*S+m*E+h*A+g*P,i[10]=p*C+m*D+h*j+g*ee,i[14]=p*w+m*O+h*M+g*F,i[3]=_*x+v*T+y*k+b*N,i[7]=_*S+v*E+y*A+b*P,i[11]=_*C+v*D+y*j+b*ee,i[15]=_*w+v*O+y*M+b*F,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15],_=s*f-c*d,v=o*f-c*u,y=o*d-s*u,b=a*f-c*l,x=a*d-s*l,S=a*u-o*l;return t*(m*_-h*v+g*y)-n*(p*_-h*b+g*x)+r*(p*v-m*b+g*S)-i*(p*y-m*x+h*S)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,D=u*g-f*m,O=d*g-f*h,k=_*O-v*D+y*E+b*T-x*w+S*C;if(k===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let A=1/k;return e[0]=(o*O-s*D+c*E)*A,e[1]=(r*D-n*O-i*E)*A,e[2]=(m*S-h*x+g*b)*A,e[3]=(d*x-u*S-f*b)*A,e[4]=(s*T-a*O-c*w)*A,e[5]=(t*O-r*T+i*w)*A,e[6]=(h*y-p*S-g*v)*A,e[7]=(l*S-d*y+f*v)*A,e[8]=(a*D-o*T+c*C)*A,e[9]=(n*T-t*D-i*C)*A,e[10]=(p*x-m*y+g*_)*A,e[11]=(u*y-l*x-f*_)*A,e[12]=(o*w-a*E-s*C)*A,e[13]=(t*E-n*w+r*C)*A,e[14]=(m*v-p*b-h*_)*A,e[15]=(l*b-u*v+d*_)*A,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){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,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements;e.x=r[12],e.y=r[13],e.z=r[14];let i=this.determinant();if(i===0)return n.set(1,1,1),t.identity(),this;let a=f_.set(r[0],r[1],r[2]).length(),o=f_.set(r[4],r[5],r[6]).length(),s=f_.set(r[8],r[9],r[10]).length();i<0&&(a=-a),p_.copy(this);let c=1/a,l=1/o,u=1/s;return p_.elements[0]*=c,p_.elements[1]*=c,p_.elements[2]*=c,p_.elements[4]*=l,p_.elements[5]*=l,p_.elements[6]*=l,p_.elements[8]*=u,p_.elements[9]*=u,p_.elements[10]*=u,t.setFromRotationMatrix(p_),n.x=a,n.y=o,n.z=s,this}makePerspective(e,t,n,r,i,a,o=Wh,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===2e3)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===2001)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}
vendor: 5,572 bytes, line 19
19makeOrthographic(e,t,n,r,i,a,o=Wh,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===2e3)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===2001)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}},f_=new X,p_=new d_,m_=new X(0,0,0),h_=new X(1,1,1),g_=new X,__=new X,v_=new X,y_=new d_,b_=new zg,x_=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,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,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(_g(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-_g(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(_g(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-_g(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(_g(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-_g(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:q(`Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return y_.makeRotationFromQuaternion(e),this.setFromRotationMatrix(y_,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return b_.setFromEuler(this),this.setFromQuaternion(b_,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=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+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}};x_.DEFAULT_ORDER=`XYZ`;var S_=class{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}},C_=0,w_=new X,T_=new zg,E_=new d_,D_=new X,O_=new X,k_=new X,A_=new zg,j_=new X(1,0,0),M_=new X(0,1,0),N_=new X(0,0,1),P_={type:`added`},F_={type:`removed`},I_={type:`childadded`,child:null},L_={type:`childremoved`,child:null},R_=class e extends dg{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,`id`,{value:C_++}),this.uuid=gg(),this.name=``,this.type=`Object3D`,this.parent=null,this.children=[],this.up=e.DEFAULT_UP.clone();let t=new X,n=new x_,r=new zg,i=new X(1,1,1);function a(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new d_},normalMatrix:{value:new Hg}}),this.matrix=new d_,this.matrixWorld=new d_,this.matrixAutoUpdate=e.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new S_,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,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 4,397 bytes, line 19
19setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return T_.setFromAxisAngle(e,t),this.quaternion.multiply(T_),this}rotateOnWorldAxis(e,t){return T_.setFromAxisAngle(e,t),this.quaternion.premultiply(T_),this}rotateX(e){return this.rotateOnAxis(j_,e)}rotateY(e){return this.rotateOnAxis(M_,e)}rotateZ(e){return this.rotateOnAxis(N_,e)}translateOnAxis(e,t){return w_.copy(e).applyQuaternion(this.quaternion),this.position.add(w_.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(j_,e)}translateY(e){return this.translateOnAxis(M_,e)}translateZ(e){return this.translateOnAxis(N_,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(E_.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?D_.copy(e):D_.set(e,t,n);let r=this.parent;this.updateWorldMatrix(!0,!1),O_.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?E_.lookAt(O_,D_,this.up):E_.lookAt(D_,O_,this.up),this.quaternion.setFromRotationMatrix(E_),r&&(E_.extractRotation(r.matrixWorld),T_.setFromRotationMatrix(E_),this.quaternion.premultiply(T_.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(J(`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(P_),I_.child=e,this.dispatchEvent(I_),I_.child=null):J(`Object3D.add: object not an instance of THREE.Object3D.`,e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(F_),L_.child=e,this.dispatchEvent(L_),L_.child=null),this}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),E_.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),E_.multiply(e.parent.matrixWorld)),e.applyMatrix4(E_),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(P_),I_.child=e,this.dispatchEvent(I_),I_.child=null,this}getObjectById(e){return this.getObjectByProperty(`id`,e)}getObjectByName(e){return this.getObjectByProperty(`name`,e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){let r=this.children[n].getObjectByProperty(e,t);if(r!==void 0)return r}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let r=this.children;for(let i=0,a=r.length;i<a;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(O_,e,k_),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(O_,A_,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);let e=this.pivot;if(e!==null){let t=e.x,n=e.y,r=e.z,i=this.matrix.elements;i[12]+=t-i[0]*t-i[4]*n-i[8]*r,i[13]+=n-i[1]*t-i[5]*n-i[9]*r,i[14]+=r-i[2]*t-i[6]*n-i[10]*r}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);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t){let n=this.parent;if(e===!0&&n!==null&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix
vendor: 18,879 bytes, line 19
19):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),t===!0){let e=this.children;for(let t=0,n=e.length;t<n;t++)e[t].updateWorldMatrix(!1,!0)}}toJSON(e){let t=e===void 0||typeof e==`string`,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:`Object`,generator:`Object3D.toJSON`});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==``&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),this.static!==!1&&(r.static=this.static),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){let r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){let t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!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?null:e.pivot.clone(),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)),t===!0)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}};R_.DEFAULT_UP=new X(0,1,0),R_.DEFAULT_MATRIX_AUTO_UPDATE=!0,R_.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var z_=class extends R_{constructor(){super(),this.isGroup=!0,this.type=`Group`}},B_={type:`move`},V_=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new z_,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 z_,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new X,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new X),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new z_,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new X,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new X,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){let t=this._hand;if(t)for(let n of e.hand.values())this._getHandJoint(t,n)}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,t,n){let r=null,i=null,a=null,o=this._targetRay,s=this._grip,c=this._hand;if(e&&t.session.visibilityState!==`visible-blurred`){if(c&&e.hand){a=!0;for(let r of e.hand.values()){let e=t.getJointPose(r,n),i=this._getHandJoint(c,r);e!==null&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=e!==null}let r=c.joints[`index-finger-tip`],i=c.joints[`thumb-tip`],o=r.position.distanceTo(i.position),s=.02,l=.005;c.inputState.pinching&&o>s+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(B_)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new z_;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},H_={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},U_={h:0,s:0,l:0},W_={h:0,s:0,l:0};function G_(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Z=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Ch){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,qg.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=qg.workingColorSpace){return this.r=e,this.g=t,this.b=n,qg.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=qg.workingColorSpace){if(e=vg(e,1),t=_g(t,0,1),n=_g(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=G_(i,r,e+1/3),this.g=G_(i,r,e),this.b=G_(i,r,e-1/3)}return qg.colorSpaceToWorking(this,r),this}setStyle(e,t=Ch){function n(t){t!==void 0&&parseFloat(t)<1&&q(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:q(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);q(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Ch){let n=H_[e.toLowerCase()];return n===void 0?q(`Color: Unknown color `+e):this.setHex(n,t),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=Jg(e.r),this.g=Jg(e.g),this.b=Jg(e.b),this}copyLinearToSRGB(e){return this.r=Yg(e.r),this.g=Yg(e.g),this.b=Yg(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Ch){return qg.workingToColorSpace(K_.copy(this),e),Math.round(_g(K_.r*255,0,255))*65536+Math.round(_g(K_.g*255,0,255))*256+Math.round(_g(K_.b*255,0,255))}getHexString(e=Ch){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=qg.workingColorSpace){qg.workingToColorSpace(K_.copy(this),t);let n=K_.r,r=K_.g,i=K_.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4;break}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=qg.workingColorSpace){return qg.workingToColorSpace(K_.copy(this),t),e.r=K_.r,e.g=K_.g,e.b=K_.b,e}getStyle(e=Ch){qg.workingToColorSpace(K_.copy(this),e);let t=K_.r,n=K_.g,r=K_.b;return e===`srgb`?`rgb(${Math.round(t*255)},${Math.round(n*255)},${Math.round(r*255)})`:`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`}offsetHSL(e,t,n){return this.getHSL(U_),this.setHSL(U_.h+e,U_.s+t,U_.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.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,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(U_),e.getHSL(W_);let n=xg(U_.h,W_.h,t),r=xg(U_.s,W_.s,t),i=xg(U_.l,W_.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}},K_=new Z;Z.NAMES=H_;var q_=class e{constructor(e,t=25e-5){this.isFogExp2=!0,this.name=``,this.color=new Z(e),this.density=t}clone(){return new e(this.color,this.density)}toJSON(){return{type:`FogExp2`,name:this.name,color:this.color.getHex(),density:this.density}}},J_=class e{constructor(e,t=1,n=1e3){this.isFog=!0,this.name=``,this.color=new Z(e),this.near=t,this.far=n}clone(){return new e(this.color,this.near,this.far)}toJSON(){return{type:`Fog`,name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}},Y_=class extends R_{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 x_,this.environmentIntensity=1,this.environmentRotation=new x_,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(e,t){return super.copy(e,t),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){let t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},X_=new X,Z_=new X,Q_=new X,$_=new X,ev=new X,tv=new X,nv=new X,rv=new X,iv=new X,av=new X,ov=new i_,sv=new i_,cv=new i_,lv=class e{constructor(e=new X,t=new X,n=new X){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),X_.subVectors(e,t),r.cross(X_);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){X_.subVectors(r,t),Z_.subVectors(n,t),Q_.subVectors(e,t);let a=X_.dot(X_),o=X_.dot(Z_),s=X_.dot(Q_),c=Z_.dot(Z_),l=Z_.dot
vendor: 10,130 bytes, line 19
19(Q_),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,$_)===null?!1:$_.x>=0&&$_.y>=0&&$_.x+$_.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,$_)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,$_.x),s.addScaledVector(a,$_.y),s.addScaledVector(o,$_.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return ov.setScalar(0),sv.setScalar(0),cv.setScalar(0),ov.fromBufferAttribute(e,t),sv.fromBufferAttribute(e,n),cv.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(ov,i.x),a.addScaledVector(sv,i.y),a.addScaledVector(cv,i.z),a}static isFrontFacing(e,t,n,r){return X_.subVectors(n,t),Z_.subVectors(e,t),X_.cross(Z_).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return X_.subVectors(this.c,this.b),Z_.subVectors(this.a,this.b),X_.cross(Z_).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;ev.subVectors(r,n),tv.subVectors(i,n),rv.subVectors(e,n);let s=ev.dot(rv),c=tv.dot(rv);if(s<=0&&c<=0)return t.copy(n);iv.subVectors(e,r);let l=ev.dot(iv),u=tv.dot(iv);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(ev,a);av.subVectors(e,i);let f=ev.dot(av),p=tv.dot(av);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(tv,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return nv.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(nv,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(ev,a).addScaledVector(tv,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},uv=class{constructor(e=new X(1/0,1/0,1/0),t=new X(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(fv.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(fv.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=fv.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}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,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(n!==void 0){let r=n.getAttribute(`position`);if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let t=0,n=r.count;t<n;t++)e.isMesh===!0?e.getVertexPosition(t,fv):fv.fromBufferAttribute(r,t),fv.applyMatrix4(e.matrixWorld),this.expandByPoint(fv);else e.boundingBox===void 0?(n.boundingBox===null&&n.computeBoundingBox(),pv.copy(n.boundingBox)):(e.boundingBox===null&&e.computeBoundingBox(),pv.copy(e.boundingBox)),pv.applyMatrix4(e.matrixWorld),this.union(pv)}let r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);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,t){return t.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,fv),fv.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(bv),xv.subVectors(this.max,bv),mv.subVectors(e.a,bv),hv.subVectors(e.b,bv),gv.subVectors(e.c,bv),_v.subVectors(hv,mv),vv.subVectors(gv,hv),yv.subVectors(mv,gv);let t=[0,-_v.z,_v.y,0,-vv.z,vv.y,0,-yv.z,yv.y,_v.z,0,-_v.x,vv.z,0,-vv.x,yv.z,0,-yv.x,-_v.y,_v.x,0,-vv.y,vv.x,0,-yv.y,yv.x,0];return!wv(t,mv,hv,gv,xv)||(t=[1,0,0,0,1,0,0,0,1],!wv(t,mv,hv,gv,xv))?!1:(Sv.crossVectors(_v,vv),t=[Sv.x,Sv.y,Sv.z],wv(t,mv,hv,gv,xv))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,fv).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(fv).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:(dv[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),dv[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),dv[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),dv[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),dv[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),dv[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),dv[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),dv[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(dv),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}},dv=[new X,new X,new X,new X,new X,new X,new X,new X],fv=new X,pv=new uv,mv=new X,hv=new X,gv=new X,_v=new X,vv=new X,yv=new X,bv=new X,xv=new X,Sv=new X,Cv=new X;function wv(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Cv.fromArray(e,a);let o=i.x*Math.abs(Cv.x)+i.y*Math.abs(Cv.y)+i.z*Math.abs(Cv.z),s=t.dot(Cv),c=n.dot(Cv),l=r.dot(Cv);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Tv=Ev();function Ev(){let e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-27?(r[e]=0,r[e|256]=32768,i[e]=24,i[e|256]=24):t<-14?(r[e]=1024>>-t-14,r[e|256]=1024>>-t-14|32768,i[e]=-t-1,i[e|256]=-t-1):t<=15?(r[e]=t+15<<10,r[e|256]=t+15<<10|32768,i[e]=13,i[e|256]=13):t<128?(r[e]=31744,r[e|256]=64512,i[e]=24,i[e|256]=24):(r[e]=31744,r[e|256]=64512,i[e]=13,i[e|256]=13)}let a=new Uint32Array(2048),o=new Uint32Array(64),s=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(t&8388608);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)o[e]=e<<23;o[31]=1199570944,o[32]=2147483648;for(let e=33;e<63;++e)o[e]=2147483648+(e-32<<23);o[63]=3347054592;for(let e=1;e<64;++e)e!==32&&(s[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:o,offsetTable:s}}function Dv(e){Math.abs(e)>65504&&q(`DataUtils.toHalfFloat(): Value out of range.`),e=_g(e,-65504,65504),Tv.floatView[0]=e;let t=Tv.uint32View[0],n=t>>23&511;return Tv.baseTable[n]+((t&8388607)>>Tv.shiftTable[n])}function Ov(e){let t=e>>10;return Tv.uint32View[0]=Tv.mantissaTable[Tv.offsetTable[t]+(e&1023)]+Tv.exponentTable[t],Tv.floatView[0]}var kv=class{static toHalfFloat(e){return Dv(e)}static fromHalfFloat(e){return Ov(e)}},Av=new X,jv=new Y,Mv=0,Nv=class extends dg{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:Mv++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Ph,this.updateRanges=[],this.gpuType=sm,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}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,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 18,632 bytes, line 19
19for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,n=this.count;t<n;t++)jv.fromBufferAttribute(this,t),jv.applyMatrix3(e),this.setXY(t,jv.x,jv.y);else if(this.itemSize===3)for(let t=0,n=this.count;t<n;t++)Av.fromBufferAttribute(this,t),Av.applyMatrix3(e),this.setXYZ(t,Av.x,Av.y,Av.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Av.fromBufferAttribute(this,t),Av.applyMatrix4(e),this.setXYZ(t,Av.x,Av.y,Av.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Av.fromBufferAttribute(this,t),Av.applyNormalMatrix(e),this.setXYZ(t,Av.x,Av.y,Av.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Av.fromBufferAttribute(this,t),Av.transformDirection(e),this.setXYZ(t,Av.x,Av.y,Av.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Ig(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Lg(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Ig(t,this.array)),t}setX(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Ig(t,this.array)),t}setY(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Ig(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Ig(t,this.array)),t}setW(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array),i=Lg(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let 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!==35044&&(e.usage=this.usage),e}dispose(){this.dispatchEvent({type:`dispose`})}},Pv=class extends Nv{constructor(e,t,n){super(new Int8Array(e),t,n)}},Fv=class extends Nv{constructor(e,t,n){super(new Uint8Array(e),t,n)}},Iv=class extends Nv{constructor(e,t,n){super(new Uint8ClampedArray(e),t,n)}},Lv=class extends Nv{constructor(e,t,n){super(new Int16Array(e),t,n)}},Rv=class extends Nv{constructor(e,t,n){super(new Uint16Array(e),t,n)}},zv=class extends Nv{constructor(e,t,n){super(new Int32Array(e),t,n)}},Bv=class extends Nv{constructor(e,t,n){super(new Uint32Array(e),t,n)}},Vv=class extends Nv{constructor(e,t,n){super(new Uint16Array(e),t,n),this.isFloat16BufferAttribute=!0}getX(e){let t=Ov(this.array[e*this.itemSize]);return this.normalized&&(t=Ig(t,this.array)),t}setX(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize]=Dv(t),this}getY(e){let t=Ov(this.array[e*this.itemSize+1]);return this.normalized&&(t=Ig(t,this.array)),t}setY(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+1]=Dv(t),this}getZ(e){let t=Ov(this.array[e*this.itemSize+2]);return this.normalized&&(t=Ig(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+2]=Dv(t),this}getW(e){let t=Ov(this.array[e*this.itemSize+3]);return this.normalized&&(t=Ig(t,this.array)),t}setW(e,t){return this.normalized&&(t=Lg(t,this.array)),this.array[e*this.itemSize+3]=Dv(t),this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array)),this.array[e+0]=Dv(t),this.array[e+1]=Dv(n),this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array)),this.array[e+0]=Dv(t),this.array[e+1]=Dv(n),this.array[e+2]=Dv(r),this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array),i=Lg(i,this.array)),this.array[e+0]=Dv(t),this.array[e+1]=Dv(n),this.array[e+2]=Dv(r),this.array[e+3]=Dv(i),this}},Q=class extends Nv{constructor(e,t,n){super(new Float32Array(e),t,n)}},Hv=new uv,Uv=new X,Wv=new X,Gv=class{constructor(e=new X,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?Hv.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}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*=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;Uv.subVectors(e,this.center);let t=Uv.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Uv,n/e),this.radius+=n}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):(Wv.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Uv.copy(e.center).add(Wv)),this.expandByPoint(Uv.copy(e.center).sub(Wv))),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}},Kv=0,qv=new d_,Jv=new R_,Yv=new X,Xv=new uv,Zv=new uv,Qv=new X,$v=class e extends dg{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,`id`,{value:Kv++}),this.uuid=gg(),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(Xh(e)?Bv:Rv)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new Hg().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return qv.makeRotationFromQuaternion(e),this.applyMatrix4(qv),this}rotateX(e){return qv.makeRotationX(e),this.applyMatrix4(qv),this}rotateY(e){return qv.makeRotationY(e),this.applyMatrix4(qv),this}rotateZ(e){return qv.makeRotationZ(e),this.applyMatrix4(qv),this}translate(e,t,n){return qv.makeTranslation(e,t,n),this.applyMatrix4(qv),this}scale(e,t,n){return qv.makeScale(e,t,n),this.applyMatrix4(qv),this}lookAt(e){return Jv.lookAt(e),Jv.updateMatrix(),this.applyMatrix4(Jv.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Yv).negate(),this.translate(Yv.x,Yv.y,Yv.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];t.push(r.x,r.y,r.z||0)}this.setAttribute(`position`,new Q(t,3))}else{let n=Math.min(e.length,t.count);for(let r=0;r<n;r++){let n=e[r];t.setXYZ(r,n.x,n.y,n.z||0)}e.length>t.count&&q(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new uv);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){J(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new X(-1/0,-1/0,-1/0),new X(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Xv.setFromBufferAttribute(n),this.morphTargetsRelative?(Qv.addVectors(this.boundingBox.min,Xv.min),this.boundingBox.expandByPoint(Qv),Qv.addVectors(this.boundingBox.max,Xv.max),this.boundingBox.expandByPoint(Qv)):(this.boundingBox.expandByPoint(Xv.min),this.boundingBox.expandByPoint(Xv.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&J(`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 Gv);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){J(`BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.`,this),this.boundingSphere.set(new X,1/0);return}if(e){let n=this.boundingSphere.center;if(Xv.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Zv.setFromBufferAttribute(n),this.morphTargetsRelative?(Qv.addVectors(Xv.min,Zv.min),Xv.expandByPoint(Qv),Qv.addVectors(Xv.max,Zv.max),Xv.expandByPoint(Qv)):(Xv.expandByPoint(Zv.min),Xv.expandByPoint(Zv.max))}Xv.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)Qv.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(Qv));if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)Qv.fromBufferAttribute(a,t),o&&(Yv.fromBufferAttribute(e,t),Qv.add(Yv)),r=Math.max(r,n.distanceToSquared(Qv))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&J(`BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.`,this)}}computeTangents(){let e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){J(`BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)`);return}let n=t.position,r=t.normal,i=t.uv;this.hasAttribute(`tangent`)===!1&&this.setAttribute(`tangent`,new Nv(new Float32Array(4*n.count),4));let a=this.getAttribute(`tangent`),o=[],s=[];for(let e=0;e<n.count;e++)o[e]=new X,s[e]=new X;let c=new X,l=new X,u=new X,d=new Y,f=new Y,p=new Y,m=new X,h=new X;function g(e,t,r){c.fromBufferAttribute(n,e),l.fromBufferAttribute(n,t),u.fromBufferAttribute(n,r),d.fromBufferAttribute(i,e),f.fromBufferAttribute(i,t),p.fromBufferAttribute(i,r),l.sub(c),u.sub(c),f.sub(d),p.sub(d);let a=1/(f.x*p.y-p.x*f.y);isFinite(a)&&(m.copy(l).multiplyScalar(p.y).addScaledVector(u,-f.y).multiplyScalar(a),h.copy(u).multiplyScalar(f.x).addScaledVector(l,-p.x).multiplyScalar(a),o[e].add(m),o[t].add(m),o[r].add(m),s[e].add(h),s[t].add(h),s[r].add(h))}let _=this.groups;_.length===0&&(_=[{start:0,count:e.count}]);for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let v=new X,y=new X,b=new X,x=new X;function S(e){b.fromBufferAttribute(r,e),x.copy(b);let t=o[e];v.copy(t),v.sub(b.multiplyScalar(b.dot(t))).normalize(),y.crossVectors(x,t);let n=y.dot(s[e])<0?-1:1;a.setXYZW(e,v.x,v.y,v.z,n)}for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)S(e.getX(t+0)),S(e.getX(t+1)),S(e.getX(t+2))}}computeVertexNormals(){let e=this.index,t=this.getAttribute(`position`);if(t!==void 0){let n=this.getAttribute(`normal`);if(n===void 0)n=new Nv(new Float32Array(t.count*3),3),this.setAttribute(`normal`,n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let r=new X,i=new X,a=new X,o=new X,s=new X,c=new X,l=new X,u=new X;if(e)for(let d=0,f=e.count;d<f;d+=3){let f=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,p),a.fromBufferAttribute(t,m),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Qv.fromBufferAttribute(e,t),Qv.normalize(),e.setXYZ(t,Qv.x,Qv.y,Qv.z)}toNonIndexed(){function t(e,t){let n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new Nv(a,r,i)}if(this.index===null)return q(`BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.`),this;let n=new e,r=this.index.array,i=this.attributes;for(let e in i){let a=i[e],o=t(a,r);n.setAttribute(e,o)}let a=this.morphAttributes;for(let e in a){let i=[],o=a[e];for(let e=0,n=o.length;e<n;e++){let n=o[e],a=t(n,r);i.push(a)}n.morphAttributes[e]=i}n.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let e=0,t=o.length;e<t;e++){let t=o[e];n.addGroup(t.start,t.count,t.materialIndex)}return n}toJSON(){let 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){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){let r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let 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;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());let s=e.boundingSphere;return s!==null&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:`dispose`})}},ey=class{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e===void 0?0:e.length/t,this.usage=Ph,this.updateRanges=[],this.version=0,this.uuid=gg()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}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,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=gg()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);let t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}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=gg()),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}}},ty=new X,ny=class e{constructor(e,t,n,r=!1){this.isInterleavedBufferAttribute=!0,this.name=``,this.data=e,this.itemSize=t,this.offset=n,this.normalized=r}
vendor: 5,052 bytes, line 19
19get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)ty.fromBufferAttribute(this,t),ty.applyMatrix4(e),this.setXYZ(t,ty.x,ty.y,ty.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)ty.fromBufferAttribute(this,t),ty.applyNormalMatrix(e),this.setXYZ(t,ty.x,ty.y,ty.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)ty.fromBufferAttribute(this,t),ty.transformDirection(e),this.setXYZ(t,ty.x,ty.y,ty.z);return this}getComponent(e,t){let n=this.array[e*this.data.stride+this.offset+t];return this.normalized&&(n=Ig(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Lg(n,this.array)),this.data.array[e*this.data.stride+this.offset+t]=n,this}setX(e,t){return this.normalized&&(t=Lg(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Lg(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Lg(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Lg(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=Ig(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=Ig(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=Ig(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=Ig(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Lg(t,this.array),n=Lg(n,this.array),r=Lg(r,this.array),i=Lg(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=i,this}clone(t){if(t===void 0){og(`InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.`);let e=[];for(let t=0;t<this.count;t++){let n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new Nv(new this.array.constructor(e),this.itemSize,this.normalized)}else return t.interleavedBuffers===void 0&&(t.interleavedBuffers={}),t.interleavedBuffers[this.data.uuid]===void 0&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new e(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){og(`InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.`);let e=[];for(let t=0;t<this.count;t++){let n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,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}}},ry=0,iy=class extends dg{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,`id`,{value:ry++}),this.uuid=gg(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Z(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Dh,this.stencilZFail=Dh,this.stencilZPass=Dh,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(let t in e){let n=e[t];if(n===void 0){q(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){q
vendor: 10,041 bytes, line 19
19(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}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;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,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++}},
vendor: 5,210 bytes, line 19
19ay=class extends iy{constructor(e){super(),this.isSpriteMaterial=!0,this.type=`SpriteMaterial`,this.color=new Z(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}},oy,sy=new X,cy=new X,ly=new X,uy=new Y,dy=new Y,fy=new d_,py=new X,my=new X,hy=new X,gy=new Y,_y=new Y,vy=new Y,yy=class extends R_{constructor(e=new ay){if(super(),this.isSprite=!0,this.type=`Sprite`,oy===void 0){oy=new $v;let e=new ey(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);oy.setIndex([0,1,2,0,2,3]),oy.setAttribute(`position`,new ny(e,3,0,!1)),oy.setAttribute(`uv`,new ny(e,2,3,!1))}this.geometry=oy,this.material=e,this.center=new Y(.5,.5),this.count=1}raycast(e,t){e.camera===null&&J(`Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.`),cy.setFromMatrixScale(this.matrixWorld),fy.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),ly.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&this.material.sizeAttenuation===!1&&cy.multiplyScalar(-ly.z);let n=this.material.rotation,r,i;n!==0&&(i=Math.cos(n),r=Math.sin(n));let a=this.center;by(py.set(-.5,-.5,0),ly,a,cy,r,i),by(my.set(.5,-.5,0),ly,a,cy,r,i),by(hy.set(.5,.5,0),ly,a,cy,r,i),gy.set(0,0),_y.set(1,0),vy.set(1,1);let o=e.ray.intersectTriangle(py,my,hy,!1,sy);if(o===null&&(by(my.set(-.5,.5,0),ly,a,cy,r,i),_y.set(0,1),o=e.ray.intersectTriangle(py,hy,my,!1,sy),o===null))return;let s=e.ray.origin.distanceTo(sy);s<e.near||s>e.far||t.push({distance:s,point:sy.clone(),uv:lv.getInterpolation(sy,py,my,hy,gy,_y,vy,new Y),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}};function by(e,t,n,r,i,a){uy.subVectors(e,n).addScalar(.5).multiply(r),i===void 0?dy.copy(uy):(dy.x=a*uy.x-i*uy.y,dy.y=i*uy.x+a*uy.y),e.copy(t),e.x+=dy.x,e.y+=dy.y,e.applyMatrix4(fy)}var xy=new X,Sy=new X,Cy=class extends R_{constructor(){super(),this.isLOD=!0,this._currentLevel=0,this.type=`LOD`,Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);let t=e.levels;for(let e=0,n=t.length;e<n;e++){let n=t[e];this.addLevel(n.object.clone(),n.distance,n.hysteresis)}return this.autoUpdate=e.autoUpdate,this}addLevel(e,t=0,n=0){t=Math.abs(t);let r=this.levels,i;for(i=0;i<r.length&&!(t<r[i].distance);i++);return r.splice(i,0,{distance:t,hysteresis:n,object:e}),this.add(e),this}removeLevel(e){let t=this.levels;for(let n=0;n<t.length;n++)if(t[n].distance===e){let e=t.splice(n,1);return this.remove(e[0].object),!0}return!1}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){let t=this.levels;if(t.length>0){let n,r;for(n=1,r=t.length;n<r;n++){let r=t[n].distance;if(t[n].object.visible&&(r-=r*t[n].hysteresis),e<r)break}return t[n-1].object}return null}raycast(e,t){if(this.levels.length>0){xy.setFromMatrixPosition(this.matrixWorld);let n=e.ray.origin.distanceTo(xy);this.getObjectForDistance(n).raycast(e,t)}}update(e){let t=this.levels;if(t.length>1){xy.setFromMatrixPosition(e.matrixWorld),Sy.setFromMatrixPosition(this.matrixWorld);let n=xy.distanceTo(Sy)/e.zoom;t[0].object.visible=!0;let r,i;for(r=1,i=t.length;r<i;r++){let e=t[r].distance;if(t[r].object.visible&&(e-=e*t[r].hysteresis),n>=e)t[r-1].object.visible=!1,t[r].object.visible=!0;else break}for(this._currentLevel=r-1;r<i;r++)t[r].object.visible=!1}}toJSON(e){let t=super.toJSON(e);this.autoUpdate===!1&&(t.object.autoUpdate=!1),t.object.levels=[];let n=this.levels;for(let e=0,r=n.length;e<r;e++){let r=n[e];t.object.levels.push({object:r.object.uuid,distance:r.distance,hysteresis:r.hysteresis})}return t}},wy=new X,Ty=new X,Ey=new X,Dy=new X,Oy=new X,ky=new X,Ay=new X,jy=class{constructor(e=new X,t=new X(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.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,wy)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=wy.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(wy.copy(this.origin).addScaledVector(this.direction,t),wy.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Ty.copy(e).add(t).multiplyScalar(.5),Ey.copy(t).sub(e).normalize(),Dy.copy(this.origin).sub(Ty);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Ey),o=Dy.dot(this.direction),s=-Dy.dot(Ey),c=Dy.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}
vendor: 6,026 bytes, line 19
19else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Ty).addScaledVector(Ey,d),f}intersectSphere(e,t){wy.subVectors(e.center,this.origin);let n=wy.dot(this.direction),r=wy.dot(wy)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a<r||isNaN(r))&&(r=a),u>=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s<r||r!==r)&&(r=s),r<0)?null:this.at(n>=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,wy)!==null}intersectTriangle(e,t,n,r,i){Oy.subVectors(t,e),ky.subVectors(n,e),Ay.crossVectors(Oy,ky);let a=this.direction.dot(Ay),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Dy.subVectors(this.origin,e);let s=o*this.direction.dot(ky.crossVectors(Dy,ky));if(s<0)return null;let c=o*this.direction.dot(Oy.cross(Dy));if(c<0||s+c>a)return null;let l=-o*Dy.dot(Ay);return l<0?null:this.at(l/a,i)}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)}},My=class extends iy{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Z(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 x_,this.combine=0,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}},Ny=new d_,Py=new jy,Fy=new Gv,Iy=new X,Ly=new X,Ry=new X,zy=new X,By=new X,Vy=new X,Hy=new X,Uy=new X,Wy=class extends R_{constructor(e=new $v,t=new My){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),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(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){let n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(r,e);let o=this.morphTargetInfluences;if(i&&o){Vy.set(0,0,0);for(let n=0,r=i.length;n<r;n++){let r=o[n],s=i[n];r!==0&&(By.fromBufferAttribute(s,e),a?Vy.addScaledVector(By,r):Vy.addScaledVector(By.sub(t),r))}t.add(Vy)}return t}raycast(e,t){let n=this.geometry,r=this.material,i=this.matrixWorld;r!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),Fy.copy(n.boundingSphere),Fy.applyMatrix4(i),Py.copy(e.ray).recast(e.near),!(Fy.containsPoint(Py.origin)===!1&&(Py.intersectSphere(Fy,Iy)===null||Py.origin.distanceToSquared(Iy)>(e.far-e.near)**2))&&(Ny.copy(i).invert(),Py.copy(e.ray).applyMatrix4(Ny),!(n.boundingBox!==null&&Py.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Py)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;i<s;i++){let s=d[i],p=a[s.materialIndex],m=Math.max(s.start,f.start),h=Math.min(o.count,Math.min(s.start+s.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=o.getX(i),d=o.getX(i+1),f=o.getX(i+2);r=Ky(this,p,e,n,c,l,u,a,d,f),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=s.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),s=Math.min(o.count,f.start+f.count);for(let d=i,f=s;d<f;d+=3){let i=o.getX(d),s=o.getX(d+1),f=o.getX(d+2);r=Ky(this,a,e,n,c,l,u,i,s,f),r&&(r.faceIndex=Math.floor(d/3),t.pu
vendor: 4,099 bytes, line 19
19sh(r))}}else if(s!==void 0)if(Array.isArray(a))for(let i=0,o=d.length;i<o;i++){let o=d[i],p=a[o.materialIndex],m=Math.max(o.start,f.start),h=Math.min(s.count,Math.min(o.start+o.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=i,s=i+1,d=i+2;r=Ky(this,p,e,n,c,l,u,a,s,d),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=o.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),o=Math.min(s.count,f.start+f.count);for(let s=i,d=o;s<d;s+=3){let i=s,o=s+1,d=s+2;r=Ky(this,a,e,n,c,l,u,i,o,d),r&&(r.faceIndex=Math.floor(s/3),t.push(r))}}}};function Gy(e,t,n,r,i,a,o,s){let c;if(c=t.side===1?r.intersectTriangle(o,a,i,!0,s):r.intersectTriangle(i,a,o,t.side===0,s),c===null)return null;Uy.copy(s),Uy.applyMatrix4(e.matrixWorld);let l=n.ray.origin.distanceTo(Uy);return l<n.near||l>n.far?null:{distance:l,point:Uy.clone(),object:e}}function Ky(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Ly),e.getVertexPosition(c,Ry),e.getVertexPosition(l,zy);let u=Gy(e,t,n,r,Ly,Ry,zy,Hy);if(u){let e=new X;lv.getBarycoord(Hy,Ly,Ry,zy,e),i&&(u.uv=lv.getInterpolatedAttribute(i,s,c,l,e,new Y)),a&&(u.uv1=lv.getInterpolatedAttribute(a,s,c,l,e,new Y)),o&&(u.normal=lv.getInterpolatedAttribute(o,s,c,l,e,new X),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new X,materialIndex:0};lv.getNormal(Ly,Ry,zy,t.normal),u.face=t,u.barycoord=e}return u}var qy=new i_,Jy=new i_,Yy=new i_,Xy=new i_,Zy=new d_,Qy=new X,$y=new Gv,eb=new d_,tb=new jy,nb=class extends Wy{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=Bp,this.bindMatrix=new d_,this.bindMatrixInverse=new d_,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new uv),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e<t.count;e++)this.getVertexPosition(e,Qy),this.boundingBox.expandByPoint(Qy)}computeBoundingSphere(){let e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new Gv),this.boundingSphere.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e<t.count;e++)this.getVertexPosition(e,Qy),this.boundingSphere.expandByPoint(Qy)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){let n=this.material,r=this.matrixWorld;n!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),$y.copy(this.boundingSphere),$y.applyMatrix4(r),e.ray.intersectsSphere($y)!==!1&&(eb.copy(r).invert(),tb.copy(e.ray).applyMatrix4(eb),!(this.boundingBox!==null&&tb.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,t,tb)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){let e=new i_,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);let r=1/e.manhattanLength();r===1/0?e.set(1,0,0,0):e.multiplyScalar(r),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===`attached`?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===`detached`?this.bindMatrixInverse.copy(this.bindMatrix).invert():q(`SkinnedMesh: Unrecognized bindMode: `+this.bindMode)}applyBoneTransform(e,t){let n=this.skeleton,r=this.geometry;Jy.fromBufferAttribute(r.attributes.skinIndex,e),Yy.fromBufferAttribute(r.attributes.skinWeight,e),t.isVector4?(qy.copy(t),t.set(0,0,0,0)):(qy.set(...t,1),t.set(0,0,0)),qy.applyMatrix4(this.bindMatrix);for(let e=0;e<4;e++){let r=Yy.getComponent(e);if(r!==0){let i=Jy.getComponent(e);Zy.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),t.addScaledVector(Xy.copy(qy).applyMatrix4(Zy),r)}}
vendor: 6,324 bytes, line 19
19return t.isVector4&&(t.w=qy.w),t.applyMatrix4(this.bindMatrixInverse)}},rb=class extends R_{constructor(){super(),this.isBone=!0,this.type=`Bone`}},ib=class extends r_{constructor(e=null,t=1,n=1,r,i,a,o,s,c=Gp,l=Gp,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},ab=new d_,ob=new d_,sb=class e{constructor(e=[],t=[]){this.uuid=gg(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.previousBoneMatrices=null,this.boneTexture=null,this.init()}init(){let e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){q(`Skeleton: Number of inverse bone matrices does not match amount of bones.`),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new d_)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){let t=new d_;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){let t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){let t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){let e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let r=0,i=e.length;r<i;r++){let i=e[r]?e[r].matrixWorld:ob;ab.multiplyMatrices(i,t[r]),ab.toArray(n,r*16)}r!==null&&(r.needsUpdate=!0)}clone(){return new e(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);let t=new Float32Array(e*e*4);t.set(this.boneMatrices);let n=new ib(t,e,e,gm,sm);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){let n=this.bones[t];if(n.name===e)return n}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let n=0,r=e.bones.length;n<r;n++){let r=e.bones[n],i=t[r];i===void 0&&(q(`Skeleton: No bone found with UUID:`,r),i=new rb),this.bones.push(i),this.boneInverses.push(new d_().fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){let e={metadata:{version:4.7,type:`Skeleton`,generator:`Skeleton.toJSON`},bones:[],boneInverses:[]};e.uuid=this.uuid;let t=this.bones,n=this.boneInverses;for(let r=0,i=t.length;r<i;r++){let i=t[r];e.bones.push(i.uuid);let a=n[r];e.boneInverses.push(a.toArray())}return e}},cb=class extends Nv{constructor(e,t,n,r=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){let e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}},lb=new d_,ub=new d_,db=[],fb=new uv,pb=new d_,mb=new Wy,hb=new Gv,gb=class extends Wy{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new cb(new Float32Array(n*16),16),this.previousInstanceMatrix=null,this.instanceColor=null,this.morphTexture=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let e=0;e<n;e++)this.setMatrixAt(e,pb)}computeBoundingBox(){let e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new uv),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,lb),fb.copy(e.boundingBox).applyMatrix4(lb),this.boundingBox.union(fb)}computeBoundingSphere(){let e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new Gv),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,lb),hb.copy(e.boundingSphere).applyMatrix4(lb),this.boundingSphere.union(hb)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),e.previousInstanceMatrix!==null&&(this.previousInstanceMatrix=e.previousInstanceMatrix.clone()),e.morphTexture!==null&&(this.morphTexture=e.morphTexture.clone()),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){return this.instanceColor===null?t.setRGB(1,1,1):t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){return t.fromArray(this.instanceMatrix.array,e*16)}getMorphAt(e,t){let n=t.morphTargetInfluences,r=this.morphTexture.source.data.data,i=e*(n.length+1)+1;for(let e=0;e<n.length;e++)n[e]=r[i+e]}raycast(e,t){let n=this.matrixWorld,r=this.count;if(mb.geometry=this.geometry,mb.material=this.material,mb.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),hb.copy(this.boundingSphere),hb.applyMatrix4(n),e.ray.intersectsSphere(hb)!==!1))for(let i=0;i<r;i++){this.getMatrixAt(i,lb),ub.multiplyMatrices(n,lb),mb.matrixWorld=ub,mb.raycast(e,db);for(let e=0,n=db.length;e<n;e++){let n=db[e];n.instanceId=i,n.object=this,t.push(n)}db.length=0}}setColorAt(e,t){return this.instanceColor===null&&(this.instanceColor=new cb(new Float32Array(this.instanceMatrix.count*3).fill(1),3)),t.toArray(this.instanceColor.array,e*3),this}setMatrixAt(e,t){return t.toArray(this.instanceMatrix.array,e*16),this}setMorphAt(e,t){let n=t.morphTargetInfluences,r=n.length+1;this.morphTexture===null&&(this.morphTexture=new ib(new Float32Array(r*this.count),r,this.count,ym,sm));let i=this.morphTexture.source.data.data,a=0;for(let e=0;e<n.length;e++)a+=n[e];let o=this.geometry.morphTargetsRelative?1:1-a,s=r*e;return i[s]=o,i.set(n,s+1),this}updateMorphTargets(){}dispose(){this.dispatchEvent({type:`dispose`}),this.morphTexture!==null&&(this.morphTexture.dispose(),this.morphTexture=null)}},_b=new X,vb=new X,yb=new Hg,bb=class{constructor(e=new X(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}
vendor: 5,483 bytes, line 19
19setFromCoplanarPoints(e,t,n){let r=_b.subVectors(n,t).cross(vb.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let 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,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(_b),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>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,t){let n=t||yb.getNormalMatrix(e),r=this.coplanarPoint(_b).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),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)}},xb=new Gv,Sb=new Y(.5,.5),Cb=new X,wb=class{constructor(e=new bb,t=new bb,n=new bb,r=new bb,i=new bb,a=new bb){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Wh,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),xb.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),xb.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(xb)}intersectsSprite(e){return xb.center.set(0,0,0),xb.radius=.7071067811865476+Sb.distanceTo(e.center),xb.applyMatrix4(e.matrixWorld),this.intersectsSphere(xb)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<r)return!1;return!0}intersectsBox(e){let t=this.planes;for(let n=0;n<6;n++){let r=t[n];if(Cb.x=r.normal.x>0?e.max.x:e.min.x,Cb.y=r.normal.y>0?e.max.y:e.min.y,Cb.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Cb)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Tb=new d_,Eb=new wb,Db=class e{constructor(){this.coordinateSystem=Wh}intersectsObject(e,t){if(!t.isArrayCamera||t.cameras.length===0)return!1;for(let n=0;n<t.cameras.length;n++){let r=t.cameras[n];if(Tb.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),Eb.setFromProjectionMatrix(Tb,r.coordinateSystem,r.reversedDepth),Eb.intersectsObject(e))return!0}return!1}intersectsSprite(e,t){if(!t||!t.cameras||t.cameras.length===0)return!1;for(let n=0;n<t.cameras.length;n++){let r=t.cameras[n];if(Tb.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),Eb.setFromProjectionMatrix(Tb,r.coordinateSystem,r.reversedDepth),Eb.intersectsSprite(e))return!0}return!1}intersectsSphere(e,t){if(!t||!t.cameras||t.cameras.length===0)return!1;for(let n=0;n<t.cameras.length;n++){let r=t.cameras[n];if(Tb.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),Eb.setFromProjectionMatrix(Tb,r.coordinateSystem,r.reversedDepth),Eb.intersectsSphere(e))return!0}return!1}intersectsBox(e,t){if(!t||!t.cameras||t.cameras.length===0)return!1;for(let n=0;n<t.cameras.length;n++){let r=t.cameras[n];if(Tb.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),Eb.setFromProjectionMatrix(Tb,r.coordinateSystem,r.reversedDepth),Eb.intersectsBox(e))return!0}return!1}containsPoint(e,t){if(!t||!t.cameras||t.cameras.length===0)return!1;for(let n=0;n<t.cameras.length;n++){let r=t.cameras[n];if(Tb.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),Eb.setFromProjectionMatrix(Tb,r.coordinateSystem,r.reversedDepth),Eb.containsPoint(e))return!0}return!1}clone(){return new e}};function Ob(e,t){return e-t}function kb(e,t){return e.z-t.z}function Ab(e,t){return t.z-e.z}var jb=class{constructor(){this.index=0,this.pool=[],this.list=[]}push(e,t,n,r){let i=this.pool,a=this.list;this.index>=i.length&&i.push({start:-1,count:-1,z:-1,index:-1});let o=i[this.index];a.push(o),this.index++,o.start=e,o.count=t,o.z=n,o.index=r}reset(){this.list.length=0,this.index=0}}
19,Mb=new d_,Nb=new Z(1,1,1),Pb=new wb,Fb=new Db,Ib=new uv,Lb=new Gv,Rb=new X,zb=new X,Bb=new X,Vb=new jb,Hb=new Wy,Ub=[];function Wb(e,t,n=0){let r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){let i=e.count;for(let a=0;a<i;a++)for(let i=0;i<r;i++)t.setComponent(a+n,i,e.getComponent(a,i))}else t.array.set(e.array,n*r);t.needsUpdate=!0}function Gb(e,t){if(e.constructor!==t.constructor){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)t[r]=e[r]}else{let n=Math.min(e.length,t.length);t.set(new e.constructor(e.buffer,0,n))}}var Kb=class extends Wy{constructor(e,t,n=t*2,r){super(new $v,r),this.isBatchedMesh=!0,this.perObjectFrustumCulled=!0,this.sortObjects=!0,this.boundingBox=null,this.boundingSphere=null,this.customSort=null,this._instanceInfo=[],this._geometryInfo=[],this._availableInstanceIds=[],this._availableGeometryIds=[],this._nextIndexStart=0,this._nextVertexStart=0,this._geometryCount=0,this._visibilityChanged=!0,this._geometryInitialized=!1,this._maxInstanceCount=e,this._maxVertexCount=t,this._maxIndexCount=n,this._multiDrawCounts=new Int32Array(e),this._multiDrawStarts=new Int32Array(e),this._multiDrawCount=0,this._matricesTexture=null,this._indirectTexture=null,this._colorsTexture=null,this._initMatricesTexture(),this._initIndirectTexture()}get maxInstanceCount(){return this._maxInstanceCount}get instanceCount(){return this._instanceInfo.length-this._availableInstanceIds.length}get unusedVertexCount(){return this._maxVertexCount-this._nextVertexStart}get unusedIndexCount(){return this._maxIndexCount-this._nextIndexStart}_initMatricesTexture(){let e=Math.sqrt(this._maxInstanceCount*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);let t=new ib(new Float32Array(e*e*4),e,e,gm,sm);this._matricesTexture=t}_initIndirectTexture(){let e=Math.sqrt(this._maxInstanceCount);e=Math.ceil(e);let t=new ib(new Uint32Array(e*e),e,e,bm,om);this._indirectTexture=t}_initColorsTexture(){let e=Math.sqrt(this._maxInstanceCount);e=Math.ceil(e);let t=new ib(new Float32Array(e*e*4).fill(1),e,e,gm,sm);t.colorSpace=qg.workingColorSpace,this._colorsTexture=t}_initializeGeometry(e){let t=this.geometry,n=this._maxVertexCount,r=this._maxIndexCount;if(this._geometryInitialized===!1){for(let r in e.attributes){let{array:i,itemSize:a,normalized:o}=e.getAttribute(r),s=new Nv(new i.constructor(n*a),a,o);t.setAttribute(r,s)}if(e.getIndex()!==null){let e=n>65535?new Uint32Array(r):new Uint16Array(r);t.setIndex(new Nv(e,1))}this._geometryInitialized=!0}}_validateGeometry(e){let t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw Error(`THREE.BatchedMesh: All geometries must consistently have "index".`);for(let n in t.attributes){if(!e.hasAttribute(n))throw Error(`THREE.BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);let r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw Error(`THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.`)}}validateInstanceId(e){let t=this._instanceInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid instanceId ${e}. Instance is either out of range or has been deleted.`)}validateGeometryId(e){let t=this._geometryInfo;if(e<0||e>=t.length||t[e].active===!1)throw Error(`THREE.BatchedMesh: Invalid geometryId ${e}. Geometry is either out of range or has been deleted.`)}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new uv);let e=this.boundingBox,t=this._instanceInfo;e.makeEmpty();for(let n=0,r=t.length;n<r;n++){if(t[n].active===!1)continue;let r=t[n].geometryIndex;this.getMatrixAt(n,Mb),this.getBoundingBoxAt(r,Ib).applyMatrix4(Mb),e.union(Ib)}}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Gv);let e=this.boundingSphere,t=this._instanceInfo;e.makeEmpty();for(let n=0,r=t.length;n<r;n++){if(t[n].active===!1)continue;let r=t[n].geometryIndex;this.getMatrixAt(n,Mb),this.getBoundingSphereAt(r,Lb).applyMatrix4(Mb),e.union(Lb)}}addInstance(e){if(this._instanceInfo.length>=this.maxInstanceCount&&this._availableInstanceIds.length===0)throw Error(`THREE.BatchedMesh: Maximum item count reached.`);let t={visible:!0,active:!0,geometryIndex:e},n=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(Ob),n=this._availableInstanceIds.shift(),this._instanceInfo[n]=t):(n=this._instanceInfo.length,this._instanceInfo.push(t));let r=this._matricesTexture;Mb.identity().toArray(r.image.data,n*16),r.needsUpdate=!0;let i=this._colorsTexture;return i&&(Nb.toArray(i.image.data,n*4),i.needsUpdate=!0),this._visibilityChanged=!0,n}
vendor: 4,295 bytes, line 19
19addGeometry(e,t=-1,n=-1){this._initializeGeometry(e),this._validateGeometry(e);let r={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},i=this._geometryInfo;r.vertexStart=this._nextVertexStart,r.reservedVertexCount=t===-1?e.getAttribute(`position`).count:t;let a=e.getIndex();if(a!==null&&(r.indexStart=this._nextIndexStart,r.reservedIndexCount=n===-1?a.count:n),r.indexStart!==-1&&r.indexStart+r.reservedIndexCount>this._maxIndexCount||r.vertexStart+r.reservedVertexCount>this._maxVertexCount)throw Error(`THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.`);let o;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(Ob),o=this._availableGeometryIds.shift(),i[o]=r):(o=this._geometryCount,this._geometryCount++,i.push(r)),this.setGeometryAt(o,e),this._nextIndexStart=r.indexStart+r.reservedIndexCount,this._nextVertexStart=r.vertexStart+r.reservedVertexCount,o}setGeometryAt(e,t){if(e>=this._geometryCount)throw Error(`THREE.BatchedMesh: Maximum geometry count reached.`);this._validateGeometry(t);let n=this.geometry,r=n.getIndex()!==null,i=n.getIndex(),a=t.getIndex(),o=this._geometryInfo[e];if(r&&a.count>o.reservedIndexCount||t.attributes.position.count>o.reservedVertexCount)throw Error(`THREE.BatchedMesh: Reserved space not large enough for provided geometry.`);let s=o.vertexStart,c=o.reservedVertexCount;o.vertexCount=t.getAttribute(`position`).count;for(let e in n.attributes){let r=t.getAttribute(e),i=n.getAttribute(e);Wb(r,i,s);let a=r.itemSize;for(let e=r.count,t=c;e<t;e++){let t=s+e;for(let e=0;e<a;e++)i.setComponent(t,e,0)}i.needsUpdate=!0,i.addUpdateRange(s*a,c*a)}if(r){let e=o.indexStart,n=o.reservedIndexCount;o.indexCount=t.getIndex().count;for(let t=0;t<a.count;t++)i.setX(e+t,s+a.getX(t));for(let t=a.count,r=n;t<r;t++)i.setX(e+t,s);i.needsUpdate=!0,i.addUpdateRange(e,o.reservedIndexCount)}return o.start=r?o.indexStart:o.vertexStart,o.count=r?o.indexCount:o.vertexCount,o.boundingBox=null,t.boundingBox!==null&&(o.boundingBox=t.boundingBox.clone()),o.boundingSphere=null,t.boundingSphere!==null&&(o.boundingSphere=t.boundingSphere.clone()),this._visibilityChanged=!0,e}deleteGeometry(e){let t=this._geometryInfo;if(e>=t.length||t[e].active===!1)return this;let n=this._instanceInfo;for(let t=0,r=n.length;t<r;t++)n[t].active&&n[t].geometryIndex===e&&this.deleteInstance(t);return t[e].active=!1,this._availableGeometryIds.push(e),this._visibilityChanged=!0,this}deleteInstance(e){return this.validateInstanceId(e),this._instanceInfo[e].active=!1,this._availableInstanceIds.push(e),this._visibilityChanged=!0,this}optimize(){let e=0,t=0,n=this._geometryInfo,r=n.map((e,t)=>t).sort((e,t)=>n[e].vertexStart-n[t].vertexStart),i=this.geometry;for(let a=0,o=n.length;a<o;a++){let o=n[r[a]];if(o.active!==!1){if(i.index!==null){if(o.indexStart!==t){let{indexStart:n,vertexStart:r,reservedIndexCount:a}=o,s=i.index,c=s.array,l=e-r;for(let e=n;e<n+a;e++)c[e]=c[e]+l;s.array.copyWithin(t,n,n+a),s.addUpdateRange(t,a),s.needsUpdate=!0,o.indexStart=t}t+=o.reservedIndexCount}if(o.vertexStart!==e){let{vertexStart:t,reservedVertexCount:n}=o,r=i.attributes;for(let i in r){let a=r[i],{array:o,itemSize:s}=a;o.copyWithin(e*s,t*s,(t+n)*s),a.addUpdateRange(e*s,n*s),a.needsUpdate=!0}o.vertexStart=e}e+=o.reservedVertexCount,o.start=i.index?o.indexStart:o.vertexStart}}return this._nextIndexStart=t,this._nextVertexStart=e,this._visibilityChanged=!0,this}getBoundingBoxAt(e,t){if(e>=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingBox===null){let e=new uv,t=n.index,i=n.attributes.position;for(let n=r.start,a=r.start+r.count;n<a;n++){let r=n;t&&(r=t.getX(r)),e.expandByPoint(Rb.fromBufferAttribute(i,r))}r.boundingBox=e}return t.copy(r.boundingBox),t}getBoundingSphereAt(e,t){if(e>=this._geometryCount)return null;let n=this.geometry,r=this._geometryInfo[e];if(r.boundingSphere===null){let t=new Gv;this.getBoundingBoxAt(e,Ib),Ib.getCenter(t.center);let i=n.index,a=n.attributes.position,o=0;for(let e=r.start,n=r.start+r.count;e<n;e++){let n=e;i&&(n=i.getX(n)),Rb.fromBufferAttribute(a,n),o=Math.max(o,t.center.distanceToSquared(Rb))}t.radius=Math.sqrt(o),r.boundingSphere=t}
19return t.copy(r.boundingSphere),t}setMatrixAt(e,t){this.validateInstanceId(e);let n=this._matricesTexture,r=this._matricesTexture.image.data;return t.toArray(r,e*16),n.needsUpdate=!0,this}getMatrixAt(e,t){return this.validateInstanceId(e),t.fromArray(this._matricesTexture.image.data,e*16)}setColorAt(e,t){return this.validateInstanceId(e),this._colorsTexture===null&&this._initColorsTexture(),t.toArray(this._colorsTexture.image.data,e*4),this._colorsTexture.needsUpdate=!0,this}getColorAt(e,t){return this.validateInstanceId(e),this._colorsTexture===null?t.isVector4?t.set(1,1,1,1):t.setRGB(1,1,1):t.fromArray(this._colorsTexture.image.data,e*4)}setVisibleAt(e,t){return this.validateInstanceId(e),this._instanceInfo[e].visible===t?this:(this._instanceInfo[e].visible=t,this._visibilityChanged=!0,this)}getVisibleAt(e){return this.validateInstanceId(e),this._instanceInfo[e].visible}setGeometryIdAt(e,t){return this.validateInstanceId(e),this.validateGeometryId(t),this._instanceInfo[e].geometryIndex=t,this}getGeometryIdAt(e){return this.validateInstanceId(e),this._instanceInfo[e].geometryIndex}getGeometryRangeAt(e,t={}){this.validateGeometryId(e);let n=this._geometryInfo[e];return t.vertexStart=n.vertexStart,t.vertexCount=n.vertexCount,t.reservedVertexCount=n.reservedVertexCount,t.indexStart=n.indexStart,t.indexCount=n.indexCount,t.reservedIndexCount=n.reservedIndexCount,t.start=n.start,t.count=n.count,t}setInstanceCount(e){let t=this._availableInstanceIds,n=this._instanceInfo;for(t.sort(Ob);t[t.length-1]===n.length-1;)n.pop(),t.pop();if(e<n.length)throw Error(`BatchedMesh: Instance ids outside the range ${e} are being used. Cannot shrink instance count.`);let r=new Int32Array(e),i=new Int32Array(e);Gb(this._multiDrawCounts,r),Gb(this._multiDrawStarts,i),this._multiDrawCounts=r,this._multiDrawStarts=i,this._maxInstanceCount=e;let a=this._indirectTexture,o=this._matricesTexture,s=this._colorsTexture;a.dispose(),this._initIndirectTexture(),Gb(a.image.data,this._indirectTexture.image.data),o.dispose(),this._initMatricesTexture(),Gb(o.image.data,this._matricesTexture.image.data),s&&(s.dispose(),this._initColorsTexture(),Gb(s.image.data,this._colorsTexture.image.data))}setGeometrySize(e,t){let n=[...this._geometryInfo].filter(e=>e.active);if(Math.max(...n.map(e=>e.vertexStart+e.reservedVertexCount))>e)throw Error(`BatchedMesh: Geometry vertex values are being used outside the range ${t}. Cannot shrink further.`);if(this.geometry.index&&Math.max(...n.map(e=>e.indexStart+e.reservedIndexCount))>t)throw Error(`BatchedMesh: Geometry index values are being used outside the range ${t}. Cannot shrink further.`);let r=this.geometry;r.dispose(),this._maxVertexCount=e,this._maxIndexCount=t,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new $v,this._initializeGeometry(r));let i=this.geometry;r.index&&Gb(r.index.array,i.index.array);for(let e in r.attributes)Gb(r.attributes[e].array,i.attributes[e].array)}raycast(e,t){let n=this._instanceInfo,r=this._geometryInfo,i=this.matrixWorld,a=this.geometry;Hb.material=this.material,Hb.geometry.index=a.index,Hb.geometry.attributes=a.attributes,Hb.geometry.boundingBox===null&&(Hb.geometry.boundingBox=new uv),Hb.geometry.boundingSphere===null&&(Hb.geometry.boundingSphere=new Gv);for(let a=0,o=n.length;a<o;a++){if(!n[a].visible||!n[a].active)continue;let o=n[a].geometryIndex,s=r[o];Hb.geometry.setDrawRange(s.start,s.count),this.getMatrixAt(a,Hb.matrixWorld).premultiply(i),this.getBoundingBoxAt(o,Hb.geometry.boundingBox),this.getBoundingSphereAt(o,Hb.geometry.boundingSphere),Hb.raycast(e,Ub);for(let e=0,n=Ub.length;e<n;e++){let n=Ub[e];n.object=this,n.batchId=a,t.push(n)}Ub.length=0}Hb.material=null,Hb.geometry.index=null,Hb.geometry.attributes={},Hb.geometry.setDrawRange(0,1/0)}copy(e){return super.copy(e),this.geometry=e.geometry.clone(),this.perObjectFrustumCulled=e.perObjectFrustumCulled,this.sortObjects=e.sortObjects,this.boundingBox=e.boundingBox===null?null:e.boundingBox.clone(),this.boundingSphere=e.boundingSphere===null?null:e.boundingSphere.clone(),this._geometryInfo=e._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox===null?null:e.boundingBox.clone(),boundingSphere:e.boundingSphere===null?null:e.boundingSphere.clone()})),this._instanceInfo=e._instanceInfo.map(e=>({...e})),this._availableInstanceIds=e._availableInstanceIds.slice(),this._availableGeometryIds=e._availableGeometryIds.slice(),this._nextIndexStart=e._nextIndexStart,this._nextVertexStart=e._nextVertexStart,this._geometryCount=e._geometryCount,this._maxInstanceCount=e._maxInstanceCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._indirectTexture=e._indirectTexture.clone(),this._indirectTexture.image.data=this._indirectTexture.image.data.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.data.slice()),this}dispose(){this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._indirectTexture.dispose(),this._indirectTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null)}onBeforeRender(e,t,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let a=r.getIndex(),o=a===null?1:a.array.BYTES_PER_ELEMENT,s=1;i.wireframe&&(s=2,o=r.attributes.position.count>65535?4:2);let c=this._instanceInfo,l=this._multiDrawStarts,u=this._multiDrawCounts,d=this._geometryInfo,f=this.perObjectFrustumCulled,p=this._indirectTexture,m=p.image.data,h=n.isArrayCamera?Fb:Pb;f&&!n.isArrayCamera&&(Mb.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),Pb.setFromProjectionMatrix(Mb,n.coordinateSystem,n.reversedDepth));let g=0;if(this.sortObjects){Mb.copy(this.matrixWorld).invert(),Rb.setFromMatrixPosition(n.matrixWorld).applyMatrix4(Mb),zb.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(Mb);for(let e=0,t=c.length;e<t;e++)if(c[e].visible&&c[e].active){let t=c[e].geometryIndex;this.getMatrixAt(e,Mb),this.getBoundingSphereAt(t,Lb).applyMatrix4(Mb);let r=!1;
vendor: 6,328 bytes, line 19
19if(f&&(r=!h.intersectsSphere(Lb,n)),!r){let n=d[t],r=Bb.subVectors(Lb.center,Rb).dot(zb);Vb.push(n.start,n.count,r,e)}}let e=Vb.list,t=this.customSort;t===null?e.sort(i.transparent?Ab:kb):t.call(this,e,n);for(let t=0,n=e.length;t<n;t++){let n=e[t];l[g]=n.start*o*s,u[g]=n.count*s,m[g]=n.index,g++}Vb.reset()}else for(let e=0,t=c.length;e<t;e++)if(c[e].visible&&c[e].active){let t=c[e].geometryIndex,r=!1;if(f&&(this.getMatrixAt(e,Mb),this.getBoundingSphereAt(t,Lb).applyMatrix4(Mb),r=!h.intersectsSphere(Lb,n)),!r){let n=d[t];l[g]=n.start*o*s,u[g]=n.count*s,m[g]=e,g++}}p.needsUpdate=!0,this._multiDrawCount=g,this._visibilityChanged=!1}onBeforeShadow(e,t,n,r,i,a){this.onBeforeRender(e,null,r,i,a)}},qb=class extends iy{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new Z(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}},Jb=new X,Yb=new X,Xb=new d_,Zb=new jy,Qb=new Gv,$b=new X,ex=new X,tx=class extends R_{constructor(e=new $v,t=new qb){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Jb.fromBufferAttribute(t,e-1),Yb.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Jb.distanceTo(Yb);e.setAttribute(`lineDistance`,new Q(n,1))}else q(`Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.`);return this}raycast(e,t){let n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(n.boundingSphere===null&&n.computeBoundingSphere(),Qb.copy(n.boundingSphere),Qb.applyMatrix4(r),Qb.radius+=i,e.ray.intersectsSphere(Qb)===!1)return;Xb.copy(r).invert(),Zb.copy(e.ray).applyMatrix4(Xb);let o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=this.isLineSegments?2:1,l=n.index,u=n.attributes.position;if(l!==null){let n=Math.max(0,a.start),r=Math.min(l.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=l.getX(i),r=l.getX(i+1),a=nx(this,e,Zb,s,n,r,i);a&&t.push(a)}if(this.isLineLoop){let i=l.getX(r-1),a=l.getX(n),o=nx(this,e,Zb,s,i,a,r-1);o&&t.push(o)}}else{let n=Math.max(0,a.start),r=Math.min(u.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=nx(this,e,Zb,s,i,i+1,i);n&&t.push(n)}if(this.isLineLoop){let i=nx(this,e,Zb,s,r-1,n,r-1);i&&t.push(i)}}}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}};function nx(e,t,n,r,i,a,o){let s=e.geometry.attributes.position;if(Jb.fromBufferAttribute(s,i),Yb.fromBufferAttribute(s,a),n.distanceSqToSegment(Jb,Yb,$b,ex)>r)return;$b.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo($b);if(!(c<t.near||c>t.far))return{distance:c,point:ex.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var rx=new X,ix=new X,ax=class extends tx{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)rx.fromBufferAttribute(t,e),ix.fromBufferAttribute(t,e+1),n[e]=e===0?0:n[e-1],n[e+1]=n[e]+rx.distanceTo(ix);e.setAttribute(`lineDistance`,new Q(n,1))}else q(`LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.`);return this}},ox=class extends tx{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type=`LineLoop`}},sx=class extends iy{constructor(e){super(),this.isPointsMaterial=!0,this.type=`PointsMaterial`,this.color=new Z(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}},cx=new d_,lx=new jy,ux=new Gv,dx=new X,fx=class extends R_{constructor(e=new $v,t=new sx){super(),this.isPoints=!0,this.type=`Points`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){let n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(n.boundingSphere===null&&n.computeBoundingSphere(),ux.copy(n.boundingSphere),ux.applyMatrix4(r),ux.radius+=i,e.ray.intersectsSphere(ux)===!1)return;cx.copy(r).invert(),lx.copy(e.ray).applyMatrix4(cx);let o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=n.index,l=n.attributes.position;if(c!==null){let n=Math.max(0,a.start),i=Math.min(c.count,a.start+a.count);for(let a=n,o=i;a<o;a++){let n=c.getX(a);dx.fromBufferAttribute(l,n),px(dx,n,s,r,e,t,this)}}else{let n=Math.max(0,a.start),i=Math.min(l.count,a.start+a.count);for(let a=n,o=i;a<o;a++)dx.fromBufferAttribute(l,a),px(dx,a,s,r,e,t,this)}}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}};function px(e,t,n,r,i,a,o){let s=lx.distanceSqToPoint(e);if(s<n){let n=new X;lx.closestPointToPoint(e,n),n.applyMatrix4(r);let c=i.ray.origin.distanceTo(n);if(c<i.near||c>i.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var mx=class extends r_{constructor(e,t,n,r,i=Xp,a=Xp,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isVideoTexture=!0,this.generateMipmaps=!1,this._requestVideoFrameCallbackId=0;let l=this;
19function u(){l.needsUpdate=!0,l._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u)}`requestVideoFrameCallback`in e&&(this._requestVideoFrameCallbackId=e.requestVideoFrameCallback(u))}clone(){return new this.constructor(this.image).copy(this)}update(){let e=this.image;!(`requestVideoFrameCallback`in e)&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}dispose(){this._requestVideoFrameCallbackId!==0&&(this.source.data.cancelVideoFrameCallback(this._requestVideoFrameCallbackId),this._requestVideoFrameCallbackId=0),super.dispose()}},hx=class extends mx{constructor(e,t,n,r,i,a,o,s){super({},e,t,n,r,i,a,o,s),this.isVideoFrameTexture=!0}update(){}clone(){return new this.constructor().copy(this)}setFrame(e){this.image=e,this.needsUpdate=!0}},gx=class extends r_{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=Gp,this.minFilter=Gp,this.generateMipmaps=!1,this.needsUpdate=!0}},_x=class extends r_{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}},vx=class extends _x{constructor(e,t,n,r,i,a){super(e,t,n,i,a),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=Up,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}},yx=class extends _x{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,301),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}},bx=class extends r_{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},xx=class extends r_{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Sx=class extends r_{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isHTMLTexture=!0,this.generateMipmaps=!1,this.needsUpdate=!0;let l=e?e.parentNode:null;l!==null&&`requestPaint`in l&&(l.onpaint=()=>{this.needsUpdate=!0},l.requestPaint())}dispose(){let e=this.image?this.image.parentNode:null;e!==null&&`onpaint`in e&&(e.onpaint=null),super.dispose()}},Cx=class extends r_{constructor(e,t,n=om,r,i,a,o=Gp,s=Gp,c,l=_m,u=1){if(l!==1026&&l!==1027)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new $g(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},wx=class extends Cx{constructor(e,t=om,n=301,r,i,a=Gp,o=Gp,s,c=_m){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Tx=class extends r_{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Ex=class e extends $v{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Q(c,3)),this.setAttribute(`normal`,new Q(l,3)),this.setAttribute(`uv`,new Q(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new X;for(let a=0;a<w;a++){let o=a*y-x;for(let s=0;s<C;s++)D[e]=(s*v-b)*r,D[t]=o*i,D[n]=S,c.push(D.x,D.y,D.z),D[e]=0,D[t]=0,D[n]=m>0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e<g;e++)for(let t=0;t<h;t++){let n=d+t+C*e,r=d+t+C*(e+1),i=d+(t+1)+C*(e+1),a=d+(t+1)+C*e;s.push(n,r,a),s.push(r,i,a),E+=6}o.addGroup(f,E,_),f+=E,d+=T}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}},Dx=class e extends $v{constructor(e=1,t=1,n=4,r=8,i=1){super(),this.type=`CapsuleGeometry`,this.parameters={radiu
vendor: 10,480 bytes, line 19
19s:e,height:t,capSegments:n,radialSegments:r,heightSegments:i},t=Math.max(0,t),n=Math.max(1,Math.floor(n)),r=Math.max(3,Math.floor(r)),i=Math.max(1,Math.floor(i));let a=[],o=[],s=[],c=[],l=t/2,u=Math.PI/2*e,d=t,f=2*u+d,p=n*2+i,m=r+1,h=new X,g=new X;for(let _=0;_<=p;_++){let v=0,y=0,b=0,x=0;if(_<=n){let t=_/n,r=t*Math.PI/2;y=-l-e*Math.cos(r),b=e*Math.sin(r),x=-e*Math.cos(r),v=t*u}else if(_<=n+i){let r=(_-n)/i;y=-l+r*t,b=e,x=0,v=u+r*d}else{let t=(_-n-i)/n,r=t*Math.PI/2;y=l+e*Math.sin(r),b=e*Math.cos(r),x=e*Math.sin(r),v=u+d+t*u}let S=Math.max(0,Math.min(1,v/f)),C=0;_===0?C=.5/r:_===p&&(C=-.5/r);for(let e=0;e<=r;e++){let t=e/r,n=t*Math.PI*2,i=Math.sin(n),a=Math.cos(n);g.x=-b*a,g.y=y,g.z=b*i,o.push(g.x,g.y,g.z),h.set(-b*a,x,b*i),h.normalize(),s.push(h.x,h.y,h.z),c.push(t+C,S)}if(_>0){let e=(_-1)*m;for(let t=0;t<r;t++){let n=e+t,r=e+t+1,i=_*m+t,o=_*m+t+1;a.push(n,r,i),a.push(r,o,i)}}}this.setIndex(a),this.setAttribute(`position`,new Q(o,3)),this.setAttribute(`normal`,new Q(s,3)),this.setAttribute(`uv`,new Q(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.height,t.capSegments,t.radialSegments,t.heightSegments)}},Ox=class e extends $v{constructor(e=1,t=32,n=0,r=Math.PI*2){super(),this.type=`CircleGeometry`,this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:r},t=Math.max(3,t);let i=[],a=[],o=[],s=[],c=new X,l=new Y;a.push(0,0,0),o.push(0,0,1),s.push(.5,.5);for(let i=0,u=3;i<=t;i++,u+=3){let d=n+i/t*r;c.x=e*Math.cos(d),c.y=e*Math.sin(d),a.push(c.x,c.y,c.z),o.push(0,0,1),l.x=(a[u]/e+1)/2,l.y=(a[u+1]/e+1)/2,s.push(l.x,l.y)}for(let e=1;e<=t;e++)i.push(e,e+1,0);this.setIndex(i),this.setAttribute(`position`,new Q(a,3)),this.setAttribute(`normal`,new Q(o,3)),this.setAttribute(`uv`,new Q(s,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.segments,t.thetaStart,t.thetaLength)}},kx=class e extends $v{constructor(e=1,t=1,n=1,r=32,i=1,a=!1,o=0,s=Math.PI*2){super(),this.type=`CylinderGeometry`,this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:a,thetaStart:o,thetaLength:s};let c=this;r=Math.floor(r),i=Math.floor(i);let l=[],u=[],d=[],f=[],p=0,m=[],h=n/2,g=0;_(),a===!1&&(e>0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new Q(u,3)),this.setAttribute(`normal`,new Q(d,3)),this.setAttribute(`uv`,new Q(f,2));function _(){let a=new X,_=new X,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n<r;n++)for(let r=0;r<i;r++){let a=m[r][n],o=m[r+1][n],s=m[r+1][n+1],c=m[r][n+1];(e>0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new Y,m=new X,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e<r;e++){let t=i+e,r=b+e;n===!0?l.push(r,r+1,t):l.push(r+1,r,t),_+=3}c.addGroup(g,_,n===!0?1:2),g+=_}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}},Ax=class e extends kx{constructor(e=1,t=1,n=32,r=1,i=!1,a=0,o=Math.PI*2){super(0,e,t,n,r,i,a,o),this.type=`ConeGeometry`,this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:a,thetaLength:o}}static fromJSON(t){return new e(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}},jx=class e extends $v{constructor(e=[],t=[],n=1,r=0){super(),this.type=`PolyhedronGeometry`,this.parameters={vertices:e,indices:t,radius:n,detail:r};let i=[],a=[];o(r),c(n),l(),this.setAttribute(`position`,new Q(i,3)),this.setAttribute(`normal`,new Q(i.slice(),3)),this.setAttribute(`uv`,new Q(a,2)),r===0?this.computeVertexNormals():this.normalizeNormals();function o(e){let n=new X,r=new X,i=new X;for(let a=0;a<t.length;a+=3)f(t[a+0],n),f(t[a+1],r),f(t[a+2],i),s(n,r,i,e)}function s(e,t,n,r){let i=r+1,a=[];for(let r=0;r<=i;r++){a[r]=[];let o=e.clone().lerp(n,r/i),s=t.clone().lerp(n,r/i),c=i-r;for(let e=0;e<=c;e++)e===0&&r===i?a[r][e]=o:a[r][e]=o.clone().lerp(s,e/c)}for(let e=0;e<i;e++)for(let t=0;t<2*(i-e)-1;t++){let n=Math.floor(t/2);t%2==0?(d(a[e][n+1]),d(a[e+1][n]),d(a[e][n])):(d(a[e][n+1]),d(a[e+1][n+1]),d(a[e+1][n]))}}function c(e){let t=new X;for(let n=0;n<i.length;n+=3)t.x=i[n+0],t.y=i[n+1],t.z=i[n+2],t.normalize().multiplyScalar(e),i[n+0]=t.x,i[n+1]=t.y,i[n+2]=t.z}function l(){let e=new X;for(let t=0;t<i.length;t+=3){e.x=i[t+0],e.y=i[t+1],e.z=i[t+2];let n=h(e)/2/Math.PI+.5,r=g(e)/Math.PI+.5;a.push(n,1-r)}p(),u()}function u(){for(let e=0;e<a.length;e+=6){let t=a[e+0],n=a[e+2],r=a[e+4];Math.max(t,n,r)>.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new X,t=new X,n=new X,r=new X,o=new Y,s=new Y,c=new Y;for(let l=0,u=0;l<i.length;l+=9,u+=6){e.set(i[l+0],i[l+1],i[l+2]),t.set(i[l+3],i[l+4],i[l+5]),n.set(i[l+6],i[l+7],i[l+8]),o.set(a[u+0],a[u+1]),s.set(a[u+2],a[u+3]),c.set(a[u+4],a[u+5]),r.copy(e).add(t).add(n).divideScalar(3);let d=h(r);m(o,u+0,e,d),m(s,u+2,t,d),m(c,u+4,n,d)}}function m(e,t,n,r){r<0&&e.x===1&&(a[t]=e.x-1),n.x===0&&n.z===0&&(a[t]=r/2/Math.PI+.5)}function h(e){return Math.atan2(e.z,-e.x)}function g(e){return Math.atan2(-e.y,Math.sqrt(e.x*e.x+e.z*e.z))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.vertices,t.indices,t.radius,t.detail)}},Mx=class e extends jx{constructor(e=1,t=0){let n=(1+Math.sqrt(5))/2,r=1/n,i=[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r];super(i,[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type=`DodecahedronGeometry`,this.parameters={radius:e,detail:t}}static fromJSON(t){return new e(t.radius,t.detail)}},Nx=new X,Px=new X,Fx=new X,Ix=new lv,Lx=class extends $v{constructor(e=null,t=1){if(super(),this.type=`EdgesGeometry`,this.parameters={geometry:e,thresholdAngle:t},e!==null){let n=10**4,r=Math.cos(mg*t),i=e.getIndex(),a=e.getAttribute(`position`),o=i?i.count:a.count,s=[0,0,0],c=[`a`,`b`,`c`],l=[,,,],u={},d=[];for(let e=0;e<o;e+=3){i?(s[0]=i.getX(e),s[1]=i.getX(e+1),s[2]=i.getX(e+2)):(s[0]=e,s[1]=e+1,s[2]=e+2);let{a:t,b:o,c:f}=Ix;if(t.fromBufferAttribute(a,s[0]),o.fromBufferAttribute(a,s[1]),f.fromBufferAttribute(a,s[2]),Ix.getNormal(Fx),l[0]=`${Math.round(t.x*n)},${Math.round(t.y*n)},${Math.round(t.z*n)}`,l[1]=`${Math.round(o.x*n)},${Math.round(o.y*n)},${Math.round(o.z*n)}`,l[2]=`${Math.round(f.x*n)},${Math.round(f.y*n)},${Math.round(f.z*n)}`,!(l[0]===l[1]||l[1]===l[2]||l[2]===l[0]))for(let e=0;e<3;e++){let t=(e+1)%3,n=l[e],i=l[t],a=Ix[c[e]],o=Ix[c[t]],f=`${n}_${i}`,p=`${i}_${n}`;p in u&&u[p]?(Fx.dot(u[p].normal)<=r&&(d.push(a.x,a.y,a.z),d.push(o.x,o.y,o.z)),u[p]=null):f in u||(u[f]={index0:s[e],index1:s[t],normal:Fx.clone()})}}for(let e in u)if(u[e]){let{index0:t,index1:n}=u[e];Nx.fromBufferAttribute(a,t),Px.fromBufferAttribute(a,n),d.push(Nx.x,Nx.y,Nx.z),d.push(Px.x,Px.y,Px.z)}this.setAttribute(`position`,new Q(d,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}},Rx=class{constructor(){this.type=`Curve`,this.arcLengthDivisions=200,this.needsUpdate=!1,this.cacheArcLengths=null}getPoint(){q(`Curve: .getPoint() not implemented.`)}getPointAt(e,t){let n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){let 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;let t=[],n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t=null){let n=this.getLengths(),r=0,i=n.length,a;a=t||e*n[i-1];let o=0,s=i-1,c;for(;o<=s;)if(r=Math.floor(o+(s-o)/2),c=n[r]-a,c<0)o=r+1;else if(c>0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new Y:new X);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new X,r=[],i=[],a=[],o=new X,s=new d_;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new X)}i[0]=new X,a[0]=new X;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(_g(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(_g(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.t
vendor: 5,921 bytes, line 19
19ype,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},zx=class extends Rx{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new Y){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,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(){let 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}},Bx=class extends zx{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function Vx(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var Hx=new X,Ux=new X,Wx=new Vx,Gx=new Vx,Kx=new Vx,qx=class extends Rx{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new X){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(Ux.subVectors(r[0],r[1]).add(r[0]),c=Ux);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2<i?l=r[(o+2)%i]:(Hx.subVectors(r[i-1],r[i-2]).add(r[i-1]),l=Hx),this.curveType===`centripetal`||this.curveType===`chordal`){let e=this.curveType===`chordal`?.5:.25,t=c.distanceToSquared(u)**+e,n=u.distanceToSquared(d)**+e,r=d.distanceToSquared(l)**+e;n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),Wx.initNonuniformCatmullRom(c.x,u.x,d.x,l.x,t,n,r),Gx.initNonuniformCatmullRom(c.y,u.y,d.y,l.y,t,n,r),Kx.initNonuniformCatmullRom(c.z,u.z,d.z,l.z,t,n,r)}else this.curveType===`catmullrom`&&(Wx.initCatmullRom(c.x,u.x,d.x,l.x,this.tension),Gx.initCatmullRom(c.y,u.y,d.y,l.y,this.tension),Kx.initCatmullRom(c.z,u.z,d.z,l.z,this.tension));return n.set(Wx.calc(s),Gx.calc(s),Kx.calc(s)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){let e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){let n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(new X().fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}};function Jx(e,t,n,r,i){let a=(r-t)*.5,o=(i-n)*.5,s=e*e,c=e*s;return(2*n-2*r+a+o)*c+(-3*n+3*r-2*a-o)*s+a*e+n}function Yx(e,t){let n=1-e;return n*n*t}function Xx(e,t){return 2*(1-e)*e*t}function Zx(e,t){return e*e*t}function Qx(e,t,n,r){return Yx(e,t)+Xx(e,n)+Zx(e,r)}function $x(e,t){let n=1-e;return n*n*n*t}function eS(e,t){let n=1-e;return 3*n*n*e*t}function tS(e,t){return 3*(1-e)*e*e*t}function nS(e,t){return e*e*e*t}function rS(e,t,n,r,i){return $x(e,t)+eS(e,n)+tS(e,r)+nS(e,i)}var iS=class extends Rx{constructor(e=new Y,t=new Y,n=new Y,r=new Y){super(),this.isCubicBezierCurve=!0,this.type=`CubicBezierCurve`,this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new Y){let n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(rS(e,r.x,i.x,a.x,o.x),rS(e,r.y,i.y,a.y,o.y)),n}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(){let 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}},aS=class extends Rx{constructor(e=new X,t=new X,n=new X,r=new X){super(),this.isCubicBezierCurve3=!0,this.type=`CubicBezierCurve3`,this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new X){let n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(rS(e,r.x,i.x,a.x,o.x),rS(e,r.y,i.y,a.y,o.y),rS(e,r.z,i.z,a.z,o.z)),n}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(){let 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}},oS=class extends Rx{constructor(e=new Y,t=new Y){super(),this.isLineCurve=!0,this.type=`LineCurve`,this.v1=e,this.v2=t}getPoint(e,t=new Y){let n=t;return e===1?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}
vendor: 4,354 bytes, line 19
19getTangent(e,t=new Y){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let 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}},sS=class extends Rx{constructor(e=new X,t=new X){super(),this.isLineCurve3=!0,this.type=`LineCurve3`,this.v1=e,this.v2=t}getPoint(e,t=new X){let n=t;return e===1?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new X){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let 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}},cS=class extends Rx{constructor(e=new Y,t=new Y,n=new Y){super(),this.isQuadraticBezierCurve=!0,this.type=`QuadraticBezierCurve`,this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Y){let n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Qx(e,r.x,i.x,a.x),Qx(e,r.y,i.y,a.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let 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}},lS=class extends Rx{constructor(e=new X,t=new X,n=new X){super(),this.isQuadraticBezierCurve3=!0,this.type=`QuadraticBezierCurve3`,this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new X){let n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(Qx(e,r.x,i.x,a.x),Qx(e,r.y,i.y,a.y),Qx(e,r.z,i.z,a.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){let 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}},uS=class extends Rx{constructor(e=[]){super(),this.isSplineCurve=!0,this.type=`SplineCurve`,this.points=e}getPoint(e,t=new Y){let n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[a===0?a:a-1],c=r[a],l=r[a>r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(Jx(o,s.x,c.x,l.x,u.x),Jx(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(n.clone())}return this}toJSON(){let e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){let n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){let n=e.points[t];this.points.push(new Y().fromArray(n))}return this}},dS=Object.freeze({__proto__:null,ArcCurve:Bx,CatmullRomCurve3:qx,CubicBezierCurve:iS,CubicBezierCurve3:aS,EllipseCurve:zx,LineCurve:oS,LineCurve3:sS,QuadraticBezierCurve:cS,QuadraticBezierCurve3:lS,SplineCurve:uS}),fS=class extends Rx{constructor(){super(),this.type=`CurvePath`,this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){let e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){let n=e.isVector2===!0?`LineCurve`:`LineCurve3`;this.curves.push(new dS[n](t,e))}return this}getPoint(e,t){let n=e*this.getLength(),r=this.getCurveLengths(),i=0;for(;i<r.length;){if(r[i]>=n){let e=r[i]-n,a=this.curves[i],o=a.getLength(),s=o===0?0:1-e/o;return a.getPointAt(s,t)}i++}return null}getLength(){let 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;let e=[],t=0;for(let n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){let t=[],n;for(let r=0,i=this.curves;r<i.length;r++){let a=i[r],o=a.isEllipseCurve?e*2:a.isLineCurve||a.isLineCurve3?1:a.isS
vendor: 4,453 bytes, line 19
19plineCurve?e*a.points.length:e,s=a.getPoints(o);for(let e=0;e<s.length;e++){let r=s[e];n&&n.equals(r)||(t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){let n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){let e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){let n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){let n=e.curves[t];this.curves.push(new dS[n.type]().fromJSON(n))}return this}},pS=class extends fS{constructor(e){super(),this.type=`Path`,this.currentPoint=new Y,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){let n=new oS(this.currentPoint.clone(),new Y(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){let i=new cS(this.currentPoint.clone(),new Y(e,t),new Y(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,i,a){let o=new iS(this.currentPoint.clone(),new Y(e,t),new Y(n,r),new Y(i,a));return this.curves.push(o),this.currentPoint.set(i,a),this}splineThru(e){let t=new uS([this.currentPoint.clone()].concat(e));return this.curves.push(t),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,i,a){let o=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+o,t+s,n,r,i,a),this}absarc(e,t,n,r,i,a){return this.absellipse(e,t,n,n,r,i,a),this}ellipse(e,t,n,r,i,a,o,s){let c=this.currentPoint.x,l=this.currentPoint.y;return this.absellipse(e+c,t+l,n,r,i,a,o,s),this}absellipse(e,t,n,r,i,a,o,s){let c=new zx(e,t,n,r,i,a,o,s);if(this.curves.length>0){let e=c.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(c);let l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){let e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}},mS=class extends pS{constructor(e){super(e),this.uuid=gg(),this.type=`Shape`,this.holes=[]}getPointsHoles(e){let t=[];for(let n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){let n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){let e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){let n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){let n=e.holes[t];this.holes.push(new pS().fromJSON(n))}return this}};function hS(e,t,n=2){let r=t&&t.length,i=r?t[0]*n:e.length,a=gS(e,0,i,n,!0),o=[];if(!a||a.next===a.prev)return o;let s,c,l;if(r&&(a=CS(e,t,a,n)),e.length>80*n){s=e[0],c=e[1];let t=s,r=c;for(let a=n;a<i;a+=n){let n=e[a],i=e[a+1];n<s&&(s=n),i<c&&(c=i),n>t&&(t=n),i>r&&(r=i)}l=Math.max(t-s,r-c),l=l===0?0:32767/l}return vS(a,o,n,s,c,l,0),o}function gS(e,t,n,r,i){let a;if(i===qS(e,t,n,r)>0)for(let i=t;i<n;i+=r)a=WS(i/r|0,e[i],e[i+1],a);else for(let i=n-r;i>=t;i-=r)a=WS(i/r|0,e[i],e[i+1],a);return a&&IS(a,a.next)&&(GS(a),a=a.next),a}function _S(e,t){if(!e)return e;t||=e;let n=e,r;do if(r=!1,!n.steiner&&(IS(n,n.next)||FS(n.prev,n,n.next)===0)){if(GS(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function vS(e,t,n,r,i,a,o){if(!e)return;!o&&a&&OS(e,r,i,a);let s=e;for(;e.prev!==e.next;){let c=e.prev,l=e.next;if(a?bS(e,r,i,a):yS(e)){t.push(c.i,e.i,l.i),GS(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=xS(_S(e),t),vS(e,t,n,r,i,a,2)):o===2&&SS(e,t,n,r,i,a):vS(_S(e),t,n,r,i,a,1);break}}}function yS(e){let t=e.prev,n=e,r=e.next;if(FS(t,n,r)>=0)return!1;let i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=Math.min(i,a,o),d=Math.min(s,c,l),f=Math.max(i,a,o),p=Math.max(s,c,l),m=r.next;for(;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&NS(i,s,a,c,o,l,m.x,m.y)&&FS(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function bS(e,t,n,r){let i=e.prev,a=e,o=e.next;if(FS(i,a,o)>=0)return!1;
vendor: 26,095 bytes, lines 19-23
19let s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=Math.min(s,c,l),m=Math.min(u,d,f),h=Math.max(s,c,l),g=Math.max(u,d,f),_=AS(p,m,t,n,r),v=AS(h,g,t,n,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=_&&b&&b.z<=v;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&NS(s,u,c,d,l,f,y.x,y.y)&&FS(y.prev,y,y.next)>=0||(y=y.prevZ,b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&NS(s,u,c,d,l,f,b.x,b.y)&&FS(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&NS(s,u,c,d,l,f,y.x,y.y)&&FS(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&NS(s,u,c,d,l,f,b.x,b.y)&&FS(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function xS(e,t){let n=e;do{let r=n.prev,i=n.next.next;!IS(r,i)&&LS(r,n,n.next,i)&&VS(r,i)&&VS(i,r)&&(t.push(r.i,n.i,i.i),GS(n),GS(n.next),n=e=i),n=n.next}while(n!==e);return _S(n)}function SS(e,t,n,r,i,a){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&PS(o,e)){let s=US(o,e);o=_S(o,o.next),s=_S(s,s.next),vS(o,t,n,r,i,a,0),vS(s,t,n,r,i,a,0);return}e=e.next}o=o.next}while(o!==e)}function CS(e,t,n,r){let i=[];for(let n=0,a=t.length;n<a;n++){let o=gS(e,t[n]*r,n<a-1?t[n+1]*r:e.length,r,!1);o===o.next&&(o.steiner=!0),i.push(jS(o))}i.sort(wS);for(let e=0;e<i.length;e++)n=TS(i[e],n);return n}function wS(e,t){let n=e.x-t.x;return n===0&&(n=e.y-t.y,n===0&&(n=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x))),n}function TS(e,t){let n=ES(e,t);if(!n)return t;let r=US(n,e);return _S(r,r.next),_S(n,n.next)}function ES(e,t){let n=t,r=e.x,i=e.y,a=-1/0,o;if(IS(e,n))return n;do{if(IS(e,n.next))return n.next;if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){let e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x<n.next.x?n:n.next,e===r))return o}n=n.next}while(n!==t);if(!o)return null;let s=o,c=o.x,l=o.y,u=1/0;n=o;do{if(r>=n.x&&n.x>=c&&r!==n.x&&MS(i<l?r:a,i,c,l,i<l?a:r,i,n.x,n.y)){let t=Math.abs(i-n.y)/(r-n.x);VS(n,e)&&(t<u||t===u&&(n.x>o.x||n.x===o.x&&DS(o,n)))&&(o=n,u=t)}n=n.next}while(n!==s);return o}function DS(e,t){return FS(e.prev,e,t.prev)<0&&FS(t.next,e,e.next)<0}function OS(e,t,n,r){let i=e;do i.z===0&&(i.z=AS(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,kS(i)}function kS(e){let t,n=1;do{let r=e,i;e=null;let a=null;for(t=0;r;){t++;let o=r,s=0;for(let e=0;e<n&&(s++,o=o.nextZ,o);e++);let c=n;for(;s>0||c>0&&o;)s!==0&&(c===0||!o||r.z<=o.z)?(i=r,r=r.nextZ,s--):(i=o,o=o.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=o}a.nextZ=null,n*=2}while(t>1);return e}function AS(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function jS(e){let t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function MS(e,t,n,r,i,a,o,s){return(i-o)*(t-s)>=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function NS(e,t,n,r,i,a,o,s){return!(e===o&&t===s)&&MS(e,t,n,r,i,a,o,s)}function PS(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!BS(e,t)&&(VS(e,t)&&VS(t,e)&&HS(e,t)&&(FS(e.prev,e,t.prev)||FS(e,t.prev,t))||IS(e,t)&&FS(e.prev,e,e.next)>0&&FS(t.prev,t,t.next)>0)}function FS(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function IS(e,t){return e.x===t.x&&e.y===t.y}function LS(e,t,n,r){let i=zS(FS(e,t,n)),a=zS(FS(e,t,r)),o=zS(FS(n,r,e)),s=zS(FS(n,r,t));return!!(i!==a&&o!==s||i===0&&RS(e,n,t)||a===0&&RS(e,r,t)||o===0&&RS(n,e,r)||s===0&&RS(n,t,r))}function RS(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function zS(e){return e>0?1:e<0?-1:0}function BS(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&LS(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function VS(e,t){return FS(e.prev,e,e.next)<0?FS(e,t,e.next)>=0&&FS(e,e.prev,t)>=0:FS(e,t,e.prev)<0||FS(e,e.next,t)<0}function HS(e,t){let n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.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!==e);return r}function US(e,t){let n=KS(e.i,e.x,e.y),r=KS(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function WS(e,t,n,r){let i=KS(e,t,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 GS(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function KS(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function qS(e,t,n,r){let i=0;for(let a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}var JS=class{static triangulate(e,t,n=2){return hS(e,t,n)}},YS=class e{static area(e){let t=e.length,n=0;for(let r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return n*.5}static isClockWise(t){return e.area(t)<0}static triangulateShape(e,t){let n=[],r=[],i=[];XS(e),ZS(n,e);let a=e.length;t.forEach(XS);for(let e=0;e<t.length;e++)r.push(a),a+=t[e].length,ZS(n,t[e]);let o=JS.triangulate(n,r);for(let e=0;e<o.length;e+=3)i.push(o.slice(e,e+3));return i}};function XS(e){let t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function ZS(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}var QS=class e extends $v{constructor(e=new mS([new Y(.5,.5),new Y(-.5,.5),new Y(-.5,-.5),new Y(.5,-.5)]),t={}){super(),this.type=`ExtrudeGeometry`,this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];let n=this,r=[],i=[];for(let t=0,n=e.length;t<n;t++){let n=e[t];a(n)}this.setAttribute(`position`,new Q(r,3)),this.setAttribute(`uv`,new Q(i,2)),this.computeVertexNormals();function a(e){let a=[],o=t.curveSegments===void 0?12:t.curveSegments,s=t.steps===void 0?1:t.steps,c=t.depth===void 0?1:t.depth,l=t.bevelEnabled===void 0?!0:t.bevelEnabled,u=t.bevelThickness===void 0?.2:t.bevelThickness,d=t.bevelSize===void 0?u-.1:t.bevelSize,f=t.bevelOffset===void 0?0:t.bevelOffset,p=t.bevelSegments===void 0?3:t.bevelSegments,m=t.extrudePath,h=t.UVGenerator===void 0?$S:t.UVGenerator,g,_=!1,v,y,b,x;if(m){g=m.getSpacedPoints(s),_=!0,l=!1;let e=m.isCatmullRomCurve3?m.closed:!1;v=m.computeFrenetFrames(s,e),y=new X,b=new X,x=new X}l||(p=0,u=0,d=0,f=0);let S=e.extractPoints(o),C=S.shape,w=S.holes;if(!YS.isClockWise(C)){C=C.reverse();for(let e=0,t=w.length;e<t;e++){let t=w[e];YS.isClockWise(t)&&(w[e]=t.reverse())}}function T(e){let t=1e-10;t*t;let n=e[0];for(let t=1;t<=e.length;t++){let r=t%e.length,i=e[r],a=i.x-n.x,o=i.y-n.y,s=a*a+o*o,c=Math.max(Math.abs(i.x),Math.abs(i.y),Math.abs(n.x),Math.abs(n.y));if(s<=10000000000000001e-36*c*c){e.splice(r,1),t--;continue}n=i}}T(C),w.forEach(T);let E=w.length,D=C;for(let e=0;e<E;e++){let t=w[e];C=C.concat(t)}function O(e,t,n){return t||J(`ExtrudeGeometry: vec does not exist`),e.clone().addScaledVector(t,n)}let k=C.length;function A(e,t,n){let r,i,a,o=e.x-t.x,s=e.y-t.y,c=n.x-e.x,l=n.y-e.y,u=o*o+s*s,d=o*l-s*c;if(Math.abs(d)>2**-52){let d=Math.sqrt(u),f=Math.sqrt(c*c+l*l),p=t.x-s/d,m=t.y+o/d,h=n.x-l/f,g=n.y+c/f,_=((h-p)*l-(g-m)*c)/(o*l-s*c);r=p+o*_-e.x,i=m+s*_-e.y;let v=r*r+i*i;if(v<=2)return new Y(r,i);a=Math.sqrt(v/2)}else{let e=!1;o>2**-52?c>2**-52&&(e=!0):o<-(2**-52)?c<-(2**-52)&&(e=!0):Math.sign(s)===Math.sign(l)&&(e=!0),e?(r=-s,i=o,a=Math.sqrt(u)):(r=o,i=s,a=Math.sqrt(u/2))}return new Y(r/a,i/a)}let j=[];for(let e=0,t=D.length,n=t-1,r=e+1;e<t;e++,n++,r++)n===t&&(n=0),r===t&&(r=0),j[e]=A(D[e],D[n],D[r]);let M=[],N,P=j.concat();for(let e=0,t=E;e<t;e++){let t=w[e];N=[];for(let e=0,n=t.length,r=n-1,i=e+1;e<n;e++,r++,i++)r===n&&(r=0),i===n&&(i=0),N[e]=A(t[e],t[r],t[i]);M.push(N),P=P.concat(N)}let ee;if(p===0)ee=YS.triangulateShape(D,w);else{let e=[],t=[];for(let n=0;n<p;n++){let r=n/p,i=u*Math.cos(r*Math.PI/2),a=d*Math.sin(r*Math.PI/2)+f;for(let t=0,n=D.length;t<n;t++){let n=O(D[t],j[t],a);re(n.x,n.y,-i),r===0&&e.push(n)}for(let e=0,n=E;e<n;e++){let n=w[e];N=M[e];let o=[];for(let e=0,t=n.length;e<t;e++){let t=O(n[e],N[e],a);re(t.x,t.y,-i),r===0&&o.push(t)}r===0&&t.push(o)}}ee=YS.triangulateShape(e,t)}let F=ee.length,I=d+f;for(let e=0;e<k;e++){let t=l?O(C[e],P[e],I):C[e];_?(b.copy(v.normals[0]).multiplyScalar(t.x),y.copy(v.binormals[0]).multiplyScalar(t.y),x.copy(g[0]).add(b).add(y),re(x.x,x.y,x.z)):re(t.x,t.y,0)}for(let e=1;e<=s;e++)for(let t=0;t<k;t++){let n=l?O(C[t],P[t],I):C[t];_?(b.copy(v.normals[e]).multiplyScalar(n.x),y.copy(v.binormals[e]).multiplyScalar(n.y),x.copy(g[e]).add(b).add(y),re(x.x,x.y,x.z)):re(n.x,n.y,c/s*e)}for(let e=p-1;e>=0;e--){let t=e/p,n=u*Math.cos(t*Math.PI/2),r=d*Math.sin(t*Math.PI/2)+f;for(let e=0,t=D.length;e<t;e++){let t=O(D[e],j[e],r);re(t.x,t.y,c+n)}for(let e=0,t=w.length;e<t;e++){let t=w[e];N=M[e];for(let e=0,i=t.length;e<i;e++){let i=O(t[e],N[e],r);_?re(i.x,i.y+g[s-1].y,g[s-1].x+n):re(i.x,i.y,c+n)}}}te(),ne();function te(){let e=r.length/3;if(l){let e=0,t=k*e;for(let e=0;e<F;e++){let n=ee[e];ie(n[2]+t,n[1]+t,n[0]+t)}e=s+p*2,t=k*e;for(let e=0;e<F;e++){let n=ee[e];ie(n[0]+t,n[1]+t,n[2]+t)}}else{for(let e=0;e<F;e++){let t=ee[e];ie(t[2],t[1],t[0])}for(let e=0;e<F;e++){let t=ee[e];ie(t[0]+k*s,t[1]+k*s,t[2]+k*s)}}n.addGroup(e,r.length/3-e,0)}function ne(){let e=r.length/3,t=0;L(D,t),t+=D.length;for(let e=0,n=w.length;e<n;e++){let n=w[e];L(n,t),t+=n.length}n.addGroup(e,r.length/3-e,1)}function L(e,t){let n=e.length;for(;--n>=0;){let r=n,i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+p*2;e<n;e++){let n=k*e,a=k*(e+1);R(t+r+n,t+i+n,t+i+a,t+r+a)}}}function re(e,t,n){a.push(e),a.push(t),a.push(n)}function ie(e,t,i){ae(e),ae(t),ae(i);let a=r.length/3,o=h.generateTopUV(n,r,a-3,a-2,a-1);z(o[0]),z(o[1]),z(o[2])}function R(e,t,i,a){ae(e),ae(t),ae(a),ae(t),ae(i),ae(a);let o=r.length/3,s=h.generateSideWallUV(n,r,o-6,o-3,o-2,o-1);z(s[0]),z(s[1]),z(s[3]),z(s[1]),z(s[2]),z(s[3])}function ae(e){r.push(a[e*3+0]),r.push(a[e*3+1]),r.push(a[e*3+2])}function z(e){i.push(e.x),i.push(e.y)}}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON(),t=this.parameters.shapes,n=this.parameters.options;return eC(t,n,e)}static fromJSON(t,n){let r=[];for(let e=0,i=t.shapes.length;e<i;e++){let i=n[t.shapes[e]];r.push(i)}let i=t.options.extrudePath;return i!==void 0&&(t.options.extrudePath=new dS[i.type]().fromJSON(i)),new e(r,t.options)}},$S={generateTopUV:function(e,t,n,r,i){let a=t[n*3],o=t[n*3+1],s=t[r*3],c=t[r*3+1],l=t[i*3],u=t[i*3+1];return[new Y(a,o),new Y(s,c),new Y(l,u)]},generateSideWallUV:function(e,t,n,r,i,a){let o=t[n*3],s=t[n*3+1],c=t[n*3+2],l=t[r*3],u=t[r*3+1],d=t[r*3+2],f=t[i*3],p=t[i*3+1],m=t[i*3+2],h=t[a*3],g=t[a*3+1],_=t[a*3+2];return Math.abs(s-u)<Math.abs(o-l)?[new Y(o,1-c),new Y(l,1-d),new Y(f,1-m),new Y(h,1-_)]:[new Y(s,1-c),new Y(u,1-d),new Y(p,1-m),new Y(g,1-_)]}};function eC(e,t,n){if(n.shapes=[],Array.isArray(e))for(let t=0,r=e.length;t<r;t++){let r=e[t];n.shapes.push(r.uuid)}else n.shapes.push(e.uuid);return n.options=Object.assign({},t),t.extrudePath!==void 0&&(n.options.extrudePath=t.extrudePath.toJSON()),n}var tC=class e extends jx{constructor(e=1,t=0){let n=(1+Math.sqrt(5))/2,r=[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1];super(r,[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],e,t),this.type=`IcosahedronGeometry`,this.parameters={radius:e,detail:t}}static fromJSON(t){return new e(t.radius,t.detail)}},nC=class e extends $v{constructor(e=[new Y(0,-.5),new Y(.5,0),new Y(0,.5)],t=12,n=0,r=Math.PI*2){super(),this.type=`LatheGeometry`,this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=_g(r,0,Math.PI*2);let i=[],a=[],o=[],s=[],c=[],l=1/t,u=new X,d=new Y,f=new X,p=new X,m=new X,h=0,g=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:h=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,f.x=g*1,f.y=-h,f.z=g*0,m.copy(f),f.normalize(),s.push(f.x,f.y,f.z);break;case e.length-1:s.push(m.x,m.y,m.z);break;default:h=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,f.x=g*1,f.y=-h,f.z=g*0,p.copy(f),f.x+=m.x,f.y+=m.y,f.z+=m.z,f.normalize(),s.push(f.x,f.y,f.z),m.copy(p)}for(let i=0;i<=t;i++){let f=n+i*l*r,p=Math.sin(f),m=Math.cos(f);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*p,u.y=e[n].y,u.z=e[n].x*m,a.push(u.x,u.y,u.z),d.x=i/t,d.y=n/(e.length-1),o.push(d.x,d.y);let r=s[3*n+0]*p,l=s[3*n+1],f=s[3*n+0]*m;c.push(r,l,f)}}for(let n=0;n<t;n++)for(let t=0;t<e.length-1;t++){let r=t+n*e.length,a=r,o=r+e.length,s=r+e.length+1,c=r+1;i.push(a,o,c),i.push(s,c,o)}this.setIndex(i),this.setAttribute(`position`,new Q(a,3)),this.setAttribute(`uv`,new Q(o,2)),this.setAttribute(`normal`,new Q(c,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.points,t.segments,t.phiStart,t.phiLength)}},rC=class e extends jx{constructor(e=1,t=0){super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],e,t),this.type=`OctahedronGeometry`,this.parameters={radius:e,detail:t}}static fromJSON(t){return new e(t.radius,t.detail)}},iC=class e extends $v{constructor(e=1,t=1,n=1,r=1){super(),this.type=`PlaneGeometry`,this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};let i=e/2,a=t/2,o=Math.floor(n),s=Math.floor(r),c=o+1,l=s+1,u=e/o,d=t/s,f=[],p=[],m=[],h=[];for(let e=0;e<l;e++){let t=e*d-a;for(let n=0;n<c;n++){let r=n*u-i;p.push(r,-t,0),m.push(0,0,1),h.push(n/o),h.push(1-e/s)}}for(let e=0;e<s;e++)for(let t=0;t<o;t++){let n=t+c*e,r=t+c*(e+1),i=t+1+c*(e+1),a=t+1+c*e;f.push(n,r,a),f.push(r,i,a)}this.setIndex(f),this.setAttribute(`position`,new Q(p,3)),this.setAttribute(`normal`,new Q(m,3)),this.setAttribute(`uv`,new Q(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.width,t.height,t.widthSegments,t.heightSegments)}},aC=class e extends $v{constructor(e=.5,t=1,n=32,r=1,i=0,a=Math.PI*2){super(),this.type=`RingGeometry`,this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:a},n=Math.max(3,n),r=Math.max(1,r);let o=[],s=[],c=[],l=[],u=e,d=(t-e)/r,f=new X,p=new Y;for(let e=0;e<=r;e++){for(let e=0;e<=n;e++){let r=i+e/n*a;f.x=u*Math.cos(r),f.y=u*Math.sin(r),s.push(f.x,f.y,f.z),c.push(0,0,1),p.x=(f.x/t+1)/2,p.y=(f.y/t+1)/2,l.push(p.x,p.y)}u+=d}for(let e=0;e<r;e++){let t=e*(n+1);for(let e=0;e<n;e++){let r=e+t,i=r,a=r+n+1,s=r+n+2,c=r+1;o.push(i,a,c),o.push(a,s,c)}}this.setIndex(o),this.setAttribute(`position`,new Q(s,3)),this.setAttribute(`normal`,new Q(c,3)),this.setAttribute(`uv`,new Q(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.innerRadius,t.outerRadius,t.thetaSegments,t.phiSegments,t.thetaStart,t.thetaLength)}},oC=class e extends $v{constructor(e=new mS([new Y(0,.5),new Y(-.5,-.5),new Y(.5,-.5)]),t=12){super(),this.type=`ShapeGeometry`,this.parameters={shapes:e,curveSegments:t};let n=[],r=[],i=[],a=[],o=0,s=0;if(Array.isArray(e)===!1)c(e);else for(let t=0;t<e.length;t++)c(e[t]),this.addGroup(o,s,t),o+=s,s=0;this.setIndex(n),this.setAttribute(`position`,new Q(r,3)),this.setAttribute(`normal`,new Q(i,3)),this.setAttribute(`uv`,new Q(a,2));function c(e){let o=r.length/3,c=e.extractPoints(t),l=c.shape,u=c.holes;YS.isClockWise(l)===!1&&(l=l.reverse());for(let e=0,t=u.length;e<t;e++){let t=u[e];YS.isClockWise(t)===!0&&(u[e]=t.reverse())}let d=YS.triangulateShape(l,u);for(let e=0,t=u.length;e<t;e++){let t=u[e];l=l.concat(t)}for(let e=0,t=l.length;e<t;e++){let t=l[e];r.push(t.x,t.y,0),i.push(0,0,1),a.push(t.x,t.y)}for(let e=0,t=d.length;e<t;e++){let t=d[e],r=t[0]+o,i=t[1]+o,a=t[2]+o;n.push(r,i,a),s+=3}}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON(),t=this.parameters.shapes;return sC(t,e)}static fromJSON(t,n){let r=[];for(let e=0,i=t.shapes.length;e<i;e++){let i=n[t.shapes[e]];r.push(i)}return new e(r,t.curveSegments)}};function sC(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,r=e.length;n<r;n++){let r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}var cC=class e extends $v{constructor(e=1,t=32,n=16,r=0,i=Math.PI*2,a=0,o=Math.PI){super(),this.type=`SphereGeometry`,this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:i,thetaStart:a,thetaLength:o},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));let s=Math.min(a+o,Math.PI),c=0,l=[],u=new X,d=new X,f=[],p=[],m=[],h=[];for(let f=0;f<=n;f++){let g=[],_=f/n,v=0;f===0&&a===0?v=.5/t:f===n&&s===Math.PI&&(v=-.5/t);for(let n=0;n<=t;n++){let s=n/t;u.x=-e*Math.cos(r+s*i)*Math.sin(a+_*o),u.y=e*Math.cos(a+_*o),u.z=e*Math.sin(r+s*i)*Math.sin(a+_*o),p.push(u.x,u.y,u.z),d.copy(u).normalize(),m.push(d.x,d.y,d.z),h.push(s+v,1-_),g.push(c++)}l.push(g)}for(let e=0;e<n;e++)for(let r=0;r<t;r++){let t=l[e][r+1],i=l[e][r],o=l[e+1][r],c=l[e+1][r+1];(e!==0||a>0)&&f.push(t,i,c),(e!==n-1||s<Math.PI)&&f.push(i,o,c)}this.setIndex(f),this.setAttribute(`position`,new Q(p,3)),this.setAttribute(`normal`,new Q(m,3)),this.setAttribute(`uv`,new Q(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}},lC=class e extends jx{constructor(e=1,t=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],e,t),this.type=`TetrahedronGeometry`,this.parameters={radius:e,detail:t}}static fromJSON(t){return new e(t.radius,t.detail)}},uC=class e extends $v{constructor(e=1,t=.4,n=12,r=48,i=Math.PI*2,a=0,o=Math.PI*2){super(),this.type=`TorusGeometry`,this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:r,arc:i,thetaStart:a,thetaLength:o},n=Math.floor(n),r=Math.floor(r);let s=[],c=[],l=[],u=[],d=new X,f=new X,p=new X;for(let s=0;s<=n;s++){let m=a+s/n*o;for(let a=0;a<=r;a++){let o=a/r*i;f.x=(e+t*Math.cos(m))*Math.cos(o),f.y=(e+t*Math.cos(m))*Math.sin(o),f.z=t*Math.sin(m),c.push(f.x,f.y,f.z),d.x=e*Math.cos(o),d.y=e*Math.sin(o),p.subVectors(f,d).normalize(),l.push(p.x,p.y,p.z),u.push(a/r),u.push(s/n)}}for(let e=1;e<=n;e++)for(let t=1;t<=r;t++){let n=(r+1)*e+t-1,i=(r+1)*(e-1)+t-1,a=(r+1)*(e-1)+t,o=(r+1)*e+t;s.push(n,i,o),s.push(i,a,o)}this.setIndex(s),this.setAttribute(`position`,new Q(c,3)),this.setAttribute(`normal`,new Q(l,3)),this.setAttribute(`uv`,new Q(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}},dC=class e extends $v{constructor(e=1,t=.4,n=64,r=8,i=2,a=3){super(),this.type=`TorusKnotGeometry`,this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:r,p:i,q:a},n=Math.floor(n),r=Math.floor(r);let o=[],s=[],c=[],l=[],u=new X,d=new X,f=new X,p=new X,m=new X,h=new X,g=new X;for(let o=0;o<=n;++o){let v=o/n*i*Math.PI*2;_(v,i,a,e,f),_(v+.01,i,a,e,p),h.subVectors(p,f),g.addVectors(p,f),m.crossVectors(h,g),g.crossVectors(m,h),m.normalize(),g.normalize();for(let e=0;e<=r;++e){let i=e/r*Math.PI*2,a=-t*Math.cos(i),p=t*Math.sin(i);u.x=f.x+(a*g.x+p*m.x),u.y=f.y+(a*g.y+p*m.y),u.z=f.z+(a*g.z+p*m.z),s.push(u.x,u.y,u.z),d.subVectors(u,f).normalize(),c.push(d.x,d.y,d.z),l.push(o/n),l.push(e/r)}}for(let e=1;e<=n;e++)for(let t=1;t<=r;t++){let n=(r+1)*(e-1)+(t-1),i=(r+1)*e+(t-1),a=(r+1)*e+t,s=(r+1)*(e-1)+t;o.push(n,i,s),o.push(i,a,s)}this.setIndex(o),this.setAttribute(`position`,new Q(s,3)),this.setAttribute(`normal`,new Q(c,3)),this.setAttribute(`uv`,new Q(l,2));function _(e,t,n,r,i){let a=Math.cos(e),o=Math.sin(e),s=n/t*e,c=Math.cos(s);i.x=r*(2+c)*.5*a,i.y=r*(2+c)*o*.5,i.z=r*Math.sin(s)*.5}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(t){return new e(t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q)}},fC=class e extends $v{constructor(e=new lS(new X(-1,-1,0),new X(-1,1,0),new X(1,1,0)),t=64,n=1,r=8,i=!1){super(),this.type=`TubeGeometry`,this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:r,closed:i};let a=e.computeFrenetFrames(t,i);this.tangents=a.tangents,this.normals=a.normals,this.binormals=a.binormals;let o=new X,s=new X,c=new Y,l=new X,u=[],d=[],f=[],p=[];m(),this.setIndex(p),this.setAttribute(`position`,new Q(u,3)),this.setAttribute(`normal`,new Q(d,3)),this.setAttribute(`uv`,new Q(f,2));function m(){for(let e=0;e<t;e++)h(e);h(i===!1?t:0),_(),g()}function h(i){l=e.getPointAt(i/t,l);let c=a.normals[i],f=a.binormals[i];for(let e=0;e<=r;e++){let t=e/r*Math.PI*2,i=Math.sin(t),a=-Math.cos(t);s.x=a*c.x+i*f.x,s.y=a*c.y+i*f.y,s.z=a*c.z+i*f.z,s.normalize(),d.push(s.x,s.y,s.z),o.x=l.x+n*s.x,o.y=l.y+n*s.y,o.z=l.z+n*s.z,u.push(o.x,o.y,o.z)}}function g(){for(let e=1;e<=t;e++)for(let t=1;t<=r;t++){let n=(r+1)*(e-1)+(t-1),i=(r+1)*e+(t-1),a=(r+1)*e+t,o=(r+1)*(e-1)+t;p.push(n,i,o),p.push(i,a,o)}}function _(){for(let e=0;e<=t;e++)for(let n=0;n<=r;n++)c.x=e/t,c.y=n/r,f.push(c.x,c.y)}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){let e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(t){return new e(new dS[t.path.type]().fromJSON(t.path),t.tubularSegments,t.radius,t.radialSegments,t.closed)}},pC=class extends $v{constructor(e=null){if(super(),this.type=`WireframeGeometry`,this.parameters={geometry:e},e!==null){let t=[],n=new Set,r=new X,i=new X;if(e.index!==null){let a=e.attributes.position,o=e.index,s=e.groups;s.length===0&&(s=[{start:0,count:o.count,materialIndex:0}]);for(let e=0,c=s.length;e<c;++e){let c=s[e],l=c.start,u=c.count;for(let e=l,s=l+u;e<s;e+=3)for(let s=0;s<3;s++){let c=o.getX(e+s),l=o.getX(e+(s+1)%3);r.fromBufferAttribute(a,c),i.fromBufferAttribute(a,l),mC(r,i,n)===!0&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}}else{let a=e.attributes.position;for(let e=0,o=a.count/3;e<o;e++)for(let o=0;o<3;o++){let s=3*e+o,c=3*e+(o+1)%3;r.fromBufferAttribute(a,s),i.fromBufferAttribute(a,c),mC(r,i,n)===!0&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}this.setAttribute(`position`,new Q(t,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}};function mC(e,t,n){let r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`,i=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`;return n.has(r)===!0||n.has(i)===!0?!1:(n.add(r),n.add(i),!0)}var hC=Object.freeze({__proto__:null,BoxGeometry:Ex,CapsuleGeometry:Dx,CircleGeometry:Ox,ConeGeometry:Ax,CylinderGeometry:kx,DodecahedronGeometry:Mx,EdgesGeometry:Lx,ExtrudeGeometry:QS,IcosahedronGeometry:tC,LatheGeometry:nC,OctahedronGeometry:rC,PlaneGeometry:iC,PolyhedronGeometry:jx,RingGeometry:aC,ShapeGeometry:oC,SphereGeometry:cC,TetrahedronGeometry:lC,TorusGeometry:uC,TorusKnotGeometry:dC,TubeGeometry:fC,WireframeGeometry:pC}),gC=class extends iy{constructor(e){super(),this.isShadowMaterial=!0,this.type=`ShadowMaterial`,this.color=new Z(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 _C(e){let t={};for(let n in e){t[n]={};for(let r in e[n]){let i=e[n][r];if(yC(i))i.isRenderTargetTexture?(q(`UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms().`),t[n][r]=null):t[n][r]=i.clone();else if(Array.isArray(i))if(yC(i[0])){let e=[];for(let t=0,n=i.length;t<n;t++)e[t]=i[t].clone();t[n][r]=e}else t[n][r]=i.slice();else t[n][r]=i}}return t}function vC(e){let t={};for(let n=0;n<e.length;n++){let r=_C(e[n]);for(let e in r)t[e]=r[e]}return t}function yC(e){return e&&(e.isColor||e.isMatrix3||e.isMatrix4||e.isVector2||e.isVector3||e.isVector4||e.isTexture||e.isQuaternion)}function bC(e){let t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}function xC(e){let t=e.getRenderTarget();return t===null?e.outputColorSpace:t.isXRRenderTarget===!0?t.texture.colorSpace:qg.workingColorSpace}var SC={clone:_C,merge:vC},CC=`void main() {
20	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
21}`,wC=`void main() {
22	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
23}`,TC=class extends iy{constructor(e){super(),this.isShaderMaterial=!0,this.type=`ShaderMaterial`,this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=CC,this.fragmentShader=wC,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=_C(e.uniforms),this.uniformsGroups=bC(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){let t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(let n in this.uniforms){let r=this.uniforms[n].value;r&&r.isTexture?t.uniforms[n]={type:`t`,value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[n]={type:`c`,value:r.getHex()}:r&&r.isVector2?t.uniforms[n]={type:`v2`,value:r.toArray()}:r&&r.isVector3?t.uniforms[n]={type:`v3`,value:r.toArray()}:r&&r.isVector4?t.uniforms[n]={type:`v4`,value:r.toArray()}:r&&r.isMatrix3?t.uniforms[n]={type:`m3`,value:r.toArray()}:r&&r.isMatrix4?t.uniforms[n]={type:`m4`,value:r.toArray()}:t.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},EC=class extends TC{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawS
23haderMaterial`}},DC=class extends iy{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new Z(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 Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(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 x_,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}},OC=class extends DC{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 Y(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,`reflectivity`,{get:function(){return _g(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Z(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 Z(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Z(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}},kC=class extends iy{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Z(16777215),this.specular=new Z(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new x_,this.combine=0,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}},AC=class extends iy{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:``},this.type=`MeshToonMaterial`,this.color=new Z(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(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}},jC=class extends iy{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type=`MeshNormalMaterial`,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(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}},MC=class extends iy{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new Z(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new x_,this.combine=0,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}},NC=class extends iy{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=yh,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}},PC=class extends iy{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}}
vendor: 3,754 bytes, line 23
23,FC=class extends iy{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:``},this.type=`MeshMatcapMaterial`,this.color=new Z(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Y(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}},IC=class extends qb{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}};function LC(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function RC(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function zC(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function BC(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0)if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}function VC(e,t,n,r,i=30){let a=e.clone();a.name=t;let o=[];for(let e=0;e<a.tracks.length;++e){let t=a.tracks[e],s=t.getValueSize(),c=[],l=[];for(let e=0;e<t.times.length;++e){let a=t.times[e]*i;if(!(a<n||a>=r)){c.push(t.times[e]);for(let n=0;n<s;++n)l.push(t.values[e*s+n])}}c.length!==0&&(t.times=LC(c,t.times.constructor),t.values=LC(l,t.values.constructor),o.push(t))}a.tracks=o;let s=1/0;for(let e=0;e<a.tracks.length;++e)s>a.tracks[e].times[0]&&(s=a.tracks[e].times[0]);for(let e=0;e<a.tracks.length;++e)a.tracks[e].shift(-1*s);return a.resetDuration(),a}function HC(e,t=0,n=e,r=30){r<=0&&(r=30);let i=n.tracks.length,a=t/r;for(let t=0;t<i;++t){let r=n.tracks[t],i=r.ValueTypeName;if(i===`bool`||i===`string`)continue;let o=e.tracks.find(function(e){return e.name===r.name&&e.ValueTypeName===i});if(o===void 0)continue;let s=0,c=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=c/3);let l=0,u=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=u/3);let d=r.times.length-1,f;if(a<=r.times[0]){let e=s,t=c-s;f=r.values.slice(e,t)}else if(a>=r.times[d]){let e=d*c+s,t=e+c-s;f=r.values.slice(e,t)}else{let e=r.createInterpolant(),t=s,n=c-s;e.evaluate(a),f=e.resultBuffer.slice(t,n)}i===`quaternion`&&new zg().fromArray(f).normalize().conjugate().toArray(f);let p=o.times.length;for(let e=0;e<p;++e){let t=e*u+l;if(i===`quaternion`)zg.multiplyQuaternionsFlat(o.values,t,f,0,o.values,t);else{let e=u-l*2;for(let n=0;n<e;++n)o.values[t+n]-=f[n]}}}return e.blendMode=vh,e}var UC=class{static convertArray(e,t){return LC(e,t)}static isTypedArray(e){return $h(e)}static getKeyframeOrder(e){return RC(e)}
vendor: 7,985 bytes, line 23
23static sortedArray(e,t,n){return zC(e,t,n)}static flattenJSON(e,t,n,r){BC(e,t,n,r)}static subclip(e,t,n,r,i=30){return VC(e,t,n,r,i)}static makeClipAdditive(e,t=0,n=e,r=30){return HC(e,t,n,r)}},WC=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e<r)){for(let a=n+2;;){if(r===void 0){if(e<i)break forward_scan;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(i=r,r=t[++n],e<r)break seek}a=t.length;break linear_scan}if(!(e>=i)){let o=t[1];e<o&&(n=2,i=o);for(let a=n-2;;){if(i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n<a;){let r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw Error(`call to abstract method`)}intervalChanged_(){}},GC=class extends WC{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:mh,endingEnd:mh}}intervalChanged_(e,t,n){let r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(o===void 0)switch(this.getSettings_().endingStart){case hh:i=e,o=2*t-n;break;case gh:i=r.length-2,o=t+r[i]-r[i+1];break;default:i=e,o=n}if(s===void 0)switch(this.getSettings_().endingEnd){case hh:a=e,s=2*n-t;break;case gh:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}let c=(n-t)*.5,l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,f=this._weightNext,p=(n-t)/(r-t),m=p*p,h=m*p,g=-d*h+2*d*m-d*p,_=(1+d)*h+(-1.5-2*d)*m+(-.5+d)*p+1,v=(-1-f)*h+(1.5+f)*m+.5*p,y=f*h-f*m;for(let e=0;e!==o;++e)i[e]=g*a[l+e]+_*a[c+e]+v*a[s+e]+y*a[u+e];return i}},KC=class extends WC{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}},qC=class extends WC{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}},JC=class extends WC{interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this.settings||this.DefaultSettings_,u=l.inTangents,d=l.outTangents;if(!u||!d){let e=(n-t)/(r-t),l=1-e;for(let t=0;t!==o;++t)i[t]=a[c+t]*l+a[s+t]*e;return i}let f=o*2,p=e-1;for(let l=0;l!==o;++l){let o=a[c+l],m=a[s+l],h=p*f+l*2,g=d[h],_=d[h+1],v=e*f+l*2,y=u[v],b=u[v+1],x=(n-t)/(r-t),S,C,w,T,E;for(let e=0;e<8;e++){S=x*x,C=S*x,w=1-x,T=w*w,E=T*w;let e=E*t+3*T*x*g+3*w*S*y+C*r-n;if(Math.abs(e)<1e-10)break;let i=3*T*(g-t)+6*w*x*(y-g)+3*S*(r-y);if(Math.abs(i)<1e-10)break;x-=e/i,x=Math.max(0,Math.min(1,x))}i[l]=E*o+3*T*x*_+3*w*S*b+C*m}return i}},YC=class{constructor(e,t,n,r){if(e===void 0)throw Error(`THREE.KeyframeTrack: track name is undefined`);if(t===void 0||t.length===0)throw Error(`THREE.KeyframeTrack: no keyframes in track named `+e);this.name=e,this.times=LC(t,this.TimeBufferType),this.values=LC(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){let t=e.constructor,n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:LC(e.times,Array),values:LC(e.values,Array)};let t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new qC(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new KC(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new GC(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodBezier(e){let t=new JC(this.times,this.values,this.getValueSize(),e);return this.settings&&(t.settings=this.settings),t}setInterpolation(e){let t;switch(e){case uh:t=this.InterpolantFactoryMethodDiscrete;break;case dh:t=this.InterpolantFactoryMethodLinear;break;case fh:t=this.InterpolantFactoryMethodSmooth;break;case ph:t=this.InterpolantFactoryMethodBezier;break}if(t===void 0){let t=`unsupported interpolation for `+this.ValueTypeName+` keyframe track named `+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t);return q(`KeyframeTrack:`,t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return uh;case this.InterpolantFactoryMethodLinear:return dh;case this.InterpolantFactoryMethodSmooth:return fh;case this.InterpolantFactoryMethodBezier:return ph}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(e!==1){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){let n=this.times,r=n.length,i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;a!==-1&&n[a]>t;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(J(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(J(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){J(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){J(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&$h(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){J(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===fh,i=e.length-1,a=1;for(let o=1;o<i;++o){let i=!1,s=e[o];if(s!==e[o+1]&&(o!==1||s!==e[0]))if(r)i=!0;else{let e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){let n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}if(i){if(o!==a){e[a]=e[o];let r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};YC.prototype.ValueTypeName=``,YC.prototype.TimeBufferType=Float32Array,YC.prototype.ValueBufferType=Float32Array,YC.prototype.DefaultInterpolation=dh;var XC=class extends YC{constructor(e,t,n){super(e,t,n)}};XC.prototype.ValueTypeName=`bool`,XC.prototype.ValueBufferType=Array,XC.prototype.DefaultInterpolation=uh,XC.prototype.InterpolantFactoryMethodLinear=void 0,XC.prototype.InterpolantFactoryMethodSmooth=void 0;var ZC=class extends YC{constructor(e,t,n,r){super(e,t,n,r)}};ZC.prototype.ValueTypeName=`color`;var QC=class extends YC{constructor(e,t,n,r){super(e,t,n,r)}};QC.prototype.ValueTypeName=`number`;var $C=class extends WC{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;
vendor: 6,335 bytes, line 23
23c+=4)zg.slerpFlat(i,0,a,c-o,a,c,s);return i}},ew=class extends YC{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new $C(this.times,this.values,this.getValueSize(),e)}};ew.prototype.ValueTypeName=`quaternion`,ew.prototype.InterpolantFactoryMethodSmooth=void 0;var tw=class extends YC{constructor(e,t,n){super(e,t,n)}};tw.prototype.ValueTypeName=`string`,tw.prototype.ValueBufferType=Array,tw.prototype.DefaultInterpolation=uh,tw.prototype.InterpolantFactoryMethodLinear=void 0,tw.prototype.InterpolantFactoryMethodSmooth=void 0;var nw=class extends YC{constructor(e,t,n,r){super(e,t,n,r)}};nw.prototype.ValueTypeName=`vector`;var rw=class{constructor(e=``,t=-1,n=[],r=_h){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=gg(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(aw(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(YC.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e<i;e++){let o=[],s=[];o.push((e+i-1)%i,e,(e+1)%i),s.push(0,1,0);let c=RC(o);o=zC(o,1,c),s=zC(s,1,c),!r&&o[0]===0&&(o.push(i),s.push(s[0])),a.push(new QC(`.morphTargetInfluences[`+t[e].name+`]`,o,s).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){let t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let e=0;e<n.length;e++)if(n[e].name===t)return n[e];return null}static CreateClipsFromMorphTargetSequences(e,t,n){let r={},i=/^([\w-]*?)([\d]+)$/;for(let t=0,n=e.length;t<n;t++){let n=e[t],a=n.name.match(i);if(a&&a.length>1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}static parseAnimation(e,t){if(q(`AnimationClip: parseAnimation() is deprecated and will be removed with r185`),!e)return J(`AnimationClip: No animation in JSONLoader data.`),null;let n=function(e,t,n,r,i){if(n.length!==0){let a=[],o=[];BC(n,a,o,r),a.length!==0&&i.push(new e(t,a,o))}},r=[],i=e.name||`default`,a=e.fps||30,o=e.blendMode,s=e.length||-1,c=e.hierarchy||[];for(let e=0;e<c.length;e++){let i=c[e].keys;if(!(!i||i.length===0))if(i[0].morphTargets){let e={},t;for(t=0;t<i.length;t++)if(i[t].morphTargets)for(let n=0;n<i[t].morphTargets.length;n++)e[i[t].morphTargets[n]]=-1;for(let n in e){let e=[],a=[];for(let r=0;r!==i[t].morphTargets.length;++r){let r=i[t];e.push(r.time),a.push(+(r.morphTarget===n))}r.push(new QC(`.morphTargetInfluence[`+n+`]`,e,a))}s=e.length*a}else{let a=`.bones[`+t[e].name+`]`;n(nw,a+`.position`,i,`pos`,r),n(ew,a+`.quaternion`,i,`rot`,r),n(nw,a+`.scale`,i,`scl`,r)}}return r.length===0?null:new this(i,s,r,o)}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e&&=this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){let e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());let t=new this.constructor(this.name,this.duration,e,this.blendMode);return t.userData=JSON.parse(JSON.stringify(this.userData)),t}toJSON(){return this.constructor.toJSON(this)}};function iw(e){switch(e.toLowerCase()){case`scalar`:case`double`:case`float`:case`number`:case`integer`:return QC;case`vector`:case`vector2`:case`vector3`:case`vector4`:return nw;case`color`:return ZC;case`quaternion`:return ew;case`bool`:case`boolean`:return XC;case`string`:return tw}throw Error(`THREE.KeyframeTrack: Unsupported typeName: `+e)}function aw(e){if(e.type===void 0)throw Error(`THREE.KeyframeTrack: track type undefined, can not parse`);let t=iw(e.type);if(e.times===void 0){let t=[],n=[];BC(e.keys,t,n,`value`),e.times=t,e.values=n}return t.parse===void 0?new t(e.name,e.times,e.values,e.interpolation):t.parse(e)}var ow={enabled:!1,files:{},add:function(e,t){this.enabled!==!1&&(sw(e)||(this.files[e]=t))},get:function(e){if(this.enabled!==!1&&!sw(e))return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function sw(e){try{let t=e.slice(e.indexOf(`:`)+1);return new URL(t).protocol===`blob:`}catch{return!1}}var cw=class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){let n=c[t],r=c[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||=new AbortController,this._abortController}},lw=new cw,uw=class{constructor(e){this.manager=e===void 0?lw:e,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,t){let n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}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}};uw.DEFAULT_MATERIAL_NAME=`__DEFAULT`;var dw={}
vendor: 5,003 bytes, line 23
23,fw=class extends Error{constructor(e,t){super(e),this.response=t}},pw=class extends uw{constructor(e){super(e),this.mimeType=``,this.responseType=``,this._abortController=new AbortController}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=ow.get(`file:${e}`);if(i!==void 0){this.manager.itemStart(e),setTimeout(()=>{t&&t(i),this.manager.itemEnd(e)},0);return}if(dw[e]!==void 0){dw[e].push({onLoad:t,onProgress:n,onError:r});return}dw[e]=[],dw[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&q(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=dw[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e<t;e++){let t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(i),t()}},t=>{e.error(t)})}}});return new Response(c)}else throw new fw(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{ow.add(`file:${e}`,t);let n=dw[e];delete dw[e];for(let e=0,r=n.length;e<r;e++){let r=n[e];r.onLoad&&r.onLoad(t)}}).catch(t=>{let n=dw[e];if(n===void 0)throw this.manager.itemError(e),t;delete dw[e];for(let e=0,r=n.length;e<r;e++){let r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},mw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new pw(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):J(t),i.manager.itemError(e)}},n,r)}parse(e){let t=[];for(let n=0;n<e.length;n++){let r=rw.parse(e[n]);t.push(r)}return t}},hw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=[],o=new _x,s=new pw(this.manager);s.setPath(this.path),s.setResponseType(`arraybuffer`),s.setRequestHeader(this.requestHeader),s.setWithCredentials(i.withCredentials);let c=0;function l(l){s.load(e[l],function(e){let n=i.parse(e,!0);a[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},c+=1,c===6&&(n.mipmapCount===1&&(o.minFilter=Xp),o.image=a,o.format=n.format,o.needsUpdate=!0,t&&t(o))},n,r)}if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)l(t);else s.load(e,function(e){let n=i.parse(e,!0);if(n.isCubemap){let e=n.mipmaps.length/n.mipmapCount;for(let t=0;t<e;t++){a[t]={mipmaps:[]};for(let e=0;e<n.mipmapCount;e++)a[t].mipmaps.push(n.mipmaps[t*n.mipmapCount+e]),a[t].format=n.format,a[t].width=n.width,a[t].height=n.height}o.image=a}else o.image.width=n.width,o.image.height=n.height,o.mipmaps=n.mipmaps;n.mipmapCount===1&&(o.minFilter=Xp),o.format=n.format,o.needsUpdate=!0,t&&t(o)},n,r);return o}},gw=new WeakMap,_w=class extends uw{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=ow.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=gw.get(a);e===void 0&&(e=[],gw.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=eg(`img`);function s(){l(),t&&t(this);let n=gw.get(this)||[];for(let e=0;e<n.length;e++){let t=n[e];t.onLoad&&t.onLoad(this)}gw.delete(this),i.manager.itemEnd(e)}function c(t){l(),r&&r(t),ow.remove(`image:${e}`);let n=gw.get(this)||[];for(let e=0;e<n.length;e++){let r=n[e];r.onError&&r.onError(t)}gw.delete(this),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){o.removeEventListener(`load`,s,!1),o.removeEventListener(`error`,c,!1)}return o.addEventListener(`load`,s,!1),o.addEventListener(`error`,c,!1),e.slice(0,5)!==`data:`&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),ow.add(`image:${e}`,o),i.manager.itemStart(e),o.src=e,o}},vw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=new bx;
23i.colorSpace=Ch;let a=new _w(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);let o=0;function s(n){a.load(e[n],function(e){i.images[n]=e,o++,o===6&&(i.needsUpdate=!0,t&&t(i))},void 0,r)}for(let t=0;t<e.length;++t)s(t);return i}},yw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new ib,o=new pw(this.manager);return o.setResponseType(`arraybuffer`),o.setRequestHeader(this.requestHeader),o.setPath(this.path),o.setWithCredentials(i.withCredentials),o.load(e,function(e){let n;try{n=i.parse(e)}catch(e){r===void 0?J(e):r(e);return}n.image===void 0?n.data!==void 0&&(a.image.width=n.width,a.image.height=n.height,a.image.data=n.data):a.image=n.image,a.wrapS=n.wrapS===void 0?Up:n.wrapS,a.wrapT=n.wrapT===void 0?Up:n.wrapT,a.magFilter=n.magFilter===void 0?Xp:n.magFilter,a.minFilter=n.minFilter===void 0?Xp:n.minFilter,a.anisotropy=n.anisotropy===void 0?1:n.anisotropy,n.colorSpace!==void 0&&(a.colorSpace=n.colorSpace),n.flipY!==void 0&&(a.flipY=n.flipY),n.format!==void 0&&(a.format=n.format),n.type!==void 0&&(a.type=n.type),n.mipmaps!==void 0&&(a.mipmaps=n.mipmaps,a.minFilter=$p),n.mipmapCount===1&&(a.minFilter=Xp),n.generateMipmaps!==void 0&&(a.generateMipmaps=n.generateMipmaps),a.needsUpdate=!0,t&&t(a,n)},n,r),a}},bw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=new r_,a=new _w(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(e){i.image=e,i.needsUpdate=!0,t!==void 0&&t(i)},n,r),i}},xw=class extends R_{constructor(e,t=1){super(),this.isLight=!0,this.type=`Light`,this.color=new Z(e),this.intensity=t}dispose(){this.dispatchEvent({type:`dispose`})}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){let t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,t}},Sw=class extends xw{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type=`HemisphereLight`,this.position.copy(R_.DEFAULT_UP),this.updateMatrix(),this.groundColor=new Z(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}toJSON(e){let t=super.toJSON(e);return t.object.groundColor=this.groundColor.getHex(),t}},Cw=new d_,ww=new X,Tw=new X,Ew=class{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 Y(512,512),this.mapType=tm,this.map=null,this.mapPass=null,this.matrix=new d_,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new wb,this._frameExtents=new Y(1,1),this._viewportCount=1,this._viewports=[new i_(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){let t=this.camera,n=this.matrix;ww.setFromMatrixPosition(e.matrixWorld),t.position.copy(ww),Tw.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Tw),t.updateMatrixWorld(),Cw.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Cw,t.coordinateSystem,t.reversedDepth),t.coordinateSystem===2001||t.reversedDepth?n.set(.5,0,0,.5,0,.5,0,.5,0,0,1,0,0,0,0,1):n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Cw)}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(){let 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}},Dw=new X,Ow=new zg,kw=new X,Aw=class extends R_{constructor(){super(),this.isCamera=!0,this.type=`Camera`,this.matrixWorldInverse=new d_,this.projectionMatrix=new d_,this.projectionMatrixInverse=new d_,this.coordinateSystem=Wh,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),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(Dw,Ow,kw),kw.x===1&&kw.y===1&&kw.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Dw,Ow,kw.set(1,1,1)).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorld.decompose(Dw,Ow,kw),kw.x===1&&kw.y===1&&kw.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Dw,Ow,kw.set(1,1,1)).invert()}clone(){return new this.constructor().copy(this)}},jw=new X,Mw=new Y,Nw=new Y,Pw=class extends Aw{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type=`PerspectiveCamera`,this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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){let t=.5*this.getFilmHeight()/e;this.fov=hg*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(mg*.5*this.fov);return .5*this.getFilmHeight()/e}
vendor: 4,950 bytes, line 23
23getEffectiveFOV(){return hg*2*Math.atan(Math.tan(mg*.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,t,n){jw.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(jw.x,jw.y).multiplyScalar(-e/jw.z),jw.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(jw.x,jw.y).multiplyScalar(-e/jw.z)}getViewSize(e,t){return this.getViewBounds(e,Mw,Nw),t.subVectors(Nw,Mw)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,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=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(mg*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(this.view!==null&&this.view.enabled){let e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}let o=this.filmOffset;o!==0&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},Fw=class extends Ew{constructor(){super(new Pw(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1,this.aspect=1}updateMatrices(e){let t=this.camera,n=hg*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height*this.aspect,i=e.distance||t.far;(n!==t.fov||r!==t.aspect||i!==t.far)&&(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}},Iw=class extends xw{constructor(e,t,n=0,r=Math.PI/3,i=0,a=2){super(e,t),this.isSpotLight=!0,this.type=`SpotLight`,this.position.copy(R_.DEFAULT_UP),this.updateMatrix(),this.target=new R_,this.distance=n,this.angle=r,this.penumbra=i,this.decay=a,this.map=null,this.shadow=new Fw}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){super.dispose(),this.shadow.dispose()}copy(e,t){return super.copy(e,t),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){let t=super.toJSON(e);return t.object.distance=this.distance,t.object.angle=this.angle,t.object.decay=this.decay,t.object.penumbra=this.penumbra,t.object.target=this.target.uuid,this.map&&this.map.isTexture&&(t.object.map=this.map.toJSON(e).uuid),t.object.shadow=this.shadow.toJSON(),t}},Lw=class extends Ew{constructor(){super(new Pw(90,1,.5,500)),this.isPointLightShadow=!0}},Rw=class extends xw{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type=`PointLight`,this.distance=n,this.decay=r,this.shadow=new Lw}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,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}toJSON(e){let t=super.toJSON(e);return t.object.distance=this.distance,t.object.decay=this.decay,t.object.shadow=this.shadow.toJSON(),t}},zw=class extends Aw{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type=`OrthographicCamera`,this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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,t,n,r,i,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(this.view!==null&&this.view.enabled){let e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,o-=t*this.view.offsetY,s=o-t*this.view.height}
vendor: 27,246 bytes, line 23
23this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}},Bw=class extends Ew{constructor(){super(new zw(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}},Vw=class extends xw{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type=`DirectionalLight`,this.position.copy(R_.DEFAULT_UP),this.updateMatrix(),this.target=new R_,this.shadow=new Bw}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){let t=super.toJSON(e);return t.object.shadow=this.shadow.toJSON(),t.object.target=this.target.uuid,t}},Hw=class extends xw{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type=`AmbientLight`}},Uw=class extends xw{constructor(e,t,n=10,r=10){super(e,t),this.isRectAreaLight=!0,this.type=`RectAreaLight`,this.width=n,this.height=r}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){let t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}},Ww=class{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new X)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){let n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}getIrradianceAt(e,t){let n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],2*.511664*r),t.addScaledVector(a[2],2*.511664*i),t.addScaledVector(a[3],2*.511664*n),t.addScaledVector(a[4],2*.429043*n*r),t.addScaledVector(a[5],2*.429043*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],2*.429043*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(e,t=0){let n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(e,t+r*3);return this}toArray(e=[],t=0){let n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(e,t+r*3);return e}static getBasisAt(e,t){let n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}},Gw=class extends xw{constructor(e=new Ww,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}toJSON(e){let t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}},Kw=class e extends uw{constructor(e){super(e),this.textures={}}load(e,t,n,r){let i=this,a=new pw(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):J(t),i.manager.itemError(e)}},n,r)}parse(e){let t=this.textures;function n(e){return t[e]===void 0&&q(`MaterialLoader: Undefined texture`,e),t[e]}let r=this.createMaterialFromType(e.type);if(e.uuid!==void 0&&(r.uuid=e.uuid),e.name!==void 0&&(r.name=e.name),e.color!==void 0&&r.color!==void 0&&r.color.setHex(e.color),e.roughness!==void 0&&(r.roughness=e.roughness),e.metalness!==void 0&&(r.metalness=e.metalness),e.sheen!==void 0&&(r.sheen=e.sheen),e.sheenColor!==void 0&&(r.sheenColor=new Z().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(r.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&r.emissive!==void 0&&r.emissive.setHex(e.emissive),e.specular!==void 0&&r.specular!==void 0&&r.specular.setHex(e.specular),e.specularIntensity!==void 0&&(r.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&r.specularColor!==void 0&&r.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(r.shininess=e.shininess),e.clearcoat!==void 0&&(r.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(r.dispersion=e.dispersion),e.iridescence!==void 0&&(r.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(r.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(r.transmission=e.transmission),e.thickness!==void 0&&(r.thickness=e.thickness),e.attenuationDistance!==void 0&&(r.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&r.attenuationColor!==void 0&&r.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(r.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(r.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(r.fog=e.fog),e.flatShading!==void 0&&(r.flatShading=e.flatShading),e.blending!==void 0&&(r.blending=e.blending),e.combine!==void 0&&(r.combine=e.combine),e.side!==void 0&&(r.side=e.side),e.shadowSide!==void 0&&(r.shadowSide=e.shadowSide),e.opacity!==void 0&&(r.opacity=e.opacity),e.transparent!==void 0&&(r.transparent=e.transparent),e.alphaTest!==void 0&&(r.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(r.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(r.depthFunc=e.depthFunc),e.depthTest!==void 0&&(r.depthTest=e.depthTest),e.depthWrite!==void 0&&(r.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(r.colorWrite=e.colorWrite),e.blendSrc!==void 0&&(r.blendSrc=e.blendSrc),e.blendDst!==void 0&&(r.blendDst=e.blendDst),e.blendEquation!==void 0&&(r.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(r.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(r.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(r.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&r.blendColor!==void 0&&r.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(r.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(r.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(r.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(r.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(r.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(r.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(r.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(r.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(r.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(r.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(r.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(r.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(r.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(r.rotation=e.rotation),e.linewidth!==void 0&&(r.linewidth=e.linewidth),e.dashSize!==void 0&&(r.dashSize=e.dashSize),e.gapSize!==void 0&&(r.gapSize=e.gapSize),e.scale!==void 0&&(r.scale=e.scale),e.polygonOffset!==void 0&&(r.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(r.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(r.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(r.dithering=e.dithering),e.alphaToCoverage!==void 0&&(r.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(r.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(r.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(r.allowOverride=e.allowOverride),e.visible!==void 0&&(r.visible=e.visible),e.toneMapped!==void 0&&(r.toneMapped=e.toneMapped),e.userData!==void 0&&(r.userData=e.userData),e.vertexColors!==void 0&&(typeof e.vertexColors==`number`?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),e.uniforms!==void 0)for(let t in e.uniforms){let i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case`t`:r.uniforms[t].value=n(i.value);break;case`c`:r.uniforms[t].value=new Z().setHex(i.value);break;case`v2`:r.uniforms[t].value=new Y().fromArray(i.value);break;case`v3`:r.uniforms[t].value=new X().fromArray(i.value);break;case`v4`:r.uniforms[t].value=new i_().fromArray(i.value);break;case`m3`:r.uniforms[t].value=new Hg().fromArray(i.value);break;case`m4`:r.uniforms[t].value=new d_().fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(e.defines!==void 0&&(r.defines=e.defines),e.vertexShader!==void 0&&(r.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(r.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(r.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)r.extensions[t]=e.extensions[t];if(e.lights!==void 0&&(r.lights=e.lights),e.clipping!==void 0&&(r.clipping=e.clipping),e.size!==void 0&&(r.size=e.size),e.sizeAttenuation!==void 0&&(r.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(r.map=n(e.map)),e.matcap!==void 0&&(r.matcap=n(e.matcap)),e.alphaMap!==void 0&&(r.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(r.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(r.bumpScale=e.bumpScale),e.normalMap!==void 0&&(r.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(r.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),r.normalScale=new Y().fromArray(t)}return e.displacementMap!==void 0&&(r.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(r.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(r.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(r.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(r.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(r.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(r.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(r.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(r.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(r.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(r.envMap=n(e.envMap)),e.envMapRotation!==void 0&&r.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(r.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(r.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(r.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(r.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(r.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(r.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(r.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(r.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(r.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(r.clearcoatNormalScale=new Y().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(r.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(r.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(r.thicknessMap=n(e.thicknessMap)),e.anisotropyMap!==void 0&&(r.anisotropyMap=n(e.anisotropyMap)),e.sheenColorMap!==void 0&&(r.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}createMaterialFromType(t){return e.createMaterialFromType(t)}static createMaterialFromType(e){return new{ShadowMaterial:gC,SpriteMaterial:ay,RawShaderMaterial:EC,ShaderMaterial:TC,PointsMaterial:sx,MeshPhysicalMaterial:OC,MeshStandardMaterial:DC,MeshPhongMaterial:kC,MeshToonMaterial:AC,MeshNormalMaterial:jC,MeshLambertMaterial:MC,MeshDepthMaterial:NC,MeshDistanceMaterial:PC,MeshBasicMaterial:My,MeshMatcapMaterial:FC,LineDashedMaterial:IC,LineBasicMaterial:qb,Material:iy}[e]}},qw=class{static extractUrlBase(e){let t=e.lastIndexOf(`/`);return t===-1?`./`:e.slice(0,t+1)}static resolveURL(e,t){return typeof e!=`string`||e===``?``:(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}},Jw=class extends $v{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type=`InstancedBufferGeometry`,this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){let e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}},Yw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new pw(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):J(t),i.manager.itemError(e)}},n,r)}parse(e){let t={},n={};function r(e,n){if(t[n]!==void 0)return t[n];let r=e.interleavedBuffers[n],a=i(e,r.buffer),o=new ey(Qh(r.type,a),r.stride);return o.uuid=r.uuid,t[n]=o,o}function i(e,t){if(n[t]!==void 0)return n[t];let r=e.arrayBuffers[t],i=new Uint32Array(r).buffer;return n[t]=i,i}let a=e.isInstancedBufferGeometry?new Jw:new $v,o=e.data.index;if(o!==void 0){let e=Qh(o.type,o.array);a.setIndex(new Nv(e,1))}let s=e.data.attributes;for(let t in s){let n=s[t],i;if(n.isInterleavedBufferAttribute)i=new ny(r(e.data,n.data),n.itemSize,n.offset,n.normalized);else{let e=Qh(n.type,n.array);i=new(n.isInstancedBufferAttribute?cb:Nv)(e,n.itemSize,n.normalized)}n.name!==void 0&&(i.name=n.name),n.usage!==void 0&&i.setUsage(n.usage),a.setAttribute(t,i)}let c=e.data.morphAttributes;if(c)for(let t in c){let n=c[t],i=[];for(let t=0,a=n.length;t<a;t++){let a=n[t],o;o=a.isInterleavedBufferAttribute?new ny(r(e.data,a.data),a.itemSize,a.offset,a.normalized):new Nv(Qh(a.type,a.array),a.itemSize,a.normalized),a.name!==void 0&&(o.name=a.name),i.push(o)}a.morphAttributes[t]=i}e.data.morphTargetsRelative&&(a.morphTargetsRelative=!0);let l=e.data.groups||e.data.drawcalls||e.data.offsets;if(l!==void 0)for(let e=0,t=l.length;e!==t;++e){let t=l[e];a.addGroup(t.start,t.count,t.materialIndex)}let u=e.data.boundingSphere;return u!==void 0&&(a.boundingSphere=new Gv().fromJSON(u)),e.name&&(a.name=e.name),e.userData&&(a.userData=e.userData),a}},Xw={},Zw=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=this.path===``?qw.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;let o=new pw(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(n){let a=null;try{a=JSON.parse(n)}catch(t){r!==void 0&&r(t),J(`ObjectLoader: Can't parse `+e+`.`,t.message);return}let o=a.metadata;if(o===void 0||o.type===void 0||o.type.toLowerCase()===`geometry`){r!==void 0&&r(Error(`THREE.ObjectLoader: Can't load `+e)),J(`ObjectLoader: Can't load `+e);return}i.parse(a,t)},n,r)}async loadAsync(e,t){let n=this,r=this.path===``?qw.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||r;let i=new pw(this.manager);i.setPath(this.path),i.setRequestHeader(this.requestHeader),i.setWithCredentials(this.withCredentials);let a=await i.loadAsync(e,t),o;try{o=JSON.parse(a)}catch(t){throw Error(`ObjectLoader: Can't parse `+e+`. `+t.message)}let s=o.metadata;if(s===void 0||s.type===void 0||s.type.toLowerCase()===`geometry`)throw Error(`THREE.ObjectLoader: Can't load `+e);return await n.parseAsync(o)}parse(e,t){let n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),i=this.parseGeometries(e.geometries,r),a=this.parseImages(e.images,function(){t!==void 0&&t(c)}),o=this.parseTextures(e.textures,a),s=this.parseMaterials(e.materials,o),c=this.parseObject(e.object,i,s,o,n),l=this.parseSkeletons(e.skeletons,c);if(this.bindSkeletons(c,l),this.bindLightTargets(c),t!==void 0){let e=!1;for(let t in a)if(a[t].data instanceof HTMLImageElement){e=!0;break}e===!1&&t(c)}return c}async parseAsync(e){let t=this.parseAnimations(e.animations),n=this.parseShapes(e.shapes),r=this.parseGeometries(e.geometries,n),i=await this.parseImagesAsync(e.images),a=this.parseTextures(e.textures,i),o=this.parseMaterials(e.materials,a),s=this.parseObject(e.object,r,o,a,t),c=this.parseSkeletons(e.skeletons,s);return this.bindSkeletons(s,c),this.bindLightTargets(s),s}static registerGeometry(e,t){Xw[e]=t}parseShapes(e){let t={};if(e!==void 0)for(let n=0,r=e.length;n<r;n++){let r=new mS().fromJSON(e[n]);t[r.uuid]=r}return t}parseSkeletons(e,t){let n={},r={};if(t.traverse(function(e){e.isBone&&(r[e.uuid]=e)}),e!==void 0)for(let t=0,i=e.length;t<i;t++){let i=new sb().fromJSON(e[t],r);n[i.uuid]=i}return n}parseGeometries(e,t){let n={};if(e!==void 0){let r=new Yw;for(let i=0,a=e.length;i<a;i++){let a,o=e[i];switch(o.type){case`BufferGeometry`:case`InstancedBufferGeometry`:a=r.parse(o);break;default:o.type in hC?a=hC[o.type].fromJSON(o,t):o.type in Xw?a=Xw[o.type].fromJSON(o,t):q(`ObjectLoader: Unknown geometry type "${o.type}". Use .registerGeometry() before starting the deserialization process.`)}a.uuid=o.uuid,o.name!==void 0&&(a.name=o.name),o.userData!==void 0&&(a.userData=o.userData),n[o.uuid]=a}}return n}parseMaterials(e,t){let n={},r={};if(e!==void 0){let i=new Kw;i.setTextures(t);for(let t=0,a=e.length;t<a;t++){let a=e[t];n[a.uuid]===void 0&&(n[a.uuid]=i.parse(a)),r[a.uuid]=n[a.uuid]}}return r}parseAnimations(e){let t={};if(e!==void 0)for(let n=0;n<e.length;n++){let r=e[n],i=rw.parse(r);t[i.uuid]=i}return t}parseImages(e,t){let n=this,r={},i;function a(e){return n.manager.itemStart(e),i.load(e,function(){n.manager.itemEnd(e)},void 0,function(){n.manager.itemError(e),n.manager.itemEnd(e)})}function o(e){if(typeof e==`string`){let t=e;return a(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(t)?t:n.resourcePath+t)}else if(e.data)return{data:Qh(e.type,e.data),width:e.width,height:e.height};else return null}if(e!==void 0&&e.length>0){i=new _w(new cw(t)),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t<n;t++){let n=e[t],i=n.url;if(Array.isArray(i)){let e=[];for(let t=0,n=i.length;t<n;t++){let n=i[t],r=o(n);r!==null&&(r instanceof HTMLImageElement?e.push(r):e.push(new ib(r.data,r.width,r.height)))}r[n.uuid]=new $g(e)}else{let e=o(n.url);r[n.uuid]=new $g(e)}}}return r}async parseImagesAsync(e){let t=this,n={},r;async function i(e){if(typeof e==`string`){let n=e,i=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(n)?n:t.resourcePath+n;return await r.loadAsync(i)}else if(e.data)return{data:Qh(e.type,e.data),width:e.width,height:e.height};else return null}if(e!==void 0&&e.length>0){r=new _w(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t<r;t++){let r=e[t],a=r.url;if(Array.isArray(a)){let e=[];for(let t=0,n=a.length;t<n;t++){let n=a[t],r=await i(n);r!==null&&(r instanceof HTMLImageElement?e.push(r):e.push(new ib(r.data,r.width,r.height)))}n[r.uuid]=new $g(e)}else{let e=await i(r.url);n[r.uuid]=new $g(e)}}}return n}parseTextures(e,t){function n(e,t){return typeof e==`number`?e:(q(`ObjectLoader.parseTexture: Constant should be in numeric form.`,e),t[e])}let r={};if(e!==void 0)for(let i=0,a=e.length;i<a;i++){let a=e[i];a.image===void 0&&q(`ObjectLoader: No "image" specified for`,a.uuid),t[a.image]===void 0&&q(`ObjectLoader: Undefined image`,a.image);let o=t[a.image],s=o.data,c;Array.isArray(s)?(c=new bx,s.length===6&&(c.needsUpdate=!0)):(c=s&&s.data?new ib:new r_,s&&(c.needsUpdate=!0)),c.source=o,c.uuid=a.uuid,a.name!==void 0&&(c.name=a.name),a.mapping!==void 0&&(c.mapping=n(a.mapping,Qw)),a.channel!==void 0&&(c.channel=a.channel),a.offset!==void 0&&c.offset.fromArray(a.offset),a.repeat!==void 0&&c.repeat.fromArray(a.repeat),a.center!==void 0&&c.center.fromArray(a.center),a.rotation!==void 0&&(c.rotation=a.rotation),a.wrap!==void 0&&(c.wrapS=n(a.wrap[0],$w),c.wrapT=n(a.wrap[1],$w)),a.format!==void 0&&(c.format=a.format),a.internalFormat!==void 0&&(c.internalFormat=a.internalFormat),a.type!==void 0&&(c.type=a.type),a.colorSpace!==void 0&&(c.colorSpace=a.colorSpace),a.minFilter!==void 0&&(c.minFilter=n(a.minFilter,eT)),a.magFilter!==void 0&&(c.magFilter=n(a.magFilter,eT)),a.anisotropy!==void 0&&(c.anisotropy=a.anisotropy),a.flipY!==void 0&&(c.flipY=a.flipY),a.generateMipmaps!==void 0&&(c.generateMipmaps=a.generateMipmaps),a.premultiplyAlpha!==void 0&&(c.premultiplyAlpha=a.premultiplyAlpha),a.unpackAlignment!==void 0&&(c.unpackAlignment=a.unpackAlignment),a.compareFunction!==void 0&&(c.compareFunction=a.compareFunction),a.normalized!==void 0&&(c.normalized=a.normalized),a.userData!==void 0&&(c.userData=a.userData),r[a.uuid]=c}return r}parseObject(e,t,n,r,i){let a;function o(e){return t[e]===void 0&&q(`ObjectLoader: Undefined geometry`,e),t[e]}function s(e){if(e!==void 0){if(Array.isArray(e)){let t=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];n[i]===void 0&&q(`ObjectLoader: Undefined material`,i),t.push(n[i])}return t}return n[e]===void 0&&q(`ObjectLoader: Undefined material`,e),n[e]}}function c(e){return r[e]===void 0&&q(`ObjectLoader: Undefined texture`,e),r[e]}let l,u;switch(e.type){case`Scene`:a=new Y_,e.background!==void 0&&(Number.isInteger(e.background)?a.background=new Z(e.background):a.background=c(e.background)),e.environment!==void 0&&(a.environment=c(e.environment)),e.fog!==void 0&&(e.fog.type===`Fog`?a.fog=new J_(e.fog.color,e.fog.near,e.fog.far):e.fog.type===`FogExp2`&&(a.fog=new q_(e.fog.color,e.fog.density)),e.fog.name!==``&&(a.fog.name=e.fog.name)),e.backgroundBlurriness!==void 0&&(a.backgroundBlurriness=e.backgroundBlurriness),e.backgroundIntensity!==void 0&&(a.backgroundIntensity=e.backgroundIntensity),e.backgroundRotation!==void 0&&a.backgroundRotation.fromArray(e.backgroundRotation),e.environmentIntensity!==void 0&&(a.environmentIntensity=e.environmentIntensity),e.environmentRotation!==void 0&&a.environmentRotation.fromArray(e.environmentRotation);break;case`PerspectiveCamera`:a=new Pw(e.fov,e.aspect,e.near,e.far),e.focus!==void 0&&(a.focus=e.focus),e.zoom!==void 0&&(a.zoom=e.zoom),e.filmGauge!==void 0&&(a.filmGauge=e.filmGauge),e.filmOffset!==void 0&&(a.filmOffset=e.filmOffset),e.view!==void 0&&(a.view=Object.assign({},e.view));break;case`OrthographicCamera`:a=new zw(e.left,e.right,e.top,e.bottom,e.near,e.far),e.zoom!==void 0&&(a.zoom=e.zoom),e.view!==void 0&&(a.view=Object.assign({},e.view));break;case`AmbientLight`:a=new Hw(e.color,e.intensity);break;case`DirectionalLight`:a=new Vw(e.color,e.intensity),a.target=e.target||``;break;case`PointLight`:a=new Rw(e.color,e.intensity,e.distance,e.decay);break;case`RectAreaLight`:a=new Uw(e.color,e.intensity,e.width,e.height);break;case`SpotLight`:a=new Iw(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay),a.target=e.target||``;break;case`HemisphereLight`:a=new Sw(e.color,e.groundColor,e.intensity);break;case`LightProbe`:a=new Gw(new Ww().fromArray(e.sh),e.intensity);break;case`SkinnedMesh`:l=o(e.geometry),u=s(e.material),a=new nb(l,u),e.bindMode!==void 0&&(a.bindMode=e.bindMode),e.bindMatrix!==void 0&&a.bindMatrix.fromArray(e.bindMatrix),e.skeleton!==void 0&&(a.skeleton=e.skeleton);break;case`Mesh`:l=o(e.geometry),u=s(e.material),a=new Wy(l,u);break;case`InstancedMesh`:l=o(e.geometry),u=s(e.material);let t=e.count,n=e.instanceMatrix,r=e.instanceColor;a=new gb(l,u,t),a.instanceMatrix=new cb(new Float32Array(n.array),16),r!==void 0&&(a.instanceColor=new cb(new Float32Array(r.array),r.itemSize));break;case`BatchedMesh`:l=o(e.geometry),u=s(e.material),a=new Kb(e.maxInstanceCount,e.maxVertexCount,e.maxIndexCount,u),a.geometry=l,a.perObjectFrustumCulled=e.perObjectFrustumCulled,a.sortObjects=e.sortObjects,a._drawRanges=e.drawRanges,a._reservedRanges=e.reservedRanges,a._geometryInfo=e.geometryInfo.map(e=>{let t=null,n=null;return e.boundingBox!==void 0&&(t=new uv().fromJSON(e.boundingBox)),e.boundingSphere!==void 0&&(n=new Gv().fromJSON(e.boundingSphere)),{...e,boundingBox:t,boundingSphere:n}}),a._instanceInfo=e.instanceInfo,a._availableInstanceIds=e._availableInstanceIds,a._availableGeometryIds=e._availableGeometryIds,a._nextIndexStart=e.nextIndexStart,a._nextVertexStart=e.nextVertexStart,a._geometryCount=e.geometryCount,a._maxInstanceCount=e.maxInstanceCount,a._maxVertexCount=e.maxVertexCount,a._maxIndexCount=e.maxIndexCount,a._geometryInitialized=e.geometryInitialized,a._matricesTexture=c(e.matricesTexture.uuid),a._indirectTexture=c(e.indirectTexture.uuid),e.colorsTexture!==void 0&&(a._colorsTexture=c(e.colorsTexture.uuid)),e.boundingSphere!==void 0&&(a.boundingSphere=new Gv().fromJSON(e.boundingSphere)),e.boundingBox!==void 0&&(a.boundingBox=new uv().fromJSON(e.boundingBox));break;case`LOD`:a=new Cy;break;case`Line`:a=new tx(o(e.geometry),s(e.material));break;case`LineLoop`:a=new ox(o(e.geometry),s(e.material));break;case`LineSegments`:a=new ax(o(e.geometry),s(e.material));break;case`PointCloud`:case`Points`:a=new fx(o(e.geometry),s(e.material));break;case`Sprite`:a=new yy(s(e.material));break;case`Group`:a=new z_;break;case`Bone`:a=new rb;break;default:a=new R_}if(a.uuid=e.uuid,e.name!==void 0&&(a.name=e.name),e.matrix===void 0?(e.position!==void 0&&a.position.fromArray(e.position),e.rotation!==void 0&&a.rotation.fromArray(e.rotation),e.quaternion!==void 0&&a.quaternion.fromArray(e.quaternion),e.scale!==void 0&&a.scale.fromArray(e.scale)):(a.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)),e.up!==void 0&&a.up.fromArray(e.up),e.pivot!==void 0&&(a.pivot=new X().fromArray(e.pivot)),e.morphTargetDictionary!==void 0&&(a.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),e.morphTargetInfluences!==void 0&&(a.morphTargetInfluences=e.morphTargetInfluences.slice()),e.castShadow!==void 0&&(a.castShadow=e.castShadow),e.receiveShadow!==void 0&&(a.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.intensity!==void 0&&(a.shadow.intensity=e.shadow.intensity),e.shadow.bias!==void 0&&(a.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(a.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(a.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&a.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(a.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(a.visible=e.visible),e.frustumCulled!==void 0&&(a.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(a.renderOrder=e.renderOrder),e.static!==void 0&&(a.static=e.static),e.userData!==void 0&&(a.userData=e.userData),e.layers!==void 0&&(a.layers.mask=e.layers
23),e.children!==void 0){let o=e.children;for(let e=0;e<o.length;e++)a.add(this.parseObject(o[e],t,n,r,i))}if(e.animations!==void 0){let t=e.animations;for(let e=0;e<t.length;e++){let n=t[e];a.animations.push(i[n])}}if(e.type===`LOD`){e.autoUpdate!==void 0&&(a.autoUpdate=e.autoUpdate);let t=e.levels;for(let e=0;e<t.length;e++){let n=t[e],r=a.getObjectByProperty(`uuid`,n.object);r!==void 0&&a.addLevel(r,n.distance,n.hysteresis)}}return a}bindSkeletons(e,t){Object.keys(t).length!==0&&e.traverse(function(e){if(e.isSkinnedMesh===!0&&e.skeleton!==void 0){let n=t[e.skeleton];n===void 0?q(`ObjectLoader: No skeleton found with UUID:`,e.skeleton):e.bind(n,e.bindMatrix)}})}bindLightTargets(e){e.traverse(function(t){if(t.isDirectionalLight||t.isSpotLight){let n=t.target,r=e.getObjectByProperty(`uuid`,n);r===void 0?t.target=new R_:t.target=r}})}},Qw={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,CubeUVReflectionMapping:306},$w={RepeatWrapping:Hp,ClampToEdgeWrapping:Up,MirroredRepeatWrapping:Wp},eT={NearestFilter:Gp,NearestMipmapNearestFilter:Kp,NearestMipmapLinearFilter:Jp,LinearFilter:Xp,LinearMipmapNearestFilter:Zp,LinearMipmapLinearFilter:$p},tT=new WeakMap,nT=class extends uw{constructor(e){super(e),this.isImageBitmapLoader=!0,typeof createImageBitmap>`u`&&q(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&q(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=ow.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{tT.has(a)===!0?(r&&r(tT.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:`none`}))}).then(function(n){ow.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e)}).catch(function(t){r&&r(t),tT.set(s,t),ow.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});ow.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},rT,iT=class{static getContext(){return rT===void 0&&(rT=new(window.AudioContext||window.webkitAudioContext)),rT}static setContext(e){rT=e}},aT=class extends uw{constructor(e){super(e)}load(e,t,n,r){let i=this,a=new pw(this.manager);a.setResponseType(`arraybuffer`),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{let r=n.slice(0),a=iT.getContext(),s=e+`#decode`;i.manager.itemStart(s),a.decodeAudioData(r,function(e){t(e),i.manager.itemEnd(s)}).catch(function(e){o(e),i.manager.itemEnd(s)})}catch(e){o(e)}},n,r);function o(t){r?r(t):J(t),i.manager.itemError(e)}}},oT=new d_,sT=new d_,cT=new d_,lT=class{constructor(){this.type=`StereoCamera`,this.aspect=1,this.eyeSep=.064,this.cameraL=new Pw,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Pw,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){let t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,cT.copy(e.projectionMatrix);let n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan(mg*t.fov*.5)/t.zoom,a,o;sT.elements[12]=-n,oT.elements[12]=n,a=-i*t.aspect+r,o=i*t.aspect+r,cT.elements[0]=2*t.near/(o-a),cT.elements[8]=(o+a)/(o-a),this.cameraL.projectionMatrix.copy(cT),a=-i*t.aspect-r,o=i*t.aspect-r,cT.elements[0]=2*t.near/(o-a),cT.elements[8]=(o+a)/(o-a),this.cameraR.projectionMatrix.copy(cT)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(sT),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(oT)}},uT=-90,dT=1,fT=class extends R_{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Pw(uT,dT,e,t);r.layers=this.layers,this.add(r);let i=new Pw(uT,dT,e,t);i.layers=this.layers,this.add(i);let a=new Pw(uT,dT,e,t);a.layers=this.layers,this.add(a);let o=new Pw(uT,dT,e,t);o.layers=this.layers,this.add(o);let s=new Pw(uT,dT,e,t);s.layers=this.layers,this.add(s);let c=new Pw(uT,dT,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);
23if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},pT=class extends Pw{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},mT=class{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=hT.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?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function hT(){this._document.hidden===!1&&this.reset()}var gT=new X,_T=new zg,vT=new X,yT=new X,bT=new X,xT=class extends R_{constructor(){super(),this.type=`AudioListener`,this.context=iT.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._timer=new mT}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter===null?this.gain.disconnect(this.context.destination):(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e),this._timer.update(
vendor: 9,042 bytes, line 23
23);let t=this.context.listener;if(this.timeDelta=this._timer.getDelta(),this.matrixWorld.decompose(gT,_T,vT),yT.set(0,0,-1).applyQuaternion(_T),bT.set(0,1,0).applyQuaternion(_T),t.positionX){let e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(gT.x,e),t.positionY.linearRampToValueAtTime(gT.y,e),t.positionZ.linearRampToValueAtTime(gT.z,e),t.forwardX.linearRampToValueAtTime(yT.x,e),t.forwardY.linearRampToValueAtTime(yT.y,e),t.forwardZ.linearRampToValueAtTime(yT.z,e),t.upX.linearRampToValueAtTime(bT.x,e),t.upY.linearRampToValueAtTime(bT.y,e),t.upZ.linearRampToValueAtTime(bT.z,e)}else t.setPosition(gT.x,gT.y,gT.z),t.setOrientation(yT.x,yT.y,yT.z,bT.x,bT.y,bT.z)}},ST=class extends R_{constructor(e){super(),this.type=`Audio`,this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType=`empty`,this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType=`audioNode`,this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaNode`,this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType=`mediaStreamNode`,this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType=`buffer`,this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){q(`Audio: Audio is already playing.`);return}if(this.hasPlaybackControl===!1){q(`Audio: this Audio has no playback control.`);return}this._startedAt=this.context.currentTime+e;let t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){q(`Audio: this Audio has no playback control.`);return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress%=this.duration||this.buffer.duration),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(e=0){if(this.hasPlaybackControl===!1){q(`Audio: this Audio has no playback control.`);return}return this._progress=0,this.source!==null&&(this.source.stop(this.context.currentTime+e),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this._connected!==!1){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}}getFilters(){return this.filters}setFilters(e){return e||=[],this._connected===!0?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(e){return this.detune=e,this.isPlaying===!0&&this.source.detune!==void 0&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(e){return this.setFilters(e?[e]:[])}setPlaybackRate(e){if(this.hasPlaybackControl===!1){q(`Audio: this Audio has no playback control.`);return}return this.playbackRate=e,this.isPlaying===!0&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1,this._progress=0}getLoop(){return this.hasPlaybackControl===!1?(q(`Audio: this Audio has no playback control.`),!1):this.loop}setLoop(e){if(this.hasPlaybackControl===!1){q(`Audio: this Audio has no playback control.`);return}return this.loop=e,this.isPlaying===!0&&(this.source.loop=this.loop),this}setLoopStart(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}copy(e,t){return super.copy(e,t),e.sourceType===`buffer`?(this.autoplay=e.autoplay,this.buffer=e.buffer,this.detune=e.detune,this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this.offset=e.offset,this.duration=e.duration,this.playbackRate=e.playbackRate,this.hasPlaybackControl=e.hasPlaybackControl,this.sourceType=e.sourceType,this.filters=e.filters.slice(),this):(q(`Audio: Audio source type cannot be copied.`),this)}clone(e){return new this.constructor(this.listener).copy(this,e)}},CT=new X,wT=new zg,TT=new X,ET=new X,DT=class extends ST{constructor(e){super(e),this.panner=this.context.createPanner(),this.panner.panningModel=`HRTF`,this.panner.connect(this.gain)}connect(){return super.connect(),this.panner.connect(this.gain),this}disconnect(){return super.disconnect(),this.panner.disconnect(this.gain),this}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(e){return this.panner.refDistance=e,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(e){return this.panner.rolloffFactor=e,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(e){return this.panner.distanceModel=e,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(e){return this.panner.maxDistance=e,this}setDirectionalCone(e,t,n){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=n,this}updateMatrixWorld(e){if(super.updateMatrixWorld(e),this.hasPlaybackControl===!0&&this.isPlaying===!1)return;this.matrixWorld.decompose(CT,wT,TT),ET.set(0,0,1).applyQuaternion(wT);let t=this.panner;if(t.positionX){let e=this.context.currentTime+this.listener.timeDelta;t.positionX.linearRampToValueAtTime(CT.x,e),t.positionY.linearRampToValueAtTime(CT.y,e),t.positionZ.linearRampToValueAtTime(CT.z,e),t.orientationX.linearRampToValueAtTime(ET.x,e),t.orientationY.linearRampToValueAtTime(ET.y,e),t.orientationZ.linearRampToValueAtTime(ET.z,e)}else t.setPosition(CT.x,CT.y,CT.z),t.setOrientation(ET.x,ET.y,ET.z)}},OT=class{constructor(e,t=2048){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=t,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0,t=this.getFrequencyData();for(let n=0;n<t.length;n++)e+=t[n];return e/t.length}},kT=class{constructor(e,t,n){this.binding=e,this.valueSize=n;let r,i,a;switch(t){case`quaternion`:r=this._slerp,i=this._slerpAdditive,a=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(n*6),this._workIndex=5;break;case`string`:case`bool`:r=this._select,i=this._select,a=this._setAdditiveIdentityOther,this.buffer=Array(n*5);break;default:r=this._lerp,i=this._lerpAdditive,a=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(n*5)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=a,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){let n=this.buffer,r=this.valueSize,i=e*r+r,a=this.cumulativeWeight;if(a===0){for(let e=0;e!==r;++e)n[i+e]=n[e];a=t}else{a+=t;let e=t/a;this._mixBufferRegion(n,i,0,e,r)}this.cumulativeWeight=a}accumulateAdditive(e){let t=this.buffer,n=this.valueSize,r=n*this._addIndex;this.cumulativeWeightAdditive===0&&this._setIdentity(),this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e}apply(e){let t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,a=this.cumulativeWeightAdditive,o=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){let e=t*this._origIndex;this._mixBufferRegion(n,r,e,1-i,t)}a>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){o.setValue(n,r);break}}saveOriginalState(){let e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){let e=this._addIndex*this.valueSize,t=e+this.valueSize;
vendor: 4,423 bytes, line 23
23for(let n=e;n<t;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){let e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}_select(e,t,n,r,i){if(r>=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){zg.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){let a=this._workIndex*i;zg.multiplyQuaternionsFlat(e,a,e,t,e,n),zg.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){let a=1-r;for(let o=0;o!==i;++o){let i=t+o;e[i]=e[i]*a+e[n+o]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){let i=t+a;e[i]=e[i]+e[n+a]*r}}},AT=`\\[\\]\\.:\\/`,jT=RegExp(`[`+AT+`]`,`g`),MT=`[^`+AT+`]`,NT=`[^`+AT.replace(`\\.`,``)+`]`,PT=`((?:WC+[\\/:])*)`.replace(`WC`,MT),FT=`(WCOD+)?`.replace(`WCOD`,NT),IT=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,MT),LT=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,MT),RT=RegExp(`^`+PT+FT+IT+LT+`$`),zT=[`material`,`materials`,`bones`,`map`],BT=class{constructor(e,t,n){let r=n||VT.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},VT=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(jT,``)}static parseTrackName(e){let t=RT.exec(e);if(t===null)throw Error(`PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);zT.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r<e.length;r++){let i=e[r];if(i.name===t||i.uuid===t)return i;let a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}
vendor: 4,894 bytes, line 23
23_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){q(`PropertyBinding: No target node found for track: `+this.path+`.`);return}if(r){let e=n.objectIndex;switch(r){case`materials`:if(!t.material){J(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.materials){J(`PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.`,this);return}t=t.material.materials;break;case`bones`:if(!t.skeleton){J(`PropertyBinding: Can not bind to bones as node does not have a skeleton.`,this);return}t=t.skeleton.bones;for(let n=0;n<t.length;n++)if(t[n].name===e){e=n;break}break;case`map`:if(`map`in t){t=t.map;break}if(!t.material){J(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.map){J(`PropertyBinding: Can not bind to material.map as node.material does not have a map.`,this);return}t=t.material.map;break;default:if(t[r]===void 0){J(`PropertyBinding: Can not bind to objectName of node undefined.`,this);return}t=t[r]}if(e!==void 0){if(t[e]===void 0){J(`PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.`,this,t);return}t=t[e]}}let o=t[i];if(o===void 0){let e=n.nodeName;J(`PropertyBinding: Trying to update property for track: `+e+`.`+i+` but it wasn't found.`,t);return}let s=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?s=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(s=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i===`morphTargetInfluences`){if(!t.geometry){J(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.`,this);return}if(!t.geometry.morphAttributes){J(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.`,this);return}t.morphTargetDictionary[a]!==void 0&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=a}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};VT.Composite=BT,VT.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},VT.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},VT.prototype.GetterByBindingType=[VT.prototype._getValue_direct,VT.prototype._getValue_array,VT.prototype._getValue_arrayElement,VT.prototype._getValue_toArray],VT.prototype.SetterByBindingTypeAndVersioning=[[VT.prototype._setValue_direct,VT.prototype._setValue_direct_setNeedsUpdate,VT.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[VT.prototype._setValue_array,VT.prototype._setValue_array_setNeedsUpdate,VT.prototype._setValue_array_setMatrixWorldNeedsUpdate],[VT.prototype._setValue_arrayElement,VT.prototype._setValue_arrayElement_setNeedsUpdate,VT.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[VT.prototype._setValue_fromArray,VT.prototype._setValue_fromArray_setNeedsUpdate,VT.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];var HT=class{constructor(){this.isAnimationObjectGroup=!0,this.uuid=gg(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;let e={};this._indicesByUUID=e;for(let t=0,n=arguments.length;t!==n;++t)e[arguments[t].uuid]=t;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};let t=this;this.stats={objects:{get total(){return t._objects.length},get inUse(){return this.total-t.nCachedObjects_}},get bindingsPerObject(){return t._bindings.length}}}add(){let e=this._objects,t=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,a=i.length,o,s=e.length,c=this.nCachedObjects_;for(let l=0,u=arguments.length;l!==u;++l){let u=arguments[l],d=u.uuid,f=t[d];if(f===void 0){f=s++,t[d]=f,e.push(u);for(let e=0,t=a;e!==t;++e)i[e].push(new VT(u,n[e],r[e]))}else if(f<c){o=e[f];let s=--c,l=e[s];t[l.uuid]=f,e[f]=l,t[d]=s,e[s]=u;for(let e=0,t=a;e!==t;++e){let t=i[e],a=t[s],o=t[f];t[f]=a,o===void 0&&(o=new VT(u,n[e],r[e])),t[s]=o}}else e[f]!==o&&J(`AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastru
23cture when reloading scenes.`)}this.nCachedObjects_=c}remove(){let e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_;for(let a=0,o=arguments.length;a!==o;++a){let o=arguments[a],s=o.uuid,c=t[s];if(c!==void 0&&c>=i){let a=i++,l=e[a];t[l.uuid]=c,e[c]=l,t[s]=a,e[a]=o;for(let e=0,t=r;e!==t;++e){let t=n[e],r=t[a],i=t[c];t[c]=r,t[a]=i}}}this.nCachedObjects_=i}uncache(){let e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length;for(let o=0,s=arguments.length;o!==s;++o){let s=arguments[o].uuid,c=t[s];if(c!==void 0)if(delete t[s],c<i){let o=--i,s=e[o],l=--a,u=e[l];t[s.uuid]=c,e[c]=s,t[u.uuid]=o,e[o]=u,e.pop();for(let e=0,t=r;e!==t;++e){let t=n[e],r=t[o],i=t[l];t[c]=r,t[o]=i,t.pop()}}else{let i=--a,o=e[i];i>0&&(t[o.uuid]=c),e[c]=o,e.pop();for(let e=0,t=r;e!==t;++e){let t=n[e];t[c]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){let n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(r!==void 0)return i[r];let a=this._paths,o=this._parsedPaths,s=this._objects,c=s.length,l=this.nCachedObjects_,u=Array(c);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(u);for(let n=l,r=s.length;n!==r;++n){let r=s[n];u[n]=new VT(r,e,t)}return u}unsubscribe_(e){let t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){let r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o],c=e[o];t[c]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}},UT=class{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;let i=t.tracks,a=i.length,o=Array(a),s={endingStart:mh,endingEnd:mh};for(let e=0;e!==a;++e){let t=i[e].createInterpolant(null);o[e]=t,t.settings&&Object.assign(s,t.settings),t.settings=s}this._interpolantSettings=s,this._interpolants=o,this._propertyBindings=Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=ch,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n=!1){if(e.fadeOut(t),this.fadeIn(t),n===!0){let n=this._clip.duration,r=e._clip.duration,i=r/n,a=n/r;e.warp(1,i,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n=!1){return e.crossFadeFrom(this,t,n)}stopFading(){let e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){let r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;o===null&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);let s=o.parameterPositions,c=o.sampleValues;return s[0]=i,s[1]=i+n,c[0]=e/a,c[1]=t/a,this}stopWarping(){let e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled){this._updateWeight(e);return}let i=this._startTime;if(i!==null){let r=(e-i)*n;r<0||n===0?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);let a=this._updateTime(t),o=this._updateWeight(e);if(o>0){let e=this._interpolants,t=this._propertyBindings;switch(this.blendMode){case vh:for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(o);break;case _h:default:for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,o)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;let n=this._weightInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),r===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;let n=this._timeScaleInterpolant;if(n!==null){let r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){let t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=n===lh;if(e===0)return i===-1?r:a&&(i&1)==1?t-r:r;if(n===2200){i===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));handle_stop:{if(r>=t)r=t;else if(r<0)r=0;else{this.time=r;break handle_stop}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e<0?-1:1})}}else{if(i===-1&&(e>=0?(i=0,this._setEndings(!0,this.repetitions===0,a)):this._setEndings(this.repetitions===0,!0,a)),r>=t||r<0){let n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);let o=this.repetitions-i;if(o<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:`finished`,action:this,direction:e>0?1:-1});else{if(o===1){let t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:`loop`,action:this,loopDelta:n})}}else this._loopCount=i,this.time=r;if(a&&(i&1)==1)return t-r}return r}
vendor: 8,911 bytes, line 23
23_setEndings(e,t,n){let r=this._interpolantSettings;n?(r.endingStart=hh,r.endingEnd=hh):(e?r.endingStart=this.zeroSlopeAtStart?hh:mh:r.endingStart=gh,t?r.endingEnd=this.zeroSlopeAtEnd?hh:mh:r.endingEnd=gh)}_scheduleFading(e,t,n){let r=this._mixer,i=r.time,a=this._weightInterpolant;a===null&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);let o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}},WT=new Float32Array(1),GT=class extends dg{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}_bindAction(e,t){let n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,c=this._bindingsByRootAndName,l=c[s];l===void 0&&(l={},c[s]=l);for(let e=0;e!==i;++e){let i=r[e],c=i.name,u=l[c];if(u!==void 0)++u.referenceCount,a[e]=u;else{if(u=a[e],u!==void 0){u._cacheIndex===null&&(++u.referenceCount,this._addInactiveBinding(u,s,c));continue}let r=t&&t._propertyBindings[e].binding.parsedPath;u=new kT(VT.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,s,c),a[e]=u}o[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){let t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];n.useCount++===0&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];--n.useCount===0&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){let t=e._cacheIndex;return t!==null&&t<this._nActiveActions}_addInactiveAction(e,t,n){let r=this._actions,i=this._actionsByClip,a=i[t];if(a===void 0)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{let t=a.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e}_removeInactiveAction(e){let t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;let i=e._clip.uuid,a=this._actionsByClip,o=a[i],s=o.knownActions,c=s[s.length-1],l=e._byClipCacheIndex;c._byClipCacheIndex=l,s[l]=c,s.pop(),e._byClipCacheIndex=null;let u=o.actionByRoot,d=(e._localRoot||this._root).uuid;delete u[d],s.length===0&&delete a[i],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){let t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){let n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}}_lendAction(e){let t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackAction(e){let t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_addInactiveBinding(e,t,n){let r=this._bindingsByRootAndName,i=this._bindings,a=r[t];a===void 0&&(a={},r[t]=a),a[n]=e,e._cacheIndex=i.length,i.push(e)}_removeInactiveBinding(e){let t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,o=a[r],s=t[t.length-1],c=e._cacheIndex;s._cacheIndex=c,t[c]=s,t.pop(),delete o[i],Object.keys(o).length===0&&delete a[r]}_lendBinding(e){let t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackBinding(e){let t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_lendControlInterpolant(){let e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return n===void 0&&(n=new KC(new Float32Array(2),new Float32Array(2),1,WT),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){let t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i}clipAction(e,t,n){let r=t||this._root,i=r.uuid,a=typeof e==`string`?rw.findByName(r,e):e,o=a===null?e:a.uuid,s=this._actionsByClip[o],c=null;if(n===void 0&&(n=a===null?_h:a.blendMode),s!==void 0){let e=s.actionByRoot[i];if(e!==void 0&&e.blendMode===n)return e;c=s.knownActions[0],a===null&&(a=c._clip)}if(a===null)return null;let l=new UT(this,a,t,n);return this._bindAction(l,c),this._addInactiveAction(l,o,i),l}existingAction(e,t){let n=t||this._root,r=n.uuid,i=typeof e==`string`?rw.findByName(n,e):e,a=i?i.uuid:e,o=this._actionsByClip[a];return o===void 0?null:o.actionByRoot[r]||null}stopAllAction(){let e=this._actions,t=this._nActiveActions;for(let n=t-1;n>=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;let t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let o=0;o!==n;++o)t[o]._update(r,e,i,a);let o=this._bindings,s=this._nActiveBindings;for(let e=0;e!==s;++e)o[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){let t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(i!==void 0){let e=i.knownActions;for(let n=0,r=e.length;n!==r;++n){let r=e[n];this._deactivateAction(r);let i=r._cacheIndex,a=t[t.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,a._cacheIndex=i,t[i]=a,t.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}uncacheRoot(e){let t=e.uuid,n=this._actionsByClip;for(let e in n){let r=n[e].actionByRoot[t];r!==void 0&&(this._deactivateAction(r),this._removeInactiveAction(r))}let r=this._bindingsByRootAndName[t];if(r!==void 0)for(let e in r){let t=r[e];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(e,t){let n=this.existingAction(e,t);n!==null&&(this._deactivateAction(n),this._removeInactiveAction(n))}},KT=class extends a_{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isRenderTarget3D=!0,this.depth=n,this.texture=new l_(null,e,t,n),this._setTextureOptions(r),this.texture.isRenderTargetTexture=!0}},qT=class e{constructor(e){this.value=e}clone(){return new e(this.value.clone===void 0?this.value:this.value.clone())}},JT=0,YT=class extends dg{constructor(){super(),this.isUniformsGroup=!0,Object.defineProperty(this,`id`,{value:JT++}),this.name=``,this.usage=Ph,this.uniforms=[]}add(e){return this.uniforms.push(e),this}remove(e){let t=this.uniforms.indexOf(e);return t!==-1&&this.uniforms.splice(t,1),this}setName(e){return this.name=e,this}setUsage(e){return this.usage=e,this}dispose(){this.dispatchEvent({type:`dispose`})}copy(e){this.name=e.name,this.usage=e.usage;let t=e.uniforms;this.uniforms.length=0;for(let e=0,n=t.length;e<n;e++){let n=Array.isArray(t[e])?t[e]:[t[e]];for(let e=0;e<n.length;e++)this.uniforms.push(n[e].clone())}return this}clone(){return new this.constructor().copy(this)}},XT=class extends ey{constructor(e,t,n=1){super(e,t),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=n}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){let t=super.clone(e);return t.meshPerAttribute=this.meshPerAttribute,t}toJSON(e){let t=super.toJSON(e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}},ZT=class{constructor(e,t,n,r,i,a=!1){this.isGLBufferAttribute=!0,this.name=``,this.buffer=e,this.type=t,this.itemSize=n,this.elementSize=r,this.count=i,this.normalized=a,this.version=0}set needsUpdate(e){e===!0&&this.version++}setBuffer(e){return this.buffer=e,this}setType(e,t){return this.type=e,this.elementSize=t,this}setItemSize(e){return this.itemSize=e,this}setCount(e){return this.count=e,this}},QT=new d_,$T=class{constructor(e,t,n=0,r=1/0){this.ray=new jy(e,t),this.near=n,this.far=r,this.camera=null,this.layers=new S_,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):J(`Raycaster: 
23Unsupported camera type: `+t.type)}setFromXRController(e){return QT.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(QT),this}intersectObject(e,t=!0,n=[]){return tE(e,this,n,t),n.sort(eE),n}intersectObjects(e,t=!0,n=[]){for(let r=0,i=e.length;r<i;r++)tE(e[r],this,n,t);return n.sort(eE),n}};function eE(e,t){return e.distance-t.distance}function tE(e,t,n,r){let i=!0;if(e.layers.test(t.layers)&&e.raycast(t,n)===!1&&(i=!1),i===!0&&r===!0){let r=e.children;for(let e=0,i=r.length;e<i;e++)tE(r[e],t,n,!0)}}var nE=class{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1,q(`Clock: This module has been deprecated. Please use THREE.Timer instead.`)}start(){this.startTime=performance.now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let t=performance.now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}},rE=class{constructor(e=1,t=0,n=0){this.radius=e,this.phi=t,this.theta=n}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){let e=1e-6;return this.phi=_g(this.phi,e,Math.PI-e),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(_g(t/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}},iE=class{constructor(e=1,t=0,n=0){this.radius=e,this.theta=t,this.y=n}set(e,t,n){return this.radius=e,this.theta=t,this.y=n,this}copy(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}clone(){return new this.constructor().copy(this)}},aE=class e{static{e.prototype.isMatrix2=!0}constructor(e,t,n,r){this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,n,r)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let n=0;n<4;n++)this.elements[n]=e[n+t];return this}set(e,t,n,r){let i=this.elements;return i[0]=e,i[2]=t,i[1]=n,i[3]=r,this}},oE=new Y,sE=class{constructor(e=new Y(1/0,1/0),t=new Y(-1/0,-1/0)){this.isBox2=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=oE.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}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=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(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}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}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}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}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}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,oE).distanceTo(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}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)}},cE=new X,lE=new X,uE=new X,dE=new X,fE=new X,pE=new X,mE=new X,hE=class{constructor(e=new X,t=new X){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),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,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){cE.subVectors(e,this.start),lE.subVectors(this.end,this.start);let n=lE.dot(lE);if(n===0)return 0;let r=lE.dot(cE)/n;return t&&(r=_g(r,0,1)),r}closestPointToPoint(e,t,n){let r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}
vendor: 7,121 bytes, line 23
23distanceSqToLine3(e,t=pE,n=mE){let r=1e-8*1e-8,i,a,o=this.start,s=e.start,c=this.end,l=e.end;uE.subVectors(c,o),dE.subVectors(l,s),fE.subVectors(o,s);let u=uE.dot(uE),d=dE.dot(dE),f=dE.dot(fE);if(u<=r&&d<=r)return t.copy(o),n.copy(s),t.sub(n),t.dot(t);if(u<=r)i=0,a=f/d,a=_g(a,0,1);else{let e=uE.dot(fE);if(d<=r)a=0,i=_g(-e/u,0,1);else{let t=uE.dot(dE),n=u*d-t*t;i=n===0?0:_g((t*f-e*d)/n,0,1),a=(t*i+f)/d,a<0?(a=0,i=_g(-e/u,0,1)):a>1&&(a=1,i=_g((t-e)/u,0,1))}}return t.copy(o).addScaledVector(uE,i),n.copy(s).addScaledVector(dE,a),t.distanceToSquared(n)}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)}},gE=new X,_E=class extends R_{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type=`SpotLightHelper`;let n=new $v,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1;e<32;e++,t++){let n=e/32*Math.PI*2,i=t/32*Math.PI*2;r.push(Math.cos(n),Math.sin(n),1,Math.cos(i),Math.sin(i),1)}n.setAttribute(`position`,new Q(r,3));let i=new qb({fog:!1,toneMapped:!1});this.cone=new ax(n,i),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),this.parent?(this.parent.updateWorldMatrix(!0),this.matrix.copy(this.parent.matrixWorld).invert().multiply(this.light.matrixWorld)):this.matrix.copy(this.light.matrixWorld),this.matrixWorld.copy(this.light.matrixWorld);let e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),gE.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(gE),this.color===void 0?this.cone.material.color.copy(this.light.color):this.cone.material.color.set(this.color)}},vE=new X,yE=new d_,bE=new d_,xE=class extends ax{constructor(e){let t=SE(e),n=new $v,r=[],i=[];for(let e=0;e<t.length;e++){let n=t[e];n.parent&&n.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(0,0,0),i.push(0,0,0))}n.setAttribute(`position`,new Q(r,3)),n.setAttribute(`color`,new Q(i,3));let a=new qb({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});super(n,a),this.isSkeletonHelper=!0,this.type=`SkeletonHelper`,this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1;let o=new Z(255),s=new Z(65280);this.setColors(o,s)}updateMatrixWorld(e){let t=this.bones,n=this.geometry,r=n.getAttribute(`position`);bE.copy(this.root.matrixWorld).invert();for(let e=0,n=0;e<t.length;e++){let i=t[e];i.parent&&i.parent.isBone&&(yE.multiplyMatrices(bE,i.matrixWorld),vE.setFromMatrixPosition(yE),r.setXYZ(n,vE.x,vE.y,vE.z),yE.multiplyMatrices(bE,i.parent.matrixWorld),vE.setFromMatrixPosition(yE),r.setXYZ(n+1,vE.x,vE.y,vE.z),n+=2)}n.getAttribute(`position`).needsUpdate=!0,super.updateMatrixWorld(e)}setColors(e,t){let n=this.geometry.getAttribute(`color`);for(let r=0;r<n.count;r+=2)n.setXYZ(r,e.r,e.g,e.b),n.setXYZ(r+1,t.r,t.g,t.b);return n.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}};function SE(e){let t=[];e.isBone===!0&&t.push(e);for(let n=0;n<e.children.length;n++)t.push(...SE(e.children[n]));return t}var CE=class extends Wy{constructor(e,t,n){let r=new cC(t,4,2),i=new My({wireframe:!0,fog:!1,toneMapped:!1});super(r,i),this.light=e,this.color=n,this.type=`PointLightHelper`,this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.color===void 0?this.material.color.copy(this.light.color):this.material.color.set(this.color)}},wE=new X,TE=new Z,EE=new Z,DE=class extends R_{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type=`HemisphereLightHelper`;let r=new rC(t);r.rotateY(Math.PI*.5),this.material=new My({wireframe:!0,fog:!1,toneMapped:!1}),this.color===void 0&&(this.material.vertexColors=!0);let i=r.getAttribute(`position`),a=new Float32Array(i.count*3);r.setAttribute(`color`,new Nv(a,3)),this.add(new Wy(r,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){let e=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{let t=e.geometry.getAttribute(`color`);TE.copy(this.light.color),EE.copy(this.light.groundColor);for(let e=0,n=t.count;e<n;e++){let r=e<n/2?TE:EE;t.setXYZ(e,r.r,r.g,r.b)}t.needsUpdate=!0}this.light.updateWorldMatrix(!0,!1),e.lookAt(wE.setFromMatrixPosition(this.light.matrixWorld).negate())}},OE=class extends ax{constructor(e=10,t=10,n=4473924,r=8947848){n=new Z(n),r=new Z(r);let i=t/2,a=e/t,o=e/2,s=[],c=[];for(let e=0,l=0,u=-o;e<=t;e++,u+=a){s.push(-o,0,u,o,0,u),s.push(u,0,-o,u,0,o);let t=e===i?n:r;t.toArray(c,l),l+=3,t.toArray(c,l),l+=3,t.toArray(c,l),l+=3,t.toArray(c,l),l+=3}let l=new $v;l.setAttribute(`position`,new Q(s,3)),l.setAttribute(`color`,new Q(c,3));let u=new qb({vertexColors:!0,toneMapped:!1});super(l,u),this.type=`GridHelper`}dispose(){this.geometry.dispose(),this.material.dispose()}},kE=class extends ax{constructor(e=10,t=16,n=8,r=64,i=4473924,a=8947848){i=new Z(i),a=new Z(a);let o=[],s=[];if(t>1)for(let n=0;n<t;n++){let r=n/t*(Math.PI*2),c=Math.sin(r)*e,l=Math.cos(r)*e;o.push(0,0,0),o.push(c,0,l);let u=n&1?i:a;s.push(u.r,u.g,u.b),s.push(u.r,u.g,u.b)}for(let t=0;t<n;t++){let c=t&1?i:a,l=e-e/n*t;for(let e=0;e<r;e++){let t=e/r*(Math.PI*2),n=Math.sin(t)*l,i=Math.cos(t)*l;o.push(n,0,i),s.push(c.r,c.g,c.b),t=(e+1)/r*(Math.PI*2),n=Math.sin(t)*l,i=Math.cos(t)*l,o.push(n,0,i),s.push(c.r,c.g,c.b)}}let c=new $v;c.setAttribute(`position`,new Q(o,3)),c.setAttribute(`color`,new Q(s,3));let l=new qb({vertexColors:!0,toneMapped:!1});super(c,l),this.type=`PolarGridHelper`}dispose(){this.geometry.dispose(),this.material.dispose()}},AE=new X,jE=new X,ME=new X,NE=class extends R_{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type=`DirectionalLightHelper`,t===void 0&&(t=1);let r=new $v;r.setAttribute(`position`,new Q([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));let i=new qb({fog:!1,toneMapped:!1});this.lightPlane=new tx(r,i),this.add(this.lightPlane),r=new $v,r.setAttribute(`position`,new Q([0,0,0,0,0,1],3)),this.targetLine=new tx(r,i),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),AE.setFromMatrixPosition(this.light.matrixWorld),jE.setFromMatrixPosition(this.light.target.matrixWorld),ME.subVectors(jE,AE),this.lightPlane.lookAt(jE),this.color===void 0?(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)):(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)),this.targetLine.lookAt(jE),this.targetLine.scale.z
23=ME.length()}},PE=new X,FE=new Aw,IE=class extends ax{constructor(e){let t=new $v,n=new qb({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],i=[],a={};o(`n1`,`n2`),o(`n2`,`n4`),o(`n4`,`n3`),o(`n3`,`n1`),o(`f1`,`f2`),o(`f2`,`f4`),o(`f4`,`f3`),o(`f3`,`f1`),o(`n1`,`f1`),o(`n2`,`f2`),o(`n3`,`f3`),o(`n4`,`f4`),o(`p`,`n1`),o(`p`,`n2`),o(`p`,`n3`),o(`p`,`n4`),o(`u1`,`u2`),o(`u2`,`u3`),o(`u3`,`u1`),o(`c`,`t`),o(`p`,`c`),o(`cn1`,`cn2`),o(`cn3`,`cn4`),o(`cf1`,`cf2`),o(`cf3`,`cf4`);function o(e,t){s(e),s(t)}function s(e){r.push(0,0,0),i.push(0,0,0),a[e]===void 0&&(a[e]=[]),a[e].push(r.length/3-1)}t.setAttribute(`position`,new Q(r,3)),t.setAttribute(`color`,new Q(i,3)),super(t,n),this.type=`CameraHelper`,this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update();let c=new Z(16755200),l=new Z(16711680),u=new Z(43775),d=new Z(16777215),f=new Z(3355443);this.setColors(c,l,u,d,f)}setColors(e,t,n,r,i){let a=this.geometry.getAttribute(`color`);return a.setXYZ(0,e.r,e.g,e.b),a.setXYZ(1,e.r,e.g,e.b),a.setXYZ(2,e.r,e.g,e.b),a.setXYZ(3,e.r,e.g,e.b),a.setXYZ(4,e.r,e.g,e.b),a.setXYZ(5,e.r,e.g,e.b),a.setXYZ(6,e.r,e.g,e.b),a.setXYZ(7,e.r,e.g,e.b),a.setXYZ(8,e.r,e.g,e.b),a.setXYZ(9,e.r,e.g,e.b),a.setXYZ(10,e.r,e.g,e.b),a.setXYZ(11,e.r,e.g,e.b),a.setXYZ(12,e.r,e.g,e.b),a.setXYZ(13,e.r,e.g,e.b),a.setXYZ(14,e.r,e.g,e.b),a.setXYZ(15,e.r,e.g,e.b),a.setXYZ(16,e.r,e.g,e.b),a.setXYZ(17,e.r,e.g,e.b),a.setXYZ(18,e.r,e.g,e.b),a.setXYZ(19,e.r,e.g,e.b),a.setXYZ(20,e.r,e.g,e.b),a.setXYZ(21,e.r,e.g,e.b),a.setXYZ(22,e.r,e.g,e.b),a.setXYZ(23,e.r,e.g,e.b),a.setXYZ(24,t.r,t.g,t.b),a.setXYZ(25,t.r,t.g,t.b),a.setXYZ(26,t.r,t.g,t.b),a.setXYZ(27,t.r,t.g,t.b),a.setXYZ(28,t.r,t.g,t.b),a.setXYZ(29,t.r,t.g,t.b),a.setXYZ(30,t.r,t.g,t.b),a.setXYZ(31,t.r,t.g,t.b),a.setXYZ(32,n.r,n.g,n.b),a.setXYZ(33,n.r,n.g,n.b),a.setXYZ(34,n.r,n.g,n.b),a.setXYZ(35,n.r,n.g,n.b),a.setXYZ(36,n.r,n.g,n.b),a.setXYZ(37,n.r,n.g,n.b),a.setXYZ(38,r.r,r.g,r.b),a.setXYZ(39,r.r,r.g,r.b),a.setXYZ(40,i.r,i.g,i.b),a.setXYZ(41,i.r,i.g,i.b),a.setXYZ(42,i.r,i.g,i.b),a.setXYZ(43,i.r,i.g,i.b),a.setXYZ(44,i.r,i.g,i.b),a.setXYZ(45,i.r,i.g,i.b),a.setXYZ(46,i.r,i.g,i.b),a.setXYZ(47,i.r,i.g,i.b),a.setXYZ(48,i.r,i.g,i.b),a.setXYZ(49,i.r,i.g,i.b),a.needsUpdate=!0,this}update(){let e=this.geometry,t=this.pointMap,n,r;if(FE.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),this.camera.reversedDepth===!0)n=1,r=0;else if(this.camera.coordinateSystem===2e3)n=-1,r=1;else if(this.camera.coordinateSystem===2001)n=0,r=1;else throw Error(`THREE.CameraHelper.update(): Invalid coordinate system: `+this.camera.coordinateSystem);LE(`c`,t,e,FE,0,0,n),LE(`t`,t,e,FE,0,0,r),LE(`n1`,t,e,FE,-1,-1,n),LE(`n2`,t,e,FE,1,-1,n),LE(`n3`,t,e,FE,-1,1,n),LE(`n4`,t,e,FE,1,1,n),LE(`f1`,t,e,FE,-1,-1,r),LE(`f2`,t,e,FE,1,-1,r),LE(`f3`,t,e,FE,-1,1,r),LE(`f4`,t,e,FE,1,1,r),LE(`u1`,t,e,FE,1*.7,1*1.1,n),LE(`u2`,t,e,FE,-1*.7,1*1.1,n),LE(`u3`,t,e,FE,0,2,n),LE(`cf1`,t,e,FE,-1,0,r),LE(`cf2`,t,e,FE,1,0,r),LE(`cf3`,t,e,FE,0,-1,r),LE(`cf4`,t,e,FE,0,1,r),LE(`cn1`,t,e,FE,-1,0,n),LE(`cn2`,t,e,FE,1,0,n),LE(`cn3`,t,e,FE,0,-1,n),LE(`cn4`,t,e,FE,0,1,n),e.getAttribute(`position`).needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function LE(e,t,n,r,i,a,o){PE.set(i,a,o).unproject(r);let s=t[e];if(s!==void 0){let e=n.getAttribute(`position`);for(let t=0,n=s.length;t<n;t++)e.setXYZ(s[t],PE.x,PE.y,PE.z)}}var RE=new uv,zE=class extends ax{constructor(e,t=16776960){let n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new $v;i.setIndex(new Nv(n,1)),i.setAttribute(`position`,new Nv(r,3)),super(i,new qb({color:t,toneMapped:!1})),this.object=e,this.type=`BoxHelper`,this.matrixAutoUpdate=!1,this.update()}update(){if(this.object!==void 0&&RE.setFromObject(this.object),RE.isEmpty())return;let e=RE.min,t=RE.max,n=this.geometry.attributes.position,r=n.array;r[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=e.x,r[4]=t.y,r[5]=t.z,r[6]=e.x,r[7]=e.y,r[8]=t.z,r[9]=t.x,r[10]=e.y,r[11]=t.z,r[12]=t.x,r[13]=t.y,r[14]=e.z,r[15]=e.x,r[16]=t.y,r[17]=e.z,r[18]=e.x,r[19]=e.
vendor: 9,539 bytes, line 23
23y,r[20]=e.z,r[21]=t.x,r[22]=e.y,r[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(e){return this.object=e,this.update(),this}copy(e,t){return super.copy(e,t),this.object=e.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}},BE=class extends ax{constructor(e,t=16776960){let n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],i=new $v;i.setIndex(new Nv(n,1)),i.setAttribute(`position`,new Q(r,3)),super(i,new qb({color:t,toneMapped:!1})),this.box=e,this.type=`Box3Helper`,this.geometry.computeBoundingSphere()}updateMatrixWorld(e){let t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}dispose(){this.geometry.dispose(),this.material.dispose()}},VE=class extends tx{constructor(e,t=1,n=16776960){let r=n,i=[1,-1,0,-1,1,0,-1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],a=new $v;a.setAttribute(`position`,new Q(i,3)),a.computeBoundingSphere(),super(a,new qb({color:r,toneMapped:!1})),this.type=`PlaneHelper`,this.plane=e,this.size=t;let o=[1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],s=new $v;s.setAttribute(`position`,new Q(o,3)),s.computeBoundingSphere(),this.add(new Wy(s,new My({color:r,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){this.position.set(0,0,0),this.scale.set(.5*this.size,.5*this.size,1),this.lookAt(this.plane.normal),this.translateZ(-this.plane.constant),super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}},HE=new X,UE,WE,GE=class extends R_{constructor(e=new X(0,0,1),t=new X(0,0,0),n=1,r=16776960,i=n*.2,a=i*.2){super(),this.type=`ArrowHelper`,UE===void 0&&(UE=new $v,UE.setAttribute(`position`,new Q([0,0,0,0,1,0],3)),WE=new Ax(.5,1,5,1),WE.translate(0,-.5,0)),this.position.copy(t),this.line=new tx(UE,new qb({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Wy(WE,new My({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,i,a)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{HE.set(e.z,0,-e.x).normalize();let t=Math.acos(e.y);this.quaternion.setFromAxisAngle(HE,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},KE=class extends ax{constructor(e=1){let t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],r=new $v;r.setAttribute(`position`,new Q(t,3)),r.setAttribute(`color`,new Q(n,3));let i=new qb({vertexColors:!0,toneMapped:!1});super(r,i),this.type=`AxesHelper`}setColors(e,t,n){let r=new Z,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},qE=class{constructor(){this.type=`ShapePath`,this.color=new Z,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new pS,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,a){return this.currentPath.bezierCurveTo(e,t,n,r,i,a),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n],i=new mS;i.curves=r.curves,t.push(i)}return t}function n(e,t){let n=t.length,r=!1;for(let i=n-1,a=0;a<n;i=a++){let n=t[i],o=t[a],s=o.x-n.x,c=o.y-n.y;if(Math.abs(c)>2**-52){if(c<0&&(n=t[a],s=-s,o=t[i],c=-c),e.y<n.y||e.y>o.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{let t=c*(e.x-n.x)-s*(e.y-n.y);if(t===0)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return r}let r=YS.isClockWise,i=this.subPaths;if(i.length===0)return[];let a,o,s,c=[];if(i.length===1)return o=i[0],s=new mS,s.curves=o.curves,c.push(s),c;let l=!r(i[0].getPoints());l=e?!l:l;let u=[],d=[],f=[],p=0,m;d[p]=void 0,f[p]=[];for(let t=0,n=i.length;t<n;t++)o=i[t],m=o.getPoints(),a=r(m),a=e?!a:a,a?(!l&&d[p]&&p++,d[p]={s:new mS,p:m},d[p].s.curves=o.curves,l&&p++,f[p]=[]):f[p].push({h:o,p:m[0]});if(!d[0])return t(i);if(d.length>1){let e=!1,t=0;for(let e=0,t=d.length;e<t;e++)u[e]=[];for(let r=0,i=d.length;r<i;r++){let i=f[r];for(let a=0;a<i.length;a++){let o=i[a],s=!0;for(let i=0;i<d.length;i++)n(o.p,d[i].p)&&(r!==i&&t++,s?(s=!1,u[i].push(o)):e=!0);s&&u[r].push(o)}}t>0&&e===!1&&(f=u)}let h;for(let e=0,t=d.length;e<t;e++){s=d[e].s,c.push(s),h=f[e];for(let e=0,t=h.length;e<t;e++)s.holes.push(h[e].h)}return c}},JE=class extends dg{constructor(e,t=null){super(),this.object=e,this.domElement=t,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){q(`Controls: connect() now requires an element.`);return}this.domElement!==null&&this.disconnect(),this.domElement=e}disconnect(){}dispose(){}update(){}};function YE(e,t){let n=e.image&&e.image.width?e.image.width/e.image.height:1;return n>t?(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2):(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0),e}function XE(e,t){let n=e.image&&e.image.width?e.image.width/e.image.height:1;return n>t?(e.repeat.x=t/n,e.repeat.y=1,e.offset.x=(1-e.repeat.x)/2,e.offset.y=0):(e.repeat.x=1,e.repeat.y=n/t,e.offset.x=0,e.offset.y=(1-e.repeat.y)/2),e}function ZE(e){return e.repeat.x=1,e.repeat.y=1,e.offset.x=0,e.offset.y=0,e}function QE(e,t,n,r){let i=$E(r);switch(n){case mm:return e*t;case ym:return e*t/i.components*i.byteLength;case bm:return e*t/i.components*i.byteLength;case xm:return e*t*2/i.components*i.byteLength;case Sm:return e*t*2/i.components*i.byteLength;case hm:return e*t*3/i.components*i.byteLength;case gm:return e*t*4/i.components*i.byteLength;case wm:return e*t*4/i.components*i.byteLength;case Tm:case Em:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Dm:case Om:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Am:case Mm:return Math.max(e,16)*Math.max(t,8)/4;case km:case jm:return Math.max(e,8)*Math.max(t,8)/2;case Nm:case Pm:case Im:case Lm:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Fm:case Rm:case zm:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Bm:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Vm:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Hm:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case Um:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case Wm:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case Gm:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case Km:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case qm:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case Jm:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case Ym:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case Xm:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case Zm:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case Qm:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case $m:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case eh:case th:case nh:return Math.ceil(e/4)*Math.ceil(t/4)*16;case rh:case ih:return Math.ceil(e/4)*Math.ceil(t/4)*8;case ah:case oh:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw Error(`Unable to determine texture byte length for ${n} format.`)}function $E(e){switch(e){case tm:case nm:return{byteLength:1,components:1};case im:case rm:case cm:return{byteLength:2,components:1};case lm:case um:return{byteLength:2,components:4};case om:case am:case sm:return{byteLength:4,components:1};case fm:case pm:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${e}.`)}var eD=class{static contain(e,t){return YE(e,t)}static cover(e,t){return XE(e,t)}static fill(e){return ZE(e)}static getByteLength(e,t,n,r){return QE(e,t,n,r)}};typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`184`}})),typeof window<`u`&&(window.__THREE__?q(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`184`);var tD=c({ACESFilmicToneMapping:()=>4,AddEquation:()=>100,AddOperation:()=>2,AdditiveAnimationBlendMode:()=>vh,AdditiveBlending:()=>2,AgXToneMapping:()=>6,AlphaFormat:()=>mm,AlwaysCompare:()=>519,AlwaysDepth:()=>1,AlwaysStencilFunc:()=>519,AmbientLight:()=>Hw,AnimationAction:()=>UT,AnimationClip:()=>rw,AnimationLoader:()=>mw,AnimationMixer:()=>GT,AnimationObjectGroup:()=>HT,AnimationUtils:()=>UC,ArcCurve:()=>Bx,ArrayCamera:()=>pT,ArrowHelper:()=>GE,AttachedBindMode:()=>Bp,Audio:()=>ST,AudioAnalyser:()=>OT,AudioContext:()=>iT,AudioListener:()=>xT,AudioLoader:()=>aT,AxesHelper:()=>KE,BackSide:()=>1,BasicDepthPacking:()=>yh,BasicShadowMap:()=>0,BatchedMesh:()=>Kb,BezierInterpolant:()=>JC,Bone:()=>rb,BooleanKeyframeTrack:()=>XC,Box2:()=>sE,Box3:()=>
23uv,Box3Helper:()=>BE,BoxGeometry:()=>Ex,BoxHelper:()=>zE,BufferAttribute:()=>Nv,BufferGeometry:()=>$v,BufferGeometryLoader:()=>Yw,ByteType:()=>nm,Cache:()=>ow,Camera:()=>Aw,CameraHelper:()=>IE,CanvasTexture:()=>xx,CapsuleGeometry:()=>Dx,CatmullRomCurve3:()=>qx,CineonToneMapping:()=>3,CircleGeometry:()=>Ox,ClampToEdgeWrapping:()=>Up,Clock:()=>nE,Color:()=>Z,ColorKeyframeTrack:()=>ZC,ColorManagement:()=>qg,Compatibility:()=>Yh,CompressedArrayTexture:()=>vx,CompressedCubeTexture:()=>yx,CompressedTexture:()=>_x,CompressedTextureLoader:()=>hw,ConeGeometry:()=>Ax,ConstantAlphaFactor:()=>213,ConstantColorFactor:()=>211,Controls:()=>JE,CubeCamera:()=>fT,CubeDepthTexture:()=>wx,CubeReflectionMapping:()=>301,CubeRefractionMapping:()=>302,CubeTexture:()=>bx,CubeTextureLoader:()=>vw,CubeUVReflectionMapping:()=>306,CubicBezierCurve:()=>iS,CubicBezierCurve3:()=>aS,CubicInterpolant:()=>GC,CullFaceBack:()=>1,CullFaceFront:()=>2,CullFaceFrontBack:()=>3,CullFaceNone:()=>0,Curve:()=>Rx,CurvePath:()=>fS,CustomBlending:()=>5,CustomToneMapping:()=>5,CylinderGeometry:()=>kx,Cylindrical:()=>iE,Data3DTexture:()=>l_,DataArrayTexture:()=>s_,DataTexture:()=>ib,DataTextureLoader:()=>yw,DataUtils:()=>kv,DecrementStencilOp:()=>Ah,DecrementWrapStencilOp:()=>Mh,DefaultLoadingManager:()=>lw,DepthFormat:()=>_m,DepthStencilFormat:()=>vm,DepthTexture:()=>Cx,DetachedBindMode:()=>Vp,DirectionalLight:()=>Vw,DirectionalLightHelper:()=>NE,DiscreteInterpolant:()=>qC,DodecahedronGeometry:()=>Mx,DoubleSide:()=>2,DstAlphaFactor:()=>206,DstColorFactor:()=>208,DynamicCopyUsage:()=>Vh,DynamicDrawUsage:()=>Fh,DynamicReadUsage:()=>Rh,EdgesGeometry:()=>Lx,EllipseCurve:()=>zx,EqualCompare:()=>514,EqualDepth:()=>4,EqualStencilFunc:()=>514,EquirectangularReflectionMapping:()=>303,EquirectangularRefractionMapping:()=>304,Euler:()=>x_,EventDispatcher:()=>dg,ExternalTexture:()=>Tx,ExtrudeGeometry:()=>QS,FileLoader:()=>pw,Float16BufferAttribute:()=>Vv,Float32BufferAttribute:()=>Q,FloatType:()=>sm,Fog:()=>J_,FogExp2:()=>q_,FramebufferTexture:()=>gx,FrontSide:()=>0,Frustum:()=>wb,FrustumArray:()=>Db,GLBufferAttribute:()=>ZT,GLSL1:()=>`100`,GLSL3:()=>Uh,GreaterCompare:()=>516,GreaterDepth:()=>6,GreaterEqualCompare:()=>518,GreaterEqualDepth:()=>5,GreaterEqualStencilFunc:()=>518,GreaterStencilFunc:()=>516,GridHelper:()=>OE,Group:()=>z_,HTMLTexture:()=>Sx,HalfFloatType:()=>cm,HemisphereLight:()=>Sw,HemisphereLightHelper:()=>DE,IcosahedronGeometry:()=>tC,ImageBitmapLoader:()=>nT,ImageLoader:()=>_w,ImageUtils:()=>Zg,IncrementStencilOp:()=>kh,IncrementWrapStencilOp:()=>jh,InstancedBufferAttribute:()=>cb,InstancedBufferGeometry:()=>Jw,InstancedInterleavedBuffer:()=>XT,InstancedMesh:()=>gb,Int16BufferAttribute:()=>Lv,Int32BufferAttribute:()=>zv,Int8BufferAttribute:()=>Pv,IntType:()=>am,InterleavedBuffer:()=>ey,InterleavedBufferAttribute:()=>ny,Interpolant:()=>WC,InterpolateBezier:()=>ph,InterpolateDiscrete:()=>uh,InterpolateLinear:()=>dh,InterpolateSmooth:()=>fh,InterpolationSamplingMode:()=>Jh,InterpolationSamplingType:()=>qh,InvertStencilOp:()=>Nh,KeepStencilOp:()=>Dh,KeyframeTrack:()=>YC,LOD:()=>Cy,LatheGeometry:()=>nC,Layers:()=>S_,LessCompare:()=>513,LessDepth:()=>2,LessEqualCompare:()=>515,LessEqualDepth:()=>3,LessEqualStencilFunc:()=>515,LessStencilFunc:()=>513,Light:()=>xw,LightProbe:()=>Gw,Line:()=>tx,Line3:()=>hE,LineBasicMaterial:()=>qb,LineCurve:()=>oS,LineCurve3:()=>sS,LineDashedMaterial:()=>IC,LineLoop:()=>ox,LineSegments:()=>ax,LinearFilter:()=>Xp,LinearInterpolant:()=>KC,LinearMipMapLinearFilter:()=>em,LinearMipMapNearestFilter:()=>Qp,LinearMipmapLinearFilter:()=>$p,LinearMipmapNearestFilter:()=>Zp,LinearSRGBColorSpace:()=>wh,LinearToneMapping:()=>1,LinearTransfer:()=>Th,Loader:()=>uw,LoaderUtils:()=>qw,LoadingManager:()=>cw,LoopOnce:()=>sh,LoopPingPong:()=>lh,LoopRepeat:()=>ch,MOUSE:()=>Rp,Material:()=>iy,MaterialBlending:()=>6,MaterialLoader:()=>Kw,MathUtils:()=>Rg,Matrix2:()=>aE,Matrix3:()=>Hg,Matrix4:()=>d_,MaxEquation:()=>104,Mesh:()=>Wy,MeshBasicMaterial:()=>My,MeshDepthMaterial:()=>NC,MeshDistanceMaterial:()=>PC,MeshLambertMaterial:()=>MC,MeshMatcapMaterial:()=>FC,MeshNormalMaterial:()=>jC,MeshPhongMaterial:()=>kC,MeshPhysicalMaterial:()=>OC,MeshStandardMaterial:()=>DC,MeshToonMaterial:()=>AC,MinEquation:()=>103,MirroredRepeatWrapping:()=>Wp,MixOperation:()=>1,MultiplyBlending:()=>4,MultiplyOperation:()=>0,NearestFilter:()=>Gp,NearestMipMapLinearFilter:()=>Yp,NearestMipMapNearestFilter:()=>qp,NearestMipmapLinearFilter:()=>Jp,NearestMipmapNearestFilter:()=>Kp,NeutralToneMapping:()=>7,NeverCompare:()=>512,NeverDepth:()=>0,NeverStencilFunc:()=>512,NoBlending:()=>0,NoColorSpace:()=>``,NoNormalPacking:()=>``,NoToneMapping:()=>0,NormalAnimationBlendMode:()=>_h,NormalBlending:()=>1,NormalGAPacking:()=>`ga`,NormalRGPacking:()=>`rg`,NotEqualCompare:()=>517,NotEqualDepth:()=>7,NotEqualStencilFunc:()=>517,NumberKeyframeTrack:()=>QC,Object3D:()=>R_,ObjectLoader:()=>Zw,ObjectSpaceNormalMap:()=>1,OctahedronGeometry:()=>rC,OneFactor:()=>201,OneMinusConstantAlphaFactor:()=>214,OneMinusConstantColorFactor:()=>212,OneMinusDstAlphaFactor:()=>207,OneMinusDstColorFactor:()=>209,OneMinusSrcAlphaFactor:()=>205,OneMinusSrcColorFactor:()=>
23203,OrthographicCamera:()=>zw,PCFShadowMap:()=>1,PCFSoftShadowMap:()=>2,PMREMGenerator:()=>TD,Path:()=>pS,PerspectiveCamera:()=>Pw,Plane:()=>bb,PlaneGeometry:()=>iC,PlaneHelper:()=>VE,PointLight:()=>Rw,PointLightHelper:()=>CE,Points:()=>fx,PointsMaterial:()=>sx,PolarGridHelper:()=>kE,PolyhedronGeometry:()=>jx,PositionalAudio:()=>DT,PropertyBinding:()=>VT,PropertyMixer:()=>kT,QuadraticBezierCurve:()=>cS,QuadraticBezierCurve3:()=>lS,Quaternion:()=>zg,QuaternionKeyframeTrack:()=>ew,QuaternionLinearInterpolant:()=>$C,R11_EAC_Format:()=>Im,RED_GREEN_RGTC2_Format:()=>ah,RED_RGTC1_Format:()=>rh,REVISION:()=>`184`,RG11_EAC_Format:()=>Rm,RGBADepthPacking:()=>bh,RGBAFormat:()=>gm,RGBAIntegerFormat:()=>wm,RGBA_ASTC_10x10_Format:()=>Zm,RGBA_ASTC_10x5_Format:()=>Jm,RGBA_ASTC_10x6_Format:()=>Ym,RGBA_ASTC_10x8_Format:()=>Xm,RGBA_ASTC_12x10_Format:()=>Qm,RGBA_ASTC_12x12_Format:()=>$m,RGBA_ASTC_4x4_Format:()=>Bm,RGBA_ASTC_5x4_Format:()=>Vm,RGBA_ASTC_5x5_Format:()=>Hm,RGBA_ASTC_6x5_Format:()=>Um,RGBA_ASTC_6x6_Format:()=>Wm,RGBA_ASTC_8x5_Format:()=>Gm,RGBA_ASTC_8x6_Format:()=>Km,RGBA_ASTC_8x8_Format:()=>qm,RGBA_BPTC_Format:()=>eh,RGBA_ETC2_EAC_Format:()=>Fm,RGBA_PVRTC_2BPPV1_Format:()=>Mm,RGBA_PVRTC_4BPPV1_Format:()=>jm,RGBA_S3TC_DXT1_Format:()=>Em,RGBA_S3TC_DXT3_Format:()=>Dm,RGBA_S3TC_DXT5_Format:()=>Om,RGBDepthPacking:()=>xh,RGBFormat:()=>hm,RGBIntegerFormat:()=>Cm,RGB_BPTC_SIGNED_Format:()=>th,RGB_BPTC_UNSIGNED_Format:()=>nh,RGB_ETC1_Format:()=>Nm,RGB_ETC2_Format:()=>Pm,RGB_PVRTC_2BPPV1_Format:()=>Am,RGB_PVRTC_4BPPV1_Format:()=>km,RGB_S3TC_DXT1_Format:()=>Tm,RGDepthPacking:()=>Sh,RGFormat:()=>xm,RGIntegerFormat:()=>Sm,RawShaderMaterial:()=>EC,Ray:()=>jy,Raycaster:()=>$T,RectAreaLight:()=>Uw,RedFormat:()=>ym,RedIntegerFormat:()=>bm,ReinhardToneMapping:()=>2,RenderTarget:()=>a_,RenderTarget3D:()=>KT,RepeatWrapping:()=>Hp,ReplaceStencilOp:()=>Oh,ReverseSubtractEquation:()=>102,RingGeometry:()=>aC,SIGNED_R11_EAC_Format:()=>Lm,SIGNED_RED_GREEN_RGTC2_Format:()=>oh,SIGNED_RED_RGTC1_Format:()=>ih,SIGNED_RG11_EAC_Format:()=>zm,SRGBColorSpace:()=>Ch,SRGBTransfer:()=>Eh,Scene:()=>Y_,ShaderChunk:()=>iD,ShaderLib:()=>aD,ShaderMaterial:()=>TC,ShadowMaterial:()=>gC,Shape:()=>mS,ShapeGeometry:()=>oC,ShapePath:()=>qE,ShapeUtils:()=>YS,ShortType:()=>rm,Skeleton:()=>sb,SkeletonHelper:()=>xE,SkinnedMesh:()=>nb,Source:()=>$g,Sphere:()=>Gv,SphereGeometry:()=>cC,Spherical:()=>rE,SphericalHarmonics3:()=>Ww,SplineCurve:()=>uS,SpotLight:()=>Iw,SpotLightHelper:()=>_E,Sprite:()=>yy,SpriteMaterial:()=>ay,SrcAlphaFactor:()=>204,SrcAlphaSaturateFactor:()=>210,SrcColorFactor:()=>202,StaticCopyUsage:()=>Bh,StaticDrawUsage:()=>Ph,StaticReadUsage:()=>Lh,StereoCamera:()=>lT,StreamCopyUsage:()=>Hh,StreamDrawUsage:()=>Ih,StreamReadUsage:()=>zh,StringKeyframeTrack:()=>tw,SubtractEquation:()=>101,SubtractiveBlending:()=>3,TOUCH:()=>zp,TangentSpaceNormalMap:()=>0,TetrahedronGeometry:()=>lC,Texture:()=>r_,TextureLoader:()=>bw,TextureUtils:()=>eD,Timer:()=>mT,TimestampQuery:()=>Kh,TorusGeometry:()=>uC,TorusKnotGeometry:()=>dC,Triangle:()=>lv,TriangleFanDrawMode:()=>2,TriangleStripDrawMode:()=>1,TrianglesDrawMode:()=>0,TubeGeometry:()=>fC,UVMapping:()=>300,Uint16BufferAttribute:()=>Rv,Uint32BufferAttribute:()=>Bv,Uint8BufferAttribute:()=>Fv,Uint8ClampedBufferAttribute:()=>Iv,Uniform:()=>qT,UniformsGroup:()=>YT,UniformsLib:()=>$,UniformsUtils:()=>SC,UnsignedByteType:()=>tm,UnsignedInt101111Type:()=>pm,UnsignedInt248Type:()=>dm,UnsignedInt5999Type:()=>fm,UnsignedIntType:()=>om,UnsignedShort4444Type:()=>lm,UnsignedShort5551Type:()=>um,UnsignedShortType:()=>im,VSMShadowMap:()=>3,Vector2:()=>Y,Vector3:()=>X,Vector4:()=>i_,VectorKeyframeTrack:()=>nw,VideoFrameTexture:()=>hx,VideoTexture:()=>mx,WebGL3DRenderTarget:()=>u_,WebGLArrayRenderTarget:()=>c_,WebGLCoordinateSystem:()=>Wh,WebGLCubeRenderTarget:()=>PD,WebGLRenderTarget:()=>o_,WebGLRenderer:()=>vA,WebGLUtils:()=>oA,WebGPUCoordinateSystem:()=>Gh,WebXRController:()=>V_,WireframeGeometry:()=>pC,WrapAroundEnding:()=>gh,ZeroCurvatureEnding:()=>mh,ZeroFactor:()=>200,ZeroSlopeEnding:()=>hh,ZeroStencilOp:()=>0,createCanvasElement:()=>tg,error:()=>J,getConsoleFunction:()=>ag,log:()=>
vendor: 4,667 bytes, lines 23-82
23og,setConsoleFunction:()=>ig,warn:()=>q,warnOnce:()=>cg});function nD(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){t!==!0&&n!==null&&e!==null&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e!==null&&e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function rD(e){let t=new WeakMap;function n(t,n){let r=t.array,i=t.usage,a=r.byteLength,o=e.createBuffer();e.bindBuffer(n,o),e.bufferData(n,r,i),t.onUploadCallback();let s;if(r instanceof Float32Array)s=e.FLOAT;else if(typeof Float16Array<`u`&&r instanceof Float16Array)s=e.HALF_FLOAT;else if(r instanceof Uint16Array)s=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(r instanceof Int16Array)s=e.SHORT;else if(r instanceof Uint32Array)s=e.UNSIGNED_INT;else if(r instanceof Int32Array)s=e.INT;else if(r instanceof Int8Array)s=e.BYTE;else if(r instanceof Uint8Array)s=e.UNSIGNED_BYTE;else if(r instanceof Uint8ClampedArray)s=e.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+r);return{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version,size:a}}function r(t,n,r){let i=n.array,a=n.updateRanges;if(e.bindBuffer(r,t),a.length===0)e.bufferSubData(r,0,i);else{a.sort((e,t)=>e.start-t.start);let t=0;for(let e=1;e<a.length;e++){let n=a[t],r=a[e];r.start<=n.start+n.count+1?n.count=Math.max(n.count,r.start+r.count-n.start):(++t,a[t]=r)}a.length=t+1;for(let t=0,n=a.length;t<n;t++){let n=a[t];e.bufferSubData(r,n.start*i.BYTES_PER_ELEMENT,i,n.start,n.count)}n.clearUpdateRanges()}n.onUploadCallback()}function i(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)}function a(n){n.isInterleavedBufferAttribute&&(n=n.data);let r=t.get(n);r&&(e.deleteBuffer(r.buffer),t.delete(n))}function o(e,i){if(e.isInterleavedBufferAttribute&&(e=e.data),e.isGLBufferAttribute){let n=t.get(e);(!n||n.version<e.version)&&t.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version});return}let a=t.get(e);if(a===void 0)t.set(e,n(e,i));else if(a.version<e.version){if(a.size!==e.array.byteLength)throw 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(a.buffer,e,i),a.version=e.version}}return{get:i,remove:a,update:o}}var iD={alphahash_fragment:`#ifdef USE_ALPHAHASH
24	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
25#endif`,alphahash_pars_fragment:`#ifdef USE_ALPHAHASH
26	const float ALPHA_HASH_SCALE = 0.05;
27	float hash2D( vec2 value ) {
28		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
29	}
30	float hash3D( vec3 value ) {
31		return hash2D( vec2( hash2D( value.xy ), value.z ) );
32	}
33	float getAlphaHashThreshold( vec3 position ) {
34		float maxDeriv = max(
35			length( dFdx( position.xyz ) ),
36			length( dFdy( position.xyz ) )
37		);
38		float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
39		vec2 pixScales = vec2(
40			exp2( floor( log2( pixScale ) ) ),
41			exp2( ceil( log2( pixScale ) ) )
42		);
43		vec2 alpha = vec2(
44			hash3D( floor( pixScales.x * position.xyz ) ),
45			hash3D( floor( pixScales.y * position.xyz ) )
46		);
47		float lerpFactor = fract( log2( pixScale ) );
48		float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
49		float a = min( lerpFactor, 1.0 - lerpFactor );
50		vec3 cases = vec3(
51			x * x / ( 2.0 * a * ( 1.0 - a ) ),
52			( x - 0.5 * a ) / ( 1.0 - a ),
53			1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
54		);
55		float threshold = ( x < ( 1.0 - a ) )
56			? ( ( x < a ) ? cases.x : cases.y )
57			: cases.z;
58		return clamp( threshold , 1.0e-6, 1.0 );
59	}
60#endif`,alphamap_fragment:`#ifdef USE_ALPHAMAP
61	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
62#endif`,alphamap_pars_fragment:`#ifdef USE_ALPHAMAP
63	uniform sampler2D alphaMap;
64#endif`,alphatest_fragment:`#ifdef USE_ALPHATEST
65	#ifdef ALPHA_TO_COVERAGE
66	diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
67	if ( diffuseColor.a == 0.0 ) discard;
68	#else
69	if ( diffuseColor.a < alphaTest ) discard;
70	#endif
71#endif`,alphatest_pars_fragment:`#ifdef USE_ALPHATEST
72	uniform float alphaTest;
73#endif`,aomap_fragment:`#ifdef USE_AOMAP
74	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
75	reflectedLight.indirectDiffuse *= ambientOcclusion;
76	#if defined( USE_CLEARCOAT ) 
77		clearcoatSpecularIndirect *= ambientOcclusion;
78	#endif
79	#if defined( USE_SHEEN ) 
80		sheenSpecularIndirect *= ambientOcclusion;
81	#endif
82	#if defined( USE_ENVMAP ) && defined( STANDARD )
83		float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
84		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
85	#endif
86#endif`,aomap_pars_fragment:`#ifdef USE_AOMAP
87	uniform sampler2D aoMap;
88	uniform float aoMapIntensity;
89#endif`,batching_pars_vertex:`#ifdef USE_BATCHING
90	#if ! defined( GL_ANGLE_multi_draw )
91	#define gl_DrawID _gl_DrawID
92	uniform int _gl_DrawID;
93	#endif
94	uniform highp sampler2D batchingTexture;
95	uniform highp usampler2D batchingIdTexture;
96	mat4 getBatchingMatrix( const in float i ) {
97		int size = textureSize( batchingTexture, 0 ).x;
98		int j = int( i ) * 4;
99		int x = j % size;
100		int y = j / size;
101		vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
102		vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
103		vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
104		vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
105		return mat4( v1, v2, v3, v4 );
106	}
107	float getIndirectIndex( const in int i ) {
108		int size = textureSize( batchingIdTexture, 0 ).x;
109		int x = i % size;
110		int y = i / size;
111		return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );
112	}
113#endif
114#ifdef USE_BATCHING_COLOR
115	uniform sampler2D batchingColorTexture;
116	vec4 getBatchingColor( const in float i ) {
117		int size = textureSize( batchingColorTexture, 0 ).x;
118		int j = int( i );
119		int x = j % size;
120		int y = j / size;
121		return texelFetch( batchingColorTexture, ivec2( x, y ), 0 );
122	}
123#endif`,batching_vertex:`#ifdef USE_BATCHING
124	mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );
125#endif`,begin_vertex:`vec3 transformed = vec3( position );
126#ifdef USE_ALPHAHASH
127	vPosition = vec3( position );
128#endif`,beginnormal_vertex:`vec3 objectNormal = vec3( normal );
129#ifdef USE_TANGENT
130	vec3 objectTangent = vec3( tangent.xyz );
131#endif`,bsdfs:`float G_BlinnPhong_Implicit( ) {
132	return 0.25;
133}
134float D_BlinnPhong( const in float shininess, const in float dotNH ) {
135	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
136}
137vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
138	vec3 halfDir = normalize( lightDir + viewDir );
139	float dotNH = saturate( dot( normal, halfDir ) );
140	float dotVH = saturate( dot( viewDir, halfDir ) );
141	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
142	float G = G_BlinnPhong_Implicit( );
143	float D = D_BlinnPhong( shininess, dotNH );
144	return F * ( G * D );
145} // validated`,iridescence_fragment:`#ifdef USE_IRIDESCENCE
146	const mat3 XYZ_TO_REC709 = mat3(
147		 3.2404542, -0.9692660,  0.0556434,
148		-1.5371385,  1.8760108, -0.2040259,
149		-0.4985314,  0.0415560,  1.0572252
150	);
151	vec3 Fresnel0ToIor( vec3 fresnel0 ) {
152		vec3 sqrtF0 = sqrt( fresnel0 );
153		return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
154	}
155	vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
156		return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
157	}
158	float IorToFresnel0( float transmittedIor, float incidentIor ) {
159		return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
160	}
161	vec3 evalSensitivity( float OPD, vec3 shift ) {
162		float phase = 2.0 * PI * OPD * 1.0e-9;
163		vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
164		vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
165		vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
166		vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
167		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 ) );
168		xyz /= 1.0685e-7;
169		vec3 rgb = XYZ_TO_REC709 * xyz;
170		return rgb;
171	}
172	vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
173		vec3 I;
174		float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
175		float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
176		float cosTheta2Sq = 1.0 - sinTheta2Sq;
177		if ( cosTheta2Sq < 0.0 ) {
178			return vec3( 1.0 );
179		}
180		float cosTheta2 = sqrt( cosTheta2Sq );
181		float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
182		float R12 = F_Schlick( R0, 1.0, cosTheta1 );
183		float T121 = 1.0 - R12;
184		float phi12 = 0.0;
185		if ( iridescenceIOR < outsideIOR ) phi12 = PI;
186		float phi21 = PI - phi12;
187		vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );		vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
188		vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
189		vec3 phi23 = vec3( 0.0 );
190		if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
191		if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
192		if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
193		float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
194		vec3 phi = vec3( phi21 ) + phi23;
195		vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
196		vec3 r123 = sqrt( R123 );
197		vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
198		vec3 C0 = R12 + Rs;
199		I = C0;
200		vec3 Cm = Rs - T121;
201		for ( int m = 1; m <= 2; ++ m ) {
202			Cm *= r123;
203			vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
204			I += Cm * Sm;
205		}
206		return max( I, vec3( 0.0 ) );
207	}
208#endif`,bumpmap_pars_fragment:`#ifdef USE_BUMPMAP
209	uniform sampler2D bumpMap;
210	uniform float bumpScale;
211	vec2 dHdxy_fwd() {
212		vec2 dSTdx = dFdx( vBumpMapUv );
213		vec2 dSTdy = dFdy( vBumpMapUv );
214		float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
215		float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
216		float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
217		return vec2( dBx, dBy );
218	}
219	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
220		vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
221		vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
222		vec3 vN = surf_norm;
223		vec3 R1 = cross( vSigmaY, vN );
224		vec3 R2 = cross( vN, vSigmaX );
225		float fDet = dot( vSigmaX, R1 ) * faceDirection;
226		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
227		return normalize( abs( fDet ) * surf_norm - vGrad );
228	}
229#endif`,clipping_planes_fragment:`#if NUM_CLIPPING_PLANES > 0
230	vec4 plane;
231	#ifdef ALPHA_TO_COVERAGE
232		float distanceToPlane, distanceGradient;
233		float clipOpacity = 1.0;
234		#pragma unroll_loop_start
235		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
236			plane = clippingPlanes[ i ];
237			distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
238			distanceGradient = fwidth( distanceToPlane ) / 2.0;
239			clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
240			if ( clipOpacity == 0.0 ) discard;
241		}
242		#pragma unroll_loop_end
243		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
244			float unionClipOpacity = 1.0;
245			#pragma unroll_loop_start
246			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
247				plane = clippingPlanes[ i ];
248				distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
249				distanceGradient = fwidth( distanceToPlane ) / 2.0;
250				unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
251			}
252			#pragma unroll_loop_end
253			clipOpacity *= 1.0 - unionClipOpacity;
254		#endif
255		diffuseColor.a *= clipOpacity;
256		if ( diffuseColor.a == 0.0 ) discard;
257	#else
258		#pragma unroll_loop_start
259		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
260			plane = clippingPlanes[ i ];
261			if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
262		}
263		#pragma unroll_loop_end
264		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
265			bool clipped = true;
266			#pragma unroll_loop_start
267			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
268				plane = clippingPlanes[ i ];
269				clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
270			}
271			#pragma unroll_loop_end
272			if ( clipped ) discard;
273		#endif
274	#endif
275#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0
276	varying vec3 vClipPosition;
277	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
278#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0
279	varying vec3 vClipPosition;
280#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0
281	vClipPosition = - mvPosition.xyz;
282#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA )
283	diffuseColor *= vColor;
284#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA )
285	varying vec4 vColor;
286#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
287	varying vec4 vColor;
288#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
289	vColor = vec4( 1.0 );
290#endif
291#ifdef USE_COLOR_ALPHA
292	vColor *= color;
293#elif defined( USE_COLOR )
294	vColor.rgb *= color;
295#endif
296#ifdef USE_INSTANCING_COLOR
297	vColor.rgb *= instanceColor.rgb;
298#endif
299#ifdef USE_BATCHING_COLOR
300	vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) );
301#endif`,common:`#define PI 3.141592653589793
302#define PI2 6.283185307179586
303#define PI_HALF 1.5707963267948966
304#define RECIPROCAL_PI 0.3183098861837907
305#define RECIPROCAL_PI2 0.15915494309189535
306#define EPSILON 1e-6
307#ifndef saturate
308#define saturate( a ) clamp( a, 0.0, 1.0 )
309#endif
310#define whiteComplement( a ) ( 1.0 - saturate( a ) )
311float pow2( const in float x ) { return x*x; }
312vec3 pow2( const in vec3 x ) { return x*x; }
313float pow3( const in float x ) { return x*x*x; }
314float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
315float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
316float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
317highp float rand( const in vec2 uv ) {
318	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
319	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
320	return fract( sin( sn ) * c );
321}
322#ifdef HIGH_PRECISION
323	float precisionSafeLength( vec3 v ) { return length( v ); }
324#else
325	float precisionSafeLength( vec3 v ) {
326		float maxComponent = max3( abs( v ) );
327		return length( v / maxComponent ) * maxComponent;
328	}
329#endif
330struct IncidentLight {
331	vec3 color;
332	vec3 direction;
333	bool visible;
334};
335struct ReflectedLight {
336	vec3 directDiffuse;
337	vec3 directSpecular;
338	vec3 indirectDiffuse;
339	vec3 indirectSpecular;
340};
341#ifdef USE_ALPHAHASH
342	varying vec3 vPosition;
343#endif
344vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
345	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
346}
347vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
348	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz )
vendor: 7,098 bytes, lines 348-530
348;
349}
350bool isPerspectiveMatrix( mat4 m ) {
351	return m[ 2 ][ 3 ] == - 1.0;
352}
353vec2 equirectUv( in vec3 dir ) {
354	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
355	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
356	return vec2( u, v );
357}
358vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
359	return RECIPROCAL_PI * diffuseColor;
360}
361vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
362	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
363	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
364}
365float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
366	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
367	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
368} // validated`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV
369	#define cubeUV_minMipLevel 4.0
370	#define cubeUV_minTileSize 16.0
371	float getFace( vec3 direction ) {
372		vec3 absDirection = abs( direction );
373		float face = - 1.0;
374		if ( absDirection.x > absDirection.z ) {
375			if ( absDirection.x > absDirection.y )
376				face = direction.x > 0.0 ? 0.0 : 3.0;
377			else
378				face = direction.y > 0.0 ? 1.0 : 4.0;
379		} else {
380			if ( absDirection.z > absDirection.y )
381				face = direction.z > 0.0 ? 2.0 : 5.0;
382			else
383				face = direction.y > 0.0 ? 1.0 : 4.0;
384		}
385		return face;
386	}
387	vec2 getUV( vec3 direction, float face ) {
388		vec2 uv;
389		if ( face == 0.0 ) {
390			uv = vec2( direction.z, direction.y ) / abs( direction.x );
391		} else if ( face == 1.0 ) {
392			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
393		} else if ( face == 2.0 ) {
394			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
395		} else if ( face == 3.0 ) {
396			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
397		} else if ( face == 4.0 ) {
398			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
399		} else {
400			uv = vec2( direction.x, direction.y ) / abs( direction.z );
401		}
402		return 0.5 * ( uv + 1.0 );
403	}
404	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
405		float face = getFace( direction );
406		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
407		mipInt = max( mipInt, cubeUV_minMipLevel );
408		float faceSize = exp2( mipInt );
409		highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
410		if ( face > 2.0 ) {
411			uv.y += faceSize;
412			face -= 3.0;
413		}
414		uv.x += face * faceSize;
415		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
416		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
417		uv.x *= CUBEUV_TEXEL_WIDTH;
418		uv.y *= CUBEUV_TEXEL_HEIGHT;
419		#ifdef texture2DGradEXT
420			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
421		#else
422			return texture2D( envMap, uv ).rgb;
423		#endif
424	}
425	#define cubeUV_r0 1.0
426	#define cubeUV_m0 - 2.0
427	#define cubeUV_r1 0.8
428	#define cubeUV_m1 - 1.0
429	#define cubeUV_r4 0.4
430	#define cubeUV_m4 2.0
431	#define cubeUV_r5 0.305
432	#define cubeUV_m5 3.0
433	#define cubeUV_r6 0.21
434	#define cubeUV_m6 4.0
435	float roughnessToMip( float roughness ) {
436		float mip = 0.0;
437		if ( roughness >= cubeUV_r1 ) {
438			mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
439		} else if ( roughness >= cubeUV_r4 ) {
440			mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
441		} else if ( roughness >= cubeUV_r5 ) {
442			mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
443		} else if ( roughness >= cubeUV_r6 ) {
444			mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
445		} else {
446			mip = - 2.0 * log2( 1.16 * roughness );		}
447		return mip;
448	}
449	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
450		float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
451		float mipF = fract( mip );
452		float mipInt = floor( mip );
453		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
454		if ( mipF == 0.0 ) {
455			return vec4( color0, 1.0 );
456		} else {
457			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
458			return vec4( mix( color0, color1, mipF ), 1.0 );
459		}
460	}
461#endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal;
462#ifdef USE_TANGENT
463	vec3 transformedTangent = objectTangent;
464#endif
465#ifdef USE_BATCHING
466	mat3 bm = mat3( batchingMatrix );
467	transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
468	transformedNormal = bm * transformedNormal;
469	#ifdef USE_TANGENT
470		transformedTangent = bm * transformedTangent;
471	#endif
472#endif
473#ifdef USE_INSTANCING
474	mat3 im = mat3( instanceMatrix );
475	transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
476	transformedNormal = im * transformedNormal;
477	#ifdef USE_TANGENT
478		transformedTangent = im * transformedTangent;
479	#endif
480#endif
481transformedNormal = normalMatrix * transformedNormal;
482#ifdef FLIP_SIDED
483	transformedNormal = - transformedNormal;
484#endif
485#ifdef USE_TANGENT
486	transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
487	#ifdef FLIP_SIDED
488		transformedTangent = - transformedTangent;
489	#endif
490#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP
491	uniform sampler2D displacementMap;
492	uniform float displacementScale;
493	uniform float displacementBias;
494#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP
495	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
496#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP
497	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
498	#ifdef DECODE_VIDEO_TEXTURE_EMISSIVE
499		emissiveColor = sRGBTransferEOTF( emissiveColor );
500	#endif
501	totalEmissiveRadiance *= emissiveColor.rgb;
502#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP
503	uniform sampler2D emissiveMap;
504#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) {
505	return value;
506}
507vec4 sRGBTransferEOTF( in vec4 value ) {
508	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 );
509}
510vec4 sRGBTransferOETF( in vec4 value ) {
511	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 );
512}`,envmap_fragment:`#ifdef USE_ENVMAP
513	#ifdef ENV_WORLDPOS
514		vec3 cameraToFrag;
515		if ( isOrthographic ) {
516			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
517		} else {
518			cameraToFrag = normalize( vWorldPosition - cameraPosition );
519		}
520		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
521		#ifdef ENVMAP_MODE_REFLECTION
522			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
523		#else
524			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
525		#endif
526	#else
527		vec3 reflectVec = vReflect;
528	#endif
529	#ifdef ENVMAP_TYPE_CUBE
530		vec4 envColor = textureCube( envMap, envMapRotation * 
530reflectVec );
531		#ifdef ENVMAP_BLENDING_MULTIPLY
532			outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
533		#elif defined( ENVMAP_BLENDING_MIX )
534			outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
535		#elif defined( ENVMAP_BLENDING_ADD )
536			outgoingLight += envColor.xyz * specularStrength * reflectivity;
537		#endif
538	#endif
539#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP
540	uniform float envMapIntensity;
541	uniform mat3 envMapRotation;
542	#ifdef ENVMAP_TYPE_CUBE
543		uniform samplerCube envMap;
544	#else
545		uniform sampler2D envMap;
546	#endif
547#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP
548	uniform float reflectivity;
549	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
550		#define ENV_WORLDPOS
551	#endif
552	#ifdef ENV_WORLDPOS
553		varying vec3 vWorldPosition;
554		uniform float refractionRatio;
555	#else
556		varying vec3 vReflect;
557	#endif
558#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP
559	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
560		#define ENV_WORLDPOS
561	#endif
562	#ifdef ENV_WORLDPOS
563		
564		varying vec3 vWorldPosition;
565	#else
566		varying vec3 vReflect;
567		uniform float refractionRatio;
568	#endif
569#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP
570	vec3 getIBLIrradiance( const in vec3 normal ) {
571		#ifdef ENVMAP_TYPE_CUBE_UV
572			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
573			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );
574			return PI * envMapColor.rgb * envMapIntensity;
575		#else
576			return vec3( 0.0 );
577		#endif
578	}
579	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
580		#ifdef ENVMAP_TYPE_CUBE_UV
581			vec3 reflectVec = reflect( - viewDir, normal );
582			reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) 
vendor: 8,183 bytes, lines 582-786
582) );
583			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
584			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );
585			return envMapColor.rgb * envMapIntensity;
586		#else
587			return vec3( 0.0 );
588		#endif
589	}
590	#ifdef USE_ANISOTROPY
591		vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
592			#ifdef ENVMAP_TYPE_CUBE_UV
593				vec3 bentNormal = cross( bitangent, viewDir );
594				bentNormal = normalize( cross( bentNormal, bitangent ) );
595				bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
596				return getIBLRadiance( viewDir, bentNormal, roughness );
597			#else
598				return vec3( 0.0 );
599			#endif
600		}
601	#endif
602#endif`,envmap_vertex:`#ifdef USE_ENVMAP
603	#ifdef ENV_WORLDPOS
604		vWorldPosition = worldPosition.xyz;
605	#else
606		vec3 cameraToVertex;
607		if ( isOrthographic ) {
608			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
609		} else {
610			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
611		}
612		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
613		#ifdef ENVMAP_MODE_REFLECTION
614			vReflect = reflect( cameraToVertex, worldNormal );
615		#else
616			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
617		#endif
618	#endif
619#endif`,fog_vertex:`#ifdef USE_FOG
620	vFogDepth = - mvPosition.z;
621#endif`,fog_pars_vertex:`#ifdef USE_FOG
622	varying float vFogDepth;
623#endif`,fog_fragment:`#ifdef USE_FOG
624	#ifdef FOG_EXP2
625		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
626	#else
627		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
628	#endif
629	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
630#endif`,fog_pars_fragment:`#ifdef USE_FOG
631	uniform vec3 fogColor;
632	varying float vFogDepth;
633	#ifdef FOG_EXP2
634		uniform float fogDensity;
635	#else
636		uniform float fogNear;
637		uniform float fogFar;
638	#endif
639#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP
640	uniform sampler2D gradientMap;
641#endif
642vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
643	float dotNL = dot( normal, lightDirection );
644	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
645	#ifdef USE_GRADIENTMAP
646		return vec3( texture2D( gradientMap, coord ).r );
647	#else
648		vec2 fw = fwidth( coord ) * 0.5;
649		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
650	#endif
651}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP
652	uniform sampler2D lightMap;
653	uniform float lightMapIntensity;
654#endif`,lights_lambert_fragment:`LambertMaterial material;
655material.diffuseColor = diffuseColor.rgb;
656material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition;
657struct LambertMaterial {
658	vec3 diffuseColor;
659	float specularStrength;
660};
661void 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 ) {
662	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
663	vec3 irradiance = dotNL * directLight.color;
664	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
665}
666void 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 ) {
667	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
668}
669#define RE_Direct				RE_Direct_Lambert
670#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow;
671uniform vec3 ambientLightColor;
672#if defined( USE_LIGHT_PROBES )
673	uniform vec3 lightProbe[ 9 ];
674#endif
675vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
676	float x = normal.x, y = normal.y, z = normal.z;
677	vec3 result = shCoefficients[ 0 ] * 0.886227;
678	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
679	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
680	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
681	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
682	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
683	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
684	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
685	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
686	return result;
687}
688vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
689	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
690	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
691	return irradiance;
692}
693vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
694	vec3 irradiance = ambientLightColor;
695	return irradiance;
696}
697float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
698	float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
699	if ( cutoffDistance > 0.0 ) {
700		distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
701	}
702	return distanceFalloff;
703}
704float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
705	return smoothstep( coneCosine, penumbraCosine, angleCosine );
706}
707#if NUM_DIR_LIGHTS > 0
708	struct DirectionalLight {
709		vec3 direction;
710		vec3 color;
711	};
712	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
713	void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
714		light.color = directionalLight.color;
715		light.direction = directionalLight.direction;
716		light.visible = true;
717	}
718#endif
719#if NUM_POINT_LIGHTS > 0
720	struct PointLight {
721		vec3 position;
722		vec3 color;
723		float distance;
724		float decay;
725	};
726	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
727	void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
728		vec3 lVector = pointLight.position - geometryPosition;
729		light.direction = normalize( lVector );
730		float lightDistance = length( lVector );
731		light.color = pointLight.color;
732		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
733		light.visible = ( light.color != vec3( 0.0 ) );
734	}
735#endif
736#if NUM_SPOT_LIGHTS > 0
737	struct SpotLight {
738		vec3 position;
739		vec3 direction;
740		vec3 color;
741		float distance;
742		float decay;
743		float coneCos;
744		float penumbraCos;
745	};
746	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
747	void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
748		vec3 lVector = spotLight.position - geometryPosition;
749		light.direction = normalize( lVector );
750		float angleCos = dot( light.direction, spotLight.direction );
751		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
752		if ( spotAttenuation > 0.0 ) {
753			float lightDistance = length( lVector );
754			light.color = spotLight.color * spotAttenuation;
755			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
756			light.visible = ( light.color != vec3( 0.0 ) );
757		} else {
758			light.color = vec3( 0.0 );
759			light.visible = false;
760		}
761	}
762#endif
763#if NUM_RECT_AREA_LIGHTS > 0
764	struct RectAreaLight {
765		vec3 color;
766		vec3 position;
767		vec3 halfWidth;
768		vec3 halfHeight;
769	};
770	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
771	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
772#endif
773#if NUM_HEMI_LIGHTS > 0
774	struct HemisphereLight {
775		vec3 direction;
776		vec3 skyColor;
777		vec3 groundColor;
778	};
779	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
780	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
781		float dotNL = dot( normal, hemiLight.direction );
782		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
783		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
784		return irradiance;
785	}
786#endif
786
787#include <lightprobes_pars_fragment>`,lights_toon_fragment:`ToonMaterial material;
788material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition;
789struct ToonMaterial {
790	vec3 diffuseColor;
791};
792void 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 ) {
793	vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
794	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
795}
796void 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 ) {
797	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
798}
799#define RE_Direct				RE_Direct_Toon
800#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material;
801material.diffuseColor = diffuseColor.rgb;
802material.specularColor = specular;
803material.specularShininess = shininess;
804material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition;
805struct BlinnPhongMaterial {
806	vec3 diffuseColor;
807	vec3 specularColor;
808	float specularShininess;
809	float specularStrength;
810};
811void 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 ) {
812	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
813	vec3 irradiance = dotNL * directLight.color;
814	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
815	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
816}
817void 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 ) {
818	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
819}
820#define RE_Direct				RE_Direct_BlinnPhong
821#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material;
822material.diffuseColor = diffuseColor.rgb;
823material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor );
824material.metalness = metalnessFactor;
825vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
826float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
827material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
828material.roughness = min( material.roughness, 1.0 );
829#ifdef IOR
830	material.ior = ior;
831	#ifdef USE_SPECULAR
832		float specularIntensityFactor = specularIntensity;
833		vec3 specularColorFactor = specularColor;
834		#ifdef USE_SPECULAR_COLORMAP
835			specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
836		#endif
837		#ifdef USE_SPECULAR_INTENSITYMAP
838			specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
839		#endif
840		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
841	#else
842		float specularIntensityFactor = 1.0;
843		vec3 specularColorFactor = vec3( 1.0 );
844		material.specularF90 = 1.0;
845	#endif
846	material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor;
847	material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor );
848#else
849	material.specularColor = vec3( 0.04 );
850	material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor );
851	material.specularF90 = 1.0;
852#endif
853#ifdef USE_CLEARCOAT
854	material.clearcoat = clearcoat;
855	material.clearcoatRoughness = clearcoatRoughness;
856	material.clearcoatF0 = vec3( 0.04 );
857	material.clearcoatF90 = 1.0;
858	#ifdef USE_CLEARCOATMAP
859		material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
860	#endif
861	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
862		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
863	#endif
864	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
865	material.clearcoatRoughness += geometryRoughness;
866	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
867#endif
868#ifdef USE_DISPERSION
869	material.dispersion = dispersion;
870#endif
871#ifdef USE_IRIDESCENCE
872	material.iridescence = iridescence;
873	material.iridescenceIOR = iridescenceIOR;
874	#ifdef USE_IRIDESCENCEMAP
875		material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
876	#endif
877	#ifdef USE_IRIDESCENCE_THICKNESSMAP
878		material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
879	#else
880		material.iridescenceThickness = iridescenceThicknessMaximum;
881	#endif
882#endif
883#ifdef USE_SHEEN
884	material.sheenColor = sheenColor;
885	#ifdef USE_SHEEN_COLORMAP
886		material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
887	#endif
888	material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 );
889	#ifdef USE_SHEEN_ROUGHNESSMAP
890		material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
891	#endif
892#endif
893#ifdef USE_ANISOTROPY
894	#ifdef USE_ANISOTROPYMAP
895		mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
896		vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
897		vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
898	#else
899		vec2 anisotropyV = anisotropyVector;
900	#endif
901	material.anisotropy = length( anisotropyV );
902	if( material.anisotropy == 0.0 ) {
903		anisotropyV = vec2( 1.0, 0.0 );
904	} else {
905		anisotropyV /= material.anisotropy;
906		material.anisotropy = saturate( material.anisotropy );
907	}
908	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
909	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
910	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
911#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT;
912struct PhysicalMaterial {
913	vec3 diffuseColor;
914	vec3 diffuseContribution;
915	vec3 specularColor;
916	vec3 specularColorBlended;
917	float roughness;
918	float metalness;
919	float specularF90;
920	float dispersion;
921	#ifdef USE_CLEARCOAT
922		float clearcoat;
923		float clearcoatRoughness;
924		vec3 clearcoatF0;
925		float clearcoatF90;
926	#endif
927	#ifdef USE_IRIDESCENCE
928		float iridescence;
929		float iridescenceIOR;
930		float iridescenceThickness;
931		vec3 iridescenceFresnel;
932		vec3 iridescenceF0;
933		vec3 iridescenceFresnelDielectric;
934		vec3 iridescenceFresnelMetallic;
935	#endif
936	#ifdef USE_SHEEN
937		vec3 sheenColor;
938		float sheenRoughness;
939	#endif
940	#ifdef IOR
941		float ior;
942	#endif
943	#ifdef USE_TRANSMISSION
944		float transmission;
945		float transmissionAlpha;
946		float thickness;
947		float attenuationDistance;
948		vec3 attenuationColor;
949	#endif
950	#ifdef USE_ANISOTROPY
951		float anisotropy;
952		float alphaT;
953		vec3 anisotropyT;
954		vec3 anisotropyB;
955	#endif
956};
957vec3 clearcoatSpecularDirect = vec3( 0.0 );
958vec3 clearcoatSpecularIndirect = vec3( 0.0 );
959vec3 sheenSpecularDirect = vec3( 0.0 );
960vec3 sheenSpecularIndirect = vec3(0.0 );
961vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
962    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
963    float x2 = x * x;
964    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
965    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
966}
967float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
968	float a2 = pow2( alpha );
969	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
970	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
971	return 0.5 / max( gv + gl, EPSILON );
972}
973float D_GGX( const in float alpha, const in float dotNH ) {
974	float a2 = pow2( alpha );
975	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
976	return RECIPROCAL_PI * a2 / pow2( denom );
977}
978#ifdef USE_ANISOTROPY
979	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 ) {
980		float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
981		float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
982		return 0.5 / max( gv + gl, EPSILON )
vendor: 3,169 bytes, lines 982-1057
982;
983	}
984	float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
985		float a2 = alphaT * alphaB;
986		highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
987		highp float v2 = dot( v, v );
988		float w2 = a2 / v2;
989		return RECIPROCAL_PI * a2 * pow2 ( w2 );
990	}
991#endif
992#ifdef USE_CLEARCOAT
993	vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
994		vec3 f0 = material.clearcoatF0;
995		float f90 = material.clearcoatF90;
996		float roughness = material.clearcoatRoughness;
997		float alpha = pow2( roughness );
998		vec3 halfDir = normalize( lightDir + viewDir );
999		float dotNL = saturate( dot( normal, lightDir ) );
1000		float dotNV = saturate( dot( normal, viewDir ) );
1001		float dotNH = saturate( dot( normal, halfDir ) );
1002		float dotVH = saturate( dot( viewDir, halfDir ) );
1003		vec3 F = F_Schlick( f0, f90, dotVH );
1004		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1005		float D = D_GGX( alpha, dotNH );
1006		return F * ( V * D );
1007	}
1008#endif
1009vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
1010	vec3 f0 = material.specularColorBlended;
1011	float f90 = material.specularF90;
1012	float roughness = material.roughness;
1013	float alpha = pow2( roughness );
1014	vec3 halfDir = normalize( lightDir + viewDir );
1015	float dotNL = saturate( dot( normal, lightDir ) );
1016	float dotNV = saturate( dot( normal, viewDir ) );
1017	float dotNH = saturate( dot( normal, halfDir ) );
1018	float dotVH = saturate( dot( viewDir, halfDir ) );
1019	vec3 F = F_Schlick( f0, f90, dotVH );
1020	#ifdef USE_IRIDESCENCE
1021		F = mix( F, material.iridescenceFresnel, material.iridescence );
1022	#endif
1023	#ifdef USE_ANISOTROPY
1024		float dotTL = dot( material.anisotropyT, lightDir );
1025		float dotTV = dot( material.anisotropyT, viewDir );
1026		float dotTH = dot( material.anisotropyT, halfDir );
1027		float dotBL = dot( material.anisotropyB, lightDir );
1028		float dotBV = dot( material.anisotropyB, viewDir );
1029		float dotBH = dot( material.anisotropyB, halfDir );
1030		float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
1031		float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
1032	#else
1033		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
1034		float D = D_GGX( alpha, dotNH );
1035	#endif
1036	return F * ( V * D );
1037}
1038vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
1039	const float LUT_SIZE = 64.0;
1040	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
1041	const float LUT_BIAS = 0.5 / LUT_SIZE;
1042	float dotNV = saturate( dot( N, V ) );
1043	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
1044	uv = uv * LUT_SCALE + LUT_BIAS;
1045	return uv;
1046}
1047float LTC_ClippedSphereFormFactor( const in vec3 f ) {
1048	float l = length( f );
1049	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
1050}
1051vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
1052	float x = dot( v1, v2 );
1053	float y = abs( x );
1054	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
1055	float b = 3.4175940 + ( 4.1616724 + y ) * y;
1056	float v = a / b;
1057	float theta_sintheta = ( x >
vendor: 4,203 bytes, lines 1057-1141
1057 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
1058	return cross( v1, v2 ) * theta_sintheta;
1059}
1060vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
1061	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
1062	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
1063	vec3 lightNormal = cross( v1, v2 );
1064	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
1065	vec3 T1, T2;
1066	T1 = normalize( V - N * dot( V, N ) );
1067	T2 = - cross( N, T1 );
1068	mat3 mat = mInv * transpose( mat3( T1, T2, N ) );
1069	vec3 coords[ 4 ];
1070	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
1071	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
1072	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
1073	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
1074	coords[ 0 ] = normalize( coords[ 0 ] );
1075	coords[ 1 ] = normalize( coords[ 1 ] );
1076	coords[ 2 ] = normalize( coords[ 2 ] );
1077	coords[ 3 ] = normalize( coords[ 3 ] );
1078	vec3 vectorFormFactor = vec3( 0.0 );
1079	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
1080	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
1081	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
1082	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
1083	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
1084	return vec3( result );
1085}
1086#if defined( USE_SHEEN )
1087float D_Charlie( float roughness, float dotNH ) {
1088	float alpha = pow2( roughness );
1089	float invAlpha = 1.0 / alpha;
1090	float cos2h = dotNH * dotNH;
1091	float sin2h = max( 1.0 - cos2h, 0.0078125 );
1092	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
1093}
1094float V_Neubelt( float dotNV, float dotNL ) {
1095	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
1096}
1097vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
1098	vec3 halfDir = normalize( lightDir + viewDir );
1099	float dotNL = saturate( dot( normal, lightDir ) );
1100	float dotNV = saturate( dot( normal, viewDir ) );
1101	float dotNH = saturate( dot( normal, halfDir ) );
1102	float D = D_Charlie( sheenRoughness, dotNH );
1103	float V = V_Neubelt( dotNV, dotNL );
1104	return sheenColor * ( D * V );
1105}
1106#endif
1107float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
1108	float dotNV = saturate( dot( normal, viewDir ) );
1109	float r2 = roughness * roughness;
1110	float rInv = 1.0 / ( roughness + 0.1 );
1111	float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv;
1112	float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv;
1113	float DG = exp( a * dotNV + b );
1114	return saturate( DG );
1115}
1116vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
1117	float dotNV = saturate( dot( normal, viewDir ) );
1118	vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg;
1119	return specularColor * fab.x + specularF90 * fab.y;
1120}
1121#ifdef USE_IRIDESCENCE
1122void 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 ) {
1123#else
1124void 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 ) {
1125#endif
1126	float dotNV = saturate( dot( normal, viewDir ) );
1127	vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg;
1128	#ifdef USE_IRIDESCENCE
1129		vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
1130	#else
1131		vec3 Fr = specularColor;
1132	#endif
1133	vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
1134	float Ess = fab.x + fab.y;
1135	float Ems = 1.0 - Ess;
1136	vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
1137	singleScatter += FssEss;
1138	multiScatter += Fms * Ems;
1139}
1140vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
1141	vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material );
vendor: 6,009 bytes, lines 1142-1240
1142	float dotNL = saturate( dot( normal, lightDir ) );
1143	float dotNV = saturate( dot( normal, viewDir ) );
1144	vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg;
1145	vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg;
1146	vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y;
1147	vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y;
1148	float Ess_V = dfgV.x + dfgV.y;
1149	float Ess_L = dfgL.x + dfgL.y;
1150	float Ems_V = 1.0 - Ess_V;
1151	float Ems_L = 1.0 - Ess_L;
1152	vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619;
1153	vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON );
1154	float compensationFactor = Ems_V * Ems_L;
1155	vec3 multiScatter = Fms * compensationFactor;
1156	return singleScatter + multiScatter;
1157}
1158#if NUM_RECT_AREA_LIGHTS > 0
1159	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 ) {
1160		vec3 normal = geometryNormal;
1161		vec3 viewDir = geometryViewDir;
1162		vec3 position = geometryPosition;
1163		vec3 lightPos = rectAreaLight.position;
1164		vec3 halfWidth = rectAreaLight.halfWidth;
1165		vec3 halfHeight = rectAreaLight.halfHeight;
1166		vec3 lightColor = rectAreaLight.color;
1167		float roughness = material.roughness;
1168		vec3 rectCoords[ 4 ];
1169		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
1170		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
1171		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
1172		vec2 uv = LTC_Uv( normal, viewDir, roughness );
1173		vec4 t1 = texture2D( ltc_1, uv );
1174		vec4 t2 = texture2D( ltc_2, uv );
1175		mat3 mInv = mat3(
1176			vec3( t1.x, 0, t1.y ),
1177			vec3(    0, 1,    0 ),
1178			vec3( t1.z, 0, t1.w )
1179		);
1180		vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y );
1181		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
1182		reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
1183		#ifdef USE_CLEARCOAT
1184			vec3 Ncc = geometryClearcoatNormal;
1185			vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness );
1186			vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat );
1187			vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat );
1188			mat3 mInvClearcoat = mat3(
1189				vec3( t1Clearcoat.x, 0, t1Clearcoat.y ),
1190				vec3(             0, 1,             0 ),
1191				vec3( t1Clearcoat.z, 0, t1Clearcoat.w )
1192			);
1193			vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y;
1194			clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords );
1195		#endif
1196	}
1197#endif
1198void 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 ) {
1199	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
1200	vec3 irradiance = dotNL * directLight.color;
1201	#ifdef USE_CLEARCOAT
1202		float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
1203		vec3 ccIrradiance = dotNLcc * directLight.color;
1204		clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
1205	#endif
1206	#ifdef USE_SHEEN
1207 
1208 		sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
1209 
1210 		float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1211 		float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness );
1212 
1213 		float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL );
1214 
1215 		irradiance *= sheenEnergyComp;
1216 
1217 	#endif
1218	reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material );
1219	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution );
1220}
1221void 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 ) {
1222	vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution );
1223	#ifdef USE_SHEEN
1224		float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1225		float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo;
1226		diffuse *= sheenEnergyComp;
1227	#endif
1228	reflectedLight.indirectDiffuse += diffuse;
1229}
1230void 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) {
1231	#ifdef USE_CLEARCOAT
1232		clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
1233	#endif
1234	#ifdef USE_SHEEN
1235		sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI;
1236 	#endif
1237	vec3 singleScatteringDielectric = vec3( 0.0 );
1238	vec3 multiScatteringDielectric = vec3( 0.0 );
1239	vec3 singleScatteringMetallic = vec3( 0.0 );
1240	vec3 multiScatteringMetallic = vec3( 0.0 );
vendor: 8,137 bytes, lines 1241-1383
1241	#ifdef USE_IRIDESCENCE
1242		computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric );
1243		computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic );
1244	#else
1245		computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric );
1246		computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic );
1247	#endif
1248	vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness );
1249	vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness );
1250	vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric;
1251	vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric );
1252	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
1253	vec3 indirectSpecular = radiance * singleScattering;
1254	indirectSpecular += multiScattering * cosineWeightedIrradiance;
1255	vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance;
1256	#ifdef USE_SHEEN
1257		float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
1258		float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo;
1259		indirectSpecular *= sheenEnergyComp;
1260		indirectDiffuse *= sheenEnergyComp;
1261	#endif
1262	reflectedLight.indirectSpecular += indirectSpecular;
1263	reflectedLight.indirectDiffuse += indirectDiffuse;
1264}
1265#define RE_Direct				RE_Direct_Physical
1266#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
1267#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
1268#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
1269float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
1270	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
1271}`,lights_fragment_begin:`
1272vec3 geometryPosition = - vViewPosition;
1273vec3 geometryNormal = normal;
1274vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
1275vec3 geometryClearcoatNormal = vec3( 0.0 );
1276#ifdef USE_CLEARCOAT
1277	geometryClearcoatNormal = clearcoatNormal;
1278#endif
1279#ifdef USE_IRIDESCENCE
1280	float dotNVi = saturate( dot( normal, geometryViewDir ) );
1281	if ( material.iridescenceThickness == 0.0 ) {
1282		material.iridescence = 0.0;
1283	} else {
1284		material.iridescence = saturate( material.iridescence );
1285	}
1286	if ( material.iridescence > 0.0 ) {
1287		material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
1288		material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor );
1289		material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness );
1290		material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
1291	}
1292#endif
1293IncidentLight directLight;
1294#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
1295	PointLight pointLight;
1296	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
1297	PointLightShadow pointLightShadow;
1298	#endif
1299	#pragma unroll_loop_start
1300	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
1301		pointLight = pointLights[ i ];
1302		getPointLightInfo( pointLight, geometryPosition, directLight );
1303		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) )
1304		pointLightShadow = pointLightShadows[ i ];
1305		directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
1306		#endif
1307		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1308	}
1309	#pragma unroll_loop_end
1310#endif
1311#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
1312	SpotLight spotLight;
1313	vec4 spotColor;
1314	vec3 spotLightCoord;
1315	bool inSpotLightMap;
1316	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
1317	SpotLightShadow spotLightShadow;
1318	#endif
1319	#pragma unroll_loop_start
1320	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
1321		spotLight = spotLights[ i ];
1322		getSpotLightInfo( spotLight, geometryPosition, directLight );
1323		#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1324		#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
1325		#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1326		#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
1327		#else
1328		#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
1329		#endif
1330		#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
1331			spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
1332			inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
1333			spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
1334			directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
1335		#endif
1336		#undef SPOT_LIGHT_MAP_INDEX
1337		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
1338		spotLightShadow = spotLightShadows[ i ];
1339		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
1340		#endif
1341		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1342	}
1343	#pragma unroll_loop_end
1344#endif
1345#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
1346	DirectionalLight directionalLight;
1347	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
1348	DirectionalLightShadow directionalLightShadow;
1349	#endif
1350	#pragma unroll_loop_start
1351	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
1352		directionalLight = directionalLights[ i ];
1353		getDirectionalLightInfo( directionalLight, directLight );
1354		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
1355		directionalLightShadow = directionalLightShadows[ i ];
1356		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
1357		#endif
1358		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1359	}
1360	#pragma unroll_loop_end
1361#endif
1362#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
1363	RectAreaLight rectAreaLight;
1364	#pragma unroll_loop_start
1365	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
1366		rectAreaLight = rectAreaLights[ i ];
1367		RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1368	}
1369	#pragma unroll_loop_end
1370#endif
1371#if defined( RE_IndirectDiffuse )
1372	vec3 iblIrradiance = vec3( 0.0 );
1373	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
1374	#if defined( USE_LIGHT_PROBES )
1375		irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
1376	#endif
1377	#if ( NUM_HEMI_LIGHTS > 0 )
1378		#pragma unroll_loop_start
1379		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
1380			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
1381		}
1382		#pragma unroll_loop_end
1383	#endif
1384	#ifdef USE_LIGHT_PROBES_GRID
1385		vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz;
1386		vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix );
1387		irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal );
1388	#endif
1389#endif
1390#if defined( RE_IndirectSpecular )
1391	vec3 radiance = vec3( 0.0 );
1392	vec3 clearcoatRadiance = vec3( 0.0 );
1393#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse )
1394	#ifdef USE_LIGHTMAP
1395		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
1396		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
1397		irradiance += lightMapIrradiance;
1398	#endif
1399	#if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV )
1400		#if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG )
1401			iblIrradiance += getIBLIrradiance( geometryNormal );
1402		#endif
1403	#endif
1404#endif
1405#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
1406	#ifdef USE_ANISOTROPY
1407		radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
1408	#else
1409		radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
1410	#endif
1411	#ifdef USE_CLEARCOAT
1412		clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
1413	#endif
1414#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse )
1415	#if defined( LAMBERT ) || defined( PHONG )
1416		irradiance += iblIrradiance;
1417	#endif
1418	RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1419#endif
1420#if defined( RE_IndirectSpecular )
1421	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
1422#endif`,lightprobes_pars_fragment:`#ifdef USE_LIGHT_PROBES_GRID
1423uniform highp sampler3D probesSH;
1424uniform vec3 probesMin;
1425uniform vec3 probesMax;
1426uniform vec3 probesResolution;
1427vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) {
1428	vec3 res = probesResolution;
1429	vec3 gridRange = probesMax - probesMin;
1430	vec3 resMinusOne = res - 1.0;
1431	vec3 probeSpacing = gridRange / resMinusOne;
1432	vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5;
1433	vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 );
1434	uvw = uvw * resMinusOne / res + 0.5 / res;
1435	float nz          = res.z;
1436	float paddedSlices = nz + 2.0;
1437	float atlasDepth  = 7.0 * paddedSlices;
1438	float uvZBase     = uvw.z * nz + 1.0;
1439	vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase                       ) / atlasDepth ) );
1440	vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase +       paddedSlices   ) / atlasDepth ) );
1441	vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices   ) / atlasDepth ) );
1442	vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices   ) / atlasDepth ) );
1443	vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices   ) / atlasDepth ) );
1444	vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices   ) / atlasDepth ) );
1445	vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices   ) / atlasDepth ) );
1446	vec3 c0 = s0.xyz;
1447	vec3 c1 = vec3( s0.w, s1.xy );
1448	vec3 c2 = vec3( s1.zw, s2.x );
1449	vec3 c3 = s2.yzw;
1450	vec3 c4 = s3.xyz;
1451	vec3 c5 = vec3( s3.w, s4.xy );
1452	vec3 c6 = vec3( s4.zw, s5.x );
1453	vec3 c7 = s5.yzw;
1454	vec3 c8 = s6.xyz;
1455	float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z;
1456	vec3 result = c0 * 0.886227;
1457	result += c1 * 2.0 * 0.511664 * y;
1458	result += c2 * 2.0 * 0.511664 * z;
1459	result += c3 * 2.0 * 0.511664 * x;
1460	result += c4 * 2.0 * 0.429043 * x * y;
1461	result += c5 * 2.0 * 0.429043 * y * z;
1462	result += c6 * ( 0.743125 * z * z - 0.247708 );
1463	result += c7 * 2.0 * 0.429043 * x * z;
1464	result += c8 * 0.429043 * ( x * x - y * y );
1465	return max( result, vec3( 0.0 ) );
1466}
1467#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )
1468	gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
1469#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER )
1470	uniform float logDepthBufFC;
1471	varying float vFragDepth;
1472	varying float vIsPerspective;
1473#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER
1474	varying float vFragDepth;
1475	varying float vIsPerspective;
1476#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER
1477	vFragDepth = 1.0 + gl_Position.w;
1478	vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
1479#endif`,map_fragment:`#ifdef USE_MAP
1480	vec4 sampledDiffuseColor = texture2D( map, vMapUv );
1481	#ifdef DECODE_VIDEO_TEXTURE
1482		sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );
1483	#endif
1484	diffuseColor *= sampledDiffuseColor;
1485#endif`,map_pars_fragment:`#ifdef USE_MAP
1486	uniform sampler2D map;
1487#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
1488	#if defined( USE_POINTS_UV )
1489		vec2 uv = vUv;
1490	#else
1491		vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
1492	#endif
1493#endif
1494#ifdef USE_MAP
1495	diffuseColor *= texture2D( map, uv );
1496#endif
1497#ifdef USE_ALPHAMAP
1498	diffuseColor.a *= texture2D( alphaMap, uv ).g;
1499#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV )
1500	varying vec2 vUv;
1501#else
1502	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
1503		uniform mat3 uvTransform;
1504	#endif
1505#endif
1506#ifdef USE_MAP
1507	uniform sampler2D map;
1508#endif
1509#ifdef USE_ALPHAMAP
1510	uniform sampler2D alphaMap;
1511#endif`,metalnessmap_fragment:`float metalnessFactor = metalness;
1512#ifdef USE_METALNESSMAP
1513	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
1514	metalnessFactor *= texelMetalness.b;
1515#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP
1516	uniform sampler2D metalnessMap;
1517#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH
1518	float morphTargetInfluences[ MORPHTARGETS_COUNT ];
1519	float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
1520	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1521		morphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
1522	}
1523#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS )
1524	vColor *= morphTargetBaseInfluence;
1525	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1526		#if defined( USE_COLOR_ALPHA )
1527			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
1528		#elif defined( USE_COLOR )
1529			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
1530		#endif
1531	}
1532#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS
1533	objectNormal *= morphTargetBaseInfluence;
1534	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1535		if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
1536	}
1537#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS
1538	#ifndef USE_INSTANCING_MORPH
1539		uniform float morphTargetBaseInfluence;
1540		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
1541	#endif
1542	uniform sampler2DArray morphTargetsTexture;
1543	uniform ivec2 morphTargetsTextureSize;
1544	vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
1545		int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
1546		int y = texelIndex / morphTargetsTextureSize.x;
1547		int x = texelIndex - y * morphTargetsTextureSize.x;
1548		ivec3 morphUV = ivec3( x, y, morphTargetIndex );
1549		return texelFetch( morphTargetsTexture, morphUV, 0 );
1550	}
1551#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS
1552	transformed *= morphTargetBaseInfluence;
1553	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
1554		if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
1555	}
1556#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
1557#ifdef FLAT_SHADED
1558	vec3 fdx = dFdx( vViewPosition );
1559	vec3 fdy = dFdy( vViewPosition );
1560	vec3 normal = normalize( cross( fdx, fdy ) );
1561#else
1562	vec3 normal = normalize( vNormal );
1563	#ifdef DOUBLE_SIDED
1564		normal *= faceDirection;
1565	#endif
1566#endif
1567#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
1568	#ifdef USE_TANGENT
1569		mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
1570	#else
1571		mat3 tbn = getTangentFrame( - vViewPosition, normal,
1572		#if defined( USE_NORMALMAP )
1573			vNormalMapUv
1574		#elif defined( USE_CLEARCOAT_NORMALMAP )
1575			vClearcoatNormalMapUv
1576		#else
1577			vUv
1578		#endif
1579		);
1580	#endif
1581	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
1582		tbn[0] *= faceDirection;
1583		tbn[1] *= faceDirection;
1584	#endif
1585#endif
1586#ifdef USE_CLEARCOAT_NORMALMAP
1587	#ifdef USE_TANGENT
1588		mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
1589	#else
1590		mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
1591	#endif
1592	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
1593		tbn2[0] *= faceDirection;
1594		tbn2[1] *= faceDirection;
1595	#endif
1596#endif
1597vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE
1598	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
1599	#ifdef FLIP_SIDED
1600		normal = - normal;
1601	#endif
1602	#ifdef DOUBLE_SIDED
1603		normal = normal * faceDirection;
1604	#endif
1605	normal = normalize( normalMatrix * normal );
1606#elif defined( USE_NORMALMAP_TANGENTSPACE )
1607	vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
1608	#if defined( USE_PACKED_NORMALMAP )
1609		mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) );
1610	#endif
vendor: 4,891 bytes, lines 1610-1743
1610
1611	mapN.xy *= normalScale;
1612	normal = normalize( tbn * mapN );
1613#elif defined( USE_BUMPMAP )
1614	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
1615#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED
1616	varying vec3 vNormal;
1617	#ifdef USE_TANGENT
1618		varying vec3 vTangent;
1619		varying vec3 vBitangent;
1620	#endif
1621#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED
1622	varying vec3 vNormal;
1623	#ifdef USE_TANGENT
1624		varying vec3 vTangent;
1625		varying vec3 vBitangent;
1626	#endif
1627#endif`,normal_vertex:`#ifndef FLAT_SHADED
1628	vNormal = normalize( transformedNormal );
1629	#ifdef USE_TANGENT
1630		vTangent = normalize( transformedTangent );
1631		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
1632	#endif
1633#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP
1634	uniform sampler2D normalMap;
1635	uniform vec2 normalScale;
1636#endif
1637#ifdef USE_NORMALMAP_OBJECTSPACE
1638	uniform mat3 normalMatrix;
1639#endif
1640#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
1641	mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
1642		vec3 q0 = dFdx( eye_pos.xyz );
1643		vec3 q1 = dFdy( eye_pos.xyz );
1644		vec2 st0 = dFdx( uv.st );
1645		vec2 st1 = dFdy( uv.st );
1646		vec3 N = surf_norm;
1647		vec3 q1perp = cross( q1, N );
1648		vec3 q0perp = cross( N, q0 );
1649		vec3 T = q1perp * st0.x + q0perp * st1.x;
1650		vec3 B = q1perp * st0.y + q0perp * st1.y;
1651		float det = max( dot( T, T ), dot( B, B ) );
1652		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
1653		return mat3( T * scale, B * scale, N );
1654	}
1655#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT
1656	vec3 clearcoatNormal = nonPerturbedNormal;
1657#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP
1658	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
1659	clearcoatMapN.xy *= clearcoatNormalScale;
1660	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
1661#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP
1662	uniform sampler2D clearcoatMap;
1663#endif
1664#ifdef USE_CLEARCOAT_NORMALMAP
1665	uniform sampler2D clearcoatNormalMap;
1666	uniform vec2 clearcoatNormalScale;
1667#endif
1668#ifdef USE_CLEARCOAT_ROUGHNESSMAP
1669	uniform sampler2D clearcoatRoughnessMap;
1670#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP
1671	uniform sampler2D iridescenceMap;
1672#endif
1673#ifdef USE_IRIDESCENCE_THICKNESSMAP
1674	uniform sampler2D iridescenceThicknessMap;
1675#endif`,opaque_fragment:`#ifdef OPAQUE
1676diffuseColor.a = 1.0;
1677#endif
1678#ifdef USE_TRANSMISSION
1679diffuseColor.a *= material.transmissionAlpha;
1680#endif
1681gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) {
1682	return normalize( normal ) * 0.5 + 0.5;
1683}
1684vec3 unpackRGBToNormal( const in vec3 rgb ) {
1685	return 2.0 * rgb.xyz - 1.0;
1686}
1687const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;
1688const float Inv255 = 1. / 255.;
1689const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );
1690const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );
1691const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );
1692const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );
1693vec4 packDepthToRGBA( const in float v ) {
1694	if( v <= 0.0 )
1695		return vec4( 0., 0., 0., 0. );
1696	if( v >= 1.0 )
1697		return vec4( 1., 1., 1., 1. );
1698	float vuf;
1699	float af = modf( v * PackFactors.a, vuf );
1700	float bf = modf( vuf * ShiftRight8, vuf );
1701	float gf = modf( vuf * ShiftRight8, vuf );
1702	return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );
1703}
1704vec3 packDepthToRGB( const in float v ) {
1705	if( v <= 0.0 )
1706		return vec3( 0., 0., 0. );
1707	if( v >= 1.0 )
1708		return vec3( 1., 1., 1. );
1709	float vuf;
1710	float bf = modf( v * PackFactors.b, vuf );
1711	float gf = modf( vuf * ShiftRight8, vuf );
1712	return vec3( vuf * Inv255, gf * PackUpscale, bf );
1713}
1714vec2 packDepthToRG( const in float v ) {
1715	if( v <= 0.0 )
1716		return vec2( 0., 0. );
1717	if( v >= 1.0 )
1718		return vec2( 1., 1. );
1719	float vuf;
1720	float gf = modf( v * 256., vuf );
1721	return vec2( vuf * Inv255, gf );
1722}
1723float unpackRGBAToDepth( const in vec4 v ) {
1724	return dot( v, UnpackFactors4 );
1725}
1726float unpackRGBToDepth( const in vec3 v ) {
1727	return dot( v, UnpackFactors3 );
1728}
1729float unpackRGToDepth( const in vec2 v ) {
1730	return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;
1731}
1732vec4 pack2HalfToRGBA( const in vec2 v ) {
1733	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
1734	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
1735}
1736vec2 unpackRGBATo2Half( const in vec4 v ) {
1737	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
1738}
1739float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
1740	return ( viewZ + near ) / ( near - far );
1741}
1742float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
1743	
1743#ifdef USE_REVERSED_DEPTH_BUFFER
1744	
1745		return depth * ( far - near ) - far;
1746	#else
1747		return depth * ( near - far ) - near;
1748	#endif
1749}
1750float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
1751	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
1752}
1753float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
1754	
1755	#ifdef USE_REVERSED_DEPTH_BUFFER
1756		return ( near * far ) / ( ( near - far ) * depth - near );
1757	#else
1758		return ( near * far ) / ( ( far - near ) * depth - far );
1759	#endif
1760}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA
1761	gl_FragColor.rgb *= gl_FragColor.a;
1762#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 );
1763#ifdef USE_BATCHING
1764	mvPosition = batchingMatrix * mvPosition;
1765#endif
1766#ifdef USE_INSTANCING
1767	mvPosition = instanceMatrix * mvPosition;
1768#endif
1769mvPosition = modelViewMatrix * mvPosition;
1770gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING
1771	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
1772#endif`,dithering_pars_fragment:`#ifdef DITHERING
1773	vec3 dithering( vec3 color ) {
1774		float grid_position = rand( gl_FragCoord.xy );
1775		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
1776		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
1777		return color + dither_shift_RGB;
1778	}
1779#endif`,roughnessmap_fragment:`float roughnessFactor = roughness;
1780#ifdef USE_ROUGHNESSMAP
1781	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
1782	roughnessFactor *= texelRoughness.g;
1783#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP
1784	uniform sampler2D roughnessMap;
1785#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0
1786	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
1787#endif
1788#if NUM_SPOT_LIGHT_MAPS > 0
1789	uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
1790#endif
1791#ifdef USE_SHADOWMAP
1792	#if NUM_DIR_LIGHT_SHADOWS > 0
1793		#if defined( SHADOWMAP_TYPE_PCF )
1794			uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
1795		#else
1796			uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
1797		#endif
1798		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
1799		struct DirectionalLightShadow {
1800			float shadowIntensity;
1801			float shadowBias;
1802			float shadowNormalBias;
1803			float shadowRadius;
1804			vec2 shadowMapSize;
1805		};
1806		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
1807	#endif
1808	#if NUM_SPOT_LIGHT_SHADOWS > 0
1809		#if defined( SHADOWMAP_TYPE_PCF )
1810			uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
1811		#else
1812			uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
1813		#endif
1814		struct SpotLightShadow {
1815			float shadowIntensity;
1816			float shadowBias;
1817			float shadowNormalBias;
1818			float shadowRadius;
1819			vec2 shadowMapSize;
1820		};
1821		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
1822	#endif
1823	#if NUM_POINT_LIGHT_SHADOWS > 0
1824		#if defined( SHADOWMAP_TYPE_PCF )
1825			uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
1826		#elif defined( SHADOWMAP_TYPE_BASIC )
1827			uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
1828		#endif
1829		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
1830		struct PointLightShadow {
1831			float shadowIntensity;
1832			float shadowBias;
1833			float shadowNormalBias;
1834			float shadowRadius;
1835			vec2 shadowMapSize;
1836			float shadowCameraNear;
1837			float shadowCameraFar;
1838		};
1839		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
1840	#endif
1841	#if defined( SHADOWMAP_TYPE_PCF )
1842		float interleavedGradientNoise( vec2 position ) {
1843			return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) );
1844		}
1845		vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) {
1846			const float goldenAngle = 2.399963229728653;
1847			float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) );
1848			float theta = float( sampleIndex ) * goldenAngle + phi;
1849			return vec2( cos( theta ), sin( theta ) ) * r;
1850		}
1851	#endif
1852	#if defined( SHADOWMAP_TYPE_PCF )
1853		float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
1854			float shadow = 1.0;
1855			shadowCoord.xyz /= shadowCoord.w;
1856			shadowCoord.z += shadowBias;
1857			bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
1858			bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
1859			if ( frustumTest ) {
1860				vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
1861				float radius = shadowRadius * texelSize.x;
1862				float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2;
1863				shadow = (
1864					texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) +
1865					texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) +
1866					texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) +
1867					texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) +
1868					texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) )
1869				) * 0.2;
1870			}
1871			return mix( 1.0, shadow, shadowIntensity );
1872		}
1873	#elif defined( SHADOWMAP_TYPE_VSM )
1874		float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
1875			float shadow = 1.0;
1876			shadowCoord.xyz /= shadowCoord.w;
1877			#ifdef USE_REVERSED_DEPTH_BUFFER
1878				shadowCoord.z -= shadowBias;
1879			#else
1880				shadowCoord.z += shadowBias;
1881			#endif
1882			bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
1883			bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
1884			if ( frustumTest ) {
1885				vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg;
1886				float mean = distribution.x;
1887				float variance = distribution.y * distribution.y;
1888				#ifdef USE_REVERSED_DEPTH_BUFFER
1889					float hard_shadow = step( mean, shadowCoord.z );
1890				#else
1891					float hard_shadow = step( shadowCoord.z, mean );
1892				#endif
1893				
1894				if ( hard_shadow == 1.0 ) {
1895					shadow = 1.0;
1896				} else {
1897					variance = max( variance, 0.0000001 );
1898					float d = shadowCoord.z - mean;
1899					float p_max = variance / ( variance + d * d );
1900					p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 );
1901					shadow = max( hard_shadow, p_max );
1902				}
1903			}
1904			return mix( 1.0, shadow, shadowIntensity );
1905		}
1906	#else
1907		float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
1908			float shadow = 1.0;
1909			shadowCoord.xyz /= shadowCoord.w;
1910			#ifdef USE_REVERSED_DEPTH_BUFFER
1911				shadowCoord.z -= shadowBias;
1912			#else
1913				shadowCoord.z += shadowBias;
1914			#endif
1915			bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
1916			bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
1917			if ( frustumTest ) {
1918				float depth = texture2D( shadowMap, shadowCoord.xy ).r;
1919				#ifdef USE_REVERSED_DEPTH_BUFFER
1920					shadow = step( depth, shadowCoord.z );
1921				#else
1922					shadow = step( shadowCoord.z, depth );
1923				#endif
1924			}
1925			return mix( 1.0, shadow, shadowIntensity );
1926		}
1927	#endif
1928	#if NUM_POINT_LIGHT_SHADOWS > 0
1929	#if defined( SHADOWMAP_TYPE_PCF )
1930	float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
1931		float shadow = 1.0;
1932		vec3 lightToPosition = shadowCoord.xyz;
1933		vec3 bd3D = normalize( lightToPosition );
1934		vec3 absVec = abs( lightToPosition );
1935		float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z );
1936		if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) {
1937			#ifdef USE_REVERSED_DEPTH_BUFFER
1938				float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) );
1939				dp -= shadowBias;
1940			#else
1941				float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) );
1942				dp += shadowBias;
1943			#endif
1944			float texelSize = shadowRadius / shadowMapSize.x;
1945			vec3 absDir = abs( bd3D );
1946			vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 );
1947			tangent = normalize( cross( bd3D, tangent ) );
1948			vec3 bitangent = cross( bd3D, tangent );
1949			float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2;
1950			vec2 sample0 = vogelDiskSample( 0, 5, phi );
1951			vec2 sample1 = vogelDiskSample( 1, 5, phi );
1952			vec2 sample2 = vogelDiskSample( 2, 5, phi );
1953			vec2 sample3 = vogelDiskSample( 3, 5, phi );
1954			vec2 sample4 = vogelDiskSample( 4, 5, phi );
1955			shadow = (
1956				texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) +
1957				texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) +
1958				texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) +
1959				texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) +
1960				texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) )
1961			) * 0.2;
1962		}
1963		return mix( 1.0, shadow, shadowIntensity );
1964	}
1965	#elif defined( SHADOWMAP_TYPE_BASIC )
1966	float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
1967		float shadow = 1.0;
1968		vec3 lightToPosition = shadowCoord.xyz;
1969		vec3 absVec = abs( lightToPosition );
1970		float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z );
1971		if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) {
1972			float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) );
1973			dp += shadowBias;
1974			vec3 bd3D = normalize( lightToPosition );
1975			float depth = textureCube( shadowMap, bd3D ).r;
1976			#ifdef USE_REVERSED_DEPTH_BUFFER
1977				depth = 1.0 - depth;
1978			#endif
1979			shadow = step( dp, depth );
1980		}
1981		return mix( 1.0, shadow, shadowIntensity );
1982	}
1983	#endif
1984	#endif
1985#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0
1986	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
1987	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
1988#endif
1989#ifdef USE_SHADOWMAP
1990	#if NUM_DIR_LIGHT_SHADOWS > 0
1991		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
1992		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
1993		struct DirectionalLightShadow {
1994			float shadowIntensity;
1995			float shadowBias;
1996			float shadowNormalBias;
1997			float shadowRadius;
1998			vec2 shadowMapSize;
1999		};
2000		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
2001	#endif
2002	#if NUM_SPOT_LIGHT_SHADOWS > 0
2003		struct SpotLightShadow {
2004			float shadowIntensity;
2005			float shadowBias;
2006			float shadowNormalBias;
2007			float shadowRadius;
2008			vec2 shadowMapSize;
2009		};
2010		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
2011	#endif
2012	#if NUM_POINT_LIGHT_SHADOWS > 0
2013		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
2014		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
2015		struct PointLightShadow {
2016			float shadowIntensity;
2017			float shadowBias;
2018			float shadowNormalBias;
2019			float shadowRadius;
2020			vec2 shadowMapSize;
2021			float shadowCameraNear;
2022			float shadowCameraFar;
2023		};
2024		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
2025	#endif
2026#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
2027	#ifdef HAS_NORMAL
2028		vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
2029	#else
2030		vec3 shadowWorldNormal = vec3( 0.0 );
2031	#endif
vendor: 15,483 bytes, lines 2031-2393
2031
2032	vec4 shadowWorldPosition;
2033#endif
2034#if defined( USE_SHADOWMAP )
2035	#if NUM_DIR_LIGHT_SHADOWS > 0
2036		#pragma unroll_loop_start
2037		for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2038			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
2039			vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
2040		}
2041		#pragma unroll_loop_end
2042	#endif
2043	#if NUM_POINT_LIGHT_SHADOWS > 0
2044		#pragma unroll_loop_start
2045		for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2046			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
2047			vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
2048		}
2049		#pragma unroll_loop_end
2050	#endif
2051#endif
2052#if NUM_SPOT_LIGHT_COORDS > 0
2053	#pragma unroll_loop_start
2054	for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
2055		shadowWorldPosition = worldPosition;
2056		#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
2057			shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
2058		#endif
2059		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
2060	}
2061	#pragma unroll_loop_end
2062#endif`,shadowmask_pars_fragment:`float getShadowMask() {
2063	float shadow = 1.0;
2064	#ifdef USE_SHADOWMAP
2065	#if NUM_DIR_LIGHT_SHADOWS > 0
2066	DirectionalLightShadow directionalLight;
2067	#pragma unroll_loop_start
2068	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
2069		directionalLight = directionalLightShadows[ i ];
2070		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
2071	}
2072	#pragma unroll_loop_end
2073	#endif
2074	#if NUM_SPOT_LIGHT_SHADOWS > 0
2075	SpotLightShadow spotLight;
2076	#pragma unroll_loop_start
2077	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
2078		spotLight = spotLightShadows[ i ];
2079		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
2080	}
2081	#pragma unroll_loop_end
2082	#endif
2083	#if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) )
2084	PointLightShadow pointLight;
2085	#pragma unroll_loop_start
2086	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
2087		pointLight = pointLightShadows[ i ];
2088		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
2089	}
2090	#pragma unroll_loop_end
2091	#endif
2092	#endif
2093	return shadow;
2094}`,skinbase_vertex:`#ifdef USE_SKINNING
2095	mat4 boneMatX = getBoneMatrix( skinIndex.x );
2096	mat4 boneMatY = getBoneMatrix( skinIndex.y );
2097	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
2098	mat4 boneMatW = getBoneMatrix( skinIndex.w );
2099#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING
2100	uniform mat4 bindMatrix;
2101	uniform mat4 bindMatrixInverse;
2102	uniform highp sampler2D boneTexture;
2103	mat4 getBoneMatrix( const in float i ) {
2104		int size = textureSize( boneTexture, 0 ).x;
2105		int j = int( i ) * 4;
2106		int x = j % size;
2107		int y = j / size;
2108		vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
2109		vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
2110		vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
2111		vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
2112		return mat4( v1, v2, v3, v4 );
2113	}
2114#endif`,skinning_vertex:`#ifdef USE_SKINNING
2115	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
2116	vec4 skinned = vec4( 0.0 );
2117	skinned += boneMatX * skinVertex * skinWeight.x;
2118	skinned += boneMatY * skinVertex * skinWeight.y;
2119	skinned += boneMatZ * skinVertex * skinWeight.z;
2120	skinned += boneMatW * skinVertex * skinWeight.w;
2121	transformed = ( bindMatrixInverse * skinned ).xyz;
2122#endif`,skinnormal_vertex:`#ifdef USE_SKINNING
2123	mat4 skinMatrix = mat4( 0.0 );
2124	skinMatrix += skinWeight.x * boneMatX;
2125	skinMatrix += skinWeight.y * boneMatY;
2126	skinMatrix += skinWeight.z * boneMatZ;
2127	skinMatrix += skinWeight.w * boneMatW;
2128	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
2129	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
2130	#ifdef USE_TANGENT
2131		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
2132	#endif
2133#endif`,specularmap_fragment:`float specularStrength;
2134#ifdef USE_SPECULARMAP
2135	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
2136	specularStrength = texelSpecular.r;
2137#else
2138	specularStrength = 1.0;
2139#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP
2140	uniform sampler2D specularMap;
2141#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING )
2142	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
2143#endif`,tonemapping_pars_fragment:`#ifndef saturate
2144#define saturate( a ) clamp( a, 0.0, 1.0 )
2145#endif
2146uniform float toneMappingExposure;
2147vec3 LinearToneMapping( vec3 color ) {
2148	return saturate( toneMappingExposure * color );
2149}
2150vec3 ReinhardToneMapping( vec3 color ) {
2151	color *= toneMappingExposure;
2152	return saturate( color / ( vec3( 1.0 ) + color ) );
2153}
2154vec3 CineonToneMapping( vec3 color ) {
2155	color *= toneMappingExposure;
2156	color = max( vec3( 0.0 ), color - 0.004 );
2157	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
2158}
2159vec3 RRTAndODTFit( vec3 v ) {
2160	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
2161	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
2162	return a / b;
2163}
2164vec3 ACESFilmicToneMapping( vec3 color ) {
2165	const mat3 ACESInputMat = mat3(
2166		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
2167		vec3( 0.04823, 0.01566, 0.83777 )
2168	);
2169	const mat3 ACESOutputMat = mat3(
2170		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
2171		vec3( -0.07367, -0.00605,  1.07602 )
2172	);
2173	color *= toneMappingExposure / 0.6;
2174	color = ACESInputMat * color;
2175	color = RRTAndODTFit( color );
2176	color = ACESOutputMat * color;
2177	return saturate( color );
2178}
2179const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
2180	vec3( 1.6605, - 0.1246, - 0.0182 ),
2181	vec3( - 0.5876, 1.1329, - 0.1006 ),
2182	vec3( - 0.0728, - 0.0083, 1.1187 )
2183);
2184const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
2185	vec3( 0.6274, 0.0691, 0.0164 ),
2186	vec3( 0.3293, 0.9195, 0.0880 ),
2187	vec3( 0.0433, 0.0113, 0.8956 )
2188);
2189vec3 agxDefaultContrastApprox( vec3 x ) {
2190	vec3 x2 = x * x;
2191	vec3 x4 = x2 * x2;
2192	return + 15.5 * x4 * x2
2193		- 40.14 * x4 * x
2194		+ 31.96 * x4
2195		- 6.868 * x2 * x
2196		+ 0.4298 * x2
2197		+ 0.1191 * x
2198		- 0.00232;
2199}
2200vec3 AgXToneMapping( vec3 color ) {
2201	const mat3 AgXInsetMatrix = mat3(
2202		vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
2203		vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
2204		vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
2205	);
2206	const mat3 AgXOutsetMatrix = mat3(
2207		vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
2208		vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
2209		vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
2210	);
2211	const float AgxMinEv = - 12.47393;	const float AgxMaxEv = 4.026069;
2212	color *= toneMappingExposure;
2213	color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
2214	color = AgXInsetMatrix * color;
2215	color = max( color, 1e-10 );	color = log2( color );
2216	color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
2217	color = clamp( color, 0.0, 1.0 );
2218	color = agxDefaultContrastApprox( color );
2219	color = AgXOutsetMatrix * color;
2220	color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
2221	color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
2222	color = clamp( color, 0.0, 1.0 );
2223	return color;
2224}
2225vec3 NeutralToneMapping( vec3 color ) {
2226	const float StartCompression = 0.8 - 0.04;
2227	const float Desaturation = 0.15;
2228	color *= toneMappingExposure;
2229	float x = min( color.r, min( color.g, color.b ) );
2230	float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
2231	color -= offset;
2232	float peak = max( color.r, max( color.g, color.b ) );
2233	if ( peak < StartCompression ) return color;
2234	float d = 1. - StartCompression;
2235	float newPeak = 1. - d * d / ( peak + d - StartCompression );
2236	color *= newPeak / peak;
2237	float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
2238	return mix( color, vec3( newPeak ), g );
2239}
2240vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION
2241	material.transmission = transmission;
2242	material.transmissionAlpha = 1.0;
2243	material.thickness = thickness;
2244	material.attenuationDistance = attenuationDistance;
2245	material.attenuationColor = attenuationColor;
2246	#ifdef USE_TRANSMISSIONMAP
2247		material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
2248	#endif
2249	#ifdef USE_THICKNESSMAP
2250		material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
2251	#endif
2252	vec3 pos = vWorldPosition;
2253	vec3 v = normalize( cameraPosition - pos );
2254	vec3 n = inverseTransformDirection( normal, viewMatrix );
2255	vec4 transmitted = getIBLVolumeRefraction(
2256		n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90,
2257		pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,
2258		material.attenuationColor, material.attenuationDistance );
2259	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
2260	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
2261#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION
2262	uniform float transmission;
2263	uniform float thickness;
2264	uniform float attenuationDistance;
2265	uniform vec3 attenuationColor;
2266	#ifdef USE_TRANSMISSIONMAP
2267		uniform sampler2D transmissionMap;
2268	#endif
2269	#ifdef USE_THICKNESSMAP
2270		uniform sampler2D thicknessMap;
2271	#endif
2272	uniform vec2 transmissionSamplerSize;
2273	uniform sampler2D transmissionSamplerMap;
2274	uniform mat4 modelMatrix;
2275	uniform mat4 projectionMatrix;
2276	varying vec3 vWorldPosition;
2277	float w0( float a ) {
2278		return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
2279	}
2280	float w1( float a ) {
2281		return ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );
2282	}
2283	float w2( float a ){
2284		return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
2285	}
2286	float w3( float a ) {
2287		return ( 1.0 / 6.0 ) * ( a * a * a );
2288	}
2289	float g0( float a ) {
2290		return w0( a ) + w1( a );
2291	}
2292	float g1( float a ) {
2293		return w2( a ) + w3( a );
2294	}
2295	float h0( float a ) {
2296		return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
2297	}
2298	float h1( float a ) {
2299		return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
2300	}
2301	vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
2302		uv = uv * texelSize.zw + 0.5;
2303		vec2 iuv = floor( uv );
2304		vec2 fuv = fract( uv );
2305		float g0x = g0( fuv.x );
2306		float g1x = g1( fuv.x );
2307		float h0x = h0( fuv.x );
2308		float h1x = h1( fuv.x );
2309		float h0y = h0( fuv.y );
2310		float h1y = h1( fuv.y );
2311		vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
2312		vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
2313		vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
2314		vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
2315		return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
2316			g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
2317	}
2318	vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
2319		vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
2320		vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
2321		vec2 fLodSizeInv = 1.0 / fLodSize;
2322		vec2 cLodSizeInv = 1.0 / cLodSize;
2323		vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
2324		vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
2325		return mix( fSample, cSample, fract( lod ) );
2326	}
2327	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
2328		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
2329		vec3 modelScale;
2330		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
2331		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
2332		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
2333		return normalize( refractionVector ) * thickness * modelScale;
2334	}
2335	float applyIorToRoughness( const in float roughness, const in float ior ) {
2336		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
2337	}
2338	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
2339		float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
2340		return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
2341	}
2342	vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
2343		if ( isinf( attenuationDistance ) ) {
2344			return vec3( 1.0 );
2345		} else {
2346			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
2347			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance;
2348		}
2349	}
2350	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
2351		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
2352		const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,
2353		const in vec3 attenuationColor, const in float attenuationDistance ) {
2354		vec4 transmittedLight;
2355		vec3 transmittance;
2356		#ifdef USE_DISPERSION
2357			float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;
2358			vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );
2359			for ( int i = 0; i < 3; i ++ ) {
2360				vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );
2361				vec3 refractedRayExit = position + transmissionRay;
2362				vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
2363				vec2 refractionCoords = ndcPos.xy / ndcPos.w;
2364				refractionCoords += 1.0;
2365				refractionCoords /= 2.0;
2366				vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );
2367				transmittedLight[ i ] = transmissionSample[ i ];
2368				transmittedLight.a += transmissionSample.a;
2369				transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];
2370			}
2371			transmittedLight.a /= 3.0;
2372		#else
2373			vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
2374			vec3 refractedRayExit = position + transmissionRay;
2375			vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
2376			vec2 refractionCoords = ndcPos.xy / ndcPos.w;
2377			refractionCoords += 1.0;
2378			refractionCoords /= 2.0;
2379			transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
2380			transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
2381		#endif
2382		vec3 attenuatedColor = transmittance * transmittedLight.rgb;
2383		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
2384		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
2385		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
2386	}
2387#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2388	varying vec2 vUv;
2389#endif
2390#ifdef USE_MAP
2391	varying vec2 vMapUv;
2392#endif
2393#ifdef USE_ALPHAMAP
vendor: 8,035 bytes, lines 2394-2660
2394	varying vec2 vAlphaMapUv;
2395#endif
2396#ifdef USE_LIGHTMAP
2397	varying vec2 vLightMapUv;
2398#endif
2399#ifdef USE_AOMAP
2400	varying vec2 vAoMapUv;
2401#endif
2402#ifdef USE_BUMPMAP
2403	varying vec2 vBumpMapUv;
2404#endif
2405#ifdef USE_NORMALMAP
2406	varying vec2 vNormalMapUv;
2407#endif
2408#ifdef USE_EMISSIVEMAP
2409	varying vec2 vEmissiveMapUv;
2410#endif
2411#ifdef USE_METALNESSMAP
2412	varying vec2 vMetalnessMapUv;
2413#endif
2414#ifdef USE_ROUGHNESSMAP
2415	varying vec2 vRoughnessMapUv;
2416#endif
2417#ifdef USE_ANISOTROPYMAP
2418	varying vec2 vAnisotropyMapUv;
2419#endif
2420#ifdef USE_CLEARCOATMAP
2421	varying vec2 vClearcoatMapUv;
2422#endif
2423#ifdef USE_CLEARCOAT_NORMALMAP
2424	varying vec2 vClearcoatNormalMapUv;
2425#endif
2426#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2427	varying vec2 vClearcoatRoughnessMapUv;
2428#endif
2429#ifdef USE_IRIDESCENCEMAP
2430	varying vec2 vIridescenceMapUv;
2431#endif
2432#ifdef USE_IRIDESCENCE_THICKNESSMAP
2433	varying vec2 vIridescenceThicknessMapUv;
2434#endif
2435#ifdef USE_SHEEN_COLORMAP
2436	varying vec2 vSheenColorMapUv;
2437#endif
2438#ifdef USE_SHEEN_ROUGHNESSMAP
2439	varying vec2 vSheenRoughnessMapUv;
2440#endif
2441#ifdef USE_SPECULARMAP
2442	varying vec2 vSpecularMapUv;
2443#endif
2444#ifdef USE_SPECULAR_COLORMAP
2445	varying vec2 vSpecularColorMapUv;
2446#endif
2447#ifdef USE_SPECULAR_INTENSITYMAP
2448	varying vec2 vSpecularIntensityMapUv;
2449#endif
2450#ifdef USE_TRANSMISSIONMAP
2451	uniform mat3 transmissionMapTransform;
2452	varying vec2 vTransmissionMapUv;
2453#endif
2454#ifdef USE_THICKNESSMAP
2455	uniform mat3 thicknessMapTransform;
2456	varying vec2 vThicknessMapUv;
2457#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2458	varying vec2 vUv;
2459#endif
2460#ifdef USE_MAP
2461	uniform mat3 mapTransform;
2462	varying vec2 vMapUv;
2463#endif
2464#ifdef USE_ALPHAMAP
2465	uniform mat3 alphaMapTransform;
2466	varying vec2 vAlphaMapUv;
2467#endif
2468#ifdef USE_LIGHTMAP
2469	uniform mat3 lightMapTransform;
2470	varying vec2 vLightMapUv;
2471#endif
2472#ifdef USE_AOMAP
2473	uniform mat3 aoMapTransform;
2474	varying vec2 vAoMapUv;
2475#endif
2476#ifdef USE_BUMPMAP
2477	uniform mat3 bumpMapTransform;
2478	varying vec2 vBumpMapUv;
2479#endif
2480#ifdef USE_NORMALMAP
2481	uniform mat3 normalMapTransform;
2482	varying vec2 vNormalMapUv;
2483#endif
2484#ifdef USE_DISPLACEMENTMAP
2485	uniform mat3 displacementMapTransform;
2486	varying vec2 vDisplacementMapUv;
2487#endif
2488#ifdef USE_EMISSIVEMAP
2489	uniform mat3 emissiveMapTransform;
2490	varying vec2 vEmissiveMapUv;
2491#endif
2492#ifdef USE_METALNESSMAP
2493	uniform mat3 metalnessMapTransform;
2494	varying vec2 vMetalnessMapUv;
2495#endif
2496#ifdef USE_ROUGHNESSMAP
2497	uniform mat3 roughnessMapTransform;
2498	varying vec2 vRoughnessMapUv;
2499#endif
2500#ifdef USE_ANISOTROPYMAP
2501	uniform mat3 anisotropyMapTransform;
2502	varying vec2 vAnisotropyMapUv;
2503#endif
2504#ifdef USE_CLEARCOATMAP
2505	uniform mat3 clearcoatMapTransform;
2506	varying vec2 vClearcoatMapUv;
2507#endif
2508#ifdef USE_CLEARCOAT_NORMALMAP
2509	uniform mat3 clearcoatNormalMapTransform;
2510	varying vec2 vClearcoatNormalMapUv;
2511#endif
2512#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2513	uniform mat3 clearcoatRoughnessMapTransform;
2514	varying vec2 vClearcoatRoughnessMapUv;
2515#endif
2516#ifdef USE_SHEEN_COLORMAP
2517	uniform mat3 sheenColorMapTransform;
2518	varying vec2 vSheenColorMapUv;
2519#endif
2520#ifdef USE_SHEEN_ROUGHNESSMAP
2521	uniform mat3 sheenRoughnessMapTransform;
2522	varying vec2 vSheenRoughnessMapUv;
2523#endif
2524#ifdef USE_IRIDESCENCEMAP
2525	uniform mat3 iridescenceMapTransform;
2526	varying vec2 vIridescenceMapUv;
2527#endif
2528#ifdef USE_IRIDESCENCE_THICKNESSMAP
2529	uniform mat3 iridescenceThicknessMapTransform;
2530	varying vec2 vIridescenceThicknessMapUv;
2531#endif
2532#ifdef USE_SPECULARMAP
2533	uniform mat3 specularMapTransform;
2534	varying vec2 vSpecularMapUv;
2535#endif
2536#ifdef USE_SPECULAR_COLORMAP
2537	uniform mat3 specularColorMapTransform;
2538	varying vec2 vSpecularColorMapUv;
2539#endif
2540#ifdef USE_SPECULAR_INTENSITYMAP
2541	uniform mat3 specularIntensityMapTransform;
2542	varying vec2 vSpecularIntensityMapUv;
2543#endif
2544#ifdef USE_TRANSMISSIONMAP
2545	uniform mat3 transmissionMapTransform;
2546	varying vec2 vTransmissionMapUv;
2547#endif
2548#ifdef USE_THICKNESSMAP
2549	uniform mat3 thicknessMapTransform;
2550	varying vec2 vThicknessMapUv;
2551#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
2552	vUv = vec3( uv, 1 ).xy;
2553#endif
2554#ifdef USE_MAP
2555	vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
2556#endif
2557#ifdef USE_ALPHAMAP
2558	vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
2559#endif
2560#ifdef USE_LIGHTMAP
2561	vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
2562#endif
2563#ifdef USE_AOMAP
2564	vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
2565#endif
2566#ifdef USE_BUMPMAP
2567	vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
2568#endif
2569#ifdef USE_NORMALMAP
2570	vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
2571#endif
2572#ifdef USE_DISPLACEMENTMAP
2573	vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
2574#endif
2575#ifdef USE_EMISSIVEMAP
2576	vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
2577#endif
2578#ifdef USE_METALNESSMAP
2579	vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
2580#endif
2581#ifdef USE_ROUGHNESSMAP
2582	vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
2583#endif
2584#ifdef USE_ANISOTROPYMAP
2585	vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
2586#endif
2587#ifdef USE_CLEARCOATMAP
2588	vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
2589#endif
2590#ifdef USE_CLEARCOAT_NORMALMAP
2591	vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
2592#endif
2593#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2594	vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
2595#endif
2596#ifdef USE_IRIDESCENCEMAP
2597	vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
2598#endif
2599#ifdef USE_IRIDESCENCE_THICKNESSMAP
2600	vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
2601#endif
2602#ifdef USE_SHEEN_COLORMAP
2603	vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
2604#endif
2605#ifdef USE_SHEEN_ROUGHNESSMAP
2606	vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
2607#endif
2608#ifdef USE_SPECULARMAP
2609	vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
2610#endif
2611#ifdef USE_SPECULAR_COLORMAP
2612	vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
2613#endif
2614#ifdef USE_SPECULAR_INTENSITYMAP
2615	vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
2616#endif
2617#ifdef USE_TRANSMISSIONMAP
2618	vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
2619#endif
2620#ifdef USE_THICKNESSMAP
2621	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
2622#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
2623	vec4 worldPosition = vec4( transformed, 1.0 );
2624	#ifdef USE_BATCHING
2625		worldPosition = batchingMatrix * worldPosition;
2626	#endif
2627	#ifdef USE_INSTANCING
2628		worldPosition = instanceMatrix * worldPosition;
2629	#endif
2630	worldPosition = modelMatrix * worldPosition;
2631#endif`,background_vert:`varying vec2 vUv;
2632uniform mat3 uvTransform;
2633void main() {
2634	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
2635	gl_Position = vec4( position.xy, 1.0, 1.0 );
2636}`,background_frag:`uniform sampler2D t2D;
2637uniform float backgroundIntensity;
2638varying vec2 vUv;
2639void main() {
2640	vec4 texColor = texture2D( t2D, vUv );
2641	#ifdef DECODE_VIDEO_TEXTURE
2642		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 );
2643	#endif
2644	texColor.rgb *= backgroundIntensity;
2645	gl_FragColor = texColor;
2646	#include <tonemapping_fragment>
2647	#include <colorspace_fragment>
2648}`,backgroundCube_vert:`varying vec3 vWorldDirection;
2649#include <common>
2650void main() {
2651	vWorldDirection = transformDirection( position, modelMatrix );
2652	#include <begin_vertex>
2653	#include <project_vertex>
2654	gl_Position.z = gl_Position.w;
2655}`,backgroundCube_frag:`#ifdef ENVMAP_TYPE_CUBE
2656	uniform samplerCube envMap;
2657#elif defined( ENVMAP_TYPE_CUBE_UV )
2658	uniform sampler2D envMap;
2659#endif
2660uniform float 
2660backgroundBlurriness;
2661uniform float backgroundIntensity;
2662uniform mat3 backgroundRotation;
2663varying vec3 vWorldDirection;
2664#include <cube_uv_reflection_fragment>
2665void main() {
2666	#ifdef ENVMAP_TYPE_CUBE
2667		vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection );
2668	#elif defined( ENVMAP_TYPE_CUBE_UV )
2669		vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );
2670	#else
2671		vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
2672	#endif
2673	texColor.rgb *= backgroundIntensity;
2674	gl_FragColor = texColor;
2675	#include <tonemapping_fragment>
2676	#include <colorspace_fragment>
2677}`,cube_vert:`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}`,cube_frag:`uniform samplerCube tCube;
2685uniform float tFlip;
2686uniform float opacity;
2687varying vec3 vWorldDirection;
2688void main() {
2689	vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
2690	gl_FragColor = texColor;
2691	gl_FragColor.a *= opacity;
2692	#include <tonemapping_fragment>
2693	#include <colorspace_fragment>
2694}`,depth_vert:`#include <common>
2695#include <batching_pars_vertex>
2696#include <uv_pars_vertex>
2697#include <displacementmap_pars_vertex>
2698#include <morphtarget_pars_vertex>
2699#include <skinning_pars_vertex>
2700#include <logdepthbuf_pars_vertex>
2701#include <clipping_planes_pars_vertex>
2702varying vec2 vHighPrecisionZW;
2703void main() {
2704	#include <uv_vertex>
2705	#include <batching_vertex>
2706	#include <skinbase_vertex>
2707	#include <morphinstance_vertex>
2708	#ifdef USE_DISPLACEMENTMAP
2709		#include <beginnormal_vertex>
2710		#include <morphnormal_vertex>
2711		#include <skinnormal_vertex>
2712	#endif
2713	#include <begin_vertex>
2714	#include <morphtarget_vertex>
2715	#include <skinning_vertex>
2716	#include <displacementmap_vertex>
2717	#include <project_vertex>
2718	#include <logdepthbuf_vertex>
2719	#include <clipping_planes_vertex>
2720	vHighPrecisionZW = gl_Position.zw;
2721}`,depth_frag:`#if DEPTH_PACKING == 3200
2722	uniform float opacity;
2723#endif
2724#include <common>
2725#include <packing>
2726#include <uv_pars_fragment>
2727#include <map_pars_fragment>
2728#include <alphamap_pars_fragment>
2729#include <alphatest_pars_fragment>
2730#include <alphahash_pars_fragment>
2731#include <logdepthbuf_pars_fragment>
2732#include <clipping_planes_pars_fragment>
2733varying vec2 vHighPrecisionZW;
2734void main() {
2735	vec4 diffuseColor = vec4( 1.0 );
2736	#include <clipping_planes_fragment>
2737	#if DEPTH_PACKING == 3200
2738		diffuseColor.a = opacity;
2739	#endif
2740	#include <map_fragment>
2741	#include <alphamap_fragment>
2742	#include <alphatest_fragment>
2743	#include <alphahash_fragment>
2744	#include <logdepthbuf_fragment>
2745	#ifdef USE_REVERSED_DEPTH_BUFFER
2746		float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ];
2747	#else
2748		float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5;
2749	#endif
2750	#if DEPTH_PACKING == 3200
2751		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
2752	#elif DEPTH_PACKING == 3201
2753		gl_FragColor = packDepthToRGBA( fragCoordZ );
2754	#elif DEPTH_PACKING == 3202
2755		gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );
2756	#elif DEPTH_PACKING == 3203
2757		gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );
2758	#endif
2759}`,distance_vert:`#define DISTANCE
2760varying vec3 vWorldPosition;
2761#include <common>
2762#include <batching_pars_vertex>
2763#include <uv_pars_vertex>
2764#include <displacementmap_pars_vertex>
2765#include <morphtarget_pars_vertex>
2766#include <skinning_pars_vertex>
2767#include <clipping_planes_pars_vertex>
2768void main() {
2769	#include <uv_vertex>
2770	#include <batching_vertex>
2771	#include <skinbase_vertex>
2772	#include <morphinstance_vertex>
2773	#ifdef USE_DISPLACEMENTMAP
2774		#include <beginnormal_vertex>
2775		#include <morphnormal_vertex>
2776		#include <skinnormal_vertex>
2777	#endif
2778	#include <begin_vertex>
2779	#include <morphtarget_vertex>
2780	#include <skinning_vertex>
2781	#include <displacementmap_vertex>
2782	#include <project_vertex>
2783	#include <worldpos_vertex>
2784	#include <clipping_planes_vertex>
2785	vWorldPosition = worldPosition.xyz;
2786}`,distance_frag:`#define DISTANCE
2787uniform vec3 referencePosition;
2788uniform float nearDistance;
2789uniform float farDistance;
2790varying vec3 vWorldPosition;
2791#include <common>
2792#include <uv_pars_fragment>
2793#include <map_pars_fragment>
2794#include <alphamap_pars_fragment>
2795#include <alphatest_pars_fragment>
2796#include <alphahash_pars_fragment>
2797#include <clipping_planes_pars_fragment>
2798void main () {
2799	vec4 diffuseColor = vec4( 1.0 );
2800	#include <clipping_planes_fragment>
2801	#include <map_fragment>
2802	#include <alphamap_fragment>
2803	#include <alphatest_fragment>
2804	#include <alphahash_fragment>
2805	float dist = length( vWorldPosition - referencePosition );
2806	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
2807	dist = saturate( dist );
2808	gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 );
2809}`,equirect_vert:`varying vec3 vWorldDirection;
2810#include <common>
2811void main() {
2812	vWorldDirection = transformDirection( position, modelMatrix );
2813	#include <begin_vertex>
2814	#include <project_vertex>
2815}`,equirect_frag:`uniform sampler2D tEquirect;
2816varying vec3 vWorldDirection;
2817#include <common>
2818void main() {
2819	vec3 direction = normalize( vWorldDirection );
2820	vec2 sampleUV = equirectUv( direction );
2821	gl_FragColor = texture2D( tEquirect, sampleUV );
2822	#include <tonemapping_fragment>
2823	#include <colorspace_fragment>
2824}`,linedashed_vert:`uniform float scale;
2825attribute float lineDistance;
2826varying float vLineDistance;
2827#include <common>
2828#include <uv_pars_vertex>
2829#include <color_pars_vertex>
2830#include <fog_pars_vertex>
2831#include <morphtarget_pars_vertex>
2832#include <logdepthbuf_pars_vertex>
2833#include <clipping_planes_pars_vertex>
2834void main() {
2835	vLineDistance = scale * lineDistance;
2836	#include <uv_vertex>
2837	#include <color_vertex>
2838	#include <morphinstance_vertex>
2839	#include <morphcolor_vertex>
2840	#include <begin_vertex>
2841	#include <morphtarget_vertex>
2842	#include <project_vertex>
2843	#include <logdepthbuf_vertex>
2844	#include <clipping_planes_vertex>
2845	#include <fog_vertex>
2846}`,linedashed_frag:`uniform vec3 diffuse;
2847uniform float opacity;
2848uniform float dashSize;
2849uniform float totalSize;
2850varying float vLineDistance;
2851#include <common>
2852#include <color_pars_fragment>
2853#include <uv_pars_fragment>
2854#include <map_pars_fragment>
2855#include <fog_pars_fragment>
2856#include <logdepthbuf_pars_fragment>
2857#include <clipping_planes_pars_fragment>
2858void main() {
2859	vec4 diffuseColor = vec4( diffuse, opacity );
2860	#include <clipping_planes_fragment>
2861	if ( mod( vLineDistance, totalSize ) > dashSize ) {
2862		discard;
2863	}
2864	vec3 outgoingLight = vec3( 0.0 );
2865	#include <logdepthbuf_fragment>
2866	#include <map_fragment>
2867	#include <color_fragment>
2868	outgoingLight = diffuseColor.rgb;
2869	#include <opaque_fragment>
2870	#include <tonemapping_fragment>
2871	#include <colorspace_fragment>
2872	#include <fog_fragment>
2873	#include <premultiplied_alpha_fragment>
2874}`,meshbasic_vert:`#include <common>
2875#include <batching_pars_vertex>
2876#include <uv_pars_vertex>
2877#include <envmap_pars_vertex>
2878#include <color_pars_vertex>
2879#include <fog_pars_vertex>
2880#include <morphtarget_pars_vertex>
2881#include <skinning_pars_vertex>
2882#include <logdepthbuf_pars_vertex>
2883#include <clipping_planes_pars_vertex>
2884void main() {
2885	#include <uv_vertex>
2886	#include <color_vertex>
2887	#include <morphinstance_vertex>
2888	#include <morphcolor_vertex>
2889	#include <batching_vertex>
2890	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
2891		#include <beginnormal_vertex>
2892		#include <morphnormal_vertex>
2893		#include <skinbase_vertex>
2894		#include <skinnormal_vertex>
2895		#include <defaultnormal_vertex>
2896	#endif
2897	#include <begin_vertex>
2898	#include <morphtarget_vertex>
2899	#include <skinning_vertex>
2900	#include <project_vertex>
2901	#include <logdepthbuf_vertex>
2902	#include <clipping_planes_vertex>
2903	#include <worldpos_vertex>
2904	#include <envmap_vertex>
2905	#include <fog_vertex>
2906}`,meshbasic_frag:`uniform vec3 diffuse;
2907uniform float opacity;
2908#ifndef FLAT_SHADED
2909	varying vec3 vNormal;
2910#endif
2911#include <common>
2912#include <dithering_pars_fragment>
2913#include <color_pars_fragment>
2914#include <uv_pars_fragment>
2915#include <map_pars_fragment>
2916#include <alphamap_pars_fragment>
2917#include <alphatest_pars_fragment>
2918#include <alphahash_pars_fragment>
2919#include <aomap_pars_fragment>
2920#include <lightmap_pars_fragment>
2921#include <envmap_common_pars_fragment>
2922#include <envmap_pars_fragment>
2923#include <fog_pars_fragment>
2924#include <specularmap_pars_fragment>
2925#include <logdepthbuf_pars_fragment>
2926#include <clipping_planes_pars_fragment>
2927void main() {
2928	vec4 diffuseColor = vec4( diffuse, opacity );
2929	#include <clipping_planes_fragment>
2930	#include <logdepthbuf_fragment>
2931	#include <map_fragment>
2932	#include <color_fragment>
2933	#include <alphamap_fragment>
2934	#include <alphatest_fragment>
2935	#include <alphahash_fragment>
2936	#include <specularmap_fragment>
2937	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
2938	#ifdef USE_LIGHTMAP
2939		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
2940		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
2941	#else
2942		reflectedLight.indirectDiffuse += vec3( 1.0 );
2943	#endif
2944	#include <aomap_fragment>
2945	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
2946	vec3 outgoingLight = reflectedLight.indirectDiffuse;
2947	#include <envmap_fragment>
2948	#include <opaque_fragment>
2949	#include <tonemapping_fragment>
2950	#include <colorspace_fragment>
2951	#include <fog_fragment>
2952	#include <premultiplied_alpha_fragment>
2953	#include <dithering_fragment>
2954}`,meshlambert_vert:`#define LAMBERT
2955varying vec3 vViewPosition;
2956#include <common>
2957#include <batching_pars_vertex>
2958#include <uv_pars_vertex>
2959#include <displacementmap_pars_vertex>
2960#include <envmap_pars_vertex>
2961#include <color_pars_vertex>
2962#include <fog_pars_vertex>
2963#include <normal_pars_vertex>
2964#include <morphtarget_pars_vertex>
2965#include <skinning_pars_vertex>
2966#include <shadowmap_pars_vertex>
2967#include <logdepthbuf_pars_vertex>
2968#include <clipping_planes_pars_vertex>
2969void main() {
2970	#include <uv_vertex>
2971	#include <color_vertex>
2972	#include <morphinstance_vertex>
2973	#include <morphcolor_vertex>
2974	#include <batching_vertex>
2975	#include <beginnormal_vertex>
2976	#include <morphnormal_vertex>
2977	#include <skinbase_vertex>
2978	#include <skinnormal_vertex>
2979	#include <defaultnormal_vertex>
2980	#include <normal_vertex>
2981	#include <begin_vertex>
2982	#include <morphtarget_vertex>
2983	#include <skinning_vertex>
2984	#include <displacementmap_vertex>
2985	#include <project_vertex>
2986	#include <logdepthbuf_vertex>
2987	#include <clipping_planes_vertex>
2988	vViewPosition = - mvPosition.xyz;
2989	#include <worldpos_vertex>
2990	#include <envmap_vertex>
2991	#include <shadowmap_vertex>
2992	#include <fog_vertex>
2993}`,meshlambert_frag:`#define LAMBERT
2994uniform vec3 diffuse;
2995uniform vec3 emissive;
2996uniform float opacity;
2997#include <common>
2998#include <dithering_pars_fragment>
2999#include <color_pars_fragment>
3000#include <uv_pars_fragment>
3001#include <map_pars_fragment>
3002#include <alphamap_pars_fragment>
3003#include <alphatest_pars_fragment>
3004#include <alphahash_pars_fragment>
3005#include <aomap_pars_fragment>
3006#include <lightmap_pars_fragment>
3007#include <emissivemap_pars_fragment>
3008#include <cube_uv_reflection_fragment>
3009#include <envmap_common_pars_fragment>
3010#include <envmap_pars_fragment>
3011#include <envmap_physical_pars_fragment>
3012#include <fog_pars_fragment>
3013#include <bsdfs>
3014#include <lights_pars_begin>
3015#include <normal_pars_fragment>
3016#include <lights_lambert_pars_fragment>
3017#include <shadowmap_pars_fragment>
3018#include <bumpmap_pars_fragment>
3019#include <normalmap_pars_fragment>
3020#include <specularmap_pars_fragment>
3021#include <logdepthbuf_pars_fragment>
3022#include <clipping_planes_pars_fragment>
3023void main() {
3024	vec4 diffuseColor = vec4( diffuse, opacity );
3025	#include <clipping_planes_fragment>
3026	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3027	vec3 totalEmissiveRadiance = emissive;
3028	#include <logdepthbuf_fragment>
3029	#include <map_fragment>
3030	#include <color_fragment>
3031	#include <alphamap_fragment>
3032	#include <alphatest_fragment>
3033	#include <alphahash_fragment>
3034	#include <specularmap_fragment>
3035	#include <normal_fragment_begin>
3036	#include <normal_fragment_maps>
3037	#include <emissivemap_fragment>
3038	#include <lights_lambert_fragment>
3039	#include <lights_fragment_begin>
3040	#include <lights_fragment_maps>
3041	#include <lights_fragment_end>
3042	#include <aomap_fragment>
3043	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
3044	#include <envmap_fragment>
3045	#include <opaque_fragment>
3046	#include <tonemapping_fragment>
3047	#include <colorspace_fragment>
3048	#include <fog_fragment>
3049	#include <premultiplied_alpha_fragment>
3050	#include <dithering_fragment>
3051}`,meshmatcap_vert:`#define MATCAP
3052varying vec3 vViewPosition;
3053#include <common>
3054#include <batching_pars_vertex>
3055#include <uv_pars_vertex>
3056#include <color_pars_vertex>
3057#include <displacementmap_pars_vertex>
3058#include <fog_pars_vertex>
3059#include <normal_pars_vertex>
3060#include <morphtarget_pars_vertex>
3061#include <skinning_pars_vertex>
3062#include <logdepthbuf_pars_vertex>
3063#include <clipping_planes_pars_vertex>
3064void main() {
3065	#include <uv_vertex>
3066	#include <color_vertex>
3067	#include <morphinstance_vertex>
3068	#include <morphcolor_vertex>
3069	#include <batching_vertex>
3070	#include <beginnormal_vertex>
3071	#include <morphnormal_vertex>
3072	#include <skinbase_vertex>
3073	#include <skinnormal_vertex>
3074	#include <defaultnormal_vertex>
3075	#include <normal_vertex>
3076	#include <begin_vertex>
3077	#include <morphtarget_vertex>
3078	#include <skinning_vertex>
3079	#include <displacementmap_vertex>
3080	#include <project_vertex>
3081	#include <logdepthbuf_vertex>
3082	#include <clipping_planes_vertex>
3083	#include <fog_vertex>
3084	vViewPosition = - mvPosition.xyz;
3085}`,meshmatcap_frag:`#define MATCAP
3086uniform vec3 diffuse;
3087uniform float opacity;
3088uniform sampler2D matcap;
3089varying vec3 vViewPosition;
3090#include <common>
3091#include <dithering_pars_fragment>
3092#include <color_pars_fragment>
3093#include <uv_pars_fragment>
3094#include <map_pars_fragment>
3095#include <alphamap_pars_fragment>
3096#include <alphatest_pars_fragment>
3097#include <alphahash_pars_fragment>
3098#include <fog_pars_fragment>
3099#include <normal_pars_fragment>
3100#include <bumpmap_pars_fragment>
3101#include <normalmap_pars_fragment>
3102#include <logdepthbuf_pars_fragment>
3103#include <clipping_planes_pars_fragment>
3104void main() {
3105	vec4 diffuseColor = vec4( diffuse, opacity );
3106	#include <clipping_planes_fragment>
3107	#include <logdepthbuf_fragment>
3108	#include <map_fragment>
3109	#include <color_fragment>
3110	#include <alphamap_fragment>
3111	#include <alphatest_fragment>
3112	#include <alphahash_fragment>
3113	#include <normal_fragment_begin>
3114	#include <normal_fragment_maps>
3115	vec3 viewDir = normalize( vViewPosition );
3116	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
3117	vec3 y = cross( viewDir, x );
3118	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
3119	#ifdef USE_MATCAP
3120		vec4 matcapColor = texture2D( matcap, uv );
3121	#else
3122		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
3123	#endif
3124	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
3125	#include <opaque_fragment>
3126	#include <tonemapping_fragment>
3127	#include <colorspace_fragment>
3128	#include <fog_fragment>
3129	#include <premultiplied_alpha_fragment>
3130	#include <dithering_fragment>
3131}`,meshnormal_vert:`#define NORMAL
3132#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3133	varying vec3 vViewPosition;
3134#endif
3135#include <common>
3136#include <batching_pars_vertex>
3137#include <uv_pars_vertex>
3138#include <displacementmap_pars_vertex>
3139#include <normal_pars_vertex>
3140#include <morphtarget_pars_vertex>
3141#include <skinning_pars_vertex>
3142#include <logdepthbuf_pars_vertex>
3143#include <clipping_planes_pars_vertex>
3144void main() {
3145	#include <uv_vertex>
3146	#include <batching_vertex>
3147	#include <beginnormal_vertex>
3148	#include <morphinstance_vertex>
3149	#include <morphnormal_vertex>
3150	#include <skinbase_vertex>
3151	#include <skinnormal_vertex>
3152	#include <defaultnormal_vertex>
3153	#include <normal_vertex>
3154	#include <begin_vertex>
3155	#include <morphtarget_vertex>
3156	#include <skinning_vertex>
3157	#include <displacementmap_vertex>
3158	#include <project_vertex>
3159	#include <logdepthbuf_vertex>
3160	#include <clipping_planes_vertex>
3161#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3162	vViewPosition = - mvPosition.xyz;
3163#endif
3164}`,meshnormal_frag:`#define NORMAL
3165uniform float opacity;
3166#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
3167	varying vec3 vViewPosition;
3168#endif
3169#include <uv_pars_fragment>
3170#include <normal_pars_fragment>
3171#include <bumpmap_pars_fragment>
3172#include <normalmap_pars_fragment>
3173#include <logdepthbuf_pars_fragment>
3174#include <clipping_planes_pars_fragment>
3175void main() {
3176	vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );
3177	#include <clipping_planes_fragment>
3178	#include <logdepthbuf_fragment>
3179	#include <normal_fragment_begin>
3180	#include <normal_fragment_maps>
3181	gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a );
3182	#ifdef OPAQUE
3183		gl_FragColor.a = 1.0;
3184	#endif
3185}`,meshphong_vert:`#define PHONG
3186varying vec3 vViewPosition;
3187#include <common>
3188#include <batching_pars_vertex>
3189#include <uv_pars_vertex>
3190#include <displacementmap_pars_vertex>
3191#include <envmap_pars_vertex>
3192#include <color_pars_vertex>
3193#include <fog_pars_vertex>
3194#include <normal_pars_vertex>
3195#include <morphtarget_pars_vertex>
3196#include <skinning_pars_vertex>
3197#include <shadowmap_pars_vertex>
3198#include <logdepthbuf_pars_vertex>
3199#include <clipping_planes_pars_vertex>
3200void main() {
3201	#include <uv_vertex>
3202	#include <color_vertex>
3203	#include <morphcolor_vertex>
3204	#include <batching_vertex>
3205	#include <beginnormal_vertex>
3206	#include <morphinstance_vertex>
3207	#include <morphnormal_vertex>
3208	#include <skinbase_vertex>
3209	#include <skinnormal_vertex>
3210	#include <defaultnormal_vertex>
3211	#include <normal_vertex>
3212	#include <begin_vertex>
3213	#include <morphtarget_vertex>
3214	#include <skinning_vertex>
3215	#include <displacementmap_vertex>
3216	#include <project_vertex>
3217	#include <logdepthbuf_vertex>
3218	#include <clipping_planes_vertex>
3219	vViewPosition = - mvPosition.xyz;
3220	#include <worldpos_vertex>
3221	#include <envmap_vertex>
3222	#include <shadowmap_vertex>
3223	#include <fog_vertex>
3224}`,meshphong_frag:`#define PHONG
3225uniform vec3 diffuse;
3226uniform vec3 emissive;
3227uniform vec3 specular;
3228uniform float shininess;
3229uniform float opacity;
3230#include <common>
3231#include <dithering_pars_fragment>
3232#include <color_pars_fragment>
3233#include <uv_pars_fragment>
3234#include <map_pars_fragment>
3235#include <alphamap_pars_fragment>
3236#include <alphatest_pars_fragment>
3237#include <alphahash_pars_fragment>
3238#include <aomap_pars_fragment>
3239#include <lightmap_pars_fragment>
3240#include <emissivemap_pars_fragment>
3241#include <cube_uv_reflection_fragment>
3242#include <envmap_common_pars_fragment>
3243#include <envmap_pars_fragment>
3244#include <envmap_physical_pars_fragment>
3245#include <fog_pars_fragment>
3246#include <bsdfs>
3247#include <lights_pars_begin>
3248#include <normal_pars_fragment>
3249#include <lights_phong_pars_fragment>
3250#include <shadowmap_pars_fragment>
3251#include <bumpmap_pars_fragment>
3252#include <normalmap_pars_fragment>
3253#include <specularmap_pars_fragment>
3254#include <logdepthbuf_pars_fragment>
3255#include <clipping_planes_pars_fragment>
3256void main() {
3257	vec4 diffuseColor = vec4( diffuse, opacity );
3258	#include <clipping_planes_fragment>
3259	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3260	vec3 totalEmissiveRadiance = emissive;
3261	#include <logdepthbuf_fragment>
3262	#include <map_fragment>
3263	#include <color_fragment>
3264	#include <alphamap_fragment>
3265	#include <alphatest_fragment>
3266	#include <alphahash_fragment>
3267	#include <specularmap_fragment>
3268	#include <normal_fragment_begin>
3269	#include <normal_fragment_maps>
3270	#include <emissivemap_fragment>
3271	#include <lights_phong_fragment>
3272	#include <lights_fragment_begin>
3273	#include <lights_fragment_maps>
3274	#include <lights_fragment_end>
3275	#include <aomap_fragment>
3276	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
3277	#include <envmap_fragment>
3278	#include <opaque_fragment>
3279	#include <tonemapping_fragment>
3280	#include <colorspace_fragment>
3281	#include <fog_fragment>
3282	#include <premultiplied_alpha_fragment>
3283	#include <dithering_fragment>
3284}`,meshphysical_vert:`#define STANDARD
3285varying vec3 vViewPosition;
3286#ifdef USE_TRANSMISSION
3287	varying vec3 vWorldPosition;
3288#endif
3289#include <common>
3290#include <batching_pars_vertex>
3291#include <uv_pars_vertex>
3292#include <displacementmap_pars_vertex>
3293#include <color_pars_vertex>
3294#include <fog_pars_vertex>
3295#include <normal_pars_vertex>
3296#include <morphtarget_pars_vertex>
3297#include <skinning_pars_vertex>
3298#include <shadowmap_pars_vertex>
3299#include <logdepthbuf_pars_vertex>
3300#include <clipping_planes_pars_vertex>
3301void main() {
3302	#include <uv_vertex>
3303	#include <color_vertex>
3304	#include <morphinstance_vertex>
3305	#include <morphcolor_vertex>
3306	#include <batching_vertex>
3307	#include <beginnormal_vertex>
3308	#include <morphnormal_vertex>
3309	#include <skinbase_vertex>
3310	#include <skinnormal_vertex>
3311	#include <defaultnormal_vertex>
3312	#include <normal_vertex>
3313	#include <begin_vertex>
3314	#include <morphtarget_vertex>
3315	#include <skinning_vertex>
3316	#include <displacementmap_vertex>
3317	#include <project_vertex>
3318	#include <logdepthbuf_vertex>
3319	#include <clipping_planes_vertex>
3320	vViewPosition = - mvPosition.xyz;
3321	#include <worldpos_vertex>
3322	#include <shadowmap_vertex>
3323	#include <fog_vertex>
3324#ifdef USE_TRANSMISSION
3325	vWorldPosition = worldPosition.xyz;
3326#endif
3327}`,meshphysical_frag:`#define STANDARD
3328#ifdef PHYSICAL
3329	#define IOR
3330	#define USE_SPECULAR
3331#endif
3332uniform vec3 diffuse;
3333uniform vec3 emissive;
3334uniform float roughness;
3335uniform float metalness;
3336uniform float opacity;
3337#ifdef IOR
3338	uniform float ior;
3339#endif
3340#ifdef USE_SPECULAR
3341	uniform float specularIntensity;
3342	uniform vec3 specularColor;
3343	#ifdef USE_SPECULAR_COLORMAP
3344		uniform sampler2D specularColorMap;
3345	#endif
3346	#ifdef USE_SPECULAR_INTENSITYMAP
3347		uniform sampler2D specularIntensityMap;
3348	#endif
3349#endif
3350#ifdef USE_CLEARCOAT
3351	uniform float clearcoat;
3352	uniform float clearcoatRoughness;
3353#endif
3354#ifdef USE_DISPERSION
3355	uniform float dispersion;
3356#endif
3357#ifdef USE_IRIDESCENCE
3358	uniform float iridescence;
3359	uniform float iridescenceIOR;
3360	uniform float iridescenceThicknessMinimum;
3361	uniform float iridescenceThicknessMaximum;
3362#endif
3363#ifdef USE_SHEEN
3364	uniform vec3 sheenColor;
3365	uniform float sheenRoughness;
3366	#ifdef USE_SHEEN_COLORMAP
3367		uniform sampler2D sheenColorMap;
3368	#endif
3369	#ifdef USE_SHEEN_ROUGHNESSMAP
3370		uniform sampler2D sheenRoughnessMap;
3371	#endif
3372#endif
3373#ifdef USE_ANISOTROPY
3374	uniform vec2 anisotropyVector;
3375	#ifdef USE_ANISOTROPYMAP
3376		uniform sampler2D anisotropyMap;
3377	#endif
3378#endif
3379varying vec3 vViewPosition;
3380#include <common>
3381#include <dithering_pars_fragment>
3382#include <color_pars_fragment>
3383#include <uv_pars_fragment>
3384#include <map_pars_fragment>
3385#include <alphamap_pars_fragment>
3386#include <alphatest_pars_fragment>
3387#include <alphahash_pars_fragment>
3388#include <aomap_pars_fragment>
3389#include <lightmap_pars_fragment>
3390#include <emissivemap_pars_fragment>
3391#include <iridescence_fragment>
3392#include <cube_uv_reflection_fragment>
3393#include <envmap_common_pars_fragment>
3394#include <envmap_physical_pars_fragment>
3395#include <fog_pars_fragment>
3396#include <lights_pars_begin>
3397#include <normal_pars_fragment>
3398#include <lights_physical_pars_fragment>
3399#include <transmission_pars_fragment>
3400#include <shadowmap_pars_fragment>
3401#include <bumpmap_pars_fragment>
3402#include <normalmap_pars_fragment>
3403#include <clearcoat_pars_fragment>
3404#include <iridescence_pars_fragment>
3405#include <roughnessmap_pars_fragment>
3406#include <metalnessmap_pars_fragment>
3407#include <logdepthbuf_pars_fragment>
3408#include <clipping_planes_pars_fragment>
3409void main() {
3410	vec4 diffuseColor = vec4( diffuse, opacity );
3411	#include <clipping_planes_fragment>
3412	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3413	vec3 totalEmissiveRadiance = emissive;
3414	#include <logdepthbuf_fragment>
3415	#include <map_fragment>
3416	#include <color_fragment>
3417	#include <alphamap_fragment>
3418	#include <alphatest_fragment>
3419	#include <alphahash_fragment>
3420	#include <roughnessmap_fragment>
3421	#include <metalnessmap_fragment>
3422	#include <normal_fragment_begin>
3423	#include <normal_fragment_maps>
3424	#include <clearcoat_normal_fragment_begin>
3425	#include <clearcoat_normal_fragment_maps>
3426	#include <emissivemap_fragment>
3427	#include <lights_physical_fragment>
3428	#include <lights_fragment_begin>
3429	#include <lights_fragment_maps>
3430	#include <lights_fragment_end>
3431	#include <aomap_fragment>
3432	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
3433	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
3434	#include <transmission_fragment>
3435	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
3436	#ifdef USE_SHEEN
3437 
3438		outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect;
3439 
3440 	#endif
3441	#ifdef USE_CLEARCOAT
3442		float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
3443		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
3444		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
3445	#endif
3446	#include <opaque_fragment>
3447	#include <tonemapping_fragment>
3448	#include <colorspace_fragment>
3449	#include <fog_fragment>
3450	#include <premultiplied_alpha_fragment>
3451	#include <dithering_fragment>
3452}`,meshtoon_vert:`#define TOON
3453varying vec3 vViewPosition;
3454#include <common>
3455#include <batching_pars_vertex>
3456#include <uv_pars_vertex>
3457#include <displacementmap_pars_vertex>
3458#include <color_pars_vertex>
3459#include <fog_pars_vertex>
3460#include <normal_pars_vertex>
3461#include <morphtarget_pars_vertex>
3462#include <skinning_pars_vertex>
3463#include <shadowmap_pars_vertex>
3464#include <logdepthbuf_pars_vertex>
3465#include <clipping_planes_pars_vertex>
3466void main() {
3467	#include <uv_vertex>
3468	#include <color_vertex>
3469	#include <morphinstance_vertex>
3470	#include <morphcolor_vertex>
3471	#include <batching_vertex>
3472	#include <beginnormal_vertex>
3473	#include <morphnormal_vertex>
3474	#include <skinbase_vertex>
3475	#include <skinnormal_vertex>
3476	#include <defaultnormal_vertex>
3477	#include <normal_vertex>
3478	#include <begin_vertex>
3479	#include <morphtarget_vertex>
3480	#include <skinning_vertex>
3481	#include <displacementmap_vertex>
3482	#include <project_vertex>
3483	#include <logdepthbuf_vertex>
3484	#include <clipping_planes_vertex>
3485	vViewPosition = - mvPosition.xyz;
3486	#include <worldpos_vertex>
3487	#include <shadowmap_vertex>
3488	#include <fog_vertex>
3489}`,meshtoon_frag:`#define TOON
3490uniform vec3 diffuse;
3491uniform vec3 emissive;
3492uniform float opacity;
3493#include <common>
3494#include <dithering_pars_fragment>
3495#include <color_pars_fragment>
3496#include <uv_pars_fragment>
3497#include <map_pars_fragment>
3498#include <alphamap_pars_fragment>
3499#include <alphatest_pars_fragment>
3500#include <alphahash_pars_fragment>
3501#include <aomap_pars_fragment>
3502#include <lightmap_pars_fragment>
3503#include <emissivemap_pars_fragment>
3504#include <gradientmap_pars_fragment>
3505#include <fog_pars_fragment>
3506#include <bsdfs>
3507#include <lights_pars_begin>
3508#include <normal_pars_fragment>
3509#include <lights_toon_pars_fragment>
3510#include <shadowmap_pars_fragment>
3511#include <bumpmap_pars_fragment>
3512#include <normalmap_pars_fragment>
3513#include <logdepthbuf_pars_fragment>
3514#include <clipping_planes_pars_fragment>
3515void main() {
3516	vec4 diffuseColor = vec4( diffuse, opacity );
3517	#include <clipping_planes_fragment>
3518	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
3519	vec3 totalEmissiveRadiance = emissive;
3520	#include <logdepthbuf_fragment>
3521	#include <map_fragment>
3522	#include <color_fragment>
3523	#include <alphamap_fragment>
3524	#include <alphatest_fragment>
3525	#include <alphahash_fragment>
3526	#include <normal_fragment_begin>
3527	#include <normal_fragment_maps>
3528	#include <emissivemap_fragment>
3529	#include <lights_toon_fragment>
3530	#include <lights_fragment_begin>
3531	#include <lights_fragment_maps>
3532	#include <lights_fragment_end>
3533	#include <aomap_fragment>
3534	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
3535	#include <opaque_fragment>
3536	#include <tonemapping_fragment>
3537	#include <colorspace_fragment>
3538	#include <fog_fragment>
3539	#include <premultiplied_alpha_fragment>
3540	#include <dithering_fragment>
3541}`,points_vert:`uniform float size;
3542uniform float scale;
3543#include <common>
3544#include <color_pars_vertex>
3545#include <fog_pars_vertex>
3546#include <morphtarget_pars_vertex>
3547#include <logdepthbuf_pars_vertex>
3548#include <clipping_planes_pars_vertex>
3549#ifdef USE_POINTS_UV
3550	varying vec2 vUv;
3551	uniform mat3 uvTransform;
3552#endif
3553void main() {
3554	#ifdef USE_POINTS_UV
3555		vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
3556	#endif
3557	#include <color_vertex>
3558	#include <morphinstance_vertex>
3559	#include <morphcolor_vertex>
3560	#include <begin_vertex>
3561	#include <morphtarget_vertex>
3562	#include <project_vertex>
3563	gl_PointSize = size;
3564	#ifdef USE_SIZEATTENUATION
3565		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
3566		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
3567	#endif
3568	#include <logdepthbuf_vertex>
3569	#include <clipping_planes_vertex>
3570	#include <worldpos_vertex>
3571	#include <fog_vertex>
3572}`,points_frag:`uniform vec3 diffuse;
3573uniform float opacity;
3574#include <common>
3575#include <color_pars_fragment>
3576#include <map_particle_pars_fragment>
3577#include <alphatest_pars_fragment>
3578#include <alphahash_pars_fragment>
3579#include <fog_pars_fragment>
3580#include <logdepthbuf_pars_fragment>
3581#include <clipping_planes_pars_fragment>
3582void main() {
3583	vec4 diffuseColor = vec4( diffuse, opacity );
3584	#include <clipping_planes_fragment>
3585	vec3 outgoingLight = vec3( 0.0 );
3586	#include <logdepthbuf_fragment>
3587	#include <map_particle_fragment>
3588	#include <color_fragment>
3589	#include <alphatest_fragment>
3590	#include <alphahash_fragment>
3591	outgoingLight = diffuseColor.rgb;
3592	#include <opaque_fragment>
3593	#include <tonemapping_fragment>
3594	#include <colorspace_fragment>
3595	#include <fog_fragment>
3596	#include <premultiplied_alpha_fragment>
3597}`,shadow_vert:`#include <common>
3598#include <batching_pars_vertex>
3599#include <fog_pars_vertex>
3600#include <morphtarget_pars_vertex>
3601#include <skinning_pars_vertex>
3602#include <logdepthbuf_pars_vertex>
3603#include <shadowmap_pars_vertex>
3604void main() {
3605	#include <batching_vertex>
3606	#include <beginnormal_vertex>
3607	#include <morphinstance_vertex>
3608	#include <morphnormal_vertex>
3609	#include <skinbase_vertex>
3610	#include <skinnormal_vertex>
3611	#include <defaultnormal_vertex>
3612	#include <begin_vertex>
3613	#include <morphtarget_vertex>
3614	#include <skinning_vertex>
3615	#include <project_vertex>
3616	#include <logdepthbuf_vertex>
3617	#include <worldpos_vertex>
3618	#include <shadowmap_vertex>
3619	#include <fog_vertex>
3620}`,shadow_frag:`uniform vec3 color;
3621uniform float opacity;
3622#include <common>
3623#include <fog_pars_fragment>
3624#include <bsdfs>
3625#include <lights_pars_begin>
3626#include <logdepthbuf_pars_fragment>
3627#include <shadowmap_pars_fragment>
3628#include <shadowmask_pars_fragment>
3629void main() {
3630	#include <logdepthbuf_fragment>
3631	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
3632	#include <tonemapping_fragment>
3633	#include <colorspace_fragment>
3634	#include <fog_fragment>
3635	#include <premultiplied_alpha_fragment>
3636}`,sprite_vert:`uniform float rotation;
3637uniform vec2 center;
3638#include <common>
3639#include <uv_pars_vertex>
3640#include <fog_pars_vertex>
3641#include <logdepthbuf_pars_vertex>
3642#include <clipping_planes_pars_vertex>
3643void main() {
3644	#include <uv_vertex>
3645	vec4 mvPosition = modelViewMatrix[ 3 ];
3646	vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );
3647	#ifndef USE_SIZEATTENUATION
3648		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
3649		if ( isPerspective ) scale *= - mvPosition.z;
3650	#endif
3651	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
3652	vec2 rotatedPosition;
3653	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
3654	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
3655	mvPosition.xy += rotatedPosition;
3656	gl_Position = projectionMatrix * mvPosition;
3657	#include <logdepthbuf_vertex>
3658	#include <clipping_planes_vertex>
3659	#include <fog_vertex>
3660}`,sprite_frag:`uniform vec3 diffuse;
3661uniform float opacity;
3662#include <common>
3663#include <uv_pars_fragment>
3664#include <map_pars_fragment>
3665#include <alphamap_pars_fragment>
3666#include <alphatest_pars_fragment>
3667#include <alphahash_pars_fragment>
3668#include <fog_pars_fragment>
3669#include <logdepthbuf_pars_fragment>
3670#include <clipping_planes_pars_fragment>
3671void main() {
3672	vec4 diffuseColor = vec4( diffuse, opacity );
3673	#include <clipping_planes_fragment>
3674	vec3 outgoingLight = vec3( 0.0 );
3675	#include <logdepthbuf_fragment>
3676	#include <map_fragment>
3677	#include <alphamap_fragment>
3678	#include <alphatest_fragment>
3679	#include <alphahash_fragment>
3680	outgoingLight = diffuseColor.rgb;
3681	#include <opaque_fragment>
3682	#include <tonemapping_fragment>
3683	#include <colorspace_fragment>
3684	#include <fog_fragment>
3685}`},$={common:{diffuse:{value:new Z(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Hg},alphaMap:{value:null},alphaMapTransform:{value:new Hg},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Hg}},envmap:{envMap:{value:null},envMapRotation:{value:new Hg},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Hg}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Hg}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Hg},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Hg},normalScale:{value:new Y(1,1)}}
vendor: 6,705 bytes, line 3685
3685,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Hg},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Hg}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Hg}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Hg}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Z(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 X},probesMax:{value:new X},probesResolution:{value:new X}},points:{diffuse:{value:new Z(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Hg},alphaTest:{value:0},uvTransform:{value:new Hg}},sprite:{diffuse:{value:new Z(16777215)},opacity:{value:1},center:{value:new Y(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Hg},alphaMap:{value:null},alphaMapTransform:{value:new Hg},alphaTest:{value:0}}},aD={basic:{uniforms:vC([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.fog]),vertexShader:iD.meshbasic_vert,fragmentShader:iD.meshbasic_frag},lambert:{uniforms:vC([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},envMapIntensity:{value:1}}]),vertexShader:iD.meshlambert_vert,fragmentShader:iD.meshlambert_frag},phong:{uniforms:vC([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},specular:{value:new Z(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:iD.meshphong_vert,fragmentShader:iD.meshphong_frag},standard:{uniforms:vC([$.common,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.roughnessmap,$.metalnessmap,$.fog,$.lights,{emissive:{value:new Z(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:iD.meshphysical_vert,fragmentShader:iD.meshphysical_frag},toon:{uniforms:vC([$.common,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.gradientmap,$.fog,$.lights,{emissive:{value:new Z(0)}}]),vertexShader:iD.meshtoon_vert,fragmentShader:iD.meshtoon_frag},matcap:{uniforms:vC([$.common,$.bumpmap,$.normalmap,$.displacementmap,$.fog,{matcap:{value:null}}]),vertexShader:iD.meshmatcap_vert,fragmentShader:iD.meshmatcap_frag},points:{uniforms:vC([$.points,$.fog]),vertexShader:iD.points_vert,fragmentShader:iD.points_frag},dashed:{uniforms:vC([$.common,$.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:iD.linedashed_vert,fragmentShader:iD.linedashed_frag},depth:{uniforms:vC([$.common,$.displacementmap]),vertexShader:iD.depth_vert,fragmentShader:iD.depth_frag},normal:{uniforms:vC([$.common,$.bumpmap,$.normalmap,$.displacementmap,{opacity:{value:1}}]),vertexShader:iD.meshnormal_vert,fragmentShader:iD.meshnormal_frag},sprite:{uniforms:vC([$.sprite,$.fog]),vertexShader:iD.sprite_vert,fragmentShader:iD.sprite_frag},background:{uniforms:{uvTransform:{value:new Hg},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:iD.background_vert,fragmentShader:iD.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Hg}},vertexShader:iD.backgroundCube_vert,fragmentShader:iD.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:iD.cube_vert,fragmentShader:iD.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:iD.equirect_vert,fragmentShader:iD.equirect_frag},distance:{uniforms:vC([$.common,$.displacementmap,{referencePosition:{value:new X},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:iD.distance_vert,fragmentShader:iD.distance_frag},shadow:{uniforms:vC([$.lights,$.fog,{color:{value:new Z(0)},opacity:{value:1}}]),vertexShader:iD.shadow_vert,fragmentShader:iD.shadow_frag}};aD.physical={uniforms:vC([aD.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Hg},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Hg},clearcoatNormalScale:{value:new Y(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Hg},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Hg},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Hg},sheen:{value:0},sheenColor:{value:new Z(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Hg},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Hg},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Hg},transmissionSamplerSize:{value:new Y},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Hg},attenuationDistance:{value:0},attenuationColor:{value:new Z(0)},specularColor:{value:new Z(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Hg},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Hg},anisotropyVector:{value:new Y},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Hg}}]),vertexShader:iD.meshphysical_vert,fragmentShader:iD.meshphysical_frag};var oD={r:0,b:0,g:0}
vendor: 7,580 bytes, line 3685
3685,sD=new d_,cD=new Hg;cD.set(-1,0,0,0,1,0,0,0,1);function lD(e,t,n,r,i,a){let o=new Z(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new Wy(new Ex(1,1,1),new TC({name:`BackgroundCubeMaterial`,uniforms:_C(aD.backgroundCube.uniforms),vertexShader:aD.backgroundCube.vertexShader,fragmentShader:aD.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(sD.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(cD),l.material.toneMapped=qg.getTransfer(i.colorSpace)!==Eh,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new Wy(new iC(2,2),new TC({name:`BackgroundMaterial`,uniforms:_C(aD.background.uniforms),vertexShader:aD.background.vertexShader,fragmentShader:aD.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,`map`,{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=qg.getTransfer(i.colorSpace)!==Eh,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(oD,xC(e)),n.buffers.color.setClear(oD.r,oD.g,oD.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function uD(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e<n;e++)t[e]=0,r[e]=0,i[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:r,attributeDivisors:i,object:e,attributes:{},index:null}}function p(e,t,n,r){let i=a.attributes,o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function g(e){_(e,0)}function _(t,n){let r=a.newAttributes,i=a.enabledAttributes,o=a.attributeDivisors;r[t]=1,i[t]===0&&(e.enableVertexAttribArray(t),i[t]=1),o[t]!==n&&(e.vertexAttribDivisor(t,n),o[t]=n)}function v(){let t=a.newAttributes,n=a.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,r,i,a,o,s){s===!0?e.vertexAttribIPointer(t,n,r,a,o):e.vertexAttribPointer(t,n,r,i,a,o)}function b(n,r,i,a){h();let o=a.attributes,s=i.getAttributes(),c=r.defaultAttributeValues;for(let r in s){let i=s[r];if(i.location>=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<i.locationSize;e++)_(i.location+e,t.meshPerAttribute);n.isInstancedMesh!==!0&&a._maxInstanceCount===void 0&&(a._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<i.locationSize;e++)g(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,l);for(let e=0;e<i.locationSize;e++)y(i.location+e,o/i.locationSize,u,r,c*d,(p+o/i.locationSize*e)*d,f)}else{if(s.isInstancedBufferAttribute){for(let e=0;e<i.locationSize;e++)_(i.location+e,s.meshPerAttribute);n.isInstancedMesh!==!0&&a._maxInstanceCount===void 0&&(a._maxInstanceCount=s.meshPerAttribute*s.count)}else for(let e=0;e<i.locationSize;e++)g(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,l);for(let e=0;e<i.locationSize;e++)y(i.location+e,o/i.locationSize,u,r,o*d,o/i.locationSize*e*d,f)}}else if(c!==void 0){let t=c[r];if(t!==void 0)switch(t.length){case 2:e.vertexAttrib2fv(i.location,t);break;case 3:e.vertexAttrib3fv(i.location,t);break;case 4:e.vertexAttrib4fv(i.location,t);break;default:e.vertexAttrib1fv(i.location,t)}}}}v()}function x(){T();for(let e in r){let t=r[e];for(let e in t){let n=t[e];for(let e in n){let t=n[e];for(let e in t)u(t[e].object),delete t[e];delete n[e]}}delete r[e]}}function S(e){if(r[e.id]===void 0)return;let t=r[e.id];for(let e in t){let n=t[e];for(let e in n){let t=n[e];for(let e in t)u(t[e].object),delete t[e];delete n[e]}}delete r[e.id]}function C(e){for(let t in r){let n=r[t];for(let t in n){let r=n[t];if(r[e.id]===void 0)continue;let i=r[e.id];for(let e in i)u(i[e].object),delete i[e];delete r[e.id]}}}function w(e){for(let t in r){let n=r[t],i=e.isInstancedMesh===!0?e.id:0,a=n[i];if(a!==void 0){for(let e in a){let t=a[e];for(let e in t)u(t[e].object),delete t[e];delete a[e]}delete n[i],Object.keys(n).length===0&&delete r[t]}}}function T(){E(),o=!0,a!==i&&(a=i,l(a.object))}
vendor: 16,696 bytes, lines 3685-3864
3685function E(){i.geometry=null,i.program=null,i.wireframe=!1}return{setup:s,reset:T,resetDefaultState:E,dispose:x,releaseStatesOfGeometry:S,releaseStatesOfObject:w,releaseStatesOfProgram:C,initAttributes:h,enableAttribute:g,disableUnusedAttributes:v}}function dD(e,t,n){let r;function i(e){r=e}function a(t,i){e.drawArrays(r,t,i),n.update(i,r,1)}function o(t,i,a){a!==0&&(e.drawArraysInstanced(r,t,i,a),n.update(i,r,a))}function s(e,i,a){if(a===0)return;t.get(`WEBGL_multi_draw`).multiDrawArraysWEBGL(r,e,0,i,0,a);let o=0;for(let e=0;e<a;e++)o+=i[e];n.update(o,r,1)}this.setMode=i,this.render=a,this.renderInstances=o,this.renderMultiDraw=s}function fD(e,t,n,r){let i;function a(){if(i!==void 0)return i;if(t.has(`EXT_texture_filter_anisotropic`)===!0){let n=t.get(`EXT_texture_filter_anisotropic`);i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function o(t){return!(t!==1023&&r.convert(t)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT))}function s(n){let i=n===1016&&(t.has(`EXT_color_buffer_half_float`)||t.has(`EXT_color_buffer_float`));return!(n!==1009&&r.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==1015&&!i)}function c(t){if(t===`highp`){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(q(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&q(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function pD(e){let t=this,n=null,r=0,i=!1,a=!1,o=new bb,s=new Hg,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length<t)&&(l=new Float32Array(t));for(let t=0,n=r;t!==a;++t,n+=4)o.copy(e[t]).applyMatrix4(i,s),o.normal.toArray(l,n),l[n+3]=o.constant}c.value=l,c.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,l}}var mD=4,hD=[.125,.215,.35,.446,.526,.582],gD=20,_D=256,vD=new zw,yD=new Z,bD=null,xD=0,SD=0,CD=!1,wD=new X,TD=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,t=0,n=.1,r=100,i={}){let{size:a=256,position:o=wD}=i;bD=this._renderer.getRenderTarget(),xD=this._renderer.getActiveCubeFace(),SD=this._renderer.getActiveMipmapLevel(),CD=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(a);let s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,r,s,o),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=MD(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=jD(),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=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(bD,xD,SD),this._renderer.xr.enabled=CD,e.scissorTest=!1,OD(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===301||e.mapping===302?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),bD=this._renderer.getRenderTarget(),xD=this._renderer.getActiveCubeFace(),SD=this._renderer.getActiveMipmapLevel(),CD=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;let n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){let e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:Xp,minFilter:Xp,generateMipmaps:!1,type:cm,format:gm,colorSpace:wh,depthBuffer:!1},r=DD(e,t,n);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=DD(e,t,n);let{_lodMax:r}=this;({lodMeshes:this._lodMeshes,sizeLods:this._sizeLods,sigmas:this._sigmas}=ED(r)),this._blurMaterial=AD(r,e,t),this._ggxMaterial=kD(r,e,t)}return r}_compileMaterial(e){let t=new Wy(new $v,e);this._renderer.compile(t,vD)}_sceneToCubeUV(e,t,n,r,i){let a=new Pw(90,1,t,n),o=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],c=this._renderer,l=c.autoClear,u=c.toneMapping;c.getClearColor(yD),c.toneMapping=0,c.autoClear=!1,c.state.buffers.depth.getReversed()&&(c.setRenderTarget(r),c.clearDepth(),c.setRenderTarget(null)),this._backgroundBox===null&&(this._backgroundBox=new Wy(new Ex,new My({name:`PMREM.Background`,side:1,depthWrite:!1,depthTest:!1})));let d=this._backgroundBox,f=d.material,p=!1,m=e.background;m?m.isColor&&(f.color.copy(m),e.background=null,p=!0):(f.color.copy(yD),p=!0);for(let t=0;t<6;t++){let n=t%3;n===0?(a.up.set(0,o[t],0),a.position.set(i.x,i.y,i.z),a.lookAt(i.x+s[t],i.y,i.z)):n===1?(a.up.set(0,0,o[t]),a.position.set(i.x,i.y,i.z),a.lookAt(i.x,i.y+s[t],i.z)):(a.up.set(0,o[t],0),a.position.set(i.x,i.y,i.z),a.lookAt(i.x,i.y,i.z+s[t]));let l=this._cubeSize;OD(r,n*l,t>2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=MD()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=jD());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;OD(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,vD)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;t<r;t++)this._applyGGXFilter(e,t-1,t);t.autoClear=n}_applyGGXFilter(e,t,n){let r=this._renderer,i=this._pingPongRenderTarget,a=this._ggxMaterial,o=this._lodMeshes[n];o.material=a;let s=a.uniforms,c=n/(this._lodMeshes.length-1),l=t/(this._lodMeshes.length-1),u=Math.sqrt(c*c-l*l)*(0+c*1.25),{_lodMax:d}=this,f=this._sizeLods[n],p=3*f*(n>d-mD?n-d+mD:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,OD(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,vD),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,OD(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,vD)}_blur(e,t,n,r,i){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,`latitudinal`,i),this._halfBlur(a,e,n,n,r,`longitudinal`,i)}_halfBlur(e,t,n,r,i,a,o){let s=this._renderer,c=this._blurMaterial;a!==`latitudinal`&&a!==`longitudinal`&&J(`blur direction must be either latitudinal or longitudinal!`);let l=this._lodMeshes[r];l.material=c;let u=c.uniforms,d=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*d):2*Math.PI/(2*gD-1),p=i/f,m=isFinite(i)?1+Math.floor(3*p):gD;m>gD&&q(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${gD}`);let h=[],g=0;for(let e=0;e<gD;++e){let t=e/p,n=Math.exp(-t*t/2);h.push(n),e===0?g+=n:e<m&&(g+=2*n)}for(let e=0;e<h.length;e++)h[e]=h[e]/g;u.envMap.value=e.texture,u.samples.value=m,u.weights.value=h,u.latitudinal.value=a===`latitudinal`,o&&(u.poleAxis.value=o);let{_lodMax:_}=this;u.dTheta.value=f,u.mipInt.value=_-n;let v=this._sizeLods[r];OD(t,3*v*(r>_-mD?r-_+mD:0),4*(this._cubeSize-v),3*v,2*v),s.setRenderTarget(t),s.render(l,vD)}};function ED(e){let t=[],n=[],r=[],i=e,a=e-mD+1+hD.length;for(let o=0;o<a;o++){let a=2**i;t.push(a);let s=1/a;o>e-mD?s=hD[o-e+mD-1]:o===0&&(s=0),n.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new $v;h.setAttribute(`position`,new Nv(f,3)),h.setAttribute(`uv`,new Nv(p,2)),h.setAttribute(`faceIndex`,new Nv(m,1)),r.push(new Wy(h,null)),i>mD&&i--}return{lodMeshes:r,sizeLods:t,sigmas:n}}function DD(e,t,n){let r=new o_(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function OD(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function kD(e,t,n){return new TC({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:_D,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:ND(),fragmentShader:`
3686
3687			precision highp float;
3688			precision highp int;
3689
3690			varying vec3 vOutputDirection;
3691
3692			uniform sampler2D envMap;
3693			uniform float roughness;
3694			uniform float mipInt;
3695
3696			#define ENVMAP_TYPE_CUBE_UV
3697			#include <cube_uv_reflection_fragment>
3698
3699			#define PI 3.14159265359
3700
3701			// Van der Corput radical inverse
3702			float radicalInverse_VdC(uint bits) {
3703				bits = (bits << 16u) | (bits >> 16u);
3704				bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u);
3705				bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u);
3706				bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u);
3707				bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u);
3708				return float(bits) * 2.3283064365386963e-10; // / 0x100000000
3709			}
3710
3711			// Hammersley sequence
3712			vec2 hammersley(uint i, uint N) {
3713				return vec2(float(i) / float(N), radicalInverse_VdC(i));
3714			}
3715
3716			// GGX VNDF importance sampling (Eric Heitz 2018)
3717			// "Sampling the GGX Distribution of Visible Normals"
3718			// https://jcgt.org/published/0007/04/01/
3719			vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) {
3720				float alpha = roughness * roughness;
3721
3722				// Section 4.1: Orthonormal basis
3723				vec3 T1 = vec3(1.0, 0.0, 0.0);
3724				vec3 T2 = cross(V, T1);
3725
3726				// Section 4.2: Parameterization of projected area
3727				float r = sqrt(Xi.x);
3728				float phi = 2.0 * PI * Xi.y;
3729				float t1 = r * cos(phi);
3730				float t2 = r * sin(phi);
3731				float s = 0.5 * (1.0 + V.z);
3732				t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2;
3733
3734				// Section 4.3: Reprojection onto hemisphere
3735				vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V;
3736
3737				// Section 3.4: Transform back to ellipsoid configuration
3738				return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z)));
3739			}
3740
3741			void main() {
3742				vec3 N = normalize(vOutputDirection);
3743				vec3 V = N; // Assume view direction equals normal for pre-filtering
3744
3745				vec3 prefilteredColor = vec3(0.0);
3746				float totalWeight = 0.0;
3747
3748				// For very low roughness, just sample the environment directly
3749				if (roughness < 0.001) {
3750					gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0);
3751					return;
3752				}
3753
3754				// Tangent space basis for VNDF sampling
3755				vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0);
3756				vec3 tangent = normalize(cross(up, N));
3757				vec3 bitangent = cross(N, tangent);
3758
3759				for(uint i = 0u; i < uint(GGX_SAMPLES); i++) {
3760					vec2 Xi = hammersley(i, uint(GGX_SAMPLES));
3761
3762					// For PMREM, V = N, so in tangent space V is always (0, 0, 1)
3763					vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness);
3764
3765					// Transform H back to world space
3766					vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z);
3767					vec3 L = normalize(2.0 * dot(V, H) * H - V);
3768
3769					float NdotL = max(dot(N, L), 0.0);
3770
3771					if(NdotL > 0.0) {
3772						// Sample environment at fixed mip level
3773						// VNDF importance sampling handles the distribution filtering
3774						vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt);
3775
3776						// Weight by NdotL for the split-sum approximation
3777						// VNDF PDF naturally accounts for the visible microfacet distribution
3778						prefilteredColor += sampleColor * NdotL;
3779						totalWeight += NdotL;
3780					}
3781				}
3782
3783				if (totalWeight > 0.0) {
3784					prefilteredColor = prefilteredColor / totalWeight;
3785				}
3786
3787				gl_FragColor = vec4(prefilteredColor, 1.0);
3788			}
3789		`,blending:0,depthTest:!1,depthWrite:!1})}function AD(e,t,n){let r=new Float32Array(gD),i=new X(0,1,0);return new TC({name:`SphericalGaussianBlur`,defines:{n:gD,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:ND(),fragmentShader:`
3790
3791			precision mediump float;
3792			precision mediump int;
3793
3794			varying vec3 vOutputDirection;
3795
3796			uniform sampler2D envMap;
3797			uniform int samples;
3798			uniform float weights[ n ];
3799			uniform bool latitudinal;
3800			uniform float dTheta;
3801			uniform float mipInt;
3802			uniform vec3 poleAxis;
3803
3804			#define ENVMAP_TYPE_CUBE_UV
3805			#include <cube_uv_reflection_fragment>
3806
3807			vec3 getSample( float theta, vec3 axis ) {
3808
3809				float cosTheta = cos( theta );
3810				// Rodrigues' axis-angle rotation
3811				vec3 sampleDirection = vOutputDirection * cosTheta
3812					+ cross( axis, vOutputDirection ) * sin( theta )
3813					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );
3814
3815				return bilinearCubeUV( envMap, sampleDirection, mipInt );
3816
3817			}
3818
3819			void main() {
3820
3821				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );
3822
3823				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {
3824
3825					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );
3826
3827				}
3828
3829				axis = normalize( axis );
3830
3831				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
3832				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );
3833
3834				for ( int i = 1; i < n; i++ ) {
3835
3836					if ( i >= samples ) {
3837
3838						break;
3839
3840					}
3841
3842					float theta = dTheta * float( i );
3843					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
3844					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );
3845
3846				}
3847
3848			}
3849		`,blending:0,depthTest:!1,depthWrite:!1})}function jD(){return new TC({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:ND(),fragmentShader:`
3850
3851			precision mediump float;
3852			precision mediump int;
3853
3854			varying vec3 vOutputDirection;
3855
3856			uniform sampler2D envMap;
3857
3858			#include <common>
3859
3860			void main() {
3861
3862				vec3 outputDirection = normalize( vOutputDirection );
3863				vec2 uv = equirectUv( outputDirection );
3864
3865				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );
3866
3867			}
3868		`,blending:0,depthTest:!1,depthWrite:!1})}function MD(){return new TC({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:ND(),fragmentShader:`
3869
3870			precision mediump float;
3871			precision mediump int;
3872
3873			uniform float flipEnvMap;
3874
3875			varying vec3 vOutputDirection;
3876
3877			uniform samplerCube envMap;
3878
3879			void main() {
3880
3881				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );
3882
3883			}
3884		`,blending:0,depthTest:!1,depthWrite:!1})}function ND(){return`
3885
3886		precision mediump float;
3887		precision mediump int;
3888
3889		attribute float faceIndex;
3890
3891		varying vec3 vOutputDirection;
3892
3893		// RH coordinate system; PMREM face-indexing convention
3894		vec3 getDirection( vec2 uv, float face ) {
3895
3896			uv = 2.0 * uv - 1.0;
3897
3898			vec3 direction = vec3( uv, 1.0 );
3899
3900			if ( face == 0.0 ) {
3901
3902				direction = direction.zyx; // ( 1, v, u ) pos x
3903
3904			} else if ( face == 1.0 ) {
3905
3906				direction = direction.xzy;
3907				direction.xz *= -1.0; // ( -u, 1, -v ) pos y
3908
3909			} else if ( face == 2.0 ) {
3910
3911				direction.x *= -1.0; // ( -u, v, 1 ) pos z
3912
3913			} else if ( face == 3.0 ) {
3914
3915				direction = direction.zyx;
3916				direction.xz *= -1.0; // ( -1, v, -u ) neg x
3917
3918			} else if ( face == 4.0 ) {
3919
3920				direction = direction.xzy;
3921				direction.xy *= -1.0; // ( -u, -1, v ) neg y
3922
3923			} else if ( face == 5.0 ) {
3924
3925				direction.z *= -1.0; // ( u, v, -1 ) neg z
3926
3927			}
3928
3929			return direction;
3930
3931		}
3932
3933		void main() {
3934
3935			vOutputDirection = getDirection( uv, faceIndex );
3936			gl_Position = vec4( position, 1.0 );
3937
3938		}
3939	`}var PD=class extends o_{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new bx(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:`
3940
3941				varying vec3 vWorldDirection;
3942
3943				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
3944
3945					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
3946
3947				}
3948
3949				void main() {
3950
3951					vWorldDirection = transformDirection( position, modelMatrix );
3952
3953					#include <begin_vertex>
3954					#include <project_vertex>
3955
3956				}
3957			`,fragmentShader:`
3958
3959				uniform sampler2D tEquirect;
3960
3961				varying vec3 vWorldDirection;
3962
3963				#include <common>
3964
3965				void main() {
3966
3967					vec3 direction = normalize( vWorldDirection );
3968
3969					vec2 sampleUV = equirectUv( direction );
3970
3971					gl_FragColor = texture2D( tEquirect, sampleUV );
3972
3973				}
3974			`},r=new Ex(5,5,5),i=new TC({name:`CubemapFromEquirect`,uniforms:_C(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new Wy(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=Xp),new fT(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function FD(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304)if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}else{let r=n.image;if(r&&r.height>0){let i=new PD(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}else return null}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new TD(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new TD(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function ID(e){let t={};
vendor: 23,341 bytes, lines 3974-4055
3974function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==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(e){let t=n(e);return t===null&&cg(`WebGLRenderer: `+e+` extension not supported.`),t}}}function LD(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t<r;t+=3){let r=e[t+0],i=e[t+1],a=e[t+2];n.push(r,i,i,a,a,r)}}else{let e=i.array;o=i.version;for(let t=0,r=e.length/3-1;t<r;t+=3){let e=t+0,r=t+1,i=t+2;n.push(e,r,r,i,i,e)}}let s=new(i.count>=65535?Bv:Rv)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.version<n.version&&l(e)}else l(e);return a.get(e)}return{get:s,update:c,getWireframeAttribute:u}}function RD(e,t,n){let r;function i(e){r=e}let a,o;function s(e){a=e.type,o=e.bytesPerElement}function c(t,i){e.drawElements(r,i,a,t*o),n.update(i,r,1)}function l(t,i,s){s!==0&&(e.drawElementsInstanced(r,i,a,t*o,s),n.update(i,r,s))}function u(e,i,o){if(o===0)return;t.get(`WEBGL_multi_draw`).multiDrawElementsWEBGL(r,i,0,a,e,0,o);let s=0;for(let e=0;e<o;e++)s+=i[e];n.update(s,r,1)}this.setMode=i,this.setIndex=s,this.render=c,this.renderInstances=l,this.renderMultiDraw=u}function zD(e){let t={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function r(t,r,i){switch(n.calls++,r){case e.TRIANGLES:n.triangles+=t/3*i;break;case e.LINES:n.lines+=t/2*i;break;case e.LINE_STRIP:n.lines+=i*(t-1);break;case e.LINE_LOOP:n.lines+=i*t;break;case e.POINTS:n.points+=i*t;break;default:J(`WebGLInfo: Unknown draw mode:`,r);break}}function i(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:t,render:n,programs:null,autoReset:!0,reset:i,update:r}}function BD(e,t,n){let r=new WeakMap,i=new i_;function a(a,o,s){let c=a.morphTargetInfluences,l=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,u=l===void 0?0:l.length,d=r.get(o);if(d===void 0||d.count!==u){d!==void 0&&d.texture.dispose();let e=o.morphAttributes.position!==void 0,n=o.morphAttributes.normal!==void 0,a=o.morphAttributes.color!==void 0,s=o.morphAttributes.position||[],c=o.morphAttributes.normal||[],l=o.morphAttributes.color||[],f=0;e===!0&&(f=1),n===!0&&(f=2),a===!0&&(f=3);let p=o.attributes.position.count*f,m=1;p>t.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new s_(h,p,m,u);g.type=sm,g.needsUpdate=!0;let _=f*4;for(let t=0;t<u;t++){let r=s[t],o=c[t],u=l[t],d=p*m*4*t;for(let t=0;t<r.count;t++){let s=t*_;e===!0&&(i.fromBufferAttribute(r,t),h[d+s+0]=i.x,h[d+s+1]=i.y,h[d+s+2]=i.z,h[d+s+3]=0),n===!0&&(i.fromBufferAttribute(o,t),h[d+s+4]=i.x,h[d+s+5]=i.y,h[d+s+6]=i.z,h[d+s+7]=0),a===!0&&(i.fromBufferAttribute(u,t),h[d+s+8]=i.x,h[d+s+9]=i.y,h[d+s+10]=i.z,h[d+s+11]=u.itemSize===4?i.w:1)}}d={count:u,texture:g,size:new Y(p,m)},r.set(o,d);function v(){g.dispose(),r.delete(o),o.removeEventListener(`dispose`,v)}o.addEventListener(`dispose`,v)}if(a.isInstancedMesh===!0&&a.morphTexture!==null)s.getUniforms().setValue(e,`morphTexture`,a.morphTexture,n);else{let t=0;for(let e=0;e<c.length;e++)t+=c[e];let n=o.morphTargetsRelative?1:1-t;s.getUniforms().setValue(e,`morphTargetBaseInfluence`,n),s.getUniforms().setValue(e,`morphTargetInfluences`,c)}s.getUniforms().setValue(e,`morphTargetsTexture`,d.texture,n),s.getUniforms().setValue(e,`morphTargetsTextureSize`,d.size)}return{update:a}}function VD(e,t,n,r,i){let a=new WeakMap;function o(r){let o=i.render.frame,s=r.geometry,l=t.get(r,s);if(a.get(l)!==o&&(t.update(l),a.set(l,o)),r.isInstancedMesh&&(r.hasEventListener(`dispose`,c)===!1&&r.addEventListener(`dispose`,c),a.get(r)!==o&&(n.update(r.instanceMatrix,e.ARRAY_BUFFER),r.instanceColor!==null&&n.update(r.instanceColor,e.ARRAY_BUFFER),a.set(r,o))),r.isSkinnedMesh){let e=r.skeleton;a.get(e)!==o&&(e.update(),a.set(e,o))}return l}function s(){a=new WeakMap}function c(e){let t=e.target;t.removeEventListener(`dispose`,c),r.releaseStatesOfObject(t),n.remove(t.instanceMatrix),t.instanceColor!==null&&n.remove(t.instanceColor)}return{update:o,dispose:s}}var HD={1:`LINEAR_TONE_MAPPING`,2:`REINHARD_TONE_MAPPING`,3:`CINEON_TONE_MAPPING`,4:`ACES_FILMIC_TONE_MAPPING`,6:`AGX_TONE_MAPPING`,7:`NEUTRAL_TONE_MAPPING`,5:`CUSTOM_TONE_MAPPING`};function UD(e,t,n,r,i){let a=new o_(t,n,{type:e,depthBuffer:r,stencilBuffer:i,depthTexture:r?new Cx(t,n):void 0}),o=new o_(t,n,{type:cm,depthBuffer:!1,stencilBuffer:!1}),s=new $v;s.setAttribute(`position`,new Q([-1,3,0,-1,-1,0,3,-1,0],3)),s.setAttribute(`uv`,new Q([0,2,0,0,2,0],2));let c=new EC({uniforms:{tDiffuse:{value:null}},vertexShader:`
3975			precision highp float;
3976
3977			uniform mat4 modelViewMatrix;
3978			uniform mat4 projectionMatrix;
3979
3980			attribute vec3 position;
3981			attribute vec2 uv;
3982
3983			varying vec2 vUv;
3984
3985			void main() {
3986				vUv = uv;
3987				gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
3988			}`,fragmentShader:`
3989			precision highp float;
3990
3991			uniform sampler2D tDiffuse;
3992
3993			varying vec2 vUv;
3994
3995			#include <tonemapping_pars_fragment>
3996			#include <colorspace_pars_fragment>
3997
3998			void main() {
3999				gl_FragColor = texture2D( tDiffuse, vUv );
4000
4001				#ifdef LINEAR_TONE_MAPPING
4002					gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb );
4003				#elif defined( REINHARD_TONE_MAPPING )
4004					gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb );
4005				#elif defined( CINEON_TONE_MAPPING )
4006					gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb );
4007				#elif defined( ACES_FILMIC_TONE_MAPPING )
4008					gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb );
4009				#elif defined( AGX_TONE_MAPPING )
4010					gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb );
4011				#elif defined( NEUTRAL_TONE_MAPPING )
4012					gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb );
4013				#elif defined( CUSTOM_TONE_MAPPING )
4014					gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb );
4015				#endif
4016
4017				#ifdef SRGB_TRANSFER
4018					gl_FragColor = sRGBTransferOETF( gl_FragColor );
4019				#endif
4020			}`,depthTest:!1,depthWrite:!1}),l=new Wy(s,c),u=new zw(-1,1,1,-1,0,1),d=null,f=null,p=!1,m,h=null,g=[],_=!1;this.setSize=function(e,t){a.setSize(e,t),o.setSize(e,t);for(let n=0;n<g.length;n++){let r=g[n];r.setSize&&r.setSize(e,t)}},this.setEffects=function(e){g=e,_=g.length>0&&g[0].isRenderPass===!0;let t=a.width,n=a.height;for(let e=0;e<g.length;e++){let r=g[e];r.setSize&&r.setSize(t,n)}},this.begin=function(e,t){if(p||e.toneMapping===0&&g.length===0)return!1;if(h=t,t!==null){let e=t.width,n=t.height;(a.width!==e||a.height!==n)&&this.setSize(e,n)}return _===!1&&e.setRenderTarget(a),m=e.toneMapping,e.toneMapping=0,!0},this.hasRenderPass=function(){return _},this.end=function(e,t){e.toneMapping=m,p=!0;let n=a,r=o;for(let i=0;i<g.length;i++){let a=g[i];if(a.enabled!==!1&&(a.render(e,r,n,t),a.needsSwap!==!1)){let e=n;n=r,r=e}}if(d!==e.outputColorSpace||f!==e.toneMapping){d=e.outputColorSpace,f=e.toneMapping,c.defines={},qg.getTransfer(d)===`srgb`&&(c.defines.SRGB_TRANSFER=``);let t=HD[f];t&&(c.defines[t]=``),c.needsUpdate=!0}c.uniforms.tDiffuse.value=n.texture,e.setRenderTarget(h),e.render(l,u),h=null,p=!1},this.isCompositing=function(){return p},this.dispose=function(){a.depthTexture&&a.depthTexture.dispose(),a.dispose(),o.dispose(),s.dispose(),c.dispose()}}var WD=new r_,GD=new Cx(1,1),KD=new s_,qD=new l_,JD=new bx,YD=[],XD=[],ZD=new Float32Array(16),QD=new Float32Array(9),$D=new Float32Array(4);function eO(e,t,n){let r=e[0];if(r<=0||r>0)return e;let i=t*n,a=YD[i];if(a===void 0&&(a=new Float32Array(i),YD[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function tO(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function nO(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}function rO(e,t){let n=XD[t];n===void 0&&(n=new Int32Array(t),XD[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function iO(e,t){let n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function aO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(tO(n,t))return;e.uniform2fv(this.addr,t),nO(n,t)}}function oO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(t.r!==void 0)(n[0]!==t.r||n[1]!==t.g||n[2]!==t.b)&&(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(tO(n,t))return;e.uniform3fv(this.addr,t),nO(n,t)}}function sO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(tO(n,t))return;e.uniform4fv(this.addr,t),nO(n,t)}}function cO(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(tO(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),nO(n,t)}else{if(tO(n,r))return;$D.set(r),e.uniformMatrix2fv(this.addr,!1,$D),nO(n,r)}}function lO(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(tO(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),nO(n,t)}else{if(tO(n,r))return;QD.set(r),e.uniformMatrix3fv(this.addr,!1,QD),nO(n,r)}}function uO(e,t){let n=this.cache,r=t.elements;if(r===void 0){if(tO(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),nO(n,t)}else{if(tO(n,r))return;ZD.set(r),e.uniformMatrix4fv(this.addr,!1,ZD),nO(n,r)}}function dO(e,t){let n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function fO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(tO(n,t))return;e.uniform2iv(this.addr,t),nO(n,t)}}function pO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(tO(n,t))return;e.uniform3iv(this.addr,t),nO(n,t)}}function mO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(tO(n,t))return;e.uniform4iv(this.addr,t),nO(n,t)}}function hO(e,t){let n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function gO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y)&&(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(tO(n,t))return;e.uniform2uiv(this.addr,t),nO(n,t)}}function _O(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z)&&(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(tO(n,t))return;e.uniform3uiv(this.addr,t),nO(n,t)}}function vO(e,t){let n=this.cache;if(t.x!==void 0)(n[0]!==t.x||n[1]!==t.y||n[2]!==t.z||n[3]!==t.w)&&(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(tO(n,t))return;e.uniform4uiv(this.addr,t),nO(n,t)}}function yO(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i);let a;this.type===e.SAMPLER_2D_SHADOW?(GD.compareFunction=n.isReversedDepthBuffer()?518:515,a=GD):a=WD,n.setTexture2D(t||a,i)}function bO(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||qD,i)}function xO(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(t||JD,i)}function SO(e,t,n){let r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||KD,i)}function CO(e){switch(e){case 5126:return iO;case 35664:return aO;case 35665:return oO;case 35666:return sO;case 35674:return cO;case 35675:return lO;case 35676:return uO;case 5124:case 35670:return dO;case 35667:case 35671:return fO;case 35668:case 35672:return pO;case 35669:case 35673:return mO;case 5125:return hO;case 36294:return gO;case 36295:return _O;case 36296:return vO;case 35678:case 36198:case 36298:case 36306:case 35682:return yO;case 35679:case 36299:case 36307:return bO;case 35680:case 36300:case 36308:case 36293:return xO;case 36289:case 36303:case 36311:case 36292:return SO}}function wO(e,t){e.uniform1fv(this.addr,t)}function TO(e,t){let n=eO(t,this.size,2);e.uniform2fv(this.addr,n)}function EO(e,t){let n=eO(t,this.size,3);e.uniform3fv(this.addr,n)}function DO(e,t){let n=eO(t,this.size,4);e.uniform4fv(this.addr,n)}function OO(e,t){let n=eO(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function kO(e,t){let n=eO(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function AO(e,t){let n=eO(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function jO(e,t){e.uniform1iv(this.addr,t)}function MO(e,t){e.uniform2iv(this.addr,t)}function NO(e,t){e.uniform3iv(this.addr,t)}function PO(e,t){e.uniform4iv(this.addr,t)}function FO(e,t){e.uniform1uiv(this.addr,t)}function IO(e,t){e.uniform2uiv(this.addr,t)}function LO(e,t){e.uniform3uiv(this.addr,t)}function RO(e,t){e.uniform4uiv(this.addr,t)}function zO(e,t,n){let r=this.cache,i=t.length,a=rO(n,i);tO(r,a)||(e.uniform1iv(this.addr,a),nO(r,a));let o;o=this.type===e.SAMPLER_2D_SHADOW?GD:WD;for(let e=0;e!==i;++e)n.setTexture2D(t[e]||o,a[e])}function BO(e,t,n){let r=this.cache,i=t.length,a=rO(n,i);tO(r,a)||(e.uniform1iv(this.addr,a),nO(r,a));for(let e=0;e!==i;++e)n.setTexture3D(t[e]||qD,a[e])}function VO(e,t,n){let r=this.cache,i=t.length,a=rO(n,i);tO(r,a)||(e.uniform1iv(this.addr,a),nO(r,a));for(let e=0;e!==i;++e)n.setTextureCube(t[e]||JD,a[e])}function HO(e,t,n){let r=this.cache,i=t.length,a=rO(n,i);tO(r,a)||(e.uniform1iv(this.addr,a),nO(r,a));for(let e=0;e!==i;++e)n.setTexture2DArray(t[e]||KD,a[e])}function UO(e){switch(e){case 5126:return wO;case 35664:return TO;case 35665:return EO;case 35666:return DO;case 35674:return OO;case 35675:return kO;case 35676:return AO;case 5124:case 35670:return jO;case 35667:case 35671:return MO;case 35668:case 35672:return NO;case 35669:case 35673:return PO;case 5125:return FO;case 36294:return IO;case 36295:return LO;case 36296:return RO;case 35678:case 36198:case 36298:case 36306:case 35682:return zO;case 35679:case 36299:case 36307:return BO;case 35680:case 36300:case 36308:case 36293:return VO;case 36289:case 36303:case 36311:case 36292:return HO}}var WO=class{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=CO(t.type)}},GO=class{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=UO(t.type)}},KO=class{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){let r=this.seq;for(let i=0,a=r.length;i!==a;++i){let a=r[i];a.setValue(e,t[a.id],n)}}},qO=/(\w+)(\])?(\[|\.)?/g;function JO(e,t){e.seq.push(t),e.map[t.id]=t}function YO(e,t,n){let r=e.name,i=r.length;for(qO.lastIndex=0;;){let a=qO.exec(r),o=qO.lastIndex,s=a[1],c=a[2]===`]`,l=a[3];if(c&&(s|=0),l===void 0||l===`[`&&o+2===i){JO(n,l===void 0?new WO(s,e,t):new GO(s,e,t));break}else{let e=n.map[s];e===void 0&&(e=new KO(s),JO(n,e)),n=e}}}var XO=class{constructor(e,t){this.seq=[],this.map={};let n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let r=0;r<n;++r){let n=e.getActiveUniform(t,r);YO(n,e.getUniformLocation(t,n.name),this)}let r=[],i=[];for(let t of this.seq)t.type===e.SAMPLER_2D_SHADOW||t.type===e.SAMPLER_CUBE_SHADOW||t.type===e.SAMPLER_2D_ARRAY_SHADOW?r.push(t):i.push(t);r.length>0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function ZO(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var QO=37297,$O=0;function ek(e,t){let n=e.split(`
4021`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e<a;e++){let i=e+1;r.push(`${i===t?`>`:` `} ${i}: ${n[e]}`)}return r.join(`
4022`)}var tk=new Hg;function nk(e){qg._getMatrix(tk,qg.workingColorSpace,e);let t=`mat3( ${tk.elements.map(e=>e.toFixed(4))} )`;switch(qg.getTransfer(e)){case Th:return[t,`LinearTransferOETF`];case Eh:return[t,`sRGBTransferOETF`];default:return q(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function rk(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+`
4023
4024`+i+`
4025
4026`+ek(e.getShaderSource(t),r)}else return i}function ik(e,t){let n=nk(t);return[`vec4 ${e}( vec4 value ) {`,`	return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(`
4027`)}var ak={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function ok(e,t){let n=ak[t];return n===void 0?(q(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var sk=new X;function ck(){return qg.getLuminanceCoefficients(sk),[`float luminance( const in vec3 rgb ) {`,`	const vec3 weights = vec3( ${sk.x.toFixed(4)}, ${sk.y.toFixed(4)}, ${sk.z.toFixed(4)} );`,`	return dot( weights, rgb );`,`}`].join(`
4028`)}function lk(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(fk).join(`
4029`)}function uk(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(`
4030`)}function dk(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){let r=e.getActiveAttrib(t,i),a=r.name,o=1;r.type===e.FLOAT_MAT2&&(o=2),r.type===e.FLOAT_MAT3&&(o=3),r.type===e.FLOAT_MAT4&&(o=4),n[a]={type:r.type,location:e.getAttribLocation(t,a),locationSize:o}}return n}function fk(e){return e!==``}function pk(e,t){let n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function mk(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}var hk=/^[ \t]*#include +<([\w\d./]+)>/gm;function gk(e){return e.replace(hk,vk)}var _k=new Map;function vk(e,t){let n=iD[t];if(n===void 0){let e=_k.get(t);if(e!==void 0)n=iD[e],q(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return gk(n)}var yk=/#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 bk(e){return e.replace(yk,xk)}function xk(e,t,n,r){let i=``;for(let e=parseInt(t);e<parseInt(n);e++)i+=r.replace(/\[\s*i\s*\]/g,`[ `+e+` ]`).replace(/UNROLLED_LOOP_INDEX/g,e);return i}function Sk(e){let t=`precision ${e.precision} float;
4031	precision ${e.precision} int;
4032	precision ${e.precision} sampler2D;
4033	precision ${e.precision} samplerCube;
4034	precision ${e.precision} sampler3D;
4035	precision ${e.precision} sampler2DArray;
4036	precision ${e.precision} sampler2DShadow;
4037	precision ${e.precision} samplerCubeShadow;
4038	precision ${e.precision} sampler2DArrayShadow;
4039	precision ${e.precision} isampler2D;
4040	precision ${e.precision} isampler3D;
4041	precision ${e.precision} isamplerCube;
4042	precision ${e.precision} isampler2DArray;
4043	precision ${e.precision} usampler2D;
4044	precision ${e.precision} usampler3D;
4045	precision ${e.precision} usamplerCube;
4046	precision ${e.precision} usampler2DArray;
4047	`;return e.precision===`highp`?t+=`
4048#define HIGH_PRECISION`:e.precision===`mediump`?t+=`
4049#define MEDIUM_PRECISION`:e.precision===`lowp`&&(t+=`
4050#define LOW_PRECISION`),t}var Ck={1:`SHADOWMAP_TYPE_PCF`,3:`SHADOWMAP_TYPE_VSM`};function wk(e){return Ck[e.shadowMapType]||`SHADOWMAP_TYPE_BASIC`}var Tk={301:`ENVMAP_TYPE_CUBE`,302:`ENVMAP_TYPE_CUBE`,306:`ENVMAP_TYPE_CUBE_UV`};function Ek(e){return e.envMap===!1?`ENVMAP_TYPE_CUBE`:Tk[e.envMapMode]||`ENVMAP_TYPE_CUBE`}var Dk={302:`ENVMAP_MODE_REFRACTION`};function Ok(e){return e.envMap===!1?`ENVMAP_MODE_REFLECTION`:Dk[e.envMapMode]||`ENVMAP_MODE_REFLECTION`}var kk={0:`ENVMAP_BLENDING_MULTIPLY`,1:`ENVMAP_BLENDING_MIX`,2:`ENVMAP_BLENDING_ADD`};function Ak(e){return e.envMap===!1?`ENVMAP_BLENDING_NONE`:kk[e.combine]||`ENVMAP_BLENDING_NONE`}function jk(e){let t=e.envMapCubeUVHeight;if(t===null)return null;let n=Math.log2(t)-2,r=1/t;return{texelWidth:1/(3*Math.max(2**n,112)),texelHeight:r,maxMip:n}}function Mk(e,t,n,r){let i=e.getContext(),a=n.defines,o=n.vertexShader,s=n.fragmentShader,c=wk(n),l=Ek(n),u=Ok(n),d=Ak(n),f=jk(n),p=lk(n),m=uk(a),h=i.createProgram(),g,_,v=n.glslVersion?`#version `+n.glslVersion+`
4051`:``;n.isRawShaderMaterial?(g=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(fk).join(`
4052`),g.length>0&&(g+=`
4053`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(fk).join(`
4054`),_.length>0&&(_+=`
4055`)):(g=[Sk(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#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_IR
4055IDESCENCEMAP`:``,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 `+c:``,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`,`
4056`].filter(fk).join(`
4057`),_=[Sk(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matc
vendor: 21,538 bytes, lines 4057-4071
4057ap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.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 `+c:``,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===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:iD.tonemapping_pars_fragment,n.toneMapping===0?``:ok(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,iD.colorspace_pars_fragment,ik(`linearToOutputTexel`,n.outputColorSpace),ck(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,`
4058`].filter(fk).join(`
4059`)),o=gk(o),o=pk(o,n),o=mk(o,n),s=gk(s),s=pk(s,n),s=mk(s,n),o=bk(o),s=bk(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es
4060`,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(`
4061`)+`
4062`+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#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(`
4063`)+`
4064`+_);let y=v+g+o,b=v+_+s,x=ZO(i,i.VERTEX_SHADER,y),S=ZO(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=rk(i,x,`vertex`),n=rk(i,S,`fragment`);J(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+`
4065
4066Material Name: `+t.name+`
4067Material Type: `+t.type+`
4068
4069Program Info Log: `+o+`
4070`+e+`
4071`+n)}else o===``?(s===``||c===``)&&(u=!1):q(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new XO(i,h),T=dk(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,QO)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=$O++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var Nk=0,Pk=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.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){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Fk(e),t.set(e,n)),n}},Fk=class{constructor(e){this.id=Nk++,this.code=e,this.usedTimes=0}};function Ik(e){return e===1030||e===37490||e===36285}function Lk(e,t,n,r,i,a){let o=new S_,s=new Pk,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,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 m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&q(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=aD[C];D=e.vertexShader,O=e.fragmentShader}else D=i.vertexShader,O=i.fragmentShader,s.update(i),k=s.getVertexShaderID(i),A=s.getFragmentShaderID(i);let j=e.getRenderTarget(),M=e.state.buffers.depth.getReversed(),N=h.isInstancedMesh===!0,P=h.isBatchedMesh===!0,ee=!!i.map,F=!!i.matcap,I=!!x,te=!!i.aoMap,ne=!!i.lightMap,L=!!i.bumpMap,re=!!i.normalMap,ie=!!i.displacementMap,R=!!i.emissiveMap,ae=!!i.metalnessMap,z=!!i.roughnessMap,oe=i.anisotropy>0,se=i.clearcoat>0,B=i.dispersion>0,ce=i.iridescence>0,le=i.sheen>0,ue=i.transmission>0,de=oe&&!!i.anisotropyMap,fe=se&&!!i.clearcoatMap,pe=se&&!!i.clearcoatNormalMap,V=se&&!!i.clearcoatRoughnessMap,me=ce&&!!i.iridescenceMap,he=ce&&!!i.iridescenceThicknessMap,ge=le&&!!i.sheenColorMap,H=le&&!!i.sheenRoughnessMap,_e=!!i.specularMap,U=!!i.specularColorMap,ve=!!i.specularIntensityMap,ye=ue&&!!i.transmissionMap,be=ue&&!!i.thicknessMap,xe=!!i.gradientMap,Se=!!i.alphaMap,Ce=i.alphaTest>0,we=!!i.alphaHash,Te=!!i.extensions,Ee=0;i.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Ee=e.toneMapping);let De={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:P,batchingColor:P&&h._colorsTexture!==null,instancing:N,instancingColor:N&&h.instanceColor!==null,instancingMorph:N&&h.morphTexture!==null,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:qg.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ee,matcap:F,envMap:I,envMapMode:I&&x.mapping,envMapCubeUVHeight:S,aoMap:te,lightMap:ne,bumpMap:L,normalMap:re,displacementMap:ie,emissiveMap:R,normalMapObjectSpace:re&&i.normalMapType===1,normalMapTangentSpace:re&&i.normalMapType===0,packedNormalMap:re&&i.normalMapType===0&&Ik(i.normalMap.format),metalnessMap:ae,roughnessMap:z,anisotropy:oe,anisotropyMap:de,clearcoat:se,clearcoatMap:fe,clearcoatNormalMap:pe,clearcoatRoughnessMap:V,dispersion:B,iridescence:ce,iridescenceMap:me,iridescenceThicknessMap:he,sheen:le,sheenColorMap:ge,sheenRoughnessMap:H,specularMap:_e,specularColorMap:U,specularIntensityMap:ve,transmission:ue,transmissionMap:ye,thicknessMap:be,gradientMap:xe,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Se,alphaTest:Ce,alphaHash:we,combine:i.combine,mapUv:ee&&m(i.map.channel),aoMapUv:te&&m(i.aoMap.channel),lightMapUv:ne&&m(i.lightMap.channel),bumpMapUv:L&&m(i.bumpMap.channel),normalMapUv:re&&m(i.normalMap.channel),displacementMapUv:ie&&m(i.displacementMap.channel),emissiveMapUv:R&&m(i.emissiveMap.channel),metalnessMapUv:ae&&m(i.metalnessMap.channel),roughnessMapUv:z&&m(i.roughnessMap.channel),anisotropyMapUv:de&&m(i.anisotropyMap.channel),clearcoatMapUv:fe&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:pe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:V&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:me&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:he&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:ge&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:H&&m(i.sheenRoughnessMap.channel),specularMapUv:_e&&m(i.specularMap.channel),specularColorMapUv:U&&m(i.specularColorMap.channel),specularIntensityMapUv:ve&&m(i.specularIntensityMap.channel),transmissionMapUv:ye&&m(i.transmissionMap.channel),thicknessMapUv:be&&m(i.thicknessMap.channel),alphaMapUv:Se&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(re||oe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(ee||Se),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&re===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:M,skinning:h.isSkinnedMesh===!0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Ee,decodeVideoTexture:ee&&i.map.isVideoTexture===!0&&qg.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:R&&i.emissiveMap.isVideoTexture===!0&&qg.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Te&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Te&&i.extensions.multiDraw===!0||P)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return De.vertexUv1s=c.has(1),De.vertexUv2s=c.has(2),De.vertexUv3s=c.has(3),c.clear(),De}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=aD[t];n=SC.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Mk(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function Rk(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function zk(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function Bk(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function Vk(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||zk),r.length>1&&r.sort(t||Bk),i.length>1&&i.sort(t||Bk)}function d(){for(let n=t,r=e.length;n<r;n++){let t=e[n];if(t.id===null)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}}return{opaque:n,transmissive:r,transparent:i,init:a,push:c,unshift:l,finish:d,sort:u}}function Hk(){let e=new WeakMap;function t(t,n){let r=e.get(t),i;return r===void 0?(i=new Vk,e.set(t,[i])):n>=r.length?(i=new Vk,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function Uk(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new X,color:new Z};break;case`SpotLight`:n={position:new X,direction:new X,color:new Z,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new X,color:new Z,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new X,skyColor:new Z,groundColor:new Z};break;case`RectAreaLight`:n={color:new Z,position:new X,halfWidth:new X,halfHeight:new X};break}return e[t.id]=n,n}}}function Wk(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Y};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Y};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Y,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var Gk=0;function Kk(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function qk(e){let t=new Uk,n=Wk(),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 e=0;e<9;e++)r.probe.push(new X);let i=new X,a=new d_,o=new d_;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(Kk);for(let e=0,y=i.length;e<y;e++){let y=i[e],b=y.color,x=y.intensity,S=y.distance,C=null;if(y.shadow&&y.shadow.map&&(C=y.shadow.map.texture.format===1030?y.shadow.map.texture:y.shadow.map.depthTexture||y.shadow.map.texture),y.isAmbientLight)a+=b.r*x,o+=b.g*x,s+=b.b*x;else if(y.isLightProbe){for(let e=0;e<9;e++)r.probe[e].addScaledVector(y.sh.coefficients[e],x);v++}else if(y.isDirectionalLight){let e=t.get(y);if(e.color.copy(y.color).multiplyScalar(y.intensity),y.castShadow){let e=y.shadow,t=n.get(y);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.n
vendor: 4,608 bytes, lines 4071-4076
4071ormalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,r.directionalShadow[c]=t,r.directionalShadowMap[c]=C,r.directionalShadowMatrix[c]=y.shadow.matrix,p++}r.directional[c]=e,c++}else if(y.isSpotLight){let e=t.get(y);e.position.setFromMatrixPosition(y.matrixWorld),e.color.copy(b).multiplyScalar(x),e.distance=S,e.coneCos=Math.cos(y.angle),e.penumbraCos=Math.cos(y.angle*(1-y.penumbra)),e.decay=y.decay,r.spot[u]=e;let i=y.shadow;if(y.map&&(r.spotLightMap[g]=y.map,g++,i.updateMatrices(y),y.castShadow&&_++),r.spotLightMatrix[u]=i.matrix,y.castShadow){let e=n.get(y);e.shadowIntensity=i.intensity,e.shadowBias=i.bias,e.shadowNormalBias=i.normalBias,e.shadowRadius=i.radius,e.shadowMapSize=i.mapSize,r.spotShadow[u]=e,r.spotShadowMap[u]=C,h++}u++}else if(y.isRectAreaLight){let e=t.get(y);e.color.copy(b).multiplyScalar(x),e.halfWidth.set(y.width*.5,0,0),e.halfHeight.set(0,y.height*.5,0),r.rectArea[d]=e,d++}else if(y.isPointLight){let e=t.get(y);if(e.color.copy(y.color).multiplyScalar(y.intensity),e.distance=y.distance,e.decay=y.decay,y.castShadow){let e=y.shadow,t=n.get(y);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,r.pointShadow[l]=t,r.pointShadowMap[l]=C,r.pointShadowMatrix[l]=y.shadow.matrix,m++}r.point[l]=e,l++}else if(y.isHemisphereLight){let e=t.get(y);e.skyColor.copy(y.color).multiplyScalar(x),e.groundColor.copy(y.groundColor).multiplyScalar(x),r.hemi[f]=e,f++}}d>0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$.LTC_FLOAT_1,r.rectAreaLTC2=$.LTC_FLOAT_2):(r.rectAreaLTC1=$.LTC_HALF_1,r.rectAreaLTC2=$.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=Gk++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t<f;t++){let f=e[t];if(f.isDirectionalLight){let e=r.directional[n];e.direction.setFromMatrixPosition(f.matrixWorld),i.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(i),e.direction.transformDirection(d),n++}else if(f.isSpotLight){let e=r.spot[c];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(f.matrixWorld),i.setFromMatrixPosition(f.target.matrixWorld),e.direction.sub(i),e.direction.transformDirection(d),c++}else if(f.isRectAreaLight){let e=r.rectArea[l];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(d),o.identity(),a.copy(f.matrixWorld),a.premultiply(d),o.extractRotation(a),e.halfWidth.set(f.width*.5,0,0),e.halfHeight.set(0,f.height*.5,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),l++}else if(f.isPointLight){let e=r.point[s];e.position.setFromMatrixPosition(f.matrixWorld),e.position.applyMatrix4(d),s++}else if(f.isHemisphereLight){let e=r.hemi[u];e.direction.setFromMatrixPosition(f.matrixWorld),e.direction.transformDirection(d),u++}}}return{setup:s,setupView:c,state:r}}function Jk(e){let t=new qk(e),n=[],r=[],i=[];function a(e){d.camera=e,n.length=0,r.length=0,i.length=0}function o(e){n.push(e)}function s(e){r.push(e)}function c(e){i.push(e)}function l(){t.setup(n)}function u(e){t.setupView(n,e)}let d={lightsArray:n,shadowsArray:r,lightProbeGridArray:i,camera:null,lights:t,transmissionRenderTarget:{},textureUnits:0};return{init:a,state:d,setupLights:l,setupLightsView:u,pushLight:o,pushShadow:s,pushLightProbeGrid:c}}function Yk(e){let t=new WeakMap;function n(n,r=0){let i=t.get(n),a;return i===void 0?(a=new Jk(e),t.set(n,[a])):r>=i.length?(a=new Jk(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var Xk=`void main() {
4072	gl_Position = vec4( position, 1.0 );
4073}`,Zk=`uniform sampler2D shadow_pass;
4074uniform vec2 resolution;
4075uniform float radius;
4076void main() {
4077	const float samples = float( VSM_SAMPLES );
4078	float mean = 0.0;
4079	float squared_mean = 0.0;
4080	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
4081	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
4082	for ( float i = 0.0; i < samples; i ++ ) {
4083		float uvOffset = uvStart + i * uvStride;
4084		#ifdef HORIZONTAL_PASS
4085			vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg;
4086			mean += distribution.x;
4087			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
4088		#else
4089			float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r;
4090			mean += depth;
4091			squared_mean += depth * depth;
4092		#endif
4093	}
4094	mean = mean / samples;
4095	squared_mean = squared_mean / samples;
4096	float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) );
4097	gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 );
4098}`,Qk=[new X(1,0,0),new X(-1,0,0),new X(0,1,0),new X(0,-1,0),new X(0,0,1),new X(0,0,-1)],$k=[new X(0,-1,0),new X(0,-1,0),new X(0,0,1),new X(0,0,-1),new X(0,-1,0),new X(0,-1,0)],eA=new d_,tA=new X,nA=new X;function rA(e,t,n){let r=new wb,i=new Y,a=new Y,o=new i_,s=new NC,c=new PC,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new TC({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Y},radius:{value:4}},vertexShader:Xk,fragmentShader:Zk}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new $v;m.setAttribute(`position`,new Nv(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new Wy(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(q(`WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;c<l;c++){let l=t[c],d=l.shadow;if(d===void 0){q(`WebGLShadowMap:`,l,`has no shadow.`);continue}if(d.autoUpdate===!1&&d.needsUpdate===!1)continue;i.copy(d.mapSize);let m=d.getFrameExtents();i.multiply(m),a.copy(d.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){q(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new o_(i.x,i.y,{format:xm,type:cm,minFilter:Xp,magFilter:Xp,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Cx(i.x,i.y,sm),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=_m,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Gp,d.map.depthTexture.magFilter=Gp}else l.isPointLight?(d.map=new PD(i.x),d.map.depthTexture=new wx(i.x,om)):(d.map=new o_(i.x,i.y),d.map.depthTexture=new Cx(i.x,i.y,om)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=_m,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=Xp,d.map.depthTexture.magFilter=Xp):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Gp,d.map.depthTexture.magFilter=Gp);d.camera.updateProjectionMatrix()}let g=d.map.isWebGLCubeRenderTarget?6:1;for(let t=0;t<g;t++){if(d.map.isWebGLCubeRenderTarget)e.setRenderTarget(d.map,t),e.clear();else{t===0&&(e.setRenderTarget(d.map),e.clear());let n=d.getViewport(t);o.set(a.x*n.x,a.y*n.y,a.x*n.z,a.y*n.w),f.viewport(o)}if(l.isPointLight){let e=d.camera,n=d.matrix,r=l.distance||e.far;r!==e.far&&(e.far=r,e.updateProjectionMatrix()),tA.setFromMatrixPosition(l.matrixWorld),e.position.copy(tA),nA.copy(e.position),nA.add(Qk[t]),e.up.copy($
vendor: 14,802 bytes, line 4098
4098k[t]),e.lookAt(nA),e.updateMatrixWorld(),n.makeTranslation(-tA.x,-tA.y,-tA.z),eA.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),d._frustum.setFromProjectionMatrix(eA,e.coordinateSystem,e.reversedDepth)}else d.updateMatrices(l);r=d.getFrustum(),b(n,s,d.camera,l,this.type)}d.isPointLightShadow!==!0&&this.type===3&&v(d,s),d.needsUpdate=!1}_=this.type,g.needsUpdate=!1,e.setRenderTarget(c,l,d)};function v(n,r){let a=t.update(h);f.defines.VSM_SAMPLES!==n.blurSamples&&(f.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,f.needsUpdate=!0,p.needsUpdate=!0),n.mapPass===null&&(n.mapPass=new o_(i.x,i.y,{format:xm,type:cm})),f.uniforms.shadow_pass.value=n.map.depthTexture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,f,h,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,p,h,null)}function y(t,n,r,i){let a=null,o=r.isPointLight===!0?t.customDistanceMaterial:t.customDepthMaterial;if(o!==void 0)a=o;else if(a=r.isPointLight===!0?c:s,e.localClippingEnabled&&n.clipShadows===!0&&Array.isArray(n.clippingPlanes)&&n.clippingPlanes.length!==0||n.displacementMap&&n.displacementScale!==0||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l<u;l++){let u=t[l],d=c[u.materialIndex];if(d&&d.visible){let t=y(n,d,o,s);n.onBeforeShadow(e,n,i,a,r,t,u),e.renderBufferDirect(a,null,r,t,n,u),n.onAfterShadow(e,n,i,a,r,t,u)}}}else if(c.visible){let t=y(n,c,o,s);n.onBeforeShadow(e,n,i,a,r,t,null),e.renderBufferDirect(a,null,r,t,n,null),n.onAfterShadow(e,n,i,a,r,t,null)}}let c=n.children;for(let e=0,t=c.length;e<t;e++)b(c[e],i,a,o,s)}function x(e){e.target.removeEventListener(`dispose`,x);for(let t in l){let n=l[t],r=e.target.uuid;r in n&&(n[r].dispose(),delete n[r])}}}function iA(e,t){function n(){let t=!1,n=new i_,r=null,i=new i_(0,0,0,0);return{setMask:function(n){r!==n&&!t&&(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,a,o,s){s===!0&&(t*=o,r*=o,a*=o),n.set(t,r,a,o),i.equals(n)===!1&&(e.clearColor(t,r,a,o),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}}function r(){let n=!1,r=!1,i=null,a=null,o=null;return{setReversed:function(e){if(r!==e){let n=t.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),r=e;let i=o;o=null,this.setClear(i)}},getReversed:function(){return r},setTest:function(t){t?ae(e.DEPTH_TEST):z(e.DEPTH_TEST)},setMask:function(t){i!==t&&!n&&(e.depthMask(t),i=t)},setFunc:function(t){if(r&&(t=ug[t]),a!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}a=t}},setLocked:function(e){n=e},setClear:function(t){o!==t&&(o=t,r&&(t=1-t),e.clearDepth(t))},reset:function(){n=!1,i=null,a=null,o=null,r=!1}}}function i(){let t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null;return{setTest:function(n){t||(n?ae(e.STENCIL_TEST):z(e.STENCIL_TEST))},setMask:function(r){n!==r&&!t&&(e.stencilMask(r),n=r)},setFunc:function(t,n,o){(r!==t||i!==n||a!==o)&&(e.stencilFunc(t,n,o),r=t,i=n,a=o)},setOp:function(t,n,r){(o!==t||s!==n||c!==r)&&(e.stencilOp(t,n,r),o=t,s=n,c=r)},setLocked:function(e){t=e},setClear:function(t){l!==t&&(e.clearStencil(t),l=t)},reset:function(){t=!1,n=null,r=null,i=null,a=null,o=null,s=null,c=null,l=null}}}let a=new n,o=new r,s=new i,c=new WeakMap,l=new WeakMap,u={},d={},f={},p=new WeakMap,m=[],h=null,g=!1,_=null,v=null,y=null,b=null,x=null,S=null,C=null,w=new Z(0,0,0),T=0,E=!1,D=null,O=null,k=null,A=null,j=null,M=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS),N=!1,P=0,ee=e.getParameter(e.VERSION);ee.indexOf(`WebGL`)===-1?ee.indexOf(`OpenGL ES`)!==-1&&(P=parseFloat(/^OpenGL ES (\d)/.exec(ee)[1]),N=P>=2):(P=parseFloat(/^WebGL (\d)/.exec(ee)[1]),N=P>=1);let F=null,I={},te=e.getParameter(e.SCISSOR_BOX),ne=e.getParameter(e.VIEWPORT),L=new i_().fromArray(te),re=new i_().fromArray(ne);function ie(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o<r;o++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,i,0,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(n+o,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,a);return o}let R={};R[e.TEXTURE_2D]=ie(e.TEXTURE_2D,e.TEXTURE_2D,1),R[e.TEXTURE_CUBE_MAP]=ie(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),R[e.TEXTURE_2D_ARRAY]=ie(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),R[e.TEXTURE_3D]=ie(e.TEXTURE_3D,e.TEXTURE_3D,1,1),a.setClear(0,0,0,1),o.setClear(1),s.setClear(0),ae(e.DEPTH_TEST),o.setFunc(3),fe(!1),pe(1),ae(e.CULL_FACE),ue(0);function ae(t){u[t]!==!0&&(e.enable(t),u[t]=!0)}function z(t){u[t]!==!1&&(e.disable(t),u[t]=!1)}function oe(t,n){return f[t]===n?!1:(e.bindFramebuffer(t,n),f[t]=n,t===e.DRAW_FRAMEBUFFER&&(f[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(f[e.DRAW_FRAMEBUFFER]=n),!0)}function se(t,n){let r=m,i=!1;if(t){r=p.get(n),r===void 0&&(r=[],p.set(n,r));let a=t.textures;if(r.length!==a.length||r[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=a.length;t<n;t++)r[t]=e.COLOR_ATTACHMENT0+t;r.length=a.length,i=!0}}else r[0]!==e.BACK&&(r[0]=e.BACK,i=!0);i&&e.drawBuffers(r)}function B(t){return h===t?!1:(e.useProgram(t),h=t,!0)}let ce={100:e.FUNC_ADD,101:e.FUNC_SUBTRACT,102:e.FUNC_REVERSE_SUBTRACT};ce[103]=e.MIN,ce[104]=e.MAX;let le={200:e.ZERO,201:e.ONE,202:e.SRC_COLOR,204:e.SRC_ALPHA,210:e.SRC_ALPHA_SATURATE,208:e.DST_COLOR,206:e.DST_ALPHA,203:e.ONE_MINUS_SRC_COLOR,205:e.ONE_MINUS_SRC_ALPHA,209:e.ONE_MINUS_DST_COLOR,207:e.ONE_MINUS_DST_ALPHA,211:e.CONSTANT_COLOR,212:e.ONE_MINUS_CONSTANT_COLOR,213:e.CONSTANT_ALPHA,214:e.ONE_MINUS_CONSTANT_ALPHA};function ue(t,n,r,i,a,o,s,c,l,u){if(t===0){g===!0&&(z(e.BLEND),g=!1);return}if(g===!1&&(ae(e.BLEND),g=!0),t!==5){if(t!==_||u!==E){if((v!==100||x!==100)&&(e.blendEquation(e.FUNC_ADD),v=100,x=100),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ZERO,e.ONE);break;default:J(`WebGLState: Invalid blending: `,t);break}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case 3:J(`WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true`);break;case 4:J(`WebGLState: MultiplyBlending requires material.premultipliedAlpha = true`);break;default:J(`WebGLState: Invalid blending: `,t);break}y=null,b=null,S=null,C=null,w.set(0,0,0),T=0,_=t,E=u}return}a||=n,o||=r,s||=i,(n!==v||a!==x)&&(e.blendEquationSeparate(ce[n],ce[a]),v=n,x=a),(r!==y||i!==b||o!==S||s!==C)&&(e.blendFuncSeparate(le[r],le[i],le[o],le[s]),y=r,b=i,S=o,C=s),(c.equals(w)===!1||l!==T)&&(e.blendColor(c.r,c.g,c.b,l),w.copy(c),T=l),_=t,E=!1}function de(t,n){t.side===2?z(e.CULL_FACE):ae(e.CULL_FACE);let r=t.side===1;n&&(r=!r),fe(r),t.blending===1&&t.transparent===!1?ue(0):ue(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),a.setMask(t.colorWrite);let i=t.stencilWrite;s.setTest(i),i&&(s.setMask(t.stencilWriteMask),s.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),s.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),me(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),t.alphaToCoverage===!0?ae(e.SAMPLE_ALPHA_TO_COVERAGE):z(e.SAMPLE_ALPHA_TO_COVERAGE)}function fe(t){D!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),D=t)}function pe(t){t===0?z(e.CULL_FACE):(ae(e.CULL_FACE),t!==O&&(t===1?e.cullFace(e.BACK):t===2?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))),O=t}function V(t){t!==k&&(N&&e.lineWidth(t),k=t)}function me(t,n,r){t?(ae(e.POLYGON_OFFSET_FILL),(A!==n||j!==r)&&(A=n,j=r,o.getReversed()&&(n=-n),e.polygonOffset(n,r))):z(e.POLYGON_OFFSET_FILL)}function he(t){t?ae(e.SCISSOR_TEST):z(e.SCISSOR_TEST)}function ge(t){t===void 0&&(t=e.TEXTURE0+M-1),F!==t&&(e.activeTexture(t),F=t)}function H(t,n,r){r===void 0&&(r=F===null?e.TEXTURE0+M-1:F);let i=I[r];i===void 0&&(i={type:void 0,texture:void 0},I[r]=i),(i.type!==t||i.texture!==n)&&(F!==r&&(e.activeTexture(r),F=r),e.bindTexture(t,n||R[t]),i.type=t,i.texture=n)}function _e(){let t=I[F];t!==void 0&&t.type!==void 0&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)}function U(){try{e.compressedTexImage2D(...arguments)}catch(e){J(`WebGLState:`,e)}}function ve(){try{e.compressedTexImage3D(...arguments)}catch(e){J(`WebGLState:`,e)}}function ye(){try{e.texSubImage2D(...arguments)}catch(e){J(`WebGLState:`,e)}}function be(){try{e.texSubImage3D(...arguments)}catch(e){J(`WebGLState:`,e)}}function xe(){try{e.compressedTexSubImage2D(...arguments)}catch(e){J(`WebGLState:`,e)}}function Se(){try{e.compressedTexSubImage3D(...arguments)}catch(e){J(`WebGLState:`,e)}}function Ce(){try{e.texStorage2D(...arguments)}catch(e){J(`WebGLState:`,e)}}function we(){try{e.texStorage3D(...arguments)}catch(e){J(`WebGLState:`,e)}}function Te(){try{e.texImage2D(...arguments)}catch(e){J(`WebGLState:`,e)}}function Ee(){try{e.texImage3D(...arguments)}catch(e){J(`WebGLState:`,e)}}function De(t){return d[t]===void 0?e.getParameter(t):d[t]}function Oe(t,n){d[t]!==n&&(e.pixelStorei(t,n),d[t]=n)}function ke(t){L.equals(t)===!1&&(e.scissor(t.x,t.y,t.z,t.w),L.copy(t))}function Ae(t){re.equals(t)===!1&&(e.viewport(t.x,t.y,t.z,t.w),re.copy(t))}function je(t,n){let r=l.get(n);r===void 0&&(r=new WeakMap,l.set(n,r));let i=r.get(t);i===void 0&&(i=e.getUniformBlockIndex(n,t.name),r.set(t,i))}function Me(t,n){let r=l.get(n).get(t);c.get(n)!==r&&(e.uniformBlockBinding(n,r,t.__bindingPointIndex),c.set(n,r))}function Ne(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),o.setReversed(!1),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),e.pixelStorei(e.PACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_ALIGNMENT,4),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),e.pixelStorei(e.PACK_ROW_LENGTH,0),e.pixelStorei(e.PACK_SKIP_PIXELS,0),e.pixelStorei(e.PACK_SKIP_ROWS,0),e.pixelStorei(e.UNPACK_ROW_LENGTH,0),e.pixelStorei(e.UNPACK_IMAGE_HEIGHT,0),e.pixelStorei(e.UNPACK_SKIP_PIXELS,0),e.pixelStorei(e.UNPACK_SKIP_ROWS,0),e.pixelStorei(e.UNPACK_SKIP_IMAGES,0),u={},d={},F=null,I={},f={},p=new WeakMap,m=[],h=null,g=!1,_=null,v=null,y=null,b=null,x=null,S=null,C=null,w=new Z(0,0,0),T=0,E=!1,D=null,O=null,k=null,A=null,j=null,L.set(0,0,e.canvas.width,e.canvas.height),re.set(0,0,e.canvas.width,e.canvas.height),a.reset(),o.reset(),s.reset()}return{buffers:{color:a,depth:o,stencil:s},enable:ae,disable:z,bindFramebuffer:oe,drawBuffers:se,useProgram:B,setBlending:ue,setMaterial:de,setFlipSided:fe,setCullFace:pe,setLineWidth:V,setPolygonOffset:me,setScissorTest:he,activeTexture:ge,bindTexture:H,unbindTexture:_e,compressedTexImage2D:U,compressedTexImage3D:ve,texImage2D:Te,texImage3D:Ee,pixelStorei:Oe,getParameter:De,updateUBOMapping:je,uniformBlockBinding:Me,texStorage2D:Ce,texStorage3D:we,texSubImage2D:ye,texSubImage3D:be,compressedTexSubImage2D:xe,compressedTexSubImage3D:Se,scissor:ke,viewport:Ae,reset:Ne}}function aA(e,t,n,r,i,a,o){let s=t.has(`WEBGL_multisampled_render_to_texture`)?t.get(`WEBGL_multisampled_render_to_texture`):null,c=typeof navigator>`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new Y,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):eg(`canvas`)}function g(e,t,n){let r=1,i=U(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),q(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&q(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}
4098function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];q(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||q(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?Th:qg.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,q(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r<n.__webglFramebuffer[t].length;r++)e.deleteFramebuffer(n.__webglFramebuffer[t][r]);else e.deleteFramebuffer(n.__webglFramebuffer[t]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[t])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRen
vendor: 4,233 bytes, line 4098
4098derbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}let i=t.textures;for(let t=0,n=i.length;t<n;t++){let n=r.get(i[t]);n.__webglTexture&&(e.deleteTexture(n.__webglTexture),o.memory.textures--),r.remove(i[t])}r.remove(t)}let O=0;function k(){O=0}function A(){return O}function j(e){O=e}function M(){let e=O;return e>=i.maxTextures&&q(`WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function N(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function P(t,i){let a=r.get(t);if(t.isVideoTexture&&H(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)q(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)q(`WebGLRenderer: Texture marked for update but image is incomplete`);else{z(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function ee(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){z(a,t,i);return}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function F(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){z(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function I(t,i){let a=r.get(t);if(t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version){oe(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let te={[Hp]:e.REPEAT,[Up]:e.CLAMP_TO_EDGE,[Wp]:e.MIRRORED_REPEAT},ne={[Gp]:e.NEAREST,[Kp]:e.NEAREST_MIPMAP_NEAREST,[Jp]:e.NEAREST_MIPMAP_LINEAR,[Xp]:e.LINEAR,[Zp]:e.LINEAR_MIPMAP_NEAREST,[$p]:e.LINEAR_MIPMAP_LINEAR},L={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function re(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&q(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,te[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,te[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,te[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ne[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ne[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,L[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ie(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=N(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function R(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ae(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>
4098e.start-t.start);let s=0;for(let e=1;e<o.length;e++){let t=o[s],n=o[e],i=t.start+t.count,a=R(n.start,r.width,4),c=R(t.start,r.width,4);n.start<=i+1&&a===c&&R(n.start+n.count-1,r.width,4)===a?t.count=Math.max(t.count,n.start+n.count-t.start):(++s,o[s]=n)}o.length=s+1;let c=n.getParameter(e.UNPACK_ROW_LENGTH),l=n.getParameter(e.UNPACK_SKIP_PIXELS),u=n.getParameter(e.UNPACK_SKIP_ROWS);n.pixelStorei(e.UNPACK_ROW_LENGTH,r.width);for(let t=0,s=o.length;t<s;t++){let s=o[t],c=Math.floor(s.start/4),l=Math.ceil(s.count/4),u=c%r.width,d=Math.floor(c/r.width),f=l;n.pixelStorei(e.UNPACK_SKIP_PIXELS,u),n.pixelStorei(e.UNPACK_SKIP_ROWS,d),n.texSubImage2D(e.TEXTURE_2D,0,u,d,f,1,i,a,r.data)}t.clearUpdateRanges(),n.pixelStorei(e.UNPACK_ROW_LENGTH,c),n.pixelStorei(e.UNPACK_SKIP_PIXELS,l),n.pixelStorei(e.UNPACK_SKIP_ROWS,u)}}function z(t,o,s){let c=e.TEXTURE_2D;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(c=e.TEXTURE_2D_ARRAY),o.isData3DTexture&&(c=e.TEXTURE_3D);let l=ie(t,o),u=o.source;n.bindTexture(c,t.__webglTexture,e.TEXTURE0+s);let f=r.get(u);if(u.version!==f.__version||l===!0){if(n.activeTexture(e.TEXTURE0+s),!(typeof ImageBitmap<`u`&&o.image instanceof ImageBitmap)){let t=qg.getPrimaries(qg.workingColorSpace),r=o.colorSpace
vendor: 4,890 bytes, line 4098
4098===``?null:qg.getPrimaries(o.colorSpace),i=o.colorSpace===``||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;n.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),n.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),n.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,i)}n.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment);let t=g(o.image,!1,i.maxTextureSize);t=_e(o,t);let r=a.convert(o.format,o.colorSpace),p=a.convert(o.type),m=b(o.internalFormat,r,p,o.normalized,o.colorSpace,o.isVideoTexture);re(c,o);let h,y=o.mipmaps,C=o.isVideoTexture!==!0,w=f.__version===void 0||l===!0,T=u.dataReady,E=S(o,t);if(o.isDepthTexture)m=x(o.format===vm,o.type),w&&(C?n.texStorage2D(e.TEXTURE_2D,1,m,t.width,t.height):n.texImage2D(e.TEXTURE_2D,0,m,t.width,t.height,0,r,p,null));else if(o.isDataTexture)if(y.length>0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t<i;t++)h=y[t],C?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,p,h.data):n.texImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,r,p,h.data);o.generateMipmaps=!1}else C?(w&&n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height),T&&ae(o,t,r,p)):n.texImage2D(e.TEXTURE_2D,0,m,t.width,t.height,0,r,p,t.data);else if(o.isCompressedTexture)if(o.isCompressedArrayTexture){C&&w&&n.texStorage3D(e.TEXTURE_2D_ARRAY,E,m,y[0].width,y[0].height,t.depth);for(let i=0,a=y.length;i<a;i++)if(h=y[i],o.format!==1023)if(r!==null)if(C){if(T)if(o.layerUpdates.size>0){let t=QE(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0);else q(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data)}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t<i;t++)h=y[t],o.format===1023?C?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,p,h.data):n.texImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,r,p,h.data):r===null?q(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`):C?T&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,h.width,h.height,r,h.data):n.compressedTexImage2D(e.TEXTURE_2D,t,m,h.width,h.height,0,h.data)}else if(o.isDataArrayTexture)if(C){if(w&&n.texStorage3D(e.TEXTURE_2D_ARRAY,E,m,t.width,t.height,t.depth),T)if(o.layerUpdates.size>0){let i=QE(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w)if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t<E;t++)n.texImage2D(e.TEXTURE_2D,t,m,i,a,0,r,p,null),i>>=1,a>>=1}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}let r=e.RGBA,i=e.RGBA,a=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,r,i,a,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=U(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t<i;t++)h=y[t],C?T&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,r,p,h):n.texImage2D(e.TEXTURE_2D,t,m,r,p,h);o.generateMipmaps=!1}else if(C){if(w){let r=U(t);n.texStorage2D(e.TEXTURE_2D,E,m,r.width,r.height)}T&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,r,p,t)}else n.texImage2D(e.TEXTURE_2D,0,m,r,p,t);_(o)&&v(c),f.__version=u.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function oe(t,o,s){if(o.image.length!==6)return;let c=ie(t,o),l=o.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+s);let u=r.get(l);if(l.version!==u.__version||c===!0){n.activeTexture(e.TEXTURE0+s);
vendor: 5,538 bytes, line 4098
4098let t=qg.getPrimaries(qg.workingColorSpace),r=o.colorSpace===``?null:qg.getPrimaries(o.colorSpace),d=o.colorSpace===``||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;n.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),n.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),n.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),n.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);let f=o.isCompressedTexture||o.image[0].isCompressedTexture,p=o.image[0]&&o.image[0].isDataTexture,m=[];for(let e=0;e<6;e++)!f&&!p?m[e]=g(o.image[e],!0,i.maxCubemapSize):m[e]=p?o.image[e].image:o.image[e],m[e]=_e(o,m[e]);let h=m[0],y=a.convert(o.format,o.colorSpace),x=a.convert(o.type),C=b(o.internalFormat,y,x,o.normalized,o.colorSpace),w=o.isVideoTexture!==!0,T=u.__version===void 0||c===!0,E=l.dataReady,D=S(o,h);re(e.TEXTURE_CUBE_MAP,o);let O;if(f){w&&T&&n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,h.width,h.height);for(let t=0;t<6;t++){O=m[t].mipmaps;for(let r=0;r<O.length;r++){let i=O[r];o.format===1023?w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,y,x,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,C,i.width,i.height,0,y,x,i.data):y===null?q(`WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()`):w?E&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,0,0,i.width,i.height,y,i.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r,C,i.width,i.height,0,i.data)}}}else{if(O=o.mipmaps,w&&T){O.length>0&&D++;let t=U(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r<O.length;r++){let i=O[r].image[t].image;w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,i.width,i.height,y,x,i.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,C,i.width,i.height,0,y,x,i.data)}}else{w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,y,x,m[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,y,x,m[t]);for(let r=0;r<O.length;r++){let i=O[r];w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,0,0,y,x,i.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,r+1,C,y,x,i.image[t])}}}_(o)&&v(e.TEXTURE_CUBE_MAP),u.__version=l.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function se(t,i,o,c,l,u){let d=a.convert(o.format,o.colorSpace),f=a.convert(o.type),p=b(o.internalFormat,d,f,o.normalized,o.colorSpace),m=r.get(i),h=r.get(o);if(h.__renderTarget=i,!m.__hasExternalTextures){let t=Math.max(1,i.width>>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),ge(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,he(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function B(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;ge(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,he(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,he(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i<t.length;i++){let o=t[i],c=a.convert(o.format,o.colorSpace),l=a.convert(o.type),u=b(o.internalFormat,c,l,o.normalized,o.colorSpace);ge(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,he(n),u,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,he(n),u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function ce(t,i,o){let c=i.isWebGLCubeRenderTarget===!0;if(n.bindFramebuffer(e.FRAMEBUFFER,t),!(i.depthTexture&&i.depthTexture.isDepthTexture))throw Error(`renderTarget.depthTexture must be an instance of THREE.DepthTexture`);let l=r.get(i.depthTexture);if(l.__renderTarget=i,(!l.__webglTexture||i.depthTexture.image.width!==i.width||i.depthTexture.image.height!==i.height)&&(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),c){if(l.__webglInit===void 0&&(l.__webglInit=!0,i.depthTexture.addEventListener(`dispose`,C)),l.__webglTexture===void 0){l.__webglTexture=e.createTexture(),n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture),re(e.TEXTURE_CUBE_MAP,i.depthTexture);let t=a.convert(i.depthTexture.format),r=a.convert(i.depthTexture.type),o;i.depthTexture.format===1026?o=e.DEPTH_COMPONENT24:i.depthTexture.format===1027&&(o=e.DEPTH24_STENCIL8);for(let n=0;n<6;n++)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,o,i.width,i.height,0,t,r,null)}}else P(i.depthTexture,0);let u=l.__webglTexture,d=he(i),f=c?e.TEXTURE_CUBE_MAP_POSITIVE_X+o:e.TEXTURE_2D,p=i.depthTexture.format===1027?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;if(i.depthTexture.format===1026)ge(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,p,f,u,0,d):e.framebufferTexture2D(e.FRAMEBUFFER,p,f,u,0);else if(i.depthTexture.format===1027)ge(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,p,f,u,0,d):e.framebufferTexture2D(e.FRAMEBUFFER,p,f,u,0);else throw Error(`Unknown depthTexture format`)}
vendor: 5,626 bytes, line 4098
4098function le(t){let i=r.get(t),a=t.isWebGLCubeRenderTarget===!0;if(i.__boundDepthTexture!==t.depthTexture){let e=t.depthTexture;if(i.__depthDisposeCallback&&i.__depthDisposeCallback(),e){let t=()=>{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer)if(a)for(let e=0;e<6;e++)ce(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?ce(i.__webglFramebuffer[0],t,0):ce(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),B(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),B(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function ue(t,n,i){let a=r.get(t);n!==void 0&&se(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&le(t)}function de(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n<i.mipmaps.length;n++)s.__webglFramebuffer[t][n]=e.createFramebuffer()}else s.__webglFramebuffer[t]=e.createFramebuffer()}else{if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer=[];for(let t=0;t<i.mipmaps.length;t++)s.__webglFramebuffer[t]=e.createFramebuffer()}else s.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=l.length;t<n;t++){let n=r.get(l[t]);n.__webglTexture===void 0&&(n.__webglTexture=e.createTexture(),o.memory.textures++)}if(t.samples>0&&ge(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n<l.length;n++){let r=l[n];s.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,s.__webglColorRenderbuffer[n]);let i=a.convert(r.format,r.colorSpace),o=a.convert(r.type),c=b(r.internalFormat,i,o,r.normalized,r.colorSpace,t.isXRRenderTarget===!0),u=he(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,c,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,s.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(s.__webglDepthRenderbuffer=e.createRenderbuffer(),B(s.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(u){n.bindTexture(e.TEXTURE_CUBE_MAP,c.__webglTexture),re(e.TEXTURE_CUBE_MAP,i);for(let n=0;n<6;n++)if(i.mipmaps&&i.mipmaps.length>0)for(let r=0;r<i.mipmaps.length;r++)se(s.__webglFramebuffer[n][r],t,i,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,r);else se(s.__webglFramebuffer[n],t,i,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);_(i)&&v(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let i=0,a=l.length;i<a;i++){let a=l[i],o=r.get(a),c=e.TEXTURE_2D;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(c=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(c,o.__webglTexture),re(c,a),se(s.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0+i,c,0),_(a)&&v(c)}n.unbindTexture()}else{let r=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(r=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(r,c.__webglTexture),re(r,i),i.mipmaps&&i.mipmaps.length>0)for(let n=0;n<i.mipmaps.length;n++)se(s.__webglFramebuffer[n],t,i,e.COLOR_ATTACHMENT0,r,n);else se(s.__webglFramebuffer,t,i,e.COLOR_ATTACHMENT0,r,0);_(i)&&v(r),n.unbindTexture()}t.depthBuffer&&le(t)}function fe(e){let t=e.textures;for(let i=0,a=t.length;i<a;i++){let a=t[i];if(_(a)){let t=y(e),i=r.get(a).__webglTexture;n.bindTexture(t,i),v(t),n.unbindTexture()}}}let pe=[],V=[];function me(t){if(t.samples>0){if(ge(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t<i.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer);let f=t.texture.mipmaps;f&&f.length>0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<i.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(s|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(s|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRen
vendor: 16,805 bytes, lines 4098-4122
4098derbuffer[n]);let t=r.get(i[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,a,o,0,0,a,o,s,e.NEAREST),c===!0&&(pe.length=0,V.length=0,pe.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&t.resolveDepthBuffer===!1&&(pe.push(l),V.push(l),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,V)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,pe))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<i.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);let a=r.get(i[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,a,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&t.resolveDepthBuffer===!1&&c){let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}}}function he(e){return Math.min(i.maxSamples,e.samples)}function ge(e){let n=r.get(e);return e.samples>0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function H(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function _e(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(qg.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&q(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):J(`WebGLTextures: Unsupported texture color space:`,n)),t}function U(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=M,this.resetTextureUnits=k,this.getTextureUnits=A,this.setTextureUnits=j,this.setTexture2D=P,this.setTexture2DArray=ee,this.setTexture3D=F,this.setTextureCube=I,this.rebindTextures=ue,this.setupRenderTarget=de,this.updateRenderTargetMipmap=fe,this.updateMultisampleRenderTarget=me,this.setupDepthRenderbuffer=le,this.setupFrameBufferTexture=se,this.useMultisampledRTT=ge,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function oA(e,t){function n(n,r=``){let i,a=qg.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779)if(a===`srgb`)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===35840||n===35841||n===35842||n===35843)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null;if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===36492||n===36494||n===36495)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===36283||n===36284||n===36285||n===36286)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var sA=`
4099void main() {
4100
4101	gl_Position = vec4( position, 1.0 );
4102
4103}`,cA=`
4104uniform sampler2DArray depthColor;
4105uniform float depthWidth;
4106uniform float depthHeight;
4107
4108void main() {
4109
4110	vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );
4111
4112	if ( coord.x >= 1.0 ) {
4113
4114		gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;
4115
4116	} else {
4117
4118		gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;
4119
4120	}
4121
4122}`,lA=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new Tx(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new TC({vertexShader:sA,fragmentShader:cA,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Wy(new iC(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},uA=class extends dg{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new lA,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new Y,C=null,w=new Pw;w.viewport=new i_;let T=new Pw;T.viewport=new i_;let E=[w,T],D=new pT,O=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new V_,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new V_,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new V_,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function j(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,j),r.removeEventListener(`inputsourceschange`,M);for(let e=0;e<b.length;e++){let t=x[e];t!==null&&(x[e]=null,b[e].disconnect(t))}O=null,k=null,h.reset();for(let e in g)delete g[e];e.setRenderTarget(v),f=null,d=null,u=null,r=null,y=null,L.stop(),n.isPresenting=!1,e.setPixelRatio(C),e.setSize(S.width,S.height,!1),n.dispatchEvent({type:`sessionend`})}this.setFramebufferScaleFactor=function(e){i=e,n.isPresenting===!0&&q(`WebXRManager: Cannot change framebuffer scale while presenting.`)},this.setReferenceSpaceType=function(e){o=e,n.isPresenting===!0&&q(`WebXRManager: Cannot change reference space type while presenting.`)},this.getReferenceSpace=function(){return c||a},this.setReferenceSpace=function(e){c=e},this.getBaseLayer=function(){return d===null?f:d},this.getBinding=function(){return u===null&&m&&(u=new XRWebGLBinding(r,t)),u},this.getFrame=function(){return p},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,r!==null){if(v=e.getRenderTarget(),r.addEventListener(`select`,A),r.addEventListener(`selectstart`,A),r.addEventListener(`selectend`,A),r.addEventListener(`squeeze`,A),r.addEventListener(`squeezestart`,A),r.addEventListener(`squeezeend`,A),r.addEventListener(`end`,j),r.addEventListener(`inputsourceschange`,M),_.xrCompatible!==!0&&await t.makeXRCompatible(),C=e.getPixelRatio(),e.getSize(S),m&&`createProjectionLayer`in XRWebGLBinding.prototype){let n=null,a=null,o=null;_.depth&&(o=_.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=_.stencil?vm:_m,a=_.stencil?dm:om);let s={colorFormat:t.RGBA8,depthFormat:o,scaleFactor:i};u=this.getBinding(),d=u.createProjectionLayer(s),r.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),y=new o_(d.textureWidth,d.textureHeight,{format:gm,type:tm,depthTexture:new Cx(d.textureWidth,d.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:_.stencil,colorSpace:e.outputColorSpace,samples:_.antialias?4:0,resolveDepthBuffer:d.ignoreDepthValues===!1,resolveStencilBuffer:d.ignoreDepthValues===!1})}else{let n={antialias:_.antialias,alpha:!0,depth:_.depth,stencil:_.stencil,framebufferScaleFactor:i};f=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:f}),e.setPixelRatio(1),e.setSize(f.framebufferWidth,f.framebufferHeight,!1),y=new o_(f.framebufferWidth,f.framebufferHeight,{format:gm,type:tm,colorSpace:e.outputColorSpace,stencilBuffer:_.stencil,resolveDepthBuffer:f.ignoreDepthValues===!1,resolveStencilBuffer:f.ignoreDepthValues===!1})}y.isXRRenderTarget=!0,this.setFoveation(s),c=null,a=await r.requestReferenceSpace(o),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:`sessionstart`})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode},this.getDepthTexture=function(){return h.getDepthTexture()};function M(e){for(let t=0;t<e.removed.length;t++){let n=e.removed[t],r=x.indexOf(n);r>=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t<e.added.length;t++){let n=e.added[t],r=x.indexOf(n);if(r===-1){for(let e=0;e<b.length;e++)if(e>=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let N=new X,P=new X;function ee(e,t,n){N.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);let r=N.distanceTo(P),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function F(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),D.near=T.near=w.near=t,D.far=T.far=w.far=n,(O!==D.near||k!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),O=D.near,k=D.far),D.layers.mask=e.layers.mask|6,w.layers.mask=D.layers.mask&-5,T.layers.mask=D.layers.mask&-3;let i=e.parent,a=D.cameras;F(D,i);for(let e=0;e<a.length;e++)F(a[e],i);a.length===2?ee(D,w,T):D.projectionMatrix.copy(w.projectionMatrix),I(e,D,i)};function I(e,t,n){n===null?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld)),e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=hg*2*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}this.getCamera=function(){return D},this.getFoveation=function(){if(!(d===null&&f===null))return s},this.setFoveation=function(e){s=e,d!==null&&(d.fixedFoveation=e),f!==null&&f.fixedFoveation!==void 0&&(f.fixedFoveation=e)},this.hasDepthSensing=function(){return h.texture!==null},this.getDepthSensingMesh=function(){return h.getMesh(D)},this.getCameraTexture=function(e){return g[e]};let te=null;function ne(t,i){if(l=i.getViewerPose(c||a),p=i,l!==null){let t=l.views;f!==null&&(e.setRenderTargetFramebuffer(y,f.framebuffer),e.setRenderTarget(y));let i=!1;t.length!==D.cameras.length&&(D.cameras.length=0,i=!0);for(let n=0;n<t.length;n++){let r=t[n],a=null;if(f!==null)a=f.getViewport(r);else{let t=u.getViewSubImage(d,r);a=t.viewport,n===0&&(e.setRenderTargetTextures(y,t.colorTexture,t.depthStencilTexture),e.setRenderTarget(y))}let o=E[n];o===void 0&&(o=new Pw,o.layers.enable(n),o.viewport=new i_,E[n]=o),o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(r.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(a.x,a.y,a.width,a.height),n===0&&(D.matrix.copy(o.matrix),D.matrix.decompose(D.position,D.quaternion,D.scale)),i===!0&&D.cameras.push(o)}let a=r.enabledFeatures;if(a&&a.includes(`depth-sensing`)&&r.depthUsage==`gpu-optimized`&&m){u=n.getBinding();let e=u.getDepthInformation(t[0]);e&&e.isValid&&e.texture&&h.init(e,r.renderState)}if(a&&a.includes(`camera-access`)&&m){e.state.unbindTexture(),u=n.getBinding();for(let e=0;e<t.length;e++){let n=t[e].camera;if(n){let e=g[n];e||(e=new Tx,g[n]=e);let t=u.getCameraImage(n);e.sourceTexture=t}}}}for(let e=0;e<b.length;e++){let t=x[e],n=b[e];t!==null&&n!==void 0&&n.update(t,i,c||a)}te&&te(t,i),i.detectedPlanes&&n.dispatchEvent({type:`planesdetected`,data:i}),p=null}let L=new nD;L.setAnimationLoop(ne),this.setAnimationLoop=function(e){te=e},this.dispose=function(){}}},dA=new d_,fA=new Hg;fA.set(-1,0,0,0,1,0,0,0,1);function pA(e,t){function n(e,t){e.matrixAutoUpdate===!0&&e.updateMatrix(),t.value.copy(e.matrix)}function r(t,n){n.color.getRGB(t.fogColor.value,xC(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)}function i(e,t,n,r,i){t.isNodeMaterial?t.uniformsNeedUpdate=!1:t.isMeshBasicMaterial?a(e,t):t.isMeshLambertMaterial?(a(e,t),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)):t.
vendor: 4,371 bytes, line 4122
4122isMeshToonMaterial?(a(e,t),d(e,t)):t.isMeshPhongMaterial?(a(e,t),u(e,t),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)):t.isMeshStandardMaterial?(a(e,t),f(e,t),t.isMeshPhysicalMaterial&&p(e,t,i)):t.isMeshMatcapMaterial?(a(e,t),m(e,t)):t.isMeshDepthMaterial?a(e,t):t.isMeshDistanceMaterial?(a(e,t),h(e,t)):t.isMeshNormalMaterial?a(e,t):t.isLineBasicMaterial?(o(e,t),t.isLineDashedMaterial&&s(e,t)):t.isPointsMaterial?c(e,t,n,r):t.isSpriteMaterial?l(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}function a(e,r){e.opacity.value=r.opacity,r.color&&e.diffuse.value.copy(r.color),r.emissive&&e.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(e.map.value=r.map,n(r.map,e.mapTransform)),r.alphaMap&&(e.alphaMap.value=r.alphaMap,n(r.alphaMap,e.alphaMapTransform)),r.bumpMap&&(e.bumpMap.value=r.bumpMap,n(r.bumpMap,e.bumpMapTransform),e.bumpScale.value=r.bumpScale,r.side===1&&(e.bumpScale.value*=-1)),r.normalMap&&(e.normalMap.value=r.normalMap,n(r.normalMap,e.normalMapTransform),e.normalScale.value.copy(r.normalScale),r.side===1&&e.normalScale.value.negate()),r.displacementMap&&(e.displacementMap.value=r.displacementMap,n(r.displacementMap,e.displacementMapTransform),e.displacementScale.value=r.displacementScale,e.displacementBias.value=r.displacementBias),r.emissiveMap&&(e.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,e.emissiveMapTransform)),r.specularMap&&(e.specularMap.value=r.specularMap,n(r.specularMap,e.specularMapTransform)),r.alphaTest>0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(dA.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(fA),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dis
vendor: 4,214 bytes, line 4122
4122persion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function mA(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e<s;e++)if(o.indexOf(e)===-1)return o.push(e),e;return J(`WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached.`),0}function f(t){let n=i[t.id],r=t.uniforms,a=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let t=0,n=r.length;t<n;t++){let n=Array.isArray(r[t])?r[t]:[r[t]];for(let r=0,i=n.length;r<i;r++){let i=n[r];if(p(i,t,r,a)===!0){let t=i.__offset,n=Array.isArray(i.value)?i.value:[i.value],r=0;for(let a=0;a<n.length;a++){let o=n[a],s=h(o);typeof o==`number`||typeof o==`boolean`?(i.__data[0]=o,e.bufferSubData(e.UNIFORM_BUFFER,t+r,i.__data)):o.isMatrix3?(i.__data[0]=o.elements[0],i.__data[1]=o.elements[1],i.__data[2]=o.elements[2],i.__data[3]=0,i.__data[4]=o.elements[3],i.__data[5]=o.elements[4],i.__data[6]=o.elements[5],i.__data[7]=0,i.__data[8]=o.elements[6],i.__data[9]=o.elements[7],i.__data[10]=o.elements[8],i.__data[11]=0):ArrayBuffer.isView(o)?i.__data.set(new o.constructor(o.buffer,o.byteOffset,i.__data.length)):(o.toArray(i.__data,r),r+=s.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,i.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}function p(e,t,n,r){let i=e.value,a=t+`_`+n;if(r[a]===void 0)return typeof i==`number`||typeof i==`boolean`?r[a]=i:ArrayBuffer.isView(i)?r[a]=i.slice():r[a]=i.clone(),!0;{let e=r[a];if(typeof i==`number`||typeof i==`boolean`){if(e!==i)return r[a]=i,!0}else if(ArrayBuffer.isView(i))return!0;else if(e.equals(i)===!1)return e.copy(i),!0}return!1}function m(e){let t=e.uniforms,n=0;for(let e=0,r=t.length;e<r;e++){let r=Array.isArray(t[e])?t[e]:[t[e]];for(let e=0,t=r.length;e<t;e++){let t=r[e],i=Array.isArray(t.value)?t.value:[t.value];for(let e=0,r=i.length;e<r;e++){let r=i[e],a=h(r),o=n%16,s=o%a.boundary,c=o+s;
4122n+=s,c!==0&&16-c<a.storage&&(n+=16-c),t.__data=new Float32Array(a.storage/Float32Array.BYTES_PER_ELEMENT),t.__offset=n,n+=a.storage}}}let r=n%16;return r>0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?q(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):q(`WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var hA=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: 5,184 bytes, line 4122
412214942,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]),gA=null;function _A(){return gA===null&&(gA=new ib(hA,16,16,xm,cm),gA.name=`DFG_LUT`,gA.minFilter=Xp,gA.magFilter=Xp,gA.wrapS=Up,gA.wrapT=Up,gA.generateMipmaps=!1,gA.needsUpdate=!0),gA}var vA=class{constructor(e={}){let{canvas:t=tg(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=tm}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([wm,Sm,bm]),g=new Set([tm,om,im,dm,lm,um]),_=new Uint32Array(4),v=new Int32Array(4),y=new X,b=null,x=null,S=[],C=[],w=null;this.domElement=t,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=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null;this._outputColorSpace=Ch;let O=0,k=0,A=null,j=-1,M=null,N=new i_,P=new i_,ee=null,F=new Z(0),I=0,te=t.width,ne=t.height,L=1,re=null,ie=null,R=new i_(0,0,te,ne),ae=new i_(0,0,te,ne),z=!1,oe=new wb,se=!1,B=!1,ce=new d_,le=new X,ue=new i_,de={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},fe=!1;function pe(){return A===null?L:1}let V=n;function me(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r184`),t.addEventListener(`webglcontextlost`,Re,!1),t.addEventListener(`webglcontextrestored`,ze,!1),t.addEventListener(`webglcontextcreationerror`,W,!1),V===null){let t=`webgl2`;if(V=me(t,e),V===null)throw me(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw J(`WebGLRenderer: `+e.message),e}let he,ge,H,_e,U,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe;function Ie(){he=new ID(V),he.init(),Ne=new oA(V,he),ge=new fD(V,he,e,Ne),H=new iA(V,he),ge.reversedDepthBuffer&&d&&H.buffers.depth.setReversed(!0),_e=new zD(V),U=new Rk,ve=new aA(V,he,H,U,ge,Ne,_e),ye=new FD(T),be=new rD(V),Pe=new uD(V,be),xe=new LD(V,be,_e,Pe),Se=new VD(V,xe,be,Pe,_e),Ae=new BD(V,ge,ve),De=new pD(U),Ce=new Lk(T,ye,he,ge,Pe,De),we=new pA(T,U),Te=new Hk,Ee=new Yk(he),ke=new lD(T,ye,H,Se,p,s),Oe=new rA(T,Se,ge),Fe=new mA(V,_e,ge,H),je=new dD(V,he,_e),Me=new RD(V,he,_e),_e.programs=Ce.programs,T.capabilities=ge,T.extensions=he,T.properties=U,T.renderLists=Te,T.shadowMap=Oe,T.state=H,T.info=_e}Ie(),m!==1009&&(w=new UD(m,t.width,t.height,r,i));let Le=new uA(T,V);this.xr=Le,this.getContext=function(){return V},this.getContextAttributes=function(){return V.getContextAttributes()},this.forceContextLoss=function(){let e=he.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=he.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return L},this.setPixelRatio=function(e){e!==void 0&&(L=e,this.setSize(te,ne,!1))}
vendor: 5,855 bytes, line 4122
4122,this.getSize=function(e){return e.set(te,ne)},this.setSize=function(e,n,r=!0){if(Le.isPresenting){q(`WebGLRenderer: Can't change size while VR device is presenting.`);return}te=e,ne=n,t.width=Math.floor(e*L),t.height=Math.floor(n*L),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(te*L,ne*L).floor()},this.setDrawingBufferSize=function(e,n,r){te=e,ne=n,L=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009){J(`THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);return}if(e){for(let t=0;t<e.length;t++)if(e[t].isOutputPass===!0){q(`THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.`);break}}w.setEffects(e||[])},this.getCurrentViewport=function(e){return e.copy(N)},this.getViewport=function(e){return e.copy(R)},this.setViewport=function(e,t,n,r){e.isVector4?R.set(e.x,e.y,e.z,e.w):R.set(e,t,n,r),H.viewport(N.copy(R).multiplyScalar(L).round())},this.getScissor=function(e){return e.copy(ae)},this.setScissor=function(e,t,n,r){e.isVector4?ae.set(e.x,e.y,e.z,e.w):ae.set(e,t,n,r),H.scissor(P.copy(ae).multiplyScalar(L).round())},this.getScissorTest=function(){return z},this.setScissorTest=function(e){H.setScissorTest(z=e)},this.setOpaqueSort=function(e){re=e},this.setTransparentSort=function(e){ie=e},this.getClearColor=function(e){return e.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor(...arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha(...arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;if(e){let e=!1;if(A!==null){let t=A.texture.format;e=h.has(t)}if(e){let e=A.texture.type,t=g.has(e),n=ke.getClearColor(),r=ke.getClearAlpha(),i=n.r,a=n.g,o=n.b;t?(_[0]=i,_[1]=a,_[2]=o,_[3]=r,V.clearBufferuiv(V.COLOR,0,_)):(v[0]=i,v[1]=a,v[2]=o,v[3]=r,V.clearBufferiv(V.COLOR,0,v))}else r|=V.COLOR_BUFFER_BIT}t&&(r|=V.DEPTH_BUFFER_BIT,this.state.buffers.depth.setMask(!0)),n&&(r|=V.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),r!==0&&V.clear(r)},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(e){e.setRenderer(this),D=e},this.dispose=function(){t.removeEventListener(`webglcontextlost`,Re,!1),t.removeEventListener(`webglcontextrestored`,ze,!1),t.removeEventListener(`webglcontextcreationerror`,W,!1),ke.dispose(),Te.dispose(),Ee.dispose(),U.dispose(),ye.dispose(),Se.dispose(),Pe.dispose(),Fe.dispose(),Ce.dispose(),Le.dispose(),Le.removeEventListener(`sessionstart`,Ke),Le.removeEventListener(`sessionend`,qe),Je.stop()};function Re(e){e.preventDefault(),og(`WebGLRenderer: Context Lost.`),E=!0}function ze(){og(`WebGLRenderer: Context Restored.`),E=!1;let e=_e.autoReset,t=Oe.enabled,n=Oe.autoUpdate,r=Oe.needsUpdate,i=Oe.type;Ie(),_e.autoReset=e,Oe.enabled=t,Oe.autoUpdate=n,Oe.needsUpdate=r,Oe.type=i}function W(e){J(`WebGLRenderer: A WebGL context could not be created. Reason: `,e.statusMessage)}function Be(e){let t=e.target;t.removeEventListener(`dispose`,Be),Ve(t)}function Ve(e){He(e),U.remove(e)}function He(e){let t=U.get(e).programs;t!==void 0&&(t.forEach(function(e){Ce.releaseProgram(e)}),e.isShaderMaterial&&Ce.releaseShaderCache(e))}this.renderBufferDirect=function(e,t,n,r,i,a){t===null&&(t=de);let o=i.isMesh&&i.matrixWorld.determinant()<0,s=it(e,t,n,r,i);H.setMaterial(r,o);let c=n.index,l=1;if(r.wireframe===!0){if(c=xe.getWireframeAttribute(n),c===void 0)return;l=2}let u=n.drawRange,d=n.attributes.position,f=u.start*l,p=(u.start+u.count)*l;a!==null&&(f=Math.max(f,a.start*l),p=Math.min(p,(a.start+a.count)*l)),c===null?d!=null&&(f=Math.max(f,0),p=Math.min(p,d.count)):(f=Math.max(f,0),p=Math.min(p,c.count));let m=p-f;if(m<0||m===1/0)return;Pe.setup(i,r,s,n,c);let h,g=je;if(c!==null&&(h=be.get(c),g=Me,g.setIndex(h)),i.isMesh)r.wireframe===!0?(H.setLineWidth(r.wireframeLinewidth*pe()),g.setMode(V.LINES)):g.setMode(V.TRIANGLES);else if(i.isLine){let e=r.linewidth;e===void 0&&(e=1),H.setLineWidth(e*pe()),i.isLineSegments?g.setMode(V.LINES):i.isLineLoop?g.setMode(V.LINE_LOOP):g.setMode(V.LINE_STRIP)}else i.isPoints?g.setMode(V.POINTS):i.isSprite&&g.setMode(V.TRIANGLES);if(i.isBatchedMesh)if(he.get(`WEBGL_multi_draw`))g.renderMultiDraw(i._multiDrawStarts,i._multiDrawCounts,i._multiDrawCount);else{let e=i._multiDrawStarts,t=i._multiDrawCounts,n=i._multiDrawCount,a=c?be.get(c).bytesPerElement:1,o=U.get(r).currentProgram.getUniforms();for(let r=0;r<n;r++)o.setValue(V,`_gl_DrawID`,r),g.render(e[r]/a,t[r])}else if(i.isInstancedMesh)g.renderInstances(f,m,i.count);else if(n.isInstancedBufferGeometry){let e=n._maxInstanceCount===void 0?1/0:n._maxInstanceCount,t=Math.min(n.instanceCount,e);g.renderInstances(f,m,t)}else g.render(f,m)};function Ue(e,t,n){e.transparent===!0&&e.side===2&&e.forceSinglePass===!1?(e.side=1,e.needsUpdate=!0,et(e,t,n),e.side=0,e.needsUpdate=!0,et(e,t,n),e.side=2):et(e,t,n)}this.compile=function(e,t,n=null){n===null&&(n=e),x=Ee.get(n),x.init(t),C.push(x),n.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(x.pushLight(e),e.castShadow&&x.pushShadow(e))}),e!==n&&e.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(x.pushLight(e),e.castShadow&&x.pushShadow(e))}),x.setupLights();let r=new Set;return e.traverse(function(e){if(!(e.isMesh||e.isPoints||e.isLine||e.isSprite))return;let t=e.material;if(t)if(Array.isArray(t))for(let i=0;i<t.length;i++){let a=t[i];Ue(a,n,e),r.add(a)}else Ue(t,n,e),r.add(t)}),x=C.pop(),r},this.compileAsync=function(e,t,n=null){let r=this.compile(e,t,n);return new Promise(t=>
vendor: 4,228 bytes, line 4122
4122{function n(){if(r.forEach(function(e){U.get(e).currentProgram.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}he.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let We=null;function Ge(e){We&&We(e)}function Ke(){Je.stop()}function qe(){Je.start()}let Je=new nD;Je.setAnimationLoop(Ge),typeof self<`u`&&Je.setContext(self),this.setAnimationLoop=function(e){We=e,Le.setAnimationLoop(e),e===null?Je.stop():Je.start()},Le.addEventListener(`sessionstart`,Ke),Le.addEventListener(`sessionend`,qe),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){J(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Le.enabled===!0&&Le.isPresenting===!0,r=w!==null&&(A===null||n)&&w.begin(T,A);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Le.enabled===!0&&Le.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Le.cameraAutoUpdate===!0&&Le.updateCamera(t),t=Le.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,A),x=Ee.get(e,C.length),x.init(t),x.state.textureUnits=ve.getTextureUnits(),C.push(x),ce.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),oe.setFromProjectionMatrix(ce,Wh,t.reversedDepth),B=this.localClippingEnabled,se=De.init(this.clippingPlanes,B),b=Te.get(e,S.length),b.init(),S.push(b),Le.enabled===!0&&Le.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&Ye(e,t,-1/0,T.sortObjects)}Ye(e,t,0,T.sortObjects),b.finish(),T.sortObjects===!0&&b.sort(re,ie),fe=Le.enabled===!1||Le.isPresenting===!1||Le.hasDepthSensing()===!1,fe&&ke.addToRenderList(b,e),this.info.render.frame++,se===!0&&De.beginShadows();let i=x.state.shadowsArray;if(Oe.render(i,e,t),se===!0&&De.endShadows(),this.info.autoReset===!0&&this.info.reset(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t<a;t++){let a=i[t];Ze(n,r,e,a)}fe&&ke.render(e);for(let t=0,n=i.length;t<n;t++){let n=i[t];Xe(b,e,n,n.viewport)}}else r.length>0&&Ze(n,r,e,t),fe&&ke.render(e),Xe(b,e,t)}A!==null&&k===0&&(ve.updateMultisampleRenderTarget(A),ve.updateRenderTargetMipmap(A)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),Pe.resetDefaultState(),j=-1,M=null,C.pop(),C.length>0?(x=C[C.length-1],ve.setTextureUnits(x.state.textureUnits),se===!0&&De.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function Ye(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||oe.intersectsSprite(e)){r&&ue.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ce);let t=Se.update(e),i=e.material;i.visible&&b.push(e,t,i,n,ue.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||oe.intersectsObject(e))){let t=Se.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),ue.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),ue.copy(e.boundingSphere.center)),ue.applyMatrix4(e.matrixWorld).applyMatrix4(ce)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a<o;a++){let o=r[a],s=i[o.materialIndex];s&&s.visible&&b.push(e,t,s,n,ue.z,o)}}else i.visible&&b.push(e,t,i,n,ue.z,null)}}let i=e.children;for(let e=0,a=i.length;e<a;e++)Ye(i[e],t,n,r)}function Xe(e,t,n,r){let{opaque:i,transmissive:a,transparent:o}=e;x.setupLightsView(n),se===!0&&De.setGlobalState(T.clippingPlanes,n),r&&H.viewport(N.copy(r)),i.length>0&&Qe(i,t,n),a.length>0&&Qe(a,t,n),o.length>0&&Qe(o,t,n),H.buffers.depth.setTest(!0),H.buffers.depth.setMask(!0),H.buffers.color.setMask(!0),H.setPolygonOffset(!1)}function Ze(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=he.has(`EXT_color_buffer_half_float`)||he.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new o_(1,1,{generateMipmaps:!0,type:e?
vendor: 5,640 bytes, line 4122
4122cm:tm,minFilter:$p,samples:Math.max(4,ge.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:qg.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||N;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(F),I=T.getClearAlpha(),I<1&&T.setClearColor(16777215,.5),T.clear(),fe&&ke.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),se===!0&&De.setGlobalState(T.clippingPlanes,r),Qe(e,n,r),ve.updateMultisampleRenderTarget(a),ve.updateRenderTargetMipmap(a),he.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i<a;i++){let{object:a,geometry:o,material:s,group:c}=t[i];if(s.side===2&&a.layers.test(r.layers)){let t=s.side;s.side=1,s.needsUpdate=!0,$e(a,n,r,o,s,c),s.side=t,s.needsUpdate=!0,e=!0}}e===!0&&(ve.updateMultisampleRenderTarget(a),ve.updateRenderTargetMipmap(a))}T.setRenderTarget(s,c,l),T.setClearColor(F,I),d!==void 0&&(r.viewport=d),T.toneMapping=u}function Qe(e,t,n){let r=t.isScene===!0?t.overrideMaterial:null;for(let i=0,a=e.length;i<a;i++){let a=e[i],{object:o,geometry:s,group:c}=a,l=a.material;l.allowOverride===!0&&r!==null&&(l=r),o.layers.test(n.layers)&&$e(o,t,n,s,l,c)}}function $e(e,t,n,r,i,a){e.onBeforeRender(T,t,n,r,i,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(T,t,n,r,e,a),i.transparent===!0&&i.side===2&&i.forceSinglePass===!1?(i.side=1,i.needsUpdate=!0,T.renderBufferDirect(n,t,r,i,e,a),i.side=0,i.needsUpdate=!0,T.renderBufferDirect(n,t,r,i,e,a),i.side=2):T.renderBufferDirect(n,t,r,i,e,a),e.onAfterRender(T,t,n,r,i,a)}function et(e,t,n){t.isScene!==!0&&(t=de);let r=U.get(e),i=x.state.lights,a=x.state.shadowsArray,o=i.state.version,s=Ce.getParameters(e,i.state,a,t,n,x.state.lightProbeGridArray),c=Ce.getProgramCacheKey(s),l=r.programs;r.environment=e.isMeshStandardMaterial||e.isMeshLambertMaterial||e.isMeshPhongMaterial?t.environment:null,r.fog=t.fog;let u=e.isMeshStandardMaterial||e.isMeshLambertMaterial&&!e.envMap||e.isMeshPhongMaterial&&!e.envMap;r.envMap=ye.get(e.envMap||r.environment,u),r.envMapRotation=r.environment!==null&&e.envMap===null?t.environmentRotation:e.envMapRotation,l===void 0&&(e.addEventListener(`dispose`,Be),l=new Map,r.programs=l);let d=l.get(c);if(d!==void 0){if(r.currentProgram===d&&r.lightsStateVersion===o)return nt(e,s),d}else s.uniforms=Ce.getUniforms(e),D!==null&&e.isNodeMaterial&&D.build(e,n,s),e.onBeforeCompile(s,T),d=Ce.acquireProgram(s,c),l.set(c,d),r.uniforms=s.uniforms;let f=r.uniforms;return(!e.isShaderMaterial&&!e.isRawShaderMaterial||e.clipping===!0)&&(f.clippingPlanes=De.uniform),nt(e,s),r.needsLights=ot(e),r.lightsStateVersion=o,r.needsLights&&(f.ambientLightColor.value=i.state.ambient,f.lightProbe.value=i.state.probe,f.directionalLights.value=i.state.directional,f.directionalLightShadows.value=i.state.directionalShadow,f.spotLights.value=i.state.spot,f.spotLightShadows.value=i.state.spotShadow,f.rectAreaLights.value=i.state.rectArea,f.ltc_1.value=i.state.rectAreaLTC1,f.ltc_2.value=i.state.rectAreaLTC2,f.pointLights.value=i.state.point,f.pointLightShadows.value=i.state.pointShadow,f.hemisphereLights.value=i.state.hemi,f.directionalShadowMatrix.value=i.state.directionalShadowMatrix,f.spotLightMatrix.value=i.state.spotLightMatrix,f.spotLightMap.value=i.state.spotLightMap,f.pointShadowMatrix.value=i.state.pointShadowMatrix),r.lightProbeGrid=x.state.lightProbeGridArray.length>0,r.currentProgram=d,r.uniformsList=null,d}function tt(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=XO.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function nt(e,t){let n=U.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function rt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n.texture!==null&&n.boundingBox.containsPoint(y))return n}return null}function it(e,t,n,r,i){t.isScene!==!0&&(t=de),ve.resetTextureUnits();let a=t.fog,o=r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial?t.environment:null,s=A===null?T.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:qg.workingColorSpace,c=r.isMeshStandardMaterial||r.isMeshLambertMaterial&&!r.envMap||r.isMeshPhongMaterial&&!r.envMap,l=ye.get(r.envMap||o,c),u=r.vertexColors===!0&&!!n.attributes.color&&n.attributes.color.itemSize===4,d=!!n.attributes.tangent&&(!!r.normalMap||r.anisotropy>0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=U.get(r),y=x.state.lights;if(se===!0&&(B===!0||e!==M)){let t=e===M&&r.id===j;De.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.ver
vendor: 10,552 bytes, line 4122
4122sion?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==De.numPlanes||v.numIntersection!==De.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=et(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(H.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==j&&(j=r.id,w=!0),v.needsLights){let e=rt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||M!==e){H.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(V,`projectionMatrix`,e.projectionMatrix),O.setValue(V,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(V,le.setFromMatrixPosition(e.matrixWorld)),ge.logarithmicDepthBuffer&&O.setValue(V,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(V,`isOrthographic`,e.isOrthographicCamera===!0),M!==e&&(M=e,w=!0,E=!0)}if(v.needsLights&&(y.state.directionalShadowMap.length>0&&O.setValue(V,`directionalShadowMap`,y.state.directionalShadowMap,ve),y.state.spotShadowMap.length>0&&O.setValue(V,`spotShadowMap`,y.state.spotShadowMap,ve),y.state.pointShadowMap.length>0&&O.setValue(V,`pointShadowMap`,y.state.pointShadowMap,ve)),i.isSkinnedMesh){O.setOptional(V,i,`bindMatrix`),O.setOptional(V,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(V,`boneTexture`,e.boneTexture,ve))}i.isBatchedMesh&&(O.setOptional(V,i,`batchingTexture`),O.setValue(V,`batchingTexture`,i._matricesTexture,ve),O.setOptional(V,i,`batchingIdTexture`),O.setValue(V,`batchingIdTexture`,i._indirectTexture,ve),O.setOptional(V,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(V,`batchingColorTexture`,i._colorsTexture,ve));let N=n.morphAttributes;if((N.position!==void 0||N.normal!==void 0||N.color!==void 0)&&Ae.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(V,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=_A()),w){if(O.setValue(V,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&&at(k,E),a&&r.fog===!0&&we.refreshFogUniforms(k,a),we.refreshMaterialUniforms(k,r,L,ne,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}XO.upload(V,tt(v),k,ve)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(XO.upload(V,tt(v),k,ve),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(V,`center`,i.center),O.setValue(V,`modelViewMatrix`,i.modelViewMatrix),O.setValue(V,`normalMatrix`,i.normalMatrix),O.setValue(V,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t<n;t++){let n=e[t];Fe.update(n,S),Fe.bind(n,S)}}return S}function at(e,t){e.ambientLightColor.needsUpdate=t,e.lightProbe.needsUpdate=t,e.directionalLights.needsUpdate=t,e.directionalLightShadows.needsUpdate=t,e.pointLights.needsUpdate=t,e.pointLightShadows.needsUpdate=t,e.spotLights.needsUpdate=t,e.spotLightShadows.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function ot(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&e.lights===!0}this.getActiveCubeFace=function(){return O},this.getActiveMipmapLevel=function(){return k},this.getRenderTarget=function(){return A},this.setRenderTargetTextures=function(e,t,n){let r=U.get(e);r.__autoAllocateDepthBuffer=e.resolveDepthBuffer===!1,r.__autoAllocateDepthBuffer===!1&&(r.__useRenderToTexture=!1),U.get(e.texture).__webglTexture=t,U.get(e.depthTexture).__webglTexture=r.__autoAllocateDepthBuffer?void 0:n,r.__hasExternalTextures=!0},this.setRenderTargetFramebuffer=function(e,t){let n=U.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=t===void 0};let st=V.createFramebuffer();this.setRenderTarget=function(e,t=0,n=0){A=e,O=t,k=n;let r=null,i=!1,a=!1;if(e){let o=U.get(e);if(o.__useDefaultFramebuffer!==void 0){H.bindFramebuffer(V.FRAMEBUFFER,o.__webglFramebuffer),N.copy(e.viewport),P.copy(e.scissor),ee=e.scissorTest,H.viewport(N),H.scissor(P),H.setScissorTest(ee),j=-1;return}else if(o.__webglFramebuffer===void 0)ve.setupRenderTarget(e);else if(o.__hasExternalTextures)ve.rebindTextures(e,U.get(e.texture).__webglTexture,U.get(e.depthTexture).__webglTexture);else if(e.depthBuffer){let t=e.depthTexture;if(o.__boundDepthTexture!==t){if(t!==null&&U.has(t)&&(e.width!==t.image.width||e.height!==t.image.height))throw Error(`WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.`);ve.setupDepthRenderbuffer(e)}}let s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);let c=U.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(r=Array.isArray(c[t])?c[t][n]:c[t],i=!0):r=e.samples>0&&ve.useMultisampledRTT(e)===!1?U.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,N.copy(e.viewport),P.copy(e.scissor),ee=e.scissorTest}else N.copy(R).multiplyScalar(L).floor(),P.copy(ae).multiplyScalar(L).floor(),ee=z;if(n!==0&&(r=st),H.bindFramebuffer(V.FRAMEBUFFER,r)&&H.drawBuffers(e,r),H.viewport(N),H.scissor(P),H.setScissorTest(ee),i){let r=U.get(e.texture);V.framebufferTexture2D(V.FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t<e.textures.length;t++){let i=U.get(e.textures[t]);V.framebufferTextureLayer(V.FRAMEBUFFER,V.COLOR_ATTACHMENT0+t,i.__webglTexture,n,r)}}else if(e!==null&&n!==0){let t=U.get(e.texture);V.framebufferTexture2D(V.FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_2D,t.__webglTexture,n)}j=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget)){J(`WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);return}let c=U.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){H.bindFramebuffer(V.FRAMEBUFFER,c);try{let o=e.textures[s],c=o.format,l=o.type;if(e.textures.length>1&&V.readBuffer(V.COLOR_ATTACHMENT0+s),!ge.textureFormatReadable(c)){J(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!ge.textureTypeReadable(l)){J(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&V.readPixels(t,n,r,i,Ne.convert(c),Ne.convert(l),a)}finally{let e=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(V.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=U.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){H.bindFramebuffer(V.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(e.textures.length>1&&V.readBuffer(V.COLOR_ATTACHMENT0+s),!ge.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ge.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=V.createBuffer();V.bindBuffer(V.PIXEL_PACK_BUFFER,d),V.bufferData(V.PIXEL_PACK_BUFFER,a.byteLength,V.STREAM_READ),V.readPixels(t,n,r,i,Ne.convert(l),Ne.convert(u),0);let f=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(V.FRAMEBUFFER,f);let p=V.fenceSync(V.SYNC_GPU_COMMANDS_COMPLETE,0);return V.flush(),await lg(V,p,4),V.bindBuffer(V.PIXEL_PACK_BUFFER,d),V.getBufferSubData(V.PIXEL_PACK_BUFFER,0,a),V.deleteBuffer(d),V.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;ve.setTexture2D(e,0),V.copyTexSubImage2D(V.TEXTURE_2D,n,0,0,o,s,i,a),H.unbindTexture()};let ct=V.createFramebuffer(),lt=V.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ne.convert(t.format),_=Ne.convert(t.type),v;t.isData3DTexture?(ve.setTexture3D(t,0),v=V.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(ve.setTexture2DArray(t,0),v=V.TEXTURE_2D_ARRAY):(ve.setTexture2D(t,0),v=V.TEXTURE_2D),H.activeTexture(V.TEXTURE0),H.pixelStorei(V.UNPACK_FLIP_Y_WEBGL,t.flipY),H.pixelStorei(V.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),H.pixelStorei(V.UNPACK_ALIGNMENT,t.unpackAlignment);let y=H.getParameter(V.UNPACK_ROW_LENGTH),b=H.getParameter(V.UNPACK_IMAGE_HEIGHT),x=H.getParameter(V.UNPACK_SKIP_PIXELS),S=H.getParameter(V.UNPACK_SKIP_ROWS),
4122C=H.getParameter(V.UNPACK_SKIP_IMAGES);H.pixelStorei(V.UNPACK_ROW_LENGTH,h.width),H.pixelStorei(V.UNPACK_IMAGE_HEIGHT,h.height),H.pixelStorei(V.UNPACK_SKIP_PIXELS,l),H.pixelStorei(V.UNPACK_SKIP_ROWS,u),H.pixelStorei(V.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=U.get(e),r=U.get(t),h=U.get(n.__renderTarget),g=U.get(r.__renderTarget);H.bindFramebuffer(V.READ_FRAMEBUFFER,h.__webglFramebuffer),H.bindFramebuffer(V.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n<c;n++)w&&(V.framebufferTextureLayer(V.READ_FRAMEBUFFER,V.COLOR_ATTACHMENT0,U.get(e).__webglTexture,i,d+n),V.framebufferTextureLayer(V.DRAW_FRAMEBUFFER,V.COLOR_ATTACHMENT0,U.get(t).__webglTexture,a,m+n)),V.blitFramebuffer(l,u,o,s,f,p,o,s,V.DEPTH_BUFFER_BIT,V.NEAREST);H.bindFramebuffer(V.READ_FRAMEBUFFER,null),H.bindFramebuffer(V.DRAW_FRAMEBUFFER,null)}else if(i!==0||e.isRenderTargetTexture||U.has(e)){let n=U.get(e),r=U.get(t);H.bindFramebuffer(V.READ_FRAMEBUFFER,ct),H.bindFramebuffer(V.DRAW_FRAMEBUFFER,lt);for(let e=0;e<c;e++)w?V.framebufferTextureLayer(V.READ_FRAMEBUFFER,V.COLOR_ATTACHMENT0,n.__webglTexture,i,d+e):V.framebufferTexture2D(V.READ_FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_2D,n.__webglTexture,i),T?V.framebufferTextureLayer(V.DRAW_FRAMEBUFFER,V.COLOR_ATTACHMENT0,r.__webglTexture,a,m+e):V.framebufferTexture2D(V.DRAW_FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_2D,r.__webglTexture,a),i===0?T?V.copyTexSubImage3D(v,a,f,p,m+e,l,u,o,s):V.copyTexSubImage2D(v,a,f,p,l,u,o,s):V.blitFramebuffer(l,u,o,s,f,p,o,s,V.COLOR_BUFFER_BIT,V.NEAREST);H.bindFramebuffer(V.READ_FRAMEBUFFER,null),H.bindFramebuffer(V.DRAW_FRAMEBUFFER,null)}else T?e.isDataTexture||e.isData3DTexture?V.texSubImage3D(v,a,f,p,m,o,s,c,g,_,h.data):t.isCompressedArrayTexture?V.compressedTexSubImage3D(v,a,f,p,m,o,s,c,g,h.data):V.texSubImage3D(v,a,f,p,m,o,s,c,g,_,h):e.isDataTexture?V.texSubImage2D(V.TEXTURE_2D,a,f,p,o,s,g,_,h.data):e.isCompressedTexture?V.compressedTexSubImage2D(V.TEXTURE_2D,a,f,p,h.width,h.height,g,h.data):V.texSubImage2D(V.TEXTURE_2D,a,f,p,o,s,g,_,h);H.pixelStorei(V.UNPACK_ROW_LENGTH,y),H.pixelStorei(V.UNPACK_IMAGE_HEIGHT,b),H.pixelStorei(V.UNPACK_SKIP_PIXELS,x),H.pixelStorei(V.UNPACK_SKIP_ROWS,S),H.pixelStorei(V.UNPACK_SKIP_IMAGES,C),a===0&&t.generateMipmaps&&V.generateMipmap(v),H.unbindTexture()},this.initRenderTarget=function(e){U.get(e).__webglFramebuffer===void 0&&ve.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?ve.setTextureCube(e,0):e.isData3DTexture?ve.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ve.setTexture2DArray(e,0):ve.setTexture2D(e,0),H.unbindTexture()},this.resetState=function(){O=0,k=0,A=null,H.reset(),Pe.reset()},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}get coordinateSystem(){return Wh}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;let t=this.getContext();t.drawingBufferColorSpace=qg._getDrawingBufferColorSpace(e),t.unpackColorSpace=qg._getUnpackColorSpace()}},yA=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),bA=s(((e,t)=>{t.exports=yA()})),xA=s((e=>{var t=p(),n=bA();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),SA=u(s(((e,t)=>{t.exports=xA()}))(),1),CA=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({}
4122,t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},wA=(e=>e?CA(e):CA),{useSyncExternalStoreWithSelector:TA}=SA.default,EA=e=>e;function DA(e,t=EA,n){let r=TA(e.subscribe,e.getState,e.getInitialState,t,n);return w.useDebugValue(r),r}var OA=(e,t)=>{let n=wA(e),r=(e,r=t)=>DA(n,e,r);return Object.assign(r,n),r},kA=((e,t)=>e?OA(e,t):OA),AA=e=>typeof e==`object`&&typeof e.then==`function`,jA=[];function MA(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;let r=e.length;if(t.length!==r)return!1;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function NA(e,t=null,n=!1,r={}){t===null&&(t=[e]);for(let e of jA)if(MA(t,e.keys,e.equal)){if(n)return;if(Object.prototype.hasOwnProperty.call(e,`error`))throw e.error;if(Object.prototype.hasOwnProperty.call(e,`response`))return r.lifespan&&r.lifespan>0&&(e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(e.remove,r.lifespan)),e.response;if(!n)throw e.promise}let i={keys:t,equal:r.equal,remove:()=>{let e=jA.indexOf(i);e!==-1&&jA.splice(e,1)},promise:(AA(e)?e:e(...t)).then(e=>{i.response=e,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(e=>i.error=e)};if(jA.push(i),!n)throw i.promise}var PA=(e,t,n)=>NA(e,t,!1,n),FA=(e,t,n)=>void NA(e,t,!0,n),IA=e=>{if(e===void 0||e.length===0)jA.splice(0,jA.length);else{let t=jA.find(t=>MA(e,t.keys,t.equal));t&&t.remove()}},LA=u(h());typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)?w.useLayoutEffect:w.useEffect;function RA(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=t?e.return:e.child;for(;r;){let e=RA(r,t,n);if(e)return e;r=t?null:r.sibling}}function zA(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}var BA=zA(w.createContext(null)),VA=class extends w.Component{render(){return w.createElement(BA.Provider,{value:this._reactInternals},this.props.children)}};function HA(){let e=w.useContext(BA);if(e===null)throw Error(`its-fine: useFiber must be called within a <FiberProvider />!`);let t=w.useId();return w.useMemo(()=>{for(let n of[e,e?.alternate]){if(!n)continue;let e=RA(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}var UA=Symbol.for(`react.context`),WA=e=>typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===UA;function GA(){let e=HA(),[t]=w.useState(()=>new Map);t.clear();let n=e;for(;n;){let e=n.type;WA(e)&&e!==BA&&!t.has(e)&&t.set(e,w.use(zA(e))),n=n.return}return t}function KA(){let e=GA();return w.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>w.createElement(t,null,w.createElement(n.Provider,{...r,value:e.get(n)})),e=>w.createElement(VA,{...e})),[e])}function qA(e){let t=e.root;for(;t.getState().previousRoot;)t=t.getState().previousRoot;return t}var JA=e=>e&&e.isOrthographicCamera,YA=e=>e&&e.hasOwnProperty(`current`),XA=e=>e!=null&&(typeof e==`string`||typeof e==`number`||e.isColor),ZA=((e,t)=>typeof window<`u`&&((e=window.document)?.createElement||(t=window.navigator)?.product===`ReactNative`))()?w.useLayoutEffect:w.useEffect;function QA(e){let t=w.useRef(e);return ZA(()=>void(t.current=e),[e]),t}function $A(){let e=HA(),t=KA();return w.useMemo(()=>({children:n})=>(0,K.jsx)(RA(e,!0,e=>e.type===w.StrictMode)?w.StrictMode:w.Fragment,{children:(0,K.jsx)(t,{children:n})}),[e,t])}function ej({set:e}){return ZA(()=>(e(new Promise(()=>null)),()=>e(!1)),[e]),null}var tj=(e=>(e=class extends w.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}},e.getDerivedStateFromError=()=>({error:!0}),e))();function nj(e){let t=typeof window<`u`?window.devicePixelRatio??2:1;return Array.isArray(e)?Math.min(Math.max(e[0],t),e[1]):e}function rj(e){return e.__r3f?.root.getState()}var ij={obj:e=>e===Object(e)&&!ij.arr(e)&&typeof e!=`function`,fun:e=>typeof e==`function`,str:e=>typeof e==`string`,num:e=>typeof e==`number`,boo:e=>typeof e==`boolean`,und:e=>e===void 0,nul:e=>e===null,arr:e=>Array.isArray(e),equ(e,t,{arrays:n=`shallow`,objects:r=`reference`,strict:i=!0}={}){if(typeof e!=typeof t||!!e!=!!t)return!1;if(ij.str(e)||ij.num(e)||ij.boo(e))return e===t;let a=ij.obj(e);if(a&&r===`reference`)return e===t;let o=ij.arr(e);if(o&&n===`reference`)return e===t;if((o||a)&&e===t)return!0;let s;for(s in e)if(!(s in t))return!1;
4122if(a&&n===`shallow`&&r===`shallow`){for(s in i?t:e)if(!ij.equ(e[s],t[s],{strict:i,objects:`reference`}))return!1}else for(s in i?t:e)if(e[s]!==t[s])return!1;if(ij.und(s)){if(o&&e.length===0&&t.length===0||a&&Object.keys(e).length===0&&Object.keys(t).length===0)return!0;if(e!==t)return!1}return!0}};function aj(e){let t={nodes:{},materials:{},meshes:{}};return e&&e.traverse(e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material),e.isMesh&&!t.meshes[e.name]&&(t.meshes[e.name]=e)}),t}function oj(e){e.type!==`Scene`&&(e.dispose==null||e.dispose());for(let t in e){let n=e[t];n?.type!==`Scene`&&(n==null||n.dispose==null||n.dispose())}}var sj=[`children`,`key`,`ref`];function cj(e){let t={};for(let n in e)sj.includes(n)||(t[n]=e[n]);return t}function lj(e,t,n,r){let i=e,a=i?.__r3f;return a||(a={root:t,type:n,parent:null,children:[],props:cj(r),object:i,eventCount:0,handlers:{},isHidden:!1},i&&(i.__r3f=a)),a}function uj(e,t){if(!t.includes(`-`)||t in e)return{root:e,key:t,target:e[t]};let n=e,r=t.split(`-`);for(let i of r){if(typeof n!=`object`||!n){if(n!==void 0){let e=r.slice(r.indexOf(i)).join(`-`);return{root:n,key:e,target:void 0}}return{root:e,key:t,target:void 0}}t=i,e=n,n=n[t]}return{root:e,key:t,target:n}}var dj=/-\d+$/;function fj(e,t){if(ij.str(t.props.attach)){if(dj.test(t.props.attach)){let n=t.props.attach.replace(dj,``),{root:r,key:i}=uj(e.object,n);Array.isArray(r[i])||(r[i]=[])}let{root:n,key:r}=uj(e.object,t.props.attach);t.previousAttach=n[r],n[r]=t.object}else ij.fun(t.props.attach)&&(t.previousAttach=t.props.attach(e.object,t.object))}function pj(e,t){if(ij.str(t.props.attach)){let{root:n,key:r}=uj(e.object,t.props.attach),i=t.previousAttach;i===void 0?delete n[r]:n[r]=i}else t.previousAttach==null||t.previousAttach(e.object,t.object);delete t.previousAttach}var mj=[...sj,`args`,`dispose`,`attach`,`object`,`onUpdate`,`dispose`],hj=new Map;function gj(e){let t=hj.get(e.constructor);try{t||(t=new e.constructor,hj.set(e.constructor,t))}catch{}return t}function _j(e,t){let n={};for(let r in t)if(!mj.includes(r)&&!ij.equ(t[r],e.props[r])){n[r]=t[r];for(let e in t)e.startsWith(`${r}-`)&&(n[e]=t[e])}for(let r in e.props){if(mj.includes(r)||t.hasOwnProperty(r))continue;let{root:i,key:a}=uj(e.object,r);if(i.constructor&&i.constructor.length===0){let e=gj(i);ij.und(e)||(n[a]=e[a])}else n[a]=0}return n}var vj=[`map`,`emissiveMap`,`sheenColorMap`,`specularColorMap`,`envMap`],yj=/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/;function bj(e,t){var n;let r=e.__r3f,i=r&&qA(r).getState(),a=r?.eventCount;for(let n in t){let a=t[n];if(mj.includes(n))continue;if(r&&yj.test(n)){typeof a==`function`?r.handlers[n]=a:delete r.handlers[n],r.eventCount=Object.keys(r.handlers).length;continue}if(a===void 0)continue;let{root:s,key:c,target:l}=uj(e,n);if(l===void 0&&(typeof s!=`object`||!s))throw Error(`R3F: Cannot set "${n}". Ensure it is an object before setting "${c}".`);if(l instanceof S_&&a instanceof S_)l.mask=a.mask;else if(l instanceof Z&&XA(a))l.set(a);else if(typeof l==`object`&&l&&typeof l.set==`function`&&typeof l.copy==`function`&&a!=null&&a.constructor&&l.constructor===a.constructor)l.copy(a);else if(typeof l==`object`&&l&&typeof l.set==`function`&&Array.isArray(a))typeof l.fromArray==`function`?l.fromArray(a):l.set(...a);else if(typeof l==`object`&&l&&typeof l.set==`function`&&typeof a==`number`)typeof l.setScalar==`function`?l.setScalar(a):l.set(a);else if(s instanceof TC&&c===`uniforms`&&ij.obj(a)){ij.obj(s.uniforms)||(s.uniforms={});let e=s.uniforms,t=a;for(let n in t){let r=t[n],i=e[n];i?Object.assign(i,r):e[n]={...r}}}else{var o;s[c]=a,i&&!i.linear&&vj.includes(c)&&(o=s[c])!=null&&o.isTexture&&s[c].format===1023&&s[c].type===1009&&(s[c].colorSpace
4122=Ch)}}if(r!=null&&r.parent&&i!=null&&i.internal&&(n=r.object)!=null&&n.isObject3D&&a!==r.eventCount){let e=r.object,t=i.internal.interaction.indexOf(e);t>-1&&i.internal.interaction.splice(t,1),r.eventCount&&e.raycast!==null&&i.internal.interaction.push(e)}return r&&r.props.attach===void 0&&(r.object.isBufferGeometry?r.props.attach=`geometry`:r.object.isMaterial&&(r.props.attach=`material`)),r&&xj(r),e}function xj(e){var t;if(!e.parent)return;e.props.onUpdate==null||e.props.onUpdate(e.object);let n=(t=e.root)==null||t.getState==null?void 0:t.getState();n&&n.internal.frames===0&&n.invalidate()}function Sj(e,t){e.manual||(JA(e)?(e.left=t.width/-2,e.right=t.width/2,e.top=t.height/2,e.bottom=t.height/-2):e.aspect=t.width/t.height,e.updateProjectionMatrix())}var Cj=e=>e?.isObject3D;function wj(e){return(e.eventObject||e.object).uuid+`/`+e.index+e.instanceId}function Tj(e,t,n,r){let i=n.get(t);i&&(n.delete(t),n.size===0&&(e.delete(r),i.target.releasePointerCapture(r)))}function Ej(e,t,n){let{internal:r}=e.getState();for(let e=0;e<r.interaction.length;e++)r.interaction[e]===t&&(r.interaction[e]=n);for(let e=0;e<r.initialHits.length;e++)r.initialHits[e]===t&&(r.initialHits[e]=n);r.hovered.forEach((e,i)=>{if(e.eventObject===t||e.object===t){r.hovered.delete(i);let a={...e,eventObject:e.eventObject===t?n:e.eventObject,object:e.object===t?n:e.object};r.hovered.set(wj(a),a)}}),r.capturedMap.forEach(e=>{let r=e.get(t);r&&(e.delete(t),e.set(n,r))})}function Dj(e,t){let{internal:n}=e.getState();n.interaction=n.interaction.filter(e=>e!==t),n.initialHits=n.initialHits.filter(e=>e!==t),n.hovered.forEach((e,r)=>{(e.eventObject===t||e.object===t)&&n.hovered.delete(r)}),n.capturedMap.forEach((e,r)=>{Tj(n.capturedMap,t,e,r)})}function Oj(e){function t(t){let{internal:n}=e.getState(),r=t.offsetX-n.initialClick[0],i=t.offsetY-n.initialClick[1];return Math.round(Math.sqrt(r*r+i*i))}function n(e){return e.filter(e=>[`Move`,`Over`,`Enter`,`Out`,`Leave`].some(t=>e.__r3f?.handlers[`onPointer`+t]))}function r(t,n){let r=e.getState(),i=new Set,a=[],o=n?n(r.internal.interaction):r.internal.interaction;for(let e=0;e<o.length;e++){let t=rj(o[e]);t&&(t.raycaster.camera=void 0)}r.previousRoot||r.events.compute==null||r.events.compute(t,r);function s(e){let n=rj(e);return!n||!n.events.enabled||n.raycaster.camera===null?[]:(n.raycaster.camera===void 0&&(n.events.compute==null||n.events.compute(t,n,n.previousRoot?.getState()),n.raycaster.camera===void 0&&(n.raycaster.camera=null)),n.raycaster.camera?n.raycaster.intersectObject(e,!0):[])}let c=o.flatMap(s).sort((e,t)=>{let n=rj(e.object),r=rj(t.object);return!n||!r?e.distance-t.distance:r.events.priority-n.events.priority||e.distance-t.distance}).filter(e=>{let t=wj(e);return i.has(t)?!1:(i.add(t),!0)});r.events.filter&&(c=r.events.filter(c,r));for(let e of c){let t=e.object;for(;t;){var l;(l=t.__r3f)!=null&&l.eventCount&&a.push({...e,eventObject:t}),t=t.parent}}if(`pointerId`in t&&r.internal.capturedMap.has(t.pointerId))for(let e of r.internal.capturedMap.get(t.pointerId).values())i.has(wj(e.intersection))||a.push(e.intersection);return a}function i(e,t,n,r){if(e.length){let i={stopped:!1};for(let o of e){let s=rj(o.object);if(s||o.object.traverseAncestors(e=>{let t=rj(e);if(t)return s=t,!1}),s){let{raycaster:c,pointer:l,camera:u,internal:d}=s,f=new X(l.x,l.y,0).unproject(u),p=e=>d.capturedMap.get(e)?.has(o.eventObject)??!1,m=e=>{let n={intersection:o,target:t.target};d.capturedMap.has(e)?d.capturedMap.get(e).set(o.eventObject,n):d.capturedMap.set(e,new Map([[o.eventObject,n]])),t.target.setPointerCapture(e)},h=e=>{let t=d.capturedMap.get(e);t&&Tj(d.capturedMap,o.eventObject,t,e)},g={};for(let e in t){let n=t[e];typeof n!=`function`&&(g[e]=n)}let _={...o,...g,pointer:l,intersections:e,stopped:i.stopped,delta:n,unprojectedPoint:f,ray:c.ray,camera:u,stopPropagation(){let n=`pointerId`in t&&d.capturedMap.get(t.pointerId);(!n||n.has(o.eventObject))&&(_.stopped=i.stopped=!0,d.hovered.size&&Array.from(d.hovered.values()).find(e=>e.eventObject===o.eventObject)&&a([...e.slice(0,e.indexOf(o)),o]))},target:{hasPointerCapture:p,setPointerCapture:m,releasePointerCapture:h},currentTarget:{hasPointerCapture:p,setPointerCapture:m,releasePointerCapture:h},nativeEvent:t};if(r(_),i.stopped===!0)break}}}return e}function a(t){let{internal:n}=e.getState();for(let e of n.hovered.values())if(!t.length||!t.find(t=>t.object===e.object&&t.index===e.index&&t.instanceId===e.instanceId)){let r=e.eventObject.__r3f;if(n.hovered.delete(wj(e)),r!=null&&r.eventCount){let n=r.handlers,i={...e,intersections:t};n.onPointerOut==null||n.onPointerOut(i),n.onPointerLeave==null||n.onPointerLeave(i)}}}function o(e,t){for(let n=0;n<t.length;n++){let r=t[n].__r3f;r==null||r.handlers.onPointerMissed==null||r.handlers.onPointerMissed(e)}}function s(s){switch(s){case`onPointerLeave`:case`onPointerCancel`:return()=>a([]);case`onLostPointerCapture`:return t=>{let{internal:n}=e.getState();`pointerId`in t&&n.capturedMap.has(t.pointerId)&&requestAnimationFrame(()=>{n.capturedMap.has(t.pointerId)&&(n.capturedMap.delete(t.pointerId),a([]))})}}return function(c){let{onPointerMissed:l,internal:u}=e.getState();u.lastEvent.current=c;let d=s===`onPointerMove`,f=s===`onClick`||s===`onContextMenu`||s===`onDoubleClick`,p=r(c,d?n:void 0),m=f?t(c):0;s===`onPointerDown`&&(u.initialClick=[c.offsetX,c.offsetY],u.initialHits=p.map(e=>e.eventObject)),f&&!p.length&&m<=2&&(o(c,u.interaction),l&&l(c)),d&&a(p);function h(e){let t=e.eventObject,n=t.__r3f;if(!(n!=null&&n.eventCount))return;let r=n.handlers;if(d){if(r.onPointerOver||r.onPointerEnter||r.onPointerOut||r.onPointerLeave){let t=wj(e),n=u.hovered.get(t);n?n.stopped&&e.stopPropagation():(u.hovered.set(t,e),r.onPointerOver==null||r.onPointerOver(e),r.onPointerEnter==null||r.onPointerEnter(e))}r.onPointerMove==null||r.onPointerMove(e)}else{let n=r[s];n?(!f||u.initialHits.includes(t))&&(o(c,u.interaction.filter(e=>!u.initialHits.includes(e))),n(e)):f&&u.initialHits.includes(t)&&o(c,u.interaction.filter(e=>!u.initialHits.includes(e)))}}i(p,c,m,h)}}return{handlePointer:s}}var kj=e=>!!(e!=null&&e.render),Aj=w.createContext(null),jj=(e,t)=>{let n=kA((n,r)=>{let i=new X,a=new X,o=new X;function s(e=r().camera,t=a,n=r().size){let{width:s,height:c,top:l,left:u}=n,d=s/c;t.isVector3?o.copy(t):o.set(...t);let f=e.getWorldPosition(i).distanceTo(o);if(JA(e))return{width:s/e.zoom,height:c/e.zoom,top:l,left:u,factor:1,distance:f,aspect:d};{let t=e.fov*Math.PI/180,n=2*Math.tan(t/2)*f,r=s/c*n;return{width:r,height:n,top:l,left:u,factor:s/r,distance:f,aspect:d}}}let c,l=e=>n(t=>({performance:{...t.performance,current:e}})),u=new Y;return{set:n,get:r,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1}
4122,scene:null,xr:null,invalidate:(t=1)=>e(r(),t),advance:(e,n)=>t(e,n,r()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new nE,pointer:u,mouse:u,frameloop:`always`,onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{let e=r();c&&clearTimeout(c),e.performance.current!==e.performance.min&&l(e.performance.min),c=setTimeout(()=>l(r().performance.max),e.performance.debounce)}},size:{width:0,height:0,top:0,left:0},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:s},setEvents:e=>n(t=>({...t,events:{...t.events,...e}})),setSize:(e,t,i=0,o=0)=>{let c=r().camera,l={width:e,height:t,top:i,left:o};n(e=>({size:l,viewport:{...e.viewport,...s(c,a,l)}}))},setDpr:e=>n(t=>{let n=nj(e);return{viewport:{...t.viewport,dpr:n,initialDpr:t.viewport.initialDpr||n}}}),setFrameloop:(e=`always`)=>{let t=r().clock;t.stop(),t.elapsedTime=0,e!==`never`&&(t.start(),t.elapsedTime=0),n(()=>({frameloop:e}))},previousRoot:void 0,internal:{interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,lastEvent:w.createRef(),active:!1,frames:0,priority:0,subscribe:(e,t,n)=>{let i=r().internal;return i.priority+=+(t>0),i.subscribers.push({ref:e,priority:t,store:n}),i.subscribers=i.subscribers.sort((e,t)=>e.priority-t.priority),()=>{let n=r().internal;n!=null&&n.subscribers&&(n.priority-=+(t>0),n.subscribers=n.subscribers.filter(t=>t.ref!==e))}}}}}),r=n.getState(),i=r.size,a=r.viewport.dpr,o=r.camera;return n.subscribe(()=>{let{camera:e,size:t,viewport:r,gl:s,set:c}=n.getState();if(t.width!==i.width||t.height!==i.height||r.dpr!==a){i=t,a=r.dpr,Sj(e,t),r.dpr>0&&s.setPixelRatio(r.dpr);let n=typeof HTMLCanvasElement<`u`&&s.domElement instanceof HTMLCanvasElement;s.setSize(t.width,t.height,n)}e!==o&&(o=e,c(t=>({viewport:{...t.viewport,...t.viewport.getCurrentViewport(e)}})))}),n.subscribe(t=>e(t)),n};function Mj(){let e=w.useContext(Aj);if(!e)throw Error(`R3F: Hooks can only be used within the Canvas component!`);return e}function Nj(e=e=>e,t){return Mj()(e,t)}function Pj(e,t=0){let n=Mj(),r=n.getState().internal.subscribe,i=QA(e);return ZA(()=>r(i,t,n),[t,r,n]),null}var Fj=new WeakMap,Ij=e=>typeof e==`function`&&e?.prototype?.constructor===e;function Lj(e,t){return function(n,...r){let i;return Ij(n)?(i=Fj.get(n),i||(i=new n,Fj.set(n,i))):i=n,e&&e(i),Promise.all(r.map(e=>new Promise((n,r)=>i.load(e,e=>{Cj(e?.scene)&&Object.assign(e,aj(e.scene)),n(e)},t,t=>r(Error(`Could not load ${e}: ${t?.message}`))))))}}function Rj(e,t,n,r){let i=Array.isArray(t)?t:[t],a=PA(Lj(n,r),[e,...i],{equal:ij.equ});return Array.isArray(t)?a:a[0]}Rj.preload=function(e,t,n){let r=Array.isArray(t)?t:[t];return FA(Lj(n),[e,...r])},Rj.clear=function(e,t){return IA([e,...Array.isArray(t)?t:[t]])};var zj=1,Bj=8,Vj=32,Hj=2,Uj={name:`@react-three/fiber`,version:`9.6.1`,description:`A React renderer for Threejs`,keywords:[`react`,`renderer`,`fiber`,`three`,`threejs`],author:`Paul Henschel (https://github.com/drcmda)`,license:`MIT`,maintainers:[`Josh Ellis (https://github.com/joshuaellis)`,`Cody Bennett (https://github.com/codyjasonbennett)`,`Kris Baumgarter (https://github.com/krispya)`],bugs:{url:`https://github.com/pmndrs/react-three-fiber/issues`},homepage:`https://github.com/pmndrs/react-three-fiber#readme`,repository:{type:`git`,url:`git+https://github.com/pmndrs/react-three-fiber.git`},collective:{type:`opencollective`,url:`https://opencollective.com/react-three-fiber`},main:`dist/react-three-fiber.cjs.js`,module:`dist/react-three-fiber.esm.js`,types:`dist/react-three-fiber.cjs.d.ts`,"react-native":`native/dist/react-three-fiber-native.cjs.js`,sideEffects:!1,preconstruct:{entrypoints:[`index.tsx`,`native.tsx`]},scripts:{prebuild:`cp ../../readme.md readme.md`},devDependencies:{"@types/react-reconciler":`^0.32.3`,"react-reconciler":`^0.33.0`},dependencies:{"@babel/runtime":`^7.17.8`,"@types/webxr":`*`,"base64-js":`^1.5.1`,buffer:`^6.0.3`,"its-fine":`^2.0.0`,"react-use-measure":`^2.1.7`,scheduler:`^0.27.0`,"suspend-react":`^0.1.3`,"use-sync-external-store":`^1.4.0`,zustand:`^5.0.3`}
4122,peerDependencies:{expo:`>=43.0`,"expo-asset":`>=8.4`,"expo-file-system":`>=11.0`,"expo-gl":`>=11.0`,react:`>=19 <19.3`,"react-dom":`>=19 <19.3`,"react-native":`>=0.78`,three:`>=0.156`},peerDependenciesMeta:{"react-dom":{optional:!0},"react-native":{optional:!0},expo:{optional:!0},"expo-asset":{optional:!0},"expo-file-system":{optional:!0},"expo-gl":{optional:!0}}};function Wj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Gj={exports:{}},Kj={exports:{}};Kj.exports;var qj;function Jj(){return qj||(qj=1,function(e){e.exports=function(e){function t(e,t,n,r){return new la(e,t,n,r)}function n(){}function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function a(e){if(i(e)!==e)throw Error(r(188))}function o(e){var t=e.alternate;if(!t){if(t=i(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return a(s),e;if(c===o)return a(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=c;else{for(var l=!1,u=s.child;u;){if(u===n){l=!0,n=s,o=c;break}if(u===o){l=!0,o=s,n=c;break}u=u.sibling}if(!l){for(u=c.child;u;){if(u===n){l=!0,n=c,o=s;break}if(u===o){l=!0,o=c,n=s;break}u=u.sibling}if(!l)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function s(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=s(e),t!==null)return t;e=e.sibling}return null}function c(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=c(e),t!==null))return t;e=e.sibling}return null}function l(e){return typeof e!=`object`||!e?null:(e=Wa&&e[Wa]||e[`@@iterator`],typeof e==`function`?e:null)}function u(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Ga?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Ma:return`Fragment`;case Pa:return`Profiler`;case Na:return`StrictMode`;case Ra:return`Suspense`;case za:return`SuspenseList`;case Ha:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case ja:return`Portal`;case Ia:return e.displayName||`Context`;case Fa:return(e._context.displayName||`Context`)+`.Consumer`;case La:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Ba:return t=e.displayName||null,t===null?u(e.type)||`Memo`:t;case Va:t=e._payload,e=e._init;try{return u(e(t))}catch{}}return null}function d(e){return{current:e}}function f(e){0>pc||(e.current=fc[pc],fc[pc]=null,pc--)}function p(e,t){pc++,fc[pc]=e.current,e.current=t}function m(e){return e>>>=0,e===0?32:31-(gc(e)/_c|0)|0}function h(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function g(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=h(n))):i=h(o):i=h(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=h(n))):i=h(o)):i=h(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function _(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function v(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 y(){var e=bc;return bc<<=1,!(bc&62914560)&&(bc=4194304),e}function b(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 2,154 bytes, lines 4122-4124
4122function x(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function S(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-hc(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&C(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function C(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-hc(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function T(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-hc(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function E(e,t){var n=t&-t;return n=n&42?1:D(n),(n&(e.suspendedLanes|t))===0?n:0}function D(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function O(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function k(e){if(typeof Ac==`function`&&jc(e),Nc&&typeof Nc.setStrictMode==`function`)try{Nc.setStrictMode(Mc,e)}catch{}}function A(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function j(e){if(Lc===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Lc=t&&t[1]||``,Rc=-1<e.stack.indexOf(`
4123    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4124`+Lc+e+Rc}function M(e,t){if(!e||zc)return``;zc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
4124else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4125`),l=s.split(`
4126`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
4127`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{zc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?j(n):``}function N(e,t){switch(e.tag){case 26:case 27:case 5:return j(e.type);case 16:return j(`Lazy`);case 13:return e.child!==t&&t!==null?j(`Suspense Fallback`):j(`Suspense`);case 19:return j(`SuspenseList`);case 0:case 15:return M(e.type,!1);case 11:return M(e.type.render,!1);case 1:return M(e.type,!0);case 31:return j(`Activity`);default:return``}}function P(e){try{var t=``,n=null;do t+=N(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
4128Error generating stack: `+e.message+`
4129`+e.stack}}function ee(e,t){if(typeof e==`object`&&e){var n=Bc.get(e);return n===void 0?(t={value:e,source:t,stack:P(t)},Bc.set(e,t),t):n}return{value:e,source:t,stack:P(t)}}function F(e,t){Vc[Hc++]=Wc,Vc[Hc++]=Uc,Uc=e,Wc=t}function I(e,t,n){Gc[Kc++]=Jc,Gc[Kc++]=Yc,Gc[Kc++]=qc,qc=e;var r=Jc;e=Yc;var i=32-hc(r)-1;r&=~(1<<i),n+=1;var a=32-hc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Jc=1<<32-hc(t)+i|n<<i|r,Yc=a+e}else Jc=1<<a|n<<i|r,Yc=e}function te(e){e.return!==null&&(F(e,1),I(e,1,0))}function ne(e){for(;e===Uc;)Uc=Vc[--Hc],Vc[Hc]=null,Wc=Vc[--Hc],Vc[Hc]=null;for(;e===qc;)qc=Gc[--Kc],Gc[Kc]=null,Yc=Gc[--Kc],Gc[Kc]=null,Jc=Gc[--Kc],Gc[Kc]=null}function L(e,t){Gc[Kc++]=Jc,Gc[Kc++]=Yc,Gc[Kc++]=qc,Jc=t.id,Yc=t.overflow,qc=e}function re(e,t){p(Qc,t),p(Zc,e),p(Xc,null),e=Qa(t),f(Xc),p(Xc,e)}function ie(){f(Xc),f(Zc),f(Qc)}function R(e){e.memoizedState!==null&&p($c,e);var t=Xc.current,n=$a(t,e.type);t!==n&&(p(Zc,e),p(Xc,n))}function ae(e){Zc.current===e&&(f(Xc),f(Zc)),$c.current===e&&(f($c),uo?Ao._currentValue=ko:Ao._currentValue2=ko)}function z(e){throw ue(ee(Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),al}function oe(e,t){if(!mo)throw Error(r(175));Ds(e.stateNode,e.type,e.memoizedProps,t,e)||z(e,!0)}function se(e){for(el=e.return;el;)switch(el.tag){case 5:case 31:case 13:il=!1;return;case 27:case 3:il=!0;return;default:el=el.return}}function B(e){if(!mo||e!==el)return!1;if(!nl)return se(e),nl=!0,!1;var t=e.tag;if(oc?t!==3&&t!==27&&(t!==5||Us(e.type)&&!ao(e.type,e.memoizedProps))&&tl&&z(e):t!==3&&(t!==5||Us(e.type)&&!ao(e.type,e.memoizedProps))&&tl&&z(e),se(e),t===13){if(!mo)throw Error(r(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));tl=Ms(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));tl=js(e)}else tl=oc&&t===27?_s(e.type,tl):el?gs(e.stateNode):null;return!0}function ce(){mo&&(tl=el=null,nl=!1)}function le(){var e=rl;return e!==null&&(Uu===null?Uu=e:Uu.push.apply(Uu,e),rl=null),e}function ue(e){rl===null?rl=[e]:rl.push(e)}function de(e,t,n){uo?(p(ol,t._currentValue),t._currentValue=n):(p(ol,t._currentValue2),t._currentValue2=n)}function fe(e){var t=ol.current;uo?e._currentValue=t:e._currentValue2=t,f(ol)}function pe(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function V(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;e:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),pe(o.return,n,e),i||(s=null);break e}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),pe(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function me(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var c=a.type;Pc(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===$c.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Ao]:e.push(Ao))}a=a.return}e!==null&&V(t,e,n,i),t.flags|=262144}function he(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Pc(uo?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}
4129function ge(e){sl=e,cl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function H(e){return U(sl,e)}function _e(e,t){return sl===null&&ge(e),U(e,t)}function U(e,t){var n=uo?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},cl===null){if(e===null)throw Error(r(308));cl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cl=cl.next=t;return n}function ve(){return{controller:new ll,data:new Map,refCount:0}}function ye(e){e.refCount--,e.refCount===0&&ul(dl,function(){e.controller.abort()})}function be(){}function xe(e){e!==ml&&e.next===null&&(ml===null?pl=ml=e:ml=ml.next=e),gl=!0,hl||(hl=!0,Oe())}function Se(e,t){if(!_l&&gl){_l=!0;do for(var n=!1,r=pl;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-hc(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,De(r,a))}else a=ku,a=g(r,r===Du?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==lo),!(a&3)||_(r,a)||(n=!0,De(r,a));r=r.next}while(n);_l=!1}}function Ce(){we()}function we(){gl=hl=!1;var e=0;vl!==0&&bo()&&(e=vl);for(var t=Tc(),n=null,r=pl;r!==null;){var i=r.next,a=Te(r,t);a===0?(r.next=null,n===null?pl=i:n.next=i,i===null&&(ml=n)):(n=r,(e!==0||a&3)&&(gl=!0)),r=i}Xu!==0&&Xu!==5||Se(e,!1),vl!==0&&(vl=0)}function Te(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-hc(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=v(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Du,n=ku,n=g(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lo),r=e.callbackNode,n===0||e===t&&(Au===2||Au===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Sc(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||_(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Sc(r),O(n)){case 2:case 8:n=Dc;break;case 32:n=Oc;break;case 268435456:n=kc;break;default:n=Oc}return r=Ee.bind(null,e),n=xc(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Sc(r),e.callbackPriority=2,e.callbackNode=null,2}function Ee(e,t){if(Xu!==0&&Xu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($i()&&e.callbackNode!==n)return null;var r=ku;return r=g(e,e===Du?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lo),r===0?null:(Di(e,r,t),Te(e,Tc()),e.callbackNode!=null&&e.callbackNode===n?Ee.bind(null,e):null)}function De(e,t){if($i())return null;Di(e,t,!0)}function Oe(){Mo?No(function(){Eu&6?xc(Ec,Ce):we()}):xc(Ec,Ce)}function ke(){if(vl===0){var e=xl;e===0&&(e=vc,vc<<=1,!(vc&261888)&&(vc=256)),vl=e}return vl}function Ae(e,t){if(yl===null){var n=yl=[];bl=0,xl=ke(),Sl={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return bl++,t.then(je,je),t}function je(){if(--bl===0&&yl!==null){Sl!==null&&(Sl.status=`fulfilled`);var e=yl;yl=null,xl=0,Sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Me(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ne(){var e=wl.current;return e===null?Du.pooledCache:e}function Pe(e,t){t===null?p(wl,wl.current):p(wl,t.pool)}function Fe(){var e=Ne();return e===null?null:{parent:uo?fl._currentValue:fl._currentValue2,pool:e}}function Ie(e,t){if(Pc(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ic.call(t,i)||!Pc(e[i],t[i]))return!1}return!0}function Le(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Re(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(be,be),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Be(e),e;default:if(typeof t.status==`string`)t.then(be,be);else{if(e=Du,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}}
vendor: 4,237 bytes, line 4129
4129,function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Be(e),e}throw kl=t,Tl}}function ze(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(kl=e,Tl):e}}function W(){if(kl===null)throw Error(r(459));var e=kl;return kl=null,e}function Be(e){if(e===Tl||e===Dl)throw Error(r(483))}function Ve(e){var t=jl;return jl+=1,Al===null&&(Al=[]),Re(Al,e,t)}function He(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ue(e,t){throw t.$$typeof===ka?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function We(e){function n(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function i(t,r){if(!e)return null;for(;r!==null;)n(t,r),r=r.sibling;return null}function a(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function o(e,t){return e=da(e,t),e.index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function c(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function u(e,t,n,r){return t===null||t.tag!==6?(t=ha(n,e.mode,r),t.return=e,t):(t=o(t,n),t.return=e,t)}function d(e,t,n,r){var i=n.type;return i===Ma?p(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===Va&&ze(i)===t.type)?(t=o(t,n.props),He(t,n),t.return=e,t):(t=pa(n.type,n.key,n.props,null,e.mode,r),He(t,n),t.return=e,t)}function f(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_a(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[]),t.return=e,t)}function p(e,t,n,r,i){return t===null||t.tag!==7?(t=ma(n,e.mode,r,i),t.return=e,t):(t=o(t,n),t.return=e,t)}function m(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ha(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Aa:return n=pa(t.type,t.key,t.props,null,e.mode,n),He(n,t),n.return=e,n;case ja:return t=_a(t,e.mode,n),t.return=e,t;case Va:return t=ze(t),m(e,t,n)}if(Ka(t)||l(t))return t=ma(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return m(e,Ve(t),n);if(t.$$typeof===Ia)return m(e,_e(e,t),n);Ue(e,t)}return null}function h(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?u(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Aa:return n.key===i?d(e,t,n,r):null;case ja:return n.key===i?f(e,t,n,r):null;case Va:return n=ze(n),h(e,t,n,r)}if(Ka(n)||l(n))return i===null?p(e,t,n,r,null):null;if(typeof n.then==`function`)return h(e,t,Ve(n),r);if(n.$$typeof===Ia)return h(e,t,_e(e,n),r);Ue(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,u(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Aa:return e=e.get(r.key===null?n:r.key)||null,d(t,e,r,i);case ja:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case Va:return r=ze(r),g(e,t,n,r,i)}if(Ka(r)||l(r))return e=e.get(n)||null,p(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,Ve(r),i);if(r.$$typeof===Ia)return g(e,t,n,_e(t,r),i);Ue(t,r)}return null}function _(t,r,o,c){for(var l=null,u=null,d=r,f=r=0,p=null;d!==null&&f<o.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var _=h(t,d,o[f],c);if(_===null){d===null&&(d=p);break}e&&d&&_.alternate===null&&n(t,d),r=s(_,r,f),u===null?l=_:u.sibling=_,u=_,d=p}if(f===o.length)return i(t,d),nl&&F(t,f),l;if(d===null){for(;f<o.length;f++)d=m(t,o[f],c),d!==null&&(r=s(d,r,f),u===null?l=d:u.sibling=d,u=d);return nl&&F(t,f),l}for(d=a(d);f<o.length;f++)p=g(d,t,f,o[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),r=s(p,r,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return n(t,e)}),nl&&F(t,f),l}function v(t,o,c,l){if(c==null)throw Error(r(151));for(var u=null,d=null,f=o,p=o=0,_=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>
vendor: 5,785 bytes, line 4129
4129p?(_=f,f=null):_=f.sibling;var y=h(t,f,v.value,l);if(y===null){f===null&&(f=_);break}e&&f&&y.alternate===null&&n(t,f),o=s(y,o,p),d===null?u=y:d.sibling=y,d=y,f=_}if(v.done)return i(t,f),nl&&F(t,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=m(t,v.value,l),v!==null&&(o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return nl&&F(t,p),u}for(f=a(f);!v.done;p++,v=c.next())v=g(f,t,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return n(t,e)}),nl&&F(t,p),u}function y(e,t,a,s){if(typeof a==`object`&&a&&a.type===Ma&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Aa:e:{for(var u=a.key;t!==null;){if(t.key===u){if(u=a.type,u===Ma){if(t.tag===7){i(e,t.sibling),s=o(t,a.props.children),s.return=e,e=s;break e}}else if(t.elementType===u||typeof u==`object`&&u&&u.$$typeof===Va&&ze(u)===t.type){i(e,t.sibling),s=o(t,a.props),He(s,a),s.return=e,e=s;break e}i(e,t);break}else n(e,t);t=t.sibling}a.type===Ma?(s=ma(a.props.children,e.mode,s,a.key),s.return=e,e=s):(s=pa(a.type,a.key,a.props,null,e.mode,s),He(s,a),s.return=e,e=s)}return c(e);case ja:e:{for(u=a.key;t!==null;){if(t.key===u)if(t.tag===4&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){i(e,t.sibling),s=o(t,a.children||[]),s.return=e,e=s;break e}else{i(e,t);break}else n(e,t);t=t.sibling}s=_a(a,e.mode,s),s.return=e,e=s}return c(e);case Va:return a=ze(a),y(e,t,a,s)}if(Ka(a))return _(e,t,a,s);if(l(a)){if(u=l(a),typeof u!=`function`)throw Error(r(150));return a=u.call(a),v(e,t,a,s)}if(typeof a.then==`function`)return y(e,t,Ve(a),s);if(a.$$typeof===Ia)return y(e,t,_e(e,a),s);Ue(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,t!==null&&t.tag===6?(i(e,t.sibling),s=o(t,a),s.return=e,e=s):(i(e,t),s=ha(a,e.mode,s),s.return=e,e=s),c(e)):i(e,t)}return function(e,n,r,i){try{jl=0;var a=y(e,n,r,i);return Al=null,a}catch(n){if(n===Tl||n===Dl)throw n;var o=t(29,n,null,e.mode);return o.lanes=i,o.return=e,o}}}function Ge(){for(var e=Fl,t=Il=Fl=0;t<e;){var n=Pl[t];Pl[t++]=null;var r=Pl[t];Pl[t++]=null;var i=Pl[t];Pl[t++]=null;var a=Pl[t];if(Pl[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ye(n,i,a)}}function Ke(e,t,n,r){Pl[Fl++]=e,Pl[Fl++]=t,Pl[Fl++]=n,Pl[Fl++]=r,Il|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function qe(e,t,n,r){return Ke(e,t,n,r),Xe(e)}function Je(e,t){return Ke(e,null,null,t),Xe(e)}function Ye(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-hc(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Xe(e){if(50<rd)throw rd=0,id=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function Ze(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qe(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $e(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function et(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Eu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Xe(e),Ye(e,null,n),t}return Ke(e,r,t,n),Xe(e)}function tt(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,T(e,n)}}function nt(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rt(){if(Rl){var e=Sl;if(e!==null)throw e}}function it(e,t,n,r){Rl=!1;var i=e.updateQueue;Ll=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(ku&f)===f:(r&f)===f){f!==0&&f===xl&&(Rl=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break e;d=Oa({},d,f);break e;case 2:Ll=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Lu|=o,e.lanes=o,e.memoizedState=d}}function at(e,t){if(typeof e!=`function`)throw Error(r(191,e));e.call(t)}function ot(e,t){var n=e.callbacks;
vendor: 7,743 bytes, line 4129
4129if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)at(n[e],t)}function st(e,t){e=Fu,p(Bl,e),p(zl,t),Fu=e|t.baseLanes}function ct(){p(Bl,Fu),p(zl,zl.current)}function lt(){Fu=Bl.current,f(zl),f(Bl)}function ut(e){var t=e.alternate;p(Ul,Ul.current&1),p(Vl,e),Hl===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Hl=e)}function dt(e){p(Ul,Ul.current),p(Vl,e),Hl===null&&(Hl=e)}function ft(e){e.tag===22?(p(Ul,Ul.current),p(Vl,e),Hl===null&&(Hl=e)):pt()}function pt(){p(Ul,Ul.current),p(Vl,Vl.current)}function mt(e){f(Vl),Hl===e&&(Hl=null),f(Ul)}function ht(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||us(n)||ds(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function gt(){throw Error(r(321))}function _t(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pc(e[n],t[n]))return!1;return!0}function vt(e,t,n,r,i,a){return Wl=a,Gl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.H=e===null||e.memoizedState===null?nu:ru,Xl=!1,a=n(r,i),Xl=!1,Yl&&(a=bt(t,n,r,i)),yt(e),a}function yt(e){qa.H=tu;var t=Kl!==null&&Kl.next!==null;if(Wl=0,ql=Kl=Gl=null,Jl=!1,Ql=0,$l=null,t)throw Error(r(300));e===null||su||(e=e.dependencies,e!==null&&he(e)&&(su=!0))}function bt(e,t,n,i){Gl=e;var a=0;do{if(Yl&&($l=null),Ql=0,Yl=!1,25<=a)throw Error(r(301));if(a+=1,ql=Kl=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}qa.H=iu,o=t(n,i)}while(Yl);return o}function xt(){var e=qa.H,t=e.useState()[0];return t=typeof t.then==`function`?Ot(t):t,e=e.useState()[0],(Kl===null?null:Kl.memoizedState)!==e&&(Gl.flags|=1024),t}function St(){var e=Zl!==0;return Zl=0,e}function Ct(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function wt(e){if(Jl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jl=!1}Wl=0,ql=Kl=Gl=null,Yl=!1,Ql=Zl=0,$l=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ql===null?Gl.memoizedState=ql=e:ql=ql.next=e,ql}function Et(){if(Kl===null){var e=Gl.alternate;e=e===null?null:e.memoizedState}else e=Kl.next;var t=ql===null?Gl.memoizedState:ql.next;if(t!==null)ql=t,Kl=e;else{if(e===null)throw Gl.alternate===null?Error(r(467)):Error(r(310));Kl=e,e={memoizedState:Kl.memoizedState,baseState:Kl.baseState,baseQueue:Kl.baseQueue,queue:Kl.queue,next:null},ql===null?Gl.memoizedState=ql=e:ql=ql.next=e}return ql}function Dt(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ot(e){var t=Ql;return Ql+=1,$l===null&&($l=[]),e=Re($l,e,t),t=Gl,(ql===null?t.memoizedState:ql.next)===null&&(t=t.alternate,qa.H=t===null||t.memoizedState===null?nu:ru),e}function kt(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ot(e);if(e.$$typeof===Ia)return H(e)}throw Error(r(438,String(e)))}function At(e){var t=null,n=Gl.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Gl.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Dt(),Gl.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ua;return t.index++,n}function jt(e,t){return typeof t==`function`?t(e):t}function Mt(e){return Nt(Et(),Kl,e)}function Nt(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Wl&f)===f:(ku&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===xl&&(d=!0);else if((Wl&p)===p){u=u.next,p===xl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Gl.lanes|=p,Lu|=p;f=u.action,Xl&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Gl.lanes|=f,Lu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Pc(o,e.memoizedState)&&(su=!0,d&&(n=Sl,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Pt(e){var t=Et(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Pc(o,t.memoizedState)||(su=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ft(e,t,n){var i=Gl,a=Et(),o=nl;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var s=!Pc((Kl||a).memoizedState,n);if(s&&(a.memoizedState=n,su=!0),a=a.queue,sn(Rt.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||ql!==null&&ql.memoizedState.tag&1){if(i.flags|=2048,tn(9,{destroy:void 0},Lt.bind(null,i,a,n,t),null),Du===null)throw Error(r(349));o||Wl&127||It(i,t,n)}return n}function It(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Gl.updateQueue,t===null?(t=Dt(),Gl.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lt(e,t,n,r){t.value=n,t.getSnapshot=r,zt(t)&&Bt(e)}function Rt(e,t,n){return n(function(){zt(t)&&Bt(e)})}function zt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pc(e,n)}catch{return!0}}function Bt(e){var t=Je(e,2);t!==null&&Ei(t,e,2)}function Vt(e){var t=Tt();if(typeof e==`function`){var n=e;if(e=n(),Xl){k(!0);try{n()}finally{k(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jt,lastRenderedState:e},t}function Ht(e,t,n,r){return e.baseState=n,Nt(e,Kl,typeof r==`function`?r:jt)}function Ut(e,t,n,i,a){if(kn(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};qa.T===null?o.isTransition=!1:n(!0),i(o),n=t.pending,n===null?(o.next=t.pending=o,Wt(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Wt(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=qa.T,o={};qa.T=o;try{var s=n(i,r),c=qa.S;c!==null&&c(o,s),Gt(e,t,s)}catch(n){qt(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),qa.T=a}}else try{a=n(i,r),Gt(e,t,a)}catch(n){qt(e,t,n)}}function Gt(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Kt(e,t,n)},function(n){return qt(e,t,n)}):Kt(e,t,n)}function Kt(e,t,n){t.status=`fulfilled`,t.value=n,Jt(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wt(e,n)))}function qt(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Jt(t),t=t.next;while(t!==r)}e.action=null}function Jt(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yt(e,t){return t}function Xt(e,t){if(nl){var n=Du.formState;if(n!==null){e:{var r=Gl;if(nl){if(tl){var i=ms(tl,il);
vendor: 7,592 bytes, line 4129
4129if(i){tl=gs(i),r=hs(i);break e}}z(r)}r=!1}r&&(t=n[0])}}n=Tt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:t},n.queue=r,n=En.bind(null,Gl,r),r.dispatch=n,r=Vt(!1);var a=On.bind(null,Gl,!1,r.queue);return r=Tt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ut.bind(null,Gl,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Zt(e){return Qt(Et(),Kl,e)}function Qt(e,t,n){if(t=Nt(e,t,Yt)[0],e=Mt(jt)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ot(t)}catch(e){throw e===Tl?Dl:e}else r=t;t=Et();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Gl.flags|=2048,tn(9,{destroy:void 0},$t.bind(null,i,n),null)),[r,a,e]}function $t(e,t){e.action=t}function en(e){var t=Et(),n=Kl;if(n!==null)return Qt(t,n,e);Et(),t=t.memoizedState,n=Et();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function tn(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Gl.updateQueue,t===null&&(t=Dt(),Gl.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function nn(){return Et().memoizedState}function rn(e,t,n,r){var i=Tt();Gl.flags|=e,i.memoizedState=tn(1|t,{destroy:void 0},n,r===void 0?null:r)}function an(e,t,n,r){var i=Et();r=r===void 0?null:r;var a=i.memoizedState.inst;Kl!==null&&r!==null&&_t(r,Kl.memoizedState.deps)?i.memoizedState=tn(t,a,n,r):(Gl.flags|=e,i.memoizedState=tn(1|t,a,n,r))}function on(e,t){rn(8390656,8,e,t)}function sn(e,t){an(2048,8,e,t)}function cn(e){Gl.flags|=4;var t=Gl.updateQueue;if(t===null)t=Dt(),Gl.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ln(e){var t=Et().memoizedState;return cn({ref:t,nextImpl:e}),function(){if(Eu&2)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function un(e,t){return an(4,2,e,t)}function dn(e,t){return an(4,4,e,t)}function fn(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pn(e,t,n){n=n==null?null:n.concat([e]),an(4,4,fn.bind(null,t,e),n)}function mn(){}function hn(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_t(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gn(e,t){var n=Et();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_t(t,r[1]))return r[0];if(r=e(),Xl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r}function _n(e,t,n){return n===void 0||Wl&1073741824&&!(ku&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ti(),Gl.lanes|=e,Lu|=e,n)}function vn(e,t,n,r){return Pc(n,t)?n:zl.current===null?!(Wl&42)||Wl&1073741824&&!(ku&261930)?(su=!0,e.memoizedState=n):(e=Ti(),Gl.lanes|=e,Lu|=e,t):(e=_n(e,n,r),Pc(e,t)||(su=!0),e)}function yn(e,t,n,r,i){var a=vo();_o(a!==0&&8>a?a:8);var o=qa.T,s={};qa.T=s,On(e,!1,t,n);try{var c=i(),l=qa.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Dn(e,t,Me(c,r),wi(e)):Dn(e,t,r,wi(e))}catch(n){Dn(e,t,{then:function(){},status:`rejected`,reason:n},wi())}finally{_o(a),o!==null&&s.types!==null&&(o.types=s.types),qa.T=o}}function bn(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ko,baseState:ko,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jt,lastRenderedState:ko},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xn(){return H(Ao)}function Sn(){return Et().memoizedState}function Cn(){return Et().memoizedState}function wn(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=wi();e=$e(n);var r=et(t,e,n);r!==null&&(Ei(r,t,n),tt(r,t,n)),t={cache:ve()},e.payload=t;return}t=t.return}}function Tn(e,t,n){var r=wi();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},kn(e)?An(t,n):(n=qe(e,t,n,r),n!==null&&(Ei(n,e,r),jn(n,t,r)))}function En(e,t,n){Dn(e,t,n,wi())}function Dn(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(kn(e))An(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pc(s,o))return Ke(e,t,i,0),Du===null&&Ge(),!1}catch{}if(n=qe(e,t,i,r),n!==null)return Ei(n,e,r),jn(n,t,r),!0}return!1}function On(e,t,n,i){if(i={lane:2,revertLane:ke(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},kn(e)){if(t)throw Error(r(479))}else t=qe(e,n,i,2),t!==null&&Ei(t,e,2)}function kn(e){var t=e.alternate;return e===Gl||t!==null&&t===Gl}function An(e,t){Yl=Jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jn(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,T(e,n)}}function Mn(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Oa({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function Nn(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ie(n,r)||!Ie(i,a):!0}function Pn(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&au.enqueueReplaceState(t,t.state,null)}function Fn(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Oa({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function In(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ln(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Rn(e,t,n){return n=$e(n),n.tag=3,n.payload={element:null},n.callback=function(){In(e,t)},n}function zn(e){return e=$e(e),e.tag=3,e}function Bn(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ln(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ln(t,n,r),typeof i!=`function`&&(Yu===null?Yu=new Set([this]):Yu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Vn(e,t,n,i,a){if(n.flags|=32768,typeof i==`object`&&i&&typeof i.then==`function`){if(t=n.alternate,t!==null&&me(t,n,a,!0),n=Vl.current,n!==null){switch(n.tag){case 31:case 13:return Hl===null?Ri():n.alternate===null&&Iu===0&&(Iu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Ol?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ra(e,i,a)),!1;case 22:return n.flags|=65536,i===Ol?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ra(e,i,a)),!1}throw Error(r(435,n.tag))}return ra(e,i,a),Ri(),!1}if(nl)return t=Vl.current,t===null?(i!==al&&(t=Error(r(423),{cause:i}),ue(ee(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=ee(i,n),a=Rn(e.stateNode,i,a),nt(e,a),Iu!==4&&(Iu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==al&&(e=Error(r(422),{cause:i}),ue(ee(e,n)))),!1;var o=Error(r(520),{cause:i});if(o=ee(o,n),Hu===null?Hu=[o]:Hu.push(o),Iu!==4&&(Iu=2),t===null)return!0;
vendor: 4,419 bytes, line 4129
4129i=ee(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Rn(n.stateNode,i,e),nt(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Yu===null||!Yu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=zn(a),Bn(a,e,n,i),nt(n,a),!1}n=n.return}while(n!==null);return!1}function Hn(e,t,n,r){t.child=e===null?Nl(t,null,n,r):Ml(t,e.child,n,r)}function Un(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ge(t),r=vt(e,t,n,o,a,i),s=St(),e!==null&&!su?(Ct(e,t,i),fr(e,t,i)):(nl&&s&&te(t),t.flags|=1,Hn(e,t,r,i),t.child)}function Wn(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ua(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Gn(e,t,a,r,i)):(e=pa(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!pr(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ie:n,n(o,r)&&e.ref===t.ref)return fr(e,t,i)}return t.flags|=1,e=da(a,r),e.ref=t.ref,e.return=t,t.child=e}function Gn(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ie(a,r)&&e.ref===t.ref)if(su=!1,t.pendingProps=r=a,pr(e,i))e.flags&131072&&(su=!0);else return t.lanes=e.lanes,fr(e,t,i)}return $n(e,t,n,r,i)}function Kn(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Jn(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pe(t,a===null?null:a.cachePool),a===null?ct():st(t,a),ft(t);else return r=t.lanes=536870912,Jn(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Pe(t,null),ct(),pt()):(Pe(t,a.cachePool),st(t,a),pt(),t.memoizedState=null);return Hn(e,t,i,n),t.child}function qn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jn(e,t,n,r,i){var a=Ne();return a=a===null?null:{parent:uo?fl._currentValue:fl._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Pe(t,null),ct(),ft(t),e!==null&&me(e,t,r,!0),t.childLanes=i,null}function Yn(e,t){return t=sr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xn(e,t,n){return Ml(t,e.child,null,n),e=Yn(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function Zn(e,t,n){var i=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(nl){if(i.mode===`hidden`)return e=Yn(t,i),t.lanes=536870912,qn(null,e);if(dt(t),(e=tl)?(e=Ts(e,il),e!==null&&(t.memoizedState={dehydrated:e,treeContext:qc===null?null:{id:Jc,overflow:Yc},retryLane:536870912,hydrationErrors:null},n=ga(e),n.return=t,t.child=n,el=t,tl=null)):e=null,e===null)throw z(t);return t.lanes=536870912,null}return Yn(t,i)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(dt(t),a)if(t.flags&256)t.flags&=-257,t=Xn(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(su||me(e,t,n,!1),a=(n&e.childLanes)!==0,su||a){if(i=Du,i!==null&&(s=E(i,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Je(e,s),Ei(i,e,s),ou;Ri(),t=Xn(e,t,n)}else e=o.treeContext,mo&&(tl=bs(s),el=t,nl=!0,rl=null,il=!1,e!==null&&L(t,e)),t=Yn(t,i),t.flags|=4096;return t}return e=da(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qn(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $n(e,t,n,r,i){return ge(t),n=vt(e,t,n,r,void 0,i),r=St(),e!==null&&!su?(Ct(e,t,i),fr(e,t,i)):(nl&&r&&te(t),t.flags|=1,Hn(e,t,n,i),t.child)}function er(e,t,n,r,i,a){return ge(t),t.updateQueue=null,n=bt(t,r,n,i),yt(e),r=St(),e!==null&&!su?(Ct(e,t,a),fr(e,t,a)):(nl&&r&&te(t),t.flags|=1,Hn(e,t,n,a),t.child)}function tr(e,t,n,r,i){if(ge(t),t.stateNode===null){var a=mc,o=n.contextType;typeof o==`object`&&o&&(a=H(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=au,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={}
vendor: 4,190 bytes, line 4129
4129,Ze(t),o=n.contextType,a.context=typeof o==`object`&&o?H(o):mc,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Mn(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&au.enqueueReplaceState(a,a.state,null),it(t,r,a,i),rt(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Fn(n,s);a.props=c;var l=a.context,u=n.contextType;o=mc,typeof u==`object`&&u&&(o=H(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Pn(t,a,r,o),Ll=!1;var f=t.memoizedState;a.state=f,it(t,r,a,i),rt(),l=t.memoizedState,s||f!==l||Ll?(typeof d==`function`&&(Mn(t,n,d,r),l=t.memoizedState),(c=Ll||Nn(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Qe(e,t),o=t.memoizedProps,u=Fn(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=mc,typeof l==`object`&&l&&(c=H(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Pn(t,a,r,c),Ll=!1,f=t.memoizedState,a.state=f,it(t,r,a,i),rt();var p=t.memoizedState;o!==d||f!==p||Ll||e!==null&&e.dependencies!==null&&he(e.dependencies)?(typeof s==`function`&&(Mn(t,n,s,r),p=t.memoizedState),(u=Ll||Nn(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&he(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Qn(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ml(t,e.child,null,i),t.child=Ml(t,null,n,i)):Hn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=fr(e,t,i),e}function nr(e,t,n,r){return ce(),t.flags|=256,Hn(e,t,n,r),t.child}function rr(e){return{baseLanes:e,cachePool:Fe()}}function ir(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Bu),e}function ar(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Ul.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(nl){if(a?ut(t):pt(),(e=tl)?(e=Es(e,il),e!==null&&(t.memoizedState={dehydrated:e,treeContext:qc===null?null:{id:Jc,overflow:Yc},retryLane:536870912,hydrationErrors:null},n=ga(e),n.return=t,t.child=n,el=t,tl=null)):e=null,e===null)throw z(t);return ds(e)?t.lanes=32:t.lanes=536870912,null}var c=i.children;
4129return i=i.fallback,a?(pt(),a=t.mode,c=sr({mode:`hidden`,children:c},a),i=ma(i,a,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=rr(n),i.childLanes=ir(e,s,n),t.memoizedState=cu,qn(null,i)):(ut(t),or(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ut(t),t.flags&=-257,t=cr(e,t,n)):t.memoizedState===null?(pt(),c=i.fallback,a=t.mode,i=sr({mode:`visible`,children:i.children},a),c=ma(c,a,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Ml(t,e.child,null,n),i=t.child,i.memoizedState=rr(n),i.childLanes=ir(e,s,n),t.memoizedState=cu,t=qn(null,i)):(pt(),t.child=e.child,t.flags|=128,t=null);else if(ut(t),ds(c))s=fs(c).digest,i=Error(r(419)),i.stack=``,i.digest=s,ue({value:i,source:null,stack:null}),t=cr(e,t,n);else if(su||me(e,t,n,!1),s=(n&e.childLanes)!==0,su||s){if(s=Du,s!==null&&(i=E(s,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,Je(e,i),Ei(s,e,i),ou;us(c)||Ri(),t=cr(e,t,n)}else us(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,mo&&(tl=xs(c),el=t,nl=!0,rl=null,il=!1,e!==null&&L(t,e)),t=or(t,i.children),t.flags|=4096);return t}return a?(pt(),c=i.fallback,a=t.mode,l=e.child,o=l.sibling,i=da(l,{mode:`hidden`,children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,o===null?(c=ma(c,a,n,null),c.flags|=2):c=da(o,c),c.return=t,i.return=t,i.sibling=c,t.child=i,qn(null,i),i=t.child,c=e.child.memoizedState,c===null?c=rr(n):(a=c.cachePool,a===null?a=Fe():(l=uo?fl._currentValue:fl._currentValue2,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),i.memoizedState=c,i.childLanes=ir(e,s,n),t.memoizedState=cu,qn(e.child,i)):(ut(t),n=e.child,e=n.sibling,n=da(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function or(e,t){return t=sr({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function sr(e,n){return e=t(22,e,null,n),e.lanes=0,e}function cr(e,t,n){return Ml(t,e.child,null,n),e=or(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lr(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pe(e.return,t,n)}function ur(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function dr(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ul.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,p(Ul,o),Hn(e,t,r,n),r=nl?Wc:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lr(e,n,t);else if(e.tag===19)lr(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ht(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ur(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ht(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ur(t,!0,n,null,a,r);break;case`together`:ur(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function fr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(me(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=da(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=da(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pr(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&he(e))):!0}function mr(e,t,n){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),de(t,fl,e.memoizedState.cache),ce();break;case 27:case 5:R(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:de(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dt(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ut(t),e=fr(e,t,n),e===null?null:e.sibling):ar(e,t,n):(ut(t),t.flags|=128,null);ut(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(me(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return dr(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),p(Ul,Ul.current),r)break;return null;case 22:return t.lanes=0,Kn(e,t,n,t.pendingProps);case 24:de(t,fl,e.memoizedState.cache)}return fr(e,t,n)}function hr(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)su=!0;else{if(!pr(e,n)&&!(t.flags&128))return su=!1,mr(e,t,n);su=(e.flags&131072)!=0}else su=!1,nl&&t.flags&1048576&&I(t,Wc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ze(t.elementType),t.type=e,typeof e==`function`)ua(e)?(i=Fn(e,i),t.tag=1,t=tr(null,t,e,i,n)):(t.tag=0,t=$n(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===La){t.tag=11,t=Un(null,t,e,i,n);break e}else if(a===Ba){t.tag=14,t=Wn(null,t,e,i,n);break e}}throw t=u(e)||e,Error(r(306,t,``))}}return t;case 0:return $n(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Fn(i,t.pendingProps),tr(e,t,i,a,n);case 3:e:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(r(387));var o=t.pendingProps;a=t.memoizedState,i=a.element,Qe(e,t),it(t,o,null,n);var s=t.memoizedState;if(o=s.cache,de(t,fl,o),o!==a.cache&&V(t,[fl],n,!0),rt(),o=s.element,mo&&a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=nr(e,t,o,n);break e}else if(o!==i){i=ee(Error(r(424)),t),ue(i),t=nr(e,t,o,n);break e}else for(mo&&(tl=ys(t.stateNode.containerInfo),el=t,nl=!0,rl=null,il=!0),n=Nl(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ce(),o===i){t=fr(e,t,n);break e}Hn(e,t,o,n)}t=t.child}return t;case 26:if(Ks)return Qn(e,t),e===null?(n=Ys(t.type,null,t.pendingProps,null))?t.memoizedState=n:nl||(t.stateNode=tc(t.type,t.pendingProps,Qc.current,t)):t.memoizedState=Ys(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;
4129case 27:if(oc)return R(t),e===null&&oc&&nl&&(i=t.stateNode=sc(t.type,t.pendingProps,Qc.current,Xc.current,!1),el=t,il=!0,tl=Ss(t.type,i,tl)),Hn(e,t,t.pendingProps.children,n),Qn(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nl&&(Ws(t.type,t.pendingProps,Xc.current),(a=i=tl)&&(i=Cs(i,t.type,t.pendingProps,il),i===null?a=!1:(t.stateNode=i,el=t,tl=vs(i),il=!1,a=!0)),a||z(t)),R(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,i=o.children,ao(a,o)?i=null:s!==null&&ao(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=vt(e,t,xt,null,null,n),uo?Ao._currentValue=a:Ao._currentValue2=a),Qn(e,t),Hn(e,t,i,n),t.child;case 6:return e===null&&nl&&(Gs(t.pendingProps,Xc.current),(e=n=tl)&&(n=ws(n,t.pendingProps,il),n===null?e=!1:(t.stateNode=n,el=t,tl=null,e=!0)),e||z(t)),null;case 13:return ar(e,t,n);case 4:return re(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ml(t,null,i,n):Hn(e,t,i,n),t.child;case 11:return Un(e,t,t.type,t.pendingProps,n);case 7:return Hn(e,t,t.pendingProps,n),t.child;case 8:return Hn(e,t,t.pendingProps.children,n),t.child;case 12:return Hn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,de(t,t.type,i.value),Hn(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,ge(t),a=H(a),i=i(a),t.flags|=1,Hn(e,t,i,n),t.child;case 14:return Wn(e,t,t.type,t.pendingProps,n);case 15:return Gn(e,t,t.type,t.pendingProps,n);case 19:return dr(e,t,n);case 31:return Zn(e,t,n);case 22:return Kn(e,t,n,t.pendingProps);case 24:return ge(t),i=H(fl),e===null?(a=Ne(),a===null&&(a=Du,o=ve(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},Ze(t),de(t,fl,a)):((e.lanes&n)!==0&&(Qe(e,t),it(t,null,null,n),rt()),a=e.memoizedState,o=t.memoizedState,a.parent===i?(i=o.cache,de(t,fl,i),i!==a.cache&&V(t,[fl],n,!0)):(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),de(t,fl,i))),Hn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function gr(e){e.flags|=4}function _r(e){po&&(e.flags|=8)}function vr(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function yr(e,t,n,r){if(fo)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)ro(e,n.stateNode);else if(!(n.tag===4||oc&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(po)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=cs(a,i.type,i.memoizedProps)),ro(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=ls(a,i.memoizedProps)),ro(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),yr(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function br(e,t,n,r){var i=!1;if(po)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=cs(o,a.type,a.memoizedProps)),as(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=ls(o,a.memoizedProps)),as(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),br(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function xr(e,t){if(po&&vr(e,t)){e=t.stateNode;var n=e.containerInfo,r=is();br(r,t,!1,!1),e.pendingChildren=r,gr(t),os(n,r)}}function Sr(e,t,n,r){if(fo)e.memoizedProps!==r&&gr(t);else if(po){var i=e.stateNode,a=e.memoizedProps;if((e=vr(e,t))||a!==r){var o=Xc.current;a=rs(i,n,a,r,!e,null),a===i?t.stateNode=i:(_r(t),io(a,n,r,o)&&gr(t),t.stateNode=a,e&&yr(a,t,!1,!1))}else t.stateNode=i}}function Cr(e,t,n,r,i){if(e.mode&32&&(n===null?So(t,r):Co(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||wo(t,r))if(To(e.stateNode,t,r))e.flags|=8192;else if(Fi())e.flags|=8192;else throw kl=Ol,El}else e.flags&=-16777217}function wr(e,t){if(rc(t)){if(e.flags|=16777216,!ic(t))if(Fi())e.flags|=8192;else throw kl=Ol,El}else e.flags&=-16777217}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:y(),e.lanes|=t,Vu|=t)}function Er(e,t){if(!nl)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Or(e,t,n){var i=t.pendingProps;switch(ne(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dr(t),null;case 1:return Dr(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fe(fl),ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(B(t)?gr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,le())),xr(e,t),Dr(t),null;case 26:if(Ks){var a=t.type,o=t.memoizedState;return e===null?(gr(t),o===null?(Dr(t),Cr(t,a,null,i,n)):(Dr(t),wr(t,o))):o?o===e.memoizedState?(Dr(t),t.flags&=-16777217):(gr(t),Dr(t),wr(t,o)):(o=e.memoizedProps,fo?o!==i&&gr(t):Sr(e,t,a,i),Dr(t),Cr(t,a,o,i,n)),null}
4129case 27:if(oc){if(ae(t),n=Qc.current,a=t.type,e!==null&&t.stateNode!=null)fo?e.memoizedProps!==i&&gr(t):Sr(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Dr(t),null}e=Xc.current,B(t)?oe(t,e):(e=sc(a,i,n,e,!0),t.stateNode=e,gr(t))}return Dr(t),null}case 5:if(ae(t),a=t.type,e!==null&&t.stateNode!=null)Sr(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Dr(t),null}if(o=Xc.current,B(t))oe(t,o),Ls(t.stateNode,a,i,o)&&(t.flags|=64);else{var s=no(a,i,Qc.current,o,t);_r(t),yr(s,t,!1,!1),t.stateNode=s,io(s,a,i,o)&&gr(t)}}return Dr(t),Cr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,fo?n!==i&&gr(t):po&&(n===i?t.stateNode=e.stateNode:(e=Qc.current,n=Xc.current,_r(t),t.stateNode=oo(i,e,n,t)));else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(e=Qc.current,n=Xc.current,B(t)){if(!mo)throw Error(r(176));if(e=t.stateNode,n=t.memoizedProps,i=null,a=el,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}Os(e,n,t,i)||z(t,!0)}else _r(t),t.stateNode=oo(i,e,n,t)}return Dr(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=B(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(!mo)throw Error(r(556));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(557));ks(e,t)}else ce(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Dr(t),e=!1}else n=le(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if(t.flags&128)throw Error(r(558))}return Dr(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=B(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(!mo)throw Error(r(344));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(r(317));As(a,t)}else ce(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Dr(t),a=!1}else a=le(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tr(t,t.updateQueue),Dr(t),null);case 4:return ie(),xr(e,t),e===null&&go(t.stateNode.containerInfo),Dr(t),null;case 10:return fe(t.type),Dr(t),null;case 19:if(f(Ul),i=t.memoizedState,i===null)return Dr(t),null;if(a=(t.flags&128)!=0,o=i.rendering,o===null)if(a)Er(i,!1);else{if(Iu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ht(e),o!==null){for(t.flags|=128,Er(i,!1),e=o.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fa(n,e),n=n.sibling;return p(Ul,Ul.current&1|2),nl&&F(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Tc()>qu&&(t.flags|=128,a=!0,Er(i,!1),t.lanes=4194304)}else{if(!a)if(e=ht(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),Er(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!nl)return Dr(t),null}else 2*Tc()-i.renderingStartTime>qu&&n!==536870912&&(t.flags|=128,a=!0,Er(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(Dr(t),null):(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Tc(),e.sibling=null,n=Ul.current,p(Ul,a?n&1|2:n&1),nl&&F(t,i.treeForkCount),e);case 22:case 23:return mt(t),lt(),i=t.memoizedState!==null,e===null?i&&(t.flags|=8192):e.memoizedState!==null!==i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(Dr(t),t.subtreeFlags&6&&(t.flags|=8192)):Dr(t),n=t.updateQueue,n!==null&&Tr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&f(wl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fe(fl),Dr(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function kr(e,t){switch(ne(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
4129case 3:return fe(fl),ie(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(r(340));ce()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ce()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return f(Ul),null;case 4:return ie(),null;case 10:return fe(t.type),null;case 22:case 23:return mt(t),lt(),e!==null&&f(wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fe(fl),null;case 25:return null;default:return null}}function Ar(e,t){switch(ne(t),t.tag){case 3:fe(fl),ie();break;case 26:case 27:case 5:ae(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:f(Ul);break;case 10:fe(t.type);break;case 22:case 23:mt(t),lt(),e!==null&&f(wl);break;case 24:fe(fl)}}function jr(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){na(t,t.return,e)}}function Mr(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){na(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){na(t,t.return,e)}}function Nr(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ot(t,n)}catch(t){na(e,e.return,t)}}}function Pr(e,t,n){n.props=Fn(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){na(e,t,n)}}function Fr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=Za(e.stateNode);break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){na(e,t,n)}}function Ir(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){na(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){na(e,t,n)}else n.current=null}function Lr(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Go(r,t,n,e)}catch(t){na(e,e.return,t)}}function Rr(e,t,n){try{Ko(e.stateNode,e.type,n,t,e)}catch(t){na(e,e.return,t)}}function zr(e){return e.tag===5||e.tag===3||(Ks?e.tag===26:!1)||(oc?e.tag===27&&dc(e.type):!1)||e.tag===4}function Br(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zr(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(oc&&e.tag===27&&dc(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Jo(n,e,t):Uo(n,e);else if(r!==4&&(oc&&r===27&&dc(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Vr(e,t,n),e=e.sibling;e!==null;)Vr(e,t,n),e=e.sibling}function Hr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?qo(n,e,t):Ho(n,e);else if(r!==4&&(oc&&r===27&&dc(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Hr(e,t,n),e=e.sibling;e!==null;)Hr(e,t,n),e=e.sibling}function Ur(e,t,n){e=e.containerInfo;try{ss(e,n)}catch(e){na(t,t.return,e)}}function Wr(e){var t=e.stateNode,n=e.memoizedProps;try{cc(e.type,n,t,e)}catch(t){na(e,e.return,t)}}function Gr(e,t){for(eo(e.containerInfo),pu=t;pu!==null;)if(e=pu,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,pu=t;else for(;pu!==null;){e=pu;var n=e.alternate;switch(t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t===null?null:t.events,t!==null))for(var i=0;i<t.length;i++){var a=t[i];a.ref.impl=a.nextImpl}break;case 11:case 15:break;case 1:if(t&1024&&n!==null){t=void 0,i=e,a=n.memoizedProps,n=n.memoizedState;var o=i.stateNode;try{var s=Fn(i.type,a);t=o.getSnapshotBeforeUpdate(s,n),o.__reactInternalSnapshotBeforeUpdate=t}catch(e){na(i,i.return,e)}}break;case 3:t&1024&&fo&&ns(e.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,pu=t;break}pu=e.return}}function Kr(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ii(e,n),r&4&&jr(5,n);break;case 1:if(ii(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){na(n,n.return,e)}else{var i=Fn(n.type,t.memoizedProps);t=t.memoizedState;
4129try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){na(n,n.return,e)}}r&64&&Nr(n),r&512&&Fr(n,n.return);break;case 3:if(ii(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=Za(n.child.stateNode);break;case 1:e=n.child.stateNode}try{ot(r,e)}catch(e){na(n,n.return,e)}}break;case 27:oc&&t===null&&r&4&&Wr(n);case 26:case 5:if(ii(e,n),t===null){if(r&4)Lr(n);else if(r&64){e=n.type,t=n.memoizedProps,i=n.stateNode;try{Ns(i,e,t,n)}catch(e){na(n,n.return,e)}}}r&512&&Fr(n,n.return);break;case 12:ii(e,n);break;case 31:ii(e,n),r&4&&Xr(e,n);break;case 13:ii(e,n),r&4&&Zr(e,n),r&64&&(r=n.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(n=oa.bind(null,n),ps(r,n))));break;case 22:if(r=n.memoizedState!==null||lu,!r){t=t!==null&&t.memoizedState!==null||uu,i=lu;var a=uu;lu=r,(uu=t)&&!a?oi(e,n,(n.subtreeFlags&8772)!=0):ii(e,n),lu=i,uu=a}break;case 30:break;default:ii(e,n)}}function qr(e){var t=e.alternate;t!==null&&(e.alternate=null,qr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jr(e,t,n){for(n=n.child;n!==null;)Yr(e,t,n),n=n.sibling}function Yr(e,t,n){if(Nc&&typeof Nc.onCommitFiberUnmount==`function`)try{Nc.onCommitFiberUnmount(Mc,n)}catch{}switch(n.tag){case 26:if(Ks){uu||Ir(n,t),Jr(e,t,n),n.memoizedState?Zs(n.memoizedState):n.stateNode&&ec(n.stateNode);break}case 27:if(oc){uu||Ir(n,t);var r=mu,i=hu;dc(n.type)&&(mu=n.stateNode,hu=!1),Jr(e,t,n),lc(n.stateNode),mu=r,hu=i;break}case 5:uu||Ir(n,t);case 6:if(fo){if(r=mu,i=hu,mu=null,Jr(e,t,n),mu=r,hu=i,mu!==null)if(hu)try{Xo(mu,n.stateNode)}catch(e){na(n,t,e)}else try{Yo(mu,n.stateNode)}catch(e){na(n,t,e)}}else Jr(e,t,n);break;case 18:fo&&mu!==null&&(hu?Bs(mu,n.stateNode):zs(mu,n.stateNode));break;case 4:fo?(r=mu,i=hu,mu=n.stateNode.containerInfo,hu=!0,Jr(e,t,n),mu=r,hu=i):(po&&Ur(n.stateNode,n,is()),Jr(e,t,n));break;case 0:case 11:case 14:case 15:Mr(2,n,t),uu||Mr(4,n,t),Jr(e,t,n);break;case 1:uu||(Ir(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Pr(n,t,r)),Jr(e,t,n);break;case 21:Jr(e,t,n);break;case 22:uu=(r=uu)||n.memoizedState!==null,Jr(e,t,n),uu=r;break;default:Jr(e,t,n)}}function Xr(e,t){if(mo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fs(e)}catch(e){na(t,t.return,e)}}}function Zr(e,t){if(mo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Is(e)}catch(e){na(t,t.return,e)}}function Qr(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fu),t;default:throw Error(r(435,e.tag))}}function $r(e,t){var n=Qr(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=sa.bind(null,e,t);t.then(r,r)}})}function ei(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t;if(fo){var c=s;e:for(;c!==null;){switch(c.tag){case 27:if(oc){if(dc(c.type)){mu=c.stateNode,hu=!1;break e}break}case 5:mu=c.stateNode,hu=!1;break e;case 3:case 4:mu=c.stateNode.containerInfo,hu=!0;break e}c=c.return}if(mu===null)throw Error(r(160));Yr(o,s,a),mu=null,hu=!1}else Yr(o,s,a);o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ti(t,e),t=t.sibling}function ti(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ei(t,e),ni(e),i&4&&(Mr(3,e,e.return),jr(3,e),Mr(5,e,e.return));break;case 1:ei(t,e),ni(e),i&512&&(uu||n===null||Ir(n,n.return)),i&64&&lu&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:if(Ks){var a=gu;if(ei(t,e),ni(e),i&512&&(uu||n===null||Ir(n,n.return)),i&4){i=n===null?null:n.memoizedState;var o=e.memoizedState;n===null?o===null?e.stateNode===null?e.stateNode=Qs(a,e.type,e.memoizedProps,e):$s(a,e.type,e.stateNode):e.stateNode=Xs(a,o,e.memoizedProps):i===o?o===null&&e.stateNode!==null&&Rr(e,e.memoizedProps,n.memoizedProps):(i===null?n.stateNode!==null&&ec(n.stateNode):Zs(i),o===null?$s(a,e.type,e.stateNode):Xs(a,o,e.memoizedProps))}break}
4129case 27:if(oc){ei(t,e),ni(e),i&512&&(uu||n===null||Ir(n,n.return)),n!==null&&i&4&&Rr(e,e.memoizedProps,n.memoizedProps);break}case 5:if(ei(t,e),ni(e),i&512&&(uu||n===null||Ir(n,n.return)),fo){if(e.flags&32){a=e.stateNode;try{Zo(a)}catch(t){na(e,e.return,t)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,Rr(e,a,n===null?a:n.memoizedProps)),i&1024&&(du=!0)}else po&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(ei(t,e),ni(e),i&4&&fo){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=n===null?i:n.memoizedProps,a=e.stateNode;try{Wo(a,n,i)}catch(t){na(e,e.return,t)}}break;case 3:if(Ks?(nc(),a=gu,gu=Js(t.containerInfo),ei(t,e),gu=a):ei(t,e),ni(e),i&4){if(fo&&mo&&n!==null&&n.memoizedState.isDehydrated)try{Ps(t.containerInfo)}catch(t){na(e,e.return,t)}if(po){i=t.containerInfo,n=t.pendingChildren;try{ss(i,n)}catch(t){na(e,e.return,t)}}}du&&(du=!1,ri(e));break;case 4:Ks?(n=gu,gu=Js(e.stateNode.containerInfo),ei(t,e),ni(e),gu=n):(ei(t,e),ni(e)),i&4&&po&&Ur(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:ei(t,e),ni(e);break;case 31:ei(t,e),ni(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,$r(e,i)));break;case 13:ei(t,e),ni(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Gu=Tc()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,$r(e,i)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=lu,l=uu;if(lu=c||a,uu=l||s,ei(t,e),uu=l,lu=c,ni(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||lu||uu||ai(e)),fo)){e:if(n=null,fo)for(t=e;;){if(t.tag===5||Ks&&t.tag===26){if(n===null){s=n=t;try{o=s.stateNode,a?Qo(o):es(s.stateNode,s.memoizedProps)}catch(e){na(s,s.return,e)}}}else if(t.tag===6){if(n===null){s=t;try{var u=s.stateNode;a?$o(u):ts(u,s.memoizedProps)}catch(e){na(s,s.return,e)}}}else if(t.tag===18){if(n===null){s=t;try{var d=s.stateNode;a?Vs(d):Hs(s.stateNode)}catch(e){na(s,s.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,$r(e,n))));break;case 19:ei(t,e),ni(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,$r(e,i)));break;case 30:break;case 21:break;default:ei(t,e),ni(e)}}function ni(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(zr(i)){n=i;break}i=i.return}if(fo){if(n==null)throw Error(r(160));switch(n.tag){case 27:if(oc){var a=n.stateNode;Hr(e,Br(e),a);break}case 5:var o=n.stateNode;n.flags&32&&(Zo(o),n.flags&=-33),Hr(e,Br(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Vr(e,Br(e),s);break;default:throw Error(r(161))}}}catch(t){na(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ri(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ri(t),t.tag===5&&t.flags&1024&&jo(t.stateNode),e=e.sibling}}function ii(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Kr(e,t.alternate,t),t=t.sibling}function ai(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Mr(4,t,t.return),ai(t);break;case 1:Ir(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Pr(t,t.return,n),ai(t);break;case 27:oc&&lc(t.stateNode);case 26:case 5:Ir(t,t.return),ai(t);break;case 22:t.memoizedState===null&&ai(t);break;case 30:ai(t);break;default:ai(t)}e=e.sibling}}function oi(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:oi(i,a,n),jr(4,a);break;case 1:if(oi(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){na(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)at(c[i],s)}catch(e){na(r,r.return,e)}}n&&o&64&&Nr(a),Fr(a,a.return);break;case 27:oc&&Wr(a);case 26:case 5:oi(i,a,n),n&&r===null&&o&4&&Lr(a),Fr(a,a.return);break;case 12:oi(i,a,n);break;case 31:oi(i,a,n),n&&o&4&&Xr(i,a);break;case 13:oi(i,a,n),n&&o&4&&Zr(i,a);break;case 22:a.memoizedState===null&&oi(i,a,n),Fr(a,a.return);break;case 30:break;default:oi(i,a,n)}t=t.sibling}}function si(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ye(n))}function ci(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ye(e))}function li(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ui(e,t,n,r),t=t.sibling}function ui(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:li(e,t,n,r),i&2048&&jr(9,t);break;case 1:li(e,t,n,r);break;case 3:li(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ye(e)));break;case 12:if(i&2048){li(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){na(t,t.return,e)}}else li(e,t,n,r);break;case 31:li(e,t,n,r);break;case 13:li(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?li(e,t,n,r):(a._visibility|=2,di(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?li(e,t,n,r):fi(e,t),i&2048&&si(o,t);break;case 24:li(e,t,n,r),i&2048&&ci(t.alternate,t);break;default:li(e,t,n,r)}}function di(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:di(a,o,s,c,i),jr(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,di(a,o,s,c,i)):u._visibility&2?di(a,o,s,c,i):fi(a,o),i&&l&2048&&si(o.alternate,o);break;case 24:di(a,o,s,c,i),i&&l&2048&&ci(o.alternate,o);break;default:di(a,o,s,c,i)}t=t.sibling}}function fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:fi(n,r),i&2048&&si(r.alternate,r);break;case 24:fi(n,r),i&2048&&ci(r.alternate,r);break;default:fi(n,r)}t=t.sibling}}function G(e,t,n){if(e.subtreeFlags&_u)for(e=e.child;e!==null;)pi(e,t,n),e=e.sibling}function pi(e,t,n){switch(e.tag){case 26:if(G(e,t,n),e.flags&_u)if(e.memoizedState!==null)ac(n,gu,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||wo(i,e))&&Do(n,r,i,e)}break;case 5:G(e,t,n),e.flags&_u&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||wo(i,e))&&Do(n,r,i,e));break;case 3:case 4:Ks?(r=gu,gu=Js(e.stateNode.containerInfo),G(e,t,n),gu=r):G(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=_u,_u=16777216,G(e,t,n),_u=r):G(e,t,n));break;default:G(e,t,n)}}function mi(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,vi(r,e)}mi(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gi(e),e=e.sibling}function gi(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&Mr(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_i(e)):hi(e);break;default:hi(e)}}function _i(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,vi(r,e)}mi(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Mr(8,t,t.return),_i(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,_i(t));break;default:_i(t)}e=e.sibling}}function vi(e,t){for(;pu!==null;){var n=pu;switch(n.tag){case 0:case 11:case 15:Mr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ye(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,pu=r;else e:for(n=e;pu!==null;){r=pu;var i=r.sibling,a=r.return;if(qr(r),r===n){pu=null;break e}if(i!==null){i.return=a,pu=i;break e}pu=a}}}function yi(e){var t=ho(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(r(364));return t}if(e=Fo(e),e===null)throw Error(r(362));return e.stateNode.current}function bi(e,t){var n=e.tag;switch(t.$$typeof){case yu:if(e.type===t.value)return!0;break;case bu:e:{for(t=t.value,e=[e,0],n=0;n<e.length;){var i=e[n++],a=i.tag,o=e[n++],s=t[o];if(a!==5&&a!==26&&a!==27||!Ro(i)){for(;s!=null&&bi(i,s);)o++,s=t[o];if(o===t.length){t=!0;break e}else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}t=!1}return t;case xu:if((n===5||n===26||n===27)&&zo(e.stateNode,t.value))return!0;break;case Cu:if((n===5||n===6||n===26||n===27)&&(e=Lo(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case Su:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(r(365))}return!1}function xi(e){switch(e.$$typeof){case yu:return`<`+(u(e.value)||`Unknown`)+`>`;case bu:return`:has(`+(xi(e)||``)+`)`;case xu:return`[role="`+e.value+`"]`;case Cu:return`"`+e.value+`"`;case Su:return`[data-testname="`+e.value+`"]`;default:throw Error(r(365))}}function Si(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!Ro(i)){for(;s!=null&&bi(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function Ci(e,t){if(!Po)throw Error(r(363));e=yi(e),e=Si(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++],a=i.tag;if(a===5||a===26||a===27)Ro(i)||t.push(i.stateNode);else for(i=i.child;i!==null;)e.push(i),i=i.sibling}return t}function wi(){return Eu&2&&ku!==0?ku&-ku:qa.T===null?yo():ke()}function Ti(){if(Bu===0)if(!(ku&536870912)||nl){var e=yc;yc<<=1,!(yc&3932160)&&(yc=262144),Bu=e}else Bu=536870912;return e=Vl.current,e!==null&&(e.flags|=32),Bu}function Ei(e,t,n){(e===Du&&(Au===2||Au===9)||e.cancelPendingCommit!==null)&&(Ni(e,0),Ai(e,ku,Bu,!1)),x(e,n),(!(Eu&2)||e!==Du)&&(e===Du&&(!(Eu&2)&&(Ru|=n),Iu===4&&Ai(e,ku,Bu,!1)),xe(e))}function Di(e,t,n){if(Eu&6)throw Error(r(327));var i=!n&&(t&127)==0&&(t&e.expiredLanes)===0||_(e,t),a=i?Vi(e,t):zi(e,t,!0),o=i;do{if(a===0){Nu&&!i&&Ai(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ki(n)){a=zi(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;e:{var c=e;a=Hu;var l=mo&&c.current.memoizedState.isDehydrated;if(l&&(Ni(c,s).flags|=256),s=zi(c,s,!1),s!==2){if(Pu&&!l){c.errorRecoveryDisabledLanes|=o,Ru|=o,a=4;break e}o=Uu,Uu=a,o!==null&&(Uu===null?Uu=o:Uu.push.apply(Uu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ni(e,0),Ai(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ai(i,t,Bu,!Mu);break e;case 2:Uu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=Gu+300-Tc(),10<a)){if(Ai(i,t,Bu,!Mu),g(i,0,!0)!==0)break e;$u=t,i.timeoutHandle=so(Oi.bind(null,i,n,Uu,Ju,Wu,t,Bu,Ru,Vu,Mu,o,`Throttled`,-0,0),a);break e}Oi(i,n,Uu,Ju,Wu,t,Bu,Ru,Vu,Mu,o,null,-0,0)}}break}while(!0);xe(e)}function Oi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=lo,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d=Eo(),pi(t,a,d);
vendor: 4,511 bytes, line 4129
4129var m=(a&62914560)===a?Gu-Tc():(a&4194048)===a?Ku-Tc():0;if(m=Oo(d,m),m!==null){$u=a,e.cancelPendingCommit=m(Ji.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Ai(e,a,o,!l);return}}Ji(e,t,a,n,r,i,o,s,c)}function ki(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pc(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ai(e,t,n,r){t&=~zu,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-hc(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&C(e,n,t)}function ji(){return Eu&6?!0:(Se(0,!1),!1)}function Mi(){if(Ou!==null){if(Au===0)var e=Ou.return;else e=Ou,cl=sl=null,wt(e),Al=null,jl=0,e=Ou;for(;e!==null;)Ar(e.alternate,e),e=e.return;Ou=null}}function Ni(e,t){var n=e.timeoutHandle;n!==lo&&(e.timeoutHandle=lo,co(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),$u=0,Mi(),Du=e,Ou=n=da(e.current,null),ku=t,Au=0,ju=null,Mu=!1,Nu=_(e,t),Pu=!1,Vu=Bu=zu=Ru=Lu=Iu=0,Uu=Hu=null,Wu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-hc(r),a=1<<i;t|=e[i],r&=~a}return Fu=t,Ge(),n}function Pi(e,t){Gl=null,qa.H=tu,t===Tl||t===Dl?(t=W(),Au=3):t===El?(t=W(),Au=4):Au=t===ou?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ju=t,Ou===null&&(Iu=1,In(e,ee(t,e.current)))}function Fi(){var e=Vl.current;return e===null?!0:(ku&4194048)===ku?Hl===null:(ku&62914560)===ku||ku&536870912?e===Hl:!1}function Ii(){var e=qa.H;return qa.H=tu,e===null?tu:e}function Li(){var e=qa.A;return qa.A=vu,e}function Ri(){Iu=4,Mu||(ku&4194048)!==ku&&Vl.current!==null||(Nu=!0),!(Lu&134217727)&&!(Ru&134217727)||Du===null||Ai(Du,ku,Bu,!1)}function zi(e,t,n){var r=Eu;Eu|=2;var i=Ii(),a=Li();(Du!==e||ku!==t)&&(Ju=null,Ni(e,t)),t=!1;var o=Iu;e:do try{if(Au!==0&&Ou!==null){var s=Ou,c=ju;switch(Au){case 8:Mi(),o=6;break e;case 3:case 2:case 9:case 6:Vl.current===null&&(t=!0);var l=Au;if(Au=0,ju=null,Gi(e,s,c,l),n&&Nu){o=0;break e}break;default:l=Au,Au=0,ju=null,Gi(e,s,c,l)}}Bi(),o=Iu;break}catch(t){Pi(e,t)}while(!0);return t&&e.shellSuspendCounter++,cl=sl=null,Eu=r,qa.H=i,qa.A=a,Ou===null&&(Du=null,ku=0,Ge()),o}function Bi(){for(;Ou!==null;)Ui(Ou)}function Vi(e,t){var n=Eu;Eu|=2;var i=Ii(),a=Li();Du!==e||ku!==t?(Ju=null,qu=Tc()+500,Ni(e,t)):Nu=_(e,t);e:do try{if(Au!==0&&Ou!==null){t=Ou;var o=ju;n:switch(Au){case 1:Au=0,ju=null,Gi(e,t,o,1);break;case 2:case 9:if(Le(o)){Au=0,ju=null,Wi(t);break}t=function(){Au!==2&&Au!==9||Du!==e||(Au=7),xe(e)},o.then(t,t);break e;case 3:Au=7;break e;case 4:Au=5;break e;case 7:Le(o)?(Au=0,ju=null,Wi(t)):(Au=0,ju=null,Gi(e,t,o,7));break;case 5:var s=null;switch(Ou.tag){case 26:s=Ou.memoizedState;case 5:case 27:var c=Ou,l=c.type,u=c.pendingProps;if(s?ic(s):To(c.stateNode,l,u)){Au=0,ju=null;var d=c.sibling;if(d!==null)Ou=d;else{var f=c.return;f===null?Ou=null:(Ou=f,Ki(f))}break n}}Au=0,ju=null,Gi(e,t,o,5);break;case 6:Au=0,ju=null,Gi(e,t,o,6);break;case 8:Mi(),Iu=6;break e;default:throw Error(r(462))}}Hi();break}catch(t){Pi(e,t)}while(!0);return cl=sl=null,qa.H=i,qa.A=a,Eu=n,Ou===null?(Du=null,ku=0,Ge(),Iu):0}function Hi(){for(;Ou!==null&&!Cc();)Ui(Ou)}function Ui(e){var t=hr(e.alternate,e,Fu);e.memoizedProps=e.pendingProps,t===null?Ki(e):Ou=t}function Wi(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=er(n,t,t.pendingProps,t.type,void 0,ku);break;case 11:t=er(n,t,t.pendingProps,t.type.render,t.ref,ku);break;case 5:wt(t);default:Ar(n,t),t=Ou=fa(t,Fu),t=hr(n,t,Fu)}e.memoizedProps=e.pendingProps,t===null?Ki(e):Ou=t}function Gi(e,t,n,r){cl=sl=null,wt(t),Al=null,jl=0;var i=t.return;try{if(Vn(e,i,t,n,ku)){Iu=1,In(e,ee(n,e.current)),Ou=null;return}}catch(t){if(i!==null)throw Ou=i,t;Iu=1,In(e,ee(n,e.current)),Ou=null;return}t.flags&32768?(nl||r===1?e=!0:Nu||ku&536870912?e=!1:(Mu=e=!0,(r===2||r===9||r===3||r===6)&&(r=Vl.current,r!==null&&r.tag===13&&(r.flags|=16384))),qi(t,e)):Ki(t)}function Ki(e){var t=e;do{if(t.flags&32768){qi(t,Mu);return}e=t.return;var n=Or(t.alternate,t,Fu);if(n!==null){Ou=n;return}if(t=t.sibling,t!==null){Ou=t;return}Ou=t=e}while(t!==null);Iu===0&&(Iu=5)}function qi(e,t){do{var n=kr(e.alternate,e);if(n!==null){n.flags&=32767,Ou=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
4129ons=null),!t&&(e=e.sibling,e!==null)){Ou=e;return}Ou=e=n}while(e!==null);Iu=6,Ou=null}function Ji(e,t,n,i,a,o,s,c,l){e.cancelPendingCommit=null;do $i();while(Xu!==0);if(Eu&6)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Il,S(e,n,o,s,c,l),e===Du&&(Ou=Du=null,ku=0),Qu=t,Zu=e,$u=n,ed=o,td=a,nd=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ca(Oc,function(){return ea(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!=0,t.subtreeFlags&13878||i){i=qa.T,qa.T=null,a=vo(),_o(2),s=Eu,Eu|=4;try{Gr(e,t,n)}finally{Eu=s,_o(a),qa.T=i}}Xu=1,Yi(),Xi(),Zi()}}function Yi(){if(Xu===1){Xu=0;var e=Zu,t=Qu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=qa.T,qa.T=null;var r=vo();_o(2);var i=Eu;Eu|=4;try{ti(t,e),to(e.containerInfo)}finally{Eu=i,_o(r),qa.T=n}}e.current=t,Xu=2}}function Xi(){if(Xu===2){Xu=0;var e=Zu,t=Qu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=qa.T,qa.T=null;var r=vo();_o(2);var i=Eu;Eu|=4;try{Kr(e,t.alternate,t)}finally{Eu=i,_o(r),qa.T=n}}Xu=3}}function Zi(){if(Xu===4||Xu===3){Xu=0,wc();var e=Zu,t=Qu,n=$u,r=nd;t.subtreeFlags&10256||t.flags&10256?Xu=5:(Xu=0,Qu=Zu=null,Qi(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Yu=null),O(n),t=t.stateNode,Nc&&typeof Nc.onCommitFiberRoot==`function`)try{Nc.onCommitFiberRoot(Mc,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=qa.T,i=vo(),_o(2),qa.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{qa.T=t,_o(i)}}$u&3&&$i(),xe(e),i=e.pendingLanes,n&261930&&i&42?e===id?rd++:(rd=0,id=e):rd=0,mo&&Rs(),Se(0,!1)}}function Qi(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ye(t)))}function $i(){return Yi(),Xi(),Zi(),ea()}function ea(){if(Xu!==5)return!1;var e=Zu,t=ed;ed=0;var n=O($u),i=32>n?32:n;n=qa.T;var a=vo();try{_o(i),qa.T=null,i=td,td=null;var o=Zu,s=$u;if(Xu=0,Qu=Zu=null,$u=0,Eu&6)throw Error(r(331));var c=Eu;if(Eu|=4,gi(o.current),ui(o,o.current,s,i),Eu=c,Se(0,!1),Nc&&typeof Nc.onPostCommitFiberRoot==`function`)try{Nc.onPostCommitFiberRoot(Mc,o)}catch{}return!0}finally{_o(a),qa.T=n,Qi(e,t)}}function ta(e,t,n){t=ee(n,t),t=Rn(e.stateNode,t,2),e=et(e,t,2),e!==null&&(x(e,2),xe(e))}function na(e,t,n){if(e.tag===3)ta(e,e,n);else for(;t!==null;){if(t.tag===3){ta(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Yu===null||!Yu.has(r))){e=ee(n,e),n=zn(2),r=et(t,n,2),r!==null&&(Bn(n,r,t,e),x(r,2),xe(r));break}}t=t.return}}function ra(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Pu=!0,i.add(n),e=ia.bind(null,e,t,n),t.then(e,e))}function ia(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Du===e&&(ku&n)===n&&(Iu===4||Iu===3&&(ku&62914560)===ku&&300>Tc()-Gu?!(Eu&2)&&Ni(e,0):zu|=n,Vu===ku&&(Vu=0)),xe(e)}
4129function aa(e,t){t===0&&(t=y()),e=Je(e,t),e!==null&&(x(e,t),xe(e))}function oa(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),aa(e,n)}function sa(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),aa(e,n)}function ca(e,t){return xc(e,t)}function la(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,n){var r=e.alternate;return r===null?(r=t(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function fa(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pa(e,n,i,a,o,s){var c=0;if(a=e,typeof e==`function`)ua(e)&&(c=1);else if(typeof e==`string`)c=Ks&&oc?qs(e,i,Xc.current)?26:uc(e)?27:5:Ks?qs(e,i,Xc.current)?26:5:oc&&uc(e)?27:5;else e:switch(e){case Ha:return e=t(31,i,n,o),e.elementType=Ha,e.lanes=s,e;case Ma:return ma(i.children,o,s,n);case Na:c=8,o|=24;break;case Pa:return e=t(12,i,n,o|2),e.elementType=Pa,e.lanes=s,e;case Ra:return e=t(13,i,n,o),e.elementType=Ra,e.lanes=s,e;case za:return e=t(19,i,n,o),e.elementType=za,e.lanes=s,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ia:c=10;break e;case Fa:c=9;break e;case La:c=11;break e;case Ba:c=14;break e;case Va:c=16,a=null;break e}c=29,i=Error(r(130,e===null?`null`:typeof e,``)),a=null}return n=t(c,i,n,o),n.elementType=e,n.type=a,n.lanes=s,n}function ma(e,n,r,i){return e=t(7,e,i,n),e.lanes=r,e}function ha(e,n,r){return e=t(6,e,null,n),e.lanes=r,e}function ga(e){var n=t(18,null,null,0);return n.stateNode=e,n}function _a(e,n,r){return n=t(4,e.children===null?[]:e.children,e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function va(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lo,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=b(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b(0),this.hiddenUpdates=b(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ya(e,n,r,i,a,o,s,c,l,u,d,f){return e=new va(e,n,r,s,l,u,d,f,c),n=1,o===!0&&(n|=24),o=t(3,null,null,n),e.current=o,o.stateNode=e,n=ve(),n.refCount++,e.pooledCache=n,n.refCount++,o.memoizedState={element:i,isDehydrated:r,cache:n},Ze(o),e}function ba(e){return e?(e=mc,e):mc}function xa(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=o(t),e=e===null?null:s(e),e===null?null:Za(e.stateNode)}function Sa(e,t,n,r,i,a){i=ba(i),r.context===null?r.context=i:r.pendingContext=i,r=$e(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=et(e,r,t),n!==null&&(Ei(n,e,t),tt(n,e,t))}function Ca(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wa(e,t){Ca(e,t),(e=e.alternate)&&Ca(e,t)}var Ta={},Ea=w.default,Da=LA.default,Oa=Object.assign,ka=Symbol.for(`react.element`),Aa=Symbol.for(`react.transitional.element`),ja=Symbol.for(`react.portal`),Ma=Symbol.for(`react.fragment`),Na=Symbol.for(`react.strict_mode`),Pa=Symbol.for(`react.profiler`),Fa=Symbol.for(`react.consumer`),Ia=Symbol.for(`react.context`),La=Symbol.for(`react.forward_ref`),Ra=Symbol.for(`react.suspense`),za=Symbol.for(`react.suspense_list`),Ba=Symbol.for(`react.memo`),Va=Symbol.for(`react.lazy`),Ha=Symbol.for(`react.activity`),Ua=Symbol.for(`react.memo_cache_sentinel`),Wa=Symbol.iterator,Ga=Symbol.for(`react.client.reference`),Ka=Array.isArray,qa=Ea.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ja=e.rendererVersion,Ya=e.rendererPackageName,Xa=e.extraDevToolsConfig,Za=e.getPublicInstance,Qa=e.getRootHostContext,$a=e.getChildHostContext,eo=e.prepareForCommit,to=e.resetAfterCommit,no=e.createInstance;e.cloneMutableInstance;var ro=e.appendInitialChild,io=e.finalizeInitialChildren,ao=e.shouldSetTextContent,oo=e.createTextInstance;e.cloneMutableTextInstance;var so=e.scheduleTimeout,co=e.cancelTimeout,lo=e.noTimeout,uo=e.isPrimaryRenderer;e.warnsIfNotActing;var fo=e.supportsMutation,po=e.supportsPersistence,mo=e.supportsHydration,ho=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var go=e.preparePortalMount;
4129e.prepareScopeUpdate,e.getInstanceFromScope;var _o=e.setCurrentUpdatePriority,vo=e.getCurrentUpdatePriority,yo=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var bo=e.shouldAttemptEagerTransition,xo=e.detachDeletedInstance;e.requestPostPaintCallback;var So=e.maySuspendCommit,Co=e.maySuspendCommitOnUpdate,wo=e.maySuspendCommitInSyncRender,To=e.preloadInstance,Eo=e.startSuspendingCommit,Do=e.suspendInstance;e.suspendOnActiveViewTransition;var Oo=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var ko=e.NotPendingTransition,Ao=e.HostTransitionContext,jo=e.resetFormInstance;e.bindToConsole;var Mo=e.supportsMicrotasks,No=e.scheduleMicrotask,Po=e.supportsTestSelectors,Fo=e.findFiberRoot,Io=e.getBoundingRect,Lo=e.getTextContent,Ro=e.isHiddenSubtree,zo=e.matchAccessibilityRole,Bo=e.setFocusIfFocusable,Vo=e.setupIntersectionObserver,Ho=e.appendChild,Uo=e.appendChildToContainer,Wo=e.commitTextUpdate,Go=e.commitMount,Ko=e.commitUpdate,qo=e.insertBefore,Jo=e.insertInContainerBefore,Yo=e.removeChild,Xo=e.removeChildFromContainer,Zo=e.resetTextContent,Qo=e.hideInstance,$o=e.hideTextInstance,es=e.unhideInstance,ts=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var ns=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var rs=e.cloneInstance,is=e.createContainerChildSet,as=e.appendChildToContainerChildSet,os=e.finalizeContainerChildren,ss=e.replaceContainerChildren,cs=e.cloneHiddenInstance,ls=e.cloneHiddenTextInstance,us=e.isSuspenseInstancePending,ds=e.isSuspenseInstanceFallback,fs=e.getSuspenseInstanceFallbackErrorDetails,ps=e.registerSuspenseInstanceRetry,ms=e.canHydrateFormStateMarker,hs=e.isFormStateMarkerMatching,gs=e.getNextHydratableSibling,_s=e.getNextHydratableSiblingAfterSingleton,vs=e.getFirstHydratableChild,ys=e.getFirstHydratableChildWithinContainer,bs=e.getFirstHydratableChildWithinActivityInstance,xs=e.getFirstHydratableChildWithinSuspenseInstance,Ss=e.getFirstHydratableChildWithinSingleton,Cs=e.canHydrateInstance,ws=e.canHydrateTextInstance,Ts=e.canHydrateActivityInstance,Es=e.canHydrateSuspenseInstance,Ds=e.hydrateInstance,Os=e.hydrateTextInstance,ks=e.hydrateActivityInstance,As=e.hydrateSuspenseInstance,js=e.getNextHydratableInstanceAfterActivityInstance,Ms=e.getNextHydratableInstanceAfterSuspenseInstance,Ns=e.commitHydratedInstance,Ps=e.commitHydratedContainer,Fs=e.commitHydratedActivityInstance,Is=e.commitHydratedSuspenseInstance,Ls=e.finalizeHydratedChildren,Rs=e.flushHydrationEvents;e.clearActivityBoundary;var zs=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Bs=e.clearSuspenseBoundaryFromContainer,Vs=e.hideDehydratedBoundary,Hs=e.unhideDehydratedBoundary,Us=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var Ws=e.validateHydratableInstance,Gs=e.validateHydratableTextInstance,Ks=e.supportsResources,qs=e.isHostHoistableType,Js=e.getHoistableRoot,Ys=e.getResource,Xs=e.acquireResource,Zs=e.releaseResource,Qs=e.hydrateHoistable,$s=e.mountHoistable,ec=e.unmountHoistable,tc=e.createHoistableInstance,nc=e.prepareToCommitHoistables,rc=e.mayResourceSuspendCommit,ic=e.preloadResource,ac=e.suspendResource,oc=e.supportsSingletons,sc=e.resolveSingletonInstance,cc=e.acquireSingletonInstance,lc=e.releaseSingletonInstance,uc=e.isHostSingletonType,dc=e.isSingletonScope,fc=[],pc=-1,mc={},hc=Math.clz32?Math.clz32:m,gc=Math.log,_c=Math.LN2,vc=256,yc=262144,bc=4194304,xc=Da.unstable_scheduleCallback,Sc=Da.unstable_cancelCallback,Cc=Da.unstable_shouldYield,wc=Da.unstable_requestPaint,Tc=Da.unstable_now,Ec=Da.unstable_ImmediatePriority,Dc=Da.unstable_UserBlockingPriority,Oc=Da.unstable_NormalPriority,kc=Da.unstable_IdlePriority,Ac=Da.log,jc=Da.unstable_setDisableYieldValue,Mc=null,Nc=null,Pc=typeof Object.is==`function`?Object.is:A,Fc=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ic=Object.prototype.hasOwnProperty,Lc,Rc,zc=!1,Bc=new WeakMap,Vc=[],Hc=0,Uc=null,Wc=0,Gc=[],Kc=0,qc=null,Jc=1,Yc=``,Xc=d(null),Zc=d(null),Qc=d(null),$c=d(null),el=null,tl=null,nl=!1,rl=null,il=!1,al=Error(r(519)),ol=d(null),sl=null,cl=null,ll=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ul=Da.unstable_scheduleCallback,dl=Da.unstable_NormalPriority,fl={$$typeof:Ia,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},pl=null,ml=null,hl=!1,gl=!1,_l=!1,vl=0,yl=null,bl=0,xl=0,Sl=null,Cl=qa.S;qa.S=function(e,t){Ku=Tc(),typeof t==`object`&&t&&typeof t.then==`function`&&Ae(e,t),Cl!==null&&Cl(e,t)};var wl=d(null),Tl=Error(r(460)),El=Error(r(474)),Dl=Error(r(542)),Ol={then:function(){}},kl=null,Al=null,jl=0,Ml=We(!0),Nl=We(!1),Pl=[],Fl=0,Il=0,Ll=!1,Rl=!1,zl=d(null),Bl=d(0),Vl=d(null),Hl=null,Ul=d(0),Wl=0,Gl=null,Kl=null,ql=null,Jl=!1,Yl=!1,Xl=!1,Zl=0,Ql=0,$l=null,eu=0,tu={readContext:H,use:kt,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt,useHostTransitionStatus:gt,useFormState:gt,useActionState:gt,useOptimistic:gt,useMemoCache:gt,useCacheRefresh:gt};tu.useEffectEvent=gt;var nu={readContext:H,use:kt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:H,useEffect:on,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),rn(4194308,4,fn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rn(4194308,4,e,t)},useInsertionEffect:function(e,t){rn(4,2,e,t)},useMemo:function(e,t){var n=Tt();t=t===void 0?null:t;var r=e();if(Xl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Tt();if(n!==void 0){var i=n(t);if(Xl){k(!0);try{n(t)}finally{k(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Tn.bind(null,Gl,e),[r.memoizedState,e]}
4129,useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Vt(e);var t=e.queue,n=En.bind(null,Gl,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:mn,useDeferredValue:function(e,t){return _n(Tt(),e,t)},useTransition:function(){var e=Vt(!1);return e=yn.bind(null,Gl,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Gl,a=Tt();if(nl){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Du===null)throw Error(r(349));ku&127||It(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,on(Rt.bind(null,i,o,e),[e]),i.flags|=2048,tn(9,{destroy:void 0},Lt.bind(null,i,o,n,t),null),n},useId:function(){var e=Tt(),t=Du.identifierPrefix;if(nl){var n=Yc,r=Jc;n=(r&~(1<<32-hc(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zl++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=eu++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xn,useFormState:Xt,useActionState:Xt,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=On.bind(null,Gl,!0,n),n.dispatch=t,[e,t]},useMemoCache:At,useCacheRefresh:function(){return Tt().memoizedState=wn.bind(null,Gl)},useEffectEvent:function(e){var t=Tt(),n={impl:e};return t.memoizedState=n,function(){if(Eu&2)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ru={readContext:H,use:kt,useCallback:hn,useContext:H,useEffect:sn,useImperativeHandle:pn,useInsertionEffect:un,useLayoutEffect:dn,useMemo:gn,useReducer:Mt,useRef:nn,useState:function(){return Mt(jt)},useDebugValue:mn,useDeferredValue:function(e,t){return vn(Et(),Kl.memoizedState,e,t)},useTransition:function(){var e=Mt(jt)[0],t=Et().memoizedState;return[typeof e==`boolean`?e:Ot(e),t]},useSyncExternalStore:Ft,useId:Sn,useHostTransitionStatus:xn,useFormState:Zt,useActionState:Zt,useOptimistic:function(e,t){return Ht(Et(),Kl,e,t)},useMemoCache:At,useCacheRefresh:Cn};ru.useEffectEvent=ln;var iu={readContext:H,use:kt,useCallback:hn,useContext:H,useEffect:sn,useImperativeHandle:pn,useInsertionEffect:un,useLayoutEffect:dn,useMemo:gn,useReducer:Pt,useRef:nn,useState:function(){return Pt(jt)},useDebugValue:mn,useDeferredValue:function(e,t){var n=Et();return Kl===null?_n(n,e,t):vn(n,Kl.memoizedState,e,t)},useTransition:function(){var e=Pt(jt)[0],t=Et().memoizedState;return[typeof e==`boolean`?e:Ot(e),t]},useSyncExternalStore:Ft,useId:Sn,useHostTransitionStatus:xn,useFormState:en,useActionState:en,useOptimistic:function(e,t){var n=Et();return Kl===null?(n.baseState=e,[e,n.queue.dispatch]):Ht(n,Kl,e,t)},useMemoCache:At,useCacheRefresh:Cn};iu.useEffectEvent=ln;var au={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wi(),i=$e(r);i.payload=t,n!=null&&(i.callback=n),t=et(e,i,r),t!==null&&(Ei(t,e,r),tt(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wi(),i=$e(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=et(e,i,r),t!==null&&(Ei(t,e,r),tt(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wi(),r=$e(n);r.tag=2,t!=null&&(r.callback=t),t=et(e,r,n),t!==null&&(Ei(t,e,n),tt(t,e,n))}},ou=Error(r(461)),su=!1,cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},lu=!1,uu=!1,du=!1,fu=typeof WeakSet==`function`?WeakSet:Set,pu=null,mu=null,hu=!1,gu=null,_u=8192,vu={getCacheForType:function(e){var t=H(fl),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return H(fl).controller.signal}},yu=0,bu=1,xu=2,Su=3,Cu=4;if(typeof Symbol==`function`&&Symbol.for){var wu=Symbol.for;yu=wu(`selector.component`),bu=wu(`selector.has_pseudo_class`),xu=wu(`selector.role`),Su=wu(`selector.test_id`),Cu=wu(`selector.text`)}var Tu=typeof WeakMap==`function`?WeakMap:Map,Eu=0,Du=null,Ou=null,ku=0,Au=0,ju=null,Mu=!1,Nu=!1,Pu=!1,Fu=0,Iu=0,Lu=0,Ru=0,zu=0,Bu=0,Vu=0,Hu=null,Uu=null,Wu=!1,Gu=0,Ku=0,qu=1/0,Ju=null,Yu=null,Xu=0,Zu=null,Qu=null,$u=0,ed=0,td=null,nd=null,rd=0,id=null;return Ta.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=Je(e,67108864);t!==null&&Ei(t,e,67108864),wa(e,67108864)}},Ta.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=wi();t=D(t);var n=Je(e,t);n!==null&&Ei(n,e,t),wa(e,t)}},Ta.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=h(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-hc(t);e.entanglements[1]|=n,t&=~n}xe(e),!(Eu&6)&&(qu=Tc()+500,Se(0,!1))}}break;case 31:case 13:t=Je(e,2),t!==null&&Ei(t,e,2),ji(),wa(e,2)}},Ta.batchedUpdates=function(e,t){return e(t)},Ta.createComponentSelector=function(e){return{$$typeof:yu,value:e}},Ta.createContainer=function(e,t,n,r,i,a,o,s,c,l){return ya(e,t,!1,null,n,r,a,null,o,s,c,l)},Ta.createHasPseudoClassSelector=function(e){return{$$typeof:bu,value:e}},Ta.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=ya(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=ba(null),n=e.current,r=wi(),r=D(r),i=$e(r),i.callback=t??null,et(n,i,r),t=r,e.current.lanes=t,x(e,t),xe(e),e},Ta.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ja,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},Ta.createRoleSelector=function(e){return{$$typeof:xu,value:e}},Ta.createTestNameSelector=function(e){return{$$typeof:Su,value:e}},Ta.createTextSelector=function(e){return{$$typeof:Cu,value:e}},Ta.defaultOnCaughtError=function(e){console.error(e)},Ta.defaultOnRecoverableError=function(e){Fc(e)},Ta.defaultOnUncaughtError=function(e){Fc(e)},Ta.deferredUpdates=function(e){var t=qa.T,n=vo();try{return _o(32),qa.T=null,e()}finally{_o(n),qa.T=t}},Ta.discreteUpdates=function(e,t,n,r,i){var a=qa.T,o=vo();try{return _o(2),qa.T=null,e(t,n,r,i)}finally{_o(o),qa.T=a,Eu===0&&(qu=Tc()+500)}},Ta.findAllNodes=Ci,Ta.findBoundingRects=function(e,t){if(!Po)throw Error(r(363));t=Ci(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Io(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var i=n.x,a=i+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(i>=u&&o>=f&&a<=d&&s<=p){e.splice(t,1);break}else if(i!==u||n.width!==l.width||p<o||f>s){if(!(o!==f||n.height!==l.height||d<i||u>a)){u>i&&(l.width+=u-i,l.x=i),d<a&&(l.width=a-u),e.splice(t,1);break}}else{f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}}}return e},Ta.findHostInstance=xa,Ta.findHostInstanceWithNoPortals=function(e){return e=o(e),e=e===null?null:c(e),e===null?null:Za(e.stateNode)},Ta.findHostInstanceWithWarning=function(e){return xa(e)},Ta.flushPassiveEffects=$i,Ta.flushSyncFromReconciler=function(e){var t=Eu;Eu|=1;var n=qa.T,r=vo();try{if(_o(2),qa.T=null,e)return e()}finally{_o(r),qa.T=n,Eu=t,!(Eu&6)&&Se(0,!1)}},Ta.flushSyncWork=ji,Ta.focusWithin=function(e,t){if(!Po)throw Error(r(363));for(e=yi(e),t=Si(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++],i=n.tag;if(!Ro(n)){if((i===5||i===26||i===27)&&Bo(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},Ta.getFindAllNodesFailureDescription=function(e,t){if(!Po)throw Error(r(363));var n=0,i=[];e=[yi(e),0];for(var a=0;a<e.length;){var o=e[a++],s=o.tag,c=e[a++],l=t[c];if((s!==5&&s!==26&&s!==27||!Ro(o))&&(bi(o,l)&&(i.push(xi(l)),c++,c>n&&(n=c)),c<t.length))for(o=o.child;o!==null;)e.push(o,c),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(xi(t[n]));return`findAllNodes was able to match part of the selector:
4130  `+(i.join(` > `)+`
4131
4132No matching component was found for:
4133  `)+e.join(` > `)}return null},Ta.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 27:case 5:return Za(e.child.stateNode);default:return e.child.stateNode}},Ta.injectIntoDevTools=function(){var e={bundleType:0,version:Ja,rendererPackageName:Ya,currentDispatcherRef:qa,reconcilerVersion:`19.2.0`};if(Xa!==null&&(e.rendererConfig=Xa),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;
4133if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Mc=t.inject(e),Nc=t}catch{}e=!!t.checkDCE}}return e},Ta.isAlreadyRendering=function(){return(Eu&6)!=0},Ta.observeVisibleRects=function(e,t,n,i){if(!Po)throw Error(r(363));e=Ci(e,t);var a=Vo(e,n,i).disconnect;return{disconnect:function(){a()}}},Ta.shouldError=function(){return null},Ta.shouldSuspend=function(){return!1},Ta.startHostTransition=function(e,t,i,a){if(e.tag!==5)throw Error(r(476));var o=bn(e).queue;yn(e,o,t,ko,i===null?n:function(){var t=bn(e);return t.next===null&&(t=e.alternate.memoizedState),Dn(e,t.next.queue,{},wi()),i(a)})},Ta.updateContainer=function(e,t,n,r){var i=t.current,a=wi();return Sa(i,a,e,t,n,r),a},Ta.updateContainerSync=function(e,t,n,r){return Sa(t.current,2,e,t,n,r),2},Ta},e.exports.default=e.exports,Object.defineProperty(e.exports,`__esModule`,{value:!0})}(Kj)),Kj.exports}({exports:{}}).exports;var Yj;function Xj(){return Yj||(Yj=1,Gj.exports=Jj()),Gj.exports}var Zj=Wj(Xj());function Qj(e){let t=Zj(e);return t.injectIntoDevTools(),t}var $j=0,eM={},tM=/^three(?=[A-Z])/,nM=e=>`${e[0].toUpperCase()}${e.slice(1)}`,rM=0,iM=e=>typeof e==`function`;function aM(e){if(iM(e)){let t=`${rM++}`;return eM[t]=e,t}else Object.assign(eM,e)}function oM(e,t){let n=nM(e),r=eM[n];if(e!==`primitive`&&!r)throw Error(`R3F: ${n} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(e===`primitive`&&!t.object)throw Error(`R3F: Primitives without 'object' are invalid!`);if(t.args!==void 0&&!Array.isArray(t.args))throw Error(`R3F: The args prop must be an array!`)}function sM(e,t,n){var r;return e=nM(e)in eM?e:e.replace(tM,``),oM(e,t),e===`primitive`&&(r=t.object)!=null&&r.__r3f&&delete t.object.__r3f,lj(t.object,n,e,t)}function cM(e){if(!e.isHidden){var t;e.props.attach&&(t=e.parent)!=null&&t.object?pj(e.parent,e):Cj(e.object)&&(e.object.visible=!1),e.isHidden=!0,xj(e)}}function lM(e){if(e.isHidden){var t;e.props.attach&&(t=e.parent)!=null&&t.object?fj(e.parent,e):Cj(e.object)&&e.props.visible!==!1&&(e.object.visible=!0),e.isHidden=!1,xj(e)}}function uM(e,t,n){let r=t.root.getState();if(!(!e.parent&&e.object!==r.scene)){if(!t.object){let e=eM[nM(t.type)];t.object=t.props.object??new e(...t.props.args??[]),t.object.__r3f=t}if(bj(t.object,t.props),t.props.attach)fj(e,t);else if(Cj(t.object)&&Cj(e.object)){let r=e.object.children.indexOf(n?.object);if(n&&r!==-1){let n=e.object.children.indexOf(t.object);if(n!==-1){e.object.children.splice(n,1);let i=n<r?r-1:r;e.object.children.splice(i,0,t.object)}else t.object.parent=e.object,e.object.children.splice(r,0,t.object),t.object.dispatchEvent({type:`added`}),e.object.dispatchEvent({type:`childadded`,child:t.object})}else e.object.add(t.object)}for(let e of t.children)uM(t,e);xj(t)}}function dM(e,t){t&&(t.parent=e,e.children.push(t),uM(e,t))}function fM(e,t,n){if(!t||!n)return;t.parent=e;let r=e.children.indexOf(n);r===-1?e.children.push(t):e.children.splice(r,0,t),uM(e,t,n)}function pM(e){if(typeof e.dispose==`function`){let t=()=>{try{e.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT<`u`?t():(0,LA.unstable_scheduleCallback)(LA.unstable_IdlePriority,t)}}function mM(e,t,n){if(!t)return;t.parent=null;let r=e.children.indexOf(t);r!==-1&&e.children.splice(r,1),t.props.attach?pj(e,t):Cj(t.object)&&Cj(e.object)&&(e.object.remove(t.object),Dj(qA(t),t.object));let i=t.props.dispose!==null&&n!==!1;for(let e=t.children.length-1;e>=0;e--){let n=t.children[e];mM(t,n,i)}t.children.length=0,delete t.object.__r3f,i&&t.type!==`primitive`&&t.object.type!==`Scene`&&pM(t.object),n===void 0&&xj(t)}function hM(e,t){for(let n of[e,e.alternate])if(n!==null)if(typeof n.ref==`function`){n.refCleanup==null||n.refCleanup();let e=n.ref(t);typeof e==`function`&&(n.refCleanup=e)}else n.ref&&(n.ref.current=t)}var gM=[];function _M(){for(let[e]of gM){let t=e.parent;if(t){e.props.attach?pj(t,e):Cj(e.object)&&Cj(t.object)&&t.object.remove(e.object);for(let t of e.children)t.props.attach?pj(e,t):Cj(t.object)&&Cj(e.object)&&e.object.remove(t.object)}e.isHidden&&lM(e),e.object.__r3f&&delete e.object.__r3f,e.type!==`primitive`&&pM(e.object)}for(let[e,t,n]of gM){e.props=t;let r=e.parent;if(r){let t=eM[nM(e.type)],i=e.object;e.object=e.props.object??new t(...e.props.args??[]),e.object.__r3f=e,hM(n,e.object),Ej(qA(e),i,e.object),bj(e.object,e.props),e.props.attach?fj(r,e):Cj(e.object)&&Cj(r.object)&&r.object.add(e.object);for(let t of e.children)t.props.attach?fj(e,t):Cj(t.object)&&Cj(e.object)&&e.object.add(t.object);xj(e)}}gM.length=0}var vM=()=>{},yM={},bM=$j,xM=0,SM=4,CM=Qj({isPrimaryRenderer:!1,warnsIfNotActing:!1,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,createInstance:sM,removeChild:mM,appendChild:dM,appendInitialChild:dM,insertBefore:fM,appendChildToContainer(e,t){let n=e.getState().scene.__r3f;!t||!n||dM(n,t)},removeChildFromContainer(e,t){let n=e.getState().scene.__r3f;!t||!n||mM(n,t)},insertInContainerBefore(e,t,n){let r=e.getState().scene.__r3f;!t||!n||!r||fM(r,t,n)},getRootHostContext:()=>yM,getChildHostContext:()=>yM,commitUpdate(e,t,n,r,i){var a;oM(t,r);let o=!1;if(e.type===`primitive`&&n.object!==r.object?o=!0:r.args?.length===n.args?.length?(a=r.args)!=null&&a.some((e,t)=>e!==n.args?.[t])&&(o=!0):o=!0,o)gM.push([e,{...r},i]);else{let t=_j(e,r);Object.keys(t).length&&(Object.assign(e.props,t),bj(e.object,t))}(i.sibling===null||(i.flags&SM)===xM)&&_M()},finalizeInitialChildren:()=>!1,commitMount(){},getPublicInstance:e=>e?.object,prepareForCommit:()=>null,preparePortalMount:e=>lj(e.getState().scene,e,``,{}),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance:cM,unhideInstance:lM,createTextInstance:vM,hideTextInstance:vM,unhideTextInstance:vM,scheduleTimeout:typeof setTimeout==`function`?setTimeout:void 0,cancelTimeout:typeof clearTimeout==`function`?clearTimeout:void 0,noTimeout:-1,getInstanceFromNode:()=>null,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){}
4133,prepareScopeUpdate(){},getInstanceFromScope:()=>null,shouldAttemptEagerTransition:()=>!1,trackSchedulerEvent:()=>{},resolveEventType:()=>null,resolveEventTimeStamp:()=>-1.1,requestPostPaintCallback(){},maySuspendCommit:()=>!1,preloadInstance:()=>!0,suspendInstance(){},waitForCommitToBeReady:()=>null,NotPendingTransition:null,HostTransitionContext:w.createContext(null),setCurrentUpdatePriority(e){bM=e},getCurrentUpdatePriority(){return bM},resolveUpdatePriority(){if(bM!==$j)return bM;switch(typeof window<`u`&&window.event?.type){case`click`:case`contextmenu`:case`dblclick`:case`pointercancel`:case`pointerdown`:case`pointerup`:return Hj;case`pointermove`:case`pointerout`:case`pointerover`:case`pointerenter`:case`pointerleave`:case`wheel`:return Bj;default:return Vj}},resetFormInstance(){},rendererPackageName:`@react-three/fiber`,rendererVersion:Uj.version,applyViewTransitionName(e,t,n){},restoreViewTransitionName(e,t){},cancelViewTransitionName(e,t,n){},cancelRootViewTransitionName(e){},restoreRootViewTransitionName(e){},InstanceMeasurement:null,measureInstance:e=>null,wasInstanceInViewport:e=>!0,hasInstanceChanged:(e,t)=>!1,hasInstanceAffectedParent:(e,t)=>!1,suspendOnActiveViewTransition(e,t){},startGestureTransition:()=>null,startViewTransition:()=>null,stopViewTransition(e){},createViewTransitionInstance:e=>null,getCurrentGestureOffset(e){throw Error(`startGestureTransition is not yet supported in react-three-fiber.`)},cloneMutableInstance(e,t){return e},cloneMutableTextInstance(e){return e},cloneRootViewTransitionContainer(e){throw Error(`Not implemented.`)},removeRootViewTransitionClone(e,t){throw Error(`Not implemented.`)},createFragmentInstance:e=>null,updateFragmentInstanceFiber(e,t){},commitNewChildToFragmentInstance(e,t){},deleteChildFromFragmentInstance(e,t){},measureClonedInstance:e=>null,maySuspendCommitOnUpdate:(e,t,n)=>!1,maySuspendCommitInSyncRender:(e,t)=>!1,startSuspendingCommit:()=>null,getSuspendedCommitReason:(e,t)=>null}),wM=new Map,TM={objects:`shallow`,strict:!1};function EM(e,t){if(!t&&typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement&&e.parentElement){let{width:t,height:n,top:r,left:i}=e.parentElement.getBoundingClientRect();return{width:t,height:n,top:r,left:i}}else if(!t&&typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas)return{width:e.width,height:e.height,top:0,left:0};return{width:0,height:0,top:0,left:0,...t}}function DM(e){let t=wM.get(e),n=t?.fiber,r=t?.store;t&&console.warn(`R3F.createRoot should only be called once!`);let i=typeof reportError==`function`?reportError:console.error,a=r||jj(WM,GM),o=n||CM.createContainer(a,zj,null,!1,null,``,i,i,i,null);t||wM.set(e,{fiber:o,store:a});let s,c,l=!1,u=null;return{async configure(t={}){let n;u=new Promise(e=>n=e);let{gl:r,size:i,scene:o,events:d,onCreated:f,shadows:p=!1,linear:m=!1,flat:h=!1,legacy:g=!1,orthographic:_=!1,frameloop:v=`always`,dpr:y=[1,2],performance:b,raycaster:x,camera:S,onPointerMissed:C}=t,w=a.getState(),T=w.gl;if(!w.gl){let t={canvas:e,powerPreference:`high-performance`,antialias:!0,alpha:!0},n=typeof r==`function`?await r(t):r;T=kj(n)?n:new vA({...t,...r}),w.set({gl:T})}let E=w.raycaster;E||w.set({raycaster:E=new $T});let{params:D,...O}=x||{};if(ij.equ(O,E,TM)||bj(E,{...O}),ij.equ(D,E.params,TM)||bj(E,{params:{...E.params,...D}}),!w.camera||w.camera===c&&!ij.equ(c,S,TM)){c=S;let e=S?.isCamera,t=e?S:_?new zw(0,0,0,0,.1,1e3):new Pw(75,0,.1,1e3);e||(t.position.z=5,S&&(bj(t,S),t.manual||(`aspect`in S||`left`in S||`right`in S||`bottom`in S||`top`in S)&&(t.manual=!0,t.updateProjectionMatrix())),!w.camera&&!(S!=null&&S.rotation)&&t.lookAt(0,0,0)),w.set({camera:t}),E.camera=t}if(!w.scene){let e;o!=null&&o.isScene?(e=o,lj(e,a,``,{})):(e=new Y_,lj(e,a,``,{}),o&&bj(e,o)),w.set({scene:e})}d&&!w.events.handlers&&w.set({events:d(a)});let k=EM(e,i);if(ij.equ(k,w.size,TM)||w.setSize(k.width,k.height,k.top,k.left),y&&w.viewport.dpr!==nj(y)&&w.setDpr(y),w.frameloop!==v&&w.setFrameloop(v),w.onPointerMissed||w.set({onPointerMissed:C}),b&&!ij.equ(b,w.performance,TM)&&w.set(e=>({performance:{...e.performance,...b}})),!w.xr){let e=(e,t)=>
4133{let n=a.getState();n.frameloop!==`never`&&GM(e,!0,n,t)},t=()=>{let t=a.getState();t.gl.xr.enabled=t.gl.xr.isPresenting,t.gl.xr.setAnimationLoop(t.gl.xr.isPresenting?e:null),t.gl.xr.isPresenting||WM(t)},n={connect(){let e=a.getState().gl;e.xr.addEventListener(`sessionstart`,t),e.xr.addEventListener(`sessionend`,t)},disconnect(){let e=a.getState().gl;e.xr.removeEventListener(`sessionstart`,t),e.xr.removeEventListener(`sessionend`,t)}};typeof T.xr?.addEventListener==`function`&&n.connect(),w.set({xr:n})}if(T.shadowMap){let e=T.shadowMap.enabled,t=T.shadowMap.type;if(T.shadowMap.enabled=!!p,ij.boo(p))T.shadowMap.type=2;else if(ij.str(p)){let e={basic:0,percentage:1,soft:2,variance:3};T.shadowMap.type=e[p]??2}else ij.obj(p)&&Object.assign(T.shadowMap,p);(e!==T.shadowMap.enabled||t!==T.shadowMap.type)&&(T.shadowMap.needsUpdate=!0)}return qg.enabled=!g,l||(T.outputColorSpace=m?wh:Ch,T.toneMapping=h?0:4),w.legacy!==g&&w.set(()=>({legacy:g})),w.linear!==m&&w.set(()=>({linear:m})),w.flat!==h&&w.set(()=>({flat:h})),r&&!ij.fun(r)&&!kj(r)&&!ij.equ(r,T,TM)&&bj(T,r),s=f,l=!0,n(),this},render(t){return!l&&!u&&this.configure(),u.then(()=>{CM.updateContainer((0,K.jsx)(OM,{store:a,children:t,onCreated:s,rootElement:e}),o,null,()=>void 0)}),a},unmount(){kM(e)}}}function OM({store:e,children:t,onCreated:n,rootElement:r}){return ZA(()=>{let t=e.getState();t.set(e=>({internal:{...e.internal,active:!0}})),n&&n(t),e.getState().events.connected||t.events.connect==null||t.events.connect(r)},[]),(0,K.jsx)(Aj.Provider,{value:e,children:t})}function kM(e,t){let n=wM.get(e),r=n?.fiber;if(r){let i=n?.store.getState();i&&(i.internal.active=!1),CM.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var n,r,a,o;i.events.disconnect==null||i.events.disconnect(),(n=i.gl)==null||(r=n.renderLists)==null||r.dispose==null||r.dispose(),(a=i.gl)==null||a.forceContextLoss==null||a.forceContextLoss(),(o=i.gl)!=null&&o.xr&&i.xr.disconnect(),oj(i.scene),wM.delete(e),t&&t(e)}catch{}},500)})}}var AM=new Set,jM=new Set,MM=new Set;function NM(e,t){if(e.size)for(let{callback:n}of e.values())n(t)}function PM(e,t){switch(e){case`before`:return NM(AM,t);case`after`:return NM(jM,t);case`tail`:return NM(MM,t)}}var FM,IM;function LM(e,t,n){let r=t.clock.getDelta();t.frameloop===`never`&&typeof e==`number`&&(r=e-t.clock.elapsedTime,t.clock.oldTime=t.clock.elapsedTime,t.clock.elapsedTime=e),FM=t.internal.subscribers;for(let e=0;e<FM.length;e++)IM=FM[e],IM.ref.current(IM.store.getState(),r,n);return!t.internal.priority&&t.gl.render&&t.gl.render(t.scene,t.camera),t.internal.frames=Math.max(0,t.internal.frames-1),t.frameloop===`always`?1:t.internal.frames}var RM=!1,zM=!1,BM,VM,HM;function UM(e){VM=requestAnimationFrame(UM),RM=!0,BM=0,PM(`before`,e),zM=!0;for(let n of wM.values()){var t;HM=n.store.getState(),HM.internal.active&&(HM.frameloop===`always`||HM.internal.frames>0)&&!((t=HM.gl.xr)!=null&&t.isPresenting)&&(BM+=LM(e,HM))}if(zM=!1,PM(`after`,e),BM===0)return PM(`tail`,e),RM=!1,cancelAnimationFrame(VM)}function WM(e,t=1){var n;if(!e)return wM.forEach(e=>WM(e.store.getState(),t));(n=e.gl.xr)!=null&&n.isPresenting||!e.internal.active||e.frameloop===`never`||(t>1?e.internal.frames=Math.min(60,e.internal.frames+t):zM?e.internal.frames=2:e.internal.frames=1,RM||(RM=!0,requestAnimationFrame(UM)))}function GM(e,t=!0,n,r){if(t&&PM(`before`,e),n)LM(e,n,r);else for(let t of wM.values())LM(e,t.store.getState());t&&PM(`after`,e)}var KM={onClick:[`click`,!1],onContextMenu:[`contextmenu`,!1],onDoubleClick:[`dblclick`,!1],onWheel:[`wheel`,!0],onPointerDown:[`pointerdown`,!0],onPointerUp:[`pointerup`,!0],onPointerLeave:[`pointerleave`,!0],onPointerMove:[`pointermove`,!0],onPointerCancel:[`pointercancel`,!0],onLostPointerCapture:[`lostpointercapture`,!0]};function qM(e){let{handlePointer:t}=Oj(e);return{priority:1,enabled:!0,compute(e,t,n){t.pointer.set(e.offsetX/t.size.width*2-1,-(e.offsetY/t.size.height)*2+1),t.raycaster.setFromCamera(t.pointer,t.camera)},connected:void 0,handlers:Object.keys(KM).reduce((e,n)=>({...e,[n]:t(n)}),{}),update:()=>{var t;let{events:n,internal:r}=e.getState();(t=r.lastEvent)!=null&&t.current&&n.handlers&&n.handlers.onPointerMove(r.lastEvent.current)},connect:t=>
4133{let{set:n,events:r}=e.getState();if(r.disconnect==null||r.disconnect(),n(e=>({events:{...e.events,connected:t}})),r.handlers)for(let e in r.handlers){let n=r.handlers[e],[i,a]=KM[e];t.addEventListener(i,n,{passive:a})}},disconnect:()=>{let{set:t,events:n}=e.getState();if(n.connected){if(n.handlers)for(let e in n.handlers){let t=n.handlers[e],[r]=KM[e];n.connected.removeEventListener(r,t)}t(e=>({events:{...e.events,connected:void 0}}))}}}}function JM(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function YM({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){let i=n||(typeof window>`u`?class{}:window.ResizeObserver);if(!i)throw Error(`This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills`);let[a,o]=(0,w.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=(0,w.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a,orientationHandler:null}),c=e?typeof e==`number`?e:e.scroll:null,l=e?typeof e==`number`?e:e.resize:null,u=(0,w.useRef)(!1);(0,w.useEffect)(()=>(u.current=!0,()=>void(u.current=!1)));let[d,f,p]=(0,w.useMemo)(()=>{let e=()=>{if(!s.current.element)return;let{left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:i,bottom:a,right:c,x:l,y:d};s.current.element instanceof HTMLElement&&r&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),u.current&&!eN(s.current.lastBounds,f)&&o(s.current.lastBounds=f)};return[e,l?JM(e,l):e,c?JM(e,c):e]},[o,r,c,l]);function m(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(e=>e.removeEventListener(`scroll`,p,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&(`orientation`in screen&&`removeEventListener`in screen.orientation?screen.orientation.removeEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.removeEventListener(`orientationchange`,s.current.orientationHandler))}function h(){s.current.element&&(s.current.resizeObserver=new i(p),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(e=>e.addEventListener(`scroll`,p,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{p()},`orientation`in screen&&`addEventListener`in screen.orientation?screen.orientation.addEventListener(`change`,s.current.orientationHandler):`onorientationchange`in window&&window.addEventListener(`orientationchange`,s.current.orientationHandler))}return ZM(p,!!t),XM(f),(0,w.useEffect)(()=>{m(),h()},[t,p,f]),(0,w.useEffect)(()=>m,[]),[e=>{!e||e===s.current.element||(m(),s.current.element=e,s.current.scrollContainers=QM(e),h())},a,d]}function XM(e){(0,w.useEffect)(()=>{let t=e;return window.addEventListener(`resize`,t),()=>void window.removeEventListener(`resize`,t)},[e])}function ZM(e,t){(0,w.useEffect)(()=>{if(t){let t=e;return window.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>void window.removeEventListener(`scroll`,t,!0)}},[e,t])}function QM(e){let t=[];if(!e||e===document.body)return t;let{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(e=>e===`auto`||e===`scroll`)&&t.push(e),[...t,...QM(e.parentElement)]}var $M=[`x`,`y`,`top`,`bottom`,`left`,`right`,`width`,`height`],eN=(e,t)=>$M.every(n=>e[n]===t[n]);function tN({ref:e,children:t,fallback:n,resize:r,style:i,gl:a,events:o=qM,eventSource:s,eventPrefix:c,shadows:l,linear:u,flat:d,legacy:f,orthographic:p,frameloop:m,dpr:h,performance:g,raycaster:_,camera:v,scene:y,onPointerMissed:b,onCreated:x,...S}){w.useMemo(()=>aM(tD),[]);let C=$A(),[T,E]=YM({scroll:!0,debounce:{scroll:50,resize:0},...r}),D=w.useRef(null),O=w.useRef(null);w.useImperativeHandle(e,()=>D.current);let k=QA(b),[A,j]=w.useState(!1),[M,N]=w.useState(!1);if(A)throw A;if(M)throw M;let P=w.useRef(null);return ZA(()=>{let e=D.current;if(E.width>0&&E.height>0&&e){P.current||=DM(e);async function n(){await P.current.configure({gl:a,scene:y,events:o,shadows:l,linear:u,flat:d,legacy:f,orthographic:p,frameloop:m,dpr:h,performance:g,raycaster:_,camera:v,size:E,onPointerMissed:(...e)=>
4133k.current==null?void 0:k.current(...e),onCreated:e=>{e.events.connect==null||e.events.connect(s?YA(s)?s.current:s:O.current),c&&e.setEvents({compute:(e,t)=>{let n=e[c+`X`],r=e[c+`Y`];t.pointer.set(n/t.size.width*2-1,-(r/t.size.height)*2+1),t.raycaster.setFromCamera(t.pointer,t.camera)}}),x?.(e)}}),P.current.render((0,K.jsx)(C,{children:(0,K.jsx)(tj,{set:N,children:(0,K.jsx)(w.Suspense,{fallback:(0,K.jsx)(ej,{set:j}),children:t??null})})}))}n()}}),w.useEffect(()=>{let e=D.current;if(e)return()=>kM(e)},[]),(0,K.jsx)(`div`,{ref:O,style:{position:`relative`,width:`100%`,height:`100%`,overflow:`hidden`,pointerEvents:s?`none`:`auto`,...i},...S,children:(0,K.jsx)(`div`,{ref:T,style:{width:`100%`,height:`100%`},children:(0,K.jsx)(`canvas`,{ref:D,style:{display:`block`},children:n})})})}function nN(e){return(0,K.jsx)(VA,{children:(0,K.jsx)(tN,{...e})})}var rN=parseInt(`184`.replace(/\D+/g,``));function iN(e,t){if(t===0)return console.warn(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles.`),e;if(t===2||t===1){let n=e.getIndex();if(n===null){let t=[],r=e.getAttribute(`position`);if(r!==void 0){for(let e=0;e<r.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}else return console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.`),e}let r=n.count-2,i=[];if(n)if(t===2)for(let e=1;e<=r;e++)i.push(n.getX(0)),i.push(n.getX(e)),i.push(n.getX(e+1));else for(let e=0;e<r;e++)e%2==0?(i.push(n.getX(e)),i.push(n.getX(e+1)),i.push(n.getX(e+2))):(i.push(n.getX(e+2)),i.push(n.getX(e+1)),i.push(n.getX(e)));i.length/3!==r&&console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.`);let a=e.clone();return a.setIndex(i),a.clearGroups(),a}else return console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:`,t),e}function aN(e){if(typeof TextDecoder<`u`)return new TextDecoder().decode(e);let t=``;for(let n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch{return t}}var oN=`srgb`,sN=`srgb-linear`,cN=3001,lN=3e3,uN=class extends uw{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new gN(e)}),this.register(function(e){return new _N(e)}),this.register(function(e){return new EN(e)}),this.register(function(e){return new DN(e)}),this.register(function(e){return new ON(e)}),this.register(function(e){return new yN(e)}),this.register(function(e){return new bN(e)}),this.register(function(e){return new xN(e)}),this.register(function(e){return new SN(e)}),this.register(function(e){return new hN(e)}),this.register(function(e){return new CN(e)}),this.register(function(e){return new vN(e)}),this.register(function(e){return new TN(e)}),this.register(function(e){return new wN(e)}),this.register(function(e){return new pN(e)}),this.register(function(e){return new kN(e)}),this.register(function(e){return new AN(e)})}load(e,t,n,r){let i=this,a;if(this.resourcePath!==``)a=this.resourcePath;else if(this.path!==``){let t=qw.extractUrlBase(e);a=qw.resolveURL(t,this.path)}else a=qw.extractUrlBase(e);this.manager.itemStart(e);let o=function(t){r?r(t):console.error(t),i.manager.itemError(e),i.manager.itemEnd(e)},s=new pw(this.manager);s.setPath(this.path),s.setResponseType(`arraybuffer`),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(n){try{i.parse(n,a,function(n){t(n),i.manager.itemEnd(e)},o)}catch(e){o(e)}},n,o)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw Error(`THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".`)}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,r){let i,a={},o={};if(typeof e==`string`)i=JSON.parse(e);else if(e instanceof ArrayBuffer)if(aN(new Uint8Array(e.slice(0,4)))===jN){try{a[fN.KHR_BINARY_GLTF]=new PN(e)}catch(e){r&&r(e);return}i=JSON.parse(a[fN.KHR_BINARY_GLTF].content)}else i=JSON.parse(aN(new Uint8Array(e)));else i=e;if(i.asset===void 0||i.asset.version[0]<2){r&&r(Error(`THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.`));return}let s=new oP(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});s.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e<this.pluginCallbacks.length;e++){let t=this.pluginCallbacks[e](s);t.name||console.error(`THREE.GLTFLoader: Invalid plugin found: missing name`),o[t.name]=t,a[t.name]=!0}if(i.extensionsUsed)for(let e=0;e<i.extensionsUsed.length;++e){let t=i.extensionsUsed[e],n=i.extensionsRequired||[];
vendor: 12,894 bytes, line 4133
4133switch(t){case fN.KHR_MATERIALS_UNLIT:a[t]=new mN;break;case fN.KHR_DRACO_MESH_COMPRESSION:a[t]=new FN(i,this.dracoLoader);break;case fN.KHR_TEXTURE_TRANSFORM:a[t]=new IN;break;case fN.KHR_MESH_QUANTIZATION:a[t]=new LN;break;default:n.indexOf(t)>=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}s.setExtensions(a),s.setPlugins(o),s.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function dN(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}var fN={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},pN=class{constructor(e){this.parser=e,this.name=fN.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n<r;n++){let r=t[n];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){let t=this.parser,n=`light:`+e,r=t.cache.get(n);if(r)return r;let i=t.json,a=((i.extensions&&i.extensions[this.name]||{}).lights||[])[e],o,s=new Z(16777215);a.color!==void 0&&s.setRGB(a.color[0],a.color[1],a.color[2],sN);let c=a.range===void 0?0:a.range;switch(a.type){case`directional`:o=new Vw(s),o.target.position.set(0,0,-1),o.add(o.target);break;case`point`:o=new Rw(s),o.distance=c;break;case`spot`:o=new Iw(s),o.distance=c,a.spot=a.spot||{},a.spot.innerConeAngle=a.spot.innerConeAngle===void 0?0:a.spot.innerConeAngle,a.spot.outerConeAngle=a.spot.outerConeAngle===void 0?Math.PI/4:a.spot.outerConeAngle,o.angle=a.spot.outerConeAngle,o.penumbra=1-a.spot.innerConeAngle/a.spot.outerConeAngle,o.target.position.set(0,0,-1),o.add(o.target);break;default:throw Error(`THREE.GLTFLoader: Unexpected light type: `+a.type)}return o.position.set(0,0,0),o.decay=2,QN(o,a),a.intensity!==void 0&&(o.intensity=a.intensity),o.name=t.createUniqueName(a.name||`light_`+e),r=Promise.resolve(o),t.cache.add(n,r),r}getDependency(e,t){if(e===`light`)return this._loadLight(t)}createNodeAttachment(e){let t=this,n=this.parser,r=n.json.nodes[e],i=(r.extensions&&r.extensions[this.name]||{}).light;return i===void 0?null:this._loadLight(i).then(function(e){return n._getNodeRef(t.cache,i,e)})}},mN=class{constructor(){this.name=fN.KHR_MATERIALS_UNLIT}getMaterialType(){return My}extendParams(e,t,n){let r=[];e.color=new Z(1,1,1),e.opacity=1;let i=t.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){let t=i.baseColorFactor;e.color.setRGB(t[0],t[1],t[2],sN),e.opacity=t[3]}i.baseColorTexture!==void 0&&r.push(n.assignTexture(e,`map`,i.baseColorTexture,oN))}return Promise.all(r)}},hN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name].emissiveStrength;return r!==void 0&&(t.emissiveIntensity=r),Promise.resolve()}},gN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];if(a.clearcoatFactor!==void 0&&(t.clearcoat=a.clearcoatFactor),a.clearcoatTexture!==void 0&&i.push(n.assignTexture(t,`clearcoatMap`,a.clearcoatTexture)),a.clearcoatRoughnessFactor!==void 0&&(t.clearcoatRoughness=a.clearcoatRoughnessFactor),a.clearcoatRoughnessTexture!==void 0&&i.push(n.assignTexture(t,`clearcoatRoughnessMap`,a.clearcoatRoughnessTexture)),a.clearcoatNormalTexture!==void 0&&(i.push(n.assignTexture(t,`clearcoatNormalMap`,a.clearcoatNormalTexture)),a.clearcoatNormalTexture.scale!==void 0)){let e=a.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new Y(e,e)}return Promise.all(i)}},_N=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_DISPERSION}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name];return t.dispersion=r.dispersion===void 0?0:r.dispersion,Promise.resolve()}},vN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];return a.iridescenceFactor!==void 0&&(t.iridescence=a.iridescenceFactor),a.iridescenceTexture!==void 0&&i.push(n.assignTexture(t,`iridescenceMap`,a.iridescenceTexture)),a.iridescenceIor!==void 0&&(t.iridescenceIOR=a.iridescenceIor),t.iridescenceThicknessRange===void 0&&(t.iridescenceThicknessRange=[100,400]),a.iridescenceThicknessMinimum!==void 0&&(t.iridescenceThicknessRange[0]=a.iridescenceThicknessMinimum),a.iridescenceThicknessMaximum!==void 0&&(t.iridescenceThicknessRange[1]=a.iridescenceThicknessMaximum),a.iridescenceThicknessTexture!==void 0&&i.push(n.assignTexture(t,`iridescenceThicknessMap`,a.iridescenceThicknessTexture)),Promise.all(i)}},yN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_SHEEN}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[];t.sheenColor=new Z(0,0,0),t.sheenRoughness=0,t.sheen=1;let a=r.extensions[this.name];if(a.sheenColorFactor!==void 0){let e=a.sheenColorFactor;t.sheenColor.setRGB(e[0],e[1],e[2],sN)}return a.sheenRoughnessFactor!==void 0&&(t.sheenRoughness=a.sheenRoughnessFactor),a.sheenColorTexture!==void 0&&i.push(n.assignTexture(t,`sheenColorMap`,a.sheenColorTexture,oN)),a.sheenRoughnessTexture!==void 0&&i.push(n.assignTexture(t,`sheenRoughnessMap`,a.sheenRoughnessTexture)),Promise.all(i)}},bN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];return a.transmissionFactor!==void 0&&(t.transmission=a.transmissionFactor),a.transmissionTexture!==void 0&&i.push(n.assignTexture(t,`transmissionMap`,a.transmissionTexture)),Promise.all(i)}},xN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_VOLUME}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];t.thickness=a.thicknessFactor===void 0?0:a.thicknessFactor,a.thicknessTexture!==void 0&&i.push(n.assignTexture(t,`thicknessMap`,a.thicknessTexture)),t.attenuationDistance=a.attenuationDistance||1/0;let o=a.attenuationColor||[1,1,1];return t.attenuationColor=new Z().setRGB(o[0],o[1],o[2],sN),Promise.all(i)}},SN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_IOR}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();let r=n.extensions[this.name];return t.ior=r.ior===void 0?1.5:r.ior,Promise.resolve()}},CN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_SPECULAR}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];t.specularIntensity=a.specularFactor===void 0?1:a.specularFactor,a.specularTexture!==void 0&&i.push(n.assignTexture(t,`specularIntensityMap`,a.specularTexture));let o=a.specularColorFactor||[1,1,1];return t.specularColor=new Z().setRGB(o[0],o[1],o[2],sN),a.specularColorTexture!==void 0&&i.push(n.assignTexture(t,`specularColorMap`,a.specularColorTexture,oN)),Promise.all(i)}},wN=class{constructor(e){this.parser=e,this.name=fN.EXT_MATERIALS_BUMP}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];return t.bumpScale=a.bumpFactor===void 0?1:a.bumpFactor,a.bumpTexture!==void 0&&i.push(n.assignTexture(t,`bumpMap`,a.bumpTexture)),Promise.all(i)}},TN=class{constructor(e){this.parser=e,this.name=fN.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){let t=this.parser.json.materials[e];return!t.extensions||!t.extensions[this.name]?null:OC}extendMaterialParams(e,t){let n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();let i=[],a=r.extensions[this.name];return a.anisotropyStrength!==void 0&&(t.anisotropy=a.anisotropyStrength),a.anisotropyRotation!==void 0&&(t.anisotropyRotation=a.anisotropyRotation),a.anisotropyTexture!==void 0&&i.push(n.assignTexture(t,`anisotropyMap`,a.anisotropyTexture)),Promise.all(i)}},EN=class{constructor(e){this.parser=e,this.name=fN.KHR_TEXTURE_BASISU}loadTexture(e){let t=this.parser,n=t.json,r=n.textures[e];if(!r.extensions||!r.extensions[this.name])return null;let i=r.extensions[this.name],a=t.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},DN=class{constructor(e){this.parser=e,this.name=fN.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,a.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw Error(`THREE.GLTFLoader: WebP required by asset but unsupported.`);return n.loadTexture(e)})}detectSupport(){return this.isSupported||=new Promise(function(e){let t=new Image;t.src=`data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA`,t.onload=t.onerror=function(){e(t.height===1)}}),this.isSupported}},ON=class{constructor(e){this.parser=e,this.name=fN.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return this.detectSupport().then(function(i){if(i)return n.loadTextureImage(e,a.source,s);if(r.extensionsRequired&&r.extensionsRequired.indexOf(t)>=0)throw Error(`THREE.GLTFLoader: AVIF required by asset but unsupported.`);return n.loadTexture(e)})}detectSupport(){return this.isSupported||=new Promise(function(e){let t=new Image;t.src=`data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
4133FDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=`,t.onload=t.onerror=function(){e(t.height===1)}}),this.isSupported}},kN=class{constructor(e){this.name=fN.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}else return null}},AN=class{constructor(e){this.name=fN.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==VN.TRIANGLES&&e.mode!==VN.TRIANGLE_STRIP&&e.mode!==VN.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new d_,n=new X,a=new zg,s=new X(1,1,1),c=new gb(e.geometry,e.material,r);for(let e=0;e<r;e++)o.TRANSLATION&&n.fromBufferAttribute(o.TRANSLATION,e),o.ROTATION&&a.fromBufferAttribute(o.ROTATION,e),o.SCALE&&s.fromBufferAttribute(o.SCALE,e),c.setMatrixAt(e,t.compose(n,a,s));for(let t in o)if(t===`_COLOR_0`){let e=o[t];c.instanceColor=new cb(e.array,e.itemSize,e.normalized)}else t!==`TRANSLATION`&&t!==`ROTATION`&&t!==`SCALE`&&e.geometry.setAttribute(t,o[t]);R_.prototype.copy.call(c,e),this.parser.assignFinalMaterial(c),i.push(c)}return t.isGroup?(t.clear(),t.add(...i),t):i[0]}))}},jN=`glTF`,MN=12,NN={JSON:1313821514,BIN:5130562},PN=class{constructor(e){this.name=fN.KHR_BINARY_GLTF,this.content=null,this.body=null;let t=new DataView(e,0,MN);if(this.header={magic:aN(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==jN)throw Error(`THREE.GLTFLoader: Unsupported glTF-Binary header.`);if(this.header.version<2)throw Error(`THREE.GLTFLoader: Legacy binary file detected.`);let n=this.header.length-MN,r=new DataView(e,MN),i=0;for(;i<n;){let t=r.getUint32(i,!0);i+=4;let n=r.getUint32(i,!0);if(i+=4,n===NN.JSON){let n=new Uint8Array(e,MN+i,t);this.content=aN(n)}else if(n===NN.BIN){let n=MN+i;this.body=e.slice(n,n+t)}i+=t}if(this.content===null)throw Error(`THREE.GLTFLoader: JSON content not found.`)}},FN=class{constructor(e,t){if(!t)throw Error(`THREE.GLTFLoader: No DRACOLoader instance provided.`);this.name=fN.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){let n=this.json,r=this.dracoLoader,i=e.extensions[this.name].bufferView,a=e.extensions[this.name].attributes,o={},s={},c={};for(let e in a){let t=KN[e]||e.toLowerCase();o[t]=a[e]}for(let t in e.attributes){let r=KN[t]||t.toLowerCase();if(a[t]!==void 0){let i=n.accessors[e.attributes[t]];c[r]=HN[i.componentType].name,s[r]=i.normalized===!0}}return t.getDependency(`bufferView`,i).then(function(e){return new Promise(function(t,n){r.decodeDracoFile(e,function(e){for(let t in e.attributes){let n=e.attributes[t],r=s[t];r!==void 0&&(n.normalized=r)}t(e)},o,c,sN,n)})})}},IN=class{constructor(){this.name=fN.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(t.texCoord===void 0||t.texCoord===e.channel)&&t.offset===void 0&&t.rotation===void 0&&t.scale===void 0?e:(e=e.clone(),t.texCoord!==void 0&&(e.channel=t.texCoord),t.offset!==void 0&&e.offset.fromArray(t.offset),t.rotation!==void 0&&(e.rotation=t.rotation),t.scale!==void 0&&e.repeat.fromArray(t.scale),e.needsUpdate=!0,e)}}
vendor: 5,530 bytes, line 4133
4133,LN=class{constructor(){this.name=fN.KHR_MESH_QUANTIZATION}},RN=class extends WC{constructor(e,t,n,r){super(e,t,n,r)}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r*3+r;for(let e=0;e!==r;e++)t[e]=n[i+e];return t}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=o*2,c=o*3,l=r-t,u=(n-t)/l,d=u*u,f=d*u,p=e*c,m=p-c,h=-2*f+3*d,g=f-d,_=1-h,v=g-d+u;for(let e=0;e!==o;e++){let t=a[m+e+o],n=a[m+e+s]*l,r=a[p+e+o],c=a[p+e]*l;i[e]=_*t+v*n+h*r+g*c}return i}},zN=new zg,BN=class extends RN{interpolate_(e,t,n,r){let i=super.interpolate_(e,t,n,r);return zN.fromArray(i).normalize().toArray(i),i}},VN={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},HN={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},UN={9728:Gp,9729:Xp,9984:Kp,9985:Zp,9986:Jp,9987:$p},WN={33071:Up,33648:Wp,10497:Hp},GN={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},KN={POSITION:`position`,NORMAL:`normal`,TANGENT:`tangent`,...rN>=152?{TEXCOORD_0:`uv`,TEXCOORD_1:`uv1`,TEXCOORD_2:`uv2`,TEXCOORD_3:`uv3`}:{TEXCOORD_0:`uv`,TEXCOORD_1:`uv2`},COLOR_0:`color`,WEIGHTS_0:`skinWeight`,JOINTS_0:`skinIndex`},qN={scale:`scale`,translation:`position`,rotation:`quaternion`,weights:`morphTargetInfluences`},JN={CUBICSPLINE:void 0,LINEAR:dh,STEP:uh},YN={OPAQUE:`OPAQUE`,MASK:`MASK`,BLEND:`BLEND`};function XN(e){return e.DefaultMaterial===void 0&&(e.DefaultMaterial=new DC({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:0})),e.DefaultMaterial}function ZN(e,t,n){for(let r in n.extensions)e[r]===void 0&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[r]=n.extensions[r])}function QN(e,t){t.extras!==void 0&&(typeof t.extras==`object`?Object.assign(e.userData,t.extras):console.warn(`THREE.GLTFLoader: Ignoring primitive type .extras, `+t.extras))}function $N(e,t,n){let r=!1,i=!1,a=!1;for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n.POSITION!==void 0&&(r=!0),n.NORMAL!==void 0&&(i=!0),n.COLOR_0!==void 0&&(a=!0),r&&i&&a)break}if(!r&&!i&&!a)return Promise.resolve(e);let o=[],s=[],c=[];for(let l=0,u=t.length;l<u;l++){let u=t[l];if(r){let t=u.POSITION===void 0?e.attributes.position:n.getDependency(`accessor`,u.POSITION);o.push(t)}if(i){let t=u.NORMAL===void 0?e.attributes.normal:n.getDependency(`accessor`,u.NORMAL);s.push(t)}if(a){let t=u.COLOR_0===void 0?e.attributes.color:n.getDependency(`accessor`,u.COLOR_0);c.push(t)}}return Promise.all([Promise.all(o),Promise.all(s),Promise.all(c)]).then(function(t){let n=t[0],o=t[1],s=t[2];return r&&(e.morphAttributes.position=n),i&&(e.morphAttributes.normal=o),a&&(e.morphAttributes.color=s),e.morphTargetsRelative=!0,e})}function eP(e,t){if(e.updateMorphTargets(),t.weights!==void 0)for(let n=0,r=t.weights.length;n<r;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){let n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,r=n.length;t<r;t++)e.morphTargetDictionary[n[t]]=t}else console.warn(`THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.`)}}function tP(e){let t,n=e.extensions&&e.extensions[fN.KHR_DRACO_MESH_COMPRESSION];if(t=n?`draco:`+n.bufferView+`:`+n.indices+`:`+nP(n.attributes):e.indices+`:`+nP(e.attributes)+`:`+e.mode,e.targets!==void 0)for(let n=0,r=e.targets.length;n<r;n++)t+=`:`+nP(e.targets[n]);return t}function nP(e){let t=``,n=Object.keys(e).sort();for(let r=0,i=n.length;r<i;r++)t+=n[r]+`:`+e[n[r]]+`;`;return t}function rP(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw Error(`THREE.GLTFLoader: Unsupported normalized accessor component type.`)}}function iP(e){return e.search(/\.jpe?g($|\?)/i)>0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:`image/png`}var aP=new d_,oP=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new dN,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=!1,i=-1;typeof navigator<`u`&&navigator.userAgent!==void 0&&(n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,r=navigator.userAgent.indexOf(`Firefox`)>-1,i=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>`u`||n||r&&i<98?this.textureLoader=new bw(this.options.manager):this.textureLoader=new nT(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new pw(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()}
vendor: 5,001 bytes, line 4133
4133)).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return ZN(i,a,r),QN(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n<r;n++){let r=t[n].joints;for(let t=0,n=r.length;t<n;t++)e[r[t]].isBone=!0}for(let t=0,r=e.length;t<r;t++){let r=e[t];r.mesh!==void 0&&(this._addNodeRef(this.meshCache,r.mesh),r.skin!==void 0&&(n[r.mesh].isSkinnedMesh=!0)),r.camera!==void 0&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(e,t){t!==void 0&&(e.refs[t]===void 0&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;let r=n.clone(),i=(e,t)=>{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+ e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){let r=e(t[n]);if(r)return r}return null}_invokeAll(e){let t=Object.values(this.plugins);t.unshift(this);let n=[];for(let r=0;r<t.length;r++){let i=e(t[r]);i&&n.push(i)}return n}getDependency(e,t){let n=e+`:`+t,r=this.cache.get(n);if(!r){switch(e){case`scene`:r=this.loadScene(t);break;case`node`:r=this._invokeOne(function(e){return e.loadNode&&e.loadNode(t)});break;case`mesh`:r=this._invokeOne(function(e){return e.loadMesh&&e.loadMesh(t)});break;case`accessor`:r=this.loadAccessor(t);break;case`bufferView`:r=this._invokeOne(function(e){return e.loadBufferView&&e.loadBufferView(t)});break;case`buffer`:r=this.loadBuffer(t);break;case`material`:r=this._invokeOne(function(e){return e.loadMaterial&&e.loadMaterial(t)});break;case`texture`:r=this._invokeOne(function(e){return e.loadTexture&&e.loadTexture(t)});break;case`skin`:r=this.loadSkin(t);break;case`animation`:r=this._invokeOne(function(e){return e.loadAnimation&&e.loadAnimation(t)});break;case`camera`:r=this.loadCamera(t);break;default:if(r=this._invokeOne(function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)}),!r)throw Error(`Unknown type: `+e);break}this.cache.add(n,r)}return r}getDependencies(e){let t=this.cache.get(e);if(!t){let n=this,r=this.json[e+(e===`mesh`?`es`:`s`)]||[];t=Promise.all(r.map(function(t,r){return n.getDependency(e,r)})),this.cache.add(e,t)}return t}loadBuffer(e){let t=this.json.buffers[e],n=this.fileLoader;if(t.type&&t.type!==`arraybuffer`)throw Error(`THREE.GLTFLoader: `+t.type+` buffer type is not supported.`);if(t.uri===void 0&&e===0)return Promise.resolve(this.extensions[fN.KHR_BINARY_GLTF].body);let r=this.options;return new Promise(function(e,i){n.load(qw.resolveURL(t.uri,r.path),e,void 0,function(){i(Error(`THREE.GLTFLoader: Failed to load buffer "`+t.uri+`".`))})})}loadBufferView(e){let t=this.json.bufferViews[e];return this.getDependency(`buffer`,t.buffer).then(function(e){let n=t.byteLength||0,r=t.byteOffset||0;return e.slice(r,r+n)})}loadAccessor(e){let t=this,n=this.json,r=this.json.accessors[e];if(r.bufferView===void 0&&r.sparse===void 0){let e=GN[r.type],t=HN[r.componentType],n=r.normalized===!0,i=new t(r.count*e);return Promise.resolve(new Nv(i,e,n))}let i=[];return r.bufferView===void 0?i.push(null):i.push(this.getDependency(`bufferView`,r.bufferView)),r.sparse!==void 0&&(i.push(this.getDependency(`bufferView`,r.sparse.indices.bufferView)),i.push(this.getDependency(`bufferView`,r.sparse.values.bufferView))),Promise.all(i).then(function(e){let i=e[0],a=GN[r.type],o=HN[r.componentType],s=o.BYTES_PER_ELEMENT,c=s*a,l=r.byteOffset||0,u=r.bufferView===void 0?void 0:n.bufferViews[r.bufferView].byteStride,d=r.normalized===!0,f,p;if(u&&u!==c){let e=Math.floor(l/u),n=`InterleavedBuffer:`+r.bufferView+`:`+r.componentType+`:`+e+`:`+r.count,c=t.cache.get(n);c||(f=new o(i,e*u,r.count*u/s),c=new ey(f,u/s),t.cache.add(n,c)),p=new ny(c,a,l%u/s,d)}else f=i===null?new o(r.count*a):new o(i,l,r.count*a),p=new Nv(f,a,d);if(r.sparse!==void 0){let t=GN.SCALAR,n=HN[r.sparse.indices.componentType],s=r.sparse.indices.byteOffset||0,c=r.sparse.values.byteOffset||0,l=new n(e[1],s,r.sparse.count*t),u=new o(e[2],c,r.sparse.count*a);i!==null&&(p=new Nv(p.array.slice(),p.itemSize,p.normalized));for(let e=0,t=l.length;e<t;e++){let t=l[e];if(p.setX(t,u[e*a]),a>=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`
4133:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=UN[n.magFilter]||1006,t.minFilter=UN[n.minFilter]||1008,t.wrapS=WN[n.wrapS]||1e3,t.wrapT=WN[n.wrapT]||1e3,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new r_(e);t.needsUpdate=!0,n(t)}),t.load(qw.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),QN(e,a),e.userData.mimeType=a.mimeType||iP(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[fN.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[fN.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[fN.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(typeof r==`number`&&(r=r===cN?oN:sN),`colorSpace`in a?a.colorSpace=r:a.encoding=r===oN?cN:lN),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new sx,iy.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new qb,iy.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return DC}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[fN.KHR_MATERIALS_UNLIT]){let e=r[fN.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new Z(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],sN),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,oN)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||YN.OPAQUE;if(l===YN.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===YN.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==My&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new Y(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==My&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==My){let e=i.emissiveFactor;o.emissive=new Z().setRGB(e[0],e[1],e[2],sN)}return i.emissiveTexture!==void 0&&a!==My&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,oN)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),QN(n,i),t.associations.set(n,{materials:e}),i.extensions&&ZN(r,n,i),n})}createUniqueName(e){let t=VT.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[fN.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return cP(n,e,t)})}let a=[];for(let n=0,o=e.length;n<o;n++){let o=e[n],s=tP(o),c=r[s];if(c)a.push(c.promise);else{let e;e=o.extensions&&o.extensions[fN.KHR_DRACO_MESH_COMPRESSION]?i(o):cP(new $v,o,t),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e<t;e++){let t=a[e].material===void 0?XN(this.cache):this.getDependency(`material`,a[e].material);o.push(t)}return o.push(t.loadGeometries(a)),Promise.all(o).then(function(n){let o=n.slice(0,n.length-1),s=n[n.length-1],c=[];for(let n=0,l=s.length;n<l;n++){let l=s[n],u=a[n],d,f=o[n];if(u.mode===VN.TRIANGLES||u.mode===VN.TRIANGLE_STRIP||u.mode===VN.TRIANGLE_FAN||u.mode===void 0)d=i.isSkinnedMesh===!0?new nb(l,f):new Wy(l,f),d.isSkinnedMesh===!0&&d.normalizeSkinWeights(),u.mode===VN.TRIANGLE_STRIP?d.geometry=iN(d.geometry,1):u.mode===VN.TRIANGLE_FAN&&(d.geometry=iN(d.geometry,2));else if(u.mode===VN.LINES)d=new ax(l,f);else if(u.mode===VN.LINE_STRIP)d=new tx(l,f);else if(u.mode===VN.LINE_LOOP)d=new ox(l,f);else if(u.mode===VN.POINTS)d=new fx(l,f);else throw Error(`THREE.GLTFLoader: Primitive mode unsupported: `+u.mode);Object.keys(d.geometry.morphAttributes).length>0&&eP(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),QN(d,i),u.extensions&&ZN(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n<r;n++)t.associations.set(c[n],{meshes:e,primitives:n});if(c.length===1)return i.extensions&&ZN(r,c[0],i),c[0];let l=new z_;i.extensions&&ZN(r,l,i),t.associations.set(l,{meshes:e});for(let e=0,t=c.length;e<t;e++)l.add(c[e]);return l})}loadCamera(e){let t,n=this.json.cameras[e],r=n[n.type];if(!r){console.warn(`THREE.GLTFLoader: Missing camera parameters.`);return}return n.type===`perspective`?t=new Pw(Rg.radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):n.type===`orthographic`&&(t=new zw(-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),QN(t,n),Promise.resolve(t)}loadSkin(e){let t=this.json.skins[e],n=[];for(let e=0,r=t.joints.length;e<r;e++)n.push(this._loadNodeShallow(t.joints[e]));return t.inverseBindMatrices===void 0?n.push(null):n.push(this.getDependency(`accessor`,t.inverseBindMatrices)),Promise.all(n).then(function(e){let n=e.pop(),r=e,i=[],a=[];for(let e=0,o=r.length;e<o;e++){let o=r[e];if(o){i.push(o);let t=new d_;n!==null&&t.fromArray(n.array,e*16),a.push(t)}else console.warn(`THREE.GLTFLoader: Joint "%s" could not be found.`,t.joints[e])}return new sb(i,a)})}loadAnimation(e){let t=this.json,n=this,r=t.animations[e],i=r.name?r.name:`animation_`+e,a=[],o=[],s=[],c=[],l=[];for(let e=0,t=r.channels.length;e<t;
vendor: 5,065 bytes, line 4133
4133e++){let t=r.channels[e],n=r.samplers[t.sampler],i=t.target,u=i.node,d=r.parameters===void 0?n.input:r.parameters[n.input],f=r.parameters===void 0?n.output:r.parameters[n.output];i.node!==void 0&&(a.push(this.getDependency(`node`,u)),o.push(this.getDependency(`accessor`,d)),s.push(this.getDependency(`accessor`,f)),c.push(n),l.push(i))}return Promise.all([Promise.all(a),Promise.all(o),Promise.all(s),Promise.all(c),Promise.all(l)]).then(function(e){let t=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=[];for(let e=0,i=t.length;e<i;e++){let i=t[e],l=r[e],u=a[e],d=o[e],f=s[e];if(i===void 0)continue;i.updateMatrix&&i.updateMatrix();let p=n._createAnimationTracks(i,l,u,d,f);if(p)for(let e=0;e<p.length;e++)c.push(p[e])}return new rw(i,void 0,c)})}createNodeMesh(e){let t=this.json,n=this,r=t.nodes[e];return r.mesh===void 0?null:n.getDependency(`mesh`,r.mesh).then(function(e){let t=n._getNodeRef(n.meshCache,r.mesh,e);return r.weights!==void 0&&t.traverse(function(e){if(e.isMesh)for(let t=0,n=r.weights.length;t<n;t++)e.morphTargetInfluences[t]=r.weights[t]}),t})}loadNode(e){let t=this.json,n=this,r=t.nodes[e],i=n._loadNodeShallow(e),a=[],o=r.children||[];for(let e=0,t=o.length;e<t;e++)a.push(n.getDependency(`node`,o[e]));let s=r.skin===void 0?Promise.resolve(null):n.getDependency(`skin`,r.skin);return Promise.all([i,Promise.all(a),s]).then(function(e){let t=e[0],n=e[1],r=e[2];r!==null&&t.traverse(function(e){e.isSkinnedMesh&&e.bind(r,aP)});for(let e=0,r=n.length;e<r;e++)t.add(n[e]);return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new rb:t.length>1?new z_:t.length===1?t[0]:new R_,o!==t[0])for(let e=0,n=t.length;e<n;e++)o.add(t[e]);if(i.name&&(o.userData.name=i.name,o.name=a),QN(o,i),i.extensions&&ZN(n,o,i),i.matrix!==void 0){let e=new d_;e.fromArray(i.matrix),o.applyMatrix4(e)}else i.translation!==void 0&&o.position.fromArray(i.translation),i.rotation!==void 0&&o.quaternion.fromArray(i.rotation),i.scale!==void 0&&o.scale.fromArray(i.scale);return r.associations.has(o)||r.associations.set(o,{}),r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new z_;n.name&&(i.name=r.createUniqueName(n.name)),QN(i,n),n.extensions&&ZN(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e<t;e++)o.push(r.getDependency(`node`,a[e]));return Promise.all(o).then(function(e){for(let t=0,n=e.length;t<n;t++)i.add(e[t]);return r.associations=(e=>{let t=new Map;for(let[e,n]of r.associations)(e instanceof iy||e instanceof r_)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];qN[i.path]===qN.weights?e.traverse(function(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}):s.push(o);let c;switch(qN[i.path]){case qN.weights:c=QC;break;case qN.rotation:c=ew;break;case qN.position:case qN.scale:c=nw;break;default:switch(n.itemSize){case 1:c=QC;break;default:c=nw;break}break}let l=r.interpolation===void 0?dh:JN[r.interpolation],u=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e<n;e++){let n=new c(s[e]+`.`+qN[i.path],t.array,u,l);r.interpolation===`CUBICSPLINE`&&this._createCubicSplineTrackInterpolant(n),a.push(n)}return a}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){let e=rP(t.constructor),n=new Float32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t[r]*e;t=n}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(e){return new(this instanceof ew?BN:RN)(this.times,this.values,this.getValueSize()/3,e)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}};function sP(e,t,n){let r=t.attributes,i=new uv;if(r.POSITION!==void 0){let e=n.json.accessors[r.POSITION],t=e.min,a=e.max;if(t!==void 0&&a!==void 0){if(i.set(new X(t[0],t[1],t[2]),new X(a[0],a[1],a[2])),e.normalized){let t=rP(HN[e.componentType]);i.min.multiplyScalar(t),i.max.multiplyScalar(t)}}else{console.warn(`THREE.GLTFLoader: Missing min/max properties for accessor POSITION.`);return}}else return;let a=t.targets;if(a!==void 0){let e=new X,t=new X;for(let r=0,i=a.length;r<i;r++){let i=a[r];if(i.POSITION!==void 0){let r=n.json.accessors[i.POSITION],a=r.min,o=r.max;if(a!==void 0&&o!==void 0){if(t.setX(Math.max(Math.abs(a[0]),Math.abs(o[0]))),t.setY(Math.max(Math.abs(a[1]),Math.abs(o[1]))),t.setZ(Math.max(Math.abs(a[2]),Math.abs(o[2]))),r.normalized){let e=rP(HN[r.componentType]);t.multiplyScalar(e)}e.max(t)}else console.warn(`THREE.GLTFLoader: Missing min/max properties for accessor POSITION.`)}}
vendor: 6,856 bytes, lines 4133-4134
4133i.expandByVector(e)}e.boundingBox=i;let o=new Gv;i.getCenter(o.center),o.radius=i.min.distanceTo(i.max)/2,e.boundingSphere=o}function cP(e,t,n){let r=t.attributes,i=[];function a(t,r){return n.getDependency(`accessor`,t).then(function(t){e.setAttribute(r,t)})}for(let t in r){let n=KN[t]||t.toLowerCase();n in e.attributes||i.push(a(r[t],n))}if(t.indices!==void 0&&!e.index){let r=n.getDependency(`accessor`,t.indices).then(function(t){e.setIndex(t)});i.push(r)}return QN(e,t),sP(e,t,n),Promise.all(i).then(function(){return t.targets===void 0?e:$N(e,t.targets,n)})}var lP=new WeakMap,uP=class extends uw{constructor(e){super(e),this.decoderPath=``,this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL=``,this.defaultAttributeIDs={position:`POSITION`,normal:`NORMAL`,color:`COLOR`,uv:`TEX_COORD`},this.defaultAttributeTypes={position:`Float32Array`,normal:`Float32Array`,color:`Float32Array`,uv:`Float32Array`}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,t,n,r){let i=new pw(this.manager);i.setPath(this.path),i.setResponseType(`arraybuffer`),i.setRequestHeader(this.requestHeader),i.setWithCredentials(this.withCredentials),i.load(e,e=>{let n={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(e,n).then(t).catch(r)},n,r)}decodeDracoFile(e,t,n,r){let i={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:r||this.defaultAttributeTypes,useUniqueIDs:!!n};this.decodeGeometry(e,i).then(t)}decodeGeometry(e,t){for(let e in t.attributeTypes){let n=t.attributeTypes[e];n.BYTES_PER_ELEMENT!==void 0&&(t.attributeTypes[e]=n.name)}let n=JSON.stringify(t);if(lP.has(e)){let t=lP.get(e);if(t.key===n)return t.promise;if(e.byteLength===0)throw Error(`THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.`)}let r,i=this.workerNextTaskID++,a=e.byteLength,o=this._getWorker(i,a).then(n=>(r=n,new Promise((n,a)=>{r._callbacks[i]={resolve:n,reject:a},r.postMessage({type:`decode`,id:i,taskConfig:t,buffer:e},[e])}))).then(e=>this._createGeometry(e.geometry));return o.catch(()=>!0).then(()=>{r&&i&&this._releaseTask(r,i)}),lP.set(e,{key:n,promise:o}),o}_createGeometry(e){let t=new $v;e.index&&t.setIndex(new Nv(e.index.array,1));for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n],i=r.name,a=r.array,o=r.itemSize;t.setAttribute(i,new Nv(a,o))}return t}_loadLibrary(e,t){let n=new pw(this.manager);return n.setPath(this.decoderPath),n.setResponseType(t),n.setWithCredentials(this.withCredentials),new Promise((t,r)=>{n.load(e,t,void 0,r)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;let e=typeof WebAssembly!=`object`||this.decoderConfig.type===`js`,t=[];return e?t.push(this._loadLibrary(`draco_decoder.js`,`text`)):(t.push(this._loadLibrary(`draco_wasm_wrapper.js`,`text`)),t.push(this._loadLibrary(`draco_decoder.wasm`,`arraybuffer`))),this.decoderPending=Promise.all(t).then(t=>{let n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);let r=dP.toString(),i=[`/* draco decoder */`,n,``,`/* worker */`,r.substring(r.indexOf(`{`)+1,r.lastIndexOf(`}`))].join(`
4134`);this.workerSourceURL=URL.createObjectURL(new Blob([i]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){let e=new Worker(this.workerSourceURL);e._callbacks={},e._taskCosts={},e._taskLoad=0,e.postMessage({type:`init`,decoderConfig:this.decoderConfig}),e.onmessage=function(t){let n=t.data;switch(n.type){case`decode`:e._callbacks[n.id].resolve(n);break;case`error`:e._callbacks[n.id].reject(n);break;default:console.error(`THREE.DRACOLoader: Unexpected message, "`+n.type+`"`)}},this.workerPool.push(e)}else this.workerPool.sort(function(e,t){return e._taskLoad>t._taskLoad?-1:1});let n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){console.log(`Task load: `,this.workerPool.map(e=>e._taskLoad))}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,this}};function dP(){let e,t;onmessage=function(r){let i=r.data;switch(i.type){case`init`:e=i.decoderConfig,t=new Promise(function(t){e.onModuleLoaded=function(e){t({draco:e})},DracoDecoderModule(e)});break;case`decode`:let r=i.buffer,a=i.taskConfig;t.then(e=>{let t=e.draco,o=new t.Decoder,s=new t.DecoderBuffer;s.Init(new Int8Array(r),r.byteLength);try{let e=n(t,o,s,a),r=e.attributes.map(e=>e.array.buffer);e.index&&r.push(e.index.array.buffer),self.postMessage({type:`decode`,id:i.id,geometry:e},r)}catch(e){console.error(e),self.postMessage({type:`error`,id:i.id,error:e.message})}finally{t.destroy(s),t.destroy(o)}});break}};function n(e,t,n,a){let o=a.attributeIDs,s=a.attributeTypes,c,l,u=t.GetEncodedGeometryType(n);if(u===e.TRIANGULAR_MESH)c=new e.Mesh,l=t.DecodeBufferToMesh(n,c);else if(u===e.POINT_CLOUD)c=new e.PointCloud,l=t.DecodeBufferToPointCloud(n,c);else throw Error(`THREE.DRACOLoader: Unexpected geometry type.`);if(!l.ok()||c.ptr===0)throw Error(`THREE.DRACOLoader: Decoding failed: `+l.error_msg());let d={index:null,attributes:[]};for(let n in o){let r=self[s[n]],l,u;if(a.useUniqueIDs)u=o[n],l=t.GetAttributeByUniqueId(c,u);else{if(u=t.GetAttributeId(c,e[o[n]]),u===-1)continue;l=t.GetAttribute(c,u)}d.attributes.push(i(e,t,c,n,r,l))}return u===e.TRIANGULAR_MESH&&(d.index=r(e,t,c)),e.destroy(c),d}function r(e,t,n){let r=n.num_faces()*3,i=r*4,a=e._malloc(i);t.GetTrianglesUInt32Array(n,i,a);let o=new Uint32Array(e.HEAPF32.buffer,a,r).slice();return e._free(a),{array:o,itemSize:1}}function i(e,t,n,r,i,o){let s=o.num_components(),c=n.num_points()*s,l=c*i.BYTES_PER_ELEMENT,u=a(e,i),d=e._malloc(l);t.GetAttributeDataArrayForAllPoints(n,o,u,l,d);let f=new i(e.HEAPF32.buffer,d,c).slice();return e._free(d),{name:r,array:f,itemSize:s}}function a(e,t){switch(t){case Float32Array:return e.DT_FLOAT32;case Int8Array:return e.DT_INT8;case Int16Array:return e.DT_INT16;case Int32Array:return e.DT_INT32;case Uint8Array:return e.DT_UINT8;case Uint16Array:return e.DT_UINT16;case Uint32Array:return e.DT_UINT32}}}var fP,pP=()=>{if(fP)return fP;let e=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),t=new Uint8Array([32,0,65,253,3,1,2,34,4,106,6,5,11,8,7,20,13,33,12,16,128,9,116,64,19,113,127,15,10,21,22,14,255,66,24,54,136,107,18,23,192,26,114,118,132,17,77,101,130,144,27,87,131,44,45,74,156,154,70,167]);if(typeof WebAssembly!=`object`)return{supported:!1};
4134let n=`B9h9z9tFBBBF8fL9gBB9gLaaaaaFa9gEaaaB9gFaFa9gEaaaFaEMcBFFFGGGEIIILF9wFFFLEFBFKNFaFCx/IFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBF8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBGy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBEn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBIi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBKI9z9iqlBOc+x8ycGBM/qQFTa8jUUUUBCU/EBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAGTkUUUBRNCUoBAG9uC/wgBZHKCUGAKCUG9JyRVAECFJRICBRcGXEXAcAF9PQFAVAFAclAcAVJAF9JyRMGXGXAG9FQBAMCbJHKC9wZRSAKCIrCEJCGrRQANCUGJRfCBRbAIRTEXGXAOATlAQ9PQBCBRISEMATAQJRIGXAS9FQBCBRtCBREEXGXAOAIlCi9PQBCBRISLMANCU/CBJAEJRKGXGXGXGXGXATAECKrJ2BBAtCKZrCEZfIBFGEBMAKhB83EBAKCNJhB83EBSEMAKAI2BIAI2BBHmCKrHYAYCE6HYy86BBAKCFJAICIJAYJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCGJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCEJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCIJAYAmJHY2BBAI2BFHmCKrHPAPCE6HPy86BBAKCLJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCKJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCOJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCNJAYAmJHY2BBAI2BGHmCKrHPAPCE6HPy86BBAKCVJAYAPJHY2BBAmCIrCEZHPAPCE6HPy86BBAKCcJAYAPJHY2BBAmCGrCEZHPAPCE6HPy86BBAKCMJAYAPJHY2BBAmCEZHmAmCE6Hmy86BBAKCSJAYAmJHm2BBAI2BEHICKrHYAYCE6HYy86BBAKCQJAmAYJHm2BBAICIrCEZHYAYCE6HYy86BBAKCfJAmAYJHm2BBAICGrCEZHYAYCE6HYy86BBAKCbJAmAYJHK2BBAICEZHIAICE6HIy86BBAKAIJRISGMAKAI2BNAI2BBHmCIrHYAYCb6HYy86BBAKCFJAICNJAYJHY2BBAmCbZHmAmCb6Hmy86BBAKCGJAYAmJHm2BBAI2BFHYCIrHPAPCb6HPy86BBAKCEJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCIJAmAYJHm2BBAI2BGHYCIrHPAPCb6HPy86BBAKCLJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCKJAmAYJHm2BBAI2BEHYCIrHPAPCb6HPy86BBAKCOJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCNJAmAYJHm2BBAI2BIHYCIrHPAPCb6HPy86BBAKCVJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCcJAmAYJHm2BBAI2BLHYCIrHPAPCb6HPy86BBAKCMJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCSJAmAYJHm2BBAI2BKHYCIrHPAPCb6HPy86BBAKCQJAmAPJHm2BBAYCbZHYAYCb6HYy86BBAKCfJAmAYJHm2BBAI2BOHICIrHYAYCb6HYy86BBAKCbJAmAYJHK2BBAICbZHIAICb6HIy86BBAKAIJRISFMAKAI8pBB83BBAKCNJAICNJ8pBB83BBAICTJRIMAtCGJRtAECTJHEAS9JQBMMGXAIQBCBRISEMGXAM9FQBANAbJ2BBRtCBRKAfREEXAEANCU/CBJAKJ2BBHTCFrCBATCFZl9zAtJHt86BBAEAGJREAKCFJHKAM9HQBMMAfCFJRfAIRTAbCFJHbAG9HQBMMABAcAG9sJANCUGJAMAG9sTkUUUBpANANCUGJAMCaJAG9sJAGTkUUUBpMAMCBAIyAcJRcAIQBMC9+RKSFMCBC99AOAIlAGCAAGCA9Ly6yRKMALCU/EBJ8kUUUUBAKM+OmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUFT+JUUUBpALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIA
4134LAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM+lLKFaF99GaG99FaG99GXGXAGCI9HQBAF9FQFEXGXGX9DBBB8/9DBBB+/ABCGJHG1BB+yAB1BBHE+yHI+L+TABCFJHL1BBHK+yHO+L+THN9DBBBB9gHVyAN9DBB/+hANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE86BBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG86BBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG86BBABCIJRBAFCaJHFQBSGMMAF9FQBEXGXGX9DBBB8/9DBBB+/ABCIJHG8uFB+yAB8uFBHE+yHI+L+TABCGJHL8uFBHK+yHO+L+THN9DBBBB9gHVyAN9DB/+g6ANAN+U9DBBBBANAVyHcAc+MHMAECa3yAI+SHIAI+UAcAMAKCa3yAO+SHcAc+U+S+S+R+VHO+U+SHN+L9DBBB9P9d9FQBAN+oRESFMCUUUU94REMAGAE87FBGXGX9DBBB8/9DBBB+/Ac9DBBBB9gyAcAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMALAG87FBGXGX9DBBB8/9DBBB+/AI9DBBBB9gyAIAO+U+SHN+L9DBBB9P9d9FQBAN+oRGSFMCUUUU94RGMABAG87FBABCNJRBAFCaJHFQBMMM/SEIEaE99EaF99GXAF9FQBCBREABRIEXGXGX9D/zI818/AICKJ8uFBHLCEq+y+VHKAI8uFB+y+UHO9DB/+g6+U9DBBB8/9DBBB+/AO9DBBBB9gy+SHN+L9DBBB9P9d9FQBAN+oRVSFMCUUUU94RVMAICIJ8uFBRcAICGJ8uFBRMABALCFJCEZAEqCFWJAV87FBGXGXAKAM+y+UHN9DB/+g6+U9DBBB8/9DBBB+/AN9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRMSFMCUUUU94RMMABALCGJCEZAEqCFWJAM87FBGXGXAKAc+y+UHK9DB/+g6+U9DBBB8/9DBBB+/AK9DBBBB9gy+SHS+L9DBBB9P9d9FQBAS+oRcSFMCUUUU94RcMABALCaJCEZAEqCFWJAc87FBGXGX9DBBU8/AOAO+U+TANAN+U+TAKAK+U+THO9DBBBBAO9DBBBB9gy+R9DB/+g6+U9DBBB8/+SHO+L9DBBB9P9d9FQBAO+oRcSFMCUUUU94RcMABALCEZAEqCFWJAc87FBAICNJRIAECIJREAFCaJHFQBMMM9JBGXAGCGrAF9sHF9FQBEXABAB8oGBHGCNWCN91+yAGCi91CnWCUUU/8EJ+++U84GBABCIJRBAFCaJHFQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEM/lFFFaGXGXAFABqCEZ9FQBABRESFMGXGXAGCT9PQBABRESFMABREEXAEAF8oGBjGBAECIJAFCIJ8oGBjGBAECNJAFCNJ8oGBjGBAECSJAFCSJ8oGBjGBAECTJREAFCTJRFAGC9wJHGCb9LQBMMAGCI9JQBEXAEAF8oGBjGBAFCIJRFAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF2BB86BBAECFJREAFCFJRFAGCaJHGQBMMABMoFFGaGXGXABCEZ9FQBABRESFMAFCgFZC+BwsN9sRIGXGXAGCT9PQBABRESFMABREEXAEAIjGBAECSJAIjGBAECNJAIjGBAECIJAIjGBAECTJREAGC9wJHGCb9LQBMMAGCI9JQBEXAEAIjGBAECIJREAGC98JHGCE9LQBMMGXAG9FQBEXAEAF86BBAECFJREAGCaJHGQBMMABMMMFBCUNMIT9kBB`;WebAssembly.validate(e)&&(n=`B9h9z9tFBBBFiI9gBB9gLaaaaaFa9gEaaaB9gFaFaEMcBBFBFFGGGEILF9wFFFLEFBFKNFaFCx/aFMO/LFVK9tv9t9vq95GBt9f9f939h9z9t9f9j9h9s9s9f9jW9vq9zBBp9tv9z9o9v9wW9f9kv9j9v9kv9WvqWv94h919m9mvqBG8Z9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv94h919m9mvqBIy9tv9z9o9v9wW9f9kv9j9v9kv9J9u9kv949TvZ91v9u9jvBLn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9P9jWBKi9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9R919hWBOn9tv9z9o9v9wW9f9kv9j9v9kv69p9sWvq9F949wBNI9z9iqlBVc+N9IcIBTEM9+FLa8jUUUUBCTlRBCBRFEXCBRGCBREEXABCNJAGJAECUaAFAGrCFZHIy86BBAEAIJREAGCFJHGCN9HQBMAFCx+YUUBJAE86BBAFCEWCxkUUBJAB8pEN83EBAFCFJHFCUG9HQBMMk8lLbaE97F9+FaL978jUUUUBCU/KBlHL8kUUUUBC9+RKGXAGCFJAI9LQBCaRKAE2BBC+gF9HQBALAEAIJHOAGlAG/8cBBCUoBAG9uC/wgBZHKCUGAKCUG9JyRNAECFJRKCBRVGXEXAVAF9PQFANAFAVlAVANJAF9JyRcGXGXAG9FQBAcCbJHIC9wZHMCE9sRSAMCFWRQAICIrCEJCGrRfCBRbEXAKRTCBRtGXEXGXAOATlAf9PQBCBRKSLMALCU/CBJAtAM9sJRmATAfJRKCBREGXAMCoB9JQBAOAKlC/gB9JQBCBRIEXAmAIJREGXGXGXGXGXATAICKrJ2BBHYCEZfIBFGEBMAECBDtDMIBSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIBAKCTJRKMGXGXGXGXGXAYCGrCEZfIBFGEBMAECBDtDMITSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMITAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMITAKCTJRKMGXGXGXGXGXAYCIrCEZfIBFGEBMAECBDtDMIASEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIAAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAEAKDBBBDMIAAKCTJRKMGXGXGXGXGXAYCKrfIBFGEBMAECBDtDMI8wSEMAEAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCIJAeDeBJAYCx+YUUBJ2BBJRKSGMAEAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHYCEWCxkUUBJDBEBAYCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHYCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMI8wAKCNJAeDeBJAYCx+YUUBJ2BBJRKSFMAEAKDBBBDMI8wAKCTJRKMAICoBJREAICUFJAM9LQFAERIAOAKlC/fB9LQBMMGXAEAM9PQBAECErRIEXGXAOAKlCi9PQBCBRKSOMAmAEJRYGXGXGXGXGXATAECKrJ2BBAICKZrCEZfIBFGEBMAYCBDtDMIBSEMAYAKDBBIAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnHPCGD+MFAPDQBTFtGmEYIPLdKeOnC0+G+MiDtD9OHdCEDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCIJAeDeBJAiCx+YUUBJ2BBJRKSGMAYAKDBBNAKDBBBHPCID+MFAPDQBTFtGmEYIPLdKeOnC+P+e+8/4BDtD9OHdCbDbD8jHPAPDQBFGENVcMILKOSQfbHeD8dBh+BsxoxoUwN0AeD8dFhxoUwkwk+gUa0sHnhTkAnsHnhNkAnsHn7CgFZHiCEWCxkUUBJDBEBAiCx+YUUBJDBBBHeAeDQBBBBBBBBBBBBBBBBAnhAk7CgFZHiCEWCxkUUBJDBEBD9uDQBFGEILKOTtmYPdenDfAdAPD9SDMIBAKCNJAeDeBJAiCx+YUUBJ2BBJRKSFMAYAKDBBBDMIBAKCTJRKMAICGJRIAECTJHEAM9JQBMMG
4134XAK9FQBAKRTAtCFJHtCI6QGSFMMCBRKSEMGXAM9FQBALCUGJAbJREALAbJDBGBReCBRYEXAEALCU/CBJAYJHIDBIBHdCFD9tAdCFDbHPD9OD9hD9RHdAIAMJDBIBH8ZCFD9tA8ZAPD9OD9hD9RH8ZDQBTFtGmEYIPLdKeOnHpAIAQJDBIBHyCFD9tAyAPD9OD9hD9RHyAIASJDBIBH8cCFD9tA8cAPD9OD9hD9RH8cDQBTFtGmEYIPLdKeOnH8dDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGEAeD9uHeDyBjGBAEAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeApA8dDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNiV8ZcpMyS8cQ8df8eb8fHdAyA8cDQNiV8ZcpMyS8cQ8df8eb8fH8ZDQBFTtGEmYILPdKOenHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJHIAeAdA8ZDQNVi8ZcMpySQ8c8dfb8e8fHPAPDQBFGEBFGEBFGEBFGED9uHeDyBjGBAIAGJHIAeAPAPDQILKOILKOILKOILKOD9uHeDyBjGBAIAGJHIAeAPAPDQNVcMNVcMNVcMNVcMD9uHeDyBjGBAIAGJHIAeAPAPDQSQfbSQfbSQfbSQfbD9uHeDyBjGBAIAGJREAYCTJHYAM9JQBMMAbCIJHbAG9JQBMMABAVAG9sJALCUGJAcAG9s/8cBBALALCUGJAcCaJAG9sJAG/8cBBMAcCBAKyAVJRVAKQBMC9+RKSFMCBC99AOAKlAGCAAGCA9Ly6yRKMALCU/KBJ8kUUUUBAKMNBT+BUUUBM+KmFTa8jUUUUBCoFlHL8kUUUUBC9+RKGXAFCE9uHOCtJAI9LQBCaRKAE2BBHNC/wFZC/gF9HQBANCbZHVCF9LQBALCoBJCgFCUF/8MBALC84Jha83EBALC8wJha83EBALC8oJha83EBALCAJha83EBALCiJha83EBALCTJha83EBALha83ENALha83EBAEAIJC9wJRcAECFJHNAOJRMGXAF9FQBCQCbAVCF6yRSABRECBRVCBRQCBRfCBRICBRKEXGXAMAcuQBC9+RKSEMGXGXAN2BBHOC/vF9LQBALCoBJAOCIrCa9zAKJCbZCEWJHb8oGIRTAb8oGBRtGXAOCbZHbAS9PQBALAOCa9zAIJCbZCGWJ8oGBAVAbyROAb9FRbGXGXAGCG9HQBABAt87FBABCIJAO87FBABCGJAT87FBSFMAEAtjGBAECNJAOjGBAECIJATjGBMAVAbJRVALCoBJAKCEWJHmAOjGBAmATjGIALAICGWJAOjGBALCoBJAKCFJCbZHKCEWJHTAtjGBATAOjGIAIAbJRIAKCFJRKSGMGXGXAbCb6QBAQAbJAbC989zJCFJRQSFMAM1BBHbCgFZROGXGXAbCa9MQBAMCFJRMSFMAM1BFHbCgBZCOWAOCgBZqROGXAbCa9MQBAMCGJRMSFMAM1BGHbCgBZCfWAOqROGXAbCa9MQBAMCEJRMSFMAM1BEHbCgBZCdWAOqROGXAbCa9MQBAMCIJRMSFMAM2BIC8cWAOqROAMCLJRMMAOCFrCBAOCFZl9zAQJRQMGXGXAGCG9HQBABAt87FBABCIJAQ87FBABCGJAT87FBSFMAEAtjGBAECNJAQjGBAECIJATjGBMALCoBJAKCEWJHOAQjGBAOATjGIALAICGWJAQjGBALCoBJAKCFJCbZHKCEWJHOAtjGBAOAQjGIAICFJRIAKCFJRKSFMGXAOCDF9LQBALAIAcAOCbZJ2BBHbCIrHTlCbZCGWJ8oGBAVCFJHtATyROALAIAblCbZCGWJ8oGBAtAT9FHmJHtAbCbZHTyRbAT9FRTGXGXAGCG9HQBABAV87FBABCIJAb87FBABCGJAO87FBSFMAEAVjGBAECNJAbjGBAECIJAOjGBMALAICGWJAVjGBALCoBJAKCEWJHYAOjGBAYAVjGIALAICFJHICbZCGWJAOjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAIAmJCbZHICGWJAbjGBALCoBJAKCGJCbZHKCEWJHOAVjGBAOAbjGIAKCFJRKAIATJRIAtATJRVSFMAVCBAM2BBHYyHTAOC/+F6HPJROAYCbZRtGXGXAYCIrHmQBAOCFJRbSFMAORbALAIAmlCbZCGWJ8oGBROMGXGXAtQBAbCFJRVSFMAbRVALAIAYlCbZCGWJ8oGBRbMGXGXAP9FQBAMCFJRYSFMAM1BFHYCgFZRTGXGXAYCa9MQBAMCGJRYSFMAM1BGHYCgBZCOWATCgBZqRTGXAYCa9MQBAMCEJRYSFMAM1BEHYCgBZCfWATqRTGXAYCa9MQBAMCIJRYSFMAM1BIHYCgBZCdWATqRTGXAYCa9MQBAMCLJRYSFMAMCKJRYAM2BLC8cWATqRTMATCFrCBATCFZl9zAQJHQRTMGXGXAmCb6QBAYRPSFMAY1BBHMCgFZROGXGXAMCa9MQBAYCFJRPSFMAY1BFHMCgBZCOWAOCgBZqROGXAMCa9MQBAYCGJRPSFMAY1BGHMCgBZCfWAOqROGXAMCa9MQBAYCEJRPSFMAY1BEHMCgBZCdWAOqROGXAMCa9MQBAYCIJRPSFMAYCLJRPAY2BIC8cWAOqROMAOCFrCBAOCFZl9zAQJHQROMGXGXAtCb6QBAPRMSFMAP1BBHMCgFZRbGXGXAMCa9MQBAPCFJRMSFMAP1BFHMCgBZCOWAbCgBZqRbGXAMCa9MQBAPCGJRMSFMAP1BGHMCgBZCfWAbqRbGXAMCa9MQBAPCEJRMSFMAP1BEHMCgBZCdWAbqRbGXAMCa9MQBAPCIJRMSFMAPCLJRMAP2BIC8cWAbqRbMAbCFrCBAbCFZl9zAQJHQRbMGXGXAGCG9HQBABAT87FBABCIJAb87FBABCGJAO87FBSFMAEATjGBAECNJAbjGBAECIJAOjGBMALCoBJAKCEWJHYAOjGBAYATjGIALAICGWJATjGBALCoBJAKCFJCbZCEWJHYAbjGBAYAOjGIALAICFJHICbZCGWJAOjGBALCoBJAKCGJCbZCEWJHOATjGBAOAbjGIALAIAm9FAmCb6qJHICbZCGWJAbjGBAIAt9FAtCb6qJRIAKCEJRKMANCFJRNABCKJRBAECSJREAKCbZRKAICbZRIAfCEJHfAF9JQBMMCBC99AMAc6yRKMALCoFJ8kUUUUBAKM/tIFGa8jUUUUBCTlRLC9+RKGXAFCLJAI9LQBCaRKAE2BBC/+FZC/QF9HQBALhB83ENAECFJRKAEAIJC98JREGXAF9FQBGXAGCG6QBEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMALCNJAICFZCGWqHGAICGrCBAICFrCFZl9zAG8oGBJHIjGBABAIjGBABCIJRBAFCaJHFQBSGMMEXGXAKAE9JQBC9+bMAK1BBHGCgFZRIGXGXAGCa9MQBAKCFJRKSFMAK1BFHGCgBZCOWAICgBZqRIGXAGCa9MQBAKCGJRKSFMAK1BGHGCgBZCfWAIqRIGXAGCa9MQBAKCEJRKSFMAK1BEHGCgBZCdWAIqRIGXAGCa9MQBAKCIJRKSFMAK2BIC8cWAIqRIAKCLJRKMABAICGrCBAICFrCFZl9zALCNJAICFZCGWqHI8oGBJHG87FBAIAGjGBABCGJRBAFCaJHFQBMMCBC99AKAE6yRKMAKM/dLEK97FaF97GXGXAGCI9HQBAF9FQFCBRGEXABABDBBBHECiD+rFCiD+sFD/6FHIAECND+rFCiD+sFD/6FAID/gFAECTD+rFCiD+sFD/6FHLD/gFD/kFD/lFHKCBDtD+2FHOAICUUUU94DtHND9OD9RD/kFHI9DBB/+hDYAIAID/mFAKAKD/mFALAOALAND9OD9RD/kFHIAID/mFD/kFD/kFD/jFD/nFHLD/mF9DBBX9LDYHOD/kFCgFDtD9OAECUUU94DtD9OD9QAIALD/mFAOD/kFCND+rFCU/+EDtD9OD9QAKALD/mFAOD/kFCTD+rFCUU/8ODtD9OD9QDMBBABCTJRBAGCIJHGAF9JQBSGMMAF9FQBCBRGEXABCTJHVAVDBBBHECBDtHOCUU98D8cFCUU98D8cEHND9OABDBBBHKAEDQILKOSQfbPden8c8d8e8fCggFDtD9OD/6FAKAEDQBFGENVcMTtmYi8ZpyHECTD+sFD/6FHID/gFAECTD+rFCTD+sFD/6FHLD/gFD/kFD/lFHE9DB/+g6DYALAEAOD+2FHOALCUUUU94DtHcD9OD9RD/kFHLALD/mFAEAED/mFAIAOAIAcD9OD9RD/kFHEAED/mFD/kFD/kFD/jFD/nFHID/mF9DBBX9LDYHOD/kFCTD+rFALAID/mFAOD/kFCggEDtD9OD9QHLAEAID/mFAOD/kFCaDbCBDnGCBDnECBDnKCBDnOCBDncCBDnMCBDnfCBDnbD9OHEDQNVi8ZcMpySQ8c8dfb8e8fD9QDMBBABAKAND9OALAEDQBFTtGEmYILPdKOenD9QDMBBABCAJRBAGCIJHGAF9JQBMMM/hEIGaF97FaL978jUUUUBCTlREGXAF9FQBCBRIEXAEABDBBBHLABCTJHKDBBBHODQILKOSQfbPden8c8d8e8fHNCTD+sFHVCID+rFDMIBAB9DBBU8/DY9D/zI818/DYAVCEDtD9QD/6FD/nFHVALAODQBFGENVcMTtmYi8ZpyHLCTD+rFCTD+sFD/6FD/mFHOAOD/mFAVALCTD+sFD/6FD/mFHcAcD/mFAVANCTD+rFCTD+sFD/6FD/mFHNAND/mFD/kFD/kFD/lFCBDtD+4FD/jF9DB/+g6DYHVD/mF9DBBX9LDYHLD/kFCggEDtHMD9OAcAVD/mFALD/kFCTD+rFD9QHcANAVD/mFALD/kFCTD+rFAOAVD/mFALD/kFAMD9OD9QHVDQBFTtGEmYILPdKOenHLD8dBAEDBIBDyB+t+J83EBABCNJALD8dFAEDBIBDyF+t+J83EBAKAcAVDQNVi8ZcMpySQ8c8dfb8e8fHVD8dBAEDBIBDyG+t+J83EBABCiJAVD8dFAEDBIBDyE+t+J83EBABCAJRBAICIJHIAF9JQBMMM9jFF97GXAGCGrAF9sHG9FQBCBRFEXABABDBBBHECND+rFCND+sFD/6FAECiD+sFCnD+rFCUUU/8EDtD+uFD/mFDMBBABCTJRBAFCIJHFAG9JQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEMMMFBCUNMIT9tBB`);let r,i=WebAssembly.instantiate(a(n),{}).then(e=>
4134{r=e.instance,r.exports.__wasm_call_ctors()});function a(e){let n=new Uint8Array(e.length);for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);n[t]=r>96?r-71:r>64?r-65:r>47?r+4:r>46?63:62}let r=0;for(let i=0;i<e.length;++i)n[r++]=n[i]<60?t[n[i]]:(n[i]-60)*64+n[++i];return n.buffer.slice(0,r)}function o(e,t,n,i,a,o){let s=r.exports.sbrk,c=n+3&-4,l=s(c*i),u=s(a.length),d=new Uint8Array(r.exports.memory.buffer);d.set(a,u);let f=e(l,n,i,u,a.length);if(f===0&&o&&o(l,c,i),t.set(d.subarray(l,l+n*i)),s(l-s(0)),f!==0)throw Error(`Malformed buffer data: ${f}`)}let s={0:``,1:`meshopt_decodeFilterOct`,2:`meshopt_decodeFilterQuat`,3:`meshopt_decodeFilterExp`,NONE:``,OCTAHEDRAL:`meshopt_decodeFilterOct`,QUATERNION:`meshopt_decodeFilterQuat`,EXPONENTIAL:`meshopt_decodeFilterExp`},c={0:`meshopt_decodeVertexBuffer`,1:`meshopt_decodeIndexBuffer`,2:`meshopt_decodeIndexSequence`,ATTRIBUTES:`meshopt_decodeVertexBuffer`,TRIANGLES:`meshopt_decodeIndexBuffer`,INDICES:`meshopt_decodeIndexSequence`};return fP={ready:i,supported:!0,decodeVertexBuffer(e,t,n,i,a){o(r.exports.meshopt_decodeVertexBuffer,e,t,n,i,r.exports[s[a]])},decodeIndexBuffer(e,t,n,i){o(r.exports.meshopt_decodeIndexBuffer,e,t,n,i)},decodeIndexSequence(e,t,n,i){o(r.exports.meshopt_decodeIndexSequence,e,t,n,i)},decodeGltfBuffer(e,t,n,i,a,l){o(r.exports[c[a]],e,t,n,i,r.exports[s[l]])}},fP};function mP(){var e=Object.create(null);function t(n,i){var a=n.id,o=n.name,s=n.dependencies;s===void 0&&(s=[]);var c=n.init;c===void 0&&(c=function(){});var l=n.getTransferables;if(l===void 0&&(l=null),!e[a])try{s=s.map(function(n){return n&&n.isWorkerModule&&(t(n,function(e){if(e instanceof Error)throw e}),n=e[n.id].value),n}),c=r(`<`+o+`>.init`,c),l&&=r(`<`+o+`>.getTransferables`,l);var u=null;typeof c==`function`?u=c.apply(void 0,s):console.error(`worker module init function failed to rehydrate`),e[a]={id:a,value:u,getTransferables:l},i(u)}catch(e){e&&e.noLog||console.error(e),i(e)}}function n(t,n){var r,i=t.id,a=t.args;(!e[i]||typeof e[i].value!=`function`)&&n(Error(`Worker module `+i+`: not found or its 'init' did not return a function`));try{var o=(r=e[i]).value.apply(r,a);o&&typeof o.then==`function`?o.then(s,function(e){return n(e instanceof Error?e:Error(``+e))}):s(o)}catch(e){n(e)}function s(t){try{var r=e[i].getTransferables&&e[i].getTransferables(t);(!r||!Array.isArray(r)||!r.length)&&(r=void 0),n(t,r)}catch(e){console.error(e),n(e)}}}function r(e,t){var n=void 0;self.troikaDefine=function(e){return n=e};var r=URL.createObjectURL(new Blob([`/** `+e.replace(/\*/g,``)+` **/
4135
4136troikaDefine(
4137`+t+`
4138)`],{type:`application/javascript`}));try{importScripts(r)}catch(e){console.error(e)}return URL.revokeObjectURL(r),delete self.troikaDefine,n}self.addEventListener(`message`,function(e){var r=e.data,i=r.messageId,a=r.action,o=r.data;try{a===`registerModule`&&t(o,function(e){e instanceof Error?postMessage({messageId:i,success:!1,error:e.message}):postMessage({messageId:i,success:!0,result:{isCallable:typeof e==`function`}})}),a===`callModule`&&n(o,function(e,t){e instanceof Error?postMessage({messageId:i,success:!1,error:e.message}):postMessage({messageId:i,success:!0,result:e},t||void 0)})}catch(e){postMessage({messageId:i,success:!1,error:e.stack})}})}function hP(e){var t=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t._getInitResult().then(function(t){if(typeof t==`function`)return t.apply(void 0,e);throw Error("Worker module function was called but `init` did not return a callable function")})};return t._getInitResult=function(){var n=e.dependencies,r=e.init;n=Array.isArray(n)?n.map(function(e){return e&&(e=e.onMainThread||e,e._getInitResult&&(e=e._getInitResult())),e}):[];var i=Promise.all(n).then(function(e){return r.apply(null,e)});return t._getInitResult=function(){return i},i},t}var gP=function(){var e=!1;if(typeof window<`u`&&window.document!==void 0)try{new Worker(URL.createObjectURL(new Blob([``],{type:`application/javascript`}))).terminate(),e=!0}catch(e){console.log(`Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: [`+e.message+`]`)}return gP=function(){return e},e},_P=0,vP=0,yP=!1,bP=Object.create(null),xP=Object.create(null),SP=Object.create(null);function CP(e){if((!e||typeof e.init!=`function`)&&!yP)throw Error("requires `options.init` function");
4138var t=e.dependencies,n=e.init,r=e.getTransferables,i=e.workerId,a=hP(e);i??=`#default`;var o=`workerModule`+ ++_P,s=e.name||o,c=null;t&&=t.map(function(e){return typeof e==`function`&&!e.workerModuleData&&(yP=!0,e=CP({workerId:i,name:`<`+s+`> function dependency: `+e.name,init:`function(){return (
4139`+TP(e)+`
4140)}`}),yP=!1),e&&e.workerModuleData&&(e=e.workerModuleData),e});function l(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(!gP())return a.apply(void 0,e);if(!c){c=DP(i,`registerModule`,l.workerModuleData);var n=function(){c=null,xP[i].delete(n)};(xP[i]||(xP[i]=new Set)).add(n)}return c.then(function(t){if(t.isCallable)return DP(i,`callModule`,{id:o,args:e});throw Error("Worker module function was called but `init` did not return a callable function")})}return l.workerModuleData={isWorkerModule:!0,id:o,name:s,dependencies:t,init:TP(n),getTransferables:r&&TP(r)},l.onMainThread=a,l}function wP(e){xP[e]&&xP[e].forEach(function(e){e()}),bP[e]&&(bP[e].terminate(),delete bP[e])}function TP(e){var t=e.toString();return!/^function/.test(t)&&/^\w+\s*\(/.test(t)&&(t=`function `+t),t}function EP(e){var t=bP[e];if(!t){var n=TP(mP);t=bP[e]=new Worker(URL.createObjectURL(new Blob([`/** Worker Module Bootstrap: `+e.replace(/\*/g,``)+` **/
4141
4142;(`+n+`)()`],{type:`application/javascript`}))),t.onmessage=function(e){var t=e.data,n=t.messageId,r=SP[n];if(!r)throw Error(`WorkerModule response with empty or unknown messageId`);delete SP[n],r(t)}}return t}function DP(e,t,n){return new Promise(function(r,i){var a=++vP;SP[a]=function(e){e.success?r(e.result):i(Error(`Error in worker `+t+` call: `+e.error))},EP(e).postMessage({messageId:a,action:t,data:n})})}function OP(){return function(e){function t(e,t,n,r,i,a,o,s){var c=1-o;s.x=c*c*e+2*c*o*n+o*o*i,s.y=c*c*t+2*c*o*r+o*o*a}function n(e,t,n,r,i,a,o,s,c,l){var u=1-c;l.x=u*u*u*e+3*u*u*c*n+3*u*c*c*i+c*c*c*o,l.y=u*u*u*t+3*u*u*c*r+3*u*c*c*a+c*c*c*s}function r(e,t){for(var n=/([MLQCZ])([^MLQCZ]*)/g,r,i,a,o,s;r=n.exec(e);){var c=r[2].replace(/^\s*|\s*$/g,``).split(/[,\s]+/).map(function(e){return parseFloat(e)});switch(r[1]){case`M`:o=i=c[0],s=a=c[1];break;case`L`:(c[0]!==o||c[1]!==s)&&t(`L`,o,s,o=c[0],s=c[1]);break;case`Q`:t(`Q`,o,s,o=c[2],s=c[3],c[0],c[1]);break;case`C`:t(`C`,o,s,o=c[4],s=c[5],c[0],c[1],c[2],c[3]);break;case`Z`:(o!==i||s!==a)&&t(`L`,o,s,i,a);break}}}function i(e,i,a){a===void 0&&(a=16);var o={x:0,y:0};r(e,function(e,r,s,c,l,u,d,f,p){switch(e){case`L`:i(r,s,c,l);break;case`Q`:for(var m=r,h=s,g=1;g<a;g++)t(r,s,u,d,c,l,g/(a-1),o),i(m,h,o.x,o.y),m=o.x,h=o.y;break;case`C`:for(var _=r,v=s,y=1;y<a;y++)n(r,s,u,d,f,p,c,l,y/(a-1),o),i(_,v,o.x,o.y),_=o.x,v=o.y;break}})}var a=`precision highp float;attribute vec2 aUV;varying vec2 vUV;void main(){vUV=aUV;gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}`,o=`precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){gl_FragColor=texture2D(tex,vUV);}`,s=new WeakMap,c={premultipliedAlpha:!1,preserveDrawingBuffer:!0,antialias:!1,depth:!1};function l(e,t){var n=e.getContext?e.getContext(`webgl`,c):e,r=s.get(n);if(!r){var i=typeof WebGL2RenderingContext<`u`&&n instanceof WebGL2RenderingContext,a={},o={},l={},u=-1,d=[];n.canvas.addEventListener(`webglcontextlost`,function(e){m(),e.preventDefault()},!1);function e(e){var t=a[e];if(!t&&(t=a[e]=n.getExtension(e),!t))throw Error(e+` not supported`);return t}function t(e,t){var r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),r}function c(r,a,s,c){if(!o[r]){var l={},u={},d=n.createProgram();n.attachShader(d,t(a,n.VERTEX_SHADER)),n.attachShader(d,t(s,n.FRAGMENT_SHADER)),n.linkProgram(d),o[r]={program:d,transaction:function(t){n.useProgram(d),t({setUniform:function(e,t){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];var a=u[t]||(u[t]=n.getUniformLocation(d,t));n[`uniform`+e].apply(n,[a].concat(r))},setAttribute:function(t,r,a,o,s){var c=l[t];c||=l[t]={buf:n.createBuffer(),loc:n.getAttribLocation(d,t),data:null},n.bindBuffer(n.ARRAY_BUFFER,c.buf),n.vertexAttribPointer(c.loc,r,n.FLOAT,!1,0,0),n.enableVertexAttribArray(c.loc),i?n.vertexAttribDivisor(c.loc,o):e(`ANGLE_instanced_arrays`).vertexAttribDivisorANGLE(c.loc,o),s!==c.data&&(n.bufferData(n.ARRAY_BUFFER,s,a),c.data=s)}})}}}o[r].transaction(c)}function f(e,t){u++;try{n.activeTexture(n.TEXTURE0+u);var r=l[e];r||(r=l[e]=n.createTexture(),n.bindTexture(n.TEXTURE_2D,r),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)),n.bindTexture(n.TEXTURE_2D,r),t(r,u)}finally{u--}}function p(e,t,r){var i=n.createFramebuffer();d.push(i),n.bindFramebuffer(n.FRAMEBUFFER,i),n.activeTexture(n.TEXTURE0+t),n.bindTexture(n.TEXTURE_2D,e),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);try{r(i)}finally{n.deleteFramebuffer(i),n.bindFramebuffer(n.FRAMEBUFFER,d[--d.length-1]||null)}}function m(){a={},o={},l={},u=-1,d.length=0}
4142s.set(n,r={gl:n,isWebGL2:i,getExtension:e,withProgram:c,withTexture:f,withTextureFramebuffer:p,handleContextLoss:m})}t(r)}function u(e,t,n,r,i,s,c,u){c===void 0&&(c=15),u===void 0&&(u=null),l(e,function(e){var l=e.gl,d=e.withProgram,f=e.withTexture;f(`copy`,function(e,f){l.texImage2D(l.TEXTURE_2D,0,l.RGBA,i,s,0,l.RGBA,l.UNSIGNED_BYTE,t),d(`copy`,a,o,function(e){var t=e.setUniform,a=e.setAttribute;a(`aUV`,2,l.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),t(`1i`,`image`,f),l.bindFramebuffer(l.FRAMEBUFFER,u||null),l.disable(l.BLEND),l.colorMask(c&8,c&4,c&2,c&1),l.viewport(n,r,i,s),l.scissor(n,r,i,s),l.drawArrays(l.TRIANGLES,0,3)})})})}function d(e,t,n){var r=e.width,i=e.height;l(e,function(a){var o=a.gl,s=new Uint8Array(r*i*4);o.readPixels(0,0,r,i,o.RGBA,o.UNSIGNED_BYTE,s),e.width=t,e.height=n,u(o,s,0,0,r,i)})}var f=Object.freeze({__proto__:null,withWebGLContext:l,renderImageData:u,resizeWebGLCanvasWithoutClearing:d});function p(e,t,n,r,a,o){o===void 0&&(o=1);var s=new Uint8Array(e*t),c=r[2]-r[0],l=r[3]-r[1],u=[];i(n,function(e,t,n,r){u.push({x1:e,y1:t,x2:n,y2:r,minX:Math.min(e,n),minY:Math.min(t,r),maxX:Math.max(e,n),maxY:Math.max(t,r)})}),u.sort(function(e,t){return e.maxX-t.maxX});for(var d=0;d<e;d++)for(var f=0;f<t;f++){var p=h(r[0]+c*(d+.5)/e,r[1]+l*(f+.5)/t),m=(1-Math.abs(p)/a)**o/2;p<0&&(m=1-m),m=Math.max(0,Math.min(255,Math.round(m*255))),s[f*e+d]=m}return s;function h(e,t){for(var n=1/0,r=1/0,i=u.length;i--;){var a=u[i];if(a.maxX+r<=e)break;if(e+r>a.minX&&t-r<a.maxY&&t+r>a.minY){var o=g(e,t,a.x1,a.y1,a.x2,a.y2);o<n&&(n=o,r=Math.sqrt(n))}}return _(e,t)&&(r=-r),r}function _(e,t){for(var n=0,r=u.length;r--;){var i=u[r];if(i.maxX<=e)break;i.y1>t!=i.y2>t&&e<(i.x2-i.x1)*(t-i.y1)/(i.y2-i.y1)+i.x1&&(n+=i.y1<i.y2?1:-1)}return n!==0}}function m(e,t,n,r,i,a,o,s,c,l){a===void 0&&(a=1),s===void 0&&(s=0),c===void 0&&(c=0),l===void 0&&(l=0),h(e,t,n,r,i,a,o,null,s,c,l)}function h(e,t,n,r,i,a,o,s,c,l,d){a===void 0&&(a=1),c===void 0&&(c=0),l===void 0&&(l=0),d===void 0&&(d=0);for(var f=p(e,t,n,r,i,a),m=new Uint8Array(f.length*4),h=0;h<f.length;h++)m[h*4+d]=f[h];u(o,m,c,l,e,t,1<<3-d,s)}function g(e,t,n,r,i,a){var o=i-n,s=a-r,c=o*o+s*s,l=c?Math.max(0,Math.min(1,((e-n)*o+(t-r)*s)/c)):0,u=e-(n+l*o),d=t-(r+l*s);return u*u+d*d}var _=Object.freeze({__proto__:null,generate:p,generateIntoCanvas:m,generateIntoFramebuffer:h}),v=`precision highp float;uniform vec4 uGlyphBounds;attribute vec2 aUV;attribute vec4 aLineSegment;varying vec4 vLineSegment;varying vec2 vGlyphXY;void main(){vLineSegment=aLineSegment;vGlyphXY=mix(uGlyphBounds.xy,uGlyphBounds.zw,aUV);gl_Position=vec4(mix(vec2(-1.0),vec2(1.0),aUV),0.0,1.0);}`,y=`precision highp float;uniform vec4 uGlyphBounds;uniform float uMaxDistance;uniform float uExponent;varying vec4 vLineSegment;varying vec2 vGlyphXY;float absDistToSegment(vec2 point,vec2 lineA,vec2 lineB){vec2 lineDir=lineB-lineA;float lenSq=dot(lineDir,lineDir);float t=lenSq==0.0 ? 0.0 : clamp(dot(point-lineA,lineDir)/lenSq,0.0,1.0);vec2 linePt=lineA+t*lineDir;return distance(point,linePt);}void main(){vec4 seg=vLineSegment;vec2 p=vGlyphXY;float dist=absDistToSegment(p,seg.xy,seg.zw);float val=pow(1.0-clamp(dist/uMaxDistance,0.0,1.0),uExponent)*0.5;bool crossing=(seg.y>p.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y<vLineSegment.w;gl_FragColor=vec4(crossingUp ? 1.0/255.0 : 0.0,crossing&&!crossingUp ? 1.0/255.0 : 0.0,0.0,val);}`,b=`precision highp float;uniform sampler2D tex;varying vec2 vUV;void main(){vec4 color=texture2D(tex,vUV);bool inside=color.r!=color.g;float val=inside ? 1.0-color.a : color.a;gl_FragColor=vec4(val);}`,x=new Float32Array([0,0,2,0,0,2]),S=null,C=!1,w={},T=new WeakMap;function E(e){if(!C&&!A(e))throw Error(`WebGL generation not supported`)}function D(e,t,n,r,i,a,o){if(a===void 0&&(a=1),o===void 0&&(o=null),!o&&(o=S,!o)){var s=typeof OffscreenCanvas==`function`?new OffscreenCanvas(1,1):typeof document<`u`?document.createElement(`canvas`):null;if(!s)throw Error(`OffscreenCanvas or DOM canvas not supported`);o=S=s.getContext(`webgl`,{depth:!1})}E(o);var c=new Uint8Array(e*t*4);l(o,function(o){var s=o.gl,l=o.withTexture,u=o.withTextureFramebuffer;l(`readable`,function(o,l){s.texImage2D(s.TEXTURE_2D,0,s.RGBA,e,t,0,s.RGBA,s.UNSIGNED_BYTE,null),u(o,l,function(o){k(e,t,n,r,i,a,s,o,0,0,0),s.readPixels(0,0,e,t,s.RGBA,s.UNSIGNED_BYTE,c
4142)})})});for(var u=new Uint8Array(e*t),d=0,f=0;d<c.length;d+=4)u[f++]=c[d];return u}function O(e,t,n,r,i,a,o,s,c,l){a===void 0&&(a=1),s===void 0&&(s=0),c===void 0&&(c=0),l===void 0&&(l=0),k(e,t,n,r,i,a,o,null,s,c,l)}function k(e,t,n,r,o,s,c,u,d,f,p){s===void 0&&(s=1),d===void 0&&(d=0),f===void 0&&(f=0),p===void 0&&(p=0),E(c);var m=[];i(n,function(e,t,n,r){m.push(e,t,n,r)}),m=new Float32Array(m),l(c,function(n){var i=n.gl,c=n.isWebGL2,l=n.getExtension,h=n.withProgram,g=n.withTexture,_=n.withTextureFramebuffer,S=n.handleContextLoss;if(g(`rawDistances`,function(n,g){(e!==n._lastWidth||t!==n._lastHeight)&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,n._lastWidth=e,n._lastHeight=t,0,i.RGBA,i.UNSIGNED_BYTE,null),h(`main`,v,y,function(a){var u=a.setAttribute,d=a.setUniform,f=!c&&l(`ANGLE_instanced_arrays`),p=!c&&l(`EXT_blend_minmax`);u(`aUV`,2,i.STATIC_DRAW,0,x),u(`aLineSegment`,4,i.DYNAMIC_DRAW,1,m),d.apply(void 0,[`4f`,`uGlyphBounds`].concat(r)),d(`1f`,`uMaxDistance`,o),d(`1f`,`uExponent`,s),_(n,g,function(n){i.enable(i.BLEND),i.colorMask(!0,!0,!0,!0),i.viewport(0,0,e,t),i.scissor(0,0,e,t),i.blendFunc(i.ONE,i.ONE),i.blendEquationSeparate(i.FUNC_ADD,c?i.MAX:p.MAX_EXT),i.clear(i.COLOR_BUFFER_BIT),c?i.drawArraysInstanced(i.TRIANGLES,0,3,m.length/4):f.drawArraysInstancedANGLE(i.TRIANGLES,0,3,m.length/4)})}),h(`post`,a,b,function(n){n.setAttribute(`aUV`,2,i.STATIC_DRAW,0,x),n.setUniform(`1i`,`tex`,g),i.bindFramebuffer(i.FRAMEBUFFER,u),i.disable(i.BLEND),i.colorMask(p===0,p===1,p===2,p===3),i.viewport(d,f,e,t),i.scissor(d,f,e,t),i.drawArrays(i.TRIANGLES,0,3)})}),i.isContextLost())throw S(),Error(`webgl context lost`)})}function A(e){var t=!e||e===S?w:e.canvas||e,n=T.get(t);if(n===void 0){C=!0;var r=null;try{var i=[97,106,97,61,99,137,118,80,80,118,137,99,61,97,106,97],a=D(4,4,`M8,8L16,8L24,24L16,24Z`,[0,0,32,32],24,1,e);n=a&&i.length===a.length&&a.every(function(e,t){return e===i[t]}),n||(r=`bad trial run results`,console.info(i,a))}catch(e){n=!1,r=e.message}r&&console.warn(`WebGL SDF generation not supported:`,r),C=!1,T.set(t,n)}return n}var j=Object.freeze({__proto__:null,generate:D,generateIntoCanvas:O,generateIntoFramebuffer:k,isSupported:A});function M(e,t,n,r,i,a){i===void 0&&(i=Math.max(r[2]-r[0],r[3]-r[1])/2),a===void 0&&(a=1);try{return D.apply(j,arguments)}catch(e){return console.info(`WebGL SDF generation failed, falling back to JS`,e),p.apply(_,arguments)}}function N(e,t,n,r,i,a,o,s,c,l){i===void 0&&(i=Math.max(r[2]-r[0],r[3]-r[1])/2),a===void 0&&(a=1),s===void 0&&(s=0),c===void 0&&(c=0),l===void 0&&(l=0);try{return O.apply(j,arguments)}catch(e){return console.info(`WebGL SDF generation failed, falling back to JS`,e),m.apply(_,arguments)}}return e.forEachPathCommand=r,e.generate=M,e.generateIntoCanvas=N,e.javascript=_,e.pathToLineSegments=i,e.webgl=j,e.webglUtils=f,Object.defineProperty(e,`__esModule`,{value:!0}),e}({})}function kP(){return function(e){var t={R:`13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73`,EN:`1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9`,ES:`17,2,6dp+1,f+1,av,16vr,mx+1,4o,2`,ET:`z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj`,AN:`16o+5,2j+9,2+1,35,ed,1ff2+9,87+u`,CS:`18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b`,B:`a,3,f+2,2v,690`,S:`9,2,k`,WS:`c,k,4f4,1vk+a,u,1j,335`,ON:`x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i`,BN:`0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,
4142119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1`,NSM:`lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n`,AL:`16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d`,LRO:`6ct`,RLO:`6cu`,LRE:`6cq`,RLE:`6cr`,PDF:`6cs`,LRI:`6ee`,RLI:`6ef`,FSI:`6eg`,PDI:`6eh`},n={},r={};n.L=1,r[1]=`L`,Object.keys(t).forEach(function(e,t){n[e]=1<<t+1,r[n[e]]=e}),Object.freeze(n);var i=n.LRI|n.RLI|n.FSI,a=n.L|n.R|n.AL,o=n.B|n.S|n.WS|n.ON|n.FSI|n.LRI|n.RLI|n.PDI,s=n.BN|n.RLE|n.LRE|n.RLO|n.LRO|n.PDF,c=n.S|n.WS|n.B|i|n.PDI|s,l=null;function u(){if(!l){l=new Map;var e=function(e){if(t.hasOwnProperty(e)){var r=0;t[e].split(`,`).forEach(function(t){var i=t.split(`+`),a=i[0],o=i[1];a=parseInt(a,36),o=o?parseInt(o,36):0,l.set(r+=a,n[e]);for(var s=0;s<o;s++)l.set(++r,n[e])})}};for(var r in t)e(r)}}function d(e){return u(),l.get(e.codePointAt(0))||n.L}function f(e){return r[d(e)]}var p={pairs:`14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1`,canonical:`6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye`};function m(e,t){var n=36,r=0,i=new Map,a=t&&new Map,o;return e.split(`,`).forEach(function e(s){if(s.indexOf(`+`)!==-1)for(var c=+s;c--;)e(o);else{o=s;var l=s.split(`>`),u=l[0],d=l[1];u=String.fromCodePoint(r+=parseInt(u,n)),d=String.fromCodePoint(r+=parseInt(d,n)),i.set(u,d),t&&a.set(d,u)}}),{map:i,reverseMap:a}}var h,g,_;function v(){if(!h){var e=m(p.pairs,!0),t=e.map,n=e.reverseMap;h=t,g=n,_=m(p.canonical,!1).map}}function y(e){return v(),h.get(e)||null}function b(e){return v(),g.get(e)||null}function x(e){return v(),_.get(e)||null}var S=n.L,C=n.R,w=n.EN,T=n.ES,E=n.ET,D=n.AN,O=n.CS,k=n.B,A=n.S,j=n.ON,M=n.BN,N=n.NSM,P=n.AL,ee=n.LRO,F=n.RLO,I=n.LRE,te=n.RLE,ne=n.PDF,L=n.LRI,re=n.RLI,ie=n.FSI,R=n.PDI;function ae(e,t){for(var n=125,r=new Uint32Array(e.length),l=0;l<e.length;l++)r[l]=d(e[l]);var u=new Map;function f(e,t){var n=r[e];r[e]=t,u.set(n,u.get(n)-1),n&o&&u.set(o,u.get(o)-1),u.set(t,(u.get(t)||0)+1),t&o&&u.set(o,(u.get(o)||0)+1)}for(var p=new Uint8Array(e.length),m=new Map,h=[],g=null,_=0;_<e.length;_++)g||h.push(g={start:_,end:e.length-1,level:t===`rtl`?1:t===`ltr`?0:Xt(_,!1)}),r[_]&k&&(g.end=_,g=null);for(var v=te|I|F|ee|i|R|ne|k,ae=function(e){return e+(e&1?1:2)},z=function(e){return e+(e&1?2:1)},oe=0;oe<h.length;oe++){g=h[oe];var se=[{_level:g.level,_override:0,_isolate:0}],B=void 0,ce=0,le=0,ue=0;u.clear();for(var de=g.start;de<=g.end;de++){var fe=r[de];if(B=se[se.length-1],u.set(fe,(u.get(fe)||0)+1),fe&o&&u.set(o,(u.get(o)||0)+1),fe&v)if(fe&(te|I)){p[de]=B._level;var pe=(fe===te?z:ae)(B._level);pe<=n&&!ce&&!le?se.push({_level:pe,_override:0,_isolate:0}):ce||le++}else if(fe&(F|ee)){p[de]=B._level;var V=(fe===F?z:ae)(B._level);V<=n&&!ce&&!le?se.push({_level:V,_override:fe&F?C:S,_isolate:0}):ce||le++}else if(fe&i){fe&ie&&(fe=Xt(de+1,!0)===1?re:L),p[de]=B._level,B._override&&f(de,B._override);var me=(fe===re?z:ae)(B._level);
vendor: 4,444 bytes, line 4142
4142me<=n&&ce===0&&le===0?(ue++,se.push({_level:me,_override:0,_isolate:1,_isolInitIndex:de})):ce++}else if(fe&R){if(ce>0)ce--;else if(ue>0){for(le=0;!se[se.length-1]._isolate;)se.pop();var he=se[se.length-1]._isolInitIndex;he!=null&&(m.set(he,de),m.set(de,he)),se.pop(),ue--}B=se[se.length-1],p[de]=B._level,B._override&&f(de,B._override)}else fe&ne?(ce===0&&(le>0?le--:!B._isolate&&se.length>1&&(se.pop(),B=se[se.length-1])),p[de]=B._level):fe&k&&(p[de]=g.level);else p[de]=B._level,B._override&&fe!==M&&f(de,B._override)}for(var ge=[],H=null,_e=g.start;_e<=g.end;_e++){var U=r[_e];if(!(U&s)){var ve=p[_e],ye=U&i,be=U===R;H&&ve===H._level?(H._end=_e,H._endsWithIsolInit=ye):ge.push(H={_start:_e,_end:_e,_level:ve,_startsWithPDI:be,_endsWithIsolInit:ye})}}for(var xe=[],Se=0;Se<ge.length;Se++){var Ce=ge[Se];if(!Ce._startsWithPDI||Ce._startsWithPDI&&!m.has(Ce._start)){for(var we=[H=Ce],Te=void 0;H&&H._endsWithIsolInit&&(Te=m.get(H._end))!=null;)for(var Ee=Se+1;Ee<ge.length;Ee++)if(ge[Ee]._start===Te){we.push(H=ge[Ee]);break}for(var De=[],Oe=0;Oe<we.length;Oe++)for(var ke=we[Oe],Ae=ke._start;Ae<=ke._end;Ae++)De.push(Ae);for(var je=p[De[0]],Me=g.level,Ne=De[0]-1;Ne>=0;Ne--)if(!(r[Ne]&s)){Me=p[Ne];break}var Pe=De[De.length-1],Fe=p[Pe],Ie=g.level;if(!(r[Pe]&i)){for(var Le=Pe+1;Le<=g.end;Le++)if(!(r[Le]&s)){Ie=p[Le];break}}xe.push({_seqIndices:De,_sosType:Math.max(Me,je)%2?C:S,_eosType:Math.max(Ie,Fe)%2?C:S})}}for(var Re=0;Re<xe.length;Re++){var ze=xe[Re],W=ze._seqIndices,Be=ze._sosType,Ve=ze._eosType,He=p[W[0]]&1?C:S;if(u.get(N))for(var Ue=0;Ue<W.length;Ue++){var We=W[Ue];if(r[We]&N){for(var Ge=Be,Ke=Ue-1;Ke>=0;Ke--)if(!(r[W[Ke]]&s)){Ge=r[W[Ke]];break}f(We,Ge&(i|R)?j:Ge)}}if(u.get(w))for(var qe=0;qe<W.length;qe++){var Je=W[qe];if(r[Je]&w)for(var Ye=qe-1;Ye>=-1;Ye--){var Xe=Ye===-1?Be:r[W[Ye]];if(Xe&a){Xe===P&&f(Je,D);break}}}if(u.get(P))for(var Ze=0;Ze<W.length;Ze++){var Qe=W[Ze];r[Qe]&P&&f(Qe,C)}if(u.get(T)||u.get(O))for(var $e=1;$e<W.length-1;$e++){var et=W[$e];if(r[et]&(T|O)){for(var tt=0,nt=0,rt=$e-1;rt>=0&&(tt=r[W[rt]],tt&s);rt--);for(var it=$e+1;it<W.length&&(nt=r[W[it]],nt&s);it++);tt===nt&&(r[et]===T?tt===w:tt&(w|D))&&f(et,tt)}}if(u.get(w)){for(var at=0;at<W.length;at++)if(r[W[at]]&w){for(var ot=at-1;ot>=0&&r[W[ot]]&(E|s);ot--)f(W[ot],w);for(at++;at<W.length&&r[W[at]]&(E|s|w);at++)r[W[at]]!==w&&f(W[at],w)}}if(u.get(E)||u.get(T)||u.get(O))for(var st=0;st<W.length;st++){var ct=W[st];if(r[ct]&(E|T|O)){f(ct,j);for(var lt=st-1;lt>=0&&r[W[lt]]&s;lt--)f(W[lt],j);for(var ut=st+1;ut<W.length&&r[W[ut]]&s;ut++)f(W[ut],j)}}if(u.get(w))for(var dt=0,ft=Be;dt<W.length;dt++){var pt=W[dt],mt=r[pt];mt&w?ft===S&&f(pt,S):mt&a&&(ft=mt)}if(u.get(o)){for(var ht=C|w|D,gt=ht|S,_t=[],vt=[],yt=0;yt<W.length;yt++)if(r[W[yt]]&o){var bt=e[W[yt]],xt=void 0;if(y(bt)!==null)if(vt.length<63)vt.push({char:bt,seqIndex:yt});else break;else if((xt=b(bt))!==null)for(var St=vt.length-1;St>=0;St--){var Ct=vt[St].char;if(Ct===xt||Ct===b(x(bt))||y(x(Ct))===bt){_t.push([vt[St].seqIndex,yt]),vt.length=St;break}}}_t.sort(function(e,t){return e[0]-t[0]});for(var wt=0;wt<_t.length;wt++){for(var Tt=_t[wt],Et=Tt[0],Dt=Tt[1],Ot=!1,kt=0,At=Et+1;At<Dt;At++){var jt=W[At];if(r[jt]&gt){Ot=!0;var Mt=r[jt]&ht?C:S;if(Mt===He){kt=Mt;break}}}if(Ot&&!kt){kt=Be;for(var Nt=Et-1;Nt>=0;Nt--){var Pt=W[Nt];if(r[Pt]&gt){var Ft=r[Pt]&ht?C:S;kt=Ft===He?He:Ft;break}}}if(kt){if(r[W[Et]]=r[W[Dt]]=kt,kt!==He){for(var It=Et+1;It<W.length;It++)if(!(r[W[It]]&s)){d(e[W[It]])&N&&(r[W[It]]=kt);break}}if(kt!==He){for(var Lt=Dt+1;Lt<W.length;Lt++)if(!(r[W[Lt]]&s)){d(e[W[Lt]])&N&&(r[W[Lt]]=kt);break}}}}for(var Rt=0;Rt<W.length;Rt++)if(r[W[Rt]]&o){for(var zt=Rt,Bt=Rt,Vt=Be,Ht=Rt-1;Ht>=0;Ht--)if(r[W[Ht]]&s)zt=Ht;else{Vt=r[W[Ht]]&ht?C:S;break}for(var Ut=Ve,Wt=Rt+1;Wt<W.length;Wt++)if(r[W[Wt]]&(o|s))Bt=Wt;else{Ut=r[W[Wt]]&ht?C:S;break}for(var Gt=zt;Gt<=Bt;Gt++)r[W[Gt]]=Vt===Ut?Vt:He;Rt=Bt}}}for(var Kt=g.start;Kt<=g.end;Kt++){var qt=p[Kt],Jt=r[Kt];if(qt&1?Jt&(S|w|D)&&p[Kt]++:Jt&C?p[Kt]++:Jt&(D|w)&&(p[Kt]+=2),Jt&s&&(p[Kt]=Kt===0?g.level:p[Kt-1]),Kt===g.end||d(e[Kt])&(A|k))for(var Yt=Kt;Yt>=0&&d(e[Yt])&c;Yt--)p[Yt]=g.level}}return{levels:p,paragraphs:h};function Xt(t,n){for(var a=t;a<e.length;a++){var o=r[a];if(o&(C|P))return 1;if(o&(k|S)||n&&o===R)return 0;if(o&i){var s=Zt(a);a=s===-1?e.length:s}}return 0}function Zt(t){for(var n=1,a=t+1;a<e.length;a++){var o=r[a];if(o&k)break;if(o&R){if(--n===0)return a}else o&i&&n++}return-1}}var z=`14>1,j>2,t>2,u>2,1a>g,2v3>
41421,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1`,oe;function se(){if(!oe){var e=m(z,!0),t=e.map;e.reverseMap.forEach(function(e,n){t.set(n,e)}),oe=t}}function B(e){return se(),oe.get(e)||null}function ce(e,t,n,r){var i=e.length;n=Math.max(0,n==null?0:+n),r=Math.min(i-1,r==null?i-1:+r);for(var a=new Map,o=n;o<=r;o++)if(t[o]&1){var s=B(e[o]);s!==null&&a.set(o,s)}return a}function le(e,t,n,r){var i=e.length;n=Math.max(0,n==null?0:+n),r=Math.min(i-1,r==null?i-1:+r);var a=[];return t.paragraphs.forEach(function(i){var o=Math.max(n,i.start),s=Math.min(r,i.end);if(o<s){for(var l=t.levels.slice(o,s+1),u=s;u>=o&&d(e[u])&c;u--)l[u]=i.level;for(var f=i.level,p=1/0,m=0;m<l.length;m++){var h=l[m];h>f&&(f=h),h<p&&(p=h|1)}for(var g=f;g>=p;g--)for(var _=0;_<l.length;_++)if(l[_]>=g){for(var v=_;_+1<l.length&&l[_+1]>=g;)_++;_>v&&a.push([v+o,_+o])}}}),a}function ue(e,t,n,r){var i=de(e,t,n,r),a=[].concat(e);return i.forEach(function(n,r){a[r]=(t.levels[n]&1?B(e[n]):null)||e[n]}),a.join(``)}function de(e,t,n,r){for(var i=le(e,t,n,r),a=[],o=0;o<e.length;o++)a[o]=o;return i.forEach(function(e){for(var t=e[0],n=e[1],r=a.slice(t,n+1),i=r.length;i--;)a[n-i]=r[i]}),a}return e.closingToOpeningBracket=b,e.getBidiCharType=d,e.getBidiCharTypeName=f,e.getCanonicalBracket=x,e.getEmbeddingLevels=ae,e.getMirroredCharacter=B,e.getMirroredCharactersMap=ce,e.getReorderSegments=le,e.getReorderedIndices=de,e.getReorderedString=ue,e.openingToClosingBracket=y,Object.defineProperty(e,`__esModule`,{value:!0}),e}({})}var AP=/\bvoid\s+main\s*\(\s*\)\s*{/g;function jP(e){let t=/^[ \t]*#include +<([\w\d./]+)>/gm;function n(e,t){let n=iD[t];return n?jP(n):e}return e.replace(t,n)}var MP=[];for(let e=0;e<256;e++)MP[e]=(e<16?`0`:``)+e.toString(16);function NP(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(MP[e&255]+MP[e>>8&255]+MP[e>>16&255]+MP[e>>24&255]+`-`+MP[t&255]+MP[t>>8&255]+`-`+MP[t>>16&15|64]+MP[t>>24&255]+`-`+MP[n&63|128]+MP[n>>8&255]+`-`+MP[n>>16&255]+MP[n>>24&255]+MP[r&255]+MP[r>>8&255]+MP[r>>16&255]+MP[r>>24&255]).toUpperCase()}var PP=Object.assign||function(){let e=arguments[0];for(let t=1,n=arguments.length;t<n;t++){let n=arguments[t];if(n)for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},FP=Date.now(),IP=new WeakMap,LP=new Map,RP=1e10;function zP(e,t){let n=GP(t),r=IP.get(e);if(r||IP.set(e,r=Object.create(null)),r[n])return new r[n];let i=`_onBeforeCompile${n}`,a=function(r,a){e.onBeforeCompile.call(this,r,a);let o=this.customProgramCacheKey()+`|`+r.vertexShader+`|`+r.fragmentShader,s=LP[o];s||=LP[o]=BP(this,r,t,n),r.vertexShader=s.vertexShader,r.fragmentShader=s.fragmentShader,PP(r.uniforms,this.uniforms),t.timeUniform&&(r.uniforms[t.timeUniform]={get value(){return Date.now()-FP}}),this[i]&&this[i](r)},o=function(){return s(t.chained?e:e.clone())},s=function(r){let i=Object.create(r,c);return Object.defineProperty(i,`baseMaterial`,{value:e}),Object.defineProperty(i,`id`,{value:RP++}),i.uuid=NP(),i.uniforms=PP({},r.uniforms,t.uniforms),i.defines=PP({},r.defines,t.defines),i.defines[`TROIKA_DERIVED_MATERIAL_${n}`]=``,i.extensions=PP({},r.extensions,t.extensions),i._listeners=void 0,i},c={constructor:{value:o},isDerivedMaterial:{value:!0},type:{get:()=>e.type,set:t=>{e.type=t}},isDerivedFrom:{writable:!0,configurable:!0,value:function(e){let t=this.baseMaterial;return e===t||t.isDerivedMaterial&&t.isDerivedFrom(e)||!1}},customProgramCacheKey:{writable:!0,configurable:!0,value:function(){return e.customProgramCacheKey()+`|`+n}},onBeforeCompile:{get(){return a},set(e){this[i]=e}},copy:{writable:!0,configurable:!0,value:function(t){return e.copy.call(this,t),!e.isShaderMaterial&&!e.isDerivedMaterial&&(PP(this.extensions,t.extensions),PP(this.defines,t.defines),PP(this.uniforms,SC.clone(t.uniforms)
4142)),this}},clone:{writable:!0,configurable:!0,value:function(){return s(new e.constructor).copy(this)}},getDepthMaterial:{writable:!0,configurable:!0,value:function(){let n=this._depthMaterial;return n||(n=this._depthMaterial=zP(e.isDerivedMaterial?e.getDepthMaterial():new NC({depthPacking:bh}),t),n.defines.IS_DEPTH_MATERIAL=``,n.uniforms=this.uniforms),n}},getDistanceMaterial:{writable:!0,configurable:!0,value:function(){let n=this._distanceMaterial;return n||(n=this._distanceMaterial=zP(e.isDerivedMaterial?e.getDistanceMaterial():new PC,t),n.defines.IS_DISTANCE_MATERIAL=``,n.uniforms=this.uniforms),n}},dispose:{writable:!0,configurable:!0,value(){let{_depthMaterial:t,_distanceMaterial:n}=this;t&&t.dispose(),n&&n.dispose(),e.dispose.call(this)}}};return r[n]=o,new o}function BP(e,{vertexShader:t,fragmentShader:n},r,i){let{vertexDefs:a,vertexMainIntro:o,vertexMainOutro:s,vertexTransform:c,fragmentDefs:l,fragmentMainIntro:u,fragmentMainOutro:d,fragmentColorTransform:f,customRewriter:p,timeUniform:m}=r;if(a||=``,o||=``,s||=``,l||=``,u||=``,d||=``,(c||p)&&(t=jP(t)),(f||p)&&(n=n.replace(/^[ \t]*#include <((?:tonemapping|encodings|colorspace|fog|premultiplied_alpha|dithering)_fragment)>/gm,`
4143//!BEGIN_POST_CHUNK $1
4144$&
4145//!END_POST_CHUNK
4146`),n=jP(n)),p){let e=p({vertexShader:t,fragmentShader:n});t=e.vertexShader,n=e.fragmentShader}if(f){let e=[];n=n.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,t=>(e.push(t),``)),d=`${f}\n${e.join(`
4147`)}\n${d}`}if(m){let e=`\nuniform float ${m};\n`;a=e+a,l=e+l}return c&&(t=`vec3 troika_position_${i};
4148vec3 troika_normal_${i};
4149vec2 troika_uv_${i};
4150${t}
4151`,a=`${a}
4152void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) {
4153  ${c}
4154}
4155`,o=`
4156troika_position_${i} = vec3(position);
4157troika_normal_${i} = vec3(normal);
4158troika_uv_${i} = vec2(uv);
4159troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i});
4160${o}
4161`,t=t.replace(/\b(position|normal|uv)\b/g,(e,t,n,r)=>/\battribute\s+vec[23]\s+$/.test(r.substr(0,n))?t:`troika_${t}_${i}`),e.map&&e.map.channel>0||(t=t.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),t=VP(t,i,a,o,s),n=VP(n,i,l,u,d),{vertexShader:t,fragmentShader:n}}function VP(e,t,n,r,i){return(r||i||n)&&(e=e.replace(AP,`
4162${n}
4163void troikaOrigMain${t}() {`),e+=`
4164void main() {
4165  ${r}
4166  troikaOrigMain${t}();
4167  ${i}
4168}`),e}function HP(e,t){return e===`uniforms`?void 0:typeof t==`function`?t.toString():t}var UP=0,WP=new Map;function GP(e){let t=JSON.stringify(e,HP),n=WP.get(t);return n??WP.set(t,n=++UP),n}function KP(){return typeof window>`u`&&(self.window=self),function(e){var t={parse:function(e){var n=t._bin,r=new Uint8Array(e);if(n.readASCII(r,0,4)==`ttcf`){var i=4;n.readUshort(r,i),i+=2,n.readUshort(r,i),i+=2;var a=n.readUint(r,i);i+=4;for(var o=[],s=0;s<a;s++){var c=n.readUint(r,i);i+=4,o.push(t._readFont(r,c))}return o}return[t._readFont(r,0)]},_readFont:function(e,n){var r=t._bin,i=n;r.readFixed(e,n),n+=4;var a=r.readUshort(e,n);n+=2,r.readUshort(e,n),n+=2,r.readUshort(e,n),n+=2,r.readUshort(e,n),n+=2;for(var o=[`cmap`,`head`,`hhea`,`maxp`,`hmtx`,`name`,`OS/2`,`post`,`loca`,`glyf`,`kern`,`CFF `,`GDEF`,`GPOS`,`GSUB`,`SVG `],s={_data:e,_offset:i},c={},l=0;l<a;l++){var u=r.readASCII(e,n,4);n+=4,r.readUint(e,n),n+=4;var d=r.readUint(e,n);n+=4;var f=r.readUint(e,n);n+=4,c[u]={offset:d,length:f}}for(l=0;l<o.length;l++){var p=o[l];c[p]&&(s[p.trim()]=t[p.trim()].parse(e,c[p].offset,c[p].length,s))}return s},_tabOffset:function(e,n,r){for(var i=t._bin,a=i.readUshort(e,r+4),o=r+12,s=0;s<a;s++){var c=i.readASCII(e,o,4);o+=4,i.readUint(e,o),o+=4;var l=i.readUint(e,o);if(o+=4,i.readUint(e,o),o+=4,c==n)return l}return 0}};t._bin={readFixed:function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<8|e[t+3])/65540},readF2dot14:function(e,n){return t._bin.readShort(e,n)/16384},readInt:function(e,n){return t._bin._view(e).getInt32(n)},readInt8:function(e,n){return t._bin._view(e).getInt8(n)},readShort:function(e,n){return t._bin._view(e).getInt16(n)},readUshort:function(e,n){return t._bin._view(e).getUint16(n)},readUshorts:function(e,n,r){for(var i=[],a=0;a<r;a++)i.push(t._bin.readUshort(e,n+2*a));return i},readUint:function(e,n){return t._bin._view(e).getUint32(n)},readUint64:function(e,n){return 4294967296*t._bin.readUint(e,n)+t._bin.readUint(e,n+4)},readASCII:function(e,t,n){for(var r=``,i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},readUnicode:function(e,t,n){for(var r=``,i=0;i<n;i++){var a=e[t++]<<8|e[t++];r+=String.fromCharCode(a)}return r},_tdec:typeof window<`u`&&window.TextDecoder?new window.TextDecoder:null,readUTF8:function(e,n,r){var i=t._bin._tdec;
4168return i&&n==0&&r==e.length?i.decode(e):t._bin.readASCII(e,n,r)},readBytes:function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e[t+i]);return r},readASCIIArray:function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(String.fromCharCode(e[t+i]));return r},_view:function(e){return e._dataView||=e.buffer?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(new Uint8Array(e).buffer)}},t._lctf={},t._lctf.parse=function(e,n,r,i,a){var o=t._bin,s={},c=n;o.readFixed(e,n),n+=4;var l=o.readUshort(e,n);n+=2;var u=o.readUshort(e,n);n+=2;var d=o.readUshort(e,n);return n+=2,s.scriptList=t._lctf.readScriptList(e,c+l),s.featureList=t._lctf.readFeatureList(e,c+u),s.lookupList=t._lctf.readLookupList(e,c+d,a),s},t._lctf.readLookupList=function(e,n,r){var i=t._bin,a=n,o=[],s=i.readUshort(e,n);n+=2;for(var c=0;c<s;c++){var l=i.readUshort(e,n);n+=2;var u=t._lctf.readLookupTable(e,a+l,r);o.push(u)}return o},t._lctf.readLookupTable=function(e,n,r){var i=t._bin,a=n,o={tabs:[]};o.ltype=i.readUshort(e,n),n+=2,o.flag=i.readUshort(e,n),n+=2;var s=i.readUshort(e,n);n+=2;for(var c=o.ltype,l=0;l<s;l++){var u=i.readUshort(e,n);n+=2;var d=r(e,c,a+u,o);o.tabs.push(d)}return o},t._lctf.numOfOnes=function(e){for(var t=0,n=0;n<32;n++)e>>>n&1&&t++;return t},t._lctf.readClassDef=function(e,n){var r=t._bin,i=[],a=r.readUshort(e,n);if(n+=2,a==1){var o=r.readUshort(e,n);n+=2;var s=r.readUshort(e,n);n+=2;for(var c=0;c<s;c++)i.push(o+c),i.push(o+c),i.push(r.readUshort(e,n)),n+=2}if(a==2){var l=r.readUshort(e,n);for(n+=2,c=0;c<l;c++)i.push(r.readUshort(e,n)),n+=2,i.push(r.readUshort(e,n)),n+=2,i.push(r.readUshort(e,n)),n+=2}return i},t._lctf.getInterval=function(e,t){for(var n=0;n<e.length;n+=3){var r=e[n],i=e[n+1];if(e[n+2],r<=t&&t<=i)return n}return-1},t._lctf.readCoverage=function(e,n){var r=t._bin,i={};i.fmt=r.readUshort(e,n),n+=2;var a=r.readUshort(e,n);return n+=2,i.fmt==1&&(i.tab=r.readUshorts(e,n,a)),i.fmt==2&&(i.tab=r.readUshorts(e,n,3*a)),i},t._lctf.coverageIndex=function(e,n){var r=e.tab;if(e.fmt==1)return r.indexOf(n);if(e.fmt==2){var i=t._lctf.getInterval(r,n);if(i!=-1)return r[i+2]+(n-r[i])}return-1},t._lctf.readFeatureList=function(e,n){var r=t._bin,i=n,a=[],o=r.readUshort(e,n);n+=2;for(var s=0;s<o;s++){var c=r.readASCII(e,n,4);n+=4;var l=r.readUshort(e,n);n+=2;var u=t._lctf.readFeatureTable(e,i+l);u.tag=c.trim(),a.push(u)}return a},t._lctf.readFeatureTable=function(e,n){var r=t._bin,i=n,a={},o=r.readUshort(e,n);n+=2,o>0&&(a.featureParams=i+o);var s=r.readUshort(e,n);n+=2,a.tab=[];for(var c=0;c<s;c++)a.tab.push(r.readUshort(e,n+2*c));return a},t._lctf.readScriptList=function(e,n){var r=t._bin,i=n,a={},o=r.readUshort(e,n);n+=2;for(var s=0;s<o;s++){var c=r.readASCII(e,n,4);n+=4;var l=r.readUshort(e,n);n+=2,a[c.trim()]=t._lctf.readScriptTable(e,i+l)}return a},t._lctf.readScriptTable=function(e,n){var r=t._bin,i=n,a={},o=r.readUshort(e,n);n+=2,o>0&&(a.default=t._lctf.readLangSysTable(e,i+o));var s=r.readUshort(e,n);n+=2;for(var c=0;c<s;c++){var l=r.readASCII(e,n,4);n+=4;var u=r.readUshort(e,n);n+=2,a[l.trim()]=t._lctf.readLangSysTable(e,i+u)}return a},t._lctf.readLangSysTable=function(e,n){var r=t._bin,i={};r.readUshort(e,n),n+=2,i.reqFeature=r.readUshort(e,n),n+=2;var a=r.readUshort(e,n);return n+=2,i.features=r.readUshorts(e,n,a),i},t.CFF={},t.CFF.parse=function(e,n,r){var i=t._bin;(e=new Uint8Array(e.buffer,n,r))[n=0],e[++n],e[++n],e[++n],n++;var a=[];n=t.CFF.readIndex(e,n,a);for(var o=[],s=0;s<a.length-1;s++)o.push(i.readASCII(e,n+a[s],a[s+1]-a[s]));n+=a[a.length-1];var c=[];n=t.CFF.readIndex(e,n,c);var l=[];for(s=0;s<c.length-1;s++)l.push(t.CFF.readDict(e,n+c[s],n+c[s+1]));n+=c[c.length-1];var u=l[0],d=[];n=t.CFF.readIndex(e,n,d);var f=[];for(s=0;s<d.length-1;s++)f.push(i.readASCII(e,n+d[s],d[s+1]-d[s]));if(n+=d[d.length-1],t.CFF.readSubrs(e,n,u),u.CharStrings){n=u.CharStrings,d=[],n=t.CFF.readIndex(e,n,d);var p=[];for(s=0;s<d.length-1;s++)p.push(i.readBytes(e,n+d[s],d[s+1]-d[s]));u.CharStrings=p}if(u.ROS){n=u.FDArray;var m=[];for(n=t.CFF.readIndex(e,n,m),u.FDArray=[],s=0;s<m.length-1;s++){var h=t.CFF.readDict(e,n+m[s],n+m[s+1]);t.CFF._readFDict(e,h,f),u.FDArray.push(h)}n+=m[m.length-1],n=u.FDSelect,u.FDSelect=[];var g=e[n];if(n++,g!=3)throw g;var _=i.readUshort(e,n);for(n+=2,s=0;s<_+1;s++)u.FDSelect.push(i.readUshort(e,n),e[n+2]),n+=3}return u.Encoding&&=t.CFF.readEncoding(e,u.Encoding,u.CharStrings.length),u.charset&&=t.CFF.readCharset(e,u.charset,u.CharStrings.length),t.CFF._readFDict(e,u,f),u},t.CFF._readFDict=function(e,n,r){var i;for(var a in n.Private&&(i=n.Private[1],n.Private=t.CFF.readDict(e,i,i+n.Private[0]),n.Private.Subrs&&t.CFF.readSubrs(e,i+n.Private.Subrs,n.Private)),n)[`FamilyName`,`FontName`,`FullName`,`Notice`,`version`,`Copyright`].indexOf(a)!=-1&&(n[a]=r[n[a]-426+35])},t.CFF.readSubrs=function(e,n,r){var i=t._bin,a=[];n=t.CFF.readIndex(e,n,a);var o,s=a.length;o=s<1240?107:s<33900?1131:32768,r.Bias=o,r.Subrs=[];for(var c=0;c<a.length-1;c++)r.Subrs.push(i.readBytes(e,n+a[c],a[c+1]-a[c]))},t.CFF.tableSE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,0,111,112,113,114,0,115,116,117,118,119,120,121,122,0,123,0,124,125,126,127,128,129,130,131,0,132,133,0,134,135,136,137,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,138,0,139,0,0,0,0,140,141,142,143,0,0,0,0,0,144,0,0,0,145,0,0,146,147,148,149,0,0,0,0],t.CFF.glyphByUnicode=function(e,t){for(var n=0;n<e.charset.length;n++)if(e.charset[n]==t)return n;return-1},t.CFF.glyphBySE=function(e,n){return n<0||n>
4168255?-1:t.CFF.glyphByUnicode(e,t.CFF.tableSE[n])},t.CFF.readEncoding=function(e,n,r){t._bin;var i=[`.notdef`],a=e[n];if(n++,a!=0)throw`error: unknown encoding format: `+a;var o=e[n];n++;for(var s=0;s<o;s++)i.push(e[n+s]);return i},t.CFF.readCharset=function(e,n,r){var i=t._bin,a=[`.notdef`],o=e[n];if(n++,o==0)for(var s=0;s<r;s++){var c=i.readUshort(e,n);n+=2,a.push(c)}else{if(o!=1&&o!=2)throw`error: format: `+o;for(;a.length<r;){c=i.readUshort(e,n),n+=2;var l=0;for(o==1?(l=e[n],n++):(l=i.readUshort(e,n),n+=2),s=0;s<=l;s++)a.push(c),c++}}return a},t.CFF.readIndex=function(e,n,r){var i=t._bin,a=i.readUshort(e,n)+1,o=e[n+=2];if(n++,o==1)for(var s=0;s<a;s++)r.push(e[n+s]);else if(o==2)for(s=0;s<a;s++)r.push(i.readUshort(e,n+2*s));else if(o==3)for(s=0;s<a;s++)r.push(16777215&i.readUint(e,n+3*s-1));else if(a!=1)throw`unsupported offset size: `+o+`, count: `+a;return(n+=a*o)-1},t.CFF.getCharString=function(e,n,r){var i=t._bin,a=e[n],o=e[n+1];e[n+2],e[n+3],e[n+4];var s=1,c=null,l=null;a<=20&&(c=a,s=1),a==12&&(c=100*a+o,s=2),21<=a&&a<=27&&(c=a,s=1),a==28&&(l=i.readShort(e,n+1),s=3),29<=a&&a<=31&&(c=a,s=1),32<=a&&a<=246&&(l=a-139,s=1),247<=a&&a<=250&&(l=256*(a-247)+o+108,s=2),251<=a&&a<=254&&(l=256*-(a-251)-o-108,s=2),a==255&&(l=i.readInt(e,n+1)/65535,s=5),r.val=l??`o`+c,r.size=s},t.CFF.readCharString=function(e,n,r){for(var i=n+r,a=t._bin,o=[];n<i;){var s=e[n],c=e[n+1];e[n+2],e[n+3],e[n+4];var l=1,u=null,d=null;s<=20&&(u=s,l=1),s==12&&(u=100*s+c,l=2),s!=19&&s!=20||(u=s,l=2),21<=s&&s<=27&&(u=s,l=1),s==28&&(d=a.readShort(e,n+1),l=3),29<=s&&s<=31&&(u=s,l=1),32<=s&&s<=246&&(d=s-139,l=1),247<=s&&s<=250&&(d=256*(s-247)+c+108,l=2),251<=s&&s<=254&&(d=256*-(s-251)-c-108,l=2),s==255&&(d=a.readInt(e,n+1)/65535,l=5),o.push(d??`o`+u),n+=l}return o},t.CFF.readDict=function(e,n,r){for(var i=t._bin,a={},o=[];n<r;){var s=e[n],c=e[n+1];e[n+2],e[n+3],e[n+4];var l=1,u=null,d=null;if(s==28&&(d=i.readShort(e,n+1),l=3),s==29&&(d=i.readInt(e,n+1),l=5),32<=s&&s<=246&&(d=s-139,l=1),247<=s&&s<=250&&(d=256*(s-247)+c+108,l=2),251<=s&&s<=254&&(d=256*-(s-251)-c-108,l=2),s==255)throw d=i.readInt(e,n+1)/65535,l=5,`unknown number`;if(s==30){var f=[];for(l=1;;){var p=e[n+l];l++;var m=p>>4,h=15&p;if(m!=15&&f.push(m),h!=15&&f.push(h),h==15)break}for(var g=``,_=[0,1,2,3,4,5,6,7,8,9,`.`,`e`,`e-`,`reserved`,`-`,`endOfNumber`],v=0;v<f.length;v++)g+=_[f[v]];d=parseFloat(g)}s<=21&&(u=[`version`,`Notice`,`FullName`,`FamilyName`,`Weight`,`FontBBox`,`BlueValues`,`OtherBlues`,`FamilyBlues`,`FamilyOtherBlues`,`StdHW`,`StdVW`,`escape`,`UniqueID`,`XUID`,`charset`,`Encoding`,`CharStrings`,`Private`,`Subrs`,`defaultWidthX`,`nominalWidthX`][s],l=1,s==12&&(u=[`Copyright`,`isFixedPitch`,`ItalicAngle`,`UnderlinePosition`,`UnderlineThickness`,`PaintType`,`CharstringType`,`FontMatrix`,`StrokeWidth`,`BlueScale`,`BlueShift`,`BlueFuzz`,`StemSnapH`,`StemSnapV`,`ForceBold`,0,0,`LanguageGroup`,`ExpansionFactor`,`initialRandomSeed`,`SyntheticBase`,`PostScript`,`BaseFontName`,`BaseFontBlend`,0,0,0,0,0,0,`ROS`,`CIDFontVersion`,`CIDFontRevision`,`CIDFontType`,`CIDCount`,`UIDBase`,`FDArray`,`FDSelect`,`FontName`][c],l=2)),u==null?o.push(d):(a[u]=o.length==1?o[0]:o,o=[]),n+=l}return a},t.cmap={},t.cmap.parse=function(e,n,r){e=new Uint8Array(e.buffer,n,r),n=0;var i=t._bin,a={};i.readUshort(e,n),n+=2;var o=i.readUshort(e,n);n+=2;var s=[];a.tables=[];for(var c=0;c<o;c++){var l=i.readUshort(e,n);n+=2;var u=i.readUshort(e,n);n+=2;var d=i.readUint(e,n);n+=4;var f=`p`+l+`e`+u,p=s.indexOf(d);if(p==-1){var m;p=a.tables.length,s.push(d);var h=i.readUshort(e,d);h==0?m=t.cmap.parse0(e,d):h==4?m=t.cmap.parse4(e,d):h==6?m=t.cmap.parse6(e,d):h==12?m=t.cmap.parse12(e,d):console.debug(`unknown format: `+h,l,u,d),a.tables.push(m)}if(a[f]!=null)throw`multiple tables for one platform+encoding`;a[f]=p}return a},t.cmap.parse0=function(e,n){var r=t._bin,i={};i.format=r.readUshort(e,n),n+=2;var a=r.readUshort(e,n);n+=2,r.readUshort(e,n),n+=2,i.map=[];for(var o=0;o<a-6;o++)i.map.push(e[n+o]);return i},t.cmap.parse4=function(e,n){var r=t._bin,i=n,a={};a.format=r.readUshort(e,n),n+=2;var o=r.readUshort(e,n);n+=2,r.readUshort(e,n),n+=2;var s=r.readUshort(e,n);n+=2;var c=s/2;a.searchRange=r.readUshort(e,n),n+=2,a.entrySelector=r.readUshort(e,n),n+=2,a.rangeShift=r.readUshort(e,n),n+=2,a.endCount=r.readUshorts(e,n,c),n+=2*c,n+=2,a.startCount=r.readUshorts(e,n,c),n+=2*c,a.idDelta=[];for(var l=0;l<c;l++)a.idDelta.push(r.readShort(e,n)),n+=2;for(a.idRangeOffset=r.readUshorts(e,n,c),n+=2*c,a.glyphIdArray=[];n<i+o;)a.glyphIdArray.push(r.readUshort(e,n)),n+=2;return a},t.cmap.parse6=function(e,n){var r=t._bin,i={};i.format=r.readUshort(e,n),n+=2,r.readUshort(e,n),n+=2,r.readUshort(e,n),n+=2,i.firstCode=r.readUshort(e,n),n+=2;var a=r.readUshort(e,n);n+=2,i.glyphIdArray=[];for(var o=0;o<a;o++)i.glyphIdArray.push(r.readUshort(e,n)),n+=2;return i},t.cmap.parse12=function(e,n){var r=t._bin,i={};i.format=r.readUshort(e,n),n+=2,n+=2,r.readUint(e,n),n+=4,r.readUint(e,n),n+=4;var a=r.readUint(e,n);n+=4,i.groups=[];for(var o=0;o<a;o++){var s=n+12*o,c=r.readUint(e,s+0),l=r.readUint(e,s+4),u=r.readUint(e,s+8);i.groups.push([c,l,u])}return i},t.glyf={},t.glyf.parse=function(e,t,n,r){for(var i=[],a=0;a<r.maxp.numGlyphs;a++)i.push(null);return i},t.glyf._parseGlyf=function(e,n){var r=t._bin,i=e._data,a=t._tabOffset(i,`glyf`,e._offset)+e.loca[n];if(e.loca[n]==e.loca[n+1])return null;var o={};if(o.noc=r.readShort(i,a),a+=2,o.xMin=r.readShort(i,a),a+=2,o.yMin=r.readShort(i,a),a+=2,o.xMax=r.readShort(i,a),a+=2,o.yMax=r.readShort(i,a),a+=2,o.xMin>=o.xMax||o.yMin>=o.yMax)return null;if(o.noc>0){o.endPts=[];for(var s=0;s<o.noc;s++)o.endPts.push(r.readUshort(i,a)),a+=2;var c=r.readUshort(i,a);if(a+=2,i.length-a<c)return null;o.instructions=r.readBytes(i,a,c),a+=c;var l=o.endPts[o.noc-1]+1;for(o.flags=[],s=0;s<l;s++){var u=i[a];if(a++,o.flags.push(u),8&u){var d=i[a];a++;for(var f=0;f<d;f++)o.flags.push(u),s++}}for(o.xs=[],s=0;s<l;s++){var p=(2&o.flags[s])!=0,m=(16&o.flags[s])!=0;p?(o.xs.push(m?i[a]:-i[a]),a++):m?o.xs.push(0):(o.xs.push(r.readShort(i,a)),a+=2)}for(o.ys=[],s=0;s<l;s++)p=(4&o.flags[s])!=0,m=(32&o.flags[s])!=0,p?(o.ys.push(m?i[a]:-i[a]),a++):m?o.ys.push(0):(o.ys.push(r.readShort(i,a)),a+=2);var h=0,g=0;for(s=0;s<l;s++)h+=o.xs[s],g+=o.ys[s],o.xs[s]=h,o.ys[s]=g}else{var _;o.parts=[];do{_=r.readUshort(i,a),a+=2;var v={m:{a:1,b:0,c:0,d:1,tx:0,ty:0},p1:-1,p2:-1};if(o.parts.push(v),v.glyphIndex=r.readUshort(i,a),a+=2,1&_){var y=r.readShort(i,a);a+=2;var b=r.readShort(i,a);a+=2}else y=r.readInt8(i,a),a++,b=r.readInt8(i,a),a++;2&_?(v.m.tx=y,v.m.ty=b):(v.p1=y,v.p2=b),8&_?(v.m.a=v.m.d=r.readF2dot14(i,a),a+=2):64&_?(v.m.a=r.readF2dot14(i,a),a+=2,v.m.d=r.readF2dot14(i,a),a+=2):128&_&&(v.m.a=r.readF2dot14(i,a),a+=2,v.m.b=r.readF2dot14(i,a),a+=2,v.m.c=r.readF2dot14(i,a),a+=2,v.m.d=r.readF2dot14(i,a),a+=2)}while(32&_);if(256&_){var x=r.readUshort(i,a);for(a+=2,o.instr=[],s=0;s<x;s++)o.instr.push(i[a]),a++}}return o},t.GDEF={},t.GDEF.parse=function(e,n,r,i){var a=n;n+=4;var o=t._bin.readUshort(e,n);return{glyphClassDef:o===0?null:t._lctf.readClassDef(e,a+o)}},t.GPOS={},t.GPOS.parse=function(e,n,r,i){return t._lctf.parse(e,n,r,i,t.GPOS.subt)},t.GPOS.subt=function(e,n,r,i){var a=t._bin,o=r,s={};if(s.fmt=a.readUshort(e,r),r+=2,n==1||n==2||n==3||n==7||n==8&&s.fmt<=2){var c=a.readUshort(e,r);r+=2,s.coverage=t._lctf.readCoverage(e,c+o)}if(n==1&&s.fmt==1){var l=a.readUshort(e,r);r+=2,l!=0&&(s.pos=t.GPOS.readValueRecord(e,r,l))}else if(n==2&&s.fmt>=1&&s.fmt<=2){l=a.readUshort(e,r),r+=2;var u=a.readUshort(e,r);r+=2;var d=t._lctf.numOfOnes(l),f=t._lctf.numOfOnes(u);if(s.fmt==1){s.pairsets=[];var p=a.readUshort(e,r);r+=2;
4168for(var m=0;m<p;m++){var h=o+a.readUshort(e,r);r+=2;var g=a.readUshort(e,h);h+=2;for(var _=[],v=0;v<g;v++){var y=a.readUshort(e,h);h+=2,l!=0&&(T=t.GPOS.readValueRecord(e,h,l),h+=2*d),u!=0&&(E=t.GPOS.readValueRecord(e,h,u),h+=2*f),_.push({gid2:y,val1:T,val2:E})}s.pairsets.push(_)}}if(s.fmt==2){var b=a.readUshort(e,r);r+=2;var x=a.readUshort(e,r);r+=2;var S=a.readUshort(e,r);r+=2;var C=a.readUshort(e,r);for(r+=2,s.classDef1=t._lctf.readClassDef(e,o+b),s.classDef2=t._lctf.readClassDef(e,o+x),s.matrix=[],m=0;m<S;m++){var w=[];for(v=0;v<C;v++){var T=null,E=null;l!=0&&(T=t.GPOS.readValueRecord(e,r,l),r+=2*d),u!=0&&(E=t.GPOS.readValueRecord(e,r,u),r+=2*f),w.push({val1:T,val2:E})}s.matrix.push(w)}}}else if(n==4&&s.fmt==1)s.markCoverage=t._lctf.readCoverage(e,a.readUshort(e,r)+o),s.baseCoverage=t._lctf.readCoverage(e,a.readUshort(e,r+2)+o),s.markClassCount=a.readUshort(e,r+4),s.markArray=t.GPOS.readMarkArray(e,a.readUshort(e,r+6)+o),s.baseArray=t.GPOS.readBaseArray(e,a.readUshort(e,r+8)+o,s.markClassCount);else if(n==6&&s.fmt==1)s.mark1Coverage=t._lctf.readCoverage(e,a.readUshort(e,r)+o),s.mark2Coverage=t._lctf.readCoverage(e,a.readUshort(e,r+2)+o),s.markClassCount=a.readUshort(e,r+4),s.mark1Array=t.GPOS.readMarkArray(e,a.readUshort(e,r+6)+o),s.mark2Array=t.GPOS.readBaseArray(e,a.readUshort(e,r+8)+o,s.markClassCount);else{if(n==9&&s.fmt==1){var D=a.readUshort(e,r);r+=2;var O=a.readUint(e,r);if(r+=4,i.ltype==9)i.ltype=D;else if(i.ltype!=D)throw`invalid extension substitution`;return t.GPOS.subt(e,i.ltype,o+O)}console.debug(`unsupported GPOS table LookupType`,n,`format`,s.fmt)}return s},t.GPOS.readValueRecord=function(e,n,r){var i=t._bin,a=[];return a.push(1&r?i.readShort(e,n):0),n+=1&r?2:0,a.push(2&r?i.readShort(e,n):0),n+=2&r?2:0,a.push(4&r?i.readShort(e,n):0),n+=4&r?2:0,a.push(8&r?i.readShort(e,n):0),n+=8&r?2:0,a},t.GPOS.readBaseArray=function(e,n,r){var i=t._bin,a=[],o=n,s=i.readUshort(e,n);n+=2;for(var c=0;c<s;c++){for(var l=[],u=0;u<r;u++)l.push(t.GPOS.readAnchorRecord(e,o+i.readUshort(e,n))),n+=2;a.push(l)}return a},t.GPOS.readMarkArray=function(e,n){var r=t._bin,i=[],a=n,o=r.readUshort(e,n);n+=2;for(var s=0;s<o;s++){var c=t.GPOS.readAnchorRecord(e,r.readUshort(e,n+2)+a);c.markClass=r.readUshort(e,n),i.push(c),n+=4}return i},t.GPOS.readAnchorRecord=function(e,n){var r=t._bin,i={};return i.fmt=r.readUshort(e,n),i.x=r.readShort(e,n+2),i.y=r.readShort(e,n+4),i},t.GSUB={},t.GSUB.parse=function(e,n,r,i){return t._lctf.parse(e,n,r,i,t.GSUB.subt)},t.GSUB.subt=function(e,n,r,i){var a=t._bin,o=r,s={};if(s.fmt=a.readUshort(e,r),r+=2,n!=1&&n!=2&&n!=4&&n!=5&&n!=6)return null;if(n==1||n==2||n==4||n==5&&s.fmt<=2||n==6&&s.fmt<=2){var c=a.readUshort(e,r);r+=2,s.coverage=t._lctf.readCoverage(e,o+c)}if(n==1&&s.fmt>=1&&s.fmt<=2){if(s.fmt==1)s.delta=a.readShort(e,r),r+=2;else if(s.fmt==2){var l=a.readUshort(e,r);r+=2,s.newg=a.readUshorts(e,r,l),r+=2*s.newg.length}}else if(n==2&&s.fmt==1){l=a.readUshort(e,r),r+=2,s.seqs=[];for(var u=0;u<l;u++){var d=a.readUshort(e,r)+o;r+=2;var f=a.readUshort(e,d);s.seqs.push(a.readUshorts(e,d+2,f))}}else if(n==4)for(s.vals=[],l=a.readUshort(e,r),r+=2,u=0;u<l;u++){var p=a.readUshort(e,r);r+=2,s.vals.push(t.GSUB.readLigatureSet(e,o+p))}else if(n==5&&s.fmt==2){if(s.fmt==2){var m=a.readUshort(e,r);r+=2,s.cDef=t._lctf.readClassDef(e,o+m),s.scset=[];var h=a.readUshort(e,r);for(r+=2,u=0;u<h;u++){var g=a.readUshort(e,r);r+=2,s.scset.push(g==0?null:t.GSUB.readSubClassSet(e,o+g))}}}else if(n==6&&s.fmt==3){if(s.fmt==3){for(u=0;u<3;u++){l=a.readUshort(e,r),r+=2;for(var _=[],v=0;v<l;v++)_.push(t._lctf.readCoverage(e,o+a.readUshort(e,r+2*v)));r+=2*l,u==0&&(s.backCvg=_),u==1&&(s.inptCvg=_),u==2&&(s.ahedCvg=_)}l=a.readUshort(e,r),r+=2,s.lookupRec=t.GSUB.readSubstLookupRecords(e,r,l)}}else{if(n==7&&s.fmt==1){var y=a.readUshort(e,r);r+=2;var b=a.readUint(e,r);if(r+=4,i.ltype==9)i.ltype=y;else if(i.ltype!=y)throw`invalid extension substitution`;return t.GSUB.subt(e,i.ltype,o+b)}console.debug(`unsupported GSUB table LookupType`,n,`format`,s.fmt)}return s},t.GSUB.readSubClassSet=function(e,n){var r=t._bin.readUshort,i=n,a=[],o=r(e,n);n+=2;for(var s=0;s<o;s++){var c=r(e,n);n+=2,a.push(t.GSUB.readSubClassRule(e,i+c))}return a},t.GSUB.readSubClassRule=function(e,n){var r=t._bin.readUshort,i={}
4168,a=r(e,n),o=r(e,n+=2);n+=2,i.input=[];for(var s=0;s<a-1;s++)i.input.push(r(e,n)),n+=2;return i.substLookupRecords=t.GSUB.readSubstLookupRecords(e,n,o),i},t.GSUB.readSubstLookupRecords=function(e,n,r){for(var i=t._bin.readUshort,a=[],o=0;o<r;o++)a.push(i(e,n),i(e,n+2)),n+=4;return a},t.GSUB.readChainSubClassSet=function(e,n){var r=t._bin,i=n,a=[],o=r.readUshort(e,n);n+=2;for(var s=0;s<o;s++){var c=r.readUshort(e,n);n+=2,a.push(t.GSUB.readChainSubClassRule(e,i+c))}return a},t.GSUB.readChainSubClassRule=function(e,n){for(var r=t._bin,i={},a=[`backtrack`,`input`,`lookahead`],o=0;o<a.length;o++){var s=r.readUshort(e,n);n+=2,o==1&&s--,i[a[o]]=r.readUshorts(e,n,s),n+=2*i[a[o]].length}return s=r.readUshort(e,n),n+=2,i.subst=r.readUshorts(e,n,2*s),n+=2*i.subst.length,i},t.GSUB.readLigatureSet=function(e,n){var r=t._bin,i=n,a=[],o=r.readUshort(e,n);n+=2;for(var s=0;s<o;s++){var c=r.readUshort(e,n);n+=2,a.push(t.GSUB.readLigature(e,i+c))}return a},t.GSUB.readLigature=function(e,n){var r=t._bin,i={chain:[]};i.nglyph=r.readUshort(e,n),n+=2;var a=r.readUshort(e,n);n+=2;for(var o=0;o<a-1;o++)i.chain.push(r.readUshort(e,n)),n+=2;return i},t.head={},t.head.parse=function(e,n,r){var i=t._bin,a={};return i.readFixed(e,n),n+=4,a.fontRevision=i.readFixed(e,n),n+=4,i.readUint(e,n),n+=4,i.readUint(e,n),n+=4,a.flags=i.readUshort(e,n),n+=2,a.unitsPerEm=i.readUshort(e,n),n+=2,a.created=i.readUint64(e,n),n+=8,a.modified=i.readUint64(e,n),n+=8,a.xMin=i.readShort(e,n),n+=2,a.yMin=i.readShort(e,n),n+=2,a.xMax=i.readShort(e,n),n+=2,a.yMax=i.readShort(e,n),n+=2,a.macStyle=i.readUshort(e,n),n+=2,a.lowestRecPPEM=i.readUshort(e,n),n+=2,a.fontDirectionHint=i.readShort(e,n),n+=2,a.indexToLocFormat=i.readShort(e,n),n+=2,a.glyphDataFormat=i.readShort(e,n),n+=2,a},t.hhea={},t.hhea.parse=function(e,n,r){var i=t._bin,a={};return i.readFixed(e,n),n+=4,a.ascender=i.readShort(e,n),n+=2,a.descender=i.readShort(e,n),n+=2,a.lineGap=i.readShort(e,n),n+=2,a.advanceWidthMax=i.readUshort(e,n),n+=2,a.minLeftSideBearing=i.readShort(e,n),n+=2,a.minRightSideBearing=i.readShort(e,n),n+=2,a.xMaxExtent=i.readShort(e,n),n+=2,a.caretSlopeRise=i.readShort(e,n),n+=2,a.caretSlopeRun=i.readShort(e,n),n+=2,a.caretOffset=i.readShort(e,n),n+=2,n+=8,a.metricDataFormat=i.readShort(e,n),n+=2,a.numberOfHMetrics=i.readUshort(e,n),n+=2,a},t.hmtx={},t.hmtx.parse=function(e,n,r,i){for(var a=t._bin,o={aWidth:[],lsBearing:[]},s=0,c=0,l=0;l<i.maxp.numGlyphs;l++)l<i.hhea.numberOfHMetrics&&(s=a.readUshort(e,n),n+=2,c=a.readShort(e,n),n+=2),o.aWidth.push(s),o.lsBearing.push(c);return o},t.kern={},t.kern.parse=function(e,n,r,i){var a=t._bin,o=a.readUshort(e,n);if(n+=2,o==1)return t.kern.parseV1(e,n-2,r,i);var s=a.readUshort(e,n);n+=2;for(var c={glyph1:[],rval:[]},l=0;l<s;l++){n+=2,r=a.readUshort(e,n),n+=2;var u=a.readUshort(e,n);n+=2;var d=u>>>8;if((d&=15)!=0)throw`unknown kern table format: `+d;n=t.kern.readFormat0(e,n,c)}return c},t.kern.parseV1=function(e,n,r,i){var a=t._bin;a.readFixed(e,n),n+=4;var o=a.readUint(e,n);n+=4;for(var s={glyph1:[],rval:[]},c=0;c<o;c++){a.readUint(e,n),n+=4;var l=a.readUshort(e,n);n+=2,a.readUshort(e,n),n+=2;var u=l>>>8;if((u&=15)!=0)throw`unknown kern table format: `+u;n=t.kern.readFormat0(e,n,s)}return s},t.kern.readFormat0=function(e,n,r){var i=t._bin,a=-1,o=i.readUshort(e,n);n+=2,i.readUshort(e,n),n+=2,i.readUshort(e,n),n+=2,i.readUshort(e,n),n+=2;for(var s=0;s<o;s++){var c=i.readUshort(e,n);n+=2;var l=i.readUshort(e,n);n+=2;var u=i.readShort(e,n);n+=2,c!=a&&(r.glyph1.push(c),r.rval.push({glyph2:[],vals:[]}));var d=r.rval[r.rval.length-1];d.glyph2.push(l),d.vals.push(u),a=c}return n},t.loca={},t.loca.parse=function(e,n,r,i){var a=t._bin,o=[],s=i.head.indexToLocFormat,c=i.maxp.numGlyphs+1;if(s==0)for(var l=0;l<c;l++)o.push(a.readUshort(e,n+(l<<1))<<1);if(s==1)for(l=0;l<c;l++)o.push(a.readUint(e,n+(l<<2)));return o},t.maxp={},t.maxp.parse=function(e,n,r){var i=t._bin,a={},o=i.readUint(e,n);return n+=4,a.numGlyphs=i.readUshort(e,n),n+=2,o==65536&&(a.maxPoints=i.readUshort(e,n),n+=2,a.maxContours=i.readUshort(e,n),n+=2,a.maxCompositePoints=i.readUshort(e,n),n+=2,a.maxCompositeContours=i.readUshort(e,n),n+=2,a.maxZones=i.readUshort(e,n),n+=2,a.maxTwilightPoints=i.readUshort(e,n),n+=2,a.maxStorage=i.readUshort(e,n),n+=2,a.maxFunctionDefs=i.readUshort(e,n),n+=2,a.maxInstructionDefs=i.readUshort(e,n),n+=2,a.maxStackElements=i.readUshort(e,n),n+=2,a.maxSizeOfInstru
4168ctions=i.readUshort(e,n),n+=2,a.maxComponentElements=i.readUshort(e,n),n+=2,a.maxComponentDepth=i.readUshort(e,n),n+=2),a},t.name={},t.name.parse=function(e,n,r){var i=t._bin,a={};i.readUshort(e,n),n+=2;var o=i.readUshort(e,n);n+=2,i.readUshort(e,n);for(var s,c=[`copyright`,`fontFamily`,`fontSubfamily`,`ID`,`fullName`,`version`,`postScriptName`,`trademark`,`manufacturer`,`designer`,`description`,`urlVendor`,`urlDesigner`,`licence`,`licenceURL`,`---`,`typoFamilyName`,`typoSubfamilyName`,`compatibleFull`,`sampleText`,`postScriptCID`,`wwsFamilyName`,`wwsSubfamilyName`,`lightPalette`,`darkPalette`],l=n+=2,u=0;u<o;u++){var d=i.readUshort(e,n);n+=2;var f=i.readUshort(e,n);n+=2;var p=i.readUshort(e,n);n+=2;var m=i.readUshort(e,n);n+=2;var h=i.readUshort(e,n);n+=2;var g=i.readUshort(e,n);n+=2;var _,v=c[m],y=l+12*o+g;if(d==0)_=i.readUnicode(e,y,h/2);else if(d==3&&f==0)_=i.readUnicode(e,y,h/2);else if(f==0)_=i.readASCII(e,y,h);else if(f==1)_=i.readUnicode(e,y,h/2);else if(f==3)_=i.readUnicode(e,y,h/2);else{if(d!=1)throw`unknown encoding `+f+`, platformID: `+d;_=i.readASCII(e,y,h),console.debug(`reading unknown MAC encoding `+f+` as ASCII`)}var b=`p`+d+`,`+p.toString(16);a[b]??(a[b]={}),a[b][v===void 0?m:v]=_,a[b]._lang=p}for(var x in a)if(a[x].postScriptName!=null&&a[x]._lang==1033)return a[x];for(var x in a)if(a[x].postScriptName!=null&&a[x]._lang==0)return a[x];for(var x in a)if(a[x].postScriptName!=null&&a[x]._lang==3084)return a[x];for(var x in a)if(a[x].postScriptName!=null)return a[x];for(var x in a){s=x;break}return console.debug(`returning name table with languageID `+a[s]._lang),a[s]},t[`OS/2`]={},t[`OS/2`].parse=function(e,n,r){var i=t._bin.readUshort(e,n);n+=2;var a={};if(i==0)t[`OS/2`].version0(e,n,a);else if(i==1)t[`OS/2`].version1(e,n,a);else if(i==2||i==3||i==4)t[`OS/2`].version2(e,n,a);else{if(i!=5)throw`unknown OS/2 table version: `+i;t[`OS/2`].version5(e,n,a)}return a},t[`OS/2`].version0=function(e,n,r){var i=t._bin;return r.xAvgCharWidth=i.readShort(e,n),n+=2,r.usWeightClass=i.readUshort(e,n),n+=2,r.usWidthClass=i.readUshort(e,n),n+=2,r.fsType=i.readUshort(e,n),n+=2,r.ySubscriptXSize=i.readShort(e,n),n+=2,r.ySubscriptYSize=i.readShort(e,n),n+=2,r.ySubscriptXOffset=i.readShort(e,n),n+=2,r.ySubscriptYOffset=i.readShort(e,n),n+=2,r.ySuperscriptXSize=i.readShort(e,n),n+=2,r.ySuperscriptYSize=i.readShort(e,n),n+=2,r.ySuperscriptXOffset=i.readShort(e,n),n+=2,r.ySuperscriptYOffset=i.readShort(e,n),n+=2,r.yStrikeoutSize=i.readShort(e,n),n+=2,r.yStrikeoutPosition=i.readShort(e,n),n+=2,r.sFamilyClass=i.readShort(e,n),n+=2,r.panose=i.readBytes(e,n,10),n+=10,r.ulUnicodeRange1=i.readUint(e,n),n+=4,r.ulUnicodeRange2=i.readUint(e,n),n+=4,r.ulUnicodeRange3=i.readUint(e,n),n+=4,r.ulUnicodeRange4=i.readUint(e,n),n+=4,r.achVendID=[i.readInt8(e,n),i.readInt8(e,n+1),i.readInt8(e,n+2),i.readInt8(e,n+3)],n+=4,r.fsSelection=i.readUshort(e,n),n+=2,r.usFirstCharIndex=i.readUshort(e,n),n+=2,r.usLastCharIndex=i.readUshort(e,n),n+=2,r.sTypoAscender=i.readShort(e,n),n+=2,r.sTypoDescender=i.readShort(e,n),n+=2,r.sTypoLineGap=i.readShort(e,n),n+=2,r.usWinAscent=i.readUshort(e,n),n+=2,r.usWinDescent=i.readUshort(e,n),n+=2},t[`OS/2`].version1=function(e,n,r){var i=t._bin;return n=t[`OS/2`].version0(e,n,r),r.ulCodePageRange1=i.readUint(e,n),n+=4,r.ulCodePageRange2=i.readUint(e,n),n+=4},t[`OS/2`].version2=function(e,n,r){var i=t._bin;return n=t[`OS/2`].version1(e,n,r),r.sxHeight=i.readShort(e,n),n+=2,r.sCapHeight=i.readShort(e,n),n+=2,r.usDefault=i.readUshort(e,n),n+=2,r.usBreak=i.readUshort(e,n),n+=2,r.usMaxContext=i.readUshort(e,n),n+=2},t[`OS/2`].version5=function(e,n,r){var i=t._bin;return n=t[`OS/2`].version2(e,n,r),r.usLowerOpticalPointSize=i.readUshort(e,n),n+=2,r.usUpperOpticalPointSize=i.readUshort(e,n),n+=2},t.post={},t.post.parse=function(e,n,r){var i=t._bin,a={};return a.version=i.readFixed(e,n),n+=4,a.italicAngle=i.readFixed(e,n),n+=4,a.underlinePosition=i.readShort(e,n),n+=2,a.underlineThickness=i.readShort(e,n),n+=2,a},t??={},t.U??={},t.U.codeToGlyph=function(e,t){var n=e.cmap,r=-1;if(n.p0e4==null?n.p3e1==null?n.p1e0==null?n.p0e3!=null&&(r=n.p0e3):r=n.p1e0:r=n.p3e1:r=n.p0e4,r==-1)throw`
4168no familiar platform and encoding!`;var i=n.tables[r];if(i.format==0)return t>=i.map.length?0:i.map[t];if(i.format==4){for(var a=-1,o=0;o<i.endCount.length;o++)if(t<=i.endCount[o]){a=o;break}return a==-1||i.startCount[a]>t?0:65535&(i.idRangeOffset[a]==0?t+i.idDelta[a]:i.glyphIdArray[t-i.startCount[a]+(i.idRangeOffset[a]>>1)-(i.idRangeOffset.length-a)])}if(i.format==12){if(t>i.groups[i.groups.length-1][1])return 0;for(o=0;o<i.groups.length;o++){var s=i.groups[o];if(s[0]<=t&&t<=s[1])return s[2]+(t-s[0])}return 0}throw`unknown cmap table format `+i.format},t.U.glyphToPath=function(e,n){var r={cmds:[],crds:[]};if(e.SVG&&e.SVG.entries[n]){var i=e.SVG.entries[n];return i==null?r:(typeof i==`string`&&(i=t.SVG.toPath(i),e.SVG.entries[n]=i),i)}if(e.CFF){var a={x:0,y:0,stack:[],nStems:0,haveWidth:!1,width:e.CFF.Private?e.CFF.Private.defaultWidthX:0,open:!1},o=e.CFF,s=e.CFF.Private;if(o.ROS){for(var c=0;o.FDSelect[c+2]<=n;)c+=2;s=o.FDArray[o.FDSelect[c+1]].Private}t.U._drawCFF(e.CFF.CharStrings[n],a,o,s,r)}else e.glyf&&t.U._drawGlyf(n,e,r);return r},t.U._drawGlyf=function(e,n,r){var i=n.glyf[e];i??=n.glyf[e]=t.glyf._parseGlyf(n,e),i!=null&&(i.noc>-1?t.U._simpleGlyph(i,r):t.U._compoGlyph(i,n,r))},t.U._simpleGlyph=function(e,n){for(var r=0;r<e.noc;r++){for(var i=r==0?0:e.endPts[r-1]+1,a=e.endPts[r],o=i;o<=a;o++){var s=o==i?a:o-1,c=o==a?i:o+1,l=1&e.flags[o],u=1&e.flags[s],d=1&e.flags[c],f=e.xs[o],p=e.ys[o];if(o==i)if(l){if(!u){t.U.P.moveTo(n,f,p);continue}t.U.P.moveTo(n,e.xs[s],e.ys[s])}else u?t.U.P.moveTo(n,e.xs[s],e.ys[s]):t.U.P.moveTo(n,(e.xs[s]+f)/2,(e.ys[s]+p)/2);l?u&&t.U.P.lineTo(n,f,p):d?t.U.P.qcurveTo(n,f,p,e.xs[c],e.ys[c]):t.U.P.qcurveTo(n,f,p,(f+e.xs[c])/2,(p+e.ys[c])/2)}t.U.P.closePath(n)}},t.U._compoGlyph=function(e,n,r){for(var i=0;i<e.parts.length;i++){var a={cmds:[],crds:[]},o=e.parts[i];t.U._drawGlyf(o.glyphIndex,n,a);for(var s=o.m,c=0;c<a.crds.length;c+=2){var l=a.crds[c],u=a.crds[c+1];r.crds.push(l*s.a+u*s.b+s.tx),r.crds.push(l*s.c+u*s.d+s.ty)}for(c=0;c<a.cmds.length;c++)r.cmds.push(a.cmds[c])}},t.U._getGlyphClass=function(e,n){var r=t._lctf.getInterval(n,e);return r==-1?0:n[r+2]},t.U._applySubs=function(e,n,r,i){for(var a=e.length-n-1,o=0;o<r.tabs.length;o++)if(r.tabs[o]!=null){var s,c=r.tabs[o];if(!c.coverage||(s=t._lctf.coverageIndex(c.coverage,e[n]))!=-1){if(r.ltype==1)e[n],c.fmt==1?e[n]=e[n]+c.delta:e[n]=c.newg[s];else if(r.ltype==4)for(var l=c.vals[s],u=0;u<l.length;u++){var d=l[u],f=d.chain.length;if(!(f>a)){for(var p=!0,m=0,h=0;h<f;h++){for(;e[n+m+(1+h)]==-1;)m++;d.chain[h]!=e[n+m+(1+h)]&&(p=!1)}if(p){for(e[n]=d.nglyph,h=0;h<f+m;h++)e[n+h+1]=-1;break}}}else if(r.ltype==5&&c.fmt==2)for(var g=t._lctf.getInterval(c.cDef,e[n]),_=c.cDef[g+2],v=c.scset[_],y=0;y<v.length;y++){var b=v[y],x=b.input;if(!(x.length>a)){for(p=!0,h=0;h<x.length;h++){var S=t._lctf.getInterval(c.cDef,e[n+1+h]);if(g==-1&&c.cDef[S+2]!=x[h]){p=!1;break}}if(p){var C=b.substLookupRecords;for(u=0;u<C.length;u+=2)C[u],C[u+1]}}}else if(r.ltype==6&&c.fmt==3){if(!t.U._glsCovered(e,c.backCvg,n-c.backCvg.length)||!t.U._glsCovered(e,c.inptCvg,n)||!t.U._glsCovered(e,c.ahedCvg,n+c.inptCvg.length))continue;var w=c.lookupRec;for(y=0;y<w.length;y+=2){g=w[y];var T=i[w[y+1]];t.U._applySubs(e,n+g,T,i)}}}}},t.U._glsCovered=function(e,n,r){for(var i=0;i<n.length;i++)if(t._lctf.coverageIndex(n[i],e[r+i])==-1)return!1;return!0},t.U.glyphsToPath=function(e,n,r){for(var i={cmds:[],crds:[]},a=0,o=0;o<n.length;o++){var s=n[o];if(s!=-1){for(var c=o<n.length-1&&n[o+1]!=-1?n[o+1]:0,l=t.U.glyphToPath(e,s),u=0;u<l.crds.length;u+=2)i.crds.push(l.crds[u]+a),i.crds.push(l.crds[u+1]);for(r&&i.cmds.push(r),u=0;u<l.cmds.length;u++)i.cmds.push(l.cmds[u]);r&&i.cmds.push(`X`),a+=e.hmtx.aWidth[s],o<n.length-1&&(a+=t.U.getPairAdjustment(e,s,c))}}return i},t.U.P={},t.U.P.moveTo=function(e,t,n){e.cmds.push(`M`),e.crds.push(t,n)},t.U.P.lineTo=function(e,t,n){e.cmds.push(`L`),e.crds.push(t,n)},t.U.P.curveTo=function(e,t,n,r,i,a,o){e.cmds.push(`C`),e.crds.push(t,n,r,i,a,o)},t.U.P.qcurveTo=function(e,t,n,r,i){e.cmds.push(`Q`),e.crds.push(t,n,r,i)},t.U.P.closePath=function(e){e.cmds.push(`Z`)},t.U._drawCFF=function(e,n,r,i,a){for(var o=n.stack,s=n.nStems,c=n.haveWidth,l=n.width,u=n.open,d=0,f=n.x,p=n.y,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=0,C=0,w={val:0,size:0};d<e.length;){t.CFF.getCharString(e,d,w);var T=w.val;if(d+=w.size,T==`o1`||T==`o18`)o.length%2!=0&&!c&&(l=o.shift()+i.nominalWidthX),s+=o.length>>1,o.length=0,c=!0;else if(T==`o3`||T==`o23`)o.length%2!=0&&!c&&(l=o.shift()+i.nominalWidthX),s+=o.length>>1,o.length=0,c=!0;else if(T==`o4`)o.length>1&&!c&&(l=o.shift()+i.nominalWidthX,c=!0),u&&t.U.P.closePath(a),p+=o.pop(),t.U.P.moveTo(a,f,p),u=!0;else if(T==`o5`)for(;o.length>0;)f+=o.shift(),p+=o.shift(),t.U.P.lineTo(a,f,p);else if(T==`o6`||T==`o7`)for(var E=o.length,D=T==`o6`,O=0;O<E;O++){var k=o.shift();D?f+=k:p+=k,D=!D,t.U.P.lineTo(a,f,p)}else if(T==`o8`||T==`o24`){E=o.length;for(var A=0;A+6<=E;)m=f+o.shift(),h=p+o.shift(),g=m+o.shift(),_=h+o.shift(),f=g+o.shift(),p=_+o.shift(),t.U.P.curveTo(a,m,h,g,_,f,p),A+=6;T==`o24`&&(f+=o.shift(),p+=o.shift(),t.U.P.lineTo(a,f,p))}else{if(T==`o11`)break;if(T==`o1234`||T==`o1235`||T==`o1236`||T==`o1237`)T==`o1234`&&(h=p,g=(m=f+o.shift())+o.shift(),C=_=h+o.shift(),y=_,x=p,f=(b=(v=(S=g
4168+o.shift())+o.shift())+o.shift())+o.shift(),t.U.P.curveTo(a,m,h,g,_,S,C),t.U.P.curveTo(a,v,y,b,x,f,p)),T==`o1235`&&(m=f+o.shift(),h=p+o.shift(),g=m+o.shift(),_=h+o.shift(),S=g+o.shift(),C=_+o.shift(),v=S+o.shift(),y=C+o.shift(),b=v+o.shift(),x=y+o.shift(),f=b+o.shift(),p=x+o.shift(),o.shift(),t.U.P.curveTo(a,m,h,g,_,S,C),t.U.P.curveTo(a,v,y,b,x,f,p)),T==`o1236`&&(m=f+o.shift(),h=p+o.shift(),g=m+o.shift(),C=_=h+o.shift(),y=_,b=(v=(S=g+o.shift())+o.shift())+o.shift(),x=y+o.shift(),f=b+o.shift(),t.U.P.curveTo(a,m,h,g,_,S,C),t.U.P.curveTo(a,v,y,b,x,f,p)),T==`o1237`&&(m=f+o.shift(),h=p+o.shift(),g=m+o.shift(),_=h+o.shift(),S=g+o.shift(),C=_+o.shift(),v=S+o.shift(),y=C+o.shift(),b=v+o.shift(),x=y+o.shift(),Math.abs(b-f)>Math.abs(x-p)?f=b+o.shift():p=x+o.shift(),t.U.P.curveTo(a,m,h,g,_,S,C),t.U.P.curveTo(a,v,y,b,x,f,p));else if(T==`o14`){if(o.length>0&&!c&&(l=o.shift()+r.nominalWidthX,c=!0),o.length==4){var j=o.shift(),M=o.shift(),N=o.shift(),P=o.shift(),ee=t.CFF.glyphBySE(r,N),F=t.CFF.glyphBySE(r,P);t.U._drawCFF(r.CharStrings[ee],n,r,i,a),n.x=j,n.y=M,t.U._drawCFF(r.CharStrings[F],n,r,i,a)}u&&=(t.U.P.closePath(a),!1)}else if(T==`o19`||T==`o20`)o.length%2!=0&&!c&&(l=o.shift()+i.nominalWidthX),s+=o.length>>1,o.length=0,c=!0,d+=s+7>>3;else if(T==`o21`)o.length>2&&!c&&(l=o.shift()+i.nominalWidthX,c=!0),p+=o.pop(),f+=o.pop(),u&&t.U.P.closePath(a),t.U.P.moveTo(a,f,p),u=!0;else if(T==`o22`)o.length>1&&!c&&(l=o.shift()+i.nominalWidthX,c=!0),f+=o.pop(),u&&t.U.P.closePath(a),t.U.P.moveTo(a,f,p),u=!0;else if(T==`o25`){for(;o.length>6;)f+=o.shift(),p+=o.shift(),t.U.P.lineTo(a,f,p);m=f+o.shift(),h=p+o.shift(),g=m+o.shift(),_=h+o.shift(),f=g+o.shift(),p=_+o.shift(),t.U.P.curveTo(a,m,h,g,_,f,p)}else if(T==`o26`)for(o.length%2&&(f+=o.shift());o.length>0;)m=f,h=p+o.shift(),f=g=m+o.shift(),p=(_=h+o.shift())+o.shift(),t.U.P.curveTo(a,m,h,g,_,f,p);else if(T==`o27`)for(o.length%2&&(p+=o.shift());o.length>0;)h=p,g=(m=f+o.shift())+o.shift(),_=h+o.shift(),f=g+o.shift(),p=_,t.U.P.curveTo(a,m,h,g,_,f,p);else if(T==`o10`||T==`o29`){var I=T==`o10`?i:r;if(o.length==0)console.debug(`error: empty stack`);else{var te=o.pop(),ne=I.Subrs[te+I.Bias];n.x=f,n.y=p,n.nStems=s,n.haveWidth=c,n.width=l,n.open=u,t.U._drawCFF(ne,n,r,i,a),f=n.x,p=n.y,s=n.nStems,c=n.haveWidth,l=n.width,u=n.open}}else if(T==`o30`||T==`o31`){var L=o.length,re=(A=0,T==`o31`);for(A+=L-(E=-3&L);A<E;)re?(h=p,g=(m=f+o.shift())+o.shift(),p=(_=h+o.shift())+o.shift(),E-A==5?(f=g+o.shift(),A++):f=g,re=!1):(m=f,h=p+o.shift(),g=m+o.shift(),_=h+o.shift(),f=g+o.shift(),E-A==5?(p=_+o.shift(),A++):p=_,re=!0),t.U.P.curveTo(a,m,h,g,_,f,p),A+=4}else{if((T+``).charAt(0)==`o`)throw console.debug(`Unknown operation: `+T,e),T;o.push(T)}}}n.x=f,n.y=p,n.nStems=s,n.haveWidth=c,n.width=l,n.open=u};var n=t,r={Typr:n};return e.Typr=n,e.default=r,Object.defineProperty(e,`__esModule`,{value:!0}),e}({}).Typr}function qP(){return function(e){var t=Uint8Array,n=Uint16Array,r=Uint32Array,i=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),o=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(e,t){for(var i=new n(31),a=0;a<31;++a)i[a]=t+=1<<e[a-1];var o=new r(i[30]);for(a=1;a<30;++a)for(var s=i[a];s<i[a+1];++s)o[s]=s-i[a]<<5|a;return[i,o]},c=s(i,2),l=c[0],u=c[1];l[28]=258,u[258]=28;for(var d=s(a,0)[0],f=new n(32768),p=0;p<32768;++p){var m=(43690&p)>>>1|(21845&p)<<1;m=(61680&(m=(52428&m)>>>2|(13107&m)<<2))>>>4|(3855&m)<<4,f[p]=((65280&m)>>>8|(255&m)<<8)>>>1}var h=function(e,t,r){for(var i=e.length,a=0,o=new n(t);a<i;++a)++o[e[a]-1];var s,c=new n(t);for(a=0;a<t;++a)c[a]=c[a-1]+o[a-1]<<1;if(r){s=new n(1<<t);var l=15-t;for(a=0;a<i;++a)if(e[a])for(var u=a<<4|e[a],d=t-e[a],p=c[e[a]-1]++<<d,m=p|(1<<d)-1;p<=m;++p)s[f[p]>>>l]=u}else for(s=new n(i),a=0;a<i;++a)e[a]&&(s[a]=f[c[e[a]-1]++]>>>15-e[a]);return s},g=new t(288);for(p=0;p<144;++p)g[p]=8;for(p=144;p<256;++p)g[p]=9;for(p=256;p<280;++p)g[p]=7;for(p=280;p<288;++p)g[p]=8;var _=new t(32);for(p=0;p<32;++p)_[p]=5;var v=h(g,9,1),y=h(_,5,1),b=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},x=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},S=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},C=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],w=function(e,t,n){var r=Error(t||C[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,w),!n)throw r;return r},T=function(e,s,c){var u=e.length;if(!u||c&&!c.l&&u<5)return s||new t(0);var f=!s||c,p=!c||c.i;c||={}
4168,s||=new t(3*u);var m,g=function(e){var n=s.length;if(e>n){var r=new t(Math.max(2*n,e));r.set(s),s=r}},_=c.f||0,C=c.p||0,T=c.b||0,E=c.l,D=c.d,O=c.m,k=c.n,A=8*u;do{if(!E){c.f=_=x(e,C,1);var j=x(e,C+1,3);if(C+=3,!j){var M=e[(R=((m=C)/8|0)+(7&m&&1)+4)-4]|e[R-3]<<8,N=R+M;if(N>u){p&&w(0);break}f&&g(T+M),s.set(e.subarray(R,N),T),c.b=T+=M,c.p=C=8*N;continue}if(j==1)E=v,D=y,O=9,k=5;else if(j==2){var P=x(e,C,31)+257,ee=x(e,C+10,15)+4,F=P+x(e,C+5,31)+1;C+=14;for(var I=new t(F),te=new t(19),ne=0;ne<ee;++ne)te[o[ne]]=x(e,C+3*ne,7);C+=3*ee;var L=b(te),re=(1<<L)-1,ie=h(te,L,1);for(ne=0;ne<F;){var R,ae=ie[x(e,C,re)];if(C+=15&ae,(R=ae>>>4)<16)I[ne++]=R;else{var z=0,oe=0;for(R==16?(oe=3+x(e,C,3),C+=2,z=I[ne-1]):R==17?(oe=3+x(e,C,7),C+=3):R==18&&(oe=11+x(e,C,127),C+=7);oe--;)I[ne++]=z}}var se=I.subarray(0,P),B=I.subarray(P);O=b(se),k=b(B),E=h(se,O,1),D=h(B,k,1)}else w(1);if(C>A){p&&w(0);break}}f&&g(T+131072);for(var ce=(1<<O)-1,le=(1<<k)-1,ue=C;;ue=C){var de=(z=E[S(e,C)&ce])>>>4;if((C+=15&z)>A){p&&w(0);break}if(z||w(2),de<256)s[T++]=de;else{if(de==256){ue=C,E=null;break}var fe=de-254;if(de>264){var pe=i[ne=de-257];fe=x(e,C,(1<<pe)-1)+l[ne],C+=pe}var V=D[S(e,C)&le],me=V>>>4;if(V||w(3),C+=15&V,B=d[me],me>3&&(pe=a[me],B+=S(e,C)&(1<<pe)-1,C+=pe),C>A){p&&w(0);break}f&&g(T+131072);for(var he=T+fe;T<he;T+=4)s[T]=s[T-B],s[T+1]=s[T+1-B],s[T+2]=s[T+2-B],s[T+3]=s[T+3-B];T=he}}c.l=E,c.p=ue,c.b=T,E&&(_=1,c.m=O,c.d=D,c.n=k)}while(!_);return T==s.length?s:function(e,i,a){(i==null||i<0)&&(i=0),(a==null||a>e.length)&&(a=e.length);var o=new(e instanceof n?n:e instanceof r?r:t)(a-i);return o.set(e.subarray(i,a)),o}(s,0,T)},E=new t(0),D=typeof TextDecoder<`u`&&new TextDecoder;try{D.decode(E,{stream:!0})}catch{}return e.convert_streams=function(e){var t=new DataView(e),n=0;function r(){var e=t.getUint16(n);return n+=2,e}function i(){var e=t.getUint32(n);return n+=4,e}function a(e){_.setUint16(v,e),v+=2}function o(e){_.setUint32(v,e),v+=4}for(var s={signature:i(),flavor:i(),length:i(),numTables:r(),reserved:r(),totalSfntSize:i(),majorVersion:r(),minorVersion:r(),metaOffset:i(),metaLength:i(),metaOrigLength:i(),privOffset:i(),privLength:i()},c=0;2**c<=s.numTables;)c++;c--;for(var l=16*2**c,u=16*s.numTables-l,d=12,f=[],p=0;p<s.numTables;p++)f.push({tag:i(),offset:i(),compLength:i(),origLength:i(),origChecksum:i()}),d+=16;var m,h=new Uint8Array(12+16*f.length+f.reduce((function(e,t){return e+t.origLength+4}),0)),g=h.buffer,_=new DataView(g),v=0;return o(s.flavor),a(s.numTables),a(l),a(c),a(u),f.forEach((function(e){o(e.tag),o(e.origChecksum),o(d),o(e.origLength),e.outOffset=d,(d+=e.origLength)%4!=0&&(d+=4-d%4)})),f.forEach((function(t){var n,r=e.slice(t.offset,t.offset+t.compLength);if(t.compLength!=t.origLength){var i=new Uint8Array(t.origLength);n=new Uint8Array(r,2),T(n,i)}else i=new Uint8Array(r);h.set(i,t.outOffset);var a=0;(d=t.outOffset+t.origLength)%4!=0&&(a=4-d%4),h.set(new Uint8Array(a).buffer,t.outOffset+t.origLength),m=d+a})),g.slice(0,m)},Object.defineProperty(e,`__esModule`,{value:!0}),e}({}).convert_streams}function JP(e,t){let n={M:2,L:2,Q:4,C:6,Z:0},r={C:`18g,ca,368,1kz`,D:`17k,6,2,2+4,5+c,2+6,2+1,10+1,9+f,j+11,2+1,a,2,2+1,15+2,3,j+2,6+3,2+8,2,2,2+1,w+a,4+e,3+3,2,3+2,3+5,23+w,2f+4,3,2+9,2,b,2+3,3,1k+9,6+1,3+1,2+2,2+d,30g,p+y,1,1+1g,f+x,2,sd2+1d,jf3+4,f+3,2+4,2+2,b+3,42,2,4+2,2+1,2,3,t+1,9f+w,2,el+2,2+g,d+2,2l,2+1,5,3+1,2+1,2,3,6,16wm+1v`,R:`17m+3,2,2,6+3,m,15+2,2+2,h+h,13,3+8,2,2,3+1,2,p+1,x,5+4,5,a,2,2,3,u,c+2,g+1,5,2+1,4+1,5j,6+1,2,b,2+2,f,2+1,1s+2,2,3+1,7,1ez0,2,2+1,4+4,b,4,3,b,42,2+2,4,3,2+1,2,o+3,ae,ep,x,2o+2,3+1,3,5+1,6`,L:`x9u,jff,a,fd,jv`,T:`4t,gj+33,7o+4,1+1,7c+18,2,2+1,2+1,2,21+a,2,1b+k,h,2u+6,3+5,3+1,2+3,y,2,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,3,7,6+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+d,1,1+1,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,ek,3+1,r+4,1e+4,6+5,2p+c,1+3,1,1+2,1+b,2db+2,3y,2p+v,ff+3,30+1,n9x,1+2,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,5s,6y+2,ea,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+9,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2,2b+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,470+8,at4+4,1o+6,t5,1s+3,2a,f5l+1,2+3,43o+2,a+7,1+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,1,gzau,v+2n,3l+6n`},i;function a(e){if(!i){let e={R:2,L:1,D:4,C:16,U:32,T:8};i=new Map;for(let t in r){let n=0;r[t].split(`,`).forEach(r=>{let[a,o]=r.split(`+`);a=parseInt(a,36),o=o?parseInt(o,36):0,i.set(n+=a,e[t]);for(let r=o;r--;)i.set(++n,e[t])})}}return i.get(e)||32}let o=[null,`isol`,`init`,`fina`,`medi`];function s(e){let t=new Uint8Array(e.length),n=32,r=1,i=-1;for(let o=0;o<e.length;o++){let s=e.codePointAt(o),c=a(s)|0,l=1;c&8||(n&21?c&22?(l=3,(r===1||r===3)&&t[i]++):c&33&&(r===2||r===4)&&t[i]--:n&34&&(r===2||r===4)&&t[i]--,r=t[o]=l,n=c,i=o,s>65535&&o++)}return t}function c(t,n){let r=[];for(let i=0;i<n.length;i++){let a=n.codePointAt(i);a>65535&&i++,r.push(e.U.codeToGlyph(t,a))}let i=t.GSUB;if(i){let{lookupList:t,featureList:a}=i,c,l=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws|ccmp)$/,u=[];a.forEach(i=>
4168{if(l.test(i.tag))for(let a=0;a<i.tab.length;a++){if(u[i.tab[a]])continue;u[i.tab[a]]=!0;let l=t[i.tab[a]],d=/^(isol|init|fina|medi)$/.test(i.tag);d&&!c&&(c=s(n));for(let n=0;n<r.length;n++)(!c||!d||o[c[n]]===i.tag)&&e.U._applySubs(r,n,l,t)}})}return r}function l(t,n){let r=new Int16Array(n.length*3),i=0;for(;i<n.length;i++){let c=n[i];if(c===-1)continue;r[i*3+2]=t.hmtx.aWidth[c];let l=t.GPOS;if(l){let d=l.lookupList;for(let l=0;l<d.length;l++){let f=d[l];for(let l=0;l<f.tabs.length;l++){let d=f.tabs[l];if(f.ltype===1){if(e._lctf.coverageIndex(d.coverage,c)!==-1&&d.pos){s(d.pos,i);break}}else if(f.ltype===2){let t=null,r=a();if(r!==-1){let a=e._lctf.coverageIndex(d.coverage,n[r]);if(a!==-1){if(d.fmt===1){let e=d.pairsets[a];for(let n=0;n<e.length;n++)e[n].gid2===c&&(t=e[n])}else if(d.fmt===2){let i=e.U._getGlyphClass(n[r],d.classDef1),a=e.U._getGlyphClass(c,d.classDef2);t=d.matrix[i][a]}if(t){t.val1&&s(t.val1,r),t.val2&&s(t.val2,i);break}}}}else if(f.ltype===4){let t=e._lctf.coverageIndex(d.markCoverage,c);if(t!==-1){let s=a(o),c=s===-1?-1:e._lctf.coverageIndex(d.baseCoverage,n[s]);if(c!==-1){let e=d.markArray[t],n=d.baseArray[c][e.markClass];r[i*3]=n.x-e.x+r[s*3]-r[s*3+2],r[i*3+1]=n.y-e.y+r[s*3+1];break}}}else if(f.ltype===6){let o=e._lctf.coverageIndex(d.mark1Coverage,c);if(o!==-1){let s=a();if(s!==-1){let a=n[s];if(u(t,a)===3){let t=e._lctf.coverageIndex(d.mark2Coverage,a);if(t!==-1){let e=d.mark1Array[o],n=d.mark2Array[t][e.markClass];r[i*3]=n.x-e.x+r[s*3]-r[s*3+2],r[i*3+1]=n.y-e.y+r[s*3+1];break}}}}}}}}else if(t.kern&&!t.cff){let e=a();if(e!==-1){let i=t.kern.glyph1.indexOf(n[e]);if(i!==-1){let n=t.kern.rval[i].glyph2.indexOf(c);n!==-1&&(r[e*3+2]+=t.kern.rval[i].vals[n])}}}}return r;function a(e){for(let t=i-1;t>=0;t--)if(n[t]!==-1&&(!e||e(n[t])))return t;return-1}function o(e){return u(t,e)===1}function s(e,t){for(let n=0;n<3;n++)r[t*3+n]+=e[n]||0}}function u(t,n){let r=t.GDEF&&t.GDEF.glyphClassDef;return r?e.U._getGlyphClass(n,r):0}function d(...e){for(let t=0;t<e.length;t++)if(typeof e[t]==`number`)return e[t]}function f(t){let r=Object.create(null),i=t[`OS/2`],a=t.hhea,o=t.head.unitsPerEm,s=d(i&&i.sTypoAscender,a&&a.ascender,o),u={unitsPerEm:o,ascender:s,descender:d(i&&i.sTypoDescender,a&&a.descender,0),capHeight:d(i&&i.sCapHeight,s),xHeight:d(i&&i.sxHeight,s),lineGap:d(i&&i.sTypoLineGap,a&&a.lineGap),supportsCodePoint(n){return e.U.codeToGlyph(t,n)>0},forEachGlyph(i,a,o,s){let d=0,f=1/u.unitsPerEm*a,p=c(t,i),m=0,h=l(t,p);return p.forEach((c,l)=>{if(c!==-1){let i=r[c];if(!i){let{cmds:a,crds:o}=e.U.glyphToPath(t,c),s=``,l=0;for(let e=0,t=a.length;e<t;e++){let t=n[a[e]];s+=a[e];for(let e=1;e<=t;e++)s+=(e>1?`,`:``)+o[l++]}let u,d,f,p;if(o.length){u=d=1/0,f=p=-1/0;for(let e=0,t=o.length;e<t;e+=2){let t=o[e],n=o[e+1];t<u&&(u=t),n<d&&(d=n),t>f&&(f=t),n>p&&(p=n)}}else u=f=d=p=0;i=r[c]={index:c,advanceWidth:t.hmtx.aWidth[c],xMin:u,yMin:d,xMax:f,yMax:p,path:s}}s.call(null,i,d+h[l*3]*f,h[l*3+1]*f,m),d+=h[l*3+2]*f,o&&(d+=o*a)}m+=i.codePointAt(m)>65535?2:1}),d}};return u}return function(n){let r=new Uint8Array(n,0,4),i=e._bin.readASCII(r,0,4);if(i===`wOFF`)n=t(n);else if(i===`wOF2`)throw Error(`woff2 fonts not supported`);return f(e.parse(n)[0])}}var YP=CP({name:`Typr Font Parser`,dependencies:[KP,qP,JP],init(e,t,n){return n(e(),t())}});function XP(){return function(e){var t=function(){this.buckets=new Map};t.prototype.add=function(e){var t=e>>5;this.buckets.set(t,(this.buckets.get(t)||0)|1<<(31&e))},t.prototype.has=function(e){var t=this.buckets.get(e>>5);return t!==void 0&&(t&1<<(31&e))!=0},t.prototype.serialize=function(){var e=[];return this.buckets.forEach((function(t,n){e.push((+n).toString(36)+`:`+t.toString(36))})),e.join(`,`)},t.prototype.deserialize=function(e){var t=this;this.buckets.clear(),e.split(`,`).forEach((function(e){var n=e.split(`:`);t.buckets.set(parseInt(n[0],36),parseInt(n[1],36))}))};var n=2**8,r=n-1,i=~r;function a(e){var t=function(e){return e&i}(e).toString(16),r=function(e){return(e&i)+n-1}(e).toString(16);return`codepoint-index/plane`+(e>>16)+`/`+t+`-`+r+`.json`}function o(e,t){var n=e&r,i=t.codePointAt(n/6|0);return((i=(i||48)-48)&1<<n%6)!=0}function s(e,t){var n;(n=e,n.replace(/U\+/gi,``).replace(/^,+|,+$/g,``).split(/,+/).map((function(e){return e.split(`-`).map((function(e){return parseInt(e.trim(),16)}))}
4168))).forEach((function(e){var n=e[0],r=e[1];r===void 0&&(r=n),t(n,r)}))}function c(e,t){s(e,(function(e,n){for(var r=e;r<=n;r++)t(r)}))}var l={},u={},d=new WeakMap,f=`https://cdn.jsdelivr.net/gh/lojjic/[email protected]/packages/data`;function p(e){var n=d.get(e);return n||(n=new t,c(e.ranges,(function(e){return n.add(e)})),d.set(e,n)),n}var m,h=new Map;function g(e,t,n){return e[t]?t:e[n]?n:function(e){for(var t in e)return t}(e)}function _(e,t){var n=t;if(!e.includes(n)){n=1/0;for(var r=0;r<e.length;r++)Math.abs(e[r]-t)<Math.abs(n-t)&&(n=e[r])}return n}function v(e){return m||(m=new Set,c(`9-D,20,85,A0,1680,2000-200A,2028-202F,205F,3000`,(function(e){m.add(e)}))),m.has(e)}return e.CodePointSet=t,e.clearCache=function(){l={},u={}},e.getFontsForString=function(e,t){t===void 0&&(t={});var n,r=t.lang;r===void 0&&(r=/\p{Script=Hangul}/u.test(n=e)?`ko`:/\p{Script=Hiragana}|\p{Script=Katakana}/u.test(n)?`ja`:`en`);var i=t.category;i===void 0&&(i=`sans-serif`);var s=t.style;s===void 0&&(s=`normal`);var c=t.weight;c===void 0&&(c=400);var d=(t.dataUrl||f).replace(/\/$/g,``),m=new Map,y=new Uint8Array(e.length),b={},x={},S=Array(e.length),C=new Map,w=!1;function T(e){var t=h.get(e);return t||(t=fetch(d+`/`+e).then((function(e){if(!e.ok)throw Error(e.statusText);return e.json().then((function(e){if(!Array.isArray(e)||e[0]!==1)throw Error(`Incorrect schema version; need 1, got `+e[0]);return e[1]}))})).catch((function(t){if(d!==f)return w||=(console.error(`unicode-font-resolver: Failed loading from dataUrl "`+d+`", trying default CDN. `+t.message),!0),d=f,h.delete(e),T(e);throw t})),h.set(e,t)),t}for(var E=function(t){var n=e.codePointAt(t),r=a(n);S[t]=r,l[r]||C.has(r)||C.set(r,T(r).then((function(e){l[r]=e}))),n>65535&&(t++,D=t)},D=0;D<e.length;D++)E(D);return Promise.all(C.values()).then((function(){C.clear();for(var t=function(t){var i=e.codePointAt(t),a=null,s=l[S[t]],c=void 0;for(var d in s){var f=x[d];if(f===void 0&&(f=x[d]=new RegExp(d).test(r||`en`)),f){for(var p in c=d,s[d])if(o(i,s[d][p])){a=p;break}break}}if(!a){t:for(var m in s)if(m!==c){for(var h in s[m])if(o(i,s[m][h])){a=h;break t}}}a||=(console.debug(`No font coverage for U+`+i.toString(16)),`latin`),S[t]=a,u[a]||C.has(a)||C.set(a,T(`font-meta/`+a+`.json`).then((function(e){u[a]=e}))),i>65535&&(t++,n=t)},n=0;n<e.length;n++)t(n);return Promise.all(C.values())})).then((function(){for(var t=null,n=0;n<e.length;n++){var r=e.codePointAt(n);if(t&&(v(r)||p(t).has(r)))y[n]=y[n-1];else{t=u[S[n]];var a=b[t.id];if(!a){var o=t.typeforms,l=g(o,i,`sans-serif`),f=g(o[l],s,`normal`),h=_(o[l]?.[f],c);a=b[t.id]=d+`/font-files/`+t.id+`/`+l+`.`+f+`.`+h+`.woff`}var x=m.get(a);x??(x=m.size,m.set(a,x)),y[n]=x}r>65535&&(n++,y[n]=y[n-1])}return{fontUrls:Array.from(m.keys()),chars:y}}))},Object.defineProperty(e,`__esModule`,{value:!0}),e}({})}function ZP(e,t){let n=Object.create(null),r=Object.create(null);function i(t,n){let r=e=>{console.error(`Failure loading font ${t}`,e)};try{let i=new XMLHttpRequest;i.open(`get`,t,!0),i.responseType=`arraybuffer`,i.onload=function(){if(i.status>=400)r(Error(i.statusText));else if(i.status>0)try{let r=e(i.response);r.src=t,n(r)}catch(e){r(e)}},i.onerror=r,i.send()}catch(e){r(e)}}function a(e,t){let a=n[e];a?t(a):r[e]?r[e].push(t):(r[e]=[t],i(e,t=>{t.src=e,n[e]=t,r[e].forEach(e=>e(t)),delete r[e]}))}return function(e,r,{lang:i,fonts:o=[],style:s=`normal`,weight:c=`normal`,unicodeFontsURL:l}={}){let u=new Uint8Array(e.length),d=[];e.length||h();let f=new Map,p=[];if(s!==`italic`&&(s=`normal`),typeof c!=`number`&&(c=c===`bold`?700:400),o&&!Array.isArray(o)&&(o=[o]),o=o.slice().filter(e=>!e.lang||e.lang.test(i)).reverse(),o.length){let t=0;(function r(i=0){for(let s=i,c=e.length;s<c;s++){let i=e.codePointAt(s);if(t===1&&d[u[s-1]].supportsCodePoint(i)||s>0&&/\s/.test(e[s]))u[s]=u[s-1],t===2&&(p[p.length-1][1]=s);else for(let e=u[s],c=o.length;e<=c;e++)if(e===c){let e=t===2?p[p.length-1]:p[p.length]=[s,s];e[1]=s,t=2}else{u[s]=e;let{src:c,unicodeRange:l}=o[e];if(!l||g(i,l)){let e=n[c];if(!e){a(c,()=>{r(s)});return}if(e.supportsCodePoint(i)){let n=f.get(e);typeof n!=`number`&&(n=d.length,d.push(e),f.set(e,n)),u[s]=n,t=1;break}}}i>65535&&s+1<c&&(u[s+1]=u[s],s++,t===2&&(p[p.length-1][1]=s))}m()})()}else p.push([0,e.length-1]),m();function m(){if(p.length){let n=p.map(t=>e.substring(t[0],t[1]+1)).join(`
4169`);t.getFontsForString(n,{lang:i||void 0,style:s,weight:c,dataUrl:l}).then(({fontUrls:e,chars:t})=>{let n=d.length,r=0;
4169p.forEach(e=>{for(let i=0,a=e[1]-e[0];i<=a;i++)u[e[0]+i]=t[r++]+n;r++});let i=0;e.forEach((t,r)=>{a(t,t=>{d[r+n]=t,++i===e.length&&h()})})})}else h()}function h(){r({chars:u,fonts:d})}function g(e,t){for(let n=0;n<t.length;n++){let[r,i=r]=t[n];if(r<=e&&e<=i)return!0}return!1}}}var QP=CP({name:`FontResolver`,dependencies:[ZP,YP,XP],init(e,t,n){return e(t,n())}});function $P(e,t){let n=1/0,r=/[\u00AD\u034F\u061C\u115F-\u1160\u17B4-\u17B5\u180B-\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFF8]/,i=`[^\\S\\u00A0]`,a=RegExp(`${i}|[\\-\\u007C\\u00AD\\u2010\\u2012-\\u2014\\u2027\\u2056\\u2E17\\u2E40]`);function o({text:t,lang:n,fonts:r,style:i,weight:a,preResolvedFonts:o,unicodeFontsURL:s},c){let l=({chars:e,fonts:t})=>{let n,r,i=[];for(let a=0;a<e.length;a++)e[a]===r?n.end=a:(r=e[a],i.push(n={start:a,end:a,fontObj:t[e[a]]}));c(i)};o?l(o):e(t,l,{lang:n,fonts:r,style:i,weight:a,unicodeFontsURL:s})}function s({text:e=``,font:s,lang:c,sdfGlyphSize:p=64,fontSize:m=400,fontWeight:h=1,fontStyle:g=`normal`,letterSpacing:_=0,lineHeight:v=`normal`,maxWidth:y=n,direction:b,textAlign:x=`left`,textIndent:S=0,whiteSpace:C=`normal`,overflowWrap:w=`normal`,anchorX:T=0,anchorY:E=0,metricsOnly:D=!1,unicodeFontsURL:O,preResolvedFonts:k=null,includeCaretPositions:A=!1,chunkedBoundsSize:j=8192,colorRanges:M=null},N){let P=d(),ee={fontLoad:0,typesetting:0};e.indexOf(`\r`)>-1&&(console.info(`Typesetter: got text with \\r chars; normalizing to \\n`),e=e.replace(/\r\n/g,`
4170`).replace(/\r/g,`
4171`)),m=+m,_=+_,y=+y,v||=`normal`,S=+S,o({text:e,lang:c,style:g,weight:h,fonts:typeof s==`string`?[{src:s}]:s,unicodeFontsURL:O,preResolvedFonts:k},o=>{ee.fontLoad=d()-P;let s=isFinite(y),c=null,p=null,h=null,g=null,O=null,k=null,F=null,I=null,te=0,ne=0,L=C!==`nowrap`,re=new Map,ie=d(),R=S,ae=0,z=new f,oe=[z];o.forEach(t=>{let{fontObj:n}=t,{ascender:o,descender:c,unitsPerEm:l,lineGap:u,capHeight:d,xHeight:p}=n,h=re.get(n);if(!h){let e=m/l,t=v===`normal`?(o-c+u)*e:v*m,r=(t-(o-c)*e)/2,i=Math.min(t,(o-c)*e),a=(o+c)/2*e+i/2;h={index:re.size,src:n.src,fontObj:n,fontSizeMult:e,unitsPerEm:l,ascender:o*e,descender:c*e,capHeight:d*e,xHeight:p*e,lineHeight:t,baseline:-r-o*e,caretTop:a,caretBottom:a-i},re.set(n,h)}let{fontSizeMult:g}=h,b=e.slice(t.start,t.end+1),x,C;n.forEachGlyph(b,m,_,(n,o,c,l)=>{o+=ae,l+=t.start,x=o,C=n;let u=e.charAt(l),d=n.advanceWidth*g,p=z.count,v;if(`isEmpty`in n||(n.isWhitespace=!!u&&new RegExp(i).test(u),n.canBreakAfter=!!u&&a.test(u),n.isEmpty=n.xMin===n.xMax||n.yMin===n.yMax||r.test(u)),!n.isWhitespace&&!n.isEmpty&&ne++,L&&s&&!n.isWhitespace&&o+d+R>y&&p){if(z.glyphAt(p-1).glyphObj.canBreakAfter)v=new f,R=-o;else for(let e=p;e--;)if(e===0&&w===`break-word`){v=new f,R=-o;break}else if(z.glyphAt(e).glyphObj.canBreakAfter){v=z.splitAt(e+1);let t=v.glyphAt(0).x;R-=t;for(let e=v.count;e--;)v.glyphAt(e).x-=t;break}v&&(z.isSoftWrapped=!0,z=v,oe.push(z),te=y)}let b=z.glyphAt(z.count);b.glyphObj=n,b.x=o+R,b.y=c,b.width=d,b.charIndex=l,b.fontData=h,u===`
4172`&&(z=new f,oe.push(z),R=-(o+d+_*m)+S)}),ae=x+C.advanceWidth*g+_*m});let se=0;oe.forEach(e=>{let t=!0;for(let n=e.count;n--;){let r=e.glyphAt(n);t&&!r.glyphObj.isWhitespace&&(e.width=r.x+r.width,e.width>te&&(te=e.width),t=!1);let{lineHeight:i,capHeight:a,xHeight:o,baseline:s}=r.fontData;i>e.lineHeight&&(e.lineHeight=i);let c=s-e.baseline;c<0&&(e.baseline+=c,e.cap+=c,e.ex+=c),e.cap=Math.max(e.cap,e.baseline+a),e.ex=Math.max(e.ex,e.baseline+o)}e.baseline-=se,e.cap-=se,e.ex-=se,se+=e.lineHeight});let B=0,ce=0;if(T&&(typeof T==`number`?B=-T:typeof T==`string`&&(B=-te*(T===`left`?0:T===`center`?.5:T===`right`?1:l(T)))),E&&(typeof E==`number`?ce=-E:typeof E==`string`&&(ce=E===`top`?0:E===`top-baseline`?-oe[0].baseline:E===`top-cap`?-oe[0].cap:E===`top-ex`?-oe[0].ex:E===`middle`?se/2:E===`bottom`?se:E===`bottom-baseline`?-oe[oe.length-1].baseline:l(E)*se)),!D){let r=t.getEmbeddingLevels(e,b);c=new Uint16Array(ne),p=new Uint8Array(ne),h=new Float32Array(ne*2),g={},F=[n,n,-n,-n],I=[],A&&(k=new Float32Array(e.length*4)),M&&(O=new Uint8Array(ne*3));let i=0,a=-1,o=-1,s,l;if(oe.forEach((d,f)=>{let{count:m,width:_}=d;if(m>0){let f=0;for(let e=m;e--&&d.glyphAt(e).glyphObj.isWhitespace;)f++;let v=0,y=0;if(x===`center`)v=(te-_)/2;else if(x===`right`)v=te-_;else if(x===`justify`&&d.isSoftWrapped){let e=0;for(let t=m-f;t--;)d.glyphAt(t).glyphObj.isWhitespace&&e++;y=(te-_)/e}if(y||v){let e=0;for(let t=0;t<m;t++){let n=d.glyphAt(t),r=n.glyphObj;n.x+=v+e,y!==0&&r.isWhitespace&&t<m-f&&(e+=y,n.width+=y)}}let b=t.getReorderSegments(e,r,d.glyphAt(0).charIndex,d.glyphAt(d.count-1).charIndex);for(let e=0;e<b.length;e++){let[t,n]=b[e],r=1/0,i=-1/0;for(let e=0;e<m;e++)if(d.glyphAt(e).charIndex>=t){let t=e,a=e;for(;a<m;
4172a++){let e=d.glyphAt(a);if(e.charIndex>n)break;a<m-f&&(r=Math.min(r,e.x),i=Math.max(i,e.x+e.width))}for(let e=t;e<a;e++){let t=d.glyphAt(e);t.x=i-(t.x+t.width-r)}break}}let S,C=e=>S=e;for(let f=0;f<m;f++){let m=d.glyphAt(f);S=m.glyphObj;let _=S.index,v=r.levels[m.charIndex]&1;if(v){let n=t.getMirroredCharacter(e[m.charIndex]);n&&m.fontData.fontObj.forEachGlyph(n,0,0,C)}if(A){let{charIndex:e,fontData:t}=m,n=m.x+B,r=m.x+m.width+B;k[e*4]=v?r:n,k[e*4+1]=v?n:r,k[e*4+2]=d.baseline+t.caretBottom+ce,k[e*4+3]=d.baseline+t.caretTop+ce;let i=e-a;i>1&&u(k,a,i),a=e}if(M){let{charIndex:e}=m;for(;e>o;)o++,M.hasOwnProperty(o)&&(l=M[o])}if(!S.isWhitespace&&!S.isEmpty){let e=i++,{fontSizeMult:t,src:r,index:a}=m.fontData,o=g[r]||(g[r]={});o[_]||(o[_]={path:S.path,pathBounds:[S.xMin,S.yMin,S.xMax,S.yMax]});let u=m.x+B,f=m.y+d.baseline+ce;h[e*2]=u,h[e*2+1]=f;let v=u+S.xMin*t,y=f+S.yMin*t,b=u+S.xMax*t,x=f+S.yMax*t;v<F[0]&&(F[0]=v),y<F[1]&&(F[1]=y),b>F[2]&&(F[2]=b),x>F[3]&&(F[3]=x),e%j===0&&(s={start:e,end:e,rect:[n,n,-n,-n]},I.push(s)),s.end++;let C=s.rect;if(v<C[0]&&(C[0]=v),y<C[1]&&(C[1]=y),b>C[2]&&(C[2]=b),x>C[3]&&(C[3]=x),c[e]=_,p[e]=a,M){let t=e*3;O[t]=l>>16&255,O[t+1]=l>>8&255,O[t+2]=l&255}}}}}),k){let t=e.length-a;t>1&&u(k,a,t)}}let le=[];re.forEach(({index:e,src:t,unitsPerEm:n,ascender:r,descender:i,lineHeight:a,capHeight:o,xHeight:s})=>{le[e]={src:t,unitsPerEm:n,ascender:r,descender:i,lineHeight:a,capHeight:o,xHeight:s}}),ee.typesetting=d()-ie,N({glyphIds:c,glyphFontIndices:p,glyphPositions:h,glyphData:g,fontData:le,caretPositions:k,glyphColors:O,chunkedBounds:I,fontSize:m,topBaseline:ce+oe[0].baseline,blockBounds:[B,ce-se,B+te,ce],visibleBounds:F,timings:ee})})}function c(e,t){s({...e,metricsOnly:!0},e=>{let[n,r,i,a]=e.blockBounds;t({width:i-n,height:a-r})})}function l(e){let t=e.match(/^([\d.]+)%$/),n=t?parseFloat(t[1]):NaN;return isNaN(n)?0:n/100}function u(e,t,n){let r=e[t*4],i=e[t*4+1],a=e[t*4+2],o=e[t*4+3],s=(i-r)/n;for(let i=0;i<n;i++){let n=(t+i)*4;e[n]=r+s*i,e[n+1]=r+s*(i+1),e[n+2]=a,e[n+3]=o}}function d(){return(self.performance||Date).now()}function f(){this.data=[]}let p=[`glyphObj`,`x`,`y`,`width`,`charIndex`,`fontData`];return f.prototype={width:0,lineHeight:0,baseline:0,cap:0,ex:0,isSoftWrapped:!1,get count(){return Math.ceil(this.data.length/p.length)},glyphAt(e){let t=f.flyweight;return t.data=this.data,t.index=e,t},splitAt(e){let t=new f;return t.data=this.data.splice(e*p.length),t}},f.flyweight=p.reduce((e,t,n,r)=>(Object.defineProperty(e,t,{get(){return this.data[this.index*p.length+n]},set(e){this.data[this.index*p.length+n]=e}}),e),{data:null,index:0}),{typeset:s,measure:c}}var eF=()=>(self.performance||Date).now(),tF=OP(),nF;function rF(e,t,n,r,i,a,o,s,c,l,u=!0){return u?cF(e,t,n,r,i,a,o,s,c,l).then(null,u=>(nF||=(console.warn(`WebGL SDF generation failed, falling back to JS`,u),!0),pF(e,t,n,r,i,a,o,s,c,l))):pF(e,t,n,r,i,a,o,s,c,l)}var iF=[],aF=5,oF=0;function sF(){let e=eF();for(;iF.length&&eF()-e<aF;)iF.shift()();oF=iF.length?setTimeout(sF,0):0}var cF=(...e)=>new Promise((t,n)=>{iF.push(()=>{let r=eF();try{tF.webgl.generateIntoCanvas(...e),t({timing:eF()-r})}catch(e){n(e)}}),oF||=setTimeout(sF,0)}),lF=4,uF=2e3,dF={},fF=0;function pF(e,t,n,r,i,a,o,s,c,l){let u=`TroikaTextSDFGenerator_JS_`+ fF++%lF,d=dF[u];return d||=dF[u]={workerModule:CP({name:u,workerId:u,dependencies:[OP,eF],init(e,t){let n=e().javascript.generate;return function(...e){let r=t();return{textureData:n(...e),timing:t()-r}}},getTransferables(e){return[e.textureData.buffer]}}),requests:0,idleTimer:null},d.requests++,clearTimeout(d.idleTimer),d.workerModule(e,t,n,r,i,a).then(({textureData:n,timing:r})=>{let i=eF(),a=new Uint8Array(n.length*4);for(let e=0;e<n.length;e++)a[e*4+l]=n[e];return tF.webglUtils.renderImageData(o,a,s,c,e,t,1<<3-l),r+=eF()-i,--d.requests===0&&(d.idleTimer=setTimeout(()=>{wP(u)},uF)),{timing:r}})}function mF(e){e._warm||=(tF.webgl.isSupported(e),!0)}var hF=tF.webglUtils.resizeWebGLCanvasWithoutClearing,gF={defaultFontURL:null,unicodeFontsURL:null,sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048,useWorker:!0},_F=new Z;function vF(){return(self.performance||Date).now()}var yF=Object.create(null);function bF(e,t){e=wF({},e);let n=vF(),{defaultFontURL:r}=gF,i=[];if(r&&i.push({label:`default`,src:EF(r)}),e.font&&i.push({label:`user`,src:EF(e.font)}),e.font=i,e.text=``+e.text,e.sdfGlyphSize=e.sdfGlyphSize||gF.sdfGlyphSize,e.unicodeFontsURL=e.unicodeFontsURL||gF.unicodeFontsURL,e.colorRanges!=null){let t={};for(let n in e.colorRanges)if(e.colorRanges.hasOwnProperty(n)){let r=e.colorRanges[n];typeof r!=`number`&&(r=_F.set(r).getHex()),t[n]=r}e.colorRanges=t}Object.freeze(e);let{textureWidth:a,sdfExponent:o}=gF,{sdfGlyphSize:s}=e,c=a/s*4,l=yF[s];if(!l){let e=document.createElement(`canvas`);e.width=a,e.height=s*256/c,l=yF[s]={glyphCount:0,sdfGlyphSize:s,sdfCanvas:e,sdfTexture:new r_(e,void 0,void 0,void 0,Xp,Xp),contextLost:!1,glyphsByFont:new Map},l.sdfTexture.generateMipmaps=!1,SF(l)}let{sdfTexture:u,sdfCanvas:d}=l;(gF.useWorker?OF:kF)(e).then(r=>{let{glyphIds:i,glyphFontIndices:f,fontData:p,glyphPositions:m,fontSize:h,timings:g}=r,_=[],v=new Float32Array(i.length*4),y=0,b=0,x=vF(),S=p.map(e=>{let t=l.glyphsByFont.get(e.src);return t||l.glyphsByFont.set(e.src,t=new Map),t});
4172i.forEach((e,t)=>{let n=f[t],{src:a,unitsPerEm:o}=p[n],c=S[n].get(e);if(!c){let{path:t,pathBounds:i}=r.glyphData[a][e],o=Math.max(i[2]-i[0],i[3]-i[1])/s*(gF.sdfMargin*s+.5),u=l.glyphCount++,d=[i[0]-o,i[1]-o,i[2]+o,i[3]+o];S[n].set(e,c={path:t,atlasIndex:u,sdfViewBox:d}),_.push(c)}let{sdfViewBox:u}=c,d=m[b++],g=m[b++],x=h/o;v[y++]=d+u[0]*x,v[y++]=g+u[1]*x,v[y++]=d+u[2]*x,v[y++]=g+u[3]*x,i[t]=c.atlasIndex}),g.quads=(g.quads||0)+(vF()-x);let C=vF();g.sdf={};let w=d.height,T=Math.ceil(l.glyphCount/c),E=2**Math.ceil(Math.log2(T*s));E>w&&(console.info(`Increasing SDF texture size ${w}->${E}`),hF(d,a,E),u.dispose()),Promise.all(_.map(t=>xF(t,l,e.gpuAccelerateSDF).then(({timing:e})=>{g.sdf[t.atlasIndex]=e}))).then(()=>{_.length&&!l.contextLost&&(DF(l),u.needsUpdate=!0),g.sdfTotal=vF()-C,g.total=vF()-n,t(Object.freeze({parameters:e,sdfTexture:u,sdfGlyphSize:s,sdfExponent:o,glyphBounds:v,glyphAtlasIndices:i,glyphColors:r.glyphColors,caretPositions:r.caretPositions,chunkedBounds:r.chunkedBounds,ascender:r.ascender,descender:r.descender,lineHeight:r.lineHeight,capHeight:r.capHeight,xHeight:r.xHeight,topBaseline:r.topBaseline,blockBounds:r.blockBounds,visibleBounds:r.visibleBounds,timings:r.timings}))})}),Promise.resolve().then(()=>{l.contextLost||mF(d)})}function xF({path:e,atlasIndex:t,sdfViewBox:n},{sdfGlyphSize:r,sdfCanvas:i,contextLost:a},o){if(a)return Promise.resolve({timing:-1});let{textureWidth:s,sdfExponent:c}=gF,l=Math.max(n[2]-n[0],n[3]-n[1]),u=Math.floor(t/4);return rF(r,r,e,n,l,c,i,u%(s/r)*r,Math.floor(u/(s/r))*r,t%4,o)}function SF(e){let t=e.sdfCanvas;t.addEventListener(`webglcontextlost`,t=>{console.log(`Context Lost`,t),t.preventDefault(),e.contextLost=!0}),t.addEventListener(`webglcontextrestored`,t=>{console.log(`Context Restored`,t),e.contextLost=!1;let n=[];e.glyphsByFont.forEach(t=>{t.forEach(t=>{n.push(xF(t,e,!0))})}),Promise.all(n).then(()=>{DF(e),e.sdfTexture.needsUpdate=!0})})}function CF({font:e,characters:t,sdfGlyphSize:n},r){bF({font:e,sdfGlyphSize:n,text:Array.isArray(t)?t.join(`
4173`):``+t},r)}function wF(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var TF;function EF(e){return TF||=typeof document>`u`?{}:document.createElement(`a`),TF.href=e,TF.href}function DF(e){if(typeof createImageBitmap!=`function`){console.info(`Safari<15: applying SDF canvas workaround`);let{sdfCanvas:t,sdfTexture:n}=e,{width:r,height:i}=t,a=e.sdfCanvas.getContext(`webgl`),o=n.image.data;(!o||o.length!==r*i*4)&&(o=new Uint8Array(r*i*4),n.image={width:r,height:i,data:o},n.flipY=!1,n.isDataTexture=!0),a.readPixels(0,0,r,i,a.RGBA,a.UNSIGNED_BYTE,o)}}var OF=CP({name:`Typesetter`,dependencies:[CP({name:`Typesetter`,dependencies:[$P,QP,kP],init(e,t,n){return e(t,n())}})],init(e){return function(t){return new Promise(n=>{e.typeset(t,n)})}},getTransferables(e){let t=[];for(let n in e)e[n]&&e[n].buffer&&t.push(e[n].buffer);return t}}),kF=OF.onMainThread,AF={};function jF(e){let t=AF[e];return t||=AF[e]=new iC(1,1,e,e).translate(.5,.5,0),t}var MF=`aTroikaGlyphBounds`,NF=`aTroikaGlyphIndex`,PF=`aTroikaGlyphColor`,FF=class extends Jw{constructor(){super(),this.detail=1,this.curveRadius=0,this.groups=[{start:0,count:1/0,materialIndex:0},{start:0,count:1/0,materialIndex:1}],this.boundingSphere=new Gv,this.boundingBox=new uv}computeBoundingSphere(){}computeBoundingBox(){}set detail(e){if(e!==this._detail){this._detail=e,(typeof e!=`number`||e<1)&&(e=1);let t=jF(e);[`position`,`normal`,`uv`].forEach(e=>{this.attributes[e]=t.attributes[e].clone()}),this.setIndex(t.getIndex().clone())}}get detail(){return this._detail}set curveRadius(e){e!==this._curveRadius&&(this._curveRadius=e,this._updateBounds())}get curveRadius(){return this._curveRadius}updateGlyphs(e,t,n,r,i){this.updateAttributeData(MF,e,4),this.updateAttributeData(NF,t,1),this.updateAttributeData(PF,i,3),this._blockBounds=n,this._chunkedBounds=r,this.instanceCount=t.length,this._updateBounds()}_updateBounds(){let e=this._blockBounds;if(e){let{curveRadius:t,boundingBox:n}=this;if(t){let{PI:r,floor:i,min:a,max:o,sin:s,cos:c}=Math,l=r/2,u=r*2,d=Math.abs(t),f=e[0]/d,p=e[2]/d,m=i((f+l)/u)===i((p+l)/u)?a(s(f)*d,s(p)*d):-d,h=i((f-l)/u)===i((p-l)/u)?o(s(f)*d,s(p)*d):d,g=i((f+r)/u)===i((p+r)/u)?o(d-c(f)*d,d-c(p)*d):d*2;n.min.set(m,e[1],t<0?-g:0),n.max.set(h,e[3],t<0?0:g)}else n.min.set(e[0],e[1],0),n.max.set(e[2],e[3],0);n.getBoundingSphere(this.boundingSphere)}}applyClipRect(e){let t=this.getAttribute(NF).count,n=this._chunkedBounds;if(n)for(let r=n.length;r--;){t=n[r].end;let i=n[r].rect;if(i[1]<e.w&&i[3]>
4173e.y&&i[0]<e.z&&i[2]>e.x)break}this.instanceCount=t}updateAttributeData(e,t,n){let r=this.getAttribute(e);t?r&&r.array.length===t.length?(r.array.set(t),r.needsUpdate=!0):(this.setAttribute(e,new cb(t,n)),delete this._maxInstanceCount,this.dispose()):r&&this.deleteAttribute(e)}},IF=`
4174uniform vec2 uTroikaSDFTextureSize;
4175uniform float uTroikaSDFGlyphSize;
4176uniform vec4 uTroikaTotalBounds;
4177uniform vec4 uTroikaClipRect;
4178uniform mat3 uTroikaOrient;
4179uniform bool uTroikaUseGlyphColors;
4180uniform float uTroikaEdgeOffset;
4181uniform float uTroikaBlurRadius;
4182uniform vec2 uTroikaPositionOffset;
4183uniform float uTroikaCurveRadius;
4184attribute vec4 aTroikaGlyphBounds;
4185attribute float aTroikaGlyphIndex;
4186attribute vec3 aTroikaGlyphColor;
4187varying vec2 vTroikaGlyphUV;
4188varying vec4 vTroikaTextureUVBounds;
4189varying float vTroikaTextureChannel;
4190varying vec3 vTroikaGlyphColor;
4191varying vec2 vTroikaGlyphDimensions;
4192`,LF=`
4193vec4 bounds = aTroikaGlyphBounds;
4194bounds.xz += uTroikaPositionOffset.x;
4195bounds.yw -= uTroikaPositionOffset.y;
4196
4197vec4 outlineBounds = vec4(
4198  bounds.xy - uTroikaEdgeOffset - uTroikaBlurRadius,
4199  bounds.zw + uTroikaEdgeOffset + uTroikaBlurRadius
4200);
4201vec4 clippedBounds = vec4(
4202  clamp(outlineBounds.xy, uTroikaClipRect.xy, uTroikaClipRect.zw),
4203  clamp(outlineBounds.zw, uTroikaClipRect.xy, uTroikaClipRect.zw)
4204);
4205
4206vec2 clippedXY = (mix(clippedBounds.xy, clippedBounds.zw, position.xy) - bounds.xy) / (bounds.zw - bounds.xy);
4207
4208position.xy = mix(bounds.xy, bounds.zw, clippedXY);
4209
4210uv = (position.xy - uTroikaTotalBounds.xy) / (uTroikaTotalBounds.zw - uTroikaTotalBounds.xy);
4211
4212float rad = uTroikaCurveRadius;
4213if (rad != 0.0) {
4214  float angle = position.x / rad;
4215  position.xz = vec2(sin(angle) * rad, rad - cos(angle) * rad);
4216  normal.xz = vec2(sin(angle), cos(angle));
4217}
4218  
4219position = uTroikaOrient * position;
4220normal = uTroikaOrient * normal;
4221
4222vTroikaGlyphUV = clippedXY.xy;
4223vTroikaGlyphDimensions = vec2(bounds[2] - bounds[0], bounds[3] - bounds[1]);
4224
4225
4226float txCols = uTroikaSDFTextureSize.x / uTroikaSDFGlyphSize;
4227vec2 txUvPerSquare = uTroikaSDFGlyphSize / uTroikaSDFTextureSize;
4228vec2 txStartUV = txUvPerSquare * vec2(
4229  mod(floor(aTroikaGlyphIndex / 4.0), txCols),
4230  floor(floor(aTroikaGlyphIndex / 4.0) / txCols)
4231);
4232vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare);
4233vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0);
4234`,RF=`
4235uniform sampler2D uTroikaSDFTexture;
4236uniform vec2 uTroikaSDFTextureSize;
4237uniform float uTroikaSDFGlyphSize;
4238uniform float uTroikaSDFExponent;
4239uniform float uTroikaEdgeOffset;
4240uniform float uTroikaFillOpacity;
4241uniform float uTroikaBlurRadius;
4242uniform vec3 uTroikaStrokeColor;
4243uniform float uTroikaStrokeWidth;
4244uniform float uTroikaStrokeOpacity;
4245uniform bool uTroikaSDFDebug;
4246varying vec2 vTroikaGlyphUV;
4247varying vec4 vTroikaTextureUVBounds;
4248varying float vTroikaTextureChannel;
4249varying vec2 vTroikaGlyphDimensions;
4250
4251float troikaSdfValueToSignedDistance(float alpha) {
4252  // Inverse of exponential encoding in webgl-sdf-generator
4253  
4254  float maxDimension = max(vTroikaGlyphDimensions.x, vTroikaGlyphDimensions.y);
4255  float absDist = (1.0 - pow(2.0 * (alpha > 0.5 ? 1.0 - alpha : alpha), 1.0 / uTroikaSDFExponent)) * maxDimension;
4256  float signedDist = absDist * (alpha > 0.5 ? -1.0 : 1.0);
4257  return signedDist;
4258}
4259
4260float troikaGlyphUvToSdfValue(vec2 glyphUV) {
4261  vec2 textureUV = mix(vTroikaTextureUVBounds.xy, vTroikaTextureUVBounds.zw, glyphUV);
4262  vec4 rgba = texture2D(uTroikaSDFTexture, textureUV);
4263  float ch = floor(vTroikaTextureChannel + 0.5); //NOTE: can't use round() in WebGL1
4264  return ch == 0.0 ? rgba.r : ch == 1.0 ? rgba.g : ch == 2.0 ? rgba.b : rgba.a;
4265}
4266
4267float troikaGlyphUvToDistance(vec2 uv) {
4268  return troikaSdfValueToSignedDistance(troikaGlyphUvToSdfValue(uv));
4269}
4270
4271float troikaGetAADist() {
4272  
4273  #if defined(GL_OES_standard_derivatives) || __VERSION__ >= 300
4274  return length(fwidth(vTroikaGlyphUV * vTroikaGlyphDimensions)) * 0.5;
4275  #else
4276  return vTroikaGlyphDimensions.x / 64.0;
4277  #endif
4278}
4279
4280float troikaGetFragDistValue() {
4281  vec2 clampedGlyphUV = clamp(vTroikaGlyphUV, 0.5 / uTroikaSDFGlyphSize, 1.0 - 0.5 / uTroikaSDFGlyphSize);
4282  float distance = troikaGlyphUvToDistance(clampedGlyphUV);
4283 
4284  // Extrapolate distance when outside bounds:
4285  distance += clampedGlyphUV == vTroikaGlyphUV ? 0.0 : 
4286    length((vTroikaGlyphUV - clampedGlyphUV) * vTroikaGlyphDimensions);
4287
4288  
4289
4290  return distance;
4291}
4292
4293float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) {
4294  #if defined(IS_DEPTH_MATERIAL) || defined(IS_DISTANCE_MATERIAL)
4295  float alpha = step(-distanceOffset, -distance);
4296  #else
4297
4298  float alpha = smoothstep(
4299    distanceOffset + aaDist,
4300    distanceOffset - aaDist,
4301    distance
4302  );
4303  #endif
4304
4305  return alpha;
4306}
4307`,zF=`
4308float aaDist = troikaGetAADist();
4309float fragDistance = troikaGetFragDistValue();
4310float edgeAlpha = uTroikaSDFDebug ?
4311  troikaGlyphUvToSdfValue(vTroikaGlyphUV) :
4312  troikaGetEdgeAlpha(fragDistance, uTroikaEdgeOffset, max(aaDist, uTroikaBlurRadius));
4313
4314#if !defined(IS_DEPTH_MATERIAL) && !defined(IS_DISTANCE_MATERIAL)
4315vec4 fillRGBA = gl_FragColor;
4316fillRGBA.a *= uTroikaFillOpacity;
4317vec4 strokeRGBA = uTroikaStrokeWidth == 0.0 ? fillRGBA : vec4(uTroikaStrokeColor, uTroikaStrokeOpacity);
4318if (fillRGBA.a == 0.0) fillRGBA.rgb = strokeRGBA.rgb;
4319gl_FragColor = mix(fillRGBA, strokeRGBA, smoothstep(
4320  -uTroikaStrokeWidth - aaDist,
4321  -uTroikaStrokeWidth + aaDist,
4322  fragDistance
4323));
4324gl_FragColor.a *= edgeAlpha;
4325#endif
4326
4327if (edgeAlpha == 0.0) {
4328  discard;
4329}
4330`;function BF(e){let t=zP(e,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new Y},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new i_(0,0,0,0)},uTroikaClipRect:{value:new i_(0,0,0,0)},uTroikaEdgeOffset:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new Y},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new Z},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new Hg},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:IF,vertexTransform:LF,fragmentDefs:RF,fragmentColorTransform:zF,customRewriter({vertexShader:e,fragmentShader:t}){let n=/\buniform\s+vec3\s+diffuse\b/;return n.test(t)&&(t=t.replace(n,`varying vec3 vTroikaGlyphColor`).replace(/\bdiffuse\b/g,`vTroikaGlyphColor`),n.test(e)||(e=e.replace(AP,`uniform vec3 diffuse;
4331$&
4332vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse;
4333`))),{vertexShader:e,fragmentShader:t}}});return t.transparent=!0,t.forceSinglePass=!0,Object.defineProperties(t,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),t}var VF=new My({color:16777215,side:2,transparent:!0}),HF=8421504,UF=new d_,WF=new X,GF=new X,KF=[],qF=new X,JF=`+x+y`;function YF(e){return Array.isArray(e)?e[0]:e}var XF=()=>{let e=new Wy(new iC(1,1),VF);return XF=()=>e,e},ZF=()=>{let e=new Wy(new iC(1,1,32,1),VF);return ZF=()=>e,e},QF={type:`syncstart`},$F={type:`synccomplete`},eI=[`font`,`fontSize`,`fontStyle`,`fontWeight`,`lang`,`letterSpacing`,`lineHeight`,`maxWidth`,`overflowWrap`,`text`,`direction`,`textAlign`,`textIndent`,`whiteSpace`,`anchorX`,`anchorY`,`colorRanges`,`sdfGlyphSize`],tI=eI.concat(`material`,`color`,`depthOffset`,`clipRect`,`curveRadius`,`orientation`,`glyphGeometryDetail`),nI=class extends Wy{constructor(){let e=new FF;super(e,null),this.text=``,this.anchorX=0,this.anchorY=0,this.curveRadius=0,this.direction=`auto`,this.font=null,this.unicodeFontsURL=null,this.fontSize=.1,this.fontWeight=`normal`,this.fontStyle=`normal`,this.lang=null,this.letterSpacing=0,this.lineHeight=`normal`,this.maxWidth=1/0,this.overflowWrap=`normal`,this.textAlign=`left`,this.textIndent=0,this.whiteSpace=`normal`,this.material=null,this.color=null,this.colorRanges=null,this.outlineWidth=0,this.outlineColor=0,this.outlineOpacity=1,this.outlineBlur=0,this.outlineOffsetX=0,this.outlineOffsetY=0,this.strokeWidth=0,this.strokeColor=HF,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=JF,this.glyphGeometryDetail=1,this.sdfGlyphSize=null,this.gpuAccelerateSDF=!0,this.debugSDF=!1}sync(e){this._needsSync&&(this._needsSync=!1,this._isSyncing?(this._queuedSyncs||=[]).push(e):(this._isSyncing=!0,this.dispatchEvent(QF),bF({text:this.text,font:this.font,lang:this.lang,fontSize:this.fontSize||.1,fontWeight:this.fontWeight||`normal`,fontStyle:this.fontStyle||`normal`,letterSpacing:this.letterSpacing||0,lineHeight:this.lineHeight||`normal`,maxWidth:this.maxWidth,direction:this.direction||`auto`,textAlign:this.textAlign,textIndent:this.textIndent,whiteSpace:this.whiteSpace,overflowWrap:this.overflowWrap,anchorX:this.anchorX,anchorY:this.anchorY,colorRanges:this.colorRanges,includeCaretPositions:!0,sdfGlyphSize:this.sdfGlyphSize,gpuAccelerateSDF:this.gpuAccelerateSDF,unicodeFontsURL:this.unicodeFontsURL},t=>{this._isSyncing=!1,this._textRenderInfo=t,this.geometry.updateGlyphs(t.glyphBounds,t.glyphAtlasIndices,t.blockBounds,t.chunkedBounds,t.glyphColors);let n=this._queuedSyncs;n&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{n.forEach(e=>e&&e())})),this.dispatchEvent($F),e&&e()})))}onBeforeRender(e,t,n,r,i,a){this.sync(),i.isTroikaTextMaterial&&this._prepareForRender(i)}dispose(){this.geometry.dispose()}get textRenderInfo(){return this._textRenderInfo||null}createDerivedMaterial(e){return BF(e)}get material(){let e=this._derivedMaterial,t=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=VF.clone());if((!e||!e.isDerivedFrom(t))&&(e=this._derivedMaterial=this.createDerivedMaterial(t),t.addEventListener(`dispose`,function n(){t.removeEventListener(`dispose`,n),e.dispose()})),this.hasOutline()){let t=e._outlineMtl;return t||(t=e._outlineMtl=Object.create(e,{id:{value:e.id+.1}}),t.isTextOutlineMaterial=!0,t.depthWrite=!1,t.map=null,e.addEventListener(`dispose`,function n(){e.removeEventListener(`dispose`,n),t.dis
4333pose()})),[t,e]}else return e}set material(e){e&&e.isTroikaTextMaterial?(this._derivedMaterial=e,this._baseMaterial=e.baseMaterial):this._baseMaterial=e}hasOutline(){return!!(this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY)}get glyphGeometryDetail(){return this.geometry.detail}set glyphGeometryDetail(e){this.geometry.detail=e}get curveRadius(){return this.geometry.curveRadius}set curveRadius(e){this.geometry.curveRadius=e}get customDepthMaterial(){return YF(this.material).getDepthMaterial()}set customDepthMaterial(e){}get customDistanceMaterial(){return YF(this.material).getDistanceMaterial()}set customDistanceMaterial(e){}_prepareForRender(e){let t=e.isTextOutlineMaterial,n=e.uniforms,r=this.textRenderInfo;if(r){let{sdfTexture:e,blockBounds:i}=r;n.uTroikaSDFTexture.value=e,n.uTroikaSDFTextureSize.value.set(e.image.width,e.image.height),n.uTroikaSDFGlyphSize.value=r.sdfGlyphSize,n.uTroikaSDFExponent.value=r.sdfExponent,n.uTroikaTotalBounds.value.fromArray(i),n.uTroikaUseGlyphColors.value=!t&&!!r.glyphColors;let a=0,o=0,s=0,c,l,u,d=0,f=0;if(t){let{outlineWidth:e,outlineOffsetX:t,outlineOffsetY:n,outlineBlur:r,outlineOpacity:i}=this;a=this._parsePercent(e)||0,o=Math.max(0,this._parsePercent(r)||0),c=i,d=this._parsePercent(t)||0,f=this._parsePercent(n)||0}else s=Math.max(0,this._parsePercent(this.strokeWidth)||0),s&&(u=this.strokeColor,n.uTroikaStrokeColor.value.set(u??HF),l=this.strokeOpacity,l??=1),c=this.fillOpacity;n.uTroikaEdgeOffset.value=a,n.uTroikaPositionOffset.value.set(d,f),n.uTroikaBlurRadius.value=o,n.uTroikaStrokeWidth.value=s,n.uTroikaStrokeOpacity.value=l,n.uTroikaFillOpacity.value=c??1,n.uTroikaCurveRadius.value=this.curveRadius||0;let p=this.clipRect;if(p&&Array.isArray(p)&&p.length===4)n.uTroikaClipRect.value.fromArray(p);else{let e=(this.fontSize||.1)*100;n.uTroikaClipRect.value.set(i[0]-e,i[1]-e,i[2]+e,i[3]+e)}this.geometry.applyClipRect(n.uTroikaClipRect.value)}n.uTroikaSDFDebug.value=!!this.debugSDF,e.polygonOffset=!!this.depthOffset,e.polygonOffsetFactor=e.polygonOffsetUnits=this.depthOffset||0;let i=t?this.outlineColor||0:this.color;if(i==null)delete e.color;else{let t=e.hasOwnProperty(`color`)?e.color:e.color=new Z;(i!==t._input||typeof i==`object`)&&t.set(t._input=i)}let a=this.orientation||JF;if(a!==e._orientation){let t=n.uTroikaOrient.value;a=a.replace(/[^-+xyz]/g,``);let r=a!==JF&&a.match(/^([-+])([xyz])([-+])([xyz])$/);if(r){let[,e,n,i,a]=r;WF.set(0,0,0)[n]=e===`-`?1:-1,GF.set(0,0,0)[a]=i===`-`?-1:1,UF.lookAt(qF,WF.cross(GF),GF),t.setFromMatrix4(UF)}else t.identity();e._orientation=a}}_parsePercent(e){if(typeof e==`string`){let t=e.match(/^(-?[\d.]+)%$/),n=t?parseFloat(t[1]):NaN;e=(isNaN(n)?0:n/100)*this.fontSize}return e}localPositionToTextCoords(e,t=new Y){t.copy(e);let n=this.curveRadius;return n&&(t.x=Math.atan2(e.x,Math.abs(n)-Math.abs(e.z))*Math.abs(n)),t}worldPositionToTextCoords(e,t=new Y){return WF.copy(e),this.localPositionToTextCoords(this.worldToLocal(WF),t)}raycast(e,t){let{textRenderInfo:n,curveRadius:r}=this;if(n){let i=n.blockBounds,a=r?ZF():XF(),o=a.geometry,{position:s,uv:c}=o.attributes;for(let e=0;e<c.count;e++){let t=i[0]+c.getX(e)*(i[2]-i[0]),n=i[1]+c.getY(e)*(i[3]-i[1]),a=0;r&&(a=r-Math.cos(t/r)*r,t=Math.sin(t/r)*r),s.setXYZ(e,t,n,a)}o.boundingSphere=this.geometry.boundingSphere,o.boundingBox=this.geometry.boundingBox,a.matrixWorld=this.matrixWorld,a.material.side=this.material.side,KF.length=0,a.raycast(e,KF);for(let e=0;e<KF.length;e++)KF[e].object=this,t.push(KF[e])}}copy(e){let t=this.geometry;return super.copy(e),this.geometry=t,tI.forEach(t=>{this[t]=e[t]}),this}clone(){return new this.constructor().copy(this)}};eI.forEach(e=>{let t=`_private_`+e;Object.defineProperty(nI.prototype,e,{get(){return this[t]},set(e){e!==this[t]&&(this[t]=e,this._needsSync=!0)}})}),new uv,new Z;var rI=w.forwardRef(({sdfGlyphSize:e=64,anchorX:t=`center`,anchorY:n=`middle`,font:r,fontSize:i=1,children:a,characters:o,onSync:s,...c},l)=>{let u=Nj(({invalidate:e})=>e),[d]=w.useState(()=>new nI),[f,p]=w.useMemo(()=>{let e=[],t=``;return w.Children.forEach(a,n=>
4333{typeof n==`string`||typeof n==`number`?t+=n:e.push(n)}),[e,t]},[a]);return PA(()=>new Promise(e=>CF({font:r,characters:o},e)),[`troika-text`,r,o]),w.useLayoutEffect(()=>void d.sync(()=>{u(),s&&s(d)})),w.useEffect(()=>()=>d.dispose(),[d]),w.createElement(`primitive`,Lp({object:d,ref:l,font:r,text:p,anchorX:t,anchorY:n,fontSize:i,sdfGlyphSize:e},c),f)}),iI=null,aI=`https://www.gstatic.com/draco/versioned/decoders/1.5.5/`;function oI(e=!0,t=!0,n){return r=>{n&&n(r),e&&(iI||=new uP,iI.setDecoderPath(typeof e==`string`?e:aI),r.setDRACOLoader(iI)),t&&r.setMeshoptDecoder(typeof pP==`function`?pP():pP)}}var sI=(e,t,n,r)=>Rj(uN,e,oI(t,n,r));sI.preload=(e,t,n,r)=>Rj.preload(uN,e,oI(t,n,r)),sI.clear=e=>Rj.clear(uN,e),sI.setDecoderPath=e=>{aI=e};function cI(e){let t=(0,Rn.c)(28),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({letra:r,rotationBaldosa:a,color:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let{nodes:o}=sI(`/pasapalabra.glb`),s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=[1,.35,1],t[5]=s):s=t[5];let c;t[6]===n?c=t[7]:(c=(0,K.jsx)(`meshStandardMaterial`,{color:n,emissive:n,emissiveIntensity:.3,metalness:.2,roughness:.5}),t[6]=n,t[7]=c);let l;t[8]!==o.Cylinder_1.geometry||t[9]!==c?(l=(0,K.jsx)(`mesh`,{geometry:o.Cylinder_1.geometry,children:c}),t[8]=o.Cylinder_1.geometry,t[9]=c,t[10]=l):l=t[10];let u;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,K.jsx)(`meshStandardMaterial`,{color:`white`,emissive:`white`,emissiveIntensity:.3}),t[11]=u):u=t[11];let d;t[12]===o.Cylinder_2.geometry?d=t[13]:(d=(0,K.jsx)(`mesh`,{geometry:o.Cylinder_2.geometry,children:u}),t[12]=o.Cylinder_2.geometry,t[13]=d);let f;t[14]!==l||t[15]!==d?(f=(0,K.jsxs)(`group`,{scale:s,children:[l,d]}),t[14]=l,t[15]=d,t[16]=f):f=t[16];let p;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(p=[0,.15,0],t[17]=p):p=t[17];let m=-a[1],h;t[18]===m?h=t[19]:(h=[-Math.PI/2,0,m],t[18]=m,t[19]=h);let g;
4333t[20]!==r||t[21]!==h?(g=(0,K.jsx)(rI,{position:p,rotation:h,fontSize:1,color:`white`,font:`https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/poppins/Poppins-ExtraBold.ttf`,anchorX:`center`,anchorY:`middle`,outlineWidth:.02,outlineColor:`white`,children:r}),t[20]=r,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==i||t[24]!==a||t[25]!==g||t[26]!==f?(_=(0,K.jsxs)(`group`,{...i,rotation:a,dispose:null,children:[f,g]}),t[23]=i,t[24]=a,t[25]=g,t[26]=f,t[27]=_):_=t[27],_}function lI(e){let t=(0,Rn.c)(18),{letras:n,radio:r,estadosLetras:i,indiceActivo:a}=e,o=(0,w.useRef)(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={x:0,y:0},t[0]=s):s=t[0];let c=(0,w.useRef)(s),l,u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=e=>{c.current.x=e.clientX/window.innerWidth*2-1,c.current.y=-(e.clientY/window.innerHeight)*2+1};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},u=[],t[1]=l,t[2]=u):(l=t[1],u=t[2]),(0,w.useEffect)(l,u);let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{if(!o.current)return;let t=e.clock.getElapsedTime(),{x:n,y:r}=c.current,i=-(n*.3)+.2,a=-(r*.1)+Math.PI/2,s=Math.sin(t*.6)*.1,l=Math.cos(t*.6)*.1;o.current.rotation.z=Rg.lerp(o.current.rotation.z,i+l,.1),o.current.rotation.x=Rg.lerp(o.current.rotation.x,a+s,.1)},t[3]=d):d=t[3],Pj(d);let f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=[0,0,0],p=[0,0,0],t[4]=f,t[5]=p):(f=t[4],p=t[5]);let m;if(t[6]!==i||t[7]!==a||t[8]!==n||t[9]!==r){let e;t[11]!==i||t[12]!==a||t[13]!==n.length||t[14]!==r?(e=(e,t)=>{let o=t/n.length*Math.PI*2-Math.PI/2+.2,s=Math.cos(o)*r,c=Math.sin(o)*r,l=-o+Math.PI/2,u=`#0047ab`,d=i[e];return d===`acierto`?u=`#28a745`:d===`error`?u=`#dc3545`:t===a&&(u=`#ffcc00`),(0,K.jsx)(cI,{letra:e,position:[s,0,c],rotationBaldosa:[0,l,0],color:u,scale:t===a?[1.2,1.2,1.2]:[1,1,1]},e)},t[11]=i,t[12]=a,t[13]=n.length,t[14]=r,t[15]=e):e=t[15],m=n.map(e),t[6]=i,t[7]=a,t[8]=n,t[9]=r,t[10]=m}else m=t[10];let h;return t[16]===m?h=t[17]:(h=(0,K.jsx)(`group`,{rotation:f,position:p,scale:1.7,children:(0,K.jsx)(`group`,{ref:o,children:m})}
4333),t[16]=m,t[17]=h),h}function uI(e){let t=(0,Rn.c)(8),{estadosLetras:n,indiceActivo:r,palabraAnt:i,info:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),t[0]=o):o=t[0];let s=o,c,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c={position:[0,0,90],fov:22.5},l=(0,K.jsx)(`ambientLight`,{intensity:.8}),t[1]=c,t[2]=l):(c=t[1],l=t[2]);let u;return t[3]!==n||t[4]!==r||t[5]!==a||t[6]!==i?(u=(0,K.jsxs)(nN,{camera:c,children:[l,(0,K.jsx)(lI,{letras:s,radio:9,estadosLetras:n,indiceActivo:r,palabraAnt:i,info:a})]}),t[3]=n,t[4]=r,t[5]=a,t[6]=i,t[7]=u):u=t[7],u}function dI(e){let t=(0,Rn.c)(28),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({letra:r,rotationBaldosa:a,color:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let{nodes:o}=sI(`/pasapalabra.glb`),s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=[1,.35,1],t[5]=s):s=t[5];let c;t[6]===n?c=t[7]:(c=(0,K.jsx)(`meshStandardMaterial`,{color:n,emissive:n,emissiveIntensity:.3,metalness:.2,roughness:.5}),t[6]=n,t[7]=c);let l;t[8]!==o.Cylinder_1.geometry||t[9]!==c?(l=(0,K.jsx)(`mesh`,{geometry:o.Cylinder_1.geometry,children:c}),t[8]=o.Cylinder_1.geometry,t[9]=c,t[10]=l):l=t[10];let u;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,K.jsx)(`meshStandardMaterial`,{color:`white`,emissive:`white`,emissiveIntensity:.3}),t[11]=u):u=t[11];let d;t[12]===o.Cylinder_2.geometry?d=t[13]:(d=(0,K.jsx)(`mesh`,{geometry:o.Cylinder_2.geometry,children:u}),t[12]=o.Cylinder_2.geometry,t[13]=d);let f;t[14]!==l||t[15]!==d?(f=(0,K.jsxs)(`group`,{scale:s,children:[l,d]}),t[14]=l,t[15]=d,t[16]=f):f=t[16];let p;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(p=[0,.15,0],t[17]=p):p=t[17];let m=-a[1],h;t[18]===m?h=t[19]:(h=[-Math.PI/2,0,m],t[18]=m,t[19]=h);let g;
4333t[20]!==r||t[21]!==h?(g=(0,K.jsx)(rI,{position:p,rotation:h,fontSize:1,color:`white`,font:`https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/poppins/Poppins-ExtraBold.ttf`,anchorX:`center`,anchorY:`middle`,outlineWidth:.02,outlineColor:`white`,children:r}),t[20]=r,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==i||t[24]!==a||t[25]!==g||t[26]!==f?(_=(0,K.jsxs)(`group`,{...i,rotation:a,dispose:null,children:[f,g]}),t[23]=i,t[24]=a,t[25]=g,t[26]=f,t[27]=_):_=t[27],_}function fI(e){let t=(0,Rn.c)(15),{letras:n,radio:r}=e,i=(0,w.useRef)(),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={x:0,y:0},t[0]=a):a=t[0];let o=(0,w.useRef)(a),s,c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=e=>{o.current.x=e.clientX/window.innerWidth*2-1,o.current.y=-(e.clientY/window.innerHeight)*2+1};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},c=[],t[1]=s,t[2]=c):(s=t[1],c=t[2]),(0,w.useEffect)(s,c);let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{if(!i.current)return;let t=e.clock.getElapsedTime(),{x:n,y:r}=o.current,a=-(n*.3)+.4,s=-(r*.1)+Math.PI/2,c=Math.sin(t*1.5)*.2,l=Math.cos(t*1.5)*.2;i.current.rotation.z=Rg.lerp(i.current.rotation.z,a+l,.1),i.current.rotation.x=Rg.lerp(i.current.rotation.x,s+c,.1)},t[3]=l):l=t[3],Pj(l);let u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{if(!i.current)return;let{x:e,y:t}=o.current,n=-(e*.3)-.3,r=-(t*.1)+Math.PI/2;i.current.rotation.z=Rg.lerp(i.current.rotation.z,n,.1),i.current.rotation.x=Rg.lerp(i.current.rotation.x,r,.1)},t[4]=u):u=t[4],Pj(u);let d,f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=[0,0,0],f=[0,0,0],t[5]=d,t[6]=f):(d=t[5],f=t[6]);let p;if(t[7]!==n||t[8]!==r){let e;t[10]!==n.length||t[11]!==r?(e=(e,t)=>{let i=t/n.length*Math.PI*2-Math.PI/2+.2,a=Math.cos(i)*r,o=Math.sin(i)*r,s=-i+Math.PI/2;return(0,K.jsx)(dI,{letra:e,position:[a,0,o],rotationBaldosa:[0,s,0],color:`#0047ab`},e)},t[10]=n.length,t[11]=r,t[12]=e):e=t[12],p=n.map(e),t[7]=n,t[8]=r,t[9]=p}else p=t[9];let m;return t[13]===p?m=t[14]:(m=(0,K.jsx)(`group`,{rotation:d,position:f,scale:1.7,children:(0,K.jsx)(`group`,{ref:i,children:p})}),t[13]=p,t[14]=m),m}function pI(){let e=(0,Rn.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),e[0]=t):t=e[0];let n=t,r;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,K.jsxs)(nN,{camera:{position:[0,0,90],fov:22.5},children:[(0,K.jsx)(`ambientLight`,{intensity:.8}),(0,K.jsx)(fI,{letras:n,radio:9})]}),e[1]=r):r=e[1],r}function mI(e){let t=(0,Rn.c)(19),{onTyping:n,onSiguiente:r,letraActiva:i}=e,[a,o]=(0,w.useState)(``),s=(0,w.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{o(``);let e=()=>s.current?.focus();return e(),window.addEventListener(`click`,e),()=>window.removeEventListener(`click`,e)},t[0]=c):c=t[0];let l;t[1]===i?l=t[2]:(l=[i],t[1]=i,t[2]=l),(0,w.useEffect)(c,l);let u;t[3]===n?u=t[4]:(u=e=>{let t=e.target.value.toUpperCase().replace(/[^A-ZÑ\sÁÉÍÓÚÜ]/g,``);o(t),n(t)},t[3]=n,t[4]=u);let d=u,f;t[5]===r?f=t[6]:(f=e=>{e.key===`Enter`&&r()},t[5]=r,t[6]=f);let p;t[7]!==d||t[8]!==a||t[9]!==f?(p=(0,K.jsx)(`input`,{ref:s,type:`text`,value:a,onChange:d,className:`inputOculto`,autoFocus:!0,onKeyDown:f}),t[7]=d,t[8]=a,t[9]=f,t[10]=p):p=t[10];let m;t[11]===a?m=t[12]:(m=a.split(` `).map((e,t)=>(0,K.jsxs)(`div`,{className:`grupoPalabra`,children:[e.split(``).map(hI),t<a.split(` `).length-1&&(0,K.jsx)(`span`,{className:`espacio`,children:`\xA0`})]},t)),t[11]=a,t[12]=m);let h;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,K.jsx)(`span`,{className:`cursor`,children:`|`}),t[13]=h):h=t[13];let g;t[14]===m?g=t[15]:(g=(0,K.jsxs)(`div`,{className:`displayLetras`,children:[m,h]}),t[14]=m,t[15]=g);let _;return t[16]!==p||t[17]!==g?(_=(0,K.jsxs)(`div`,{className:`contenedorPasapalabra`,children:[p,g]}),t[16]=p,t[17]=g,t[18]=_):_=t[18],_}function hI(e,t){return(0,K.jsx)(`span`,{className:`letraIndividual`,children:e},t)}var gI={A:{letra:`A`,prefijo:`Comienza con la A`,palabra:`Agustino`,pregunta:`Orden religiosa a la que pertenece el Papa León XIV.`,info:`Antes de vestir el blanco pontificio, Robert Prevost vistió durante décadas el hábito negro de la Orden de San Agustín. Su espiritualidad está marcada por el pensamiento de San Agustín: la búsqueda de la verdad en el interior y la importancia de la vida en comunidad.`},B:{letra:`B`,prefijo:`Comienza con la B`,palabra:`Béisbol`,pregunta:`Deporte del que es un gran apasionado y seguidor.`,info:`Como buen nacido en Chicago, es seguidor de los Chicago Cubs. Ha experimentado la paciencia y la fidelid
4333ad a unos colores incluso en tiempos sin victorias. Además, durante los últimos años ha mantenido su afición al tenis.`},C:{letra:`C`,prefijo:`Comienza con la C`,palabra:`Cónclave`,pregunta:`Reunión a puerta cerrada de los cardenales de la Iglesia católica para elegir a un nuevo Papa.`,info:`El pasado 8 de mayo de 2025, las puertas de la Capilla Sixtina se cerraron 'cum clave' (bajo llave). Cuatro fueron las votaciones hasta lograr la mayoría necesaria para elegir a León XIV. En una elección que sorprendió al mundo por su rapidez, el Colegio Cardenalicio eligió en secreto, bajo los frescos de Miguel Ángel, al que es obispo de Roma y sucesor de Pedro.`},D:{letra:`D`,prefijo:`Comienza con la D`,palabra:`Derecho Canónico`,pregunta:`Materia en la que el Papa es Doctor por la Universidad Angelicum.`,info:`Su doctorado le ha otorgado una visión precisa sobre la estructura y el orden que necesita la Iglesia hoy. En esa misma universidad defendió también su doctorado San Juan Pablo II.`},E:{letra:`E`,prefijo:`Comienza con la E`,palabra:`España`,pregunta:`País de nacimiento de sus abuelos maternos.`,info:`La sangre española corre por sus venas; sus abuelos eran originarios de Córdoba. Esto explica su conexión especial con nuestra cultura y su fluidez con el español mucho antes de ser enviado como misionero a Perú.`},F:{letra:`F`,prefijo:`Comienza con la F`,palabra:`Francis`,pregunta:`Segundo nombre de nacimiento del Santo Padre.`,info:`Su nombre completo es Robert Francis Prevost. Curiosamente, su segundo nombre tiene eco con el de su predecesor, el Papa Francisco, quien lo creó cardenal en 2023 y lo llamó a Roma.`},G:{letra:`G`,prefijo:`Comienza con la G`,palabra:`Gendarmería Vaticana`,pregunta:`Equipo de seguridad que le acompañará en su viaje por España.`,info:`Este cuerpo histórico, con su característico uniforme azul, es responsable de la vigilancia policial del Vaticano y de acompañar al Pontífice en sus viajes para garantizar su protección.`},H:{letra:`H`,prefijo:`Comienza con la H`,palabra:`Habemus Papam`,pregunta:`Expresión latina con la que fue presentado al mundo tras la fumata blanca.`,info:`Tras el anuncio del cardenal protodiácono desde el balcón de San Pedro, la explanada vaticana conoció al nuevo pastor bajo la fórmula: 'Annuntio vobis gaudium magnum; habemus Papam'.`},I:{letra:`I`,prefijo:`Comienza con la I`,palabra:`Illinois`,pregunta:`Estado norteamericano en el que nació y forjó su vocación.`,info:`Nacido en Chicago, creció en un hogar donde la fe y el esfuerzo académico fueron pilares. Su formación en la escuela católica de St. John Cassian despertó su apertura al mundo y su espíritu misionero.`},J:{letra:`J`,prefijo:`Comienza con la J`,palabra:`Jubileo de Jóvenes`,pregunta:`Evento multitudinario que protagonizó en Roma durante el verano de 2025.`,info:`Fue el primer gran evento de su pontificado. Millones de jóvenes se reunieron en Roma, donde León XIV conectó con ellos pidiéndoles ser 'testigos valientes en un mundo en cambio'.`},K:{letra:`K`,prefijo:`Comienza con la K`,palabra:`Kerygma`,pregunta:`Palabra griega que designa el 'primer anuncio' esencial del Evangelio.`,info:`Para León XIV, la misión de la Iglesia no es imponer normas, sino volver a la alegría del encuentro personal con Jesús. Este es el hilo conductor de su visita a España.`},L:{letra:`L`,prefijo:`Comienza con la L`,palabra:`Limosnería Apostólica`,pregunta:`Institución que ejerce la caridad en nombre del Papa y donde ha nombrado un superior español.`,info:`Ha confiado esta oficina a monseñor Luis Marín de San Martín para coordinar las obras de misericordia y la ayuda directa a los más necesitados.`},M:{letra:`M`,prefijo:`Comienza con la M`,palabra:`Magisterio`,pregunta:`Conjunto de enseñanzas y documentos oficiales del Papa.`,info:`Su magisterio se caracteriza por una base teológica agustiniana aplicada a problemas actuales: ecología integral, paz internacional y ética tecnológica.`},N:{letra:`N`,prefijo:`Comienza con la N`,palabra:`Nuncio Apostólico`,pregunta:`Figura que actúa como embajador del Papa en España.`,info:`Monseñor Piero Pioppo es el vínculo cotidiano entre las diócesis españolas y el Papa. Su labor de coordinación es fundamental para diseñar este viaje apostólico.`},O:{letra:`O`,prefijo:`Comienza con la O`,palabra:`Obispos`,pregunta:`Dicasterio del que era Prefecto hasta el día de su elección.`,info:`Desde su despacho en el Palazzo del Sant'Uffizio analizaba los perfiles de sacerdotes de todo el mund
4333o. Esta experiencia le dio un conocimiento global y único de la realidad de la Iglesia.`},P:{letra:`P`,prefijo:`Comienza con la P`,palabra:`Prior General`,pregunta:`Cargo máximo que ocupó dentro de la Orden de San Agustín a nivel mundial.`,info:`Gobernó la Orden entre 2001 y 2012, visitando las provincias agustinas de los cinco continentes, lo que le permitió adquirir una visión internacional antes de ser obispo.`},Q:{letra:`Q`,prefijo:`Comienza con la Q`,palabra:`Quechua`,pregunta:`Lengua indígena con la que convivió durante sus años de misión en Perú.`,info:`En la zona de Chulucanas, no solo aprendió el idioma, sino que se empapó de la cosmovisión de los pueblos originarios, motor de su insistencia por viajar a los rincones más lejanos.`},R:{letra:`R`,prefijo:`Comienza con la R`,palabra:`Ruta Canaria`,pregunta:`Recorrido migratorio que visitará para poner rostro a la tragedia de la inmigración.`,info:`Tras Madrid y Barcelona, el Papa visitará el Archipiélago Canario en una parada de fuerte carga simbólica, cumpliendo uno de los grandes deseos de su predecesor.`},S:{letra:`S`,prefijo:`Comienza con la S`,palabra:`Sagrada Familia`,pregunta:`Templo de Barcelona en el que inaugurará la Torre de Jesús.`,info:`Inaugurará la torre más alta de la basílica (172,5 metros). Representa el ejemplo perfecto de cómo el Evangelio habla al hombre contemporáneo a través del arte de Gaudí.`},T:{letra:`T`,prefijo:`Comienza con la T`,palabra:`Tenerife`,pregunta:`Isla que visitará para encontrarse con colectivos sociales en la frontera sur de Europa.`,info:`Es la primera visita en la historia de un pontífice al archipiélago. Un gesto de gratitud hacia un pueblo que ha dado ejemplo de acogida y humanidad ante la crisis migratoria.`},U:{letra:`U`,prefijo:`Comienza con la U`,palabra:`Unidad`,pregunta:`Mensaje central de su pontificado y parte de su lema episcopal.`,info:`Su lema 'In Illo uno unum' refleja que la Iglesia debe ser un espacio de comunión. Como matemático, entiende que el 'todo' es superior a la suma de las partes.`},V:{letra:`V`,prefijo:`Comienza con la V`,palabra:`Viaje Apostólico`,pregunta:`Nombre técnico de las visitas de un pontífice para confirmar en la fe a los fieles.`,info:`A diferencia de un viaje de Estado, busca entablar un diálogo con la sociedad. El lema de esta visita es 'Alzad la mirada'.`},W:{letra:`W`,prefijo:`Comienza con la W`,palabra:`Wojtyla`,pregunta:`Apellido del Papa que visitó España hasta en cinco ocasiones.`,info:`San Juan Pablo II dejó un listón muy elevado en sus visitas. León XIV llega para actualizar ese legado aportando su propio estilo agustiniano y cercano.`},X:{letra:`X`,prefijo:`Contiene la X`,palabra:`Exhortación`,pregunta:`Documento papal para animar a la Iglesia a una tarea pastoral específica.`,info:`Aunque su primera gran obra es la encíclica 'Dilexi te' sobre el amor a los pobres, las exhortaciones son claves para marcar la hoja de ruta tras eventos importantes.`},Y:{letra:`Y`,prefijo:`Contiene la Y`,palabra:`Chiclayo`,pregunta:`Diócesis peruana de la que Robert Prevost fue obispo.`,info:`Conocida como la 'Ciudad de la Amistad', allí dejó un recuerdo imborrable por su cercanía antes de ser llamado a Roma para trabajar en la Curia.`},Z:{letra:`Z`,prefijo:`Contiene la Z`,palabra:`Esperanza`,pregunta:`Virtud evangélica que es la 'hoja de ruta' de su visita a España.`,info:`Basándose en las Bienaventuranzas, el Papa insiste en que la felicidad verdadera nace del servicio. Busca dejar una semilla de esperanza para elevar la mirada hacia lo alto.`}},_I=u(s(((e,t)=>{((n,r)=>{typeof define==`function`&&define.amd?define([],r):typeof t==`object`&&e!==void 0?t.exports=r():n.Papa=r()})(e,function e(){var t=typeof self<`u`?self:typeof window<`u`?window:t===void 0?{}:t,n,r=!t.document&&!!t.postMessage,i=t.IS_PAPA_WORKER||!1,a={},o=0,s={};function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine=``,this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,n){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||=(a=this._config.quoteChar||`"`,this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&(a=this._config.beforeFirstChunk(e))!==void 0&&(e=a),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,a=(this._partialLine=``,this._handle.parse(r,this._baseIndex,!this._finished));
vendor: 16,698 bytes, lines 4333-4342
4333if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,r=(this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),i)t.postMessage({results:a,workerId:s.WORKER_ID,finished:r});else if(x(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!r||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):i&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e||={}).chunkSize||(e.chunkSize=s.RemoteChunkSize),c.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?`POST`:`GET`,this._input,!r),this._config.downloadRequestHeaders){var e,n=this._config.downloadRequestHeaders;for(e in n)t.setRequestHeader(e,n[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader(`Range`,`bytes=`+this._start+`-`+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&t.status===0&&this._chunkError()}},this._chunkLoaded=function(){t.readyState===4&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>(e=e.getResponseHeader(`Content-Range`))===null?-1:parseInt(e.substring(e.lastIndexOf(`/`)+1)))(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function u(e){(e||={}).chunkSize||(e.chunkSize=s.LocalChunkSize),c.call(this,e);var t,n,r=typeof FileReader<`u`;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e||={}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,``),this._finished=!t,this.parseChunk(n)}}function f(e){c.call(this,e||={});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on(`data`,this._streamData),this._input.on(`end`,this._streamEnd),this._input.on(`error`,this._streamError)},this._checkIsFinished=function(){r&&t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b(function(e){try{t.push(typeof e==`string`?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData(``)},this),this._streamCleanUp=b(function(){this._input.removeListener(`data`,this._streamData),this._input.removeListener(`end`,this._streamEnd),this._input.removeListener(`error`,this._streamError)},this)}function p(e){var t,n,r,i,a=2**53,o=-a,c=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,d=0,f=0,p=!1,g=!1,_=[],v={data:[],errors:[],meta:{}};function b(t){return e.skipEmptyLines===`greedy`?t.join(``).trim()===``:t.length===1&&t[0].length===0}function S(){if(v&&r&&(w(`Delimiter`,`UndetectableDelimiter`,`Unable to auto-detect delimiting character; defaulted to '`+s.DefaultDelimiter+`'`),r=!1),e.skipEmptyLines&&(v.data=v.data.filter(function(e){return!b(e)})),C()){if(v)if(Array.isArray(v.data[0])){for(var t=0;C()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){x(e.transformHeader)&&(t=e.transformHeader(t,n)),_.push(t)}}function n(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var s=i,u=t[i],u=((t,n)=>(t=>(e.dynamicTypingFunction&&e.dynamicTyping[t]===void 0&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?n===`true`||n===`TRUE`||n!==`false`&&n!==`FALSE`&&((e=>{if(c.test(e)&&(e=parseFloat(e),o<e&&e<a))return 1})(n)?parseFloat(n):l.test(n)?new Date(n):n===``?null:n):n)(s=e.header?i>=_.length?`__parsed_extra`:_[i]:s,u=e.transform?e.transform(u,s):u);s===`__parsed_extra`?(r[s]=r[s]||[],r[s].push(u)):r[s]=u}return e.header&&(i>_.length?w(`FieldMismatch`,`TooManyFields`,`Too many fields: expected `+_.length+` fields but parsed `+i,f+n):i<_.length&&w(`FieldMismatch`,`TooFewFields`,`Too few fields: expected `+_.length+` fields but parsed `+i,f+n)),r}var i;v&&(e.header||e.dynamicTyping||e.transform)&&(i=1,!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(n),i=v.data.length):v.data=n(v.data,0),e.header&&v.meta&&(v.meta.fields=_),f+=i)}function C(){return e.header&&_.length===0}function w(e,t,n,r){e={type:e,code:t,message:n},r!==void 0&&(e.row=r),v.errors.push(e)}x(e.step)&&(i=e.step,e.step=function(t){v=t,C()?S():(S(),v.data.length!==0&&(d+=t.data.length,e.preview&&d>e.preview?n.abort():(v.data=v.data[0],i(v,u))))}),this.parse=function(i,a,o){var c=e.quoteChar||`"`,c=(e.newline||=this.guessLineEndings(i,c),r=!1,e.delimiter?x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter):((c=((t,n,r,i,a)=>{var o,c,l,u;a||=[`,`,`	`,`|`,`;`,s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d<a.length;d++){for(var f,p=a[d],m=0,g=0,_=0,v=(l=void 0,new h({comments:i,delimiter:p,newline:n,preview:10}).parse(t)),y=0;y<v.data.length;y++)r&&b(v.data[y])?_++:(f=v.data[y].length,g+=f,l===void 0?l=f:0<f&&(m+=Math.abs(f-l),l=f));0<v.data.length&&(g/=v.data.length-_),(c===void 0||m<=c)&&(u===void 0||u<g)&&1.99<g&&(c=m,o=p,u=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=c.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),v.meta.delimiter=e.delimiter),y(e));return e.preview&&e.header&&c.preview++,t=i,n=new h(c),v=n.parse(t,a,o),S(),p?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=x(e.chunk)?``:t.substring(n.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),v.meta.aborted=!0,x(e.complete)&&e.complete(v),t=``},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+`([^]*?)`+m(t),`gm`),n=(e=e.replace(t,``)).split(`\r`),t=e.split(`
4334`),e=1<t.length&&t[0].length<n[0].length;if(n.length===1||e)return`
4335`;for(var r=0,i=0;i<n.length;i++)n[i][0]===`
4336`&&r++;return r>=n.length/2?`\r
4337`:`\r`}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e){var t=(e||={}).delimiter,n=e.newline,r=e.comments,i=e.step,a=e.preview,o=e.fastMode,c=null,l=!1,u=e.quoteChar==null?`"`:e.quoteChar,d=u;if(e.escapeChar!==void 0&&(d=e.escapeChar),(typeof t!=`string`||-1<s.BAD_DELIMITERS.indexOf(t))&&(t=`,`),r===t)throw Error(`Comment character same as delimiter`);!0===r?r=`#`:(typeof r!=`string`||-1<s.BAD_DELIMITERS.indexOf(r))&&(r=!1),n!==`
4338`&&n!==`\r`&&n!==`\r
4339`&&(n=`
4340`);var f=0,p=!1;this.parse=function(s,h,g){if(typeof s!=`string`)throw Error(`Input must be a string`);var _=s.length,v=t.length,y=n.length,b=r.length,S=x(i),C=[],w=[],T=[],E=f=0;if(!s)return te();if(o||!1!==o&&s.indexOf(u)===-1){for(var D=s.split(n),O=0;O<D.length;O++){if(T=D[O],f+=T.length,O!==D.length-1)f+=n.length;else if(g)return te();if(!r||T.substring(0,b)!==r){if(S){if(C=[],P(T.split(t)),ne(),p)return te()}else P(T.split(t));if(a&&a<=O)return C=C.slice(0,a),te(!0)}}return te()}for(var k=s.indexOf(t,f),A=s.indexOf(n,f),j=new RegExp(m(d)+m(u),`g`),M=s.indexOf(u,f);;)if(s[f]===u)for(M=f,f++;;){if((M=s.indexOf(u,M+1))===-1)return g||w.push({type:`Quotes`,code:`MissingQuotes`,message:`Quoted field unterminated`,row:C.length,index:f}),F();if(M===_-1)return F(s.substring(f,M).replace(j,u));if(u===d&&s[M+1]===d)M++;else if(u===d||M===0||s[M-1]!==d){k!==-1&&k<M+1&&(k=s.indexOf(t,M+1));var N=ee((A=A!==-1&&A<M+1?s.indexOf(n,M+1):A)===-1?k:Math.min(k,A));if(s.substr(M+1+N,v)===t){T.push(s.substring(f,M).replace(j,u)),s[f=M+1+N+v]!==u&&(M=s.indexOf(u,f)),k=s.indexOf(t,f),A=s.indexOf(n,f);break}if(N=ee(A),s.substring(M+1+N,M+1+N+y)===n){if(T.push(s.substring(f,M).replace(j,u)),I(M+1+N+y),k=s.indexOf(t,f),M=s.indexOf(u,f),S&&(ne(),p))return te();if(a&&C.length>=a)return te(!0);break}w.push({type:`Quotes`,code:`InvalidQuotes`,message:`Trailing quote on quoted field is malformed`,row:C.length,index:f}),M++}}else if(r&&T.length===0&&s.substring(f,f+b)===r){if(A===-1)return te();f=A+y,A=s.indexOf(n,f),k=s.indexOf(t,f)}else if(k!==-1&&(k<A||A===-1))T.push(s.substring(f,k)),f=k+v,k=s.indexOf(t,f);else{if(A===-1)break;if(T.push(s.substring(f,A)),I(A+y),S&&(ne(),p))return te();if(a&&C.length>=a)return te(!0)}return F();function P(e){C.push(e),E=f}function ee(e){var t=0;return t=e!==-1&&(e=s.substring(M+1,e))&&e.trim()===``?e.length:t}function F(e){return g||(e===void 0&&(e=s.substring(f)),T.push(e),f=_,P(T),S&&ne()),te()}function I(e){f=e,P(T),T=[],A=s.indexOf(n,f)}function te(r){if(e.header&&!h&&C.length&&!l){var i=C[0],a=Object.create(null),o=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=i[n];if(a[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=a[r];for(;e=r+`_`+s,s++,o.has(e););o.add(e),i[n]=e,a[r]++,t=!0,(c=c===null?{}:c)[e]=r}else a[r]=1,i[n]=r;o.add(r)}t&&console.warn(`Duplicate headers found and renamed.`),l=!0}return{data:C,errors:w,meta:{delimiter:t,linebreak:n,aborted:p,truncated:!!r,cursor:E+(h||0),renamedHeaders:c}}}function ne(){i(te()),C=[],w=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return f}}function g(e){var t=e.data,n=a[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},i),!r);o++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=a[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete a[e]}function v(){throw Error(`Not implemented.`)}function y(e){if(typeof e!=`object`||!e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=y(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function x(e){return typeof e==`function`}return s.parse=function(n,r){var i=(r||={}).dynamicTyping||!1;if(x(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!x(r.transform)&&r.transform,!r.worker||!s.WORKERS_SUPPORTED)return i=null,s.NODE_STREAM_INPUT,typeof n==`string`?(n=(e=>e.charCodeAt(0)===65279?e.slice(1):e)(n),i=new(r.download?l:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?i=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(i=new u(r)),i.stream(n);(i=(()=>{var n;return!!s.WORKERS_SUPPORTED&&(n=(()=>{var n=t.URL||t.webkitURL||null,r=e.toString();return s.BLOB_URL||=n.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))})(),(n=new t.Worker(n)).onmessage=g,n.id=o++,a[n.id]=n)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,i.postMessage({input:n,config:r,workerId:i.id})},s.unparse=function(e,t){var n=!1,r=!0,i=`,`,a=`\r
4341`,o=`"`,c=o+o,l=!1,u=null,d=!1,f=((()=>{if(typeof t==`object`){if(typeof t.delimiter!=`string`||s.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length||(i=t.delimiter),typeof t.quotes!=`boolean`&&typeof t.quotes!=`function`&&!Array.isArray(t.quotes)||(n=t.quotes),typeof t.skipEmptyLines!=`boolean`&&typeof t.skipEmptyLines!=`string`||(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(o=t.quoteChar),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(c=t.escapeChar+o),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(o),`g`));if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,l);if(typeof e[0]==`object`)return p(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||=e.meta&&e.meta.fields||u,e.fields||=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[],Array.isArray(e.data[0])||typeof e.data[0]==`object`||(e.data=[e.data])),p(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(e,t,n){var o=``,s=(typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)0<l&&(o+=i),o+=h(e[l],l);0<t.length&&(o+=a)}for(var u=0;u<t.length;u++){var d=(s?e:t[u]).length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&t[u][0].length===0),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){0<v&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||0<d&&!p)&&(o+=a)}}return o}function h(e,t){var r,a;return e==null?``:e.constructor===Date?JSON.stringify(e).slice(1,25):(a=!1,d&&typeof e==`string`&&d.test(e)&&(e=`'`+e,a=!0),r=e.toString().replace(f,c),(a=a||!0===n||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(r,s.BAD_DELIMITERS)||-1<r.indexOf(i)||r.charAt(0)===` `||r.charAt(r.length-1)===` `)?o+r+o:r)}},s.RECORD_SEP=`�`,s.UNIT_SEP=`�`,s.BYTE_ORDER_MARK=``,s.BAD_DELIMITERS=[`\r`,`
4342`,`"`,s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!r&&!!t.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=`,`,s.Parser=h,s.ParserHandle=p,s.NetworkStreamer=l,s.FileStreamer=u,s.StringStreamer=d,s.ReadableStreamStreamer=f,t.jQuery&&((n=t.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(e){if(!(n(this).prop(`tagName`).toUpperCase()===`INPUT`&&n(this).attr(`type`).toLowerCase()===`file`&&t.FileReader)||!this.files||this.files.length===0)return!0;for(var a=0;a<this.files.length;
4342a++)i.push({file:this.files[a],inputElem:this,instanceConfig:n.extend({},r)})}),a(),this;function a(){if(i.length===0)x(e.complete)&&e.complete();else{var t,r,a,c,l=i[0];if(x(e.before)){var u=e.before(l.file,l.inputElem);if(typeof u==`object`){if(u.action===`abort`)return t=`AbortError`,r=l.file,a=l.inputElem,c=u.reason,void(x(e.error)&&e.error({name:t},r,a,c));if(u.action===`skip`)return void o();typeof u.config==`object`&&(l.instanceConfig=n.extend(l.instanceConfig,u.config))}else if(u===`skip`)return void o()}var d=l.instanceConfig.complete;l.instanceConfig.complete=function(e){x(d)&&d(e,l.file,l.inputElem),o()},s.parse(l.file,l.instanceConfig)}}function o(){i.splice(0,1),a()}}),i&&(t.onmessage=function(e){e=e.data,s.WORKER_ID===void 0&&e&&(s.WORKER_ID=e.workerId),typeof e.input==`string`?t.postMessage({workerId:s.WORKER_ID,results:s.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=s.parse(e.input,e.config))&&t.postMessage({workerId:s.WORKER_ID,results:e,finished:!0})}),(l.prototype=Object.create(c.prototype)).constructor=l,(u.prototype=Object.create(c.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,s})}))(),1);function vI(){let e=(0,w.useRef)(),t=(0,w.useRef)({x:0,y:0}),{nodes:n}=sI(`/lugar.glb`);if((0,w.useEffect)(()=>{let e=e=>{t.current.x=e.clientX/window.innerWidth*2-1,t.current.y=-(e.clientY/window.innerHeight)*2+1};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},[]),Pj(n=>{if(!e.current)return;let r=n.clock.getElapsedTime(),{x:i,y:a}=t.current,o=-(i*.3)+.4,s=-(a*.1)+Math.PI/2,c=Math.sin(r*1)*.1,l=Math.cos(r*1)*.1;e.current.rotation.z=Rg.lerp(e.current.rotation.z,o+l,.1),e.current.rotation.x=Rg.lerp(e.current.rotation.x,s+c,.1)}),!n||!n.BézierCircle)return null;let r=`#ff0000`,i=`#fff`,{viewport:a}=Nj();return(0,K.jsx)(`group`,{rotation:[0,0,0],position:[10,0,0],scale:window.innerWidth<768?4:6,children:(0,K.jsxs)(`group`,{ref:e,children:[(0,K.jsx)(`mesh`,{geometry:n.Mesh.geometry,children:(0,K.jsx)(`meshStandardMaterial`,{color:r,emissive:r,emissiveIntensity:.3,metalness:.2,roughness:.5})}),(0,K.jsx)(`mesh`,{geometry:n.Mesh_1.geometry,children:(0,K.jsx)(`meshStandardMaterial`,{color:i,emissive:i,emissiveIntensity:.3,metalness:.2,roughness:.5})})]})})}function yI(e){let t=(0,Rn.c)(3),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={position:[0,0,90],fov:22.5},r=(0,K.jsx)(`ambientLight`,{intensity:.8}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,K.jsx)(`div`,{className:`iconoWrapper`,children:(0,K.jsxs)(nN,{camera:n,children:[r,(0,K.jsx)(w.Suspense,{fallback:null,children:(0,K.jsx)(vI,{})})]})}),t[2]=i):i=t[2],i}function bI(){let e=(0,Rn.c)(26),[t,n]=(0,w.useState)(`espana`),[r,i]=(0,w.useState)(!1),[a,o]=(0,w.useState)(!1),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{let e=window.matchMedia(`(max-width: 1024px)`).matches,t=window.matchMedia(`(orientation: portrait)`).matches;o(e&&t)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,w.useEffect)(s,c);let l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{i(!0),setTimeout(()=>{n(e),i(!1)},400)},e[2]=l):l=e[2];let u=l,d;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{let t=e.target.closest(`#madrid, #barcelona, #canarias`);if(t){let e=t.id;u(e),console.log(`Región activada:`,e)}},e[3]=d):d=e[3];let f=d,p;e[4]===a?p=e[5]:(p=a&&(0,K.jsx)(`div`,{className:`bloqueo-orientacion`,children:(0,K.jsxs)(`div`,{className:`bloqueo-contenido`,children:[(0,K.jsx)(`div`,{className:`icono-girar`,children:`🔄`}),(0,K.jsx)(`h2`,{children:`Por favor, gira tu dispositivo`}),(0,K.jsx)(`p`,{children:`Para una mejor experiencia con el mapa interactivo, utiliza el modo horizontal.`})]})}),e[4]=a,e[5]=p);let m;e[6]===t?m=e[7]:(m=t!==`espana`&&(0,K.jsx)(`button`,{onClick:()=>u(`espana`),className:`volver mapa`,children:(0,K.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20viewBox='0%200%20123%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M97.7784%2028.7358H2.77844M16.2784%2043L2.77844%2028.7358L16.2784%2015'%20stroke='black'%20stroke-width='4'%20stroke-linecap='round'/%3e%3cpath%20d='M36.8384%208.06L31.5784%2022H29.4784L24.2184%208.06H26.1584L30.5384%2020.08L34.9184%208.06H36.8384ZM45.1541%2022.14C43.8607%2022.14%2042.6807%2021.84%2041.6141%2021.24C40.5474%2020.6267%2039.7007%2019.78%2039.0741%2018.7C38.4607%2017.6067%2038.1541%2016.38%2038.1541%2015.02C38.1541%2013.66%2038.4607%2012.44%2039.0741%2011.36C39.7007%2010.2667%2040.5474%209.42%2041.6141%208.82C42.6807%208.20667%2043.8607%207.9%2045.1541%207.9C46.4607%207.9%2047.6474%208.20667%2048.7141%208.82C49.7807%209.42%2050.6207%2010.26%2051.2341%2011.34C51.8474%2012.42%2052.1541%2013.6467%2052.1541%2015.02C52.1541%2016.3933%2051.8474%2017.62%2051.2341%2018.7C50.6207%2019.78%2049.7807%2020.6267%2048.7141%2021.24C47.6474%2021.84%2046.4607%2022.14%2045.1541%2022.14ZM45.
43421541%2020.56C46.1274%2020.56%2047.0007%2020.3333%2047.7741%2019.88C48.5607%2019.4267%2049.1741%2018.78%2049.6141%2017.94C50.0674%2017.1%2050.2941%2016.1267%2050.2941%2015.02C50.2941%2013.9%2050.0674%2012.9267%2049.6141%2012.1C49.1741%2011.26%2048.5674%2010.6133%2047.7941%2010.16C47.0207%209.70667%2046.1407%209.48%2045.1541%209.48C44.1674%209.48%2043.2874%209.70667%2042.5141%2010.16C41.7407%2010.6133%2041.1274%2011.26%2040.6741%2012.1C40.2341%2012.9267%2040.0141%2013.9%2040.0141%2015.02C40.0141%2016.1267%2040.2341%2017.1%2040.6741%2017.94C41.1274%2018.78%2041.7407%2019.4267%2042.5141%2019.88C43.3007%2020.3333%2044.1807%2020.56%2045.1541%2020.56ZM56.3767%2020.52H61.2567V22H54.5567V8.06H56.3767V20.52ZM74.7095%208.06L69.4495%2022H67.3495L62.0895%208.06H64.0295L68.4095%2020.08L72.7895%208.06H74.7095ZM78.5252%209.54V14.2H83.6052V15.7H78.5252V20.5H84.2052V22H76.7052V8.04H84.2052V9.54H78.5252ZM94.2991%2022L90.9791%2016.3H88.7791V22H86.9591V8.06H91.4591C92.5124%208.06%2093.3991%208.24%2094.1191%208.6C94.8524%208.96%2095.3991%209.44667%2095.7591%2010.06C96.1191%2010.6733%2096.2991%2011.3733%2096.2991%2012.16C96.2991%2013.12%2096.0191%2013.9667%2095.4591%2014.7C94.9124%2015.4333%2094.0857%2015.92%2092.9791%2016.16L96.4791%2022H94.2991ZM88.7791%2014.84H91.4591C92.4457%2014.84%2093.1857%2014.6%2093.6791%2014.12C94.1724%2013.6267%2094.4191%2012.9733%2094.4191%2012.16C94.4191%2011.3333%2094.1724%2010.6933%2093.6791%2010.24C93.1991%209.78667%2092.4591%209.56%2091.4591%209.56H88.7791V14.84Z'%20fill='black'/%3e%3c/svg%3e`,alt:`volver`})}),e[6]=t,e[7]=m);let h=`wrapper-mapa ${r?`fade-out`:`fade-in`}`,g;e[8]===t?g=e[9]:(g=t===`espana`&&(0,K.jsx)(`div`,{className:`mapa-espana`,onClick:f,dangerouslySetInnerHTML:{__html:`<svg width="781" height="448" viewBox="0 0 781 448" fill="none" xmlns="http://www.w3.org/2000/svg">
4343<path d="M532.6 446.85V446.75V446.65V446.55L532.5 446.45V446.55H532.6V446.65V446.75L532.5 446.65H532.4L532.5 446.85H532.4L532.3 446.75V446.85H532.4L532.1 446.95L531.5 447.15L530.9 446.55L530.6 446.35V446.15V445.35L530.7 444.95L530.9 444.75L531.1 444.65L531 444.55H531.1V444.45H531L531.1 444.25L531.3 444.15L532.7 446.85H532.6Z" fill="#6F9C76"/>
4344<path d="M532.4 446.85L532.1 446.95L531.5 447.15L530.9 446.55L530.6 446.35V446.15V445.35L530.7 444.95L530.9 444.75L531.1 444.65L531 444.55V444.45L531.1 444.25L531.3 444.15L532.7 446.85H532.6V446.75M532.5 446.45L532.6 446.55V446.65V446.75M532.6 446.75L532.5 446.65H532.4L532.5 446.85H532.4M532.6 446.55H532.5V446.45M532.5 446.45V446.35M532.4 446.85L532.3 446.75V446.85H532.4ZM531 444.55H531.1V444.45H531" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4345<path d="M534.7 27.9502L534.8 28.2502L535.2 28.1502L535.7 27.8502L536.5 27.7502L537.4 27.4502H537.7L538.5 27.8502L538.9 28.1502V28.3502L538.8 28.7502V29.2502L539.1 30.1502L539.3 30.4502L539.8 30.6502L540.3 30.7502L540.8 30.6502L541.2 30.3502L541.4 29.9502L541.8 28.9502L542.4 28.5502L543.2 28.6502L544.4 28.9502L546.1 29.8502H546.6L547 29.6502H547.5L548.6 30.8502L548.8 32.8502L548.4 35.0502L547.7 36.8502L547.2 37.5502L545.6 39.3502L545.2 39.7502L545.7 40.9502L546.5 41.8502L547.4 42.3502L548.4 42.6502L549.5 42.7502L550.2 42.4502L550.5 41.7502L550.6 40.2502L550.9 39.1502L551.6 38.3502L552.5 38.0502L553.4 38.2502L552.5 39.0502L552.2 39.7502L552.4 40.4502L553.1 41.2502L553.8 41.7502L556.2 42.1502L557.6 42.9502L558.9 44.0502L560.4 43.8502L560.8 43.9502L561.4 44.4502L561.7 44.6502L563.1 44.8502L563.8 45.0502L564.3 45.6502L565.7 46.6502L567.2 47.1502L570.5 47.4502L573.6 46.8502L574.7 47.2502L575.2 48.8502H574.2L572.8 49.5502L572.5 50.0502L572.4 50.4502V50.8502L572.3 51.1502L571.2 52.6502L571 53.1502L570.9 53.5502L571 54.4502L570.7 56.0502L570.3 57.0502L569.9 57.3502L569.4 57.6502L569.1 57.8502L568.8 58.5502L568 58.8502L566.9 59.9502L566.4 60.2502L565.9 60.5502L564 61.0502L563.7 61.3502L563.6 61.7502V62.1502L563.5 62.5502L563.3 63.2502L563.2 63.5502L562.7 63.8502H561.9L561.5 63.7502L559.1 64.0502L558.8 64.3502L558.7 64.7502V65.0502V65.3502L558.3 65.5502L558 65.6502L558.1 65.7502L558.8 66.0502L558.7 66.2502L558.5 66.5502L557.5 67.1502L557 67.6502L556.7 68.1502V68.6502L556.4 68.8502L556.1 69.0502L555.7 69.1502L555 68.8502L554.5 68.9502L554.2 69.1502L554 69.5502L553.7 70.0502L553.5 70.4502V70.9502V71.2502L553.6 71.5502L553.8 71.9502L553.9 72.1502V72.5502L553.7 73.0502L553.1 74.0502L552 75.0502L551.1 76.4502L550.9 77.4502L550.8 78.0502V78.4502L551 78.7502L551.3 78.9502L551.5 79.2502L551.6 79.5502L551.4 80.0502L550.2 81.4502L549.4 82.7502L549.2 83.4502L549 84.0502V84.4502L548.8 85.2502L548.6 85.8502L548.3 86.5502L548.1 87.0502V87.5502L548.2 87.9502L548.3 88.3502L548.6 88.6502L548.8 89.0502L548.9 89.4502L549 89.8502V90.9502V91.4502V92.1502L549.1 92.5502L549.3 92.8502L549.9 93.4502L550.
43451 93.7502L550.2 94.0502L550.3 94.4502L550.5 94.8502L550.8 95.1502L551.1 95.3502L551.5 95.4502H551.9L552.2 95.6502L552.3 96.1502L552.2 97.0502L551.9 97.6502L551.1 98.7502L550.4 99.9502L549.8 101.25L549.6 101.65L549.5 102.15L549 102.75L548.7 103.15L548.4 103.65L548.2 103.95L548 104.05L547.7 103.95L547 103.75H546.6L545.4 103.35H545.1H544.8L544.6 103.45L544 103.85L543.2 103.95H542.9H542.5L541.8 103.65L541.1 103.15L540.9 102.95L540.4 102.25L540.1 101.95L539.8 101.75L539.1 101.45L538.4 101.15L538 101.25L537.3 101.65H536.9L536.5 101.55L535.7 101.25L535.4 101.05L535.1 100.75L534.6 100.15L534.3 99.8502L533.9 99.6502L533.6 99.4502L532 99.3502L531.7 99.4502L531.2 99.1502V99.0502H531.1H531H530.5L529 97.7502L528.7 97.1502L528.5 96.6502V96.1502V95.7502L528.6 95.3502L528.7 94.9502L530.4 93.0502L530.9 92.4502L531.2 92.1502L531.3 91.7502L531.5 91.4502L531.7 91.1502H532H532.5L532.9 91.4502L533.3 91.5502L533.7 91.4502L534.5 91.1502H534.9L535.3 91.2502L536.1 91.7502L536.5 91.6502L536.9 91.5502L537.1 91.3502L537.2 90.9502L537.1 90.5502L537 90.0502V89.7502L537.1 89.6502V89.4502V89.2502L537 88.9502L536.8 88.5502V87.3502L535.6 86.5502L534.8 86.2502L532.8 85.1502L531.8 84.2502L531.4 83.9502H531.2L530.6 84.0502L530.3 83.9502L530.1 83.6502V83.2502V82.7502V82.4502L528.5 81.3502L525.5 77.6502H523.2L522.3 77.3502L521.7 76.4502L521.9 76.3502L522.1 76.0502L522.3 75.7502L521.5 74.9502L520.3 74.8502L517.6 75.0502L516.8 74.9502L516.2 74.7502L515.7 74.3502L515.2 73.7502L514.9 73.3502L513.7 72.5502L513.3 72.3502L510.7 72.7502L509 72.1502L508.1 71.9502L508.3 71.1502L508.6 68.2502L508.5 67.2502L508.4 66.8502L508.2 66.5502L507.9 66.4502H507.5L506.7 67.4502L506.4 67.6502L506 67.5502L505.4 67.1502H505.1L504.8 66.8502L504.6 66.5502V66.2502V65.8502L505.2 65.2502L505.6 65.0502L506.3 64.4502L506.9 63.8502L507.7 63.1502L508 63.0502H508.4L508.8 63.1502L509 63.2502L509.2 63.4502L509.5 64.0502L509.8 64.2502H510.5L510.9 64.1502L511.3 63.9502L512.5 63.1502L512.7 62.8502V62.3502L512.6 62.0502L512.2 61.9502L511.9 61.7502L511.6 59.6502V59.2502L511.9 58.7502L513 58.3502L513.3 58.0502L513.4 57.5502V56.6502L513.5 55.8502L513.9 54.5502L514.8 53.1502L514.9 52.6502V52.1502L514.3 49.8502L515 48.5502V48.2502L515.2 47.8502L515.4 47.5502L515.9 47.0502L516.4 46.9502L517.2 47.3502L517.5 47.4502L518.3 47.3502H518.7L519.2 47.2502L519.6 47.0502L520 46.7502L520.7 45.6502L521.1 45.4502L522.2 45.2502L522.6 44.9502L522.8 44.6502L523 44.0502V43.6502L522.9 43.2502V42.7502L523.1 42.3502L523.4 41.6502L524 40.6502L526 39.1502L526.5 38.8502L527.1 38.4502L527.5 37.9502L528.1 36.8502V36.2502V35.7502L527.9 35.3502V34.9502L527.8 34.1502V33.6502L528.1 32.5502L528.2 32.2502L528.5 32.3502L529 32.6502L529.2 32.5502L529.4 32.4502V32.1502L529.5 31.8502L529.7 31.7502L530 31.8502L530.3 31.9502H530.7L531.3 31.6502L531.8 31.1502L532.4 30.0502L533 28.9502L533.4 28.5502L533.7 28.2502L534.7 27.9502ZM557.3 77.1502L557 76.6502L557.1 75.9502L557.4 75.6502L558 75.3502L558.3 75.0502L558.6 75.2502V75.8502L558.3 76.6502L557.8 77.0502L557.3 77.1502ZM561.9 75.5502L561.4 75.4502L560.6 75.2502L560 75.1502L559.5 74.7502L559.6 74.2502L559.8 73.6502L559.9 73.2502L560.4 72.7502H560.7H561L561.1 73.2502V73.8502L561.5 74.0502L561.9 74.5502L562.2 74.7502V75.2502L561.9 75.5502Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4346<path d="M534.7 27.95L533.7 28.25L533.4 28.55L533 28.95L532.4 30.05L531.8 31.15L531.3 31.65L530.7 31.95H530.3L530 31.85L529.7 31.75L529.5 31.85L529.4 32.15V32.45L529.2 32.55L529 32.65L528.5 32.35L528.2 32.25L528.1 32.55L527.8 33.65V34.15L527.9 34.95V35.35L528.1 35.75V36.25V36.85L527.5 37.95L527.1 38.45L526.5 38.85L526 39.15L524 40.65L523.4 41.65L523.1 42.35L522.9 42.75V43.25L523 43.65V44.05L522.8 44.65L522.6 44.95L522.2 45.25L521.1 45.45L520.7 45.65L520 46.75L519.6 47.05L519.2 47.25L518.7 47.35H518.3L517.5 47.45L517.2 47.35L516.4 46.95L515.9 47.05L515.4 47.55L515.2 47.85L515 48.25V48.55L514.3 49.85L514.9 52.15V52.65L514.8 53.15L513.9 54.55L513.5 55.85L513.4 56.65V57.55L513.3 58.05L513 58.35L511.9 58.75L511.6 59.25V59.65L511.9 61.75L512.2 61.95L512.6 62.05L512.7 62.35V62.85L512.5 63.15L511.3 63.95L510.9 64.15L510.5 64.25H509.8L509.5 64.05L509.2 63.45L509 63.25L508.8 63.15L508.4 63.05H508L507.7 63.15L506.9 63.85L506.3 64.45L505.6 65.05L505.2 65.25L504.6 65.85V66.25V66.55L504.8 66.85L505.1 67.15H505.4L506 67.55L506.4 67.65L506.7 67.45L507.5 66.45H507.9L508.2 66.55L508.4 66.85L508.5 67.25L508.6 68.25L508.3 71.15L508.1 71.95L507.3 71.85L505.9 71.45L504.7 70.75L504.3 69.75L503.9 69.85L503.6 70.15L503.4 70.45L503.2 70.85L503.3 70.95V71.05H503.4L503.5 71.25L502.7 71.15L502 71.25L501.5 71.55L501 72.05L500.9 71.15L500.5 70.85H500.1L499.9 71.05L499.6 71.45L499 71.15L497.6 70.05L497.2 69.85L496.9 69.75L496.8 68.85V68.05L496.9 67.75V67.35L496.7 66.95L496.3 66.45L494.9 65.45L494.4 65.35L493.8 65.55L493.5 65.85L493.3 66.25L493 67.15L492.5 67.05L492 67.35H491.7L491.4 67.25L491.1 66.85L491.2 66.55L491.6 66.05L491.7 65.75L491.6 65.25L491 65.55L490.8 65.15L490.7 64.45V63.95L49
43460.5 63.25L490.1 62.75L487.5 60.55L486.4 60.05L485.4 58.75L484.8 58.45L484 57.95L482.9 56.85L481.6 56.15L480.4 56.75L479.3 57.05L479.2 56.95L478.6 57.05L478.8 56.55L478.9 56.15L478.7 55.75L478.4 55.45L478.2 55.15L478 54.75V54.35L478.2 53.95L478.4 53.45L478.9 52.85L479.3 52.15L479.6 51.55L479.7 50.95L479.5 50.55L479.3 50.35L478.9 50.45L478.3 51.25L478 51.55L477.7 51.75H477L476.6 51.85L476.2 52.05L476 52.35L475.8 52.65L475.6 52.95L475.7 53.25L475.6 53.55L475.4 53.75L475.1 53.55L474.8 53.35L473.6 51.75L473 51.25L472.8 50.95L472.9 50.55L473 50.15L473.2 49.75L473.8 49.15L474.3 48.45L474.5 48.05L474.7 47.75L475.1 47.45L476.5 47.25L477 47.35L477.4 47.45L477.8 47.65L478 47.95L478.2 48.65L478.5 48.95L478.8 49.15L479.1 49.25L479.9 49.35L480.3 49.45L480.7 49.55H481.1L481.8 49.35H482.6L483 49.25L483.3 49.05L483.8 48.55H484.1L484.7 48.35L484.9 48.25L485 47.95L485.1 47.65L485 47.35L484.8 47.05L483.7 46.65L483.1 46.25L482.8 45.85L482.6 45.55V45.05H483.1L483.8 44.95H484.1L484.2 44.85H484.3L484.4 44.65L484.6 44.25L484.7 43.85L484.6 43.55L484.3 43.15L483.5 42.95L483.2 42.55V42.25V41.95L483 41.75L482.7 41.55L481.9 41.95L481.2 43.55L480.7 43.75L480.4 43.65L479.2 43.55L478 43.25L477.7 43.05L477.5 42.85L477.7 42.45L477.9 42.15L478.2 41.55V40.25L478.4 39.25V38.55L478.2 38.15L477.5 37.85L477.3 37.55L477.2 37.05L477.5 36.15L477.7 35.75L478.4 35.15V34.65L478.3 34.45L478 34.25L477.1 34.15H475.8L474.9 33.95L474.2 33.35L474 33.25L473.7 33.15L473.3 33.25L472.9 33.45L469.5 35.55L467 36.55V35.85L466.7 34.65L466.5 34.25L466.3 33.95V33.55L466.4 33.15V32.75L466.3 32.25L466.2 31.95L466.3 31.45L466.7 30.85L470.1 28.35L470.6 27.95L471.1 27.75L473.6 27.85L474.7 27.75L475.6 28.05L475.9 28.15L477.7 27.25L477.9 26.85L478.1 26.35V24.75V24.35L478.8 24.65L479.6 24.75L480.5 23.95L481.8 24.75L483.8 26.55V26.15L483.3 24.75L483.2 24.05L483 23.65V23.45L483.2 23.25L483.7 23.05L484.2 22.45L485.9 21.35L486.6 21.15V20.75H486.3V20.45L487 20.05L488 19.95L490 20.05L492 19.85L492.8 19.45L493.5 19.25L494 19.35L494.9 19.95L495.7 20.75L496 21.35L496.5 22.75L496.6 23.95L496.8 23.75L497.1 22.75V22.45V22.15L497.2 21.85L497.4 21.55L497.8 21.45L498.3 21.65L498.8 21.85L500 22.05L502.4 23.05L504.1 23.45L505 23.75L505.8 24.95L508.1 26.05L509.7 26.85L511.3 27.35L513.1 27.55L514.8 27.35L516.2 26.95L516.6 26.85L516.9 27.05L517.1 27.45L517.5 27.85L518 28.05L518.1 27.95L518.2 27.85L518.4 27.75L518.7 27.65L518.9 27.75L519 28.05L519.1 28.25L519.4 28.45L520.6 27.45L521.1 27.35L521.9 27.15L524.8 26.15L525.7 25.55L526.2 25.35H526.7L527.2 25.75L527.5 26.25L527.8 26.55L528.4 26.15L528.2 25.95L527.8 25.55L527.6 25.35L529.2 24.55L530.7 23.25L532.2 22.45L532.9 22.95L532.8 23.55L532.7 24.75L532.8 25.45L533.9 25.95L534.4 26.65L534.6 27.75L534.7 27.95ZM473.3 31.15L472.6 30.15L471.9 29.85V32.05L472.1 32.35L473.4 31.75L473.3 31.15ZM498.7 56.75L496.3 56.05L495.7 55.75L495.2 55.65L494.1 55.55L491.6 55.65L491.1 55.75L490.9 56.05L490.1 57.35L489.5 58.05L489.4 58.35L489.6 58.85L490.6 59.85L491.7 60.65L494.2 61.85L496.9 62.45L498.9 63.35L502.1 63.45H502.3L502.5 63.55L502.6 63.85L502.8 63.95L503.3 63.85L503.7 63.65L503.8 63.45V62.75L503.6 62.25V61.85L503.4 61.55L503.3 61.45H503L502.8 61.65L502.4 62.05L502.2 62.25L501.9 62.35L501.7 62.25L501.4 62.05L501 61.45L500.8 61.25L500.6 61.05L500.4 60.85L500.3 60.65V60.35L500.4 60.15L500.6 59.95L501.1 59.85L501.3 59.65L501.5 59.45L501.9 58.65V58.45L502 58.15L502.1 57.75L502 57.55H501.5H501.2L500.8 57.25L500.6 57.05L500.5 56.75L500.3 56.65H500L499.6 56.75L499.3 56.85L498.7 56.75Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4347<path d="M508.1 71.9502L509 72.1502L510.7 72.7502L513.3 72.3502L513.7 72.5502L514.9 73.3502L515.2 73.7502L515.7 74.3502L516.2 74.7502L516.8 74.9502L517.6 75.0502L520.3 74.8502L521.5 74.9502L522.3 75.7502L522.1 76.0502L521.9 76.3502L521.7 76.4502L522.3 77.3502L523.2 77.6502H525.5L528.5 81.3502L530.1 82.4502V82.7502V83.2502V83.6502L530.3 83.9502L530.6 84.0502L531.2 83.9502H531.4L531.8 84.2502L532.8 85.1502L534.8 86.2502L535.6 86.5502L536.8 87.3502V88.5502L537 88.9502L537.1 89.2502V89.4502V89.6502L537 89.7502V90.0502L537.1 90.5502L537.2 90.9502L537.1 91.3502L536.9 91.5502L536.5 91.6502L536.1 91.7502L535.3 91.2502L534.9 91.1502H534.5L533.7 91.4502L533.3 91.5502L532.9 91.4502L532.5 91.1502H532H531.7L531.5 91.4502L531.3 91.7502L531.2 92.1502L530.9 92.4502L530.4 93.0502L528.7 94.9502L528.6 95.3502L528.5 95.7502V96.1502V96.6502L528.7 97.1502L529 97.7502L530.5 99.0502L530.8 100.05L530.7 100.25L530.3 101.55L528.7 102.45L528.4 102.65L527.7 103.15L527.3 103.35L526.8 103.45L525.8 103.55L525.4 103.45L525 103.05L524.6 102.75L523.6 102.25H522.9L520.7 101.65L520.3 101.45L520.1 101.05L519.9 100.25L519.8 99.9502L519.9 99.5502L520.1 99.3502L520.2 99.1502H520.3V99.0502V98.9502L520.2 98.6502L519.8 97.9502L518.9 97.1502L518.6 96.7502L518.5 96.3502V95.9502V95.5502L518.8 95.3502L519.1 95.1502L519.4 94.8502L519.6 94.5502V94.1502L519.4 93.8502L519 93.5502L518.4 93.4502L517.6 93.3502L516.9 93.4502L514.6 94.2502H514.2L513.8 93.9502L513.6 93.5502L513.4 93.1502V92.7502L513.3 92.3502L513.2 92.0502L513 91.8502L512.6 91.6502L510.5 91.3502L508 91.5502L506.9 91.9502L506.4 92.4502L505.5 93.0502L505.1 93.2502L504.3 93.0502L504 93.1502L503.9 93.3502L503.8 93.7502V94.6502L503.7 95.3502L503.6 95.6502L503.3 95.8502L503.1 96.0502L502.9 96.2502L502.7 96.5502L502.5 97.0502L502.1 97.8502L501.6 98.5502L501.5 98.8502L501.4 99.0502V99.1502H500.7L499.5 98.9502L498.1 99.0502L497.9 99.1502H497.7L497.4 99.0502L49
43476.7 98.4502L496.2 98.2502L495.7 98.1502H495.1L494.5 97.8502L494.3 97.5502L494.4 97.1502L494.5 96.7502L494.6 96.3502L494.7 95.9502L494.9 95.6502L495.4 95.1502L495.6 94.7502L495.8 93.9502V93.6502L495.7 93.2502L495.6 92.8502L495.3 92.7502L494.8 92.5502L493.8 92.6502L493.3 92.9502L492.8 93.6502L492.6 94.0502L492.4 94.4502L492.3 94.8502V95.2502L492.4 95.6502V96.0502L492.2 96.5502L491.7 97.0502L490.6 97.7502L489.4 98.3502L487.8 97.8502L487.5 96.0502L487.3 95.6502L487.2 95.2502L487 94.9502L486.8 94.6502L486.5 94.4502H486.1L485.8 94.5502L485.2 94.6502H484.6H484.2H483.7L483.1 94.3502L482.7 93.6502L482.5 93.3502L482.4 92.9502L481.9 92.2502L481.3 91.8502L481 91.6502L480.7 90.8502L480.6 90.4502L479.3 88.4502V88.1502L479.8 87.7502L480 87.2502L480.5 85.5502L480.6 84.9502V84.4502V83.9502L480.5 83.5502L480.4 83.2502L480.3 82.7502L480.2 82.3502V81.3502L480.1 80.9502L479.9 80.7502L479.7 80.3502L479.8 80.0502L480.2 79.8502L481 79.7502L481.2 79.5502L481.9 78.3502V77.9502L481.8 77.5502V77.1502V75.8502L482.2 74.7502V74.4502L482.1 74.0502L481.8 73.7502L481.7 73.3502L481.5 73.0502L480.9 72.6502L480.8 72.2502L480.9 71.8502L481.2 71.1502L481.3 70.6502V70.2502L481.2 69.8502L481 69.6502H480.7H480.3L480 69.8502H479.7L479.5 69.5502L479.6 69.1502L480.8 67.8502L480.9 67.4502L481.2 67.1502L481.5 66.8502L481.7 66.3502V65.9502L481.5 65.5502L481.1 64.9502L481.2 64.5502L481.9 64.2502L483.6 64.0502L486.2 64.4502L486.8 64.6502L487.9 64.8502L490.7 63.9502V64.4502L490.8 65.1502L491 65.5502L491.6 65.2502L491.7 65.7502L491.6 66.0502L491.2 66.5502L491.1 66.8502L491.4 67.2502L491.7 67.3502H492L492.5 67.0502L493 67.1502L493.3 66.2502L493.5 65.8502L493.8 65.5502L494.4 65.3502L494.9 65.4502L496.3 66.4502L496.7 66.9502L496.9 67.3502V67.7502L496.8 68.0502V68.8502L496.9 69.7502L497.2 69.8502L497.6 70.0502L499 71.1502L499.6 71.4502L499.9 71.0502L500.1 70.8502H500.5L500.9 71.1502L501 72.0502L501.5 71.5502L502 71.2502L502.7 71.1502L503.5 71.2502L503.4 71.0502H503.3V70.9502L503.2 70.8502L503.4 70.4502L503.6 70.1502L503.9 69.8502L504.3 69.7502L504.7 70.7502L505.9 71.4502L507.3 71.8502L508.1 71.9502Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4348<path id="barcelona" d="M626.5 178.35L626.3 178.15L623.8 177.05L623.4 176.85L623.1 176.35L623 175.95V175.55L622.7 175.25L622.2 174.85L621 174.15L618.1 173.15L617.2 172.65L616.8 172.25L616.5 171.55V171.05L616.7 170.55L616.9 170.25L617 169.95L616.6 169.55L616.1 169.15L615.2 168.95L614.7 168.45L614.5 168.05L614.4 167.65L614.2 167.45L613.4 167.65L612.3 167.45L612.1 166.75L612.3 166.55L614.5 165.25L614.8 164.95L615.1 164.25L615.9 163.35L616.1 162.95L616.3 162.55V162.15L615.9 161.25L615.8 160.75L615.7 160.25V159.85L615.4 159.05L615.5 158.45L615.6 158.05L615.8 157.65L615.9 157.25L616 156.85L616.5 156.15L616.7 155.65L616.9 155.25L617 153.95L616.4 152.05L615.8 151.55L615.2 151.25L614.5 150.75L614.1 149.25L613.9 148.55L613.8 148.25L613.6 147.85V147.45L613.7 147.05L613.8 146.65L614 146.35L614.4 146.05H614.8L615.1 145.95L615.4 145.75L615.5 145.45L615.8 145.25L616.5 145.05L616.9 144.85L617.2 144.55L617.4 144.25L617.7 143.25V142.75L617.8 142.35L618 141.95L618.3 141.55L618.9 141.15L619.4 140.95L619.8 140.65L619.9 140.55L619.7 139.35L619.6 138.05L620.6 135.85L620.5 134.85L620.1 134.15L619.6 133.55L618.9 133.25L618.6 133.15L618.4 132.15L619 131.25L619.4 129.75L619.5 128.75L619.4 127.65L619.5 127.35L619.9 127.05L621.1 126.65L621.4 126.45L621.5 126.35L621.6 126.25V126.15L621.7 125.95L621.8 125.65L622 125.35L622.8 124.35L623 124.05L623.2 123.65L623 123.25L622.8 122.85L622.7 122.45V122.05V121.65L622.5 121.15L622.1 121.05L621.7 120.95L621.3 121.05L620.1 120.85L619.7 120.65L619.5 120.35L619.4 119.95L619.2 118.75L618.7 117.45L618.6 117.05V116.65L619.2 115.75L620.1 114.85L620.7 113.95L621 113.65L621.3 113.35V113.05L621.6 112.75L621.7 112.55L622 112.35L622.3 112.25L623.7 111.95L624.1 111.75L624.5 111.25L624.9 110.35L625.4 109.45L625.6 109.25L625.8 109.05L626.1 108.95L626.9 108.75L627.2 108.55L627.5 108.15L627.9 107.55L628.5 107.15L628.8 106.95L629.1 106.65L629.3 106.35L629.5 105.95L629.4 104.15L629.3 103.75L629.2 103.55L628.8 103.25L628.3 102.75L628.2 102.45L628.4 102.15L628.6 101.75L628.9 101.45L629.3 101.25L629.6 101.15L629.9 101.05L630.1 100.85L630.4 100.25L630.6 99.95L630.8 99.75L631.3 99.55L631.5 99.35L631.7 99.05L631.8 98.45V97.95V97.65L632.3 96.45L633 94.25V93.95L633.4 93.65L633.6 93.15L633.7 92.55L633.9 91.45L634 90.85L633.9 90.25L633.8 89.95V89.45L634 88.85L634.1 88.45L634.4 86.75L634.5 86.55L634.7 86.25L635 85.75L635.3 84.75L635.4 84.35L635.5 83.35V82.65L635.4 82.45L635.6 81.75L635.7 81.15V80.15L635.5 77.85L635.2 76.45L634.9 75.85L634.7 75.45L634.5 75.25L634.4 75.15L634.2 74.95L634.1 74.55V73.95L634 73.55L633.8 73.05L633.7 72.65L633.8 72.25L634.1 72.05H634.4L634.5 71.95H634.7L634.8 71.75L634.9 71.65L635 71.35L634.9 70.75L635 70.25L635.1 69.95L635.3 69.75L635.5 69.25L635.7 68.85L635.9 68.55L636 68.25L636.1 68.05L636.2 67.65V66.95L636.3 66.65L636.4 66.25V66.05L636.3 65.75L635.8 65.55L635 65.35L634.6 65.25L634.3 64.95L634 64.45L633.4 62.95L632.6 61.45L632.1 61.05L632.2 60.95L632.3 60.05L632 59.25L631.5 58.55L630.9 58.35L631.2 57.85L631.3 57.55L631.6 57.35L631.2 56.75L631.8 55.15L631.7 54.05L631.9 53.25L632.8 52.85L633.9 52.75L634.6 52.85L636 53.45L636.7 53.55L637.5 53.45L638.2 53.65L639.9 54.65L641.1 55.15L641.5 55.35L642.1 56.05L642.6 56.25L642.9 56.05L643.3 55.65L643.7 55.55L644.1 55.65L644.7 56.25L645 56.45L648.5 56.65L649.3 56.95L650.1 57.55L650.4 58.35L650.8 59.25L651.2 59.95L651.9 60.45L652.3 60.55L653.7 60.05L658.6 60.15L659.6 60.35L659.4 61.15L659.6 61.35H660L660.3 61.55L661 62.85L661.8 63.95L662.5 65.85L663.1 66.55L662.9 66.95L662.7 67.45L662.6 67.95L663 68.25V68.45L662.3 69.55L662.2 70.25L663.1 70.05L663.8 70.75L663.9 71.55L663.1 72.15L662.9 72.25L662.2 72.55L663.4 74.35V75.05L663.8 75.45L666.3 75.75L666.6 75.65L667.1 75.45L667.3 75.15L667.5 74.75L667.7 74.55L668.9 74.35L670.3 74.25L671.6 73.65L672 72.15L672.2 72.05L672.3 71.95H672.4L672.5 72.15L673 72.35H673.5L673.9 72.15L674.3 71.65L674.4 71.75L674.5 71.85V71.95V72.15L675.3 72.45L677.8 72.85L678.6 73.15L680.9 74.75L681.8 74.95L682.6 75.05L683.2 75.25L683.8 76.15L684.3 78.25L684.7 79.05L685.5 79.75L686 80.15H686.5L687.6 80.05L688.2 79.95L688.7 79.55L689.4 78.85L690.3 78.15L690.5 77.85L690.8 77.05L691 76.75L691.7 76.45L693.6 76.65L696.1 75.85L697.3 75.75L698.5 76.35L699 76.75L701.3 77.85L702.6 78.15H703.2L703.5 79.05L704.1 79.95L704.9 80.55L705.7 80.75L706.5 81.25L706.9 81.35H707.4L707.6 81.05L708 80.15L708.3 79.95L709.1 79.85L710.9 80.55L711.8 80.65H712.9V80.35L712.4 79.85L712 78.75L712.3 78.35L714 76.95L714.7 76.55H715.6L71
43487.1 76.75L718 76.65L718.6 76.25L719.9 75.05L720.5 74.65L721.2 74.55L721.8 74.65L722.5 74.45L723.9 73.45L725.2 73.95L725.8 73.55H726.3L727.5 73.65L727.7 73.75L728 74.35L728.3 74.85L728.7 75.25L729.2 75.55L730 75.85L731 75.95L732.1 75.85L733.8 75.55V76.35L733.4 77.45L733.6 78.35V79.25L734.1 80.05L734.8 80.65L735.7 80.45H736.6L737.2 81.15H737.4L737.9 80.75L738.4 80.85L739.4 81.55L738.4 83.45L738.3 83.95L738.1 84.75L737.8 85.15L737.5 85.45L737.2 86.05L736.5 85.75L735 86.05L733.8 85.55L733.4 84.95L732.7 85.15L731.8 86.05L731.3 87.25V89.15L731.2 90.45L731.5 91.45L732.1 92.15L733.5 93.05L734.3 94.05L735.2 95.35L735.1 96.05L734.6 96.55L734.4 97.35L734.7 98.15L734.9 99.25V99.65L735.1 99.95L735.8 100.55L736.1 100.95L735.9 102.05L734.9 103.75L734.4 105.15L733.7 105.85L732.6 107.55L731.3 107.35L729.7 108.55L729.3 110.05L728.2 110.65L724.6 113.55L723.8 114.75L722.5 115.05L721.6 115.25L720.5 115.55L720.1 115.65L719.9 115.75L719.3 116.35L719.1 116.55L719 116.95L718.6 117.05H718.1L717.6 118.35L712.5 120.45L704.3 124.25L703.5 125.15L701.1 126.75L698.1 128.05L696.9 128.95L695.8 130.45L693.9 133.95L692.7 135.55L691.4 136.75L688.6 138.35L686.9 138.75L684.2 139.05L681.5 139.75L680.6 140.25L680.2 140.35H678.9L671 142.75L667.5 143.05L657.4 146.85L654.5 147.45L654.2 147.65L653.5 148.95L653.4 149.35L653.2 149.65L652.7 149.95L651.8 149.35L651.5 149.25H649.7L648 149.55L646.4 150.25L645.4 150.95L640.8 155.45L638.6 158.45L634.2 162.95L633.4 164.45L634.5 165.15L635.6 165.55H636.1L636.3 165.25L636.2 164.85L635.6 164.45L636.3 164.55L636.9 164.85L637.3 165.25L638.3 166.45L639.3 167.35H639.8L640.6 167.55V168.65L640 169.85L639.6 170.35L637 171.15L635.9 172.15H635.6L635.417 172.254L635.289 172.45L635.099 172.55H634.9L634.1 172.45L632.9 172.55L629.6 173.65L628.8 174.15L628.1 174.95L627.5 175.85L626.5 178.35ZM684 74.45L683.9 73.85L684.4 72.85L684.8 72.65L685.3 73.15L685.7 74.15L686.1 74.85L686 74.95L685.6 75.05H685.5L684.5 74.95L684 74.45Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4349<path d="M530.5 99.0501H531H531.1H531.2V99.1501L531.7 99.4501L532 99.3501L533.6 99.4501L533.9 99.6501L534.3 99.8501L534.6 100.15L535.1 100.75L535.4 101.05L535.7 101.25L536.5 101.55L536.9 101.65H537.3L538 101.25L538.4 101.15L539.1 101.45L539.8 101.75L540.1 101.95L540.4 102.25L540.9 102.95L541.1 103.15L541.8 103.65L542.5 103.95H542.9H543.2L544 103.85L544.6 103.45L544.8 103.35H545.1H545.4L546.6 103.75H547L547.7 103.95L548 104.05L548.2 103.95L548.4 103.65L548.7 103.15L549 102.75L549.5 102.15L549.6 101.65L549.8 101.25L550.4 99.9501L551.1 98.7501L551.9 97.6501L552.2 97.0501L552.3 96.1501L552.2 95.6501L551.9 95.4501H551.5L551.1 95.3501L550.8 95.1501L550.5 94.8501L550.3 94.4501L550.2 94.0501L550.1 93.7501L549.9 93.4501L549.3 92.8501L549.1 92.5501L549 92.1501V91.4501V90.9501V89.8501L548.9 89.4501L548.8 89.0501L548.6 88.6501L548.3 88.3501L548.2 87.9501L548.1 87.5501V87.0501L548.3 86.5501L548.6 85.8501L548.8 85.2501L549 84.4501V84.0501L549.2 83.4501L549.4 82.7501L550.2 81.4501L551.4 80.0501L551.6 79.5501L551.5 79.2501L551.3 78.9501L551 78.7501L550.8 78.4501V78.0501L550.9 77.4501L551.1 76.4501L552 75.0501L553.1 74.0501L553.7 73.0501L553.9 72.5501V72.1501L553.8 71.9501L553.6 71.5501L553.5 71.2501V70.9501V70.4501L553.7 70.0501L554 69.5501L554.2 69.1501L554.5 68.9501L555 68.8501L555.7 69.1501L556.1 69.0501L556.4 68.8501L556.7 68.6501V68.1501L557 67.6501L557.5 67.1501L558.5 66.5501L558.7 66.2501L558.8 66.0501L558.1 65.7501L558 65.6501L558.3 65.5501L558.7 65.3501V65.0501V64.7501L558.8 64.3501L559.1 64.0501L561.5 63.7501L561.9 63.8501H562.7L563.2 63.5501L563.3 63.2501L563.5 62.5501L563.6 62.1501V61.7501L563.7 61.3501L564 61.0501L565.9 60.5501L566.4 60.2501L566.9 59.9501L568 58.8501L568.8 58.5501L569.1 57.8501L569.4 57.6501L569.9 57.3501L570.3 57.0501L570.7 56.0501L571 54.4501L570.9 53.5501L571 53.1501L571.2 52.6501L572.3 51.1501L572.4 50.8501V50.4501L572.5 50.0501L572.8 49.5501L574.2 48.8501H575.2L575.4 49.2501V49.6501L575.3 49.8501L575.2 50.1501L575.4 50.6501L575.8 51.0501L576.2 51.1501L576.6 51.0501L577 51.1501L578.4 52.0501L579.2 52.6501L580.7 54.7501L580.8 54.9501L580.7 55.1501V55.3501L581 55.5501H581.6H581.8L582 55.9501V56.2501V56.5501L582.4 56.8501H582.7L583.4 56.3501L583.7 56.2501L583.8 54.9501H584.8L587 55.9501L588.2 55.8501L589.2 55.2501L591.1 53.7501L591.5 54.0501L591.8 53.9501L592.1 53.5501L592.3 53.0501L592.9 53.5501L593 53.6501L595.4 55.0501L595.8 56.1501L596.9 56.2501L598.1 55.9501L598.8 55.6501L598.7 56.5501L599 57.5501L599.5 58.3501L600.1 58.8501L600.4 59.1501V59.5501L600.5 59.9501L601 60.1501L601.5 60.2501L601.8 60.5501L601.9 60.7501L602.2 61.0501L603.8 61.6501L605.2 61.5501L608.3 60.3501L610.8 60.0501L611.5 59.4501L612.2 59.3501L614.3 59.9501L615 60.2501L615.8 61.8501L616.5 62.5501L617.1 62.4501L618.2 60.8501L618.9 60.1501L619.7 59.8501L620.8 60.8501L620.9 61.0501L620.8 61.2501L620.9 61.4501L621.1 61.6501L621.9 61.8501L622.7 61.7501L624.2 61.3501L624.9 61.6501L629.9 61.5501L631.3 61.7501L631.9 61.5501L632.1 61.0501L632.6 61.4501L633.4 62.9501L634 64.4501L634.3 64.9501L634.6 65.2501L635 65.3501L635.8 65.5501L636.3 65.7501L636.4 
434966.0501V66.2501L636.3 66.6501L636.2 66.9501V67.6501L636.1 68.0501L636 68.2501L635.9 68.5501L635.7 68.8501L635.5 69.2501L635.3 69.7501L635.1 69.9501L635 70.2501L634.9 70.7501L635 71.3501L634.9 71.6501L634.8 71.7501L634.7 71.9501H634.5L634.4 72.0501H634.1L633.8 72.2501L633.7 72.6501L633.8 73.0501L634 73.5501L634.1 73.9501V74.5501L634.2 74.9501L634.4 75.1501L634.5 75.2501L634.7 75.4501L634.9 75.8501L635.2 76.4501L635.5 77.8501L635.7 80.1501V81.1501L635.6 81.7501L635.4 82.4501L635.5 82.6501V83.3501L635.4 84.3501L635.3 84.7501L635 85.7501L634.7 86.2501L634.5 86.5501L634.4 86.7501L634.1 88.4501L634 88.8501L633.8 89.4501V89.9501L633.9 90.2501L634 90.8501L633.9 91.4501L633.7 92.5501L633.6 93.1501L633.4 93.6501L633 93.9501V94.2501L632.3 96.4501L631.8 97.6501V97.9501V98.4501L631.7 99.0501L631.5 99.3501L631.3 99.5501L630.8 99.7501L630.6 99.9501L630.4 100.25L630.1 100.85L629.9 101.05L629.6 101.15L629.3 101.25L628.9 101.45L628.6 101.75L628.4 102.15L628.2 102.45L628.3 102.75L628.8 103.25L629.2 103.55L629.3 103.75L629.4 104.15L629.5 105.95L629.3 106.35L629.1 106.65L628.8 106.95L628.5 107.15L627.9 107.55L627.5 108.15L627.2 108.55L626.9 108.75L626.1 108.95L625.8 109.05L625.6 109.25L625.4 109.45L624.9 110.35L624.5 111.25L624.1 111.75L623.7 111.95L622.3 112.25L622 112.35L621.7 112.55L621.6 112.75L621.3 113.05V113.35L621 113.65L620.7 113.95L620.1 114.85L619.2 115.75L618.6 116.65V117.05L618.7 117.45L619.2 118.75L619.4 119.95L619.5 120.35L619.7 120.65L620.1 120.85L621.3 121.05L621.7 120.95L622.1 121.05L622.5 121.15L622.7 121.65V122.05V122.45L622.8 122.85L623 123.25L623.2 123.65L623 124.05L622.8 124.35L622 125.35L621.8 125.65L621.7 125.95L621.6 126.15V126.25L621.5 126.35L621.4 126.45L621.1 126.65L619.9 127.05L619.5 127.35L619.4 127.65L619.5 128.75L619.4 129.75L619 131.25L618.4 132.15L618.6 133.15L618.9 133.25L619.6 133.55L620.1 134.15L620.5 134.85L620.6 135.85L619.6 138.05L619.7 139.35L619.9 140.55L619.8 140.65L619.4 140.95L618.9 141.15L618.3 141.55L618 141.95L617.8 142.35L617.7 142.75V143.25L617.4 144.25L617.2 144.55L616.9 144.85L616.5 145.05L615.8 145.25L615.5 145.45L615.4 145.75L615.1 145.95L614.8 146.05H614.4L614 146.35L613.8 146.65L613.7 147.05L613.6 147.45V147.85L613.8 148.25L613.9 148.55L614.1 149.25L614.5 150.75L615.2 151.25L615.8 151.55L616.4 152.05L617 153.95L616.9 155.25L616.7 155.65L616.5 156.15L616 156.85L615.9 157.25L615.8 157.65L615.6 158.05L615.5 158.45L615.4 159.05L615.7 159.85V160.25L615.8 160.75L615.9 161.25L616.3 162.15V162.55L616.1 162.95L615.9 163.35L615.1 164.25L614.8 164.95L614.5 165.25L612.3 166.55L612.1 166.75L612.3 167.45L611.2 167.85L609.7 167.95L609.1 168.05L608.6 168.15L608.3 168.35L607.9 168.65L607.6 168.95L607.2 169.25H606.8L606.5 169.05V168.75V168.35L606.3 167.95L606.1 167.65L605.4 167.45L603.4 167.65L602.3 167.45L600.5 166.25L599.9 165.65L599.6 165.35L599.2 165.05L598.6 164.85H597.9L597.5 165.05L596.7 165.95L596.5 166.35L596.3 166.65L596.1 167.45V168.25V168.65V169.05L595.9 169.35L593.8 170.45L593.5 170.75L593 171.05H592.7L592 170.55L591.4 170.45L590.9 170.55L590.4 170.85L590.1 171.15L590 171.55L590.1 171.95V172.35V173.15L590.2 173.45L590.5 173.65L590.9 173.75L591.2 173.85L591.5 174.05L591.9 174.15H592.2L592.9 173.95H593.2L593.5 174.05L593.4 174.85L593.3 175.25V175.65L593.4 176.35L593.5 176.75V177.15V177.95L593.4 178.25L593.3 178.65V178.95L593.4 179.25L594 179.65V179.75L594.2 180.35L594.3 180.65V181.05L594.1 181.25L592.3 181.95L591.9 182.35L591.6 182.75L591.7 183.15L591.8 183.55L592 183.85L592.7 184.35L592.9 184.55L593.4 185.25L593.7 185.55L593.8 185.95V186.55L593.5 186.85L591.9 187.95L591.6 188.35L590.9 189.35L590.4 189.85L589.6 190.55L589.5 190.85L589.6 191.25V191.65L589.5 192.25L589.3 192.65L588.9 192.95L587.5 193.65L587.1 193.75H586.3L586 193.85L585.6 193.95L585.3 194.05H585.1L584.5 193.85L584.1 193.65L583.8 193.45H583.4L583.1 193.75V194.15V194.85L583 195.25V195.55L582.9 196.35L582.6 196.85L582.4 197.25L582.3 198.05L582.1 198.55L581.8 199.05L581.2 199.45L580.6 200.15L580.4 200.55L580.3 200.95L580.4 201.35L580.6 202.05L580.5 202.35L577.7 203.85L576.2 204.05H575.5L575.2 203.95L574.9 204.05L574.7 204.35L574.6 205.15L
4349574.4 205.65L574 206.15H573.9L573.4 206.55L573 206.65L572 207.15L571.8 207.55L571.6 207.85L571.5 208.65L571.4 209.05L571.6 209.35V209.65L571.7 210.45L572.1 211.15L572.3 211.35L572.7 211.55L573.1 212.15L573.4 212.65L571.1 213.75L570.6 213.95H569.9L569.5 213.85L569.1 213.55L568.9 213.25L568.8 212.85L568.9 212.45V212.05L568.8 211.75L568.6 211.45L568.5 211.15V210.75L568.6 210.35L568.7 210.05L568.8 209.65L568.6 209.15L568.1 208.45L566.1 207.55L565.4 207.35L564.9 207.25L564.2 207.35L562.8 207.25L561.8 207.45L561 207.75H560.7L559.7 208.05L559.1 207.65L558.4 205.55L559.3 205.35L561.2 204.35L561.5 204.15L561.8 203.75L561.9 203.45L561.8 203.05L561.7 202.75L561.2 202.15L559.9 201.05L558.8 200.35L556.3 200.05L555.5 199.65L555.2 199.35L555 199.05V198.75V198.55L554.8 198.35L554.5 198.15L554.2 197.95L554 197.55L553.8 197.25L553.4 196.55L553.2 195.75L553 195.55L552.8 195.45L552.3 195.85L552 196.25L551.9 196.75L552.1 197.55L552 197.95L551.8 198.25L551.1 198.65L550.2 198.85L549 198.75L546.8 198.25L547.1 197.75L547.2 197.15L547.3 196.75V196.35L547.2 196.05L
4349547 195.75L546 195.95H545.5L544.9 195.65L544.4 195.55H543.9L543.4 195.85L543.1 195.75L542.5 195.35L538.3 191.25L537.3 190.65L536.7 190.55L536.3 190.75L536.1 190.95L535.9 190.85L535.8 190.15L536 189.75V189.15L535.8 188.45L534.2 186.15L533.5 185.45L532.3 184.95L532.8 184.25L533 184.15L533.3 183.95L534.6 181.85L535 181.45L535.4 181.15L536.1 180.75L536.4 180.45L536.7 180.05V178.15V177.45L537.4 175.55L537.6 175.15L537.8 174.95L538.9 175.25H539.2L539.9 175.55L540.2 175.75L540.5 175.95L540.9 176.05L541.2 175.95L541.9 175.55L542.3 175.35L542.5 174.95L542.7 174.65L542.5 173.65L542.6 173.05L542.8 172.15L543.1 171.45L543.2 171.05L543.3 169.95L543.1 169.35L542.9 168.65L542.6 168.15L542.4 167.75L542.5 167.15V166.75L542.7 166.25L543.1 165.45L543.2 164.95L543.1 163.65V163.25L542.9 162.85L542.6 162.35L541.5 161.65L541 161.05L540.7 160.65L540.4 159.95L540.1 159.15L540.2 157.35L540.3 156.95L539.8 155.85L538.4 154.65L538.2 154.35L537.8 153.85L537.5 153.55L535.3 151.65L534.8 150.95L534.5 150.65L534.4 150.25L534.2 149.95L533.9 149.55L531.9 147.85L530.6 147.05L528.9 145.85L527.9 145.35L527.4 145.05L527 144.65L526.8 144.25L525.7 143.95L522.4 144.95L522.1 144.55L521.2 143.85L520.8 143.65L520.4 143.55H520.1L519.3 143.45L519 143.35L518.7 143.05L518.5 142.65L518.4 140.65L518.1 138.65L518 138.25L517.9 137.95L517.5 137.25L517.6 135.45L517.8 134.45L518.1 134.05L518.3 133.85L518.6 133.75L518.9 133.55L519.1 133.25L519.4 132.85L519.6 131.65L519.7 131.15V130.75V130.25L519.9 129.85L520.1 129.55L520.5 129.25L521.7 129.45L522.4 129.65L522.7 129.95L522.9 130.25L523 130.65V131.05L522.9 131.45V131.85L523 132.15L523.3 132.35H523.7L524 132.25L524.7 131.65L525.4 131.35L525.8 131.15L526.2 131.05L526.5 130.95L526.7 130.75L526.5 128.45L526.3 127.95L526.1 127.55L525.8 127.25L525.5 126.65L525.4 125.75L525.5 123.85L525.3 122.35L525 122.15L524.9 121.75V121.45L525 121.05L525.3 120.65L525.6 120.55L525.8 120.35H526H526.2L526.5 120.45L527.3 120.75L527.6 120.65L527.9 120.35L528.1 120.05L528.8 119.15L529.6 118.75L530 118.45L530.4 117.95L530.8 117.75L531.2 117.65H531.6L532 117.45L532.3 116.95L532.7 116.05L532.9 115.55L533.1 115.05L533.2 114.35L532.8 113.85L532.5 113.65L532.3 113.35L532.2 112.95L531.9 112.25L531.2 111.25L530.9 110.85L530.8 110.45L530.9 109.95L531.3 109.15L531.6 108.85L531.8 108.45L531.9 108.05L532 107.55V107.15L531.1 105.95L530.5 104.25L530.3 101.55L530.7 100.25L530.8 100.05L530.5 99.0501ZM557.3 77.1501L557.8 77.0501L558.3 76.6501L558.6 75.8501V75.2501L558.3 75.0501L558 75.3501L557.4 75.6501L557.1 75.9501L557 76.6501L557.3 77.1501ZM561.9 75.5501L562.2 75.2501V74.7501L561.9 74.5501L561.5 74.0501L561.1 73.8501V73.2501L561 72.7501H560.7H560.4L559.9 73.2501L559.8 73.6501L559.6 74.2501L559.5 74.7501L560 75.1501L560.6 75.2501L561.4 75.4501L561.9 75.5501Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4350<path d="M327.6 191.45L328.1 191.85L328.9 192.65L329.2 192.95L329.7 193.15L330.1 193.25H330.5L330.9 193.05H331.2L331.5 193.15L332.3 193.25L333.6 192.55L334 192.45L334.7 192.95H335.1L335.6 192.75L336 192.55L336.5 192.35L339.3 191.85L339.9 191.55L340.3 191.25L340.5 191.05L340.6 190.65V190.25L340.4 189.55V189.15L340.6 188.85L340.9 188.55L342.1 187.55L342.5 187.35L343.3 187.05L343.6 186.85L345.1 186.25L345.9 185.35L346.3 185.15L346.7 184.95L347.9 184.75L348.3 184.45L348.5 184.05L348.6 183.75L348.8 183.35L349.1 183.15L349.5 182.85L349.9 182.55L350.6 182.45L351.1 182.25L351.6 182.05L353 181.05L353.4 180.85L353.9 180.75L354.6 180.95L356 181.75L356.4 182.15L357 182.85L357.4 183.05L358.2 183.25L358.3 183.55V183.85L358.6 184.15L359.1 184.45L360 184.75L360.2 185.05V185.25L359.9 185.65V185.85L359.8 186.05L359.6 186.25V186.45L359.5 186.85L359.3 187.05L359.1 187.25L359.2 187.45L359.7 187.75L361.1 188.35L362 188.85L362.6 189.35L362.9 189.75L363.5 190.15L364.9 190.85L366 191.25L366.5 191.35L366.9 191.15L367.1 190.85L367.3 190.45L367.5 190.05L367.6 189.75L367.7 189.35L368 189.15L368.3 188.95L369.7 188.65L370.5 188.15L370.9 188.05L371.2 188.15L371.6 188.65L371.8 189.05V189.55L371.7 189.85L371.4 190.55L371.5 190.85L371.7 191.05L372.6 191.15L374 190.65L375.6 191.25L376.8 192.15L378 193.25L379 194.55L380 195.25L381.6 195.75L383.1 195.65H383.4L383.7 195.55L384 195.35L384.6 194.85L384.9 194.45L386.3 193.35L388.3 192.75L389 192.65L389.2 192.95V193.25L388.8 194.25L388.7 194.65L388.6 195.15L388.8 197.45L389.1 198.15L389.3 198.55L389.4 198.95L390.1 200.05L388.9 200.65L388.8 200.85L388.6 201.25L388.4 202.55V203.15L388.5 203.65L388.2 206.45L387.6 210.35V211.75L387.8 212.45L388.1 212.25L388.9 212.15L390 212.05L390.4 212.15L390.7 212.25L391 212.55L391.3 212.85L391.5 213.15L391.7 213.45V213.85L391.6 214.15L391.1 214.85L390.9 215.25L390.8 215.95V216.55L390.7 217.05L390.6 218.15L390.7 218.65L390.9 218.85L392.3 219.15L392.8 219.25L393.1 219.15L393.3 218.95L393.8 218.25L394.1 217.75L394.9 217.05L395.2 216.95L396 216.85H396.3L396.6 217.05L396.7 217.45L396.9 218.15V218.65L396.7 219.45L396.8 219.75L397.3 220.45L397.6 220.85L397.7 221.35L397.6 221.75L397.5 222.05L397.3 222.75L397.2 223.95L397.1 224.25L397 224.65L396.9 224.95L396.4 225.55L396.3 225.95L396 226.25L395.8 226.65L395.4 227.25L395.3 227.55L395.4 227.85L395.7 228.15L396 228.45L396.6 228.85L396.9 229.05L398.4 231.05L399.3 231.95L399.9 232.45L400.2 232.85L400.8 233.25L401.5 233.35L401.8 233.55L402.4 234.55L403.6 235.95L404 236.55L404.5 237.15L404.7 237.35L405.1 237.65L405.6 238.15L408.2 239.45L409.2 238.85L409.4 238.75L409.7 238.65L410 238.55L410.9 238.05L412.3 237.65L412.8 237.45L413.3 236.75L415.3 235.65L415.8 235.05L416.4 236.75L416.2 237.65L415.6 238.85L415 240.55L414.7 241.05L414.3 241.35L413.8 241.45L413.5 241.65L413.2 242.05V242.55L413.3 243.05L414.1 244.95L414.8 246.25V246.45L415.1 246.75L415.5 247.15L416.7 248.55L417.2 249.45H416.6L416.4 249.35L415 248.65L414.7 248.45L414.4 248.35L413.7 248.15L413 248.35H412.6H412.2L411.5 248.15H411.2L410.9 248.45L410.6 248.75L410.4 249.05L409.8 249.65L409.5 249.95L409.4 250.25L409.2 250.85L408.7 253.05V253.75L408.9 254.25L409.1 254.55L409.8 254.95L410.1 255.25L410.2 255.75L410 256.05L409.1 256.65L408.7 256.75L408.3 256.85L407.6 256.55L406.6 255.95L406.2 255.85L405.9 255.75L405.5 25
43505.85L405.2 256.15V256.55L405.3 256.85L405.5 257.25V257.65L405.6 258.05L405.8 258.25L406 258.45L406.1 258.55H406.2V258.95V259.35L406.3 259.65L406.4 260.05L406.6 260.35L406.8 260.65L408.2 261.05L408.5 261.15L409.6 261.35L409.8 261.65L410 262.25L409.8 262.95L409.6 264.15L409.4 264.45H409.1L408 264.25L407.6 264.35L407.2 264.45L406.9 264.65L406.6 264.95L406.3 265.25L405.7 266.35L405.5 266.85L404.5 270.55L404.1 271.55L403.7 272.05L403.4 272.25H403.2H403L402.5 272.35L401.9 272.65L400.8 272.75L400.1 273.05L396.9 273.15L396.5 273.35L396.4 273.65L396.5 274.05L396.6 274.45L396.5 274.95L396.3 275.35L396.2 275.55L396.1 275.85L394.9 276.25L393 277.45L391.7 278.65L391.5 278.85L391.3 279.05L391.2 279.35L391.1 279.55V279.75L391 280.05H390.8L390.6 280.15L390.1 279.95H389.2L388.7 280.05L388 280.75L387.8 281.05L387.4 281.55L387.2 281.85L387 282.15L386.9 282.45V282.75L386.7 283.15L386.4 283.65L385.2 284.45L384.6 284.95L384.4 285.35L383.9 286.05L383.6 286.25L383 286.45L381.2 287.45L380.7 287.95L380.4 288.25L380.1 289.35V289.65V289.85L380.2 290.15L380.6 290.55L380.7 290.75V291.05V291.25L380.6 291.85L380.5 292.15V292.65V292.85L380.6 293.05L380.7 293.25L381 293.45L381.1 293.65L381.3 293.95L381.4 294.15L381.5 294.75L381.6 294.95L381.7 295.25L381.9 295.55L382.2 296.25L382.3 296.45V296.85V297.15L382.4 297.55V297.95L382.5 298.35V298.75L382.4 299.45L382.1 299.75L382 300.15L381.8 300.85V301.25V301.55L381.6 301.85L379.9 303.25L378.2 303.15L377.4 303.65L377.1 303.95L376.2 304.85L375.3 305.45L374.6 305.55H374.2L373.9 305.25L373.7 304.15V303.85V303.45L373.9 303.25L374.2 303.05L374.6 302.95L375.2 302.55L375.4 302.25L375.3 301.95L375.2 301.65L374.5 300.95L374 300.45L373.5 300.35L370.8 300.75L369.5 301.25L369.2 301.45L368.9 301.85L368.6 302.45L368.3 302.75L368 302.95L367 303.55L366.6 303.95L366.4 304.25L366.2 304.65L366.1 305.05V305.35L366.2 305.75L366.4 306.05L366.6 306.35V306.75L366.5 307.05L365.8 307.95L365.6 308.25V308.55L365.5 308.85L365.3 309.25L364.9 309.75L364.5 310.05L363.9 310.25L362.2 310.55L361.4 310.65L358.4 311.25L357.4 311.75L356.1 312.75L355.6 313.25L354.9 312.65L349.6 310.45L348.6 310.15L348.4 309.85V309.45L348.2 309.05L347.9 308.55L346.3 307.35L345.8 307.25H345.4L345.1 307.35L344.8 307.55L344.6 307.85L344.4 308.15L343.8 308.65L343.6 308.85L343.5 309.15L343.4 309.35H342.8L341.8 309.05L339.9 308.95L339.6 308.65L339.5 308.35L339.6 307.95L339.5 307.55L339.4 307.25L338.6 306.15L338 305.65L337.5 305.45L336.9 305.35L335.6 305.25L334.6 305.35H332.7L331.6 304.95L331.1 304.75L330.6 304.55L330.2 304.35L330.1 304.05L330.2 303.65L330.4 303.05L330.6 302.65L330.8 302.35L331 302.05L330.9 301.65L330.7 301.25L325.2 299.45L324.6 299.95L324 299.55L322.9 299.65L321.8 299.95H321.7L321.5 299.85L321 300.55L320 301.05L319 301.25H318.4L317.8 300.75L317.4 300.35L315.8 296.15L315.6 295.95L314.9 295.45L314.6 295.15L314.5 294.85L314.2 294.15L314 293.85L309.8 288.35L308.6 287.45L308.1 287.15L308.6 286.55L309 286.05L309.1 285.45L308.6 284.75L309 284.15L309.7 281.55L311.4 279.05L311.6 278.35L311.5 277.95L311.3 277.75L311 277.65L310.8 277.25V276.85L310.7 276.35L310.8 275.15L311.1 273.45L311.2 273.05L311.6 272.35V272.15L313.4 270.65L314 270.15L314.6 269.95L315.3 269.35L315.9 268.75L316.1 268.25L316.5 267.95L318.3 267.55L319 267.15L319.5 266.65L320 266.25L320.3 266.05V265.35L320.5 264.55L319.9 263.45L320.8 262.75L321.7 261.45L323 258.85L323.4 258.35L323.6 257.85V257.35L323.1 256.95L323.4 256.05L323.1 255.05L322.6 254.15L321.9 253.45L321 252.85L319.9 252.55L318.9 252.65L317.9 253.25L317.4 253.45L316.8 253.35L316.2 253.05L315.8 252.65L315.7 252.15L316.2 251.15L316.3 250.65L315.8 249.65L314.8 249.25L313.7 248.95L312.7 248.35L312.1 247.55L311.8 246.45L311.9 245.35L312.4 244.45L310.4 241.95L309.7 241.35L309.4 240.75L309.2 239.65V238.45L309.4 237.75L309.7 236.95L309.9 235.75V234.65L309.6 234.15L307.9 233.65L307.1 233.25L306.4 232.75L306.1 231.65L305.7 231.15L304.3 230.45L303.7 229.85L302.5 228.25L301.7 227.55L300.4 223.85L300.1 223.15V223.05L308.8 223.45L309.3 223.25L310 222.95L310.7 222.85H312.4L313 222.65L313.9 223.25H315.2L321.1 222.55L321.7 222.25L322.2 221.15L322.1 220.75L322 220.45V219.95L322.2 219.45L322.7 218.55L322.9 218.05L322.8 217.65L322.6 217.15V216.55L322.9 215.85L323.2 215.55L324.1 215.25L324.5 214.95L325.5 213.45L325.6 212.95L325.7 212.05V211.55V211.35L325.6 210.75V210.55L325.7 210.25L326.1 209.95L326.2 209.7
43505L326.5 208.45L326.6 207.95L326.5 207.45L326.7 206.85L327.4 205.65L325.8 202.75L324.9 201.65L324.4 200.75L323.9 200.35L323.5 200.15L322.4 200.05L321.9 199.85L321.5 199.15L321.2 197.35L320.8 196.55L321.2 195.95L321.6 194.75L321.9 194.25L322.7 193.95L324.4 192.75H324.9L325.2 192.65L326 192.75L326.8 192.65L327.5 192.15L327.6 191.85V191.45Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4351<path d="M320.7 17.45L320.6 17.85L320.5 17.95L319.3 19.05L318.7 19.95L318.3 20.35L318 20.55H317.7H317.4L317 20.45H316.6L316.1 20.55L315.8 20.85L315.7 21.25L315.6 22.35L315.7 22.65L315.8 22.95L316.4 23.15H317.1L317.3 23.35L317.5 23.65V24.05V24.55V25.05L317.7 25.65L317.9 26.25L318.2 26.65L318.7 27.25L319.1 27.35L319.4 27.55L319.7 27.85L320 30.25L320.3 30.75L320.5 31.15L320.8 31.45L321.7 32.25H322L322.3 32.35L322.7 32.95L323.4 33.25L323.7 33.35L324 33.55V33.85L323.9 34.15L323.7 34.95L323.6 35.55L323.7 35.95L324 36.35L324.2 36.65L324.5 36.85L324.9 36.95L325.5 36.65L326.3 36.25L326.7 36.05L327 35.85L327.2 35.55V35.25L327.4 34.85L327.7 34.65H328L328.3 34.95L328.7 35.55L329.3 36.55L329.5 37.15L329.4 37.65L327.9 39.05L327.5 39.25L326.1 39.85H325.7H325.3L325 39.95L324.8 40.05L324.6 40.35L324.5 40.65L324.4 41.05L324.3 41.55L324 41.95L323.7 42.15L323.4 42.25L323.1 42.65L323 43.25L323.2 43.85L323.5 44.45L323.9 44.65L324.1 44.55L324.3 44.45V44.35L324.4 44.25V44.05V43.05L324.5 42.95H324.8L325.6 44.15L325.7 44.35L326.1 44.65L326.4 44.75L326.8 44.85L327.5 44.75L327.9 44.95L328.8 45.85L329.2 46.35L329.3 46.95L329.5 49.05L329.1 49.55V50.05L328.9 50.45L328.2 51.25L328.1 51.95L328.5 53.25V53.75L328.3 54.35L328.1 54.85L326.8 56.45L325.9 57.65L325.5 58.05L325 58.25H324.7L324.4 58.15L324 58.25L323 59.15L321.9 59.75L321.7 59.85L321.2 60.55L321 60.95V61.45L321.1 62.15L321.3 62.65L321.6 63.05L321.9 63.35L322 63.75V64.05L321.6 64.35L321.3 64.65L321 64.95L320.8 65.45L320.9 66.95L320.8 67.55L320.1 69.15L320 69.55L320.1 70.65L319.7 71.65L321.5 71.75L323.3 72.15L323.7 72.05L323.8 71.95L323.9 71.75L324.1 71.65L324.5 71.35L325.3 71.15H325.8L326.2 71.35L326.7 71.75L326.9 71.85L329.8 72.65L330.3 73.75L330.2 74.25L330.1 75.15L330 75.65L329.8 76.05L329.5 76.45L329.4 76.65L329.1 76.75L331.1 78.45L332.4 79.35L333.1 80.05L333.2 80.55V80.95L333.1 81.35L333.2 82.15L333.1 82.45L333 82.85L332.9 83.25L332.4 83.85L331.9 84.85L331.3 85.35L330.7 86.15L330.6 86.55L330.4 87.25L330.2 87.35L329.4 87.05H328.8L328 87.25L327.3 87.65L326.7 88.25L325.3 89.65L325 90.15L324.8 90.45L324.4 91.95L324.1 92.25L323.7 92.45L323.4 92.65L323.1 92.95L322.1 94.45L321.6 94.95L321.4 95.45L321.5 95.75L321.8 96.05L322.1 96.25L322.4 96.35H323.2L323.5 96.55L323.9 97.15V97.35L324 97.55L323.3 99.25L323.1 99.65V100.05L323.3 100.55L323.2 101.15L322.9 100.95L321.9 101.65L320.5 102.25L319.2 101.65L318 100.65L316.7 99.75L316.1 99.85L315.4 100.25L314.8 100.75L314.5 101.05L314.4 101.85L314.7 103.55L314.6 104.45L314.1 105.15L313.7 105.65L312.4 106.55L309.5 107.55L308.8 107.65L307.3 107.55L306.7 107.65L306.2 108.05L305.2 109.15L304.7 109.65L304.5 108.75L304.1 107.85L303.6 107.15L303 106.95L302.7 106.85L302 106.45H301.7L301.4 106.75V107.05L301.3 107.35L301.1 107.75L300.5 108.25L299.7 108.55L298.8 108.65L298.1 108.55L297.4 108.25V107.75L298 105.95H295.9L295.2 105.55L294 104.75L293.4 104.55L292.3 105.15L289.8 105.75H288.7L288.2 105.85L288.1 106.15L287.9 106.55L287.6 106.85H286.4L286.1 105.25L286 103.75L285.2 104.05L285 104.75L284.8 105.65L284.4 106.35H283.7L283 106.25L282.4 106.55L281.9 107.05L281.5 107.65L280.2 109.05H280.1L278.4 109.65L274.9 109.35V109.25L275.1 107.95L275 107.25L274.7 106.85L273.3 106.25L272.8 105.25L272.9 104.25L273.3 103.35L274.8 100.95L276 99.85L277.2 99.05L277.8 98.55L278.2 97.85L278.3 96.85L278 96.05L277.4 95.45L276.6 95.15L275.8 95.25L275.1 95.55L274.4 95.75L273.9 95.35L273.8 94.45L273.9 92.15L273.6 91.25L273.2 90.75L272 91.65L271.2 91.95H270.5L270.2 92.05L269.9 92.25L268.8 93.25L268.2 93.55L261.9 94.55L261.2 94.85L259.8 95.85L259 96.15H257.6L256.8 96.35L256.2 96.85L255.8 97.45L255.4 98.55L255.1 99.15L254.2 99.65L253.2 99.95L252.3 100.45L251.8 100.75L251.4 101.65L250.8 102.55L250 103.15L249.2 103.35L248.5 103.7
43515L247.9 104.55L247.2 105.15L246.6 104.95L246.7 104.15L245.9 93.55L246 92.65L246.4 92.25H248L248.8 92.05L249.1 91.55L248.9 91.05L248.1 90.75L248 90.35L248.2 90.15L249.2 89.65L249.3 89.35L249.4 88.85L249.6 88.35L250 88.15L250.2 87.95L251 87.05L253.1 85.35L253.6 85.15L253.8 85.05L255.1 83.85L255.8 83.55L256.7 82.95L256.9 82.65L257.1 82.25V80.55L257 80.15H256.9L256.5 80.25L255.9 80.85L255.5 81.85L254.9 82.85L253.9 83.25L253.1 83.45L250.9 84.45L250.5 84.95L250 85.05L247.9 84.85L247.1 85.15L247.3 84.45L247.7 83.25V82.45H248L248.5 83.35L248.8 82.95V81.15L248.7 80.75L248.6 80.45L248.8 80.35L249.3 80.25L250.8 80.55L251 80.45L251.3 79.75L252.8 77.95L253.5 77.25L254.8 76.35L255.4 75.85L255.7 75.05L255.3 75.25L255 75.15L254.6 75.05H254.2L254.1 75.15L254 75.25L253.1 75.75L252.1 76.55L251.6 76.95L250.7 77.15L249.4 77.25L248.1 77.05L247.1 76.45L246.8 75.85L246.6 74.85L246.3 74.25L245.8 73.95L244.4 73.75L244.1 73.55L244.4 72.95L245.1 72.55L246 72.15L246.6 72.05L247.1 72.15L247.4 72.65V73.15L246.9 73.55L247.2 73.75L247.8 73.95L248.4 74.05L248.8 73.95L248.9 73.35L248.8 72.65V72.15L249.3 71.65L248.8 69.75V68.85L248.9 68.05L249.3 67.35L249.8 66.95L250.3 66.75L250.8 66.05L252.3 62.75L252.6 61.45H252.4L252.1 62.35L251.7 63.25L251.2 63.85L250.5 64.15L249.7 63.85L249.2 63.15L248.8 62.25L248.3 61.85L247.6 62.95V63.65L248 64.15L247.1 65.35L246.6 65.65L246 65.25L246.2 64.65L245.7 64.95L244.3 65.95L244.9 66.65L244.4 67.05L243 67.45L242.9 67.75L242.6 69.05L242.2 69.15L241.9 69.45L241.3 70.15L240.7 69.45L240.6 68.45L240.4 67.55L239.5 67.15L238.9 66.55L239.1 65.25L239.7 63.85L240.2 62.95V62.35L240.3 61.55L240.6 60.45L241 59.75L241.2 59.35L241.5 58.95L242 58.85L242.1 58.65L243.3 58.05L244.3 56.55L244.9 56.05L245.9 55.75L246.2 55.35L246.4 54.55L246.3 53.65L245.5 53.15L245.3 54.45L244.7 55.25L243.8 55.65L242.7 55.75L240.6 55.45L239.8 55.65L239.9 56.55L239 57.55L238.5 57.85L237.7 57.65L237.2 57.25L236.9 56.55L236.7 55.65L236.3 54.65H236.8L237.2 54.45L237.5 54.05L237.7 53.55L237.4 52.85L236.8 52.45L236.1 52.15L236 51.75L235.8 51.05V50.65L235.9 50.45L236.2 50.05L236.3 49.75L236.4 49.25L236.3 48.85L236.1 48.65L235.4 48.55L235 48.35L234.4 47.35L233.9 47.15V47.45L234.1 48.05L233.9 48.35L233.5 48.45H233.3L233.1 47.65H232.7L232.3 47.95L231.9 48.25L231.6 48.75L231.2 49.85L230.9 50.35L230.7 50.25L230.3 48.95L230 48.55V48.25L230.2 47.75L231.1 45.45V45.05L231.2 44.65L231.3 44.15L231.5 43.85L231.6 43.35L231.4 43.05L230.8 42.55L230.5 41.25L230.8 40.95H231.4L231.6 40.45L231.9 39.45L232.3 38.95L232.8 38.65L233 37.95L233.6 38.55L234.1 38.65L234.6 38.45L235.2 37.95L235.4 37.65L235.5 37.45L235.7 37.15L236.1 36.85L236.4 36.65L236.7 36.55H237.4V36.15L236.7 36.45L235.8 36.65L235.2 36.55V36.15L233.9 36.75L233.4 36.65L233 35.75L234.9 33.85L236.2 33.15L237.7 33.85H238.4L239.1 33.65L239.7 33.45L240.2 33.05L240.7 32.65L241.1 31.95L241.3 31.15H241.6L242.4 31.75H243.4L244.5 31.25L245.2 30.75L244.3 30.85L243.9 30.45L243.3 29.25H243.1L242.6 28.95L242.3 28.65L242.6 28.45H243L244.6 27.75L246.3 26.55L247.6 26.25L247.9 25.85L248.2 25.55L248.6 25.45L249.2 25.75L250.4 27.05L251.1 27.35L251.9 27.45L253.4 27.95L254.2 28.05L255.3 27.65L256.7 26.85L258.2 26.35L259.6 26.95L261.7 25.95L262.1 25.65L262.2 25.15L262.5 24.65L262.9 24.35L263.8 24.15L263.9 23.95L264 23.75L264.3 23.55L266.5 22.95L266.6 23.65L267 24.25L267.9 25.05L268.4 24.35L268.5 23.85L268.4 22.55L268.8 21.85L269.6 21.95L270.8 22.75L271.4 22.95L271.6 23.45L271.8 24.05L272.1 24.65L273 25.55L273.4 26.15L273.7 26.95L274 26.05V25.25L273.7 23.55V22.65L273.9 22.15L274.3 21.75L275.1 21.25L274.3 20.85L273.6 20.75L272.2 20.85L271.5 20.65L270.5 19.55L269.8 19.35L270.6 18.75L274.7 18.15L275 18.05L275.2 17.85L275.4 17.45V17.05L275.2 16.95L274.2 17.45L271.8 17.85L271.9 17.65L272 17.55L272.3 17.45L272.2 17.25L271.8 17.05L271.3 17.75L270.5 18.05L268.7 18.15L269 17.35L269.2 16.15L269.4 15.35L269.8 15.55L270.4 14.75L270 14.45L269.7 14.05L269.5 13.45V12.85H269.7L270.4 12.95L270.7 12.85L271.6 12.95L272.8 12.35L278.7 7.85L278.8 8.45L279.2 8.85H279.6L280.1 8.65H279.7H279.5V8.25L279.7 8.15L279.9 7.95L280.1 7.85L279.3 7.25L279.2 6.65L279.4 6.05L279.5 5.35L279.8 4.95L280.4 4.7
43515H281.7L282.9 4.45L284.1 3.75L285.1 2.85L285.9 1.75L287 1.85L287.5 2.65L287.8 3.65L288.4 4.45V4.75L288.1 4.65L287.7 4.55L287.5 4.45L287.2 4.95L287.1 5.45L287 5.85L287.3 6.25L286.9 6.65L286.7 6.55L286.4 6.25L286.2 6.55L286.1 6.65L285.9 6.75V7.05L287.9 7.25L288.3 6.75L287.5 5.55L288 5.25H288.5L289.5 5.55L289.4 5.35L289.3 4.95L289.2 4.75L289.8 4.15L290.5 3.55L291.3 3.05L292.9 2.65L293.8 2.05L294.5 1.25L294.7 0.349998L294.9 0.25L295.2 0.349998L295.5 0.75L295.6 1.35L295.4 1.75L294.5 2.85L294.4 3.65L294.6 3.95L294.9 3.85L295.3 3.65L295.4 3.55L295.3 3.25L295.4 2.95L295.7 2.85H296L296.7 2.45L296.8 3.25L297.8 5.15L297.7 6.05L298 5.95L298.5 5.25L298.9 4.45L299.4 4.65L299.7 4.35L300.1 3.85L300.7 3.65L302.3 3.85L302.8 4.05L306.1 5.95L307.7 6.55L310.3 11.05L312.2 12.05L312.1 12.25L312 12.45L311.9 12.65L311.6 12.75V13.15L312.2 13.45L312.5 13.25L312.8 12.95L313.3 12.75H313.9L314.7 13.05L316.2 13.25L318.7 13.15L319.4 12.75L320.1 13.15L320.8 13.25L321.3 13.65V14.75L321 15.35L320.6 16.05L320.4 16.75L320.7 17.45Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4352<path d="M327.6 191.45L327.7 190.95L327.8 190.55L328.1 190.25L329.8 188.95L330.2 188.65L330.9 187.35L329.5 186.05L328.6 184.55L328.3 182.75L329.1 180.95L330 179.55L330.1 178.95L329.9 178.05L329.5 177.25L329 176.85L328.7 176.25L328.6 175.35L328.9 174.55L329.8 172.75L330.1 171.85V171.25L330 170.25L329.7 168.55L329.2 166.75L329.1 166.05V164.95V164.45L329.3 164.15V163.85L329.2 163.25L329.1 162.95L329.2 161.55L329.8 161.35L330 160.75L329.8 159.95L329.4 159.65L328.7 159.55L328.4 159.05L328.1 157.95L327.2 155.75L326.6 154.85L325.4 153.45L325 152.85L324.9 152.15L325.3 151.45L325.5 150.45L326.3 150.05L328.8 150.25L329.9 150.15L330.5 149.55L332.1 147.25L332.4 146.25L332.3 144.95L332.5 144.55L333 143.85L334.4 142.65L334.6 142.15L334.9 141.35L336.4 139.25L336.8 138.65L337.6 138.55H340.2L340.6 138.25L342.9 137.25L343.5 136.75L344.3 136.15L345.6 134.85L346.8 132.75H347L347.5 132.85L347.6 132.75L347.7 132.45L347.8 132.05V131.75H347.6L348.2 131.25L348.7 131.05L350 130.95V130.55L351.5 128.05L351.6 127.65L351.4 127.35V126.85L351.7 126.35L352.7 125.25L354.6 122.35L354.2 121.85L353.7 121.05L352 119.25L350.2 118.05L348.2 117.35L344.9 116.65H344.4L344.1 116.85L343.8 117.25L343.3 117.65L342.6 117.95L342.2 118.05L341.1 117.65L340.5 116.75L340.3 115.65L340.2 114.65L340 114.15L339.8 113.65L339.6 113.25L339.9 112.75L340.2 112.25L340.3 111.75L341.3 107.35L341.8 106.35L340.7 105.95L340 105.85L339.7 105.45L340 103.15L339.9 102.25L339.3 101.55L338.3 101.15L337.8 102.35L336.4 102.75L333.6 102.85L332.3 102.55L330.9 100.25L329.6 99.9499L329.4 101.65L328.4 102.25L325.9 102.45L324.8 102.15L323.8 101.45L323.2 101.15L323.3 100.55L323.1 100.05V99.6499L323.3 99.2499L324 97.5499L323.9 97.3499V97.1499L323.5 96.5499L323.2 96.3499H322.4L322.1 96.2499L321.8 96.0499L321.5 95.7499L321.4 95.4499L321.6 94.9499L322.1 94.4499L323.1 92.9499L323.4 92.6499L323.7 92.4499L324.1 92.2499L324.4 91.9499L324.8 90.4499L325 90.1499L325.3 89.6499L326.7 88.2499L327.3 87.6499L328 87.2499L328.8 87.0499H329.4L330.2 87.3499L330.4 87.2499L330.6 86.5499L330.7 86.1499L331.3 85.3499L331.9 84.8499L332.4 83.8499L332.9 83.2499L333 82.8499L333.1 82.4499L333.2 82.1499L333.1 81.3499L333.2 80.9499V80.5499L333.1 80.0499L332.4 79.3499L331.1 78.4499L329.1 76.7499L329.4 76.6499L329.5 76.4499L329.8 76.0499L33
43520 75.6499L330.1 75.1499L330.2 74.2499L330.3 73.7499L329.8 72.6499L326.9 71.8499L326.7 71.7499L326.2 71.3499L325.8 71.1499H325.3L324.5 71.3499L324.1 71.6499L323.9 71.7499L323.8 71.9499L323.7 72.0499L323.3 72.1499L321.5 71.7499L319.7 71.6499L320.1 70.6499L320 69.5499L320.1 69.1499L320.8 67.5499L320.9 66.9499L320.8 65.4499L321 64.9499L321.3 64.6499L321.6 64.3499L322 64.0499V63.7499L321.9 63.3499L321.6 63.0499L321.3 62.6499L321.1 62.1499L321 61.4499V60.9499L321.2 60.5499L321.7 59.8499L321.9 59.7499L323 59.1499L324 58.2499L324.4 58.1499L324.7 58.2499H325L325.5 58.0499L325.9 57.6499L326.8 56.4499L328.1 54.8499L328.3 54.3499L328.5 53.7499V53.2499L328.1 51.9499L328.2 51.2499L328.9 50.4499L329.1 50.0499V49.5499L329.5 49.0499L330.8 49.2499L331.6 49.6499L331.8 50.1499L332.1 50.2499L332.6 49.9499L332.9 49.6499L333.2 49.3499L333.5 48.9499L333.9 48.7499L334.6 48.4499L335.4 48.3499H337.3L337.8 48.4499L338.1 48.5499L338.4 48.7499L340.3 48.9499L340.7 48.8499L342.1 48.2499L342.7 48.1499L344.8 47.0499L345 46.6499V46.3499L344.8 46.0499L344.1 45.8499L343.7 45.5499L343.5 45.2499L343.6 44.9499L343.8 44.7499H344.9L345.8 44.4499L346.1 44.2499L346.2 44.0499V43.7499L346.3 43.4499L346.5 43.0499L346.7 42.7499L346.9 42.3499L347.1 41.9499L348.2 41.4499L348.9 41.6499L349.3 41.9499L349.6 42.2499L350.4 42.4499H351L352.7 43.3499L353.5 43.5499L353.8 43.4499L354 43.2499L354.1 42.4499L354.4 42.1499L354.9 42.0499L355.9 42.2499L357 42.6499L357.5 42.8499L358 42.7499L358.8 42.3499L359.1 42.0499L359.2 41.5499L359.3 41.1499L359.4 40.8499L359.8 40.7499L361.8 41.1499H362.3L363.5 40.8499L363.9 41.1499L364.1 41.4499L364.3 42.2499L364.4 42.6499L364.6 43.0499L364.8 43.3499L365.8 43.9499L366.3 44.3499L366.8 44.7499L367.3 44.8499L367.4 45.1499L368.5 45.5499L368.8 45.7499L369.2 45.8499L370.8 45.9499L371.5 45.8499L371.9 45.7499L372.3 45.3499L372.4 44.9499L372.6 44.6499L372.7 44.3499V44.2499V44.0499L372.8 43.7499L373 43.4499L373.3 43.1499L373.5 42.7499L373.7 42.4499L373.9 42.0499L374.3 41.8499L374.9 41.6499L375.9 41.5499L376.5 41.6499L377.6 42.2499L378.5 42.4499H379.1L380 42.5499L380.3 42.8499L380.7 43.0499L381.1 43.1499H381.5L382.5 42.7499H383.2H383.5L383.7 42.4499L383.9 42.1499L384 41.7499L384.2 41.4499H386.4L386.9 41.3499L387.3 41.1499L387.6 40.7499L387.9 39.6499L388.3 39.3499L388.8 39.2499L390.9 39.5499L394.8 39.1499L396.9 38.0499H397.3L397.7 38.2499L398.1 38.3499H398.6L399.2 37.7499L399.5 37.2499L399.8 36.3499L399.9 35.9499L400 35.5499L400.4 34.7499L400.8 34.4499L401.5 34.0499L403 33.6499L404.3 32.9499L404.9 32.3499L407.1 31.1499H407.5H407.9L408.2 31.3499L409 31.9499L410.2 33.8499L410 36.8499L410.1 37.4499L410.3 38.3499L410.6 38.7499L411 39.0499L412.6 39.9499L412.9 40.3499L413.1 40.8499L413.9 41.6499L414.1 42.0499L414.4 43.4499H415.2L415.9 43.2499H417.9L419.5 42.9499L420.9 43.0499L421.4 42.9499L422.8 42.2499L423.3 42.1499H423.9L424.3 41.9499L425.1 41.5499H425.7L426.2 41.6499L427.2 42.1499L427.6 42.4499L428.4 43.8499L428.5 44.2499L428.6 44.3499L428.8 44.7499L429.4 45.1499L433.5 46.6499L434.1 47.0499L434.2 47.4499L434.1 47.8499V48.2499L434.2 48.9499L434.4 49.7499L434.5 50.1499V50.5499L434.6 50.9499V51.3499L434.7 51.7499V52.0499V52.2499L434.8 52.5499L435 52.8499L435.3 52.9499L435.6 53.0499L435.8 52.9499L436.3 52.4499L436.7 52.2499L437.7 51.9499L438.1 52.1499L438.3 52.3499L438.4 52.8499L438.3 53.1499L438 53.4499L437.7 53.6499H437.3L436.6 53.8499L436.3 54.0499L436.2 54.3499L436.3 54.6499L436.6 55.0499L437.4 55.7499L437.8 55.8499L438.9 55.9499L439.3 56.1499L439.7 56.3499L439.9 56.6499L440.3 57.3499L441.9 56.9499L443 54.4499L443.3 54.2499L443.6 54.0499L443.7 54.1499L443.8 54.4499V55.7499L443.9 56.1499L443.8 57.0499L445.2 57.4499L445.8 57.3499L446.6 57.0499L447.1 56.8499L448.5 55.5499L449.2 55.3499H450.6L451 55.1499L451.2 54.7499V54.4499V54.0499L451.1 53.7499L450.8 53.1499L450.7 52.7499L450.8 52.1499L450.7 51.7499L450.6 51.3499L450.2 51.1499H449.8L449.3 51.3499L449 51.7499L448.7 52.3499L448.4 52.5499H448L447.8 52.2499L447.6 51.9499V51.5499L447.4 50.9499L447.5 50.6499L447.8 50.4499V50.1499L447.9 49.9499L449 49.8499L450.2 49.0499L450.5 48.6499L450.4 48.2499L450.2 47.9499L449.9 47.5499L449.6 47.3499L449.2 47.1499L448.9 47.2499L448.6 47.4499L448.4 47.7499L448 48.4499L447.7 48.7499L446.7 49.3499L445.9 49.5499H445.5L445.1 49.4499L444.8 49.1499L444.5 48.8499L444.4 48.4499V48.0499V47.6499L445.3 45.0499L445.7 44.3499V44.2499L446 44.0499L446.4 43.8499L447.1 43.4499L448 42.4499L448.6 42.1499L449.2 41.9499L449.6 41.6499L450.1 41.1499L450.3 40.6499V40.1499V39.6499L450.6 39.4499L450.9 39.3499L451.3 39.2499L452.5 39.3499H452.8L453.2 39.1499L453.8 38.6499L454.6 38.1499L455 37.7499L455.6 37.1499L456.6 35.8499L457.4 34.9499L458 34.5499H458.4L458.8 34.6499L459.4 35.1499L459.8 35.3499L461 35.5499L462.1 35.8499L463.2 36.3499L464 36.5499L464.7 36.4499L465.9 36.6499L467 36.5499L469.5 35.5499L472.9 33.4499L473.3 33.2499L473.7 33.1499L474 33.2499L474.2 33.3499L474.9 33.9499L475.8 34.1499H477.1L478 34.2499L478.3 34.4499L478.4 34.6499V35.1499L477.7 35.7499L477.5 36.1499L477.2 37.0499L477.3 37.5499L477.5 37.8499L478.2 38.1499L478.4 38.5499V39.2499L478.2 40.2499
4352V41.5499L477.9 42.1499L477.7 42.4499L477.5 42.8499L477.7 43.0499L478 43.2499L479.2 43.5499L480.4 43.6499L480.7 43.7499L481.2 43.5499L481.9 41.9499L482.7 41.5499L483 41.7499L483.2 41.9499V42.2499V42.5499L483.5 42.9499L484.3 43.1499L484.6 43.5499L484.7 43.8499L484.6 44.2499L484.4 44.6499L484.3 44.8499H484.2L484.1 44.9499H483.8L483.1 45.0499H482.6V45.5499L482.8 45.8499L483.1 46.2499L483.7 46.6499L484.8 47.0499L485 47.3499L485.1 47.6499L485 47.9499L484.9 48.2499L484.7 48.3499L484.1 48.5499H483.8L483.3 49.0499L483 49.2499L482.6 49.3499H481.8L481.1 49.5499H480.7L480.3 49.4499L479.9 49.3499L479.1 49.2499L478.8 49.1499L478.5 48.9499L478.2 48.6499L478 47.9499L477.8 47.6499L477.4 47.4499L477 47.3499L476.5 47.2499L475.1 47.4499L474.7 47.7499L474.5 48.0499L474.3 48.4499L473.8 49.1499L473.2 49.7499L473 50.1499L472.9 50.5499L472.8 50.9499L473 51.2499L473.6 51.7499L474.8 53.3499L475.1 53.5499L475.4 53.7499L475.6 53.5499L475.7 53.2499L475.6 52.9499L475.8 52.6499L476 52.3499L476.2 52.0499L476.6 51.8499L477 51.7499H477.7L478 51.5499L478.3 51.2499L478.9 50.4499L479.3 50.3499L479.5 50.5499L479.7 50.9499L479.6 51.5499L479.3 52.1499L478.9 52.8499L478.4 53.4499L478.2 53.9499L478 54.3499V54.7499L478.2 55.1499L478.4 55.4499L478.7 55.7499L478.9 56.1499L478.8 56.5499L478.6 57.0499L479.2 56.9499L479.3 57.0499L480.4 56.7499L481.6 56.1499L482.9 56.8499L484 57.9499L484.8 58.4499L485.4 58.7499L486.4 60.0499L487.5 60.5499L490.1 62.7499L490.5 63.2499L490.7 63.9499L487.9 64.8499L486.8 64.6499L486.2 64.4499L483.6 64.0499L481.9 64.2499L481.2 64.5499L481.1 64.9499L481.5 65.5499L481.7 65.9499V66.3499L481.5 66.8499L481.2 67.1499L480.9 67.4499L480.8 67.8499L479.6 69.1499L479.5 69.5499L479.7 69.8499H480L480.3 69.6499H480.7H481L481.2 69.8499L481.3 70.2499V70.6499L481.2 71.1499L480.9 71.8499L480.8 72.2499L480.9 72.6499L481.5 73.0499L481.7 73.3499L481.8 73.7499L482.1 74.0499L482.2 74.4499V74.7499L481.8 75.8499V77.1499V77.5499L481.9 77.9499V78.3499L481.2 79.5499L481 79.7499L480.2 79.8499L479.8 80.0499L479.7 80.3499L479.9 80.7499L480.1 80.9499L480.2 81.3499V82.3499L480.3 82.7499L480.4 83.2499L480.5 83.5499L480.6 83.9499V84.4499V84.9499L480.5 85.5499L480 87.2499L479.8 87.7499L479.3 88.1499V88.4499L480.6 90.4499L480.7 90.8499L481 91.6499L481.3 91.8499L481.9 92.2499L482.4 92.9499L482.5 93.3499L482.7 93.6499L483.1 94.3499L483.7 94.6499H484.2H484.6H485.2L485.8 94.5499L486.1 94.4499H486.5L486.8 94.6499L487 94.9499L487.2 95.2499L487.3 95.6499L487.5 96.0499L487.8 97.8499L489.4 98.3499L490.6 97.7499L491.7 97.0499L492.2 96.5499L492.4 96.0499V95.6499L492.3 95.2499V94.8499L492.4 94.4499L492.6 94.0499L492.8 93.6499L493.3 92.9499L493.8 92.6499L494.8 92.5499L495.3 92.7499L495.6 92.8499L495.7 93.2499L495.8 93.6499V93.9499L495.6 94.7499L495.4 95.1499L494.9 95.6499L494.7 95.9499L494.6 96.3499L494.5 96.7499L494.4 97.1499L494.3 97.5499L494.5 97.8499L495.1 98.1499H495.7L496.2 98.2499L496.7 98.4499L497.4 99.0499L497.7 99.1499H497.9L498.1 99.0499L499.5 98.9499L500.7 99.1499H501.4V99.0499L501.5 98.8499L501.6 98.5499L502.1 97.8499L502.5 97.0499L502.7 96.5499L502.9 96.2499L503.1 96.0499L503.3 95.8499L503.6 95.6499L503.7 95.3499L503.8 94.6499V93.7499L503.9 93.3499L504 93.1499L504.3 93.0499L505.1 93.2499L505.5 93.0499L506.4 92.4499L506.9 91.9499L508 91.5499L510.5 91.3499L512.6 91.6499L513 91.8499L513.2 92.0499L513.3 92.3499L513.4 92.7499V93.1499L513.6 93.5499L513.8 93.9499L514.2 94.2499H514.6L516.9 93.4499L517.6 93.3499L518.4 93.4499L519 93.5499L519.4 93.8499L519.6 94.1499V94.5499L519.4 94.8499L519.1 95.1499L518.8 95.3499L518.5 95.5499V95.9499V96.3499L518.6 96.7499L518.9 97.1499L519.8 97.9499L520.2 98.6499L520.3 98.9499V99.0499V99.1499H520.2L520.1 99.3499L519.9 99.5499L519.8 99.9499L519.9 100.25L520.1 101.05L520.3 101.45L520.7 101.65L522.9 102.25H523.6L524.6 102.75L525 103.05L525.4 103.45L525.8 103.55L526.8 103.45L527.3 103.35L527.7 103.15L528.4 102.65L528.7 102.45L530.3 101.55L530.5 104.25L531.1 105.95L532 107.15V107.55L531.9 108.05L531.8 108.45L531.6 108.85L531.3 109.15L530.9 109.95L530.8 110.45L530.9 110.85L531.2 111.25L531.9 112.25L532.2 112.95L532.3 113.35L532.5 113.65L532.8 113.85L533.2 114.35L533.1 115.05L532.9 115.55L532.7 116.05L532.3 116.95L532 117.45L531.6 117.65H531.2L530.8 117.75L530.4 117.95L530 118.45L529.6 118.75L528.8 119.15L528.1 120.05L527.9 120.35L527.6 120.65L527.3 120.75L526.5 120.45L526.2 120.35H526H525.8L525.6 120.55L525.3 120.65L525 121.05L524.9 121.45V121.75L525 122.15L525.3 122.35L525.5 123.85L525.4 125.75L525.5 126.65L525.8 127.25L526.1 127.55L526.3 127.95L526.5 128.45L526.7 130.75L526.5 130.95L526.2 131.05L525.8 131.15L525.4 131.35L524.7 131.65L524 132.25L523.7 132.35H523.3L523 132.15L522.9 131.85V131.45L523 131.05V130.65L522.9 130.25L522.7 129.95L522.4 129.65L521.7 129.45L520.5 129.25L520.1 129.55L519.9 129.85L519.7 130.25V130.75V131.15L519.6 131.65L519.4 
4352132.85L519.1 133.25L518.9 133.55L518.6 133.75L518.3 133.85L518.1 134.05L517.8 134.45L517.6 135.45L517.5 137.25L517.9 137.95L518 138.25L518.1 138.65L518.4 140.65L518.5 142.65L518.7 143.05L519 143.35L519.3 143.45L520.1 143.55H520.4L520.8 143.65L521.2 143.85L522.1 144.55L522.4 144.95V145.75L522.1 147.15V148.15L522.2 148.45V148.75L521.9 148.95L521.6 148.85L521.3 148.55L521.1 148.25L520.9 147.95L519.9 147.35L519.6 147.05L519.3 146.85L519 146.75L518.7 146.95L517.4 148.15L517 148.25L516.6 148.35L515.7 148.15L515 148.25L514.5 148.55L514 148.95L513.5 149.25L512.9 149.45L511.9 149.65L511.3 149.55L510.6 149.15L510.3 148.85L509.8 148.75L509.3 148.85L508 149.55H507.5L506.4 149.05L506 148.75L505.7 148.45L505.5 148.05L505.3 147.25L505.1 146.95L504.8 146.75L504.3 146.55L504.1 146.35L504 146.25L503.9 145.95L503.8 145.55L503.6 145.25L503.4 144.85L503.1 144.65L502.7 144.75L502.3 144.95L501.6 145.25H501.2L500.9 145.05L500.8 144.75L501.1 144.15V143.85L500.9 143.45L500.2 143.05L499.9 142.75L500 142.55L500.6 142.15L500.8 141.75L500.9 141.45L500.6 141.15H500.3H499.9L499.6 141.25L499.3 141.15L499 140.85L498.7 140.45L498.1 140.15L497.1 139.95L496.3 139.75L495.9 139.55L495.7 139.15L495.5 138.75L495.1 138.45L494.6 138.35H494.2L493.8 138.55L493.4 138.85L493 139.05L492 139.15L490.5 138.65L490 138.45L489.7 138.05L489.4 137.35L489.3 136.95L489.2 136.55L489 136.15L488.3 135.85L487.8 135.75L487.3 135.85L487 136.05L486.8 136.35L486.5 136.65L486.4 137.05L485.8 137.45L484.9 137.65L482.2 137.95H480.8L476.1 136.85L475.3 137.35L474.1 138.75H472.8L472.4 139.05L470.4 139.45L468.4 139.35L467.3 138.85L467.2 139.05L467.3 139.25L467.5 139.65L467.7 139.95V140.35L467.6 141.15L467.5 141.55L467.2 141.75L466.3 141.95L463.2 144.35L462.8 144.45L462.1 144.35L460.2 144.75L459 145.55L458.5 145.95L458.2 146.35L458 146.75L457.3 147.65L456.5 148.55L454.7 149.75L454.1 150.25L453.7 150.75L453.4 151.55L453.1 151.95L452.9 152.35L452.4 153.25L452 153.55L451.6 153.75L448.1 154.95L447.7 155.25L447.3 155.75L447 156.25L446.4 156.95L445.9 157.95L445.7 158.35V158.75L445.8 159.45V159.85L445.7 160.25L445.4 160.75L445.2 161.15V161.55L445.1 162.35L445 162.75L444.7 163.55L444.6 163.95L444.4 164.35L444.2 164.55L443.9 164.65L443 164.85H442.6L442.3 164.65L441.8 164.55H441.3L440.5 164.95L440.1 165.35L438.6 167.75L438.4 168.05L437.2 169.75L437 170.75V171.15L436.8 172.05V172.85L436.7 173.15L436.3 173.55L435.9 173.65L435.5 173.85L434.7 174.15L434 174.25L433.6 174.15L433.3 174.05L433 173.75L432.7 173.15L432.5 172.95H432.2L432 173.25V173.75L432.2 174.15L432.3 174.55V174.85V175.25L432.1 175.85L432 176.05L431.9 176.25L431.8 176.35L431.5 176.55L431.2 176.85L430.9 177.35V177.95V178.35V179.15V179.45L431 179.75L430.9 179.95V180.65L431 180.95V181.35V181.75L430.8 182.15L430.5 183.25L430.7 184.05L430.6 184.35L430.2 184.55L429.1 184.65L428.8 184.75H428.6H428.4L428.1 184.65L427.8 184.55H427.6H427.3L427.1 184.75L426.8 184.85L426.5 185.25L426.3 185.55L426.2 186.45V186.75L426.1 187.15L426 187.65L425.6 188.45L425.3 188.95L424.8 189.25L424.4 189.35L423.7 189.45L423.5 189.35L423.3 189.15L422.8 188.45L422.6 188.25H422.3L422 188.55V188.95L422.1 189.35L422.3 190.05L422.4 190.45L422.3 190.85L422.1 191.15L421.6 192.25L421.2 194.05L420.7 194.95L419.4 195.45L418.5 195.75H417.9L417.4 195.65L416.6 195.25L416.3 195.05L416.1 194.75L416 194.35L415.8 193.05L415.7 192.75L415.6 192.35L415.7 191.95L415.5 191.65L415 191.55L414.2 191.85L412.3 192.15H411.4L411.2 192.35L411 193.15L410.9 193.55L410.8 194.05L410.4 194.65L409.7 195.25L408.8 195.75L408.4 196.15L407.7 196.65L407.3 196.95L406.9 197.65L406.8 198.05L406.7 198.45L406.5 198.75L406.2 199.05L405.3 199.65L404.7 199.95L403.8 200.15L403.2 199.95L403 199.75L402.8 198.25L402.5 197.95L402.1 198.05L401 198.35L400.5 198.55L400.2 198.85L399.9 199.25L399.7 199.55L398.1 200.75L397.9 200.95L397.7 201.15L397.3 201.35L396.6 201.45H395.7L395.2 201.05L394.1 200.55L390.1 200.05L389.4 198.95L389.3 198.55L389.1 198.15L388.8 197.45L388.6 195.15L388.7 194.65L388.8 194.25L389.2 193.25V192.95L389 192.65L388.3 192.75L386.3 193.35L384.9 194.45L384.6 194.85L384 195.35L383.7 195.55L383.4 195.65H383.1L381.6 195.75L380 195.25L379 194.55L378 193.25L376.8 192.15L375.6 191.25L374 190.65L372.6 191.15L371.7 191.05L371.5 190.85L371.4 190.55L371.7 189.85L371.8 189.55V189.05L371.6 188.65L371.2 188.15L370.9 188.05L370.5 188.15L369.7 188.65L368.3 188.95L368 189.15L367.7 189.35L367.6 189.75L367.5 190.05L367.3 190.45L367.1 190.85L366.9 191.15L366.5 191.35L366 191.25L364.9 190.85L363.5 190.15L362.9 189.75L362.6 189.35L362 188.85L361.1 188.35L359.7 187.75L359.2 187.45L359.1 187.25L359.3 187.05L359.5 186.85L359.6 186.45V186.25L359.8 186.05L359.9 185.85V185.65L360.2 185.25V185.05L360 184.75L359.1 184.45L358.6 184.15L358.3 183.85V183.55L358.2 183.25L357.4 183.05L357 182.85L356.4 182.15L356 181.75L354.6 180.95L353.9 180.75L353.4 180.85L353 181.05L351.6 182.05L351.1 182.25L350.6 182.45L349.9 182.55L349.5 182.85L349.1 183.15L348.8 183.35L348.6 183.75L348.5 184.05L348.3 184.45L347.9 184.75L346.7 184.95L346.3 185.15L345.9 185.35L345.1 186.25L343.6 186.85L343.3 187.05L342.5 187.35L342.1 187.55L340.9 188.55L340.6 188.85L340.4 189.15V189.55L340.6 190.25V190.65L340.5 191.05L340.3 191.25L339.9 191.55L339.3 191.85L336.5 192.35L336 192.55L335.6 192.75L335.1 192.95H334.7L334 192.45L333.6 192.55L332.3 193.25L331.5 193.15L331.2 193.05H330.9L330.5 193.25H330.1L329.7 193.15L329.2 192.95L328.9 192.65L328.1 191.85L327.6 191.45ZM432.6 169.45L431.7 169.25L430.9 170.05L430.8 171.35L433.3 171.15L432.6 169.45ZM498.7 56.7499L499.3 56.8499L499.6 56.7499L500 56.6499H500.3L500.5 56.7499L500.6 57.0499L500.8 57.2499L501.2 57.5499H501.5H502L502.1 57.7499L502 58.1499L501.9 58.4499
4352V58.6499L501.5 59.4499L501.3 59.6499L501.1 59.8499L500.6 59.9499L500.4 60.1499L500.3 60.3499V60.6499L500.4 60.8499L500.6 61.0499L500.8 61.2499L501 61.4499L501.4 62.0499L501.7 62.2499L501.9 62.3499L502.2 62.2499L502.4 62.0499L502.8 61.6499L503 61.4499H503.3L503.4 61.5499L503.6 61.8499V62.2499L503.8 62.7499V63.4499L503.7 63.6499L503.3 63.8499L502.8 63.9499L502.6 63.8499L502.5 63.5499L502.3 63.4499H502.1L498.9 63.3499L496.9 62.4499L494.2 61.8499L491.7 60.6499L490.6 59.8499L489.6 58.8499L489.4 58.3499L489.5 58.0499L490.1 57.3499L490.9 56.0499L491.1 55.7499L491.6 55.6499L494.1 55.5499L495.2 55.6499L495.7 55.7499L496.3 56.0499L498.7 56.7499Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4353<path d="M612.3 167.45L613.4 167.65L614.2 167.45L614.4 167.65L614.5 168.05L614.7 168.45L615.2 168.95L616.1 169.15L616.6 169.55L617 169.95L616.9 170.25L616.7 170.55L616.5 171.05V171.55L616.8 172.25L617.2 172.65L618.1 173.15L621 174.15L622.2 174.85L622.7 175.25L623 175.55V175.95L623.1 176.35L623.4 176.85L623.8 177.05L626.3 178.15L626.5 178.35L626.2 178.95L625.6 180.55L624.9 181.55L624.2 182.35L623.6 183.25L623.4 184.55L622.3 185.65L619.5 191.15L619 191.65L618 192.55L617.4 193.15L616 195.05L613.6 197.15L611.2 202.05L610.1 203.25L608 204.45L607 206.05L605.2 209.75L604.2 211.35L601.7 214.15L597.5 221.15L597.3 221.75L597.2 222.95L596.9 223.85L596.5 224.55L595.5 225.55L594.9 226.35L594.5 227.25L594.2 228.15L594 228.85L592.7 230.65L592.3 231.55L592 233.45L592.1 236.05L592.4 238.25L593.2 241.75L595.7 247.35L596.1 248.15L596.6 249.05L596.1 249.45L595.6 249.85L595.8 250.85L596.2 252.75L596.9 254.45L597.9 256.35L599 258.45L600.5 261.05L601.1 261.85L602.6 263.05L604.1 264.65L604.9 265.25L606 265.55L607.9 265.75L609.8 266.35L611.6 267.35L612.8 268.75L612.7 268.85L612.2 269.15L612.7 269.35L613 269.65L614.1 270.55L614.5 270.45L614.8 271.05V271.95L614.5 272.35H613.8L613.1 272.55L612.5 272.85L611.9 273.35L611.4 274.45V274.65L611.2 274.75L610.4 274.85L610.1 274.95L609.6 275.55L609.1 275.75L608.7 276.15L608.3 276.95L608.6 277.65L607.8 277.45L607.2 277.55L606.7 277.85L606 277.95L604.7 278.05L604.2 278.15L603.6 278.65L603.1 279.55V280.25L603.2 280.95L602.9 281.75L602.3 282.35L601.7 282.65H600L598.2 283.05L597.2 283.45L595.9 284.35L592 285.95L591.4 286.45L591.2 287.05L590.9 287.25L589.4 288.85L588.9 289.65L588.8 290.65V291.15L588.6 291.35L587.3 291.45L586.8 291.65L586.3 292.05L586.2 292.85L584.7 292.75L584.4 294.85L585 299.55L584.5 300.15L583.8 300.25L582.4 300.15L581.5 300.45L580.7 301.05L580.1 301.85L579.7 302.65L579.5 303.35L579.3 304.15L579.2 306.35L579 309.75L578.9 310.65L578.5 311.15L577.5 311.55L576.7 312.35L576.3 313.05L574.7 317.15L574.6 317.95V318.05L573.8 318.15H573.5L573.4 318.05L573.2 317.75L572.9 317.55L572.5 317.35L571.8 317.15L571.5 316.95L569.8 315.15L569.4 314.85L568.3 313.55L568.1 313.15L567.6 312.15L567 311.25L566.8 310.95L566.3 310.15L565.7 308.75L564.8 307.45L564.7 307.25L564.4 306.95L564.1 306.65L563.9 306.15L563.7 305.15L563.6 304.15L563.8 303.25L564 302.65L565.2 300.85L565.5 300.15L565.6 299.75L565.9 298.15L566 297.75L566.2 296.85V296.25L565.6 294.15L565.2 293.45L565 293.25L564.5 292.95L563 292.45L562.2 292.35L561.8 292.15L561.7 291.65L561.6 290.85L561.5 288.75L561.6 287.95L561.9 287.45L562.2 287.05L563.7 285.65L564 285.25L564.2 284.95L564.3 284.55L564.2 283.35L564.3 282.55L564.7 281.05V279.75L564.1 276.45L564.7 276.25H564.9L565.9 276.35L566.7 276.25L567.4 275.95L568.7 275.05L568.8 274.85V274.65L568.6 274.25L568.3 273.95L567.9 273.35L567.6 273.05L567.3 272.45L567 271.85L566.8 270.85V270.45L567 270.05L567.4 269.95L567.7 269.65L568.2 269.35V268.45L568.4 268.25L568.5 267.85V267.65L567.9 266.05V265.65L568.1 264.85V264.45L567.9 263.95L566.6 261.65L566.1 261.35L565.7 261.15L565.3 261.05L565 261.15H564.8L564.2 261.65L563.4 261.75H562.3L561.2 261.95L560.1 262.05L559.5 261.75L558.8 261.25L554.9 256.55L554.6 256.05L554.4 255.25V254.65L554.5 254.25L554.6 253.85V253.55L554.8 253.15L555.2 252.45L555.4 252.05L555.6 251.25L555.8 250.85L556.3 250.25L556.5 249.95L556.8 249.65L557.1 248.85L557.2 248.55L557.4 248.05L557.5 247.75L557.6 247.45L557.7 247.05L557.8 246.25V245.95V245.55L557.7 245.15L557.8 244.25L557.9 243.95L558.1 243.55L558 243.15L557.8 242.65L552.4 240.95H552H551.7L551.2 240.75L549.4 239.55L548.5 239.25H548.2L547.9 239.35L547.7 239.45L547.4 239.35L547.1 239.45H546.9L546.8 239.05V238.75L546.7 238.45V238.15L546.5 237.95L546.2 237.85L546.1 237.65L546 237.45L545.7 237.35L545.5 237.15L545.4 236.85L545.3 236.65L544.7 236.55L544.5 23
43536.05L544.3 235.95L544.1 235.75L544 235.55V235.25V234.95L544.2 234.55L544.5 233.75L544.4 233.15L544.5 232.95L544.7 232.75L544.8 232.65V232.55V232.45H544.7L544.6 232.25V231.75V231.55V231.25L544.7 231.05L544.8 230.75V230.65V230.55L544.7 230.35L544.6 230.25V230.05V229.85V229.65L544.8 229.15L545 228.95L545.3 228.75L545.8 228.35L546.2 227.75L547.7 224.85L547.9 224.55L548.8 223.55L549.6 222.95L549.9 222.85L550.3 222.75L550.6 222.85L551.3 223.15L551.7 223.35L552 223.45H552.8L553.1 223.35L553.5 223.25L553.8 222.95L554 222.65L554.2 222.25V221.75L554.1 220.95L554 220.55V220.15L554.2 219.65L555.1 217.95L555.5 217.35L555.8 216.95L556.1 216.05L556.8 213.35L556.9 212.55V211.75L557 210.85V210.45L556.9 210.15L556.7 209.65L556.6 209.45L556.7 209.15L557 208.75L558.6 208.05L559.1 207.65L559.7 208.05L560.7 207.75H561L561.8 207.45L562.8 207.25L564.2 207.35L564.9 207.25L565.4 207.35L566.1 207.55L568.1 208.45L568.6 209.15L568.8 209.65L568.7 210.05L568.6 210.35L568.5 210.75V211.15L568.6 211.45L568.8 211.75L568.9 212.05V212.45L568.8 212.85L568.9 213.25L569.1 213.55L569.5 213.85L569.9 213.95H570.6L571.1 213.75L573.4 212.65L573.1 212.15L572.7 211.55L572.3 211.35L572.1 211.15L571.7 210.45L571.6 209.65V209.35L571.4 209.05L571.5 208.65L571.6 207.85L571.8 207.55L572 207.15L573 206.65L573.4 206.55L573.9 206.15H574L574.4 205.65L574.6 205.15L574.7 204.35L574.9 204.05L575.2 203.95L575.5 204.05H576.2L577.7 203.85L580.5 202.35L580.6 202.05L580.4 201.35L580.3 200.95L580.4 200.55L580.6 200.15L581.2 199.45L581.8 199.05L582.1 198.55L582.3 198.05L582.4 197.25L582.6 196.85L582.9 196.35L583 195.55V195.25L583.1 194.85V194.15V193.75L583.4 193.45H583.8L584.1 193.65L584.5 193.85L585.1 194.05H585.3L585.6 193.95L586 193.85L586.3 193.75H587.1L587.5 193.65L588.9 192.95L589.3 192.65L589.5 192.25L589.6 191.65V191.25L589.5 190.85L589.6 190.55L590.4 189.85L590.9 189.35L591.6 188.35L591.9 187.95L593.5 186.85L593.8 186.55V185.95L593.7 185.55L593.4 185.25L592.9 184.55L592.7 184.35L592 183.85L591.8 183.55L591.7 183.15L591.6 182.75L591.9 182.35L592.3 181.95L594.1 181.25L594.3 181.05V180.65L594.2 180.35L594 179.75V179.65L593.4 179.25L593.3 178.95V178.65L593.4 178.25L593.5 177.95V177.15V176.75L593.4 176.35L593.3 175.65V175.25L593.4 174.85L593.5 174.05L593.2 173.95H592.9L592.2 174.15H591.9L591.5 174.05L591.2 173.85L590.9 173.75L590.5 173.65L590.2 173.45L590.1 173.15V172.35V171.95L590 171.55L590.1 171.15L590.4 170.85L590.9 170.55L591.4 170.45L592 170.55L592.7 171.05H593L593.5 170.75L593.8 170.45L595.9 169.35L596.1 169.05V168.65V168.25V167.45L596.3 166.65L596.5 166.35L596.7 165.95L597.5 165.05L597.9 164.85H598.6L599.2 165.05L599.6 165.35L599.9 165.65L600.5 166.25L602.3 167.45L603.4 167.65L605.4 167.45L606.1 167.65L606.3 167.95L606.5 168.35V168.75V169.05L606.8 169.25H607.2L607.6 168.95L607.9 168.65L608.3 168.35L608.6 168.15L609.1 168.05L609.7 167.95L611.2 167.85L612.3 167.45ZM546.8 198.25L549 198.75L550.2 198.85L551.1 198.65L551.8 198.25L552 197.95L552.1 197.55L551.9 196.75L552 196.25L552.3 195.85L552.8 195.45L553 195.55L553.2 195.75L553.4 196.55L553.8 197.25L554 197.55L554.2 197.95L554.5 198.15L554.8 198.35L555 198.55V198.75V199.05L555.2 199.35L555.5 199.65L556.3 200.05L558.8 200.35L559.9 201.05L561.2 202.15L561.7 202.75L561.8 203.05L561.9 203.45L561.8 203.75L561.5 204.15L561.2 204.35L559.3 205.35L558.4 205.55L557.7 205.75L557.4 205.85L556.6 205.95L555.9 206.05L555.5 206.15L555.1 206.35L554.5 206.25L553.4 205.85L550.8 205.45H550.4L550 205.35L549.7 205.05L548.5 201.65L548.4 201.05L548.3 200.65L548.1 200.35L547.1 199.85L546.9 199.55L546.7 199.25L546.8 198.25Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4354<path d="M564.1 276.45L564.7 279.75V281.05L564.3 282.55L564.2 283.35L564.3 284.55L564.2 284.95L564 285.25L563.7 285.65L562.2 287.05L561.9 287.45L561.6 287.95L561.5 288.75L561.6 290.85L561.7 291.65L561.8 292.15L562.2 292.35L563 292.45L564.5 292.95L565 293.25L565.2 293.45L565.6 294.15L566.2 296.25V296.85L566 297.75L565.9 298.15L565.6 299.75L565.5 300.15L565.2 300.85L564 302.65L563.8 303.25L563.6 304.15L563.7 305.15L563.9 306.15L564.1 306.65L564.4 306.95L564.7 307.25L564.8 307.45L565.7 308.75L566.3 310.15L566.8 310.95L567 311.25L567.6 312.15L568.1 313.15L568.3 313.55L569.4 314.85L569.8 315.15L571.5 316.95L571.8 317.15L572.5 317.35L572.9 317.55L573.2 317.75L573.4 318.05L573.5 318.15H573.8L574.6 318.05L574.8 320.05L574.6 320.55L573.5 319.25L572.5 321.95L572 322.35L571.1 322.65L570.8 323.35L570.9 324.25L572.2 326.65L572.6 327.15L573.9 328.05L574.9 328.45L575.7 328.55L576 327.95L576.7 328.45L577 328.95L576.9 329.65L576.3 330.05L575.9 330.45L575.6 330.65H575.2L574.9 330.35L574.5 330.65L573.4 331.05L572.7 331.15L571.6 331.85H570L569.5 331.95L569 332.15L568 332.85L567.6 332.55L566 331.85L564.7 331.55L562.1 331.45L561.4 331.55L560.8 331.85L560.3 332.15L560.1 332.65L560.2 333.15L560.7 334.05L559.4 333.75L558.2 333.45L557.9 332.85L557.7 332.45L556.9 332.35L555.7 331.85L555.1 331.65L554.5 332.25L554.4 332.75H553.2L551.9 332.55L550.7 333.15L550 333.55L548.2 335.35L547.6 335.75L546.8 335.95L546.5 336.05L546.2 336.35L545.9 336.55L545.8 336.85L545.7 337.05L545.3 338.75L545.2 339.05L544.9 339.35L544.6 339.25L544.4 339.15L544.1 339.05L543.8 339.35L543 340.05L542.6 340.15L542 340.25L540 341.15L539 341.75L535.4 338.85L535 338.65L532.9 338.25H532.7L532.5 338.45V338.65L532.4 338.85H532.2L531.9 338.65L531.6 338.45L531.1 337.95L525 328.65L524.7 328.15L524.5 327.85L524.4 327.35L524.3 326.45L524.4 326.05V325.25V324.85L524.6 324.35L524.7 323.65V323.35L524.6 322.85L524.4 320.95L524.5 320.65L524.8 319.85V319.55V318.65L524.9 318.25L525.1 317.95L525.5 317.35V317.05L525.2 316.75L521.4 316.25L520 315.55L519.5 315.35L517.6 315.45L516.1 314.45L515.2 313.95L514 312.55L513.2 311.25L512.6 310.25V310.15L512.3 309.85L510.9 308.75L511.5 306.95L511.7 306.55L513.2 304.85L514.4 303.15L515.6 300.75L516 300.05L517.2 298.95L517.7 298.65L518.1 298.45L518.9 298.35L519.4 298.05L521.1 296.45L522.2 295.25L522.8 294.85L523.3 294.75H523.6L523.9 294.95L524.6 295.65L524.8 295.75L525.2 295.85L526.2 295.45L527.5 295.15L528.2 294.95L529.2 294.45L530.7 293.25L532.8 291.95L532.9 291.65V291.35L533 291.25H533.2L533.7 291.15L534 290.85L534.2 290.75L534.6 290.55H534.9L535.2 290.65L
4354535.7 290.95L535.9 291.05L536.6 290.95H536.8L537 291.15L537.2 291.35L537.4 291.55V291.75V292.05L537.3 292.35V292.55V292.85L537.4 293.15L537.6 293.35L537.7 293.55L538 293.75L538.5 293.95L538.8 294.15H539.2H539.6L542 293.35L545 290.95L545.3 290.55L545.5 290.15L545.6 289.85V289.35V288.95L545.4 287.75V286.85L545.3 285.25L545.2 284.45L545 283.75L544.8 283.45L544.7 283.25V282.95V282.65V282.35L544.9 282.05L545.3 281.15L545.7 280.85L546.2 280.45L546.4 280.15L546.6 279.75L546.7 279.05L546.6 278.65L546.8 277.85L547.4 276.35L548.7 274.85L549.4 274.25L549.9 273.95L550.3 274.05L550.5 274.25L550.7 274.55L551 274.75H551.4L553.7 273.45L554.7 272.45L555.1 272.15L555.5 271.95L557.9 271.25L558.3 271.35L559.8 271.85L560.1 272.05L560.3 272.25L560.4 272.65V273.05L560.5 273.35L560.7 273.75L561.8 274.75L564.1 276.45Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4355<path d="M324.6 299.95L325.2 299.45L330.7 301.25L330.9 301.65L331 302.05L330.8 302.35L330.6 302.65L330.4 303.05L330.2 303.65L330.1 304.05L330.2 304.35L330.6 304.55L331.1 304.75L331.6 304.95L332.7 305.35H334.6L335.6 305.25L336.9 305.35L337.5 305.45L338 305.65L338.6 306.15L339.4 307.25L339.5 307.55L339.6 307.95L339.5 308.35L339.6 308.65L339.9 308.95L341.8 309.05L342.8 309.35H343.4L343.5 309.15L343.6 308.85L343.8 308.65L344.4 308.15L344.6 307.85L344.8 307.55L345.1 307.35L345.4 307.25H345.8L346.3 307.35L347.9 308.55L348.2 309.05L348.4 309.45V309.85L348.6 310.15L349.6 310.45L354.9 312.65L355.6 313.25L356.1 312.75L357.4 311.75L358.4 311.25L361.4 310.65L362.2 310.55L363.9 310.25L364.5 310.05L364.9 309.75L365.3 309.25L365.5 308.85L365.6 308.55V308.25L365.8 307.95L366.5 307.05L366.6 306.75V306.35L366.4 306.05L366.2 305.75L366.1 305.35V305.05L366.2 304.65L366.4 304.25L366.6 303.95L367 303.55L368 302.95L368.3 302.75L368.6 302.45L368.9 301.85L369.2 301.45L369.5 301.25L370.8 300.75L373.5 300.35L374 300.45L374.5 300.95L375.2 301.65L375.3 301.95L375.4 302.25L375.2 302.55L374.6 302.95L374.2 303.05L373.9 303.25L373.7 303.45V303.85V304.15L373.9 305.25L374.2 305.55H374.6L375.3 305.45L376.2 304.85L377.1 303.95L377.4 303.65L378.2 303.15L379.9 303.25L381.6 301.85L381.8 301.55V301.25V300.85L382 300.15L382.1 299.75L382.4 299.45L382.5 298.75V298.35L382.4 297.95V297.55L382.3 297.15V296.85V296.45L382.2 296.25L381.9 295.55L381.7 295.25L381.6 294.95L381.5 294.75L381.4 294.15L381.3 293.95L381.1 293.65L381 293.45L380.7 293.25L38
43550.6 293.05L380.5 292.85V292.65V292.15L380.6 291.85L380.7 291.25V291.05V290.75L380.6 290.55L380.2 290.15L380.1 289.85V289.65V289.35L380.4 288.25L380.7 287.95L381.2 287.45L383 286.45L383.6 286.25L383.9 286.05L384.4 285.35L384.6 284.95L385.2 284.45L386.4 283.65L386.7 283.15L386.9 282.75V282.45L387 282.15L387.2 281.85L387.4 281.55L387.8 281.05L388 280.75L388.7 280.05L389.2 279.95H390.1L390.6 280.15L390.8 280.05H391L391.1 279.75V279.55L391.2 279.35L391.3 279.05L391.5 278.85L391.7 278.65L393 277.45L394.9 276.25L396.1 275.85L396.2 275.55L396.3 275.35L396.5 274.95L396.6 274.45L396.5 274.05L396.4 273.65L396.5 273.35L396.9 273.15L400.1 273.05L400.8 272.75L401.9 272.65L404.2 274.35L405.5 274.95H406.4L406.9 274.85H408.1L408.5 275.05L408.6 275.45L408.7 276.25V276.65L408.8 277.45L409 277.95L409.5 278.45L410.3 279.05L410.9 279.25L411.4 279.35L412.2 279.45L412.7 279.55L414.4 280.35L414.9 280.65L415.2 281.05L415.3 281.35L416.1 281.85L416.8 282.05L418.2 283.25L418.6 283.65L418.8 284.15L419.1 284.55L419.4 284.85L419.8 284.95H420.2L420.7 285.15L421.2 285.55L421.8 285.85L422.9 286.75L424 287.95L424.8 289.05L425.2 289.55L425.6 289.75L427.4 290.65L428.4 290.95L429 291.05L431.6 292.15L432 292.25L432.6 292.15L432.7 290.25L432.8 289.85L433.1 289.55L433.4 289.45H434.3L435.1 289.55L436.6 290.05L448.1 290.55L449.4 290.35L450.2 289.95L450.6 289.15L450.9 288.85L451.5 288.35L452.1 288.25L452.7 288.15L453.2 288.25L453.5 288.45L454.2 288.65L454.6 288.55L454.8 288.45H455.2L456.2 288.85L457 288.95L459.1 289.55L459.6 289.45L460.1 289.35L460.4 289.15L460.5 288.85L460.7 287.75L460.9 287.35L461.3 287.05L461.8 286.95L462.2 287.05L462.4 287.35L462.6 287.65V288.05L462.7 288.35L462.9 288.75L463.2 288.85L464.5 289.25L465.2 289.35H465.7L466.2 289.25L467.2 288.85L468.2 288.25L468.7 287.55L468.9 287.25L469 286.95L469.1 286.55L469.2 286.15L469.5 285.85L470.2 285.45L471.1 285.35H471.7L472.2 285.55L472.9 285.85L473.7 286.15L474.4 286.25L477.3 286.45L478.6 286.85H479.2L479.6 286.65L480.2 286.05L481.3 285.35H481.7L482 285.55L482.3 285.85L483.2 287.15L483.8 287.85L484.1 288.05L484.3 287.85L484.4 287.55V286.95L484.7 286.65L485.5 286.05L486.1 285.75L486.7 285.65H487.2L487.7 285.75L488.1 285.85L488.4 286.15L488.8 286.45H489L489.2 286.35L489.3 286.25L489.4 286.15L489.6 286.05H489.7V285.95L489.8 285.75L490.2 285.45L490.4 285.25L491.6 284.65L491.8 284.55L491.9 284.45H492L492.6 284.05L493.4 283.35L493.5 283.15L494 282.75L495.5 283.65L497.3 284.45L498 284.15L498.6 283.95L499.2 283.85L500.4 283.95L501 284.15L501.4 284.35L501.5 284.45V284.65L501.3 285.25L501.4 285.95L501.5 286.35V287.05L501.4 287.45V287.85L501.5 288.15L501.6 288.45L502 288.85L504.8 289.65L504.9 289.95L504.8 290.65L504.9 291.05V291.45L505.1 291.85L505.2 292.55V293.35V293.85L505.3 294.35L505.5 294.85L506.8 295.65L507.1 296.15L507.2 296.55V296.85L507.1 297.15V297.55L507 297.85L506.9 298.15L506.7 298.45L506.5 298.55L506.4 298.75V298.95L506.6 299.65L506.7 300.05L506.6 300.45L504.1 303.75L503.7 304.45L503.5 304.75L502.9 305.35L502.4 306.05L505.7 307.65L510 308.85L510.4 308.95L510.9 308.75L512.3 309.85L512.6 310.15V310.25L513.2 311.25L514 312.55L515.2 313.95L516.1 314.45L517.6 315.45L519.5 315.35L520 315.55L521.4 316.25L525.2 316.75L525.5 317.05V317.35L525.1 317.95L524.9 318.25L524.8 318.65V319.55V319.85L524.5 320.65L524.4 320.95L524.6 322.85L524.7 323.35V323.65L524.6 324.35L524.4 324.85V325.25V326.05L524.3 326.45L524.4 327.35L524.5 327.85L524.7 328.15L525 328.65L531.1 337.95L531.6 338.45L531.9 338.65L532.2 338.85H532.4L532.5 338.65V338.45L532.7 338.25H532.9L535 338.65L535.4 338.85L539 341.75L538.9 342.35L538.6 342.75L537.8 342.65L537.5 343.05L537.2 343.95L536.7 345.05L535.5 346.75L533.1 349.15L532.1 350.55L531.4 352.65L531.1 354.45L530.6 355.75L530.4 357.15L529.2 360.25L528.3 361.65V362.35L528.4 362.75L528.6 363.15V363.55V364.05L528.4 364.35L528.1 364.45H527.2L526.9 364.65L526.4 365.15L525 366.05L524.4 366.75L524 368.85L523.5 369.45L522.9 369.95L522.3 370.65L522.1 371.05L521.9 372.05L521.7 372.45L521.3 372.65L520.9 372.75L520.5 372.95L520.1 373.85L519.4 374.35L518.6 374.75L517.8 374.85L516.3 374.35L515.2 373.15L514.2 371.85L513.1 370.65L511.7 369.75L510.9 369.45L509.9 369.35L509.2 369.45L507.9 370.15L507.1 370.35L506.7 370.25L505.6 369.75L505.1 369.65L501.9 370.25L501.2 370.65L500.4 372.55L499.6 374.75L498.6 375.85L498.4 376.05L497.9 376.45L496.9 376.95L495.5 377.15L494.8 376.85L494 377.25L492.9 376.45L492.1 375.85L491.4 375.55L491 375.65L490.7 376.05L490.3 376.25L489.9 375.95L488.8 374.45L487.6 373.65H486.9L484.7 374.35L481.1 373.75L479 373.85L477.8 373.95L474.9 373.45L470.8 373.95L470.2 374.35L469.7 374.95L468.9 375.55L467.4 376.45H464.9L463.3 375.15L462.5 375.25L461.9 375.55L460.5 374.85L459.9 374.05L458.6 374.15L457.3 374.25L456.7 374.75L454.6 374.95L452.8 374.45L451.7 374.05L450.3 373.55L448.2 374.05L445.3 374.85L441.5 373.7
43555L440.5 374.05L439.3 374.95L435.8 375.45L434.7 375.55L427.5 375.05L426.8 375.25L426.3 375.65L425.1 377.65L424.9 378.05L424.3 378.65L423.9 379.45L423.7 380.25L422.6 382.25L420 382.55L418.9 384.75L417.5 385.65L417.1 385.85L416.3 386.25L414.6 386.65L412.9 386.55L408.2 385.95H407.3L406.9 386.05L406.5 386.45L403.6 388.45L400.8 388.65L399 389.85L398.5 390.05L397 390.15L396.3 390.45L395.8 390.75L395.3 391.45L394.2 393.45V393.85L393.5 395.75L393.1 396.45L392.9 396.65L392.6 396.95L392.3 397.15L391.6 397.45L391.7 397.85L391.8 398.25L391.4 398.95L390.1 401.45L389.9 401.95L389.7 404.25H388.9L388.6 403.15L387.9 402.75L387 402.35H386.2L386 402.85L385.7 403.25L385.5 403.85V404.55L385.8 405.25L385.6 405.65L385.7 406.35L385.9 406.85L386 407.25L385.9 407.85L385.6 408.15L385.4 408.45L384.5 408.75L380.5 410.25L379.9 410.65L378.6 410.95L377.9 409.45L376.2 408.55L375.5 407.95L374.6 408.35L373.7 408.05L372.9 407.55L371.2 407.05L370.6 406.45L369.7 405.25L367.1 402.65L366.3 402.15H365.4L363.6 402.45L361.5 401.85L360.4 400.45L359.6 398.75L358.7 397.25L356.5 396.05L356.3 395.35L356.2 394.55L355.9 393.65L355.5 392.75L354.1 391.15L353.2 388.95L352.6 387.45L351.7 385.75L350.8 384.95L350.4 384.55L350.9 384.35L351.3 384.45L352.6 385.55L352.9 386.05L352.7 386.45L353 386.95L353.6 387.65L354.1 387.55L354.4 387.25L354.9 386.55L355.7 385.55H355.4L354.6 385.85L353.9 385.75L353.6 384.95L353.8 383.45L353.5 382.45L351.5 380.65L351.1 380.35L348.4 380.25L347.6 380.05L347 379.35L346.5 377.35L346.1 376.45L345.5 375.45L345.3 374.55L345.5 373.65L346.2 372.85L347 372.45L348.5 371.85L349 371.45L349.4 370.25L349.1 368.15L349.3 366.95L350.7 365.75L353.6 365.95L353.9 366.05L355.1 364.45L354.3 365.05L353.3 365.45H352.3L351.5 364.85L349.8 365.45L349.3 365.85L349 366.05L348.7 367.15L349 370.15L348.7 370.75H347.3L346.2 369.25L344.8 365.95L343.9 364.35L342.8 363.15L332.9 355.95L331.8 355.35L330.9 355.15L330.2 354.85L328.5 353.45L327.7 353.05L326.9 352.65L326.2 351.45L325.9 350.15L326.2 349.55L326.7 349.15L328.1 347.05L328.5 346.15L326.5 348.45L325.4 349.25H324.1V349.55L325 350.95L325.4 351.75L325.5 352.35L324.9 352.45L321.4 350.65L320.1 350.25L318.5 349.75L317.4 350.15L318.6 350.35L319.1 350.65L309.3 350.85L308.7 351.15L307.9 351.85L307.2 351.95L306.5 351.65L305.8 351.35L305.2 349.05L305 347.95L305.3 347.15L304.9 345.45L304.6 341.45L303.9 339.85L304 339.25L303.9 338.15L303.6 336.95L303.3 335.95L303.1 335.65L302.4 335.05L302.1 334.75L301.8 334.25L301.7 334.15V333.95L301.6 333.55L301.4 332.85H301.3H301.2V332.25L301.3 332.05L301.7 331.55L301.8 331.35L301.9 331.05V330.85L301.8 330.55L302.2 330.25L303.2 329.15L303.5 328.75L303.7 327.95L304.1 325.45L304.6 323.95L305.3 322.95L309.1 319.75L310.2 317.75L310.6 316.05L311.5 313.65L311.7 312.75V312.25L311.6 311.75V311.35L311.8 311.05L313.1 310.75L313.5 310.45L314.1 310.55L314.6 310.65L315.1 310.75L315.6 310.45L316.1 310.35L316.4 310.15L316.8 309.55L317.2 308.45L317.6 308.05L318.3 308.15L320.6 309.15L321.6 308.95L321.9 307.75L322.3 307.15L322.7 305.55L323.4 303.95L324 302.25L324.3 301.55L324.7 300.05L324.6 299.95Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4356<path d="M329.5 49.0502L329.3 46.9502L329.2 46.3502L328.8 45.8502L327.9 44.9502L327.5 44.7502L326.8 44.8502L326.4 44.7502L326.1 44.6502L325.7 44.3502L325.6 44.1502L324.8 42.9502H324.5L324.4 43.0502V44.0502V44.2502L324.3 44.3502V44.4502L324.1 44.5502L323.9 44.6502L323.5 44.4502L323.2 43.8502L323 43.2502L323.1 42.6502L323.4 42.2502L323.7 42.1502L324 41.9502L324.3 41.5502L324.4 41.0502L324.5 40.6502L324.6 40.3502L324.8 40.0502L325 39.9502L325.3 39.8502H325.7H326.1L327.5 39.2502L327.9 39.0502L329.4 37.6502L329.5 37.1502L329.3 36.5502L328.7 35.5502L328.3 34.9502L328 34.6502H327.7L327.4 34.8502L327.2 35.2502V35.5502L327 35.8502L326.7 36.0502L326.3 36.2502L325.5 36.6502L324.9 36.9502L324.5 36.8502L324.2 36.6502L324 36.3502L323.7 35.9502L323.6 35.5502L323.7 34.9502L323.9 34.1502L324 33.8502V33.5502L323.7 33.3502L323.4 33.2502L322.7 32.9502L322.3 32.3502L322 32.2502H321.7L320.8 31.4502L320.5 31.1502L320.3 30.7502L320 30.2502L319.7 27.8502L319.4 27.5502L319.1 27.3502L318.7 27.2502L318.2 26.6502L317.9 26.2502L317.7 25.6502L317.5 25.0502V24.5502V24.0502V23.6502L317.3 23.3502L317.1 23.1502H316.4L315.8 22.9502L315.7 22.6502L315.6 22.3502L315.7 21.2502L315.8 20.8502L316.1 20.5502L316.6 20.4502H317L317.4 20.5502H317.7H318L318.3 20.3502L318.7 19.9502L319.3 19.0502L320.5 17.9502L320.6 17.8502L320.7 17.4502L320.8 17.7502H321L321.2 16.8502L321.4 15.9502L321.6 15.1502L322.2 14.7502L322.5 13.4502L324.8 12.9502L328.8 12.7502L329.4 12.9502L331.8 12.7502L333.5 13.2502L334.5 13.3502L336.8 12.1502L338.8 12.3502L340.9 13.1502L342.4 13.9502L342.8 13.6502L343.2 13.5502H344.3L344.2 13.2502L344.1 12.6502L344 
435612.3502L344.6 12.4502L345.5 13.0502L346.1 13.1502L348.2 12.7502H350.3L350.8 12.6502L351.9 12.1502L352.9 11.9502L353.1 11.6502L353.4 11.3502L354 11.2502L355.3 12.2502L355.8 12.3502L358.9 12.7502L359.5 12.3502L360.2 12.7502L360.8 12.4502L361.4 11.9502L362 11.6502H366.7L366.9 11.1502L366.6 10.7502L366.5 10.2502L367 9.75019L366.9 9.55019L366.8 9.1502L366.7 8.9502H368L368.5 8.75019L368.7 8.05019L368.9 7.4502L369.6 7.55019L370.9 8.1502L371.8 8.9502L374 11.5502L374.7 12.7502H375L375.2 11.9502L375.5 12.2502L376 13.1502L378.1 13.5502L386.2 13.1502L387.5 13.5502L387.6 14.2502L387.1 15.1502L386.4 15.8502L386.6 16.2502L387.1 15.9502L387.9 15.6502L388.3 15.4502L388.6 15.0502L388.7 14.7502L388.9 14.4502L389.5 14.3502L391.2 14.4502L391.9 14.7502L394.8 16.6502L396.2 17.1502L399.7 17.3502L400.6 17.6502L401.1 18.3502L401.5 18.0502L404.4 18.8502L404.7 18.7502L405.3 18.2502L405.7 18.1502L406.2 18.2502L407.1 18.7502L410 19.3502L413.3 20.9502L414.1 21.1502L423 21.9502V22.3502V23.0502L422.7 23.7502L422.2 24.6502L422.1 25.0502V25.3502L422.3 25.5502L422.7 26.5502L422.8 27.3502L422.7 27.9502L422.6 28.3502L422.4 28.7502L422.1 28.9502L421.7 29.0502L421.5 28.8502L421.3 28.2502L421 28.0502L420.3 27.8502H419.8H419.4L418.8 28.2502L418.5 28.5502L418.4 28.8502L418.2 29.0502L417.8 29.2502L416.9 29.3502H416.5L416.2 29.2502H415.8L415.3 29.3502L414.8 29.6502L414.6 29.9502L414.5 30.3502L414.6 31.1502L414.5 31.5502V31.8502V32.3502L414.4 32.8502L414.1 33.4502L413.8 33.6502H413.4L412.6 33.5502L412.2 33.6502L411.8 33.7502L410.6 33.9502L410.2 33.8502L409 31.9502L408.2 31.3502L407.9 31.1502H407.5H407.1L404.9 32.3502L404.3 32.9502L403 33.6502L401.5 34.0502L400.8 34.4502L400.4 34.7502L400 35.5502L399.9 35.9502L399.8 36.3502L399.5 37.2502L399.2 37.7502L398.6 38.3502H398.1L397.7 38.2502L397.3 38.0502H396.9L394.8 39.1502L390.9 39.5502L388.8 39.2502L388.3 39.3502L387.9 39.6502L387.6 40.7502L387.3 41.1502L386.9 41.3502L386.4 41.4502H384.2L384 41.7502L383.9 42.1502L383.7 42.4502L383.5 42.7502H383.2H382.5L381.5 43.1502H381.1L380.7 43.0502L380.3 42.8502L380 42.5502L379.1 42.4502H378.5L377.6 42.2502L376.5 41.6502L375.9 41.5502L374.9 41.6502L374.3 41.8502L373.9 42.0502L373.7 42.4502L373.5 42.7502L373.3 43.1502L373 43.4502L372.8 43.7502L372.7 44.0502V44.2502V44.3502L372.6 44.6502L372.4 44.9502L372.3 45.3502L371.9 45.7502L371.5 45.8502L370.8 45.9502L369.2 45.8502L368.8 45.7502L368.5 45.5502L367.4 45.1502L367.3 44.8502L366.8 44.7502L366.3 44.3502L365.8 43.9502L364.8 43.3502L364.6 43.0502L364.4 42.6502L364.3 42.2502L364.1 41.4502L363.9 41.1502L363.5 40.8502L362.3 41.1502H361.8L359.8 40.7502L359.4 40.8502L359.3 41.1502L359.2 41.5502L359.1 42.0502L358.8 42.3502L358 42.7502L357.5 42.8502L357 42.6502L355.9 42.2502L354.9 42.0502L354.4 42.1502L354.1 42.4502L354 43.2502L353.8 43.4502L353.5 43.5502L352.7 43.3502L351 42.4502H350.4L349.6 42.2502L349.3 41.9502L348.9 41.6502L348.2 41.4502L347.1 41.9502L346.9 42.3502L346.7 42.7502L346.5 43.0502L346.3 43.4502L346.2 43.7502V44.0502L346.1 44.2502L345.8 44.4502L344.9 44.7502H343.8L343.6 44.9502L343.5 45.2502L343.7 45.5502L344.1 45.8502L344.8 46.0502L345 46.3502V46.6502L344.8 47.0502L342.7 48.1502L342.1 48.2502L340.7 48.8502L340.3 48.9502L338.4 48.7502L338.1 48.5502L337.8 48.4502L337.3 48.3502H335.4L334.6 48.4502L333.9 48.7502L333.5 48.9502L333.2 49.3502L332.9 49.6502L332.6 49.9502L332.1 50.2502L331.8 50.1502L331.6 49.6502L330.8 49.2502L329.5 49.0502Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4357<path d="M478.1 24.3498V24.7498V26.3498L477.9 26.8498L477.7 27.2498L475.9 28.1498L475.6 28.0498L474.7 27.7498L473.6 27.8498L471.1 27.7498L470.6 27.9498L470.1 28.3498L466.7 30.8498L466.3 31.4498L466.2 31.9498L466.3 32.2498L466.4 32.7498V33.1498L466.3 33.5498V33.9498L466.5 34.2498L466.7 34.6498L467 35.8498V36.5498L465.9 36.6498L464.7 36.4498L464 36.5498L463.2 36.3498L462.1 35.8498L461 35.5498L459.8 35.3498L459.4 35.1498L458.8 34.6498L458.4 34.5498H458L457.4 34.9498L456.6 35.8498L455.6 37.1498L455 37.7498L454.6 38.1498L453.8 38.6498L453.2 39.1498L452.8 39.3498H452.5L451.3 39.2498L450.9 39.3498L450.6 39.4498L450.3 39.6498V40.1498V40.6498L450.1 41.1498L449.6 41.6498L449.2 41.9498L448.6 42.1498L448 42.4498L447.1 43.4498L446.4 43.8498L446 44.0498L445.7 44.2498V44.3498L445.3 45.0498L444.4 47.6498V48.0498V48.4498L444.5 48.8498L444.8 49.1498L445.1 49.4498L445.5 49.5498H445.9L446.7 49.3498L447.7 48.7498L448 48.4498L448.4 47.7498L448.6 47.4498L448.9 47.2498L449.2 47.1498L449.6 47.3498L449.9 47.5498L450.2 47.9498L450.4 48.2498L450.5 48.6498L450.2 49.0498L449 49.8498L447.9 49.9498L447.8 50.1498V50.4498L447.5 50.6498L447.4 50.9498L447.6 51.5498V51.9498L447.8 52.2498L448 52.5498H448.4L448.7 52.3498L449 51.7498L449.3 51.3498L449.8 51.1498H450.2L450.6 51.3498L450.7 51.7498L450.8 52.1498L450.7 52.7498L450.8 53.1498L451.1 53.7498L451.2 54.0498V54.4498V54.7498L451 55.1498L450.6 55.3498H449.2L448.5 55.5498L447.1 56.8498L446.6 57.0498L445.8 57.3498L445.2 57.4498L443.8 57.0498L443.9 56.1498L443.8 55.7498V54.4498L443.7 54.1498L443.6 54.0498L443.3 54.2498L443 54.4498L441.9 56.9498L440.3 57.3498L439.9 56.6498L439.7 56.3498L439.3 56.1498L438.9 55.9498L437.8 55.8498L437.4 55.7498L436.6 55.0498L436.3 54.6498L436.2 54.3498L436.3 54.0498L436.6 53.8498L437.3 53.6498H437.7L438 53.4498L438.3 53.1498L438.4 52.8498L438.3 52.3498L438.1 52.1498L437.7 51.9498L436.7 52.2498L436.3 52.4498L435.8 52.9498L435.6 53.0498L435.3 52.9498L435 52.8498L434.8 52.5498L434.7 52.2498V52.0498V51.7498L434.6 51.3498V50.9498L434.5 50.5498V50.1498L434.4 49.7498L434.2 48.9498L434.1 48.2498V47.8498L434.2 47.4498L434.1 47.0498L433.5 46.6498L429.4 45.1498L428.8 44.7498L428.6 44.3498L428.5 44.2498L428.4 43.8498L427.6 42.4498L427.2 42.1498L426.2 41.6498L425.7 41.5498H425.1L424.3 41.9498L423.9 42.1498H423.3L422.8 42.2498L421.4 42.9498L420.9 43.0498L419.5 42.9498L417.9 43.2498H415.9L415.2 43.4498H414.4L414.1 42.0498L413.9 41.6498L413.1 40.8498L412.9 40.3498L412.6 39.9498L411 39.0498L410.6 38.7498L410.3 38.3498L410.1 37.4498L410 36.8498L410.2 33.8498L410.6 33.9498L411.8 33.7498L412.2 33.6498L412.6 33.5498L413.4 33.6498H4
435713.8L414.1 33.4498L414.4 32.8498L414.5 32.3498V31.8498V31.5498L414.6 31.1498L414.5 30.3498L414.6 29.9498L414.8 29.6498L415.3 29.3498L415.8 29.2498H416.2L416.5 29.3498H416.9L417.8 29.2498L418.2 29.0498L418.4 28.8498L418.5 28.5498L418.8 28.2498L419.4 27.8498H419.8H420.3L421 28.0498L421.3 28.2498L421.5 28.8498L421.7 29.0498L422.1 28.9498L422.4 28.7498L422.6 28.3498L422.7 27.9498L422.8 27.3498L422.7 26.5498L422.3 25.5498L422.1 25.3498V25.0498L422.2 24.6498L422.7 23.7498L423 23.0498V22.3498V21.9498H423.1L423.2 22.0498L424.3 23.0498L425.1 22.2498L426.3 22.0498L427.4 22.3498L428.2 23.0498H428.4L428.9 22.3498L429.2 22.1498L431.1 22.3498L436.1 21.8498L437.3 20.9498L439.8 20.1498L440.8 20.0498H442.6L442.8 19.8498V19.6498L442.9 19.3498L443.2 19.2498L443.5 19.3498L444.5 20.0498L444.7 19.7498L444.9 19.6498H445.1H445.3L445.2 19.5498L444.8 19.2498V18.8498L446.2 17.8498L446.9 17.5498L447.5 17.7498L448 17.4498H448.2L448.4 17.7498L449.5 17.0498L450.8 16.7498L452 16.9498L453.1 17.7498L451.3 18.5498L450.6 19.0498L450 19.6498L450.5 20.1498L450.7 20.3498L450.9 20.4498H450.7H450.6V20.5498V20.7498L451 20.8498L451.4 20.7498L452 20.4498L452.3 20.1498L452.8 19.3498L453 19.2498L453.3 19.3498L453.7 19.8498L454.1 20.0498L454.2 19.7498L454.1 19.2498L453.9 18.7498L453.6 18.5498V18.1498L454.2 18.2498L454.4 18.3498L454.7 18.5498L454.8 18.2498L455 18.1498L454.7 17.7498L455.2 17.5498L456.3 17.4498L456.8 17.1498L457.2 16.7498L457.7 16.5498L460.7 15.5498L461.8 15.6498L461.7 16.6498H462.4L462.9 17.0498L463.4 17.5498L463.7 17.7498L466.5 18.2498L466.7 18.4498L466.9 18.7498V19.0498L466.8 19.5498L466.7 19.6498L466.4 19.5498L466.1 19.6498L465.9 19.4498L465.5 19.2498L465.2 19.1498L465 19.4498L464.9 19.7498L464.5 20.0498L463.9 20.4498L464.7 20.5498L465.1 21.2498L465.5 21.4498L466.1 20.4498L466.5 21.0498L467.1 21.1498L468.3 20.7498L468.9 20.8498L470.8 21.5498L473.3 21.9498L475.1 22.6498L475.7 22.7498L476.1 22.9498L477 24.0498L478.1 24.3498ZM473.3 31.1498L473.4 31.7498L472.1 32.3498L471.9 32.0498V29.8498L472.6 30.1498L473.3 31.1498Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4358<g id="canarias">
4359<path d="M25.4 432.95L26.2 433.05L26.9 433.45L27.4 434.05L27.6 434.65L27.4 435.35L25.7 437.95L25.6 438.15L25.7 438.45V438.75L25.5 439.05L25.3 439.15L25.1 439.25L24.9 439.35V439.65L24.7 439.85L24.4 440.15L24.1 440.45L24 440.85L23.9 441.95L23.5 442.45H22.9L22.1 441.95L21.5 441.35L21.1 440.75L20.6 440.25L17.6 439.85L16.8 439.45L16.2 438.85L16 437.25L17 436.75L18.8 436.85L20.4 437.25L21 436.85L22.6 435.35L22.9 434.95V434.45L23.1 434.25L24 433.85L25.4 432.95ZM50.6 416.65L52.6 416.15L54.5 416.75L56.2 417.85L58.4 419.45L58.9 420.55L59.1 421.55L58.5 422.45L57.7 422.95L56.5 424.05L55.6 424.75L54.7 424.95L53.7 425.25L52.7 425.05L50.6 423.75L49.2 421.65V420.05L49.4 418.35L50.6 416.65ZM86.2 419.25L85.7 420.05L85.1 420.85L82.4 423.55L81.8 424.45L81.5 425.05L80.1 424.75L77.9 425.65L76.9 425.95L76.2 426.25L75.5 426.15L75.1 425.55L75 425.05L75.1 424.55L74.7 424.35L74.4 424.15L74.3 423.75L74.2 422.85L74.1 422.55L73.5 421.85L72 420.25L71.6 419.55L71.4 418.55L70.8 417.85L70.1 417.15L69.7 416.55L69.4 414.55L69.3 414.15L68.7 413.25L68.2 412.15L66.9 410.75L66.5 409.85L67.5 409.25L69.7 408.25L70.5 408.55L71.4 409.25L71.9 409.35H72.4L73.5 409.05L74.4 408.55L75.7 408.15L76.7 407.75L77.5 407.95L79.1 407.85L79.9 407.75L80.7 407.15L81.7 406.95L82.2 406.85L83 406.75L83.8 406.05L85.7 404.35L86.5 403.65L86.8 403.25L86.9 402.55L87 402.35L87.8 401.85L88.1 401.65L88.8 401.25L89.7 401.05L90.5 400.75L90.7 399.95L91.4 400.15L95.3 400.25L97.8 399.35L98.7 399.95L98.4 401.25L97.1 402.05L94.2 403.75L93.5 405.05L92.6 405.85L91.5 406.95L90.4 407.95L89.7 408.25L89.1 408.65L88.7 409.55V410.55L88.9 411.25L89 411.75L88.9 412.25L88.5 412.55L88.2 412.95L87.9 414.05L86.6 416.45L86.2 418.45V419.25ZM32.6 388.55L32.5 389.45L32.8 390.55L33.2 391.35L33.9 391.75L34 392.65L32.8 394.05L32.2 395.05L32.5 395.95L33 397.65L32.7 398.45L32.4 399.65L31.5 400.95L30.7 402.75L29.9 404.35L29.5 405.25H29.3L29.1 404.85L28.2 404.35L27.9 403.45L27.6 401.25L27.1 400.65L26.8 399.95L26 398.75L25.7 397.75L24.2 395.35L24 394.15L23.9 393.45L23.7 392.75L23 392.25L22.6 391.75L22.8 390.35L23.9 388.85L25.3 387.55L26.3 386.85L27.1 387.35L28.1 387.55L29.1 387.75L30.7 387.15L31.5 387.45L32.2 388.05L32.6 388.55ZM128.1 424.75L128.4 425.05L129 425.45L129.2 425.75L129.1 426.45L128.8 427.25L128.7 428.05L129.2 428.85V429.15L128.8 429.35L128.5 429.75L128.1 430.75L128.4 431.35L128.7 432.25L128.6 432.95L128 433.15L127.5 433.55L126.2 435.15L125.6 435.65L122.8 436.55L122.3 436.85H122.1L121 438.05L120.6 438.25L120.1 438.05L119.8 437.75L119.4 437.55L117.6 437.45L116.9 437.25L116.2 436.95L114 435.05L113.7 434.65L113.5 434.35L112.7 433.85L112.3 433.55L112.1 433.25L111 430.65L110.7 429.75L110.9 428.85L110.8 428.35L110.7 427.55V426.85L110.9 426.35L111.3 425.95L112.9 425.05L113.6 424.55L114.6 423.55L115.3 422.45L115.1 421.35L115.5 420.85L115.7 420.05L115.6 419.15L115.4 418.45H115.8H116.3L116.7 418.55L117 418.75L117.6 418.65L119.8 419.35H122.8L125.4 420.05L126.3 419.65L126.2 418.15L127.4 417.95L127.5 418.05L127.7 418.55V418.95L127.4 419.15L127.1 419.65V420.95L127.4 422.75L127.5 423.05L127.6 423.55L127.8 424.15L128.1 424.75ZM185.4 392.35L186.9 391.75L188.4 391.55L189.8 391.95L190.9 393.35L191.4 394.85L191.5 396.95L191.2 400.85L191 401.85L190.2 403.55L190.1 404.15L190 405.75L190.1 406.25L190.2 406.55L190.6 407.15V407.45L190.4 407.95L189.7 408.65L189.6 408.85L189.5 409.25V409.75L189.3 410.15L188.7 411.15L188.3 411.85L187.9 413.45L187 414.95L185.6 415.75L181.4 416.45L179.5 416.95L178.2 417.95L176.6 418.35L175.7 418.75L174.4 420.25L173.3 421.75L172.1 423.05L170.4 423.85H169.4L167.8 423.05L167 422.85L164.3 423.05L163.8 422.85L164 422.75L164.1 422.15L164.2 421.65V421.45L164.5 421.35L165.9 421.65L166.7 421.55L168.2 421.05L170.5 419.95L173.4 418.05L174.6 416.95L175.2 416.15L175.7 415.35L175.9 414.45L176.1 412.25L176.5 411.45L177.4 410.05L178.4 406.75L178.6 406.25L179.1 405.85L180.3 403.85L181.2 401.55L182.8 399.25L183.3 396.95L183.9 395.55L184.1 393.85L184.3 393.25L184.7 392.75L185.4 392.35ZM205.2 369.05L205.9 368.95L206.7 369.45L207.8 370.55L207.4 371.45L207.3 372.25L207 372.85L206.2 373.35L206 374.05L206.1 374.75L206.4 375.35V376.25V376.55L206 377.15L205.9 377.55V377.85V378.65V379.05L205.2 380.25L204.1 381.25L202.8 381.95L200.9 382.45L200.5 382.85L200.1 383.25L199.7 383.45L199 383.55L198.1 383.75L197.4 383.85L196 384.15L195 384.95L194.1 386.15L193.4 387.55H193.1L192.7 386.95L191.9 386.65H190L189.7 386.45L189.4 385.85L189.3 385.35L189.4 385.05L189.9 384.95L190.2 384.55L190.6 383.85L190.8 383.05L191 380.75L191.1 380.15L192.4 377.95L193.1 377.15L193.7 376.75L194.4 376.45L195.1 376.25H196.1L196.8 375.95L198.2 374.85L199 374.35L199.7 374.05L200.4 373.95H202.4L203 373.75L203.4 373.25L203.9 372.15L204.4 370.55L204.7 369.75L205.2 369.05ZM205 367.05L205.4 367.85L204.8 368.95L203.8 369.75L202.8 369.55V369.25L203.5 368.55L203.8 367.55L204.2 366.75L205 367.05Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4360</g>
4361<path d="M667 275.25L668.6 274.55L669.3 275.35L669.2 276.55L668.3 276.75H666.9L664.9 275.45L664.2 275.05L663.5 275.65L663.1 275.95L662.4 276.85L661.8 277.25L661.2 277.05L661.4 276.05L661.2 275.65V275.15L661.4 274.75L661.6 274.25V273.85L661.4 273.65L661.2 273.45L661.4 273.15L661.9 272.55L662.2 272.85L662.6 272.65L663 272.05L663.2 271.25H663.3H663.4V271.45V271.55L665.4 274.35L667 275.25ZM670.2 253.75L670 254.25L670.3 255.25L670.9 257.05H670.2L669.7 257.45L669.4 258.15L669.2 258.95L669 259.25L667.6 260.25L666.3 262.15L665.8 262.55L664.7 263.15L664.3 263.75L664.1 263.55L663.9 263.25L663.7 263.05L663.1 263.95L662.5 264.25L662.1 265.95L662 267.25H660.7L660.3 266.25L659.6 265.65L659 265.95H658.7L658.6 265.85L658.2 265.95L657.9 265.25L657.2 265.05L656.5 265.25L656.2 265.95L655 265.05L654.5 264.45L654.3 263.55L654.8 262.35L654.9 261.55L654.6 260.95L654.9 260.55L655.3 260.35L655.8 260.25L656.2 260.55L656.5 260.25L656.9 260.15L657.9 260.25L657.5 258.05L657.6 256.75L658 256.25L658.6 256.05L659.2 255.55L660.2 254.45H660.4L660.8 254.85L661.6 254.15L662 254.45L662.8 253.85L663.9 253.25L665.1 252.95L665.9 253.05L666.3 252.55L666.9 252.35H667.4L668.1 252.95L668.4 253.05H669.1L669.6 253.15L669.9 253.45L670.2 253.75ZM740.9 217.55L742 217.85L744.3 219.25L745.7 219.35L745.5 219.85V220.35L745.6 220.75L745.7 221.15L745.5 221.45L745.3 221.65L745.2 221.95L745.4 222.65L744.9 224.05L744.4 224.85L743.9 225.15L743.2 225.35L742.8 225.95L
4361742.6 226.85L742.9 227.65L741.3 229.15L739.6 231.15L738.3 233.75L737.9 236.65L737.5 236.35L737.4 236.25L736.7 238.45L735.5 239.75L731.8 242.05L730.2 243.45L729.9 243.95L729.7 244.15L729.4 244.35L729 244.55L728.8 244.35L727.7 242.65L727.5 242.45L726.8 242.15L726.6 241.95L726.4 241.45L726.3 240.95L726.2 240.45L725.9 240.25L725.5 240.15L724.9 239.55L724.5 239.45L724 239.55L723.4 239.75L723 239.85L719.5 239.55L717.9 238.95L716.9 237.65L716.5 234.85L715.9 234.45L716 233.55L716.6 232.35L716.2 231.25L715 230.15L713.7 229.35L712.6 229.05L711.7 229.35L709.1 230.75L708.6 231.35L708.1 232.85L707.1 233.85L706 234.05L705.3 232.65L705.2 232.55L705.1 232.15L705.2 231.85L705.6 231.55L704.5 230.45L704.1 230.95L703.8 231.15L703.6 230.95L703.3 230.45L702.2 231.15L702 231.25L701.6 230.95L701.2 229.95L700.5 229.35L700.3 228.45V227.35L700.6 226.55L703.5 224.75L704.3 224.55L705.1 224.05L707 221.95L707.6 221.65L708.5 221.55L709.1 221.25L709.8 220.75L711.1 219.35L711.3 219.05L711.5 218.45L711.6 218.25H711.8L712.3 218.35L712.5 218.25L713.4 217.25L713.6 217.05L713.8 216.95L714.6 215.95L714.8 215.75L715.1 215.65L716.3 215.05L716.9 214.55L717.4 214.05L717.8 213.75L718.4 213.55L718.6 213.45L718.8 212.95L719 212.85L719.8 212.95L720.2 212.85L721.4 212.35L723.8 210.65L725.1 210.35L727.4 210.15L729.6 209.55L733.8 207.85L734.3 208.55L734.5 208.35L734.7 208.25L735.2 208.55L734.8 208.85L733.3 209.55L732.8 209.65L732.2 209.95L731.7 210.55L731.2 210.95L730.7 210.75H730.4V212.45L731.8 212.65L734.9 211.85V212.15L734.5 212.45L734.4 212.75L734.5 213.15L734.3 213.55L734.1 213.85L733.9 214.05L733.2 214.25L731.9 214.65L731.6 215.05V216.15L732 217.25L733.1 218.35L734.4 219.05L735.6 219.35H738.3L739.1 219.05L740.3 217.85L740.9 217.55ZM779.2 210.15L779.3 210.85L780.2 212.35L780.5 213.15H780.3L780.1 212.85L779.8 212.55L779.5 212.25L779.2 212.05L779 215.55L777 215.85L774.1 214.45L767.5 210.05L766.2 209.55H764.6L761.6 210.15L760.1 209.55L760.3 208.95V208.15L760.4 207.45L760.9 207.05L760.6 206.75L759.7 206.45L759.4 206.15L759 205.45V205.25L759.1 204.95L759.2 204.35L759.7 203.65L762.5 203.05L763.5 203.45L767.4 203.05L769 203.15L769.5 203.05L770.1 202.75L770.7 202.25L771.2 201.95L771.3 202.65L771.6 203.05L772.5 203.75V203.95L772.4 204.25V204.65L772.7 204.85L772.9 204.75L773.2 204.35L773.6 203.75L773.5 202.95L773.8 202.75L774.1 203.05L773.9 203.75L774.1 204.15L775.3 204.85L775.5 205.25L775.7 205.55L776.1 205.95L776.3 206.05L776.9 206.15L777.2 206.35L777.6 206.85L778 207.75L777.9 208.55L777.2 208.85L777.8 209.15L778.5 209.05L779 209.25L779.2 210.15ZM725.9 249.85L725.8 251.25L725 252.45L723.7 252.35L723 250.65L724.1 249.55L725.7 248.85L725.9 249.85Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4362
4363<path d="M558.4 205.55L559.1 207.65L558.6 208.05L557 208.75L556.7 209.15L556.6 209.45L556.7 209.65L556.9 210.15L557 210.45V210.85L556.9 211.75V212.55L556.8 213.35L556.1 216.05L555.8 216.95L555.5 217.35L555.1 217.95L554.2 219.65L554 220.15V220.55L554.1 220.95L554.2 221.75V222.25L554 222.65L553.8 222.95L553.5 223.25L553.1 223.35L552.8 223.45H552L551.7 223.35L551.3 223.15L550.6 222.85L550.3 222.75L549.9 222.85L549.6 222.95L548.8 223.55L547.9 224.55L547.7 224.85L546.2 227.75L545.8 228.35L545.3 228.75L545 228.95L544.8 229.15L544.6 229.65V229.85V230.05V230.25L544.7 230.35L544.8 230.55V230.65V230.75L544.7 231.05L544.6 231.25V231.55V231.75V232.25L544.7 232.45H544.8V232.55V232.65L544.7 232.75L544.5 232.95L544.4 233.15L544.5 233.75L544.2 234.55L544 234.95V235.25V235.55L544.1 235.75L544.3 235.95L544.5 236.05L544.7 236.55L545.3 236.65L545.4 236.85L545.5 237.15L545.7 237.35L546 237.45L546.1 237.65L546.2 237.85L546.5 237.95L546.7 238.15V238.45L546.8 238.75V239.05L546.9 239.45H547.1L547.4 239.35L547.7 239.45L547.9 239.35L548.2 239.25H548.5L549.4 239.55L551.2 240.75L551.7 240.95H552H552.4L557.8 242.65L558 243.15L558.1 243.55L557.9 243.95L557.8 244.25L557.7 245.15L557.8 245.55V245.95V246.25L557.7 247.05L557.6 247.45L557.5 247.75L557.4 248.05L557.2 248.55L557.1 248.85L556.8 249.65L556.5 249.95L556.3 250.25L555.8 250.85L555.6 251.25L555.4 252.05L555.2 252.45L554.8 253.15L554.6 253.55V253.85L554.5 254.25L554.4 254.65V255.25L554.6 256.05L554.9 256.55L558.8 261.25L559.5 261.75L560.1 262.05L561.2 261.95L562.3 261.75H563.4L564.2 261.65L564.8 261.15H565L565.3 261.05L565.7 261.15L566.1 261.35L566.6 261.65L567.9 263.95L568.1 264.45V264.85L567.9 265.65V266.05L568.5 267.65V267.85L568.4 268.25L568.2 268.45V269.35L567.7 269.65L567.4 269.95L567 270.05L566.8 270.45V270.85L567 271.85L567.3 272.45L567.6 273.05L567.9 273.35L568.3 273.95L568.6 274.25L568.8 274.65V274.85L568.7 275.05L567.4 27
43635.95L566.7 276.25L565.9 276.35L564.9 276.25H564.7L564.1 276.45L561.8 274.75L560.7 273.75L560.5 273.35L560.4 273.05V272.65L560.3 272.25L560.1 272.05L559.8 271.85L558.3 271.35L557.9 271.25L555.5 271.95L555.1 272.15L554.7 272.45L553.7 273.45L551.4 274.75H551L550.7 274.55L550.5 274.25L550.3 274.05L549.9 273.95L549.4 274.25L548.7 274.85L547.4 276.35L546.8 277.85L546.6 278.65L546.7 279.05L546.6 279.75L546.4 280.15L546.2 280.45L545.7 280.85L545.3 281.15L544.9 282.05L544.7 282.35V282.65V282.95V283.25L544.8 283.45L545 283.75L545.2 284.45L545.3 285.25L545.4 286.85V287.75L545.6 288.95V289.35V289.85L545.5 290.15L545.3 290.55L545 290.95L542 293.35L539.6 294.15H539.2H538.8L538.5 293.95L538 293.75L537.7 293.55L537.6 293.35L537.4 293.15L537.3 292.85V292.55V292.35L537.4 292.05V291.75V291.55L537.2 291.35L537 291.15L536.8 290.95H536.6L535.9 291.05L535.7 290.95L535.2 290.65L534.9 290.55H534.6L534.2 290.75L534 290.85L533.7 291.15L533.2 291.25H533L532.9 291.35V291.65L532.8 291.95L530.7 293.25L529.2 294.45L528.2 294.95L527.5 295.15L526.2 295.45L525.2 295.85L524.8 295.75L524.6 295.65L523.9 294.95L523.6 294.75H523.3L522.8 294.85L522.2 295.25L521.1 296.45L519.4 298.05L518.9 298.35L518.1 298.45L517.7 298.65L517.2 298.95L516 300.05L515.6 300.75L514.4 303.15L513.2 304.85L511.7 306.55L511.5 306.95L510.9 308.75L510.4 308.95L510 308.85L505.7 307.65L502.4 306.05L502.9 305.35L503.5 304.75L503.7 304.45L504.1 303.75L506.6 300.45L506.7 300.05L506.6 299.65L506.4 298.95V298.75L506.5 298.55L506.7 298.45L506.9 298.15L507 297.85L507.1 297.55V297.15L507.2 296.85V296.55L507.1 296.15L506.8 295.65L505.5 294.85L505.3 294.35L505.2 293.85V293.35V292.55L505.1 291.85L504.9 291.45V291.05L504.8 290.65L504.9 289.95L504.8 289.65L502 288.85L501.6 288.45L501.5 288.15L501.4 287.85V287.45L501.5 287.05V286.35L501.4 285.95L501.3 285.25L501.5 284.65V284.45L501.4 284.35L501 284.15L500.4 283.95L499.2 283.85L498.6 283.95L498 284.15L497.3 284.45L495.5 283.65L494 282.75L493.5 283.15L493.4 283.35L492.6 284.05L492 284.45H491.9L491.8 284.55L491.6 284.65L490.4 285.25L490.2 285.45L489.8 285.75L489.7 285.95V286.05H489.6L489.4 286.15L489.3 286.25L489.2 286.35L489 286.45H488.8L488.4 286.15L488.1 285.85L487.7 285.75L487.2 285.65H486.7L486.1 285.75L485.5 286.05L484.7 286.65L484.4 286.95V287.55L484.3 287.85L484.1 288.05L483.8 287.85L483.2 287.15L482.3 285.85L482 285.55L481.7 285.35H481.3L480.2 286.05L479.6 286.65L479.2 286.85H478.6L477.3 286.45L474.4 286.25L473.7 286.15L472.9 285.85L472.2 285.55L471.7 285.35H471.1L470.2 285.45L469.5 285.85L469.2 286.15L469.1 286.55L469 286.95L468.9 287.25L468.7 287.55L468.2 288.25L467.2 288.85L466.2 289.25L465.7 289.35H465.2L464.5 289.25L463.2 288.85L462.9 288.75L462.7 288.35L462.6 288.05V287.65L462.4 287.35L462.2 287.05L461.8 286.95L461.3 287.05L460.9 287.35L460.7 287.75L460.5 288.85L460.4 289.15L460.1 289.35L459.6 289.45L459.1 289.55L457 288.95L456.2 288.85L455.2 288.45H454.8L454.6 288.55L454.2 288.65L453.5 288.45L453.2 288.25L452.7 288.15L452.1 288.25L451.5 288.35L450.9 288.85L450.6 289.15L450.2 289.95L449.4 290.35L448.1 290.55L436.6 290.05L435.1 289.55L434.3 289.45H433.4L433.1 289.55L432.8 289.85L432.7 290.25L432.6 292.15L432 292.25L431.6 292.15L429 291.05L428.4 290.95L427.4 290.65L425.6 289.75L425.2 289.55L424.8 289.05L424 287.95L422.9 286.75L421.8 285.85L421.2 285.55L420.7 285.15L420.2 284.95H419.8L419.4 284.85L419.1 284.55L418.8 284.15L418.6 283.65L418.2 283.25L416.8 282.05L416.1 281.85L415.3 281.35L415.2 281.05L414.9 280.65L414.4 280.35L412.7 279.55L412.2 279.45L411.4 279.35L410.9 279.25L410.3 279.05L409.5 278.45L409 277.95L408.8 277.45L408.7 276.65V276.25L408.6 275.45L408.5 275.05L408.1 274.85H406.9L406.4 274.95H405.5L404.2 274.35L401.9 272.65L402.5 272.35L403 272.25H403.2H403.4L403.7 272.05L404.1 271.55L404.5 270.55L405.5 266.85L405.7 266.35L406.3 265.25L406.6 264.95L406.9 264.65L407.2 264.45L407.6 264.35L408 264.25L409.1 264.45H409.4L409.6 264.15L409.8 262.95L410 262.25L409.8 261.65L409.6 261.35L408.5 261.15L408.2 261.05L406.8 260.65L406.6 260.35L406.4 260.05L406.3 259.65L406.2 259.35V258.95V258.55H406.1L406 258.45L405.8 258.25L405.6 258.05L405.5 257.65V257.25L405.3 256.85L405.2 256.55V256.15L405.5 25
43635.85L405.9 255.75L406.2 255.85L406.6 255.95L407.6 256.55L408.3 256.85L408.7 256.75L409.1 256.65L410 256.05L410.2 255.75L410.1 255.25L409.8 254.95L409.1 254.55L408.9 254.25L408.7 253.75V253.05L409.2 250.85L409.4 250.25L409.5 249.95L409.8 249.65L410.4 249.05L410.6 248.75L410.9 248.45L411.2 248.15H411.5L412.2 248.35H412.6H413L413.7 248.15L414.4 248.35L414.7 248.45L415 248.65L416.4 249.35L416.6 249.45H417.2L416.7 248.55L415.5 247.15L415.1 246.75L414.8 246.45V246.25L414.1 244.95L413.3 243.05L413.2 242.55V242.05L413.5 241.65L413.8 241.45L414.3 241.35L414.7 241.05L415 240.55L415.6 238.85L416.2 237.65L416.4 236.75L415.8 235.05L415.3 235.65L413.3 236.75L412.8 237.45L412.3 237.65L410.9 238.05L410 238.55L409.7 238.65L409.4 238.75L409.2 238.85L408.2 239.45L405.6 238.15L405.1 237.65L404.7 237.35L404.5 237.15L404 236.55L403.6 235.95L402.4 234.55L401.8 233.55L401.5 233.35L400.8 233.25L400.2 232.85L399.9 232.45L399.3 231.95L398.4 231.05L396.9 229.05L396.6 228.85L396 228.45L395.7 228.15L395.4 227.85L395.3 227.55L395.4 227.25L395.8 226.65L396 226.25L396.3 225.95L396.4 225.55L396.9 224.95L397 224.65L397.1 224.25L397.2 223.95L397.3 222.75L397.5 222.05L397.6 221.75L397.7 221.35L397.6 220.85L397.3 220.45L396.8 219.75L396.7 219.45L396.9 218.65V218.15L396.7 217.45L396.6 217.05L396.3 216.85H396L395.2 216.95L394.9 217.05L394.1 217.75L393.8 218.25L393.3 218.95L393.1 219.15L392.8 219.25L392.3 219.15L390.9 218.85L390.7 218.65L390.6 218.15L390.7 217.05L390.8 216.55V215.95L390.9 215.25L391.1 214.85L391.6 214.15L391.7 213.85V213.45L391.5 213.15L391.3 212.85L391 212.55L390.7 212.25L390.4 212.15L390 212.05L388.9 212.15L388.1 212.25L387.8 212.45L387.6 211.75V210.35L388.2 206.45L388.5 203.65L388.4 203.15V202.55L388.6 201.25L388.8 200.85L388.9 200.65L390.1 200.05L394.1 200.55L395.2 201.05L395.7 201.45H396.6L397.3 201.35L397.7 201.15L397.9 200.95L398.1 200.75L399.7 199.55L399.9 199.25L400.2 198.85L400.5 198.55L401 198.35L402.1 198.05L402.5 197.95L402.8 198.25L403 199.75L403.2 199.95L403.8 200.15L404.7 199.95L405.3 199.65L406.2 199.05L406.5 198.75L406.7 198.45L406.8 198.05L406.9 197.65L407.3 196.95L407.7 196.65L408.4 196.15L408.8 195.75L409.7 195.25L410.4 194.65L410.8 194.05L410.9 193.55L411 193.15L411.2 192.35L411.4 192.15H412.3L414.2 191.85L415 191.55L415.5 191.65L415.7 191.95L415.6 192.35L415.7 192.75L415.8 193.05L416 194.35L416.1 194.75L416.3 195.05L416.6 195.25L417.4 195.65L417.9 195.75H418.5L419.4 195.45L420.7 194.95L421.6 195.55L422.2 195.75L422.7 195.65L423.1 195.45L423.3 195.15L423.7 194.75L424.2 194.45L425.4 193.95L426 193.55L426.4 193.15L426.6 192.65L427.8 191.45L428.1 191.05L428.3 190.65L428.8 189.85H429H429.2L429.5 190.05L429.6 190.45L429.7 190.75L429.6 191.55V191.95L429.7 192.25L430 193.05L430.3 193.35L430.6 193.65L431.2 193.85L431.8 194.55H432L432.2 194.45L432.7 193.95L433 193.65L433.3 193.15L433.6 192.55L433.9 192.25L434.3 191.95L435.3 191.75L436.3 191.15H436.7L437 191.45L437.3 191.75L438.4 192.85L439 193.05L439.8 193.25L440.3 193.05L440.7 192.75L441.1 192.45L441.4 192.55L442.3 192.85L442.7 193.15L443 193.45L443.2 193.85L443.4 194.15L443.8 194.45L444.3 194.75L446.5 195.45L447.7 196.05L449.7 196.55L449.9 196.65L450.1 196.85L450.3 197.15L450.7 197.55H451.1L451.8 197.35L452.1 197.45L452.4 197.65L453 198.55L453.3 198.75L453.5 198.95L454 199.05L455 198.85L455.6 198.95L456.2 199.15L457 199.25L458.9 200.15L459.3 200.55L459.5 200.85V201.05V201.55L459.4 201.85L459.1 202.95L459 203.15L458.6 203.65V203.85L458.4 204.05L457.9 204.35L457.6 204.45L457.1 204.75L455.2 206.75L454.5 207.25L453.8 207.55L453.6 207.65L452.9 208.45L452.7 208.65H452.2L449.7 209.45L449.2 209.75L448.9 210.05L449 210.45L449.5 210.85L450.8 211.65L451.4 211.75L451.9 211.65L452.2 211.25L452.9 210.75L453.2 210.65L453.8 210.05L454.2 209.65L454.4 209.35L454.7 209.25L455.2 209.05H455.9L456.4 208.85L457.1 208.35L458 208.05L458.4 207.85L458.5 207.55L458.4 206.85L458.6 206.65L459.2 206.35L460 206.15L460.3 205.85L460.6 205.65L460.9 205.55L462.5 205.15L462.9 204.95L463.1 204.65L463.3 204.05L463.9 203.65L467.7 203.75L469.1 203.15L469.9 203.75L470.3 203.85L470.8 203.65L472.5 203.35L475 202.05L476.6 201.55L477.3 201.95L477.5 202.15V202.65L479.6 202.55L480.4 202.35L481 201.85L481.4 201.35L481.6 200.95V200.65L481.5 200.25L481.3 199.95L481.1 199.65L480.9 199.25L480.8 198.85L480.7 198.45L480.6 198.05L480.8 197.85L480.9 197.75L481.2 197.85L480.8 195.75V194.65V194.15L480.7 193.55L480.3 192.55L480 191.95L479.5 191.55L479.1 191.65L478.1 192.45L477.8 192.75L477.5 193.05L477.2 193.35H476.9L476.6 192.95L476.5 192.25L476.6 191.65L476.7 191.15L476.8 190.75L476.9 190.25L477 189.65L477.2 189.25L477.8 188.65L478 188.35V188.15L478.1 187.85L478.2 187.35L478.4 187.15V186.85V186.65V186.15V185.95L478.5 185.75L478.6 185.25L478.4 184.75L477.8 183.65L477.3 183.25L476.9 183.05L476.5 182.95L476.2 182.75L476.1 182.35V180.85L476 179.75V179.55V179.35L475.9 179.05L475 178.15L474.7 177.95L474.4 177.65L474.1 177.55L473.8 177.45L473.5 177.55L473.2 177.65L473 177.85L472.7 177.95H472.5L472.3 177.85L472.2 177.65L472.3 177.45L472.4 177.25L472.5 177.15V176.85L472.4 176.45L472.3 176.05L471.8 175.55L471.4 175.35L471.2 174.95L471 174.55L471.1 173.05L471.3 171.95L471 171.85L470.8 171.95L470.5 172.05H470.2L469.8 171.75L469.3 171.25L468.8 170.25L468.4 169.75H468.1L468 170.05L467.8 170.25H467.2L466.6 170.35L466.3 170.25L466 169.95L465.8 169.65L465.6 169.35L465.8 168.85L466.3 168.15L466.4 16
43637.85V167.45L466.3 167.05L466.2 166.35L466.1 165.75L465.9 165.25L465.6 164.85L464.4 164.55L464.1 164.35L464 164.15V163.95L464.2 163.75L464.3 163.55L464.6 163.05L464.8 162.55V162.15L465.1 160.65L465.2 160.35L465.3 160.15L465.5 160.05L465.7 159.95L465.9 159.75L466.1 159.45V158.85L465.9 158.45V158.05L466.1 157.65L466.2 157.15L466.4 156.75L466.5 156.35L466.9 155.15L467 154.75L467.2 154.35L467.5 153.65L467.6 153.15V152.35L467 150.75L466.5 148.95L466.1 148.75L465.8 148.65L464.9 148.15L464.6 147.95L464.2 147.55L463.8 146.85L462.3 145.35L462.1 144.35L462.8 144.45L463.2 144.35L466.3 141.95L467.2 141.75L467.5 141.55L467.6 141.15L467.7 140.35V139.95L467.5 139.65L467.3 139.25L467.2 139.05L467.3 138.85L468.4 139.35L470.4 139.45L472.4 139.05L472.8 138.75H474.1L475.3 137.35L476.1 136.85L480.8 137.95H482.2L484.9 137.65L485.8 137.45L486.4 137.05L486.5 136.65L486.8 136.35L487 136.05L487.3 135.85L487.8 135.75L488.3 135.85L489 136.15L489.2 136.55L489.3 136.95L489.4 137.35L489.7 138.05L490 138.45L490.5 138.65L492 139.15L493 139.05L493.4 138.85L493.8 138.55L494.2 138.35H494.6L495.1 138.45L495.5 138.75L495.7 139.15L495.9 139.55L496.3 139.75L497.1 139.95L498.1 140.15L498.7 140.45L499 140.85L499.3 141.15L499.6 141.25L499.9 141.15H500.3H500.6L500.9 141.45L500.8 141.75L500.6 142.15L500 142.55L499.9 142.75L500.2 143.05L500.9 143.45L501.1 143.85V144.15L500.8 144.75L500.9 145.05L501.2 145.25H501.6L502.3 144.95L502.7 144.75L503.1 144.65L503.4 144.85L503.6 145.25L503.8 145.55L503.9 145.95L504 146.25L504.1 146.35L504.3 146.55L504.8 146.75L505.1 146.95L505.3 147.25L505.5 148.05L505.7 148.45L506 148.75L506.4 149.05L507.5 149.55H508L509.3 148.85L509.8 148.75L510.3 148.85L510.6 149.15L511.3 149.55L511.9 149.65L512.9 149.45L513.5 149.25L514 148.95L514.5 148.55L515 148.25L515.7 148.15L516.6 148.35L517 148.25L517.4 148.15L518.7 146.95L519 146.75L519.3 146.85L519.6 147.05L519.9 147.35L520.9 147.95L521.1 148.25L521.3 148.55L521.6 148.85L521.9 148.95L522.2 148.75V148.45L522.1 148.15V147.15L522.4 145.75V144.95L525.7 143.95L526.8 144.25L527 144.65L527.4 145.05L527.9 145.35L528.9 145.85L530.6 147.05L531.9 147.85L533.9 149.55L534.2 149.95L534.4 150.25L534.5 150.65L534.8 150.95L535.3 151.65L537.5 153.55L537.8 153.85L538.2 154.35L538.4 154.65L539.8 155.85L540.3 156.95L540.2 157.35L540.1 159.15L540.4 159.95L540.7 160.65L541 161.05L541.5 161.65L542.6 162.35L542.9 162.85L543.1 163.25V163.65L543.2 164.95L543.1 165.45L542.7 166.25L542.5 166.75V167.15L542.4 167.75L542.6 168.15L542.9 168.65L543.1 169.35L543.3 169.95L543.2 171.05L543.1 171.45L542.8 172.15L542.6 173.05L542.5 173.65L542.7 174.65L542.5 174.95L542.3 175.35L541.9 175.55L541.2 175.95L540.9 176.05L540.5 175.95L540.2 175.75L539.9 175.55L539.2 175.25H538.9L537.8 174.95L537.6 175.15L537.4 175.55L536.7 177.45V178.15V180.05L536.4 180.45L536.1 180.75L535.4 181.15L535 181.45L534.6 181.85L533.3 183.95L533 184.15L532.8 184.25L532.3 184.95L533.5 185.45L534.2 186.15L535.8 188.45L536 189.15V189.75L535.8 190.15L535.9 190.85L536.1 190.95L536.3 190.75L536.7 190.55L537.3 190.65L538.3 191.25L542.5 195.35L543.1 195.75L543.4 195.85L543.9 195.55H544.4L544.9 195.65L545.5 195.95H546L547 195.75L547.2 196.05L
4363547.3 196.35V196.75L547.2 197.15L547.1 197.75L546.8 198.25L546.7 199.25L546.9 199.55L547.1 199.85L548.1 200.35L548.3 200.65L548.4 201.05L548.5 201.65L549.7 205.05L550 205.35L550.4 205.45H550.8L553.4 205.85L554.5 206.25L555.1 206.35L555.5 206.15L555.9 206.05L556.6 205.95L557.4 205.85L557.7 205.75L558.4 205.55Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4364
4365<path id="madrid" d="M432.6 169.45L433.3 171.15L430.8 171.35L430.9 170.05L431.7 169.25L432.6 169.45ZM420.7 194.95L421.2 194.05L421.6 192.25L422.1 191.15L422.3 190.85L422.4 190.45L422.3 190.05L422.1 189.35L422 188.95V188.55L422.3 188.25H422.6L422.8 188.45L423.3 189.15L423.5 189.35L423.7 189.45L424.4 189.35L424.8 189.25L425.3 188.95L425.6 188.45L426 187.65L426.1 187.15L426.2 186.75V186.45L426.3 185.55L426.5 185.25L426.8 184.85L427.1 184.75L427.3 184.55H427.6H427.8L428.1 184.65L428.4 184.75H428.6H428.8L429.1 184.65L430.2 184.55L430.6 184.35L430.7 184.05L430.5 183.25L430.8 182.15L431 181.75V181.35V180.95L430.9 180.65V179.95L431 179.75L430.9 179.45V179.15V178.35V177.95V177.35L431.2 176.85L431.5 176.55L431.8 176.35L431.9 176.25L432 176.05L432.1 175.85L432.3 175.25V174.85V174.55L432.2 174.15L432 173.75V173.25L432.2 172.95H432.5L432.7 173.15L433 173.75L433.3 174.05L433.6 174.15L434 174.25L434.7 174.15L435.5 173.85L435.9 173.65L436.3 173.55L436.7 173.15L436.8 172.85V172.05L437 171.15V170.75L437.2 169.75L438.4 168.05L438.6 167.75L440.1 165.35L440.5 164.95L441.3 164.55H441.8L442.3 164.65L442.6 164.85H443L443.9 164.65L444.2 164.55L444.4 164.35L444.6 163.95L444.7 163.55L445 162.75L445.1 162.35L445.2 161.55V161.15L445.4 160.75L445.7 160.25L445.8 159.85V159.45L445.7 158.75V158.35L445.9 157.95L446.4 156.95L447 156.25L447.3 155.75L447.7 155.25L448.1 154.95L451.6 153.75L452 153.55L452.4 153.25L452.9 152.35L453.1 151.95L453.4 151.55L453.7 150.75L454.1 150.25L454.7 149.75L456.5 148.55L457.3 147.65L458 146.75L458.2 146.35L458.5 145.95L459 145.55L460.2 144.75L462.1 144.35L462.3 145.35L463.8 146.85L464.2 147.55L464.6 147.95L464.9 148.15L465.8 148.65L466.1 148.75L466.5 148.95L467 150.75L467.6 152.35V153.15L467.5 153.65L467.2 154.35L467 154.75L466.9 155.15L466.5 156.35L466.4 156.75L466.2 157.15L466.1 157.65L465.9 158.05V158.45L466.1 158.85V159.45L465.9 159.75L465.7 159.95L465.5 160.05L465.3 160.15L465.2 160.35L465.1 160.65L464.8 162.15V162.55L464.6 163.05L464.3 163.55L464.2 163.75L464 163.95V164.15L464.1 164.35L464.4 164.55L465.6 164.85L465.9 165.25L466.1 165.75L466.2 166.35L466.3 167.05L466.4 167.45V167.85L466.3 168.15L465.8 168.85L465.6 169.35L465.8 169.65L466 169.95L466.3 170.25L466.6 170.35L467.2 170.25H467.8L468 170.05L468.1 169.75H468.4L468.8 170.25L469.3 171.25L469.8 171.75L470.2 172.05H470.5L470.8 171.95L471 171.85L471.3 171.95L471.1 173.05L471 174.55L471.2 174.95L471.4 175.35L471.8 175.55L472.3 176.05L472.4 176.45L472.5 176.85V177.15L472.4 177.25L472.3 177.45L472.2 177.65L472.3 177.85L472.5 177.95H472.7L473 177.85L473.2 177.65L473.5 177.55L473.8 177.45L474.1 177.55L474.4 177.65L474.7 177.95L475 178.15L475.9 179.05L476 179.35V179.55V179.75L476.1 180.85V182.35L476.2 182.75L476.5 182.95L476.9 183.05L477.3 183.25L477.8 183.65L478.4 184.75L478.6 185.25L478.5 185.75L478.4 185.95V186.15V186.65V186.85V187.15L478.2 187.35L478.1 187.85L478 188.15V188.35L477.8 188.65L477.2 189.25L477 189.65L476.9 190.25L476.8 190.75L476.7 191.15L476.6 191.65L476.5 192.25L476.6 192.95L476.9 193.35H477.2L477.5 193.05L477.8 192.75L478.1 192.45L479.1 191.65L479.5 191.55L480 191.95L480.3 192.55L480.7 193.55L480.8 194.15V194.65V195.75L481.2 197.85L480.9 197.75L480.8 197.85L480.6 198.05L480.7 198.45L480.8 198.85L480.9 199.25L481.1 199.65L481.3 199.95L481.5 200.25L481.6 200.65V200.95L481.4 201.35L481 201.85L480.4 202.35L479.6 202.55L477.5 202.65V202.15L477.3 201.95L476.6 201.55L475 202.05L472.5 203.35L470.8 203.65L470.3 203.85L469.9 203.75L469.1 203.15L467.7 203.75L463.9 203.65L463.3 204.05L463.1 204.65L462.9 204.95L462.5 205.15L460.9 205.55L460.6 205.65L460.3 205.85L460 206.15L459.2 206.35L458.6 206.65L458.4 206.85L458.5 207.55L458.4 207.85L458 208.05L457.1 208.35L456.4 208.85L455.9 209.05H455.2L454.7 209.25L454.4 209.35L454.2 209.65L453.8 210.05L453.2 210.65L452.9 210.75L452.2 211.25L451.9 211.65L451.4 211.75L450.8 211.65L449.5 210.85L449 210.45L448.9 210.05L449.2 209.75L449.7 209.45L452.2 208.65H452.7L452.9 208.45L453.6 207.65L453.8 207.55L454.5 207.25L455.2 206.75L457.1 204.75L457.6 204.45L457.9 204.35L458.4 204.05L458.6 203.85V203.65L459 203.15L459.1 202.95L459.4 201.85L459.5 201.55V201.05V200.85L459.3 200.55L458.9 200.15L457 199.25L456.2 199.15L455.6 198.95L455 198.85L454 199.05L453.5 198.95L453.3 198.75L453 198.55L452.4 197.65L452.1 197.45L451.8 197.35L451.1 197.55H450.7L450.3 197.15L450.1 196.85L449.9 196.65L449.7 196.55L447.7 196.05L446.5 195.45L444.3 194.75L443.8 194.45L443.4 194.15L443.2 193.85L443 193.45L442.7 193.15L442.3 192.85L441.4 192.55L441.1 192.45L440.7 192.75L440.3 193.05L439.8 193.25L439 193.05L438.4 192.85L437.3 191.75L437 191.45L436.7 191.15H436.3L435.3 191.75L434.3 191.95L433.9 192.25L433.6 192.55L433.3 193.15L433 193.65L432.7 193.95L432.2 194.45L432 194.55H431.8L431.2 193.85L430.6 193.65L430.3 193.35L430 193.05L429.7 192.25L429.6 191.95V191.55L429.7 190.75L429.6 190.45L429.5 190.05L429.2 189.85H429H428.8L428.3 190.65L428.1 191.05L427.8 191.45L426.6 192.65L426.4 193.15L426 193.55L425.4 193.95L424.2 194.45L423.7 194.75L423.3 195.15L423.1 195.45L422.7 195.65L422.2 195.75L421.6 195.55L420.7 194.95Z" fill="#6F9C76" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4366
4367<path d="M389.3 418.65L389.4 418.55V418.45V418.35V418.25V418.15V418.05L389.5 417.85V417.75H389.4H389.3V417.65V417.55H389.2V417.65H389.1L388.9 417.55L388.8 417.35
4367H388.7H388.6H388.5V417.25H388.4H388.3V417.15V417.05L388.2 416.75V416.65V416.55L388.1 416.35V416.15V416.05V415.95V415.85H388V415.75H387.9H387.8L387.5 415.85L387.3 415.05L387.8 414.95L388.6 415.15L389.4 415.65L390.1 416.15L390.8 416.25L391.9 415.75L391.6 416.85L389.8 418.15L389.6 418.95L389.3 418.65Z" fill="#6F9C76"/>
4368
4369<path d="M387.9 415.75H388V415.85H388.1V415.95V416.05V416.15V416.35L388.2 416.55V416.65V416.75L388.3 417.05V417.15V417.25H388.4H388.5V417.35H388.6H388.7H388.8L388.9 417.55L389.1 417.65H389.2V417.55H389.3V417.65V417.75H389.4H389.5V417.85L389.4 418.05V418.15V418.25V418.35V418.45V418.55L389.3 418.65L389.6 418.95L389.8 418.15L391.6 416.85L391.9 415.75L390.8 416.25L390.1 416.15L389.4 415.65L388.6 415.15L387.8 414.95L387.3 415.05L387.5 415.85L387.8 415.75H387.9ZM388.1 416.35H388.2M387.9 415.75V415.65" stroke="white" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round"/>
4370<path id="lineaSeparacion" d="M1 337.25H217.5C223.023 337.25 227.5 341.727 227.5 347.25V444.25" stroke="#6F9C76" stroke-width="2" stroke-linecap="round"/>
4371</svg>
4372`}}),e[8]=t,e[9]=g);let _;e[10]===t?_=e[11]:(_=t===`madrid`&&(0,K.jsx)(`div`,{className:`contenedor-madrid-dinamico`,children:(0,K.jsx)(`iframe`,{src:`https://snazzymaps.com/embed/793659`,width:`100%`,height:`100%`,style:{border:`none`},title:`Mapa de Madrid - Visita Papal`,loading:`lazy`})}),e[10]=t,e[11]=_);let v;e[12]===t?v=e[13]:(v=t===`barcelona`&&(0,K.jsx)(`div`,{className:`contenedor-madrid-dinamico`,children:(0,K.jsx)(`iframe`,{src:`https://snazzymaps.com/embed/796402`,width:`100%`,height:`100%`,style:{border:`none`},title:`Mapa de Barcelona - Visita Papal`,loading:`lazy`})}),e[12]=t,e[13]=v);let y;e[14]===t?y=e[15]:(y=t===`canarias`&&(0,K.jsx)(`div`,{className:`contenedor-madrid-dinamico`,children:(0,K.jsx)(`iframe`,{src:`https://snazzymaps.com/embed/796405`,width:`100%`,height:`100%`,style:{border:`none`},title:`Mapa de Canarias - Visita Papal`,loading:`lazy`})}),e[14]=t,e[15]=y);let b;e[16]!==y||e[17]!==h||e[18]!==g||e[19]!==_||e[20]!==v?(b=(0,K.jsxs)(`div`,{className:h,children:[g,_,v,y]}),e[16]=y,e[17]=h,e[18]=g,e[19]=_,e[20]=v,e[21]=b):b=e[21];let x;return e[22]!==b||e[23]!==p||e[24]!==m?(x=(0,K.jsxs)(`div`,{className:`contenedor-interactivo`,children:[p,m,b]}),e[22]=b,e[23]=p,e[24]=m,e[25]=x):x=e[25],x}function xI(){let e=(0,Rn.c)(115),t=Ze(),n=et(),[r]=(0,w.useState)(0),[i,a]=(0,w.useState)(t.pathname==`/`),[o,s]=(0,w.useState)(!1),[c,l]=(0,w.useState)(0),[u,d]=(0,w.useState)(``),[f,p]=(0,w.useState)(null),[m,h]=(0,w.useState)(t.pathname!=`/pasapalabra`),[g,_]=(0,w.useState)(!1),[v,y]=(0,w.useState)(t.pathname!=`/mapa`),b,x,S;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=`ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),x=w.useState,S=b.reduce(TI,{}),e[0]=b,e[1]=x,e[2]=S):(b=e[0],x=e[1],S=e[2]);let[C,T]=x(S),[,E]=(0,w.useState)(`https://www.google.com/maps/embed/v1/place?key=TU_API_KEY&q=Madrid+España`),[,D]=(0,w.useState)(0),O;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Sábado 6`,`Domingo 7`,`Lunes 8`,`Martes 9`,`Miércoles 10`,`Jueves 11`,`Viernes 12`],e[3]=O):O=e[3];let k=O,A;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(A={},e[4]=A):A=e[4];let[j,M]=(0,w.useState)(A),N,P;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>{let e=`https://docs.google.com/spreadsheets/d/e/2PACX-1vRUqiobz2_jlcxi9sWUv-0whFR7gTbrnabjSelXvkRCrV0CVhuc3sQvZTFIt8xTpZsdMyaX4b4ysuRh/pub?gid=1392759050&single=true&output=csv&cachebuster=${new Date().getTime()}`;_I.default.parse(e,{download:!0,header:!0,skipEmptyLines:!0,complete:e=>{console.log(`Datos cargados correctamente:`,e.data),M(e.data.reduce((e,t)=>{let n=t.Día?.trim(),r=k.indexOf(n);return r!==-1&&(e[r]||(e[r]=[]),e[r].push({hora:t.Hora||``,desc:t.Título||``,ubi:t.Lugar||``,busqueda:t.Buscar||``})),e},{}))},error:wI})},P=[],e[5]=N,e[6]=P):(N=e[5],P=e[6]),(0,w.useEffect)(N,P);let ee;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(ee=e=>{E(`https://maps.google.com/maps?${`q=${encodeURIComponent(e)}&t=k&z=18&ie=UTF8&iwloc=&output=embed`}`)},e[7]=ee):ee=e[7];let F=ee,I=()=>{let e=b[c],t=gI[e].palabra;p(b[c]);let n=CI,r=n(u)===n(t),i={...C,[e]:r?`acierto`:`error`};T(i),Object.values(i).includes(`pendiente`)?(d(``),ce(i)):_(!0)},te=()=>{d(``),ce()},ne;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(ne={frase:`Cargando...`,explicacion:``,autor:``,foto:``},e[8]=ne):ne=e[8];let[L,re]=(0,w.useState)(ne),ie=SI,R,ae;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{let e=`https://docs.google.com/spreadsheets/d/e/2PACX-1vRUqiobz2_jlcxi9sWUv-0whFR7gTbrnabjSelXvkRCrV0CVhuc3sQvZTFIt8xTpZsdMyaX4b4ysuRh/pub?gid=0&single=true&output=csv&cachebuster=${new Date().getTime()}`;_I.default.parse(e,{download:!0,header:!0,skipEmptyLines:!0,complete:e=>{let t=new Date,n=`${t.getFullYear()}
4372-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)}`;console.log(`Buscando frase para hoy:`,n);let r=e.data.find(e=>e.Fecha?.trim()===n);if(r){let e=ie(r.Foto);console.log(e),re({frase:r.Frase,explicacion:r.Explicación||r.Explicacion,autor:r.Autor||`Papa León XIV`,foto:e||`https://www.vatican.va/etc/designs/vatican/library/clientlibs/themes/vatican-v2/images/leo-xiv.png`})}else console.warn(`No se encontró frase para la fecha de hoy.`),e.data.length>0&&re(e.data[0])}})},ae=[],e[9]=R,e[10]=ae):(R=e[9],ae=e[10]),(0,w.useEffect)(R,ae);let z,oe;e[11]!==j||e[12]!==r?(z=()=>{D(0);let e=j[r]?.[0];e&&F(e.busqueda)},oe=[r,j],e[11]=j,e[12]=r,e[13]=z,e[14]=oe):(z=e[13],oe=e[14]),(0,w.useEffect)(z,oe);let se,B;e[15]===t.pathname?(se=e[16],B=e[17]):(se=()=>{if(t.pathname===`/`){let e=setTimeout(()=>{a(!0)},200);return()=>clearTimeout(e)}},B=[t.pathname],e[15]=t.pathname,e[16]=se,e[17]=B),(0,w.useEffect)(se,B);let ce=()=>{console.log(c),l(e=>{let t=(e+1)%b.length,n=0;for(;C[b[t]]!==`pendiente`&&n<b.length;)t=(t+1)%b.length,n++;return t})};j[r]?.length;let le;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,K.jsx)(`div`,{className:`supWrapper`,children:(0,K.jsx)(`img`,{src:zn,alt:`Logo Papa`,className:`logo`})}),e[18]=le):le=e[18];let ue;e[19]===n?ue=e[20]:(ue=()=>n(`/pasapalabra`),e[19]=n,e[20]=ue);let de,fe;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(de={scale:1.02,boxShadow:`0px 0px 0px 3px rgba(24, 17, 241, 0.8)`,y:-5},fe={scale:.98},e[21]=de,e[22]=fe):(de=e[21],fe=e[22]);let pe;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,K.jsxs)(Ip.h2,{layoutId:`titulo-pasapalabra`,children:[`Pasapalabra `,(0,K.jsx)(`br`,{}),`con el Papa`]}),e[23]=pe):pe=e[23];let V;e[24]===ue?V=e[25]:(V=(0,K.jsx)(Ip.div,{layoutId:`pasapalabra`,className:`pasapalabraWrapper`,onClick:ue,whileHover:de,whileTap:fe,children:pe}),e[24]=ue,e[25]=V);let me;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,K.jsx)(`div`,{className:`pasaMiniWrapper`,children:(0,K.jsx)(pI,{})}),e[26]=me):me=e[26];let he;e[27]===n?he=e[28]:(he=()=>n(`/frase-del-dia`),e[27]=n,e[28]=he);let ge;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(ge={scale:1.02,boxShadow:`0px 0px 0px 3px rgba(241, 196, 17, 0.8)`,y:-5},e[29]=ge):ge=e[29];let H;e[30]===L.frase?H=e[31]:(H=(0,K.jsx)(Ip.h3,{layoutId:`fraseTexto`,className:`frasePrev`,children:(0,K.jsxs)(`i`,{children:[`"`,L.frase,`"`]})}),e[30]=L.frase,e[31]=H);let _e;e[32]===L.autor?_e=e[33]:(_e=(0,K.jsxs)(Ip.h4,{layoudId:`autor`,className:`autorPrev`,children:[`- `,L.autor]}),e[32]=L.autor,e[33]=_e);let U;e[34]===L.foto?U=e[35]:(U=(0,K.jsx)(Ip.img,{layoutId:`foto`,src:L.foto,alt:`Foto del día`,className:`fotoPrev`}),e[34]=L.foto,e[35]=U);let ve;e[36]!==he||e[37]!==H||e[38]!==_e||e[39]!==U?(ve=(0,K.jsx)(`div`,{className:`infWrapper izq`,children:(0,K.jsxs)(Ip.div,{layoutId:`frase`,className:`fraseWrapper`,onClick:he,whileHover:ge,children:[H,_e,U]})}),e[36]=he,e[37]=H,e[38]=_e,e[39]=U,e[40]=ve):ve=e[40];let ye;e[41]!==V||e[42]!==ve?(ye=(0,K.jsxs)(`div`,{className:`izqWrapper`,children:[V,me,ve]}),e[41]=V,e[42]=ve,e[43]=ye):ye=e[43];let be;e[44]===n?be=e[45]:(be=()=>n(`/mapa`),e[44]=n,e[45]=be);let xe,Se;e[46]===Symbol.for(`react.memo_cache_sentinel`)?(xe={scale:1.02,boxShadow:`0px 0px 0px 3px rgba(241, 62, 17, 0.8)`,y:-5},Se=()=>{y(!0)},e[46]=xe,e[47]=Se):(xe=e[46],Se=e[47]);let Ce;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,K.jsxs)(Ip.h1,{layoutId:`titulo-mapa`,children:[`Mapa y `,(0,K.jsx)(`br`,{}),`horario de cada día`]}),e[48]=Ce):Ce=e[48];let we;e[49]===v?we=e[50]:(we=v?(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(yI,{})}):(0,K.jsx)(K.Fragment,{}),e[49]=v,e[50]=we);let Te;e[51]!==be||e[52]!==we?(Te=(0,K.jsx)(`div`,{className:`derWrapper`,children:(0,K.jsxs)(Ip.div,{className:`mapaWrapper`,layoutId:`mapa-grande`,onClick:be,whileHover:xe,onLayoutAnimationComplete:Se,children:[Ce,we]})}),e[51]=be,e[52]=we,e[53]=Te):Te=e[53];let Ee;e[54]!==ye||e[55]!==Te?(Ee=(0,K.jsx)(Tt,{path:`/antigua`,element:(0,K.jsxs)(`div`,{className:`mainWrapper`,children:[le,(0,K.jsxs)(`div`,{className:`infWrapper`,children:[ye,Te]})]})}),e[54]=ye,e[55]=Te,e[56]=Ee):Ee=e[56];let De;e[57]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,K.jsx)(`div`,{className:`supWrapper`,children:(0,K.jsx)(`img`,{src:zn,alt:`Logo Papa`,className:`logo`})}),e[57]=De):De=e[57];let Oe;e[58]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,K.jsx)(Tt,{path:`/mapa`,element:(0,K.jsxs)(`div`,{className:`mainWrapper extendido`,children:[De,(0,K.jsx)(Ip.div,{layoutId:`mapa-grande`,className:`mapaEnGrandeNuevo`,children:(0,K.jsx)(bI,{})})]})}),e[58]=Oe):Oe=e[58];let ke,Ae;e[59]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,K.jsx)(`div`,{className:`supWrapper`,children:(0,K.jsx)(`img`,{src:zn,alt:`Logo Papa`,className:`logo`})}),Ae=(0,K.jsx)(`div`,{className:`fantasma`}),e[59]=ke,e[60]=Ae):(ke=e[59],Ae=e[60]);let je=m?`pasapalabra`:void 0,Me;
4372e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Me=()=>{a(!0),h(!1)},e[61]=Me):Me=e[61];let Ne;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,K.jsxs)(Ip.h1,{layoutId:`titulo-pasapalabra`,className:`pasapalabraTitulo`,children:[`Pasapalabra `,(0,K.jsx)(`br`,{}),`con el Papa`]}),e[62]=Ne):Ne=e[62];let Pe=`pasapalabraInfWrapper ${o?`empezado`:``}`,Fe;e[63]!==f||e[64]!==I||e[65]!==o||e[66]!==c||e[67]!==te||e[68]!==g?(Fe=(0,K.jsx)(`div`,{className:`detallePasapalabra`,children:o?(0,K.jsx)(K.Fragment,{children:g?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`h2`,{className:`medium`,children:`¡Rosco completado!`}),(0,K.jsx)(`h3`,{children:`Esperamos que hayas difrutado y aprendido.`})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`h3`,{children:gI[b[c]].prefijo}),(0,K.jsx)(`h2`,{className:`medium`,children:gI[b[c]].pregunta}),(0,K.jsx)(mI,{palabraObjetivo:gI[b[c]].palabra,onSiguiente:I,onTyping:d,letraActiva:b[c]}),(0,K.jsxs)(`div`,{className:`botonesWrapper`,children:[(0,K.jsx)(`button`,{className:`botonEnviar`,onClick:I,children:`Enviar`}),(0,K.jsx)(`button`,{className:`botonPaso`,onClick:te,children:`Pasopalabra`})]}),(0,K.jsx)(`div`,{className:`infoWrapper`,children:f==null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`h4`,{children:`Adivina la palabra con la pista.`}),(0,K.jsx)(`h4`,{children:`Si no la sabes pulsa pasopalabra y vuelve a intentarlo más adelante.`})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`h4`,{children:[`La palabra era: `,(0,K.jsx)(`span`,{className:`medium`,children:gI[f].palabra})]}),(0,K.jsx)(`h5`,{children:gI[f].info})]})})]})}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`h2`,{className:`medium subtituloPasapalabra`,children:[`¿Estás listo para un viaje de la A a la Z `,(0,K.jsx)(`br`,{}),`por la vida de León XIV? `,(0,K.jsx)(`br`,{})]}),(0,K.jsx)(`h4`,{className:`estrecho`,children:`Un abecedario personal para descubrir al hombre, al misionero y al pastor que se dispone a escribir un nuevo capítulo de su historia en España.`}),(0,K.jsx)(`div`,{className:`espaciador`}),(0,K.jsx)(`button`,{className:`empezarBoton`,onClick:()=>s(!0),children:`¡EMPEZAR!`})]})}),e[63]=f,e[64]=I,e[65]=o,e[66]=c,e[67]=te,e[68]=g,e[69]=Fe):Fe=e[69];let Ie=`div3D ${o?`empezado`:``}`,Le;e[70]!==i||e[71]!==C||e[72]!==c?(Le=i&&(0,K.jsx)(uI,{estadosLetras:C,indiceActivo:c,palabraAnt:gI[b[c]].palabra,info:gI[b[c]].info}),e[70]=i,e[71]=C,e[72]=c,e[73]=Le):Le=e[73];let Re;e[74]!==Ie||e[75]!==Le?(Re=(0,K.jsx)(`div`,{className:Ie,children:Le}),e[74]=Ie,e[75]=Le,e[76]=Re):Re=e[76];let ze;e[77]!==Pe||e[78]!==Fe||e[79]!==Re?(ze=(0,K.jsxs)(`div`,{className:Pe,children:[Fe,Re]}),e[77]=Pe,e[78]=Fe,e[79]=Re,e[80]=ze):ze=e[80];let W;e[81]!==je||e[82]!==ze?(W=(0,K.jsx)(Tt,{path:`/`,element:(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(`div`,{className:`mainWrapper extendido`,children:[ke,Ae,(0,K.jsxs)(Ip.div,{layoutId:je,className:`pasapalabraGrande`,onLayoutAnimationComplete:Me,children:[Ne,ze]})]})})},`pasapalabra-Grande`),e[81]=je,e[82]=ze,e[83]=W):W=e[83];let Be;e[84]===n?Be=e[85]:(Be=()=>n(`/`),e[84]=n,e[85]=Be);let Ve;e[86]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,K.jsx)(`img`,{src:Bn,alt:`volver`}),e[86]=Ve):Ve=e[86];let He;e[87]===Be?He=e[88]:(He=(0,K.jsx)(`button`,{onClick:Be,className:`volver`,children:Ve}),e[87]=Be,e[88]=He);let Ue;e[89]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,K.jsx)(`div`,{className:`supWrapper`,children:(0,K.jsx)(`img`,{src:zn,alt:`Logo Papa`,className:`logo`})}),e[89]=Ue):Ue=e[89];let We;e[90]===L.frase?We=e[91]:(We=(0,K.jsx)(Ip.h2,{layoutId:`fraseTexto`,className:`fraseGrande`,children:(0,K.jsx)(`i`,{children:L.frase})}),e[90]=L.frase,e[91]=We);let Ge;e[92]===L.explicacion?Ge=e[93]:(Ge=(0,K.jsx)(`h3`,{className:`explicacion`,children:L.explicacion}),e[92]=L.explicacion,e[93]=Ge);let Ke;e[94]===L.autor?Ke=e[95]:(Ke=(0,K.jsxs)(Ip.h3,{layoutId:`autor`,className:`autor`,children:[`- `,L.autor]}),e[94]=L.autor,e[95]=Ke);let qe;e[96]!==Ge||e[97]!==Ke?(qe=(0,K.jsxs)(`div`,{className:`explicacionAutorWrapper`,children:[Ge,Ke]}),e[96]=Ge,e[97]=Ke,e[98]=qe):qe=e[98];let Je;e[99]===L.foto?Je=e[100]:(Je=(0,K.jsx)(Ip.img,{layoutId:`foto`,src:L.foto,alt:`Foto del día`,className:`foto`}),e[99]=L.foto,e[100]=Je);let Ye;e[101]!==qe||e[102]!==Je?(Ye=(0,K.jsxs)(`div`,{className:`explicacionFotoWrapper`,children:[qe,Je]}),e[101]=qe,e[102]=Je,e[103]=Ye):Ye=e[103];let Xe;e[104]!==We||e[105]!==Ye?(Xe=(0,K.jsxs)(Ip.div,{layoutId:`frase`,className:`fraseEnGrande`,children:[We,Ye]}),e[104]=We,e[105]=Ye,e[106]=Xe):Xe=e[106];let Qe;e[107]!==He||e[108]!==Xe?(Qe=(0,K.jsx)(Tt,{path:`/frase-del-dia`,element:(0,K.jsxs)(`div`,{className:`mainWrapper extendido`,children:[He,Ue,Xe]})}),e[107]=He,e[108]=Xe,e[109]=Qe):Qe=e[109];let $e;return e[110]!==t||e[111]!==Ee||e[112]!==W||e[113]!==Qe?($e=(0,K.jsx)(zd,{mode:`wait`,children:(0,K.jsxs)(Dt,{location:t,children:[Ee,Oe,W,Qe]}
4372,t.pathname)}),e[110]=t,e[111]=Ee,e[112]=W,e[113]=Qe,e[114]=$e):$e=e[114],$e}function SI(e){if(!e||!e.includes(`drive.google.com`))return e;let t=e.match(/\/d\/(.+?)\/(view|edit|copy|preview)/)||e.match(/id=(.+?)(&|$)/);return t&&t[1]?`https://drive.google.com/thumbnail?authuser=0&sz=w1000&id=${t[1]}`:e}function CI(e){return e.trim().toUpperCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}function wI(e){return console.error(`Error de PapaParse:`,e)}function TI(e,t){return{...e,[t]:`pendiente`}}(0,In.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(w.StrictMode,{children:(0,K.jsx)(hn,{children:(0,K.jsx)(xI,{})})}));

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.