PageSourceSearch

https://zest-tucancion-front-2024.vercel.app/assets/index-QeNIkBDa.js

js zest-tucancion-front-2024.vercel.app collected 2026-10-03 08:04:58 UTC 1,420,282 bytes, 1,029 lines download raw bytes

vendor: 6,027 bytes, lines 1-10
1const __vite__fileDeps=["assets/browserAll-BEoF3qfT.js","assets/webworkerAll-CAAxoo6L.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function bb(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var Sb={exports:{}},m4={},Ab={exports:{}},_t={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var _f=Symbol.for("react.element"),ZD=Symbol.for("react.portal"),qD=Symbol.for("react.fragment"),QD=Symbol.for("react.strict_mode"),KD=Symbol.for("react.profiler"),JD=Symbol.for("react.provider"),eH=Symbol.for("react.context"),tH=Symbol.for("react.forward_ref"),rH=Symbol.for("react.suspense"),nH=Symbol.for("react.memo"),iH=Symbol.for("react.lazy"),sC=Symbol.iterator;function sH(r){return r===null||typeof r!="object"?null:(r=sC&&r[sC]||r["@@iterator"],typeof r=="function"?r:null)}var Tb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Eb=Object.assign,Pb={};function _0(r,e,t){this.props=r,this.context=e,this.refs=Pb,this.updater=t||Tb}_0.prototype.isReactComponent={};_0.prototype.setState=function(r,e){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,e,"setState")};_0.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function Db(){}Db.prototype=_0.prototype;function cv(r,e,t){this.props=r,this.context=e,this.refs=Pb,this.updater=t||Tb}var hv=cv.prototype=new Db;hv.constructor=cv;Eb(hv,_0.prototype);hv.isPureReactComponent=!0;var aC=Array.isArray,Hb=Object.prototype.hasOwnProperty,dv={current:null},kb={key:!0,ref:!0,__self:!0,__source:!0};function Ib(r,e,t){var n,i={},s=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)Hb.call(e,n)&&!kb.hasOwnProperty(n)&&(i[n]=e[n]);var o=arguments.length-2;if(o===1)i.children=t;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(r&&r.defaultProps)for(n in o=r.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return{$$typeof:_f,type:r,key:s,ref:a,props:i,_owner:dv.current}}function aH(r,e){return{$$typeof:_f,type:r.type,key:e,ref:r.ref,props:r.props,_owner:r._owner}}function fv(r){return typeof r=="object"&&r!==null&&r.$$typeof===_f}function oH(r){var e={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(t){return e[t]})}var oC=/\/+/g;function Vm(r,e){return typeof r=="object"&&r!==null&&r.key!=null?oH(""+r.key):e.toString(36)}function Cp(r,e,t,n,i){var s=typeof r;(s==="undefined"||s==="boolean")&&(r=null);var a=!1;if(r===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(r.$$typeof){case _f:case ZD:a=!0}}if(a)return a=r,i=i(a),r=n===""?"."+Vm(a,0):n,aC(i)?(t="",r!=null&&(t=r.replace(oC,"$&/")+"/"),Cp(i,e,t,"",function(u){return u})):i!=null&&(fv(i)&&(i=aH(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(oC,"$&/")+"/")+r)),e.push(i)),1;if(a=0,n=n===""?".":n+":",aC(r))for(var o=0;o<r.length;o++){s=r[o];var l=n+Vm(s,o);a+=Cp(s,e,t,l,i)}else if(l=sH(r),typeof l=="function")for(r=l.call(r),o=0;!(s=r.next()).done;)s=s.value,l=n+Vm(s,o++),a+=Cp(s,e,t,l,i);else if(s==="object")throw e=String(r),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function S2(r,e,t){if(r==null)return r;var n=[],i=0;return Cp(r,n,"","",function(s){return e.call(t,s,i++)}),n}function lH(r){if(r._status===-1){var e=r._result;e=e(),e.then(function(t){(r._status===0||r._status===-1)&&(r._status=1,r._result=t)},function(t){(r._status===0||r._status===-1)&&(r._status=2,r._result=t)}),r._status===-1&&(r._status=0,r._result=e)}if(r._status===1)return r._result.default;throw r._result}var Zn={current:null},wp={transition:null},uH={ReactCurrentDispatcher:Zn,ReactCurrentBatchConfig:wp,ReactCurrentOwner:dv};function Mb(){throw Error("act(...) is not supported in production builds of React.")}_t.Children={map:S2,forEach:function(r,e,t){S2(r,function(){e.apply(this,arguments)},t)},count:function(r){var e=0;return S2(r,function(){e++}),e},toArray:function(r){return S2(r,function(e){return e})||[]},only:function(r){if(!fv(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};_t.Component=_0;_t.Fragment=qD;_t.Profiler=KD;_t.PureComponent=cv;_t.StrictMode=QD;_t.Suspense=rH;
vendor: 3,722 bytes, lines 10-26
10_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uH;_t.act=Mb;_t.cloneElement=function(r,e,t){if(r==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+r+".");var n=Eb({},r.props),i=r.key,s=r.ref,a=r._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,a=dv.current),e.key!==void 0&&(i=""+e.key),r.type&&r.type.defaultProps)var o=r.type.defaultProps;for(l in e)Hb.call(e,l)&&!kb.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&o!==void 0?o[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=t;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];n.children=o}return{$$typeof:_f,type:r.type,key:i,ref:s,props:n,_owner:a}};_t.createContext=function(r){return r={$$typeof:eH,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},r.Provider={$$typeof:JD,_context:r},r.Consumer=r};_t.createElement=Ib;_t.createFactory=function(r){var e=Ib.bind(null,r);return e.type=r,e};_t.createRef=function(){return{current:null}};_t.forwardRef=function(r){return{$$typeof:tH,render:r}};_t.isValidElement=fv;_t.lazy=function(r){return{$$typeof:iH,_payload:{_status:-1,_result:r},_init:lH}};_t.memo=function(r,e){return{$$typeof:nH,type:r,compare:e===void 0?null:e}};_t.startTransition=function(r){var e=wp.transition;wp.transition={};try{r()}finally{wp.transition=e}};_t.unstable_act=Mb;_t.useCallback=function(r,e){return Zn.current.useCallback(r,e)};_t.useContext=function(r){return Zn.current.useContext(r)};_t.useDebugValue=function(){};_t.useDeferredValue=function(r){return Zn.current.useDeferredValue(r)};_t.useEffect=function(r,e){return Zn.current.useEffect(r,e)};_t.useId=function(){return Zn.current.useId()};_t.useImperativeHandle=function(r,e,t){return Zn.current.useImperativeHandle(r,e,t)};_t.useInsertionEffect=function(r,e){return Zn.current.useInsertionEffect(r,e)};_t.useLayoutEffect=function(r,e){return Zn.current.useLayoutEffect(r,e)};_t.useMemo=function(r,e){return Zn.current.useMemo(r,e)};_t.useReducer=function(r,e,t){return Zn.current.useReducer(r,e,t)};_t.useRef=function(r){return Zn.current.useRef(r)};_t.useState=function(r){return Zn.current.useState(r)};_t.useSyncExternalStore=function(r,e,t){return Zn.current.useSyncExternalStore(r,e,t)};_t.useTransition=function(){return Zn.current.useTransition()};_t.version="18.3.1";Ab.exports=_t;var X=Ab.exports;const Ht=cc(X);/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var cH=X,hH=Symbol.for("react.element"),dH=Symbol.for("react.fragment"),fH=Object.prototype.hasOwnProperty,pH=cH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mH={key:!0,ref:!0,__self:!0,__source:!0};function Rb(r,e,t){var n,i={},s=null,a=null;t!==void 0&&(s=""+t),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)fH.call(e,n)&&!mH.hasOwnProperty(n)&&(i[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:hH,type:r,key:s,ref:a,props:i,_owner:pH.current}}m4.Fragment=dH;m4.jsx=Rb;m4.jsxs=Rb;Sb.exports=m4;var B=Sb.exports,z9={},Fb={exports:{}},Vi={},Lb={exports:{}},Ob={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */(function(r){function e(j,Y){var G=j.length;j.push(Y);e:for(;0<G;){var J=G-1>>>1,ee=j[J];if(0<i(ee,Y))j[J]=Y,j[G]=ee,G=J;else break e}}function t(j){return j.length===0?null:j[0]}
vendor: 10,489 bytes, lines 26-35
26function n(j){if(j.length===0)return null;var Y=j[0],G=j.pop();if(G!==Y){j[0]=G;e:for(var J=0,ee=j.length,ve=ee>>>1;J<ve;){var _e=2*(J+1)-1,Oe=j[_e],Te=_e+1,qe=j[Te];if(0>i(Oe,G))Te<ee&&0>i(qe,Oe)?(j[J]=qe,j[Te]=G,J=Te):(j[J]=Oe,j[_e]=G,J=_e);else if(Te<ee&&0>i(qe,G))j[J]=qe,j[Te]=G,J=Te;else break e}}return Y}function i(j,Y){var G=j.sortIndex-Y.sortIndex;return G!==0?G:j.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;r.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();r.unstable_now=function(){return a.now()-o}}var l=[],u=[],h=1,c=null,d=3,f=!1,g=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var Y=t(u);Y!==null;){if(Y.callback===null)n(u);else if(Y.startTime<=j)n(u),Y.sortIndex=Y.expirationTime,e(l,Y);else break;Y=t(u)}}function S(j){if(y=!1,w(j),!g)if(t(l)!==null)g=!0,q(b);else{var Y=t(u);Y!==null&&Z(S,Y.startTime-j)}}function b(j,Y){g=!1,y&&(y=!1,_(P),P=-1),f=!0;var G=d;try{for(w(Y),c=t(l);c!==null&&(!(c.expirationTime>Y)||j&&!U());){var J=c.callback;if(typeof J=="function"){c.callback=null,d=c.priorityLevel;var ee=J(c.expirationTime<=Y);Y=r.unstable_now(),typeof ee=="function"?c.callback=ee:c===t(l)&&n(l),w(Y)}else n(l);c=t(l)}if(c!==null)var ve=!0;else{var _e=t(u);_e!==null&&Z(S,_e.startTime-Y),ve=!1}return ve}finally{c=null,d=G,f=!1}}var E=!1,D=null,P=-1,I=5,R=-1;function U(){return!(r.unstable_now()-R<I)}function N(){if(D!==null){var j=r.unstable_now();R=j;var Y=!0;try{Y=D(!0,j)}finally{Y?F():(E=!1,D=null)}}else E=!1}var F;if(typeof x=="function")F=function(){x(N)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,V=O.port2;O.port1.onmessage=N,F=function(){V.postMessage(null)}}else F=function(){v(N,0)};function q(j){D=j,E||(E=!0,F())}function Z(j,Y){P=v(function(){j(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(j){j.callback=null},r.unstable_continueExecution=function(){g||f||(g=!0,q(b))},r.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<j?Math.floor(1e3/j):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_getFirstCallbackNode=function(){return t(l)},r.unstable_next=function(j){switch(d){case 1:case 2:case 3:var Y=3;break;default:Y=d}var G=d;d=Y;try{return j()}finally{d=G}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=d;d=j;try{return Y()}finally{d=G}},r.unstable_scheduleCallback=function(j,Y,G){var J=r.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?J+G:J):G=J,j){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=G+ee,j={id:h++,callback:Y,priorityLevel:j,startTime:G,expirationTime:ee,sortIndex:-1},G>J?(j.sortIndex=G,e(u,j),t(l)===null&&j===t(u)&&(y?(_(P),P=-1):y=!0,Z(S,G-J))):(j.sortIndex=ee,e(l,j),g||f||(g=!0,q(b))),j},r.unstable_shouldYield=U,r.unstable_wrapCallback=function(j){var Y=d;return function(){var G=d;d=Y;try{return j.apply(this,arguments)}finally{d=G}}}})(Ob);Lb.exports=Ob;var gH=Lb.exports;/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var yH=X,$i=gH;function we(r){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+r,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nb=new Set,wd={};function hc(r,e){Yh(r,e),Yh(r+"Capture",e)}function Yh(r,e){for(wd[r]=e,r=0;r<e.length;r++)Nb.add(e[r])}var ao=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j9=Object.prototype.hasOwnProperty,vH=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lC={},uC={};function _H(r){return j9.call(uC,r)?!0:j9.call(lC,r)?!1:vH.test(r)?uC[r]=!0:(lC[r]=!0,!1)}function xH(r,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function CH(r,e,t,n){if(e===null||typeof e>"u"||xH(r,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function qn(r,e,t,n,i,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=r,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var _n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){_n[r]=new qn(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var e=r[0];_n[e]=new qn(e,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){_n[r]=new qn(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_n[r]=new qn(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){_n[r]=new qn(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){_n[r]=new qn(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){_n[r]=new qn(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){_n[r]=new qn(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){_n[r]=new qn(r,5,!1,r.toLowerCase(),null,!1,!1)});var pv=/[\-:]([a-z])/g;function mv(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var e=r.replace(pv,mv);_n[e]=new qn(e,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var e=r.replace(pv,mv);_n[e]=new qn(e,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var e=r.replace(pv,mv);_n[e]=new qn(e,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){_n[r]=new qn(r,1,!1,r.toLowerCase(),null,!1,!1)});_n.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){_n[r]=new qn(r,1,!1,r.toLowerCase(),null,!0,!0)});function gv(r,e,t,n){var i=_n.hasOwnProperty(e)?_n[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(CH(e,t,i,n)&&(t=null),n||i===null?_H(e)&&(t===null?r.removeAttribute(e):r.setAttribute(e,""+t)):i.mustUseProperty?r[i.propertyName]=t===null?i.type===3?!1:"":t:(e=i.attributeName,n=i.attributeNamespace,t===null?r.removeAttribute(e):(i=i.type,t=i===3||i===4&&t===!0?"":""+t,n?r.setAttributeNS(n,e,t):r.setAttribute(e,t))))}var yo=yH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A2=Symbol.for("react.element"),ah=Symbol.for("react.portal"),oh=Symbol.for("react.fragment"),yv=Symbol.for("react.strict_mode"),V9=Symbol.for("react.profiler"),Bb=Symbol.for("react.provider"),Ub=Symbol.for("react.context"),vv=Symbol.for("react.forward_ref"),G9=Symbol.for("react.suspense"),W9=Symbol.for("react.suspense_list"),_v=Symbol.for("react.memo"),Ko=Symbol.for("react.lazy"),$b=Symbol.for("react.offscreen"),cC=Symbol.iterator;function y1(r){return r===null||typeof r!="object"?null:(r=cC&&r[cC]||r["@@iterator"],typeof r=="function"?r:null)}var xr=Object.assign,Gm;function O1(r){if(Gm===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);Gm=e&&e[1]||""}return`
35`+Gm+r}var Wm=!1;function Xm(r,e){if(!r||Wm)return"";Wm=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(r,[],e)}else{try{e.call()}catch(u){n=u}r.call(e.prototype)}else{try{throw Error()}catch(u){n=u}r()}}
vendor: 16,774 bytes, lines 35-38
35catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
36`),s=n.stack.split(`
37`),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=`
38`+i[a].replace(" at new "," at ");return r.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",r.displayName)),l}while(1<=a&&0<=o);break}}}finally{Wm=!1,Error.prepareStackTrace=t}return(r=r?r.displayName||r.name:"")?O1(r):""}function wH(r){switch(r.tag){case 5:return O1(r.type);case 16:return O1("Lazy");case 13:return O1("Suspense");case 19:return O1("SuspenseList");case 0:case 2:case 15:return r=Xm(r.type,!1),r;case 11:return r=Xm(r.type.render,!1),r;case 1:return r=Xm(r.type,!0),r;default:return""}}function X9(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case oh:return"Fragment";case ah:return"Portal";case V9:return"Profiler";case yv:return"StrictMode";case G9:return"Suspense";case W9:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Ub:return(r.displayName||"Context")+".Consumer";case Bb:return(r._context.displayName||"Context")+".Provider";case vv:var e=r.render;return r=r.displayName,r||(r=e.displayName||e.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case _v:return e=r.displayName||null,e!==null?e:X9(r.type)||"Memo";case Ko:e=r._payload,r=r._init;try{return X9(r(e))}catch{}}return null}function bH(r){var e=r.type;switch(r.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=e.render,r=r.displayName||r.name||"",e.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X9(e);case 8:return e===yv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function El(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function zb(r){var e=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function SH(r){var e=zb(r)?"checked":"value",t=Object.getOwnPropertyDescriptor(r.constructor.prototype,e),n=""+r[e];if(!r.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,s=t.set;return Object.defineProperty(r,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(r,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){r._valueTracker=null,delete r[e]}}}}function T2(r){r._valueTracker||(r._valueTracker=SH(r))}function jb(r){if(!r)return!1;var e=r._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return r&&(n=zb(r)?r.checked?"true":"false":r.value),r=n,r!==t?(e.setValue(r),!0):!1}function qp(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Y9(r,e){var t=e.checked;return xr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??r._wrapperState.initialChecked})}function hC(r,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=El(e.value!=null?e.value:t),r._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Vb(r,e){e=e.checked,e!=null&&gv(r,"checked",e,!1)}function Z9(r,e){Vb(r,e);var t=El(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&r.value===""||r.value!=t)&&(r.value=""+t):r.value!==""+t&&(r.value=""+t);else if(n==="submit"||n==="reset"){r.removeAttribute("value");return}e.hasOwnProperty("value")?q9(r,e.type,t):e.hasOwnProperty("defaultValue")&&q9(r,e.type,El(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(r.defaultChecked=!!e.defaultChecked)}function dC(r,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+r._wrapperState.initialValue,t||e===r.value||(r.value=e),r.defaultValue=e}t=r.name,t!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,t!==""&&(r.name=t)}function q9(r,e,t){(e!=="number"||qp(r.ownerDocument)!==r)&&(t==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+t&&(r.defaultValue=""+t))}var N1=Array.isArray;function Eh(r,e,t,n){if(r=r.options,e){e={};for(var i=0;i<t.length;i++)e["$"+t[i]]=!0;for(t=0;t<r.length;t++)i=e.hasOwnProperty("$"+r[t].value),r[t].selected!==i&&(r[t].selected=i),i&&n&&(r[t].defaultSelected=!0)}else{for(t=""+El(t),e=null,i=0;i<r.length;i++){if(r[i].value===t){r[i].selected=!0,n&&(r[i].defaultSelected=!0);return}e!==null||r[i].disabled||(e=r[i])}e!==null&&(e.selected=!0)}}function Q9(r,e){if(e.dangerouslySetInnerHTML!=null)throw Error(we(91));return xr({},e,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function fC(r,e){var t=e.value;if(t==null){if(t=e.children,e=e.defaultValue,t!=null){if(e!=null)throw Error(we(92));if(N1(t)){if(1<t.length)throw Error(we(93));t=t[0]}e=t}e==null&&(e=""),t=e}r._wrapperState={initialValue:El(t)}}function Gb(r,e){var t=El(e.value),n=El(e.defaultValue);t!=null&&(t=""+t,t!==r.value&&(r.value=t),e.defaultValue==null&&r.defaultValue!==t&&(r.defaultValue=t)),n!=null&&(r.defaultValue=""+n)}function pC(r){var e=r.textContent;e===r._wrapperState.initialValue&&e!==""&&e!==null&&(r.value=e)}function Wb(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function K9(r,e){return r==null||r==="http://www.w3.org/1999/xhtml"?Wb(e):r==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var E2,Xb=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction(function(){return r(e,t,n,i)})}:r}(function(r,e){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=e;else{for(E2=E2||document.createElement("div"),E2.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=E2.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;e.firstChild;)r.appendChild(e.firstChild)}});function bd(r,e){if(e){var t=r.firstChild;if(t&&t===r.lastChild&&t.nodeType===3){t.nodeValue=e;return}}r.textContent=e}var ed={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},AH=["Webkit","ms","Moz","O"];Object.keys(ed).forEach(function(r){AH.forEach(function(e){e=e+r.charAt(0).toUpperCase()+r.substring(1),ed[e]=ed[r]})});function Yb(r,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||ed.hasOwnProperty(r)&&ed[r]?(""+e).trim():e+"px"}function Zb(r,e){r=r.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,i=Yb(t,e[t],n);t==="float"&&(t="cssFloat"),n?r.setProperty(t,i):r[t]=i}}var TH=xr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function J9(r,e){if(e){if(TH[r]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(we(137,r));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(we(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(we(61))}if(e.style!=null&&typeof e.style!="object")throw Error(we(62))}}function eg(r,e){if(r.indexOf("-")===-1)return typeof e.is=="string";switch(r){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 tg=null;function xv(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var rg=null,Ph=null,Dh=null;function mC(r){if(r=wf(r)){if(typeof rg!="function")throw Error(we(280));var e=r.stateNode;e&&(e=x4(e),rg(r.stateNode,r.type,e))}}function qb(r){Ph?Dh?Dh.push(r):Dh=[r]:Ph=r}function Qb(){if(Ph){var r=Ph,e=Dh;if(Dh=Ph=null,mC(r),e)for(r=0;r<e.length;r++)mC(e[r])}}function Kb(r,e){return r(e)}function Jb(){}var Ym=!1;function e8(r,e,t){if(Ym)return r(e,t);Ym=!0;try{return Kb(r,e,t)}finally{Ym=!1,(Ph!==null||Dh!==null)&&(Jb(),Qb())}}function Sd(r,e){var t=r.stateNode;if(t===null)return null;var n=x4(t);if(n===null)return null;t=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(r=r.type,n=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!n;break e;default:r=!1}if(r)return null;if(t&&typeof t!="function")throw Error(we(231,e,typeof t));return t}var ng=!1;if(ao)try{var v1={};Object.defineProperty(v1,"passive",{get:function(){ng=!0}}),window.addEventListener("test",v1,v1),window.removeEventListener("test",v1,v1)}catch{ng=!1}function EH(r,e,t,n,i,s,a,o,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(t,u)}catch(h){this.onError(h)}}var td=!1,Qp=null,Kp=!1,ig=null,PH={onError:function(r){td=!0,Qp=r}};function DH(r,e,t,n,i,s,a,o,l){td=!1,Qp=null,EH.apply(PH,arguments)}function HH(r,e,t,n,i,s,a,o,l){if(DH.apply(this,arguments),td){if(td){var u=Qp;td=!1,Qp=null}else throw Error(we(198));Kp||(Kp=!0,ig=u)}}function dc(r){var e=r,t=r;if(r.alternate)for(;e.return;)e=e.return;else{r=e;do e=r,e.flags&4098&&(t=e.return),r=e.return;while(r)}return e.tag===3?t:null}function t8(r){if(r.tag===13){var e=r.memoizedState;if(e===null&&(r=r.alternate,r!==null&&(e=r.memoizedState)),e!==null)return e.dehydrated}return null}function gC(r){if(dc(r)!==r)throw Error(we(188))}function kH(r){var e=r.alternate;if(!e){if(e=dc(r),e===null)throw Error(we(188));return e!==r?null:r}for(var t=r,n=e;;){var i=t.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){t=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===t)return gC(i),r;if(s===n)return gC(i),e;s=s.sibling}throw Error(we(188))}if(t.return!==n.return)t=i,n=s;else{for(var a=!1,o=i.child;o;){if(o===t){a=!0,t=i,n=s;break}if(o===n){a=!0,n=i,t=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===t){a=!0,t=s,n=i;break}if(o===n){a=!0,n=s,t=i;break}o=o.sibling}if(!a)throw Error(we(189))}}if(t.alternate!==n)throw Error(we(190))}if(t.tag!==3)throw Error(we(188));return t.stateNode.current===t?r:e}function r8(r){return r=kH(r),r!==null?n8(r):null}function n8(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var e=n8(r);if(e!==null)return e;r=r.sibling}return null}var i8=$i.unstable_scheduleCallback,yC=$i.unstable_cancelCallback,IH=$i.unstable_shouldYield,MH=$i.unstable_requestPaint,kr=$i.unstable_now,RH=$i.unstable_getCurrentPriorityLevel,Cv=$i.unstable_ImmediatePriority,s8=$i.unstable_UserBlockingPriority,Jp=$i.unstable_NormalPriority,FH=$i.unstable_LowPriority,a8=$i.unstable_IdlePriority,g4=null,ga=null;function LH(r){if(ga&&typeof ga.onCommitFiberRoot=="function")try{ga.onCommitFiberRoot(g4,r,void 0,(r.current.flags&128)===128)}catch{}}var Us=Math.clz32?Math.clz32:BH,OH=Math.log,NH=Math.LN2;function BH(r){return r>>>=0,r===0?32:31-(OH(r)/NH|0)|0}var P2=64,D2=4194304;function B1(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function e3(r,e){var t=r.pendingLanes;if(t===0)return 0;var n=0,i=r.suspendedLanes,s=r.pingedLanes,a=t&268435455;if(a!==0){var o=a&~i;o!==0?n=B1(o):(s&=a,s!==0&&(n=B1(s)))}else a=t&~i,a!==0?n=B1(a):s!==0&&(n=B1(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=t&16),e=r.entangledLanes,e!==0)for(r=r.entanglements,e&=n;0<e;)t=31-Us(e),i=1<<t,n|=r[t],e&=~i;return n}function UH(r,e){switch(r){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $H(r,e){for(var t=r.suspendedLanes,n=r.pingedLanes,i=r.expirationTimes,s=r.pendingLanes;0<s;){var a=31-Us(s),o=1<<a,l=i[a];l===-1?(!(o&t)||o&n)&&(i[a]=UH(o,e)):l<=e&&(r.expiredLanes|=o),s&=~o}}function sg(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function o8(){var r=P2;return P2<<=1,!(P2&4194240)&&(P2=64),r}function Zm(r){for(var e=[],t=0;31>t;t++)e.push(r);return e}function xf(r,e,t){r.pendingLanes|=e,e!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,e=31-Us(e),r[e]=t}function zH(r,e){var t=r.pendingLanes&~e;r.pendingLanes=e,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=e,r.mutableReadLanes&=e,r.entangledLanes&=e,e=r.entanglements;var n=r.eventTimes;for(r=r.expirationTimes;0<t;){var i=31-Us(t),s=1<<i;e[i]=0,n[i]=-1,r[i]=-1,t&=~s}}function wv(r,e){var t=r.entangledLanes|=e;for(r=r.entanglements;t;){var n=31-Us(t),i=1<<n;i&e|r[n]&e&&(r[n]|=e),t&=~i}}var $t=0;function l8(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var u8,bv,c8,h8,d8,ag=!1,H2=[],gl=null,yl=null,vl=null,Ad=new Map,Td=new Map,tl=[],jH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vC(r,e){switch(r){case"focusin":case"focusout":gl=null;break;case"dragenter":case"dragleave":yl=null;break;case"mouseover":case"mouseout":vl=null;break;case"pointerover":case"pointerout":Ad.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Td.delete(e.pointerId)}}function _1(r,e,t,n,i,s){return r===null||r.nativeEvent!==s?(r={blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=wf(e),e!==null&&bv(e)),r):(r.eventSystemFlags|=n,e=r.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),r)}function VH(r,e,t,n,i){switch(e){case"focusin":return gl=_1(gl,r,e,t,n,i),!0;case"dragenter":return yl=_1(yl,r,e,t,n,i),!0;case"mouseover":return vl=_1(vl,r,e,t,n,i),!0;case"pointerover":var s=i.pointerId;return Ad.set(s,_1(Ad.get(s)||null,r,e,t,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Td.set(s,_1(Td.get(s)||null,r,e,t,n,i)),!0}return!1}function f8(r){var e=Mu(r.target);if(e!==null){var t=dc(e);if(t!==null){if(e=t.tag,e===13){if(e=t8(t),e!==null){r.blockedOn=e,d8(r.priority,function(){c8(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){r.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}r.blockedOn=null}function bp(r){if(r.blockedOn!==null)return!1;for(var e=r.targetContainers;0<e.length;){var t=og(r.domEventName,r.eventSystemFlags,e[0],r.nativeEvent);if(t===null){t=r.nativeEvent;var n=new t.constructor(t.type,t);tg=n,t.target.dispatchEvent(n),tg=null}else return e=wf(t),e!==null&&bv(e),r.blockedOn=t,!1;e.shift()}return!0}function _C(r,e,t){bp(r)&&t.delete(e)}function GH(){ag=!1,gl!==null&&bp(gl)&&(gl=null),yl!==null&&bp(yl)&&(yl=null),vl!==null&&bp(vl)&&(vl=null),Ad.forEach(_C),Td.forEach(_C)}
vendor: 11,500 bytes, line 38
38function x1(r,e){r.blockedOn===e&&(r.blockedOn=null,ag||(ag=!0,$i.unstable_scheduleCallback($i.unstable_NormalPriority,GH)))}function Ed(r){function e(i){return x1(i,r)}if(0<H2.length){x1(H2[0],r);for(var t=1;t<H2.length;t++){var n=H2[t];n.blockedOn===r&&(n.blockedOn=null)}}for(gl!==null&&x1(gl,r),yl!==null&&x1(yl,r),vl!==null&&x1(vl,r),Ad.forEach(e),Td.forEach(e),t=0;t<tl.length;t++)n=tl[t],n.blockedOn===r&&(n.blockedOn=null);for(;0<tl.length&&(t=tl[0],t.blockedOn===null);)f8(t),t.blockedOn===null&&tl.shift()}var Hh=yo.ReactCurrentBatchConfig,t3=!0;function WH(r,e,t,n){var i=$t,s=Hh.transition;Hh.transition=null;try{$t=1,Sv(r,e,t,n)}finally{$t=i,Hh.transition=s}}function XH(r,e,t,n){var i=$t,s=Hh.transition;Hh.transition=null;try{$t=4,Sv(r,e,t,n)}finally{$t=i,Hh.transition=s}}function Sv(r,e,t,n){if(t3){var i=og(r,e,t,n);if(i===null)s7(r,e,n,r3,t),vC(r,n);else if(VH(i,r,e,t,n))n.stopPropagation();else if(vC(r,n),e&4&&-1<jH.indexOf(r)){for(;i!==null;){var s=wf(i);if(s!==null&&u8(s),s=og(r,e,t,n),s===null&&s7(r,e,n,r3,t),s===i)break;i=s}i!==null&&n.stopPropagation()}else s7(r,e,n,null,t)}}var r3=null;function og(r,e,t,n){if(r3=null,r=xv(n),r=Mu(r),r!==null)if(e=dc(r),e===null)r=null;else if(t=e.tag,t===13){if(r=t8(e),r!==null)return r;r=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;r=null}else e!==r&&(r=null);return r3=r,null}function p8(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(RH()){case Cv:return 1;case s8:return 4;case Jp:case FH:return 16;case a8:return 536870912;default:return 16}default:return 16}}var al=null,Av=null,Sp=null;function m8(){if(Sp)return Sp;var r,e=Av,t=e.length,n,i="value"in al?al.value:al.textContent,s=i.length;for(r=0;r<t&&e[r]===i[r];r++);var a=t-r;for(n=1;n<=a&&e[t-n]===i[s-n];n++);return Sp=i.slice(r,1<n?1-n:void 0)}function Ap(r){var e=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&e===13&&(r=13)):r=e,r===10&&(r=13),32<=r||r===13?r:0}function k2(){return!0}function xC(){return!1}function Gi(r){function e(t,n,i,s,a){this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],this[o]=t?t(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?k2:xC,this.isPropagationStopped=xC,this}return xr(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=k2)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=k2)},persist:function(){},isPersistent:k2}),e}var x0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tv=Gi(x0),Cf=xr({},x0,{view:0,detail:0}),YH=Gi(Cf),qm,Qm,C1,y4=xr({},Cf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ev,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==C1&&(C1&&r.type==="mousemove"?(qm=r.screenX-C1.screenX,Qm=r.screenY-C1.screenY):Qm=qm=0,C1=r),qm)},movementY:function(r){return"movementY"in r?r.movementY:Qm}}),CC=Gi(y4),ZH=xr({},y4,{dataTransfer:0}),qH=Gi(ZH),QH=xr({},Cf,{relatedTarget:0}),Km=Gi(QH),KH=xr({},x0,{animationName:0,elapsedTime:0,pseudoElement:0}),JH=Gi(KH),ek=xr({},x0,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),tk=Gi(ek),rk=xr({},x0,{data:0}),wC=Gi(rk),nk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ik={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"},sk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ak(r){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(r):(r=sk[r])?!!e[r]:!1}function Ev(){return ak}var ok=xr({},Cf,{key:function(r){if(r.key){var e=nk[r.key]||r.key;if(e!=="Unidentified")return e}return r.type==="keypress"?(r=Ap(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ik[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ev,charCode:function(r){return r.type==="keypress"?Ap(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ap(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),lk=Gi(ok),uk=xr({},y4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bC=Gi(uk),ck=xr({},Cf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ev}),hk=Gi(ck),dk=xr({},x0,{propertyName:0,elapsedTime:0,pseudoElement:0}),fk=Gi(dk),pk=xr({},y4,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),mk=Gi(pk),gk=[9,13,27,32],Pv=ao&&"CompositionEvent"in window,rd=null;ao&&"documentMode"in document&&(rd=document.documentMode);var yk=ao&&"TextEvent"in window&&!rd,g8=ao&&(!Pv||rd&&8<rd&&11>=rd),SC=" ",AC=!1;function y8(r,e){switch(r){case"keyup":return gk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v8(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var lh=!1;function vk(r,e){switch(r){case"compositionend":return v8(e);case"keypress":return e.which!==32?null:(AC=!0,SC);case"textInput":return r=e.data,r===SC&&AC?null:r;default:return null}}function _k(r,e){if(lh)return r==="compositionend"||!Pv&&y8(r,e)?(r=m8(),Sp=Av=al=null,lh=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return g8&&e.locale!=="ko"?null:e.data;default:return null}}var xk={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 TC(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e==="input"?!!xk[r.type]:e==="textarea"}function _8(r,e,t,n){qb(n),e=n3(e,"onChange"),0<e.length&&(t=new Tv("onChange","change",null,t,n),r.push({event:t,listeners:e}))}var nd=null,Pd=null;function Ck(r){H8(r,0)}function v4(r){var e=hh(r);if(jb(e))return r}function wk(r,e){if(r==="change")return e}var x8=!1;if(ao){var Jm;if(ao){var e7="oninput"in document;if(!e7){var EC=document.createElement("div");EC.setAttribute("oninput","return;"),e7=typeof EC.oninput=="function"}Jm=e7}else Jm=!1;x8=Jm&&(!document.documentMode||9<document.documentMode)}function PC(){nd&&(nd.detachEvent("onpropertychange",C8),Pd=nd=null)}function C8(r){if(r.propertyName==="value"&&v4(Pd)){var e=[];_8(e,Pd,r,xv(r)),e8(Ck,e)}}function bk(r,e,t){r==="focusin"?(PC(),nd=e,Pd=t,nd.attachEvent("onpropertychange",C8)):r==="focusout"&&PC()}function Sk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return v4(Pd)}function Ak(r,e){if(r==="click")return v4(e)}function Tk(r,e){if(r==="input"||r==="change")return v4(e)}function Ek(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}var Gs=typeof Object.is=="function"?Object.is:Ek;function Dd(r,e){if(Gs(r,e))return!0;if(typeof r!="object"||r===null||typeof e!="object"||e===null)return!1;var t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(n=0;n<t.length;n++){var i=t[n];if(!j9.call(e,i)||!Gs(r[i],e[i]))return!1}return!0}function DC(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function HC(r,e){var t=DC(r);r=0;for(var n;t;){if(t.nodeType===3){if(n=r+t.textContent.length,r<=e&&n>=e)return{node:t,offset:e-r};r=n}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=DC(t)}}function w8(r,e){return r&&e?r===e?!0:r&&r.nodeType===3?!1:e&&e.nodeType===3?w8(r,e.parentNode):"contains"in r?r.contains(e):r.compareDocumentPosition?!!(r.compareDocumentPosition(e)&16):!1:!1}function b8(){for(var r=window,e=qp();e instanceof r.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)r=e.contentWindow;else break;e=qp(r.document)}return e}function Dv(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e&&(e==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||e==="textarea"||r.contentEditable==="true")}function Pk(r){var e=b8(),t=r.focusedElem,n=r.selectionRange;if(e!==t&&t&&t.ownerDocument&&w8(t.ownerDocument.documentElement,t)){if(n!==null&&Dv(t)){if(e=n.start,r=n.end,r===void 0&&(r=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(r,t.value.length);else if(r=(e=t.ownerDocument||document)&&e.defaultView||window,r.getSelection){r=r.getSelection();var i=t.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!r.extend&&s>n&&(i=n,n=s,s=i),i=HC(t,s);var a=HC(t,n);i&&a&&(r.rangeCount!==1||r.anchorNode!==i.node||r.anchorOffset!==i.offset||r.focusNode!==a.node||r.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),r.removeAllRanges(),s>n?(r.addRange(e),r.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),r.addRange(e)))}}for(e=[],r=t;r=r.parentNode;)r.nodeType===1&&e.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)r=e[t],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Dk=ao&&"documentMode"in document&&11>=document.documentMode,uh=null,lg=null,id=null,ug=!1;
vendor: 4,703 bytes, line 38
38function kC(r,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ug||uh==null||uh!==qp(n)||(n=uh,"selectionStart"in n&&Dv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),id&&Dd(id,n)||(id=n,n=n3(lg,"onSelect"),0<n.length&&(e=new Tv("onSelect","select",null,e,t),r.push({event:e,listeners:n}),e.target=uh)))}function I2(r,e){var t={};return t[r.toLowerCase()]=e.toLowerCase(),t["Webkit"+r]="webkit"+e,t["Moz"+r]="moz"+e,t}var ch={animationend:I2("Animation","AnimationEnd"),animationiteration:I2("Animation","AnimationIteration"),animationstart:I2("Animation","AnimationStart"),transitionend:I2("Transition","TransitionEnd")},t7={},S8={};ao&&(S8=document.createElement("div").style,"AnimationEvent"in window||(delete ch.animationend.animation,delete ch.animationiteration.animation,delete ch.animationstart.animation),"TransitionEvent"in window||delete ch.transitionend.transition);function _4(r){if(t7[r])return t7[r];if(!ch[r])return r;var e=ch[r],t;for(t in e)if(e.hasOwnProperty(t)&&t in S8)return t7[r]=e[t];return r}var A8=_4("animationend"),T8=_4("animationiteration"),E8=_4("animationstart"),P8=_4("transitionend"),D8=new Map,IC="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Bl(r,e){D8.set(r,e),hc(e,[r])}for(var r7=0;r7<IC.length;r7++){var n7=IC[r7],Hk=n7.toLowerCase(),kk=n7[0].toUpperCase()+n7.slice(1);Bl(Hk,"on"+kk)}Bl(A8,"onAnimationEnd");Bl(T8,"onAnimationIteration");Bl(E8,"onAnimationStart");Bl("dblclick","onDoubleClick");Bl("focusin","onFocus");Bl("focusout","onBlur");Bl(P8,"onTransitionEnd");Yh("onMouseEnter",["mouseout","mouseover"]);Yh("onMouseLeave",["mouseout","mouseover"]);Yh("onPointerEnter",["pointerout","pointerover"]);Yh("onPointerLeave",["pointerout","pointerover"]);hc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hc("onBeforeInput",["compositionend","keypress","textInput","paste"]);hc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var U1="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(" "),Ik=new Set("cancel close invalid load scroll toggle".split(" ").concat(U1));function MC(r,e,t){var n=r.type||"unknown-event";r.currentTarget=t,HH(n,e,void 0,r),r.currentTarget=null}function H8(r,e){e=(e&4)!==0;for(var t=0;t<r.length;t++){var n=r[t],i=n.event;n=n.listeners;e:{var s=void 0;if(e)for(var a=n.length-1;0<=a;a--){var o=n[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;MC(i,o,u),s=l}else for(a=0;a<n.length;a++){if(o=n[a],l=o.instance,u=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;MC(i,o,u),s=l}}}if(Kp)throw r=ig,Kp=!1,ig=null,r}function rr(r,e){var t=e[pg];t===void 0&&(t=e[pg]=new Set);var n=r+"__bubble";t.has(n)||(k8(e,r,2,!1),t.add(n))}function i7(r,e,t){var n=0;e&&(n|=4),k8(t,r,n,e)}var M2="_reactListening"+Math.random().toString(36).slice(2);function Hd(r){if(!r[M2]){r[M2]=!0,Nb.forEach(function(t){t!=="selectionchange"&&(Ik.has(t)||i7(t,!1,r),i7(t,!0,r))});var e=r.nodeType===9?r:r.ownerDocument;e===null||e[M2]||(e[M2]=!0,i7("selectionchange",!1,e))}}function k8(r,e,t,n){switch(p8(e)){case 1:var i=WH;break;case 4:i=XH;break;default:i=Sv}t=i.bind(null,e,t,r),i=void 0,!ng||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?r.addEventListener(e,t,{capture:!0,passive:i}):r.addEventListener(e,t,!0):i!==void 0?r.addEventListener(e,t,{passive:i}):r.addEventListener(e,t,!1)}function s7(r,e,t,n,i){var s=n;
vendor: 22,833 bytes, lines 38-39
38if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var o=n.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;o!==null;){if(a=Mu(o),a===null)return;if(l=a.tag,l===5||l===6){n=s=a;continue e}o=o.parentNode}}n=n.return}e8(function(){var u=s,h=xv(t),c=[];e:{var d=D8.get(r);if(d!==void 0){var f=Tv,g=r;switch(r){case"keypress":if(Ap(t)===0)break e;case"keydown":case"keyup":f=lk;break;case"focusin":g="focus",f=Km;break;case"focusout":g="blur",f=Km;break;case"beforeblur":case"afterblur":f=Km;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=CC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=qH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=hk;break;case A8:case T8:case E8:f=JH;break;case P8:f=fk;break;case"scroll":f=YH;break;case"wheel":f=mk;break;case"copy":case"cut":case"paste":f=tk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=bC}var y=(e&4)!==0,v=!y&&r==="scroll",_=y?d!==null?d+"Capture":null:d;y=[];for(var x=u,w;x!==null;){w=x;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,_!==null&&(S=Sd(x,_),S!=null&&y.push(kd(x,S,w)))),v)break;x=x.return}0<y.length&&(d=new f(d,g,null,t,h),c.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=r==="mouseover"||r==="pointerover",f=r==="mouseout"||r==="pointerout",d&&t!==tg&&(g=t.relatedTarget||t.fromElement)&&(Mu(g)||g[oo]))break e;if((f||d)&&(d=h.window===h?h:(d=h.ownerDocument)?d.defaultView||d.parentWindow:window,f?(g=t.relatedTarget||t.toElement,f=u,g=g?Mu(g):null,g!==null&&(v=dc(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=u),f!==g)){if(y=CC,S="onMouseLeave",_="onMouseEnter",x="mouse",(r==="pointerout"||r==="pointerover")&&(y=bC,S="onPointerLeave",_="onPointerEnter",x="pointer"),v=f==null?d:hh(f),w=g==null?d:hh(g),d=new y(S,x+"leave",f,t,h),d.target=v,d.relatedTarget=w,S=null,Mu(h)===u&&(y=new y(_,x+"enter",g,t,h),y.target=w,y.relatedTarget=v,S=y),v=S,f&&g)t:{for(y=f,_=g,x=0,w=y;w;w=jc(w))x++;for(w=0,S=_;S;S=jc(S))w++;for(;0<x-w;)y=jc(y),x--;for(;0<w-x;)_=jc(_),w--;for(;x--;){if(y===_||_!==null&&y===_.alternate)break t;y=jc(y),_=jc(_)}y=null}else y=null;f!==null&&RC(c,d,f,y,!1),g!==null&&v!==null&&RC(c,v,g,y,!0)}}e:{if(d=u?hh(u):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var b=wk;else if(TC(d))if(x8)b=Tk;else{b=Sk;var E=bk}else(f=d.nodeName)&&f.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=Ak);if(b&&(b=b(r,u))){_8(c,b,t,h);break e}E&&E(r,d,u),r==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&q9(d,"number",d.value)}switch(E=u?hh(u):window,r){case"focusin":(TC(E)||E.contentEditable==="true")&&(uh=E,lg=u,id=null);break;case"focusout":id=lg=uh=null;break;case"mousedown":ug=!0;break;case"contextmenu":case"mouseup":case"dragend":ug=!1,kC(c,t,h);break;case"selectionchange":if(Dk)break;case"keydown":case"keyup":kC(c,t,h)}var D;if(Pv)e:{switch(r){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else lh?y8(r,t)&&(P="onCompositionEnd"):r==="keydown"&&t.keyCode===229&&(P="onCompositionStart");P&&(g8&&t.locale!=="ko"&&(lh||P!=="onCompositionStart"?P==="onCompositionEnd"&&lh&&(D=m8()):(al=h,Av="value"in al?al.value:al.textContent,lh=!0)),E=n3(u,P),0<E.length&&(P=new wC(P,r,null,t,h),c.push({event:P,listeners:E}),D?P.data=D:(D=v8(t),D!==null&&(P.data=D)))),(D=yk?vk(r,t):_k(r,t))&&(u=n3(u,"onBeforeInput"),0<u.length&&(h=new wC("onBeforeInput","beforeinput",null,t,h),c.push({event:h,listeners:u}),h.data=D))}H8(c,e)})}function kd(r,e,t){return{instance:r,listener:e,currentTarget:t}}function n3(r,e){for(var t=e+"Capture",n=[];r!==null;){var i=r,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Sd(r,t),s!=null&&n.unshift(kd(r,s,i)),s=Sd(r,e),s!=null&&n.push(kd(r,s,i))),r=r.return}return n}function jc(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function RC(r,e,t,n,i){for(var s=e._reactName,a=[];t!==null&&t!==n;){var o=t,l=o.alternate,u=o.stateNode;if(l!==null&&l===n)break;o.tag===5&&u!==null&&(o=u,i?(l=Sd(t,s),l!=null&&a.unshift(kd(t,l,o))):i||(l=Sd(t,s),l!=null&&a.push(kd(t,l,o)))),t=t.return}a.length!==0&&r.push({event:e,listeners:a})}var Mk=/\r\n?/g,Rk=/\u0000|\uFFFD/g;function FC(r){return(typeof r=="string"?r:""+r).replace(Mk,`
39`).replace(Rk,"")}function R2(r,e,t){if(e=FC(e),FC(r)!==e&&t)throw Error(we(425))}function i3(){}var cg=null,hg=null;function dg(r,e){return r==="textarea"||r==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var fg=typeof setTimeout=="function"?setTimeout:void 0,Fk=typeof clearTimeout=="function"?clearTimeout:void 0,LC=typeof Promise=="function"?Promise:void 0,Lk=typeof queueMicrotask=="function"?queueMicrotask:typeof LC<"u"?function(r){return LC.resolve(null).then(r).catch(Ok)}:fg;function Ok(r){setTimeout(function(){throw r})}function a7(r,e){var t=e,n=0;do{var i=t.nextSibling;if(r.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(n===0){r.removeChild(i),Ed(e);return}n--}else t!=="$"&&t!=="$?"&&t!=="$!"||n++;t=i}while(t);Ed(e)}function _l(r){for(;r!=null;r=r.nextSibling){var e=r.nodeType;if(e===1||e===3)break;if(e===8){if(e=r.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return r}function OC(r){r=r.previousSibling;for(var e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return r;e--}else t==="/$"&&e++}r=r.previousSibling}return null}var C0=Math.random().toString(36).slice(2),ha="__reactFiber$"+C0,Id="__reactProps$"+C0,oo="__reactContainer$"+C0,pg="__reactEvents$"+C0,Nk="__reactListeners$"+C0,Bk="__reactHandles$"+C0;function Mu(r){var e=r[ha];if(e)return e;for(var t=r.parentNode;t;){if(e=t[oo]||t[ha]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(r=OC(r);r!==null;){if(t=r[ha])return t;r=OC(r)}return e}r=t,t=r.parentNode}return null}function wf(r){return r=r[ha]||r[oo],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function hh(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(we(33))}function x4(r){return r[Id]||null}var mg=[],dh=-1;function Ul(r){return{current:r}}function sr(r){0>dh||(r.current=mg[dh],mg[dh]=null,dh--)}function Jt(r,e){dh++,mg[dh]=r.current,r.current=e}var Pl={},Rn=Ul(Pl),ui=Ul(!1),Yu=Pl;function Zh(r,e){var t=r.type.contextTypes;if(!t)return Pl;var n=r.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in t)i[s]=e[s];return n&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=e,r.__reactInternalMemoizedMaskedChildContext=i),i}function ci(r){return r=r.childContextTypes,r!=null}function s3(){sr(ui),sr(Rn)}function NC(r,e,t){if(Rn.current!==Pl)throw Error(we(168));Jt(Rn,e),Jt(ui,t)}function I8(r,e,t){var n=r.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(we(108,bH(r)||"Unknown",i));return xr({},t,n)}function a3(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Pl,Yu=Rn.current,Jt(Rn,r),Jt(ui,ui.current),!0}function BC(r,e,t){var n=r.stateNode;if(!n)throw Error(we(169));t?(r=I8(r,e,Yu),n.__reactInternalMemoizedMergedChildContext=r,sr(ui),sr(Rn),Jt(Rn,r)):sr(ui),Jt(ui,t)}var Za=null,C4=!1,o7=!1;function M8(r){Za===null?Za=[r]:Za.push(r)}function Uk(r){C4=!0,M8(r)}function $l(){if(!o7&&Za!==null){o7=!0;var r=0,e=$t;try{var t=Za;for($t=1;r<t.length;r++){var n=t[r];do n=n(!0);while(n!==null)}Za=null,C4=!1}catch(i){throw Za!==null&&(Za=Za.slice(r+1)),i8(Cv,$l),i}finally{$t=e,o7=!1}}return null}var fh=[],ph=0,o3=null,l3=0,is=[],ss=0,Zu=null,Ka=1,Ja="";function gu(r,e){fh[ph++]=l3,fh[ph++]=o3,o3=r,l3=e}function R8(r,e,t){is[ss++]=Ka,is[ss++]=Ja,is[ss++]=Zu,Zu=r;var n=Ka;r=Ja;var i=32-Us(n)-1;n&=~(1<<i),t+=1;var s=32-Us(e)+i;if(30<s){var a=i-i%5;s=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Ka=1<<32-Us(e)+i|t<<i|n,Ja=s+r}else Ka=1<<s|t<<i|n,Ja=r}function Hv(r){r.return!==null&&(gu(r,1),R8(r,1,0))}function kv(r){for(;r===o3;)o3=fh[--ph],fh[ph]=null,l3=fh[--ph],fh[ph]=null;for(;r===Zu;)Zu=is[--ss],is[ss]=null,Ja=is[--ss],is[ss]=null,Ka=is[--ss],is[ss]=null}var Oi=null,Fi=null,lr=!1,Ms=null;function F8(r,e){var t=as(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=r,e=r.deletions,e===null?(r.deletions=[t],r.flags|=16):e.push(t)}function UC(r,e){switch(r.tag){case 5:var t=r.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(r.stateNode=e,Oi=r,Fi=_l(e.firstChild),!0):!1;case 6:return e=r.pendingProps===""||e.nodeType!==3?null:e,e!==null?(r.stateNode=e,Oi=r,Fi=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=Zu!==null?{id:Ka,overflow:Ja}:null,r.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=as(18,null,null,0),t.stateNode=e,t.return=r,r.child=t,Oi=r,Fi=null,!0):!1;default:return!1}}function gg(r){return(r.mode&1)!==0&&(r.flags&128)===0}function yg(r){if(lr){var e=Fi;if(e){var t=e;if(!UC(r,e)){if(gg(r))throw Error(we(418));e=_l(t.nextSibling);var n=Oi;e&&UC(r,e)?F8(n,t):(r.flags=r.flags&-4097|2,lr=!1,Oi=r)}}else{if(gg(r))throw Error(we(418));r.flags=r.flags&-4097|2,lr=!1,Oi=r}}}function $C(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Oi=r}function F2(r){if(r!==Oi)return!1;if(!lr)return $C(r),lr=!0,!1;var e;if((e=r.tag!==3)&&!(e=r.tag!==5)&&(e=r.type,e=e!=="head"&&e!=="body"&&!dg(r.type,r.memoizedProps)),e&&(e=Fi)){if(gg(r))throw L8(),Error(we(418));for(;e;)F8(r,e),e=_l(e.nextSibling)}if($C(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(we(317));e:{for(r=r.nextSibling,e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="/$"){if(e===0){Fi=_l(r.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}r=r.nextSibling}Fi=null}}else Fi=Oi?_l(r.stateNode.nextSibling):null;return!0}function L8(){for(var r=Fi;r;)r=_l(r.nextSibling)}function qh(){Fi=Oi=null,lr=!1}function Iv(r){Ms===null?Ms=[r]:Ms.push(r)}var $k=yo.ReactCurrentBatchConfig;function w1(r,e,t){if(r=t.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(we(309));var n=t.stateNode}if(!n)throw Error(we(147,r));var i=n,s=""+r;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(a){var o=i.refs;a===null?delete o[s]:o[s]=a},e._stringRef=s,e)}if(typeof r!="string")throw Error(we(284));if(!t._owner)throw Error(we(290,r))}return r}function L2(r,e){throw r=Object.prototype.toString.call(e),Error(we(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r))}function zC(r){var e=r._init;return e(r._payload)}function O8(r){function e(_,x){if(r){var w=_.deletions;w===null?(_.deletions=[x],_.flags|=16):w.push(x)}}function t(_,x){if(!r)return null;for(;x!==null;)e(_,x),x=x.sibling;return null}function n(_,x){for(_=new Map;x!==null;)x.key!==null?_.set(x.key,x):_.set(x.index,x),x=x.sibling;return _}function i(_,x){return _=bl(_,x),_.index=0,_.sibling=null,_}function s(_,x,w){return _.index=w,r?(w=_.alternate,w!==null?(w=w.index,w<x?(_.flags|=2,x):w):(_.flags|=2,x)):(_.flags|=1048576,x)}function a(_){return r&&_.alternate===null&&(_.flags|=2),_}function o(_,x,w,S){return x===null||x.tag!==6?(x=p7(w,_.mode,S),x.return=_,x):(x=i(x,w),x.return=_,x)}function l(_,x,w,S){var b=w.type;return b===oh?h(_,x,w.props.children,S,w.key):x!==null&&(x.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ko&&zC(b)===x.type)?(S=i(x,w.props),S.ref=w1(_,x,w),S.return=_,S):(S=Ip(w.type,w.key,w.props,null,_.mode,S),S.ref=w1(_,x,w),S.return=_,S)}function u(_,x,w,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=m7(w,_.mode,S),x.return=_,x):(x=i(x,w.children||[]),x.return=_,x)}function h(_,x,w,S,b){return x===null||x.tag!==7?(x=Uu(w,_.mode,S,b),x.return=_,x):(x=i(x,w),x.return=_,x)}function c(_,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=p7(""+x,_.mode,w),x.return=_,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case A2:return w=Ip(x.type,x.key,x.props,null,_.mode,w),w.ref=w1(_,null,x),w.return=_,w;case ah:return x=m7(x,_.mode,w),x.return=_,x;case Ko:var S=x._init;return c(_,S(x._payload),w)}if(N1(x)||y1(x))return x=Uu(x,_.mode,w,null),x.return=_,x;L2(_,x)}return null}function d(_,x,w,S){var b=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return b!==null?null:o(_,x,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A2:return w.key===b?l(_,x,w,S):null;case ah:return w.key===b?u(_,x,w,S):null;case Ko:return b=w._init,d(_,x,b(w._payload),S)}if(N1(w)||y1(w))return b!==null?null:h(_,x,w,S,null);L2(_,w)}return null}function f(_,x,w,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return _=_.get(w)||null,o(x,_,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case A2:return _=_.get(S.key===null?w:S.key)||null,l(x,_,S,b);case ah:return _=_.get(S.key===null?w:S.key)||null,u(x,_,S,b);case Ko:var E=S._init;return f(_,x,w,E(S._payload),b)}if(N1(S)||y1(S))return _=_.get(w)||null,h(x,_,S,b,null);L2(x,S)}return null}function g(_,x,w,S){for(var b=null,E=null,D=x,P=x=0,I=null;D!==null&&P<w.length;P++){D.index>P?(I=D,D=null):I=D.sibling;var R=d(_,D,w[P],S);if(R===null){D===null&&(D=I);break}r&&D&&R.alternate===null&&e(_,D),x=s(R,x,P),E===null?b=R:E.sibling=R,E=R,D=I}if(P===w.length)return t(_,D),lr&&gu(_,P),b;if(D===null){for(;P<w.length;P++)D=c(_,w[P],S),D!==null&&(x=s(D,x,P),E===null?b=D:E.sibling=D,E=D);return lr&&gu(_,P),b}for(D=n(_,D);P<w.length;P++)I=f(D,_,P,w[P],S),I!==null&&(r&&I.alternate!==null&&D.delete(I.key===null?P:I.key),x=s(I,x,P),E===null?b=I:E.sibling=I,E=I);return r&&D.forEach(function(U){return e(_,U)}),lr&&gu(_,P),b}function y(_,x,w,S){var b=y1(w);if(typeof b!="function")throw Error(we(150));if(w=b.call(w),w==null)throw Error(we(151));for(var E=b=null,D=x,P=x=0,I=null,R=w.next();D!==null&&!R.done;P++,R=w.next()){D.index>P?(I=D,D=null):I=D.sibling;var U=d(_,D,R.value,S);if(U===null){D===null&&(D=I);break}r&&D&&U.alternate===null&&e(_,D),x=s(U,x,P),E===null?b=U:E.sibling=U,E=U,D=I}if(R.done)return t(_,D),lr&&gu(_,P),b;if(D===null){for(;!R.done;P++,R=w.next())R=c(_,R.value,S),R!==null&&(x=s(R,x,P),E===null?b=R:E.sibling=R,E=R);return lr&&gu(_,P),b}for(D=n(_,D);!R.done;P++,R=w.next())R=f(D,_,P,R.value,S),R!==null&&(r&&R.alternate!==null&&D.delete(R.key===null?P:R.key),x=s(R,x,P),E===null?b=R:E.sibling=R,E=R);return r&&D.forEach(function(N){return e(_,N)}),lr&&gu(_,P),b}function v(_,x,w,S){if(typeof w=="object"&&w!==null&&w.type===oh&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case A2:e:{for(var b=w.key,E=x;E!==null;){if(E.key===b){if(b=w.type,b===oh){if(E.tag===7){t(_,E.sibling),x=i(E,w.props.children),x.return=_,_=x;break e}}else if(E.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ko&&zC(b)===E.type){t(_,E.sibling),x=i(E,w.props),x.ref=w1(_,E,w),x.return=_,_=x;break e}t(_,E);break}else e(_,E);E=E.sibling}w.type===oh?(x=Uu(w.props.children,_.mode,S,w.key),x.return=_,_=x):(S=Ip(w.type,w.key,w.props,null,_.mode,S),S.ref=w1(_,x,w),S.return=_,_=S)}return a(_);case ah:e:{for(E=w.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){t(_,x.sibling),x=i(x,w.children||[]),x.return=_,_=x;break e}else{t(_,x);break}else e(_,x);x=x.sibling}x=m7(w,_.mode,S),x.return=_,_=x}return a(_);case Ko:return E=w._init,v(_,x,E(w._payload),S)}if(N1(w))return g(_,x,w,S);if(y1(w))return y(_,x,w,S);L2(_,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(t(_,x.sibling),x=i(x,w),x.return=_,_=x):(t(_,x),x=p7(w,_.mode,S),x.return=_,_=x),a(_)):t(_,x)}return v}var Qh=O8(!0),N8=O8(!1),u3=Ul(null),c3=null,mh=null,Mv=null;function Rv(){Mv=mh=c3=null}function Fv(r){var e=u3.current;sr(u3),r._currentValue=e}function vg(r,e,t){for(;r!==null;){var n=r.alternate;if((r.childLanes&e)!==e?(r.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),r===t)break;r=r.return}}function kh(r,e){c3=r,Mv=mh=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&e&&(li=!0),r.firstContext=null)}function ps(r){var e=r._currentValue;if(Mv!==r)if(r={context:r,memoizedValue:e,next:null},mh===null){if(c3===null)throw Error(we(308));mh=r,c3.dependencies={lanes:0,firstContext:r}}else mh=mh.next=r;return e}var Ru=null;function Lv(r){Ru===null?Ru=[r]:Ru.push(r)}function B8(r,e,t,n){var i=e.interleaved;return i===null?(t.next=t,Lv(e)):(t.next=i.next,i.next=t),e.interleaved=t,lo(r,n)}function lo(r,e){r.lanes|=e;var t=r.alternate;for(t!==null&&(t.lanes|=e),t=r,r=r.return;r!==null;)r.childLanes|=e,t=r.alternate,t!==null&&(t.childLanes|=e),t=r,r=r.return;return t.tag===3?t.stateNode:null}var Jo=!1;function Ov(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U8(r,e){r=r.updateQueue,e.updateQueue===r&&(e.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function ro(r,e){return{eventTime:r,lane:e,tag:0,payload:null,callback:null,next:null}}function xl(r,e,t){var n=r.updateQueue;if(n===null)return null;if(n=n.shared,kt&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,lo(r,t)}return i=n.interleaved,i===null?(e.next=e,Lv(n)):(e.next=i.next,i.next=e),n.interleaved=e,lo(r,t)}function Tp(r,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var n=e.lanes;n&=r.pendingLanes,t|=n,e.lanes=t,wv(r,t)}}function jC(r,e){var t=r.updateQueue,n=r.alternate;if(n!==null&&(n=n.updateQueue,t===n)){var i=null,s=null;if(t=t.firstBaseUpdate,t!==null){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};s===null?i=s=a:s=s.next=a,t=t.next}while(t!==null);s===null?i=s=e:s=s.next=e}else i=s=e;t={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},r.updateQueue=t;return}r=t.lastBaseUpdate,r===null?t.firstBaseUpdate=e:r.next=e,t.lastBaseUpdate=e}function h3(r,e,t,n){var i=r.updateQueue;Jo=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,a===null?s=u:a.next=u,a=l;var h=r.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==a&&(o===null?h.firstBaseUpdate=u:o.next=u,h.lastBaseUpdate=l))}if(s!==null){var c=i.baseState;a=0,h=u=l=null,o=s;do{var d=o.lane,f=o.eventTime;if((n&d)===d){h!==null&&(h=h.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var g=r,y=o;switch(d=e,f=t,y.tag){case 1:if(g=y.payload,typeof g=="function"){c=g.call(f,c,d);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(f,c,d):g,d==null)break e;c=xr({},c,d);break e;case 2:Jo=!0}}o.callback!==null&&o.lane!==0&&(r.flags|=64,d=i.effects,d===null?i.effects=[o]:d.push(o))}else f={eventTime:f,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(u=h=f,l=c):h=h.next=f,a|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;d=o,o=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(h===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Qu|=a,r.lanes=a,r.memoizedState=c}}function VC(r,e,t){if(r=e.effects,e.effects=null,r!==null)for(e=0;e<r.length;e++){var n=r[e],i=n.callback;if(i!==null){if(n.callback=null,n=t,typeof i!="function")throw Error(we(191,i));i.call(n)}}}var bf={},ya=Ul(bf),Md=Ul(bf),Rd=Ul(bf);function Fu(r){if(r===bf)throw Error(we(174));return r}function Nv(r,e){switch(Jt(Rd,e),Jt(Md,r),Jt(ya,bf),r=e.nodeType,r){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:K9(null,"");break;default:r=r===8?e.parentNode:e,e=r.namespaceURI||null,r=r.tagName,e=K9(e,r)}sr(ya),Jt(ya,e)}function Kh(){sr(ya),sr(Md),sr(Rd)}function $8(r){Fu(Rd.current);var e=Fu(ya.current),t=K9(e,r.type);e!==t&&(Jt(Md,r),Jt(ya,t))}function Bv(r){Md.current===r&&(sr(ya),sr(Md))}var mr=Ul(0);function d3(r){for(var e=r;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var l7=[];function Uv(){for(var r=0;r<l7.length;r++)l7[r]._workInProgressVersionPrimary=null;l7.length=0}var Ep=yo.ReactCurrentDispatcher,u7=yo.ReactCurrentBatchConfig,qu=0,_r=null,Wr=null,tn=null,f3=!1,sd=!1,Fd=0,zk=0;function Tn(){throw Error(we(321))}function $v(r,e){if(e===null)return!1;for(var t=0;t<e.length&&t<r.length;t++)if(!Gs(r[t],e[t]))return!1;return!0}function zv(r,e,t,n,i,s){if(qu=s,_r=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ep.current=r===null||r.memoizedState===null?Wk:Xk,r=t(n,i),sd){s=0;do{if(sd=!1,Fd=0,25<=s)throw Error(we(301));s+=1,tn=Wr=null,e.updateQueue=null,Ep.current=Yk,r=t(n,i)}while(sd)}if(Ep.current=p3,e=Wr!==null&&Wr.next!==null,qu=0,tn=Wr=_r=null,f3=!1,e)throw Error(we(300));return r}function jv(){var r=Fd!==0;return Fd=0,r}function aa(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?_r.memoizedState=tn=r:tn=tn.next=r,tn}function ms(){if(Wr===null){var r=_r.alternate;r=r!==null?r.memoizedState:null}else r=Wr.next;var e=tn===null?_r.memoizedState:tn.next;if(e!==null)tn=e,Wr=r;else{if(r===null)throw Error(we(310));Wr=r,r={memoizedState:Wr.memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null},tn===null?_r.memoizedState=tn=r:tn=tn.next=r}return tn}function Ld(r,e){return typeof e=="function"?e(r):e}function c7(r){var e=ms(),t=e.queue;if(t===null)throw Error(we(311));t.lastRenderedReducer=r;var n=Wr,i=n.baseQueue,s=t.pending;if(s!==null){if(i!==null){var a=i.next;
vendor: 4,155 bytes, line 39
39i.next=s.next,s.next=a}n.baseQueue=i=s,t.pending=null}if(i!==null){s=i.next,n=n.baseState;var o=a=null,l=null,u=s;do{var h=u.lane;if((qu&h)===h)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:r(n,u.action);else{var c={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=c,a=n):l=l.next=c,_r.lanes|=h,Qu|=h}u=u.next}while(u!==null&&u!==s);l===null?a=n:l.next=o,Gs(n,e.memoizedState)||(li=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=l,t.lastRenderedState=n}if(r=t.interleaved,r!==null){i=r;do s=i.lane,_r.lanes|=s,Qu|=s,i=i.next;while(i!==r)}else i===null&&(t.lanes=0);return[e.memoizedState,t.dispatch]}function h7(r){var e=ms(),t=e.queue;if(t===null)throw Error(we(311));t.lastRenderedReducer=r;var n=t.dispatch,i=t.pending,s=e.memoizedState;if(i!==null){t.pending=null;var a=i=i.next;do s=r(s,a.action),a=a.next;while(a!==i);Gs(s,e.memoizedState)||(li=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),t.lastRenderedState=s}return[s,n]}function z8(){}function j8(r,e){var t=_r,n=ms(),i=e(),s=!Gs(n.memoizedState,i);if(s&&(n.memoizedState=i,li=!0),n=n.queue,Vv(W8.bind(null,t,n,r),[r]),n.getSnapshot!==e||s||tn!==null&&tn.memoizedState.tag&1){if(t.flags|=2048,Od(9,G8.bind(null,t,n,i,e),void 0,null),sn===null)throw Error(we(349));qu&30||V8(t,e,i)}return i}function V8(r,e,t){r.flags|=16384,r={getSnapshot:e,value:t},e=_r.updateQueue,e===null?(e={lastEffect:null,stores:null},_r.updateQueue=e,e.stores=[r]):(t=e.stores,t===null?e.stores=[r]:t.push(r))}function G8(r,e,t,n){e.value=t,e.getSnapshot=n,X8(e)&&Y8(r)}function W8(r,e,t){return t(function(){X8(e)&&Y8(r)})}function X8(r){var e=r.getSnapshot;r=r.value;try{var t=e();return!Gs(r,t)}catch{return!0}}function Y8(r){var e=lo(r,1);e!==null&&$s(e,r,1,-1)}function GC(r){var e=aa();return typeof r=="function"&&(r=r()),e.memoizedState=e.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ld,lastRenderedState:r},e.queue=r,r=r.dispatch=Gk.bind(null,_r,r),[e.memoizedState,r]}function Od(r,e,t,n){return r={tag:r,create:e,destroy:t,deps:n,next:null},e=_r.updateQueue,e===null?(e={lastEffect:null,stores:null},_r.updateQueue=e,e.lastEffect=r.next=r):(t=e.lastEffect,t===null?e.lastEffect=r.next=r:(n=t.next,t.next=r,r.next=n,e.lastEffect=r)),r}function Z8(){return ms().memoizedState}function Pp(r,e,t,n){var i=aa();_r.flags|=r,i.memoizedState=Od(1|e,t,void 0,n===void 0?null:n)}function w4(r,e,t,n){var i=ms();n=n===void 0?null:n;var s=void 0;if(Wr!==null){var a=Wr.memoizedState;if(s=a.destroy,n!==null&&$v(n,a.deps)){i.memoizedState=Od(e,t,s,n);return}}_r.flags|=r,i.memoizedState=Od(1|e,t,s,n)}function WC(r,e){return Pp(8390656,8,r,e)}function Vv(r,e){return w4(2048,8,r,e)}function q8(r,e){return w4(4,2,r,e)}function Q8(r,e){return w4(4,4,r,e)}function K8(r,e){if(typeof e=="function")return r=r(),e(r),function(){e(null)};if(e!=null)return r=r(),e.current=r,function(){e.current=null}}function J8(r,e,t){return t=t!=null?t.concat([r]):null,w4(4,4,K8.bind(null,e,r),t)}function Gv(){}function eS(r,e){var t=ms();e=e===void 0?null:e;var n=t.memoizedState;return n!==null&&e!==null&&$v(e,n[1])?n[0]:(t.memoizedState=[r,e],r)}function tS(r,e){var t=ms();e=e===void 0?null:e;var n=t.memoizedState;return n!==null&&e!==null&&$v(e,n[1])?n[0]:(r=r(),t.memoizedState=[r,e],r)}function rS(r,e,t){return qu&21?(Gs(t,e)||(t=o8(),_r.lanes|=t,Qu|=t,r.baseState=!0),e):(r.baseState&&(r.baseState=!1,li=!0),r.memoizedState=t)}function jk(r,e){var t=$t;$t=t!==0&&4>t?t:4,r(!0);var n=u7.transition;u7.transition={};try{r(!1),e()}finally{$t=t,u7.transition=n}}function nS(){return ms().memoizedState}function Vk(r,e,t){var n=wl(r);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},iS(r))sS(e,t);else if(t=B8(r,e,t,n),t!==null){var i=Xn();$s(t,r,n,i),aS(t,e,n)}}function Gk(r,e,t){var n=wl(r),i={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(iS(r))sS(e,i);else{var s=r.alternate;if(r.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,o=s(a,t);
vendor: 8,894 bytes, lines 39-41
39if(i.hasEagerState=!0,i.eagerState=o,Gs(o,a)){var l=e.interleaved;l===null?(i.next=i,Lv(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}t=B8(r,e,i,n),t!==null&&(i=Xn(),$s(t,r,n,i),aS(t,e,n))}}function iS(r){var e=r.alternate;return r===_r||e!==null&&e===_r}function sS(r,e){sd=f3=!0;var t=r.pending;t===null?e.next=e:(e.next=t.next,t.next=e),r.pending=e}function aS(r,e,t){if(t&4194240){var n=e.lanes;n&=r.pendingLanes,t|=n,e.lanes=t,wv(r,t)}}var p3={readContext:ps,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useInsertionEffect:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useMutableSource:Tn,useSyncExternalStore:Tn,useId:Tn,unstable_isNewReconciler:!1},Wk={readContext:ps,useCallback:function(r,e){return aa().memoizedState=[r,e===void 0?null:e],r},useContext:ps,useEffect:WC,useImperativeHandle:function(r,e,t){return t=t!=null?t.concat([r]):null,Pp(4194308,4,K8.bind(null,e,r),t)},useLayoutEffect:function(r,e){return Pp(4194308,4,r,e)},useInsertionEffect:function(r,e){return Pp(4,2,r,e)},useMemo:function(r,e){var t=aa();return e=e===void 0?null:e,r=r(),t.memoizedState=[r,e],r},useReducer:function(r,e,t){var n=aa();return e=t!==void 0?t(e):e,n.memoizedState=n.baseState=e,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:e},n.queue=r,r=r.dispatch=Vk.bind(null,_r,r),[n.memoizedState,r]},useRef:function(r){var e=aa();return r={current:r},e.memoizedState=r},useState:GC,useDebugValue:Gv,useDeferredValue:function(r){return aa().memoizedState=r},useTransition:function(){var r=GC(!1),e=r[0];return r=jk.bind(null,r[1]),aa().memoizedState=r,[e,r]},useMutableSource:function(){},useSyncExternalStore:function(r,e,t){var n=_r,i=aa();if(lr){if(t===void 0)throw Error(we(407));t=t()}else{if(t=e(),sn===null)throw Error(we(349));qu&30||V8(n,e,t)}i.memoizedState=t;var s={value:t,getSnapshot:e};return i.queue=s,WC(W8.bind(null,n,s,r),[r]),n.flags|=2048,Od(9,G8.bind(null,n,s,t,e),void 0,null),t},useId:function(){var r=aa(),e=sn.identifierPrefix;if(lr){var t=Ja,n=Ka;t=(n&~(1<<32-Us(n)-1)).toString(32)+t,e=":"+e+"R"+t,t=Fd++,0<t&&(e+="H"+t.toString(32)),e+=":"}else t=zk++,e=":"+e+"r"+t.toString(32)+":";return r.memoizedState=e},unstable_isNewReconciler:!1},Xk={readContext:ps,useCallback:eS,useContext:ps,useEffect:Vv,useImperativeHandle:J8,useInsertionEffect:q8,useLayoutEffect:Q8,useMemo:tS,useReducer:c7,useRef:Z8,useState:function(){return c7(Ld)},useDebugValue:Gv,useDeferredValue:function(r){var e=ms();return rS(e,Wr.memoizedState,r)},useTransition:function(){var r=c7(Ld)[0],e=ms().memoizedState;return[r,e]},useMutableSource:z8,useSyncExternalStore:j8,useId:nS,unstable_isNewReconciler:!1},Yk={readContext:ps,useCallback:eS,useContext:ps,useEffect:Vv,useImperativeHandle:J8,useInsertionEffect:q8,useLayoutEffect:Q8,useMemo:tS,useReducer:h7,useRef:Z8,useState:function(){return h7(Ld)},useDebugValue:Gv,useDeferredValue:function(r){var e=ms();return Wr===null?e.memoizedState=r:rS(e,Wr.memoizedState,r)},useTransition:function(){var r=h7(Ld)[0],e=ms().memoizedState;return[r,e]},useMutableSource:z8,useSyncExternalStore:j8,useId:nS,unstable_isNewReconciler:!1};function ks(r,e){if(r&&r.defaultProps){e=xr({},e),r=r.defaultProps;for(var t in r)e[t]===void 0&&(e[t]=r[t]);return e}return e}function _g(r,e,t,n){e=r.memoizedState,t=t(n,e),t=t==null?e:xr({},e,t),r.memoizedState=t,r.lanes===0&&(r.updateQueue.baseState=t)}var b4={isMounted:function(r){return(r=r._reactInternals)?dc(r)===r:!1},enqueueSetState:function(r,e,t){r=r._reactInternals;var n=Xn(),i=wl(r),s=ro(n,i);s.payload=e,t!=null&&(s.callback=t),e=xl(r,s,i),e!==null&&($s(e,r,i,n),Tp(e,r,i))},enqueueReplaceState:function(r,e,t){r=r._reactInternals;var n=Xn(),i=wl(r),s=ro(n,i);s.tag=1,s.payload=e,t!=null&&(s.callback=t),e=xl(r,s,i),e!==null&&($s(e,r,i,n),Tp(e,r,i))},enqueueForceUpdate:function(r,e){r=r._reactInternals;var t=Xn(),n=wl(r),i=ro(t,n);i.tag=2,e!=null&&(i.callback=e),e=xl(r,i,n),e!==null&&($s(e,r,n,t),Tp(e,r,n))}};function XC(r,e,t,n,i,s,a){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(n,s,a):e.prototype&&e.prototype.isPureReactComponent?!Dd(t,n)||!Dd(i,s):!0}function oS(r,e,t){var n=!1,i=Pl,s=e.contextType;return typeof s=="object"&&s!==null?s=ps(s):(i=ci(e)?Yu:Rn.current,n=e.contextTypes,s=(n=n!=null)?Zh(r,i):Pl),e=new e(t,s),r.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=b4,r.stateNode=e,e._reactInternals=r,n&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=s),e}function YC(r,e,t,n){r=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,n),e.state!==r&&b4.enqueueReplaceState(e,e.state,null)}function xg(r,e,t,n){var i=r.stateNode;i.props=t,i.state=r.memoizedState,i.refs={},Ov(r);var s=e.contextType;typeof s=="object"&&s!==null?i.context=ps(s):(s=ci(e)?Yu:Rn.current,i.context=Zh(r,s)),i.state=r.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(_g(r,e,s,t),i.state=r.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&b4.enqueueReplaceState(i,i.state,null),h3(r,t,i,n),i.state=r.memoizedState),typeof i.componentDidMount=="function"&&(r.flags|=4194308)}function Jh(r,e){try{var t="",n=e;do t+=wH(n),n=n.return;while(n);var i=t}catch(s){i=`
40Error generating stack: `+s.message+`
41`+s.stack}return{value:r,source:e,stack:i,digest:null}}function d7(r,e,t){return{value:r,source:null,stack:t??null,digest:e??null}}function Cg(r,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var Zk=typeof WeakMap=="function"?WeakMap:Map;function lS(r,e,t){t=ro(-1,t),t.tag=3,t.payload={element:null};var n=e.value;return t.callback=function(){g3||(g3=!0,kg=n),Cg(r,e)},t}function uS(r,e,t){t=ro(-1,t),t.tag=3;var n=r.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;t.payload=function(){return n(i)},t.callback=function(){Cg(r,e)}}var s=r.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){Cg(r,e),typeof n!="function"&&(Cl===null?Cl=new Set([this]):Cl.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}function ZC(r,e,t){var n=r.pingCache;if(n===null){n=r.pingCache=new Zk;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(t)||(i.add(t),r=uI.bind(null,r,e,t),e.then(r,r))}function qC(r){do{var e;if((e=r.tag===13)&&(e=r.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return r;r=r.return}while(r!==null);return null}function QC(r,e,t,n,i){return r.mode&1?(r.flags|=65536,r.lanes=i,r):(r===e?r.flags|=65536:(r.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=ro(-1,1),e.tag=2,xl(t,e,1))),t.lanes|=1),r)}var qk=yo.ReactCurrentOwner,li=!1;function zn(r,e,t,n){e.child=r===null?N8(e,null,t,n):Qh(e,r.child,t,n)}function KC(r,e,t,n,i){t=t.render;var s=e.ref;return kh(e,i),n=zv(r,e,t,n,s,i),t=jv(),r!==null&&!li?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~i,uo(r,e,i)):(lr&&t&&Hv(e),e.flags|=1,zn(r,e,n,i),e.child)}function JC(r,e,t,n,i){if(r===null){var s=t.type;return typeof s=="function"&&!Jv(s)&&s.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=s,cS(r,e,s,n,i)):(r=Ip(t.type,null,n,e,e.mode,i),r.ref=e.ref,r.return=e,e.child=r)}if(s=r.child,!(r.lanes&i)){var a=s.memoizedProps;if(t=t.compare,t=t!==null?t:Dd,t(a,n)&&r.ref===e.ref)return uo(r,e,i)}return e.flags|=1,r=bl(s,n),r.ref=e.ref,r.return=e,e.child=r}function cS(r,e,t,n,i){if(r!==null){var s=r.memoizedProps;if(Dd(s,n)&&r.ref===e.ref)if(li=!1,e.pendingProps=n=s,(r.lanes&i)!==0)r.flags&131072&&(li=!0);else return e.lanes=r.lanes,uo(r,e,i)}return wg(r,e,t,n,i)}function hS(r,e,t){var n=e.pendingProps,i=n.children,s=r!==null?r.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Jt(yh,ki),ki|=t;else{if(!(t&1073741824))return r=s!==null?s.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:r,cachePool:null,transitions:null},e.updateQueue=null,Jt(yh,ki),ki|=r,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:t,Jt(yh,ki),ki|=n}else s!==null?(n=s.baseLanes|t,e.memoizedState=null):n=t,Jt(yh,ki),ki|=n;return zn(r,e,i,t),e.child}function dS(r,e){var t=e.ref;(r===null&&t!==null||r!==null&&r.ref!==t)&&(e.flags|=512,e.flags|=2097152)}
vendor: 8,515 bytes, line 41
41function wg(r,e,t,n,i){var s=ci(t)?Yu:Rn.current;return s=Zh(e,s),kh(e,i),t=zv(r,e,t,n,s,i),n=jv(),r!==null&&!li?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~i,uo(r,e,i)):(lr&&n&&Hv(e),e.flags|=1,zn(r,e,t,i),e.child)}function e5(r,e,t,n,i){if(ci(t)){var s=!0;a3(e)}else s=!1;if(kh(e,i),e.stateNode===null)Dp(r,e),oS(e,t,n),xg(e,t,n,i),n=!0;else if(r===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var l=a.context,u=t.contextType;typeof u=="object"&&u!==null?u=ps(u):(u=ci(t)?Yu:Rn.current,u=Zh(e,u));var h=t.getDerivedStateFromProps,c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==n||l!==u)&&YC(e,a,n,u),Jo=!1;var d=e.memoizedState;a.state=d,h3(e,n,a,i),l=e.memoizedState,o!==n||d!==l||ui.current||Jo?(typeof h=="function"&&(_g(e,t,h,n),l=e.memoizedState),(o=Jo||XC(e,t,o,n,d,l,u))?(c||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"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),a.props=n,a.state=l,a.context=u,n=o):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,U8(r,e),o=e.memoizedProps,u=e.type===e.elementType?o:ks(e.type,o),a.props=u,c=e.pendingProps,d=a.context,l=t.contextType,typeof l=="object"&&l!==null?l=ps(l):(l=ci(t)?Yu:Rn.current,l=Zh(e,l));var f=t.getDerivedStateFromProps;(h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==c||d!==l)&&YC(e,a,n,l),Jo=!1,d=e.memoizedState,a.state=d,h3(e,n,a,i);var g=e.memoizedState;o!==c||d!==g||ui.current||Jo?(typeof f=="function"&&(_g(e,t,f,n),g=e.memoizedState),(u=Jo||XC(e,t,u,n,d,g,l)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,g,l)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===r.memoizedProps&&d===r.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===r.memoizedProps&&d===r.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=g),a.props=n,a.state=g,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||o===r.memoizedProps&&d===r.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===r.memoizedProps&&d===r.memoizedState||(e.flags|=1024),n=!1)}return bg(r,e,t,n,s,i)}function bg(r,e,t,n,i,s){dS(r,e);var a=(e.flags&128)!==0;if(!n&&!a)return i&&BC(e,t,!1),uo(r,e,s);n=e.stateNode,qk.current=e;var o=a&&typeof t.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,r!==null&&a?(e.child=Qh(e,r.child,null,s),e.child=Qh(e,null,o,s)):zn(r,e,o,s),e.memoizedState=n.state,i&&BC(e,t,!0),e.child}function fS(r){var e=r.stateNode;e.pendingContext?NC(r,e.pendingContext,e.pendingContext!==e.context):e.context&&NC(r,e.context,!1),Nv(r,e.containerInfo)}function t5(r,e,t,n,i){return qh(),Iv(i),e.flags|=256,zn(r,e,t,n),e.child}var Sg={dehydrated:null,treeContext:null,retryLane:0};function Ag(r){return{baseLanes:r,cachePool:null,transitions:null}}function pS(r,e,t){var n=e.pendingProps,i=mr.current,s=!1,a=(e.flags&128)!==0,o;if((o=a)||(o=r!==null&&r.memoizedState===null?!1:(i&2)!==0),o?(s=!0,e.flags&=-129):(r===null||r.memoizedState!==null)&&(i|=1),Jt(mr,i&1),r===null)return yg(e),r=e.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(e.mode&1?r.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,r=n.fallback,s?(n=e.mode,s=e.child,a={mode:"hidden",children:a},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=T4(a,n,0,null),r=Uu(r,n,t,null),s.return=e,r.return=e,s.sibling=r,e.child=s,e.child.memoizedState=Ag(t),e.memoizedState=Sg,r):Wv(e,a));if(i=r.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return Qk(r,e,a,n,o,i,t);if(s){s=n.fallback,a=e.mode,i=r.child,o=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=bl(i,l),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=bl(o,s):(s=Uu(s,a,t,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,a=r.child.memoizedState,a=a===null?Ag(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=r.childLanes&~t,e.memoizedState=Sg,n}return s=r.child,r=s.sibling,n=bl(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=t),n.return=e,n.sibling=null,r!==null&&(t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)),e.child=n,e.memoizedState=null,n}function Wv(r,e){return e=T4({mode:"visible",children:e},r.mode,0,null),e.return=r,r.child=e}function O2(r,e,t,n){return n!==null&&Iv(n),Qh(e,r.child,null,t),r=Wv(e,e.pendingProps.children),r.flags|=2,e.memoizedState=null,r}function Qk(r,e,t,n,i,s,a){if(t)return e.flags&256?(e.flags&=-257,n=d7(Error(we(422))),O2(r,e,a,n)):e.memoizedState!==null?(e.child=r.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=T4({mode:"visible",children:n.children},i,0,null),s=Uu(s,i,a,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&Qh(e,r.child,null,a),e.child.memoizedState=Ag(a),e.memoizedState=Sg,s);if(!(e.mode&1))return O2(r,e,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,s=Error(we(419)),n=d7(s,n,void 0),O2(r,e,a,n)}if(o=(a&r.childLanes)!==0,li||o){if(n=sn,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,lo(r,i),$s(n,r,i,-1))}return Kv(),n=d7(Error(we(421))),O2(r,e,a,n)}return i.data==="$?"?(e.flags|=128,e.child=r.child,e=cI.bind(null,r),i._reactRetry=e,null):(r=s.treeContext,Fi=_l(i.nextSibling),Oi=e,lr=!0,Ms=null,r!==null&&(is[ss++]=Ka,is[ss++]=Ja,is[ss++]=Zu,Ka=r.id,Ja=r.overflow,Zu=e),e=Wv(e,n.children),e.flags|=4096,e)}function r5(r,e,t){r.lanes|=e;var n=r.alternate;n!==null&&(n.lanes|=e),vg(r.return,e,t)}function f7(r,e,t,n,i){var s=r.memoizedState;s===null?r.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:t,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=t,s.tailMode=i)}function mS(r,e,t){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(zn(r,e,n.children,t),n=mr.current,n&2)n=n&1|2,e.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=e.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&r5(r,t,e);else if(r.tag===19)r5(r,t,e);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}n&=1}if(Jt(mr,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(t=e.child,i=null;t!==null;)r=t.alternate,r!==null&&d3(r)===null&&(i=t),t=t.sibling;t=i,t===null?(i=e.child,e.child=null):(i=t.sibling,t.sibling=null),f7(e,!1,i,t,s);break;case"backwards":for(t=null,i=e.child,e.child=null;i!==null;){if(r=i.alternate,r!==null&&d3(r)===null){e.child=i;break}r=i.sibling,i.sibling=t,t=i,i=r}f7(e,!0,t,null,s);break;case"together":f7(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Dp(r,e){!(e.mode&1)&&r!==null&&(r.alternate=null,e.alternate=null,e.flags|=2)}function uo(r,e,t){if(r!==null&&(e.dependencies=r.dependencies),Qu|=e.lanes,!(t&e.childLanes))return null;if(r!==null&&e.child!==r.child)throw Error(we(153));if(e.child!==null){for(r=e.child,t=bl(r,r.pendingProps),e.child=t,t.return=e;r.sibling!==null;)r=r.sibling,t=t.sibling=bl(r,r.pendingProps),t.return=e;t.sibling=null}return e.child}function Kk(r,e,t){switch(e.tag){case 3:fS(e),qh();break;case 5:$8(e);break;case 1:ci(e.type)&&a3(e);break;case 4:Nv(e,e.stateNode.containerInfo);break;
vendor: 4,414 bytes, line 41
41case 10:var n=e.type._context,i=e.memoizedProps.value;Jt(u3,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Jt(mr,mr.current&1),e.flags|=128,null):t&e.child.childLanes?pS(r,e,t):(Jt(mr,mr.current&1),r=uo(r,e,t),r!==null?r.sibling:null);Jt(mr,mr.current&1);break;case 19:if(n=(t&e.childLanes)!==0,r.flags&128){if(n)return mS(r,e,t);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Jt(mr,mr.current),n)break;return null;case 22:case 23:return e.lanes=0,hS(r,e,t)}return uo(r,e,t)}var gS,Tg,yS,vS;gS=function(r,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)r.appendChild(t.stateNode);else if(t.tag!==4&&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;t=t.return}t.sibling.return=t.return,t=t.sibling}};Tg=function(){};yS=function(r,e,t,n){var i=r.memoizedProps;if(i!==n){r=e.stateNode,Fu(ya.current);var s=null;switch(t){case"input":i=Y9(r,i),n=Y9(r,n),s=[];break;case"select":i=xr({},i,{value:void 0}),n=xr({},n,{value:void 0}),s=[];break;case"textarea":i=Q9(r,i),n=Q9(r,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(r.onclick=i3)}J9(t,n);var a;t=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wd.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var l=n[u];if(o=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(t||(t={}),t[a]=l[a])}else t||(s||(s=[]),s.push(u,t)),t=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wd.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&rr("scroll",r),s||o===l||(s=[])):(s=s||[]).push(u,l))}t&&(s=s||[]).push("style",t);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};vS=function(r,e,t,n){t!==n&&(e.flags|=4)};function b1(r,e){if(!lr)switch(r.tailMode){case"hidden":e=r.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?r.tail=null:t.sibling=null;break;case"collapsed":t=r.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e||r.tail===null?r.tail=null:r.tail.sibling=null:n.sibling=null}}function En(r){var e=r.alternate!==null&&r.alternate.child===r.child,t=0,n=0;if(e)for(var i=r.child;i!==null;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=r,i=i.sibling;else for(i=r.child;i!==null;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=r,i=i.sibling;return r.subtreeFlags|=n,r.childLanes=t,e}function Jk(r,e,t){var n=e.pendingProps;switch(kv(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(e),null;case 1:return ci(e.type)&&s3(),En(e),null;case 3:return n=e.stateNode,Kh(),sr(ui),sr(Rn),Uv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(r===null||r.child===null)&&(F2(e)?e.flags|=4:r===null||r.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Ms!==null&&(Rg(Ms),Ms=null))),Tg(r,e),En(e),null;case 5:Bv(e);var i=Fu(Rd.current);if(t=e.type,r!==null&&e.stateNode!=null)yS(r,e,t,n,i),r.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(we(166));return En(e),null}if(r=Fu(ya.current),F2(e)){n=e.stateNode,t=e.type;var s=e.memoizedProps;switch(n[ha]=e,n[Id]=s,r=(e.mode&1)!==0,t){case"dialog":rr("cancel",n),rr("close",n);break;case"iframe":case"object":case"embed":rr("load",n);break;case"video":case"audio":for(i=0;i<U1.length;i++)rr(U1[i],n);break;case"source":rr("error",n);break;case"img":case"image":case"link":rr("error",n),rr("load",n);break;case"details":rr("toggle",n);break;case"input":hC(n,s),rr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},rr("invalid",n);break;case"textarea":fC(n,s),rr("invalid",n)}J9(t,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var o=s[a];
vendor: 31,373 bytes, line 41
41a==="children"?typeof o=="string"?n.textContent!==o&&(s.suppressHydrationWarning!==!0&&R2(n.textContent,o,r),i=["children",o]):typeof o=="number"&&n.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&R2(n.textContent,o,r),i=["children",""+o]):wd.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&rr("scroll",n)}switch(t){case"input":T2(n),dC(n,s,!0);break;case"textarea":T2(n),pC(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=i3)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Wb(t)),r==="http://www.w3.org/1999/xhtml"?t==="script"?(r=a.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof n.is=="string"?r=a.createElement(t,{is:n.is}):(r=a.createElement(t),t==="select"&&(a=r,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):r=a.createElementNS(r,t),r[ha]=e,r[Id]=n,gS(r,e,!1,!1),e.stateNode=r;e:{switch(a=eg(t,n),t){case"dialog":rr("cancel",r),rr("close",r),i=n;break;case"iframe":case"object":case"embed":rr("load",r),i=n;break;case"video":case"audio":for(i=0;i<U1.length;i++)rr(U1[i],r);i=n;break;case"source":rr("error",r),i=n;break;case"img":case"image":case"link":rr("error",r),rr("load",r),i=n;break;case"details":rr("toggle",r),i=n;break;case"input":hC(r,n),i=Y9(r,n),rr("invalid",r);break;case"option":i=n;break;case"select":r._wrapperState={wasMultiple:!!n.multiple},i=xr({},n,{value:void 0}),rr("invalid",r);break;case"textarea":fC(r,n),i=Q9(r,n),rr("invalid",r);break;default:i=n}J9(t,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="style"?Zb(r,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xb(r,l)):s==="children"?typeof l=="string"?(t!=="textarea"||l!=="")&&bd(r,l):typeof l=="number"&&bd(r,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(wd.hasOwnProperty(s)?l!=null&&s==="onScroll"&&rr("scroll",r):l!=null&&gv(r,s,l,a))}switch(t){case"input":T2(r),dC(r,n,!1);break;case"textarea":T2(r),pC(r);break;case"option":n.value!=null&&r.setAttribute("value",""+El(n.value));break;case"select":r.multiple=!!n.multiple,s=n.value,s!=null?Eh(r,!!n.multiple,s,!1):n.defaultValue!=null&&Eh(r,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(r.onclick=i3)}switch(t){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return En(e),null;case 6:if(r&&e.stateNode!=null)vS(r,e,r.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(we(166));if(t=Fu(Rd.current),Fu(ya.current),F2(e)){if(n=e.stateNode,t=e.memoizedProps,n[ha]=e,(s=n.nodeValue!==t)&&(r=Oi,r!==null))switch(r.tag){case 3:R2(n.nodeValue,t,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&R2(n.nodeValue,t,(r.mode&1)!==0)}s&&(e.flags|=4)}else n=(t.nodeType===9?t:t.ownerDocument).createTextNode(n),n[ha]=e,e.stateNode=n}return En(e),null;case 13:if(sr(mr),n=e.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(lr&&Fi!==null&&e.mode&1&&!(e.flags&128))L8(),qh(),e.flags|=98560,s=!1;else if(s=F2(e),n!==null&&n.dehydrated!==null){if(r===null){if(!s)throw Error(we(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(we(317));s[ha]=e}else qh(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;En(e),s=!1}else Ms!==null&&(Rg(Ms),Ms=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=t,e):(n=n!==null,n!==(r!==null&&r.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(r===null||mr.current&1?Yr===0&&(Yr=3):Kv())),e.updateQueue!==null&&(e.flags|=4),En(e),null);case 4:return Kh(),Tg(r,e),r===null&&Hd(e.stateNode.containerInfo),En(e),null;case 10:return Fv(e.type._context),En(e),null;case 17:return ci(e.type)&&s3(),En(e),null;case 19:if(sr(mr),s=e.memoizedState,s===null)return En(e),null;if(n=(e.flags&128)!==0,a=s.rendering,a===null)if(n)b1(s,!1);else{if(Yr!==0||r!==null&&r.flags&128)for(r=e.child;r!==null;){if(a=d3(r),a!==null){for(e.flags|=128,b1(s,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=t,t=e.child;t!==null;)s=t,r=n,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=r,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,r=a.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t=t.sibling;return Jt(mr,mr.current&1|2),e.child}r=r.sibling}s.tail!==null&&kr()>e0&&(e.flags|=128,n=!0,b1(s,!1),e.lanes=4194304)}else{if(!n)if(r=d3(a),r!==null){if(e.flags|=128,n=!0,t=r.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),b1(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!lr)return En(e),null}else 2*kr()-s.renderingStartTime>e0&&t!==1073741824&&(e.flags|=128,n=!0,b1(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(t=s.last,t!==null?t.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=kr(),e.sibling=null,t=mr.current,Jt(mr,n?t&1|2:t&1),e):(En(e),null);case 22:case 23:return Qv(),n=e.memoizedState!==null,r!==null&&r.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?ki&1073741824&&(En(e),e.subtreeFlags&6&&(e.flags|=8192)):En(e),null;case 24:return null;case 25:return null}throw Error(we(156,e.tag))}function eI(r,e){switch(kv(e),e.tag){case 1:return ci(e.type)&&s3(),r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 3:return Kh(),sr(ui),sr(Rn),Uv(),r=e.flags,r&65536&&!(r&128)?(e.flags=r&-65537|128,e):null;case 5:return Bv(e),null;case 13:if(sr(mr),r=e.memoizedState,r!==null&&r.dehydrated!==null){if(e.alternate===null)throw Error(we(340));qh()}return r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 19:return sr(mr),null;case 4:return Kh(),null;case 10:return Fv(e.type._context),null;case 22:case 23:return Qv(),null;case 24:return null;default:return null}}var N2=!1,Dn=!1,tI=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function gh(r,e){var t=r.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Cr(r,e,n)}else t.current=null}function Eg(r,e,t){try{t()}catch(n){Cr(r,e,n)}}var n5=!1;function rI(r,e){if(cg=t3,r=b8(),Dv(r)){if("selectionStart"in r)var t={start:r.selectionStart,end:r.selectionEnd};else e:{t=(t=r.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{t.nodeType,s.nodeType}catch{t=null;break e}var a=0,o=-1,l=-1,u=0,h=0,c=r,d=null;t:for(;;){for(var f;c!==t||i!==0&&c.nodeType!==3||(o=a+i),c!==s||n!==0&&c.nodeType!==3||(l=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(f=c.firstChild)!==null;)d=c,c=f;for(;;){if(c===r)break t;if(d===t&&++u===i&&(o=a),d===s&&++h===n&&(l=a),(f=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=f}t=o===-1||l===-1?null:{start:o,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(hg={focusedElem:r,selectionRange:t},t3=!1,Ue=e;Ue!==null;)if(e=Ue,r=e.child,(e.subtreeFlags&1028)!==0&&r!==null)r.return=e,Ue=r;else for(;Ue!==null;){e=Ue;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,v=g.memoizedState,_=e.stateNode,x=_.getSnapshotBeforeUpdate(e.elementType===e.type?y:ks(e.type,y),v);_.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(we(163))}}catch(S){Cr(e,e.return,S)}if(r=e.sibling,r!==null){r.return=e.return,Ue=r;break}Ue=e.return}return g=n5,n5=!1,g}function ad(r,e,t){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&r)===r){var s=i.destroy;i.destroy=void 0,s!==void 0&&Eg(e,t,s)}i=i.next}while(i!==n)}}function S4(r,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&r)===r){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}}function Pg(r){var e=r.ref;if(e!==null){var t=r.stateNode;switch(r.tag){case 5:r=t;break;default:r=t}typeof e=="function"?e(r):e.current=r}}function _S(r){var e=r.alternate;e!==null&&(r.alternate=null,_S(e)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(e=r.stateNode,e!==null&&(delete e[ha],delete e[Id],delete e[pg],delete e[Nk],delete e[Bk])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function xS(r){return r.tag===5||r.tag===3||r.tag===4}function i5(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||xS(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dg(r,e,t){var n=r.tag;if(n===5||n===6)r=r.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(r,e):t.insertBefore(r,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(r,t)):(e=t,e.appendChild(r)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=i3));else if(n!==4&&(r=r.child,r!==null))for(Dg(r,e,t),r=r.sibling;r!==null;)Dg(r,e,t),r=r.sibling}function Hg(r,e,t){var n=r.tag;if(n===5||n===6)r=r.stateNode,e?t.insertBefore(r,e):t.appendChild(r);else if(n!==4&&(r=r.child,r!==null))for(Hg(r,e,t),r=r.sibling;r!==null;)Hg(r,e,t),r=r.sibling}var dn=null,Is=!1;function Wo(r,e,t){for(t=t.child;t!==null;)CS(r,e,t),t=t.sibling}function CS(r,e,t){if(ga&&typeof ga.onCommitFiberUnmount=="function")try{ga.onCommitFiberUnmount(g4,t)}catch{}switch(t.tag){case 5:Dn||gh(t,e);case 6:var n=dn,i=Is;dn=null,Wo(r,e,t),dn=n,Is=i,dn!==null&&(Is?(r=dn,t=t.stateNode,r.nodeType===8?r.parentNode.removeChild(t):r.removeChild(t)):dn.removeChild(t.stateNode));break;case 18:dn!==null&&(Is?(r=dn,t=t.stateNode,r.nodeType===8?a7(r.parentNode,t):r.nodeType===1&&a7(r,t),Ed(r)):a7(dn,t.stateNode));break;case 4:n=dn,i=Is,dn=t.stateNode.containerInfo,Is=!0,Wo(r,e,t),dn=n,Is=i;break;case 0:case 11:case 14:case 15:if(!Dn&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Eg(t,e,a),i=i.next}while(i!==n)}Wo(r,e,t);break;case 1:if(!Dn&&(gh(t,e),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(o){Cr(t,e,o)}Wo(r,e,t);break;case 21:Wo(r,e,t);break;case 22:t.mode&1?(Dn=(n=Dn)||t.memoizedState!==null,Wo(r,e,t),Dn=n):Wo(r,e,t);break;default:Wo(r,e,t)}}function s5(r){var e=r.updateQueue;if(e!==null){r.updateQueue=null;var t=r.stateNode;t===null&&(t=r.stateNode=new tI),e.forEach(function(n){var i=hI.bind(null,r,n);t.has(n)||(t.add(n),n.then(i,i))})}}function As(r,e){var t=e.deletions;if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];try{var s=r,a=e,o=a;e:for(;o!==null;){switch(o.tag){case 5:dn=o.stateNode,Is=!1;break e;case 3:dn=o.stateNode.containerInfo,Is=!0;break e;case 4:dn=o.stateNode.containerInfo,Is=!0;break e}o=o.return}if(dn===null)throw Error(we(160));CS(s,a,i),dn=null,Is=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Cr(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)wS(e,r),e=e.sibling}function wS(r,e){var t=r.alternate,n=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(As(e,r),ea(r),n&4){try{ad(3,r,r.return),S4(3,r)}catch(y){Cr(r,r.return,y)}try{ad(5,r,r.return)}catch(y){Cr(r,r.return,y)}}break;case 1:As(e,r),ea(r),n&512&&t!==null&&gh(t,t.return);break;case 5:if(As(e,r),ea(r),n&512&&t!==null&&gh(t,t.return),r.flags&32){var i=r.stateNode;try{bd(i,"")}catch(y){Cr(r,r.return,y)}}if(n&4&&(i=r.stateNode,i!=null)){var s=r.memoizedProps,a=t!==null?t.memoizedProps:s,o=r.type,l=r.updateQueue;if(r.updateQueue=null,l!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&Vb(i,s),eg(o,a);var u=eg(o,s);for(a=0;a<l.length;a+=2){var h=l[a],c=l[a+1];h==="style"?Zb(i,c):h==="dangerouslySetInnerHTML"?Xb(i,c):h==="children"?bd(i,c):gv(i,h,c,u)}switch(o){case"input":Z9(i,s);break;case"textarea":Gb(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?Eh(i,!!s.multiple,f,!1):d!==!!s.multiple&&(s.defaultValue!=null?Eh(i,!!s.multiple,s.defaultValue,!0):Eh(i,!!s.multiple,s.multiple?[]:"",!1))}i[Id]=s}catch(y){Cr(r,r.return,y)}}break;case 6:if(As(e,r),ea(r),n&4){if(r.stateNode===null)throw Error(we(162));i=r.stateNode,s=r.memoizedProps;try{i.nodeValue=s}catch(y){Cr(r,r.return,y)}}break;case 3:if(As(e,r),ea(r),n&4&&t!==null&&t.memoizedState.isDehydrated)try{Ed(e.containerInfo)}catch(y){Cr(r,r.return,y)}break;case 4:As(e,r),ea(r);break;case 13:As(e,r),ea(r),i=r.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Zv=kr())),n&4&&s5(r);break;case 22:if(h=t!==null&&t.memoizedState!==null,r.mode&1?(Dn=(u=Dn)||h,As(e,r),Dn=u):As(e,r),ea(r),n&8192){if(u=r.memoizedState!==null,(r.stateNode.isHidden=u)&&!h&&r.mode&1)for(Ue=r,h=r.child;h!==null;){for(c=Ue=h;Ue!==null;){switch(d=Ue,f=d.child,d.tag){case 0:case 11:case 14:case 15:ad(4,d,d.return);break;case 1:gh(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){n=d,t=d.return;try{e=n,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(y){Cr(n,t,y)}}break;case 5:gh(d,d.return);break;case 22:if(d.memoizedState!==null){o5(c);continue}}f!==null?(f.return=d,Ue=f):o5(c)}h=h.sibling}e:for(h=null,c=r;;){if(c.tag===5){if(h===null){h=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=c.stateNode,l=c.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Yb("display",a))}catch(y){Cr(r,r.return,y)}}}else if(c.tag===6){if(h===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Cr(r,r.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===r)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;h===c&&(h=null),c=c.return}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:As(e,r),ea(r),n&4&&s5(r);break;case 21:break;default:As(e,r),ea(r)}}function ea(r){var e=r.flags;if(e&2){try{e:{for(var t=r.return;t!==null;){if(xS(t)){var n=t;break e}t=t.return}throw Error(we(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(bd(i,""),n.flags&=-33);var s=i5(r);Hg(r,s,i);break;case 3:case 4:var a=n.stateNode.containerInfo,o=i5(r);Dg(r,o,a);break;default:throw Error(we(161))}}catch(l){Cr(r,r.return,l)}r.flags&=-3}e&4096&&(r.flags&=-4097)}function nI(r,e,t){Ue=r,bS(r)}function bS(r,e,t){for(var n=(r.mode&1)!==0;Ue!==null;){var i=Ue,s=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||N2;if(!a){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Dn;o=N2;var u=Dn;if(N2=a,(Dn=l)&&!u)for(Ue=i;Ue!==null;)a=Ue,l=a.child,a.tag===22&&a.memoizedState!==null?l5(i):l!==null?(l.return=a,Ue=l):l5(i);for(;s!==null;)Ue=s,bS(s),s=s.sibling;Ue=i,N2=o,Dn=u}a5(r)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ue=s):a5(r)}}function a5(r){for(;Ue!==null;){var e=Ue;if(e.flags&8772){var t=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Dn||S4(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!Dn)if(t===null)n.componentDidMount();else{var i=e.elementType===e.type?t.memoizedProps:ks(e.type,t.memoizedProps);n.componentDidUpdate(i,t.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&VC(e,s,n);break;case 3:var a=e.updateQueue;if(a!==null){if(t=null,e.child!==null)switch(e.child.tag){case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}VC(e,a,t)}break;case 5:var o=e.stateNode;if(t===null&&e.flags&4){t=o;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&t.focus();break;case"img":l.src&&(t.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var c=h.dehydrated;c!==null&&Ed(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(we(163))}Dn||e.flags&512&&Pg(e)}catch(d){Cr(e,e.return,d)}}if(e===r){Ue=null;break}if(t=e.sibling,t!==null){t.return=e.return,Ue=t;break}Ue=e.return}}function o5(r){for(;Ue!==null;){var e=Ue;if(e===r){Ue=null;break}var t=e.sibling;if(t!==null){t.return=e.return,Ue=t;break}Ue=e.return}}function l5(r){for(;Ue!==null;){var e=Ue;try{switch(e.tag){case 0:case 11:case 15:var t=e.return;try{S4(4,e)}catch(l){Cr(e,t,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(l){Cr(e,i,l)}}var s=e.return;try{Pg(e)}catch(l){Cr(e,s,l)}break;case 5:var a=e.return;try{Pg(e)}catch(l){Cr(e,a,l)}}}catch(l){Cr(e,e.return,l)}if(e===r){Ue=null;break}var o=e.sibling;if(o!==null){o.return=e.return,Ue=o;break}Ue=e.return}}var iI=Math.ceil,m3=yo.ReactCurrentDispatcher,Xv=yo.ReactCurrentOwner,ds=yo.ReactCurrentBatchConfig,kt=0,sn=null,Ur=null,vn=0,ki=0,yh=Ul(0),Yr=0,Nd=null,Qu=0,A4=0,Yv=0,od=null,ai=null,Zv=0,e0=1/0,Xa=null,g3=!1,kg=null,Cl=null,B2=!1,ol=null,y3=0,ld=0,Ig=null,Hp=-1,kp=0;function Xn(){return kt&6?kr():Hp!==-1?Hp:Hp=kr()}function wl(r){return r.mode&1?kt&2&&vn!==0?vn&-vn:$k.transition!==null?(kp===0&&(kp=o8()),kp):(r=$t,r!==0||(r=window.event,r=r===void 0?16:p8(r.type)),r):1}function $s(r,e,t,n){if(50<ld)throw ld=0,Ig=null,Error(we(185));xf(r,t,n),(!(kt&2)||r!==sn)&&(r===sn&&(!(kt&2)&&(A4|=t),Yr===4&&rl(r,vn)),hi(r,n),t===1&&kt===0&&!(e.mode&1)&&(e0=kr()+500,C4&&$l()))}function hi(r,e){var t=r.callbackNode;$H(r,e);var n=e3(r,r===sn?vn:0);if(n===0)t!==null&&yC(t),r.callbackNode=null,r.callbackPriority=0;else if(e=n&-n,r.callbackPriority!==e){if(t!=null&&yC(t),e===1)r.tag===0?Uk(u5.bind(null,r)):M8(u5.bind(null,r)),Lk(function(){!(kt&6)&&$l()}),t=null;else{switch(l8(n)){case 1:t=Cv;break;case 4:t=s8;break;case 16:t=Jp;break;case 536870912:t=a8;break;default:t=Jp}t=kS(t,SS.bind(null,r))}r.callbackPriority=e,r.callbackNode=t}}function SS(r,e){if(Hp=-1,kp=0,kt&6)throw Error(we(327));var t=r.callbackNode;if(Ih()&&r.callbackNode!==t)return null;var n=e3(r,r===sn?vn:0);if(n===0)return null;if(n&30||n&r.expiredLanes||e)e=v3(r,n);else{e=n;var i=kt;kt|=2;var s=TS();(sn!==r||vn!==e)&&(Xa=null,e0=kr()+500,Bu(r,e));do try{oI();break}catch(o){AS(r,o)}while(!0);Rv(),m3.current=s,kt=i,Ur!==null?e=0:(sn=null,vn=0,e=Yr)}if(e!==0){if(e===2&&(i=sg(r),i!==0&&(n=i,e=Mg(r,i))),e===1)throw t=Nd,Bu(r,0),rl(r,n),hi(r,kr()),t;if(e===6)rl(r,n);else{if(i=r.current.alternate,!(n&30)&&!sI(i)&&(e=v3(r,n),e===2&&(s=sg(r),s!==0&&(n=s,e=Mg(r,s))),e===1))throw t=Nd,Bu(r,0),rl(r,n),hi(r,kr()),t;switch(r.finishedWork=i,r.finishedLanes=n,e){case 0:case 1:throw Error(we(345));case 2:yu(r,ai,Xa);break;case 3:if(rl(r,n),(n&130023424)===n&&(e=Zv+500-kr(),10<e)){if(e3(r,0)!==0)break;if(i=r.suspendedLanes,(i&n)!==n){Xn(),r.pingedLanes|=r.suspendedLanes&i;break}r.timeoutHandle=fg(yu.bind(null,r,ai,Xa),e);break}yu(r,ai,Xa);break;case 4:if(rl(r,n),(n&4194240)===n)break;for(e=r.eventTimes,i=-1;0<n;){var a=31-Us(n);s=1<<a,a=e[a],a>i&&(i=a),n&=~s}if(n=i,n=kr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*iI(n/1960))-n,10<n){r.timeoutHandle=fg(yu.bind(null,r,ai,Xa),n);break}yu(r,ai,Xa);break;case 5:yu(r,ai,Xa);break;default:throw Error(we(329))}}}return hi(r,kr()),r.callbackNode===t?SS.bind(null,r):null}function Mg(r,e){var t=od;return r.current.memoizedState.isDehydrated&&(Bu(r,e).flags|=256),r=v3(r,e),r!==2&&(e=ai,ai=t,e!==null&&Rg(e)),r}function Rg(r){ai===null?ai=r:ai.push.apply(ai,r)}function sI(r){for(var e=r;;){if(e.flags&16384){var t=e.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var n=0;n<t.length;n++){var i=t[n],s=i.getSnapshot;i=i.value;try{if(!Gs(s(),i))return!1}catch{return!1}}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function rl(r,e){for(e&=~Yv,e&=~A4,r.suspendedLanes|=e,r.pingedLanes&=~e,r=r.expirationTimes;0<e;){var t=31-Us(e),n=1<<t;r[t]=-1,e&=~n}}function u5(r){if(kt&6)throw Error(we(327));Ih();var e=e3(r,0);if(!(e&1))return hi(r,kr()),null;var t=v3(r,e);if(r.tag!==0&&t===2){var n=sg(r);n!==0&&(e=n,t=Mg(r,n))}if(t===1)throw t=Nd,Bu(r,0),rl(r,e),hi(r,kr()),t;if(t===6)throw Error(we(345));return r.finishedWork=r.current.alternate,r.finishedLanes=e,yu(r,ai,Xa),hi(r,kr()),null}function qv(r,e){var t=kt;kt|=1;try{return r(e)}finally{kt=t,kt===0&&(e0=kr()+500,C4&&$l())}}function Ku(r){ol!==null&&ol.tag===0&&!(kt&6)&&Ih();var e=kt;kt|=1;var t=ds.transition,n=$t;try{if(ds.transition=null,$t=1,r)return r()}finally{$t=n,ds.transition=t,kt=e,!(kt&6)&&$l()}}function Qv(){ki=yh.current,sr(yh)}function Bu(r,e){r.finishedWork=null,r.finishedLanes=0;var t=r.timeoutHandle;if(t!==-1&&(r.timeoutHandle=-1,Fk(t)),Ur!==null)for(t=Ur.return;t!==null;){var n=t;switch(kv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&s3();break;case 3:Kh(),sr(ui),sr(Rn),Uv();break;case 5:Bv(n);break;case 4:Kh();break;case 13:sr(mr);break;case 19:sr(mr);break;case 10:Fv(n.type._context);break;case 22:case 23:Qv()}t=t.return}if(sn=r,Ur=r=bl(r.current,null),vn=ki=e,Yr=0,Nd=null,Yv=A4=Qu=0,ai=od=null,Ru!==null){for(e=0;e<Ru.length;e++)if(t=Ru[e],n=t.interleaved,n!==null){t.interleaved=null;var i=n.next,s=t.pending;if(s!==null){var a=s.next;s.next=i,n.next=a}t.pending=n}Ru=null}return r}function AS(r,e){do{var t=Ur;try{if(Rv(),Ep.current=p3,f3){for(var n=_r.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}f3=!1}if(qu=0,tn=Wr=_r=null,sd=!1,Fd=0,Xv.current=null,t===null||t.return===null){Yr=1,Nd=e,Ur=null;break}e:{var s=r,a=t.return,o=t,l=e;if(e=vn,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,h=o,c=h.tag;if(!(h.mode&1)&&(c===0||c===11||c===15)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var f=qC(a);if(f!==null){f.flags&=-257,QC(f,a,o,s,e),f.mode&1&&ZC(s,u,e),e=f,l=u;var g=e.updateQueue;if(g===null){var y=new Set;y.add(l),e.updateQueue=y}else g.add(l);break e}else{if(!(e&1)){ZC(s,u,e),Kv();break e}l=Error(we(426))}}else if(lr&&o.mode&1){var v=qC(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),QC(v,a,o,s,e),Iv(Jh(l,o));break e}}s=l=Jh(l,o),Yr!==4&&(Yr=2),od===null?od=[s]:od.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var _=lS(s,l,e);jC(s,_);break e;case 1:o=l;var x=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Cl===null||!Cl.has(w)))){s.flags|=65536,e&=-e,s.lanes|=e;var S=uS(s,o,e);jC(s,S);break e}}s=s.return}while(s!==null)}PS(t)}catch(b){e=b,Ur===t&&t!==null&&(Ur=t=t.return);continue}break}while(!0)}function TS(){var r=m3.current;return m3.current=p3,r===null?p3:r}function Kv(){(Yr===0||Yr===3||Yr===2)&&(Yr=4),sn===null||!(Qu&268435455)&&!(A4&268435455)||rl(sn,vn)}function v3(r,e){var t=kt;kt|=2;var n=TS();(sn!==r||vn!==e)&&(Xa=null,Bu(r,e));do try{aI();break}catch(i){AS(r,i)}while(!0);if(Rv(),kt=t,m3.current=n,Ur!==null)throw Error(we(261));return sn=null,vn=0,Yr}function aI(){for(;Ur!==null;)ES(Ur)}function oI(){for(;Ur!==null&&!IH();)ES(Ur)}function ES(r){var e=HS(r.alternate,r,ki);r.memoizedProps=r.pendingProps,e===null?PS(r):Ur=e,Xv.current=null}function PS(r){var e=r;do{var t=e.alternate;if(r=e.return,e.flags&32768){if(t=eI(t,e),t!==null){t.flags&=32767,Ur=t;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Yr=6,Ur=null;return}}else if(t=Jk(t,e,ki),t!==null){Ur=t;return}if(e=e.sibling,e!==null){Ur=e;return}Ur=e=r}while(e!==null);Yr===0&&(Yr=5)}function yu(r,e,t){var n=$t,i=ds.transition;try{ds.transition=null,$t=1,lI(r,e,t,n)}finally{ds.transition=i,$t=n}return null}function lI(r,e,t,n){do Ih();while(ol!==null);if(kt&6)throw Error(we(327));t=r.finishedWork;var i=r.finishedLanes;if(t===null)return null;if(r.finishedWork=null,r.finishedLanes=0,t===r.current)throw Error(we(177));r.callbackNode=null,r.callbackPriority=0;var s=t.lanes|t.childLanes;if(zH(r,s),r===sn&&(Ur=sn=null,vn=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||B2||(B2=!0,kS(Jp,function(){return Ih(),null})),s=(t.flags&15990)!==0,t.subtreeFlags&15990||s){s=ds.transition,ds.transition=null;var a=$t;$t=1;var o=kt;kt|=4,Xv.current=null,rI(r,t),wS(t,r),Pk(hg),t3=!!cg,hg=cg=null,r.current=t,nI(t),MH(),kt=o,$t=a,ds.transition=s}else r.current=t;if(B2&&(B2=!1,ol=r,y3=i),s=r.pendingLanes,s===0&&(Cl=null),LH(t.stateNode),hi(r,kr()),e!==null)for(n=r.onRecoverableError,t=0;t<e.length;t++)i=e[t],n(i.value,{componentStack:i.stack,digest:i.digest});if(g3)throw g3=!1,r=kg,kg=null,r;return y3&1&&r.tag!==0&&Ih(),s=r.pendingLanes,s&1?r===Ig?ld++:(ld=0,Ig=r):ld=0,$l(),null}function Ih(){if(ol!==null){var r=l8(y3),e=ds.transition,t=$t;try{if(ds.transition=null,$t=16>r?16:r,ol===null)var n=!1;else{if(r=ol,ol=null,y3=0,kt&6)throw Error(we(331));var i=kt;for(kt|=4,Ue=r.current;Ue!==null;){var s=Ue,a=s.child;if(Ue.flags&16){var o=s.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(Ue=u;Ue!==null;){var h=Ue;switch(h.tag){case 0:case 11:case 15:ad(8,h,s)}var c=h.child;if(c!==null)c.return=h,Ue=c;else for(;Ue!==null;){h=Ue;var d=h.sibling,f=h.return;if(_S(h),h===u){Ue=null;break}if(d!==null){d.return=f,Ue=d;break}Ue=f}}}var g=s.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}Ue=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,Ue=a;else e:for(;Ue!==null;){if(s=Ue,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ad(9,s,s.return)}var _=s.sibling;if(_!==null){_.return=s.return,Ue=_;break e}Ue=s.return}}var x=r.current;for(Ue=x;Ue!==null;){a=Ue;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,Ue=w;else e:for(a=x;Ue!==null;){if(o=Ue,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:S4(9,o)}}catch(b){Cr(o,o.return,b)}if(o===a){Ue=null;break e}var S=o.sibling;if(S!==null){S.return=o.return,Ue=S;break e}Ue=o.return}}if(kt=i,$l(),ga&&typeof ga.onPostCommitFiberRoot=="function")try{ga.onPostCommitFiberRoot(g4,r)}catch{}n=!0}return n}finally{$t=t,ds.transition=e}}return!1}function c5(r,e,t){e=Jh(t,e),e=lS(r,e,1),r=xl(r,e,1),e=Xn(),r!==null&&(xf(r,1,e),hi(r,e))}function Cr(r,e,t){if(r.tag===3)c5(r,r,t);else for(;e!==null;){if(e.tag===3){c5(e,r,t);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Cl===null||!Cl.has(n))){r=Jh(t,r),r=uS(e,r,1),e=xl(e,r,1),r=Xn(),e!==null&&(xf(e,1,r),hi(e,r));break}}e=e.return}}function uI(r,e,t){var n=r.pingCache;n!==null&&n.delete(e),e=Xn(),r.pingedLanes|=r.suspendedLanes&t,sn===r&&(vn&t)===t&&(Yr===4||Yr===3&&(vn&130023424)===vn&&500>kr()-Zv?Bu(r,0):Yv|=t),hi(r,e)}function DS(r,e){e===0&&(r.mode&1?(e=D2,D2<<=1,!(D2&130023424)&&(D2=4194304)):e=1);var t=Xn();r=lo(r,e),r!==null&&(xf(r,e,t),hi(r,t))}function cI(r){var e=r.memoizedState,t=0;e!==null&&(t=e.retryLane),DS(r,t)}function hI(r,e){var t=0;switch(r.tag){case 13:var n=r.stateNode,i=r.memoizedState;i!==null&&(t=i.retryLane);break;case 19:n=r.stateNode;break;default:throw Error(we(314))}n!==null&&n.delete(e),DS(r,t)}var HS;HS=function(r,e,t){if(r!==null)if(r.memoizedProps!==e.pendingProps||ui.current)li=!0;else{if(!(r.lanes&t)&&!(e.flags&128))return li=!1,Kk(r,e,t);li=!!(r.flags&131072)}else li=!1,lr&&e.flags&1048576&&R8(e,l3,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Dp(r,e),r=e.pendingProps;var i=Zh(e,Rn.current);kh(e,t),i=zv(null,e,n,r,i,t);var s=jv();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ci(n)?(s=!0,a3(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ov(e),i.updater=b4,e.stateNode=i,i._reactInternals=e,xg(e,n,r,t),e=bg(null,e,n,!0,s,t)):(e.tag=0,lr&&s&&Hv(e),zn(null,e,i,t),e=e.child),e;case 16:n=e.elementType;e:{switch(Dp(r,e),r=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=fI(n),r=ks(n,r),i){case 0:e=wg(null,e,n,r,t);break e;case 1:e=e5(null,e,n,r,t);break e;case 11:e=KC(null,e,n,r,t);break e;case 14:e=JC(null,e,n,ks(n.type,r),t);break e}throw Error(we(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ks(n,i),wg(r,e,n,i,t);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ks(n,i),e5(r,e,n,i,t);case 3:e:{if(fS(e),r===null)throw Error(we(387));n=e.pendingProps,s=e.memoizedState,i=s.element,U8(r,e),h3(e,n,null,t);var a=e.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Jh(Error(we(423)),e),e=t5(r,e,n,t,i);break e}else if(n!==i){i=Jh(Error(we(424)),e),e=t5(r,e,n,t,i);break e}else for(Fi=_l(e.stateNode.containerInfo.firstChild),Oi=e,lr=!0,Ms=null,t=N8(e,null,n,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(qh(),n===i){e=uo(r,e,t);break e}zn(r,e,n,t)}e=e.child}return e;case 5:return $8(e),r===null&&yg(e),n=e.type,i=e.pendingProps,s=r!==null?r.memoizedProps:null,a=i.children,dg(n,i)?a=null:s!==null&&dg(n,s)&&(e.flags|=32),dS(r,e),zn(r,e,a,t),e.child;case 6:return r===null&&yg(e),null;case 13:return pS(r,e,t);case 4:return Nv(e,e.stateNode.containerInfo),n=e.pendingProps,r===null?e.child=Qh(e,null,n,t):zn(r,e,n,t),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ks(n,i),KC(r,e,n,i,t);case 7:return zn(r,e,e.pendingProps,t),e.child;case 8:return zn(r,e,e.pendingProps.children,t),e.child;case 12:return zn(r,e,e.pendingProps.children,t),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,a=i.value,Jt(u3,n._currentValue),n._currentValue=a,s!==null)if(Gs(s.value,a)){if(s.children===i.children&&!ui.current){e=uo(r,e,t);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=ro(-1,t&-t),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}s.lanes|=t,l=s.alternate,l!==null&&(l.lanes|=t),vg(s.return,t,e),o.lanes|=t;break}l=l.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(we(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),vg(a,t,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}zn(r,e,i.children,t),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,kh(e,t),i=ps(i),n=n(i),e.flags|=1,zn(r,e,n,t),e.child;case 14:return n=e.type,i=ks(n,e.pendingProps),i=ks(n.type,i),JC(r,e,n,i,t);
vendor: 4,516 bytes, line 41
41case 15:return cS(r,e,e.type,e.pendingProps,t);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:ks(n,i),Dp(r,e),e.tag=1,ci(n)?(r=!0,a3(e)):r=!1,kh(e,t),oS(e,n,i),xg(e,n,i,t),bg(null,e,n,!0,r,t);case 19:return mS(r,e,t);case 22:return hS(r,e,t)}throw Error(we(156,e.tag))};function kS(r,e){return i8(r,e)}function dI(r,e,t,n){this.tag=r,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(r,e,t,n){return new dI(r,e,t,n)}function Jv(r){return r=r.prototype,!(!r||!r.isReactComponent)}function fI(r){if(typeof r=="function")return Jv(r)?1:0;if(r!=null){if(r=r.$$typeof,r===vv)return 11;if(r===_v)return 14}return 2}function bl(r,e){var t=r.alternate;return t===null?(t=as(r.tag,e,r.key,r.mode),t.elementType=r.elementType,t.type=r.type,t.stateNode=r.stateNode,t.alternate=r,r.alternate=t):(t.pendingProps=e,t.type=r.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=r.flags&14680064,t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,e=r.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=r.sibling,t.index=r.index,t.ref=r.ref,t}function Ip(r,e,t,n,i,s){var a=2;if(n=r,typeof r=="function")Jv(r)&&(a=1);else if(typeof r=="string")a=5;else e:switch(r){case oh:return Uu(t.children,i,s,e);case yv:a=8,i|=8;break;case V9:return r=as(12,t,e,i|2),r.elementType=V9,r.lanes=s,r;case G9:return r=as(13,t,e,i),r.elementType=G9,r.lanes=s,r;case W9:return r=as(19,t,e,i),r.elementType=W9,r.lanes=s,r;case $b:return T4(t,i,s,e);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Bb:a=10;break e;case Ub:a=9;break e;case vv:a=11;break e;case _v:a=14;break e;case Ko:a=16,n=null;break e}throw Error(we(130,r==null?r:typeof r,""))}return e=as(a,t,e,i),e.elementType=r,e.type=n,e.lanes=s,e}function Uu(r,e,t,n){return r=as(7,r,n,e),r.lanes=t,r}function T4(r,e,t,n){return r=as(22,r,n,e),r.elementType=$b,r.lanes=t,r.stateNode={isHidden:!1},r}function p7(r,e,t){return r=as(6,r,null,e),r.lanes=t,r}function m7(r,e,t){return e=as(4,r.children!==null?r.children:[],r.key,e),e.lanes=t,e.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},e}function pI(r,e,t,n,i){this.tag=e,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zm(0),this.expirationTimes=Zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function e_(r,e,t,n,i,s,a,o,l){return r=new pI(r,e,t,o,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=as(3,null,null,e),r.current=s,s.stateNode=r,s.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(s),r}function mI(r,e,t){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ah,key:n==null?null:""+n,children:r,containerInfo:e,implementation:t}}function IS(r){if(!r)return Pl;r=r._reactInternals;e:{if(dc(r)!==r||r.tag!==1)throw Error(we(170));var e=r;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ci(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(we(171))}if(r.tag===1){var t=r.type;if(ci(t))return I8(r,t,e)}return e}function MS(r,e,t,n,i,s,a,o,l){return r=e_(t,n,!0,r,i,s,a,o,l),r.context=IS(null),t=r.current,n=Xn(),i=wl(t),s=ro(n,i),s.callback=e??null,xl(t,s,i),r.current.lanes=i,xf(r,i,n),hi(r,n),r}function E4(r,e,t,n){var i=e.current,s=Xn(),a=wl(i);return t=IS(t),e.context===null?e.context=t:e.pendingContext=t,e=ro(s,a),e.payload={element:r},n=n===void 0?null:n,n!==null&&(e.callback=n),r=xl(i,e,a),r!==null&&($s(r,i,a,s),Tp(r,i,a)),a}function _3(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function h5(r,e){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var t=r.retryLane;r.retryLane=t!==0&&t<e?t:e}}
vendor: 6,172 bytes, line 41
41function t_(r,e){h5(r,e),(r=r.alternate)&&h5(r,e)}function gI(){return null}var RS=typeof reportError=="function"?reportError:function(r){console.error(r)};function r_(r){this._internalRoot=r}P4.prototype.render=r_.prototype.render=function(r){var e=this._internalRoot;if(e===null)throw Error(we(409));E4(r,e,null,null)};P4.prototype.unmount=r_.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var e=r.containerInfo;Ku(function(){E4(null,r,null,null)}),e[oo]=null}};function P4(r){this._internalRoot=r}P4.prototype.unstable_scheduleHydration=function(r){if(r){var e=h8();r={blockedOn:null,target:r,priority:e};for(var t=0;t<tl.length&&e!==0&&e<tl[t].priority;t++);tl.splice(t,0,r),t===0&&f8(r)}};function n_(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function D4(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function d5(){}function yI(r,e,t,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var u=_3(a);s.call(u)}}var a=MS(e,n,r,0,null,!1,!1,"",d5);return r._reactRootContainer=a,r[oo]=a.current,Hd(r.nodeType===8?r.parentNode:r),Ku(),a}for(;i=r.lastChild;)r.removeChild(i);if(typeof n=="function"){var o=n;n=function(){var u=_3(l);o.call(u)}}var l=e_(r,0,!1,null,null,!1,!1,"",d5);return r._reactRootContainer=l,r[oo]=l.current,Hd(r.nodeType===8?r.parentNode:r),Ku(function(){E4(e,l,t,n)}),l}function H4(r,e,t,n,i){var s=t._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var o=i;i=function(){var l=_3(a);o.call(l)}}E4(e,a,r,i)}else a=yI(t,e,r,i,n);return _3(a)}u8=function(r){switch(r.tag){case 3:var e=r.stateNode;if(e.current.memoizedState.isDehydrated){var t=B1(e.pendingLanes);t!==0&&(wv(e,t|1),hi(e,kr()),!(kt&6)&&(e0=kr()+500,$l()))}break;case 13:Ku(function(){var n=lo(r,1);if(n!==null){var i=Xn();$s(n,r,1,i)}}),t_(r,1)}};bv=function(r){if(r.tag===13){var e=lo(r,134217728);if(e!==null){var t=Xn();$s(e,r,134217728,t)}t_(r,134217728)}};c8=function(r){if(r.tag===13){var e=wl(r),t=lo(r,e);if(t!==null){var n=Xn();$s(t,r,e,n)}t_(r,e)}};h8=function(){return $t};d8=function(r,e){var t=$t;try{return $t=r,e()}finally{$t=t}};rg=function(r,e,t){switch(e){case"input":if(Z9(r,t),e=t.name,t.type==="radio"&&e!=null){for(t=r;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var n=t[e];if(n!==r&&n.form===r.form){var i=x4(n);if(!i)throw Error(we(90));jb(n),Z9(n,i)}}}break;case"textarea":Gb(r,t);break;case"select":e=t.value,e!=null&&Eh(r,!!t.multiple,e,!1)}};Kb=qv;Jb=Ku;var vI={usingClientEntryPoint:!1,Events:[wf,hh,x4,qb,Qb,qv]},S1={findFiberByHostInstance:Mu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_I={bundleType:S1.bundleType,version:S1.version,rendererPackageName:S1.rendererPackageName,rendererConfig:S1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yo.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=r8(r),r===null?null:r.stateNode},findFiberByHostInstance:S1.findFiberByHostInstance||gI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var U2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!U2.isDisabled&&U2.supportsFiber)try{g4=U2.inject(_I),ga=U2}catch{}}Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vI;Vi.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n_(e))throw Error(we(200));return mI(r,e,null,t)};Vi.createRoot=function(r,e){if(!n_(r))throw Error(we(299));var t=!1,n="",i=RS;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=e_(r,1,!1,null,null,t,!1,n,i),r[oo]=e.current,Hd(r.nodeType===8?r.parentNode:r),new r_(e)};Vi.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var e=r._reactInternals;if(e===void 0)throw typeof r.render=="function"?Error(we(188)):(r=Object.keys(r).join(","),Error(we(268,r)));return r=r8(e),r=r===null?null:r.stateNode,r};Vi.flushSync=function(r){return Ku(r)};Vi.hydrate=function(r,e,t){if(!D4(e))throw Error(we(200));return H4(null,r,e,!0,t)};Vi.hydrateRoot=function(r,e,t){if(!n_(r))throw Error(we(405));var n=t!=null&&t.hydratedSources||null,i=!1,s="",a=RS;if(t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),e=MS(e,null,r,1,t??null,i,!1,s,a),r[oo]=e.current,Hd(r),n)for(r=0;r<n.length;r++)t=n[r],i=t._getVersion,i=i(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i);return new P4(e)};Vi.render=function(r,e,t){if(!D4(e))throw Error(we(200));return H4(null,r,e,!1,t)};Vi.unmountComponentAtNode=function(r){if(!D4(r))throw Error(we(40));return r._reactRootContainer?(Ku(function(){H4(null,null,r,!1,function(){r._reactRootContainer=null,r[oo]=null})}),!0):!1};Vi.unstable_batchedUpdates=qv;Vi.unstable_renderSubtreeIntoContainer=function(r,e,t,n){if(!D4(t))throw Error(we(200));if(r==null||r._reactInternals===void 0)throw Error(we(38));return H4(r,e,t,!1,n)};Vi.version="18.3.1-next-f1338f8080-20240426";function FS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FS)}catch(r){console.error(r)}}FS(),Fb.exports=Vi;var xI=Fb.exports,f5=xI;z9.createRoot=f5.createRoot,z9.hydrateRoot=f5.hydrateRoot;var ud=typeof window<"u"&&new class{constructor(){this.raf=r=>{requestAnimationFrame(this.raf);const e=r-this.now;this.now=r;for(let t=0;t<this.callbacks.length;t++)this.callbacks[t].callback(r,e)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}
vendor: 51,626 bytes, lines 41-49
41add(r,e=0){return this.callbacks.push({callback:r,priority:e}),this.callbacks.sort((t,n)=>t.priority-n.priority),()=>this.remove(r)}remove(r){this.callbacks=this.callbacks.filter(({callback:e})=>r!==e)}};function Ya(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function LS(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}/*!
42 * GSAP 3.12.5
43 * https://gsap.com
44 *
45 * @license Copyright 2008-2024, GreenSock. All rights reserved.
46 * Subject to the terms at https://gsap.com/standard-license or for
47 * Club GSAP members, the agreement issued with that membership.
48 * @author: Jack Doyle, [email protected]
49*/var Ni={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},t0={duration:.5,overwrite:!1,delay:0},i_,In,ur,os=1e8,Kt=1/os,Fg=Math.PI*2,CI=Fg/4,wI=0,OS=Math.sqrt,bI=Math.cos,SI=Math.sin,an=function(e){return typeof e=="string"},br=function(e){return typeof e=="function"},co=function(e){return typeof e=="number"},s_=function(e){return typeof e>"u"},ba=function(e){return typeof e=="object"},di=function(e){return e!==!1},a_=function(){return typeof window<"u"},$2=function(e){return br(e)||an(e)},NS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Mn=Array.isArray,Lg=/(?:-?\.?\d|\.)+/gi,BS=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,vh=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,g7=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,US=/[+-]=-?[.\d]+/,$S=/[^,'"\[\]\s]+/gi,AI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,gr,oa,Og,o_,zi={},x3={},zS,jS=function(e){return(x3=Ju(e,zi))&&gi},l_=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Bd=function(e,t){return!t&&console.warn(e)},VS=function(e,t){return e&&(zi[e]=t)&&x3&&(x3[e]=t)||zi},Ud=function(){return 0},TI={suppressEvents:!0,isStart:!0,kill:!1},Mp={suppressEvents:!0,kill:!1},EI={suppressEvents:!0},u_={},Sl=[],Ng={},GS,Ii={},y7={},p5=30,Rp=[],c_="",h_=function(e){var t=e[0],n,i;if(ba(t)||br(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(i=Rp.length;i--&&!Rp[i].targetTest(t););n=Rp[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new mA(e[i],n)))||e.splice(i,1);return e},$u=function(e){return e._gsap||h_(ls(e))[0]._gsap},WS=function(e,t,n){return(n=e[t])&&br(n)?e[t]():s_(n)&&e.getAttribute&&e.getAttribute(t)||n},fi=function(e,t){return(e=e.split(",")).forEach(t)||e},Hr=function(e){return Math.round(e*1e5)/1e5||0},nn=function(e){return Math.round(e*1e7)/1e7||0},Mh=function(e,t){var n=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),n==="+"?e+i:n==="-"?e-i:n==="*"?e*i:e/i},PI=function(e,t){for(var n=t.length,i=0;e.indexOf(t[i])<0&&++i<n;);return i<n},C3=function(){var e=Sl.length,t=Sl.slice(0),n,i;for(Ng={},Sl.length=0,n=0;n<e;n++)i=t[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},XS=function(e,t,n,i){Sl.length&&!In&&C3(),e.render(t,n,In&&t<0&&(e._initted||e._startAt)),Sl.length&&!In&&C3()},YS=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match($S).length<2?t:an(e)?e.trim():e},ZS=function(e){return e},gs=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},DI=function(e){return function(t,n){for(var i in n)i in t||i==="duration"&&e||i==="ease"||(t[i]=n[i])}},Ju=function(e,t){for(var n in t)e[n]=t[n];return e},m5=function r(e,t){for(var n in t)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(e[n]=ba(t[n])?r(e[n]||(e[n]={}),t[n]):t[n]);return e},w3=function(e,t){var n={},i;for(i in e)i in t||(n[i]=e[i]);return n},cd=function(e){var t=e.parent||gr,n=e.keyframes?DI(Mn(e.keyframes)):gs;if(di(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},HI=function(e,t){for(var n=e.length,i=n===t.length;i&&n--&&e[n]===t[n];);return n<0},qS=function(e,t,n,i,s){var a=e[i],o;if(s)for(o=t[s];a&&a[s]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[i]=t,t._prev=a,t.parent=t._dp=e,t},k4=function(e,t,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var s=t._prev,a=t._next;s?s._next=a:e[n]===t&&(e[n]=a),a?a._prev=s:e[i]===t&&(e[i]=s),t._next=t._prev=t.parent=null},Dl=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},zu=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},kI=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Bg=function(e,t,n,i){return e._startAt&&(In?e._startAt.revert(Mp):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},II=function r(e){return!e||e._ts&&r(e.parent)},g5=function(e){return e._repeat?r0(e._tTime,e=e.duration()+e._rDelay)*e:0},r0=function(e,t){var n=Math.floor(e/=t);return e&&n===e?n-1:n},b3=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},I4=function(e){return e._end=nn(e._start+(e._tDur/Math.abs(e._ts||e._rts||Kt)||0))},M4=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=nn(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),I4(e),n._dirty||zu(n,e)),e},QS=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=b3(e.rawTime(),t),(!t._dur||Sf(0,t.totalDuration(),n)-t._tTime>Kt)&&t.render(n,!0)),zu(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Kt}},da=function(e,t,n,i){return t.parent&&Dl(t),t._start=nn((co(n)?n:n||e!==gr?rs(e,n,t):e._time)+t._delay),t._end=nn(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),qS(e,t,"_first","_last",e._sort?"_start":0),Ug(t)||(e._recent=t),i||QS(e,t),e._ts<0&&M4(e,e._tTime),e},KS=function(e,t){return(zi.ScrollTrigger||l_("scrollTrigger",t))&&zi.ScrollTrigger.create(t,e)},JS=function(e,t,n,i,s){if(f_(e,t,s),!e._initted)return 1;if(!n&&e._pt&&!In&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&GS!==Ri.frame)return Sl.push(e),e._lazy=[s,i],1},MI=function r(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||r(t))},Ug=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},RI=function(e,t,n,i){var s=e.ratio,a=t<0||!t&&(!e._start&&MI(e)&&!(!e._initted&&Ug(e))||(e._ts<0||e._dp._ts<0)&&!Ug(e))?0:1,o=e._rDelay,l=0,u,h,c;if(o&&e._repeat&&(l=Sf(0,e._tDur,t),h=r0(l,o),e._yoyo&&h&1&&(a=1-a),h!==r0(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==s||In||i||e._zTime===Kt||!t&&e._zTime){if(!e._initted&&JS(e,t,i,n,l))return;for(c=e._zTime,e._zTime=t||(n?Kt:0),n||(n=t&&!c),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,u=e._pt;u;)u.r(a,u.d),u=u._next;t<0&&Bg(e,t,n,!0),e._onUpdate&&!n&&Li(e,"onUpdate"),l&&e._repeat&&!n&&e.parent&&Li(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Dl(e,1),!n&&!In&&(Li(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},FI=function(e,t,n){var i;if(n>t)for(i=e._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},n0=function(e,t,n,i){var s=e._repeat,a=nn(t)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:nn(a*(s+1)+e._rDelay*s):a,o>0&&!i&&M4(e,e._tTime=e._tDur*o),e.parent&&I4(e),n||zu(e.parent,e),e},y5=function(e){return e instanceof Vn?zu(e):n0(e,e._dur)},LI={_start:0,endTime:Ud,totalDuration:Ud},rs=function r(e,t,n){var i=e.labels,s=e._recent||LI,a=e.duration()>=os?s.endTime(!1):e._dur,o,l,u;return an(t)&&(isNaN(t)||t in i)?(l=t.charAt(0),u=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(u?(o<0?s:n).totalDuration()/100:1)):o<0?(t in i||(i[t]=a),i[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),u&&n&&(l=l/100*(Mn(n)?n[0]:n).totalDuration()),o>1?r(e,t.substr(0,o-1),n)+l:a+l)):t==null?a:+t},hd=function(e,t,n){var i=co(t[1]),s=(i?2:1)+(e<2?0:1),a=t[s],o,l;if(i&&(a.duration=t[1]),a.parent=n,e){for(o=a,l=n;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=di(l.vars.inherit)&&l.parent;a.immediateRender=di(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new Nr(t[0],a,t[s+1])},zl=function(e,t){return e||e===0?t(e):t},Sf=function(e,t,n){return n<e?e:n>t?t:n},Hn=function(e,t){return!an(e)||!(t=AI.exec(e))?"":t[1]},OI=function(e,t,n){return zl(n,function(i){return Sf(e,t,i)})},$g=[].slice,eA=function(e,t){return e&&ba(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&ba(e[0]))&&!e.nodeType&&e!==oa},NI=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(i){var s;return an(i)&&!t||eA(i,1)?(s=n).push.apply(s,ls(i)):n.push(i)})||n},ls=function(e,t,n){return ur&&!t&&ur.selector?ur.selector(e):an(e)&&!n&&(Og||!i0())?$g.call((t||o_).querySelectorAll(e),0):Mn(e)?NI(e,n):eA(e)?$g.call(e,0):e?[e]:[]},zg=function(e){return e=ls(e)[0]||Bd("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return ls(t,n.querySelectorAll?n:n===e?Bd("Invalid scope")||o_.createElement("div"):e)}},tA=function(e){return e.sort(function(){return .5-Math.random()})},rA=function(e){if(br(e))return e;var t=ba(e)?e:{each:e},n=ju(t.ease),i=t.from||0,s=parseFloat(t.base)||0,a={},o=i>0&&i<1,l=isNaN(i)||o,u=t.axis,h=i,c=i;return an(i)?h=c={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(h=i[0],c=i[1]),function(d,f,g){var y=(g||t).length,v=a[y],_,x,w,S,b,E,D,P,I;if(!v){if(I=t.grid==="auto"?0:(t.grid||[1,os])[1],!I){for(D=-os;D<(D=g[I++].getBoundingClientRect().left)&&I<y;);I<y&&I--}for(v=a[y]=[],_=l?Math.min(I,y)*h-.5:i%I,x=I===os?0:l?y*c/I-.5:i/I|0,D=0,P=os,E=0;E<y;E++)w=E%I-_,S=x-(E/I|0),v[E]=b=u?Math.abs(u==="y"?S:w):OS(w*w+S*S),b>D&&(D=b),b<P&&(P=b);i==="random"&&tA(v),v.max=D-P,v.min=P,v.v=y=(parseFloat(t.amount)||parseFloat(t.each)*(I>y?y-1:u?u==="y"?y/I:I:Math.max(I,y/I))||0)*(i==="edges"?-1:1),v.b=y<0?s-y:s,v.u=Hn(t.amount||t.each)||0,n=n&&y<0?dA(n):n}return y=(v[d]-v.min)/v.max||0,nn(v.b+(n?n(y):y)*v.v)+v.u}},jg=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var i=nn(Math.round(parseFloat(n)/e)*e*t);return(i-i%1)/t+(co(n)?0:Hn(n))}},nA=function(e,t){var n=Mn(e),i,s;return!n&&ba(e)&&(i=n=e.radius||os,e.values?(e=ls(e.values),(s=!co(e[0]))&&(i*=i)):e=jg(e.increment)),zl(t,n?br(e)?function(a){return s=e(a),Math.abs(s-a)<=i?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),u=os,h=0,c=e.length,d,f;c--;)s?(d=e[c].x-o,f=e[c].y-l,d=d*d+f*f):d=Math.abs(e[c]-o),d<u&&(u=d,h=c);return h=!i||u<=i?e[h]:a,s||h===a||co(a)?h:h+Hn(a)}:jg(e))},iA=function(e,t,n,i){return zl(Mn(e)?!t:n===!0?!!(n=0):!i,function(){return Mn(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*i)/i})},BI=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduce(function(s,a){return a(s)},i)}},UI=function(e,t){return function(n){return e(parseFloat(n))+(t||Hn(n))}},$I=function(e,t,n){return aA(e,t,0,1,n)},sA=function(e,t,n){return zl(n,function(i){return e[~~t(i)]})},zI=function r(e,t,n){var i=t-e;return Mn(e)?sA(e,r(0,e.length),t):zl(n,function(s){return(i+(s-e)%i)%i+e})},jI=function r(e,t,n){var i=t-e,s=i*2;return Mn(e)?sA(e,r(0,e.length-1),t):zl(n,function(a){return a=(s+(a-e)%s)%s||0,e+(a>i?s-a:a)})},$d=function(e){for(var t=0,n="",i,s,a,o;~(i=e.indexOf("random(",t));)a=e.indexOf(")",i),o=e.charAt(i+7)==="[",s=e.substr(i+7,a-i-7).match(o?$S:Lg),n+=e.substr(t,i-t)+iA(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),t=a+1;return n+e.substr(t,e.length-t)},aA=function(e,t,n,i,s){var a=t-e,o=i-n;return zl(s,function(l){return n+((l-e)/a*o||0)})},VI=function r(e,t,n,i){var s=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!s){var a=an(e),o={},l,u,h,c,d;if(n===!0&&(i=1)&&(n=null),a)e={p:e},t={p:t};else if(Mn(e)&&!Mn(t)){for(h=[],c=e.length,d=c-2,u=1;u<c;u++)h.push(r(e[u-1],e[u]));c--,s=function(g){g*=c;var y=Math.min(d,~~g);return h[y](g-y)},n=t}else i||(e=Ju(Mn(e)?[]:{},e));if(!h){for(l in t)d_.call(o,e,l,"get",t[l]);s=function(g){return g_(g,o)||(a?e.p:e)}}}return zl(n,s)},v5=function(e,t,n){var i=e.labels,s=os,a,o,l;for(a in i)o=i[a]-t,o<0==!!n&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},Li=function(e,t,n){var i=e.vars,s=i[t],a=ur,o=e._ctx,l,u,h;if(s)return l=i[t+"Params"],u=i.callbackScope||e,n&&Sl.length&&C3(),o&&(ur=o),h=l?s.apply(u,l):s.call(u),ur=a,h},$1=function(e){return Dl(e),e.scrollTrigger&&e.scrollTrigger.kill(!!In),e.progress()<1&&Li(e,"onInterrupt"),e},_h,oA=[],lA=function(e){if(e)if(e=!e.name&&e.default||e,a_()||e.headless){var t=e.name,n=br(e),i=t&&!n&&e.init?function(){this._props=[]}:e,s={init:Ud,render:g_,add:d_,kill:aM,modifier:sM,rawVars:0},a={targetTest:0,get:0,getSetter:m_,aliases:{},register:0};if(i0(),e!==i){if(Ii[t])return;gs(i,gs(w3(e,s),a)),Ju(i.prototype,Ju(s,w3(e,a))),Ii[i.prop=t]=i,e.targetTest&&(Rp.push(i),u_[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}VS(t,i),e.register&&e.register(gi,i,pi)}else oA.push(e)},Xt=255,z1={aqua:[0,Xt,Xt],lime:[0,Xt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Xt],navy:[0,0,128],white:[Xt,Xt,Xt],olive:[128,128,0],yellow:[Xt,Xt,0],orange:[Xt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Xt,0,0],pink:[Xt,192,203],cyan:[0,Xt,Xt],transparent:[Xt,Xt,Xt,0]},v7=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Xt+.5|0},uA=function(e,t,n){var i=e?co(e)?[e>>16,e>>8&Xt,e&Xt]:0:z1.black,s,a,o,l,u,h,c,d,f,g;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),z1[e])i=z1[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Xt,i&Xt,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Xt,e&Xt]}else if(e.substr(0,3)==="hsl"){if(i=g=e.match(Lg),!t)l=+i[0]%360/360,u=+i[1]/100,h=+i[2]/100,a=h<=.5?h*(u+1):h+u-h*u,s=h*2-a,i.length>3&&(i[3]*=1),i[0]=v7(l+1/3,s,a),i[1]=v7(l,s,a),i[2]=v7(l-1/3,s,a);else if(~e.indexOf("="))return i=e.match(BS),n&&i.length<4&&(i[3]=1),i}else i=e.match(Lg)||z1.transparent;i=i.map(Number)}return t&&!g&&(s=i[0]/Xt,a=i[1]/Xt,o=i[2]/Xt,c=Math.max(s,a,o),d=Math.min(s,a,o),h=(c+d)/2,c===d?l=u=0:(f=c-d,u=h>.5?f/(2-c-d):f/(c+d),l=c===s?(a-o)/f+(a<o?6:0):c===a?(o-s)/f+2:(s-a)/f+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(h*100+.5)),n&&i.length<4&&(i[3]=1),i},cA=function(e){var t=[],n=[],i=-1;return e.split(Al).forEach(function(s){var a=s.match(vh)||[];t.push.apply(t,a),n.push(i+=a.length+1)}),t.c=n,t},_5=function(e,t,n){var i="",s=(e+i).match(Al),a=t?"hsla(":"rgba(",o=0,l,u,h,c;if(!s)return e;if(s=s.map(function(d){return(d=uA(d,t,1))&&a+(t?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),n&&(h=cA(e),l=n.c,l.join(i)!==h.c.join(i)))for(u=e.replace(Al,"1").split(vh),c=u.length-1;o<c;o++)i+=u[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(h.length?h:s.length?s:n).shift());if(!u)for(u=e.split(Al),c=u.length-1;o<c;o++)i+=u[o]+s[o];return i+u[c]},Al=function(){var r="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in z1)r+="|"+e+"\\b";return new RegExp(r+")","gi")}(),GI=/hsl[a]?\(/,hA=function(e){var t=e.join(" "),n;if(Al.lastIndex=0,Al.test(t))return n=GI.test(t),e[1]=_5(e[1],n),e[0]=_5(e[0],n,cA(e[1])),!0},zd,Ri=function(){var r=Date.now,e=500,t=33,n=r(),i=n,s=1e3/240,a=s,o=[],l,u,h,c,d,f,g=function y(v){var _=r()-i,x=v===!0,w,S,b,E;if((_>e||_<0)&&(n+=_-t),i+=_,b=i-n,w=b-a,(w>0||x)&&(E=++c.frame,d=b-c.time*1e3,c.time=b=b/1e3,a+=w+(w>=s?4:s-w),S=1),x||(l=u(y)),S)for(f=0;f<o.length;f++)o[f](b,d,E,v)};return c={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(v){return d/(1e3/(v||60))},wake:function(){zS&&(!Og&&a_()&&(oa=Og=window,o_=oa.document||{},zi.gsap=gi,(oa.gsapVersions||(oa.gsapVersions=[])).push(gi.version),jS(x3||oa.GreenSockGlobals||!oa.gsap&&oa||{}),oA.forEach(lA)),h=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&c.sleep(),u=h||function(v){return setTimeout(v,a-c.time*1e3+1|0)},zd=1,g(2))},sleep:function(){(h?cancelAnimationFrame:clearTimeout)(l),zd=0,u=Ud},lagSmoothing:function(v,_){e=v||1/0,t=Math.min(_||33,e)},fps:function(v){s=1e3/(v||240),a=c.time*1e3+s},add:function(v,_,x){var w=_?function(S,b,E,D){v(S,b,E,D),c.remove(w)}:v;return c.remove(v),o[x?"unshift":"push"](w),i0(),w},remove:function(v,_){~(_=o.indexOf(v))&&o.splice(_,1)&&f>=_&&f--},_listeners:o},c}(),i0=function(){return!zd&&Ri.wake()},St={},WI=/^[\d.\-M][\d.\-,\s]/,XI=/["']/g,YI=function(e){for(var t={},n=e.substr(1,e.length-3).split(":"),i=n[0],s=1,a=n.length,o,l,u;s<a;s++)l=n[s],o=s!==a-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),t[i]=isNaN(u)?u.replace(XI,"").trim():+u,i=l.substr(o+1).trim();return t},ZI=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",t);return e.substring(t,~i&&i<n?e.indexOf(")",n+1):n)},qI=function(e){var t=(e+"").split("("),n=St[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[YI(t[1])]:ZI(e).split(",").map(YS)):St._CE&&WI.test(e)?St._CE("",e):n},dA=function(e){return function(t){return 1-e(1-t)}},fA=function r(e,t){for(var n=e._first,i;n;)n instanceof Vn?r(n,t):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==t&&(n.timeline?r(n.timeline,t):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=t)),n=n._next},ju=function(e,t){return e&&(br(e)?e:St[e]||qI(e))||t},fc=function(e,t,n,i){n===void 0&&(n=function(l){return 1-t(1-l)}),i===void 0&&(i=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:n,easeInOut:i},a;return fi(e,function(o){St[o]=zi[o]=s,St[a=o.toLowerCase()]=n;for(var l in s)St[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=St[o+"."+l]=s[l]}),s},pA=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},_7=function r(e,t,n){var i=t>=1?t:1,s=(n||(e?.3:.45))/(t<1?t:1),a=s/Fg*(Math.asin(1/i)||0),o=function(h){return h===1?1:i*Math.pow(2,-10*h)*SI((h-a)*s)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:pA(o);return s=Fg/s,l.config=function(u,h){return r(e,u,h)},l},x7=function r(e,t){t===void 0&&(t=1.70158);var n=function(a){return a?--a*a*((t+1)*a+t)+1:0},i=e==="out"?n:e==="in"?function(s){return 1-n(1-s)}:pA(n);return i.config=function(s){return r(e,s)},i};fi("Linear,Quad,Cubic,Quart,Quint,Strong",function(r,e){var t=e<5?e+1:e;fc(r+",Power"+(t-1),e?function(n){return Math.pow(n,t)}:function(n){return n},function(n){return 1-Math.pow(1-n,t)},function(n){return n<.5?Math.pow(n*2,t)/2:1-Math.pow((1-n)*2,t)/2})});St.Linear.easeNone=St.none=St.Linear.easeIn;fc("Elastic",_7("in"),_7("out"),_7());(function(r,e){var t=1/e,n=2*t,i=2.5*t,s=function(o){return o<t?r*o*o:o<n?r*Math.pow(o-1.5/e,2)+.75:o<i?r*(o-=2.25/e)*o+.9375:r*Math.pow(o-2.625/e,2)+.984375};fc("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75);fc("Expo",function(r){return r?Math.pow(2,10*(r-1)):0});fc("Circ",function(r){return-(OS(1-r*r)-1)});fc("Sine",function(r){return r===1?1:-bI(r*CI)+1});fc("Back",x7("in"),x7("out"),x7());St.SteppedEase=St.steps=zi.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,i=e+(t?0:1),s=t?1:0,a=1-Kt;return function(o){return((i*Sf(0,a,o)|0)+s)*n}}};t0.ease=St["quad.out"];fi("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(r){return c_+=r+","+r+"Params,"});var mA=function(e,t){this.id=wI++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:WS,this.set=t?t.getSetter:m_},jd=function(){function r(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,n0(this,+t.duration,1,1),this.data=t.data,ur&&(this._ctx=ur,ur.data.push(this)),zd||Ri.wake()}var e=r.prototype;return e.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},e.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,n0(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,i){if(i0(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(M4(this,n),!s._dp||s.parent||QS(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&da(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Kt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),XS(this,n,i)),this},e.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+g5(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},e.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+g5(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*s,i):this._repeat?r0(this._tTime,s)+1:1},e.timeScale=function(n,i){if(!arguments.length)return this._rts===-Kt?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?b3(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Kt?0:this._rts,this.totalTime(Sf(-Math.abs(this._delay),this._tDur,s),i!==!1),I4(this),kI(this)},e.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(i0(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Kt&&(this._tTime-=Kt)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&da(i,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(di(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?b3(i.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=EI);var i=In;return In=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),In=i,this},e.globalTime=function(n){for(var i=this,s=arguments.length?n:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):s},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,y5(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,y5(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,i){return this.totalTime(rs(this,n),di(i))},e.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,di(i))},e.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},e.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Kt:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Kt,this},e.isActive=function(){var n=this.parent||this._dp,i=this._start,s;return!!(!n||this._ts&&this._initted&&n.isActive()&&(s=n.rawTime(!0))>=i&&s<this.endTime(!0)-Kt)},e.eventCallback=function(n,i,s){var a=this.vars;return arguments.length>1?(i?(a[n]=i,s&&(a[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=i)):delete a[n],this):a[n]},e.then=function(n){var i=this;return new Promise(function(s){var a=br(n)?n:ZS,o=function(){var u=i.then;i.then=null,br(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=u),s(a),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},e.kill=function(){$1(this)},r}();gs(jd.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Kt,_prom:0,_ps:!1,_rts:1});var Vn=function(r){LS(e,r);function e(n,i){var s;return n===void 0&&(n={}),s=r.call(this,n)||this,s.labels={},s.smoothChildTiming=!!n.smoothChildTiming,s.autoRemoveChildren=!!n.autoRemoveChildren,s._sort=di(n.sortChildren),gr&&da(n.parent||gr,Ya(s),i),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&KS(Ya(s),n.scrollTrigger),s}var t=e.prototype;return t.to=function(i,s,a){return hd(0,arguments,this),this},t.from=function(i,s,a){return hd(1,arguments,this),this},t.fromTo=function(i,s,a,o){return hd(2,arguments,this),this},t.set=function(i,s,a){return s.duration=0,s.parent=this,cd(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Nr(i,s,rs(this,a),1),this},t.call=function(i,s,a){return da(this,Nr.delayedCall(0,i,s),a)},t.staggerTo=function(i,s,a,o,l,u,h){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=u,a.onCompleteParams=h,a.parent=this,new Nr(i,a,rs(this,l)),this},t.staggerFrom=function(i,s,a,o,l,u,h){return a.runBackwards=1,cd(a).immediateRender=di(a.immediateRender),this.staggerTo(i,s,a,o,l,u,h)},t.staggerFromTo=function(i,s,a,o,l,u,h,c){return o.startAt=a,cd(o).immediateRender=di(o.immediateRender),this.staggerTo(i,s,o,l,u,h,c)},t.render=function(i,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,h=i<=0?0:nn(i),c=this._zTime<0!=i<0&&(this._initted||!u),d,f,g,y,v,_,x,w,S,b,E,D;if(this!==gr&&h>l&&i>=0&&(h=l),h!==this._tTime||a||c){if(o!==this._time&&u&&(h+=this._time-o,i+=this._time-o),d=h,S=this._start,w=this._ts,_=!w,c&&(u||(o=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(E=this._yoyo,v=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(v*100+i,s,a);if(d=nn(h%v),h===l?(y=this._repeat,d=u):(y=~~(h/v),y&&y===h/v&&(d=u,y--),d>u&&(d=u)),b=r0(this._tTime,v),!o&&this._tTime&&b!==y&&this._tTime-b*v-this._dur<=0&&(b=y),E&&y&1&&(d=u-d,D=1),y!==b&&!this._lock){var P=E&&b&1,I=P===(E&&y&1);if(y<b&&(P=!P),o=P?0:h%u?u:h,this._lock=1,this.render(o||(D?0:nn(y*v)),s,!u)._lock=0,this._tTime=h,!s&&this.parent&&Li(this,"onRepeat"),this.vars.repeatRefresh&&!D&&(this.invalidate()._lock=1),o&&o!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,I&&(this._lock=2,o=P?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!D&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;fA(this,D)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=FI(this,nn(o),nn(d)),x&&(h-=d-(d=x._start))),this._tTime=h,this._time=d,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&d&&!s&&!y&&(Li(this,"onStart"),this._tTime!==h))return this;if(d>=o&&i>=0)for(f=this._first;f;){if(g=f._next,(f._act||d>=f._start)&&f._ts&&x!==f){if(f.parent!==this)return this.render(i,s,a);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,s,a),d!==this._time||!this._ts&&!_){x=0,g&&(h+=this._zTime=-Kt);break}}f=g}else{f=this._last;for(var R=i<0?i:d;f;){if(g=f._prev,(f._act||R<=f._end)&&f._ts&&x!==f){if(f.parent!==this)return this.render(i,s,a);if(f.render(f._ts>0?(R-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(R-f._start)*f._ts,s,a||In&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){x=0,g&&(h+=this._zTime=R?-Kt:Kt);break}}f=g}}if(x&&!s&&(this.pause(),x.render(d>=o?0:-Kt)._zTime=d>=o?1:-1,this._ts))return this._start=S,I4(this),this.render(i,s,a);this._onUpdate&&!s&&Li(this,"onUpdate",!0),(h===l&&this._tTime>=this.totalDuration()||!h&&o)&&(S===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(h===l&&this._ts>0||!h&&this._ts<0)&&Dl(this,1),!s&&!(i<0&&!o)&&(h||o||!l)&&(Li(this,h===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(i,s){var a=this;if(co(s)||(s=rs(this,s,i)),!(i instanceof jd)){if(Mn(i))return i.forEach(function(o){return a.add(o,s)}),this;if(an(i))return this.addLabel(i,s);if(br(i))i=Nr.delayedCall(0,i);else return this}return this!==i?da(this,i,s):this},t.getChildren=function(i,s,a,o){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-os);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Nr?s&&l.push(u):(a&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,s,a)))),u=u._next;return l},t.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},t.remove=function(i){return an(i)?this.removeLabel(i):br(i)?this.killTweensOf(i):(k4(this,i),i===this._recent&&(this._recent=this._last),zu(this))},t.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=nn(Ri.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),r.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},t.addLabel=function(i,s){return this.labels[i]=rs(this,s),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,s,a){var o=Nr.delayedCall(0,s||Ud,a);return o.data="isPause",this._hasPause=1,da(this,o,rs(this,i))},t.removePause=function(i){var s=this._first;for(i=rs(this,i);s;)s._start===i&&s.data==="isPause"&&Dl(s),s=s._next},t.killTweensOf=function(i,s,a){for(var o=this.getTweensOf(i,a),l=o.length;l--;)ll!==o[l]&&o[l].kill(i,s);return this},t.getTweensOf=function(i,s){for(var a=[],o=ls(i),l=this._first,u=co(s),h;l;)l instanceof Nr?PI(l._targets,o)&&(u?(!ll||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(h=l.getTweensOf(o,s)).length&&a.push.apply(a,h),l=l._next;return a},t.tweenTo=function(i,s){s=s||{};var a=this,o=rs(a,i),l=s,u=l.startAt,h=l.onStart,c=l.onStartParams,d=l.immediateRender,f,g=Nr.to(a,gs({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale())||Kt,onStart:function(){if(a.pause(),!f){var v=s.duration||Math.abs((o-(u&&"time"in u?u.time:a._time))/a.timeScale());g._dur!==v&&n0(g,v,0,1).render(g._time,!0,!0),f=1}h&&h.apply(g,c||[])}},s));return d?g.render(0):g},t.tweenFromTo=function(i,s,a){return this.tweenTo(s,gs({startAt:{time:rs(this,i)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),v5(this,rs(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),v5(this,rs(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Kt)},t.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,u;o;)o._start>=a&&(o._start+=i,o._end+=i),o=o._next;if(s)for(u in l)l[u]>=a&&(l[u]+=i);return zu(this)},t.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return r.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),zu(this)},t.totalDuration=function(i){var s=0,a=this,o=a._last,l=os,u,h,c;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(c=a.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),h=o._start,h>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,da(a,o,h-o._delay,1)._lock=0):l=h,h<0&&o._ts&&(s-=h,(!c&&!a._dp||c&&c.smoothChildTiming)&&(a._start+=h/a._ts,a._time-=h,a._tTime-=h),a.shiftChildren(-h,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=u;n0(a,a===gr&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(i){if(gr._ts&&(XS(gr,b3(i,gr)),GS=Ri.frame),Ri.frame>=p5){p5+=Ni.autoSleep||120;var s=gr._first;if((!s||!s._ts)&&Ni.autoSleep&&Ri._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Ri.sleep()}}},e}(jd);gs(Vn.prototype,{_lock:0,_hasPause:0,_forcing:0});var QI=function(e,t,n,i,s,a,o){var l=new pi(this._pt,e,t,0,1,CA,null,s),u=0,h=0,c,d,f,g,y,v,_,x;for(l.b=n,l.e=i,n+="",i+="",(_=~i.indexOf("random("))&&(i=$d(i)),a&&(x=[n,i],a(x,e,t),n=x[0],i=x[1]),d=n.match(g7)||[];c=g7.exec(i);)g=c[0],y=i.substring(u,c.index),f?f=(f+1)%5:y.substr(-5)==="rgba("&&(f=1),g!==d[h++]&&(v=parseFloat(d[h-1])||0,l._pt={_next:l._pt,p:y||h===1?y:",",s:v,c:g.charAt(1)==="="?Mh(v,g)-v:parseFloat(g)-v,m:f&&f<4?Math.round:0},u=g7.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(US.test(i)||_)&&(l.e=0),this._pt=l,l},d_=function(e,t,n,i,s,a,o,l,u,h){br(i)&&(i=i(s||0,e,a));var c=e[t],d=n!=="get"?n:br(c)?u?e[t.indexOf("set")||!br(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():c,f=br(c)?u?rM:_A:p_,g;if(an(i)&&(~i.indexOf("random(")&&(i=$d(i)),i.charAt(1)==="="&&(g=Mh(d,i)+(Hn(d)||0),(g||g===0)&&(i=g))),!h||d!==i||Vg)return!isNaN(d*i)&&i!==""?(g=new pi(this._pt,e,t,+d||0,i-(d||0),typeof c=="boolean"?iM:xA,0,f),u&&(g.fp=u),o&&g.modifier(o,this,e),this._pt=g):(!c&&!(t in e)&&l_(t,i),QI.call(this,e,t,d,i,f,l||Ni.stringFilter,u))},KI=function(e,t,n,i,s){if(br(e)&&(e=dd(e,s,t,n,i)),!ba(e)||e.style&&e.nodeType||Mn(e)||NS(e))return an(e)?dd(e,s,t,n,i):e;var a={},o;for(o in e)a[o]=dd(e[o],s,t,n,i);return a},gA=function(e,t,n,i,s,a){var o,l,u,h;if(Ii[e]&&(o=new Ii[e]).init(s,o.rawVars?t[e]:KI(t[e],i,s,a,n),n,i,a)!==!1&&(n._pt=l=new pi(n._pt,s,e,0,1,o.render,o,0,o.priority),n!==_h))for(u=n._ptLookup[n._targets.indexOf(s)],h=o._props.length;h--;)u[o._props[h]]=l;return o},ll,Vg,f_=function r(e,t,n){var i=e.vars,s=i.ease,a=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,h=i.runBackwards,c=i.yoyoEase,d=i.keyframes,f=i.autoRevert,g=e._dur,y=e._startAt,v=e._targets,_=e.parent,x=_&&_.data==="nested"?_.vars.targets:v,w=e._overwrite==="auto"&&!i_,S=e.timeline,b,E,D,P,I,R,U,N,F,O,V,q,Z;if(S&&(!d||!s)&&(s="none"),e._ease=ju(s,t0.ease),e._yEase=c?dA(ju(c===!0?s:c,t0.ease)):0,c&&e._yoyo&&!e._repeat&&(c=e._yEase,e._yEase=e._ease,e._ease=c),e._from=!S&&!!i.runBackwards,!S||d&&!i.stagger){if(N=v[0]?$u(v[0]).harness:0,q=N&&i[N.prop],b=w3(i,u_),y&&(y._zTime<0&&y.progress(1),t<0&&h&&o&&!f?y.render(-1,!0):y.revert(h&&g?Mp:TI),y._lazy=0),a){if(Dl(e._startAt=Nr.set(v,gs({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!y&&di(l),startAt:null,delay:0,onUpdate:u&&function(){return Li(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(In||!o&&!f)&&e._startAt.revert(Mp),o&&g&&t<=0&&n<=0){t&&(e._zTime=t);return}}else if(h&&g&&!y){if(t&&(o=!1),D=gs({overwrite:!1,data:"isFromStart",lazy:o&&!y&&di(l),immediateRender:o,stagger:0,parent:_},b),q&&(D[N.prop]=q),Dl(e._startAt=Nr.set(v,D)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(In?e._startAt.revert(Mp):e._startAt.render(-1,!0)),e._zTime=t,!o)r(e._startAt,Kt,Kt);else if(!t)return}for(e._pt=e._ptCache=0,l=g&&di(l)||l&&!g,E=0;E<v.length;E++){if(I=v[E],U=I._gsap||h_(v)[E]._gsap,e._ptLookup[E]=O={},Ng[U.id]&&Sl.length&&C3(),V=x===v?E:x.indexOf(I),N&&(F=new N).init(I,q||b,e,V,x)!==!1&&(e._pt=P=new pi(e._pt,I,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(j){O[j]=P}),F.priority&&(R=1)),!N||q)for(D in b)Ii[D]&&(F=gA(D,b,e,V,I,x))?F.priority&&(R=1):O[D]=P=d_.call(e,I,D,"get",b[D],V,x,0,i.stringFilter);e._op&&e._op[E]&&e.kill(I,e._op[E]),w&&e._pt&&(ll=e,gr.killTweensOf(I,O,e.globalTime(t)),Z=!e.parent,ll=0),e._pt&&l&&(Ng[U.id]=1)}R&&wA(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!Z,d&&t<=0&&S.render(os,!0,!0)},JI=function(e,t,n,i,s,a,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[t],h,c,d,f;if(!u)for(u=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(h=d[f][t],h&&h.d&&h.d._pt)for(h=h.d._pt;h&&h.p!==t&&h.fp!==t;)h=h._next;if(!h)return Vg=1,e.vars[t]="+=0",f_(e,o),Vg=0,l?Bd(t+" not eligible for reset"):1;u.push(h)}for(f=u.length;f--;)c=u[f],h=c._pt||c,h.s=(i||i===0)&&!s?i:h.s+(i||0)+a*h.c,h.c=n-h.s,c.e&&(c.e=Hr(n)+Hn(c.e)),c.b&&(c.b=h.s+Hn(c.b))},eM=function(e,t){var n=e[0]?$u(e[0]).harness:0,i=n&&n.aliases,s,a,o,l;if(!i)return t;s=Ju({},t);for(a in i)if(a in s)for(l=i[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},tM=function(e,t,n,i){var s=t.ease||i||"power1.inOut",a,o;if(Mn(t))o=n[e]||(n[e]=[]),t.forEach(function(l,u){return o.push({t:u/(t.length-1)*100,v:l,e:s})});else for(a in t)o=n[a]||(n[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:s})},dd=function(e,t,n,i,s){return br(e)?e.call(t,n,i,s):an(e)&&~e.indexOf("random(")?$d(e):e},yA=c_+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",vA={};fi(yA+",id,stagger,delay,duration,paused,scrollTrigger",function(r){return vA[r]=1});var Nr=function(r){LS(e,r);function e(n,i,s,a){var o;typeof i=="number"&&(s.duration=i,i=s,s=null),o=r.call(this,a?i:cd(i))||this;var l=o.vars,u=l.duration,h=l.delay,c=l.immediateRender,d=l.stagger,f=l.overwrite,g=l.keyframes,y=l.defaults,v=l.scrollTrigger,_=l.yoyoEase,x=i.parent||gr,w=(Mn(n)||NS(n)?co(n[0]):"length"in i)?[n]:ls(n),S,b,E,D,P,I,R,U;if(o._targets=w.length?h_(w):Bd("GSAP target "+n+" not found. https://gsap.com",!Ni.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=f,g||d||$2(u)||$2(h)){if(i=o.vars,S=o.timeline=new Vn({data:"nested",defaults:y||{},targets:x&&x.data==="nested"?x.vars.targets:w}),S.kill(),S.parent=S._dp=Ya(o),S._start=0,d||$2(u)||$2(h)){if(D=w.length,R=d&&rA(d),ba(d))for(P in d)~yA.indexOf(P)&&(U||(U={}),U[P]=d[P]);for(b=0;b<D;b++)E=w3(i,vA),E.stagger=0,_&&(E.yoyoEase=_),U&&Ju(E,U),I=w[b],E.duration=+dd(u,Ya(o),b,I,w),E.delay=(+dd(h,Ya(o),b,I,w)||0)-o._delay,!d&&D===1&&E.delay&&(o._delay=h=E.delay,o._start+=h,E.delay=0),S.to(I,E,R?R(b,I,w):0),S._ease=St.none;S.duration()?u=h=0:o.timeline=0}else if(g){cd(gs(S.vars.defaults,{ease:"none"})),S._ease=ju(g.ease||i.ease||"none");var N=0,F,O,V;if(Mn(g))g.forEach(function(q){return S.to(w,q,">")}),S.duration();else{E={};for(P in g)P==="ease"||P==="easeEach"||tM(P,g[P],E,g.easeEach);for(P in E)for(F=E[P].sort(function(q,Z){return q.t-Z.t}),N=0,b=0;b<F.length;b++)O=F[b],V={ease:O.e,duration:(O.t-(b?F[b-1].t:0))/100*u},V[P]=O.v,S.to(w,V,N),N+=V.duration;S.duration()<u&&S.to({},{duration:u-S.duration()})}}u||o.duration(u=S.duration())}else o.timeline=0;return f===!0&&!i_&&(ll=Ya(o),gr.killTweensOf(w),ll=0),da(x,Ya(o),s),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(c||!u&&!g&&o._start===nn(x._time)&&di(c)&&II(Ya(o))&&x.data!=="nested")&&(o._tTime=-Kt,o.render(Math.max(0,-h)||0)),v&&KS(Ya(o),v),o}var t=e.prototype;return t.render=function(i,s,a){var o=this._time,l=this._tDur,u=this._dur,h=i<0,c=i>l-Kt&&!h?l:i<Kt?0:i,d,f,g,y,v,_,x,w,S;if(!u)RI(this,i,s,a);else if(c!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==h){if(d=c,w=this.timeline,this._repeat){if(y=u+this._rDelay,this._repeat<-1&&h)return this.totalTime(y*100+i,s,a);if(d=nn(c%y),c===l?(g=this._repeat,d=u):(g=~~(c/y),g&&g===nn(c/y)&&(d=u,g--),d>u&&(d=u)),_=this._yoyo&&g&1,_&&(S=this._yEase,d=u-d),v=r0(this._tTime,y),d===o&&!a&&this._initted&&g===v)return this._tTime=c,this;g!==v&&(w&&this._yEase&&fA(w,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==y&&this._initted&&(this._lock=a=1,this.render(nn(y*g),!0).invalidate()._lock=0))}if(!this._initted){if(JS(this,h?i:d,a,s,c))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&g!==v))return this;if(u!==this._dur)return this.render(i,s,a)}if(this._tTime=c,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(S||this._ease)(d/u),this._from&&(this.ratio=x=1-x),d&&!o&&!s&&!g&&(Li(this,"onStart"),this._tTime!==c))return this;for(f=this._pt;f;)f.r(x,f.d),f=f._next;w&&w.render(i<0?i:w._dur*w._ease(d/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(h&&Bg(this,i,s,a),Li(this,"onUpdate")),this._repeat&&g!==v&&this.vars.onRepeat&&!s&&this.parent&&Li(this,"onRepeat"),(c===this._tDur||!c)&&this._tTime===c&&(h&&!this._onUpdate&&Bg(this,i,!0,!0),(i||!u)&&(c===this._tDur&&this._ts>0||!c&&this._ts<0)&&Dl(this,1),!s&&!(h&&!o)&&(c||o||_)&&(Li(this,c===l?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),r.prototype.invalidate.call(this,i)},t.resetTo=function(i,s,a,o,l){zd||Ri.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),h;return this._initted||f_(this,u),h=this._ease(u/this._dur),JI(this,i,s,a,o,h,u,l)?this.resetTo(i,s,a,o,1):(M4(this,0),this.parent||qS(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?$1(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,ll&&ll.vars.overwrite!==!0)._first||$1(this),this.parent&&a!==this.timeline.totalDuration()&&n0(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=i?ls(i):o,u=this._ptLookup,h=this._pt,c,d,f,g,y,v,_;if((!s||s==="all")&&HI(o,l))return s==="all"&&(this._pt=0),$1(this);for(c=this._op=this._op||[],s!=="all"&&(an(s)&&(y={},fi(s,function(x){return y[x]=1}),s=y),s=eM(o,s)),_=o.length;_--;)if(~l.indexOf(o[_])){d=u[_],s==="all"?(c[_]=s,g=d,f={}):(f=c[_]=c[_]||{},g=s);for(y in g)v=d&&d[y],v&&((!("kill"in v.d)||v.d.kill(y)===!0)&&k4(this,v,"_pt"),delete d[y]),f!=="all"&&(f[y]=1)}return this._initted&&!this._pt&&h&&$1(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return hd(1,arguments)},e.delayedCall=function(i,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(i,s,a){return hd(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,a){return gr.killTweensOf(i,s,a)},e}(jd);gs(Nr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});fi("staggerTo,staggerFrom,staggerFromTo",function(r){Nr[r]=function(){var e=new Vn,t=$g.call(arguments,0);return t.splice(r==="staggerFromTo"?5:4,0,0),e[r].apply(e,t)}});var p_=function(e,t,n){return e[t]=n},_A=function(e,t,n){return e[t](n)},rM=function(e,t,n,i){return e[t](i.fp,n)},nM=function(e,t,n){return e.setAttribute(t,n)},m_=function(e,t){return br(e[t])?_A:s_(e[t])&&e.setAttribute?nM:p_},xA=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},iM=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},CA=function(e,t){var n=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+i,n=n._next;i+=t.c}t.set(t.t,t.p,i,t)},g_=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},sM=function(e,t,n,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(e,t,n),s=a},aM=function(e){for(var t=this._pt,n,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?k4(this,t,"_pt"):t.dep||(n=1),t=i;return!n},oM=function(e,t,n,i){i.mSet(e,t,i.m.call(i.tween,n,i.mt),i)},wA=function(e){for(var t=e._pt,n,i,s,a;t;){for(n=t._next,i=s;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:a)?t._prev._next=t:s=t,(t._next=i)?i._prev=t:a=t,t=n}e._pt=s},pi=function(){function r(t,n,i,s,a,o,l,u,h){this.t=n,this.s=s,this.c=a,this.p=i,this.r=o||xA,this.d=l||this,this.set=u||p_,this.pr=h||0,this._next=t,t&&(t._prev=this)}var e=r.prototype;return e.modifier=function(n,i,s){this.mSet=this.mSet||this.set,this.set=oM,this.m=n,this.mt=s,this.tween=i},r}();fi(c_+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(r){return u_[r]=1});zi.TweenMax=zi.TweenLite=Nr;zi.TimelineLite=zi.TimelineMax=Vn;gr=new Vn({sortChildren:!1,defaults:t0,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ni.stringFilter=hA;var Vu=[],Fp={},lM=[],x5=0,uM=0,C7=function(e){return(Fp[e]||lM).map(function(t){return t()})},Gg=function(){var e=Date.now(),t=[];e-x5>2&&(C7("matchMediaInit"),Vu.forEach(function(n){var i=n.queries,s=n.conditions,a,o,l,u;for(o in i)a=oa.matchMedia(i[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,u=1);u&&(n.revert(),l&&t.push(n))}),C7("matchMediaRevert"),t.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),x5=e,C7("matchMedia"))},bA=function(){function r(t,n){this.selector=n&&zg(n),this.data=[],this._r=[],this.isReverted=!1,this.id=uM++,t&&this.add(t)}var e=r.prototype;return e.add=function(n,i,s){br(n)&&(s=i,i=n,n=br);var a=this,o=function(){var u=ur,h=a.selector,c;return u&&u!==a&&u.data.push(a),s&&(a.selector=zg(s)),ur=a,c=i.apply(a,arguments),br(c)&&a._r.push(c),ur=u,a.selector=h,a.isReverted=!1,c};return a.last=o,n===br?o(a,function(l){return a.add(null,l)}):n?a[n]=o:o},e.ignore=function(n){var i=ur;ur=null,n(this),ur=i},e.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof r?n.push.apply(n,i.getTweens()):i instanceof Nr&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(n,i){var s=this;if(n?function(){for(var o=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(h){return o.splice(o.indexOf(h),1)}));for(o.map(function(h){return{g:h._dur||h._delay||h._sat&&!h._sat.vars.immediateRender?h.globalTime(0):-1/0,t:h}}).sort(function(h,c){return c.g-h.g||-1/0}).forEach(function(h){return h.t.revert(n)}),l=s.data.length;l--;)u=s.data[l],u instanceof Vn?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Nr)&&u.revert&&u.revert(n);s._r.forEach(function(h){return h(n,s)}),s.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var a=Vu.length;a--;)Vu[a].id===this.id&&Vu.splice(a,1)},e.revert=function(n){this.kill(n||{})},r}(),cM=function(){function r(t){this.contexts=[],this.scope=t,ur&&ur.data.push(this)}var e=r.prototype;return e.add=function(n,i,s){ba(n)||(n={matches:n});var a=new bA(0,s||this.scope),o=a.conditions={},l,u,h;ur&&!a.selector&&(a.selector=ur.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=n;for(u in n)u==="all"?h=1:(l=oa.matchMedia(n[u]),l&&(Vu.indexOf(a)<0&&Vu.push(a),(o[u]=l.matches)&&(h=1),l.addListener?l.addListener(Gg):l.addEventListener("change",Gg)));return h&&i(a,function(c){return a.add(null,c)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},r}(),S3={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(i){return lA(i)})},timeline:function(e){return new Vn(e)},getTweensOf:function(e,t){return gr.getTweensOf(e,t)},getProperty:function(e,t,n,i){an(e)&&(e=ls(e)[0]);var s=$u(e||{}).get,a=n?ZS:YS;return n==="native"&&(n=""),e&&(t?a((Ii[t]&&Ii[t].get||s)(e,t,n,i)):function(o,l,u){return a((Ii[o]&&Ii[o].get||s)(e,o,l,u))})},quickSetter:function(e,t,n){if(e=ls(e),e.length>1){var i=e.map(function(h){return gi.quickSetter(h,t,n)}),s=i.length;return function(h){for(var c=s;c--;)i[c](h)}}e=e[0]||{};var a=Ii[t],o=$u(e),l=o.harness&&(o.harness.aliases||{})[t]||t,u=a?function(h){var c=new a;_h._pt=0,c.init(e,n?h+n:h,_h,0,[e]),c.render(1,c),_h._pt&&g_(1,_h)}:o.set(e,l);return a?u:function(h){return u(e,l,n?h+n:h,o,1)}},quickTo:function(e,t,n){var i,s=gi.to(e,Ju((i={},i[t]="+=0.1",i.paused=!0,i),n||{})),a=function(l,u,h){return s.resetTo(t,l,u,h)};return a.tween=s,a},isTweening:function(e){return gr.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ju(e.ease,t0.ease)),m5(t0,e||{})},config:function(e){return m5(Ni,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,i=e.plugins,s=e.defaults,a=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Ii[o]&&!zi[o]&&Bd(t+" effect requires "+o+" plugin.")}),y7[t]=function(o,l,u){return n(ls(o),gs(l||{},s),u)},a&&(Vn.prototype[t]=function(o,l,u){return this.add(y7[t](o,ba(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,t){St[e]=ju(t)},parseEase:function(e,t){return arguments.length?ju(e,t):St},getById:function(e){return gr.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Vn(e),i,s;for(n.smoothChildTiming=di(e.smoothChildTiming),gr.remove(n),n._dp=0,n._time=n._tTime=gr._time,i=gr._first;i;)s=i._next,(t||!(!i._dur&&i instanceof Nr&&i.vars.onComplete===i._targets[0]))&&da(n,i,i._start-i._delay),i=s;return da(gr,n,0),n},context:function(e,t){return e?new bA(e,t):ur},matchMedia:function(e){return new cM(e)},matchMediaRefresh:function(){return Vu.forEach(function(e){var t=e.conditions,n,i;for(i in t)t[i]&&(t[i]=!1,n=1);n&&e.revert()})||Gg()},addEventListener:function(e,t){var n=Fp[e]||(Fp[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Fp[e],i=n&&n.indexOf(t);i>=0&&n.splice(i,1)},utils:{wrap:zI,wrapYoyo:jI,distribute:rA,random:iA,snap:nA,normalize:$I,getUnit:Hn,clamp:OI,splitColor:uA,toArray:ls,selector:zg,mapRange:aA,pipe:BI,unitize:UI,interpolate:VI,shuffle:tA},install:jS,effects:y7,ticker:Ri,updateRoot:Vn.updateRoot,plugins:Ii,globalTimeline:gr,core:{PropTween:pi,globals:VS,Tween:Nr,Timeline:Vn,Animation:jd,getCache:$u,_removeLinkedListItem:k4,reverting:function(){return In},context:function(e){return e&&ur&&(ur.data.push(e),e._ctx=ur),ur},suppressOverwrites:function(e){return i_=e}}};fi("to,from,fromTo,delayedCall,set,killTweensOf",function(r){return S3[r]=Nr[r]});Ri.add(Vn.updateRoot);_h=S3.to({},{duration:0});var hM=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},dM=function(e,t){var n=e._targets,i,s,a;for(i in t)for(s=n.length;s--;)a=e._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=hM(a,i)),a&&a.modifier&&a.modifier(t[i],e,n[s],i))},w7=function(e,t){return{name:e,rawVars:1,init:function(i,s,a){a._onInit=function(o){var l,u;if(an(s)&&(l={},fi(s,function(h){return l[h]=1}),s=l),t){l={};for(u in s)l[u]=t(s[u]);s=l}dM(o,s)}}}},gi=S3.registerPlugin({name:"attr",init:function(e,t,n,i,s){var a,o,l;this.tween=n;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],i,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)In?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},w7("roundProps",jg),w7("modifiers"),w7("snap",nA))||S3;Nr.version=Vn.version=gi.version="3.12.5";zS=1;a_()&&i0();St.Power0;St.Power1;St.Power2;St.Power3;St.Power4;St.Linear;St.Quad;St.Cubic;St.Quart;St.Quint;St.Strong;St.Elastic;St.Back;St.SteppedEase;St.Bounce;St.Sine;St.Expo;
vendor: 4,360 bytes, lines 49-57
49St.Circ;/*!
50 * CSSPlugin 3.12.5
51 * https://gsap.com
52 *
53 * Copyright 2008-2024, GreenSock. All rights reserved.
54 * Subject to the terms at https://gsap.com/standard-license or for
55 * Club GSAP members, the agreement issued with that membership.
56 * @author: Jack Doyle, [email protected]
57*/var C5,ul,Rh,y_,Lu,w5,v_,fM=function(){return typeof window<"u"},ho={},vu=180/Math.PI,Fh=Math.PI/180,Vc=Math.atan2,b5=1e8,__=/([A-Z])/g,pM=/(left|right|width|margin|padding|x)/i,mM=/[\s,\(]\S/,fa={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wg=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},gM=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},yM=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},vM=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},SA=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},AA=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},_M=function(e,t,n){return e.style[t]=n},xM=function(e,t,n){return e.style.setProperty(t,n)},CM=function(e,t,n){return e._gsap[t]=n},wM=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},bM=function(e,t,n,i,s){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(s,a)},SM=function(e,t,n,i,s){var a=e._gsap;a[t]=n,a.renderTransform(s,a)},yr="transform",mi=yr+"Origin",AM=function r(e,t){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in ho&&s){if(this.tfm=this.tfm||{},e!=="transform")e=fa[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return n.tfm[o]=qa(i,o)}):this.tfm[e]=a.x?a[e]:qa(i,e),e===mi&&(this.tfm.zOrigin=a.zOrigin);else return fa.transform.split(",").forEach(function(o){return r.call(n,o,t)});if(this.props.indexOf(yr)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(mi,t,"")),e=yr}(s||t)&&this.props.push(e,t,s[e])},TA=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},TM=function(){var e=this.props,t=this.target,n=t.style,i=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?t[e[s]]=e[s+2]:e[s+2]?n[e[s]]=e[s+2]:n.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(__,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=v_(),(!s||!s.isStart)&&!n[yr]&&(TA(n),i.zOrigin&&n[mi]&&(n[mi]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},EA=function(e,t){var n={target:e,props:[],revert:TM,save:AM};return e._gsap||gi.core.getCache(e),t&&t.split(",").forEach(function(i){return n.save(i)}),n},PA,Xg=function(e,t){var n=ul.createElementNS?ul.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ul.createElement(e);return n&&n.style?n:ul.createElement(e)},va=function r(e,t,n){var i=getComputedStyle(e);return i[t]||i.getPropertyValue(t.replace(__,"-$1").toLowerCase())||i.getPropertyValue(t)||!n&&r(e,s0(t)||t,1)||""},S5="O,Moz,ms,Ms,Webkit".split(","),s0=function(e,t,n){var i=t||Lu,s=i.style,a=5;if(e in s&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(S5[a]+e in s););return a<0?null:(a===3?"ms":a>=0?S5[a]:"")+e},Yg=function(){fM()&&window.document&&(C5=window,ul=C5.document,Rh=ul.documentElement,Lu=Xg("div")||{style:{}},Xg("div"),yr=s0(yr),mi=yr+"Origin",Lu.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",PA=!!s0("perspective"),v_=gi.core.reverting,y_=1)},b7=function r(e){var t=Xg("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,a;if(Rh.appendChild(t),t.appendChild(this),this.style.display="block",e)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(a=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),Rh.removeChild(t),this.style.cssText=s,a},A5=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},DA=function(e){var t;try{t=e.getBBox()}catch{t=b7.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===b7||(t=b7.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+A5(e,["x","cx","x1"])||0,y:+A5(e,["y","cy","y1"])||0,width:0,height:0}:t},HA=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&DA(e))},ec=function(e,t){if(t){var n=e.style,i;
vendor: 11,679 bytes, line 57
57t in ho&&t!==mi&&(t=yr),n.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),n.removeProperty(i==="--"?t:t.replace(__,"-$1").toLowerCase())):n.removeAttribute(t)}},cl=function(e,t,n,i,s,a){var o=new pi(e._pt,t,n,0,1,a?AA:SA);return e._pt=o,o.b=i,o.e=s,e._props.push(n),o},T5={deg:1,rad:1,turn:1},EM={grid:1,flex:1},Hl=function r(e,t,n,i){var s=parseFloat(n)||0,a=(n+"").trim().substr((s+"").length)||"px",o=Lu.style,l=pM.test(t),u=e.tagName.toLowerCase()==="svg",h=(u?"client":"offset")+(l?"Width":"Height"),c=100,d=i==="px",f=i==="%",g,y,v,_;if(i===a||!s||T5[i]||T5[a])return s;if(a!=="px"&&!d&&(s=r(e,t,n,"px")),_=e.getCTM&&HA(e),(f||a==="%")&&(ho[t]||~t.indexOf("adius")))return g=_?e.getBBox()[l?"width":"height"]:e[h],Hr(f?s/g*c:s/100*g);if(o[l?"width":"height"]=c+(d?a:i),y=~t.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,_&&(y=(e.ownerSVGElement||{}).parentNode),(!y||y===ul||!y.appendChild)&&(y=ul.body),v=y._gsap,v&&f&&v.width&&l&&v.time===Ri.time&&!v.uncache)return Hr(s/v.width*c);if(f&&(t==="height"||t==="width")){var x=e.style[t];e.style[t]=c+i,g=e[h],x?e.style[t]=x:ec(e,t)}else(f||a==="%")&&!EM[va(y,"display")]&&(o.position=va(e,"position")),y===e&&(o.position="static"),y.appendChild(Lu),g=Lu[h],y.removeChild(Lu),o.position="absolute";return l&&f&&(v=$u(y),v.time=Ri.time,v.width=y[h]),Hr(d?g*s/c:g&&s?c/g*s:0)},qa=function(e,t,n,i){var s;return y_||Yg(),t in fa&&t!=="transform"&&(t=fa[t],~t.indexOf(",")&&(t=t.split(",")[0])),ho[t]&&t!=="transform"?(s=Gd(e,i),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:T3(va(e,mi))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=A3[t]&&A3[t](e,t,n)||va(e,t)||WS(e,t)||(t==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?Hl(e,t,s,n)+n:s},PM=function(e,t,n,i){if(!n||n==="none"){var s=s0(t,e,1),a=s&&va(e,s,1);a&&a!==n?(t=s,n=a):t==="borderColor"&&(n=va(e,"borderTopColor"))}var o=new pi(this._pt,e.style,t,0,1,CA),l=0,u=0,h,c,d,f,g,y,v,_,x,w,S,b;if(o.b=n,o.e=i,n+="",i+="",i==="auto"&&(y=e.style[t],e.style[t]=i,i=va(e,t)||i,y?e.style[t]=y:ec(e,t)),h=[n,i],hA(h),n=h[0],i=h[1],d=n.match(vh)||[],b=i.match(vh)||[],b.length){for(;c=vh.exec(i);)v=c[0],x=i.substring(l,c.index),g?g=(g+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(g=1),v!==(y=d[u++]||"")&&(f=parseFloat(y)||0,S=y.substr((f+"").length),v.charAt(1)==="="&&(v=Mh(f,v)+S),_=parseFloat(v),w=v.substr((_+"").length),l=vh.lastIndex-w.length,w||(w=w||Ni.units[t]||S,l===i.length&&(i+=w,o.e+=w)),S!==w&&(f=Hl(e,t,y,w)||0),o._pt={_next:o._pt,p:x||u===1?x:",",s:f,c:_-f,m:g&&g<4||t==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=t==="display"&&i==="none"?AA:SA;return US.test(i)&&(o.e=0),this._pt=o,o},E5={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},DM=function(e){var t=e.split(" "),n=t[0],i=t[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(e=n,n=i,i=e),t[0]=E5[n]||n,t[1]=E5[i]||i,t.join(" ")},HM=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,i=n.style,s=t.u,a=n._gsap,o,l,u;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],ho[o]&&(l=1,o=o==="transformOrigin"?mi:yr),ec(n,o);l&&(ec(n,yr),a&&(a.svg&&n.removeAttribute("transform"),Gd(n,1),a.uncache=1,TA(i)))}},A3={clearProps:function(e,t,n,i,s){if(s.data!=="isFromStart"){var a=e._pt=new pi(e._pt,t,n,0,0,HM);return a.u=i,a.pr=-10,a.tween=s,e._props.push(n),1}}},Vd=[1,0,0,1,0,0],kA={},IA=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},P5=function(e){var t=va(e,yr);return IA(t)?Vd:t.substr(7).match(BS).map(Hr)},x_=function(e,t){var n=e._gsap||$u(e),i=e.style,s=P5(e),a,o,l,u;return n.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Vd:s):(s===Vd&&!e.offsetParent&&e!==Rh&&!n.svg&&(l=i.display,i.display="block",a=e.parentNode,(!a||!e.offsetParent)&&(u=1,o=e.nextElementSibling,Rh.appendChild(e)),s=P5(e),l?i.display=l:ec(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):Rh.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Zg=function(e,t,n,i,s,a){var o=e._gsap,l=s||x_(e,!0),u=o.xOrigin||0,h=o.yOrigin||0,c=o.xOffset||0,d=o.yOffset||0,f=l[0],g=l[1],y=l[2],v=l[3],_=l[4],x=l[5],w=t.split(" "),S=parseFloat(w[0])||0,b=parseFloat(w[1])||0,E,D,P,I;n?l!==Vd&&(D=f*v-g*y)&&(P=S*(v/D)+b*(-y/D)+(y*x-v*_)/D,I=S*(-g/D)+b*(f/D)-(f*x-g*_)/D,S=P,b=I):(E=DA(e),S=E.x+(~w[0].indexOf("%")?S/100*E.width:S),b=E.y+(~(w[1]||w[0]).indexOf("%")?b/100*E.height:b)),i||i!==!1&&o.smooth?(_=S-u,x=b-h,o.xOffset=c+(_*f+x*y)-_,o.yOffset=d+(_*g+x*v)-x):o.xOffset=o.yOffset=0,o.xOrigin=S,o.yOrigin=b,o.smooth=!!i,o.origin=t,o.originIsAbsolute=!!n,e.style[mi]="0px 0px",a&&(cl(a,o,"xOrigin",u,S),cl(a,o,"yOrigin",h,b),cl(a,o,"xOffset",c,o.xOffset),cl(a,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",S+" "+b)},Gd=function(e,t){var n=e._gsap||new mA(e);if("x"in n&&!t&&!n.uncache)return n;var i=e.style,s=n.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=va(e,mi)||"0",h,c,d,f,g,y,v,_,x,w,S,b,E,D,P,I,R,U,N,F,O,V,q,Z,j,Y,G,J,ee,ve,_e,Oe;return h=c=d=y=v=_=x=w=S=0,f=g=1,n.svg=!!(e.getCTM&&HA(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[yr]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[yr]!=="none"?l[yr]:"")),i.scale=i.rotate=i.translate="none"),D=x_(e,n.svg),n.svg&&(n.uncache?(j=e.getBBox(),u=n.xOrigin-j.x+"px "+(n.yOrigin-j.y)+"px",Z=""):Z=!t&&e.getAttribute("data-svg-origin"),Zg(e,Z||u,!!Z||n.originIsAbsolute,n.smooth!==!1,D)),b=n.xOrigin||0,E=n.yOrigin||0,D!==Vd&&(U=D[0],N=D[1],F=D[2],O=D[3],h=V=D[4],c=q=D[5],D.length===6?(f=Math.sqrt(U*U+N*N),g=Math.sqrt(O*O+F*F),y=U||N?Vc(N,U)*vu:0,x=F||O?Vc(F,O)*vu+y:0,x&&(g*=Math.abs(Math.cos(x*Fh))),n.svg&&(h-=b-(b*U+E*F),c-=E-(b*N+E*O))):(Oe=D[6],ve=D[7],G=D[8],J=D[9],ee=D[10],_e=D[11],h=D[12],c=D[13],d=D[14],P=Vc(Oe,ee),v=P*vu,P&&(I=Math.cos(-P),R=Math.sin(-P),Z=V*I+G*R,j=q*I+J*R,Y=Oe*I+ee*R,G=V*-R+G*I,J=q*-R+J*I,ee=Oe*-R+ee*I,_e=ve*-R+_e*I,V=Z,q=j,Oe=Y),P=Vc(-F,ee),_=P*vu,P&&(I=Math.cos(-P),R=Math.sin(-P),Z=U*I-G*R,j=N*I-J*R,Y=F*I-ee*R,_e=O*R+_e*I,U=Z,N=j,F=Y),P=Vc(N,U),y=P*vu,P&&(I=Math.cos(P),R=Math.sin(P),Z=U*I+N*R,j=V*I+q*R,N=N*I-U*R,q=q*I-V*R,U=Z,V=j),v&&Math.abs(v)+Math.abs(y)>359.9&&(v=y=0,_=180-_),f=Hr(Math.sqrt(U*U+N*N+F*F)),g=Hr(Math.sqrt(q*q+Oe*Oe)),P=Vc(V,q),x=Math.abs(P)>2e-4?P*vu:0,S=_e?1/(_e<0?-_e:_e):0),n.svg&&(Z=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!IA(va(e,yr)),Z&&e.setAttribute("transform",Z))),Math.abs(x)>90&&Math.abs(x)<270&&(s?(f*=-1,x+=y<=0?180:-180,y+=y<=0?180:-180):(g*=-1,x+=x<=0?180:-180)),t=t||n.uncache,n.x=h-((n.xPercent=h&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-h)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=c-((n.yPercent=c&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-c)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=Hr(f),n.scaleY=Hr(g),n.rotation=Hr(y)+o,n.rotationX=Hr(v)+o,n.rotationY=Hr(_)+o,n.skewX=x+o,n.skewY=w+o,n.transformPerspective=S+a,(n.zOrigin=parseFloat(u.split(" ")[2])||!t&&n.zOrigin||0)&&(i[mi]=T3(u)),n.xOffset=n.yOffset=0,n.force3D=Ni.force3D,n.renderTransform=n.svg?IM:PA?MA:kM,n.uncache=0,n},T3=function(e){return(e=e.split(" "))[0]+" "+e[1]},S7=function(e,t,n){var i=Hn(t);return Hr(parseFloat(t)+parseFloat(Hl(e,"x",n+"px",i)))+i},kM=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,MA(e,t)},cu="0deg",A1="0px",hu=") ",MA=function(e,t){var n=t||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.z,u=n.rotation,h=n.rotationY,c=n.rotationX,d=n.skewX,f=n.skewY,g=n.scaleX,y=n.scaleY,v=n.transformPerspective,_=n.force3D,x=n.target,w=n.zOrigin,S="",b=_==="auto"&&e&&e!==1||_===!0;if(w&&(c!==cu||h!==cu)){var E=parseFloat(h)*Fh,D=Math.sin(E),P=Math.cos(E),I;E=parseFloat(c)*Fh,I=Math.cos(E),a=S7(x,a,D*I*-w),o=S7(x,o,-Math.sin(E)*-w),l=S7(x,l,P*I*-w+w)}v!==A1&&(S+="perspective("+v+hu),(i||s)&&(S+="translate("+i+"%, "+s+"%) "),(b||a!==A1||o!==A1||l!==A1)&&(S+=l!==A1||b?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+hu),u!==cu&&(S+="rotate("+u+hu),h!==cu&&(S+="rotateY("+h+hu),c!==cu&&(S+="rotateX("+c+hu),(d!==cu||f!==cu)&&(S+="skew("+d+", "+f+hu),(g!==1||y!==1)&&(S+="scale("+g+", "+y+hu),x.style[yr]=S||"translate(0, 0)"},IM=function(e,t){var n=t||this,i=n.xPercent,s=n.yPercent,a=n.x,o=n.y,l=n.rotation,u=n.skewX,h=n.skewY,c=n.scaleX,d=n.scaleY,f=n.target,g=n.xOrigin,y=n.yOrigin,v=n.xOffset,_=n.yOffset,x=n.forceCSS,w=parseFloat(a),S=parseFloat(o),b,E,D,P,I;l=parseFloat(l),u=parseFloat(u),h=parseFloat(h),h&&(h=parseFloat(h),u+=h,l+=h),l||u?(l*=Fh,u*=Fh,b=Math.cos(l)*c,E=Math.sin(l)*c,D=Math.sin(l-u)*-d,P=Math.cos(l-u)*d,u&&(h*=Fh,I=Math.tan(u-h),I=Math.sqrt(1+I*I),D*=I,P*=I,h&&(I=Math.tan(h),I=Math.sqrt(1+I*I),b*=I,E*=I)),b=Hr(b),E=Hr(E),D=Hr(D),P=Hr(P)):(b=c,P=d,E=D=0),(w&&!~(a+"").indexOf("px")||S&&!~(o+"").indexOf("px"))&&(w=Hl(f,"x",a,"px"),S=Hl(f,"y",o,"px")),(g||y||v||_)&&(w=Hr(w+g-(g*b+y*D)+v),S=Hr(S+y-(g*E+y*P)+_)),(i||s)&&(I=f.getBBox(),w=Hr(w+i/100*I.width),S=Hr(S+s/100*I.height)),I="matrix("+b+","+E+","+D+","+P+","+w+","+S+")",f.setAttribute("transform",I),x&&(f.style[yr]=I)},MM=function(e,t,n,i,s){var a=360,o=an(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?vu:1),u=l-i,h=i+u+"deg",c,d;return o&&(c=s.split("_")[1],c==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),c==="cw"&&u<0?u=(u+a*b5)%a-~~(u/a)*a:c==="ccw"&&u>0&&(u=(u-a*b5)%a-~~(u/a)*a)),e._pt=d=new pi(e._pt,t,n,i,u,gM),d.e=h,d.u="deg",e._props.push(n),d},D5=function(e,t){for(var n in t)e[n]=t[n];return e},RM=function(e,t,n){var i=D5({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=n.style,o,l,u,h,c,d,f,g;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),a[yr]=t,o=Gd(n,1),ec(n,yr),n.setAttribute("transform",u)):(u=getComputedStyle(n)[yr],a[yr]=t,o=Gd(n,1),a[yr]=u);for(l in ho)u=i[l],h=o[l],u!==h&&s.indexOf(l)<0&&(f=Hn(u),g=Hn(h),c=f!==g?Hl(n,l,u,g):parseFloat(u),d=parseFloat(h),e._pt=new pi(e._pt,o,l,c,d-c,Wg),e._pt.u=g||0,e._props.push(l));D5(o,i)};fi("padding,margin,Width,Radius",function(r,e){var t="Top",n="Right",i="Bottom",s="Left",a=(e<3?[t,n,i,s]:[t+s,t+n,i+n,i+s]).map(function(o){return e<2?r+o:"border"+o+r});A3[e>1?"border"+r:r]=function(o,l,u,h,c){var d,f;if(arguments.length<4)return d=a.map(function(g){return qa(o,g,u)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(h+"").split(" "),f={},a.forEach(function(g,y){return f[g]=d[y]=d[y]||d[(y-1)/2|0]}),o.init(l,f,c)}});var RA={name:"css",register:Yg,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,i,s){var a=this._props,o=e.style,l=n.vars.startAt,u,h,c,d,f,g,y,v,_,x,w,S,b,E,D,P;y_||Yg(),this.styles=this.styles||EA(e),P=this.styles.props,this.tween=n;for(y in t)if(y!=="autoRound"&&(h=t[y],!(Ii[y]&&gA(y,t,n,i,e,s)))){if(f=typeof h,g=A3[y],f==="function"&&(h=h.call(n,i,e,s),f=typeof h),f==="string"&&~h.indexOf("random(")&&(h=$d(h)),g)g(this,e,y,h,n)&&(D=1);else if(y.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(y)+"").trim(),h+="",Al.lastIndex=0,Al.test(u)||(v=Hn(u),_=Hn(h)),_?v!==_&&(u=Hl(e,y,u,_)+_):v&&(h+=v),this.add(o,"setProperty",u,h,i,s,0,0,y),a.push(y),P.push(y,0,o[y]);else if(f!=="undefined"){if(l&&y in l?(u=typeof l[y]=="function"?l[y].call(n,i,e,s):l[y],an(u)&&~u.indexOf("random(")&&(u=$d(u)),Hn(u+"")||u==="auto"||(u+=Ni.units[y]||Hn(qa(e,y))||""),(u+"").charAt(1)==="="&&(u=qa(e,y))):u=qa(e,y),d=parseFloat(u),x=f==="string"&&h.charAt(1)==="="&&h.substr(0,2),x&&(h=h.substr(2)),c=p
57arseFloat(h),y in fa&&(y==="autoAlpha"&&(d===1&&qa(e,"visibility")==="hidden"&&c&&(d=0),P.push("visibility",0,o.visibility),cl(this,o,"visibility",d?"inherit":"hidden",c?"inherit":"hidden",!c)),y!=="scale"&&y!=="transform"&&(y=fa[y],~y.indexOf(",")&&(y=y.split(",")[0]))),w=y in ho,w){if(this.styles.save(y),S||(b=e._gsap,b.renderTransform&&!t.parseTransform||Gd(e,t.parseTransform),E=t.smoothOrigin!==!1&&b.smooth,S=this._pt=new pi(this._pt,o,yr,0,1,b.renderTransform,b,0,-1),S.dep=1),y==="scale")this._pt=new pi(this._pt,b,"scaleY",b.scaleY,(x?Mh(b.scaleY,x+c):c)-b.scaleY||0,Wg),this._pt.u=0,a.push("scaleY",y),y+="X";else if(y==="transformOrigin"){P.push(mi,0,o[mi]),h=DM(h),b.svg?Zg(e,h,0,E,0,this):(_=parseFloat(h.split(" ")[2])||0,_!==b.zOrigin&&cl(this,b,"zOrigin",b.zOrigin,_),cl(this,o,y,T3(u),T3(h)));continue}else if(y==="svgOrigin"){Zg(e,h,1,E,0,this);continue}else if(y in kA){MM(this,b,y,d,x?Mh(d,x+h):h);continue}else if(y==="smoothOrigin"){cl(this,b,"smooth",b.smooth,h);continue}else if(y==="force3D"){b[y]=h;continue}else if(y==="transform"){RM(this,h,e);continue}}else y in o||(y=s0(y)||y);if(w||(c||c===0)&&(d||d===0)&&!mM.test(h)&&y in o)v=(u+"").substr((d+"").length),c||(c=0),_=Hn(h)||(y in Ni.units?Ni.units[y]:v),v!==_&&(d=Hl(e,y,u,_)),this._pt=new pi(this._pt,w?b:o,y,d,(x?Mh(d,x+c):c)-d,!w&&(_==="px"||y==="zIndex")&&t.autoRound!==!1?vM:Wg),this._pt.u=_||0,v!==_&&_!=="%"&&(this._pt.b=u,this._pt.r=yM);else if(y in o)PM.call(this,e,y,u,x?x+h:h);else if(y in e)this.add(e,y,u||e[y],x?x+h:h,i,s);else if(y!=="parseTransform"){l_(y,h);continue}w||(y in o?P.push(y,0,o[y]):P.push(y,1,u||e[y])),a.push(y)}}D&&wA(this)},render:function(e,t){if(t.tween._time||!v_())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:qa,aliases:fa,getSetter:function(e,t,n){var i=fa[t];return i&&i.indexOf(",")<0&&(t=i),t in ho&&t!==mi&&(e._gsap.x||qa(e,"x"))?n&&w5===n?t==="scale"?wM:CM:(w5=n||{})&&(t==="scale"?bM:SM):e.style&&!s_(e.style[t])?_M:~t.indexOf("-")?xM:m_(e,t)},core:{_removeProperty:ec,_getMatrix:x_}};gi.utils.checkPrefix=s0;gi.core.getStyleSaver=EA;(function(r,e,t,n){var i=fi(r+","+e+","+t,function(s){ho[s]=1});fi(e,function(s){Ni.units[s]="deg",kA[s]=1}),fa[i[13]]=r+","+e,fi(n,function(s){var a=s.split(":");fa[a[1]]=i[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");fi("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(r){Ni.units[r]="px"});gi.registerPlugin(RA);var ge=gi.registerPlugin(RA)||gi;ge.core.Tween;/*!
58 * @gsap/react 2.1.1
59 * https://gsap.com
60 *
61 * Copyright 2008-2024, GreenSock. All rights reserved.
62 * Subject to the terms at https://gsap.com/standard-license or for
63 * Club GSAP members, the agreement issued with that membership.
64 * @author: Jack Doyle, [email protected]
65*/let H5=typeof window<"u"?X.useLayoutEffect:X.useEffect,k5=r=>r&&!Array.isArray(r)&&typeof r=="object",z2=[],FM={},FA=ge;const pt=(r,e=z2)=>{let t=FM;k5(r)?(t=r,r=null,e="dependencies"in t?t.dependencies:z2):k5(e)&&(t=e,e="dependencies"in t?t.dependencies:z2),r&&typeof r!="function"&&console.warn("First parameter must be a function or config object");const{scope:n,revertOnUpdate:i}=t,s=X.useRef(!1),a=X.useRef(FA.context(()=>{},n)),o=X.useRef(u=>a.current.add(null,u)),l=e&&e.length&&!i;return H5(()=>{if(r&&a.current.add(r,n),!l||!s.current)return()=>a.current.revert()},e),l&&H5(()=>(s.current=!0,()=>a.current.revert()),z2),{context:a.current,contextSafe:o.current}};pt.register=r=>{FA=r};pt.headless=!0;var qg={exports:{}};(function(r,e){(function(t,n){n(e)})(fn,function(t){var n=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uD
65FC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function i(F){var O=F.nodeType,V="";if(O===1||O===9||O===11){if(typeof F.textContent=="string")return F.textContent;for(F=F.firstChild;F;F=F.nextSibling)V+=i(F)}else if(O===3||O===4)return F.nodeValue;return V}/*!
66 * SplitText: 3.12.5
67 * https://gsap.com
68 *
69 * @license Copyright 2008-2024, GreenSock. All rights reserved.
70 * Subject to the terms at https://gsap.com/standard-license or for
71 * Club GSAP members, the agreement issued with that membership.
72 * @author: Jack Doyle, [email protected]
73*/var s,a,o,l,u,h,c=/(?:\r|\n|\t\t)/g,d=/(?:\s\s+)/g,f=" ",g=function(O){s=document,a=window,l=l||O||a.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),l&&(h=l.utils.toArray,u=l.core.context||function(){},o=1)},y=function(O){return a.getComputedStyle(O)},v=function(O){return O.position==="absolute"||O.absolute===!0},_=function(O,V){for(var q=V.length,Z;--q>-1;)if(Z=V[q],O.substr(0,Z.length)===Z)return Z.length},x=" style='position:relative;display:inline-block;'",w=function(O,V){O===void 0&&(O="");var q=~O.indexOf("++"),Z=1;return q&&(O=O.split("++").join("")),function(){return"<"+V+x+(O?" class='"+O+(q?Z++:"")+"'>":">")}},S=function F(O,V,q){var Z=O.nodeType;if(Z===1||Z===9||Z===11)for(O=O.firstChild;O;O=O.nextSibling)F(O,V,q);else(Z===3||Z===4)&&(O.nodeValue=O.nodeValue.split(V).join(q))},b=function(O,V){for(var q=V.length;--q>-1;)O.push(V[q])},E=function(O,V,q){for(var Z;O&&O!==V;){if(Z=O._next||O.nextSibling,Z)return Z.textContent.charAt(0)===q;O=O.parentNode||O._parent}},D=function F(O){var V=h(O.childNodes),q=V.length,Z,j;for(Z=0;Z<q;Z++)j=V[Z],j._isSplit?F(j):Z&&j.previousSibling&&j.previousSibling.nodeType===3?(j.previousSibling.nodeValue+=j.nodeType===3?j.nodeValue:j.firstChild.nodeValue,O.removeChild(j)):j.nodeType!==3&&(O.insertBefore(j.firstChild,j),O.removeChild(j))},P=function(O,V){return parseFloat(V[O])||0},I=function(O,V,q,Z,j,Y,G){var J=y(O),ee=P("paddingLeft",J),ve=-999,_e=P("borderBottomWidth",J)+P("borderTopWidth",J),Oe=P("borderLeftWidth",J)+P("borderRightWidth",J),Te=P("paddingTop",J)+P("paddingBottom",J),qe=P("paddingLeft",J)+P("paddingRight",J),$e=P("fontSize",J)*(V.lineThreshold||.2),lt=J.textAlign,We=[],Ze=[],st=[],Pe=V.wordDelimiter||" ",rt=V.tag?V.tag:V.span?"span":"div",ut=V.type||V.split||"chars,words,lines",xt=j&&~ut.indexOf("lines")?[]:null,vt=~ut.indexOf("words"),W=~ut.indexOf("chars"),te=v(V),oe=V.linesClass,Ee=~(oe||"").indexOf("++"),Ce=[],xe=J.display==="flex",Fe=O.style.display,Ne,it,Wt,ye,vi,on,On,vo,Cn,er,Ha,ln;for(Ee&&(oe=oe.split("++").join("")),xe&&(O.style.display="block"),it=O.getElementsByTagName("*"),Wt=it.length,vi=[],Ne=0;Ne<Wt;Ne++)vi[Ne]=it[Ne];if(xt||te)for(Ne=0;Ne<Wt;Ne++)ye=vi[Ne],on=ye.parentNode===O,(on||te||W&&!vt)&&(ln=ye.offsetTop,xt&&on&&Math.abs(ln-ve)>$e&&(ye.nodeName!=="BR"||Ne===0)&&(On=[],xt.push(On),ve=ln),te&&(ye._x=ye.offsetLeft,ye._y=ln,ye._w=ye.offsetWidth,ye._h=ye.offsetHeight),xt&&((ye._isSplit&&on||!W&&on||vt&&on||!vt&&ye.parentNode.parentNode===O&&!ye.parentNode._isSplit)&&(On.push(ye),ye._x-=ee,E(ye,O,Pe)&&(ye._wordEnd=!0)),ye.nodeName==="BR"&&(ye.nextSibling&&ye.nextSibling.nodeName==="BR"||Ne===0)&&xt.push([])));for(Ne=0;Ne<Wt;Ne++){if(ye=vi[Ne],on=ye.parentNode===O,ye.nodeName==="BR"){xt||te?(ye.parentNode&&ye.parentNode.removeChild(ye),vi.splice(Ne--,1),Wt--):vt||O.appendChild(ye);continue}if(te&&(Cn=ye.style,!vt&&!on&&(ye._x+=ye.parentNode._x,ye._y+=ye.parentNode._y),Cn.left
73=ye._x+"px",Cn.top=ye._y+"px",Cn.position="absolute",Cn.display="block",Cn.width=ye._w+1+"px",Cn.height=ye._h+"px"),!vt&&W)if(ye._isSplit)for(ye._next=it=ye.nextSibling,ye.parentNode.appendChild(ye);it&&it.nodeType===3&&it.textContent===" ";)ye._next=it.nextSibling,ye.parentNode.appendChild(it),it=it.nextSibling;else ye.parentNode._isSplit?(ye._parent=ye.parentNode,!ye.previousSibling&&ye.firstChild&&(ye.firstChild._isFirst=!0),ye.nextSibling&&ye.nextSibling.textContent===" "&&!ye.nextSibling.nextSibling&&Ce.push(ye.nextSibling),ye._next=ye.nextSibling&&ye.nextSibling._isFirst?null:ye.nextSibling,ye.parentNode.removeChild(ye),vi.splice(Ne--,1),Wt--):on||(ln=!ye.nextSibling&&E(ye.parentNode,O,Pe),ye.parentNode._parent&&ye.parentNode._parent.appendChild(ye),ln&&ye.parentNode.appendChild(s.createTextNode(" ")),rt==="span"&&(ye.style.display="inline"),We.push(ye));else ye.parentNode._isSplit&&!ye._isSplit&&ye.innerHTML!==""?Ze.push(ye):W&&!ye._isSplit&&(rt==="span"&&(ye.style.display="inline"),We.push(ye))}for(Ne=Ce.length;--Ne>-1;)Ce[Ne].parentNode.removeChild(Ce[Ne]);if(xt){for(te&&(er=s.createElement(rt),O.appendChild(er),Ha=er.offsetWidth+"px",ln=er.offsetParent===O?0:O.offsetLeft,O.removeChild(er)),Cn=O.style.cssText,O.style.cssText="display:none;";O.firstChild;)O.removeChild(O.firstChild);for(vo=Pe===" "&&(!te||!vt&&!W),Ne=0;Ne<xt.length;Ne++){for(On=xt[Ne],er=s.createElement(rt),er.style.cssText="display:block;text-align:"+lt+";position:"+(te?"absolute;":"relative;"),oe&&(er.className=oe+(Ee?Ne+1:"")),st.push(er),Wt=On.length,it=0;it<Wt;it++)On[it].nodeName!=="BR"&&(ye=On[it],er.appendChild(ye),vo&&ye._wordEnd&&er.appendChild(s.createTextNode(" ")),te&&(it===0&&(er.style.top=ye._y+"px",er.style.left=ee+ln+"px"),ye.style.top="0px",ln&&(ye.style.left=ye._x-ln+"px")));Wt===0?er.innerHTML="&nbsp;":!vt&&!W&&(D(er),S(er," "," ")),te&&(er.style.width=Ha,er.style.height=ye._h+"px"),O.appendChild(er)}O.style.cssText=Cn}te&&(G>O.clientHeight&&(O.style.height=G-Te+"px",O.clientHeight<G&&(O.style.height=G+_e+"px")),Y>O.clientWidth&&(O.style.width=Y-qe+"px",O.clientWidth<Y&&(O.style.width=Y+Oe+"px"))),xe&&(Fe?O.style.display=Fe:O.style.removeProperty("display")),b(q,We),vt&&b(Z,Ze),b(j,st)},R=function(O,V,q,Z){var j=V.tag?V.tag:V.span?"span":"div",Y=V.type||V.split||"chars,words,lines",G=~Y.indexOf("chars"),J=v(V),ee=V.wordDelimiter||" ",ve=function(te){return te===ee||te===f&&ee===" "},_e=ee!==" "?"":J?"&#173; ":" ",Oe="</"+j+">",Te=1,qe=V.specialChars?typeof V.specialChars=="function"?V.specialChars:_:null,$e,lt,We,Ze,st,Pe,rt,ut,xt=s.createElement("div"),vt=O.parentNode;for(vt.insertBefore(xt,O),xt.textContent=O.nodeValue,vt.removeChild(O),O=xt,$e=i(O),rt=$e.indexOf("<")!==-1,V.reduceWhiteSpace!==!1&&($e=$e.replace(d," ").replace(c,"")),rt&&($e=$e.split("<").join("{{LT}}")),st=$e.length,lt=($e.charAt(0)===" "?_e:"")+q(),We=0;We<st;We++)if(Pe=$e.charAt(We),qe&&(ut=qe($e.substr(We),V.specialChars)))Pe=$e.substr(We,ut||1),lt+=G&&Pe!==" "?Z()+Pe+"</"+j+">":Pe,We+=ut-1;else if(ve(Pe)&&!ve($e.charAt(We-1))&&We){for(lt+=Te?Oe:"",Te=0;ve($e.charAt(We+1));)lt+=_e,We++;We===st-1?lt+=_e:$e.charAt(We+1)!==")"&&(lt+=_e+q(),Te=1)}else Pe==="{"&&$e.substr(We,6)==="{{LT}}
73"?(lt+=G?Z()+"{{LT}}</"+j+">":"{{LT}}",We+=5):Pe.charCodeAt(0)>=55296&&Pe.charCodeAt(0)<=56319||$e.charCodeAt(We+1)>=65024&&$e.charCodeAt(We+1)<=65039?(Ze=(($e.substr(We,12).split(n)||[])[1]||"").length||2,lt+=G&&Pe!==" "?Z()+$e.substr(We,Ze)+"</"+j+">":$e.substr(We,Ze),We+=Ze-1):lt+=G&&Pe!==" "?Z()+Pe+"</"+j+">":Pe;O.outerHTML=lt+(Te?Oe:""),rt&&S(vt,"{{LT}}","<")},U=function F(O,V,q,Z){var j=h(O.childNodes),Y=j.length,G=v(V),J,ee;if(O.nodeType!==3||Y>1){for(V.absolute=!1,J=0;J<Y;J++)ee=j[J],ee._next=ee._isFirst=ee._parent=ee._wordEnd=null,(ee.nodeType!==3||/\S+/.test(ee.nodeValue))&&(G&&ee.nodeType!==3&&y(ee).display==="inline"&&(ee.style.display="inline-block",ee.style.position="relative"),ee._isSplit=!0,F(ee,V,q,Z));V.absolute=G,O._isSplit=!0;return}R(O,V,q,Z)},N=function(){function F(V,q){o||g(),this.elements=h(V),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=q||{},u(this),this.split(q)}var O=F.prototype;return O.split=function(q){this.isSplit&&this.revert(),this.vars=q=q||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var Z=this.elements.length,j=q.tag?q.tag:q.span?"span":"div",Y=w(q.wordsClass,j),G=w(q.charsClass,j),J,ee,ve;--Z>-1;)ve=this.elements[Z],this._originals[Z]={html:ve.innerHTML,style:ve.getAttribute("style")},J=ve.clientHeight,ee=ve.clientWidth,U(ve,q,Y,G),I(ve,q,this.chars,this.words,this.lines,ee,J);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},O.revert=function(){var q=this._originals;if(!q)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(Z,j){Z.innerHTML=q[j].html,Z.setAttribute("style",q[j].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},F.create=function(q,Z){return new F(q,Z)},F}();N.version="3.12.5",N.register=g,t.SplitText=N,t.default=N,Object.defineProperty(t,"__esModule",{value:!0})})})(qg,qg.exports);var LA=qg.exports;ge.registerPlugin(pt,LA.SplitText);function LM(){return X.useLayoutEffect(()=>{ge.defaults({ease:"none"}),ge.ticker.lagSmoothing(0),ge.ticker.remove(ge.updateRoot),ud==null||ud.add(r=>{ge.updateRoot(r/1e3)},0)},[]),null}var OA={};/*!
74 *  howler.js v2.2.4
75 *  howlerjs.com
76 *
77 *  (c) 2013-2020, James Simpson of GoldFire Studios
78 *  goldfirestudios.com
79 *
80 *  MIT License
81 */(function(r){(function(){var e=function(){this.init()};e.prototype={init:function(){var c=this||t;
vendor: 30,235 bytes, lines 81-91
81return c._counter=1e3,c._html5AudioPool=[],c.html5PoolSize=10,c._codecs={},c._howls=[],c._muted=!1,c._volume=1,c._canPlayEvent="canplaythrough",c._navigator=typeof window<"u"&&window.navigator?window.navigator:null,c.masterGain=null,c.noAudio=!1,c.usingWebAudio=!0,c.autoSuspend=!0,c.ctx=null,c.autoUnlock=!0,c._setup(),c},volume:function(c){var d=this||t;if(c=parseFloat(c),d.ctx||h(),typeof c<"u"&&c>=0&&c<=1){if(d._volume=c,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(c,t.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var g=d._howls[f]._getSoundIds(),y=0;y<g.length;y++){var v=d._howls[f]._soundById(g[y]);v&&v._node&&(v._node.volume=v._volume*c)}return d}return d._volume},mute:function(c){var d=this||t;d.ctx||h(),d._muted=c,d.usingWebAudio&&d.masterGain.gain.setValueAtTime(c?0:d._volume,t.ctx.currentTime);for(var f=0;f<d._howls.length;f++)if(!d._howls[f]._webAudio)for(var g=d._howls[f]._getSoundIds(),y=0;y<g.length;y++){var v=d._howls[f]._soundById(g[y]);v&&v._node&&(v._node.muted=c?!0:v._muted)}return d},stop:function(){for(var c=this||t,d=0;d<c._howls.length;d++)c._howls[d].stop();return c},unload:function(){for(var c=this||t,d=c._howls.length-1;d>=0;d--)c._howls[d].unload();return c.usingWebAudio&&c.ctx&&typeof c.ctx.close<"u"&&(c.ctx.close(),c.ctx=null,h()),c},codecs:function(c){return(this||t)._codecs[c.replace(/^x-/,"")]},_setup:function(){var c=this||t;if(c.state=c.ctx&&c.ctx.state||"suspended",c._autoSuspend(),!c.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;typeof d.oncanplaythrough>"u"&&(c._canPlayEvent="canplay")}catch{c.noAudio=!0}else c.noAudio=!0;try{var d=new Audio;d.muted&&(c.noAudio=!0)}catch{}return c.noAudio||c._setupCodecs(),c},_setupCodecs:function(){var c=this||t,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return c}if(!d||typeof d.canPlayType!="function")return c;var f=d.canPlayType("audio/mpeg;").replace(/^no$/,""),g=c._navigator?c._navigator.userAgent:"",y=g.match(/OPR\/(\d+)/g),v=y&&parseInt(y[0].split("/")[1],10)<33,_=g.indexOf("Safari")!==-1&&g.indexOf("Chrome")===-1,x=g.match(/Version\/(.*?) /),w=_&&x&&parseInt(x[1],10)<15;return c._codecs={mp3:!!(!v&&(f||d.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},c},_unlockAudio:function(){var c=this||t;if(!(c._audioUnlocked||!c.ctx)){c._audioUnlocked=!1,c.autoUnlock=!1,!c._mobileUnloaded&&c.ctx.sampleRate!==44100&&(c._mobileUnloaded=!0,c.unload()),c._scratchBuffer=c.ctx.createBuffer(1,1,22050);var d=function(f){for(;c._html5AudioPool.length<c.html5PoolSize;)try{var g=new Audio;g._unlocked=!0,c._releaseHtml5Audio(g)}catch{c.noAudio=!0;break}for(var y=0;y<c._howls.length;y++)if(!c._howls[y]._webAudio)for(var v=c._howls[y]._getSoundIds(),_=0;_<v.length;_++){var x=c._howls[y]._soundById(v[_]);x&&x._node&&!x._node._unlocked&&(x._node._unlocked=!0,x._node.load())}c._autoResume();var w=c.ctx.createBufferSource();w.buffer=c._scratchBuffer,w.connect(c.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof c.ctx.resume=="function"&&c.ctx.resume(),w.onended=function(){w.disconnect(0),c._audioUnlocked=!0,document.removeEventListener("touchstart",d,!0),document.removeEventListener("touchend",d,!0),document.removeEventListener("click",d,!0),document.removeEventListener("keydown",d,!0);for(var S=0;S<c._howls.length;S++)c._howls[S]._emit("unlock")}};return document.addEventListener("touchstart",d,!0),document.addEventListener("touchend",d,!0),document.addEventListener("click",d,!0),document.addEventListener("keydown",d,!0),c}},_obtainHtml5Audio:function(){var c=this||t;if(c._html5AudioPool.length)return c._html5AudioPool.pop();var d=new Audio().play();return d&&typeof Promise<"u"&&(d instanceof Promise||typeof d.then=="function")&&d.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(c){var d=this||t;return c._unlocked&&d._html5AudioPool.push(c),d},_autoSuspend:function(){var c=this;if(!(!c.autoSuspend||!c.ctx||typeof c.ctx.suspend>"u"||!t.usingWebAudio)){for(var d=0;d<c._howls.length;d++)if(c._howls[d]._webAudio){for(var f=0;f<c._howls[d]._sounds.length;f++)if(!c._howls[d]._sounds[f]._paused)return c}return c._suspendTimer&&clearTimeout(c._suspendTimer),c._suspendTimer=setTimeout(function(){if(c.autoSuspend){c._suspendTimer=null,c.state="suspending";var g=function(){c.state="suspended",c._resumeAfterSuspend&&(delete c._resumeAfterSuspend,c._autoResume())};c.ctx.suspend().then(g,g)}},3e4),c}},_autoResume:function(){var c=this;if(!(!c.ctx||typeof c.ctx.resume>"u"||!t.usingWebAudio))return c.state==="running"&&c.ctx.state!=="interrupted"&&c._suspendTimer?(clearTimeout(c._suspendTimer),c._suspendTimer=null):c.state==="suspended"||c.state==="running"&&c.ctx.state==="interrupted"?(c.ctx.resume().then(function(){c.state="running";for(var d=0;d<c._howls.length;d++)c._howls[d]._emit("resume")}),c._suspendTimer&&(clearTimeout(c._suspendTimer),c._suspendTimer=null)):c.state==="suspending"&&(c._resumeAfterSuspend=!0),c}};var t=new e,n=function(c){var d=this;if(!c.src||c.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}d.init(c)};n.prototype={init:function(c){var d=this;return t.ctx||h(),d._autoplay=c.autoplay||!1,d._format=typeof c.format!="string"?c.format:[c.format],d._html5=c.html5||!1,d._muted=c.mute||!1,d._loop=c.loop||!1,d._pool=c.pool||5,d._preload=typeof c.preload=="boolean"||c.preload==="metadata"?c.preload:!0,d._rate=c.rate||1,d._sprite=c.sprite||{},d._src=typeof c.src!="string"?c.src:[c.src],d._volume=c.volume!==void 0?c.volume:1,d._xhr={method:c.xhr&&c.xhr.method?c.xhr.method:"GET",headers:c.xhr&&c.xhr.headers?c.xhr.headers:null,withCredentials:c.xhr&&c.xhr.withCredentials?c.xhr.withCredentials:!1},d._duration=0,d._state="unloaded",d._sounds=[],d._endTimers={},d._queue=[],d._playLock=!1,d._onend=c.onend?[{fn:c.onend}]:[],d._onfade=c.onfade?[{fn:c.onfade}]:[],d._onload=c.onload?[{fn:c.onload}]:[],d._onloaderror=c.onloaderror?[{fn:c.onloaderror}]:[],d._onplayerror=c.onplayerror?[{fn:c.onplayerror}]:[],d._onpause=c.onpause?[{fn:c.onpause}]:[],d._onplay=c.onplay?[{fn:c.onplay}]:[],d._onstop=c.onstop?[{fn:c.onstop}]:[],d._onmute=c.onmute?[{fn:c.onmute}]:[],d._onvolume=c.onvolume?[{fn:c.onvolume}]:[],d._onrate=c.onrate?[{fn:c.onrate}]:[],d._onseek=c.onseek?[{fn:c.onseek}]:[],d._onunlock=c.onunlock?[{fn:c.onunlock}]:[],d._onresume=[],d._webAudio=t.usingWebAudio&&!d._html5,typeof t.ctx<"u"&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(d),d._autoplay&&d._queue.push({event:"play",action:function(){d.play()}}),d._preload&&d._preload!=="none"&&d.load(),d},load:function(){var c=this,d=null;if(t.noAudio){c._emit("loaderror",null,"No audio support.");return}typeof c._src=="string"&&(c._src=[c._src]);for(var f=0;f<c._src.length;f++){var g,y;if(c._format&&c._format[f])g=c._format[f];else{if(y=c._src[f],typeof y!="string"){c._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}g=/^data:audio\/([^;,]+);/i.exec(y),g||(g=/\.([^.]+)$/.exec(y.split("?",1)[0])),g&&(g=g[1].toLowerCase())}if(g||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),g&&t.codecs(g)){d=c._src[f];break}}if(!d){c._emit("loaderror",null,"No codec support for selected audio sources.");return}return c._src=d,c._state="loading",window.location.protocol==="https:"&&d.slice(0,5)==="http:"&&(c._html5=!0,c._webAudio=!1),new i(c),c._webAudio&&a(c),c},play:function(c,d){var f=this,g=null;if(typeof c=="number")g=c,c=null;else{if(typeof c=="string"&&f._state==="loaded"&&!f._sprite[c])return null;if(typeof c>"u"&&(c="__default",!f._playLock)){for(var y=0,v=0;v<f._sounds.length;v++)f._sounds[v]._paused&&!f._sounds[v]._ended&&(y++,g=f._sounds[v]._id);y===1?c=null:g=null}}var _=g?f._soundById(g):f._inactiveSound();if(!_)return null;if(g&&!c&&(c=_._sprite||"__default"),f._state!=="loaded"){_._sprite=c,_._ended=!1;var x=_._id;return f._queue.push({event:"play",action:function(){f.play(x)}}),x}if(g&&!_._paused)return d||f._loadQueue("play"),_._id;f._webAudio&&t._autoResume();var w=Math.max(0,_._seek>0?_._seek:f._sprite[c][0]/1e3),S=Math.max(0,(f._sprite[c][0]+f._sprite[c][1])/1e3-w),b=S*1e3/Math.abs(_._rate),E=f._sprite[c][0]/1e3,D=(f._sprite[c][0]+f._sprite[c][1])/1e3;_._sprite=c,_._ended=!1;var P=function(){_._paused=!1,_._seek=w,_._start=E,_._stop=D,_._loop=!!(_._loop||f._sprite[c][2])};if(w>=D){f._ended(_);return}var I=_._node;if(f._webAudio){var R=function(){f._playLock=!1,P(),f._refreshBuffer(_);var O=_._muted||f._muted?0:_._volume;I.gain.setValueAtTime(O,t.ctx.currentTime),_._playStart=t.ctx.currentTime,typeof I.bufferSource.start>"u"?_._loop?I.bufferSource.noteGrainOn(0,w,86400):I.bufferSource.noteGrainOn(0,w,S):_._loop?I.bufferSource.start(0,w,86400):I.bufferSource.start(0,w,S),b!==1/0&&(f._endTimers[_._id]=setTimeout(f._ended.bind(f,_),b)),d||setTimeout(function(){f._emit("play",_._id),f._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?R():(f._playLock=!0,f.once("resume",R),f._clearTimer(_._id))}else{var U=function(){I.currentTime=w,I.muted=_._muted||f._muted||t._muted||I.muted,I.volume=_._volume*t.volume(),I.playbackRate=_._rate;try{var O=I.play();if(O&&typeof Promise<"u"&&(O instanceof Promise||typeof O.then=="function")?(f._playLock=!0,P(),O.then(function(){f._playLock=!1,I._unlocked=!0,d?f._loadQueue():f._emit("play",_._id)}).catch(function(){f._playLock=!1,f._emit("playerror",_._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),_._ended=!0,_._paused=!0})):d||(f._playLock=!1,P(),f._emit("play",_._id)),I.playbackRate=_._rate,I.paused){f._emit("playerror",_._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}c!=="__default"||_._loop?f._endTimers[_._id]=setTimeout(f._ended.bind(f,_),b):(f._endTimers[_._id]=function(){f._ended(_),I.removeEventListener("ended",f._endTimers[_._id],!1)},I.addEventListener("ended",f._endTimers[_._id],!1))}catch(V){f._emit("playerror",_._id,V)}};I.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(I.src=f._src,I.load());var N=window&&window.ejecta||!I.readyState&&t._navigator.isCocoonJS;if(I.readyState>=3||N)U();else{f._playLock=!0,f._state="loading";var F=function(){f._state="loaded",U(),I.removeEventListener(t._canPlayEvent,F,!1)};I.addEventListener(t._canPlayEvent,F,!1),f._clearTimer(_._id)}}return _._id},pause:function(c){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(c)}}),d;for(var f=d._getSoundIds(c),g=0;g<f.length;g++){d._clearTimer(f[g]);var y=d._soundById(f[g]);if(y&&!y._paused&&(y._seek=d.seek(f[g]),y._rateSeek=0,y._paused=!0,d._stopFade(f[g]),y._node))if(d._webAudio){if(!y._node.bufferSource)continue;typeof y._node.bufferSource.stop>"u"?y._node.bufferSource.noteOff(0):y._node.bufferSource.stop(0),d._cleanBuffer(y._node)}else(!isNaN(y._node.duration)||y._node.duration===1/0)&&y._node.pause();arguments[1]||d._emit("pause",y?y._id:null)}return d},stop:function(c,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"stop",action:function(){f.stop(c)}}),f;for(var g=f._getSoundIds(c),y=0;y<g.length;y++){f._clearTimer(g[y]);var v=f._soundById(g[y]);v&&(v._seek=v._start||0,v._rateSeek=0,v._paused=!0,v._ended=!0,f._stopFade(g[y]),v._node&&(f._webAudio?v._node.bufferSource&&(typeof v._node.bufferSource.stop>"u"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),f._cleanBuffer(v._node)):(!isNaN(v._node.duration)||v._node.duration===1/0)&&(v._node.currentTime=v._start||0,v._node.pause(),v._node.duration===1/0&&f._clearSound(v._node))),d||f._emit("stop",v._id))}return f},mute:function(c,d){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"mute",action:function(){f.mute(c,d)}}),f;if(typeof d>"u")if(typeof c=="boolean")f._muted=c;else return f._muted;for(var g=f._getSoundIds(d),y=0;y<g.length;y++){var v=f._soundById(g[y]);v&&(v._muted=c,v._interval&&f._stopFade(v._id),f._webAudio&&v._node?v._node.gain.setValueAtTime(c?0:v._volume,t.ctx.currentTime):v._node&&(v._node.muted=t._muted?!0:c),f._emit("mute",v._id))}return f},volume:function(){var c=this,d=arguments,f,g;if(d.length===0)return c._volume;if(d.length===1||d.length===2&&typeof d[1]>"u"){var y=c._getSoundIds(),v=y.indexOf(d[0]);v>=0?g=parseInt(d[0],10):f=parseFloat(d[0])}else d.length>=2&&(f=parseFloat(d[0]),g=parseInt(d[1],10));var _;if(typeof f<"u"&&f>=0&&f<=1){if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"volume",action:function(){c.volume.apply(c,d)}}),c;typeof g>"u"&&(c._volume=f),g=c._getSoundIds(g);for(var x=0;x<g.length;x++)_=c._soundById(g[x]),_&&(_._volume=f,d[2]||c._stopFade(g[x]),c._webAudio&&_._node&&!_._muted?_._node.gain.setValueAtTime(f,t.ctx.currentTime):_._node&&!_._muted&&(_._node.volume=f*t.volume()),c._emit("volume",_._id))}else return _=g?c._soundById(g):c._sounds[0],_?_._volume:0;return c},fade:function(c,d,f,g){var y=this;if(y._state!=="loaded"||y._playLock)return y._queue.push({event:"fade",action:function(){y.fade(c,d,f,g)}}),y;c=Math.min(Math.max(0,parseFloat(c)),1),d=Math.min(Math.max(0,parseFloat(d)),1),f=parseFloat(f),y.volume(c,g);for(var v=y._getSoundIds(g),_=0;_<v.length;_++){var x=y._soundById(v[_]);if(x){if(g||y._stopFade(v[_]),y._webAudio&&!x._muted){var w=t.ctx.currentTime,S=w+f/1e3;x._volume=c,x._node.gain.setValueAtTime(c,w),x._node.gain.linearRampToValueAtTime(d,S)}y._startFadeInterval(x,c,d,f,v[_],typeof g>"u")}}return y},_startFadeInterval:function(c,d,f,g,y,v){var _=this,x=d,w=f-d,S=Math.abs(w/.01),b=Math.max(4,S>0?g/S:g),E=Date.now();c._fadeTo=f,c._interval=setInterval(function(){var D=(Date.now()-E)/g;E=Date.now(),x+=w*D,x=Math.round(x*100)/100,w<0?x=Math.max(f,x):x=Math.min(f,x),_._webAudio?c._volume=x:_.volume(x,c._id,!0),v&&(_._volume=x),(f<d&&x<=f||f>d&&x>=f)&&(clearInterval(c._interval),c._interval=null,c._fadeTo=null,_.volume(f,c._id),_._emit("fade",c._id))},b)},_stopFade:function(c){var d=this,f=d._soundById(c);return f&&f._interval&&(d._webAudio&&f._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(f._interval),f._interval=null,d.volume(f._fadeTo,c),f._fadeTo=null,d._emit("fade",c)),d},loop:function(){var c=this,d=arguments,f,g,y;if(d.length===0)return c._loop;if(d.length===1)if(typeof d[0]=="boolean")f=d[0],c._loop=f;else return y=c._soundById(parseInt(d[0],10)),y?y._loop:!1;else d.length===2&&(f=d[0],g=parseInt(d[1],10));for(var v=c._getSoundIds(g),_=0;_<v.length;_++)y=c._soundById(v[_]),y&&(y._loop=f,c._webAudio&&y._node&&y._node.bufferSource&&(y._node.bufferSource.loop=f,f&&(y._node.bufferSource.loopStart=y._start||0,y._node.bufferSource.loopEnd=y._stop,c.playing(v[_])&&(c.pause(v[_],!0),c.play(v[_],!0)))));return c},rate:function(){var c=this,d=arguments,f,g;if(d.length===0)g=c._sounds[0]._id;else if(d.length===1){var y=c._getSoundIds(),v=y.indexOf(d[0]);v>=0?g=parseInt(d[0],10):f=parseFloat(d[0])}else d.length===2&&(f=parseFloat(d[0]),g=parseInt(d[1],10));var _;if(typeof f=="number"){if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"rate",action:function(){c.rate.apply(c,d)}}),c;typeof g>"u"&&(c._rate=f),g=c._getSoundIds(g);for(var x=0;x<g.length;x++)if(_=c._soundById(g[x]),_){c.playing(g[x])&&(_._rateSeek=c.seek(g[x]),_._playStart=c._webAudio?t.ctx.currentTime:_._playStart),_._rate=f,c._webAudio&&_._node&&_._node.bufferSource?_._node.bufferSource.playbackRate.setValueAtTime(f,t.ctx.currentTime):_._node&&(_._node.playbackRate=f);var w=c.seek(g[x]),S=(c._sprite[_._sprite][0]+c._sprite[_._sprite][1])/1e3-w,b=S*1e3/Math.abs(_._rate);(c._endTimers[g[x]]||!_._paused)&&(c._clearTimer(g[x]),c._endTimers[g[x]]=setTimeout(c._ended.bind(c,_),b)),c._emit("rate",_._id)}}else return _=c._soundById(g),_?_._rate:c._rate;return c},seek:function(){var c=this,d=arguments,f,g;if(d.length===0)c._sounds.length&&(g=c._sounds[0]._id);else if(d.length===1){var y=c._getSoundIds(),v=y.indexOf(d[0]);v>=0?g=parseInt(d[0],10):c._sounds.length&&(g=c._sounds[0]._id,f=parseFloat(d[0]))}else d.length===2&&(f=parseFloat(d[0]),g=parseInt(d[1],10));if(typeof g>"u")return 0;if(typeof f=="number"&&(c._state!=="loaded"||c._playLock))return c._queue.push({event:"seek",action:function(){c.seek.apply(c,d)}}),c;var _=c._soundById(g);if(_)if(typeof f=="number"&&f>=0){var x=c.playing(g);x&&c.pause(g,!0),_._seek=f,_._ended=!1,c._clearTimer(g),!c._webAudio&&_._node&&!isNaN(_._node.duration)&&(_._node.currentTime=f);var w=function(){x&&c.play(g,!0),c._emit("seek",g)};if(x&&!c._webAudio){var S=function(){c._playLock?setTimeout(S,0):w()};setTimeout(S,0)}else w()}else if(c._webAudio){var b=c.playing(g)?t.ctx.currentTime-_._playStart:0,E=_._rateSeek?_._rateSeek-_._seek:0;return _._seek+(E+b*Math.abs(_._rate))}else return _._node.currentTime;return c},playing:function(c){var d=this;if(typeof c=="number"){var f=d._soundById(c);return f?!f._paused:!1}for(var g=0;g<d._sounds.length;g++)if(!d._sounds[g]._paused)return!0;return!1},duration:function(c){var d=this,f=d._duration,g=d._soundById(c);return g&&(f=d._sprite[g._sprite][1]/1e3),f},state:function(){return this._state},unload:function(){for(var c=this,d=c._sounds,f=0;f<d.length;f++)d[f]._paused||c.stop(d[f]._id),c._webAudio||(c._clearSound(d[f]._node),d[f]._node.removeEventListener("error",d[f]._errorFn,!1),d[f]._node.removeEventListener(t._canPlayEvent,d[f]._loadFn,!1),d[f]._node.removeEventListener("ended",d[f]._endFn,!1),t._releaseHtml5Audio(d[f]._node)),delete d[f]._node,c._clearTimer(d[f]._id);var g=t._howls.indexOf(c);g>=0&&t._howls.splice(g,1);var y=!0;for(f=0;f<t._howls.length;f++)if(t._howls[f]._src===c._src||c._src.indexOf(t._howls[f]._src)>=0){y=!1;break}return s&&y&&delete s[c._src],t.noAudio=!1,c._state="unloaded",c._sounds=[],c=null,null},on:function(c,d,f,g){var y=this,v=y["_on"+c];return typeof d=="function"&&v.push(g?{id:f,fn:d,once:g}:{id:f,fn:d}),y},off:function(c,d,f){var g=this,y=g["_on"+c],v=0;if(typeof d=="number"&&(f=d,d=null),d||f)for(v=0;v<y.length;v++){var _=f===y[v].id;if(d===y[v].fn&&_||!d&&_){y.splice(v,1);break}}else if(c)g["_on"+c]=[];else{var x=Object.keys(g);for(v=0;v<x.length;v++)x[v].indexOf("_on")===0&&Array.isArray(g[x[v]])&&(g[x[v]]=[])}return g},once:function(c,d,f){var g=this;return g.on(c,d,f,1),g},_emit:function(c,d,f){for(var g=this,y=g["_on"+c],v=y.length-1;v>=0;v--)(!y[v].id||y[v].id===d||c==="load")&&(setTimeout((function(_){_.call(this,d,f)}).bind(g,y[v].fn),0),y[v].once&&g.off(c,y[v].fn,y[v].id));return g._loadQueue(c),g},_loadQueue:function(c){var d=this;if(d._queue.length>0){var f=d._queue[0];f.event===c&&(d._queue.shift(),d._loadQueue()),c||f.action()}return d},_ended:function(c){var d=this,f=c._sprite;if(!d._webAudio&&c._node&&!c._node.paused&&!c._node.ended&&c._node.currentTime<c._stop)return setTimeout(d._ended.bind(d,c),100),d;var g=!!(c._loop||d._sprite[f][2]);if(d._emit("end",c._id),!d._webAudio&&g&&d.stop(c._id,!0).play(c._id),d._webAudio&&g){d._emit("play",c._id),c._seek=c._start||0,c._rateSeek=0,c._playStart=t.ctx.currentTime;var y=(c._stop-c._start)*1e3/Math.abs(c._rate);d._endTimers[c._id]=setTimeout(d._ended.bind(d,c),y)}return d._webAudio&&!g&&(c._paused=!0,c._ended=!0,c._seek=c._start||0,c._rateSeek=0,d._clearTimer(c._id),d._cleanBuffer(c._node),t._autoSuspend()),!d._webAudio&&!g&&d.stop(c._id,!0),d},_clearTimer:function(c){var d=this;if(d._endTimers[c]){if(typeof d._endTimers[c]!="function")clearTimeout(d._endTimers[c]);else{var f=d._soundById(c);f&&f._node&&f._node.removeEventListener("ended",d._endTimers[c],!1)}delete d._endTimers[c]}return d},_soundById:function(c){for(var d=this,f=0;f<d._sounds.length;f++)if(c===d._sounds[f]._id)return d._sounds[f];return null},_inactiveSound:function(){var c=this;c._drain();for(var d=0;d<c._sounds.length;d++)if(c._sounds[d]._ended)return c._sounds[d].reset();return new i(c)},_drain:function(){var c=this,d=c._pool,f=0,g=0;if(!(c._sounds.length<d)){for(g=0;g<c._sounds.length;g++)c._sounds[g]._ended&&f++;for(g=c._sounds.length-1;g>=0;g--){if(f<=d)return;c._sounds[g]._ended&&(c._webAudio&&c._sounds[g]._node&&c._sounds[g]._node.disconnect(0),c._sounds.splice(g,1),f--)}}},_getSoundIds:function(c){var d=this;if(typeof c>"u"){for(var f=[],g=0;g<d._sounds.length;g++)f.push(d._sounds[g]._id);return f}else return[c]},_refreshBuffer:function(c){var d=this;return c._node.bufferSource=t.ctx.createBufferSource(),c._node.bufferSource.buffer=s[d._src],c._panner?c._node.bufferSource.connect(c._panner):c._node.bufferSource.connect(c._node),c._node.bufferSource.loop=c._loop,c._loop&&(c._node.bufferSource.loopStart=c._start||0,c._node.bufferSource.loopEnd=c._stop||0),c._node.bufferSource.playbackRate.setValueAtTime(c._rate,t.ctx.currentTime),d},_cleanBuffer:function(c){var d=this,f=t._navigator&&t._navigator.vendor.indexOf("Apple")>=0;if(!c.bufferSource)return d;if(t._scratchBuffer&&c.bufferSource&&(c.bufferSource.onended=null,c.bufferSource.disconnect(0),f))try{c.bufferSource.buffer=t._scratchBuffer}catch{}return c.bufferSource=null,d},_clearSound:function(c){var d=/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent);d||(c.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(c){this._parent=c,this.init()};i.prototype={init:function(){var c=this,d=c._parent;return c._muted=d._muted,c._loop=d._loop,c._volume=d._volume,c._rate=d._rate,c._seek=0,c._paused=!0,c._ended=!0,c._sprite="__default",c._id=++t._counter,d._sounds.push(c),c.create(),c},create:function(){var c=this,d=c._parent,f=t._muted||c._muted||c._parent._muted?0:c._volume;return d._webAudio?(c._node=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),c._node.gain.setValueAtTime(f,t.ctx.currentTime),c._node.paused=!0,c._node.connect(t.masterGain)):t.noAudio||(c._node=t._obtainHtml5Audio(),c._errorFn=c._errorListener.bind(c),c._node.addEventListener("error",c._errorFn,!1),c._loadFn=c._loadListener.bind(c),c._node.addEventListener(t._canPlayEvent,c._loadFn,!1),c._endFn=c._endListener.bind(c),c._node.addEventListener("ended",c._endFn,!1),c._node.src=d._src,c._node.preload=d._preload===!0?"auto":d._preload,c._node.volume=f*t.volume(),c._node.load()),c},reset:function(){var c=this,d=c._parent;return c._muted=d._muted,c._loop=d._loop,c._volume=d._volume,c._rate=d._rate,c._seek=0,c._rateSeek=0,c._paused=!0,c._ended=!0,c._sprite="__default",c._id=++t._counter,c},_errorListener:function(){var c=this;c._parent._emit("loaderror",c._id,c._node.error?c._node.error.code:0),c._node.removeEventListener("error",c._errorFn,!1)},_loadListener:function(){var c=this,d=c._parent;d._duration=Math.ceil(c._node.duration*10)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,d._duration*1e3]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),c._node.removeEventListener(t._canPlayEvent,c._loadFn,!1)},_endListener:function(){var c=this,d=c._parent;d._duration===1/0&&(d._duration=Math.ceil(c._node.duration*10)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=d._duration*1e3),d._ended(c)),c._node.removeEventListener("ended",c._endFn,!1)}};var s={},a=function(c){var d=c._src;if(s[d]){c._duration=s[d].duration,u(c);return}if(/^data:[^;]+;base64,/.test(d)){for(var f=atob(d.split(",")[1]),g=new Uint8Array(f.length),y=0;y<f.length;++y)g[y]=f.charCodeAt(y);l(g.buffer,c)}else{var v=new XMLHttpRequest;v.open(c._xhr.method,d,!0),v.withCredentials=c._xhr.withCredentials,v.responseType="arraybuffer",c._xhr.headers&&Object.keys(c._xhr.headers).forEach(function(_){v.setRequestHeader(_,c._xhr.headers[_])}),v.onload=function(){var _=(v.status+"")[0];if(_!=="0"&&_!=="2"&&_!=="3"){c._emit("loaderror",null,"Failed loading audio file with status: "+v.status+".");return}l(v.response,c)},v.onerror=function(){c._webAudio&&(c._html5=!0,c._webAudio=!1,c._sounds=[],delete s[d],c.load())},o(v)}},o=function(c){try{c.send()}catch{c.onerror()}},l=function(c,d){var f=function(){d._emit("loaderror",null,"Decoding audio data failed.")},g=function(y){y&&d._sounds.length>0?(s[d._src]=y,u(d,y)):f()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(c).then(g).catch(f):t.ctx.decodeAudioData(c,g,f)},u=function(c,d){d&&!c._duration&&(c._duration=d.duration),Object.keys(c._sprite).length===0&&(c._sprite={__default:[0,c._duration*1e3]}),c._state!=="loaded"&&(c._state="loaded",c._emit("load"),c._loadQueue())},h=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var c=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),d=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=d?parseInt(d[1],10):null;if(c&&f&&f<9){var g=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!g&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};r.Howler=t,r.Howl=n,typeof fn<"u"?(fn.HowlerGlobal=e,fn.Howler=t,fn.Howl=n,fn.Sound=i):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=t,window.Howl=n,window.Sound=i)})();/*!
82 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
83 *  
84 *  howler.js v2.2.4
85 *  howlerjs.com
86 *
87 *  (c) 2013-2020, James Simpson of GoldFire Studios
88 *  goldfirestudios.com
89 *
90 *  MIT License
91 */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var i=n._howls.length-1;i>=0;i--)n._howls[i].stereo(t);return n},HowlerGlobal.prototype.pos=function(t,n,i){var s=this;if(!s.ctx||!s.ctx.listener)return s;if(n=typeof n!="number"?s._pos[1]:n,i=typeof i!="number"?s._pos[2]:i,typeof t=="number")s._pos=[t,n,i],typeof s.ctx.listener.positionX<"u"?(s.ctx.listener.positionX.setTargetAtTime(s._pos[0],Howler.ctx.currentTime,.1),s.ctx.listener.positionY.setTargetAtTime(s._pos[1],Howler.ctx.currentTime,.1),s.ctx.listener.positionZ.setTargetAtTime(s._pos[2],Howler.ctx.currentTime,.1)):s.ctx.listener.setPosition(s._pos[0],s._pos[1],s._pos[2]);else return s._pos;return s},HowlerGlobal.prototype.orientation=function(t,n,i,s,a,o){var l=this;if(!l.ctx||!l.ctx.listener)return l;var u=l._orientation;if(n=typeof n!="number"?u[1]:n,i=typeof i!="number"?u[2]:i,s=typeof s!="number"?u[3]:s,a=typeof a!="number"?u[4]:a,o=typeof o!="number"?u[5]:o,typeof t=="number")l._orientation=[t,n,i,s,a,o],typeof l.ctx.listener.forwardX<"u"?(l.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),l.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),l.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),l.ctx.listener.upX.setTargetAtTime(s,Howler.ctx.currentTime,.1),l.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),l.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):l.ctx.listener.setOrientation(t,n,i,s,a,o);else return u;return l},Howl.prototype.init=function(t){return function(n){var i=this;return i._orientation=n.orientation||[1,0,0],i._stereo=n.stereo||null,i._pos=n.pos||null,i._pannerAttr={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:360,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:360,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:0,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:"inverse",maxDistance:typeof n.maxDistance<"u"?n.maxDistance:1e4,panningModel:typeof n.panningModel<"u"?n.panningModel:"HRTF",refDistance:typeof n.refDistance<"u"?n.refDistance:1,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:1},i._onstereo=n.onstereo?[{fn:n.onstereo}]:[],i._onpos=n.onpos?[{fn:n.onpos}]:[],i._onorientation=n.onorientation?[{fn:n.onorientation}]:[],t.call(this,n)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(t,n)}}),i;var s=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof n>"u")if(typeof t=="number")i._stereo=t,i._pos=[t,0,0];else return i._stereo;for(var a=i._getSoundIds(n),o=0;o<a.length;o++){var l=i._soundById(a[o]);if(l)if(typeof t=="number")l._stereo=t,l._pos=[t,0,0],l._node&&(l._pannerAttr.panningModel="equalpower",(!l._panner||!l._panner.pan)&&e(l,s),s==="spatial"?typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):l._panner.setPosition(t,0,0):l._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),i._emit("stereo",l._id);else return l._stereo}return i},Howl.prototype.pos=function(t,n,i,s){var a=this;if(!a._webAudio)return a;
91if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(t,n,i,s)}}),a;if(n=typeof n!="number"?0:n,i=typeof i!="number"?-.5:i,typeof s>"u")if(typeof t=="number")a._pos=[t,n,i];else return a._pos;for(var o=a._getSoundIds(s),l=0;l<o.length;l++){var u=a._soundById(o[l]);if(u)if(typeof t=="number")u._pos=[t,n,i],u._node&&((!u._panner||u._panner.pan)&&e(u,"spatial"),typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):u._panner.setPosition(t,n,i)),a._emit("pos",u._id);else return u._pos}return a},Howl.prototype.orientation=function(t,n,i,s){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(t,n,i,s)}}),a;if(n=typeof n!="number"?a._orientation[1]:n,i=typeof i!="number"?a._orientation[2]:i,typeof s>"u")if(typeof t=="number")a._orientation=[t,n,i];else return a._orientation;for(var o=a._getSoundIds(s),l=0;l<o.length;l++){var u=a._soundById(o[l]);if(u)if(typeof t=="number")u._orientation=[t,n,i],u._node&&(u._panner||(u._pos||(u._pos=a._pos||[0,0,-.5]),e(u,"spatial")),typeof u._panner.orientationX<"u"?(u._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):u._panner.setOrientation(t,n,i)),a._emit("orientation",u._id);else return u._orientation}return a},Howl.prototype.pannerAttr=function(){var t=this,n=arguments,i,s,a;if(!t._webAudio)return t;if(n.length===0)return t._pannerAttr;if(n.length===1)if(typeof n[0]=="object")i=n[0],typeof s>"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),t._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:t._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:t._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:t._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:t._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:t._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:t._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:t._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:t._panningModel});else return a=t._soundById(parseInt(n[0],10)),a?a._pannerAttr:t._pannerAttr;else n.length===2&&(i=n[0],s=parseInt(n[1],10));for(var o=t._getSoundIds(s),l=0;l<o.length;l++)if(a=t._soundById(o[l]),a){var u=a._pannerAttr;u={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:u.coneOuterAngle,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:u.coneOuterGain,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:u.distanceModel,maxDistance:typeof i.maxDistance<"u"?i.maxDistance:u.maxDistance,refDistance:typeof i.refDistance<"u"?i.refDistance:u.refDistance,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:u.rolloffFactor,panningModel:typeof i.panningModel<"u"?i.panningModel:u.panningModel};var h=a._panner;h||(a._pos||(a._pos=t._pos||[0,0,-.5]),e(a,"spatial"),h=a._panner),h.coneInnerAngle=u.coneInnerAngle,h.coneOuterAngle=u.coneOuterAngle,h.coneOuterGain=u.coneOuterGain,h.distanceModel=u.distanceModel,h.maxDistance=u.maxDistance,h.refDistance=u.refDistance,h.rolloffFactor=u.rolloffFactor,h.panningModel=u.panningModel}return t},Sound.prototype.init=function(t){return function(){var n=this,i=n._parent;n._orientation=i._orientation,n._stereo=i._stereo,n._pos=i._pos,n._pannerAttr=i._pannerAttr,t.call(this),n._stereo?i.stereo(n._stereo):n._pos&&i.pos(n._pos[0],n._pos[1],n._pos[2],n._id)}}(Sound.prototype.init),Sound.prototype.reset=function(t){return function(){var n=this,i=n._parent;return n._orientation=i._orientation,n._stereo=i._stereo,n._pos=i._pos,n._pannerAttr=i._pannerAttr,n._stereo?i.stereo(n._stereo):n._pos?i.pos(n._pos[0],n._pos[1],n._pos[2],n._id):n._panner&&(n._panner.disconnect(0),n._panner=void 0,i._refreshBuffer(n)),t.call(this)}}(Sound.prototype.reset);var e=function(t,n){n=n||"spatial",n==="spatial"?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,typeof t._panner.positionX<"u"?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),typeof t._panner.orientationX<"u"?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}})()})(OA);class OM{constructor(){this.sounds={},this.isMuted=!1,this.playingStates={},this.spriteConfig={},this.soundInstances={},this.fadedOutStates={}}preloadSprite(e){this.sounds[e.id]=new OA.Howl({src:e.src||[],sprite:e.data,autoplay:!1,preload:!0,volume:e.volume||1}),this.spriteConfig[e.id]=e.config,this.playingStates[e.id]={},this.soundInstances[e.id]={},this.fadedOutStates[e.id]={}}play(e,t){if(this.sounds[e]){const n=this.spriteConfig[e][t],i=(n==null?void 0:n.volume)||1,s=this.sounds[e].play(t);if(this.sounds[e].volume(this.isMuted||this.fadedOutStates[e][t]?0:i,s),this.playingStates[e][t]=!0,this.soundInstances[e][t]=s,n!=null&&n.loop){const a=()=>{this.sounds[e].off("end",a,s),this.playingStates[e][t]&&this.play(e,t)};this.sounds[e].on("end",a,s)}}}stop(e,t){if(this.sounds[e]&&this.soundInstances[e][t]!==void 0){const n=this.soundInstances[e][t];this.playingStates[e][t]=!1,this.sounds[e].stop(n)}}pause(e,t){if(this.sounds[e]&&this.soundInstances[e][t]!==void 0){const n=this.soundInstances[e][t];this.playingStates[e][t]=!1,this.sounds[e].pause(n)}}setVolume(e,t,n){if(this.sounds[e]&&this.soundInstances[e][t]!==void 0){const i=this.soundInstances[e][t];this.sounds[e].volume(n,i)}}fade(e,t,n,i,s){if(this.sounds[e]&&this.soundInstances[e][t]!==void 0){const a=this.soundInstances[e][t];this.sounds[e].volume(n,a),this.sounds[e].fade(n,i,s,a),i===0?this.fadedOutStates[e][t]=!0:delete this.fadedOutStates[e][t]}}
91muteAll(){this.isMuted=!0,Object.keys(this.sounds).forEach(e=>{Object.keys(this.playingStates[e]).forEach(t=>{const n=this.soundInstances[e][t];this.sounds[e].fade(this.sounds[e].volume(n),0,1e3,n)})})}unmuteAll(){this.isMuted=!1,Object.keys(this.sounds).forEach(e=>{Object.keys(this.playingStates[e]).forEach(t=>{if(!this.fadedOutStates[e][t]){const n=this.soundInstances[e][t],i=this.spriteConfig[e][t],s=(i==null?void 0:i.volume)||1;this.sounds[e].fade(0,s,1e3,n)}})})}}const gt=new OM,NA=X.createContext(),NM=({children:r})=>{const[e,t]=X.useState(!0);return B.jsx(NA.Provider,{value:{muted:e,setMuted:t},children:r})},BA=()=>X.useContext(NA),BM={id:"main-sfx",src:["/sound/audio_sprite.mp3","/sound/audio_sprite.ogg","/sound/audio_sprite.m4a"],data:{background_music:[0,51149],background_bubbles:[51249,43876],welcome:[141332,1200],time_manana:[95225,5053],time_tarde:[100377,4438],time_noche:[104915,4495],genre_electronica:[109510,2589],genre_hiphop:[112200,2202],genre_reggaeton:[114501,1846],genre_pop:[116448,1477],genre_rock:[118025,2368],genre_tropical:[121283,2102],genre_cumbia:[142632,1579],genre_ranchero:[123485,2463],click_button:[131871,884],key_press:[132855,107],input_checkbox_click:[140634,107],time_animate_in:[135973,1291],time_animate_out:[140841,391],time_transition:[131306,465],genre_disk_animate_in:[133729,1053],genre_disk_animate_out:[140107,427],genre_disk_rewind:[137363,1917],reason_selection:[131074,132],reason_extra_pop_1:[127067,107],reason_extra_pop_2:[126048,107],reason_extra_pop_3:[126255,107],reason_extra_pop_4:[126462,504],bubble_pop_1:[127274,265],bubble_pop_2:[128541,257],bubble_pop_3:[128899,250],bubble_pop_4:[129249,375],bubble_pop_5:[129724,348],bubble_pop_6:[130171,107],bubble_pop_7:[130379,117],bubble_pop_8:[130596,107],bubble_pop_9:[130803,170],bubble_pop_10:[127639,163],bubble_pop_11:[127902,192],bubble_pop_12:[128194,247],disk_pulse_animate_in:[133062,566],form_disk_animate_in:[134881,991],final_animate_in:[139381,626]},config:{background_music:{loop:!0,volume:.8},background_bubbles:{loop:!0,volume:.8},welcome:{loop:!1,volume:1},time_manana:{loop:!1,volume:.75},time_tarde:{loop:!1,volume:.75},time_noche:{loop:!1,volume:1},genre_electronica:{loop:!1,volume:1},genre_hiphop:{loop:!1,volume:1},genre_reggaeton:{loop:!1,volume:1},genre_pop:{loop:!1,volume:1},genre_rock:{loop:!1,volume:1},genre_tropical:{loop:!1,volume:1},genre_cumbia:{loop:!1,volume:1},genre_ranchero:{loop:!1,volume:1},click_button:{loop:!1,volume:1},key_press:{loop:!1,volume:1},input_checkbox_click:{loop:!1,volume:1},time_animate_in:{loop:!1,volume:1},time_animate_out:{loop:!1,volume:1},time_transition:{loop:!1,volume:1},genre_disk_animate_in:{loop:!1,volume:1},genre_disk_animate_out:{loop:!1,volume:1},genre_disk_rewind:{loop:!1,volume:.8},reason_selection:{loop:!1,volume:1},reason_extra_pop_1:{loop:!1,volume:1},reason_extra_pop_2:{loop:!1,volume:1},reason_extra_pop_3:{loop:!1,volume:1},reason_extra_pop_4:{loop:!1,volume:1},bubble_pop_1:{loop:!1,volume:1},bubble_pop_2:{loop:!1,volume:1},bubble_pop_3:{loop:!1,volume:1},bubble_pop_4:{loop:!1,volume:1},bubble_pop_5:{loop:!1,volume:1},bubble_pop_6:{loop:!1,volume:1},bubble_pop_7:{loop:!1,volume:1},bubble_pop_8:{loop:!1,volume:1},bubble_pop_9:{loop:!1,volume:1},bubble_pop_10:{loop:!1,volume:1},bubble_pop_11:{loop:!1,volume:1},bubble_pop_12:{loop:!1,volume:1},disk_pulse_animate_in:{loop:!1,volume:1},form_disk_animate_in:{loop:!1,volume:1},final_animate_in:{loop:!1,volume:1}},volume:1},UM=()=>{const{setMuted:r}=BA();return X.useEffect(()=>{gt.preloadSprite(BM);const e=()=>{gt.play("main-sfx","background_music"),gt.play("main-sfx","background_bubbles"),r(!1),window.removeEventListener("touchstart",e),window.removeEventListener("click",e)};return window.addEventListener("touchstart",e),window.addEventListener("click",e),()=>{window.removeEventListener("touchstart",e),window.removeEventListener("click",e)}},[]),null};function UA(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(t=UA(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function Lh(){for(var r,e,t=0,n="",i=arguments.length;t<i;t++)(r=arguments[t])&&(e=UA(r))&&(n&&(n+=" "),n+=e);return n}const $M={manana:[{intent:"Para despertarte al 100%",moodForPrompt:"para un despertar vigorizante"},{intent:"Para no verte como un zombie",moodForPrompt:"para prepararte para el dia"},{intent:"Para deshacerte del almohadazo",moodForPrompt:"para un despertar vigorizante"},{intent:"Para oler rico",moodForPrompt:"para prepararte para el dia"},{intent:"Para practicar tus discursos inventados",moodForPrompt:"para un despertar vigorizante"},{intent:"Para sentirte limpi@",moodForPrompt:"para prepararte para el dia"},{intent:"Para empezar el día de buenas",moodForPrompt:"para un despertar vigorizante"},{intent:"Empezar el día oliendo fresco",moodForPrompt:"para prepararte para el dia"},{intent:"Para ir a la escuela",moodForPrompt:"para un despertar vigorizante"},{intent:"Para verte bien sin tomar café",moodForPrompt:"para prepararte para el dia"},{intent:"Para quitarte la mancha de baba",moodForPrompt:"para un despertar vigorizante"},{intent:"Porque debo perseguir la chuleta",moodForPrompt:"para prepararte para el dia"},{intent:"Para que ya no te chille la ardilla",moodForPrompt:"para un despertar vigorizante"},{intent:"Para practicar tu concierto",moodForPrompt:"para prepararte para el dia"},{intent:"Para sentirte como nuev@",moodForPrompt:"para un despertar vigorizante"},{intent:"Porque luego hace mucho calor",moodForPrompt:"para prepararte para el dia"},{intent:"Porque necesito refrescarme",moodForPrompt:"para un despertar vigorizante"}],tarde:[{intent:"Para verte guap@ para la date",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para ir a dormir fresco y guap@",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para dar tu concierto nocturno",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para que vean que si te bañas",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para olvidar lo que pasó en la ofi",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para que tu ex se sorprenda",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para ver a tu ligue",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para prepararte para lo que sigue",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para refrescar tu día",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para que te confundan con un modelo",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Como recompensa después del gym",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para verse bien siempre",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para que ya no te chille la ardilla",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para resolver la pelea de hace 2 días",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Para practicar tu concierto",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Para sentirte como nuev@",moodForPrompt:"para una tarde de frescura y diversion"},{intent:"Porque luego hace mucho calor",moodForPrompt:"para refrescar tu tarde y verte bien"},{intent:"Porque necesito refrescarme",moodForPrompt:"para una tarde de frescura y diversion"}],noche:[{intent:"Para verte guap@ para la date",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para ir a dormir fresco y guap@",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para dar tu concierto nocturno",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para que vean que si te bañas",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para olvidar lo que pasó en la ofi",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para que tu ex se sorprenda",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para ver a tu ligue",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para prepararte para lo que sigue",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para refrescar tu día",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para que te confundan con un modelo",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Como recompensa después del gym",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para verse bien siempre",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para que ya no te chille la ardilla",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para resolver la pelea de hace 2 días",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Para practicar tu concierto",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Para sentirte como nuev@",moodForPrompt:"para una noche de frescura y diversion"},{intent:"Porque luego hace mucho calor",moodForPrompt:"para refrescar tu noche y verte bien"},{intent:"Porque necesito refrescarme",moodForPrompt:"para una noche de frescura y diversion"}]};function zM(r,e){return ge.utils.pipe(Math.random,ge.parseEase(e),ge.utils.mapRange(0,1,-.5,r.length-.5),ge.utils.snap(1),t=>r[t])}const I5=ge.utils.random(-1,1,!0),jM=()=>{const r={x:I5(),y:I5()},e=Math.sqrt(r.x**2+r.y**2);return{x:r.x/e,y:r.y/e}},$A=(r,e)=>{let t=[...r],n=[];for(let i=0;i<e;i++){let s=Math.floor(Math.random()*t.length);n.push(t[s]),t.splice(s,1)}return n},VM=r=>new LA.SplitText(r,{type:"lines",linesClass:"line"}),Ou=r=>{var e=r.getBoundingClientRect(),t=document.body.scrollTop||0,n=document.body.scrollLeft||0,i=document.body.clientTop||0,s=document.body.clientLeft||0;return{top:Math.round(e.top+t-i),left:Math.round(e.left+n-s),height:e.height,width:e.width}},GM=(r,e,t,n,i)=>{let s=(r-e)/(t-e);return(1-Math.abs(2*s-1))*(i-n)+n},E3=r=>new Promise(e=>{if(typeof r=="number")setTimeout(e,r);else if(typeof r=="boolean"){const t=setInterval(()=>{r&&(clearInterval(t),e())},50)}else if(typeof r=="function"){const t=setInterval(()=>{r()&&(clearInterval(t),e())},50)}}),P3=X.createContext(),WM=({children:r})=>{const[e,t]=X.useState({enabled:!1,selected:null,options:[]}),[n,i]=X.useState(null),[s,a]=X.useState(null),[o,l]=X.useState("Server"),[u,h]=X.useState({dir:"idle",prev:1,current:1}),[c,d]=X.useState(0),[f,g]=X.useState(!1),[y,v]=X.useState(!1),_=D=>{h({...u,dir:D})},x=D=>{t({...e,enabled:D})},w=D=>{t({...e,selected:D})},S=()=>{t({enabled:!1,selected:null,options:[]})},b=D=>{t({...e,options:$A($M[D],5)})},E=D=>{t({...e,...D})};return B.jsx(P3.Provider,{value:{selectorState:e,setSelectorEnabled:x,setSelected:w,updateSelectorState:E,resetSelectorState:S,setOptions:b,pixiViewTransition:n,setPixiViewTransition:i,pixiViewStep:s,setPixiViewStep:a,pixiDeviceType:o,setPixiDeviceType:l,pixiTimeState:u,setPixiTimeState:h,setPixiTimeDirection:_,pixiLoaderProgress:c,setPixiLoaderProgress:d,pixiLoaderComplete:f,setPixiLoaderComplete:g,pixiAppReady:y,setPixiAppReady:v},children:r})},XM=({children:r,render:e})=>B.jsx(P3.Consumer,{children:t=>e(B.jsx(P3.Provider,{value:t,children:r}))}),xn=()=>X.useContext(P3);var YM=Object.create,zA=Object.defineProperty,ZM=Object.getOwnPropertyDescriptor,jA=Object.getOwnPropertyNames,qM=Object.getPrototypeOf,QM=Object.prototype.hasOwnProperty,KM=(r,e)=>function(){return e||(0,r[jA(r)[0]])((e={exports:{}}).exports,e),e.exports},JM=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of jA(e))!QM.call(r,i)&&i!==t&&zA(r,i,{get:()=>e[i],enumerable:!(n=ZM(e,i))||n.enumerable});return r},eR=(r,e,t)=>(t=r!=null?YM(qM(r)):{},JM(zA(t,"default",{value:r,enumerable:!0}),r)),tR=KM({"../../node_modules/.pnpm/[email protected]/node_modules/debounce/index.js"(r,e){function t(n,i=100,s={}){if(typeof n!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof n}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");const{immediate:a}=typeof s=="boolean"?{immediate:s}:s;let o,l,u,h,c;function d(){const g=Date.now()-h;if(g<i&&g>=0)u=setTimeout(d,i-g);else if(u=void 0,!a){const y=o,v=l;o=void 0,l=void 0,c=n.apply(y,v)}}const f=function(...g){if(o&&this!==o)throw new Error("Debounced method called with different c
91ontexts.");o=this,l=g,h=Date.now();const y=a&&!u;if(u||(u=setTimeout(d,i)),y){const v=o,_=l;o=void 0,l=void 0,c=n.apply(v,_)}return c};return f.clear=()=>{u&&(clearTimeout(u),u=void 0)},f.flush=()=>{if(!u)return;const g=o,y=l;o=void 0,l=void 0,c=n.apply(g,y),clearTimeout(u),u=void 0},f}e.exports.debounce=t,e.exports=t}}),rR=Object.defineProperty,nR=(r,e,t)=>e in r?rR(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Pn=(r,e,t)=>(nR(r,typeof e!="symbol"?e+"":e,t),t),iR=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},sR=class{constructor(){Pn(this,"_lastHandleId",0),Pn(this,"_lastImmediate",null)}requestAnimationFrame(r){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{r(Date.now())}),this._lastHandleId}cancelAnimationFrame(r){this._lastImmediate&&clearImmediate(this._lastImmediate)}},aR=class{constructor(){Pn(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new iR:new sR}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}},M5=typeof window<"u"&&typeof window.document<"u",D3={name:"@lottiefiles/dotlottie-web",version:"0.24.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf <[email protected]>"],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.0.1",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},oR=(()=>{var e;var r=typeof document<"u"?(e=document.currentScript)==null?void 0:e.src:void 0;return function(t={}){var n=t,i,s,a=new Promise((k,H)=>{i=k,s=H}),o=Object.assign({},n),l="./this.program",u=!0,h="";function c(k){return n.locateFile?n.locateFile(k,h):h+k}typeof document<"u"&&document.currentScript&&(h=document.currentScript.src),r&&(h=r),h.startsWith("blob:")?h="":h=h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1);var d=n.print||console.log.bind(console),f=n.printErr||console.error.bind(console);Object.assign(n,o),o=null,n.arguments&&n.arguments,n.thisProgram&&(l=n.thisProgram),n.quit&&n.quit;var g;n.wasmBinary&&(g=n.wasmBinary);var y,v=!1,_,x,w,S,b,E,D,P;function I(){var k=y.buffer;n.HEAP8=_=new Int8Array(k),n.HEAP16=w=new Int16Array(k),n.HEAPU8=x=new Uint8Array(k),n.HEAPU16=S=new Uint16Array(k),n.HEAP32=b=new Int32Array(k),n.HEAPU32=E=new Uint32Array(k),n.HEAPF32=D=new Float32Array(k),n.HEAPF64=P=new Float64Array(k)}var R=[],U=[],N=[];function F(){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)q(n.preRun.shift());st(R)}function O(){st(U)}function V(){if(n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;)j(n.postRun.shift());st(N)}function q(k){R.unshift(k)}function Z(k){U.unshift(k)}function j(k){N.unshift(k)}var Y=0,G=null;function J(k){var H;Y++,(H=n.monitorRunDependencies)==null||H.call(n,Y)}function ee(k){var L;if(Y--,(L=n.monitorRunDependencies)==null||L.call(n,Y),Y==0&&G){var H=G;G=null,H()}}function ve(k){var L;(L=n.onAbort)==null||L.call(n,k),k="Aborted("+k+")",f(k),v=!0,k+=". Build with -sASSERTIONS for more info.";var H=new WebAssembly.RuntimeError(k);throw s(H),H}var _e="data:application/octet-stream;base64,",Oe=k=>k.startsWith(_e),Te;Te="DotLottiePlayer.wasm",Oe(Te)||(Te=c(Te));function qe(k){if(k==Te&&g)return new Uint8Array(g);throw"both async and sync fetching of the wasm failed"}function $e(k){return!g&&u&&typeof fetch=="function"?fetch(k,{credentials:"same-origin"}).then(H=>{if(!H.ok)throw`failed to load wasm binary file at '${k}'`;return H.arrayBuffer()}).catch(()=>qe(k)):Promise.resolve().then(()=>qe(k))}function lt(k,H,L){return $e(k).then($=>WebAssembly.instantiate($,H)).then(L,$=>{f(`failed to asynchronously prepare wasm: ${$}`),ve($)})}function We(k,H,L,$){return!k&&typeof WebAssembly.instantiateStreaming=="function"&&!Oe(H)&&typeof fetch=="function"?fetch(H,{credentials:"same-origin"}).then(Q=>{var re=WebAssembly.instantiateStreaming(Q,L);return re.then($,function(ae){return f(`wasm streaming compile failed: ${ae}`),f("falling back to ArrayBuffer instantiation"),lt(H,L,$)})}):lt(H,L,$)}function Ze(){var k={a:e1};function H($,Q){return Lt=$.exports,y=Lt.la,I(),zf=Lt.pa,Z(Lt.ma),ee(),Lt}J();function L($){H($.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(k,H)}catch($){f(`Module.instantiateWasm callback failed with error: ${$}`),s($)}return We(g,Te,k,L).catch(s),{}}var st=k=>{for(;k.length>0;)k.shift()(n)};n.noExitRuntime;var Pe=k=>
91Ro(k),rt=()=>Bn(),ut=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,xt=(k,H,L)=>{for(var $=H+L,Q=H;k[Q]&&!(Q>=$);)++Q;if(Q-H>16&&k.buffer&&ut)return ut.decode(k.subarray(H,Q));for(var re="";H<Q;){var ae=k[H++];if(!(ae&128)){re+=String.fromCharCode(ae);continue}var se=k[H++]&63;if((ae&224)==192){re+=String.fromCharCode((ae&31)<<6|se);continue}var fe=k[H++]&63;if((ae&240)==224?ae=(ae&15)<<12|se<<6|fe:ae=(ae&7)<<18|se<<12|fe<<6|k[H++]&63,ae<65536)re+=String.fromCharCode(ae);else{var Ae=ae-65536;re+=String.fromCharCode(55296|Ae>>10,56320|Ae&1023)}}return re},vt=(k,H)=>k?xt(x,k,H):"",W=(k,H,L,$)=>{ve(`Assertion failed: ${vt(k)}, at: `+[H?vt(H):"unknown filename",L,$?vt($):"unknown function"])},te=0;class oe{constructor(H){this.excPtr=H,this.ptr=H-24}set_type(H){E[this.ptr+4>>2]=H}get_type(){return E[this.ptr+4>>2]}set_destructor(H){E[this.ptr+8>>2]=H}get_destructor(){return E[this.ptr+8>>2]}set_caught(H){H=H?1:0,_[this.ptr+12]=H}get_caught(){return _[this.ptr+12]!=0}set_rethrown(H){H=H?1:0,_[this.ptr+13]=H}get_rethrown(){return _[this.ptr+13]!=0}init(H,L){this.set_adjusted_ptr(0),this.set_type(H),this.set_destructor(L)}set_adjusted_ptr(H){E[this.ptr+16>>2]=H}get_adjusted_ptr(){return E[this.ptr+16>>2]}get_exception_ptr(){var H=Ba(this.get_type());if(H)return E[this.excPtr>>2];var L=this.get_adjusted_ptr();return L!==0?L:this.excPtr}}var Ee=k=>{throw te||(te=k),te},Ce=k=>r1(k),xe=k=>{var H=te;if(!H)return Ce(0),0;var L=new oe(H);L.set_adjusted_ptr(H);var $=L.get_type();if(!$)return Ce(0),H;for(var Q in k){var re=k[Q];if(re===0||re===$)break;var ae=L.ptr+16;if(Fo(re,$,ae))return Ce(re),H}return Ce($),H},Fe=()=>xe([]),Ne=(k,H,L)=>{var $=new oe(k);throw $.init(H,L),te=k,te};function it(k,H,L){return 0}var Wt=(k,H)=>{},ye=k=>{for(var H=0,L=0;L<k.length;++L){var $=k.charCodeAt(L);$<=127?H++:$<=2047?H+=2:$>=55296&&$<=57343?(H+=4,++L):H+=3}return H},vi=(k,H,L,$)=>{if(!($>0))return 0;for(var Q=L,re=L+$-1,ae=0;ae<k.length;++ae){var se=k.charCodeAt(ae);if(se>=55296&&se<=57343){var fe=k.charCodeAt(++ae);se=65536+((se&1023)<<10)|fe&1023}if(se<=127){if(L>=re)break;H[L++]=se}else if(se<=2047){if(L+1>=re)break;H[L++]=192|se>>6,H[L++]=128|se&63}else if(se<=65535){if(L+2>=re)break;H[L++]=224|se>>12,H[L++]=128|se>>6&63,H[L++]=128|se&63}else{if(L+3>=re)break;H[L++]=240|se>>18,H[L++]=128|se>>12&63,H[L++]=128|se>>6&63,H[L++]=128|se&63}}return H[L]=0,L-Q},on=(k,H,L)=>vi(k,x,H,L),On=(k,H)=>{};function vo(k,H,L){return 0}var Cn=(k,H,L,$)=>{};function er(k,H,L,$){}var Ha=(k,H)=>{},ln={},yc=k=>{for(;k.length;){var H=k.pop(),L=k.pop();L(H)}};function Xl(k){return this.fromWireType(E[k>>2])}var _o={},ka={},vc={},Rf,_c=k=>{throw new Rf(k)},xs=(k,H,L)=>{k.forEach(function(se){vc[se]=H});function $(se){var fe=L(se);fe.length!==k.length&&_c("Mismatched type converter count");for(var Ae=0;Ae<k.length;++Ae)_i(k[Ae],fe[Ae])}var Q=new Array(H.length),re=[],ae=0;H.forEach((se,fe)=>{ka.hasOwnProperty(se)?Q[fe]=ka[se]:(re.push(se),_o.hasOwnProperty(se)||(_o[se]=[]),_o[se].push(()=>{Q[fe]=ka[se],++ae,ae===re.length&&$(Q)}))}),re.length===0&&$(Q)},Ff=k=>{var H=ln[k];delete ln[k];var L=H.rawConstructor,$=H.rawDestructor,Q=H.fields,re=Q.map(ae=>ae.getterReturnType).concat(Q.map(ae=>ae.setterArgumentType));xs([k],re,ae=>{var se={};return Q.forEach((fe,Ae)=>{var Ie=fe.fieldName,ct=ae[Ae],at=fe.getter,Pt=fe.getterContext,hr=ae[Ae+Q.length],bn=fe.setter,$r=fe.setterContext;se[Ie]={read:Ar=>ct.fromWireType(at(Pt,Ar)),write:(Ar,pe)=>{var Qe=[];bn($r,Ar,hr.toWireType(Qe,pe)),yc(Qe)}}}),[{name:H.name,fromWireType:fe=>{var Ae={};for(var Ie in se)Ae[Ie]=se[Ie].read(fe);return $(fe),Ae},toWireType:(fe,Ae)=>{for(var Ie in se)if(!(Ie in Ae))throw new TypeError(`Missing field: "${Ie}"`);var ct=L();for(Ie in se)se[Ie].write(ct,Ae[Ie]);return fe!==null&&fe.push($,ct),ct},argPackAdvance:Qn,readValueFromPointer:Xl,destructorFunction:$}]})},K4=(k,H,L,$,Q)=>{},H0=()=>{for(var k=new Array(256),H=0;H<256;++H)k[H]=String.fromCharCode(H);k0=k},k0,Ir=k=>{for(var H="",L=k;x[L];)H+=k0[x[L++]];return H},xo,At=k=>{throw new xo(k)};function J4(k,H,L={}){var $=H.name;if(k||At(`type "${$}" must have a positive integer typeid pointer`),ka.hasOwnProperty(k)){if
vendor: 4,207 bytes, line 91
91(L.ignoreDuplicateRegistrations)return;At(`Cannot register type '${$}' twice`)}if(ka[k]=H,delete vc[k],_o.hasOwnProperty(k)){var Q=_o[k];delete _o[k],Q.forEach(re=>re())}}function _i(k,H,L={}){if(!("argPackAdvance"in H))throw new TypeError("registerType registeredInstance requires argPackAdvance");return J4(k,H,L)}var Qn=8,em=(k,H,L,$)=>{H=Ir(H),_i(k,{name:H,fromWireType:function(Q){return!!Q},toWireType:function(Q,re){return re?L:$},argPackAdvance:Qn,readValueFromPointer:function(Q){return this.fromWireType(x[Q])},destructorFunction:null})},tm=k=>({count:k.count,deleteScheduled:k.deleteScheduled,preservePointerOnDelete:k.preservePointerOnDelete,ptr:k.ptr,ptrType:k.ptrType,smartPtr:k.smartPtr,smartPtrType:k.smartPtrType}),Co=k=>{function H(L){return L.$$.ptrType.registeredClass.name}At(H(k)+" instance already deleted")},I0=!1,Lf=k=>{},rm=k=>{k.smartPtr?k.smartPtrType.rawDestructor(k.smartPtr):k.ptrType.registeredClass.rawDestructor(k.ptr)},Of=k=>{k.count.value-=1;var H=k.count.value===0;H&&rm(k)},Nf=(k,H,L)=>{if(H===L)return k;if(L.baseClass===void 0)return null;var $=Nf(k,H,L.baseClass);return $===null?null:L.downcast($)},Bf={},nm=()=>Object.keys(ql).length,im=()=>{var k=[];for(var H in ql)ql.hasOwnProperty(H)&&k.push(ql[H]);return k},Yl=[],M0=()=>{for(;Yl.length;){var k=Yl.pop();k.$$.deleteScheduled=!1,k.delete()}},Zl,sm=k=>{Zl=k,Yl.length&&Zl&&Zl(M0)},am=()=>{n.getInheritedInstanceCount=nm,n.getLiveInheritedInstances=im,n.flushPendingDeletes=M0,n.setDelayFunction=sm},ql={},Ql=(k,H)=>{for(H===void 0&&At("ptr should not be undefined");k.baseClass;)H=k.upcast(H),k=k.baseClass;return H},R0=(k,H)=>(H=Ql(k,H),ql[H]),wo=(k,H)=>{(!H.ptrType||!H.ptr)&&_c("makeClassHandle requires ptr and ptrType");var L=!!H.smartPtrType,$=!!H.smartPtr;return L!==$&&_c("Both smartPtrType and smartPtr must be specified"),H.count={value:1},Ia(Object.create(k,{$$:{value:H,writable:!0}}))};function om(k){var H=this.getPointee(k);if(!H)return this.destructor(k),null;var L=R0(this.registeredClass,H);if(L!==void 0){if(L.$$.count.value===0)return L.$$.ptr=H,L.$$.smartPtr=k,L.clone();var $=L.clone();return this.destructor(k),$}function Q(){return this.isSmartPointer?wo(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:H,smartPtrType:this,smartPtr:k}):wo(this.registeredClass.instancePrototype,{ptrType:this,ptr:k})}var re=this.registeredClass.getActualType(H),ae=Bf[re];if(!ae)return Q.call(this);var se;this.isConst?se=ae.constPointerType:se=ae.pointerType;var fe=Nf(H,this.registeredClass,se.registeredClass);return fe===null?Q.call(this):this.isSmartPointer?wo(se.registeredClass.instancePrototype,{ptrType:se,ptr:fe,smartPtrType:this,smartPtr:k}):wo(se.registeredClass.instancePrototype,{ptrType:se,ptr:fe})}var Ia=k=>typeof FinalizationRegistry>"u"?(Ia=H=>H,k):(I0=new FinalizationRegistry(H=>{Of(H.$$)}),Ia=H=>{var L=H.$$,$=!!L.smartPtr;if($){var Q={$$:L};I0.register(H,Q,H)}return H},Lf=H=>I0.unregister(H),Ia(k)),bo=()=>{Object.assign(xi.prototype,{isAliasOf(k){if(!(this instanceof xi)||!(k instanceof xi))return!1;var H=this.$$.ptrType.registeredClass,L=this.$$.ptr;k.$$=k.$$;for(var $=k.$$.ptrType.registeredClass,Q=k.$$.ptr;H.baseClass;)L=H.upcast(L),H=H.baseClass;for(;$.baseClass;)Q=$.upcast(Q),$=$.baseClass;return H===$&&L===Q},clone(){if(this.$$.ptr||Co(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var k=Ia(Object.create(Object.getPrototypeOf(this),{$$:{value:tm(this.$$)}}));return k.$$.count.value+=1,k.$$.deleteScheduled=!1,k},delete(){this.$$.ptr||Co(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&At("Object already scheduled for deletion"),Lf(this),Of(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Co(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&At("Object already scheduled for deletion"),Yl.push(this),Yl.length===1&&Zl&&Zl(M0),this.$$.deleteScheduled=!0,this}})};function xi(){}var Ft=(k,H)=>Object.defineProperty(H,"name",{value:k}),Ut=(k,H,L)=>{if(k[H].overloadTable===void 0){var $=k[H];k[H]=function(...Q){return k[H].overloadTable.hasOwnProperty(Q.length)||At(`Function '${L}
91' called with an invalid number of arguments (${Q.length}) - expects one of (${k[H].overloadTable})!`),k[H].overloadTable[Q.length].apply(this,Q)},k[H].overloadTable=[],k[H].overloadTable[$.argCount]=$}},Wi=(k,H,L)=>{n.hasOwnProperty(k)?((L===void 0||n[k].overloadTable!==void 0&&n[k].overloadTable[L]!==void 0)&&At(`Cannot register public name '${k}' twice`),Ut(n,k,k),n.hasOwnProperty(L)&&At(`Cannot register multiple overloads of a function with the same number of arguments (${L})!`),n[k].overloadTable[L]=H):(n[k]=H,L!==void 0&&(n[k].numArguments=L))},Qr=48,wn=57,Ma=k=>{if(k===void 0)return"_unknown";k=k.replace(/[^a-zA-Z0-9_]/g,"$");var H=k.charCodeAt(0);return H>=Qr&&H<=wn?`_${k}`:k};function So(k,H,L,$,Q,re,ae,se){this.name=k,this.constructor=H,this.instancePrototype=L,this.rawDestructor=$,this.baseClass=Q,this.getActualType=re,this.upcast=ae,this.downcast=se,this.pureVirtualFunctions=[]}var un=(k,H,L)=>{for(;H!==L;)H.upcast||At(`Expected null or instance of ${L.name}, got an instance of ${H.name}`),k=H.upcast(k),H=H.baseClass;return k};function F0(k,H){if(H===null)return this.isReference&&At(`null is not a valid ${this.name}`),0;H.$$||At(`Cannot pass "${Sc(H)}" as a ${this.name}`),H.$$.ptr||At(`Cannot pass deleted object as a pointer of type ${this.name}`);var L=H.$$.ptrType.registeredClass,$=un(H.$$.ptr,L,this.registeredClass);return $}function Uf(k,H){var L;if(H===null)return this.isReference&&At(`null is not a valid ${this.name}`),this.isSmartPointer?(L=this.rawConstructor(),k!==null&&k.push(this.rawDestructor,L),L):0;(!H||!H.$$)&&At(`Cannot pass "${Sc(H)}" as a ${this.name}`),H.$$.ptr||At(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&H.$$.ptrType.isConst&&At(`Cannot convert argument of type ${H.$$.smartPtrType?H.$$.smartPtrType.name:H.$$.ptrType.name} to parameter type ${this.name}`);var $=H.$$.ptrType.registeredClass;if(L=un(H.$$.ptr,$,this.registeredClass),this.isSmartPointer)switch(H.$$.smartPtr===void 0&&At("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:H.$$.smartPtrType===this?L=H.$$.smartPtr:At(`Cannot convert argument of type ${H.$$.smartPtrType?H.$$.smartPtrType.name:H.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:L=H.$$.smartPtr;break;case 2:if(H.$$.smartPtrType===this)L=H.$$.smartPtr;else{var Q=H.clone();L=this.rawShare(L,Ra.toHandle(()=>Q.delete())),k!==null&&k.push(this.rawDestructor,L)}break;default:At("Unsupporting sharing policy")}return L}function $f(k,H){if(H===null)return this.isReference&&At(`null is not a valid ${this.name}`),0;H.$$||At(`Cannot pass "${Sc(H)}" as a ${this.name}`),H.$$.ptr||At(`Cannot pass deleted object as a pointer of type ${this.name}`),H.$$.ptrType.isConst&&At(`Cannot convert argument of type ${H.$$.ptrType.name} to parameter type ${this.name}`);var L=H.$$.ptrType.registeredClass,$=un(H.$$.ptr,L,this.registeredClass);return $}var xc=()=>{Object.assign(Ao.prototype,{getPointee(k){return this.rawGetPointee&&(k=this.rawGetPointee(k)),k},destructor(k){var H;(H=this.rawDestructor)==null||H.call(this,k)},argPackAdvance:Qn,readValueFromPointer:Xl,fromWireType:om})};function Ao(k,H,L,$,Q,re,ae,se,fe,Ae,Ie){this.name=k,this.registeredClass=H,this.isReference=L,this.isConst=$,this.isSmartPointer=Q,this.pointeeType=re,this.sharingPolicy=ae,this.rawGetPointee=se,this.rawConstructor=fe,this.rawShare=Ae,this.rawDestructor=Ie,!Q&&H.baseClass===void 0?$?(this.toWireType=F0,this.destructorFunction=null):(this.toWireType=$f,this.destructorFunction=null):this.toWireType=Uf}var Kn=(k,H,L)=>{n.hasOwnProperty(k)||_c("Replacing nonexistent public symbol"),n[k].overloadTable!==void 0&&L!==void 0?n[k].overloadTable[L]=H:(n[k]=H,n[k].argCount=L)},lm=(k,H,L)=>{k=k.replace(/p/g,"i");var $=n["dynCall_"+k];return $(H,...L)},zf,Mr=k=>zf.get(k),L0=(k,H,L=[])=>{if(k.includes("j"))return lm(k,H,L);var $=Mr(H)(...L);return $},Kl=(k,H)=>(...L)=>L0(k,H,L),Rr=(k,H)=>{k=Ir(k);function L(){return k.includes("j")?Kl(k,H):Mr(H)}var $=L();return typeof $!="function"&&At(`unknown function pointer with signature ${k}: ${H}`),$},um=(k,H)=>{var L=Ft(H,function($){this.name=H,this.message=$;var Q=new Error($).stack;Q!==void 0&&(this.stack=this.toString()+`
92`+Q.replace(/^Error(:[^\n]*)?\n/,""))});return L.prototype=Object.create(k.prototype),L.prototype.constructor=L,L.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},L},Cc,O0=k=>{var H=t1(k),L=Ir(H);return Qi(H),L},To=(k,H)=>{var L=[],$={};function Q(re){if(!$[re]&&!ka[re]){if(vc[re]){vc[re].forEach(Q);return}L.push(re),$[re]=!0}}throw H.forEach(Q),new Cc(`${k}: `+L.map(O0).join([", "]))},Jl=(k,H,L,$,Q,re,ae,se,fe,Ae,Ie,ct,at)=>{Ie=Ir(Ie),re=Rr(Q,re),se&&(se=Rr(ae,se)),Ae&&(Ae=Rr(fe,Ae)),at=Rr(ct,at);var Pt=Ma(Ie);Wi(Pt,function(){To(`Cannot construct ${Ie} due to unbound types`,[$])}),xs([k,H,L],$?[$]:[],hr=>{var bn;hr=hr[0];var $r,Ar;$?($r=hr.registeredClass,Ar=$r.instancePrototype):Ar=xi.prototype;var pe=Ft(Ie,function(...Oc){if(Object.getPrototypeOf(this)!==Qe)throw new xo("Use 'new' to construct "+Ie);
vendor: 10,579 bytes, line 92
92if(Ot.constructor_body===void 0)throw new xo(Ie+" has no accessible constructor");var l1=Ot.constructor_body[Oc.length];if(l1===void 0)throw new xo(`Tried to invoke ctor of ${Ie} with invalid number of parameters (${Oc.length}) - expected (${Object.keys(Ot.constructor_body).toString()}) parameters instead!`);return l1.apply(this,Oc)}),Qe=Object.create(Ar,{constructor:{value:pe}});pe.prototype=Qe;var Ot=new So(Ie,pe,Qe,at,$r,re,se,Ae);Ot.baseClass&&((bn=Ot.baseClass).__derivedClasses??(bn.__derivedClasses=[]),Ot.baseClass.__derivedClasses.push(Ot));var jt=new Ao(Ie,Ot,!0,!1,!1),Ki=new Ao(Ie+"*",Ot,!1,!1,!1),No=new Ao(Ie+" const*",Ot,!1,!0,!1);return Bf[k]={pointerType:Ki,constPointerType:No},Kn(Pt,pe),[jt,Ki,No]})},eu=(k,H)=>{for(var L=[],$=0;$<k;$++)L.push(E[H+$*4>>2]);return L};function Tt(k){for(var H=1;H<k.length;++H)if(k[H]!==null&&k[H].destructorFunction===void 0)return!0;return!1}function wc(k,H,L,$,Q,re){var ae=H.length;ae<2&&At("argTypes array size mismatch! Must at least get return value and 'this' types!");var se=H[1]!==null&&L!==null,fe=Tt(H),Ae=H[0].name!=="void",Ie=ae-2,ct=new Array(Ie),at=[],Pt=[],hr=function(...bn){bn.length!==Ie&&At(`function ${k} called with ${bn.length} arguments, expected ${Ie}`),Pt.length=0;var $r;at.length=se?2:1,at[0]=Q,se&&($r=H[1].toWireType(Pt,this),at[1]=$r);for(var Ar=0;Ar<Ie;++Ar)ct[Ar]=H[Ar+2].toWireType(Pt,bn[Ar]),at.push(ct[Ar]);var pe=$(...at);function Qe(Ot){if(fe)yc(Pt);else for(var jt=se?1:2;jt<H.length;jt++){var Ki=jt===1?$r:ct[jt-2];H[jt].destructorFunction!==null&&H[jt].destructorFunction(Ki)}if(Ae)return H[0].fromWireType(Ot)}return Qe(pe)};return Ft(k,hr)}var N0=(k,H,L,$,Q,re)=>{var ae=eu(H,L);Q=Rr($,Q),xs([],[k],se=>{se=se[0];var fe=`constructor ${se.name}`;if(se.registeredClass.constructor_body===void 0&&(se.registeredClass.constructor_body=[]),se.registeredClass.constructor_body[H-1]!==void 0)throw new xo(`Cannot register multiple constructors with identical number of parameters (${H-1}) for class '${se.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return se.registeredClass.constructor_body[H-1]=()=>{To(`Cannot construct ${se.name} due to unbound types`,ae)},xs([],ae,Ae=>(Ae.splice(1,0,null),se.registeredClass.constructor_body[H-1]=wc(fe,Ae,null,Q,re),[])),[]})},B0=k=>{k=k.trim();let H=k.indexOf("(");return H!==-1?k.substr(0,H):k},cm=(k,H,L,$,Q,re,ae,se,fe)=>{var Ae=eu(L,$);H=Ir(H),H=B0(H),re=Rr(Q,re),xs([],[k],Ie=>{Ie=Ie[0];var ct=`${Ie.name}.${H}`;H.startsWith("@@")&&(H=Symbol[H.substring(2)]),se&&Ie.registeredClass.pureVirtualFunctions.push(H);function at(){To(`Cannot call ${ct} due to unbound types`,Ae)}var Pt=Ie.registeredClass.instancePrototype,hr=Pt[H];return hr===void 0||hr.overloadTable===void 0&&hr.className!==Ie.name&&hr.argCount===L-2?(at.argCount=L-2,at.className=Ie.name,Pt[H]=at):(Ut(Pt,H,ct),Pt[H].overloadTable[L-2]=at),xs([],Ae,bn=>{var $r=wc(ct,bn,Ie,re,ae);return Pt[H].overloadTable===void 0?($r.argCount=L-2,Pt[H]=$r):Pt[H].overloadTable[L-2]=$r,[]}),[]})},U0=[],zt=[],tu=k=>{k>9&&--zt[k+1]===0&&(zt[k]=void 0,U0.push(k))},hm=()=>zt.length/2-5-U0.length,jf=()=>{zt.push(0,1,void 0,1,null,1,!0,1,!1,1),n.count_emval_handles=hm},Ra={toValue:k=>(k||At("Cannot use deleted val. handle = "+k),zt[k]),toHandle:k=>{switch(k){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let H=U0.pop()||zt.length;return zt[H]=k,zt[H+1]=1,H}}}},bc={name:"emscripten::val",fromWireType:k=>{var H=Ra.toValue(k);return tu(k),H},toWireType:(k,H)=>Ra.toHandle(H),argPackAdvance:Qn,readValueFromPointer:Xl,destructorFunction:null},Ci=k=>_i(k,bc),wi=(k,H,L)=>{switch(H){case 1:return L?function($){return this.fromWireType(_[$])}:function($){return this.fromWireType(x[$])};case 2:return L?function($){return this.fromWireType(w[$>>1])}:function($){return this.fromWireType(S[$>>1])};case 4:return L?function($){return this.fromWireType(b[$>>2])}:function($){return this.fromWireType(E[$>>2])};default:throw new TypeError(`invalid integer width (${H}): ${k}`)}},Cs=(k,H,L,$)=>{H=Ir(H);function Q(){}Q.values={},_i(k,{name:H,constructor:Q,fromWireType:function(re){return this.constructor.values[re]},toWireType:(re,ae)=>ae.value,argPackAdvance:Qn,readValueFromPointer:wi(H,L,$),destructorFunction:null}),Wi(H,Q)},Eo=(k,H)=>{var L=ka[k];return L===void 0&&At(`${H} has unknown type ${O0(k)}`),L},$0=(k,H,L)=>{var $=Eo(k,"enum");H=Ir(H);var Q=$.constructor,re=Object.create($.constructor.prototype,{value:{value:L},constructor:{value:Ft(`${$.name}_${H}`,function(){})}});Q.values[L]=re,Q[H]=re},Sc=k=>{if(k===null)return"null";var H=typeof k;return H==="object"||H==="array"||H==="function"?k.toString():""+k},Xi=(k,H)=>{switch(H){case 4:return function(L){return this.fromWireType(D[L>>2])};case 8:return function(L){return this.fromWireType(P[L>>3])};default:throw new TypeError(`invalid float width (${H}): ${k}`)}},Po=(k,H,L)=>{H=Ir(H),_i(k,{name:H,fromWireType:$=>$,toWireType:($,Q)=>Q,argPackAdvance:Qn,readValueFromPointer:Xi(H,L),destructorFunction:null})},Do=(k,H,L,$,Q,re,ae)=>{var se=eu(H,L);k=Ir(k),k=B0(k),Q=Rr($,Q),Wi(k,function(){To(`Cannot call ${k} due to unbound types`,se)},H-1),xs([],se,fe=>{var Ae=[fe[0],null].concat(fe.slice(1));return Kn(k,wc(k,Ae,null,Q,re),H-1),[]})},Ac=(k,H,L)=>{switch(H){case 1:return L?$=>_[$]:$=>x[$];case 2:return L?$=>w[$>>1]:$=>S[$>>1];case 4:return L?$=>b[$>>2]:$=>E[$>>2];default:throw new TypeError(`invalid integer width (${H}): ${k}`)}},Tc=(k,H,L,$,Q)=>{H=Ir(H);var re=Ie=>Ie;if($===0){var ae=32-8*L;re=Ie=>Ie<<ae>>>ae}var se=H.includes("unsigned"),fe=(Ie,ct)=>{},Ae;se?Ae=function(Ie,ct){return fe(ct,this.name),ct>>>0}:Ae=function(Ie,ct){return fe(ct,this.name),ct},_i(k,{name:H,fromWireType:re,toWireType:Ae,argPackAdvance:Qn,readValueFromPointer:Ac(H,L,$!==0),destructorFunction:null})},Jn=(k,H,L)=>{var $=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Q=$[H];function re(ae){var se=E[ae>>2],fe=E[ae+4>>2];return new Q(_.buffer,fe,se)}L=Ir(L),_i(k,{name:L,fromWireType:re,argPackAdvance:Qn,readValueFromPointer:re},{ignoreDuplicateRegistrations:!0})},ei=(k,H)=>{Ci(k)},Fa=(k,H,L,$,Q,re,ae,se,fe,Ae,Ie,ct)=>{L=Ir(L),re=Rr(Q,re),se=Rr(ae,se),Ae=Rr(fe,Ae),ct=Rr(Ie,ct),xs([k],[H],at=>{at=at[0];var Pt=new Ao(L,at.registeredClass,!1,!1,!0,at,$,re,se,Ae,ct);return[Pt]})},Yi=(k,H)=>{H=Ir(H);var L=H==="std::string";_i(k,{name:H,fromWireType($){var Q=E[$>>2],re=$+4,ae;if(L)for(var se=re,fe=0;fe<=Q;++fe){var Ae=re+fe;if(fe==Q||x[Ae]==0){var Ie=Ae-se,ct=vt(se,Ie);ae===void 0?ae=ct:(ae+="\0",ae+=ct),se=Ae+1}}else{for(var at=new Array(Q),fe=0;fe<Q;++fe)at[fe]=String.fromCharCode(x[re+fe]);ae=at.join("")}return Qi($),ae},toWireType($,Q){Q instanceof ArrayBuffer&&(Q=new Uint8Array(Q));var re,ae=typeof Q=="string";ae||Q instanceof Uint8Array||Q instanceof Uint8ClampedArray||Q instanceof Int8Array||At("Cannot pass non-string to std::string"),L&&ae?re=ye(Q):re=Q.length;var se=Mo(4+re+1),fe=se+4;if(E[se>>2]=re,L&&ae)on(Q,fe,re+1);else if(ae)for(var Ae=0;Ae<re;++Ae){var Ie=Q.charCodeAt(Ae);Ie>255&&(Qi(fe),At("String has UTF-16 code units that do not fit in 8 bits")),x[fe+Ae]=Ie}else for(var Ae=0;Ae<re;++Ae)x[fe+Ae]=Q[Ae];return $!==null&&$.push(Qi,se),se},argPackAdvance:Qn,readValueFromPointer:Xl,destructorFunction($){Qi($)}})},Zi=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,La=(k,H)=>{for(var L=k,$=L>>1,Q=$+H/2;!($>=Q)&&S[$];)++$;if(L=$<<1,L-k>32&&Zi)return Zi.decode(x.subarray(k,L));for(var re="",ae=0;!(ae>=H/2);++ae){var se=w[k+ae*2>>1];if(se==0)break;re+=String.fromCharCode(se)}return re},Vf=(k,H,L)=>{if(L??(L=2147483647),L<2)return 0;L-=2;for(var $=H,Q=L<k.length*2?L/2:k.length,re=0;re<Q;++re){var ae=k.charCodeAt(re);w[H>>1]=ae,H+=2}return w[H>>1]=0,H-$},z0=k=>k.length*2,j0=(k,H)=>{for(var L=0,$="";!(L>=H/4);){var Q=b[k+L*4>>2];if(Q==0)break;if(++L,Q>=65536){var re=Q-65536;$+=String.fromCharCode(55296|re>>10,56320|re&1023)}else $+=String.fromCharCode(Q)}return $},Nn=(k,H,L)=>{if(L??(L=2147483647),L<4)return 0;for(var $=H,Q=$+L-4,re=0;re<k.length;++re){var ae=k.charCodeAt(re);if(ae>=55296&&ae<=57343){var se=k.charCodeAt(++re);ae=65536+((ae&1023)<<10)|se&1023}if(b[H>>2]=ae,H+=4,H+4>Q)break}return b[H>>2]=0,H-$},ti=k=>{for(var H=0,L=0;L<k.length;++L){var $=k.charCodeAt(L);$>=55296&&$<=57343&&++L,H+=4}return H},Zt=(k,H,L)=>{L=Ir(L);var $,Q,re,ae;H===2?($=La,Q=Vf,ae=z0,re=se=>S[se>>1]):H===4&&($=j0,Q=Nn,ae=ti,re=se=>E[se>>2]),_i(k,{name:L,fromWireType:se=>{for(var fe=E[se>>2],Ae,Ie=se+4,ct=0;ct<=fe;++ct){var at=se+4+ct*H;if(ct==fe||re(at)==0){var Pt=at-Ie,hr=$(Ie,Pt);Ae===void 0?Ae=hr:(Ae+="\0",Ae+=hr),Ie=at+H}}return Qi(se),Ae},toWireType:(se,fe)=>{typeof fe!="string"&&At(`Cannot pass non-string to C++ string type ${L}`);var Ae=ae(fe),Ie=Mo(4+Ae+H);return E[Ie>>2]=Ae/H,Q(fe,Ie+4,Ae+H),se!==null&&se.push(Qi,Ie),Ie},argPackAdvance:Qn,readValueFromPointer:Xl,destructorFunction(se){Qi(se)}})},ru=(k,H,L,$,Q,re)=>{ln[k]={name:Ir(H),rawConstructor:Rr(L,$),rawDestructor:Rr(Q,re),fields:[]}},bi=(k,H,L,$,Q,re,ae,se,fe,Ae)=>{ln[k].fields.push({fieldName:Ir(H),getterReturnType:L,getter:Rr($,Q),getterContext:re,setterArgumentType:ae,setter:Rr(se,fe),setterContext:Ae})},Gf=(k,H)=>{H=Ir(H),_i(k,{isVoid:!0,name:H,argPackAdvance:0,fromWireType:()=>{},toWireType:(L,$)=>{}})},Wf=(k,H,L)=>x.copyWithin(k,H,H+L),V0=()=>{throw 1/0},nu=[],Xf=(k,H,L,$)=>(k=nu[k],H=Ra.toValue(H),k(null,H,L,$)),Ec=k=>{var H=nu.length;return nu.push(k),H},Yf=(k,H)=>{for(var L=new Array(k),$=0;$<k;++$)L[$]=Eo(E[H+$*4>>2],"parameter "+$);return L},Ho=Reflect.construct,G0=(k,H,L)=>{var $=[],Q=k.toWireType($,L);return $.length&&(E[H>>2]=Ra.toHandle($)),Q},dm=(k,H,L)=>{var $=Yf(k,H),Q=$.shift();k--;var re=new Array(k),ae=(fe,Ae,Ie,ct)=>{for(var at=0,Pt=0;Pt<k;++Pt)re[Pt]=$[Pt].readValueFromPointer(ct+at),at+=$[Pt].argPackAdvance;var hr=L===1?Ho(Ae,re):Ae.apply(fe,re);return G0(Q,Ie,hr)},se=`methodCaller<(${$.map(fe=>fe.name).join(", ")}) => ${Q.name}>`;return Ec(Ft(se,ae))},Pc=k=>{k>9&&(zt[k+1]+=1)},fm=k=>{var H=Ra.toValue(k);yc(H),tu(k)},Si=(k,H)=>{k=Eo(k,"_emval_take_value");var L=k.readValueFromPointer(H);return Ra.toHandle(L)},Dc=()=>{ve("")},iu;iu=()=>performance.now();var ko=()=>2147483648,W0=k=>{var H=y.buffer,L=(k-H.byteLength+65535)/65536;try{return y.grow(L),I(),1}catch{}},X0=k=>{var H=x.length;k>>>=0;var L=ko();if(k>L)return!1;for(var $=(fe,Ae)=>fe+(Ae-fe%Ae)%Ae,Q=1;Q<=4;Q*=2){var re=H*(1+.2/Q);re=Math.min(re,k+100663296);var ae=Math.min(L,$(Math.max(k,re),65536)),se=W0(ae);if(se)return!0}return!1},Hc={},Y0=()=>l||"./this.program",Oa=()=>
92{if(!Oa.strings){var k=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",H={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:k,_:Y0()};for(var L in Hc)Hc[L]===void 0?delete H[L]:H[L]=Hc[L];var $=[];for(var L in H)$.push(`${L}=${H[L]}`);Oa.strings=$}return Oa.strings},Io=(k,H)=>{for(var L=0;L<k.length;++L)_[H++]=k.charCodeAt(L);_[H]=0},ri=(k,H)=>{var L=0;return Oa().forEach(($,Q)=>{var re=H+L;E[k+Q*4>>2]=re,Io($,re),L+=$.length+1}),0},Na=(k,H)=>{var L=Oa();E[k>>2]=L.length;var $=0;return L.forEach(Q=>$+=Q.length+1),E[H>>2]=$,0},Z0=k=>52,Zf=(k,H,L,$)=>52;function qi(k,H,L,$,Q){return 70}var Ys=[null,[],[]],q0=(k,H)=>{var L=Ys[k];H===0||H===10?((k===1?d:f)(xt(L,0)),L.length=0):L.push(H)},qf=(k,H,L,$)=>{for(var Q=0,re=0;re<L;re++){var ae=E[H>>2],se=E[H+4>>2];H+=8;for(var fe=0;fe<se;fe++)q0(k,x[ae+fe]);Q+=se}return E[$>>2]=Q,0},ws=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return k=>crypto.getRandomValues(k);ve("initRandomDevice")},bs=k=>(bs=ws())(k),kc=(k,H)=>(bs(x.subarray(k,k+H)),0),su=k=>k%4===0&&(k%100!==0||k%400===0),Ic=(k,H)=>{for(var L=0,$=0;$<=H;L+=k[$++]);return L},Q0=[31,29,31,30,31,30,31,31,30,31,30,31],K0=[31,28,31,30,31,30,31,31,30,31,30,31],J0=(k,H)=>{for(var L=new Date(k.getTime());H>0;){var $=su(L.getFullYear()),Q=L.getMonth(),re=($?Q0:K0)[Q];if(H>re-L.getDate())H-=re-L.getDate()+1,L.setDate(1),Q<11?L.setMonth(Q+1):(L.setMonth(0),L.setFullYear(L.getFullYear()+1));else return L.setDate(L.getDate()+H),L}return L};function Mc(k,H,L){var $=ye(k)+1,Q=new Array($);return vi(k,Q,0,Q.length),Q}var Qf=(k,H)=>{_.set(k,H)},Kf=(k,H,L,$)=>{var Q=E[$+40>>2],re={tm_sec:b[$>>2],tm_min:b[$+4>>2],tm_hour:b[$+8>>2],tm_mday:b[$+12>>2],tm_mon:b[$+16>>2],tm_year:b[$+20>>2],tm_wday:b[$+24>>2],tm_yday:b[$+28>>2],tm_isdst:b[$+32>>2],tm_gmtoff:b[$+36>>2],tm_zone:Q?vt(Q):""},ae=vt(L),se={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var fe in se)ae=ae.replace(new RegExp(fe,"g"),se[fe]);var Ae=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ie=["January","February","March","April","May","June","July","August","September","October","November","December"];function ct(pe,Qe,Ot){for(var jt=typeof pe=="number"?pe.toString():pe||"";jt.length<Qe;)jt=Ot[0]+jt;return jt}function at(pe,Qe){return ct(pe,Qe,"0")}function Pt(pe,Qe){function Ot(Ki){return Ki<0?-1:Ki>0?1:0}var jt;return(jt=Ot(pe.getFullYear()-Qe.getFullYear()))===0&&(jt=Ot(pe.getMonth()-Qe.getMonth()))===0&&(jt=Ot(pe.getDate()-Qe.getDate())),jt}function hr(pe){switch(pe.getDay()){case 0:return new Date(pe.getFullYear()-1,11,29);case 1:return pe;case 2:return new Date(pe.getFullYear(),0,3);case 3:return new Date(pe.getFullYear(),0,2);case 4:return new Date(pe.getFullYear(),0,1);case 5:return new Date(pe.getFullYear()-1,11,31);case 6:return new Date(pe.getFullYear()-1,11,30)}}function bn(pe){var Qe=J0(new Date(pe.tm_year+1900,0,1),pe.tm_yday),Ot=new Date(Qe.getFullYear(),0,4),jt=new Date(Qe.getFullYear()+1,0,4),Ki=hr(Ot),No=hr(jt);return Pt(Ki,Qe)<=0?Pt(No,Qe)<=0?Qe.getFullYear()+1:Qe.getFullYear():Qe.getFullYear()-1}var $r={"%a":pe=>Ae[pe.tm_wday].substring(0,3),"%A":pe=>Ae[pe.tm_wday],"%b":pe=>Ie[pe.tm_mon].substring(0,3),"%B":pe=>Ie[pe.tm_mon],"%C":pe=>{var Qe=pe.tm_year+1900;return at(Qe/100|0,2)},"%d":pe=>at(pe.tm_mday,2),"%e":pe=>ct(pe.tm_mday,2," "),"%g":pe=>bn(pe).toString().substring(2),"%G":bn,"%H":pe=>at(pe.tm_hour,2),"%I":pe=>{var Qe=pe.tm_hour;return Qe==0?Qe=12:Qe>12&&(Qe-=12),at(Qe,2)},"%j":pe=>at(pe.tm_mday+Ic(su(pe.tm_year+1900)?Q0:K0,pe.tm_mon-1),3),"%m":pe=>at(pe.tm_mon+1,2),"%M":pe=>at(pe.tm_min,2),"%n":()=>`
93`,"%p":pe=>pe.tm_hour>=0&&pe.tm_hour<12?"AM":"PM","%S":pe=>at(pe.tm_sec,2),"%t":()=>"	","%u":pe=>pe.tm_wday||7,"%U":pe=>{var Qe=pe.tm_yday+7-pe.tm_wday;return at(Math.floor(Qe/7),2)},"%V":pe=>{var Qe=Math.floor((pe.tm_yday+7-(pe.tm_wday+6)%7)/7);if((pe.tm_wday+371-pe.tm_yday-2)%7<=2&&Qe++,Qe){if(Qe==53){var Ot=(pe.tm_wday+371-pe.tm_yday)%7;Ot!=4&&(Ot!=3||!su(pe.tm_year))&&(Qe=1)}}else{Qe=52;var jt=(pe.tm_wday+7-pe.tm_yday-1)%7;(jt==4||jt==5&&su(pe.tm_year%400-1))&&Qe++}return at(Qe,2)},"%w":pe=>pe.tm_wday,"%W":pe=>{var Qe=pe.tm_yday+7-(pe.tm_wday+6)%7;return at(Math.floor(Qe/7),2)},"%y":pe=>(pe.tm_year+1900).toString().substring(2),"%Y":pe=>pe.tm_year+1900,"%z":pe=>{var Qe=pe.tm_gmtoff,Ot=Qe>=0;return Qe=Math.abs(Qe)/60,Qe=Qe/60*100+Qe%60,(Ot?"+":"-")+("0000"+Qe).slice(-4)},"%Z":pe=>pe.tm_zone,"%%":()=>"%"};ae=ae.replace(/%%/g,"\0\0");for(var fe in $r)ae.includes(fe)&&(ae=ae.replace(new RegExp(fe,"g"),$r[fe](re)));ae=ae.replace(/\0\0/g,"%");var Ar=Mc(ae);return Ar.length>H?0:(Qf(Ar,k),Ar.length-1)},Jf=(k,H,L,$,Q)=>Kf(k,H,L,$);
93Rf=n.InternalError=class extends Error{constructor(k){super(k),this.name="InternalError"}},H0(),xo=n.BindingError=class extends Error{constructor(k){super(k),this.name="BindingError"}},bo(),am(),xc(),Cc=n.UnboundTypeError=um(Error,"UnboundTypeError"),jf();var e1={c:W,d:Fe,q:Ne,h:Ee,E:it,W:Wt,T:On,X:vo,U:Cn,D:er,V:Ha,A:Ff,O:K4,ea:em,z:Jl,x:N0,i:cm,da:Ci,B:Cs,n:$0,I:Po,K:Do,p:Tc,k:Jn,L:ei,ka:Fa,J:Yi,y:Zt,u:ru,m:bi,fa:Gf,Y:Wf,P:V0,ia:Xf,R:tu,ha:dm,ja:Pc,ga:fm,t:Si,ca:Dc,l:iu,S:X0,Z:ri,_:Na,w:Z0,C:Zf,N:qi,v:qf,$:kc,F:Fr,j:Rc,g:ar,e:tr,ba:Lo,s:Ua,G:Fc,r:a1,b:n1,a:e2,f:i1,o:o1,H:s1,aa:Lr,M:Lc,Q:Jf},Lt=Ze(),Mo=k=>(Mo=Lt.na)(k),t1=k=>(t1=Lt.oa)(k),Qi=k=>(Qi=Lt.qa)(k),cr=(k,H)=>(cr=Lt.ra)(k,H),r1=k=>(r1=Lt.sa)(k),Ro=k=>(Ro=Lt.ta)(k),Bn=()=>(Bn=Lt.ua)(),Fo=(k,H,L)=>(Fo=Lt.va)(k,H,L),Ba=k=>(Ba=Lt.wa)(k);n.dynCall_iijj=(k,H,L,$,Q,re)=>(n.dynCall_iijj=Lt.xa)(k,H,L,$,Q,re),n.dynCall_vijj=(k,H,L,$,Q,re)=>(n.dynCall_vijj=Lt.ya)(k,H,L,$,Q,re),n.dynCall_jiii=(k,H,L,$)=>(n.dynCall_jiii=Lt.za)(k,H,L,$),n.dynCall_jii=(k,H,L)=>(n.dynCall_jii=Lt.Aa)(k,H,L);var Ai=n.dynCall_viiij=(k,H,L,$,Q,re)=>(Ai=n.dynCall_viiij=Lt.Ba)(k,H,L,$,Q,re);n.dynCall_jiji=(k,H,L,$,Q)=>(n.dynCall_jiji=Lt.Ca)(k,H,L,$,Q),n.dynCall_viijii=(k,H,L,$,Q,re,ae)=>(n.dynCall_viijii=Lt.Da)(k,H,L,$,Q,re,ae),n.dynCall_iiiiij=(k,H,L,$,Q,re,ae)=>(n.dynCall_iiiiij=Lt.Ea)(k,H,L,$,Q,re,ae),n.dynCall_iiiiijj=(k,H,L,$,Q,re,ae,se,fe)=>(n.dynCall_iiiiijj=Lt.Fa)(k,H,L,$,Q,re,ae,se,fe),n.dynCall_iiiiiijj=(k,H,L,$,Q,re,ae,se,fe,Ae)=>(n.dynCall_iiiiiijj=Lt.Ga)(k,H,L,$,Q,re,ae,se,fe,Ae);function n1(k,H){var L=rt();try{Mr(k)(H)}catch($){if(Pe(L),$!==$+0)throw $;cr(1,0)}}function Lo(k,H,L,$,Q){var re=rt();try{return Mr(k)(H,L,$,Q)}catch(ae){if(Pe(re),ae!==ae+0)throw ae;cr(1,0)}}function e2(k,H,L){var $=rt();try{Mr(k)(H,L)}catch(Q){if(Pe($),Q!==Q+0)throw Q;cr(1,0)}}function i1(k,H,L,$){var Q=rt();try{Mr(k)(H,L,$)}catch(re){if(Pe(Q),re!==re+0)throw re;cr(1,0)}}function ar(k,H,L){var $=rt();try{return Mr(k)(H,L)}catch(Q){if(Pe($),Q!==Q+0)throw Q;cr(1,0)}}function Rc(k,H){var L=rt();try{return Mr(k)(H)}catch($){if(Pe(L),$!==$+0)throw $;cr(1,0)}}function s1(k,H,L,$,Q,re){var ae=rt();try{Mr(k)(H,L,$,Q,re)}catch(se){if(Pe(ae),se!==se+0)throw se;cr(1,0)}}function a1(k){var H=rt();try{Mr(k)()}catch(L){if(Pe(H),L!==L+0)throw L;cr(1,0)}}function Fc(k,H,L,$,Q,re,ae,se){var fe=rt();try{return Mr(k)(H,L,$,Q,re,ae,se)}catch(Ae){if(Pe(fe),Ae!==Ae+0)throw Ae;cr(1,0)}}function o1(k,H,L,$,Q){var re=rt();try{Mr(k)(H,L,$,Q)}catch(ae){if(Pe(re),ae!==ae+0)throw ae;cr(1,0)}}function Ua(k,H,L,$,Q,re){var ae=rt();try{return Mr(k)(H,L,$,Q,re)}catch(se){if(Pe(ae),se!==se+0)throw se;cr(1,0)}}function tr(k,H,L,$){var Q=rt();try{return Mr(k)(H,L,$)}catch(re){if(Pe(Q),re!==re+0)throw re;cr(1,0)}}function Fr(k){var H=rt();try{return Mr(k)()}catch(L){if(Pe(H),L!==L+0)throw L;cr(1,0)}}function Lr(k,H,L,$,Q,re,ae){var se=rt();try{Mr(k)(H,L,$,Q,re,ae)}catch(fe){if(Pe(se),fe!==fe+0)throw fe;cr(1,0)}}function Lc(k,H,L,$,Q,re){var ae=rt();try{Ai(k,H,L,$,Q,re)}catch(se){if(Pe(ae),se!==se+0)throw se;cr(1,0)}}var Zs;G=function k(){Zs||Oo(),Zs||(G=k)};function Oo(){if(Y>0||(F(),Y>0))return;function k(){Zs||(Zs=!0,n.calledRun=!0,!v&&(O(),i(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),V()))}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),k()},1)):k()}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Oo(),a}})(),lR=oR,H3=class{constructor(){throw new Error("RendererLoader is a static class and cannot be instantiated.")}static async _tryLoad(e){return await lR({locateFile:()=>e})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async e=>{let t=`https://unpkg.com/${D3.name}@${D3.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${e.message}`),console.warn(`Attempting to load WASM from backup URL: ${t}`);try{return await this._tryLoad(t)}catch(n){throw console.error(`Primary WASM URL failed: ${e.message}`),console.error(`Backup WASM URL failed: ${n.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(e){this._wasmURL=e,this._ModulePromise=null}};Pn(H3,"_ModulePromise",null),Pn(H3,"_wasmURL",`https://cdn.jsdelivr.net/npm/${D3.name}@${D3.version}/dist/dotlottie-player.wasm`);var uR=class{constructor(){Pn(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){var t;(t=this._eventListeners.get(e.type))==null||t.forEach(n=>n(e))}removeAllEventListeners(){this._eventListeners.clear()}},A7=(r,e)=>r==="reverse"?e.Mode.Reverse:r==="bounce"?e.Mode.Bounce:r==="reverse-bounce"?e.Mode.ReverseBounce:e.Mode.Forward,T7=(r,e)=>r==="contain"?e.Fit.Contain:r==="cover"?e.Fit.Cover:r==="fill"?e.Fit.Fill:r==="fit-height"?e.Fit.FitHeight:r==="fit-width"?e.Fit.FitWidth:e.Fit.None,E7=(r,e)=>{let t=new e.VectorFloat;return t.push_back(r[0]),t.push_back(r[1]),t},P7=(r,e)=>{let t=new e.VectorFloat;return r.length!==2||(t.push_back(r[0]),t.push_back(r[1])),t},cR=class{constructor(r){Pn(this,"_canvas"),Pn(this,"_context"),Pn(this,"_eventManager"),Pn(this,"_animationFrameId",null),Pn(this,"_frameManager"),Pn(this,"_dotLottieCore",null),Pn(this,"_wasmModule",null),Pn(this,"_renderConfig",{}),Pn(this,"_isFrozen",!1),Pn(this,"_backgroundColor",null),this._canvas=r.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new uR,this._frameManager=new aR,this._renderConfig=r.renderConfig??{},H3.load().then(e=>{this._wasmModule=e,this._dotLottieCore=new e.DotLottiePlayer({autoplay:r.autoplay??!1,backgroundColor:0,loopAnimation:r.loop??!1,mode:A7(r.mode??"forward",e),segment:P7(r.segment??[],e),speed:r.speed??1,useFrameInterpolation:r.useFrameInterpolation??!0,marker:r.marker??"",layout:r.layout?{align:E7(r.layout.align,e),fit:T7(r.layout.fit,e)}:e.createDefaultLayout()}),r.data?this._loadFromData(r.data):r.src&&this._loadFromSrc(r.src),r.backgroundColor&&this.setBackgroun
93dColor(r.backgroundColor)}).catch(e=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${e}`)})})}_loadFromSrc(r){async function e(){let t=await fetch(r);if(!t.ok)throw new Error(`Failed to fetch the animation data from URL: ${r}. ${t.status}: ${t.statusText}`);let n=(t.headers.get("content-type")??"").trim(),i;return["application/json","text/plain"].some(s=>n.startsWith(s))?i=await t.text():i=await t.arrayBuffer(),i}e().then(t=>{this._loadFromData(t)}).catch(t=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${r}. ${t}`)})})}_loadFromData(r){if(this._dotLottieCore===null)return;let e=this._canvas.width,t=this._canvas.height,n=!1;if(typeof r=="string")n=this._dotLottieCore.loadAnimationData(r,e,t);else if(r instanceof ArrayBuffer)n=this._dotLottieCore.loadDotLottieData(r,e,t);else if(typeof r=="object")n=this._dotLottieCore.loadAnimationData(JSON.stringify(r),e,t);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}n?(this._eventManager.dispatch({type:"load"}),M5&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){var r;return(r=this._dotLottieCore)==null?void 0:r.activeAnimationId()}get activeThemeId(){var r;return(r=this._dotLottieCore)==null?void 0:r.activeThemeId()}get layout(){var e;let r=(e=this._dotLottieCore)==null?void 0:e.config().layout;if(r)return{align:[r.align.get(0),r.align.get(1)],fit:(()=>{var t,n,i,s,a,o;switch(r.fit){case((t=this._wasmModule)==null?void 0:t.Fit.Contain):return"contain";case((n=this._wasmModule)==null?void 0:n.Fit.Cover):return"cover";case((i=this._wasmModule)==null?void 0:i.Fit.Fill):return"fill";case((s=this._wasmModule)==null?void 0:s.Fit.FitHeight):return"fit-height";case((a=this._wasmModule)==null?void 0:a.Fit.FitWidth):return"fit-width";case((o=this._wasmModule)==null?void 0:o.Fit.None):return"none";default:return"contain"}})()}}get marker(){var r;return(r=this._dotLottieCore)==null?void 0:r.config().marker}get manifest(){var r;try{let e=(r=this._dotLottieCore)==null?void 0:r.manifestString();if(this._dotLottieCore===null||!e)return null;let t=JSON.parse(e);return Object.keys(t).length===0?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){var e;let r=(e=this._dotLottieCore)==null?void 0:e.config().segment;if(r&&r.size()===2)return[r.get(0),r.get(1)]}get loop(){var r;return((r=this._dotLottieCore)==null?void 0:r.config().loopAnimation)??!1}get mode(){var e,t,n,i;let r=(e=this._dotLottieCore)==null?void 0:e.config().mode;return r===((t=this._wasmModule)==null?void 0:t.Mode.Reverse)?"reverse":r===((n=this._wasmModule)==null?void 0:n.Mode.Bounce)?"bounce":r===((i=this._wasmModule)==null?void 0:i.Mode.ReverseBounce)?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){var r;return((r=this._dotLottieCore)==null?void 0:r.config().autoplay)??!1}get useFrameInterpolation(){var r;return((r=this._dotLottieCore)==null?void 0:r.config().useFrameInterpolation)??!1}get speed(){var r;return((r=this._dotLottieCore)==null?void 0:r.config().speed)??0}get isLoaded(){var r;return((r=this._dotLottieCore)==null?void 0:r.isLoaded())??!1}get isPlaying(){var r;return((r=this._dotLottieCore)==null?void 0:r.isPlaying())??!1}get isPaused(){var r;return((r=this._dotLottieCore)==null?void 0:r.isPaused())??!1}get isStopped(){var r;return((r=this._dotLottieCore)==null?void 0:r.isStopped())??!1}get currentFrame(){var r;return((r=this._dotLottieCore)==null?void 0:r.currentFrame())??0}get loopCount(){var r;return((r=this._dotLottieCore)==null?void 0:r.loopCount())??0}get totalFrames(){var r;return((r=this._dotLottieCore)==null?void 0:r.totalFrames())??0}get duration(){var r;return((r=this._dotLottieCore)==null?void 0:r.duration())??0}get segmentDuration(){var r;return((r=this._dotLottieCore)==null?void 0:r.segmentDuration())??0}get canvas(){return this._canvas}load(r){this._dotLottieCore===null||this._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:r.autoplay??!1,backgroundColor:0,loopAnimation:r.loop??!1,mode:A7(r.mode??"forward",this._wasmModule),segment:P7(r.segment??[],this._wasmModule),speed:r.speed??1,useFrameInterpolation:r.useFrameInterpolation??!0,marker:r.marker??"",layout:r.layout?{align:E7(r.layout.align,this._wasmModule),fit:T7(r.layout.fit,this._wasmModule)}:this._wasmModule.createDefaultLayout()}),r.data?this._loadFromData(r.data):r.src&&this._loadFromSrc(r.src),this.setBackgroun
93dColor(r.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let r=this._dotLottieCore.buffer(),e=new Uint8ClampedArray(r,0,this._canvas.width*this._canvas.height*4),t=null;return typeof ImageData>"u"?(t=this._context.createImageData(this._canvas.width,this._canvas.height),t.data.set(e)):t=new ImageData(e,this._canvas.width,this._canvas.height),this._context.putImageData(t,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let r=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(r)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let r=this._dotLottieCore.play();this._isFrozen=!1,r&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(r){this._dotLottieCore===null||r<0||r>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(r)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(r){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:r})}setBackgroundColor(r){this._dotLottieCore!==null&&(this._canvas instanceof HTMLCanvasElement&&(this._canvas.style.backgroundColor=r),this._backgroundColor=r)}setLoop(r){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:r})}setUseFrameInterpolation(r){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:r})}addEventListener(r,e){this._eventManager.addEventListener(r,e)}removeEventListener(r,e){this._eventManager.removeEventListener(r,e)}destroy(){var r;(r=this._dotLottieCore)==null||r.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){var r;if(M5&&this._canvas instanceof HTMLCanvasElement){let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();this._canvas.width=n*e,this._canvas.height=t*e}(r=this._dotLottieCore)!=null&&r.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(r,e){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:P7([r,e],this._wasmModule)})}setMode(r){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:A7(r,this._wasmModule)})}setRenderConfig(r){this._renderConfig=r}loadAnimation(r){this._dotLottieCore!==null&&(this._dotLottieCore.loadAnimation(r,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${r}`)}))}setMarker(r){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:r})}markers(){var e;let r=(e=this._dotLottieCore)==null?void 0:e.markers();if(r){let t=[];for(let n=0;n<r.size();n+=1){let i=r.get(n);t.push({name:i.name,time:i.time,duration:i.duration})}return t}return[]}loadTheme(r){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.loadTheme(r);return this._render(),e}loadThemeData(r){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.loadThemeData(r);return this._render(),e}setLayout(r){this._dotLottieCore===null||this._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),layout:{align:E7(r.align,this._wasmModule),fit:T7(r.fit,this._wasmModule)}})}setViewport(r,e,t,n){return this._dotLottieCore===null?!1:this._dotLottieCore.setViewport(r,e,t,n)}static setWasmUrl(r){H3.setWasmUrl(r)}},R5=eR(tR());function hR({children:r,className:e="",setCanvasRef:t,setContainerRef:n,style:i,...s}){const a={width:"100%",height:"100%",...i};return Ht.createElement("div",{ref:n,className:e,...!e&&{style:a}},Ht.createElement("canvas",{ref:t,style:{width:"100%",height:"100%"},...s},r))}var F5=()=>typeof window>"u",dR=r=>{const[e,t]=X.useState(null),n=X.useRef(null),i=X.useRef(r),s=X.useRef(null),a=X.useRef(null);n.current=e,i.current=r;const o=X.useCallback(f=>{var g,y;!((g=i.current)!=null&&g.playOnHover)||!((y=n.current)!=null&&y.isLoaded)||(f.type==="mouseenter"?n.current.play():f.type==="mouseleave"&&n.current.pause())},[]),l=X.useMemo(()=>
93{if(F5())return null;const f=(0,R5.default)(g=>{g.forEach(y=>{var v,_;y.isIntersecting?(v=n.current)==null||v.unfreeze():(_=n.current)==null||_.freeze()})},150);return new IntersectionObserver(f,{threshold:0})},[]),u=X.useMemo(()=>{if(F5())return null;const f=(0,R5.default)(()=>{var g,y;(g=i.current)!=null&&g.autoResizeCanvas&&((y=n.current)==null||y.resize())},150);return new ResizeObserver(f)},[]),h=X.useCallback(f=>{s.current=f},[]),c=X.useCallback(f=>{a.current=f},[]),d=X.useCallback(f=>Ht.createElement(hR,{setContainerRef:c,setCanvasRef:h,...f}),[h,c]);return X.useEffect(()=>{const f=s.current;let g=null;if(f){g=new cR({...i.current,canvas:f});const y=f.getBoundingClientRect();y.top>=0&&y.left>=0&&y.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&y.right<=(window.innerWidth||document.documentElement.clientWidth)?g.unfreeze():g.freeze(),l==null||l.observe(f),r!=null&&r.autoResizeCanvas&&(u==null||u.observe(f)),f.addEventListener("mouseenter",o),f.addEventListener("mouseleave",o),t(g)}return()=>{g==null||g.destroy(),t(null),u==null||u.disconnect(),l==null||l.disconnect(),f==null||f.removeEventListener("mouseenter",o),f==null||f.removeEventListener("mouseleave",o)}},[l,u,o]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.speed)=="number"&&r.speed!==n.current.speed&&n.current.setSpeed(r.speed)},[r==null?void 0:r.speed]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.mode)=="string"&&r.mode!==n.current.mode&&n.current.setMode(r.mode)},[r==null?void 0:r.mode]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.loop)=="boolean"&&r.loop!==n.current.loop&&n.current.setLoop(r.loop)},[r==null?void 0:r.loop]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.useFrameInterpolation)=="boolean"&&r.useFrameInterpolation!==n.current.useFrameInterpolation&&n.current.setUseFrameInterpolation(r.useFrameInterpolation)},[r==null?void 0:r.useFrameInterpolation]),X.useEffect(()=>{if(n.current&&typeof(r==null?void 0:r.segment)=="object"&&Array.isArray(r.segment)&&r.segment.length===2){const f=r.segment[0],g=r.segment[1];n.current.setSegment(f,g)}},[r==null?void 0:r.segment]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.backgroundColor)=="string"&&r.backgroundColor!==n.current.backgroundColor&&n.current.setBackgroundColor(r.backgroundColor)},[r==null?void 0:r.backgroundColor]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.renderConfig)=="object"&&n.current.setRenderConfig(r.renderConfig)},[JSON.stringify(r==null?void 0:r.renderConfig)]),X.useEffect(()=>{n.current&&(typeof(r==null?void 0:r.data)=="string"||(r==null?void 0:r.data)instanceof ArrayBuffer)&&n.current.load({data:r.data,...i.current||{}})},[r==null?void 0:r.data]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.src)=="string"&&n.current.load({src:r.src,...i.current||{}})},[r==null?void 0:r.src]),X.useEffect(()=>{n.current&&typeof(r==null?void 0:r.marker)=="string"&&n.current.setMarker(r.marker)},[r==null?void 0:r.marker]),X.useEffect(()=>{u&&(r!=null&&r.autoResizeCanvas&&s.current?u.observe(s.current):u.disconnect())},[r==null?void 0:r.autoResizeCanvas,u]),{dotLottie:e,setCanvasRef:h,setContainerRef:c,canvas:s.current,container:a.current,DotLottieComponent:d}},fR=typeof window<"u"?X.useLayoutEffect:X.useEffect;function pR(r){const e=X.useRef(r);return fR(()=>{e.current=r}),X.useCallback((...t)=>e.current(...t),[e])}var mR=({autoResizeCanvas:r=!0,autoplay:e,backgroundColor:t,data:n,dotLottieRefCallback:i,loop:s,marker:a,mode:o,playOnHover:l,renderConfig:u,segment:h,speed:c,src:d,useFrameInterpolation:f,...g})=>{const{DotLottieComponent:y,dotLottie:v}=dR({data:n,mode:o,speed:c,src:d,autoplay:e,loop:s,segment:h,renderConfig:u,backgroundColor:t,useFrameInterpolation:f,playOnHover:l,autoResizeCanvas:r,marker:a}),_=typeof i=="function"?pR(i):void 0;return Ht.useEffect(()=>{typeof _=="function"&&_(v)},[_,v]),Ht.createElement(y,{...g})};const gR="/lotties/logo.lottie",VA=({className:r="",onComplete:e=()=>{},autoplay:t=!1,onLoad:n=()=>{}})=>{const[i,s]=X.useState(null);X.useEffect(()=>{const o=()=>n(i);return i&&(i.addEventListener("complete",e),i.addEventListener("load",o)),()=>{i&&(i.removeEventListener("complete",e),i.removeEventListener("load",o))}},[i,e,n]);const a=o=>{s(o)};return B.jsx(B.Fragment,{children:B.jsx(mR,{src:gR,autoplay:t,dotLottieRefCallback:a,className:`${r}`})})},yR="TRANSITION_TO_LOADER",C_="TRANSITION_TO_WELCOME",Oh="TRANSITION_TO_TIME_FROM_WELCOME",tc="TRANSITION_TO_TIME_FROM_GENRE",k3="TRANSITION_TO_GENRE_FROM_TIME",rc="TRANSITION_TO_GENRE_FROM_REASON",I3="TRANSITION_TO_REASON_FROM_GENRE",kl="TRANSITION_TO_FORM_FROM_REASON",Qg="TRANSITION_TO_WAIT_FROM_FORM",M3="TRANSITION_TO_FINAL_FROM_WAIT",a0="TRANSITION_TO_TIME_FROM_FINAL",nc="STEP_LOADER",Ws="STEP_WELCOME",Wd="STEP_TIME",R4="STEP_GENRE",ic="STEP_REASON",GA="STEP_FORM",WA="STEP_WAIT",XA="STEP_FINAL",YA=X.createContext(),vR=({children:r})=>{const{setPixiViewStep:e,setPixiViewTransition:t}=xn(),[n,i]=X.useState(yR),[s,a]=X.useState(nc);return X.useEffect(()=>{e(s),t(n)},[n,s,e,t]),B.jsx(YA.Provider,{value:{transition:n,setTransition:i,step:s,setStep:a},children:r})},vs=()=>X.useContext(YA),ZA=X.createContext(),_R=({children:r})=>{const[e,t]=X.useState("Server"),{setPixiDeviceType:n}=xn();return X.useEffect(()=>{if(typeof window<"u"){const i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t(i?"Mobile":"Desktop")}},[]),X.useEffect(()=>{n(e)},[e,n]),B.jsx(ZA.Provider,{value:e,children:r})},w0=()=>X.useContext(ZA),F4=r=>X.createElement("svg",{width:9,height:16,viewBox:"0 0 9 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r},X.createElement("path",{d:"M1.5 7C2.05228 7 2.5 7.44772 2.5 8C2.5 8.55228 2.05228 9 1.5 9L1.5 7ZM0.292893 8.70711C-0.0976311 8.31658 -0.0976311 7.68342 0.292893 7.29289L6.65685 0.928932C7.04738 0.538408 7.68054 0.538408 8.07107 0.928932C8.46159 1.31946 8.46159 1.95262 8.07107 2.34315L2.41421 8L8.07107 13.6569C8.46159 14.0474 8.46159 14.6805 8.07107 15.0711C7.68054 15.4616 7.04738 15.4616 6.65685 15.0711L0.292893 8.70711ZM1.5 9H1L1 7H1.5L1.5 9Z"})),xR=({className:r=""})=>{const e=X.useRef(),{step:t,transition:n,setTransition:i}=vs();pt(()=>{ge.from([".icon",".label"],{autoAlpha:0,x:10,duration:1.5,ease:"expo.inOut",stagger:.05})},{scope:e}),pt(()=>{n!==tc&&n!==kl||ge.to([".icon",".label"],{autoAlpha:0,x:-10,duration:1.5,ease:"expo.inOut",stagger:.05})},{scope:e,dependencies:[n]});const s=()=>{gt.play("main-sfx","click_button"),t===R4&&i(tc),t===ic&&i(rc)};return B.jsx(B.Fragment,{children:B.jsxs("button",{className:`${r} flex justify-center items-center gap-2 text-white`,ref:e,onClick:s,children:[B.jsx(F4,{className:"icon"}),B.jsx("span",{className:"mt-[1px] label",children:"Regresar"})]})})},CR=({className:r="",bars:e=5})=>{const t=X.useRef(Array(e).fill()),n=X.useRef(),{muted:i,setMuted:s}=BA(),a=ge.utils.selector(n),o=X.useRef([]),l=()=>o.current.map(c=>{c.invalidate(),c.restart(!0)}),u=()=>
93o.current.map(c=>c.pause());X.useEffect(()=>{i?gt.muteAll():gt.unmuteAll()},[i]),pt(()=>{const c=a("span");c.map((d,f)=>{const g=ge.timeline({repeat:-1,delay:f*.2,paused:!0});g.to(d,{scaleY:"+=.3"}),g.to(d,{scaleY:"-=.3"}),o.current.push(g)}),ge.set(c,{scaleY:.1})},{scope:n}),pt(()=>{i?(u(),ge.to("span",{scaleY:.1,duration:.5,ease:"expo.inOut"})):ge.to("span",{scaleY:c=>GM(c,0,4,.25,1),duration:.5,ease:"expo.inOut",onComplete:()=>l()})},{scope:n,dependencies:[i]});const h=()=>{s(!i)};return B.jsx(B.Fragment,{children:B.jsx("button",{title:"Mute Control",className:`${r} flex justify-between w-[40px] h-[30px]`,ref:n,onClick:h,children:t.current.map((c,d)=>B.jsx("span",{className:"block w-[2px] h-full bg-white origin-center"},d))})})},wR=({children:r})=>{const e=X.useRef(),{selectorState:t}=xn(),{step:n,transition:i}=vs(),s=w0();return pt(()=>{s==="Mobile"&&(i===M3&&ge.to(".main__header",{y:-10,autoAlpha:0,duration:2,ease:"expo.inOut"}),i===a0&&ge.to(".main__header",{y:0,autoAlpha:1,duration:2,delay:1,ease:"expo.inOut"}))},{scope:e,dependencies:[i,s]}),B.jsxs(B.Fragment,{children:[B.jsxs("div",{ref:e,className:Lh("relative flex flex-col h-svh overflow-hidden",{"!h-[51svh]":n===nc&&i!==C_,"pointer-events-none":t.enabled,"!h-[210px]":s==="Mobile"&&n===ic&&!(i===rc||i===kl)}),children:[B.jsxs("header",{className:"main__header relative z-50 sm:fixed sm:top-0 sm:left-0 sm:w-full flex justify-center pt-6 min-h-[50px]",children:[s==="Mobile"&&(i===k3||n===R4||n===ic)&&B.jsx(xR,{className:"absolute left-6 z-10"}),B.jsx(VA,{className:Lh("w-[200px] sm:w-[300px] mt-[-2.5rem] sm:mt-[-3rem]",{invisible:n===nc||n===Ws}),autoplay:!0}),B.jsx(CR,{className:"absolute right-6 z-10"})]}),B.jsx("main",{className:"absolute top-0 left-0 w-full h-svh pb-16 sm:pb-0 overflow-hidden",children:r})]}),B.jsx("footer",{className:Lh("absolute bottom-0 left-0 w-full p-4 z-50 text-center text-white text-[10px] font-sans transition-all",{"bg-footer":i===kl}),children:B.jsx("p",{children:"SALUD ES BELLEZA | 153300202D0152"})})]})};var pc=(r=>(r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2",r))(pc||{}),qA=(r=>(r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS",r))(qA||{}),Kg=(r=>(r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL",r))(Kg||{}),et=(r=>(r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR",r))(et||{}),Os=(r=>(r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN",r))(Os||{}),He=(r=>(r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL",r))(He||{}),Nh=(r=>(r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",r))(Nh||{}),ot=(r=>(r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT",r))(ot||{}),Me=(r=>(r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT",r))(Me||{}),eo=(r=>(r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR",r))(eo||{}),no=(r=>(r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",r))(no||{}),Il=(r=>(r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL",r))(Il||{}),us=(r=>(r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",r))(us||{}),_u=(r=>(r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT",r))(_u||{}),w_=(r=>(r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL",r))(w_||{}),cs=(r=>(r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp",r))(cs||{}),Gr=(r=>(r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE",r[r.COLOR=4]="COLOR",r))(Gr||{}),Br=(r=>(r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH",r))(Br||{}),_a=(r=>(r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",r))(_a||{});const bR={createCanvas:(r,e)=>{const t=document.createElement("canvas");return t.width=r,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(r,e)=>fetch(r,e),parseXML:r=>new DOMParser().parseFromString(r,"text/xml")},Ye={ADAPTER:bR,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var D7=/iPhone/i,L5=/iPod/i,O5=/iPad/i,N5=/\biOS-universal(?:.+)Mac\b/i,H7=/\bAndroid(?:.+)Mobile\b/i,B5=/Android/i,Gc=/(?:SD4930UR|\bSilk(?:.
93+)Mobile\b)/i,j2=/Silk/i,za=/Windows Phone/i,U5=/\bWindows(?:.+)ARM\b/i,$5=/BlackBerry/i,z5=/BB10/i,j5=/Opera Mini/i,V5=/\b(CriOS|Chrome)(?:.+)Mobile/i,G5=/Mobile(?:.+)Firefox\b/i,W5=function(r){return typeof r<"u"&&r.platform==="MacIntel"&&typeof r.maxTouchPoints=="number"&&r.maxTouchPoints>1&&typeof MSStream>"u"};function SR(r){return function(e){return e.test(r)}}function X5(r){var e={userAgent:"",platform:"",maxTouchPoints:0};!r&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof r=="string"?e.userAgent=r:r&&r.userAgent&&(e={userAgent:r.userAgent,platform:r.platform,maxTouchPoints:r.maxTouchPoints||0});var t=e.userAgent,n=t.split("[FBAN");typeof n[1]<"u"&&(t=n[0]),n=t.split("Twitter"),typeof n[1]<"u"&&(t=n[0]);var i=SR(t),s={apple:{phone:i(D7)&&!i(za),ipod:i(L5),tablet:!i(D7)&&(i(O5)||W5(e))&&!i(za),universal:i(N5),device:(i(D7)||i(L5)||i(O5)||i(N5)||W5(e))&&!i(za)},amazon:{phone:i(Gc),tablet:!i(Gc)&&i(j2),device:i(Gc)||i(j2)},android:{phone:!i(za)&&i(Gc)||!i(za)&&i(H7),tablet:!i(za)&&!i(Gc)&&!i(H7)&&(i(j2)||i(B5)),device:!i(za)&&(i(Gc)||i(j2)||i(H7)||i(B5))||i(/\bokhttp\b/i)},windows:{phone:i(za),tablet:i(U5),device:i(za)||i(U5)},other:{blackberry:i($5),blackberry10:i(z5),opera:i(j5),firefox:i(G5),chrome:i(V5),device:i($5)||i(z5)||i(j5)||i(G5)||i(V5)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}const AR=X5.default??X5,xh=AR(globalThis.navigator);Ye.RETINA_PREFIX=/@([0-9\.]+)x/;Ye.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var QA={exports:{}};(function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(l,u,h){this.fn=l,this.context=u,this.once=h||!1}function s(l,u,h,c,d){if(typeof h!="function")throw new TypeError("The listener must be a function");var f=new i(h,c||l,d),g=t?t+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],f]:l._events[g].push(f):(l._events[g]=f,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],h,c;if(this._eventsCount===0)return u;for(c in h=this._events)e.call(h,c)&&u.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},o.prototype.listeners=function(u){var h=t?t+u:u,c=this._events[h];if(!c)return[];
vendor: 5,056 bytes, line 93
93if(c.fn)return[c.fn];for(var d=0,f=c.length,g=new Array(f);d<f;d++)g[d]=c[d].fn;return g},o.prototype.listenerCount=function(u){var h=t?t+u:u,c=this._events[h];return c?c.fn?1:c.length:0},o.prototype.emit=function(u,h,c,d,f,g){var y=t?t+u:u;if(!this._events[y])return!1;var v=this._events[y],_=arguments.length,x,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),_){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,h),!0;case 3:return v.fn.call(v.context,h,c),!0;case 4:return v.fn.call(v.context,h,c,d),!0;case 5:return v.fn.call(v.context,h,c,d,f),!0;case 6:return v.fn.call(v.context,h,c,d,f,g),!0}for(w=1,x=new Array(_-1);w<_;w++)x[w-1]=arguments[w];v.fn.apply(v.context,x)}else{var S=v.length,b;for(w=0;w<S;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),_){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,h);break;case 3:v[w].fn.call(v[w].context,h,c);break;case 4:v[w].fn.call(v[w].context,h,c,d);break;default:if(!x)for(b=1,x=new Array(_-1);b<_;b++)x[b-1]=arguments[b];v[w].fn.apply(v[w].context,x)}}return!0},o.prototype.on=function(u,h,c){return s(this,u,h,c,!1)},o.prototype.once=function(u,h,c){return s(this,u,h,c,!0)},o.prototype.removeListener=function(u,h,c,d){var f=t?t+u:u;if(!this._events[f])return this;if(!h)return a(this,f),this;var g=this._events[f];if(g.fn)g.fn===h&&(!d||g.once)&&(!c||g.context===c)&&a(this,f);else{for(var y=0,v=[],_=g.length;y<_;y++)(g[y].fn!==h||d&&!g[y].once||c&&g[y].context!==c)&&v.push(g[y]);v.length?this._events[f]=v.length===1?v[0]:v:a(this,f)}return this},o.prototype.removeAllListeners=function(u){var h;return u?(h=t?t+u:u,this._events[h]&&a(this,h)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,r.exports=o})(QA);var TR=QA.exports;const Af=cc(TR);var b_={exports:{}};b_.exports=L4;b_.exports.default=L4;function L4(r,e,t){t=t||2;var n=e&&e.length,i=n?e[0]*t:r.length,s=KA(r,0,i,t,!0),a=[];if(!s||s.next===s.prev)return a;var o,l,u,h,c,d,f;if(n&&(s=kR(r,e,s,t)),r.length>80*t){o=u=r[0],l=h=r[1];for(var g=t;g<i;g+=t)c=r[g],d=r[g+1],c<o&&(o=c),d<l&&(l=d),c>u&&(u=c),d>h&&(h=d);f=Math.max(u-o,h-l),f=f!==0?32767/f:0}return Xd(s,a,t,o,l,f,0),a}function KA(r,e,t,n,i){var s,a;if(i===ty(r,e,t,n)>0)for(s=e;s<t;s+=n)a=Y5(s,r[s],r[s+1],a);else for(s=t-n;s>=e;s-=n)a=Y5(s,r[s],r[s+1],a);return a&&O4(a,a.next)&&(Zd(a),a=a.next),a}function sc(r,e){if(!r)return r;e||(e=r);var t=r,n;do if(n=!1,!t.steiner&&(O4(t,t.next)||vr(t.prev,t,t.next)===0)){if(Zd(t),t=e=t.prev,t===t.next)break;n=!0}else t=t.next;while(n||t!==e);return e}function Xd(r,e,t,n,i,s,a){if(r){!a&&s&&LR(r,n,i,s);for(var o=r,l,u;r.prev!==r.next;){if(l=r.prev,u=r.next,s?PR(r,n,i,s):ER(r)){e.push(l.i/t|0),e.push(r.i/t|0),e.push(u.i/t|0),Zd(r),r=u.next,o=u.next;continue}if(r=u,r===o){a?a===1?(r=DR(sc(r),e,t),Xd(r,e,t,n,i,s,2)):a===2&&HR(r,e,t,n,i,s):Xd(sc(r),e,t,n,i,s,1);break}}}}function ER(r){var e=r.prev,t=r,n=r.next;if(vr(e,t,n)>=0)return!1;for(var i=e.x,s=t.x,a=n.x,o=e.y,l=t.y,u=n.y,h=i<s?i<a?i:a:s<a?s:a,c=o<l?o<u?o:u:l<u?l:u,d=i>s?i>a?i:a:s>a?s:a,f=o>l?o>u?o:u:l>u?l:u,g=n.next;g!==e;){if(g.x>=h&&g.x<=d&&g.y>=c&&g.y<=f&&Ch(i,o,s,l,a,u,g.x,g.y)&&vr(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function PR(r,e,t,n){var i=r.prev,s=r,a=r.next;if(vr(i,s,a)>=0)return!1;for(var o=i.x,l=s.x,u=a.x,h=i.y,c=s.y,d=a.y,f=o<l?o<u?o:u:l<u?l:u,g=h<c?h<d?h:d:c<d?c:d,y=o>l?o>u?o:u:l>u?l:u,v=h>c?h>d?h:d:c>d?c:d,_=Jg(f,g,e,t,n),x=Jg(y,v,e,t,n),w=r.prevZ,S=r.nextZ;w&&w.z>=_&&S&&S.z<=x;){if(w.x>=f&&w.x<=y&&w.y>=g&&w.y<=v&&w!==i&&w!==a&&Ch(o,h,l,c,u,d,w.x,w.y)&&vr(w.prev,w,w.next)>=0||(w=w.prevZ,S.x>=f&&S.x<=y&&S.y>=g&&S.y<=v&&S!==i&&S!==a&&Ch(o,h,l,c,u,d,S.x,S.y)&&vr(S.prev,S,S.next)>=0))return!1;S=S.nextZ}for(;w&&w.z>=_;){if(w.x>=f&&w.x<=y&&w.y>=g&&w.y<=v&&w!==i&&w!==a&&Ch(o,h,l,c,u,d,w.x,w.y)&&vr(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;S&&S.z<=x;){if(S.x>=f&&S.x<=y&&S.y>=g&&S.y<=v&&S!==i&&S!==a&&Ch(o,h,l,c,u,d,S.x,S.y)&&vr(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function DR(r,e,t){var n=r;do{var i=n.prev,s=n.next.next;!O4(i,s)&&JA(i,n,n.next,s)&&Yd(i,s)&&Yd(s,i)&&(e.push(i.i/t|0),e.push(n.i/t|0),e.push(s.i/t|0),Zd(n),Zd(n.next),n=r=s),n=n.next}while(n!==r);return sc(n)}function HR(r,e,t,n,i,s){var a=r;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&BR(a,o)){var l=eT(a,o);a=sc(a,a.next),l=sc(l,l.next),Xd(a,e,t,n,i,s,0),Xd(l,e,t,n,i,s,0);return}o=o.next}a=a.next}while(a!==r)}function kR(r,e,t,n){var i=[],s,a,o,l,u;for(s=0,a=e.length;s<a;s++)o=e[s]*n,l=s<a-1?e[s+1]*n:r.length,u=KA(r,o,l,n,!1),u===u.next&&(u.steiner=!0),i.push(NR(u));for(i.sort(IR),s=0;s<i.length;s++)t=MR(i[s],t);return t}function IR(r,e){return r.x-e.x}function MR(r,e){var t=RR(r,e);if(!t)return e;var n=eT(t,r);return sc(n,n.next),sc(t,t.next)}function RR(r,e){var t=e,n=r.x,i=r.y,s=-1/0,a;do{if(i<=t.y&&i>=t.next.y&&t.next.y!==t.y){var o=t.x+(i-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(o<=n&&o>s&&(s=o,a=t.x<t.next.x?t:t.next,o===n))return a}t=t.next}
vendor: 6,390 bytes, line 93
93while(t!==e);if(!a)return null;var l=a,u=a.x,h=a.y,c=1/0,d;t=a;do n>=t.x&&t.x>=u&&n!==t.x&&Ch(i<h?n:s,i,u,h,i<h?s:n,i,t.x,t.y)&&(d=Math.abs(i-t.y)/(n-t.x),Yd(t,r)&&(d<c||d===c&&(t.x>a.x||t.x===a.x&&FR(a,t)))&&(a=t,c=d)),t=t.next;while(t!==l);return a}function FR(r,e){return vr(r.prev,r,e.prev)<0&&vr(e.next,r,r.next)<0}function LR(r,e,t,n){var i=r;do i.z===0&&(i.z=Jg(i.x,i.y,e,t,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==r);i.prevZ.nextZ=null,i.prevZ=null,OR(i)}function OR(r){var e,t,n,i,s,a,o,l,u=1;do{for(t=r,r=null,s=null,a=0;t;){for(a++,n=t,o=0,e=0;e<u&&(o++,n=n.nextZ,!!n);e++);for(l=u;o>0||l>0&&n;)o!==0&&(l===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,o--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:r=i,i.prevZ=s,s=i;t=n}s.nextZ=null,u*=2}while(a>1);return r}function Jg(r,e,t,n,i){return r=(r-t)*i|0,e=(e-n)*i|0,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r|e<<1}function NR(r){var e=r,t=r;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==r);return t}function Ch(r,e,t,n,i,s,a,o){return(i-a)*(e-o)>=(r-a)*(s-o)&&(r-a)*(n-o)>=(t-a)*(e-o)&&(t-a)*(s-o)>=(i-a)*(n-o)}function BR(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!UR(r,e)&&(Yd(r,e)&&Yd(e,r)&&$R(r,e)&&(vr(r.prev,r,e.prev)||vr(r,e.prev,e))||O4(r,e)&&vr(r.prev,r,r.next)>0&&vr(e.prev,e,e.next)>0)}function vr(r,e,t){return(e.y-r.y)*(t.x-e.x)-(e.x-r.x)*(t.y-e.y)}function O4(r,e){return r.x===e.x&&r.y===e.y}function JA(r,e,t,n){var i=G2(vr(r,e,t)),s=G2(vr(r,e,n)),a=G2(vr(t,n,r)),o=G2(vr(t,n,e));return!!(i!==s&&a!==o||i===0&&V2(r,t,e)||s===0&&V2(r,n,e)||a===0&&V2(t,r,n)||o===0&&V2(t,e,n))}function V2(r,e,t){return e.x<=Math.max(r.x,t.x)&&e.x>=Math.min(r.x,t.x)&&e.y<=Math.max(r.y,t.y)&&e.y>=Math.min(r.y,t.y)}function G2(r){return r>0?1:r<0?-1:0}function UR(r,e){var t=r;do{if(t.i!==r.i&&t.next.i!==r.i&&t.i!==e.i&&t.next.i!==e.i&&JA(t,t.next,r,e))return!0;t=t.next}while(t!==r);return!1}function Yd(r,e){return vr(r.prev,r,r.next)<0?vr(r,e,r.next)>=0&&vr(r,r.prev,e)>=0:vr(r,e,r.prev)<0||vr(r,r.next,e)<0}function $R(r,e){var t=r,n=!1,i=(r.x+e.x)/2,s=(r.y+e.y)/2;do t.y>s!=t.next.y>s&&t.next.y!==t.y&&i<(t.next.x-t.x)*(s-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next;while(t!==r);return n}function eT(r,e){var t=new ey(r.i,r.x,r.y),n=new ey(e.i,e.x,e.y),i=r.next,s=e.prev;return r.next=e,e.prev=r,t.next=i,i.prev=t,n.next=t,t.prev=n,s.next=n,n.prev=s,n}function Y5(r,e,t,n){var i=new ey(r,e,t);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Zd(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function ey(r,e,t){this.i=r,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}L4.deviation=function(r,e,t,n){var i=e&&e.length,s=i?e[0]*t:r.length,a=Math.abs(ty(r,0,s,t));if(i)for(var o=0,l=e.length;o<l;o++){var u=e[o]*t,h=o<l-1?e[o+1]*t:r.length;a-=Math.abs(ty(r,u,h,t))}var c=0;for(o=0;o<n.length;o+=3){var d=n[o]*t,f=n[o+1]*t,g=n[o+2]*t;c+=Math.abs((r[d]-r[g])*(r[f+1]-r[d+1])-(r[d]-r[f])*(r[g+1]-r[d+1]))}return a===0&&c===0?0:Math.abs((c-a)/a)};function ty(r,e,t,n){for(var i=0,s=e,a=t-n;s<t;s+=n)i+=(r[a]-r[s])*(r[s+1]+r[a+1]),a=s;return i}L4.flatten=function(r){for(var e=r[0][0].length,t={vertices:[],holes:[],dimensions:e},n=0,i=0;i<r.length;i++){for(var s=0;s<r[i].length;s++)for(var a=0;a<e;a++)t.vertices.push(r[i][s][a]);i>0&&(n+=r[i-1].length,t.holes.push(n))}return t};var zR=b_.exports;const tT=cc(zR);var R3={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */R3.exports;(function(r,e){(function(t){var n=e&&!e.nodeType&&e,i=r&&!r.nodeType&&r,s=typeof fn=="object"&&fn;(s.global===s||s.window===s||s.self===s)&&(t=s);var a,o=2147483647,l=36,u=1,h=26,c=38,d=700,f=72,g=128,y="-",v=/^xn--/,_=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=l-u,b=Math.floor,E=String.fromCharCode,D;function P(G){throw new RangeError(w[G])}function I(G,J){for(var ee=G.length,ve=[];ee--;)ve[ee]=J(G[ee]);return ve}function R(G,J){var ee=G.split("@"),ve="";ee.length>1&&(ve=ee[0]+"@",G=ee[1]),G=G.replace(x,".");var _e=G.split("."),Oe=I(_e,J).join(".");return ve+Oe}function U(G){for(var J=[],ee=0,ve=G.length,_e,Oe;ee<ve;)_e=G.charCodeAt(ee++),_e>=55296&&_e<=56319&&ee<ve?(Oe=G.charCodeAt(ee++),(Oe&64512)==56320?J.push(((_e&1023)<<10)+(Oe&1023)+65536):(J.push(_e),ee--)):J.push(_e);return J}function N(G){return I(G,function(J){var ee="";return J>65535&&(J-=65536,ee+=E(J>>>10&1023|55296),J=56320|J&1023),ee+=E(J),ee}).join("")}function F(G){return G-48<10?G-22:G-65<26?G-65:G-97<26?G-97:l}function O(G,J){return G+22+75*(G<26)-((J!=0)<<5)}function V(G,J,ee){var ve=0;for(G=ee?b(G/d):G>>1,G+=b(G/J);G>S*h>>1;ve+=l)G=b(G/S);return b(ve+(S+1)*G/(G+c))}function q(G){var J=[],ee=G.length,ve,_e=0,Oe=g,Te=f,qe,$e,lt,We,Ze,st,Pe,rt,ut;for(qe=G.lastIndexOf(y),qe<0&&(qe=0),$e=0;$e<qe;++$e)G.charCodeAt($e)>=128&&P("not-basic"),J.push(G.charCodeAt($e));for(lt=qe>0?qe+1:0;lt<ee;){for(We=_e,Ze=1,st=l;lt>=ee&&P("invalid-input"),Pe=F(G.charCodeAt(lt++)),(Pe>=l||Pe>b((o-_e)/Ze))&&P("overflow"),_e+=Pe*Ze,rt=st<=Te?u:st>=Te+h?h:st-Te,!(Pe<rt);st+=l)ut=l-rt,Ze>b(o/ut)&&P("overflow"),Ze*=ut;ve=J.length+1,Te=V(_e-We,ve,We==0),b(_e/ve)>o-Oe&&P("overflow"),Oe+=b(_e/ve),_e%=ve,J.splice(_e++,0,Oe)}return N(J)}function Z(G){var J,ee,ve,_e,Oe,Te,qe,$e,lt,We,Ze,st=[],Pe,rt,ut,xt;for(G=U(G),Pe=G.length,J=g,ee=0,Oe=f,Te=0;Te<Pe;++Te)Ze=G[Te],Ze<128&&st.push(E(Ze));for(ve=_e=st.length,_e&&st.push(y);ve<Pe;){for(qe=o,Te=0;Te<Pe;++Te)Ze=G[Te],Ze>=J&&Ze<qe&&(qe=Ze);for(rt=ve+1,qe-J>b((o-ee)/rt)&&P("overflow"),ee+=(qe-J)*rt,J=qe,Te=0;Te<Pe;++Te)if(Ze=G[Te],Ze<J&&++ee>o&&P("overflow"),Ze==J){for($e=ee,lt=l;We=lt<=Oe?u:lt>=Oe+h?h:lt-Oe,!($e<We);lt+=l)xt=$e-We,ut=l-We,st.push(E(O(We+xt%ut,0))),$e=b(xt/ut);st.push(E(O($e,0))),Oe=V(ee,rt,ve==_e),ee=0,++ve}++ee,++J}return st.join("")}function j(G){return R(G,function(J){return v.test(J)?q(J.slice(4).toLowerCase()):J})}function Y(G){return R(G,function(J){return _.test(J)?"xn--"+Z(J):J})}if(a={version:"1.4.1",ucs2:{decode:U,encode:N},decode:q,encode:Z,toASCII:Y,toUnicode:j},n&&i)if(r.exports==n)i.exports=a;else for(D in a)a.hasOwnProperty(D)&&(n[D]=a[D]);
vendor: 45,501 bytes, lines 93-102
93else t.punycode=a})(fn)})(R3,R3.exports);var jR=R3.exports,VR=Error,GR=EvalError,WR=RangeError,XR=ReferenceError,rT=SyntaxError,Tf=TypeError,YR=URIError,ZR=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0},Z5=typeof Symbol<"u"&&Symbol,qR=ZR,QR=function(){return typeof Z5!="function"||typeof Symbol!="function"||typeof Z5("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qR()},k7={__proto__:null,foo:{}},KR=Object,JR=function(){return{__proto__:k7}.foo===k7.foo&&!(k7 instanceof KR)},eF="Function.prototype.bind called on incompatible ",tF=Object.prototype.toString,rF=Math.max,nF="[object Function]",q5=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},iF=function(e,t){for(var n=[],i=t,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},sF=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},aF=function(e){var t=this;if(typeof t!="function"||tF.apply(t)!==nF)throw new TypeError(eF+t);for(var n=iF(arguments,1),i,s=function(){if(this instanceof i){var h=t.apply(this,q5(n,arguments));return Object(h)===h?h:this}return t.apply(e,q5(n,arguments))},a=rF(0,t.length-n.length),o=[],l=0;l<a;l++)o[l]="$"+l;if(i=Function("binder","return function ("+sF(o,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var u=function(){};u.prototype=t.prototype,i.prototype=new u,u.prototype=null}return i},oF=aF,S_=Function.prototype.bind||oF,lF=Function.prototype.call,uF=Object.prototype.hasOwnProperty,cF=S_,hF=cF.call(lF,uF),Ct,dF=VR,fF=GR,pF=WR,mF=XR,o0=rT,Bh=Tf,gF=YR,nT=Function,I7=function(r){try{return nT('"use strict"; return ('+r+").constructor;")()}catch{}},Gu=Object.getOwnPropertyDescriptor;if(Gu)try{Gu({},"")}catch{Gu=null}var M7=function(){throw new Bh},yF=Gu?function(){try{return arguments.callee,M7}catch{try{return Gu(arguments,"callee").get}catch{return M7}}}():M7,Wc=QR(),vF=JR(),en=Object.getPrototypeOf||(vF?function(r){return r.__proto__}:null),th={},_F=typeof Uint8Array>"u"||!en?Ct:en(Uint8Array),Wu={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ct:ArrayBuffer,"%ArrayIteratorPrototype%":Wc&&en?en([][Symbol.iterator]()):Ct,"%AsyncFromSyncIteratorPrototype%":Ct,"%AsyncFunction%":th,"%AsyncGenerator%":th,"%AsyncGeneratorFunction%":th,"%AsyncIteratorPrototype%":th,"%Atomics%":typeof Atomics>"u"?Ct:Atomics,"%BigInt%":typeof BigInt>"u"?Ct:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dF,"%eval%":eval,"%EvalError%":fF,"%Float32Array%":typeof Float32Array>"u"?Ct:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ct:FinalizationRegistry,"%Function%":nT,"%GeneratorFunction%":th,"%Int8Array%":typeof Int8Array>"u"?Ct:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ct:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wc&&en?en(en([][Symbol.iterator]())):Ct,"%JSON%":typeof JSON=="object"?JSON:Ct,"%Map%":typeof Map>"u"?Ct:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wc||!en?Ct:en(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ct:Promise,"%Proxy%":typeof Proxy>"u"?Ct:Proxy,"%RangeError%":pF,"%ReferenceError%":mF,"%Reflect%":typeof Reflect>"u"?Ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ct:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wc||!en?Ct:en(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wc&&en?en(""[Symbol.iterator]()):Ct,"%Symbol%":Wc?Symbol:Ct,"%SyntaxError%":o0,"%ThrowTypeError%":yF,"%TypedArray%":_F,"%TypeError%":Bh,"%Uint8Array%":typeof Uint8Array>"u"?Ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ct:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ct:Uint32Array,"%URIError%":gF,"%WeakMap%":typeof WeakMap>"u"?Ct:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ct:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ct:WeakSet};if(en)try{null.error}catch(r){var xF=en(en(r));Wu["%Error.prototype%"]=xF}var CF=function r(e){var t;if(e==="%AsyncFunction%")t=I7("async function () {}");else if(e==="%GeneratorFunction%")t=I7("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=I7("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&en&&(t=en(i.prototype))}return Wu[e]=t,t},Q5={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ef=S_,F3=hF,wF=Ef.call(Function.call,Array.prototype.concat),bF=Ef.call(Function.apply,Array.prototype.splice),K5=Ef.call(Function.call,String.prototype.replace),L3=Ef.call(Function.call,String.prototype.slice),SF=Ef.call(Function.call,RegExp.prototype.exec),AF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,TF=/\\(\\)?/g,EF=function(e){var t=L3(e,0,1),n=L3(e,-1);if(t==="%"&&n!=="%")throw new o0("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new o0("invalid intrinsic syntax, expected opening `%`");var i=[];return K5(e,AF,function(s,a,o,l){i[i.length]=o?K5(l,TF,"$1"):a||s}),i},PF=function(e,t){var n=e,i;if(F3(Q5,n)&&(i=Q5[n],n="%"+i[0]+"%"),F3(Wu,n)){var s=Wu[n];if(s===th&&(s=CF(n)),typeof s>"u"&&!t)throw new Bh("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new o0("intrinsic "+e+" does not exist!")},b0=function(e,t){if(typeof e!="string"||e.length===0)throw new Bh("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Bh('"allowMissing" argument must be a boolean');if(SF(/^%?[^%]*%?$/,e)===null)throw new o0("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=EF(e),i=n.length>0?n[0]:"",s=PF("%"+i+"%",t),a=s.name,o=s.value,l=!1,u=s.alias;u&&(i=u[0],bF(n,wF([0,1],u)));for(var h=1,c=!0;h<n.length;h+=1){var d=n[h],f=L3(d,0,1),g=L3(d,-1);if((f==='"'||f==="'"||f==="`"||g==='"'||g==="'"||g==="`")&&f!==g)throw new o0("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(l=!0),i+="."+d,a="%"+i+"%",F3(Wu,a))o=Wu[a];else if(o!=null){if(!(d in o)){if(!t)throw new Bh("base intrinsic for "+e+" exists, but the property is not available.");return}if(Gu&&h+1>=n.length){var y=Gu(o,d);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[d]}else c=F3(o,d),o=o[d];c&&!l&&(Wu[a]=o)}}return o},iT={exports:{}},R7,J5;function A_(){if(J5)return R7;J5=1;var r=b0,e=r("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return R7=e,R7}var DF=b0,Lp=DF("%Object.getOwnPropertyDescriptor%",!0);if(Lp)try{Lp([],"length")}catch{Lp=null}var sT=Lp,e6=A_(),HF=rT,Xc=Tf,t6=sT,kF=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Xc("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Xc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Xc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Xc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Xc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Xc("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,l=!!t6&&t6(e,t);if(e6)e6(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:s===null&&l?l.writable:!s});else if(o||!i&&!s&&!a)e[t]=n;else throw new HF("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ry=A_(),aT=function(){return!!ry};aT.hasArrayLengthDefineBug=function(){if(!ry)return null;try{return ry([],"length",{value:1}).length!==1}catch{return!0}};var IF=aT,MF=b0,r6=kF,RF=IF(),n6=sT,i6=Tf,FF=MF("%Math.floor%"),LF=function(e,t){if(typeof e!="function")throw new i6("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||FF(t)!==t)throw new i6("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,s=!0;if("length"in e&&n6){var a=n6(e,"length");a&&!a.configurable&&(i=!1),a&&!a.writable&&(s=!1)}return(i||s||!n)&&(RF?r6(e,"length",t,!0,!0):r6(e,"length",t)),e};(function(r){var e=S_,t=b0,n=LF,i=Tf,s=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,s),l=A_(),u=t("%Math.max%");r.exports=function(d){if(typeof d!="function")throw new i("a function is required");var f=o(e,a,arguments);return n(f,1+u(0,d.length-(arguments.length-1)),!0)};var h=function(){return o(e,s,arguments)};l?l(r.exports,"apply",{value:h}):r.exports.apply=h})(iT);var OF=iT.exports,oT=b0,lT=OF,NF=lT(oT("String.prototype.indexOf")),BF=function(e,t){var n=oT(e,!!t);return typeof n=="function"&&NF(e,".prototype.")>-1?lT(n):n};const UF={},$F=Object.freeze(Object.defineProperty({__proto__:null,default:UF},Symbol.toStringTag,{value:"Module"})),zF=bb($F);var T_=typeof Map=="function"&&Map.prototype,F7=Object.getOwnPropertyDescriptor&&T_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,O3=T_&&F7&&typeof F7.get=="function"?F7.get:null,s6=T_&&Map.prototype.forEach,E_=typeof Set=="function"&&Set.prototype,L7=Object.getOwnPropertyDescriptor&&E_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,N3=E_&&L7&&typeof L7.get=="function"?L7.get:null,a6=E_&&Set.prototype.forEach,jF=typeof WeakMap=="function"&&WeakMap.prototype,fd=jF?WeakMap.prototype.has:null,VF=typeof WeakSet=="function"&&WeakSet.prototype,pd=VF?WeakSet.prototype.has:null,GF=typeof WeakRef=="function"&&WeakRef.prototype,o6=GF?WeakRef.prototype.deref:null,WF=Boolean.prototype.valueOf,XF=Object.prototype.toString,YF=Function.prototype.toString,ZF=String.prototype.match,P_=String.prototype.slice,hl=String.prototype.replace,qF=String.prototype.toUpperCase,l6=String.prototype.toLowerCase,uT=RegExp.prototype.test,u6=Array.prototype.concat,ua=Array.prototype.join,QF=Array.prototype.slice,c6=Math.floor,ny=typeof BigInt=="function"?BigInt.prototype.valueOf:null,O7=Object.getOwnPropertySymbols,iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,l0=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===l0||!0)?Symbol.toStringTag:null,cT=Object.prototype.propertyIsEnumerable,h6=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function d6(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||uT.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-c6(-r):c6(r);if(n!==r){var i=String(n),s=P_.call(e,i.length+1);return hl.call(i,t,"$&_")+"."+hl.call(hl.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hl.call(e,t,"$&_")}var sy=zF,f6=sy.custom,p6=dT(f6)?f6:null,KF=function r(e,t,n,i){var s=t||{};if(el(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(el(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=el(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(el(s,"indent")&&s.indent!==null&&s.indent!=="	"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(el(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return pT(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?d6(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?d6(e,u):u}var h=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return ay(e)?"[Array]":"[Object]";var c=gL(s,n);if(typeof i>"u")i=[];else if(fT(i,e)>=0)return"[Circular]";function d(F,O,V){if(O&&(i=QF.call(i),i.push(O)),V){var q={depth:s.depth};return el(s,"quoteStyle")&&(q.quoteStyle=s.quoteStyle),r(F,q,n+1,i)}return r(F,s,n+1,i)}if(typeof e=="function"&&!m6(e)){var f=oL(e),g=W2(e,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+ua.call(g,", ")+" }":"")}if(dT(e)){var y=l0?hl.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):iy.call(e);return typeof e=="object"&&!l0?T1(y):y}if(fL(e)){for(var v="<"+l6.call(String(e.nodeName)),_=e.attributes||[],x=0;x<_.length;x++)v+=" "+_[x].name+"="+hT(JF(_[x].value),"double",s);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+l6.call(String(e.nodeName))+">",v}if(ay(e)){if(e.length===0)return"[]";var w=W2(e,d);return c&&!mL(w)?"["+oy(w,c)+"]":"[ "+ua.call(w,", ")+" ]"}if(tL(e)){var S=W2(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!cT.call(e,"cause")?"{ ["+String(e)+"] "+ua.call(u6.call("[cause]: "+d(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ua.call(S,", ")+" }"}if(typeof e=="object"&&a){if(p6&&typeof e[p6]=="function"&&sy)return sy(e,{depth:h-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(lL(e)){var b=[];return s6&&s6.call(e,function(F,O){b.push(d(O,e,!0)+" => "+d(F,e))}),g6("Map",O3.call(e),b,c)}if(hL(e)){var E=[];return a6&&a6.call(e,function(F){E.push(d(F,e))}),g6("Set",N3.call(e),E,c)}if(uL(e))return N7("WeakMap");if(dL(e))return N7("WeakSet");if(cL(e))return N7("WeakRef");if(nL(e))return T1(d(Number(e)));if(sL(e))return T1(d(ny.call(e)));if(iL(e))return T1(WF.call(e));if(rL(e))return T1(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===fn)return"{ [object globalThis] }";if(!eL(e)&&!m6(e)){var D=W2(e,d),P=h6?h6(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",R=!P&&Fn&&Object(e)===e&&Fn in e?P_.call(jl(e),8,-1):I?"Object":"",U=P||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",N=U+(R||I?"["+ua.call(u6.call([],R||[],I||[]),": ")+"] ":"");return D.length===0?N+"{}":c?N+"{"+oy(D,c)+"}":N+"{ "+ua.call(D,", ")+" }"}return String(e)};function hT(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function JF(r){return hl.call(String(r),/"/g,"&quot;")}function ay(r){return jl(r)==="[object Array]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function eL(r){return jl(r)==="[object Date]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function m6(r){return jl(r)==="[object RegExp]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function tL(r){return jl(r)==="[object Error]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function rL(r){return jl(r)==="[object String]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function nL(r){return jl(r)==="[object Number]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function iL(r){return jl(r)==="[object Boolean]"&&(!Fn||!(typeof r=="object"&&Fn in r))}function dT(r){if(l0)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!iy)return!1;try{return iy.call(r),!0}catch{}return!1}function sL(r){if(!r||typeof r!="object"||!ny)return!1;try{return ny.call(r),!0}catch{}return!1}var aL=Object.prototype.hasOwnProperty||function(r){return r in this};function el(r,e){return aL.call(r,e)}function jl(r){return XF.call(r)}function oL(r){if(r.name)return r.name;var e=ZF.call(YF.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function fT(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function lL(r){if(!O3||!r||typeof r!="object")return!1;try{O3.call(r);try{N3.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function uL(r){if(!fd||!r||typeof r!="object")return!1;try{fd.call(r,fd);try{pd.call(r,pd)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function cL(r){if(!o6||!r||typeof r!="object")return!1;try{return o6.call(r),!0}catch{}return!1}function hL(r){if(!N3||!r||typeof r!="object")return!1;try{N3.call(r);try{O3.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function dL(r){if(!pd||!r||typeof r!="object")return!1;try{pd.call(r,pd);try{fd.call(r,fd)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function fL(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function pT(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return pT(P_.call(r,0,e.maxStringLength),e)+n}var i=hl.call(hl.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pL);return hT(i,"single",e)}function pL(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+qF.call(e.toString(16))}function T1(r){return"Object("+r+")"}function N7(r){return r+" { ? }"}function g6(r,e,t,n){var i=n?oy(t,n):ua.call(t,", ");return r+" ("+e+") {"+i+"}"}function mL(r){for(var e=0;e<r.length;e++)if(fT(r[e],`
94`)>=0)return!1;return!0}function gL(r,e){var t;if(r.indent==="	")t="	";else if(typeof r.indent=="number"&&r.indent>0)t=ua.call(Array(r.indent+1)," ");else return null;return{base:t,prev:ua.call(Array(e+1),t)}}function oy(r,e){if(r.length===0)return"";var t=`
95`+e.prev+e.base;return t+ua.call(r,","+t)+`
96`+e.prev}function W2(r,e){var t=ay(r),n=[];if(t){n.length=r.length;for(var i=0;i<r.length;i++)n[i]=el(r,i)?e(r[i],r):""}var s=typeof O7=="function"?O7(r):[],a;if(l0){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in r)el(r,l)&&(t&&String(Number(l))===l&&l<r.length||l0&&a["$"+l]instanceof Symbol||(uT.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof O7=="function")for(var u=0;u<s.length;u++)cT.call(r,s[u])&&n.push("["+e(s[u])+"]: "+e(r[s[u]],r));return n}var mT=b0,S0=BF,yL=KF,vL=Tf,X2=mT("%WeakMap%",!0),Y2=mT("%Map%",!0),_L=S0("WeakMap.prototype.get",!0),xL=S0("WeakMap.prototype.set",!0),CL=S0("WeakMap.prototype.has",!0),wL=S0("Map.prototype.get",!0),bL=S0("Map.prototype.set",!0),SL=S0("Map.prototype.has",!0),D_=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},AL=function(r,e){var t=D_(r,e);return t&&t.value},TL=function(r,e,t){var n=D_(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},EL=function(r,e){return!!D_(r,e)},PL=function(){var e,t,n,i={assert:function(s){if(!i.has(s))throw new vL("Side channel does not contain "+yL(s))},get:function(s){if(X2&&s&&(typeof s=="object"||typeof s=="function")){if(e)return _L(e,s)}else if(Y2){if(t)return wL(t,s)}else if(n)return AL(n,s)},has:function(s){if(X2&&s&&(typeof s=="object"||typeof s=="function")){if(e)return CL(e,s)}else if(Y2){if(t)return SL(t,s)}else if(n)return EL(n,s);return!1},set:function(s,a){X2&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new X2),xL(e,s,a)):Y2?(t||(t=new Y2),bL(t,s,a)):(n||(n={key:{},next:null}),TL(n,s,a))}};return i},DL=String.prototype.replace,HL=/%20/g,B7={RFC1738:"RFC1738",RFC3986:"RFC3986"},H_={default:B7.RFC3986,formatters:{RFC1738:function(r){return DL.call(r,HL,"+")},RFC3986:function(r){return String(r)}},RFC1738:B7.RFC1738,RFC3986:B7.RFC3986},kL=H_,U7=Object.prototype.hasOwnProperty,ku=Array.isArray,ta=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),IL=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(ku(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);t.obj[t.prop]=i}}},gT=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},ML=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(ku(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!U7.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var i=e;return ku(e)&&!ku(t)&&(i=gT(e,n)),ku(e)&&ku(t)?(t.forEach(function(s,a){if(U7.call(e,a)){var o=e[a];o&&typeof o=="object"&&s&&typeof s=="object"?e[a]=r(o,s,n):e.push(s)}else e[a]=s}),e):Object.keys(t).reduce(function(s,a){var o=t[a];return U7.call(s,a)?s[a]=r(s[a],o,n):s[a]=o,s},i)},RL=function(e,t){return Object.keys(t).reduce(function(n,i){return n[i]=t[i],n},e)},FL=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},$7=1024,LL=function(e,t,n,i,s){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var o="",l=0;l<a.length;l+=$7){for(var u=a.length>=$7?a.slice(l,l+$7):a,h=[],c=0;c<u.length;++c){var d=u.charCodeAt(c);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||s===kL.RFC1738&&(d===40||d===41)){h[h.length]=u.charAt(c);continue}if(d<128){h[h.length]=ta[d];continue}if(d<2048){h[h.length]=ta[192|d>>6]+ta[128|d&63];continue}if(d<55296||d>=57344){h[h.length]=ta[224|d>>12]+ta[128|d>>6&63]+ta[128|d&63];continue}c+=1,d=65536+((d&1023)<<10|u.charCodeAt(c)&1023),h[h.length]=ta[240|d>>18]+ta[128|d>>12&63]+ta[128|d>>6&63]+ta[128|d&63]}o+=h.join("")}return o},OL=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var s=t[i],a=s.obj[s.prop],o=Object.keys(a),l=0;l<o.length;++l){var u=o[l],h=a[u];typeof h=="object"&&h!==null&&n.indexOf(h)===-1&&(t.push({obj:a,prop:u}),n.push(h))}return IL(t),e},NL=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},BL=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},UL=function(e,t){return[].concat(e,t)},$L=function(e,t){if(ku(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},yT={arrayToObject:gT,assign:RL,combine:UL,compact:OL,decode:FL,encode:LL,isBuffer:BL,isRegExp:NL,maybeMap:$L,merge:ML},vT=PL,Op=yT,md=H_,zL=Object.prototype.hasOwnProperty,_T={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},la=Array.isArray,jL=Array.prototype.push,xT=function(r,e){jL.apply(r,la(e)?e:[e])},VL=Date.prototype.toISOString,y6=md.default,Vr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Op.encode,encodeValuesOnly:!1,format:y6,formatter:md.formatters[y6],indices:!1,serializeDate:function(e){return VL.call(e)},skipNulls:!1,strictNullHandling:!1},GL=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},z7={},WL=function r(e,t,n,i,s,a,o,l,u,h,c,d,f,g,y,v,_,x){for(var w=e,S=x,b=0,E=!1;(S=S.get(z7))!==void 0&&!E;){var D=S.get(e);if(b+=1,typeof D<"u"){if(D===b)throw new RangeError("Cyclic object value");E=!0}typeof S.get(z7)>"u"&&(b=0)}if(typeof h=="function"?w=h(t,w):w instanceof Date?w=f(w):n==="comma"&&la(w)&&(w=Op.maybeMap(w,function(G){return G instanceof Date?f(G):G})),w===null){if(a)return u&&!v?u(t,Vr.encoder,_,"key",g):t;w=""}if(GL(w)||Op.isBuffer(w)){if(u){var P=v?t:u(t,Vr.encoder,_,"key",g);return[y(P)+"="+y(u(w,Vr.encoder,_,"value",g))]}return[y(t)+"="+y(String(w))]}var I=[];if(typeof w>"u")return I;var R;if(n==="comma"&&la(w))v&&u&&(w=Op.maybeMap(w,u)),R=[{value:w.length>0?w.join(",")||null:void 0}];else if(la(h))R=h;else{var U=Object.keys(w);R=c?U.sort(c):U}var N=l?t.replace(/\./g,"%2E"):t,F=i&&la(w)&&w.length===1?N+"[]":N;if(s&&la(w)&&w.length===0)return F+"[]";for(var O=0;O<R.length;++O){var V=R[O],q=typeof V=="object"&&typeof V.value<"u"?V.value:w[V];if(!(o&&q===null)){var Z=d&&l?V.replace(/\./g,"%2E"):V,j=la(w)?typeof n=="function"?n(F,Z):F:F+(d?"."+Z:"["+Z+"]");x.set(e,b);var Y=vT();Y.set(z7,x),xT(I,r(q,j,n,i,s,a,o,l,n==="comma"&&v&&la(w)?null:u,h,c,d,f,g,y,v,_,Y))}}return I},XL=function(e){if(!e)return Vr;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||Vr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=md.default;if(typeof e.format<"u"){if(!zL.call(md.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=md.formatters[n],s=Vr.filter;(typeof e.filter=="function"||la(e.filter))&&(s=e.filter);var a;if(e.arrayFormat in _T?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=Vr.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:Vr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Vr.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Vr.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Vr.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Vr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Vr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Vr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Vr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Vr.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Vr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Vr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Vr.strictNullHandling}},YL=function(r,e){var t=r,n=XL(e),i,s;typeof n.filter=="function"?(s=n.filter,t=s("",t)):la(n.filter)&&(s=n.filter,i=s);var a=[];if(typeof t!="object"||t===null)return"";var o=_T[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;i||(i=Object.keys(t)),n.sort&&i.sort(n.sort);for(var u=vT(),h=0;h<i.length;++h){var c=i[h];n.skipNulls&&t[c]===null||xT(a,WL(t[c],c,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var d=a.join(n.delimiter),f=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),d.length>0?f+d:""},u0=yT,ly=Object.prototype.hasOwnProperty,ZL=Array.isArray,Er={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:u0.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},qL=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},CT=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},QL="utf8=%26%2310003%3B",KL="utf8=%E2%9C%93",JL=function(e,t){var n={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,s),o=-1,l,u=t.charset;if(t.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===KL?u="utf-8":a[l]===QL&&(u="iso-8859-1"),o=l,l=a.length);for(l=0;l<a.length;++l)if(l!==o){var h=a[l],c=h.indexOf("]="),d=c===-1?h.indexOf("="):c+1,f,g;d===-1?(f=t.decoder(h,Er.decoder,u,"key"),g=t.strictNullHandling?null:""):(f=t.decoder(h.slice(0,d),Er.decoder,u,"key"),g=u0.maybeMap(CT(h.slice(d+1),t),function(v){return t.decoder(v,Er.decoder,u,"value")})),g&&t.interpretNumericEntities&&u==="iso-8859-1"&&(g=qL(g)),h.indexOf("[]=")>-1&&(g=ZL(g)?[g]:g);var y=ly.call(n,f);y&&t.duplicates==="combine"?n[f]=u0.combine(n[f],g):(!y||t.duplicates==="last")&&(n[f]=g)}return n},eO=function(r,e,t,n){for(var i=n?e:CT(e,t),s=r.length-1;s>=0;--s){var a,o=r[s];if(o==="[]"&&t.parseArrays)a=t.allowEmptyArrays&&i===""?[]:[].concat(i);else{a=t.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=t.decodeDotInKeys?l.replace(/%2E/g,"."):l,h=parseInt(u,10);!t.parseArrays&&u===""?a={0:i}:!isNaN(h)&&o!==u&&String(h)===u&&h>=0&&t.parseArrays&&h<=t.arrayLimit?(a=[],a[h]=i):u!=="__proto__"&&(a[u]=i)}i=a}return i},tO=function(e,t,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(s),u=l?s.slice(0,l.index):s,h=[];if(u){if(!n.plainObjects&&ly.call(Object.prototype,u)&&!n.allowPrototypes)return;h.push(u)}for(var c=0;n.depth>0&&(l=o.exec(s))!==null&&c<n.depth;){if(c+=1,!n.plainObjects&&ly.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;h.push(l[1])}return l&&h.push("["+s.slice(l.index)+"]"),eO(h,t,n,i)}},rO=function(e){if(!e)return Er;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?Er.charset:e.charset,n=typeof e.duplicates>"u"?Er.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Er.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Er.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Er.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Er.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Er.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Er.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Er.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Er.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Er.decoder,delimiter:typeof e.delimiter=="string"||u0.isRegExp(e.delimiter)?e.delimiter:Er.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Er.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Er.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Er.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Er.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Er.strictNullHandling}},nO=function(r,e){var t=rO(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?JL(r,t):r,i=t.plainObjects?Object.create(null):{},s=Object.keys(n),a=0;a<s.length;++a){var o=s[a],l=tO(o,n[o],t,typeof r=="string");i=u0.merge(i,l,t)}return t.allowSparse===!0?i:u0.compact(i)},iO=YL,sO=nO,aO=H_,oO={formats:aO,parse:sO,stringify:iO},lO=jR;function io(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var uO=/^([a-z0-9.+-]+:)/i,cO=/:[0-9]*$/,hO=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,dO=["<",">",'"',"`"," ","\r",`
97`,"	"],fO=["{","}","|","\\","^","`"].concat(dO),uy=["'"].concat(fO),v6=["%","/","?",";","#"].concat(uy),_6=["/","?","#"],pO=255,x6=/^[+a-z0-9A-Z_-]{0,63}$/,mO=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gO={javascript:!0,"javascript:":!0},cy={javascript:!0,"javascript:":!0},Uh={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},hy=oO;function yO(r,e,t){if(r&&typeof r=="object"&&r instanceof io)return r;var n=new io;return n.parse(r,e,t),n}io.prototype.parse=function(r,e,t){if(typeof r!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof r);var n=r.indexOf("?"),i=n!==-1&&n<r.indexOf("#")?"?":"#",s=r.split(i),a=/\\/g;s[0]=s[0].replace(a,"/"),r=s.join(i);var o=r;if(o=o.trim(),!t&&r.split("#").length===1){var l=hO.exec(o);if(l)return this.path=o,this.href=o,this.pathname=l[1],l[2]?(this.search=l[2],e?this.query=hy.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=uO.exec(o);if(u){u=u[0];var h=u.toLowerCase();this.protocol=h,o=o.substr(u.length)}if(t||u||o.match(/^\/\/[^@/]+@[^@/]+/)){var c=o.substr(0,2)==="//";c&&!(u&&cy[u])&&(o=o.substr(2),this.slashes=!0)}if(!cy[u]&&(c||u&&!Uh[u])){for(var d=-1,f=0;f<_6.length;f++){var g=o.indexOf(_6[f]);g!==-1&&(d===-1||g<d)&&(d=g)}var y,v;d===-1?v=o.lastIndexOf("@"):v=o.lastIndexOf("@",d),v!==-1&&(y=o.slice(0,v),o=o.slice(v+1),this.auth=decodeURIComponent(y)),d=-1;for(var f=0;f<v6.length;f++){var g=o.indexOf(v6[f]);g!==-1&&(d===-1||g<d)&&(d=g)}d===-1&&(d=o.length),this.host=o.slice(0,d),o=o.slice(d),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var x=this.hostname.split(/\./),f=0,w=x.length;f<w;f++){var S=x[f];if(S&&!S.match(x6)){for(var b="",E=0,D=S.length;E<D;E++)S.charCodeAt(E)>127?b+="x":b+=S[E];if(!b.match(x6)){var P=x.slice(0,f),I=x.slice(f+1),R=S.match(mO);R&&(P.push(R[1]),I.unshift(R[2])),I.length&&(o="/"+I.join(".")+o),this.hostname=P.join(".");break}}}this.hostname.length>pO?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=lO.toASCII(this.hostname));var U=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+U,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!gO[h])for(var f=0,w=uy.length;f<w;f++){var F=uy[f];if(o.indexOf(F)!==-1){var O=encodeURIComponent(F);O===F&&(O=escape(F)),o=o.split(F).join(O)}}var V=o.indexOf("#");V!==-1&&(this.hash=o.substr(V),o=o.slice(0,V));var q=o.indexOf("?");if(q!==-1?(this.search=o.substr(q),this.query=o.substr(q+1),e&&(this.query=hy.parse(this.query)),o=o.slice(0,q)):e&&(this.search="",this.query={}),o&&(this.pathname=o),Uh[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",Z=this.search||"";this.path=U+Z}return this.href=this.format(),this};io.prototype.format=function(){var r=this.auth||"";r&&(r=encodeURIComponent(r),r=r.replace(/%3A/i,":"),r+="@");var e=this.protocol||"",t=this.pathname||"",n=this.hash||"",i=!1,s="";this.host?i=r+this.host:this.hostname&&(i=r+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(s=hy.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||s&&"?"+s||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Uh[e])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(o){return encodeURIComponent(o)}),a=a.replace("#","%23"),e+i+t+a+n};io.prototype.resolve=function(r){return this.resolveObject(yO(r,!1,!0)).format()};io.prototype.resolveObject=function(r){if(typeof r=="string"){var e=new io;e.parse(r,!1,!0),r=e}for(var t=new io,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];t[s]=this[s]}if(t.hash=r.hash,r.href==="")return t.href=t.format(),t;if(r.slashes&&!r.protocol){for(var a=Object.keys(r),o=0;o<a.length;o++){var l=a[o];l!=="protocol"&&(t[l]=r[l])}return Uh[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(r.protocol&&r.protocol!==t.protocol){if(!Uh[r.protocol]){for(var u=Object.keys(r),h=0;h<u.length;h++){var c=u[h];t[c]=r[c]}return t.href=t.format(),t}if(t.protocol=r.protocol,!r.host&&!cy[r.protocol]){for(var w=(r.pathname||"").split("/");w.length&&!(r.host=w.shift()););r.host||(r.host=""),r.hostname||(r.hostname=""),w[0]!==""&&w.unshift(""),w.length<2&&w.unshift(""),t.pathname=w.join("/")}else t.pathname=r.pathname;if(t.search=r.search,t.query=r.query,t.host=r.host||"",t.auth=r.auth,t.hostname=r.hostname||r.host,t.port=r.port,t.pathname||t.search){var d=t.pathname||"",f=t.search||"";t.path=d+f}return t.slashes=t.slashes||r.slashes,t.href=t.format(),t}var g=t.pathname&&t.pathname.charAt(0)==="/",y=r.host||r.pathname&&r.pathname.charAt(0)==="/",v=y||g||t.host&&r.pathname,_=v,x=t.pathname&&t.pathname.split("/")||[],w=r.pathname&&r.pathname.split("/")||[],S=t.protocol&&!Uh[t.protocol];if(S&&(t.hostname="",t.port=null,t.host&&(x[0]===""?x[0]=t.host:x.unshift(t.host)),t.host="",r.protocol&&(r.hostname=null,r.port=null,r.host&&(w[0]===""?w[0]=r.host:w.unshift(r.host)),r.host=null),v=v&&(w[0]===""||x[0]==="")),y)t.host=r.host||r.host===""?r.host:t.host,t.hostname=r.hostname||r.hostname===""?r.hostname:t.hostname,t.search=r.search,t.query=r.query,x=w;else if(w.length)x||(x=[]),x.pop(),x=x.concat(w),t.search=r.search,t.query=r.query;else if(r.search!=null){if(S){t.host=x.shift(),t.hostname=t.host;var b=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;b&&(t.auth=b.shift(),t.hostname=b.shift(),t.host=t.hostname)}return t.search=r.search,t.query=r.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!x.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var E=x.slice(-1)[0],D=(t.host||r.host||x.length>1)&&(E==="."||E==="..")||E==="",P=0,I=x.length;I>=0;I--)E=x[I],E==="."?x.splice(I,1):E===".."?(x.splice(I,1),P++):P&&(x.splice(I,1),P--);if(!v&&!_)for(;P--;P)x.unshift("..");v&&x[0]!==""&&(!x[0]||x[0].charAt(0)!=="/")&&x.unshift(""),D&&x.join("/").substr(-1)!=="/"&&x.push("");var R=x[0]===""||x[0]&&x[0].charAt(0)==="/";if(S){t.hostname=R?"":x.length?x.shift():"",t.host=t.hostname;var b=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;b&&(t.auth=b.shift(),t.hostname=b.shift(),t.host=t.hostname)}return v=v||t.host&&x.length,v&&!R&&x.unshift(""),x.length>0?t.pathname=x.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=r.auth||t.auth,t.slashes=t.slashes||r.slashes,t.href=t.format(),t};io.prototype.parseHost=function(){var r=this.host,e=cO.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};const C6={};function Dt(r,e,t=3){if(C6[e])return;let n=new Error().stack;typeof n>"u"?console.warn("PixiJS Deprecation Warning: ",`${e}
98Deprecated since v${r}`):(n=n.split(`
99`).splice(t).join(`
100`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
101Deprecated since v${r}`),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
102Deprecated since v${r}`),console.warn(n))),C6[e]=!0}function Ts(r){if(typeof r!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(r)}`)}function E1(r){return r.split("?")[0].split("#")[0]}function vO(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _O(r,e,t){return r.replace(new RegExp(vO(e),"g"),t)}function xO(r,e){let t="",n=0,i=-1,s=0,a=-1;for(let o=0;o<=r.length;++o){if(o<r.length)a=r.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",n=0):(t=t.slice(0,l),n=t.length-1-t.lastIndexOf("/")),i=o,s=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=o,s=0;continue}}}else t.length>0?t+=`/${r.slice(i+1,o)}`:t=r.slice(i+1,o),n=o-i-1;i=o,s=0}else a===46&&s!==-1?++s:s=-1}return t}const fs={toPosix(r){return _O(r,"\\","/")},isUrl(r){return/^https?:/.test(this.toPosix(r))},isDataUrl(r){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(r)},isBlobUrl(r){return r.startsWith("blob:")}
vendor: 5,896 bytes, line 102
102,hasProtocol(r){return/^[^/:]+:/.test(this.toPosix(r))},getProtocol(r){Ts(r),r=this.toPosix(r);const e=/^file:\/\/\//.exec(r);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(r);return t?t[0]:""},toAbsolute(r,e,t){if(Ts(r),this.isDataUrl(r)||this.isBlobUrl(r))return r;const n=E1(this.toPosix(e??Ye.ADAPTER.getBaseUrl())),i=E1(this.toPosix(t??this.rootname(n)));return r=this.toPosix(r),r.startsWith("/")?fs.join(i,r.slice(1)):this.isAbsolute(r)?r:this.join(n,r)},normalize(r){if(Ts(r),r.length===0)return".";if(this.isDataUrl(r)||this.isBlobUrl(r))return r;r=this.toPosix(r);let e="";const t=r.startsWith("/");this.hasProtocol(r)&&(e=this.rootname(r),r=r.slice(e.length));const n=r.endsWith("/");return r=xO(r),r.length>0&&n&&(r+="/"),t?`/${r}`:e+r},isAbsolute(r){return Ts(r),r=this.toPosix(r),this.hasProtocol(r)?!0:r.startsWith("/")},join(...r){if(r.length===0)return".";let e;for(let t=0;t<r.length;++t){const n=r[t];if(Ts(n),n.length>0)if(e===void 0)e=n;else{const i=r[t-1]??"";this.joinExtensions.includes(this.extname(i).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(r){if(Ts(r),r.length===0)return".";r=this.toPosix(r);let e=r.charCodeAt(0);const t=e===47;let n=-1,i=!0;const s=this.getProtocol(r),a=r;r=r.slice(s.length);for(let o=r.length-1;o>=1;--o)if(e=r.charCodeAt(o),e===47){if(!i){n=o;break}}else i=!1;return n===-1?t?"/":this.isUrl(a)?s+r:s:t&&n===1?"//":s+r.slice(0,n)},rootname(r){Ts(r),r=this.toPosix(r);let e="";if(r.startsWith("/")?e="/":e=this.getProtocol(r),this.isUrl(r)){const t=r.indexOf("/",e.length);t!==-1?e=r.slice(0,t):e=r,e.endsWith("/")||(e+="/")}return e},basename(r,e){Ts(r),e&&Ts(e),r=E1(this.toPosix(r));let t=0,n=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e.length===r.length&&e===r)return"";let a=e.length-1,o=-1;for(s=r.length-1;s>=0;--s){const l=r.charCodeAt(s);if(l===47){if(!i){t=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(n=s):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=r.length),r.slice(t,n)}for(s=r.length-1;s>=0;--s)if(r.charCodeAt(s)===47){if(!i){t=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":r.slice(t,n)},extname(r){Ts(r),r=E1(this.toPosix(r));let e=-1,t=0,n=-1,i=!0,s=0;for(let a=r.length-1;a>=0;--a){const o=r.charCodeAt(a);if(o===47){if(!i){t=a+1;break}continue}n===-1&&(i=!1,n=a+1),o===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||n===-1||s===0||s===1&&e===n-1&&e===t+1?"":r.slice(e,n)},parse(r){Ts(r);const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;r=E1(this.toPosix(r));let t=r.charCodeAt(0);const n=this.isAbsolute(r);let i;e.root=this.rootname(r),n||this.hasProtocol(r)?i=1:i=0;let s=-1,a=0,o=-1,l=!0,u=r.length-1,h=0;for(;u>=i;--u){if(t=r.charCodeAt(u),t===47){if(!l){a=u+1;break}continue}o===-1&&(l=!1,o=u+1),t===46?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||o===-1||h===0||h===1&&s===o-1&&s===a+1?o!==-1&&(a===0&&n?e.base=e.name=r.slice(1,o):e.base=e.name=r.slice(a,o)):(a===0&&n?(e.name=r.slice(1,s),e.base=r.slice(1,o)):(e.name=r.slice(a,s),e.base=r.slice(a,o)),e.ext=r.slice(s,o)),e.dir=this.dirname(r),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let j7;async function CO(){return j7??(j7=(async()=>{var s;const r=document.createElement("canvas").getContext("webgl");if(!r)return us.UNPACK;const e=await new Promise(a=>{const o=document.createElement("video");o.onloadeddata=()=>a(o),o.onerror=()=>a(null),o.autoplay=!1,o.crossOrigin="anonymous",o.preload="auto",o.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",o.load()});if(!e)return us.UNPACK;const t=r.createTexture();r.bindTexture(r.TEXTURE_2D,t);const n=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,n),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t,0),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e);const i=new Uint8Array(4);return r.readPixels(0,0,1,1,r.RGBA,r.UNSIGNED_BYTE,i),r.deleteFramebuffer(n),r.deleteTexture(t),(s=r.getExtension("WEBGL_lose_context"))==null||s.loseContext(),i[0]<=i[3]?us.PMA:us.UNPACK})()),j7}let V7;function wO(){return typeof V7>"u"&&(V7=function(){var e;const r={stencil:!0,failIfMajorPerformanceCaveat:Ye.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!Ye.ADAPTER.getWebGLRenderingContext())return!1;const t=Ye.ADAPTER.createCanvas();let n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r);const i=!!((e=n==null?void 0:n.getContextAttributes())!=null&&e.stencil);if(n){const s=n.getExtension("WEBGL_lose_context");s&&s.loseContext()}return n=null,i}catch{return!1}}()),V7}var bO={grad:.9,turn:360,rad:360/(2*Math.PI)},ja=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},rn=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t+0},hs=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r>e?r:e},wT=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},w6=function(r){return{r:hs(r.r,0,255),g:hs(r.g,0,255),b:hs(r.b,0,255),a:hs(r.a)}},G7=function(r){return{r:rn(r.r),g:rn(r.g),b:rn(r.b),a:rn(r.a,3)}},SO=/^#([0-9a-f]{3,8})$/i,Z2=function(r){var e=r.toString(16);return e.length<2?"0"+e:e}
vendor: 7,981 bytes, line 102
102,bT=function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=Math.max(e,t,n),a=s-Math.min(e,t,n),o=a?s===e?(t-n)/a:s===t?2+(n-e)/a:4+(e-t)/a:0;return{h:60*(o<0?o+6:o),s:s?a/s*100:0,v:s/255*100,a:i}},ST=function(r){var e=r.h,t=r.s,n=r.v,i=r.a;e=e/360*6,t/=100,n/=100;var s=Math.floor(e),a=n*(1-t),o=n*(1-(e-s)*t),l=n*(1-(1-e+s)*t),u=s%6;return{r:255*[n,o,a,a,l,n][u],g:255*[l,n,n,o,a,a][u],b:255*[a,a,l,n,n,o][u],a:i}},b6=function(r){return{h:wT(r.h),s:hs(r.s,0,100),l:hs(r.l,0,100),a:hs(r.a)}},S6=function(r){return{h:rn(r.h),s:rn(r.s),l:rn(r.l),a:rn(r.a,3)}},A6=function(r){return ST((t=(e=r).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},gd=function(r){return{h:(e=bT(r)).h,s:(i=(200-(t=e.s))*(n=e.v)/100)>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,t,n,i},AO=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,TO=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,EO=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,PO=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dy={string:[[function(r){var e=SO.exec(r);return e?(r=e[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?rn(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?rn(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var e=EO.exec(r)||PO.exec(r);return e?e[2]!==e[4]||e[4]!==e[6]?null:w6({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(r){var e=AO.exec(r)||TO.exec(r);if(!e)return null;var t,n,i=b6({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(bO[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return A6(i)},"hsl"]],object:[[function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=i===void 0?1:i;return ja(e)&&ja(t)&&ja(n)?w6({r:Number(e),g:Number(t),b:Number(n),a:Number(s)}):null},"rgb"],[function(r){var e=r.h,t=r.s,n=r.l,i=r.a,s=i===void 0?1:i;if(!ja(e)||!ja(t)||!ja(n))return null;var a=b6({h:Number(e),s:Number(t),l:Number(n),a:Number(s)});return A6(a)},"hsl"],[function(r){var e=r.h,t=r.s,n=r.v,i=r.a,s=i===void 0?1:i;if(!ja(e)||!ja(t)||!ja(n))return null;var a=function(o){return{h:wT(o.h),s:hs(o.s,0,100),v:hs(o.v,0,100),a:hs(o.a)}}({h:Number(e),s:Number(t),v:Number(n),a:Number(s)});return ST(a)},"hsv"]]},T6=function(r,e){for(var t=0;t<e.length;t++){var n=e[t][0](r);if(n)return[n,e[t][1]]}return[null,void 0]},DO=function(r){return typeof r=="string"?T6(r.trim(),dy.string):typeof r=="object"&&r!==null?T6(r,dy.object):[null,void 0]},W7=function(r,e){var t=gd(r);return{h:t.h,s:hs(t.s+100*e,0,100),l:t.l,a:t.a}},X7=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},E6=function(r,e){var t=gd(r);return{h:t.h,s:t.s,l:hs(t.l+100*e,0,100),a:t.a}},fy=function(){function r(e){this.parsed=DO(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return rn(X7(this.rgba),2)},r.prototype.isDark=function(){return X7(this.rgba)<.5},r.prototype.isLight=function(){return X7(this.rgba)>=.5},r.prototype.toHex=function(){return e=G7(this.rgba),t=e.r,n=e.g,i=e.b,a=(s=e.a)<1?Z2(rn(255*s)):"","#"+Z2(t)+Z2(n)+Z2(i)+a;var e,t,n,i,s,a},r.prototype.toRgb=function(){return G7(this.rgba)},r.prototype.toRgbString=function(){return e=G7(this.rgba),t=e.r,n=e.g,i=e.b,(s=e.a)<1?"rgba("+t+", "+n+", "+i+", "+s+")":"rgb("+t+", "+n+", "+i+")";var e,t,n,i,s},r.prototype.toHsl=function(){return S6(gd(this.rgba))},r.prototype.toHslString=function(){return e=S6(gd(this.rgba)),t=e.h,n=e.s,i=e.l,(s=e.a)<1?"hsla("+t+", "+n+"%, "+i+"%, "+s+")":"hsl("+t+", "+n+"%, "+i+"%)";var e,t,n,i,s},r.prototype.toHsv=function(){return e=bT(this.rgba),{h:rn(e.h),s:rn(e.s),v:rn(e.v),a:rn(e.a,3)};var e},r.prototype.invert=function(){return Hs({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},r.prototype.saturate=function(e){return e===void 0&&(e=.1),Hs(W7(this.rgba,e))},r.prototype.desaturate=function(e){return e===void 0&&(e=.1),Hs(W7(this.rgba,-e))},r.prototype.grayscale=function(){return Hs(W7(this.rgba,-1))},r.prototype.lighten=function(e){return e===void 0&&(e=.1),Hs(E6(this.rgba,e))},r.prototype.darken=function(e){return e===void 0&&(e=.1),Hs(E6(this.rgba,-e))},r.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},r.prototype.alpha=function(e){return typeof e=="number"?Hs({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):rn(this.rgba.a,3);var t},r.prototype.hue=function(e){var t=gd(this.rgba);return typeof e=="number"?Hs({h:e,s:t.s,l:t.l,a:t.a}):rn(t.h)},r.prototype.isEqual=function(e){return this.toHex()===Hs(e).toHex()},r}(),Hs=function(r){return r instanceof fy?r:new fy(r)},P6=[],AT=function(r){r.forEach(function(e){P6.indexOf(e)<0&&(e(fy,dy),P6.push(e))})};function TT(r,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",s
vendor: 37,606 bytes, lines 102-118
102andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in t)n[t[i]]=i;var s={};r.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,l,u=n[this.toHex()];if(u)return u;if(a!=null&&a.closest){var h=this.toRgb(),c=1/0,d="black";if(!s.length)for(var f in t)s[f]=new r(t[f]).toRgb();for(var g in t){var y=(o=h,l=s[g],Math.pow(o.r-l.r,2)+Math.pow(o.g-l.g,2)+Math.pow(o.b-l.b,2));y<c&&(c=y,d=g)}return d}},e.string.push([function(a){var o=a.toLowerCase(),l=o==="transparent"?"#0000":t[o];return l?new r(l).toRgb():null},"name"])}AT([TT]);const rh=class Np{constructor(e=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=e}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(e){return this.value=e,this}set value(e){if(e instanceof Np)this._value=this.cloneSource(e._value),this._int=e._int,this._components.set(e._components);else{if(e===null)throw new Error("Cannot set PIXI.Color#value to null");(this._value===null||!this.isSourceEqual(this._value,e))&&(this.normalize(e),this._value=this.cloneSource(e))}}get value(){return this._value}cloneSource(e){return typeof e=="string"||typeof e=="number"||e instanceof Number||e===null?e:Array.isArray(e)||ArrayBuffer.isView(e)?e.slice(0):typeof e=="object"&&e!==null?{...e}:e}isSourceEqual(e,t){const n=typeof e;if(n!==typeof t)return!1;if(n==="number"||n==="string"||e instanceof Number)return e===t;if(Array.isArray(e)&&Array.isArray(t)||ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return e.length!==t.length?!1:e.every((i,s)=>i===t[s]);if(e!==null&&t!==null){const i=Object.keys(e),s=Object.keys(t);return i.length!==s.length?!1:i.every(a=>e[a]===t[a])}return e===t}toRgba(){const[e,t,n,i]=this._components;return{r:e,g:t,b:n,a:i}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,i]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(i*255),e}toRgbArray(e){e=e??[];const[t,n,i]=this._components;return e[0]=t,e[1]=n,e[2]=i,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,i,s]=Np.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=i,this._components[3]*=s,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,i=this._int>>8&255,s=this._int&255;return t&&(n=n*e+.5|0,i=i*e+.5|0,s=s*e+.5|0),(e*255<<24)+(n<<16)+(i<<8)+s}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const e=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-e.length)+e}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,i]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(i*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,i,s]=this._components;return e[0]=t,e[1]=n,e[2]=i,e[3]=s,e}normalize(e){let t,n,i,s;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const a=e;t=(a>>16&255)/255,n=(a>>8&255)/255,i=(a&255)/255,s=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,i,s=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,i,s=255]=e,t/=255,n/=255,i/=255,s/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const o=Np.HEX_PATTERN.exec(e);o&&(e=`#${o[2]}`)}const a=Hs(e);a.isValid()&&({r:t,g:n,b:i,a:s}=a.rgba,t/=255,n/=255,i/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=i,this._components[3]=s,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((i,s)=>{e[s]=Math.min(Math.max(i,t),n)}),e)}};rh.shared=new rh,rh.temp=new rh,rh.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let wr=rh;function HO(){const r=[],e=[];for(let n=0;n<32;n++)r[n]=n,e[n]=n;r[et.NORMAL_NPM]=et.NORMAL,r[et.ADD_NPM]=et.ADD,r[et.SCREEN_NPM]=et.SCREEN,e[et.NORMAL]=et.NORMAL_NPM,e[et.ADD]=et.ADD_NPM,e[et.SCREEN]=et.SCREEN_NPM;const t=[];return t.push(e),t.push(r),t}const ET=HO();function PT(r,e){return ET[e?1:0][r]}function kO(r,e=null){const t=r*6;if(e=e||new Uint16Array(t),e.length!==t)throw new Error(`Out buffer length is incorrect, got ${e.length} and expected ${t}`);for(let n=0,i=0;n<t;n+=6,i+=4)e[n+0]=i+0,e[n+1]=i+1,e[n+2]=i+2,e[n+3]=i+0,e[n+4]=i+2,e[n+5]=i+3;return e}function DT(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function B3(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function D6(r){return!(r&r-1)&&!!r}function H6(r){let e=(r>65535?1:0)<<4;r>>>=e;let t=(r>255?1:0)<<3;return r>>>=t,e|=t,t=(r>15?1:0)<<2,r>>>=t,e|=t,t=(r>3?1:0)<<1,r>>>=t,e|=t,e|r>>1}function yd(r,e,t){const n=r.length;let i;if(e>=n||t===0)return;t=e+t>n?n-e:t;const s=n-t;for(i=e;i<s;++i)r[i]=r[i+t];r.length=s}function wh(r){return r===0?0:r<0?-1:1}let IO=0;function qd(){return++IO}const py=class{constructor(r,e,t,n){this.left=r,this.top=e,this.right=t,this.bottom=n}get width(){return this.right-this.left}get height(){return this.bottom-this.top}isEmpty(){return this.left===this.right||this.top===this.bottom}};py.EMPTY=new py(0,0,0,0);let k6=py;const I6={},ra=Object.create(null),Xo=Object.create(null);function M6(r,e,t){for(let n=0,i=4*t*e;n<e;++n,i+=4)if(r[i+3]!==0)return!1;return!0}function R6(r,e,t,n,i){const s=4*e;for(let a=n,o=n*s+4*t;a<=i;++a,o+=s)if(r[o+3]!==0)return!1;return!0}function MO(r){const{width:e,height:t}=r,n=r.getContext("2d",{willReadFrequently:!0});if(n===null)throw new TypeError("Failed to get canvas 2D context");const i=n.getImageData(0,0,e,t).data;let s=0,a=0,o=e-1,l=t-1;for(;a<t&&M6(i,e,a);)++a;if(a===t)return k6.EMPTY;for(;M6(i,e,l);)--l;for(;R6(i,e,s,a,l);)++s;for(;R6(i,e,o,a,l);)--o;return++o,++l,new k6(s,a,o,l)}function RO(r){const e=MO(r),{width:t,height:n}=e;let i=null;if(!e.isEmpty()){const s=r.getContext("2d");if(s===null)throw new TypeError("Failed to get canvas 2D context");i=s.getImageData(e.left,e.top,t,n)}return{width:t,height:n,data:i}}function FO(r,e=globalThis.location){if(r.startsWith("data:"))return"";e=e||globalThis.location;const t=new URL(r,document.baseURI);return t.hostname!==e.hostname||t.port!==e.port||t.protocol!==e.protocol?"anonymous":""}function c0(r,e=1){var n;const t=(n=Ye.RETINA_PREFIX)==null?void 0:n.exec(r);return t?parseFloat(t[1]):e}var ze=(r=>(r.Renderer="renderer",r.Application="application",r.RendererSystem="renderer-webgl-system",r.RendererPlugin="renderer-webgl-plugin",r.CanvasRendererSystem="renderer-canvas-system",r.CanvasRendererPlugin="renderer-canvas-plugin",r.Asset="asset",r.LoadParser="load-parser",r.ResolveParser="resolve-parser",r.CacheParser="cache-parser",r.DetectionParser="detection-parser",r))(ze||{});const my=r=>{if(typeof r=="function"||typeof r=="object"&&r.extension){if(!r.extension)throw new Error("Extension class must have an extension object");r={...typeof r.extension!="object"?{type:r.extension}:r.extension,ref:r}}if(typeof r=="object")r={...r};else throw new Error("Invalid extension type");return typeof r.type=="string"&&(r.type=[r.type]),r},F6=(r,e)=>my(r).priority??e,Je={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...r){return r.map(my).forEach(e=>{e.type.forEach(t=>{var n,i;return(i=(n=this._removeHandlers)[t])==null?void 0:i.call(n,e)})}),this},add(...r){return r.map(my).forEach(e=>{e.type.forEach(t=>{var s,a;const n=this._addHandlers,i=this._queue;n[t]?(s=n[t])==null||s.call(n,e):(i[t]=i[t]||[],(a=i[t])==null||a.push(e))})}),this},handle(r,e,t){var a;const n=this._addHandlers,i=this._removeHandlers;if(n[r]||i[r])throw new Error(`Extension type ${r} already has a handler`);n[r]=e,i[r]=t;const s=this._queue;return s[r]&&((a=s[r])==null||a.forEach(o=>e(o)),delete s[r]),this},handleByMap(r,e){return this.handle(r,t=>{t.name&&(e[t.name]=t.ref)},t=>{t.name&&delete e[t.name]})},handleByList(r,e,t=-1){return this.handle(r,n=>{e.includes(n.ref)||(e.push(n.ref),e.sort((i,s)=>F6(s,t)-F6(i,t)))},n=>{const i=e.indexOf(n.ref);i!==-1&&e.splice(i,1)})}};let LO=class{constructor(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${e} isn't a valid view type`)}}};const OO=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
103`);function NO(r){let e="";for(let t=0;t<r;++t)t>0&&(e+=`
104else `),t<r-1&&(e+=`if(test == ${t}.0){}`);return e}function BO(r,e){if(r===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const n=OO.replace(/%forloop%/gi,NO(r));if(e.shaderSource(t,n),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))r=r/2|0;else break}return r}const Y7=0,Z7=1,q7=2,Q7=3,K7=4,J7=5;class Da{constructor(){this.data=0,this.blendMode=et.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Y7)}set blend(e){!!(this.data&1<<Y7)!==e&&(this.data^=1<<Y7)}get offsets(){return!!(this.data&1<<Z7)}set offsets(e){!!(this.data&1<<Z7)!==e&&(this.data^=1<<Z7)}get culling(){return!!(this.data&1<<q7)}set culling(e){!!(this.data&1<<q7)!==e&&(this.data^=1<<q7)}get depthTest(){return!!(this.data&1<<Q7)}set depthTest(e){!!(this.data&1<<Q7)!==e&&(this.data^=1<<Q7)}get depthMask(){return!!(this.data&1<<J7)}set depthMask(e){!!(this.data&1<<J7)!==e&&(this.data^=1<<J7)}get clockwiseFrontFace(){return!!(this.data&1<<K7)}set clockwiseFrontFace(e){!!(this.data&1<<K7)!==e&&(this.data^=1<<K7)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==et.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new Da;return e.depthTest=!1,e.blend=!0,e}}Da.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const gy=[];function HT(r,e){if(!r)return null;let t="";if(typeof r=="string"){const n=/\.(\w{3,4})(?:$|\?|#)/i.exec(r);n&&(t=n[1].toLowerCase())}for(let n=gy.length-1;n>=0;--n){const i=gy[n];if(i.test&&i.test(r,t))return new i(r,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class zs{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,n,i,s,a,o,l){if(arguments.length>8)throw new Error("max arguments reached");const{name:u,items:h}=this;this._aliasCount++;for(let c=0,d=h.length;c<d;c++)h[c][u](e,t,n,i,s,a,o,l);return h===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(zs.prototype,{dispatch:{value:zs.prototype.emit},run:{value:zs.prototype.emit}});class Qd{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new zs("setRealSize"),this.onUpdate=new zs("update"),this.onError=new zs("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(e,t,n){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(e,t){return!1}}class kT extends Qd{constructor(e,t){const{width:n,height:i}=t||{};if(!n||!i)throw new Error("BufferResource width or height invalid");super(n,i),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,n){const i=e.gl;i.pixelStorei(i.UNPACK_ALIGNMENT,this.unpackAlignment),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===us.UNPACK);const s=t.realWidth,a=t.realHeight;return n.width===s&&n.height===a?i.texSubImage2D(t.target,0,0,0,s,a,t.format,n.type,this.data):(n.width=s,n.height=a,i.texImage2D(t.target,0,n.internalFormat,s,a,0,t.format,n.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const UO={scaleMode:eo.NEAREST,alphaMode:us.NPM},yy=class nh extends Af{constructor(e=null,t=null){super(),t=Object.assign({},nh.defaultOptions,t);const{alphaMode:n,mipmap:i,anisotropicLevel:s,scaleMode:a,width:o,height:l,wrapMode:u,format:h,type:c,target:d,resolution:f,resourceOptions:g}=t;e&&!(e instanceof Qd)&&(e=HT(e,g),e.internal=!0),this.resolution=f||Ye.RESOLUTION,this.width=Math.round((o||0)*this.resolution)/this.resolution,this.height=Math.round((l||0)*this.resolution)/this.resolution,this._mipmap=i,this.anisotropicLevel=s,this._wrapMode=u,this._scaleMode=a,this.format=h,this.type=c,this.target=d,this.alphaMode=n,this.uid=qd(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=o>0&&l>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=D6(this.realWidth)&&D6(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Xo[this.cacheId],delete ra[this.cacheId],this.cacheId=null),this.valid=!1,this.dispose(),nh.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=Ye.STRICT_TEXTURE_CACHE){const i=typeof e=="string";let s=null;if(i)s=e;else{if(!e._pixiId){const o=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${o}_${qd()}`}s=e._pixiId}let a=Xo[s];if(i&&n&&!a)throw new Error(`The cacheId "${s}" does not exist in BaseTextureCache.`);return a||(a=new nh(e,t),a.cacheId=s,nh.addToCache(a,s)),a}static fromBuffer(e,t,n,i){e=e||new Float32Array(t*n*4);const s=new kT(e,{width:t,height:n,...i==null?void 0:i.resourceOptions});let a,o;return e instanceof Float32Array?(a=He.RGBA,o=ot.FLOAT):e instanceof Int32Array?(a=He.RGBA_INTEGER,o=ot.INT):e instanceof Uint32Array?(a=He.RGBA_INTEGER,o=ot.UNSIGNED_INT):e instanceof Int16Array?(a=He.RGBA_INTEGER,o=ot.SHORT):e instanceof Uint16Array?(a=He.RGBA_INTEGER,o=ot.UNSIGNED_SHORT):e instanceof Int8Array?(a=He.RGBA,o=ot.BYTE):(a=He.RGBA,o=ot.UNSIGNED_BYTE),s.internal=!0,new nh(s,Object.assign({},UO,{type:o,format:a},i))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),Xo[t]&&Xo[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),Xo[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=Xo[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete Xo[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t<e.textureCacheIds.length;++t)delete Xo[e.textureCacheIds[t]];return e.textureCacheIds.length=0,e}return null}};yy.defaultOptions={mipmap:Il.POW2,anisotropicLevel:0,scaleMode:eo.LINEAR,wrapMode:no.CLAMP,alphaMode:us.UNPACK,target:Nh.TEXTURE_2D,format:He.RGBA,type:ot.UNSIGNED_BYTE},yy._globalBatch=0;let bt=yy;class vy{constructor(){this.texArray=null,this.blend=0,this.type=Os.TRIANGLES,this.start=0,this.size=0,this.data=null}}let $O=0,Xr=class IT{constructor(e,t=!0,n=!1){this.data=e||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=n,this.static=t,this.id=$O++,this.disposeRunner=new zs("disposeBuffer")}update(e){e instanceof Array&&(e=new Float32Array(e)),this.data=e||this.data,this._updateID++}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.data=null}set index(e){this.type=e?_a.ELEMENT_ARRAY_BUFFER:_a.ARRAY_BUFFER}get index(){return this.type===_a.ELEMENT_ARRAY_BUFFER}static from(e){return e instanceof Array&&(e=new Float32Array(e)),new IT(e)}};class U3{constructor(e,t=0,n=!1,i=ot.FLOAT,s,a,o,l=1){this.buffer=e,this.size=t,this.normalized=n,this.type=i,this.stride=s,this.start=a,this.instance=o,this.divisor=l}destroy(){this.buffer=null}static from(e,t,n,i,s){return new U3(e,t,n,i,s)}}const zO={Float32Array,Uint32Array,Int32Array,Uint8Array};function jO(r,e){let t=0,n=0;const i={};for(let l=0;l<r.length;l++)n+=e[l],t+=r[l].length;const s=new ArrayBuffer(t*4);let a=null,o=0;for(let l=0;l<r.length;l++){const u=e[l],h=r[l],c=DT(h);i[c]||(i[c]=new zO[c](s)),a=i[c];for(let d=0;d<h.length;d++){const f=(d/u|0)*n+o,g=d%u;a[f+g]=h[d]}o+=u}return new Float32Array(s)}const L6={5126:4,5123:2,5121:1};let VO=0;const GO={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array};let Pf=class _y{constructor(e=[],t={}){this.buffers=e,this.indexBuffer=null,this.attributes=t,this.glVertexArrayObjects={},this.id=VO++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new zs("disposeGeometry"),this.refCount=0}addAttribute(e,t,n=0,i=!1,s,a,o,l=!1){if(!t)throw new Error("You must pass a buffer when creating an attribute");t instanceof Xr||(t instanceof Array&&(t=new Float32Array(t)),t=new Xr(t));const u=e.split("|");if(u.length>1){for(let c=0;c<u.length;c++)this.addAttribute(u[c],t,n,i,s);return this}let h=this.buffers.indexOf(t);return h===-1&&(this.buffers.push(t),h=this.buffers.length-1),this.attributes[e]=new U3(h,n,i,s,a,o,l),this.instanced=this.instanced||l,this}getAttribute(e){return this.attributes[e]}getBuffer(e){return this.buffers[this.getAttribute(e).buffer]}addIndex(e){return e instanceof Xr||(e instanceof Array&&(e=new Uint16Array(e)),e=new Xr(e)),e.type=_a.ELEMENT_ARRAY_BUFFER,this.indexBuffer=e,this.buffers.includes(e)||this.buffers.push(e),this}getIndex(){return this.indexBuffer}interleave(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;const e=[],t=[],n=new Xr;let i;for(i in this.attributes){const s=this.attributes[i],a=this.buffers[s.buffer];e.push(a.data),t.push(s.size*L6[s.type]/4),s.buffer=0}for(n.data=jO(e,t),i=0;i<this.buffers.length;i++)this.buffers[i]!==this.indexBuffer&&this.buffers[i].destroy();return this.buffers=[n],this.indexBuffer&&this.buffers.push(this.indexBuffer),this}getSize(){for(const e in this.attributes){const t=this.attributes[e];return this.buffers[t.buffer].data.length/(t.stride/4||t.size)}return 0}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null}clone(){const e=new _y;for(let t=0;t<this.buffers.length;t++)e.buffers[t]=new Xr(this.buffers[t].data.slice(0));for(const t in this.attributes){const n=this.attributes[t];e.attributes[t]=new U3(n.buffer,n.size,n.normalized,n.type,n.stride,n.start,n.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.type=_a.ELEMENT_ARRAY_BUFFER),e}static merge(e){const t=new _y,n=[],i=[],s=[];let a;for(let o=0;o<e.length;o++){a=e[o];for(let l=0;l<a.buffers.length;l++)i[l]=i[l]||0,i[l]+=a.buffers[l].data.length,s[l]=0}for(let o=0;o<a.buffers.length;o++)n[o]=new GO[DT(a.buffers[o].data)](i[o]),t.buffers[o]=new Xr(n[o]);for(let o=0;o<e.length;o++){a=e[o];for(let l=0;l<a.buffers.length;l++)n[l].set(a.buffers[l].data,s[l]),s[l]+=a.buffers[l].data.length}if(t.attributes=a.attributes,a.indexBuffer){t.indexBuffer=t.buffers[a.buffers.indexOf(a.indexBuffer)],t.indexBuffer.type=_a.ELEMENT_ARRAY_BUFFER;let o=0,l=0,u=0,h=0;for(let c=0;c<a.buffers.length;c++)if(a.buffers[c]!==a.indexBuffer){h=c;break}for(const c in a.attributes){const d=a.attributes[c];(d.buffer|0)===h&&(l+=d.size*L6[d.type]/4)}for(let c=0;c<e.length;c++){const d=e[c].indexBuffer.data;for(let f=0;f<d.length;f++)t.indexBuffer.data[f+u]+=o;o+=e[c].buffers[h].data.length/l,u+=d.length}}return t}},MT=class extends Pf{constructor(e=!1){super(),this._buffer=new Xr(null,e,!1),this._indexBuffer=new Xr(null,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,ot.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,ot.FLOAT).addAttribute("aColor",this._buffer,4,!0,ot.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,ot.FLOAT).addIndex(this._indexBuffer)}};const $3=Math.PI*2,WO=180/Math.PI,XO=Math.PI/180;var pn=(r=>(r[r.POLY=0]="POLY",r[r.RECT=1]="RECT",r[r.CIRC=2]="CIRC",r[r.ELIP=3]="ELIP",r[r.RREC=4]="RREC",r))(pn||{});let Mt=class RT{constructor(e=0,t=0){this.x=0,this.y=0,this.x=e,this.y=t}clone(){return new RT(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,t=e){return this.x=e,this.y=t,this}};Mt.prototype.toString=function(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`};const q2=[new Mt,new Mt,new Mt,new Mt];let Rt=class xy{constructor(e=0,t=0,n=0,i=0){this.x=Number(e),this.y=Number(t),this.width=Number(n),this.height=Number(i),this.type=pn.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new xy(0,0,0,0)}clone(){return new xy(this.x,this.y,this.width,this.height)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}contains(e,t){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height}intersects(e,t){if(!t){const P=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=P)return!1;const I=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>I}const n=this.left,i=this.right,s=this.top,a=this.bottom;if(i<=n||a<=s)return!1;const o=q2[0].set(e.left,e.top),l=q2[1].set(e.left,e.bottom),u=q2[2].set(e.right,e.top),h=q2[3].set(e.right,e.bottom);if(u.x<=o.x||l.y<=o.y)return!1;const c=Math.sign(t.a*t.d-t.b*t.c);if(c===0||(t.apply(o,o),t.apply(l,l),t.apply(u,u),t.apply(h,h),Math.max(o.x,l.x,u.x,h.x)<=n||Math.min(o.x,l.x,u.x,h.x)>=i||Math.max(o.y,l.y,u.y,h.y)<=s||Math.min(o.y,l.y,u.y,h.y)>=a))return!1;const d=c*(l.y-o.y),f=c*(o.x-l.x),g=d*n+f*s,y=d*i+f*s,v=d*n+f*a,_=d*i+f*a;if(Math.max(g,y,v,_)<=d*o.x+f*o.y||Math.min(g,y,v,_)>=d*h.x+f*h.y)return!1;const x=c*(o.y-u.y),w=c*(u.x-o.x),S=x*n+w*s,b=x*i+w*s,E=x*n+w*a,D=x*i+w*a;return!(Math.max(S,b,E,D)<=x*o.x+w*o.y||Math.min(S,b,E,D)>=x*h.x+w*h.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this}fit(e){const t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),i=Math.max(this.y,e.y),s=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(n-t,0),this.y=i,this.height=Math.max(s-i,0),this}ceil(e=1,t=.001){const n=Math.ceil((this.x+this.width-t)*e)/e,i=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=i-this.y,this}enlarge(e){const t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),i=Math.min(this.y,e.y),s=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=i,this.height=s-i,this}};Rt.prototype.toString=function(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`};let FT=class LT{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.radius=n,this.type=pn.CIRC}clone(){return new LT(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return!1;const n=this.radius*this.radius;let i=this.x-e,s=this.y-t;return i*=i,s*=s,i+s<=n}getBounds(){return new Rt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}};FT.prototype.toString=function(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`};let OT=class NT{constructor(e=0,t=0,n=0,i=0){this.x=e,this.y=t,this.width=n,this.height=i,this.type=pn.ELIP}clone(){return new NT(this.x,this.y,this.width,this.height)}contains(e,t){if(this.width<=0||this.height<=0)return!1;let n=(e-this.x)/this.width,i=(t-this.y)/this.height;return n*=n,i*=i,n+i<=1}getBounds(){return new Rt(this.x-this.width,this.y-this.height,this.width,this.height)}};OT.prototype.toString=function(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`};let vd=class BT{constructor(...e){let t=Array.isArray(e[0])?e[0]:e;if(typeof t[0]!="number"){const n=[];for(let i=0,s=t.length;i<s;i++)n.push(t[i].x,t[i].y);t=n}this.points=t,this.type=pn.POLY,this.closeStroke=!0}clone(){const e=this.points.slice(),t=new BT(e);return t.closeStroke=this.closeStroke,t}contains(e,t){let n=!1;const i=this.points.length/2;for(let s=0,a=i-1;s<i;a=s++){const o=this.points[s*2],l=this.points[s*2+1],u=this.points[a*2],h=this.points[a*2+1];l>t!=h>t&&e<(u-o)*((t-l)/(h-l))+o&&(n=!n)}return n}};vd.prototype.toString=function(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((r,e)=>`${r}, ${e}`,"")}]`};let UT=class $T{constructor(e=0,t=0,n=0,i=0,s=20){this.x=e,this.y=t,this.width=n,this.height=i,this.radius=s,this.type=pn.RREC}clone(){return new $T(this.x,this.y,this.width,this.height,this.radius)}contains(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){const n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return!0;let i=e-(this.x+n),s=t-(this.y+n);const a=n*n;if(i*i+s*s<=a||(i=e-(this.x+this.width-n),i*i+s*s<=a)||(s=t-(this.y+this.height-n),i*i+s*s<=a)||(i=e-(this.x+n),i*i+s*s<=a))return!0}return!1}};UT.prototype.toString=function(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`};let Zr=class Bp{constructor(e=1,t=0,n=0,i=1,s=0,a=0){this.array=null,this.a=e,this.b=t,this.c=n,this.d=i,this.tx=s,this.ty=a}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,t,n,i,s,a){return this.a=e,this.b=t,this.c=n,this.d=i,this.tx=s,this.ty=a,this}toArray(e,t){this.array||(this.array=new Float32Array(9));const n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n}apply(e,t){t=t||new Mt;const n=e.x,i=e.y;return t.x=this.a*n+this.c*i+this.tx,t.y=this.b*n+this.d*i+this.ty,t}applyInverse(e,t){t=t||new Mt;const n=1/(this.a*this.d+this.c*-this.b),i=e.x,s=e.y;return t.x=this.d*n*i+-this.c*n*s+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*s+-this.b*n*i+(-this.ty*this.a+this.tx*this.b)*n,t}translate(e,t){return this.tx+=e,this.ty+=t,this}scale(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),i=this.a,s=this.c,a=this.tx;return this.a=i*t-this.b*n,this.b=i*n+this.b*t,this.c=s*t-this.d*n,this.d=s*n+this.d*t,this.tx=a*t-this.ty*n,this.ty=a*n+this.ty*t,this}append(e){const t=this.a,n=this.b,i=this.c,s=this.d;return this.a=e.a*t+e.b*i,this.b=e.a*n+e.b*s,this.c=e.c*t+e.d*i,this.d=e.c*n+e.d*s,this.tx=e.tx*t+e.ty*i+this.tx,this.ty=e.tx*n+e.ty*s+this.ty,this}setTransform(e,t,n,i,s,a,o,l,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-l)*a,this.d=Math.cos(o-l)*a,this.tx=e-(n*this.a+i*this.c),this.ty=t-(n*this.b+i*this.d),this}prepend(e){const t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){const n=this.a,i=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this}decompose(e){const t=this.a,n=this.b,i=this.c,s=this.d,a=e.pivot,o=-Math.atan2(-i,s),l=Math.atan2(n,t),u=Math.abs(o+l);return u<1e-5||Math.abs($3-u)<1e-5?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=l),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(i*i+s*s),e.position.x=this.tx+(a.x*t+a.y*i),e.position.y=this.ty+(a.x*n+a.y*s),e}invert(){const e=this.a,t=this.b,n=this.c,i=this.d,s=this.tx,a=e*i-t*n;return this.a=i/a,this.b=-t/a,this.c=-n/a,this.d=e/a,this.tx=(n*this.ty-i*s)/a,this.ty=-(e*this.ty-t*s)/a,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const e=new Bp;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}static get IDENTITY(){return new Bp}static get TEMP_MATRIX(){return new Bp}};Zr.prototype.toString=function(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`};const xu=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Cu=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],wu=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],bu=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Cy=[],zT=[],Q2=Math.sign;function YO(){for(let r=0;r<16;r++){const e=[];Cy.push(e);for(let t=0;t<16;t++){const n=Q2(xu[r]*xu[t]+wu[r]*Cu[t]),i=Q2(Cu[r]*xu[t]+bu[r]*Cu[t]),s=Q2(xu[r]*wu[t]+wu[r]*bu[t]),a=Q2(Cu[r]*wu[t]+bu[r]*bu[t]);for(let o=0;o<16;o++)if(xu[o]===n&&Cu[o]===i&&wu[o]===s&&bu[o]===a){e.push(o);break}}}for(let r=0;r<16;r++){const e=new Zr;e.set(xu[r],Cu[r],wu[r],bu[r],0,0),zT.push(e)}}YO();const dr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:r=>xu[r],uY:r=>Cu[r],vX:r=>wu[r],vY:r=>bu[r],inv:r=>r&8?r&15:-r&7,add:(r,e)=>Cy[r][e],sub:(r,e)=>Cy[r][dr.inv(e)],rotate180:r=>r^4,isVertical:r=>(r&3)===2,byDirection:(r,e)=>Math.abs(r)*2<=Math.abs(e)?e>=0?dr.S:dr.N:Math.abs(e)*2<=Math.abs(r)?r>0?dr.E:dr.W:e>0?r>0?dr.SE:dr.SW:r>0?dr.NE:dr.NW,matrixAppendRotationInv:(r,e,t=0,n=0)=>{const i=zT[dr.inv(e)];i.tx=t,i.ty=n,r.append(i)}};let dl=class jT{constructor(e,t,n=0,i=0){this._x=n,this._y=i,this.cb=e,this.scope=t}clone(e=this.cb,t=this.scope){return new jT(e,t,this._x,this._y)}set(e=0,t=e){return(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this.cb.call(this.scope)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}};dl.prototype.toString=function(){return`[@pixi/math:ObservablePoint x=${this.x} y=${this.y} scope=${this.scope}]`};const wy=class{constructor(){this.worldTransform=new Zr,this.localTransform=new Zr,this.position=new dl(this.onChange,this,0,0),this.scale=new dl(this.onChange,this,1,1),this.pivot=new dl(this.onChange,this,0,0),this.skew=new dl(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){const r=this.localTransform;this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(r){const e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==r._worldID){const t=r.worldTransform,n=this.worldTransform;n.a=e.a*t.a+e.b*t.c,n.b=e.a*t.b+e.b*t.d,n.c=e.c*t.a+e.d*t.c,n.d=e.c*t.b+e.d*t.d,n.tx=e.tx*t.a+e.ty*t.c+t.tx,n.ty=e.tx*t.b+e.ty*t.d+t.ty,this._parentID=r._worldID,this._worldID++}}setFromMatrix(r){r.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(r){this._rotation!==r&&(this._rotation=r,this.updateSkew())}};wy.IDENTITY=new wy;let N4=wy;N4.prototype.toString=function(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`};var ZO=`varying vec2 vTextureCoord;
105
106uniform sampler2D uSampler;
107
108void main(void){
109   gl_FragColor *= texture2D(uSampler, vTextureCoord);
110}`,qO=`attribute vec2 aVertexPosition;
111attribute vec2 aTextureCoord;
112
113uniform mat3 projectionMatrix;
114
115varying vec2 vTextureCoord;
116
117void main(void){
118   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
118)).xy, 0.0, 1.0);
119   vTextureCoord = aTextureCoord;
120}
121`;function O6(r,e,t){const n=r.createShader(e);return r.shaderSource(n,t),r.compileShader(n),n}function e9(r){const e=new Array(r);for(let t=0;t<e.length;t++)e[t]=!1;return e}function VT(r,e){switch(r){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return e9(2*e);case"bvec3":return e9(3*e);case"bvec4":return e9(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const $h=[{test:r=>r.type==="float"&&r.size===1&&!r.isArray,code:r=>`
122            if(uv["${r}"] !== ud["${r}"].value)
123            {
124                ud["${r}"].value = uv["${r}"]
125                gl.uniform1f(ud["${r}"].location, uv["${r}"])
126            }
127            `},{test:(r,e)=>(r.type==="sampler2D"||r.type==="samplerCube"||r.type==="sampler2DArray")&&r.size===1&&!r.isArray&&(e==null||e.castToBaseTexture!==void 0),code:r=>`t = syncData.textureCount++;
128
129            renderer.texture.bind(uv["${r}"], t);
130
131            if(ud["${r}"].value !== t)
132            {
133                ud["${r}"].value = t;
134                gl.uniform1i(ud["${r}"].location, t);
135; // eslint-disable-line max-len
136            }`},{test:(r,e)=>r.type==="mat3"&&r.size===1&&!r.isArray&&e.a!==void 0,code:r=>`
137            gl.uniformMatrix3fv(ud["${r}"].location, false, uv["${r}"].toArray(true));
138            `,codeUbo:r=>`
139                var ${r}_matrix = uv.${r}.toArray(true);
140
141                data[offset] = ${r}_matrix[0];
142                data[offset+1] = ${r}_matrix[1];
143                data[offset+2] = ${r}_matrix[2];
144        
145                data[offset + 4] = ${r}_matrix[3];
146                data[offset + 5] = ${r}_matrix[4];
147                data[offset + 6] = ${r}_matrix[5];
148        
149                data[offset + 8] = ${r}_matrix[6];
150                data[offset + 9] = ${r}_matrix[7];
151                data[offset + 10] = ${r}_matrix[8];
152            `},{test:(r,e)=>r.type==="vec2"&&r.size===1&&!r.isArray&&e.x!==void 0,code:r=>`
153                cv = ud["${r}"].value;
154                v = uv["${r}"];
155
156                if(cv[0] !== v.x || cv[1] !== v.y)
157                {
158                    cv[0] = v.x;
159                    cv[1] = v.y;
160                    gl.uniform2f(ud["${r}"].location, v.x, v.y);
161                }`,codeUbo:r=>`
162                v = uv.${r};
163
164                data[offset] = v.x;
165                data[offset+1] = v.y;
166            `},{test:r=>r.type==="vec2"&&r.size===1&&!r.isArray,code:r=>`
167                cv = ud["${r}"].value;
168                v = uv["${r}"];
169
170                if(cv[0] !== v[0] || cv[1] !== v[1])
171                {
172                    cv[0] = v[0];
173                    cv[1] = v[1];
174                    gl.uniform2f(ud["${r}"].location, v[0], v[1]);
175                }
176            `},{test:(r,e)=>r.type==="vec4"&&r.size===1&&!r.isArray&&e.width!==void 0,code:r=>`
177                cv = ud["${r}"].value;
178                v = uv["${r}"];
179
180                if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
181                {
182                    cv[0] = v.x;
183                    cv[1] = v.y;
184                    cv[2] = v.width;
185                    cv[3] = v.height;
186                    gl.uniform4f(ud["${r}"].location, v.x, v.y, v.width, v.height)
187                }`,codeUbo:r=>`
188                    v = uv.${r};
189
190                    data[offset] = v.x;
191                    data[offset+1] = v.y;
192                    data[offset+2] = v.width;
193                    data[offset+3] = v.height;
194                `},{test:(r,e)=>r.type==="vec4"&&r.size===1&&!r.isArray&&e.red!==void 0,code:r=>`
195                cv = ud["${r}"].value;
196                v = uv["${r}"];
197
198                if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha)
199                {
200                    cv[0] = v.red;
201                    cv[1] = v.green;
202                    cv[2] = v.blue;
203                    cv[3] = v.alpha;
204                    gl.uniform4f(ud["${r}"].location, v.red, v.green, v.blue, v.alpha)
205                }`,codeUbo:r=>`
206                    v = uv.${r};
207
208                    data[offset] = v.red;
209                    data[offset+1] = v.green;
210                    data[offset+2] = v.blue;
211                    data[offset+3] = v.alpha;
212                `},{test:(r,e)=>r.type==="vec3"&&r.size===1&&!r.isArray&&e.red!==void 0,code:r=>`
213                cv = ud["${r}"].value;
214                v = uv["${r}"];
215
216                if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.a)
217                {
218                    cv[0] = v.red;
219                    cv[1] = v.green;
220                    cv[2] = v.blue;
221    
222                    gl.uniform3f(ud["${r}"].location, v.red, v.green, v.blue)
223                }`,codeUbo:r=>`
224                    v = uv.${r};
225
226                    data[offset] = v.red;
227                    data[offset+1] = v.green;
228                    data[offset+2] = v.blue;
229                `},{test:r=>r.type==="vec4"&&r.size===1&&!r.isArray,code:r=>`
230                cv = ud["${r}"].value;
231                v = uv["${r}"];
232
233                if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
234                {
235                    cv[0] = v[0];
236                    cv[1] = v[1];
237                    cv[2] = v[2];
238                    cv[3] = v[3];
239
240                    gl.uniform4f(ud["${r}"].location, v[0], v[1], v[2], v[3])
241                }`}],QO={float:`
242    if (cv !== v)
243    {
244        cu.value = v;
245        gl.uniform1f(location, v);
246    }`,vec2:`
247    if (cv[0] !== v[0] || cv[1] !== v[1])
248    {
249        cv[0] = v[0];
250        cv[1] = v[1];
251
252        gl.uniform2f(location, v[0], v[1])
253    }`,vec3:`
254    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
255    {
256        cv[0] = v[0];
257        cv[1] = v[1];
258        cv[2] = v[2];
259
260        gl.uniform3f(location, v[0], v[1], v[2])
261    }`,vec4:`
262    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
263    {
264        cv[0] = v[0];
265        cv[1] = v[1];
266        cv[2] = v[2];
267        cv[3] = v[3];
268
269        gl.uniform4f(location, v[0], v[1], v[2], v[3]);
270    }`,int:`
271    if (cv !== v)
272    {
273        cu.value = v;
274
275        gl.uniform1i(location, v);
276    }`,ivec2:`
277    if (cv[0] !== v[0] || cv[1] !== v[1])
278    {
279        cv[0] = v[0];
280        cv[1] = v[1];
281
282        gl.uniform2i(location, v[0], v[1]);
283    }`,ivec3:`
284    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
285    {
286        cv[0] = v[0];
287        cv[1] = v[1];
288        cv[2] = v[2];
289
290        gl.uniform3i(location, v[0], v[1], v[2]);
291    }`,ivec4:`
292    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
293    {
294        cv[0] = v[0];
295        cv[1] = v[1];
296        cv[2] = v[2];
297        cv[3] = v[3];
298
299        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
300    }`,uint:`
301    if (cv !== v)
302    {
303        cu.value = v;
304
305        gl.uniform1ui(location, v);
306    }`,uvec2:`
307    if (cv[0] !== v[0] || cv[1] !== v[1])
308    {
309        cv[0] = v[0];
310        cv[1] = v[1];
311
312        gl.uniform2ui(location, v[0], v[1]);
313    }`,uvec3:`
314    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
315    {
316        cv[0] = v[0];
317        cv[1] = v[1];
318        cv[2] = v[2];
319
320        gl.uniform3ui(location, v[0], v[1], v[2]);
321    }`,uvec4:`
322    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
323    {
324        cv[0] = v[0];
325        cv[1] = v[1];
326        cv[2] = v[2];
327        cv[3] = v[3];
328
329        gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
330    }`,bool:`
331    if (cv !== v)
332    {
333        cu.value = v;
334        gl.uniform1i(location, v);
335    }`,bvec2:`
336    if (cv[0] != v[0] || cv[1] != v[1])
337    {
338        cv[0] = v[0];
339        cv[1] = v[1];
340
341        gl.uniform2i(location, v[0], v[1]);
342    }`,bvec3:`
343    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
344    {
345        cv[0] = v[0];
346        cv[1] = v[1];
347        cv[2] = v[2];
348
349        gl.uniform3i(location, v[0], v[1], v[2]);
350    }`,bvec4:`
351    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
352    {
353        cv[0] = v[0];
354        cv[1] = v[1];
355        cv[2] = v[2];
356        cv[3] = v[3];
357
358        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
359    }`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:`
360    if (cv !== v)
361    {
362        cu.value = v;
363
364        gl.uniform1i(location, v);
365    }`,samplerCube:`
366    if (cv !== v)
367    {
368        cu.value = v;
369
370        gl.uniform1i(location, v);
371    }`,sampler2DArray:`
372    if (cv !== v)
373    {
374        cu.value = v;
375
376        gl.uniform1i(location, v);
377    }`},KO={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function JO(r,e){var n;const t=[`
378        var v = null;
379        var cv = null;
380        var cu = null;
381        var t = 0;
382        var gl = renderer.gl;
383    `];for(const i in r.uniforms){const s=e[i];if(!s){((n=r.uniforms[i])==null?void 0:n.group)===!0&&(r.uniforms[i].ubo?t.push(`
384                        renderer.shader.syncUniformBufferGroup(uv.${i}, '${i}');
385                    `):t.push(`
386                        renderer.shader.syncUniformGroup(uv.${i}, syncData);
387                    `));continue}const a=r.uniforms[i];let o=!1;for(let l=0;l<$h.length;
vendor: 7,469 bytes, lines 387-431
387l++)if($h[l].test(s,a)){t.push($h[l].code(i,a)),o=!0;break}if(!o){const l=(s.size===1&&!s.isArray?QO:KO)[s.type].replace("location",`ud["${i}"].location`);t.push(`
388            cu = ud["${i}"];
389            cv = cu.value;
390            v = uv["${i}"];
391            ${l};`)}}return new Function("ud","uv","renderer","syncData",t.join(`
392`))}const GT={};let Yc=GT;function eN(){if(Yc===GT||Yc!=null&&Yc.isContextLost()){const r=Ye.ADAPTER.createCanvas();let e;Ye.PREFER_ENV>=pc.WEBGL2&&(e=r.getContext("webgl2",{})),e||(e=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),Yc=e}return Yc}let K2;function tN(){if(!K2){K2=cs.MEDIUM;const r=eN();if(r&&r.getShaderPrecisionFormat){const e=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);e&&(K2=e.precision?cs.HIGH:cs.MEDIUM)}}return K2}function N6(r,e){const t=r.getShaderSource(e).split(`
393`).map((u,h)=>`${h}: ${u}`),n=r.getShaderInfoLog(e),i=n.split(`
394`),s={},a=i.map(u=>parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(u=>u&&!s[u]?(s[u]=!0,!0):!1),o=[""];a.forEach(u=>{t[u-1]=`%c${t[u-1]}%c`,o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const l=t.join(`
395`);o[0]=l,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn(...o),console.groupEnd()}function rN(r,e,t,n){r.getProgramParameter(e,r.LINK_STATUS)||(r.getShaderParameter(t,r.COMPILE_STATUS)||N6(r,t),r.getShaderParameter(n,r.COMPILE_STATUS)||N6(r,n),console.error("PixiJS Error: Could not initialize shader."),r.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",r.getProgramInfoLog(e)))}const nN={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function WT(r){return nN[r]}let J2=null;const B6={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function XT(r,e){if(!J2){const t=Object.keys(B6);J2={};for(let n=0;n<t.length;++n){const i=t[n];J2[r[i]]=B6[i]}}return J2[e]}function U6(r,e,t){if(r.substring(0,9)!=="precision"){let n=e;return e===cs.HIGH&&t!==cs.HIGH&&(n=cs.MEDIUM),`precision ${n} float;
396${r}`}else if(t!==cs.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}let P1;function iN(){if(typeof P1=="boolean")return P1;try{P1=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{P1=!1}return P1}let sN=0;const ep={},by=class ih{constructor(e,t,n="pixi-shader",i={}){this.extra={},this.id=sN++,this.vertexSrc=e||ih.defaultVertexSrc,this.fragmentSrc=t||ih.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=i,this.vertexSrc.substring(0,8)!=="#version"&&(n=n.replace(/\s+/g,"-"),ep[n]?(ep[n]++,n+=`-${ep[n]}`):ep[n]=1,this.vertexSrc=`#define SHADER_NAME ${n}
397${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${n}
398${this.fragmentSrc}`,this.vertexSrc=U6(this.vertexSrc,ih.defaultVertexPrecision,cs.HIGH),this.fragmentSrc=U6(this.fragmentSrc,ih.defaultFragmentPrecision,tN())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return qO}static get defaultFragmentSrc(){return ZO}static from(e,t,n){const i=e+t;let s=I6[i];return s||(I6[i]=s=new ih(e,t,n)),s}};by.defaultVertexPrecision=cs.HIGH,by.defaultFragmentPrecision=xh.apple.device?cs.HIGH:cs.MEDIUM;let to=by,aN=0;class js{constructor(e,t,n){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=aN++,this.static=!!t,this.ubo=!!n,e instanceof Xr?(this.buffer=e,this.buffer.type=_a.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Xr(new Float32Array(1)),this.buffer.type=_a.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,n){if(!this.ubo)this.uniforms[e]=new js(t,n);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,n){return new js(e,t,n)}static uboFrom(e,t){return new js(e,t??!0,!0)}}class xa{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof js?this.uniformGroup=t:this.uniformGroup=new js(t):this.uniformGroup=new js({}),this.disposeRunner=new zs("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const n in t.uniforms){const i=t.uniforms[n];if(i.group===!0&&this.checkUniformExists(e,i))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,n){const i=to.from(e,t);return new xa(i,n)}}class oN{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const n=new Int32Array(e);for(let s=0;s<e;s++)n[s]=s;this.defaultGroupCache[e]=js.from({uSamplers:n},!0);let i=this.fragTemplate;i=i.replace(/%count%/gi,`${e}`),i=i.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new to(this.vertexSrc,i)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new Zr,default:this.defaultGroupCache[e]};return new xa(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
399`,t+=`
400`;for(let n=0;n<e;n++)n>0&&(t+=`
401else `),n<e-1&&(t+=`if(vTextureId < ${n}.5)`),t+=`
402{`,t+=`
403	color = texture2D(uSamplers[${n}], vTextureCoord);`,t+=`
404}`;return t+=`
405`,t+=`
406`,t}}let Sy=class{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let e=0;e<this.count;e++)this.elements[e]=null;this.count=0}};function lN(){return!xh.apple.device}function uN(r){let e=!0;const t=Ye.ADAPTER.getNavigator();if(xh.tablet||xh.phone){if(xh.apple.device){const n=t.userAgent.match(/OS (\d+)_(\d+)?/);n&&parseInt(n[1],10)<11&&(e=!1)}if(xh.android.device){const n=t.userAgent.match(/Android\s([0-9.]*)/);n&&parseInt(n[1],10)<7&&(e=!1)}}return e?r:4}class B4{constructor(e){this.renderer=e}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(e){}}var cN=`varying vec2 vTextureCoord;
407varying vec4 vColor;
408varying float vTextureId;
409uniform sampler2D uSamplers[%count%];
410
411void main(void){
412    vec4 color;
413    %forloop%
414    gl_FragColor = color * vColor;
415}
416`,hN=`precision highp float;
417attribute vec2 aVertexPosition;
418attribute vec2 aTextureCoord;
419attribute vec4 aColor;
420attribute float aTextureId;
421
422uniform mat3 projectionMatrix;
423uniform mat3 translationMatrix;
424uniform vec4 tint;
425
426varying vec2 vTextureCoord;
427varying vec4 vColor;
428varying float vTextureId;
429
430void main(void){
431    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
431)).xy, 0.0, 1.0);
432
433    vTextureCoord = aTextureCoord;
434    vTextureId = aTextureId;
435    vColor = aColor * tint;
436}
437`;const j1=class Ps extends B4{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=MT,this.vertexSize=6,this.state=Da.for2d(),this.size=Ps.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??uN(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??lN(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return Dt("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return hN}static get defaultFragmentTemplate(){return cN}setShaderGenerator({vertex:e=Ps.defaultVertexSrc,fragment:t=Ps.defaultFragmentTemplate}={}){this.shaderGenerator=new oN(e,t)}contextChange(){const e=this.renderer.gl;Ye.PREFER_ENV===pc.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),Ps.defaultMaxTextures),this.maxTextures=BO(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=Ps,n=this.size/4,i=Math.floor(n/this.maxTextures)+1;for(;e.length<n;)e.push(new vy);for(;t.length<i;)t.push(new Sy);for(let s=0;s<this.maxTextures;s++)this._tempBoundTextures[s]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=Ps._textureArrayPool,i=this.renderer.batch,s=this._tempBoundTextures,a=this.renderer.textureGC.count;let o=++bt._globalBatch,l=0,u=n[0],h=0;i.copyBoundTextures(s,t);for(let c=0;c<this._bufferSize;++c){const d=e[c];e[c]=null,d._batchEnabled!==o&&(u.count>=t&&(i.boundArray(u,s,o,t),this.buildDrawCalls(u,h,c),h=c,u=n[++l],++o),d._batchEnabled=o,d.touched=a,u.elements[u.count++]=d)}u.count>0&&(i.boundArray(u,s,o,t),this.buildDrawCalls(u,h,this._bufferSize),++l,++o);for(let c=0;c<s.length;c++)s[c]=null;bt._globalBatch=o}buildDrawCalls(e,t,n){const{_bufferedElements:i,_attributeBuffer:s,_indexBuffer:a,vertexSize:o}=this,l=Ps._drawCallPool;let u=this._dcIndex,h=this._aIndex,c=this._iIndex,d=l[u];d.start=this._iIndex,d.texArray=e;for(let f=t;f<n;
vendor: 12,797 bytes, lines 437-470
437++f){const g=i[f],y=g._texture.baseTexture,v=ET[y.alphaMode?1:0][g.blendMode];i[f]=null,t<f&&d.blend!==v&&(d.size=c-d.start,t=f,d=l[++u],d.texArray=e,d.start=c),this.packInterleavedGeometry(g,s,a,h,c),h+=g.vertexData.length/2*o,c+=g.indices.length,d.blend=v}t<n&&(d.size=c-d.start,++u),this._dcIndex=u,this._aIndex=h,this._iIndex=c}bindAndClearTexArray(e){const t=this.renderer.texture;for(let n=0;n<e.count;n++)t.bind(e.elements[n],e.ids[n]),e.elements[n]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:n}=this;Ps.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(n),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:n}=this.renderer,i=Ps._drawCallPool;let s=null;for(let a=0;a<e;a++){const{texArray:o,type:l,size:u,start:h,blend:c}=i[a];s!==o&&(s=o,this.bindAndClearTexArray(o)),this.state.blendMode=c,n.set(this.state),t.drawElements(l,u,t.UNSIGNED_SHORT,h*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),Ps.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])}stop(){this.flush()}destroy(){for(let e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]&&this._packedGeometries[e].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),super.destroy()}getAttributeBuffer(e){const t=B3(Math.ceil(e/8)),n=H6(t),i=t*8;this._aBuffers.length<=n&&(this._iBuffers.length=n+1);let s=this._aBuffers[i];return s||(this._aBuffers[i]=s=new LO(i*this.vertexSize*4)),s}getIndexBuffer(e){const t=B3(Math.ceil(e/12)),n=H6(t),i=t*12;this._iBuffers.length<=n&&(this._iBuffers.length=n+1);let s=this._iBuffers[n];return s||(this._iBuffers[n]=s=new Uint16Array(i)),s}packInterleavedGeometry(e,t,n,i,s){const{uint32View:a,float32View:o}=t,l=i/this.vertexSize,u=e.uvs,h=e.indices,c=e.vertexData,d=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),g=wr.shared.setValue(e._tintRGB).toPremultiplied(f,e._texture.baseTexture.alphaMode>0);for(let y=0;y<c.length;y+=2)o[i++]=c[y],o[i++]=c[y+1],o[i++]=u[y],o[i++]=u[y+1],a[i++]=g,o[i++]=d;for(let y=0;y<h.length;y++)n[s++]=l+h[y]}};j1.defaultBatchSize=4096,j1.extension={name:"batch",type:ze.RendererPlugin},j1._drawCallPool=[],j1._textureArrayPool=[];let Su=j1;Je.add(Su);var dN=`varying vec2 vTextureCoord;
438
439uniform sampler2D uSampler;
440
441void main(void){
442   gl_FragColor = texture2D(uSampler, vTextureCoord);
443}
444`,fN=`attribute vec2 aVertexPosition;
445
446uniform mat3 projectionMatrix;
447
448varying vec2 vTextureCoord;
449
450uniform vec4 inputSize;
451uniform vec4 outputFrame;
452
453vec4 filterVertexPosition( void )
454{
455    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
456
457    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
458}
459
460vec2 filterTextureCoord( void )
461{
462    return aVertexPosition * (outputFrame.zw * inputSize.zw);
463}
464
465void main(void)
466{
467    gl_Position = filterVertexPosition();
468    vTextureCoord = filterTextureCoord();
469}
470`;const Ay=class V1 extends xa{constructor(e,t,n){const i=to.from(e||V1.defaultVertexSrc,t||V1.defaultFragmentSrc);super(i,n),this.padding=0,this.resolution=V1.defaultResolution,this.multisample=V1.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new Da}apply(e,t,n,i,s){e.applyFilter(this,t,n,i)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return fN}static get defaultFragmentSrc(){return dN}};Ay.defaultResolution=1,Ay.defaultMultisample=Br.NONE;let fl=Ay;class z3{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new wr(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:n,backgroundAlpha:i}=e,s=n??t;s!==void 0&&(this.color=s),this.alpha=i}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}z3.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},z3.extension={type:[ze.RendererSystem,ze.CanvasRendererSystem],name:"background"};Je.add(z3);class YT{constructor(e){this.renderer=e,this.emptyRenderer=new B4(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:n}=this.renderer.texture;for(let i=t-1;i>=0;--i)e[i]=n[i]||null,e[i]&&(e[i]._batchLocation=i)}boundArray(e,t,n,i){const{elements:s,ids:a,count:o}=e;let l=0;for(let u=0;u<o;u++){const h=s[u],c=h._batchLocation;if(c>=0&&c<i&&t[c]===h){a[u]=c;continue}for(;l<i;){const d=t[l];if(d&&d._batchEnabled===n&&d._batchLocation===l){l++;continue}a[u]=l,h._batchLocation=l,t[l]=h;break}}}destroy(){this.renderer=null}}YT.extension={type:ze.RendererSystem,name:"batch"};Je.add(YT);let $6=0;class j3{constructor(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=$6++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,n=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:n,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=$6++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let n;if(Ye.PREFER_ENV>=pc.WEBGL2&&(n=e.getContext("webgl2",t)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension("EXT_color_buffer_float")})}handleContextLost(e){e.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const e=this.renderer.view;this.renderer=null,e.removeEventListener!==void 0&&(e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(e){const t=e.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),t&&!t.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=n||!!e.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}j3.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"},j3.extension={type:ze.RendererSystem,name:"context"};Je.add(j3);class Ty{constructor(e,t){if(this.width=Math.round(e),this.height=Math.round(t),!this.width||!this.height)throw new Error("Framebuffer width or height is zero");this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new zs("disposeFramebuffer"),this.multisample=Br.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(e=0,t){return this.colorTextures[e]=t||new bt(null,{scaleMode:eo.NEAREST,resolution:1,mipmap:Il.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(e){return this.depthTexture=e||new bt(null,{scaleMode:eo.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Il.OFF,format:He.DEPTH_COMPONENT,type:ot.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(e,t){if(e=Math.round(e),t=Math.round(t),!e||!t)throw new Error("Framebuffer width and height must not be zero");if(!(e===this.width&&t===this.height)){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(let n=0;n<this.colorTextures.length;n++){const i=this.colorTextures[n],s=i.resolution;i.setSize(e/s,t/s)}if(this.depthTexture){const n=this.depthTexture.resolution;this.depthTexture.setSize(e/n,t/n)}}}dispose(){this.disposeRunner.emit(this,!1)}destroyDepthTexture(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)}}class ZT extends bt{constructor(e={}){if(typeof e=="number"){const t=arguments[0],n=arguments[1],i=arguments[2],s=arguments[3];e={width:t,height:n,scaleMode:i,resolution:s}}e.width=e.width??100,e.height=e.height??100,e.multisample??(e.multisample=Br.NONE),super(null,e),this.mipmap=Il.OFF,this.valid=!0,this._clear=new wr([0,0,0,0]),this.framebuffer=new Ty(this.realWidth,this.realHeight).addColorTexture(0,this),this.framebuffer.multisample=e.multisample,this.maskStack=[],this.filterStack=[{}]}set clearColor(e){this._clear.setValue(e)}get clearColor(){return this._clear.value}get clear(){return this._clear}get multisample(){return this.framebuffer.multisample}set multisample(e){this.framebuffer.multisample=e}resize(e,t){this.framebuffer.resize(e*this.resolution,t*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.he
vendor: 18,486 bytes, line 470
470ight)}dispose(){this.framebuffer.dispose(),super.dispose()}destroy(){super.destroy(),this.framebuffer.destroyDepthTexture(),this.framebuffer=null}}class fo extends Qd{constructor(e){const t=e,n=t.naturalWidth||t.videoWidth||t.displayWidth||t.width,i=t.naturalHeight||t.videoHeight||t.displayHeight||t.height;super(n,i),this.source=e,this.noSubImage=!1}static crossOrigin(e,t,n){n===void 0&&!t.startsWith("data:")?e.crossOrigin=FO(t):n!==!1&&(e.crossOrigin=typeof n=="string"?n:"anonymous")}upload(e,t,n,i){const s=e.gl,a=t.realWidth,o=t.realHeight;if(i=i||this.source,typeof HTMLImageElement<"u"&&i instanceof HTMLImageElement){if(!i.complete||i.naturalWidth===0)return!1}else if(typeof HTMLVideoElement<"u"&&i instanceof HTMLVideoElement&&i.readyState<=1)return!1;return s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===us.UNPACK),!this.noSubImage&&t.target===s.TEXTURE_2D&&n.width===a&&n.height===o?s.texSubImage2D(s.TEXTURE_2D,0,0,0,t.format,n.type,i):(n.width=a,n.height=o,s.texImage2D(t.target,0,n.internalFormat,t.format,n.type,i)),!0}update(){if(this.destroyed)return;const e=this.source,t=e.naturalWidth||e.videoWidth||e.width,n=e.naturalHeight||e.videoHeight||e.height;this.resize(t,n),super.update()}dispose(){this.source=null}}class qT extends fo{constructor(e,t){if(t=t||{},typeof e=="string"){const n=new Image;fo.crossOrigin(n,e,t.crossorigin),n.src=e,e=n}super(e),!e.complete&&this._width&&this._height&&(this._width=0,this._height=0),this.url=e.src,this._process=null,this.preserveBitmap=!1,this.createBitmap=(t.createBitmap??Ye.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,this.alphaMode=typeof t.alphaMode=="number"?t.alphaMode:null,this.bitmap=null,this._load=null,t.autoLoad!==!1&&this.load()}load(e){return this._load?this._load:(e!==void 0&&(this.createBitmap=e),this._load=new Promise((t,n)=>{const i=this.source;this.url=i.src;const s=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.update(),this._load=null,this.createBitmap?t(this.process()):t(this))};i.complete&&i.src?s():(i.onload=s,i.onerror=a=>{n(a),this.onError.emit(a)})}),this._load)}process(){const e=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const t=globalThis.createImageBitmap,n=!e.crossOrigin||e.crossOrigin==="anonymous";return this._process=fetch(e.src,{mode:n?"cors":"no-cors"}).then(i=>i.blob()).then(i=>t(i,0,0,e.width,e.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===us.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(e,t,n){if(typeof this.alphaMode=="number"&&(t.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(e,t,n);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(e,t,n,this.bitmap),!this.preserveBitmap){let i=!0;const s=t._glTextures;for(const a in s){const o=s[a];if(o!==n&&o.dirtyId!==t.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(e){return typeof HTMLImageElement<"u"&&(typeof e=="string"||e instanceof HTMLImageElement)}}class k_{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(e,t,n){const i=t.width,s=t.height;if(n){const a=e.width/2/i,o=e.height/2/s,l=e.x/i+a,u=e.y/s+o;n=dr.add(n,dr.NW),this.x0=l+a*dr.uX(n),this.y0=u+o*dr.uY(n),n=dr.add(n,2),this.x1=l+a*dr.uX(n),this.y1=u+o*dr.uY(n),n=dr.add(n,2),this.x2=l+a*dr.uX(n),this.y2=u+o*dr.uY(n),n=dr.add(n,2),this.x3=l+a*dr.uX(n),this.y3=u+o*dr.uY(n)}else this.x0=e.x/i,this.y0=e.y/s,this.x1=(e.x+e.width)/i,this.y1=e.y/s,this.x2=(e.x+e.width)/i,this.y2=(e.y+e.height)/s,this.x3=e.x/i,this.y3=(e.y+e.height)/s;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}}k_.prototype.toString=function(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`};const z6=new k_;function tp(r){r.destroy=function(){},r.on=function(){},r.once=function(){},r.emit=function(){}}let yt=class qt extends Af{constructor(e,t,n,i,s,a,o){if(super(),this.noFrame=!1,t||(this.noFrame=!0,t=new Rt(0,0,1,1)),e instanceof qt&&(e=e.baseTexture),this.baseTexture=e,this._frame=t,this.trim=i,this.valid=!1,this.destroyed=!1,this._uvs=z6,this.uvMatrix=null,this.orig=n||t,this._rotate=Number(s||0),s===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=a?new Mt(a.x,a.y):new Mt(0,0),this.defaultBorders=o,this._updateID=0,this.textureCacheIds=[],e.valid?this.noFrame?e.valid&&this.onBaseTextureUpdated(e):this.frame=t:e.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&e.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(e){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=e.width,this._frame.height=e.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(e){if(this.baseTexture){if(e){const{resource:t}=this.baseTexture;t!=null&&t.url&&ra[t.url]&&qt.removeFromCache(t.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,qt.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}clone(){var i;const e=this._frame.clone(),t=this._frame===this.orig?e:this.orig.clone(),n=new qt(this.baseTexture,!this.noFrame&&e,t,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(n._frame=e),n}updateUvs(){this._uvs===z6&&(this._uvs=new k_),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(e,t={},n=Ye.STRICT_TEXTURE_CACHE){const i=typeof e=="string";let s=null;if(i)s=e;else if(e instanceof bt){if(!e.cacheId){const o=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e.cacheId=`${o}-${qd()}`,bt.addToCache(e,e.cacheId)}s=e.cacheId}else{if(!e._pixiId){const o=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${o}_${qd()}`}s=e._pixiId}let a=ra[s];if(i&&n&&!a)throw new Error(`The cacheId "${s}" does not exist in TextureCache.`);return!a&&!(e instanceof bt)?(t.resolution||(t.resolution=c0(e)),a=new qt(new bt(e,t)),a.baseTexture.cacheId=s,bt.addToCache(a.baseTexture,s),qt.addToCache(a,s)):!a&&e instanceof bt&&(a=new qt(e),qt.addToCache(a,s)),a}static fromURL(e,t){const n=Object.assign({autoLoad:!1},t==null?void 0:t.resourceOptions),i=qt.from(e,Object.assign({resourceOptions:n},t),!1),s=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):s.load().then(()=>Promise.resolve(i))}static fromBuffer(e,t,n,i){return new qt(bt.fromBuffer(e,t,n,i))}static fromLoader(e,t,n,i){const s=new bt(e,Object.assign({scaleMode:bt.defaultOptions.scaleMode,resolution:c0(t)},i)),{resource:a}=s;a instanceof qT&&(a.url=t);const o=new qt(s);return n||(n=t),bt.addToCache(o.baseTexture,n),qt.addToCache(o,n),n!==t&&(bt.addToCache(o.baseTexture,t),qt.addToCache(o,t)),o.baseTexture.valid?Promise.resolve(o):new Promise(l=>{o.baseTexture.once("loaded",()=>l(o))})}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),ra[t]&&ra[t]!==e&&console.warn(`Texture added to the cache with an id [${t}] that already had an entry`),ra[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=ra[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete ra[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t<e.textureCacheIds.length;++t)ra[e.textureCacheIds[t]]===e&&delete ra[e.textureCacheIds[t]];return e.textureCacheIds.length=0,e}return null}get resolution(){return this.baseTexture.resolution}get frame(){return this._frame}set frame(e){this._frame=e,this.noFrame=!1;const{x:t,y:n,width:i,height:s}=e,a=t+i>this.baseTexture.width,o=n+s>this.baseTexture.height;if(a||o){const l=a&&o?"and":"or",u=`X: ${t} + ${i} = ${t+i} > ${this.baseTexture.width}`,h=`Y: ${n} + ${s} = ${n+s} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${u} ${l} ${h}`)}this.valid=i&&s&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(e){this._rotate=e,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return qt._EMPTY||(qt._EMPTY=new qt(new bt),tp(qt._EMPTY),tp(qt._EMPTY.baseTexture)),qt._EMPTY}static get WHITE(){if(!qt._WHITE){const e=Ye.ADAPTER.createCanvas(16,16),t=e.getContext("2d");e.width=16,e.height=16,t.fillStyle="white",t.fillRect(0,0,16,16),qt._WHITE=new qt(bt.from(e)),tp(qt._WHITE),tp(qt._WHITE.baseTexture)}return qt._WHITE}};class U4 extends yt{constructor(e,t){super(e,t),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(e){this.framebuffer.multisample=e}resize(e,t,n=!0){const i=this.baseTexture.resolution,s=Math.round(e*i)/i,a=Math.round(t*i)/i;this.valid=s>0&&a>0,this._frame.width=this.orig.width=s,this._frame.height=this.orig.height=a,n&&this.baseTexture.resize(s,a),this.updateUvs()}setResolution(e){const{baseTexture:t}=this;t.resolution!==e&&(t.setResolution(e),this.resize(t.width,t.height,!1))}static create(e){return new U4(new ZT(e))}}class QT{constructor(e){this.texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(e,t,n=Br.NONE){const i=new ZT(Object.assign({width:e,height:t,resolution:1,multisample:n},this.textureOptions));return new U4(i)}getOptimalTexture(e,t,n=1,i=Br.NONE){let s;e=Math.max(Math.ceil(e*n-1e-6),1),t=Math.max(Math.ceil(t*n-1e-6),1),!this.enableFullScreen||e!==this._pixelsWidth||t!==this._pixelsHeight?(e=B3(e),t=B3(t),s=((e&65535)<<16|t&65535)>>>0,i>1&&(s+=i*4294967296)):s=i>1?-i:-1,this.texturePool[s]||(this.texturePool[s]=[]);let a=this.texturePool[s].pop();return a||(a=this.createTexture(e,t,i)),a.filterPoolKey=s,a.setResolution(n),a}getFilterTexture(e,t,n){const i=this.getOptimalTexture(e.width,e.height,t||e.resolution,n||Br.NONE);return i.filterFrame=e.filterFrame,i}returnTexture(e){const t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)}returnFilterTexture(e){this.returnTexture(e)}clear(e){if(e=e!==!1,e)for(const t in this.texturePool){const n=this.texturePool[t];if(n)for(let i=0;i<n.length;i++)n[i].destroy(!0)}this.texturePool={}}setScreenSize(e){if(!(e.width===this._pixelsWidth&&e.height===this._pixelsHeight)){this.enableFullScreen=e.width>0&&e.height>0;for(const t in this.texturePool){if(!(Number(t)<0))continue;const n=this.texturePool[t];if(n)for(let i=0;i<n.length;i++)n[i].destroy(!0);this.texturePool[t]=[]}this._pixelsWidth=e.width,this._pixelsHeight=e.height}}}QT.SCREEN_KEY=-1;class pN extends Pf{constructor(){super(),this.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2])}}class KT extends Pf{constructor(){super(),this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.vertexBuffer=new Xr(this.vertices),this.uvBuffer=new Xr(this.uvs),this.addAttribute("aVertexPosition",this.vertexBuffer).addAttribute("aTextureCoord",this.uvBuffer).addIndex([0,1,2,0,2,3])}map(e,t){let n=0,i=0;return this.uvs[0]=n,this.uvs[1]=i,this.uvs[2]=n+t.width/e.width,this.uvs[3]=i,this.uvs[4]=n+t.width/e.width,this.uvs[5]=i+t.height/e.height,this.uvs[6]=n,this.uvs[7]=i+t.height/e.height,n=t.x,i=t.y,this.vertices[0]=n,this.vertices[1]=i,this.vertices[2]=n+t.width,this.vertices[3]=i,this.vertices[4]=n+t.width,this.vertices[5]=i+t.height,this.vertices[6]=n,this.vertices[7]=i+t.height,this.invalidate(),this}invalidate(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this}}class mN{constructor(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=Br.NONE,this.sourceFrame=new Rt,this.destinationFrame=new Rt,this.bindingSourceFrame=new Rt,this.bindingDestinationFrame=new Rt,this.filters=[],this.transform=null}clear(){this.target=null,this.filters=null,this.renderTexture=null}}const rp=[new Mt,new Mt,new Mt,new Mt],t9=new Zr;class JT{constructor(e){this.renderer=e,this.defaultFilterStack=[{}],this.texturePool=new QT,this.statePool=[],this.quad=new pN,this.quadUv=new KT,this.tempRect=new Rt,this.activeState={},this.globalUniforms=new js({outputFrame:new Rt,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}init(){this.texturePool.setScreenSize(this.renderer.view)}push(e,t){const n=this.renderer,i=this.defaultFilterStack,s=this.statePool.pop()||new mN,a=n.renderTexture;let o,l;if(a.current){const v=a.current;o=v.resolution,l=v.multisample}else o=n.resolution,l=n.multisample;let u=t[0].resolution||o,h=t[0].multisample??l,c=t[0].padding,d=t[0].autoFit,f=t[0].legacy??!0;for(let v=1;v<t.length;v++){const _=t[v];u=Math.min(u,_.resolution||o),h=Math.min(h,_.multisample??l),c=this.useMaxPadding?Math.max(c,_.padding):c+_.padding,d=d&&_.autoFit,f=f||(_.legacy??!0)}i.length===1&&(this.defaultFilterStack[0].renderTexture=a.current),i.push(s),s.resolution=u,s.multisample=h,s.legacy=f,s.target=e,s.sourceFrame.copyFrom(e.filterArea||e.getBounds(!0)),s.sourceFrame.pad(c);const g=this.tempRect.copyFrom(a.sourceFrame);n.projection.transform&&this.transformAABB(t9.copyFrom(n.projection.transform).invert(),g),d?(s.sourceFrame.fit(g),(s.sourceFrame.width<=0||s.sourceFrame.height<=0)&&(s.sourceFrame.width=0,s.sourceFrame.height=0)):s.sourceFrame.intersects(g)||(s.sourceFrame.width=0,s.sourceFrame.height=0),this.roundFrame(s.sourceFrame,a.current?a.current.resolution:n.resolution,a.sourceFrame,a.destinationFrame,n.projection.transform),s.renderTexture=this.getOptimalFilterTexture(s.sourceFrame.width,s.sourceFrame.height,u,h),s.filters=t,s.destinationFrame.width=s.renderTexture.width,s.destinationFrame.height=s.renderTexture.height;const y=this.tempRect;y.x=0,y.y=0,y.width=s.sourceFrame.width,y.height=s.sourceFrame.height,s.renderTexture.filterFrame=s.sourceFrame,s.bindingSourceFrame.copyFrom(a.sourceFrame),s.bindingDestinationFrame.copyFrom(a.destinationFrame),s.transform=n.projection.transform,n.projection.transform=null,a.bind(s.renderTexture,s.sourceFrame,y),n.framebuffer.clear(0,0,0,0)}pop(){const e=this.defaultFilterStack,t=e.pop(),n=t.filters;this.activeState=t;const i=this.globalUniforms.uniforms;i.outputFrame=t.sourceFrame,i.resolution=t.resolution;const s=i.inputSize,a=i.inputPixel,o=i.inputClamp;if(s[0]=t.destinationFrame.width,s[1]=t.destinationFrame.height,s[2]=1/s[0],s[3]=1/s[1],a[0]=Math.round(s[0]*t.resolution),a[1]=Math.round(s[1]*t.resolution),a[2]=1/a[0],a[3]=1/a[1],o[0]=.5*a[2],o[1]=.5*a[3],o[2]=t.sourceFrame.width*s[2]-.5*a[2],o[3]=t.sourceFrame.height*s[3]-.5*a[3],t.legacy){const u=i.filterArea;u[0]=t.destinationFrame.width,u[1]=t.destinationFrame.height,u[2]=t.sourceFrame.x,u[3]=t.sourceFrame.y,i.filterClamp=i.inputClamp}this.globalUniforms.update();const l=e[e.length-1];if(this.renderer.framebuffer.blit(),n.length===1)n[0].apply(this,t.renderTexture,l.renderTexture,_u.BLEND,t),this.returnFilterTexture(t.renderTexture);else{let u=t.renderTexture,h=this.getOptimalFilterTexture(u.width,u.height,t.resolution);h.filterFrame=u.filterFrame;let c=0;for(c=0;c<n.length-1;++c){c===1&&t.multisample>1&&(h=this.getOptimalFilterTexture(u.width,u.height,t.resolution),h.filterFrame=u.filterFrame),n[c].apply(this,u,h,_u.CLEAR,t);const d=u;u=h,h=d}n[c].apply(this,u,l.renderTexture,_u.BLEND,t),c>1&&t.multisample>1&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(h)}t.clear(),this.statePool.push(t)}bindAndClear(e,t=_u.CLEAR){const{renderTexture:n,state:i}=this.renderer;if(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e==null?void 0:e.filterFrame){const a=this.tempRect;a.x=0,a.y=0,a.width=e.filterFrame.width,a.height=e.filterFrame.height,n.bind(e,e.filterFrame,a)}else e!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(e):this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const s=i.stateId&1||this.forceClear;(t===_u.CLEAR||t===_u.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(e,t,n,i){const s=this.renderer;s.state.set(e.state),this.bindAndClear(n,i),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,s.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),s.geometry.bind(this.quadUv),s.geometry.draw(Os.TRIANGLES)):(s.geometry.bind(this.quad),s.geometry.draw(Os.TRIANGLE_STRIP))}calculateSpriteMatrix(e,t){const{sourceFrame:n,destinationFrame:i}=this.activeState,{orig:s}=t._texture,a=e.set(i.width,0,0,i.height,n.x,n.y),o=t.worldTransform.copyTo(Zr.TEMP_MATRIX);return o.invert(),a.prepend(o),a.scale(1/s.width,1/s.height),a.translate(t.anchor.x,t.anchor.y),a}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(e,t,n=1,i=Br.NONE){return this.texturePool.getOptimalTexture(e,t,n,i)}getFilterTexture(e,t,n){if(typeof e=="number"){const s=e;e=t,t=s}e=e||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,n||Br.NONE);return i.filterFrame=e.filterFrame,i}returnFilterTexture(e){this.texturePool.returnTexture(e)}emptyPool(){this.texturePool.clear(!0)}
vendor: 14,094 bytes, line 470
470resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(e,t){const n=rp[0],i=rp[1],s=rp[2],a=rp[3];n.set(t.left,t.top),i.set(t.left,t.bottom),s.set(t.right,t.top),a.set(t.right,t.bottom),e.apply(n,n),e.apply(i,i),e.apply(s,s),e.apply(a,a);const o=Math.min(n.x,i.x,s.x,a.x),l=Math.min(n.y,i.y,s.y,a.y),u=Math.max(n.x,i.x,s.x,a.x),h=Math.max(n.y,i.y,s.y,a.y);t.x=o,t.y=l,t.width=u-o,t.height=h-l}roundFrame(e,t,n,i,s){if(!(e.width<=0||e.height<=0||n.width<=0||n.height<=0)){if(s){const{a,b:o,c:l,d:u}=s;if((Math.abs(o)>1e-4||Math.abs(l)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}s=s?t9.copyFrom(s):t9.identity(),s.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(s,e),e.ceil(t),this.transformAABB(s.invert(),e)}}}JT.extension={type:ze.RendererSystem,name:"filter"};Je.add(JT);class gN{constructor(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Br.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const yN=new Rt;class eE{constructor(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new Ty(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const e=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Rt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let t=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;Ye.PREFER_ENV===pc.WEBGL_LEGACY&&(t=null,n=null),t?e.drawBuffers=i=>t.drawBuffersWEBGL(i):(this.hasMRT=!1,e.drawBuffers=()=>{}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)}bind(e,t,n=0){const{gl:i}=this;if(e){const s=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,i.bindFramebuffer(i.FRAMEBUFFER,s.framebuffer)),s.mipLevel!==n&&(e.dirtyId++,e.dirtyFormat++,s.mipLevel=n),s.dirtyId!==e.dirtyId&&(s.dirtyId=e.dirtyId,s.dirtyFormat!==e.dirtyFormat?(s.dirtyFormat=e.dirtyFormat,s.dirtySize=e.dirtySize,this.updateFramebuffer(e,n)):s.dirtySize!==e.dirtySize&&(s.dirtySize=e.dirtySize,this.resizeFramebuffer(e)));for(let a=0;a<e.colorTextures.length;a++){const o=e.colorTextures[a];this.renderer.texture.unbind(o.parentTextureArray||o)}if(e.depthTexture&&this.renderer.texture.unbind(e.depthTexture),t){const a=t.width>>n,o=t.height>>n,l=a/t.width;this.setViewport(t.x*l,t.y*l,a,o)}else{const a=e.width>>n,o=e.height>>n;this.setViewport(0,0,a,o)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(e,t,n,i){const s=this.viewport;e=Math.round(e),t=Math.round(t),n=Math.round(n),i=Math.round(i),(s.width!==n||s.height!==i||s.x!==e||s.y!==t)&&(s.x=e,s.y=t,s.width=n,s.height=i,this.gl.viewport(e,t,n,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(e,t,n,i,s=Kg.COLOR|Kg.DEPTH){const{gl:a}=this;a.clearColor(e,t,n,i),a.clear(s)}initFramebuffer(e){const{gl:t}=this,n=new gN(t.createFramebuffer());return n.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(e),e.disposeRunner.add(this),n}resizeFramebuffer(e){const{gl:t}=this,n=e.glFramebuffers[this.CONTEXT_UID];if(n.stencil){t.bindRenderbuffer(t.RENDERBUFFER,n.stencil);let a;this.renderer.context.webGLVersion===1?a=t.DEPTH_STENCIL:e.depth&&e.stencil?a=t.DEPTH24_STENCIL8:e.depth?a=t.DEPTH_COMPONENT24:a=t.STENCIL_INDEX8,n.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,a,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,a,e.width,e.height)}const i=e.colorTextures;let s=i.length;t.drawBuffers||(s=Math.min(s,1));for(let a=0;a<s;a++){const o=i[a],l=o.parentTextureArray||o;this.renderer.texture.bind(l,0),a===0&&n.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,n.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,n.multisample,l._glTextures[this.CONTEXT_UID].internalFormat,e.width,e.height))}e.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(e.depthTexture,0)}updateFramebuffer(e,t){const{gl:n}=this,i=e.glFramebuffers[this.CONTEXT_UID],s=e.colorTextures;let a=s.length;n.drawBuffers||(a=Math.min(a,1)),i.multisample>1&&this.canMultisampleFramebuffer(e)?i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer():i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const o=[];for(let l=0;l<a;l++){const u=s[l],h=u.parentTextureArray||u;this.renderer.texture.bind(h,0),l===0&&i.msaaBuffer?(n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,h._glTextures[this.CONTEXT_UID].internalFormat,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):(n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+l,u.target,h._glTextures[this.CONTEXT_UID].texture,t),o.push(n.COLOR_ATTACHMENT0+l))}if(o.length>1&&n.drawBuffers(o),e.depthTexture&&this.writeDepthTexture){const l=e.depthTexture;this.renderer.texture.bind(l,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,l._glTextures[this.CONTEXT_UID].texture,t)}if((e.stencil||e.depth)&&!(e.depthTexture&&this.writeDepthTexture)){i.stencil=i.stencil||n.createRenderbuffer();let l,u;this.renderer.context.webGLVersion===1?(l=n.DEPTH_STENCIL_ATTACHMENT,u=n.DEPTH_STENCIL):e.depth&&e.stencil?(l=n.DEPTH_STENCIL_ATTACHMENT,u=n.DEPTH24_STENCIL8):e.depth?(l=n.DEPTH_ATTACHMENT,u=n.DEPTH_COMPONENT24):(l=n.STENCIL_ATTACHMENT,u=n.STENCIL_INDEX8),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,u,e.width,e.height):n.renderbufferStorage(n.RENDERBUFFER,u,e.width,e.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,l,n.RENDERBUFFER,i.stencil)}else i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(e){return this.renderer.context.webGLVersion!==1&&e.colorTextures.length<=1&&!e.depthTexture}detectSamples(e){const{msaaSamples:t}=this;let n=Br.NONE;if(e<=1||t===null)return n;for(let i=0;i<t.length;i++)if(t[i]<=e){n=t[i];break}return n===1&&(n=Br.NONE),n}blit(e,t,n){const{current:i,renderer:s,gl:a,CONTEXT_UID:o}=this;if(s.context.webGLVersion!==2||!i)return;const l=i.glFramebuffers[o];if(!l)return;if(!e){if(!l.msaaBuffer)return;const h=i.colorTextures[0];if(!h)return;l.blitFramebuffer||(l.blitFramebuffer=new Ty(i.width,i.height),l.blitFramebuffer.addColorTexture(0,h)),e=l.blitFramebuffer,e.colorTextures[0]!==h&&(e.colorTextures[0]=h,e.dirtyId++,e.dirtyFormat++),(e.width!==i.width||e.height!==i.height)&&(e.width=i.width,e.height=i.height,e.dirtyId++,e.dirtySize++)}t||(t=yN,t.width=i.width,t.height=i.height),n||(n=t);const u=t.width===n.width&&t.height===n.height;this.bind(e),a.bindFramebuffer(a.READ_FRAMEBUFFER,l.framebuffer),a.blitFramebuffer(t.left,t.top,t.right,t.bottom,n.left,n.top,n.right,n.bottom,a.COLOR_BUFFER_BIT,u?a.NEAREST:a.LINEAR),a.bindFramebuffer(a.READ_FRAMEBUFFER,e.glFramebuffers[this.CONTEXT_UID].framebuffer)}disposeFramebuffer(e,t){const n=e.glFramebuffers[this.CONTEXT_UID],i=this.gl;if(!n)return;delete e.glFramebuffers[this.CONTEXT_UID];const s=this.managedFramebuffers.indexOf(e);s>=0&&this.managedFramebuffers.splice(s,1),e.disposeRunner.remove(this),t||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&this.disposeFramebuffer(n.blitFramebuffer,t)}disposeAll(e){const t=this.managedFramebuffers;this.managedFramebuffers=[];for(let n=0;n<t.length;n++)this.disposeFramebuffer(t[n],e)}forceStencil(){const e=this.current;if(!e)return;const t=e.glFramebuffers[this.CONTEXT_UID];if(!t||t.stencil&&e.stencil)return;e.stencil=!0;const n=e.width,i=e.height,s=this.gl,a=t.stencil=s.createRenderbuffer();s.bindRenderbuffer(s.RENDERBUFFER,a);let o,l;this.renderer.context.webGLVersion===1?(o=s.DEPTH_STENCIL_ATTACHMENT,l=s.DEPTH_STENCIL):e.depth?(o=s.DEPTH_STENCIL_ATTACHMENT,l=s.DEPTH24_STENCIL8):(o=s.STENCIL_ATTACHMENT,l=s.STENCIL_INDEX8),t.msaaBuffer?s.renderbufferStorageMultisample(s.RENDERBUFFER,t.multisample,l,n,i):s.renderbufferStorage(s.RENDERBUFFER,l,n,i),s.framebufferRenderbuffer(s.FRAMEBUFFER,o,s.RENDERBUFFER,a)}reset(){this.current=this.unknownFramebuffer,this.viewport=new Rt}destroy(){this.renderer=null}}eE.extension={type:ze.RendererSystem,name:"framebuffer"};Je.add(eE);const r9={5126:4,5123:2,5121:1};class tE{constructor(e){this.renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}contextChange(){this.disposeAll(!0);const e=this.gl=this.renderer.gl,t=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,t.webGLVersion!==2){let n=this.renderer.context.extensions.vertexArrayObject;Ye.PREFER_ENV===pc.WEBGL_LEGACY&&(n=null),n?(e.createVertexArray=()=>n.createVertexArrayOES(),e.bindVertexArray=i=>n.bindVertexArrayOES(i),e.deleteVertexArray=i=>n.deleteVertexArrayOES(i)):(this.hasVao=!1,e.createVertexArray=()=>null,e.bindVertexArray=()=>null,e.deleteVertexArray=()=>null)}if(t.webGLVersion!==2){const n=e.getExtension("ANGLE_instanced_arrays");n?(e.vertexAttribDivisor=(i,s)=>n.vertexAttribDivisorANGLE(i,s),e.drawElementsInstanced=(i,s,a,o,l)=>n.drawElementsInstancedANGLE(i,s,a,o,l),e.drawArraysInstanced=(i,s,a,o)=>n.drawArraysInstancedANGLE(i,s,a,o)):this.hasInstance=!1}this.canUseUInt32ElementIndex=t.webGLVersion===2||!!t.extensions.uint32ElementIndex}bind(e,t){t=t||this.renderer.shader.shader;const{gl:n}=this;let i=e.glVertexArrayObjects[this.CONTEXT_UID],s=!1;i||(this.managedGeometries[e.id]=e,e.disposeRunner.add(this),e.glVertexArrayObjects[this.CONTEXT_UID]=i={},s=!0);const a=i[t.program.id]||this.initGeometryVao(e,t,s);this._activeGeometry=e,this._activeVao!==a&&(this._activeVao=a,this.hasVao?n.bindVertexArray(a):this.activateVao(e,t.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const e=this._activeGeometry,t=this.renderer.buffer;for(let n=0;n<e.buffers.length;n++){const i=e.buffers[n];t.update(i)}}checkCompatibility(e,t){const n=e.attributes,i=t.attributeData;for(const s in i)if(!n[s])throw new Error(`shader and geometry incompatible, geometry missing the "${s}" attribute`)}getSignature(e,t){const n=e.attributes,i=t.attributeData,s=["g",e.id];for(const a in n)i[a]&&s.push(a,i[a].location);return s.join("-")}initGeometryVao(e,t,n=!0){const i=this.gl,s=this.CONTEXT_UID,a=this.renderer.buffer,o=t.program;o.glPrograms[s]||this.renderer.shader.generateProgram(t),this.checkCompatibility(e,o);const l=this.getSignature(e,o),u=e.glVertexArrayObjects[this.CONTEXT_UID];let h=u[l];if(h)return u[o.id]=h,h;const c=e.buffers,d=e.attributes,f={},g={};for(const y in c)f[y]=0,g[y]=0;for(const y in d)!d[y].size&&o.attributeData[y]?d[y].size=o.attributeData[y].size:d[y].size||console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`),f[d[y].buffer]+=d[y].size*r9[d[y].type];for(const y in d){const v=d[y],_=v.size;v.stride===void 0&&(f[v.buffer]===_*r9[v.type]?v.stride=0:v.stride=f[v.buffer]),v.start===void 0&&(v.start=g[v.buffer],g[v.buffer]+=_*r9[v.type])}h=i.createVertexArray(),i.bindVertexArray(h);for(let y=0;y<c.length;y++){const v=c[y];a.bind(v),n&&v._glBuffers[s].refCount++}return this.activateVao(e,o),u[o.id]=h,u[l]=h,i.bindVertexArray(null),a.unbind(_a.ARRAY_BUFFER),h}disposeGeometry(e,t){var o;if(!this.managedGeometries[e.id])return;delete this.managedGeometries[e.id];const n=e.glVertexArrayObjects[this.CONTEXT_UID],i=this.gl,s=e.buffers,a=(o=this.renderer)==null?void 0:o.buffer;if(e.disposeRunner.remove(this),!!n){if(a)for(let l=0;l<s.length;l++){const u=s[l]._glBuffers[this.CONTEXT_UID];u&&(u.refCount--,u.refCount===0&&!t&&a.dispose(s[l],t))}if(!t){for(const l in n)if(l[0]==="g"){const u=n[l];this._activeVao===u&&this.unbind(),i.deleteVertexArray(u)}}delete e.glVertexArrayObjects[this.CONTEXT_UID]}}disposeAll(e){const t=Object.keys(this.managedGeometries);for(let n=0;n<t.length;n++)this.disposeGeometry(this.managedGeometries[t[n]],e)}activateVao(e,t){const n=this.gl,i=this.CONTEXT_UID,s=this.renderer.buffer,a=e.buffers,o=e.attributes;e.indexBuffer&&s.bind(e.indexBuffer);let l=null;for(const u in o){const h=o[u],c=a[h.buffer],d=c._glBuffers[i];if(t.attributeData[u]){l!==d&&(s.bind(c),l=d);const f=t.attributeData[u].location;if(n.enableVertexAttribArray(f),n.vertexAttribPointer(f,h.size,h.type||n.FLOAT,h.normalized,h.stride,h.start),h.instance)if(this.hasInstance)n.vertexAttribDivisor(f,h.divisor);else throw new Error("geometry error, GPU Instancing is not supported on this device")}}}draw(e,t,n,i){const{gl:s}=this,a=this._activeGeometry;if(a.indexBuffer){const o=a.indexBuffer.data.BYTES_PER_ELEMENT,l=o===2?s.UNSIGNED_SHORT:s.UNSIGNED_INT;o===2||o===4&&this.canUseUInt32ElementIndex?a.instanced?s.drawElementsInstanced(e,t||a.indexBuffer.data.length,l,(n||0)*o,i||1):s.drawElements(e,t||a.indexBuffer.data.length,l,(n||0)*o):console.warn("unsupported index buffer type: uint32")}else a.instanced?s.drawArraysInstanced(e,n,t||a.getSize(),i||1):s.drawArrays(e,n,t||a.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this.renderer=null}}tE.extension={type:ze.RendererSystem,name:"geometry"};Je.add(tE);const j6=new Zr;let I_=class{constructor(e,t){this._texture=e,this.mapCoord=new Zr,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof t>"u"?.5:t,this.isSimple=!1}get texture(){return this._texture}set texture(e){this._texture=e,this._textureID=-1}
vendor: 1,374 bytes, lines 470-487
470multiplyUvs(e,t){t===void 0&&(t=e);const n=this.mapCoord;for(let i=0;i<e.length;i+=2){const s=e[i],a=e[i+1];t[i]=s*n.a+a*n.c+n.tx,t[i+1]=s*n.b+a*n.d+n.ty}return t}update(e){const t=this._texture;if(!t||!t.valid||!e&&this._textureID===t._updateID)return!1;this._textureID=t._updateID,this._updateID++;const n=t._uvs;this.mapCoord.set(n.x1-n.x0,n.y1-n.y0,n.x3-n.x0,n.y3-n.y0,n.x0,n.y0);const i=t.orig,s=t.trim;s&&(j6.set(i.width/s.width,0,0,i.height/s.height,-s.x/s.width,-s.y/s.height),this.mapCoord.append(j6));const a=t.baseTexture,o=this.uClampFrame,l=this.clampMargin/a.resolution,u=this.clampOffset;return o[0]=(t._frame.x+l+u)/a.width,o[1]=(t._frame.y+l+u)/a.height,o[2]=(t._frame.x+t._frame.width-l+u)/a.width,o[3]=(t._frame.y+t._frame.height-l+u)/a.height,this.uClampOffset[0]=u/a.realWidth,this.uClampOffset[1]=u/a.realHeight,this.isSimple=t._frame.width===a.width&&t._frame.height===a.height&&t.rotate===0,!0}};var vN=`varying vec2 vMaskCoord;
471varying vec2 vTextureCoord;
472
473uniform sampler2D uSampler;
474uniform sampler2D mask;
475uniform float alpha;
476uniform float npmAlpha;
477uniform vec4 maskClamp;
478
479void main(void)
480{
481    float clip = step(3.5,
482        step(maskClamp.x, vMaskCoord.x) +
483        step(maskClamp.y, vMaskCoord.y) +
484        step(vMaskCoord.x, maskClamp.z) +
485        step(vMaskCoord.y, maskClamp.w));
486
487    vec4 original = texture2D(uSampler, vTextureCoord);
488    vec4 masky = texture2D(mask, vMaskCoord);
489    float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
490
491    original *= (alphaMul * masky.r * alpha * clip);
492
493    gl_FragColor = original;
494}
495`,_N=`attribute vec2 aVertexPosition;
496attribute vec2 aTextureCoord;
497
498uniform mat3 projectionMatrix;
499uniform mat3 otherMatrix;
500
501varying vec2 vMaskCoord;
502varying vec2 vTextureCoord;
503
504void main(void)
505{
506    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
507
508    vTextureCoord = aTextureCoord;
509    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;
510}
511`;class xN extends fl{constructor(e,t,n){let i=null;typeof e!="string"&&t===void 0&&n===void 0&&(i=e,e=void 0,t=void 0,n=void 0),super(e||_N,t||vN,n),this.maskSprite=i,this.maskMatrix=new Zr}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,n,i){const s=this._maskSprite,a=s._texture;a.valid&&(a.uvMatrix||(a.uvMatrix=new I_(a,0)),a.uvMatrix.update(),this.uniforms.npmAlpha=a.baseTexture.alphaMode?0:1,this.uniforms.mask=a,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,s).prepend(a.uvMatrix.mapCoord),this.uniforms.alpha=s.worldAlpha,this.uniforms.maskClamp=a.uvMatrix.uClampFrame,e.applyFilter(this,t,n,i))}}class CN{constructor(e=null){this.type=Gr.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=fl.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=Gr.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class rE{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let n=t;if(!n.isMaskData){const s=this.maskDataPool.pop()||new CN;s.pooled=!0,s.maskObject=t,n=s}const i=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(n.copyCountersOrReset(i),n._colorMask=i?i._colorMask:15,n.autoDetect&&this.detect(n),n._target=e,n.type!==Gr.SPRITE&&this.maskStack.push(n),n.enabled)switch(n.type){case Gr.SCISSOR:this.renderer.scissor.push(n);break;case Gr.STENCIL:this.renderer.stencil.push(n);break;case Gr.SPRITE:n.copyCountersOrReset(null),this.pushSpriteMask(n);break;case Gr.COLOR:this.pushColorMask(n);break}n.type===Gr.SPRITE&&this.maskStack.push(n)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case Gr.SCISSOR:this.renderer.scissor.pop(t);break;case Gr.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case Gr.SPRITE:this.popSpriteMask(t);break;case Gr.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const n=this.maskStack[this.maskStack.length-1];n.type===Gr.SPRITE&&n._filters&&(n._filters[0].maskSprite=n.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=Gr.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=Gr.SCISSOR:e.type=Gr.STENCIL:e.type=Gr.COLOR}pushSpriteMask(e){const{maskObject:t}=e,n=e._target;let i=e._filters;i||(i=this.alphaMaskPool[this.alphaMaskIndex],i||(i=this.alphaMaskPool[this.alphaMaskIndex]=[new xN])),i[0].resolution=e.resolution,i[0].multisample=e.multisample,i[0].maskSprite=t;const s=n.filterArea;n.filterArea=t.getBounds(!0),this.renderer.filter.push(n,i),n.filterArea=s,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,n=e._colorMask=t&e.colorMask;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}popColorMask(e){const t=e._colorMask,n=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;n!==t&&this.renderer.gl.colorMask((n&1)!==0,(n&2)!==0,(n&4)!==0,(n&8)!==0)}destroy(){this.renderer=null}}rE.extension={type:ze.RendererSystem,name:"mask"};Je.add(rE);
vendor: 40,271 bytes, lines 511-590
511class nE{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,n=this.getStackLength();this.maskStack=e;const i=this.getStackLength();i!==n&&(i===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const V6=new Zr,G6=[],iE=class Up extends nE{constructor(e){super(e),this.glConst=Ye.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:i}=this,s=i.renderTexture,a=n.getBounds(!0,G6.pop()??new Rt);this.roundFrameToPixels(a,s.current?s.current.resolution:i.resolution,s.sourceFrame,s.destinationFrame,i.projection.transform),t&&a.fit(t),e._scissorRectLocal=a}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:i,d:s}=e;return(Math.abs(n)>1e-4||Math.abs(i)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(s)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||Up.isMatrixRotated(t.worldTransform)||Up.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,i,s){Up.isMatrixRotated(s)||(s=s?V6.copyFrom(s):V6.identity(),s.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.renderer.filter.transformAABB(s,e),e.fit(i),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&G6.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};iE.extension={type:ze.RendererSystem,name:"scissor"};let wN=iE;Je.add(wN);class sE extends nE{constructor(e){super(e),this.glConst=Ye.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0}push(e){const t=e.maskObject,{gl:n}=this.renderer,i=e._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++;const s=e._colorMask;s!==0&&(e._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilFunc(n.EQUAL,i,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,s!==0&&(e._colorMask=s,n.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this._useCurrent()}pop(e){const t=this.renderer.gl;if(this.getStackLength()===0)t.disable(t.STENCIL_TEST);else{const n=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=n?n._colorMask:15;i!==0&&(n._colorMask=0,t.colorMask(!1,!1,!1,!1)),t.stencilOp(t.KEEP,t.KEEP,t.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,i!==0&&(n._colorMask=i,t.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const e=this.renderer.gl;e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)}}sE.extension={type:ze.RendererSystem,name:"stencil"};Je.add(sE);class aE{constructor(e){this.renderer=e,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return Dt("7.0.0","renderer.plugins.extract has moved to renderer.extract"),e.extract}},prepare:{enumerable:!1,get(){return Dt("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),e.prepare}},interaction:{enumerable:!1,get(){return Dt("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),e.events}}})}init(){const e=this.rendererPlugins;for(const t in e)this.plugins[t]=new e[t](this.renderer)}destroy(){for(const e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null}}aE.extension={type:[ze.RendererSystem,ze.CanvasRendererSystem],name:"_plugin"};Je.add(aE);class oE{constructor(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Zr,this.transform=null}update(e,t,n,i){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);const s=this.renderer;s.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,s.globalUniforms.update(),s.shader.shader&&s.shader.syncUniformGroup(s.shader.shader.uniforms.globals)}calculateProjection(e,t,n,i){const s=this.projectionMatrix,a=i?-1:1;s.identity(),s.a=1/t.width*2,s.d=a*(1/t.height*2),s.tx=-1-t.x*s.a,s.ty=-a-t.y*s.d}setTransform(e){}destroy(){this.renderer=null}}oE.extension={type:ze.RendererSystem,name:"projection"};Je.add(oE);const bN=new N4,W6=new Rt;class lE{constructor(e){this.renderer=e,this._tempMatrix=new Zr}generateTexture(e,t){const{region:n,...i}=t||{},s=(n==null?void 0:n.copyTo(W6))||e.getLocalBounds(W6,!0),a=i.resolution||this.renderer.resolution;s.width=Math.max(s.width,1/a),s.height=Math.max(s.height,1/a),i.width=s.width,i.height=s.height,i.resolution=a,i.multisample??(i.multisample=this.renderer.multisample);const o=U4.create(i);this._tempMatrix.tx=-s.x,this._tempMatrix.ty=-s.y;const l=e.transform;return e.transform=bN,this.renderer.render(e,{renderTexture:o,transform:this._tempMatrix,skipUpdateTransform:!!e.parent,blit:!0}),e.transform=l,o}destroy(){}}lE.extension={type:[ze.RendererSystem,ze.CanvasRendererSystem],name:"textureGenerator"};Je.add(lE);const du=new Rt,D1=new Rt;class uE{constructor(e){this.renderer=e,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Rt,this.destinationFrame=new Rt,this.viewportFrame=new Rt}contextChange(){var t;const e=(t=this.renderer)==null?void 0:t.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(e&&e.alpha&&e.premultipliedAlpha)}bind(e=null,t,n){const i=this.renderer;this.current=e;let s,a,o;e?(s=e.baseTexture,o=s.resolution,t||(du.width=e.frame.width,du.height=e.frame.height,t=du),n||(D1.x=e.frame.x,D1.y=e.frame.y,D1.width=t.width,D1.height=t.height,n=D1),a=s.framebuffer):(o=i.resolution,t||(du.width=i._view.screen.width,du.height=i._view.screen.height,t=du),n||(n=du,n.width=t.width,n.height=t.height));const l=this.viewportFrame;l.x=n.x*o,l.y=n.y*o,l.width=n.width*o,l.height=n.height*o,e||(l.y=i.view.height-(l.y+l.height)),l.ceil(),this.renderer.framebuffer.bind(a,l),this.renderer.projection.update(n,t,o,!a),e?this.renderer.mask.setMaskStack(s.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(n)}clear(e,t){const n=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=wr.shared.setValue(e||n);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const s=this.destinationFrame,a=this.current?this.current.baseTexture:this.renderer._view.screen,o=s.width!==a.width||s.height!==a.height;if(o){let{x:l,y:u,width:h,height:c}=this.viewportFrame;l=Math.round(l),u=Math.round(u),h=Math.round(h),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(l,u,h,c)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,t),o&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}uE.extension={type:ze.RendererSystem,name:"renderTexture"};Je.add(uE);class SN{constructor(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function AN(r,e){const t={},n=e.getProgramParameter(r,e.ACTIVE_ATTRIBUTES);for(let i=0;i<n;i++){const s=e.getActiveAttrib(r,i);if(s.name.startsWith("gl_"))continue;const a=XT(e,s.type),o={type:a,name:s.name,size:WT(a),location:e.getAttribLocation(r,s.name)};t[s.name]=o}return t}function TN(r,e){const t={},n=e.getProgramParameter(r,e.ACTIVE_UNIFORMS);for(let i=0;i<n;i++){const s=e.getActiveUniform(r,i),a=s.name.replace(/\[.*?\]$/,""),o=!!s.name.match(/\[.*?\]$/),l=XT(e,s.type);t[a]={name:a,index:i,type:l,size:s.size,isArray:o,value:VT(l,s.size)}}return t}function EN(r,e){var o;const t=O6(r,r.VERTEX_SHADER,e.vertexSrc),n=O6(r,r.FRAGMENT_SHADER,e.fragmentSrc),i=r.createProgram();r.attachShader(i,t),r.attachShader(i,n);const s=(o=e.extra)==null?void 0:o.transformFeedbackVaryings;if(s&&(typeof r.transformFeedbackVaryings!="function"?console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given."):r.transformFeedbackVaryings(i,s.names,s.bufferMode==="separate"?r.SEPARATE_ATTRIBS:r.INTERLEAVED_ATTRIBS)),r.linkProgram(i),r.getProgramParameter(i,r.LINK_STATUS)||rN(r,i,t,n),e.attributeData=AN(i,r),e.uniformData=TN(i,r),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){const l=Object.keys(e.attributeData);l.sort((u,h)=>u>h?1:-1);for(let u=0;u<l.length;u++)e.attributeData[l[u]].location=u,r.bindAttribLocation(i,u,l[u]);r.linkProgram(i)}r.deleteShader(t),r.deleteShader(n);const a={};for(const l in e.uniformData){const u=e.uniformData[l];a[l]={location:r.getUniformLocation(i,l),value:VT(u.type,u.size)}}return new SN(i,a)}function PN(r,e,t,n,i){t.buffer.update(i)}const DN={float:`
512        data[offset] = v;
513    `,vec2:`
514        data[offset] = v[0];
515        data[offset+1] = v[1];
516    `,vec3:`
517        data[offset] = v[0];
518        data[offset+1] = v[1];
519        data[offset+2] = v[2];
520
521    `,vec4:`
522        data[offset] = v[0];
523        data[offset+1] = v[1];
524        data[offset+2] = v[2];
525        data[offset+3] = v[3];
526    `,mat2:`
527        data[offset] = v[0];
528        data[offset+1] = v[1];
529
530        data[offset+4] = v[2];
531        data[offset+5] = v[3];
532    `,mat3:`
533        data[offset] = v[0];
534        data[offset+1] = v[1];
535        data[offset+2] = v[2];
536
537        data[offset + 4] = v[3];
538        data[offset + 5] = v[4];
539        data[offset + 6] = v[5];
540
541        data[offset + 8] = v[6];
542        data[offset + 9] = v[7];
543        data[offset + 10] = v[8];
544    `,mat4:`
545        for(var i = 0; i < 16; i++)
546        {
547            data[offset + i] = v[i];
548        }
549    `},cE={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function HN(r){const e=r.map(s=>({data:s,offset:0,dataLen:0,dirty:0}));let t=0,n=0,i=0;for(let s=0;s<e.length;s++){const a=e[s];if(t=cE[a.data.type],a.data.size>1&&(t=Math.max(t,16)*a.data.size),a.dataLen=t,n%t!==0&&n<16){const o=n%t%16;n+=o,i+=o}n+t>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=t,n=t):(a.offset=i,n+=t,i+=t)}return i=Math.ceil(i/16)*16,{uboElements:e,size:i}}function kN(r,e){const t=[];for(const n in r)e[n]&&t.push(e[n]);return t.sort((n,i)=>n.index-i.index),t}function IN(r,e){if(!r.autoManage)return{size:0,syncFunc:PN};const t=kN(r.uniforms,e),{uboElements:n,size:i}=HN(t),s=[`
550    var v = null;
551    var v2 = null;
552    var cv = null;
553    var t = 0;
554    var gl = renderer.gl
555    var index = 0;
556    var data = buffer.data;
557    `];for(let a=0;a<n.length;a++){const o=n[a],l=r.uniforms[o.data.name],u=o.data.name;let h=!1;for(let c=0;c<$h.length;c++){const d=$h[c];if(d.codeUbo&&d.test(o.data,l)){s.push(`offset = ${o.offset/4};`,$h[c].codeUbo(o.data.name,l)),h=!0;break}}if(!h)if(o.data.size>1){const c=WT(o.data.type),d=Math.max(cE[o.data.type]/16,1),f=c/d,g=(4-f%4)%4;s.push(`
558                cv = ud.${u}.value;
559                v = uv.${u};
560                offset = ${o.offset/4};
561
562                t = 0;
563
564                for(var i=0; i < ${o.data.size*d}; i++)
565                {
566                    for(var j = 0; j < ${f}; j++)
567                    {
568                        data[offset++] = v[t++];
569                    }
570                    offset += ${g};
571                }
572
573                `)}else{const c=DN[o.data.type];s.push(`
574                cv = ud.${u}.value;
575                v = uv.${u};
576                offset = ${o.offset/4};
577                ${c};
578                `)}}return s.push(`
579       renderer.buffer.update(buffer);
580    `),{size:i,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join(`
581`))}}let MN=0;const np={textureCount:0,uboCount:0};class hE{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=MN++}systemCheck(){if(!iN())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const n=e.program,i=n.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==n&&(this.program=n,this.gl.useProgram(i.program)),t||(np.textureCount=0,np.uboCount=0,this.syncUniformGroup(e.uniformGroup,np)),i}setUniforms(e){const t=this.shader.program,n=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(n.uniformData,e,this.renderer)}syncUniformGroup(e,t){const n=this.getGlProgram();(!e.static||e.dirtyId!==n.uniformDirtyGroups[e.id])&&(n.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,n,t))}syncUniforms(e,t,n){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,n)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=JO(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const n=this.getGlProgram();if(!e.static||e.dirtyId!==0||!n.uniformGroups[e.id]){e.dirtyId=0;const i=n.uniformGroups[e.id]||this.createSyncBufferGroup(e,n,t);e.buffer.update(),i(n.uniformData,e.uniforms,this.renderer,np,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,n.uniformBufferBindings[t])}createSyncBufferGroup(e,t,n){const{gl:i}=this.renderer;this.renderer.buffer.bind(e.buffer);const s=this.gl.getUniformBlockIndex(t.program,n);t.uniformBufferBindings[n]=this.shader.uniformBindCount,i.uniformBlockBinding(t.program,s,this.shader.uniformBindCount),this.shader.uniformBindCount++;const a=this.getSignature(e,this.shader.program.uniformData,"ubo");let o=this._uboCache[a];if(o||(o=this._uboCache[a]=IN(e,this.shader.program.uniformData)),e.autoManage){const l=new Float32Array(o.size/4);e.buffer.update(l)}return t.uniformGroups[e.id]=o.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,n){const i=e.uniforms,s=[`${n}-`];for(const a in i)s.push(a),t[a]&&s.push(t[a].type);return s.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,n=e.program,i=EN(t,n);return n.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}hE.extension={type:ze.RendererSystem,name:"shader"};Je.add(hE);class V3{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.2 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}V3.defaultOptions={hello:!1},V3.extension={type:[ze.RendererSystem,ze.CanvasRendererSystem],name:"startup"};Je.add(V3);function RN(r,e=[]){return e[et.NORMAL]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.ADD]=[r.ONE,r.ONE],e[et.MULTIPLY]=[r.DST_COLOR,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.SCREEN]=[r.ONE,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.OVERLAY]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.DARKEN]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.LIGHTEN]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.COLOR_DODGE]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.COLOR_BURN]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.HARD_LIGHT]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.SOFT_LIGHT]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.DIFFERENCE]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.EXCLUSION]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.HUE]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.SATURATION]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.COLOR]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.LUMINOSITY]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.NONE]=[0,0],e[et.NORMAL_NPM]=[r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.ADD_NPM]=[r.SRC_ALPHA,r.ONE,r.ONE,r.ONE],e[et.SCREEN_NPM]=[r.SRC_ALPHA,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],e[et.SRC_IN]=[r.DST_ALPHA,r.ZERO],e[et.SRC_OUT]=[r.ONE_MINUS_DST_ALPHA,r.ZERO],e[et.SRC_ATOP]=[r.DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],e[et.DST_OVER]=[r.ONE_MINUS_DST_ALPHA,r.ONE],e[et.DST_IN]=[r.ZERO,r.SRC_ALPHA],e[et.DST_OUT]=[r.ZERO,r.ONE_MINUS_SRC_ALPHA],e[et.DST_ATOP]=[r.ONE_MINUS_DST_ALPHA,r.SRC_ALPHA],e[et.XOR]=[r.ONE_MINUS_DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],e[et.SUBTRACT]=[r.ONE,r.ONE,r.ONE,r.ONE,r.FUNC_REVERSE_SUBTRACT,r.FUNC_ADD],e}const FN=0,LN=1,ON=2,NN=3,BN=4,UN=5,dE=class Ey{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=et.NONE,this._blendEq=!1,this.map=[],this.map[FN]=this.setBlend,this.map[LN]=this.setOffset,this.map[ON]=this.setCullFace,this.map[NN]=this.setDepthTest,this.map[BN]=this.setFrontFace,this.map[UN]=this.setDepthMask,this.checks=[],this.defaultState=new Da,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=RN(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<<n)),t=t>>1,n++;this.stateId=e.data}for(let t=0;t<this.checks.length;t++)this.checks[t](this,e)}forceState(e){e=e||this.defaultState;for(let t=0;t<this.map.length;t++)this.map[t].call(this,!!(e.data&1<<t));for(let t=0;t<this.checks.length;t++)this.checks[t](this,e);this.stateId=e.data}setBlend(e){this.updateCheck(Ey.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)}setOffset(e){this.updateCheck(Ey.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)}setDepthTest(e){this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST)}setDepthMask(e){this.gl.depthMask(e)}setCullFace(e){this.gl[e?"enable":"disable"](this.gl.CULL_FACE)}setFrontFace(e){this.gl.frontFace(this.gl[e?"CW":"CCW"])}setBlendMode(e){if(e===this.blendMode)return;this.blendMode=e;const t=this.blendModes[e],n=this.gl;t.length===2?n.blendFunc(t[0],t[1]):n.blendFuncSeparate(t[0],t[1],t[2],t[3]),t.length===6?(this._blendEq=!0,n.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,n.blendEquationSeparate(n.FUNC_ADD,n.FUNC_ADD))}setPolygonOffset(e,t){this.gl.polygonOffset(e,t)}reset(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)}updateCheck(e,t){const n=this.checks.indexOf(e);t&&n===-1?this.checks.push(e):!t&&n!==-1&&this.checks.splice(n,1)}static checkBlendMode(e,t){e.setBlendMode(t.blendMode)}static checkPolygonOffset(e,t){e.setPolygonOffset(1,t.polygonOffset)}destroy(){this.gl=null}};dE.extension={type:ze.RendererSystem,name:"state"};let $N=dE;Je.add($N);class zN extends Af{constructor(){super(...arguments),this.runners={},this._systemsHash={}}setup(e){this.addRunners(...e.runners);const t=(e.priority??[]).filter(i=>e.systems[i]),n=[...t,...Object.keys(e.systems).filter(i=>!t.includes(i))];for(const i of n)this.addSystem(e.systems[i],i)}addRunners(...e){e.forEach(t=>{this.runners[t]=new zs(t)})}addSystem(e,t){const n=new e(this);if(this[t])throw new Error(`Whoops! The name "${t}" is already in use`);this[t]=n,this._systemsHash[t]=n;for(const i in this.runners)this.runners[i].add(n);return this}emitWithCustomOptions(e,t){const n=Object.keys(this._systemsHash);e.items.forEach(i=>{const s=n.find(a=>this._systemsHash[a]===i);i[e.name](t[s])})}destroy(){Object.values(this.runners).forEach(e=>{e.destroy()}),this._systemsHash={}}}const G1=class $p{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=$p.defaultMaxIdle,this.checkCountMax=$p.defaultCheckCountMax,this.mode=$p.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==w_.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let i=0;i<t.length;i++){const s=t[i];s.resource&&this.count-s.touched>this.maxIdle&&(e.destroyTexture(s,!0),t[i]=null,n=!0)}if(n){let i=0;for(let s=0;s<t.length;s++)t[s]!==null&&(t[i++]=t[s]);t.length=i}}unload(e){const t=this.renderer.texture,n=e._texture;n&&!n.framebuffer&&t.destroyTexture(n);for(let i=e.children.length-1;i>=0;i--)this.unload(e.children[i])}destroy(){this.renderer=null}};G1.defaultMode=w_.AUTO,G1.defaultMaxIdle=60*60,G1.defaultCheckCountMax=60*10,G1.extension={type:ze.RendererSystem,name:"textureGC"};let Au=G1;Je.add(Au);class n9{constructor(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=ot.UNSIGNED_BYTE,this.internalFormat=He.RGBA,this.samplerType=0}}function jN(r){let e;return"WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext?e={[r.RGB]:Me.FLOAT,[r.RGBA]:Me.FLOAT,[r.ALPHA]:Me.FLOAT,[r.LUMINANCE]:Me.FLOAT,[r.LUMINANCE_ALPHA]:Me.FLOAT,[r.R8]:Me.FLOAT,[r.R8_SNORM]:Me.FLOAT,[r.RG8]:Me.FLOAT,[r.RG8_SNORM]:Me.FLOAT,[r.RGB8]:Me.FLOAT,[r.RGB8_SNORM]:Me.FLOAT,[r.RGB565]:Me.FLOAT,[r.RGBA4]:Me.FLOAT,[r.RGB5_A1]:Me.FLOAT,[r.RGBA8]:Me.FLOAT,[r.RGBA8_SNORM]:Me.FLOAT,[r.RGB10_A2]:Me.FLOAT,[r.RGB10_A2UI]:Me.FLOAT,[r.SRGB8]:Me.FLOAT,[r.SRGB8_ALPHA8]:Me.FLOAT,[r.R16F]:Me.FLOAT,[r.RG16F]:Me.FLOAT,[r.RGB16F]:Me.FLOAT,[r.RGBA16F]:Me.FLOAT,[r.R32F]:Me.FLOAT,[r.RG32F]:Me.FLOAT,[r.RGB32F]:Me.FLOAT,[r.RGBA32F]:Me.FLOAT,[r.R11F_G11F_B10F]:Me.FLOAT,[r.RGB9_E5]:Me.FLOAT,[r.R8I]:Me.INT,[r.R8UI]:Me.UINT,[r.R16I]:Me.INT,[r.R16UI]:Me.UINT,[r.R32I]:Me.INT,[r.R32UI]:Me.UINT,[r.RG8I]:Me.INT,[r.RG8UI]:Me.UINT,[r.RG16I]:Me.INT,[r.RG16UI]:Me.UINT,[r.RG32I]:Me.INT,[r.RG32UI]:Me.UINT,[r.RGB8I]:Me.INT,[r.RGB8UI]:Me.UINT,[r.RGB16I]:Me.INT,[r.RGB16UI]:Me.UINT,[r.RGB32I]:Me.INT,[r.RGB32UI]:Me.UINT,[r.RGBA8I]:Me.INT,[r.RGBA8UI]:Me.UINT,[r.RGBA16I]:Me.INT,[r.RGBA16UI]:Me.UINT,[r.RGBA32I]:Me.INT,[r.RGBA32UI]:Me.UINT,[r.DEPTH_COMPONENT16]:Me.FLOAT,[r.DEPTH_COMPONENT24]:Me.FLOAT,[r.DEPTH_COMPONENT32F]:Me.FLOAT,[r.DEPTH_STENCIL]:Me.FLOAT,[r.DEPTH24_STENCIL8]:Me.FLOAT,[r.DEPTH32F_STENCIL8]:Me.FLOAT}:e={[r.RGB]:Me.FLOAT,[r.RGBA]:Me.FLOAT,[r.ALPHA]:Me.FLOAT,[r.LUMINANCE]:Me.FLOAT,[r.LUMINANCE_ALPHA]:Me.FLOAT,[r.DEPTH_STENCIL]:Me.FLOAT},e}function VN(r){let e;return"WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext?e={[ot.UNSIGNED_BYTE]:{[He.RGBA]:r.RGBA8,[He.RGB]:r.RGB8,[He.RG]:r.RG8,[He.RED]:r.R8,[He.RGBA_INTEGER]:r.RGBA8UI,[He.RGB_INTEGER]:r.RGB8UI,[He.RG_INTEGER]:r.RG8UI,[He.RED_INTEGER]:r.R8UI,[He.ALPHA]:r.ALPHA,[He.LUMINANCE]:r.LUMINANCE,[He.LUMINANCE_ALPHA]:r.LUMINANCE_ALPHA},[ot.BYTE]:{[He.RGBA]:r.RGBA8_SNORM,[He.RGB]:r.RGB8_SNORM,[He.RG]:r.RG8_SNORM,[He.RED]:r.R8_SNORM,[He.RGBA_INTEGER]:r.RGBA8I,[He.RGB_INTEGER]:r.RGB8I,[He.RG_INTEGER]:r.RG8I,[He.RED_INTEGER]:r.R8I},[ot.UNSIGNED_SHORT]:{[He.RGBA_INTEGER]:r.RGBA16UI,[He.RGB_INTEGER]:r.RGB16UI,[He.RG_INTEGER]:r.RG16UI,[He.RED_INTEGER]:r.R16UI,[He.DEPTH_COMPONENT]:r.DEPTH_COMPONENT16},[ot.SHORT]:{[He.RGBA_INTEGER]:r.RGBA16I,[He.RGB_INTEGER]:r.RGB16I,[He.RG_INTEGER]:r.RG16I,[He.RED_INTEGER]:r.R16I},[ot.UNSIGNED_INT]:{[He.RGBA_INTEGER]:r.RGBA32UI,[He.RGB_INTEGER]:r.RGB32UI,[He.RG_INTEGER]:r.RG32UI,[He.RED_INTEGER]:r.R32UI,[He.DEPTH_COMPONENT]:r.DEPTH_COMPONENT24},[ot.INT]:{[He.RGBA_INTEGER]:r.RGBA32I,[He.RGB_INTEGER]:r.RGB32I,[He.RG_INTEGER]:r.RG32I,[He.RED_INTEGER]:r.R32I},[ot.FLOAT]:{[He.RGBA]:r.RGBA32F,[He.RGB]:r.RGB32F,[He.RG]:r.RG32F,[He.RED]:r.R32F,[He.DEPTH_COMPONENT]:r.DEPTH_COMPONENT32F},[ot.HALF_FLOAT]:{[He.RGBA]:r.RGBA16F,[He.RGB]:r.RGB16F,[He.RG]:r.RG16F,[He.RED]:r.R16F},[ot.UNSIGNED_SHORT_5_6_5]:{[He.RGB]:r.RGB565},[ot.UNSIGNED_SHORT_4_4_4_4]:{[He.RGBA]:r.RGBA4},[ot.UNSIGNED_SHORT_5_5_5_1]:{[He.RGBA]:r.RGB5_A1},[ot.UNSIGNED_INT_2_10_10_10_REV]:{[He.RGBA]:r.RGB10_A2,[He.RGBA_INTEGER]:r.RGB10_A2UI},[ot.UNSIGNED_INT_10F_11F_11F_REV]:{[He.RGB]:r.R11F_G11F_B10F},[ot.UNSIGNED_INT_5_9_9_9_REV]:{[He.RGB]:r.RGB9_E5},[ot.UNSIGNED_INT_24_8]:{[He.DEPTH_STENCIL]:r.DEPTH24_STENCIL8},[ot.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[He.DEPTH_STENCIL]:r.DEPTH32F_STENCIL8}}:e={[ot.UNSIGNED_BYTE]:{[He.RGBA]:r.RGBA,[He.RGB]:r.RGB,[He.ALPHA]:r.ALPHA,[He.LUMINANCE]:r.LUMINANCE,[He.LUMINANCE_ALPHA]:r.LUMINANCE_ALPHA},[ot.UNSIGNED_SHORT_5_6_5]:{[He.RGB]:r.RGB},[ot.UNSIGNED_SHORT_4_4_4_4]:{[He.RGBA]:r.RGBA},[ot.UNSIGNED_SHORT_5_5_5_1]:{[He.RGBA]:r.RGBA}},e}class fE{constructor(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new bt,this.hasIntegerTextures=!1}contextChange(){const e=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=VN(e),this.samplerTypes=jN(e);const t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=t;for(let i=0;i<t;i++)this.boundTextures[i]=null;this.emptyTextures={};const n=new n9(e.createTexture());e.bindTexture(e.TEXTURE_2D,n.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[e.TEXTURE_2D]=n,this.emptyTextures[e.TEXTURE_CUBE_MAP]=new n9(e.createTexture()),e.bindTexture(e.TEXTURE_CUBE_MAP,this.emptyTextures[e.TEXTURE_CUBE_MAP].texture);for(let i=0;i<6;i++)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,e.LINEAR);for(let i=0;i<this.boundTextures.length;i++)this.bind(null,i)}bind(e,t=0){const{gl:n}=this;if(e=e==null?void 0:e.castToBaseTexture(),(e==null?void 0:e.valid)&&!e.parentTextureArray){e.touched=this.renderer.textureGC.count;const i=e._glTextures[this.CONTEXT_UID]||this.initTexture(e);this.boundTextures[t]!==e&&(this.currentLocation!==t&&(this.currentLocation=t,n.activeTexture(n.TEXTURE0+t)),n.bindTexture(e.target,i.texture)),i.dirtyId!==e.dirtyId?(this.currentLocation!==t&&(this.currentLocation=t,n.activeTexture(n.TEXTURE0+t)),this.updateTexture(e)):i.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(e),this.boundTextures[t]=e}else this.currentLocation!==t&&(this.currentLocation=t,n.activeTexture(n.TEXTURE0+t)),n.bindTexture(n.TEXTURE_2D,this.emptyTextures[n.TEXTURE_2D].texture),this.boundTextures[t]=null}reset(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(let e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.unknownTexture}unbind(e){const{gl:t,boundTextures:n}=this;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(let i=0;i<n.length;i++)n[i]===this.unknownTexture&&this.bind(null,i)}for(let i=0;i<n.length;i++)n[i]===e&&(this.currentLocation!==i&&(t.activeTexture(t.TEXTURE0+i),this.currentLocation=i),t.bindTexture(e.target,this.emptyTextures[e.target].texture),n[i]=null)}ensureSamplerType(e){const{boundTextures:t,hasIntegerTextures:n,CONTEXT_UID:i}=this;if(n)for(let s=e-1;s>=0;--s){const a=t[s];a&&a._glTextures[i].samplerType!==Me.FLOAT&&this.renderer.texture.unbind(a)}}initTexture(e){const t=new n9(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on("dispose",this.destroyTexture,this),t}initTextureType(e,t){var n;t.internalFormat=((n=this.internalFormats[e.type])==null?void 0:n[e.format])??e.format,t.samplerType=this.samplerTypes[t.internalFormat]??Me.FLOAT,this.webGLVersion===2&&e.type===ot.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type}updateTexture(e){var i;const t=e._glTextures[this.CONTEXT_UID];if(!t)return;const n=this.renderer;if(this.initTextureType(e,t),(i=e.resource)==null?void 0:i.upload(n,e,t))t.samplerType!==Me.FLOAT&&(this.hasIntegerTextures=!0);else{const s=e.realWidth,a=e.realHeight,o=n.gl;(t.width!==s||t.height!==a||t.dirtyId<0)&&(t.width=s,t.height=a,o.texImage2D(e.target,0,t.internalFormat,s,a,0,e.format,t.type,null))}e.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(e),t.dirtyId=e.dirtyId}destroyTexture(e,t){const{gl:n}=this;if(e=e.castToBaseTexture(),e._glTextures[this.CONTEXT_UID]&&(this.unbind(e),n.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off("dispose",this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],!t)){const i=this.managedTextures.indexOf(e);i!==-1&&yd(this.managedTextures,i,1)}}updateTextureStyle(e){var n;const t=e._glTextures[this.CONTEXT_UID];t&&((e.mipmap===Il.POW2||this.webGLVersion!==2)&&!e.isPowerOfTwo?t.mipmap=!1:t.mipmap=e.mipmap>=1,this.webGLVersion!==2&&!e.isPowerOfTwo?t.wrapMode=no.CLAMP:t.wrapMode=e.wrapMode,(n=e.resource)!=null&&n.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)}setStyle(e,t){const n=this.gl;if(t.mipmap&&e.mipmap!==Il.ON_MANUAL&&n.generateMipmap(e.target),n.texParameteri(e.target,n.TEXTURE_WRAP_S,t.wrapMode),n.texParameteri(e.target,n.TEXTURE_WRAP_T,t.wrapMode),t.mipmap){n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===eo.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&e.anisotropicLevel>0&&e.scaleMode===eo.LINEAR){const s=Math.min(e.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(e.target,i.TEXTURE_MAX_ANISOTROPY_EXT,s)}}else n.texParameteri(e.target,n.TEXTURE_MIN_FILTER,e.scaleMode===eo.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(e.target,n.TEXTURE_MAG_FILTER,e.scaleMode===eo.LINEAR?n.LINEAR:n.NEAREST)}destroy(){this.renderer=null}}fE.extension={type:ze.RendererSystem,name:"texture"};Je.add(fE);class pE{constructor(e){this.renderer=e}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:n}=this,i=e._glTransformFeedbacks[n]||this.createGLTransformFeedback(e);t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:e}=this;e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(e,t){const{gl:n,renderer:i}=this;t&&i.shader.bind(t),n.beginTransformFeedback(e)}endTransformFeedback(){const{gl:e}=this;e.endTransformFeedback()}createGLTransformFeedback(e){const{gl:t,renderer:n,CONTEXT_UID:i}=this,s=t.createTransformFeedback();e._glTransformFeedbacks[i]=s,t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,s);for(let a=0;a<e.buffers.length;a++){const o=e.buffers[a];o&&(n.buffer.update(o),o._glBuffers[i].refCount++,t.bindBufferBase(t.TRANSFORM_FEEDBACK_BUFFER,a,o._glBuffers[i].buffer||null))}return t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null),e.disposeRunner.add(this),s}disposeTransformFeedback(e,t){const n=e._glTransformFeedbacks[this.CONTEXT_UID],i=this.gl;e.disposeRunner.remove(this);const s=this.renderer.buffer;if(s)for(let a=0;a<e.buffers.length;a++){const o=e.buffers[a];if(!o)continue;const l=o._glBuffers[this.CONTEXT_UID];l&&(l.refCount--,l.refCount===0&&!t&&s.dispose(o,t))}n&&(t||i.deleteTransformFeedback(n),delete e._glTransformFeedbacks[this.CONTEXT_UID])}destroy(){this.renderer=null}}pE.extension={type:ze.RendererSystem,name:"transformFeedback"};Je.add(pE);class G3{constructor(e){this.renderer=e}init(e){this.screen=new Rt(0,0,e.width,e.height),this.element=e.view||Ye.ADAPTER.createCanvas(),this.resolution=e.resolution||Ye.RESOLUTION,this.autoDensity=!!e.autoDensity}resizeView(e,t){this.element.width=Math.round(e*this.resolution),this.element.height=Math.round(t*this.resolution);const n=this.element.width/this.resolution,i=this.element.height/this.resolution;this.screen.width=n,this.screen.height=i,this.autoDensity&&(this.element.style.width=`${n}px`,this.element.style.height=`${i}px`),this.renderer.emit("resize",n,i),this.renderer.runners.resize.emit(this.screen.width,this.screen.height)}destroy(e){var t;e&&((t=this.element.parentNode)==null||t.removeChild(this.element)),this.renderer=null,this.element=null,this.screen=null}}G3.defaultOptions={width:800,height:600,resolution:void 0,autoDensity:!1},G3.extension={type:[ze.RendererSystem,ze.CanvasRendererSystem],name:"_view"};Je.add(G3);Ye.PREFER_ENV=pc.WEBGL2;Ye.STRICT_TEXTURE_CACHE=!1;Ye.RENDER_OPTIONS={...j3.defaultOptions,...z3.defaultOptions,...G3.defaultOptions,...V3.defaultOptions};Object.defineProperties(Ye,{WRAP_MODE:{get(){return bt.defaultOptions.wrapMode},set(r){Dt("7.1.0","settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),bt.defaultOptions.wrapMode=r}},SCALE_MODE:{get(){return bt.defaultOptions.scaleMode},set(r){Dt("7.1.0","settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),bt.defaultOptions.scaleMode=r}},MIPMAP_TEXTURES:{get(){return bt.defaultOptions.mipmap},set(r){Dt("7.1.0","settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),bt.defaultOptions.mipmap=r}},ANISOTROPIC_LEVEL:{get(){return bt.defaultOptions.anisotropicLevel},set(r){Dt("7.1.0","settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),bt.defaultOptions.anisotropicLevel=r}},FILTER_RESOLUTION:{get(){return Dt("7.1.0","settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"),fl.defaultResolution},set(r){fl.defaultResolution=r}},FILTER_MULTISAMPLE:{get(){return Dt("7.1.0","settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"),fl.defaultMultisample},set(r){fl.defaultMultisample=r}},SPRITE_MAX_TEXTURES:{get(){return Su.defaultMaxTextures},set(r){Dt("7.1.0","settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"),Su.defaultMaxTextures=r}},SPRITE_BATCH_SIZE:{get(){return Su.defaultBatchSize},set(r){Dt("7.1.0","settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"),Su.defaultBatchSize=r}},CAN_UPLOAD_SAME_BUFFER:{get(){return Su.canUploadSameBuffer},set(r){Dt("7.1.0","settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"),Su.canUploadSameBuffer=r}},GC_MODE:{get(){return Au.defaultMode},set(r){Dt("7.1.0","settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"),Au.defaultMode=r}},GC_MAX_IDLE:{get(){return Au.defaultMaxIdle},set(r){Dt("7.1.0","settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"),Au.defaultMaxIdle=r}},GC_MAX_CHECK_COUNT:{get(){return Au.defaultCheckCountMax},set(r){Dt("7.1.0","settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"),Au.defaultCheckCountMax=r}},PRECISION_VERTEX:{get(){return to.defaultVertexPrecision},set(r){Dt("7.1.0","settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"),to.defaultVertexPrecision=r}},PRECISION_FRAGMENT:{get(){return to.defaultFragmentPrecision},set(r){Dt("7.1.0","settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"),to.defaultFragmentPrecision=r}}});var h0=(r=>(r[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY",r))(h0||{});let i9=class{constructor(e,t=null,n=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=n,this.once=i}match(e,t=null){return this.fn===e&&this.context===t}emit(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));const t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this}destroy(e=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const t=this.next;return this.next=e?null:t,this.previous=null,t}};const mE=class Pi{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new i9(null,null,1/0),this.deltaMS=1/Pi.targetFPMS,this.elapsedMS=1/Pi.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=h0.NORMAL){return this._addListener(new i9(e,t,n))}addOnce(e,t,n=h0.NORMAL){return this._addListener(new i9(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const s=e-this._lastFrame|0;if(s<this._minElapsedMS)return;this._lastFrame=e-s%this._minElapsedMS}this.deltaMS=t,this.deltaTime=this.deltaMS*Pi.targetFPMS;const n=this._head;let i=n.next;for(;i;)i=i.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(e){const t=Math.min(this.maxFPS,e),n=Math.min(Math.max(0,t)/1e3,Pi.targetFPMS);this._maxElapsedMS=1/n}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(e){if(e===0)this._minElapsedMS=0;else{const t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}}static get shared(){if(!Pi._shared){const e=Pi._shared=new Pi;e.autoStart=!0,e._protected=!0}return Pi._shared}static get system(){if(!Pi._system){const e=Pi._system=new Pi;e.autoStart=!0,e._protected=!0}return Pi._system}};mE.targetFPMS=.06;let Wn=mE;Object.defineProperties(Ye,{TARGET_FPMS:{get(){return Wn.targetFPMS},set(r){Dt("7.1.0","settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"),Wn.targetFPMS=r}}});class gE{static init(e){e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{set(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,h0.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?Wn.shared:new Wn,e.autoStart&&this.start()}static destroy(){if(this._ticker){const e=this._ticker;this.ticker=null,e.destroy()}}}gE.extension=ze.Application;Je.add(gE);const yE=[];Je.handleByList(ze.Renderer,yE);function GN(r){for(const e of yE)if(e.test(r))return new e(r);throw new Error("Unable to auto-detect a suitable renderer.")}var WN=`attribute vec2 aVertexPosition;
582attribute vec2 aTextureCoord;
583
584uniform mat3 projectionMatrix;
585
586varying vec2 vTextureCoord;
587
588void main(void)
589{
590    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
590)).xy, 0.0, 1.0);
591    vTextureCoord = aTextureCoord;
592}`;const XN=WN;class vE{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const n=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,n)}else{const n=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,n)}t>=Br.HIGH?this.multisample=Br.HIGH:t>=Br.MEDIUM?this.multisample=Br.MEDIUM:t>=Br.LOW?this.multisample=Br.LOW:this.multisample=Br.NONE}destroy(){}}vE.extension={type:ze.RendererSystem,name:"_multisample"};Je.add(vE);class YN{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class _E{constructor(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:n}=this,i=e._glBuffers[n]||this.createGLBuffer(e);t.bindBuffer(e.type,i.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:n,CONTEXT_UID:i}=this;if(this.boundBufferBases[t]!==e){const s=e._glBuffers[i]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,s.buffer)}}bindBufferRange(e,t,n){const{gl:i,CONTEXT_UID:s}=this;n=n||0;const a=e._glBuffers[s]||this.createGLBuffer(e);i.bindBufferRange(i.UNIFORM_BUFFER,t||0,a.buffer,n*256,256)}update(e){const{gl:t,CONTEXT_UID:n}=this,i=e._glBuffers[n]||this.createGLBuffer(e);if(e._updateID!==i.updateID)if(i.updateID=e._updateID,t.bindBuffer(e.type,i.buffer),i.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const s=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;i.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,s)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const n=e._glBuffers[this.CONTEXT_UID],i=this.gl;e.disposeRunner.remove(this),n&&(t||i.deleteBuffer(n.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let n=0;n<t.length;n++)this.dispose(this.managedBuffers[t[n]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:n}=this;return e._glBuffers[t]=new YN(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}_E.extension={type:ze.RendererSystem,name:"buffer"};Je.add(_E);class xE{constructor(e){this.renderer=e}render(e,t){const n=this.renderer;let i,s,a,o;if(t&&(i=t.renderTexture,s=t.clear,a=t.transform,o=t.skipUpdateTransform),this.renderingToScreen=!i,n.runners.prerender.emit(),n.emit("prerender"),n.projection.transform=a,!n.context.isLost){if(i||(this.lastObjectRendered=e),!o){const l=e.enableTempParent();e.updateTransform(),e.disableTempParent(l)}n.renderTexture.bind(i),n.batch.currentRenderer.start(),(s??n.background.clearBeforeRender)&&n.renderTexture.clear(),e.render(n),n.batch.currentRenderer.flush(),i&&(t.blit&&n.framebuffer.blit(),i.baseTexture.update()),n.runners.postrender.emit(),n.projection.transform=null,n.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}xE.extension={type:ze.RendererSystem,name:"objectRenderer"};Je.add(xE);const zp=class Py extends zN{constructor(e){super(),this.type=qA.WEBGL,e=Object.assign({},Ye.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new js({projectionMatrix:new Zr},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Py.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(t),"useContextAlpha"in e&&(Dt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlp
vendor: 4,390 bytes, line 592
592ha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=Py.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:wO()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return this._view.element}get screen(){return this._view.screen}get lastObjectRendered(){return this.objectRenderer.lastObjectRendered}get renderingToScreen(){return this.objectRenderer.renderingToScreen}get rendererLogId(){return`WebGL ${this.context.webGLVersion}`}get clearBeforeRender(){return Dt("7.0.0","renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."),this.background.clearBeforeRender}get useContextAlpha(){return Dt("7.0.0","renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."),this.context.useContextAlpha}get preserveDrawingBuffer(){return Dt("7.0.0","renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"),this.context.preserveDrawingBuffer}get backgroundColor(){return Dt("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color}set backgroundColor(e){Dt("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color=e}get backgroundAlpha(){return Dt("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha}set backgroundAlpha(e){Dt("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha=e}get powerPreference(){return Dt("7.0.0","renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"),this.context.powerPreference}generateTexture(e,t){return this.textureGenerator.generateTexture(e,t)}};zp.extension={type:ze.Renderer,priority:1},zp.__plugins={},zp.__systems={};let M_=zp;Je.handleByMap(ze.RendererPlugin,M_.__plugins);Je.handleByMap(ze.RendererSystem,M_.__systems);Je.add(M_);class CE extends Qd{constructor(e,t){const{width:n,height:i}=t||{};super(n,i),this.items=[],this.itemDirtyIds=[];for(let s=0;s<e;s++){const a=new bt;this.items.push(a),this.itemDirtyIds.push(-2)}this.length=e,this._load=null,this.baseTexture=null}initFromArray(e,t){for(let n=0;n<this.length;n++)e[n]&&(e[n].castToBaseTexture?this.addBaseTextureAt(e[n].castToBaseTexture(),n):e[n]instanceof Qd?this.addResourceAt(e[n],n):this.addResourceAt(HT(e[n],t),n))}dispose(){for(let e=0,t=this.length;e<t;e++)this.items[e].destroy();this.items=null,this.itemDirtyIds=null,this._load=null}addResourceAt(e,t){if(!this.items[t])throw new Error(`Index ${t} is out of bounds`);return e.valid&&!this.valid&&this.resize(e.width,e.height),this.items[t].setResource(e),this}bind(e){if(this.baseTexture!==null)throw new Error("Only one base texture per TextureArray is allowed");super.bind(e);for(let t=0;t<this.length;t++)this.items[t].parentTextureArray=e,this.items[t].on("update",e.update,e)}unbind(e){super.unbind(e);for(let t=0;t<this.length;t++)this.items[t].parentTextureArray=null,this.items[t].off("update",e.update,e)}load(){if(this._load)return this._load;const e=this.items.map(t=>t.resource).filter(t=>t).map(t=>t.load());return this._load=Promise.all(e).then(()=>{const{realWidth:t,realHeight:n}=this.items[0];return this.resize(t,n),this.update(),Promise.resolve(this)}),this._load}}class ZN extends CE{constructor(e,t){const{width:n,height:i}=t||{};let s,a;Array.isArray(e)?(s=e,a=e.length):a=e,super(a,{width:n,height:i}),s&&this.initFromArray(s,t)}addBaseTextureAt(e,t){if(e.resource)this.addResourceAt(e.resource,t);
vendor: 25,913 bytes, line 592
592else throw new Error("ArrayResource does not support RenderTexture");return this}bind(e){super.bind(e),e.target=Nh.TEXTURE_2D_ARRAY}upload(e,t,n){const{length:i,itemDirtyIds:s,items:a}=this,{gl:o}=e;n.dirtyId<0&&o.texImage3D(o.TEXTURE_2D_ARRAY,0,n.internalFormat,this._width,this._height,i,0,t.format,n.type,null);for(let l=0;l<i;l++){const u=a[l];s[l]<u.dirtyId&&(s[l]=u.dirtyId,u.valid&&o.texSubImage3D(o.TEXTURE_2D_ARRAY,0,0,0,l,u.resource.width,u.resource.height,1,t.format,n.type,u.resource.source))}return!0}}class qN extends fo{constructor(e){super(e)}static test(e){const{OffscreenCanvas:t}=globalThis;return t&&e instanceof t?!0:globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement}}const wE=class W1 extends CE{constructor(e,t){const{width:n,height:i,autoLoad:s,linkBaseTexture:a}=t||{};if(e&&e.length!==W1.SIDES)throw new Error(`Invalid length. Got ${e.length}, expected 6`);super(6,{width:n,height:i});for(let o=0;o<W1.SIDES;o++)this.items[o].target=Nh.TEXTURE_CUBE_MAP_POSITIVE_X+o;this.linkBaseTexture=a!==!1,e&&this.initFromArray(e,t),s!==!1&&this.load()}bind(e){super.bind(e),e.target=Nh.TEXTURE_CUBE_MAP}addBaseTextureAt(e,t,n){if(n===void 0&&(n=this.linkBaseTexture),!this.items[t])throw new Error(`Index ${t} is out of bounds`);if(!this.linkBaseTexture||e.parentTextureArray||Object.keys(e._glTextures).length>0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Nh.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const i=this.itemDirtyIds;for(let s=0;s<W1.SIDES;s++){const a=this.items[s];(i[s]<a.dirtyId||n.dirtyId<t.dirtyId)&&(a.valid&&a.resource?(a.resource.upload(e,a,n),i[s]=a.dirtyId):i[s]<-1&&(e.gl.texImage2D(a.target,0,n.internalFormat,t.realWidth,t.realHeight,0,t.format,n.type,null),i[s]=-1))}return!0}static test(e){return Array.isArray(e)&&e.length===W1.SIDES}};wE.SIDES=6;let QN=wE;class bh extends fo{constructor(e,t){t=t||{};let n,i,s;typeof e=="string"?(n=bh.EMPTY,i=e,s=!0):(n=e,i=null,s=!1),super(n),this.url=i,this.crossOrigin=t.crossOrigin??!0,this.alphaMode=typeof t.alphaMode=="number"?t.alphaMode:null,this.ownsImageBitmap=t.ownsImageBitmap??s,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(async(e,t)=>{if(this.url===null){e(this);return}try{const n=await Ye.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await n.blob();if(this.destroyed)return;const s=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===us.UNPACK?"premultiply":"none"});if(this.destroyed){s.close();return}this.source=s,this.update(),e(this)}catch(n){if(this.destroyed)return;t(n),this.onError.emit(n)}}),this._load)}upload(e,t,n){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(t.alphaMode=this.alphaMode),super.upload(e,t,n)):(this.load(),!1)}dispose(){this.ownsImageBitmap&&this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(e){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof e=="string"||e instanceof ImageBitmap)}static get EMPTY(){return bh._EMPTY=bh._EMPTY??Ye.ADAPTER.createCanvas(0,0),bh._EMPTY}}const Dy=class jp extends fo{constructor(e,t){t=t||{},super(Ye.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.update(),e(this)},jp.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;fo.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let i=t*this.scale,s=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(i=this._overrideWidth||this._overrideHeight/n*t,s=this._overrideHeight||this._overrideWidth/t*n),i=Math.round(i),s=Math.round(s);const a=this.source;a.width=i,a.height=s,a._pixiId=`canvas_${qd()}`,a.getContext("2d").drawImage(e,0,0,t,n,0,0,i,s),this._resolve(),this._resolve=null}}static getSize(e){const t=jp.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&jp.SVG_XML.test(e)}};Dy.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,Dy.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;let Hy=Dy;class KN extends fo{constructor(e){super(e)}static test(e){return!!globalThis.VideoFrame&&e instanceof globalThis.VideoFrame}}const ky=class Iy extends fo{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");t.autoLoad!==!1&&n.setAttribute("preload","auto"),t.playsinline!==!1&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline","")),t.muted===!0&&(n.setAttribute("muted",""),n.muted=!0),t.loop===!0&&n.setAttribute("loop",""),t.autoPlay!==!1&&n.setAttribute("autoplay",""),typeof e=="string"&&(e=[e]);const i=e[0].src||e[0];fo.crossOrigin(n,i,t.crossorigin);for(let s=0;s<e.length;++s){const a=document.createElement("source");let{src:o,mime:l}=e[s];if(o=o||e[s],o.startsWith("data:"))l=o.slice(5,o.indexOf(";"));else if(!o.startsWith("blob:")){const u=o.split("?").shift().toLowerCase(),h=u.slice(u.lastIndexOf(".")+1);l=l||Iy.MIME_TYPES[h]||`video/${h}`}a.src=o,l&&(a.type=l),n.appendChild(a)}e=n}super(e),this.noSubImage=!0,this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=t.autoPlay!==!1,this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),t.autoLoad!==!1&&this.load()}update(e=0){if(!this.destroyed){if(this._updateFPS){const t=Wn.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-t)}(!this._updateFPS||this._msToNextUpdate<=0)&&(super.update(),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}}_videoFrameRequestCallback(){this.update(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback)}load(){if(this._load)return this._load;const e=this.source;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._load=new Promise((t,n)=>{this.valid?t(this):(this._resolve=t,this._reject=n,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0,!t&&this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._configureAutoUpdate();const e=this.source;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.source.requestVideoFrameCallback?(this._isConnectedToTicker&&(Wn.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),this._videoFrameRequestCallbackHandle===null&&(this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._videoFrameRequestCallbackHandle!==null&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(Wn.shared.add(this.update,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(this._videoFrameRequestCallbackHandle!==null&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(Wn.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||Iy.TYPES.includes(t)}};ky.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],ky.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let bE=ky;gy.push(bh,qT,qN,bE,KN,Hy,kT,QN,ZN);class JN{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(Wn.system.add(this.tickerUpdate,this,h0.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Wn.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const nl=new JN;class $4{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=$4.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Mt,this.page=new Mt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,n){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,n,i,s){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class W3 extends $4{constructor(){super(...arguments),this.client=new Mt,this.movement=new Mt,this.offset=new Mt,this.global=new Mt,this.screen=new Mt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,n,i,s,a,o,l,u,h,c,d,f,g,y){throw new Error("Method not implemented.")}}class Ds extends W3{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class zh extends W3{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}zh.DOM_DELTA_PIXEL=0,zh.DOM_DELTA_LINE=1,zh.DOM_DELTA_PAGE=2;const eB=2048,tB=new Mt,s9=new Mt;class rB{constructor(e){this.dispatch=new Af,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerleave",this.mapPointerOut),this.addEventMapping("pointerover",this.mapPointerOver),this.addEventMapping("pointerup",this.mapPointerUp),this.addEventMapping("pointerupoutside",this.mapPointerUpOutside),this.addEventMapping("wheel",this.mapWheel)}addEventMapping(e,t){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:t,priority:0}),this.mappingTable[e].sort((n,i)=>n.priority-i.priority)}dispatchEvent(e,t){e.propagationStopped=!1,e.propagationImmediatelyStopped=!1,this.propagate(e,t),this.dispatch.emit(t||e.type,e)}mapEvent(e){if(!this.rootTarget)return;const t=this.mappingTable[e.type];if(t)for(let n=0,i=t.length;n<i;n++)t[n].fn(e);else console.warn(`[EventBoundary]: Event mapping not defined for ${e.type}`)}hitTest(e,t){nl.pauseUpdate=!0;const n=this._isPointerMoveEvent&&this.enableGlobalMoveEvents?"hitTestMoveRecursive":"hitTestRecursive",i=this[n](this.rootTarget,this.rootTarget.eventMode,tB.set(e,t),this.hitTestFn,this.hitPruneFn);return i&&i[0]}propagate(e,t){if(!e.target)return;const n=e.composedPath();e.eventPhase=e.CAPTURING_PHASE;for(let i=0,s=n.length-1;i<s;i++)if(e.currentTarget=n[i],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,t),!(e.propagationStopped||e.propagationImmediatelyStopped)){e.eventPhase=e.BUBBLING_PHASE;for(let i=n.length-2;i>=0;i--)if(e.currentTarget=n[i],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return}}all(e,t,n=this._allInteractiveElements){if(n.length===0)return;e.eventPhase=e.BUBBLING_PHASE;const i=Array.isArray(t)?t:[t];for(let s=n.length-1;s>=0;s--)i.forEach(a=>{e.currentTarget=n[s],this.notifyTarget(e,a)})}propagationPath(e){const t=[e];for(let n=0;n<eB&&e!==this.rootTarget;n++){if(!e.parent)throw new Error("Cannot find propagation path to disconnected target");t.push(e.parent),e=e.parent}return t.reverse(),t}hitTestMoveRecursive(e,t,n,i,s,a=!1){let o=!1;if(this._interactivePrune(e))return null;if((e.eventMode==="dynamic"||t==="dynamic")&&(nl.pauseUpdate=!1),e.interactiveChildren&&e.children){const h=e.children;for(let c=h.length-1;c>=0;c--){const d=h[c],f=this.hitTestMoveRecursive(d,this._isInteractive(t)?t:d.eventMode,n,i,s,a||s(e,n));if(f){if(f.length>0&&!f[f.length-1].parent)continue;const g=e.isInteractive();(f.length>0||g)&&(g&&this._allInteractiveElements.push(e),f.push(e)),this._hitElements.length===0&&(this._hitElements=f),o=!0}}}const l=this._isInteractive(t),u=e.isInteractive();return l&&u&&this._allInteractiveElements.push(e),a||this._hitElements.length>0?null:o?this._hitElements:l&&!s(e,n)&&i(e,n)?u?[e]:[]:null}hitTestRecursive(e,t,n,i,s){if(this._interactivePrune(e)||s(e,n))return null;if((e.eventMode==="dynamic"||t==="dynamic")&&(nl.pauseUpdate=!1),e.interactiveChildren&&e.children){const l=e.children;for(let u=l.length-1;u>=0;u--){const h=l[u],c=this.hitTestRecursive(h,this._isInteractive(t)?t:h.eventMode,n,i,s);if(c){if(c.length>0&&!c[c.length-1].parent)continue;const d=e.isInteractive();return(c.length>0||d)&&c.push(e),c}}}const a=this._isInteractive(t),o=e.isInteractive();return a&&i(e,n)?o?[e]:[]:null}_isInteractive(e){return e==="static"||e==="dynamic"}_interactivePrune(e){return!!(!e||e.isMask||!e.visible||!e.renderable||e.eventMode==="none"||e.eventMode==="passive"&&!e.interactiveChildren||e.isMask)}hitPruneFn(e,t){var n;if(e.hitArea&&(e.worldTransform.applyInverse(t,s9),!e.hitArea.contains(s9.x,s9.y)))return!0;if(e._mask){const i=e._mask.isMaskData?e._mask.maskObject:e._mask;if(i&&!((n=i.containsPoint)!=null&&n.call(i,t)))return!0}return!1}hitTestFn(e,t){return e.eventMode==="passive"?!1:e.hitArea?!0:e.containsPoint?e.containsPoint(t):!1}notifyTarget(e,t){var s,a;t=t??e.type;const n=`on${t}`;(a=(s=e.currentTarget)[n])==null||a.call(s,e);const i=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?`${t}capture`:t;this.notifyListeners(e,i),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,t)}mapPointerDown(e){if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.createPointerEvent(e);if(this.dispatchEvent(t,"pointerdown"),t.pointerType==="touch")this.dispatchEvent(t,"touchstart");else if(t.pointerType==="mouse"||t.pointerType==="pen"){const i=t.button===2;this.dispatchEvent(t,i?"rightdown":"mousedown")}const n=this.trackingData(e.pointerId);n.pressTargetsByButton[e.button]=t.composedPath(),this.freeEvent(t)}mapPointerMove(e){var l,u;if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const t=this.createPointerEvent(e);this._isPointerMoveEvent=!1;const n=t.pointerType==="mouse"||t.pointerType==="pen",i=this.trackingData(e.pointerId),s=this.findMountedTarget(i.overTargets);if(((l=i.overTargets)==null?void 0:l.length)>0&&s!==t.target){const h=e.type==="mousemove"?"mouseout":"pointerout",c=this.createPointerEvent(e,h,s);if(this.dispatchEvent(c,"pointerout"),n&&this.dispatchEvent(c,"mouseout"),!t.composedPath().includes(s)){const d=this.createPointerEvent(e,"pointerleave",s);for(d.eventPhase=d.AT_TARGET;d.target&&!t.composedPath().includes(d.target);)d.currentTarget=d.target,this.notifyTarget(d),n&&this.notifyTarget(d,"mouseleave"),d.target=d.target.parent;this.freeEvent(d)}this.freeEvent(c)}if(s!==t.target){const h=e.type==="mousemove"?"mouseover":"pointerover",c=this.clonePointerEvent(t,h);this.dispatchEvent(c,"pointerover"),n&&this.dispatchEvent(c,"mouseover");let d=s==null?void 0:s.parent;for(;d&&d!==this.rootTarget.parent&&d!==t.target;)d=d.parent;if(!d||d===this.rootTarget.parent){const f=this.clonePointerEvent(t,"pointerenter");for(f.eventPhase=f.AT_TARGET;f.target&&f.target!==s&&f.target!==this.rootTarget.parent;)f.currentTarget=f.target,this.notifyTarget(f),n&&this.notifyTarget(f,"mouseenter"),f.target=f.target.parent;this.freeEvent(f)}this.freeEvent(c)}const a=[],o=this.enableGlobalMoveEvents??!0;this.moveOnAll?a.push("pointermove"):this.dispatchEvent(t,"pointermove"),o&&a.push("globalpointermove"),t.pointerType==="touch"&&(this.moveOnAll?a.splice(1,0,"touchmove"):this.dispatchEvent(t,"touchmove"),o&&a.push("globaltouchmove")),n&&(this.moveOnAll?a.splice(1,0,"mousemove"):this.dispatchEvent(t,"mousemove"),o&&a.push("globalmousemove"),this.cursor=(u=t.target)==null?void 0:u.cursor),a.length>0&&this.all(t,a),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=t.composedPath(),this.freeEvent(t)}mapPointerOver(e){var a;if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId),n=this.createPointerEvent(e),i=n.pointerType==="mouse"||n.pointerType==="pen";this.dispatchEvent(n,"pointerover"),i&&this.dispatchEvent(n,"mouseover"),n.pointerType==="mouse"&&(this.cursor=(a=n.target)==null?void 0:a.cursor);const s=this.clonePointerEvent(n,"pointerenter");for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),i&&this.notifyTarget(s,"mouseenter"),s.target=s.target.parent;t.overTargets=n.composedPath(),this.freeEvent(n),this.freeEvent(s)}mapPointerOut(e){if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId);if(t.overTargets){const n=e.pointerType==="mouse"||e.pointerType==="pen",i=this.findMountedTarget(t.overTargets),s=this.createPointerEvent(e,"pointerout",i);this.dispatchEvent(s),n&&this.dispatchEvent(s,"mouseout");const a=this.createPointerEvent(e,"pointerleave",i);for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==this.rootTarget.parent;)a.currentTarget=a.target,this.notifyTarget(a),n&&this.notifyTarget(a,"mouseleave"),a.target=a.target.parent;t.overTargets=null,this.freeEvent(s),this.freeEvent(a)}this.cursor=null}mapPointerUp(e){if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=performance.now(),n=this.createPointerEvent(e);if(this.dispatchEvent(n,"pointerup"),n.pointerType==="touch")this.dispatchEvent(n,"touchend");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const o=n.button===2;this.dispatchEvent(n,o?"rightup":"mouseup")}const i=this.trackingData(e.pointerId),s=this.findMountedTarget(i.pressTargetsByButton[e.button]);let a=s;if(s&&!n.composedPath().includes(s)){let o=s;for(;o&&!n.composedPath().includes(o);){if(n.currentTarget=o,this.notifyTarget(n,"pointerupoutside"),n.pointerType==="touch")this.notifyTarget(n,"touchendoutside");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const l=n.button===2;this.notifyTarget(n,l?"rightupoutside":"mouseupoutside")}o=o.parent}delete i.pressTargetsByButton[e.button],a=o}if(a){const o=this.clonePointerEvent(n,"click");o.target=a,o.path=null,i.clicksByButton[e.button]||(i.clicksByButton[e.button]={clickCount:0,target:o.target,timeStamp:t});const l=i.clicksByButton[e.button];if(l.target===o.target&&t-l.timeStamp<200?++l.clickCount:l.clickCount=1,l.target=o.target,l.timeStamp=t,o.detail=l.clickCount,o.pointerType==="mouse"){const u=o.button===2;this.dispatchEvent(o,u?"rightclick":"click")}else o.pointerType==="touch"&&this.dispatchEvent(o,"tap");this.dispatchEvent(o,"pointertap"),this.freeEvent(o)}this.freeEvent(n)}mapPointerUpOutside(e){if(!(e instanceof Ds)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId),n=this.findMountedTarget(t.pressTargetsByButton[e.button]),i=this.createPointerEvent(e);if(n){let s=n;for(;s;)i.currentTarget=s,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),s=s.parent;delete t.pressTargetsByButton[e.button]}this.freeEvent(i)}mapWheel(e){if(!(e instanceof zh)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const t=this.createWheelEvent(e);this.dispatchEvent(t),this.freeEvent(t)}findMountedTarget(e){if(!e)return null;let t=e[0];for(let n=1;n<e.length&&e[n].parent===t;n++)t=e[n];return t}createPointerEvent(e,t,n){const i=this.allocateEvent(Ds);return this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.nativeEvent=e.nativeEvent,i.originalEvent=e,i.target=n??this.hitTest(i.global.x,i.global.y)??this._hitElements[0],typeof t=="string"&&(i.type=t),i}createWheelEvent(e){const t=this.allocateEvent(zh);return this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.n
vendor: 10,719 bytes, line 592
592ativeEvent=e.nativeEvent,t.originalEvent=e,t.target=this.hitTest(t.global.x,t.global.y),t}clonePointerEvent(e,t){const n=this.allocateEvent(Ds);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyPointerData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=t??n.type,n}copyWheelData(e,t){t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ}copyPointerData(e,t){e instanceof Ds&&t instanceof Ds&&(t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist)}copyMouseData(e,t){e instanceof W3&&t instanceof W3&&(t.altKey=e.altKey,t.button=e.button,t.buttons=e.buttons,t.client.copyFrom(e.client),t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.movement.copyFrom(e.movement),t.screen.copyFrom(e.screen),t.shiftKey=e.shiftKey,t.global.copyFrom(e.global))}copyData(e,t){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=performance.now(),t.type=e.type,t.detail=e.detail,t.view=e.view,t.which=e.which,t.layer.copyFrom(e.layer),t.page.copyFrom(e.page)}trackingData(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]}allocateEvent(e){this.eventPool.has(e)||this.eventPool.set(e,[]);const t=this.eventPool.get(e).pop()||new e(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=null,t.target=null,t}freeEvent(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");const t=e.constructor;this.eventPool.has(t)||this.eventPool.set(t,[]),this.eventPool.get(t).push(e)}notifyListeners(e,t){const n=e.currentTarget._events[t];if(n&&e.currentTarget.isInteractive())if("fn"in n)n.once&&e.currentTarget.removeListener(t,n.fn,void 0,!0),n.fn.call(n.context,e);else for(let i=0,s=n.length;i<s&&!e.propagationImmediatelyStopped;i++)n[i].once&&e.currentTarget.removeListener(t,n[i].fn,void 0,!0),n[i].fn.call(n[i].context,e)}}const nB=1,iB={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},My=class Ry{constructor(e){this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.domElement=null,this.resolution=1,this.renderer=e,this.rootBoundary=new rB(null),nl.init(this),this.autoPreventDefault=!0,this.eventsAdded=!1,this.rootPointerEvent=new Ds(null),this.rootWheelEvent=new zh(null),this.cursorStyles={default:"inherit",pointer:"pointer"},this.features=new Proxy({...Ry.defaultEventFeatures},{set:(t,n,i)=>(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=i),t[n]=i,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,Ry._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,i=t.length;n<i;n++){const s=t[n],a=this.bootstrapEvent(this.rootPointerEvent,s);this.rootBoundary.mapEvent(a)}this.setCursor(this.rootBoundary.cursor)}onPointerMove(e){if(!this.features.move)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,nl.pointerMoved();const t=this.normalizeToPointerData(e);for(let n=0,i=t.length;n<i;n++){const s=this.bootstrapEvent(this.rootPointerEvent,t[n]);this.rootBoundary.mapEvent(s)}this.setCursor(this.rootBoundary.cursor)}onPointerUp(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;let t=e.target;e.composedPath&&e.composedPath().length>0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",i=this.normalizeToPointerData(e);for(let s=0,a=i.length;s<a;s++){const o=this.bootstrapEvent(this.rootPointerEvent,i[s]);o.type+=n,this.rootBoundary.mapEvent(o)}this.setCursor(this.rootBoundary.cursor)}onPointerOverOut(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const t=this.normalizeToPointerData(e);for(let n=0,i=t.length;n<i;n++){const s=this.bootstrapEvent(this.rootPointerEvent,t[n]);this.rootBoundary.mapEvent(s)}this.setCursor(this.rootBoundary.cursor)}onWheel(e){if(!this.features.wheel)return;const t=this.normalizeWheelEvent(e);this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.rootBoundary.mapEvent(t)}setTargetElement(e){this.removeEvents(),this.domElement=e,nl.domElement=e,this.addEvents()}addEvents(){if(this.eventsAdded||!this.domElement)return;nl.addTickerListener();const e=this.domElement.style;e&&(globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):this.supportsPointerEvents&&(e.touchAction="none")),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,!0),this.domElement.addEventListener("pointerdown",this.onPointerDown,!0),this.domElement.addEventListener("pointerleave",this.onPointerOverOut,!0),this.domElement.addEventListener("pointerover",this.onPointerOverOut,!0),globalThis.addEventListener("pointerup",this.onPointerUp,!0)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,!0),this.domElement.addEventListener("mousedown",this.onPointerDown,!0),this.domElement.addEventListener("mouseout",this.onPointerOverOut,!0),this.domElement.addEventListener("mouseover",this.onPointerOverOut,!0),globalThis.addEventListener("mouseup",this.onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.addEventListener("touchstart",this.onPointerDown,!0),this.domElement.addEventListener("touchend",this.onPointerUp,!0),this.domElement.addEventListener("touchmove",this.onPointerMove,!0))),this.domElement.addEventListener("wheel",this.onWheel,{passive:!0,capture:!0}),this.eventsAdded=!0}removeEvents(){if(!this.eventsAdded||!this.domElement)return;nl.removeTickerListener();const e=this.domElement.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):this.supportsPointerEvents&&(e.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,!0),this.domElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.domElement.removeEventListener("pointerleave",this.onPointerOverOut,!0),this.domElement.removeEventListener("pointerover",this.onPointerOverOut,!0),globalThis.removeEventListener("pointerup",this.onPointerUp,!0)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,!0),this.domElement.removeEventListener("mousedown",this.onPointerDown,!0),this.domElement.removeEventListener("mouseout",this.onPointerOverOut,!0),this.domElement.removeEventListener("mouseover",this.onPointerOverOut,!0),globalThis.removeEventListener("mouseup",this.onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.removeEventListener("touchstart",this.onPointerDown,!0),this.domElement.removeEventListener("touchend",this.onPointerUp,!0),this.domElement.removeEventListener("touchmove",this.onPointerMove,!0))),this.domElement.removeEventListener("wheel",this.onWheel,!0),this.domElement=null,this.eventsAdded=!1}mapPositionToPoint(e,t,n){const i=this.domElement.isConnected?this.domElement.getBoundingClientRect():{x:0,y:0,width:this.domElement.width,height:this.domElement.height,left:0,top:0},s=1/this.resolution;e.x=(t-i.left)*(this.domElement.width/i.width)*s,e.y=(n-i.top)*(this.domElement.height/i.height)*s}normalizeToPointerData(e){const t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(let n=0,i=e.changedTouches.length;n<i;n++){const s=e.changedTouches[n];typeof s.button>"u"&&(s.button=0),typeof s.buttons>"u"&&(s.buttons=1),typeof s.isPrimary>"u"&&(s.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof s.width>"u"&&(s.width=s.radiusX||1),typeof s.height>"u"&&(s.height=s.radiusY||1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="touch"),typeof s.pointerId>"u"&&(s.pointerId=s.identifier||0),typeof s.pressure>"u"&&(s.pressure=s.force||.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),typeof s.layerX>"u"&&(s.layerX=s.offsetX=s.clientX),typeof s.layerY>"u"&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,s.type=e.type,t.push(s)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=nB),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.t
vendor: 15,133 bytes, line 592
592iltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=iB[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};My.extension={name:"events",type:[ze.RendererSystem,ze.CanvasRendererSystem]},My.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};let Fy=My;Je.add(Fy);let X3=class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(e){return this.minX>this.maxX||this.minY>this.maxY?Rt.EMPTY:(e=e||new Rt(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)}addPoint(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)}addPointMatrix(e,t){const{a:n,b:i,c:s,d:a,tx:o,ty:l}=e,u=n*t.x+s*t.y+o,h=i*t.x+a*t.y+l;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,h),this.maxY=Math.max(this.maxY,h)}addQuad(e){let t=this.minX,n=this.minY,i=this.maxX,s=this.maxY,a=e[0],o=e[1];t=a<t?a:t,n=o<n?o:n,i=a>i?a:i,s=o>s?o:s,a=e[2],o=e[3],t=a<t?a:t,n=o<n?o:n,i=a>i?a:i,s=o>s?o:s,a=e[4],o=e[5],t=a<t?a:t,n=o<n?o:n,i=a>i?a:i,s=o>s?o:s,a=e[6],o=e[7],t=a<t?a:t,n=o<n?o:n,i=a>i?a:i,s=o>s?o:s,this.minX=t,this.minY=n,this.maxX=i,this.maxY=s}addFrame(e,t,n,i,s){this.addFrameMatrix(e.worldTransform,t,n,i,s)}addFrameMatrix(e,t,n,i,s){const a=e.a,o=e.b,l=e.c,u=e.d,h=e.tx,c=e.ty;let d=this.minX,f=this.minY,g=this.maxX,y=this.maxY,v=a*t+l*n+h,_=o*t+u*n+c;d=v<d?v:d,f=_<f?_:f,g=v>g?v:g,y=_>y?_:y,v=a*i+l*n+h,_=o*i+u*n+c,d=v<d?v:d,f=_<f?_:f,g=v>g?v:g,y=_>y?_:y,v=a*t+l*s+h,_=o*t+u*s+c,d=v<d?v:d,f=_<f?_:f,g=v>g?v:g,y=_>y?_:y,v=a*i+l*s+h,_=o*i+u*s+c,d=v<d?v:d,f=_<f?_:f,g=v>g?v:g,y=_>y?_:y,this.minX=d,this.minY=f,this.maxX=g,this.maxY=y}addVertexData(e,t,n){let i=this.minX,s=this.minY,a=this.maxX,o=this.maxY;for(let l=t;l<n;l+=2){const u=e[l],h=e[l+1];i=u<i?u:i,s=h<s?h:s,a=u>a?u:a,o=h>o?h:o}this.minX=i,this.minY=s,this.maxX=a,this.maxY=o}addVertices(e,t,n,i){this.addVerticesMatrix(e.worldTransform,t,n,i)}addVerticesMatrix(e,t,n,i,s=0,a=s){const o=e.a,l=e.b,u=e.c,h=e.d,c=e.tx,d=e.ty;let f=this.minX,g=this.minY,y=this.maxX,v=this.maxY;for(let _=n;_<i;_+=2){const x=t[_],w=t[_+1],S=o*x+u*w+c,b=h*w+l*x+d;f=Math.min(f,S-s),y=Math.max(y,S+s),g=Math.min(g,b-a),v=Math.max(v,b+a)}this.minX=f,this.minY=g,this.maxX=y,this.maxY=v}addBounds(e){const t=this.minX,n=this.minY,i=this.maxX,s=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<n?e.minY:n,this.maxX=e.maxX>i?e.maxX:i,this.maxY=e.maxY>s?e.maxY:s}addBoundsMask(e,t){const n=e.minX>t.minX?e.minX:t.minX,i=e.minY>t.minY?e.minY:t.minY,s=e.maxX<t.maxX?e.maxX:t.maxX,a=e.maxY<t.maxY?e.maxY:t.maxY;if(n<=s&&i<=a){const o=this.minX,l=this.minY,u=this.maxX,h=this.maxY;this.minX=n<o?n:o,this.minY=i<l?i:l,this.maxX=s>u?s:u,this.maxY=a>h?a:h}}addBoundsMatrix(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)}addBoundsArea(e,t){const n=e.minX>t.x?e.minX:t.x,i=e.minY>t.y?e.minY:t.y,s=e.maxX<t.x+t.width?e.maxX:t.x+t.width,a=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(n<=s&&i<=a){const o=this.minX,l=this.minY,u=this.maxX,h=this.maxY;this.minX=n<o?n:o,this.minY=i<l?i:l,this.maxX=s>u?s:u,this.maxY=a>h?a:h}}pad(e=0,t=e){this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)}addFramePad(e,t,n,i,s,a){e-=s,t-=a,n+=s,i+=a,this.minX=this.minX<e?this.minX:e,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<t?this.minY:t,this.maxY=this.maxY>i?this.maxY:i}};class Ml extends Af{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new N4,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new X3,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(e){const t=Object.keys(e);for(let n=0;n<t.length;++n){const i=t[n];Object.defineProperty(Ml.prototype,i,Object.getOwnPropertyDescriptor(e,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),t||(this._boundsRect||(this._boundsRect=new Rt),t=this._boundsRect),this._bounds.getRectangle(t)}getLocalBounds(e){e||(this._localBoundsRect||(this._localBoundsRect=new Rt),e=this._localBoundsRect),this._localBounds||(this._localBounds=new X3);const t=this.transform,n=this.parent;this.parent=null,this._tempDisplayObjectParent.worldAlpha=(n==null?void 0:n.worldAlpha)??1,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,s=this._boundsID;this._bounds=this._localBounds;const a=this.getBounds(!1,e);return this.parent=n,this.transform=t,this._bounds=i,this._bounds.updateID+=this._boundsID-s,a}toGlobal(e,t,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)}toLocal(e,t,n,i){return t&&(e=t.toGlobal(e,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,n)}setParent(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e}removeFromParent(){var e;(e=this.parent)==null||e.removeChild(this)}setTransform(e=0,t=0,n=1,i=1,s=0,a=0,o=0,l=0,u=0){return this.position.x=e,this.position.y=t,this.scale.x=n||1,this.scale.y=i||1,this.rotation=s,this.skew.x=a,this.skew.y=o,this.pivot.x=l,this.pivot.y=u,this}destroy(e){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new sB),this.tempDisplayObjectParent}enableTempParent(){const e=this.parent;return this.parent=this._tempDisplayObjectParent,e}disableTempParent(e){this.parent=e}get x(){return this.position.x}set x(e){this.transform.position.x=e}get y(){return this.position.y}set y(e){this.transform.position.y=e}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(e){this.transform.position.copyFrom(e)}get scale(){return this.transform.scale}set scale(e){this.transform.scale.copyFrom(e)}get pivot(){return this.transform.pivot}set pivot(e){this.transform.pivot.copyFrom(e)}get skew(){return this.transform.skew}set skew(e){this.transform.skew.copyFrom(e)}get rotation(){return this.transform.rotation}set rotation(e){this.transform.rotation=e}get angle(){return this.transform.rotation*WO}set angle(e){this.transform.rotation=e*XO}get zIndex(){return this._zIndex}set zIndex(e){this._zIndex!==e&&(this._zIndex=e,this.parent&&(this.parent.sortDirty=!0))}get worldVisible(){let e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}get mask(){return this._mask}set mask(e){if(this._mask!==e){if(this._mask){const t=this._mask.isMaskData?this._mask.maskObject:this._mask;t&&(t._maskRefCount--,t._maskRefCount===0&&(t.renderable=!0,t.isMask=!1))}if(this._mask=e,this._mask){const t=this._mask.isMaskData?this._mask.maskObject:this._mask;t&&(t._maskRefCount===0&&(t.renderable=!1,t.isMask=!0),t._maskRefCount++)}}}}class sB extends Ml{constructor(){super(...arguments),this.sortDirty=null}}Ml.prototype.displayObjectUpdateTransform=Ml.prototype.updateTransform;const aB=new Zr;function oB(r,e){return r.zIndex===e.zIndex?r._lastSortedIndex-e._lastSortedIndex:r.zIndex-e.zIndex}const SE=class Ly extends Ml{constructor(){super(),this.children=[],this.sortableChildren=Ly.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),i=this.getChildIndex(t);this.children[n]=t,this.children[i]=e,this.onChildrenChange(n<i?n:i)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);yd(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],n=this.children.indexOf(t);if(n===-1)return null;t.parent=null,t.transform._parentID=-1,yd(this.children,n,1),this._boundsID++,this.onChildrenChange(n),t.emit("removed",this),this.emit("childRemoved",t,this,n)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,yd(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const n=e,i=t,s=i-n;let a;if(s>0&&s<=i){a=this.children.splice(n,s);for(let o=0;o<a.length;++o)a[o].parent=null,a[o].transform&&(a[o].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let o=0;o<a.length;++o)a[o].emit("removed",this),this.emit("childRemoved",a[o],this,o);return a}else if(s===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,n=this.children.length;t<n;++t){const i=this.children[t];i._lastSortedIndex=t,!e&&i.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(oB),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const n=this.children[e];n.visible&&n.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const n=t._mask.isMaskData?t._mask.maskObject:t._mask;n?(n.calculateBounds(),this._bounds.addBoundsMask(t._bounds,n._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const n=super.getLocalBounds(e);if(!t)for(let i=0,s=this.children.length;i<s;++i){const a=this.children[i];a.visible&&a.updateTransform()}return n}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let n,i;this.cullArea?(n=this.cullArea,i=this.worldTransform):this._render!==Ly.prototype._render&&(n=this.getBounds(!0));const s=e.projection.transform;if(s&&(i?(i=aB.copyFrom(i),i.prepend(s)):i=s),n&&t.intersects(n,i))this._render(e);else if(this.cullArea)return;for(let a=0,o=this.children.length;a<o;++a){const l=this.children[a],u=l.cullable;l.cullable=u||!this.cullArea,l.render(e),l.cullable=u}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let n=0,i=this.children.length;n<i;++n)this.children[n].render(e)}}renderAdvanced(e){var s,a,o;const t=this.filters,n=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let l=0;l<t.length;l++)t[l].enabled&&this._enabledFilters.push(t[l])}const i=t&&((s=this._enabledFilters)==null?void 0:s.length)||n&&(!n.isMaskData||n.enabled&&(n.autoDetect||n.type!==Gr.NONE));if(i&&e.batch.flush(),t&&((a=this._enabledFilters)!=null&&a.length)&&e.filter.push(this,this._enabledFilters),n&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let l=0,u=this.children.length;l<u;++l)this.children[l].render(e)}i&&e.batch.flush(),n&&e.mask.pop(this),t&&((o=this._enabledFilters)!=null&&o.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,n=this.removeChildren(0,this.children.length);if(t)for(let i=0;i<n.length;++i)n[i].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};SE.defaultSortableChildren=!1;let ji=SE;
vendor: 4,518 bytes, lines 592-601
592ji.prototype.containerUpdateTransform=ji.prototype.updateTransform;Object.defineProperties(Ye,{SORTABLE_CHILDREN:{get(){return ji.defaultSortableChildren},set(r){Dt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),ji.defaultSortableChildren=r}}});function X6(r){return r==="dynamic"||r==="static"}const lB={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??X6(Fy.defaultEventMode)},set interactive(r){Dt("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=r,this.eventMode=r?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??Fy.defaultEventMode},set eventMode(r){this._internalInteractive=X6(r),this._internalEventMode=r},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(r,e,t){const n=typeof t=="boolean"&&t||typeof t=="object"&&t.capture,i=typeof t=="object"?t.signal:void 0,s=typeof t=="object"?t.once===!0:!1,a=typeof e=="function"?void 0:e;r=n?`${r}capture`:r;const o=typeof e=="function"?e:e.handleEvent,l=this;i&&i.addEventListener("abort",()=>{l.off(r,o,a)}),s?l.once(r,o,a):l.on(r,o,a)},removeEventListener(r,e,t){const n=typeof t=="boolean"&&t||typeof t=="object"&&t.capture,i=typeof e=="function"?void 0:e;r=n?`${r}capture`:r,e=typeof e=="function"?e:e.handleEvent,this.off(r,e,i)},dispatchEvent(r){if(!(r instanceof $4))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return r.defaultPrevented=!1,r.path=null,r.target=this,r.manager.dispatchEvent(r),!r.defaultPrevented}};Ml.mixin(lB);var uB=`varying vec2 vTextureCoord;
593
594uniform sampler2D uSampler;
595uniform float uAlpha;
596
597void main(void)
598{
599   gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
600}
601`;class cB extends fl{constructor(e=1){super(XN,uB,{uAlpha:1}),this.alpha=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}var AE={exports:{}},z4=(r=>(r[r.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",r[r.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",r))(z4||{});const H1=new Mt,hB=new Uint16Array([0,1,2,0,2,3]);let Df=class TE extends ji{constructor(e){super(),this._anchor=new dl(this._onAnchorUpdate,this,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new wr(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=et.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=e||yt.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=hB,this.pluginName="batch",this.isSprite=!0,this._roundPixels=Ye.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=wh(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=wh(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const e=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===e._updateID)return;this._textureID!==e._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=e._updateID;const t=this.transform.worldTransform,n=t.a,i=t.b,s=t.c,a=t.d,o=t.tx,l=t.ty,u=this.vertexData,h=e.trim,c=e.orig,d=this._anchor;let f=0,g=0,y=0,v=0;if(h?(g=h.x-d._x*c.width,f=g+h.width,v=h.y-d._y*c.height,y=v+h.height):(g=-d._x*c.width,f=g+c.width,v=-d._y*c.height,y=v+c.height),u[0]=n*g+s*v+o,u[1]=a*v+i*g+l,u[2]=n*f+s*v+o,u[3]=a*v+i*f+l,u[4]=n*f+s*y+o,u[5]=a*y+i*f+l,u[6]=n*g+s*y+o,u[7]=a*y+i*g+l,this._roundPixels){const _=Ye.RESOLUTION;for(let x=0;x<u.length;++x)u[x]=Math.round(u[x]*_)/_}}
vendor: 22,609 bytes, lines 601-602
601calculateTrimmedVertices(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;const e=this._texture,t=this.vertexTrimmedData,n=e.orig,i=this._anchor,s=this.transform.worldTransform,a=s.a,o=s.b,l=s.c,u=s.d,h=s.tx,c=s.ty,d=-i._x*n.width,f=d+n.width,g=-i._y*n.height,y=g+n.height;if(t[0]=a*d+l*g+h,t[1]=u*g+o*d+c,t[2]=a*f+l*g+h,t[3]=u*g+o*f+c,t[4]=a*f+l*y+h,t[5]=u*y+o*f+c,t[6]=a*d+l*y+h,t[7]=u*y+o*d+c,this._roundPixels){const v=Ye.RESOLUTION;for(let _=0;_<t.length;++_)t[_]=Math.round(t[_]*v)/v}}_render(e){this.calculateVertices(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)}_calculateBounds(){const e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))}getLocalBounds(e){return this.children.length===0?(this._localBounds||(this._localBounds=new X3),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new Rt),e=this._localBoundsRect),this._localBounds.getRectangle(e)):super.getLocalBounds.call(this,e)}containsPoint(e){this.worldTransform.applyInverse(e,H1);const t=this._texture.orig.width,n=this._texture.orig.height,i=-t*this.anchor.x;let s=0;return H1.x>=i&&H1.x<i+t&&(s=-n*this.anchor.y,H1.y>=s&&H1.y<s+n)}destroy(e){if(super.destroy(e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,typeof e=="boolean"?e:e==null?void 0:e.texture){const t=typeof e=="boolean"?e:e==null?void 0:e.baseTexture;this._texture.destroy(!!t)}this._texture=null}static from(e,t){const n=e instanceof yt?e:yt.from(e,t);return new TE(n)}set roundPixels(e){this._roundPixels!==e&&(this._transformID=-1,this._transformTrimmedID=-1),this._roundPixels=e}get roundPixels(){return this._roundPixels}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){const t=wh(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){const t=wh(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}get anchor(){return this._anchor}set anchor(e){this._anchor.copyFrom(e)}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber()}get tintValue(){return this._tintColor.toNumber()}get texture(){return this._texture}set texture(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||yt.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}};const ip={willReadFrequently:!0},na=class Ge{static get experimentalLetterSpacingSupported(){let e=Ge._experimentalLetterSpacingSupported;if(e!==void 0){const t=Ye.ADAPTER.getCanvasRenderingContext2D().prototype;e=Ge._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,i,s,a,o,l,u){this.text=e,this.style=t,this.width=n,this.height=i,this.lines=s,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=l,this.fontProperties=u}static measureText(e,t,n,i=Ge._canvas){n=n??t.wordWrap;const s=t.toFontString(),a=Ge.measureFont(s);a.fontSize===0&&(a.fontSize=t.fontSize,a.ascent=t.fontSize);const o=i.getContext("2d",ip);o.font=s;const l=(n?Ge.wordWrap(e,t,i):e).split(/(?:\r\n|\r|\n)/),u=new Array(l.length);let h=0;for(let g=0;g<l.length;g++){const y=Ge._measureText(l[g],t.letterSpacing,o);u[g]=y,h=Math.max(h,y)}let c=h+t.strokeThickness;t.dropShadow&&(c+=t.dropShadowDistance);const d=t.lineHeight||a.fontSize+t.strokeThickness;let f=Math.max(d,a.fontSize+t.strokeThickness*2)+t.leading+(l.length-1)*(d+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new Ge(e,t,c,f,l,u,d+t.leading,h,a)}static _measureText(e,t,n){let i=!1;Ge.experimentalLetterSpacingSupported&&(Ge.experimentalLetterSpacing?(n.letterSpacing=`${t}px`,n.textLetterSpacing=`${t}px`,i=!0):(n.letterSpacing="0px",n.textLetterSpacing="0px"));let s=n.measureText(e).width;return s>0&&(i?s-=t:s+=(Ge.graphemeSegmenter(e).length-1)*t),s}static wordWrap(e,t,n=Ge._canvas){const i=n.getContext("2d",ip);let s=0,a="",o="";const l=Object.create(null),{letterSpacing:u,whiteSpace:h}=t,c=Ge.collapseSpaces(h),d=Ge.collapseNewlines(h);let f=!c;const g=t.wordWrapWidth+u,y=Ge.tokenize(e);for(let v=0;v<y.length;v++){let _=y[v];if(Ge.isNewline(_)){if(!d){o+=Ge.addLine(a),f=!c,a="",s=0;continue}_=" "}if(c){const w=Ge.isBreakingSpace(_),S=Ge.isBreakingSpace(a[a.length-1]);if(w&&S)continue}const x=Ge.getFromCache(_,u,l,i);if(x>g)if(a!==""&&(o+=Ge.addLine(a),a="",s=0),Ge.canBreakWords(_,t.breakWords)){const w=Ge.wordWrapSplit(_);for(let S=0;S<w.length;S++){let b=w[S],E=b,D=1;for(;w[S+D];){const I=w[S+D];if(!Ge.canBreakChars(E,I,_,S,t.breakWords))b+=I;else break;E=I,D++}S+=D-1;const P=Ge.getFromCache(b,u,l,i);P+s>g&&(o+=Ge.addLine(a),f=!1,a="",s=0),a+=b,s+=P}}else{a.length>0&&(o+=Ge.addLine(a),a="",s=0);const w=v===y.length-1;o+=Ge.addLine(_,!w),f=!1,a="",s=0}else x+s>g&&(f=!1,o+=Ge.addLine(a),a="",s=0),(a.length>0||!Ge.isBreakingSpace(_)||f)&&(a+=_,s+=x)}return o+=Ge.addLine(a,!1),o}static addLine(e,t=!0){return e=Ge.trimRight(e),e=t?`${e}
602`:e,e}static getFromCache(e,t,n,i){let s=n[e];return typeof s!="number"&&(s=Ge._measureText(e,t,i)+t,n[e]=s),s}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!Ge.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:Ge._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:Ge._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let i=0;i<e.length;i++){const s=e[i],a=e[i+1];if(Ge.isBreakingSpace(s,a)||Ge.isNewline(s)){n!==""&&(t.push(n),n=""),t.push(s);continue}n+=s}return n!==""&&t.push(n),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,n,i,s){return!0}static wordWrapSplit(e){return Ge.graphemeSegmenter(e)}static measureFont(e){if(Ge._fonts[e])return Ge._fonts[e];const t={ascent:0,descent:0,fontSize:0},n=Ge._canvas,i=Ge._context;i.font=e;const s=Ge.METRICS_STRING+Ge.BASELINE_SYMBOL,a=Math.ceil(i.measureText(s).width);let o=Math.ceil(i.measureText(Ge.BASELINE_SYMBOL).width);const l=Math.ceil(Ge.HEIGHT_MULTIPLIER*o);if(o=o*Ge.BASELINE_MULTIPLIER|0,a===0||l===0)return Ge._fonts[e]=t,t;n.width=a,n.height=l,i.fillStyle="#f00",i.fillRect(0,0,a,l),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(s,0,o);const u=i.getImageData(0,0,a,l).data,h=u.length,c=a*4;let d=0,f=0,g=!1;for(d=0;d<o;++d){for(let y=0;y<c;y+=4)if(u[f+y]!==255){g=!0;break}if(!g)f+=c;else break}for(t.ascent=o-d,f=h-c,g=!1,d=l;d>o;--d){for(let y=0;y<c;y+=4)if(u[f+y]!==255){g=!0;break}if(!g)f-=c;else break}return t.descent=d-o,t.fontSize=t.ascent+t.descent,Ge._fonts[e]=t,t}static clearMetrics(e=""){e?delete Ge._fonts[e]:Ge._fonts={}}static get _canvas(){var e;if(!Ge.__canvas){let t;try{const n=new OffscreenCanvas(0,0);if((e=n.getContext("2d",ip))!=null&&e.measureText)return Ge.__canvas=n,n;t=Ye.ADAPTER.createCanvas()}catch{t=Ye.ADAPTER.createCanvas()}t.width=t.height=10,Ge.__canvas=t}return Ge.__canvas}static get _context(){return Ge.__context||(Ge.__context=Ge._canvas.getContext("2d",ip)),Ge.__context}};na.METRICS_STRING="|ÉqÅ",na.BASELINE_SYMBOL="M",na.BASELINE_MULTIPLIER=1.4,na.HEIGHT_MULTIPLIER=2,na.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const r=new Intl.Segmenter;return e=>[...r.segment(e)].map(t=>t.segment)}return r=>[...r]})(),na.experimentalLetterSpacing=!1,na._fonts={},na._newlines=[10,13],na._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let Tu=na;const dB=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],EE=class X1{constructor(e){this.styleID=0,this.reset(),o9(this,e,e)}clone(){const e={};return o9(e,this,X1.defaultStyle),new X1(e)}reset(){o9(this,X1.defaultStyle,X1.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=a9(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=a9(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){fB(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=a9(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let i=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&!dB.includes(i)&&(i=`"${i}"`),t[n]=i}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};EE.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:z4.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};let Y3=EE;function a9(r){const e=wr.shared,t=n=>{const i=e.setValue(n);return i.alpha===1?i.toHex():i.toRgbaString()};return Array.isArray(r)?r.map(t):t(r)}function fB(r,e){if(!Array.isArray(r)||!Array.isArray(e)||r.length!==e.length)return!1;for(let t=0;t<r.length;++t)if(r[t]!==e[t])return!1;return!0}function o9(r,e,t){for(const n in t)Array.isArray(e[n])?r[n]=e[n].slice():r[n]=e[n]}const pB={texture:!0,children:!1,baseTexture:!0},PE=class Oy extends Df{constructor(e,t,n){let i=!1;n||(n=Ye.ADAPTER.createCanvas(),i=!0),n.width=3,n.height=3;const s=yt.from(n);s.orig=new Rt,s.trim=new Rt,super(s),this._ownCanvas=i,this.canvas=n,this.context=n.getContext("2d",{willReadFrequently:!0}),this._resolution=Oy.defaultResolution??Ye.RESOLUTION,this._autoResolution=Oy.defaultAutoResolution,this._text=null,this._style=null,this._styleListener=null,this._font="",this.text=e,this.style=t,this.localStyleID=-1}static get experimentalLetterSpacing(){return Tu.experimentalLetterSpacing}static set experimentalLetterSpacing(e){Dt("7.1.0","Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"),Tu.experimentalLetterSpacing=e}updateText(e){const t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;this._font=this._style.toFontString();const n=this.context,i=Tu.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),s=i.width,a=i.height,o=i.lines,l=i.lineHeight,u=i.lineWidths,h=i.maxLineWidth,c=i.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,s)+t.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,a)+t.padding*2)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=t.strokeThickness,n.textBaseline=t.textBaseline,n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit;let d,f;const g=t.dropShadow?2:1;for(let y=0;y<g;++y){const v=t.dropShadow&&y===0,_=v?Math.ceil(Math.max(1,a)+t.padding*2):0,x=_*this._resolution;if(v){n.fillStyle="black",n.strokeStyle="black";const S=t.dropShadowColor,b=t.dropShadowBlur*this._resolution,E=t.dropShadowDistance*this._resolution;n.shadowColor=wr.shared.setValue(S).setAlpha(t.dropShadowAlpha).toRgbaString(),n.shadowBlur=b,n.shadowOffsetX=Math.cos(t.dropShadowAngle)*E,n.shadowOffsetY=Math.sin(t.dropShadowAngle)*E+x}else n.fillStyle=this._generateFillStyle(t,o,i),n.strokeStyle=t.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0;let w=(l-c.fontSize)/2;l-c.fontSize<0&&(w=0);for(let S=0;S<o.length;S++)d=t.strokeThickness/2,f=t.strokeThickness/2+S*l+c.ascent+w,t.align==="right"?d+=h-u[S]:t.align==="center"&&(d+=(h-u[S])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(o[S],d+t.padding,f+t.padding-_,!0),t.fill&&this.drawLetterSpacing(o[S],d+t.padding,f+t.padding-_)}this.updateTexture()}drawLetterSpacing(e,t,n,i=!1){const s=this._style.letterSpacing;let a=!1;if(Tu.experimentalLetterSpacingSupported&&(Tu.experimentalLetterSpacing?(this.context.letterSpacing=`${s}px`,this.context.textLetterSpacing=`${s}px`,a=!0):(this.context.letterSpacing="0px",this.context.textLetterSpacing="0px")),s===0||a){i?this.context.strokeText(e,t,n):this.context.fillText(e,t,n);return}let o=t;const l=Tu.graphemeSegmenter(e);let u=this.context.measureText(e).width,h=0;for(let c=0;c<l.length;++c){const d=l[c];i?this.context.strokeText(d,o,n):this.context.fillText(d,o,n);let f="";for(let g=c+1;g<l.length;++g)f+=l[g];h=this.context.measureText(f).width,o+=u-h+s,u=h}}updateTexture(){const e=this.canvas;if(this._style.trim){const a=RO(e);a.data&&(e.width=a.width,e.height=a.height,this.context.putImageData(a.data,0,0))}const t=this._texture,n=this._style,i=n.trim?0:n.padding,s=t.baseTexture;t.trim.width=t._frame.width=e.width/this._resolution,t.trim.height=t._frame.height=e.height/this._resolution,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),s.setRealSize(e.width,e.height,this._resolution),t.updateUvs(),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}updateTransform(){this.updateText(!0),super.updateTransform()}getBounds(e,t){return this.updateText(!0),this._textureID===-1&&(e=!1),super.getBounds(e,t)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds.call(this,e)}_calculateBounds(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_generateFillStyle(e,t,n){const i=e.fill;if(Array.isArray(i)){if(i.length===1)return i[0]}else return i;let s;const a=e.dropShadow?e.dropShadowDistance:0,o=e.padding||0,l=this.canvas.width/this._resolution-a-o*2,u=this.canvas.height/this._resolution-a-o*2,h=i.slice(),c=e.fillGradientStops.slice();if(!c.length){const d=h.length+1;for(let f=1;f<d;++f)c.push(f/d)}if(h.unshift(i[0]),c.unshift(0),h.push(i[i.length-1]),c.push(1),e.fillGradientType===z4.LINEAR_VERTICAL){s=this.context.createLinearGradient(l/2,o,l/2,u+o);const d=n.fontProperties.fontSize+e.strokeThickness;for(let f=0;f<t.length;f++){const g=n.lineHeight*(f-1)+d,y=n.lineHeight*f;let v=y;f>0&&g>y&&(v=(y+g)/2);const _=y+d,x=n.lineHeight*(f+1);let w=_;f+1<t.length&&x<_&&(w=(_+x)/2);const S=(w-v)/u;for(let b=0;b<h.length;b++){let E=0;typeof c[b]=="number"?E=c[b]:E=b/h.length;let D=Math.min(1,Math.max(0,v/u+E*S));D=Number(D.toFixed(5)),s.addColorStop(D,h[b])}}}else{s=this.context.createLinearGradient(o,u/2,l+o,u/2);const d=h.length+1;let f=1;for(let g=0;g<h.length;g++){let y;typeof c[g]=="number"?y=c[g]:y=f/d,s.addColorStop(y,h[g]),f++}}return s}destroy(e){typeof e=="boolean"&&(e={children:e}),e=Object.assign({},pB,e),super.destroy(e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this.updateText(!0);const t=wh(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this.updateText(!0);const t=wh(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}get style(){return this._style}set style(e){e=e||{},e instanceof Y3?this._style=e:this._style=new Y3(e),this.localStyleID=-1,this.dirty=!0}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}};PE.defaultAutoResolution=!0;let mB=PE;class Z3{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class Vp{static test(e){return typeof e=="string"&&e.startsWith("info face=")}static parse(e){const t=e.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const s in t){const a=t[s].match(/^[a-z]+/gm)[0],o=t[s].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),l={};for(const u in o){const h=o[u].split("="),c=h[0],d=h[1].replace(/"/gm,""),f=parseFloat(d),g=isNaN(f)?d:f;l[c]=g}n[a].push(l)}const i=new Z3;return n.info.forEach(s=>i.info.push({face:s.face,size:parseInt(s.size,10)})),n.common.forEach(s=>i.common.push({lineHeight:parseInt(s.lineHeight,10)})),n.page.forEach(s=>i.page.push({id:parseInt(s.id,10),file:s.file})),n.char.forEach(s=>i.char.push({id:parseInt(s.id,10),page:parseInt(s.page,10),x:parseInt(s.x,10),y:parseInt(s.y,10),width:parseInt(s.width,10),height:parseInt(s.height,10),xoffset:parseInt(s.xoffset,10),yoffset:parseInt(s.yoffset,10),xadvance:parseInt(s.xadvance,10)})),n.kerning.forEach(s=>i.kerning.push({first:parseInt(s.first,10),second:parseInt(s.second,10),amount:parseInt(s.amount,10)})),n.distanceField.forEach(s=>i.distanceField.push({distanceRange:parseInt(s.distanceRange,10),fieldType:s.fieldType})),i}}class Ny{static test(e){const t=e;return typeof e!="string"&&"getElementsByTagName"in e&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(e){const t=new Z3,n=e.getElementsByTagName("info"),i=e.getElementsByTagName("common"),s=e.getElementsByTagName("page"),a=e.getElementsByTagName("char"),o=e.getElementsByTagName("kerning"),l=e.getElementsByTagName("distanceField");for(let u=0;u<n.length;u++)t.info.push({face:n[u].getAttribute("face"),size:parseInt(n[u].getAttribute("size"),10)});for(let u=0;u<i.length;u++)t.common.push({lineHeight:parseInt(i[u].getAttribute("lineHeight"),10)});for(let u=0;u<s.length;u++)t.page.push({id:parseInt(s[u].getAttribute("id"),10)||0,file:s[u].getAttribute("file")});for(let u=0;u<a.length;u++){const h=a[u];t.char.push({id:parseInt(h.getAttribute("id"),10),page:parseInt(h.getAttribute("page"),10)||0,x:parseInt(h.getAttribute("x"),10),y:parseInt(h.getAttribute("y"),10),width:parseInt(h.getAttribute("width"),10),height:parseInt(h.getAttribute("height"),10),xoffset:parseInt(h.getAttribute("xoffset"),10),yoffset:parseInt(h.getAttribute("yoffset"),10),xadvance:parseInt(h.getAttribute("xadvance"),10)})}for(let u=0;u<o.length;u++)t.kerning.push({first:parseInt(o[u].getAttribute("first"),10),second:parseInt(o[u].getAttribute("second"),10),amount:parseInt(o[u].getAttribute("amount"),10)});for(let u=0;u<l.length;
602u++)t.distanceField.push({fieldType:l[u].getAttribute("fieldType"),distanceRange:parseInt(l[u].getAttribute("distanceRange"),10)});return t}}class By{static test(e){return typeof e=="string"&&e.includes("<font>")?Ny.test(Ye.ADAPTER.parseXML(e)):!1}static parse(e){return Ny.parse(Ye.ADAPTER.parseXML(e))}}const l9=[Vp,Ny,By];function gB(r){for(let e=0;e<l9.length;e++)if(l9[e].test(r))return l9[e];return null}function yB(r,e,t,n,i,s){const a=t.fill;if(Array.isArray(a)){if(a.length===1)return a[0]}else return a;let o;const l=t.dropShadow?t.dropShadowDistance:0,u=t.padding||0,h=r.width/n-l-u*2,c=r.height/n-l-u*2,d=a.slice(),f=t.fillGradientStops.slice();if(!f.length){const g=d.length+1;for(let y=1;y<g;++y)f.push(y/g)}if(d.unshift(a[0]),f.unshift(0),d.push(a[a.length-1]),f.push(1),t.fillGradientType===z4.LINEAR_VERTICAL){o=e.createLinearGradient(h/2,u,h/2,c+u);let g=0;const y=(s.fontProperties.fontSize+t.strokeThickness)/c;for(let v=0;v<i.length;v++){const _=s.lineHeight*v;for(let x=0;x<d.length;x++){let w=0;typeof f[x]=="number"?w=f[x]:w=x/d.length;const S=_/c+w*y;let b=Math.max(g,S);b=Math.min(b,1),o.addColorStop(b,d[x]),g=b}}}else{o=e.createLinearGradient(u,c/2,h+u,c/2);const g=d.length+1;let y=1;for(let v=0;v<d.length;v++){let _;typeof f[v]=="number"?_=f[v]:_=y/g,o.addColorStop(_,d[v]),y++}}return o}function vB(r,e,t,n,i,s,a){const o=t.text,l=t.fontProperties;e.translate(n,i),e.scale(s,s);const u=a.strokeThickness/2,h=-(a.strokeThickness/2);if(e.font=a.toFontString(),e.lineWidth=a.strokeThickness,e.textBaseline=a.textBaseline,e.lineJoin=a.lineJoin,e.miterLimit=a.miterLimit,e.fillStyle=yB(r,e,a,s,[o],t),e.strokeStyle=a.stroke,a.dropShadow){const c=a.dropShadowColor,d=a.dropShadowBlur*s,f=a.dropShadowDistance*s;e.shadowColor=wr.shared.setValue(c).setAlpha(a.dropShadowAlpha).toRgbaString(),e.shadowBlur=d,e.shadowOffsetX=Math.cos(a.dropShadowAngle)*f,e.shadowOffsetY=Math.sin(a.dropShadowAngle)*f}else e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0;a.stroke&&a.strokeThickness&&e.strokeText(o,u,h+t.lineHeight-l.descent),a.fill&&e.fillText(o,u,h+t.lineHeight-l.descent),e.setTransform(1,0,0,1,0,0),e.fillStyle="rgba(0, 0, 0, 0)"}function Gp(r){return r.codePointAt?r.codePointAt(0):r.charCodeAt(0)}function DE(r){return Array.from?Array.from(r):r.split("")}function _B(r){typeof r=="string"&&(r=[r]);const e=[];for(let t=0,n=r.length;t<n;t++){const i=r[t];if(Array.isArray(i)){if(i.length!==2)throw new Error(`[BitmapFont]: Invalid character range length, expecting 2 got ${i.length}.`);const s=i[0].charCodeAt(0),a=i[1].charCodeAt(0);if(a<s)throw new Error("[BitmapFont]: Invalid character range.");for(let o=s,l=a;o<=l;o++)e.push(String.fromCharCode(o))}else e.push(...DE(i))}if(e.length===0)throw new Error("[BitmapFont]: Empty set when resolving characters.");return e}const qo=class ia{constructor(e,t,n){var h;const[i]=e.info,[s]=e.common,[a]=e.page,[o]=e.distanceField,l=c0(a.file),u={};this._ownsTextures=n,this.font=i.face,this.size=i.size,this.lineHeight=s.lineHeight/l,this.chars={},this.pageTextures=u;for(let c=0;c<e.page.length;c++){const{id:d,file:f}=e.page[c];u[d]=t instanceof Array?t[c]:t[f],o!=null&&o.fieldType&&o.fieldType!=="none"&&(u[d].baseTexture.alphaMode=us.NO_PREMULTIPLIED_ALPHA,u[d].baseTexture.mipmap=Il.OFF)}for(let c=0;c<e.char.length;c++){const{id:d,page:f}=e.char[c];let{x:g,y,width:v,height:_,xoffset:x,yoffset:w,xadvance:S}=e.char[c];g/=l,y/=l,v/=l,_/=l,x/=l,w/=l,S/=l;const b=new Rt(g+u[f].frame.x/l,y+u[f].frame.y/l,v,_);this.chars[d]={xOffset:x,yOffset:w,xAdvance:S,kerning:{},texture:new yt(u[f].baseTexture,b),page:f}}for(let c=0;c<e.kerning.length;c++){let{first:d,second:f,amount:g}=e.kerning[c];d/=l,f/=l,g/=l,this.chars[f]&&(this.chars[f].kerning[d]=g)}this.distanceFieldRange=o==null?void 0:o.distanceRange,this.distanceFieldType=((h=o==null?void 0:o.fieldType)==null?void 0:h.toLowerCase())??"none"}destroy(){for(const e in this.chars)this.chars[e].texture.destroy(),this.chars[e].texture=null;for(const e in this.pageTextures)this._ownsTextures&&this.pageTextures[e].destroy(!0),this.pageTextures[e]=null;this.chars=null,this.pageTextures=null}static install(e,t,n){let i;if(e instanceof Z3)i=e;else{const a=gB(e);if(!a)throw new Error("Unrecognized data format for font.");i=a.parse(e)}t instanceof yt&&(t=[t]);const s=new ia(i,t,n);return ia.available[s.font]=s,s}static uninstall(e){const t=ia.available[e];if(!t)throw new Error(`No font found named '${e}'`);t.destroy(),delete ia.available[e]}static from(e,t,n){if(!e)throw new Error("[BitmapFont] Property `name` is required.");const{chars:i,padding:s,resolution:a,textureWidth:o,textureHeight:l,...u}=Object.assign({},ia.defaultOptions,n),h=_B(i),c=t instanceof Y3?t:new Y3(t),d=o,f=new Z3;f.info[0]={face:c.fontFamily,size:c.fontSize},f.common[0]={lineHeight:c.fontSize};let g=0,y=0,v,_,x,w=0;const S=[];for(let E=0;E<h.length;E++){v||(v=Ye.ADAPTER.createCanvas(),v.width=o,v.height=l,_=v.getContext("2d"),x=new bt(v,{resolution:a,...u}),S.push(new yt(x)),f.page.push({id:S.length-1,file:""}));const D=h[E],P=Tu.measureText(D,c,!1,v),I=P.width,R=Math.ceil(P.height),U=Math.ceil((c.fontStyle==="italic"?2:1)*I);if(y>=l-R*a){if(y===0)throw new Error(`[BitmapFont] textureHeight ${l}px is too small (fontFamily: '${c.fontFamily}', fontSize: ${c.fontSize}px, char: '${D}')`);--E,v=null,_=null,x=null,y=0,g=0,w=0;continue}if(w=Math.max(R+P.fontProperties.descent,w),U*a+g>=d){if(g===0)throw new Error(`[BitmapFont] textureWidth ${o}px is too small (fontFamily: '${c.fontFamily}', fontSize: ${c.fontSize}px, char: '${D}')`);--E,y+=w*a,y=Math.ceil(y),g=0,w=0;continue}vB(v,_,P,g,y,a,c);const N=Gp(P.text);f.char.push({id:N,page:S.length-1,x:g/a,y:y/a,width:U,height:R,xoffset:0,yoffset:0,xadvance:I-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0)}),g+=(U+2*s)*a,g=Math.ceil(g)}if(!(n!=null&&n.skipKerning))for(let E=0,D=h.length;E<D;E++){const P=h[E];for(let I=0;I<D;I++){const R=h[I],U=_.measureText(P).width,N=_.measureText(R).width,F=_.measureText(P+R).width-(U+N);F&&f.kerning.push({first:Gp(P),second:Gp(R),amount:F})}}const b=new ia(f,S,!0);return ia.available[e]!==void 0&&ia.uninstall(e),ia.available[e]=b,b}};qo.ALPHA=[["a","z"],["A","Z"]," "],qo.NUMERIC=[["0","9"]],qo.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],qo.ASCII=[[" ","~"]],qo.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:qo.ALPHANUMERIC},qo.available={};let Qo=qo;class xB{constructor(e,t){this.uvBuffer=e,this.uvMatrix=t,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}update(e){if(!e&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)return;this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;const t=this.uvBuffer.data;(!this.data||this.data.length!==t.length)&&(this.data=new Float32Array(t.length)),this.uvMatrix.multiplyUvs(t,this.data),this._updateID++}}const u9=new Mt,Y6=new vd,HE=class kE extends ji{constructor(e,t,n,i=Os.TRIANGLES){super(),this.geometry=e,this.shader=t,this.state=n||Da.for2d(),this.drawMode=i,this.start=0,this.size=0,this.uvs=null,this.indices=null,this.vertexData=new Float32Array(1),this.vertexDirty=-1,this._transformID=-1,this._roundPixels=Ye.ROUND_PIXELS,this.batchUvs=null}get geometry(){return this._geometry}set geometry(e){this._geometry!==e&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=e,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)}get uvBuffer(){return this.geometry.buffers[1]}get verticesBuffer(){return this.geometry.buffers[0]}set material(e){this.shader=e}get material(){return this.shader}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}set roundPixels(e){this._roundPixels!==e&&(this._transformID=-1),this._roundPixels=e}get roundPixels(){return this._roundPixels}get tint(){return"tint"in this.shader?this.shader.tint:null}set tint(e){this.shader.tint=e}get tintValue(){return this.shader.tintValue}get texture(){return"texture"in this.shader?this.shader.texture:null}set texture(e){this.shader.texture=e}_render(e){const t=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===Os.TRIANGLES&&t.length<kE.BATCHABLE_SIZE*2?this._renderToBatch(e):this._renderDefault(e)}_renderDefault(e){const t=this.shader;
602t.alpha=this.worldAlpha,t.update&&t.update(),e.batch.flush(),t.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),e.shader.bind(t),e.state.set(this.state),e.geometry.bind(this.geometry,t),e.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}_renderToBatch(e){const t=this.geometry,n=this.shader;n.uvMatrix&&(n.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=t.indexBuffer.data,this._tintRGB=n._tintRGB,this._texture=n.texture;const i=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[i]),e.plugins[i].render(this)}calculateVertices(){const e=this.geometry.buffers[0],t=e.data,n=e._updateID;if(n===this.vertexDirty&&this._transformID===this.transform._worldID)return;this._transformID=this.transform._worldID,this.vertexData.length!==t.length&&(this.vertexData=new Float32Array(t.length));const i=this.transform.worldTransform,s=i.a,a=i.b,o=i.c,l=i.d,u=i.tx,h=i.ty,c=this.vertexData;for(let d=0;d<c.length/2;d++){const f=t[d*2],g=t[d*2+1];c[d*2]=s*f+o*g+u,c[d*2+1]=a
602*f+l*g+h}if(this._roundPixels){const d=Ye.RESOLUTION;for(let f=0;f<c.length;++f)c[f]=Math.round(c[f]*d)/d}this.vertexDirty=n}calculateUvs(){const e=this.geometry.buffers[1],t=this.shader;t.uvMatrix.isSimple?this.uvs=e.data:(this.batchUvs||(this.batchUvs=new xB(e,t.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)}_calculateBounds(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)}containsPoint(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,u9);const t=this.geometry.getBuffer("aVertexPosition").data,n=Y6.points,i=this.geometry.getIndex().data,s=i.length,a=this.drawMode===4?3:1;for(let o=0;o+2<s;o+=a){const l=i[o]*2,u=i[o+1]*2,h=i[o+2]*2;if(n[0]=t[l],n[1]=t[l+1],n[2]=t[u],n[3]=t[u+1],n[4]=t[h],n[5]=t[h+1],Y6.contains(u9.x,u9.y))return!0}return!1}destroy(e){super.destroy(e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null}};HE.BATCHABLE_SIZE=100;let Kd=HE;class j4 extends Pf{constructor(e,t,n){super();const i=new Xr(e),s=new Xr(t,!0),a=new Xr(n,!0,!0);this.addAttribute("aVertexPosition",i,2,!1,ot.FLOAT).addAttribute("aTextureCoord",s,2,!1,ot.FLOAT).addIndex(a),this._updateId=-1}get vertexDirtyId(){return this.buffers[0]._updateID}}var CB=`varying vec2 vTextureCoord;
603uniform vec4 uColor;
604
605uniform sampler2D uSampler;
606
607void main(void)
608{
609    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
610}
611`,wB=`attribute vec2 aVertexPosition;
612attribute vec2 aTextureCoord;
613
614uniform mat3 projectionMatrix;
615uniform mat3 translationMatrix;
616uniform mat3 uTextureMatrix;
617
618varying vec2 vTextureCoord;
619
620void main(void)
621{
622    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
622)).xy, 0.0, 1.0);
623
624    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
625}
626`;class Jd extends xa{constructor(e,t){const n={uSampler:e,alpha:1,uTextureMatrix:Zr.IDENTITY,uColor:new Float32Array([1,1,1,1])};t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t),t.uniforms&&Object.assign(n,t.uniforms),super(t.program||to.from(wB,CB),n),this._colorDirty=!1,this.uvMatrix=new I_(e),this.batchable=t.program===void 0,this.pluginName=t.pluginName,this._tintColor=new wr(t.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=t.alpha}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const e=this.texture.baseTexture.alphaMode;wr.shared.setValue(this._tintColor).premultiply(this._alpha,e).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}var bB=`// Pixi texture info\r
627varying vec2 vTextureCoord;\r
628uniform sampler2D uSampler;\r
629\r
630// Tint\r
631uniform vec4 uColor;\r
632\r
633// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r
634uniform float uFWidth;\r
635\r
636void main(void) {\r
637\r
638  // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r
639  vec4 texColor = texture2D(uSampler, vTextureCoord);\r
640\r
641  // MSDF\r
642  float median = texColor.r + texColor.g + texColor.b -\r
643                  min(texColor.r, min(texColor.g, texColor.b)) -\r
644                  max(texColor.r, max(texColor.g, texColor.b));\r
645  // SDF\r
646  median = min(median, texColor.a);\r
647\r
648  float screenPxDistance = uFWidth * (median - 0.5);\r
649  float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r
650  if (median < 0.01) {\r
651    alpha = 0.0;\r
652  } else if (median > 0.99) {\r
653    alpha = 1.0;\r
654  }\r
655\r
656  // Gamma correction for coverage-like alpha\r
657  float luma = dot(uColor.rgb, vec3(0.299, 0.587, 0.114));\r
658  float gamma = mix(1.0, 1.0 / 2.2, luma);\r
659  float coverage = pow(uColor.a * alpha, gamma);  \r
660\r
661  // NPM Textures, NPM outputs\r
662  gl_FragColor = vec4(uColor.rgb, coverage);\r
663}\r
664`,SB=`// Mesh material default fragment\r
665attribute vec2 aVertexPosition;\r
666attribute vec2 aTextureCoord;\r
667\r
668uniform mat3 projectionMatrix;\r
669uniform mat3 translationMatrix;\r
670uniform mat3 uTextureMatrix;\r
671\r
672varying vec2 vTextureCoord;\r
673\r
674void main(void)\r
675{\r
676    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
676)).xy, 0.0, 1.0);\r
677\r
678    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
679}\r
680`;const Z6=[],q6=[],Q6=[],IE=class ME extends ji{constructor(e,t={}){super();const{align:n,tint:i,maxWidth:s,letterSpacing:a,fontName:o,fontSize:l}=Object.assign({},ME.styleDefaults,t);if(!Qo.available[o])throw new Error(`Missing BitmapFont "${o}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new wr(i),this._font=void 0,this._fontName=o,this._fontSize=l,this.text=e,this._maxWidth=s,this._maxLineHeight=0,this._letterSpacing=a,this._anchor=new dl(()=>{this.dirty=!0},this,0,0),this._roundPixels=Ye.ROUND_PIXELS,this.dirty=!0,this._resolution=Ye.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var U;const e=Qo.available[this._fontName],t=this.fontSize,n=t/e.size,i=new Mt,s=[],a=[],o=[],l=this._text.replace(/(?:\r\n|\r)/g,`
681`)||" ",u=DE(l),h=this._maxWidth*e.size/t,c=e.distanceFieldType==="none"?Z6:q6;let d=null,f=0,g=0,y=0,v=-1,_=0,x=0,w=0,S=0;for(let N=0;N<u.length;N++){const F=u[N],O=Gp(F);if(/(?:\s)/.test(F)&&(v=N,_=f,S++),F==="\r"||F===`
682`){a.push(f),o.push(-1),g=Math.max(g,f),++y,++x,i.x=0,i.y+=e.lineHeight,d=null,S=0;continue}const V=e.chars[O];if(!V)continue;d&&V.kerning[d]&&(i.x+=V.kerning[d]);const q=Q6.pop()||{texture:yt.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Mt};q.texture=V.texture,q.line=y,q.charCode=O,q.position.x=Math.round(i.x+V.xOffset+this._letterSpacing/2),q.position.y=Math.round(i.y+V.yOffset),q.prevSpaces=S,s.push(q),f=q.position.x+Math.max(V.xAdvance-V.xOffset,V.texture.orig.width),i.x+=V.xAdvance+this._letterSpacing,w=Math.max(w,V.yOffset+V.texture.height),d=O,v!==-1&&h>0&&i.x>h&&(++x,yd(s,1+v-x,1+N-v),N=v,v=-1,a.push(_),o.push(s.length>0?s[s.length-1].prevSpaces:0),g=Math.max(g,_),y++,i.x=0,i.y+=e.lineHeight,d=null,S=0)}const b=u[u.length-1];b!=="\r"&&b!==`
683`&&(/(?:\s)/.test(b)&&(f=_),a.push(f),g=Math.max(g,f),o.push(-1));const E=[];for(let N=0;N<=y;N++){let F=0;this._align==="right"?F=g-a[N]:this._align==="center"?F=(g-a[N])/2:this._align==="justify"&&(F=o[N]<0?0:(g-a[N])/o[N]),E.push(F)}const D=s.length,P={},I=[],R=this._activePagesMeshData;c.push(...R);for(let N=0;N<D;N++){const F=s[N].texture,O=F.baseTexture.uid;if(!P[O]){let V=c.pop();if(!V){const Z=new j4;let j,Y;e.distanceFieldType==="none"?(j=new Jd(yt.EMPTY),Y=et.NORMAL):(j=new Jd(yt.EMPTY,{program:to.from(SB,bB),uniforms:{uFWidth:0}}),Y=et.NORMAL_NPM);const G=new Kd(Z,j);G.blendMode=Y,V={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:G,vertices:null,uvs:null,indices:null}}V.index=0,V.indexCount=0,V.vertexCount=0,V.uvsCount=0,V.total=0;const{_textureCache:q}=this;q[O]=q[O]||new yt(F.baseTexture),V.mesh.texture=q[O],V.mesh.tint=this._tintColor.value,I.push(V),P[O]=V}P[O].total++}for(let N=0;N<R.length;N++)I.includes(R[N])||this.removeChild(R[N].mesh);for(let N=0;N<I.length;N++)I[N].mesh.parent!==this&&this.addChild(I[N].mesh);this._activePagesMeshData=I;for(const N in P){const F=P[N],O=F.total;if(!(((U=F.indices)==null?void 0:U.length)>6*O)||F.vertices.length<Kd.BATCHABLE_SIZE*2)F.vertices=new Float32Array(4*2*O),F.uvs=new Float32Array(4*2*O),F.indices=new Uint16Array(6*O);else{const V=F.total,q=F.vertices;for(let Z=V*4*2;Z<q.length;Z++)q[Z]=0}F.mesh.size=6*O}for(let N=0;N<D;N++){const F=s[N];let O=F.position.x+E[F.line]*(this._align==="justify"?F.prevSpaces:1);this._roundPixels&&(O=Math.round(O));const V=O*n,q=F.position.y*n,Z=F.texture,j=P[Z.baseTexture.uid],Y=Z.frame,G=Z._uvs,J=j.index++;j.indices[J*6+0]=0+J*4,j.indices[J*6+1]=1+J*4,j.indices[J*6+2]=2+J*4,j.indices[J*6+3]=0+J*4,j.indices[J*6+4]=2+J*4,j.indices[J*6+5]=3+J*4,j.vertices[J*8+0]=V,j.vertices[J*8+1]=q,j.vertices[J*8+2]=V+Y.width*n,j.vertices[J*8+3]=q,j.vertices[J*8+4]=V+Y.width*n,j.vertices[J*8+5]=q+Y.height*n,j.vertices[J*8+6]=V,j.vertices[J*8+7]=q+Y.height*n,j.uvs[J*8+0]=G.x0,j.uvs[J*8+1]=G.y0,j.uvs[J*8+2]=G.x1,j.uvs[J*8+3]=G.y1,j.uvs[J*8+4]=G.x2,j.uvs[J*8+5]=G.y2,j.uvs[J*8+6]=G.x3,j.uvs[J*8+7]=G.y3}this._textWidth=g*n,this._textHeight=(i.y+e.lineHeight)*n;for(const N in P){const F=P[N];if(this.anchor.x!==0||this.anchor.y!==0){let Z=0;const j=this._textWidth*this.anchor.x,Y=this._textHeight*this.anchor.y;for(let G=0;G<F.total;G++)F.vertices[Z++]-=j,F.vertices[Z++]-=Y,F.vertices[Z++]-=j,F.vertices[Z++]-=Y,F.vertices[Z++]-=j,F.vertices[Z++]-=Y,F.vertices[Z++]-=j,F.vertices[Z++]-=Y}this._maxLineHeight=w*n;const O=F.mesh.geometry.getBuffer("aVertexPosition"),V=F.mesh.geometry.getBuffer("aTextureCoord"),q=F.mesh.geometry.getIndex();
683O.data=F.vertices,V.data=F.uvs,q.data=F.indices,O.update(),V.update(),q.update()}for(let N=0;N<s.length;N++)Q6.push(s[N]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:n,size:i}=Qo.available[this._fontName];if(n!=="none"){const{a:s,b:a,c:o,d:l}=this.worldTransform,u=Math.sqrt(s*s+a*a),h=Math.sqrt(o*o+l*l),c=(Math.abs(u)+Math.abs(h))/2,d=this.fontSize/i,f=e._view.resolution;for(const g of this._activePagesMeshData)g.mesh.shader.uniforms.uFWidth=c*t*d*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Qo.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Qo.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Qo.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}destroy(e){const{_textureCache:t}=this,n=Qo.available[this._fontName].distanceFieldType==="none"?Z6:q6;n.push(...this._activePagesMeshData);for(const i of this._activePagesMeshData)this.removeChild(i.mesh);this._activePagesMeshData=[],n.filter(i=>t[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=yt.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};IE.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};let AB=IE;const K6={loader:ze.LoadParser,resolver:ze.ResolveParser,cache:ze.CacheParser,detection:ze.DetectionParser};Je.handle(ze.Asset,r=>{const e=r.ref;Object.entries(K6).filter(([t])=>!!e[t]).forEach(([t,n])=>Je.add(Object.assign(e[t],{extension:e[t].extension??n})))},r=>{const e=r.ref;Object.keys(K6).filter(t=>!!e[t]).forEach(t=>Je.remove(e[t]))});let TB=class{constructor(e,t=!1){this._loader=e,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=t}add(e){e.forEach(t=>{this._assetList.push(t)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const e=[],t=Math.min(this._assetList.length,this._maxConcurrent);for(let n=0;n<t;n++)e.push(this._assetList.pop());await this._loader.load(e),this._isLoading=!1,this._next()}}get active(){return this._isActive}set active(e){this._isActive!==e&&(this._isActive=e,e&&!this._isLoading&&this._next())}};function A0(r,e){if(Array.isArray(e)){for(const t of e)if(r.startsWith(`data:${t}`))return!0;return!1}return r.startsWith(`data:${e}`)}function T0(r,e){const t=r.split("?")[0],n=fs.extname(t).toLowerCase();return Array.isArray(e)?e.includes(n):n===e}const Rs=(r,e,t=!1)=>(Array.isArray(r)||(r=[r]),e?r.map(n=>typeof n=="string"||t?e(n):n):r),EB=(r,e)=>{const t=e.split("?")[1];return t&&(r+=`?${t}`),r};function RE(r,e,t,n,i){const s=e[t];for(let a=0;a<s.length;a++){const o=s[a];t<e.length-1?RE(r.replace(n[t],o),e,t+1,n,i):i.push(r.replace(n[t],o))}}function PB(r){const e=/\{(.*?)\}/g,t=r.match(e),n=[];if(t){const i=[];t.forEach(s=>{const a=s.substring(1,s.length-1).split(",");i.push(a)}),RE(r,i,0,t,n)}else n.push(r);return n}const q3=r=>!Array.isArray(r);let DB=class{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(e){return this._cache.has(e)}get(e){const t=this._cache.get(e);return t||console.warn(`[Assets] Asset id ${e} was not found in the Cache`),t}set(e,t){const n=Rs(e);let i;for(let o=0;o<this.parsers.length;o++){const l=this.parsers[o];if(l.test(t)){i=l.getCacheableAssets(n,t);break}}i||(i={}
vendor: 4,317 bytes, lines 683-684
683,n.forEach(o=>{i[o]=t}));const s=Object.keys(i),a={cacheKeys:s,keys:n};if(n.forEach(o=>{this._cacheMap.set(o,a)}),s.forEach(o=>{this._cache.has(o)&&this._cache.get(o)!==t&&console.warn("[Cache] already has key:",o),this._cache.set(o,i[o])}),t instanceof yt){const o=t;n.forEach(l=>{o.baseTexture!==yt.EMPTY.baseTexture&&bt.addToCache(o.baseTexture,l),yt.addToCache(o,l)})}}remove(e){if(!this._cacheMap.has(e)){console.warn(`[Assets] Asset id ${e} was not found in the Cache`);return}const t=this._cacheMap.get(e);t.cacheKeys.forEach(n=>{this._cache.delete(n)}),t.keys.forEach(n=>{this._cacheMap.delete(n)})}get parsers(){return this._parsers}};const Iu=new DB;let HB=class{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(e,t,n)=>(this._parsersValidated=!1,e[t]=n,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(e,t){const n={promise:null,parser:null};return n.promise=(async()=>{var a,o;let i=null,s=null;if(t.loadParser&&(s=this._parserHash[t.loadParser],s||console.warn(`[Assets] specified load parser "${t.loadParser}" not found while loading ${e}`)),!s){for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];if(u.load&&((a=u.test)!=null&&a.call(u,e,t,this))){s=u;break}}if(!s)return console.warn(`[Assets] ${e} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}i=await s.load(e,t,this),n.parser=s;for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];u.parse&&u.parse&&await((o=u.testParse)==null?void 0:o.call(u,i,t,this))&&(i=await u.parse(i,t,this)||i,n.parser=u)}return i})(),n}async load(e,t){this._parsersValidated||this._validateParsers();let n=0;const i={},s=q3(e),a=Rs(e,u=>({alias:[u],src:u})),o=a.length,l=a.map(async u=>{const h=fs.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[h]||(this.promiseCache[h]=this._getLoadPromiseAndParser(h,u)),i[u.src]=await this.promiseCache[h].promise,t&&t(++n/o)}catch(c){throw delete this.promiseCache[h],delete i[u.src],new Error(`[Loader.load] Failed to load ${h}.
684${c}`)}});return await Promise.all(l),s?i[a[0].src]:i}async unload(e){const t=Rs(e,n=>({alias:[n],src:n})).map(async n=>{var a,o;const i=fs.toAbsolute(n.src),s=this.promiseCache[i];if(s){const l=await s.promise;delete this.promiseCache[i],(o=(a=s.parser)==null?void 0:a.unload)==null||o.call(a,l,n,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}};var Vl=(r=>(r[r.Low=0]="Low",r[r.Normal=1]="Normal",r[r.High=2]="High",r))(Vl||{});const kB=".json",IB="application/json",MB={extension:{type:ze.LoadParser,priority:Vl.Low},name:"loadJson",test(r){return A0(r,IB)||T0(r,kB)},async load(r){return await(await Ye.ADAPTER.fetch(r)).json()}};Je.add(MB);const RB=".txt",FB="text/plain",LB={name:"loadTxt",extension:{type:ze.LoadParser,priority:Vl.Low},test(r){return A0(r,FB)||T0(r,RB)},async load(r){return await(await Ye.ADAPTER.fetch(r)).text()}};Je.add(LB);const OB=["normal","bold","100","200","300","400","500","600","700","800","900"],NB=[".ttf",".otf",".woff",".woff2"],BB=["font/ttf","font/otf","font/woff","font/woff2"],UB=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function $B(r){const e=fs.extname(r),t=fs.basename(r,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1));let n=t.length>0;for(const s of t)if(!s.match(UB)){n=!1;break}let i=t.join(" ");return n||(i=`"${i.replace(/[\\"]/g,"\\$&")}"`),i}const zB=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function jB(r){return zB.test(r)?r:encodeURI(r)}const VB={extension:{type:ze.LoadParser,priority:Vl.Low},name:"loadWebFont",test(r){return A0(r,BB)||T0(r,NB)},async load(r,e){var n,i,s;const t=Ye.ADAPTER.getFontFaceSet();if(t){const a=[],o=((n=e.data)==null?void 0:n.family)??$B(r),l=((s=(i=e.data)==null?void 0:i.weights)==null?void 0:s.filter(h=>OB.includes(h)))??["normal"],u=e.data??{};for(let h=0;h<l.length;h++){const c=l[h],d=new FontFace(o,`url(${jB(r)})`,{...u,weight:c});await d.load(),t.add(d),a.push(d)}return a.length===1?a[0]:a}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null}
684,unload(r){(Array.isArray(r)?r:[r]).forEach(e=>Ye.ADAPTER.getFontFaceSet().delete(e))}};Je.add(VB);const GB=`(function() {
685  "use strict";
686  const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
687  async function checkImageBitmap() {
688    try {
689      if (typeof createImageBitmap != "function")
690        return !1;
691      const imageBlob = await (await fetch(WHITE_PNG)).blob(), imageBitmap = await createImageBitmap(imageBlob);
692      return imageBitmap.width === 1 && imageBitmap.height === 1;
693    } catch {
694      return !1;
695    }
696  }
697  checkImageBitmap().then((result) => {
698    self.postMessage(result);
699  });
700})();
701`;let jh=null,Uy=class{constructor(){jh||(jh=URL.createObjectURL(new Blob([GB],{type:"application/javascript"}))),this.worker=new Worker(jh)}};Uy.revokeObjectURL=function(){jh&&(URL.revokeObjectURL(jh),jh=null)};const WB=`(function() {
702  "use strict";
703  async function loadImageBitmap(url) {
704    const response = await fetch(url);
705    if (!response.ok)
706      throw new Error(\`[WorkerManager.loadImageBitmap] Failed to fetch \${url}: \${response.status} \${response.statusText}\`);
707    const imageBlob = await response.blob();
708    return await createImageBitmap(imageBlob);
709  }
710  self.onmessage = async (event) => {
711    try {
712      const imageBitmap = await loadImageBitmap(event.data.data[0]);
713      self.postMessage({
714        data: imageBitmap,
715        uuid: event.data.uuid,
716        id: event.data.id
717      }, [imageBitmap]);
718    } catch (e) {
719      self.postMessage({
720        error: e,
721        uuid: event.data.uuid,
722        id: event.data.id
723      });
724    }
725  };
726})();
727`;let Vh=null,FE=class{constructor(){Vh||(Vh=URL.createObjectURL(new Blob([WB],{type:"application/javascript"}))),this.worker=new Worker(Vh)}};FE.revokeObjectURL=function(){Vh&&(URL.revokeObjectURL(Vh),Vh=null)};let J6=0,c9,XB=class{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(e=>{const{worker:t}=new Uy;t.addEventListener("message",n=>{t.terminate(),Uy.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){c9===void 0&&(c9=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<c9&&(this._createdWorkers++,e=new FE().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((i,s)=>{this.queue.push({id:e,arguments:t,resolve:i,reject:s})});return this.next(),n}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),n=t.id;this.resolveHash[J6]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:J6++,id:n})}};const ew=new XB;function R_(r,e,t){r.resource.internal=!0;const n=new yt(r),i=()=>{delete e.promiseCache[t],Iu.has(t)&&Iu.remove(t)};return n.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),i())}),n.once("destroyed",()=>{r.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),i())}),n}const YB=[".jpeg",".jpg",".png",".webp",".avif"],ZB=["image/jpeg","image/png","image/webp","image/avif"];async function qB(r){const e=await Ye.ADAPTER.fetch(r);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${r}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const V4={name:"loadTextures",extension:{type:ze.LoadParser,priority:Vl.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(r){return A0(r,ZB)||T0(r,YB)},async load(r,e,t){var o;const n=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let i;n?this.config.preferWorkers&&await ew.isImageBitmapSupported()?i=await ew.loadImageBitmap(r):i=await qB(r):i=await new Promise((l,u)=>{const h=new Image;h.crossOrigin=this.config.crossOrigin,h.src=r,h.complete?l(h):(h.onload=()=>l(h),h.onerror=c=>u(c))});const s={...e.data};s.resolution??(s.resolution=c0(r)),n&&((o=s.resourceOptions)==null?void 0:o.ownsImageBitmap)===void 0&&(s.resourceOptions={...s.resourceOptions},s.resourceOptions.ownsImageBitmap=!0);const a=new bt(i,s);return a.resource.src=r,R_(a,t,r)},unload(r){r.destroy(!0)}};Je.add(V4);const QB=".svg",KB="image/svg+xml",JB={extension:{type:ze.LoadParser,priority:Vl.High},name:"loadSVG",test(r){return A0(r,KB)||T0(r,QB)},async testParse(r){return Hy.test(r)},async parse(r,e,t){var s;const n=new Hy(r,(s=e==null?void 0:e.data)==null?void 0:s.resourceOptions);await n.load();const i=new bt(n,{resolution:c0(r),...e==null?void 0:e.data});return i.resource.src=e.src,R_(i,t,e.src)},async load(r,e){return(await Ye.ADAPTER.fetch(r)).text()},unload:V4.unload};Je.add(JB);const eU=[".mp4",".m4v",".webm",".ogv"],tU=["video/mp4","video/webm","video/ogg"],rU={name:"loadVideo",extension:{type:ze.LoadParser,priority:Vl.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(r){return A0(r,tU)||T0(r,eU)},async load(r,e,t){var a;let n;const i=await(await Ye.ADAPTER.fetch(r)).blob(),s=URL.createObjectURL(i);try{const o={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(a=e==null?void 0:e.data)==null?void 0:a.resourceOptions,autoLoad:!0},l=new bE(s,o);await l.load();const u=new bt(l,{alphaMode:await CO(),resolution:c0(r),...e==null?void 0:e.data});u.resource.src=r,n=R_(u,t,r),n.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(s)})}catch(o){throw URL.revokeObjectURL(s),o}return n},unload(r){r.destroy(!0)}};Je.add(rU);let nU=class{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>
727t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(e){if(this._bundleIdConnector=e.connector??this._bundleIdConnector,this._createBundleAssetId=e.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=e.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...e){e.forEach(t=>{this._preferredOrder.push(t),t.priority||(t.priority=Object.keys(t.params))}),this._resolverHash={}}set basePath(e){this._basePath=e}get basePath(){return this._basePath}set rootPath(e){this._rootPath=e}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(e){if(typeof e=="string")this._defaultSearchParams=e;else{const t=e;this._defaultSearchParams=Object.keys(t).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`).join("&")}}getAlias(e){const{alias:t,name:n,src:i,srcs:s}=e;return Rs(t||n||i||s,a=>typeof a=="string"?a:Array.isArray(a)?a.map(o=>(o==null?void 0:o.src)??(o==null?void 0:o.srcs)??o):a!=null&&a.src||a!=null&&a.srcs?a.src??a.srcs:a,!0)}addManifest(e){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=e,e.bundles.forEach(t=>{this.addBundle(t.name,t.assets)})}addBundle(e,t){const n=[];Array.isArray(t)?t.forEach(i=>{const s=i.src??i.srcs,a=i.alias??i.name;let o;if(typeof a=="string"){const l=this._createBundleAssetId(e,a);n.push(l),o=[a,l]}else{const l=a.map(u=>this._createBundleAssetId(e,u));n.push(...l),o=[...a,...l]}this.add({...i,alias:o,src:s})}):Object.keys(t).forEach(i=>{const s=[i,this._createBundleAssetId(e,i)];if(typeof t[i]=="string")this.add({alias:s,src:t[i]});else if(Array.isArray(t[i]))this.add({alias:s,src:t[i]});else{const a=t[i],o=a.src??a.srcs;this.add({...a,alias:s,src:Array.isArray(o)?o:[o]})}n.push(...s)}),this._bundles[e]=n}add(e,t,n,i,s){const a=[];typeof e=="string"||Array.isArray(e)&&typeof e[0]=="string"?(Dt("7.2.0",`Assets.add now uses an object instead of individual parameters.
728Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),a.push({alias:e,src:t,data:n,format:i,loadParser:s})):Array.isArray(e)?a.push(...e):a.push(e);let o;o=l=>{this.hasKey(l)&&console.warn(`[Resolver] already has key: ${l} overwriting`)},Rs(a).forEach(l=>{const{src:u,srcs:h}=l;let{data:c,format:d,loadParser:f}=l;const g=Rs(u||h).map(_=>typeof _=="string"?PB(_):Array.isArray(_)?_:[_]),y=this.getAlias(l);Array.isArray(y)?y.forEach(o):o(y);const v=[];g.forEach(_=>{_.forEach(x=>{let w={};if(typeof x!="object"){w.src=x;for(let S=0;S<this._parsers.length;S++){const b=this._parsers[S];if(b.test(x)){w=b.parse(x);break}}}else c=x.data??c,d=x.format??d,f=x.loadParser??f,w={...w,...x};if(!y)throw new Error(`[Resolver] alias is undefined for this asset: ${w.src}`);w=this.buildResolvedAsset(w,{aliases:y,data:c,format:d,loadParser:f}),v.push(w)})}),y.forEach(_=>{this._assetMap[_]=v})})}resolveBundle(e){const t=q3(e);e=Rs(e);const n={};return e.forEach(i=>{const s=this._bundles[i];if(s){const a=this.resolve(s),o={};for(const l in a){const u=a[l];o[this._extractAssetIdFromBundle(i,l)]=u}n[i]=o}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const i in t)n[i]=t[i].src;return n}return t.src}resolve(e){const t=q3(e);e=Rs(e);const n={};return e.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let s=this._assetMap[i];const a=s[0],o=this._getPreferredOrder(s);
728o==null||o.priority.forEach(l=>{o.params[l].forEach(u=>{const h=s.filter(c=>c[l]?c[l]===u:!1);h.length&&(s=h)})}),this._resolverHash[i]=s[0]??a}else this._resolverHash[i]=this.buildResolvedAsset({alias:[i],src:i},{});n[i]=this._resolverHash[i]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],i=this._preferredOrder.find(s=>s.params.format.includes(n.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:n,data:i,loadParser:s,format:a}=t;return(this._basePath||this._rootPath)&&(e.src=fs.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...i||{},...e.data},e.loadParser=s??e.loadParser,e.format=a??e.format??fs.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}},iU=class{constructor(){this._detections=[],this._initialized=!1,this.resolver=new nU,this.loader=new HB,this.cache=Iu,this._backgroundLoader=new TB(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var s,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let o=e.manifest;typeof o=="string"&&(o=await this.load(o)),this.resolver.addManifest(o)}const t=((s=e.texturePreference)==null?void 0:s.resolution)??1,n=typeof t=="number"?[t]:t,i=await this._detectFormats({preferredFormats:(a=e.texturePreference)==null?void 0:a.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:i,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,n,i,s){this.resolver.add(e,t,n,i,s)}async load(e,t){this._initialized||await this.init();const n=q3(e),i=Rs(e).map(o=>{if(typeof o!="string"){const l=this.resolver.getAlias(o);return l.some(u=>!this.resolver.hasKey(u))&&this.add(o),Array.isArray(l)?l[0]:l}return this.resolver.hasKey(o)||this.add({alias:o,src:o}),o}),s=this.resolver.resolve(i),a=await this._mapLoadToResolve(s,t);return n?a[i[0]]:a}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const i=this.resolver.resolveBundle(e),s={},a=Object.keys(i);let o=0,l=0;const u=()=>{t==null||t(++o/l)},h=a.map(c=>{const d=i[c];return l+=Object.keys(d).length,this._mapLoadToResolve(d,u).then(f=>{s[c]=f})});return await Promise.all(h),n?s[e[0]]:s}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Iu.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Iu.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=Object.values(e),i=Object.keys(e);this._backgroundLoader.active=!1;const s=await this.loader.load(n,t);this._backgroundLoader.active=!0;const a={};return n.forEach((o,l)=>{const u=s[o.src],h=[o.src];o.alias&&h.push(...o.alias),a[i[l]]=u,Iu.set(h,u)}),a}async unload(e){this._initialized||await this.init();const t=Rs(e).map(i=>typeof i!="string"?i.src:i),n=this.resolver.resolve(t);await this._unloadFromResolved(n)}async unloadBundle(e){this._initialized||await this.init(),e=Rs(e);const t=this.resolver.resolveBundle(e),n=Object.keys(t).map(i=>this._unloadFromResolved(t[i]));await Promise.all(n)}async _unloadFromResolved(e){const t=Object.values(e);t.forEach(n=>{Iu.remove(n.src)}),await this.loader.unload(t)}async _detectFormats(e){let t=[];e.preferredFormats&&(t=Array.isArray(e.preferredFormats)?e.preferredFormats:[e.preferredFormats]);for(const n of e.detections)e.skipDetections||await n.test()?t=await n.add(t):e.skipDetections||(t=await n.remove(t));return t=t.filter((n,i)=>t.indexOf(n)===i),t}get detections(){return this._detections}get preferWorkers(){return V4.config.preferWorkers}set preferWorkers(e){Dt("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:e})}
728setPreferences(e){this.loader.parsers.forEach(t=>{t.config&&Object.keys(t.config).filter(n=>n in e).forEach(n=>{t.config[n]=e[n]})})}};const sp=new iU;Je.handleByList(ze.LoadParser,sp.loader.parsers).handleByList(ze.ResolveParser,sp.resolver.parsers).handleByList(ze.CacheParser,sp.cache.parsers).handleByList(ze.DetectionParser,sp.detections);const sU={extension:ze.CacheParser,test:r=>Array.isArray(r)&&r.every(e=>e instanceof yt),getCacheableAssets:(r,e)=>{const t={};return r.forEach(n=>{e.forEach((i,s)=>{t[n+(s===0?"":s+1)]=i})}),t}};Je.add(sU);async function LE(r){if("Image"in globalThis)return new Promise(e=>{const t=new Image;t.onload=()=>{e(!0)},t.onerror=()=>{e(!1)},t.src=r});if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{const e=await(await fetch(r)).blob();await createImageBitmap(e)}catch{return!1}return!0}return!1}const aU={extension:{type:ze.DetectionParser,priority:1},test:async()=>LE("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async r=>[...r,"avif"],remove:async r=>r.filter(e=>e!=="avif")};Je.add(aU);const oU={extension:{type:ze.DetectionParser,priority:0},test:async()=>LE("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async r=>[...r,"webp"],remove:async r=>r.filter(e=>e!=="webp")};Je.add(oU);const tw=["png","jpg","jpeg"],lU={extension:{type:ze.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async r=>[...r,...tw],remove:async r=>r.filter(e=>!tw.includes(e))};Je.add(lU);const uU="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function F_(r){return uU?!1:document.createElement("video").canPlayType(r)!==""}const cU={extension:{type:ze.DetectionParser,priority:0},test:async()=>F_("video/webm"),add:async r=>[...r,"webm"],remove:async r=>r.filter(e=>e!=="webm")};Je.add(cU);const hU={extension:{type:ze.DetectionParser,priority:0},test:async()=>F_("video/mp4"),add:async r=>[...r,"mp4","m4v"],remove:async r=>r.filter(e=>e!=="mp4"&&e!=="m4v")};Je.add(hU);const dU={extension:{type:ze.DetectionParser,priority:0},test:async()=>F_("video/ogg"),add:async r=>[...r,"ogv"],remove:async r=>r.filter(e=>e!=="ogv")};Je.add(dU);const fU={extension:ze.ResolveParser,test:V4.test,parse:r=>{var e;return{resolution:parseFloat(((e=Ye.RETINA_PREFIX.exec(r))==null?void 0:e[1])??"1"),format:fs.extname(r).slice(1),src:r}}};Je.add(fU);const pU=[".xml",".fnt"],mU={extension:{type:ze.LoadParser,priority:Vl.Normal},name:"loadBitmapFont",test(r){return pU.includes(fs.extname(r).toLowerCase())},async testParse(r){return Vp.test(r)||By.test(r)},async parse(r,e,t){const n=Vp.test(r)?Vp.parse(r):By.parse(r),{src:i}=e,{page:s}=n,a=[];for(let u=0;u<s.length;++u){const h=s[u].file;let c=fs.join(fs.dirname(i),h);c=EB(c,i),a.push(c)}const o=await t.load(a),l=a.map(u=>o[u]);return Qo.install(n,l,!0)},async load(r,e){return(await Ye.ADAPTER.fetch(r)).text()},unload(r){r.destroy()}};Je.add(mU);const Q3={build(r){const e=r.points;let t,n,i,s,a,o;if(r.type===pn.CIRC){const g=r.shape;t=g.x,n=g.y,a=o=g.radius,i=s=0}else if(r.type===pn.ELIP){const g=r.shape;t=g.x,n=g.y,a=g.width,o=g.height,i=s=0}else{const g=r.shape,y=g.width/2,v=g.height/2;t=g.x+y,n=g.y+v,a=o=Math.max(0,Math.min(g.radius,Math.min(y,v))),i=y-a,s=v-o}if(!(a>=0&&o>=0&&i>=0&&s>=0)){e.length=0;return}const l=Math.ceil(2.3*Math.sqrt(a+o)),u=l*8+(i?4:0)+(s?4:0);if(e.length=u,u===0)return;if(l===0){e.length=8,e[0]=e[6]=t+i,e[1]=e[3]=n+s,e[2]=e[4]=t-i,e[5]=e[7]=n-s;return}let h=0,c=l*4+(i?2:0)+2,d=c,f=u;{const g=i+a,y=s,v=t+g,_=t-g,x=n+y;if(e[h++]=v,e[h++]=x,e[--c]=x,e[--c]=_,s){const w=n-y;e[d++]=_,e[d++]=w,e[--f]=w,e[--f]=v}}for(let g=1;g<l;g++){const y=Math.PI/2*(g/l),v=i+Math.cos(y)*a,_=s+Math.sin(y)*o,x=t+v,w=t-v,S=n+_,b=n-_;e[h++]=x,e[h++]=S,e[--c]=S,e[--c]=w,e[d++]=w,e[d++]=b,e[--f]=b,e[--f]=x}{const g=i,y=s+o,v=t+g,_=t-g,x=n+y,w=n-y;e[h++]=v,e[h++]=x,e[--f]=w,e[--f]=v,i&&(e[h++]=_,e[h++]=x,e[--f]=w,e[--f]=_)}},triangulate(r,e){const t=r.points,n=e.points,i=e.indices;if(t.length===0)return;let s=n.length/2;const a=s;let o,l;if(r.type!==pn.RREC){const h=r.shape;o=h.x,l=h.y}else{const h=r.shape;o=h.x+h.width/2,l=h.y+h.height/2}const u=r.matrix;n.push(r.matrix?u.a*o+u.c*l+u.tx:o,r.matrix?u.b*o+u.d*l+u.ty:l),s++,n.push(t[0],t[1]);for(let h=2;h<t.length;h+=2)n.push(t[h],t[h+1]),i.push(s++,a,s);i.push(a+1,a,s)}};function rw(r,e=!1){const t=r.length;if(t<6)return;let n=0;for(let i=0,s=r[t-2],a=r[t-1];i<t;i+=2){const o=r[i],l=r[i+1];n+=(o-s)*(l+a),s=o,a=l}if(!e&&n>0||e&&n<=0){const i=t/2;
728for(let s=i+i%2;s<t;s+=2){const a=t-s-2,o=t-s-1,l=s,u=s+1;[r[a],r[l]]=[r[l],r[a]],[r[o],r[u]]=[r[u],r[o]]}}}const OE={build(r){r.points=r.shape.points.slice()},triangulate(r,e){let t=r.points;const n=r.holes,i=e.points,s=e.indices;if(t.length>=6){rw(t,!1);const a=[];for(let u=0;u<n.length;u++){const h=n[u];rw(h.points,!0),a.push(t.length/2),t=t.concat(h.points)}const o=tT(t,a,2);if(!o)return;const l=i.length/2;for(let u=0;u<o.length;u+=3)s.push(o[u]+l),s.push(o[u+1]+l),s.push(o[u+2]+l);for(let u=0;u<t.length;u++)i.push(t[u])}}},gU={build(r){const e=r.shape,t=e.x,n=e.y,i=e.width,s=e.height,a=r.points;a.length=0,i>=0&&s>=0&&a.push(t,n,t+i,n,t+i,n+s,t,n+s)},triangulate(r,e){const t=r.points,n=e.points;if(t.length===0)return;const i=n.length/2;n.push(t[0],t[1],t[2],t[3],t[6],t[7],t[4],t[5]),e.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},yU={build(r){Q3.build(r)},triangulate(r,e){Q3.triangulate(r,e)}};var ns=(r=>(r.MITER="miter",r.BEVEL="bevel",r.ROUND="round",r))(ns||{}),pl=(r=>(r.BUTT="butt",r.ROUND="round",r.SQUARE="square",r))(pl||{});const d0={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(r,e=20){if(!this.adaptive||!r||isNaN(r))return e;let t=Math.ceil(r/this.maxLength);return t<this.minSegments?t=this.minSegments:t>this.maxSegments&&(t=this.maxSegments),t}};class nw{static curveTo(e,t,n,i,s,a){const o=a[a.length-2],l=a[a.length-1]-t,u=o-e,h=i-t,c=n-e,d=Math.abs(l*c-u*h);if(d<1e-8||s===0)return(a[a.length-2]!==e||a[a.length-1]!==t)&&a.push(e,t),null;const f=l*l+u*u,g=h*h+c*c,y=l*h+u*c,v=s*Math.sqrt(f)/d,_=s*Math.sqrt(g)/d,x=v*y/f,w=_*y/g,S=v*c+_*u,b=v*h+_*l,E=u*(_+x),D=l*(_+x),P=c*(v+w),I=h*(v+w),R=Math.atan2(D-b,E-S),U=Math.atan2(I-b,P-S);return{cx:S+e,cy:b+t,radius:s,startAngle:R,endAngle:U,anticlockwise:u*h>c*l}}static arc(e,t,n,i,s,a,o,l,u){const h=o-a,c=d0._segmentsCount(Math.abs(h)*s,Math.ceil(Math.abs(h)/$3)*40),d=h/(c*2),f=d*2,g=Math.cos(d),y=Math.sin(d),v=c-1,_=v%1/v;for(let x=0;x<=v;++x){const w=x+_*x,S=d+a+f*w,b=Math.cos(S),E=-Math.sin(S);u.push((g*b+y*E)*s+n,(g*-E+y*b)*s+i)}}}class vU{constructor(){this.reset()}begin(e,t,n){this.reset(),this.style=e,this.start=t,this.attribStart=n}end(e,t){this.attribSize=t-this.attribStart,this.size=e-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class L_{static curveLength(e,t,n,i,s,a,o,l){let u=0,h=0,c=0,d=0,f=0,g=0,y=0,v=0,_=0,x=0,w=0,S=e,b=t;for(let E=1;E<=10;++E)h=E/10,c=h*h,d=c*h,f=1-h,g=f*f,y=g*f,v=y*e+3*g*h*n+3*f*c*s+d*o,_=y*t+3*g*h*i+3*f*c*a+d*l,x=S-v,w=b-_,S=v,b=_,u+=Math.sqrt(x*x+w*w);return u}static curveTo(e,t,n,i,s,a,o){const l=o[o.length-2],u=o[o.length-1];o.length-=2;const h=d0._segmentsCount(L_.curveLength(l,u,e,t,n,i,s,a));let c=0,d=0,f=0,g=0,y=0;o.push(l,u);for(let v=1,_=0;v<=h;++v)_=v/h,c=1-_,d=c*c,f=d*c,g=_*_,y=g*_,o.push(f*l+3*d*_*e+3*c*g*n+y*s,f*u+3*d*_*t+3*c*g*i+y*a)}}function iw(r,e,t,n,i,s,a,o){const l=r-t*i,u=e-n*i,h=r+t*s,c=e+n*s;let d,f;a?(d=n,f=-t):(d=-n,f=t);const g=l+d,y=u+f,v=h+d,_=c+f;return o.push(g,y,v,_),2}function fu(r,e,t,n,i,s,a,o){const l=t-r,u=n-e;let h=Math.atan2(l,u),c=Math.atan2(i-r,s-e);o&&h<c?h+=Math.PI*2:!o&&h>c&&(c+=Math.PI*2);let d=h;const f=c-h,g=Math.abs(f),y=Math.sqrt(l*l+u*u),v=(15*g*Math.sqrt(y)/Math.PI>>0)+1,_=f/v;if(d+=_,o){a.push(r,e,t,n);for(let x=1,w=d;x<v;x++,w+=_)a.push(r,e,r+Math.sin(w)*y,e+Math.cos(w)*y);a.push(r,e,i,s)}else{a.push(t,n,r,e);for(let x=1,w=d;x<v;x++,w+=_)a.push(r+Math.sin(w)*y,e+Math.cos(w)*y,r,e);a.push(i,s,r,e)}return v*2}function _U(r,e){const t=r.shape;let n=r.points||t.points.slice();const i=e.closePointEps;if(n.length===0)return;const s=r.lineStyle,a=new Mt(n[0],n[1]),o=new Mt(n[n.length-2],n[n.length-1]),l=t.type!==pn.POLY||t.closeStroke,u=Math.abs(a.x-o.x)<i&&Math.abs(a.y-o.y)<i;if(l){n=n.slice(),u&&(n.pop(),n.pop(),o.set(n[n.length-2],n[n.length-1]));const Z=(a.x+o.x)*.5,j=(o.y+a.y)*.5;n.unshift(Z,j),n.push(Z,j)}const h=e.points,c=n.length/2;let d=n.length;const f=h.length/2,g=s.width/2,y=g*g,v=s.miterLimit*s.miterLimit;let _=n[0],x=n[1],w=n[2],S=n[3],b=0,E=0,D=-(x-S),P=_-w,I=0,R=0,U=Math.sqrt(D*D+P*P);D/=U,P/=U,D*=g,P*=g;const N=s.alignment,F=(1-N)*2,O=N*2;l||(s.cap===pl.ROUND?d+=fu(_-D*(F-O)*.5,x-P*(F-O)*.5,_-D*F,x-P*F,_+D*O,x+P*O,h,!0)+2:s.cap===pl.SQUARE&&(d+=iw(_,x,D,P,F,O,!0,h))),h.push(_-D*F,x-P*F,_+D*O,x+P*O);for(let Z=1;Z<c-1;++Z){_=n[(Z-1)*2],x=n[(Z-1)*2+1],w=n[Z*2],S=n[Z*2+1],b=n[(Z+1)*2],E=n[(Z+1)*2+1],D=-(x-S),P=_-w,U=Math.sqrt(D*D+P*P),D/=U,P/=U,D*=g,P*=g,I=-(S-E),R=w-b,U=Math.sqrt(I*I+R*R),I/=U,R/=U,I*=g,R*=g;const j=w-_,Y=x-S,G=w-b,J=E-S,ee=j*G+Y*J,ve=Y*G-J*j,_e=ve<0;if(Math.abs(ve)<.001*Math.abs(ee)){h.push(w-D*F,S-P*F,w+D*O,S+P*O),ee>=0&&(s.join===ns.ROUND?d+=fu(w,S,w-D*F,S-P*F,w-I*F,S-R*F,h,!1)+4:d+=2,h.push(w-I*O,S-R*O,w+I
728*F,S+R*F));continue}const Oe=(-D+_)*(-P+S)-(-D+w)*(-P+x),Te=(-I+b)*(-R+S)-(-I+w)*(-R+E),qe=(j*Te-G*Oe)/ve,$e=(J*Oe-Y*Te)/ve,lt=(qe-w)*(qe-w)+($e-S)*($e-S),We=w+(qe-w)*F,Ze=S+($e-S)*F,st=w-(qe-w)*O,Pe=S-($e-S)*O,rt=Math.min(j*j+Y*Y,G*G+J*J),ut=_e?F:O,xt=rt+ut*ut*y,vt=lt<=xt;let W=s.join;if(W===ns.MITER&&lt/y>v&&(W=ns.BEVEL),vt)switch(W){case ns.MITER:{h.push(We,Ze,st,Pe);break}case ns.BEVEL:{_e?h.push(We,Ze,w+D*O,S+P*O,We,Ze,w+I*O,S+R*O):h.push(w-D*F,S-P*F,st,Pe,w-I*F,S-R*F,st,Pe),d+=2;break}case ns.ROUND:{_e?(h.push(We,Ze,w+D*O,S+P*O),d+=fu(w,S,w+D*O,S+P*O,w+I*O,S+R*O,h,!0)+4,h.push(We,Ze,w+I*O,S+R*O)):(h.push(w-D*F,S-P*F,st,Pe),d+=fu(w,S,w-D*F,S-P*F,w-I*F,S-R*F,h,!1)+4,h.push(w-I*F,S-R*F,st,Pe));break}}else{switch(h.push(w-D*F,S-P*F,w+D*O,S+P*O),W){case ns.MITER:{_e?h.push(st,Pe,st,Pe):h.push(We,Ze,We,Ze),d+=2;break}case ns.ROUND:{_e?d+=fu(w,S,w+D*O,S+P*O,w+I*O,S+R*O,h,!0)+2:d+=fu(w,S,w-D*F,S-P*F,w-I*F,S-R*F,h,!1)+2;break}}h.push(w-I*F,S-R*F,w+I*O,S+R*O),d+=2}}_=n[(c-2)*2],x=n[(c-2)*2+1],w=n[(c-1)*2],S=n[(c-1)*2+1],D=-(x-S),P=_-w,U=Math.sqrt(D*D+P*P),D/=U,P/=U,D*=g,P*=g,h.push(w-D*F,S-P*F,w+D*O,S+P*O),l||(s.cap===pl.ROUND?d+=fu(w-D*(F-O)*.5,S-P*(F-O)*.5,w-D*F,S-P*F,w+D*O,S+P*O,h,!1)+2:s.cap===pl.SQUARE&&(d+=iw(w,S,D,P,F,O,!1,h)));const V=e.indices,q=d0.epsilon*d0.epsilon;for(let Z=f;Z<d+f-2;++Z)_=h[Z*2],x=h[Z*2+1],w=h[(Z+1)*2],S=h[(Z+1)*2+1],b=h[(Z+2)*2],E=h[(Z+2)*2+1],!(Math.abs(_*(S-E)+w*(E-x)+b*(x-S))<q)&&V.push(Z,Z+1,Z+2)}function xU(r,e){let t=0;const n=r.shape,i=r.points||n.points,s=n.type!==pn.POLY||n.closeStroke;if(i.length===0)return;const a=e.points,o=e.indices,l=i.length/2,u=a.length/2;let h=u;for(a.push(i[0],i[1]),t=1;t<l;t++)a.push(i[t*2],i[t*2+1]),o.push(h,h+1),h++;s&&o.push(h,u)}function sw(r,e){r.lineStyle.native?xU(r,e):_U(r,e)}class O_{static curveLength(e,t,n,i,s,a){const o=e-2*n+s,l=t-2*i+a,u=2*n-2*e,h=2*i-2*t,c=4*(o*o+l*l),d=4*(o*u+l*h),f=u*u+h*h,g=2*Math.sqrt(c+d+f),y=Math.sqrt(c),v=2*c*y,_=2*Math.sqrt(f),x=d/y;return(v*g+y*d*(g-_)+(4*f*c-d*d)*Math.log((2*y+x+g)/(x+_)))/(4*v)}static curveTo(e,t,n,i,s){const a=s[s.length-2],o=s[s.length-1],l=d0._segmentsCount(O_.curveLength(a,o,e,t,n,i));let u=0,h=0;for(let c=1;c<=l;++c){const d=c/l;u=a+(e-a)*d,h=o+(t-o)*d,s.push(u+(e+(n-e)*d-u)*d,h+(t+(i-t)*d-h)*d)}}}const h9={[pn.POLY]:OE,[pn.CIRC]:Q3,[pn.ELIP]:Q3,[pn.RECT]:gU,[pn.RREC]:yU},aw=[],ap=[];class K3{constructor(e,t=null,n=null,i=null){this.points=[],this.holes=[],this.shape=e,this.lineStyle=n,this.fillStyle=t,this.matrix=i,this.type=e.type}clone(){return new K3(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Zc=new Mt,NE=class BE extends MT{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new X3,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),ap.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),aw.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,i=null){const s=new K3(e,t,n,i);return this.graphicsData.push(s),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new K3(e,null,null,t),i=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=i.lineStyle,i.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let n=0;n<t.length;++n){const i=t[n];if(i.fillStyle.visible&&i.shape&&(i.matrix?i.matrix.applyInverse(e,Zc):Zc.copyFrom(e),i.shape.contains(Zc.x,Zc.y))){let s=!1;if(i.holes){for(let a=0;a<i.holes.length;a++)if(i.holes[a].shape.contains(Zc.x,Zc.y)){s=!0;break}}if(!s)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let n=null,i=null;this.batches.length>0&&(n=this.batches[this.batches.length-1],i=n.style);for(let l=this.shapeIndex;l<t.length;l++){this.shapeIndex++;const u=t[l],h=u.fillStyle,c=u.lineStyle;h9[u.type].build(u),u.matrix&&this.transformPoints(u.points,u.matrix),(h.visible||c.visible)&&this.processHoles(u.holes);for(let d=0;d<2;d++){const f=d===0?h:c;if(!f.visible)continue;const g=f.texture.baseTexture,y=this.indices.length,v=this.points.length/2;g.wrapMode=no.REPEAT,d===0?this.processFill(u):this.processLine(u);const _=this.points.length/2-v;_!==0&&(n&&!this._compareStyles(i,f)&&(n.end(y,v),n=null),n||(n=aw.pop()||new vU,n.begin(f,y,v),this.batches.push(n),i=f),this.addUvs(this.points,e,f.texture,v,_,f.matrix))}}const s=this.indices.length,a=this.points.length/2;if(n&&n.end(s,a),this.batches.length===0){this.batchable=!0;return}const o=a>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&o===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=o?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const n=this.graphicsData[e],i=n.fillStyle,s=n.lineStyle;if(i&&!i.texture.baseTexture.valid||s&&!s.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,n=e.length;t<n;t++){const i=e[t];for(let s=0;s<i.size;s++){const a=i.start+s;this.indicesUint16[a]=this.indicesUint16[a]-i.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<BE.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++bt._globalBatch;for(let c=0;c<this.drawCalls.length;c++)this.drawCalls[c].texArray.clear(),ap.push(this.drawCalls[c]);this.drawCalls.length=0;const t=this.colors,n=this.textureIds;let i=ap.pop();i||(i=new vy,i.texArray=new Sy),i.texArray.count=0,i.start=0,i.size=0,i.type=Os.TRIANGLES;let s=0,a=null,o=0,l=!1,u=Os.TRIANGLES,h=0;this.drawCalls.push(i);for(let c=0;c<this.batches.length;c++){const d=this.batches[c],f=8,g=d.style,y=g.texture.baseTexture;l!==!!g.native&&(l=!!g.native,u=l?Os.LINES:Os.TRIANGLES,a=null,s=f,e++),a!==y&&(a=y,y._batchEnabled!==e&&(s===f&&(e++,s=0,i.size>0&&(i=ap.pop(),i||(i=new vy,i.texArray=new Sy),this.drawCalls.push(i)),i.start=h,i.size=0,i.texArray.count=0,i.type=u),y.touched=1,y._batchEnabled=e,y._batchLocation=s,y.wrapMode=no.REPEAT,i.texArray.elements[i.texArray.count++
728]=y,s++)),i.size+=d.size,h+=d.size,o=y._batchLocation,this.addColors(t,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(n,o,d.attribSize,d.attribStart)}bt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,i=this.textureIds,s=new ArrayBuffer(e.length*3*4),a=new Float32Array(s),o=new Uint32Array(s);let l=0;for(let u=0;u<e.length/2;u++)a[l++]=e[u*2],a[l++]=e[u*2+1],a[l++]=t[u*2],a[l++]=t[u*2+1],o[l++]=n[u],a[l++]=i[u];this._buffer.update(s),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?OE.triangulate(e,this):h9[e.type].triangulate(e,this)}processLine(e){sw(e,this);for(let t=0;t<e.holes.length;t++)sw(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const n=e[t];h9[n.type].build(n),n.matrix&&this.transformPoints(n.points,n.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let n=0;n<e.length/2;n++){const i=e[n*2],s=e[n*2+1];e[n*2]=t.a*i+t.c*s+t.tx,e[n*2+1]=t.b*i+t.d*s+t.ty}}addColors(e,t,n,i,s=0){const a=wr.shared.setValue(t).toLittleEndianNumber(),o=wr.shared.setValue(a).toPremultiplied(n);e.length=Math.max(e.length,s+i);for(let l=0;l<i;l++)e[s+l]=o}addTextureIds(e,t,n,i=0){e.length=Math.max(e.length,i+n);for(let s=0;s<n;s++)e[i+s]=t}addUvs(e,t,n,i,s,a=null){let o=0;const l=t.length,u=n.frame;for(;o<s;){let c=e[(i+o)*2],d=e[(i+o)*2+1];if(a){const f=a.a*c+a.c*d+a.tx;d=a.b*c+a.d*d+a.ty,c=f}o++,t.push(c/u.width,d/u.height)}const h=n.baseTexture;(u.width<h.width||u.height<h.height)&&this.adjustUvs(t,n,l,s)}adjustUvs(e,t,n,i){const s=t.baseTexture,a=1e-6,o=n+i*2,l=t.frame,u=l.width/s.width,h=l.height/s.height;let c=l.x/l.width,d=l.y/l.height,f=Math.floor(e[n]+a),g=Math.floor(e[n+1]+a);for(let y=n+2;y<o;y+=2)f=Math.min(f,Math.floor(e[y]+a)),g=Math.min(g,Math.floor(e[y+1]+a));c-=f,d-=g;for(let y=n;y<o;y+=2)e[y]=(e[y]+c)*u,e[y+1]=(e[y+1]+d)*h}};NE.BATCHABLE_SIZE=100;let CU=NE;class G4{constructor(){this.color=16777215,this.alpha=1,this.texture=yt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const e=new G4;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e}reset(){this.color=16777215,this.alpha=1,this.texture=yt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class N_ extends G4{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=pl.BUTT,this.join=ns.MITER,this.miterLimit=10}clone(){const e=new N_;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e.width=this.width,e.alignment=this.alignment,e.native=this.native,e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1,this.cap=pl.BUTT,this.join=ns.MITER,this.miterLimit=10}}const d9={},$y=class Wp extends ji{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new G4,this._lineStyle=new N_,this._matrix=null,this._holeMode=!1,this.state=Da.for2d(),this._geometry=e||new CU,this._geometry.refCount++,this._transformID=-1,this._tintColor=new wr(16777215),this.blendMode=et.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Wp(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,n,i=.5,s=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:n,alignment:i,native:s}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:yt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:pl.BUTT,join:ns.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const n=e.width>0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new vd,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new vd,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,i=n[n.length-2],s=n[n.length-1];return(i!==e||s!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,i){this._initCurve();const s=this.currentPath.points;return s.length===0&&this.moveTo(0,0),O_.curveTo(e,t,n,i,s),this}bezierCurveTo(e,t,n,i,s,a){return this._initCurve(),L_.curveTo(e,t,n,i,s,a,this.currentPath.points),this}arcTo(e,t,n,i,s){this._initCurve(e,t);const a=this.currentPath.points,o=nw.curveTo(e,t,n,i,s,a);
728if(o){const{cx:l,cy:u,radius:h,startAngle:c,endAngle:d,anticlockwise:f}=o;this.arc(l,u,h,c,d,f)}return this}arc(e,t,n,i,s,a=!1){if(i===s)return this;if(!a&&s<=i?s+=$3:a&&i<=s&&(i+=$3),s-i===0)return this;const o=e+Math.cos(i)*n,l=t+Math.sin(i)*n,u=this._geometry.closePointEps;let h=this.currentPath?this.currentPath.points:null;if(h){const c=Math.abs(h[h.length-2]-o),d=Math.abs(h[h.length-1]-l);c<u&&d<u||h.push(o,l)}else this.moveTo(o,l),h=this.currentPath.points;return nw.arc(o,l,e,t,n,i,s,a,h),this}beginFill(e=0,t){return this.beginTextureFill({texture:yt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=wr.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:yt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const n=e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,i){return this.drawShape(new Rt(e,t,n,i))}drawRoundedRect(e,t,n,i,s){return this.drawShape(new UT(e,t,n,i,s))}drawCircle(e,t,n){return this.drawShape(new FT(e,t,n))}drawEllipse(e,t,n,i){return this.drawShape(new OT(e,t,n,i))}drawPolygon(...e){let t,n=!0;const i=e[0];i.points?(n=i.closeStroke,t=i.points):Array.isArray(e[0])?t=e[0]:t=e;const s=new vd(t);return s.closeStroke=n,this.drawShape(s),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===pn.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let i=0;i<n;i++){const s=e.batches[i],a=s.style.color,o=new Float32Array(this.vertexData.buffer,s.attribStart*4*2,s.attribSize*2),l=new Float32Array(e.uvsFloat32.buffer,s.attribStart*4*2,s.attribSize*2),u=new Uint16Array(e.indicesUint16.buffer,s.start*2,s.size),h={vertexData:o,blendMode:t,indices:u,uvs:l,_batchRGB:wr.shared.setValue(a).toRgbArray(),_tintRGB:a,_texture:s.style.texture,alpha:s.style.alpha,worldAlpha:1};this.batches[i]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,n=this.batches.length;t<n;t++){const i=this.batches[t];i.worldAlpha=this.worldAlpha*i.alpha,e.plugins[this.pluginName].render(i)}}}_renderDirect(e){const t=this._resolveDirectShader(e),n=this._geometry,i=this.worldAlpha,s=t.uniforms,a=n.drawCalls;s.translationMatrix=this.transform.worldTransform,wr.shared.setValue(this._tintColor).premultiply(i).toArray(s.tint),e.shader.bind(t),e.geometry.bind(n,t),e.state.set(this.state);for(let o=0,l=a.length;o<l;o++)this._renderDrawCallDirect(e,n.drawCalls[o])}_renderDrawCallDirect(e,t){const{texArray:n,type:i,size:s,start:a}=t,o=n.count;for(let l=0;l<o;l++)e.texture.bind(n.elements[l],l);e.geometry.draw(i,s,a)}_resolveDirectShader(e){let t=this.shader;const n=this.pluginName;if(!t){if(!d9[n]){const{maxTextures:i}=e.plugins[n],s=new Int32Array(i);for(let l=0;l<i;l++)s[l]=l;const a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Zr,default:js.from({uSamplers:s},!0)},o=e.plugins[n]._shader.program;d9[n]=new xa(o,a)}t=d9[n]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:n,maxX:i,maxY:s}=e.bounds;this._bounds.addFrame(this.transform,t,n,i,s)}containsPoint(e){return this.worldTransform.applyInverse(e,Wp._TEMP_POINT),this._geometry.containsPoint(Wp._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=wr.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,n=t.a,i=t.b,s=t.c,a=t.d,o=t.tx,l=t.ty,u=this._geometry.points,h=this.vertexData;let c=0;for(let d=0;d<u.length;d+=2){const f=u[d],g=u[d+1];h[c++]=n*f+s*g+o,h[c++]=a*g+i*f+l}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,
728super.destroy(e)}};$y.curves=d0,$y._TEMP_POINT=new Mt;let f9=$y;class wU extends j4{constructor(e=100,t=100,n=10,i=10){super(),this.segWidth=n,this.segHeight=i,this.width=e,this.height=t,this.build()}build(){const e=this.segWidth*this.segHeight,t=[],n=[],i=[],s=this.segWidth-1,a=this.segHeight-1,o=this.width/s,l=this.height/a;for(let h=0;h<e;h++){const c=h%this.segWidth,d=h/this.segWidth|0;t.push(c*o,d*l),n.push(c/s,d/a)}const u=s*a;for(let h=0;h<u;h++){const c=h%s,d=h/s|0,f=d*this.segWidth+c,g=d*this.segWidth+c+1,y=(d+1)*this.segWidth+c,v=(d+1)*this.segWidth+c+1;i.push(f,g,y,g,v,y)}this.buffers[0].data=new Float32Array(t),this.buffers[1].data=new Float32Array(n),this.indexBuffer.data=new Uint16Array(i),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()}}class bU extends j4{constructor(e=200,t,n=0){super(new Float32Array(t.length*4),new Float32Array(t.length*4),new Uint16Array((t.length-1)*6)),this.points=t,this._width=e,this.textureScale=n,this.build()}get width(){return this._width}build(){const e=this.points;if(!e)return;const t=this.getBuffer("aVertexPosition"),n=this.getBuffer("aTextureCoord"),i=this.getIndex();if(e.length<1)return;t.data.length/4!==e.length&&(t.data=new Float32Array(e.length*4),n.data=new Float32Array(e.length*4),i.data=new Uint16Array((e.length-1)*6));const s=n.data,a=i.data;s[0]=0,s[1]=0,s[2]=0,s[3]=1;let o=0,l=e[0];const u=this._width*this.textureScale,h=e.length;for(let d=0;d<h;d++){const f=d*4;if(this.textureScale>0){const g=l.x-e[d].x,y=l.y-e[d].y,v=Math.sqrt(g*g+y*y);l=e[d],o+=v/u}else o=d/(h-1);s[f]=o,s[f+1]=0,s[f+2]=o,s[f+3]=1}let c=0;for(let d=0;d<h-1;d++){const f=d*2;a[c++]=f,a[c++]=f+1,a[c++]=f+2,a[c++]=f+2,a[c++]=f+1,a[c++]=f+3}n.update(),i.update(),this.updateVertices()}updateVertices(){const e=this.points;if(e.length<1)return;let t=e[0],n,i=0,s=0;const a=this.buffers[0].data,o=e.length,l=this.textureScale>0?this.textureScale*this._width/2:this._width/2;for(let u=0;u<o;u++){const h=e[u],c=u*4;u<e.length-1?n=e[u+1]:n=h,s=-(n.x-t.x),i=n.y-t.y;const d=Math.sqrt(i*i+s*s);d<1e-6?(i=0,s=0):(i/=d,s/=d,i*=l,s*=l),a[c]=h.x+i,a[c+1]=h.y+s,a[c+2]=h.x-i,a[c+3]=h.y-s,t=h}this.buffers[0].update()}update(){this.textureScale>0?this.build():this.updateVertices()}}class SU extends Kd{constructor(e,t,n){const i=new wU(e.width,e.height,t,n),s=new Jd(yt.WHITE);super(i,s),this.texture=e,this.autoResize=!0}textureUpdated(){this._textureID=this.shader.texture._updateID;const e=this.geometry,{width:t,height:n}=this.shader.texture;this.autoResize&&(e.width!==t||e.height!==n)&&(e.width=this.shader.texture.width,e.height=this.shader.texture.height,e.build())}set texture(e){this.shader.texture!==e&&(this.shader.texture=e,this._textureID=-1,e.baseTexture.valid?this.textureUpdated():e.once("update",this.textureUpdated,this))}get texture(){return this.shader.texture}_render(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),super._render(e)}destroy(e){this.shader.texture.off("update",this.textureUpdated,this),super.destroy(e)}}const op=10;class AU extends SU{constructor(e,t,n,i,s){var a,o,l,u;super(yt.WHITE,4,4),this._origWidth=e.orig.width,this._origHeight=e.orig.height,this._width=this._origWidth,this._height=this._origHeight,this._leftWidth=t??((a=e.defaultBorders)==null?void 0:a.left)??op,this._rightWidth=i??((o=e.defaultBorders)==null?void 0:o.right)??op,this._topHeight=n??((l=e.defaultBorders)==null?void 0:l.top)??op,this._bottomHeight=s??((u=e.defaultBorders)==null?void 0:u.bottom)??op,this.texture=e}textureUpdated(){this._textureID=this.shader.texture._updateID,this._refresh()}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}updateHorizontalVertices(){const e=this.vertices,t=this._getMinScale();e[9]=e[11]=e[13]=e[15]=this._topHeight*t,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*t,e[25]=e[27]=e[29]=e[31]=this._height}updateVerticalVertices(){const e=this.vertices,t=this._getMinScale();e[2]=e[10]=e[18]=e[26]=this._leftWidth*t,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*t,e[6]=e[14]=e[22]=e[30]=this._width}
728_getMinScale(){const e=this._leftWidth+this._rightWidth,t=this._width>e?1:this._width/e,n=this._topHeight+this._bottomHeight,i=this._height>n?1:this._height/n;return Math.min(t,i)}get width(){return this._width}set width(e){this._width=e,this._refresh()}get height(){return this._height}set height(e){this._height=e,this._refresh()}get leftWidth(){return this._leftWidth}set leftWidth(e){this._leftWidth=e,this._refresh()}get rightWidth(){return this._rightWidth}set rightWidth(e){this._rightWidth=e,this._refresh()}get topHeight(){return this._topHeight}set topHeight(e){this._topHeight=e,this._refresh()}get bottomHeight(){return this._bottomHeight}set bottomHeight(e){this._bottomHeight=e,this._refresh()}_refresh(){const e=this.texture,t=this.geometry.buffers[1].data;this._origWidth=e.orig.width,this._origHeight=e.orig.height;const n=1/this._origWidth,i=1/this._origHeight;t[0]=t[8]=t[16]=t[24]=0,t[1]=t[3]=t[5]=t[7]=0,t[6]=t[14]=t[22]=t[30]=1,t[25]=t[27]=t[29]=t[31]=1,t[2]=t[10]=t[18]=t[26]=n*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-n*this._rightWidth,t[9]=t[11]=t[13]=t[15]=i*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-i*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()}}class TU extends Kd{constructor(e=yt.EMPTY,t,n,i,s){const a=new j4(t,n,i);a.getBuffer("aVertexPosition").static=!1;const o=new Jd(e);super(a,o,null,s),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class EU extends Kd{constructor(e,t,n=0){const i=new bU(e.height,t,n),s=new Jd(e);n>0&&(e.baseTexture.wrapMode=no.REPEAT),super(i,s),this.autoUpdate=!0}_render(e){const t=this.geometry;(this.autoUpdate||t._width!==this.shader.texture.height)&&(t._width=this.shader.texture.height,t.update(
vendor: 14,130 bytes, lines 728-779
728)),super._render(e)}}class PU extends ji{constructor(e=1500,t,n=16384,i=!1){super();const s=16384;n>s&&(n=s),this._properties=[!1,!0,!1,!1,!1],this._maxSize=e,this._batchSize=n,this._buffers=null,this._bufferUpdateIDs=[],this._updateID=0,this.interactiveChildren=!1,this.blendMode=et.NORMAL,this.autoResize=i,this.roundPixels=!0,this.baseTexture=null,this.setProperties(t),this._tintColor=new wr(0),this.tintRgb=new Float32Array(3),this.tint=16777215}setProperties(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])}updateTransform(){this.displayObjectUpdateTransform()}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e),this._tintColor.toRgbArray(this.tintRgb)}render(e){!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",()=>this.onChildrenChange(0))),e.batch.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))}onChildrenChange(e){const t=Math.floor(e/this._batchSize);for(;this._bufferUpdateIDs.length<t;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[t]=++this._updateID}dispose(){if(this._buffers){for(let e=0;e<this._buffers.length;++e)this._buffers[e].destroy();this._buffers=null}}destroy(e){super.destroy(e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null}}class ow{constructor(e,t,n){this.geometry=new Pf,this.indexBuffer=null,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(let i=0;i<e.length;++i){let s=e[i];s={attributeName:s.attributeName,size:s.size,uploadFunction:s.uploadFunction,type:s.type||ot.FLOAT,offset:s.offset},t[i]?this.dynamicProperties.push(s):this.staticProperties.push(s)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const e=this.geometry;let t=0;this.indexBuffer=new Xr(kO(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];o.offset=t,t+=o.size,this.dynamicStride+=o.size}const n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=new Xr(this.dynamicData,!1,!1);let i=0;this.staticStride=0;for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];o.offset=i,i+=o.size,this.staticStride+=o.size}const s=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(s),this.staticDataUint32=new Uint32Array(s),this.staticBuffer=new Xr(this.staticData,!0,!1);for(let a=0;a<this.dynamicProperties.length;++a){const o=this.dynamicProperties[a];e.addAttribute(o.attributeName,this.dynamicBuffer,0,o.type===ot.UNSIGNED_BYTE,o.type,this.dynamicStride*4,o.offset*4)}for(let a=0;a<this.staticProperties.length;++a){const o=this.staticProperties[a];e.addAttribute(o.attributeName,this.staticBuffer,0,o.type===ot.UNSIGNED_BYTE,o.type,this.staticStride*4,o.offset*4)}}uploadDynamic(e,t,n){for(let i=0;i<this.dynamicProperties.length;i++){const s=this.dynamicProperties[i];s.uploadFunction(e,t,n,s.type===ot.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,s.offset)}this.dynamicBuffer._updateID++}uploadStatic(e,t,n){for(let i=0;i<this.staticProperties.length;i++){const s=this.staticProperties[i];s.uploadFunction(e,t,n,s.type===ot.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,s.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var DU=`varying vec2 vTextureCoord;
729varying vec4 vColor;
730
731uniform sampler2D uSampler;
732
733void main(void){
734    vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
735    gl_FragColor = color;
736}`,HU=`attribute vec2 aVertexPosition;
737attribute vec2 aTextureCoord;
738attribute vec4 aColor;
739
740attribute vec2 aPositionCoord;
741attribute float aRotation;
742
743uniform mat3 translationMatrix;
744uniform vec4 uColor;
745
746varying vec2 vTextureCoord;
747varying vec4 vColor;
748
749void main(void){
750    float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);
751    float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);
752
753    vec2 v = vec2(x, y);
754    v = v + aPositionCoord;
755
756    gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);
757
758    vTextureCoord = aTextureCoord;
759    vColor = aColor * uColor;
760}
761`;class UE extends B4{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Zr,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:ot.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=xa.from(HU,DU,{}),this.state=Da.for2d()}render(e){const t=e.children,n=e._maxSize,i=e._batchSize,s=this.renderer;let a=t.length;if(a===0)return;a>n&&!e.autoResize&&(a=n);let o=e._buffers;o||(o=e._buffers=this.generateBuffers(e));const l=t[0]._texture.baseTexture,u=l.alphaMode>0;this.state.blendMode=PT(e.blendMode,u),s.state.set(this.state);const h=s.gl,c=e.worldTransform.copyTo(this.tempMatrix);c.prepend(s.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=c.toArray(!0),this.shader.uniforms.uColor=wr.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,u).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);let d=!1;for(let f=0,g=0;f<a;f+=i,g+=1){let y=a-f;y>i&&(y=i),g>=o.length&&o.push(this._generateOneMoreBuffer(e));const v=o[g];v.uploadDynamic(t,f,y);const _=e._bufferUpdateIDs[g]||0;d=d||v._updateID<_,d&&(v._updateID=e._updateID,v.uploadStatic(t,f,y)),s.geometry.bind(v.geometry),h.drawElements(h.TRIANGLES,y*6,h.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],n=e._maxSize,i=e._batchSize,s=e._properties;for(let a=0;a<n;a+=i)t.push(new ow(this.properties,s,i));return t}_generateOneMoreBuffer(e){const t=e._batchSize,n=e._properties;return new ow(this.properties,n,t)}uploadVertices(e,t,n,i,s,a){let o=0,l=0,u=0,h=0;for(let c=0;c<n;++c){const d=e[t+c],f=d._texture,g=d.scale.x,y=d.scale.y,v=f.trim,_=f.orig;v?(l=v.x-d.anchor.x*_.width,o=l+v.width,h=v.y-d.anchor.y*_.height,u=h+v.height):(o=_.width*(1-d.anchor.x),l=_.width*-d.anchor.x,u=_.height*(1-d.anchor.y),h=_.height*-d.anchor.y),i[a]=l*g,i[a+1]=h*y,i[a+s]=o*g,i[a+s+1]=h*y,i[a+s*2]=o*g,i[a+s*2+1]=u*y,i[a+s*3]=l*g,i[a+s*3+1]=u*y,a+=s*4}}uploadPosition(e,t,n,i,s,a){for(let o=0;o<n;o++){const l=e[t+o].position;i[a]=l.x,i[a+1]=l.y,i[a+s]=l.x,i[a+s+1]=l.y,i[a+s*2]=l.x,i[a+s*2+1]=l.y,i[a+s*3]=l.x,i[a+s*3+1]=l.y,a+=s*4}}uploadRotation(e,t,n,i,s,a){for(let o=0;o<n;o++){const l=e[t+o].rotation;i[a]=l,i[a+s]=l,i[a+s*2]=l,i[a+s*3]=l,a+=s*4}}uploadUvs(e,t,n,i,s,a){for(let o=0;o<n;++o){const l=e[t+o]._texture._uvs;l?(i[a]=l.x0,i[a+1]=l.y0,i[a+s]=l.x1,i[a+s+1]=l.y1,i[a+s*2]=l.x2,i[a+s*2+1]=l.y2,i[a+s*3]=l.x3,i[a+s*3+1]=l.y3,a+=s*4):(i[a]=0,i[a+1]=0,i[a+s]=0,i[a+s+1]=0,i[a+s*2]=0,i[a+s*2+1]=0,i[a+s*3]=0,i[a+s*3+1]=0,a+=s*4)}}uploadTint(e,t,n,i,s,a){for(let o=0;o<n;++o){const l=e[t+o],u=wr.shared.setValue(l._tintRGB).toPremultiplied(l.alpha,l.texture.baseTexture.alphaMode>0);i[a]=u,i[a+s]=u,i[a+s*2]=u,i[a+s*3]=u,a+=s*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}UE.extension={name:"particle",type:ze.RendererPlugin};Je.add(UE);class ef extends Df{constructor(e,t=!0){super(e[0]instanceof yt?e[0]:e[0].texture),this._textures=null,this._durations=null,this._autoUpdate=t,this._isConnectedToTicker=!1,this.animationSpeed=1,this.loop=!0,this.updateAnchor=!1,this.onComplete=null,this.onFrameChange=null,this.onLoop=null,this._currentTime=0,this._playing=!1,this._previousFrame=null,this.textures=e}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Wn.shared.remove(this.update,this),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Wn.shared.add(this.update,this,h0.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(e){this.stop(),this.currentFrame=e}gotoAndPlay(e){this.currentFrame=e,this.play()}update(e){if(!this._playing)return;const t=this.animationSpeed*e,n=this.currentFrame;if(this._durations!==null){let i=this._currentTime%1*this._durations[this.currentFrame];for(i+=t/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];const s=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*s,this._currentTime+=s;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=t;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<n||this.animationSpeed<0&&this.currentFrame>n)&&this.onLoop(),this.updateTexture())}updateTexture(){const e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this._texture=this._textures[e],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))}destroy(e){this.stop(),super.destroy(e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}static fromFrames(e){const t=[];for(let n=0;n<e.length;++n)t.push(yt.from(e[n]));return new ef(t)}static fromImages(e){const t=[];for(let n=0;n<e.length;++n)t.push(yt.from(e[n]));return new ef(t)}get totalFrames(){return this._textures.length}get textures(){return this._textures}set textures(e){if(e[0]instanceof yt)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(let t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}get currentFrame(){let e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}set currentFrame(e){if(e<0||e>this.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${e}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Wn.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Wn.shared.add(this.update,this),this._isConnectedToTicker=!0))}}const k1=new Mt;class B_ extends Df{constructor(e,t=100,n=100){super(e),this.tileTransform=new N4,this._width=t,this._height=n,this.uvMatrix=this.texture.uvMatrix||new I_(e),this.pluginName="tilingSprite",this.uvRespectAnchor=!1}get clampMargin(){return this.uvMatrix.clampMargin}set clampMargin(e){this.uvMatrix.clampMargin=e,this.uvMatrix.update(!0)}get tileScale(){return this.tileTransform.scale}set tileScale(e){this.tileTransform.scale.copyFrom(e)}get tilePosition(){return this.tileTransform.position}set tilePosition(e){this.tileTransform.position.copyFrom(e)}_onTextureUpdate(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215}_render(e){const t=this._texture;!t||!t.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),e.batch.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))}_calculateBounds(){const e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,n=this._width*(1-this._anchor._x),i=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,n,i)}getLocalBounds(e){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new Rt),e=this._localBoundsRect),this._bounds.getRectangle(e)):super.getLocalBounds.call(this,e)}containsPoint(e){this.worldTransform.applyInverse(e,k1);const t=this._width,n=this._height,i=-t*this.anchor._x;if(k1.x>=i&&k1.x<i+t){const s=-n*this.anchor._y;if(k1.y>=s&&k1.y<s+n)return!0}return!1}destroy(e){super.destroy(e),this.tileTransform=null,this.uvMatrix=null}static from(e,t){const n=e instanceof yt?e:yt.from(e,t);return new B_(n,t.width,t.height)}get width(){return this._width}set width(e){this._width=e}get height(){return this._height}set height(e){this._height=e}}var kU=`#version 300 es
762#define SHADER_NAME Tiling-Sprite-100
763
764precision lowp float;
765
766in vec2 vTextureCoord;
767
768out vec4 fragmentColor;
769
770uniform sampler2D uSampler;
771uniform vec4 uColor;
772uniform mat3 uMapCoord;
773uniform vec4 uClampFrame;
774uniform vec2 uClampOffset;
775
776void main(void)
777{
778    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
779    coord = (uMapCoord * vec3(coord, 1.0)).xy;
780    vec2 unclamped = coord;
781    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
782
783    vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
784
785    fragmentColor = texSample * uColor;
786}
787`,IU=`#version 300 es
788#define SHADER_NAME Tiling-Sprite-300
789
790precision lowp float;
791
792in vec2 aVertexPosition;
793in vec2 aTextureCoord;
794
795uniform mat3 projectionMatrix;
796uniform mat3 translationMatrix;
797uniform mat3 uTransform;
798
799out vec2 vTextureCoord;
800
801void main(void)
802{
803    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
804
805    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
806}
807`,MU=`#version 100
808#ifdef GL_EXT_shader_texture_lod
809    #extension GL_EXT_shader_texture_lod : enable
810#endif
811#define SHADER_NAME Tiling-Sprite-100
812
813precision lowp float;
814
815varying vec2 vTextureCoord;
816
817uniform sampler2D uSampler;
818uniform vec4 uColor;
819uniform mat3 uMapCoord;
820uniform vec4 uClampFrame;
821uniform vec2 uClampOffset;
822
823void main(void)
824{
825    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
826    coord = (uMapCoord * vec3(coord, 1.0)).xy;
827    vec2 unclamped = coord;
828    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
829
830    #ifdef GL_EXT_shader_texture_lod
831        vec4 texSample = unclamped == coord
832            ? texture2D(uSampler, coord) 
833            : texture2DLodEXT(uSampler, coord, 0);
834    #else
835        vec4 texSample = texture2D(uSampler, coord);
836    #endif
837
838    gl_FragColor = texSample * uColor;
839}
840`,lw=`#version 100
841#define SHADER_NAME Tiling-Sprite-100
842
843precision lowp float;
844
845attribute vec2 aVertexPosition;
846attribute vec2 aTextureCoord;
847
848uniform mat3 projectionMatrix;
849uniform mat3 translationMatrix;
850uniform mat3 uTransform;
851
852varying vec2 vTextureCoord;
853
854void main(void)
855{
856    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
856)).xy, 0.0, 1.0);
857
858    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
859}
860`,RU=`#version 100
861#define SHADER_NAME Tiling-Sprite-Simple-100
862
863precision lowp float;
864
865varying vec2 vTextureCoord;
866
867uniform sampler2D uSampler;
868uniform vec4 uColor;
869
870void main(void)
871{
872    vec4 texSample = texture2D(uSampler, vTextureCoord);
873    gl_FragColor = texSample * uColor;
874}
875`;const lp=new Zr;class $E extends B4{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new KT,this.state=Da.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=xa.from(lw,RU,t),this.shader=e.context.webGLVersion>1?xa.from(IU,kU,t):xa.from(lw,MU,t)}render(e){const t=this.renderer,n=this.quad;let i=n.vertices;i[0]=i[6]=e._width*-e.anchor.x,i[1]=i[3]=e._height*-e.anchor.y,i[2]=i[4]=e._width*(1-e.anchor.x),i[5]=i[7]=e._height*(1-e.anchor.y);const s=e.uvRespectAnchor?e.anchor.x:0,a=e.uvRespectAnchor?e.anchor.y:0;i=n.uvs,i[0]=i[6]=-s,i[1]=i[3]=-a,i[2]=i[4]=1-s,i[5]=i[7]=1-a,n.invalidate();const o=e._texture,l=o.baseTexture,u=l.alphaMode>0,h=e.tileTransform.localTransform,c=e.uvMatrix;let d=l.isPowerOfTwo&&o.frame.width===l.width&&o.frame.height===l.height;d&&(l._glTextures[t.CONTEXT_UID]?d=l.wrapMode!==no.CLAMP:l.wrapMode===no.CLAMP&&(l.wrapMode=no.REPEAT));const f=d?this.simpleShader:this.shader,g=o.width,y=o.height,v=e._width,_=e._height;lp.set(h.a*g/v,h.b*g/_,h.c*y/v,h.d*y/_,h.tx/v,h.ty/_),lp.invert(),d?lp.prepend(c.mapCoord):(f.uniforms.uMapCoord=c.mapCoord.toArray(!0),f.uniforms.uClampFrame=c.uClampFrame,f.uniforms.uClampOffset=c.uClampOffset),f.uniforms.uTransform=lp.toArray(!0),f.uniforms.uColor=wr.shared.setValue(e.tint).premultiply(e.worldAlpha,u).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=o,t.shader.bind(f),t.geometry.bind(n),this.state.blendMode=PT(e.blendMode,u),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}$E.extension={name:"tilingSprite",type:ze.RendererPlugin};Je.add($E);const zE=class zy{constructor(e){this.stage=new ji,e=Object.assign({forceCanvas:!1},e),this.renderer=GN(e),zy._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){var e;return(e=this.renderer)==null?void 0:e.view}get screen(){var e;return(e=this.renderer)==null?void 0:e.screen}destroy(e,t){const n=zy._plugins.slice(0);n.reverse(),n.forEach(i=>{i.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};zE._plugins=[];let W4=zE;Je.handleByList(ze.Application,W4._plugins);class jE{static init(e){Object.defineProperty(this,"resizeTo",{set(t){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=t,t&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let t,n;if(this._resizeTo===globalThis.window)t=globalThis.innerWidth,n=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:s}=this._resizeTo;t=i,n=s}this.renderer.resize(t,n),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}jE.extension=ze.Application;Je.add(jE);var VE={exports:{}},FU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",LU=FU,OU=LU;function GE(){}function WE(){}WE.resetWarningCache=GE;var NU=function(){function r(n,i,s,a,o,l){if(l!==OU){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}r.isRequired=r;function e(){return r}var t={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:e,element:r,elementType:r,instanceOf:e,node:r,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:WE,resetWarningCache:GE};return t.PropTypes=t,t};VE.exports=NU();var BU=VE.exports;const nr=cc(BU);function Bi(r){return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(r)}function XE(r){var e=function(t,n){if(Bi(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,n||"default");if(Bi(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}(r,"string");return Bi(e)==="symbol"?e:String(e)}function Pr(r,e,t){return(e=XE(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function p9(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function po(r){return function(e){if(Array.isArray(e))return p9(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||function(e,t){if(e){if(typeof e=="string")return p9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p9(e,t):void 0}}(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
876In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Sr(r,e){for(var t=arguments.length,n=new Array(t>2?t-2:0),i=2;i<t;i++)n[i-2]=arguments[i]}var UU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $U(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var zU=function(r){return r==null};function Y1(r){var e=[];
876if(r===void 0)return e;if(typeof r=="string")e=r.split(",");else if(typeof r=="number")e=[r];else if(Array.isArray(r))e=po(r);else{if(r===null||Bi(r)!=="object")return e;e=[r&&(r==null?void 0:r.x)||0,r&&(r==null?void 0:r.y)||0]}return e.filter(function(t){return!zU(t)&&!isNaN(t)}).map(Number)}function uw(r,e){if(r.length!==e.length)return!1;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function m9(r){return r instanceof Mt||r instanceof dl}var J3=["click","mousedown","mousemove","mouseout","mouseover","mouseup","mouseupoutside","tap","touchstart","touchmove","touchend","touchendoutside","pointercancel","pointerout","pointerover","pointertap","pointerdown","pointerup","pointerupoutside","pointermove","rightclick","rightdown","rightup","rightupoutside","touchcancel","touchendoutside","touchmove","touchstart"];function g9(r,e,t){if(m9(r[e])&&m9(t))r[e].copyFrom(t);else if(m9(r[e])){var n=Y1(t);Sr(n!==void 0&&n.length>0&&n.length<3,"The property `%s` is a `Point` and must be set to a comma-separated string of either coordinates, an array containing coordinates, or a Point.",e,JSON.stringify(t),Bi(t)),r[e].set(n.shift(),n.shift())}else r[e]=t}var qc,YE=function(r){var e,t=r;if(!Array.isArray(t)){if(e=r,Object.prototype.toString.call(e)!=="[object Object]")throw new Error("collection needs to be an Array or Object");t=Object.keys(r)}var n={};return t.forEach(function(i){n[i]=!0}),function(i){return n[i]!==void 0}},ZE=function(r){return function(){return!r.apply(void 0,arguments)}},jy="children",jU=(Pr(qc={},jy,!0),Pr(qc,"parent",!0),Pr(qc,"worldAlpha",!0),Pr(qc,"worldTransform",!0),Pr(qc,"worldVisible",!0),qc),Vy={alpha:1,buttonMode:!1,cacheAsBitmap:!1,cursor:null,filterArea:null,filters:null,hitArea:null,interactive:!1,mask:null,pivot:0,position:0,renderable:!0,rotation:0,scale:1,skew:0,transform:null,visible:!0,x:0,y:0},Sa=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=function(o){return requestAnimationFrame(function(){var l,u;o==null||(l=o.__reactpixi)===null||l===void 0||(u=l.root)===null||u===void 0||u.emit("__REACT_PIXI_REQUEST_RENDER__")})},i=function(o,l){if(t.hasOwnProperty(o))return Sr(l.typeofs.some(function(u){return Bi(t[o])===u})||l.instanceofs.some(function(u){return t[o]instanceof u}),"".concat(r," ").concat(o," prop is invalid")),t[o]};if(t.texture)return Sr(t.texture instanceof yt,"".concat(r," texture needs to be typeof `Texture`")),t.texture;var s=i("image",{typeofs:["string"],instanceofs:[HTMLImageElement]})||i("video",{typeofs:["string"],instanceofs:[HTMLVideoElement]})||i("source",{typeofs:["string","number"],instanceofs:[HTMLImageElement,HTMLVideoElement,HTMLCanvasElement,yt]});Sr(!!s,"".concat(r," could not get texture from props"));var a=yt.from(s);return a.__reactpixi={root:e},a.once("update",n),a.once("loaded",n),a.valid&&n(a),a},VU=ZE(YE([].concat(po(Object.keys(jU)),po(J3))));function Aa(r,e,t){var n=!1;if(Sr(Ml.prototype.isPrototypeOf(r),"instance needs to be typeof `DisplayObject`, got `%s`",Bi(r)),!t.ignoreEvents)for(var i=typeof r.removeListener=="function",s=typeof r.on=="function",a=0;a<J3.length;a++){var o=J3[a];e[o]!==t[o]&&(n=!0,typeof e[o]=="function"&&i&&r.removeListener(o,e[o]),typeof t[o]=="function"&&s&&r.on(o,t[o]))}var l=Object.keys(t||{});if(t.overwriteProps){for(var u=0;u<l.length;u++){var h=l[u];e[h]!==t[h]&&(n=!0,g9(r,h,t[h]))}return n}for(var c=l.filter(VU),d=0;d<c.length;d++){var f=c[d],g=t[f];t[f]!==e[f]&&(n=!0),g!==void 0?g9(r,f,g):f in Vy?(console.warn("setting default value: ".concat(f,", from: ").concat(r[f]," to: ").concat(g," for"),r),n=!0,g9(r,f,Vy[f])):console.warn("ignoring prop: ".concat(f,", from ").concat(r[f]," to ").concat(g," for"),r)}return n}var GU=function(r,e){var t=e.text,n=e.style;return new AB(t,n)},WU=function(){return new ji};function Gl(r,e){if(r==null)return{};var t,n,i=function(a,o){if(a==null)return{};var l,u,h={},c=Object.keys(a);for(u=0;u<c.length;u++)l=c[u],o.indexOf(l)>=0||(h[l]=a[l]);return h}(r,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}var XU=["draw","geometry"],YU=function(r,e){var t=e.geometry;Sr(!t||t instanceof f9,"Graphics geometry needs to be a `Graphics`");var n=t?new f9(t.geometry):new f9;return n.applyProps=function(i,s,a){var o=a.draw;a.geometry;var l=Aa(i,s,Gl(a,XU));return s.draw!==o&&typeof o=="function"&&(l=!0,o.call(n,n)),l},n},ZU=["image","texture"],qU=function(r,e){var t=e.leftWidth,n=t===void 0?10:t,i=e.topHeight,s=i===void 0?10:i,a=e.rightWidth,o=a===void 0?10:a,l=e.bottomHeight,u=l===void 0?10:l,h=Sa("NineSlicePlane",r,e),c=new AU(h,n,s,o,u);return c.applyProps=function(d,f,g){var y=g.image,v=g.texture,_=Aa(d,f,Gl(g,ZU));return(y||v)&&(v!==f.texture&&(_=!0),d.texture=Sa("NineSlicePlane",r,g)),_},c};function cw(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function up(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
876e%2?cw(Object(t),!0).forEach(function(n){Pr(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):cw(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var QU=function(r,e){var t=e.maxSize,n=t===void 0?1500:t,i=e.batchSize,s=i===void 0?16384:i,a=e.autoResize,o=a!==void 0&&a,l=up(up({},{vertices:!1,scale:!0,position:!0,rotation:!0,uvs:!0,tint:!0}),e.properties||{}),u=up(up({},{children:!1,texture:!1,baseTexture:!1}),e.destroyOptions||{}),h=new PU(n,l,s,o);return h.willUnmount=function(c,d,f){c.destroy(u)},h},KU=["image","texture"],JU=function(r,e){var t=new Df(Sa("Sprite",r,e));return t.applyProps=function(n,i,s){var a=s.image,o=s.texture,l=Aa(n,i,Gl(s,KU));return(o&&i.texture!==s.texture||a&&i.image!==s.image)&&(i.texture!==s.texture&&(l=!0),n.texture=Sa("Sprite",r,s)),l},t},e$=["textures","isPlaying","initialFrame","images"],t$=function(r,e){var t=e.textures,n=e.images,i=e.isPlaying,s=i===void 0||i,a=e.initialFrame,o=function(u){return u.map(function(h){return Sr(h instanceof yt||(h==null?void 0:h.texture),"AnimationSprite texture needs to be an array of `Texture` or `{ texture: Texture, time:\n                number }`"),h})},l=n?ef.fromImages(n):new ef(o(t));return l[s?"gotoAndPlay":"gotoAndStop"](a||0),l.applyProps=function(u,h,c){var d=c.textures,f=c.isPlaying,g=c.initialFrame,y=c.images,v=Aa(u,h,Gl(c,e$));if(y&&h.images!==y){for(var _=[],x=0;x<y.length;++x)_.push(yt.from(y[x]));u.textures=_,v=!0}if(d&&h.textures!==d&&(u.textures=o(d),v=!0),f!==h.isPlaying||g!==h.initialFrame){var w=typeof g=="number"?g:l.currentFrame||0;l[f?"gotoAndPlay":"gotoAndStop"](w),v=!0}return v},l},r$=function(r,e){var t=e.text,n=t===void 0?"":t,i=e.style,s=i===void 0?{}:i,a=e.isSprite,o=new mB(n,s);return a?(o.updateText(),new Df(o.texture)):o},n$=["tileScale","tilePosition","image","texture"],i$=function(r,e){var t=e.width,n=t===void 0?100:t,i=e.height,s=i===void 0?100:i,a=Sa("TilingSprite",r,e),o=new B_(a,n,s);return o.applyProps=function(l,u,h){var c=h.tileScale,d=h.tilePosition,f=h.image,g=h.texture,y=Aa(l,u,Gl(h,n$));if(d){var v,_=Y1(d);(v=l.tilePosition).set.apply(v,po(_)),y=!uw(Y1(u.tilePosition),_)||y}if(c){var x,w=Y1(c);(x=l.tileScale).set.apply(x,po(w)),y=!uw(Y1(u.tileScale),w)||y}return(f||g)&&(g!==u.texture&&(y=!0),l.texture=Sa("Sprite",r,h)),y},o},s$=["image","texture"],a$=function(r,e){var t=Sa("Mesh",r,e),n=e.vertices,i=e.uvs,s=e.indices,a=e.drawMode,o=a===void 0?Os.TRIANGLES:a,l=new TU(t,n,i,s,o);return l.applyProps=function(u,h,c){var d=c.image,f=c.texture,g=Aa(u,h,Gl(c,s$));return(d||f)&&(f!==h.texture&&(g=!0),u.texture=Sa("Mesh",r,c)),g},l},o$=["image","texture"],l$=function(r,e){var t=Sa("SimpleRope",r,e),n=e.points,i=new EU(t,n);return i.applyProps=function(s,a,o){var l=o.image,u=o.texture,h=Gl(o,o$);Sr(Array.isArray(o.points),"SimpleRope points needs to be %s","Array<Point>");var c=Aa(s,a,h);return(l||u)&&(u!==a.texture&&(c=!0),s.texture=Sa("SimpleRope",r,o)),c},i},u$=Object.freeze({__proto__:null,BitmapText:GU,Container:WU,Graphics:YU,NineSlicePlane:qU,ParticleContainer:QU,Sprite:JU,Text:r$,TilingSprite:i$,SimpleMesh:a$,SimpleRope:l$,AnimatedSprite:t$});function hw(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function dw(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hw(Object(t),!0).forEach(function(n){Pr(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hw(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var yi={BitmapText:"BitmapText",Container:"Container",Graphics:"Graphics",NineSlicePlane:"NineSlicePlane",ParticleContainer:"ParticleContainer",Sprite:"Sprite",AnimatedSprite:"AnimatedSprite",Text:"Text",TilingSprite:"TilingSprite",SimpleMesh:"SimpleMesh",SimpleRope:"SimpleRope"},c$=Object.keys(yi).reduce(function(r,e){return dw(dw({},r),{},Pr({},e,u$[e]))},{}),qE={};function h$(r,e){return Sr(!!r,"Expect type to be defined, got `%s`",r),Sr(!yi[r],"Component `%s` could not be created, already exists in default components.",r),qE[r]=e,r}var fw,pw,mw,gw,Gy={},Wy={},d$={get exports(){return Wy},set exports(r){Wy=r}},yw={};function f$(){return pw||(pw=1,d$.exports=(fw||(fw=1,function(r){function e(j,Y){var G=j.length;j.push(Y);e:for(;0<G;){var J=G-1>>>1,ee=j[J];if(!(0<i(ee,Y)))break e;j[J]=Y,j[G]=ee,G=J}}function t(j){return j.length===0?null:j[0]}
vendor: 4,305 bytes, lines 876-884
876function n(j){if(j.length===0)return null;var Y=j[0],G=j.pop();if(G!==Y){j[0]=G;e:for(var J=0,ee=j.length,ve=ee>>>1;J<ve;){var _e=2*(J+1)-1,Oe=j[_e],Te=_e+1,qe=j[Te];if(0>i(Oe,G))Te<ee&&0>i(qe,Oe)?(j[J]=qe,j[Te]=G,J=Te):(j[J]=Oe,j[_e]=G,J=_e);else{if(!(Te<ee&&0>i(qe,G)))break e;j[J]=qe,j[Te]=G,J=Te}}}return Y}function i(j,Y){var G=j.sortIndex-Y.sortIndex;return G!==0?G:j.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;r.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();r.unstable_now=function(){return a.now()-o}}var l=[],u=[],h=1,c=null,d=3,f=!1,g=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(j){for(var Y=t(u);Y!==null;){if(Y.callback===null)n(u);else{if(!(Y.startTime<=j))break;n(u),Y.sortIndex=Y.expirationTime,e(l,Y)}Y=t(u)}}function S(j){if(y=!1,w(j),!g)if(t(l)!==null)g=!0,q(b);else{var Y=t(u);Y!==null&&Z(S,Y.startTime-j)}}function b(j,Y){g=!1,y&&(y=!1,_(I),I=-1),f=!0;var G=d;try{for(w(Y),c=t(l);c!==null&&(!(c.expirationTime>Y)||j&&!N());){var J=c.callback;if(typeof J=="function"){c.callback=null,d=c.priorityLevel;var ee=J(c.expirationTime<=Y);Y=r.unstable_now(),typeof ee=="function"?c.callback=ee:c===t(l)&&n(l),w(Y)}else n(l);c=t(l)}if(c!==null)var ve=!0;else{var _e=t(u);_e!==null&&Z(S,_e.startTime-Y),ve=!1}return ve}finally{c=null,d=G,f=!1}}typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,D=!1,P=null,I=-1,R=5,U=-1;function N(){return!(r.unstable_now()-U<R)}function F(){if(P!==null){var j=r.unstable_now();U=j;var Y=!0;try{Y=P(!0,j)}finally{Y?E():(D=!1,P=null)}}else D=!1}if(typeof x=="function")E=function(){x(F)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,V=O.port2;O.port1.onmessage=F,E=function(){V.postMessage(null)}}else E=function(){v(F,0)};function q(j){P=j,D||(D=!0,E())}function Z(j,Y){I=v(function(){j(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(j){j.callback=null},r.unstable_continueExecution=function(){g||f||(g=!0,q(b))},r.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_getFirstCallbackNode=function(){return t(l)},r.unstable_next=function(j){switch(d){case 1:case 2:case 3:var Y=3;break;default:Y=d}var G=d;d=Y;try{return j()}finally{d=G}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=d;d=j;try{return Y()}finally{d=G}},r.unstable_scheduleCallback=function(j,Y,G){var J=r.unstable_now();switch(G=typeof G=="object"&&G!==null&&typeof(G=G.delay)=="number"&&0<G?J+G:J,j){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return j={id:h++,callback:Y,priorityLevel:j,startTime:G,expirationTime:ee=G+ee,sortIndex:-1},G>J?(j.sortIndex=G,e(u,j),t(l)===null&&j===t(u)&&(y?(_(I),I=-1):y=!0,Z(S,G-J))):(j.sortIndex=ee,e(l,j),g||f||(g=!0,q(b))),j},r.unstable_shouldYield=N,r.unstable_wrapCallback=function(j){var Y=d;return function(){var G=d;d=Y;try{return j.apply(this,arguments)}finally{d=G}}}}(yw)),yw)),Wy}/**
877 * @license React
878 * react-reconciler.production.min.js
879 *
880 * Copyright (c) Facebook, Inc. and its affiliates.
881 *
882 * This source code is licensed under the MIT license found in the
883 * LICENSE file in the root directory of this source tree.
884 */function p$(){return gw||(gw=1,mw=function(r){var e={},t=Ht,n=f$(),i=Object.assign;function s(p){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+p,C=1;C<arguments.length;C++)m+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
884var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),S=Symbol.iterator;function b(p){return p===null||typeof p!="object"?null:typeof(p=S&&p[S]||p["@@iterator"])=="function"?p:null}function E(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case u:return"Fragment";case l:return"Portal";case c:return"Profiler";case h:return"StrictMode";case y:return"Suspense";case v:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case f:return(p.displayName||"Context")+".Consumer";case d:return(p._context.displayName||"Context")+".Provider";case g:var m=p.render;return(p=p.displayName)||(p=(p=m.displayName||m.name||"")!==""?"ForwardRef("+p+")":"ForwardRef"),p;case _:return(m=p.displayName||null)!==null?m:E(p.type)||"Memo";case x:m=p._payload,p=p._init;try{return E(p(m))}catch{}}return null}function D(p){var m=p.type;switch(p.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=(p=m.render).displayName||p.name||"",m.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E(m);case 8:return m===h?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function P(p){var m=p,C=p;if(p.alternate)for(;m.return;)m=m.return;else{p=m;do 4098&(m=p).flags&&(C=m.return),p=m.return;while(p)}return m.tag===3?C:null}function I(p){if(P(p)!==p)throw Error(s(188))}function R(p){var m=p.alternate;if(!m){if((m=P(p))===null)throw Error(s(188));return m!==p?null:p}for(var C=p,A=m;;){var T=C.return;if(T===null)break;var M=T.alternate;if(M===null){if((A=T.return)!==null){C=A;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===C)return I(T),p;if(M===A)return I(T),m;M=M.sibling}throw Error(s(188))}if(C.return!==A.return)C=T,A=M;else{for(var z=!1,K=T.child;K;){if(K===C){z=!0,C=T,A=M;break}if(K===A){z=!0,A=T,C=M;break}K=K.sibling}if(!z){for(K=M.child;K;){if(K===C){z=!0,C=M,A=T;break}if(K===A){z=!0,A=M,C=T;break}K=K.sibling}if(!z)throw Error(s(189))}}if(C.alternate!==A)throw Error(s(190))}if(C.tag!==3)throw Error(s(188));return C.stateNode.current===C?p:m}function U(p){return(p=R(p))!==null?N(p):null}function N(p){if(p.tag===5||p.tag===6)return p;for(p=p.child;p!==null;){var m=N(p);if(m!==null)return m;p=p.sibling}return null}function F(p){if(p.tag===5||p.tag===6)return p;for(p=p.child;p!==null;){if(p.tag!==4){var m=F(p);if(m!==null)return m}p=p.sibling}return null}var O,V=Array.isArray,q=r.getPublicInstance,Z=r.getRootHostContext,j=r.getChildHostContext,Y=r.prepareForCommit,G=r.resetAfterCommit,J=r.createInstance,ee=r.appendInitialChild,ve=r.finalizeInitialChildren,_e=r.prepareUpdate,Oe=r.shouldSetTextContent,Te=r.createTextInstance,qe=r.scheduleTimeout,$e=r.cancelTimeout,lt=r.noTimeout,We=r.isPrimaryRenderer,Ze=r.supportsMutation,st=r.supportsPersistence,Pe=r.supportsHydration,rt=r.getInstanceFromNode,ut=r.preparePortalMount,xt=r.getCurrentEventPriority,vt=r.detachDeletedInstance,W=r.supportsMicrotasks,te=r.scheduleMicrotask,oe=r.supportsTestSelectors,Ee=r.findFiberRoot,Ce=r.getBoundingRect,xe=r.getTextContent,Fe=r.isHiddenSubtree,Ne=r.matchAccessibilityRole,it=r.setFocusIfFocusable,Wt=r.setupIntersectionObserver,ye=r.appendChild,vi=r.appendChildToContainer,on=r.commitTextUpdate,On=r.commitMount,vo=r.commitUpdate,Cn=r.insertBefore,er=r.insertInContainerBefore,Ha=r.removeChild,ln=r.removeChildFromContainer,yc=r.resetTextContent,Xl=r.hideInstance,_o=r.hideTextInstance,ka=r.unhideInstance,vc=r.unhideTextInstance,Rf=r.clearContainer,_c=r.cloneInstance,xs=r.createContainerChildSet,Ff=r.appendChildToContainerChildSet,K4=r.finalizeContainerChildren,H0=r.replaceContainerChildren,k0=r.cloneHiddenInstance,Ir=r.cloneHiddenTextInstance,xo=r.canHydrateInstance,At=r.canHydrateTextInstance,J4=r.canHydrateSuspenseInstance,_i=r.isSuspenseInstancePending,Qn=r.isSuspenseInstanceFallback,em=r.getSuspenseInstanceFallbackErrorDetails,tm=r.registerSuspenseInstanceRetry,
884Co=r.getNextHydratableSibling,I0=r.getFirstHydratableChild,Lf=r.getFirstHydratableChildWithinContainer,rm=r.getFirstHydratableChildWithinSuspenseInstance,Of=r.hydrateInstance,Nf=r.hydrateTextInstance,Bf=r.hydrateSuspenseInstance,nm=r.getNextHydratableInstanceAfterSuspenseInstance,im=r.commitHydratedContainer,Yl=r.commitHydratedSuspenseInstance,M0=r.clearSuspenseBoundary,Zl=r.clearSuspenseBoundaryFromContainer,sm=r.shouldDeleteUnhydratedTailInstances,am=r.didNotMatchHydratedContainerTextInstance,ql=r.didNotMatchHydratedTextInstance;function Ql(p){if(O===void 0)try{throw Error()}catch(C){var m=C.stack.trim().match(/\n( *(at )?)/);O=m&&m[1]||""}return`
885`+O+p}var R0=!1;function wo(p,m){if(!p||R0)return"";R0=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(ue){var A=ue}Reflect.construct(p,[],m)}else{try{m.call()}catch(ue){A=ue}p.call(m.prototype)}else{try{throw Error()}catch(ue){A=ue}p()}}catch(ue){if(ue&&A&&typeof ue.stack=="string"){for(var T=ue.stack.split(`
886`),M=A.stack.split(`
887`),z=T.length-1,K=M.length-1;1<=z&&0<=K&&T[z]!==M[K];)K--;for(;1<=z&&0<=K;z--,K--)if(T[z]!==M[K]){if(z!==1||K!==1)do if(z--,0>--K||T[z]!==M[K]){var ie=`
888`+T[z].replace(" at new "," at ");return p.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",p.displayName)),ie}while(1<=z&&0<=K);break}}}finally{R0=!1,Error.prepareStackTrace=C}return(p=p?p.displayName||p.name:"")?Ql(p):""}var om=Object.prototype.hasOwnProperty,Ia=[],bo=-1;function xi(p){return{current:p}}function Ft(p){0>bo||(p.current=Ia[bo],Ia[bo]=null,bo--)}function Ut(p,m){bo++,Ia[bo]=p.current,p.current=m}var Wi={},Qr=xi(Wi),wn=xi(!1),Ma=Wi;function So(p,m){var C=p.type.contextTypes;if(!C)return Wi;var A=p.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===m)return A.__reactInternalMemoizedMaskedChildContext;var T,M={};for(T in C)M[T]=m[T];return A&&((p=p.stateNode).__reactInternalMemoizedUnmaskedChildContext=m,p.__reactInternalMemoizedMaskedChildContext=M),M}function un(p){return(p=p.childContextTypes)!=null}function F0(){Ft(wn),Ft(Qr)}function Uf(p,m,C){if(Qr.current!==Wi)throw Error(s(168));Ut(Qr,m),Ut(wn,C)}function $f(p,m,C){var A=p.stateNode;if(m=m.childContextTypes,typeof A.getChildContext!="function")return C;for(var T in A=A.getChildContext())if(!(T in m))throw Error(s(108,D(p)||"Unknown",T));return i({},C,A)}function xc(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||Wi,Ma=Qr.current,Ut(Qr,p),Ut(wn,wn.current),!0}function Ao(p,m,C){var A=p.stateNode;if(!A)throw Error(s(169));C?(p=$f(p,m,Ma),A.__reactInternalMemoizedMergedChildContext=p,Ft(wn),Ft(Qr),Ut(Qr,p)):Ft(wn),Ut(wn,C)}var Kn=Math.clz32?Math.clz32:function(p){return(p>>>=0)===0?32:31-(lm(p)/zf|0)|0},lm=Math.log,zf=Math.LN2,Mr=64,L0=4194304;function Kl(p){switch(p&-p){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&p;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&p;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function Rr(p,m){var C=p.pendingLanes;if(C===0)return 0;var A=0,T=p.suspendedLanes,M=p.pingedLanes,z=268435455&C;if(z!==0){var K=z&~T;K!==0?A=Kl(K):(M&=z)!==0&&(A=Kl(M))}else(z=C&~T)!==0?A=Kl(z):M!==0&&(A=Kl(M));if(A===0)return 0;if(m!==0&&m!==A&&!(m&T)&&((T=A&-A)>=(M=m&-m)||T===16&&4194240&M))return m;if(4&A&&(A|=16&C),(m=p.entangledLanes)!==0)for(p=p.entanglements,m&=A;0<m;)T=1<<(C=31-Kn(m)),A|=p[C],m&=~T;return A}function um(p,m){switch(p){case 1:case 2:case 4:return m+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;default:return-1}}function Cc(p){return(p=-1073741825&p.pendingLanes)!==0?p:1073741824&p?1073741824:0}function O0(){var p=Mr;return!(4194240&(Mr<<=1))&&(Mr=64),p}function To(p){for(var m=[],C=0;31>C;C++)m.push(p);return m}function Jl(p,m,C){p.pendingLanes|=m,m!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),(p=p.eventTimes)[m=31-Kn(m)]=C}function eu(p,m){var C=p.entangledLanes|=m;for(p=p.entanglements;C;){var A=31-Kn(C),T=1<<A;T&m|p[A]&m&&(p[A]|=m),C&=~T}}var Tt=0;function wc(p){return 1<(p&=-p)?4<p?268435455&p?16:536870912:4:1}var N0=n.unstable_scheduleCallback,B0=n.unstable_cancelCallback,cm=n.unstable_shouldYield,U0=n.unstable_requestPaint,zt=n.unstable_now,tu=n.unstable_ImmediatePriority,hm=n.unstable_UserBlockingPriority,jf=n.unstable_NormalPriority,Ra=n.unstable_IdlePriority,bc=null,Ci=null,wi=typeof Object.is=="function"?Object.is:function(p,m){return p===m&&(p!==0||1/p==1/m)||p!=p&&m!=m},Cs=null,Eo=!1,$0=!1;function Sc(p){Cs===null?Cs=[p]:Cs.push(p)}function Xi(){if(!$0&&Cs!==null){$0=!0;var p=0,m=Tt;try{var C=Cs;for(Tt=1;p<C.length;p++){var A=C[p];do A=A(!0);while(A!==null)}Cs=null,Eo=!1}catch(T){throw Cs!==null&&(Cs=Cs.slice(p+1)),N0(tu,Xi),T}finally{Tt=m,$0=!1}}return null}var Po=[],Do=0,Ac=null,Tc=0,Jn=[],ei=0,Fa=null,Yi=1,Zi="";function La(p,m){Po[Do++]=Tc,Po[Do++]=Ac,Ac=p,Tc=m}function Vf(p,m,C){Jn[ei++]=Yi,Jn[ei++]=Zi,Jn[ei++]=Fa,Fa=p;var A=Yi;p=Zi;var T=32-Kn(A)-1;A&=~(1<<T),C+=1;var M=32-Kn(m)+T;if(30<M){var z=T-T%5;M=(A&(1<<z)-1).toString(32),A>>=z,T-=z,Yi=1<<32-Kn(m)+T|C<<T|A,Zi=M+p}else Yi=1<<M|C<<T|A,Zi=p}function z0(p){p.return!==null&&(La(p,1),Vf(p,1,0))}function j0(p){for(;p===Ac;)Ac=Po[--Do],Po[Do]=null,Tc=Po[--Do],Po[Do]=null;for(;p===Fa;)Fa=Jn[--ei],Jn[ei]=null,Zi=Jn[--ei],Jn[ei]=null,Yi=Jn[--ei],Jn[ei]=null}var Nn=null,ti=null,Zt=!1,ru=!1,bi=null;function Gf(p,m){var C=es(5,null,null,0);
888C.elementType="DELETED",C.stateNode=m,C.return=p,(m=p.deletions)===null?(p.deletions=[C],p.flags|=16):m.push(C)}function Wf(p,m){switch(p.tag){case 5:return(m=xo(m,p.type,p.pendingProps))!==null&&(p.stateNode=m,Nn=p,ti=I0(m),!0);case 6:return(m=At(m,p.pendingProps))!==null&&(p.stateNode=m,Nn=p,ti=null,!0);case 13:if((m=J4(m))!==null){var C=Fa!==null?{id:Yi,overflow:Zi}:null;return p.memoizedState={dehydrated:m,treeContext:C,retryLane:1073741824},(C=es(18,null,null,0)).stateNode=m,C.return=p,p.child=C,Nn=p,ti=null,!0}return!1;default:return!1}}function V0(p){return(1&p.mode)!=0&&(128&p.flags)==0}function nu(p){if(Zt){var m=ti;if(m){var C=m;if(!Wf(p,m)){if(V0(p))throw Error(s(418));m=Co(C);var A=Nn;m&&Wf(p,m)?Gf(A,C):(p.flags=-4097&p.flags|2,Zt=!1,Nn=p)}}else{if(V0(p))throw Error(s(418));p.flags=-4097&p.flags|2,Zt=!1,Nn=p}}}function Xf(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;Nn=p}function Ec(p){if(!Pe||p!==Nn)return!1;if(!Zt)return Xf(p),Zt=!0,!1;if(p.tag!==3&&(p.tag!==5||sm(p.type)&&!Oe(p.type,p.memoizedProps))){var m=ti;if(m){if(V0(p))throw Yf(),Error(s(418));for(;m;)Gf(p,m),m=Co(m)}}if(Xf(p),p.tag===13){if(!Pe)throw Error(s(316));if(!(p=(p=p.memoizedState)!==null?p.dehydrated:null))throw Error(s(317));ti=nm(p)}else ti=Nn?Co(p.stateNode):null;return!0}function Yf(){for(var p=ti;p;)p=Co(p)}function Ho(){Pe&&(ti=Nn=null,ru=Zt=!1)}function G0(p){bi===null?bi=[p]:bi.push(p)}var dm=a.ReactCurrentBatchConfig;function Pc(p,m){if(wi(p,m))return!0;if(typeof p!="object"||p===null||typeof m!="object"||m===null)return!1;var C=Object.keys(p),A=Object.keys(m);if(C.length!==A.length)return!1;for(A=0;A<C.length;A++){var T=C[A];if(!om.call(m,T)||!wi(p[T],m[T]))return!1}return!0}function fm(p){switch(p.tag){case 5:return Ql(p.type);case 16:return Ql("Lazy");case 13:return Ql("Suspense");case 19:return Ql("SuspenseList");case 0:case 2:case 15:return p=wo(p.type,!1);case 11:return p=wo(p.type.render,!1);case 1:return p=wo(p.type,!0);default:return""}}function Si(p,m){if(p&&p.defaultProps){for(var C in m=i({},m),p=p.defaultProps)m[C]===void 0&&(m[C]=p[C]);return m}return m}var Dc=xi(null),iu=null,ko=null,W0=null;function X0(){W0=ko=iu=null}function Hc(p,m,C){We?(Ut(Dc,m._currentValue),m._currentValue=C):(Ut(Dc,m._currentValue2),m._currentValue2=C)}function Y0(p){var m=Dc.current;Ft(Dc),We?p._currentValue=m:p._currentValue2=m}function Oa(p,m,C){for(;p!==null;){var A=p.alternate;if((p.childLanes&m)!==m?(p.childLanes|=m,A!==null&&(A.childLanes|=m)):A!==null&&(A.childLanes&m)!==m&&(A.childLanes|=m),p===C)break;p=p.return}}function Io(p,m){iu=p,W0=ko=null,(p=p.dependencies)!==null&&p.firstContext!==null&&(p.lanes&m&&(ni=!0),p.firstContext=null)}function ri(p){var m=We?p._currentValue:p._currentValue2;if(W0!==p)if(p={context:p,memoizedValue:m,next:null},ko===null){if(iu===null)throw Error(s(308));ko=p,iu.dependencies={lanes:0,firstContext:p}}else ko=ko.next=p;return m}var Na=null;function Z0(p){Na===null?Na=[p]:Na.push(p)}function Zf(p,m,C,A){var T=m.interleaved;return T===null?(C.next=C,Z0(m)):(C.next=T.next,T.next=C),m.interleaved=C,qi(p,A)}function qi(p,m){p.lanes|=m;var C=p.alternate;for(C!==null&&(C.lanes|=m),C=p,p=p.return;p!==null;)p.childLanes|=m,(C=p.alternate)!==null&&(C.childLanes|=m),C=p,p=p.return;return C.tag===3?C.stateNode:null}var Ys=!1;function q0(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qf(p,m){p=p.updateQueue,m.updateQueue===p&&(m.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function ws(p,m){return{eventTime:p,lane:m,tag:0,payload:null,callback:null,next:null}}function bs(p,m,C){var A=p.updateQueue;if(A===null)return null;if(A=A.shared,(2&wt)!=0){var T=A.pending;return T===null?m.next=m:(m.next=T.next,T.next=m),A.pending=m,qi(p,C)}return(T=A.interleaved)===null?(m.next=m,Z0(A)):(m.next=T.next,T.next=m),A.interleaved=m,qi(p,C)}function kc(p,m,C){if((m=m.updateQueue)!==null&&(m=m.shared,(4194240&C)!=0)){var A=m.lanes;C|=A&=p.pendingLanes,m.lanes=C,eu(p,C)}}function su(p,m){var C=p.updateQueue,A=p.alternate;if(A!==null&&C===(A=A.updateQueue)){var T=null,M=null;if((C=C.firstBaseUpdate)!==null){do{var z={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};
888M===null?T=M=z:M=M.next=z,C=C.next}while(C!==null);M===null?T=M=m:M=M.next=m}else T=M=m;return C={baseState:A.baseState,firstBaseUpdate:T,lastBaseUpdate:M,shared:A.shared,effects:A.effects},void(p.updateQueue=C)}(p=C.lastBaseUpdate)===null?C.firstBaseUpdate=m:p.next=m,C.lastBaseUpdate=m}function Ic(p,m,C,A){var T=p.updateQueue;Ys=!1;var M=T.firstBaseUpdate,z=T.lastBaseUpdate,K=T.shared.pending;if(K!==null){T.shared.pending=null;var ie=K,ue=ie.next;ie.next=null,z===null?M=ue:z.next=ue,z=ie;var he=p.alternate;he!==null&&(K=(he=he.updateQueue).lastBaseUpdate)!==z&&(K===null?he.firstBaseUpdate=ue:K.next=ue,he.lastBaseUpdate=ie)}if(M!==null){var De=T.baseState;for(z=0,he=ue=ie=null,K=M;;){var ce=K.lane,Se=K.eventTime;if((A&ce)===ce){he!==null&&(he=he.next={eventTime:Se,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var je=p,ft=K;switch(ce=m,Se=C,ft.tag){case 1:if(typeof(je=ft.payload)=="function"){De=je.call(Se,De,ce);break e}De=je;break e;case 3:je.flags=-65537&je.flags|128;case 0:if((ce=typeof(je=ft.payload)=="function"?je.call(Se,De,ce):je)==null)break e;De=i({},De,ce);break e;case 2:Ys=!0}}K.callback!==null&&K.lane!==0&&(p.flags|=64,(ce=T.effects)===null?T.effects=[K]:ce.push(K))}else Se={eventTime:Se,lane:ce,tag:K.tag,payload:K.payload,callback:K.callback,next:null},he===null?(ue=he=Se,ie=De):he=he.next=Se,z|=ce;if((K=K.next)===null){if((K=T.shared.pending)===null)break;K=(ce=K).next,ce.next=null,T.lastBaseUpdate=ce,T.shared.pending=null}}if(he===null&&(ie=De),T.baseState=ie,T.firstBaseUpdate=ue,T.lastBaseUpdate=he,(m=T.shared.interleaved)!==null){T=m;do z|=T.lane,T=T.next;while(T!==m)}else M===null&&(T.shared.lanes=0);au|=z,p.lanes=z,p.memoizedState=De}}function Q0(p,m,C){if(p=m.effects,m.effects=null,p!==null)for(m=0;m<p.length;m++){var A=p[m],T=A.callback;if(T!==null){if(A.callback=null,A=C,typeof T!="function")throw Error(s(191,T));T.call(A)}}}var K0=new t.Component().refs;function J0(p,m,C,A){C=(C=C(A,m=p.memoizedState))==null?m:i({},m,C),p.memoizedState=C,p.lanes===0&&(p.updateQueue.baseState=C)}var Mc={isMounted:function(p){return!!(p=p._reactInternals)&&P(p)===p},enqueueSetState:function(p,m,C){p=p._reactInternals;var A=An(),T=zo(p),M=ws(A,T);M.payload=m,C!=null&&(M.callback=C),(m=bs(p,M,T))!==null&&(Ji(m,p,T,A),kc(m,p,T))},enqueueReplaceState:function(p,m,C){p=p._reactInternals;var A=An(),T=zo(p),M=ws(A,T);M.tag=1,M.payload=m,C!=null&&(M.callback=C),(m=bs(p,M,T))!==null&&(Ji(m,p,T,A),kc(m,p,T))},enqueueForceUpdate:function(p,m){p=p._reactInternals;var C=An(),A=zo(p),T=ws(C,A);T.tag=2,m!=null&&(T.callback=m),(m=bs(p,T,A))!==null&&(Ji(m,p,A,C),kc(m,p,A))}};function Qf(p,m,C,A,T,M,z){return typeof(p=p.stateNode).shouldComponentUpdate=="function"?p.shouldComponentUpdate(A,M,z):!m.prototype||!m.prototype.isPureReactComponent||!Pc(C,A)||!Pc(T,M)}function Kf(p,m,C){var A=!1,T=Wi,M=m.contextType;return typeof M=="object"&&M!==null?M=ri(M):(T=un(m)?Ma:Qr.current,M=(A=(A=m.contextTypes)!=null)?So(p,T):Wi),m=new m(C,M),p.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Mc,p.stateNode=m,m._reactInternals=p,A&&((p=p.stateNode).__reactInternalMemoizedUnmaskedChildContext=T,p.__reactInternalMemoizedMaskedChildContext=M),m}function Jf(p,m,C,A){p=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(C,A),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(C,A),m.state!==p&&Mc.enqueueReplaceState(m,m.state,null)}function e1(p,m,C,A){var T=p.stateNode;T.props=C,T.state=p.memoizedState,T.refs=K0,q0(p);var M=m.contextType;typeof M=="object"&&M!==null?T.context=ri(M):(M=un(m)?Ma:Qr.current,T.context=So(p,M)),T.state=p.memoizedState,typeof(M=m.getDerivedStateFromProps)=="function"&&(J0(p,m,M,C),T.state=p.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(m=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),m!==T.state&&Mc.enqueueReplaceState(T,T.state,null),Ic(p,C,T,A),T.state=p.memoizedState),typeof T.componentDidMount=="function"&&(p.flags|=4194308)}
888function Lt(p,m,C){if((p=C.ref)!==null&&typeof p!="function"&&typeof p!="object"){if(C._owner){if(C=C._owner){if(C.tag!==1)throw Error(s(309));var A=C.stateNode}if(!A)throw Error(s(147,p));var T=A,M=""+p;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===M?m.ref:(m=function(z){var K=T.refs;K===K0&&(K=T.refs={}),z===null?delete K[M]:K[M]=z},m._stringRef=M,m)}if(typeof p!="string")throw Error(s(284));if(!C._owner)throw Error(s(290,p))}return p}function Mo(p,m){throw p=Object.prototype.toString.call(m),Error(s(31,p==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":p))}function t1(p){return(0,p._init)(p._payload)}function Qi(p){function m(de,ne){if(p){var le=de.deletions;le===null?(de.deletions=[ne],de.flags|=16):le.push(ne)}}function C(de,ne){if(!p)return null;for(;ne!==null;)m(de,ne),ne=ne.sibling;return null}function A(de,ne){for(de=new Map;ne!==null;)ne.key!==null?de.set(ne.key,ne):de.set(ne.index,ne),ne=ne.sibling;return de}function T(de,ne){return(de=Vo(de,ne)).index=0,de.sibling=null,de}function M(de,ne,le){return de.index=le,p?(le=de.alternate)!==null?(le=le.index)<ne?(de.flags|=2,ne):le:(de.flags|=2,ne):(de.flags|=1048576,ne)}function z(de){return p&&de.alternate===null&&(de.flags|=2),de}function K(de,ne,le,me){return ne===null||ne.tag!==6?((ne=zm(le,de.mode,me)).return=de,ne):((ne=T(ne,le)).return=de,ne)}function ie(de,ne,le,me){var Ke=le.type;return Ke===u?he(de,ne,le.props.children,me,le.key):ne!==null&&(ne.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===x&&t1(Ke)===ne.type)?((me=T(ne,le.props)).ref=Lt(de,ne,le),me.return=de,me):((me=C2(le.type,le.key,le.props,null,de.mode,me)).ref=Lt(de,ne,le),me.return=de,me)}function ue(de,ne,le,me){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==le.containerInfo||ne.stateNode.implementation!==le.implementation?((ne=jm(le,de.mode,me)).return=de,ne):((ne=T(ne,le.children||[])).return=de,ne)}function he(de,ne,le,me,Ke){return ne===null||ne.tag!==7?((ne=uu(le,de.mode,me,Ke)).return=de,ne):((ne=T(ne,le)).return=de,ne)}function De(de,ne,le){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return(ne=zm(""+ne,de.mode,le)).return=de,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case o:return(le=C2(ne.type,ne.key,ne.props,null,de.mode,le)).ref=Lt(de,null,ne),le.return=de,le;case l:return(ne=jm(ne,de.mode,le)).return=de,ne;case x:return De(de,(0,ne._init)(ne._payload),le)}if(V(ne)||b(ne))return(ne=uu(ne,de.mode,le,null)).return=de,ne;Mo(de,ne)}return null}function ce(de,ne,le,me){var Ke=ne!==null?ne.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return Ke!==null?null:K(de,ne,""+le,me);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case o:return le.key===Ke?ie(de,ne,le,me):null;case l:return le.key===Ke?ue(de,ne,le,me):null;case x:return ce(de,ne,(Ke=le._init)(le._payload),me)}
888if(V(le)||b(le))return Ke!==null?null:he(de,ne,le,me,null);Mo(de,le)}return null}function Se(de,ne,le,me,Ke){if(typeof me=="string"&&me!==""||typeof me=="number")return K(ne,de=de.get(le)||null,""+me,Ke);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case o:return ie(ne,de=de.get(me.key===null?le:me.key)||null,me,Ke);case l:return ue(ne,de=de.get(me.key===null?le:me.key)||null,me,Ke);case x:return Se(de,ne,le,(0,me._init)(me._payload),Ke)}if(V(me)||b(me))return he(ne,de=de.get(le)||null,me,Ke,null);Mo(ne,me)}return null}function je(de,ne,le,me){for(var Ke=null,Nt=null,Ve=ne,It=ne=0,hn=null;Ve!==null&&It<le.length;It++){Ve.index>It?(hn=Ve,Ve=null):hn=Ve.sibling;var Bt=ce(de,Ve,le[It],me);if(Bt===null){Ve===null&&(Ve=hn);break}p&&Ve&&Bt.alternate===null&&m(de,Ve),ne=M(Bt,ne,It),Nt===null?Ke=Bt:Nt.sibling=Bt,Nt=Bt,Ve=hn}if(It===le.length)return C(de,Ve),Zt&&La(de,It),Ke;if(Ve===null){for(;It<le.length;It++)(Ve=De(de,le[It],me))!==null&&(ne=M(Ve,ne,It),Nt===null?Ke=Ve:Nt.sibling=Ve,Nt=Ve);return Zt&&La(de,It),Ke}for(Ve=A(de,Ve);It<le.length;It++)(hn=Se(Ve,de,It,le[It],me))!==null&&(p&&hn.alternate!==null&&Ve.delete(hn.key===null?It:hn.key),ne=M(hn,ne,It),Nt===null?Ke=hn:Nt.sibling=hn,Nt=hn);return p&&Ve.forEach(function(Go){return m(de,Go)}),Zt&&La(de,It),Ke}function ft(de,ne,le,me){var Ke=b(le);if(typeof Ke!="function")throw Error(s(150));if((le=Ke.call(le))==null)throw Error(s(151));for(var Nt=Ke=null,Ve=ne,It=ne=0,hn=null,Bt=le.next();Ve!==null&&!Bt.done;It++,Bt=le.next()){Ve.index>It?(hn=Ve,Ve=null):hn=Ve.sibling;var Go=ce(de,Ve,Bt.value,me);if(Go===null){Ve===null&&(Ve=hn);break}p&&Ve&&Go.alternate===null&&m(de,Ve),ne=M(Go,ne,It),Nt===null?Ke=Go:Nt.sibling=Go,Nt=Go,Ve=hn}if(Bt.done)return C(de,Ve),Zt&&La(de,It),Ke;if(Ve===null){for(;!Bt.done;It++,Bt=le.next())(Bt=De(de,Bt.value,me))!==null&&(ne=M(Bt,ne,It),Nt===null?Ke=Bt:Nt.sibling=Bt,Nt=Bt);return Zt&&La(de,It),Ke}for(Ve=A(de,Ve);!Bt.done;It++,Bt=le.next())(Bt=Se(Ve,de,It,Bt.value,me))!==null&&(p&&Bt.alternate!==null&&Ve.delete(Bt.key===null?It:Bt.key),ne=M(Bt,ne,It),Nt===null?Ke=Bt:Nt.sibling=Bt,Nt=Bt);return p&&Ve.forEach(function(YD){return m(de,YD)}),Zt&&La(de,It),Ke}return function de(ne,le,me,Ke){if(typeof me=="object"&&me!==null&&me.type===u&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case o:e:{for(var Nt=me.key,Ve=le;Ve!==null;){if(Ve.key===Nt){if((Nt=me.type)===u){if(Ve.tag===7){C(ne,Ve.sibling),(le=T(Ve,me.props.children)).return=ne,ne=le;break e}}else if(Ve.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===x&&t1(Nt)===Ve.type){C(ne,Ve.sibling),(le=T(Ve,me.props)).ref=Lt(ne,Ve,me),le.return=ne,ne=le;break e}C(ne,Ve);break}m(ne,Ve),Ve=Ve.sibling}me.type===u?((le=uu(me.props.children,ne.mode,Ke,me.key)).return=ne,ne=le):((Ke=C2(me.type,me.key,me.props,null,ne.mode,Ke)).ref=Lt(ne,le,me),Ke.return=ne,ne=Ke)}return z(ne);case l:e:{for(Ve=me.key;le!==null;){if(le.key===Ve){if(le.tag===4&&le.stateNode.containerInfo===me.containerInfo&&le.stateNode.implementation===me.implementation){C(ne,le.sibling),(le=T(le,me.children||[])).return=ne,ne=le;break e}C(ne,le);break}m(ne,le),le=le.sibling}(le=jm(me,ne.mode,Ke)).return=ne,ne=le}return z(ne);case x:return de(ne,le,(Ve=me._init)(me._payload),Ke)}if(V(me))return je(ne,le,me,Ke);if(b(me))return ft(ne,le,me,Ke);Mo(ne,me)}return typeof me=="string"&&me!==""||typeof me=="number"?(me=""+me,le!==null&&le.tag===6?(C(ne,le.sibling),(le=T(le,me)).return=ne,ne=le):(C(ne,le),(le=zm(me,ne.mode,Ke)).return=ne,ne=le),z(ne)):C(ne,le)}}var cr=Qi(!0),r1=Qi(!1),Ro={},Bn=xi(Ro),Fo=xi(Ro),Ba=xi(Ro);function Ai(p){if(p===Ro)throw Error(s(174));return p}function n1(p,m){Ut(Ba,m),Ut(Fo,p),Ut(Bn,Ro),p=Z(m),Ft(Bn),Ut(Bn,p)}function Lo(){Ft(Bn),Ft(Fo),Ft(Ba)}function e2(p){var m=Ai(Ba.current),C=Ai(Bn.current);C!==(m=j(C,p.type,m))&&(Ut(Fo,p),Ut(Bn,m))}function i1(p){Fo.current===p&&(Ft(Bn),Ft(Fo))}var ar=xi(0);function Rc(p){for(var m=p;m!==null;){if(m.tag===13){var C=m.memoizedState;if(C!==null&&((C=C.dehydrated)===null||_i(C)||Qn(C)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(128&m.flags)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var s1=[];function a1(){for(var p=0;p<s1.length;p++){var m=s1[p];We?m._workInProgressVersionPrimary=null:m._workInProgressVersionSecondary=null}s1.length=0}var Fc=a.ReactCurrentDispatcher,o1=a.ReactCurrentBatchConfig,Ua=0,tr=null,Fr=null,Lr=null,Lc=!1,Zs=!1,Oo=0,k=0;function H(){throw Error(s(321))}function L(p,m){if(m===null)return!1;for(var C=0;C<m.length&&C<p.length;C++)if(!wi(p[C],m[C]))return!1;return!0}function $(p,m,C,A,T,M){if(Ua=M,tr=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Fc.current=p===null||p.memoizedState===null?DD:HD,p=C(A,T),Zs){M=0;
vendor: 4,826 bytes, line 888
888do{if(Zs=!1,Oo=0,25<=M)throw Error(s(301));M+=1,Lr=Fr=null,m.updateQueue=null,Fc.current=kD,p=C(A,T)}while(Zs)}if(Fc.current=t2,m=Fr!==null&&Fr.next!==null,Ua=0,Lr=Fr=tr=null,Lc=!1,m)throw Error(s(300));return p}function Q(){var p=Oo!==0;return Oo=0,p}function re(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lr===null?tr.memoizedState=Lr=p:Lr=Lr.next=p,Lr}function ae(){if(Fr===null){var p=tr.alternate;p=p!==null?p.memoizedState:null}else p=Fr.next;var m=Lr===null?tr.memoizedState:Lr.next;if(m!==null)Lr=m,Fr=p;else{if(p===null)throw Error(s(310));p={memoizedState:(Fr=p).memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},Lr===null?tr.memoizedState=Lr=p:Lr=Lr.next=p}return Lr}function se(p,m){return typeof m=="function"?m(p):m}function fe(p){var m=ae(),C=m.queue;if(C===null)throw Error(s(311));C.lastRenderedReducer=p;var A=Fr,T=A.baseQueue,M=C.pending;if(M!==null){if(T!==null){var z=T.next;T.next=M.next,M.next=z}A.baseQueue=T=M,C.pending=null}if(T!==null){M=T.next,A=A.baseState;var K=z=null,ie=null,ue=M;do{var he=ue.lane;if((Ua&he)===he)ie!==null&&(ie=ie.next={lane:0,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null}),A=ue.hasEagerState?ue.eagerState:p(A,ue.action);else{var De={lane:he,action:ue.action,hasEagerState:ue.hasEagerState,eagerState:ue.eagerState,next:null};ie===null?(K=ie=De,z=A):ie=ie.next=De,tr.lanes|=he,au|=he}ue=ue.next}while(ue!==null&&ue!==M);ie===null?z=A:ie.next=K,wi(A,m.memoizedState)||(ni=!0),m.memoizedState=A,m.baseState=z,m.baseQueue=ie,C.lastRenderedState=A}if((p=C.interleaved)!==null){T=p;do M=T.lane,tr.lanes|=M,au|=M,T=T.next;while(T!==p)}else T===null&&(C.lanes=0);return[m.memoizedState,C.dispatch]}function Ae(p){var m=ae(),C=m.queue;if(C===null)throw Error(s(311));C.lastRenderedReducer=p;var A=C.dispatch,T=C.pending,M=m.memoizedState;if(T!==null){C.pending=null;var z=T=T.next;do M=p(M,z.action),z=z.next;while(z!==T);wi(M,m.memoizedState)||(ni=!0),m.memoizedState=M,m.baseQueue===null&&(m.baseState=M),C.lastRenderedState=M}return[M,A]}function Ie(){}function ct(p,m){var C=tr,A=ae(),T=m(),M=!wi(A.memoizedState,T);if(M&&(A.memoizedState=T,ni=!0),A=A.queue,No(hr.bind(null,C,A,p),[p]),A.getSnapshot!==m||M||Lr!==null&&1&Lr.memoizedState.tag){if(C.flags|=2048,pe(9,Pt.bind(null,C,A,T,m),void 0,null),Kr===null)throw Error(s(349));30&Ua||at(C,m,T)}return T}function at(p,m,C){p.flags|=16384,p={getSnapshot:m,value:C},(m=tr.updateQueue)===null?(m={lastEffect:null,stores:null},tr.updateQueue=m,m.stores=[p]):(C=m.stores)===null?m.stores=[p]:C.push(p)}function Pt(p,m,C,A){m.value=C,m.getSnapshot=A,bn(m)&&$r(p)}function hr(p,m,C){return C(function(){bn(m)&&$r(p)})}function bn(p){var m=p.getSnapshot;p=p.value;try{var C=m();return!wi(p,C)}catch{return!0}}function $r(p){var m=qi(p,1);m!==null&&Ji(m,p,1,-1)}function Ar(p){var m=re();return typeof p=="function"&&(p=p()),m.memoizedState=m.baseState=p,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:se,lastRenderedState:p},m.queue=p,p=p.dispatch=PD.bind(null,tr,p),[m.memoizedState,p]}function pe(p,m,C,A){return p={tag:p,create:m,destroy:C,deps:A,next:null},(m=tr.updateQueue)===null?(m={lastEffect:null,stores:null},tr.updateQueue=m,m.lastEffect=p.next=p):(C=m.lastEffect)===null?m.lastEffect=p.next=p:(A=C.next,C.next=p,p.next=A,m.lastEffect=p),p}function Qe(){return ae().memoizedState}function Ot(p,m,C,A){var T=re();tr.flags|=p,T.memoizedState=pe(1|m,C,void 0,A===void 0?null:A)}function jt(p,m,C,A){var T=ae();A=A===void 0?null:A;var M=void 0;if(Fr!==null){var z=Fr.memoizedState;if(M=z.destroy,A!==null&&L(A,z.deps))return void(T.memoizedState=pe(m,C,M,A))}tr.flags|=p,T.memoizedState=pe(1|m,C,M,A)}function Ki(p,m){return Ot(8390656,8,p,m)}function No(p,m){return jt(2048,8,p,m)}function Oc(p,m){return jt(4,2,p,m)}function l1(p,m){return jt(4,4,p,m)}function sx(p,m){return typeof m=="function"?(p=p(),m(p),function(){m(null)}):m!=null?(p=p(),m.current=p,function(){m.current=null}):void 0}function ax(p,m,C){return C=C!=null?C.concat([p]):null,jt(4,4,sx.bind(null,m,p),C)}function pm(){}function ox(p,m){var C=ae();m=m===void 0?null:m;var A=C.memoizedState;return A!==null&&m!==null&&L(m,A[1])?A[0]:(C.memoizedState=[p,m],p)}function lx(p,m){var C=ae();m=m===void 0?null:m;var A=C.memoizedState;return A!==null&&m!==null&&L(m,A[1])?A[0]:(p=p(),C.memoizedState=[p,m],p)}function ux(p,m,C){return 21&Ua?(wi(C,m)||(C=O0(),tr.lanes|=C,au|=C,p.baseState=!0),m):(p.baseState&&(p.baseState=!1,ni=!0),p.memoizedState=C)}function TD(p,m){var C=Tt;Tt=C!==0&&4>C?C:4,p(!0);var A=o1.transition;o1.transition={};try{p(!1),m()}finally{Tt=C,o1.transition=A}}function cx(){return ae().memoizedState}function ED(p,m,C){var A=zo(p);C={lane:A,action:C,hasEagerState:!1,eagerState:null,next:null}
888,hx(p)?dx(m,C):(C=Zf(p,m,C,A))!==null&&(Ji(C,p,A,An()),fx(C,m,A))}function PD(p,m,C){var A=zo(p),T={lane:A,action:C,hasEagerState:!1,eagerState:null,next:null};if(hx(p))dx(m,T);else{var M=p.alternate;if(p.lanes===0&&(M===null||M.lanes===0)&&(M=m.lastRenderedReducer)!==null)try{var z=m.lastRenderedState,K=M(z,C);if(T.hasEagerState=!0,T.eagerState=K,wi(K,z)){var ie=m.interleaved;return ie===null?(T.next=T,Z0(m)):(T.next=ie.next,ie.next=T),void(m.interleaved=T)}}catch{}(C=Zf(p,m,T,A))!==null&&(Ji(C,p,A,T=An()),fx(C,m,A))}}function hx(p){var m=p.alternate;return p===tr||m!==null&&m===tr}function dx(p,m){Zs=Lc=!0;var C=p.pending;C===null?m.next=m:(m.next=C.next,C.next=m),p.pending=m}function fx(p,m,C){if(4194240&C){var A=m.lanes;C|=A&=p.pendingLanes,m.lanes=C,eu(p,C)}}var t2={readContext:ri,useCallback:H,useContext:H,useEffect:H,useImperativeHandle:H,useInsertionEffect:H,useLayoutEffect:H,useMemo:H,useReducer:H,useRef:H,useState:H,useDebugValue:H,useDeferredValue:H,useTransition:H,useMutableSource:H,useSyncExternalStore:H,useId:H,unstable_isNewReconciler:!1},DD={readContext:ri,useCallback:function(p,m){return re().memoizedState=[p,m===void 0?null:m],p},useContext:ri,useEffect:Ki,useImperativeHandle:function(p,m,C){return C=C!=null?C.concat([p]):null,Ot(4194308,4,sx.bind(null,m,p),C)},useLayoutEffect:function(p,m){return Ot(4194308,4,p,m)},useInsertionEffect:function(p,m){return Ot(4,2,p,m)},useMemo:function(p,m){var C=re();return m=m===void 0?null:m,p=p(),C.memoizedState=[p,m],p},useReducer:function(p,m,C){var A=re();return m=C!==void 0?C(m):m,A.memoizedState=A.baseState=m,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:m},A.queue=p,p=p.dispatch=ED.bind(null,tr,p),[A.memoizedState,p]},useRef:function(p){return p={current:p},re().memoizedState=p},useState:Ar,useDebugValue:pm,useDeferredValue:function(p){return re().memoizedState=p},useTransition:function(){var p=Ar(!1),m=p[0];return p=TD.bind(null,p[1]),re().memoizedState=p,[m,p]},useMutableSource:function(){},useSyncExternalStore:function(p,m,C){var A=tr,T=re();if(Zt){if(C===void 0)throw Error(s(407));C=C()}else{if(C=m(),Kr===null)throw Error(s(349));30&Ua||at(A,m,C)}T.memoizedState=C;var M={value:C,getSnapshot:m};return T.queue=M,Ki(hr.bind(null,A,M,p),[p]),A.flags|=2048,pe(9,Pt.bind(null,A,M,C,m),void 0,null),C},useId:function(){var p=re(),m=Kr.identifierPrefix;if(Zt){var C=Zi;m=":"+m+"R"+(C=(Yi&~(1<<32-Kn(Yi)-1)).toString(32)+C),0<(C=Oo++)&&(m+="H"+C.toString(32)),m+=":"}else m=":"+m+"r"+(C=k++).toString(32)+":";return p.memoizedState=m},unstable_isNewReconciler:!1},HD={readContext:ri,useCallback:ox,useContext:ri,useEffect:No,useImperativeHandle:ax,useInsertionEffect:Oc,useLayoutEffect:l1,useMemo:lx,useReducer:fe,useRef:Qe,useState:function(){return fe(se)},useDebugValue:pm,useDeferredValue:function(p){return ux(ae(),Fr.memoizedState,p)},useTransition:function(){return[fe(se)[0],ae().memoizedState]},useMutableSource:Ie,useSyncExternalStore:ct,useId:cx,unstable_isNewReconciler:!1},kD={readContext:ri,useCallback:ox,useContext:ri,useEffect:No,useImperativeHandle:ax,useInsertionEffect:Oc,useLayoutEffect:l1,useMemo:lx,useReducer:Ae,useRef:Qe,useState:function(){return Ae(se)},useDebugValue:pm,useDeferredValue:function(p){var m=ae();return Fr===null?m.memoizedState=p:ux(m,Fr.memoizedState,p)},useTransition:function(){return[Ae(se)[0],ae().memoizedState]},useMutableSource:Ie,useSyncExternalStore:ct,useId:cx,unstable_isNewReconciler:!1};function Nc(p,m){try{var C="",A=m;do C+=fm(A),A=A.return;while(A);var T=C}catch(M){T=`
889Error generating stack: `+M.message+`
890`+M.stack}return{value:p,source:m,stack:T,digest:null}}function mm(p,m,C){return{value:p,source:null,stack:C??null,digest:m??null}}function gm(p,m){try{console.error(m.value)}catch(C){setTimeout(function(){throw C})}}var ID=typeof WeakMap=="function"?WeakMap:Map;function px(p,m,C){(C=ws(-1,C)).tag=3,C.payload={element:null};var A=m.value;return C.callback=function(){m2||(m2=!0,Fm=A),gm(0,m)},C}function mx(p,m,C){(C=ws(-1,C)).tag=3;var A=p.type.getDerivedStateFromError;if(typeof A=="function"){var T=m.value;C.payload=function(){return A(T)},C.callback=function(){gm(0,m)}}var M=p.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(C.callback=function(){gm(0,m),typeof A!="function"&&(Uo===null?Uo=new Set([this]):Uo.add(this));var z=m.stack;this.componentDidCatch(m.value,{componentStack:z!==null?z:""})}),C}function gx(p,m,C){var A=p.pingCache;if(A===null){A=p.pingCache=new ID;var T=new Set;A.set(m,T)}else(T=A.get(m))===void 0&&(T=new Set,A.set(m,T));T.has(C)||(T.add(C),p=$D.bind(null,p,m,C),m.then(p,p))}function yx(p){do{var m;if((m=p.tag===13)&&(m=(m=p.memoizedState)===null||m.dehydrated!==null),m)return p;p=p.return}while(p!==null);return null}function vx(p,m,C,A,T){return 1&p.mode?(p.flags|=65536,p.lanes=T,p):(p===m?p.flags|=65536:(p.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:((m=ws(-1,1)).tag=2,bs(C,m,1))),C.lanes|=1),p)}var MD=a.ReactCurrentOwner,ni=!1;function ii(p,m,C,A){m.child=p===null?r1(m,null,C,A):cr(m,p.child,C,A)}function _x(p,m,C,A,T){C=C.render;var M=m.ref;return Io(m,T),A=$(p,m,C,A,M,T),C=Q(),p===null||ni?(Zt&&C&&z0(m),m.flags|=1,ii(p,m,A,T),m.child):(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~T,$a(p,m,T))}function xx(p,m,C,A,T){if(p===null){var M=C.type;return typeof M!="function"||$m(M)||M.defaultProps!==void 0||C.compare!==null||C.defaultProps!==void 0?((p=C2(C.type,null,A,m,m.mode,T)).ref=m.ref,p.return=m,m.child=p):(m.tag=15,m.type=M,Cx(p,m,M,A,T))}if(M=p.child,(p.lanes&T)==0){var z=M.memoizedProps;if((C=(C=C.compare)!==null?C:Pc)(z,A)&&p.ref===m.ref)return $a(p,m,T)}return m.flags|=1,(p=Vo(M,A)).ref=m.ref,p.return=m,m.child=p}function Cx(p,m,C,A,T){if(p!==null){var M=p.memoizedProps;if(Pc(M,A)&&p.ref===m.ref){if(ni=!1,m.pendingProps=A=M,(p.lanes&T)==0)return m.lanes=p.lanes,$a(p,m,T);131072&p.flags&&(ni=!0)}}return ym(p,m,C,A,T)}function wx(p,m,C){var A=m.pendingProps,T=A.children,M=p!==null?p.memoizedState:null;if(A.mode==="hidden")if(!(1&m.mode))m.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(Uc,Ti),Ti|=C;else{if(!(1073741824&C))return p=M!==null?M.baseLanes|C:C,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:p,cachePool:null,transitions:null},m.updateQueue=null,Ut(Uc,Ti),Ti|=p,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},A=M!==null?M.baseLanes:C,Ut(Uc,Ti),Ti|=A}else M!==null?(A=M.baseLanes|C,m.memoizedState=null):A=C,Ut(Uc,Ti),Ti|=A;return ii(p,m,T,C),m.child}function bx(p,m){var C=m.ref;(p===null&&C!==null||p!==null&&p.ref!==C)&&(m.flags|=512,m.flags|=2097152)}
890function ym(p,m,C,A,T){var M=un(C)?Ma:Qr.current;return M=So(m,M),Io(m,T),C=$(p,m,C,A,M,T),A=Q(),p===null||ni?(Zt&&A&&z0(m),m.flags|=1,ii(p,m,C,T),m.child):(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~T,$a(p,m,T))}function Sx(p,m,C,A,T){if(un(C)){var M=!0;xc(m)}else M=!1;if(Io(m,T),m.stateNode===null)s2(p,m),Kf(m,C,A),e1(m,C,A,T),A=!0;else if(p===null){var z=m.stateNode,K=m.memoizedProps;z.props=K;var ie=z.context,ue=C.contextType;typeof ue=="object"&&ue!==null?ue=ri(ue):ue=So(m,ue=un(C)?Ma:Qr.current);var he=C.getDerivedStateFromProps,De=typeof he=="function"||typeof z.getSnapshotBeforeUpdate=="function";De||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(K!==A||ie!==ue)&&Jf(m,z,A,ue),Ys=!1;var ce=m.memoizedState;z.state=ce,Ic(m,A,z,T),ie=m.memoizedState,K!==A||ce!==ie||wn.current||Ys?(typeof he=="function"&&(J0(m,C,he,A),ie=m.memoizedState),(K=Ys||Qf(m,C,K,A,ce,ie,ue))?(De||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount=="function"&&(m.flags|=4194308)):(typeof z.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=A,m.memoizedState=ie),z.props=A,z.state=ie,z.context=ue,A=K):(typeof z.componentDidMount=="function"&&(m.flags|=4194308),A=!1)}else{z=m.stateNode,qf(p,m),K=m.memoizedProps,ue=m.type===m.elementType?K:Si(m.type,K),z.props=ue,De=m.pendingProps,ce=z.context,typeof(ie=C.contextType)=="object"&&ie!==null?ie=ri(ie):ie=So(m,ie=un(C)?Ma:Qr.current);var Se=C.getDerivedStateFromProps;(he=typeof Se=="function"||typeof z.getSnapshotBeforeUpdate=="function")||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(K!==De||ce!==ie)&&Jf(m,z,A,ie),Ys=!1,ce=m.memoizedState,z.state=ce,Ic(m,A,z,T);var je=m.memoizedState;K!==De||ce!==je||wn.current||Ys?(typeof Se=="function"&&(J0(m,C,Se,A),je=m.memoizedState),(ue=Ys||Qf(m,C,ue,A,ce,je,ie)||!1)?(he||typeof z.UNSAFE_componentWillUpdate!="function"&&typeof z.componentWillUpdate!="function"||(typeof z.componentWillUpdate=="function"&&z.componentWillUpdate(A,je,ie),typeof z.UNSAFE_componentWillUpdate=="function"&&z.UNSAFE_componentWillUpdate(A,je,ie)),typeof z.componentDidUpdate=="function"&&(m.flags|=4),typeof z.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof z.componentDidUpdate!="function"||K===p.memoizedProps&&ce===p.memoizedState||(m.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&ce===p.memoizedState||(m.flags|=1024),m.memoizedProps=A,m.memoizedState=je),z.props=A,z.state=je,z.context=ie,A=ue):(typeof z.componentDidUpdate!="function"||K===p.memoizedProps&&ce===p.memoizedState||(m.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&ce===p.memoizedState||(m.flags|=1024),A=!1)}return vm(p,m,C,A,M,T)}function vm(p,m,C,A,T,M){bx(p,m);var z=(128&m.flags)!=0;if(!A&&!z)return T&&Ao(m,C,!1),$a(p,m,M);A=m.stateNode,MD.current=m;var K=z&&typeof C.getDerivedStateFromError!="function"?null:A.render();return m.flags|=1,p!==null&&z?(m.child=cr(m,p.child,null,M),m.child=cr(m,null,K,M)):ii(p,m,K,M),m.memoizedState=A.state,T&&Ao(m,C,!0),m.child}function Ax(p){var m=p.stateNode;m.pendingContext?Uf(0,m.pendingContext,m.pendingContext!==m.context):m.context&&Uf(0,m.context,!1),n1(p,m.containerInfo)}function Tx(p,m,C,A,T){return Ho(),G0(T),m.flags|=256,ii(p,m,C,A),m.child}var u1,c1,r2,n2,_m={dehydrated:null,treeContext:null,retryLane:0};function xm(p){return{baseLanes:p,cachePool:null,transitions:null}}function Ex(p,m,C){var A,T=m.pendingProps,M=ar.current,z=!1,K=(128&m.flags)!=0;if((A=K)||(A=(p===null||p.memoizedState!==null)&&(2&M)!=0),A?(z=!0,m.flags&=-129):p!==null&&p.memoizedState===null||(M|=1),Ut(ar,1&M),p===null)return nu(m),(p=m.memoizedState)!==null&&(p=p.dehydrated)!==null?(1&m.mode?Qn(p)?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(K=T.children,p=T.fallback,z?(T=m.mode,z=m.child,K={mode:"hidden",children:K},!(1&T)&&z!==null?(z.childLanes=0,z.pendingProps=K):z=w2(K,T,0,null),p=uu(p,T,C,null),z.return=m,p.return=m,z.sibling=p,m.child=z,m.child.memoizedState=xm(C),m.memoizedState=_m,p):Cm(m,K));if((M=p.memoizedState)!==null&&(A=M.dehydrated)!==null)return function(ue,he,De,ce,Se,je,ft){if(De)return 256&he.flags?(he.flags&=-257,i2(ue,he,ft,ce=mm(Error(s(422))))):he.memoizedState!==null?(he.child=ue.child,he.flags|=128,null):(je=ce.fallback,Se=he.mode,ce=w2({mode:"visible",children:ce.children},Se,0,null),(je=uu(je,Se,ft,null)).flags|=2,ce.return=he,je.return=he,ce.sibling=je,he.child=ce,1&he.mode&&cr(he,ue.child,null,ft),he.child.memoizedState=xm(ft),he.memoizedState=_m,je);
890if(!(1&he.mode))return i2(ue,he,ft,null);if(Qn(Se))return ce=em(Se).digest,je=Error(s(419)),ce=mm(je,ce,void 0),i2(ue,he,ft,ce);if(De=(ft&ue.childLanes)!=0,ni||De){if((ce=Kr)!==null){switch(ft&-ft){case 4:Se=2;break;case 16:Se=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Se=32;break;case 536870912:Se=268435456;break;default:Se=0}(Se=Se&(ce.suspendedLanes|ft)?0:Se)!==0&&Se!==je.retryLane&&(je.retryLane=Se,qi(ue,Se),Ji(ce,ue,Se,-1))}return Um(),i2(ue,he,ft,ce=mm(Error(s(421))))}return _i(Se)?(he.flags|=128,he.child=ue.child,he=zD.bind(null,ue),tm(Se,he),null):(ue=je.treeContext,Pe&&(ti=rm(Se),Nn=he,Zt=!0,bi=null,ru=!1,ue!==null&&(Jn[ei++]=Yi,Jn[ei++]=Zi,Jn[ei++]=Fa,Yi=ue.id,Zi=ue.overflow,Fa=he)),he=Cm(he,ce.children),he.flags|=4096,he)}(p,m,K,T,A,M,C);if(z){z=T.fallback,K=m.mode,A=(M=p.child).sibling;var ie={mode:"hidden",children:T.children};return!(1&K)&&m.child!==M?((T=m.child).childLanes=0,T.pendingProps=ie,m.deletions=null):(T=Vo(M,ie)).subtreeFlags=14680064&M.subtreeFlags,A!==null?z=Vo(A,z):(z=uu(z,K,C,null)).flags|=2,z.return=m,T.return=m,T.sibling=z,m.child=T,T=z,z=m.child,K=(K=p.child.memoizedState)===null?xm(C):{baseLanes:K.baseLanes|C,cachePool:null,transitions:K.transitions},z.memoizedState=K,z.childLanes=p.childLanes&~C,m.memoizedState=_m,T}return p=(z=p.child).sibling,T=Vo(z,{mode:"visible",children:T.children}),!(1&m.mode)&&(T.lanes=C),T.return=m,T.sibling=null,p!==null&&((C=m.deletions)===null?(m.deletions=[p],m.flags|=16):C.push(p)),m.child=T,m.memoizedState=null,T}function Cm(p,m){return(m=w2({mode:"visible",children:m},p.mode,0,null)).return=p,p.child=m}function i2(p,m,C,A){return A!==null&&G0(A),cr(m,p.child,null,C),(p=Cm(m,m.pendingProps.children)).flags|=2,m.memoizedState=null,p}function Px(p,m,C){p.lanes|=m;var A=p.alternate;A!==null&&(A.lanes|=m),Oa(p.return,m,C)}function wm(p,m,C,A,T){var M=p.memoizedState;M===null?p.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:A,tail:C,tailMode:T}:(M.isBackwards=m,M.rendering=null,M.renderingStartTime=0,M.last=A,M.tail=C,M.tailMode=T)}function Dx(p,m,C){var A=m.pendingProps,T=A.revealOrder,M=A.tail;if(ii(p,m,A.children,C),(2&(A=ar.current))!=0)A=1&A|2,m.flags|=128;else{if(p!==null&&128&p.flags)e:for(p=m.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&Px(p,C,m);else if(p.tag===19)Px(p,C,m);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break e;for(;p.sibling===null;){if(p.return===null||p.return===m)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}A&=1}if(Ut(ar,A),(1&m.mode)==0)m.memoizedState=null;else switch(T){case"forwards":for(C=m.child,T=null;C!==null;)(p=C.alternate)!==null&&Rc(p)===null&&(T=C),C=C.sibling;(C=T)===null?(T=m.child,m.child=null):(T=C.sibling,C.sibling=null),wm(m,!1,T,C,M);break;case"backwards":for(C=null,T=m.child,m.child=null;T!==null;){if((p=T.alternate)!==null&&Rc(p)===null){m.child=T;break}p=T.sibling,T.sibling=C,C=T,T=p}wm(m,!0,C,null,M);break;case"together":wm(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function s2(p,m){!(1&m.mode)&&p!==null&&(p.alternate=null,m.alternate=null,m.flags|=2)}function $a(p,m,C){if(p!==null&&(m.dependencies=p.dependencies),au|=m.lanes,(C&m.childLanes)==0)return null;if(p!==null&&m.child!==p.child)throw Error(s(153));if(m.child!==null){for(C=Vo(p=m.child,p.pendingProps),m.child=C,C.return=m;p.sibling!==null;)p=p.sibling,(C=C.sibling=Vo(p,p.pendingProps)).return=m;C.sibling=null}return m.child}function qs(p){p.flags|=4}function Hx(p,m){if(p!==null&&p.child===m.child)return!0;if(16&m.flags)return!1;for(p=m.child;p!==null;){if(12854&p.flags||12854&p.subtreeFlags)return!1;p=p.sibling}return!0}if(Ze)u1=function(p,m){for(var C=m.child;C!==null;){if(C.tag===5||C.tag===6)ee(p,C.stateNode);else if(C.tag!==4&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===m)break;for(;C.sibling===null;){if(C.return===null||C.return===m)return;C=C.return}C.sibling.return=C.return,C=C.sibling}},c1=function(){}
890,r2=function(p,m,C,A,T){if((p=p.memoizedProps)!==A){var M=m.stateNode,z=Ai(Bn.current);C=_e(M,C,p,A,T,z),(m.updateQueue=C)&&qs(m)}},n2=function(p,m,C,A){C!==A&&qs(m)};else if(st){u1=function(p,m,C,A){for(var T=m.child;T!==null;){if(T.tag===5){var M=T.stateNode;C&&A&&(M=k0(M,T.type,T.memoizedProps,T)),ee(p,M)}else if(T.tag===6)M=T.stateNode,C&&A&&(M=Ir(M,T.memoizedProps,T)),ee(p,M);else if(T.tag!==4){if(T.tag===22&&T.memoizedState!==null)(M=T.child)!==null&&(M.return=T),u1(p,T,!0,!0);else if(T.child!==null){T.child.return=T,T=T.child;continue}}if(T===m)break;for(;T.sibling===null;){if(T.return===null||T.return===m)return;T=T.return}T.sibling.return=T.return,T=T.sibling}};var kx=function(p,m,C,A){for(var T=m.child;T!==null;){if(T.tag===5){var M=T.stateNode;C&&A&&(M=k0(M,T.type,T.memoizedProps,T)),Ff(p,M)}else if(T.tag===6)M=T.stateNode,C&&A&&(M=Ir(M,T.memoizedProps,T)),Ff(p,M);else if(T.tag!==4){if(T.tag===22&&T.memoizedState!==null)(M=T.child)!==null&&(M.return=T),kx(p,T,!0,!0);else if(T.child!==null){T.child.return=T,T=T.child;continue}}if(T===m)break;for(;T.sibling===null;){if(T.return===null||T.return===m)return;T=T.return}T.sibling.return=T.return,T=T.sibling}};c1=function(p,m){var C=m.stateNode;if(!Hx(p,m)){p=C.containerInfo;var A=xs(p);kx(A,m,!1,!1),C.pendingChildren=A,qs(m),K4(p,A)}},r2=function(p,m,C,A,T){var M=p.stateNode,z=p.memoizedProps;if((p=Hx(p,m))&&z===A)m.stateNode=M;else{var K=m.stateNode,ie=Ai(Bn.current),ue=null;z!==A&&(ue=_e(K,C,z,A,T,ie)),p&&ue===null?m.stateNode=M:(M=_c(M,ue,C,z,A,m,p,K),ve(M,C,A,T,ie)&&qs(m),m.stateNode=M,p?qs(m):u1(M,m,!1,!1))}},n2=function(p,m,C,A){C!==A?(p=Ai(Ba.current),C=Ai(Bn.current),m.stateNode=Te(A,p,C,m),qs(m)):m.stateNode=p.stateNode}}else c1=function(){},r2=function(){},n2=function(){};function h1(p,m){if(!Zt)switch(p.tailMode){case"hidden":m=p.tail;for(var C=null;m!==null;)m.alternate!==null&&(C=m),m=m.sibling;C===null?p.tail=null:C.sibling=null;break;case"collapsed":C=p.tail;for(var A=null;C!==null;)C.alternate!==null&&(A=C),C=C.sibling;A===null?m||p.tail===null?p.tail=null:p.tail.sibling=null:A.sibling=null}}function Un(p){var m=p.alternate!==null&&p.alternate.child===p.child,C=0,A=0;if(m)for(var T=p.child;T!==null;)C|=T.lanes|T.childLanes,A|=14680064&T.subtreeFlags,A|=14680064&T.flags,T.return=p,T=T.sibling;else for(T=p.child;T!==null;)C|=T.lanes|T.childLanes,A|=T.subtreeFlags,A|=T.flags,T.return=p,T=T.sibling;return p.subtreeFlags|=A,p.childLanes=C,m}function RD(p,m,C){var A=m.pendingProps;switch(j0(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Un(m),null;case 1:case 17:return un(m.type)&&F0(),Un(m),null;case 3:return C=m.stateNode,Lo(),Ft(wn),Ft(Qr),a1(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),p!==null&&p.child!==null||(Ec(m)?qs(m):p===null||p.memoizedState.isDehydrated&&!(256&m.flags)||(m.flags|=1024,bi!==null&&(Nm(bi),bi=null))),c1(p,m),Un(m),null;case 5:i1(m),C=Ai(Ba.current);var T=m.type;if(p!==null&&m.stateNode!=null)r2(p,m,T,A,C),p.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!A){if(m.stateNode===null)throw Error(s(166));return Un(m),null}if(p=Ai(Bn.current),Ec(m)){if(!Pe)throw Error(s(175));p=Of(m.stateNode,m.type,m.memoizedProps,C,p,m,!ru),m.updateQueue=p,p!==null&&qs(m)}else{var M=J(T,A,C,p,m);u1(M,m,!1,!1),m.stateNode=M,ve(M,T,A,C,p)&&qs(m)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return Un(m),null;case 6:if(p&&m.stateNode!=null)n2(p,m,p.memoizedProps,A);else{if(typeof A!="string"&&m.stateNode===null)throw Error(s(166));if(p=Ai(Ba.current),C=Ai(Bn.current),Ec(m)){if(!Pe)throw Error(s(176));if(p=m.stateNode,C=m.memoizedProps,(A=Nf(p,C,m,!ru))&&(T=Nn)!==null)switch(T.tag){case 3:am(T.stateNode.containerInfo,p,C,(1&T.mode)!=0);break;case 5:ql(T.type,T.memoizedProps,T.stateNode,p,C,(1&T.mode)!=0)}A&&qs(m)}else m.stateNode=Te(A,p,C,m)}return Un(m),null;case 13:if(Ft(ar),A=m.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(Zt&&ti!==null&&1&m.mode&&!(128&m.flags))Yf(),Ho(),m.flags|=98560,T=!1;else if(T=Ec(m),A!==null&&A.dehydrated!==null){if(p===null){if(!T)throw Error(s(318));if(!Pe)throw Error(s(344));if(!(T=(T=m.memoizedState)!==null?T.dehydrated:null))throw Error(s(317));Bf(T,m)}else Ho(),!(128&m.flags)&&(m.memoizedState=null),m.flags|=4;Un(m),T=!1}else bi!==null&&(Nm(bi),bi=null),T=!0;if(!T)return 65536&m.flags?m:null}return 128&m.flags?(m.lanes=C,m):((C=A!==null)!=(p!==null&&p.memoizedState!==null)&&C&&(m.child.flags|=8192,1&m.mode&&(p===null||1&ar.current?zr===0&&(zr=3):Um())),m.updateQueue!==null&&(m.flags|=4),Un(m),null);case 4:return Lo(),c1(p,m),p===null&&ut(m.stateNode.containerInfo),Un(m),null;
890case 10:return Y0(m.type._context),Un(m),null;case 19:if(Ft(ar),(T=m.memoizedState)===null)return Un(m),null;if(A=(128&m.flags)!=0,(M=T.rendering)===null)if(A)h1(T,!1);else{if(zr!==0||p!==null&&128&p.flags)for(p=m.child;p!==null;){if((M=Rc(p))!==null){for(m.flags|=128,h1(T,!1),(p=M.updateQueue)!==null&&(m.updateQueue=p,m.flags|=4),m.subtreeFlags=0,p=C,C=m.child;C!==null;)T=p,(A=C).flags&=14680066,(M=A.alternate)===null?(A.childLanes=0,A.lanes=T,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=M.childLanes,A.lanes=M.lanes,A.child=M.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=M.memoizedProps,A.memoizedState=M.memoizedState,A.updateQueue=M.updateQueue,A.type=M.type,T=M.dependencies,A.dependencies=T===null?null:{lanes:T.lanes,firstContext:T.firstContext}),C=C.sibling;return Ut(ar,1&ar.current|2),m.child}p=p.sibling}T.tail!==null&&zt()>Rm&&(m.flags|=128,A=!0,h1(T,!1),m.lanes=4194304)}else{if(!A)if((p=Rc(M))!==null){if(m.flags|=128,A=!0,(p=p.updateQueue)!==null&&(m.updateQueue=p,m.flags|=4),h1(T,!0),T.tail===null&&T.tailMode==="hidden"&&!M.alternate&&!Zt)return Un(m),null}else 2*zt()-T.renderingStartTime>Rm&&C!==1073741824&&(m.flags|=128,A=!0,h1(T,!1),m.lanes=4194304);T.isBackwards?(M.sibling=m.child,m.child=M):((p=T.last)!==null?p.sibling=M:m.child=M,T.last=M)}return T.tail!==null?(m=T.tail,T.rendering=m,T.tail=m.sibling,T.renderingStartTime=zt(),m.sibling=null,p=ar.current,Ut(ar,A?1&p|2:1&p),m):(Un(m),null);case 22:case 23:return Bm(),C=m.memoizedState!==null,p!==null&&p.memoizedState!==null!==C&&(m.flags|=8192),C&&1&m.mode?1073741824&Ti&&(Un(m),Ze&&6&m.subtreeFlags&&(m.flags|=8192)):Un(m),null;case 24:case 25:return null}throw Error(s(156,m.tag))}function FD(p,m){switch(j0(m),m.tag){case 1:return un(m.type)&&F0(),65536&(p=m.flags)?(m.flags=-65537&p|128,m):null;case 3:return Lo(),Ft(wn),Ft(Qr),a1(),65536&(p=m.flags)&&!(128&p)?(m.flags=-65537&p|128,m):null;case 5:return i1(m),null;case 13:if(Ft(ar),(p=m.memoizedState)!==null&&p.dehydrated!==null){if(m.alternate===null)throw Error(s(340));Ho()}return 65536&(p=m.flags)?(m.flags=-65537&p|128,m):null;case 19:return Ft(ar),null;case 4:return Lo(),null;case 10:return Y0(m.type._context),null;case 22:case 23:return Bm(),null;default:return null}}var a2=!1,Sn=!1,LD=typeof WeakSet=="function"?WeakSet:Set,Be=null;function Bc(p,m){var C=p.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(A){or(p,m,A)}else C.current=null}function Ix(p,m,C){try{C()}catch(A){or(p,m,A)}}var Mx=!1;function d1(p,m,C){var A=m.updateQueue;if((A=A!==null?A.lastEffect:null)!==null){var T=A=A.next;do{if((T.tag&p)===p){var M=T.destroy;T.destroy=void 0,M!==void 0&&Ix(m,C,M)}T=T.next}while(T!==A)}}function o2(p,m){if((m=(m=m.updateQueue)!==null?m.lastEffect:null)!==null){var C=m=m.next;do{if((C.tag&p)===p){var A=C.create;C.destroy=A()}C=C.next}while(C!==m)}}function bm(p){var m=p.ref;if(m!==null){var C=p.stateNode;p.tag===5?p=q(C):p=C,typeof m=="function"?m(p):m.current=p}}function Rx(p){var m=p.alternate;m!==null&&(p.alternate=null,Rx(m)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(m=p.stateNode)!==null&&vt(m),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function Fx(p){return p.tag===5||p.tag===3||p.tag===4}function Lx(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||Fx(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(2&p.flags||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(2&p.flags))return p.stateNode}}function Sm(p,m,C){var A=p.tag;if(A===5||A===6)p=p.stateNode,m?er(C,p,m):vi(C,p);else if(A!==4&&(p=p.child)!==null)for(Sm(p,m,C),p=p.sibling;p!==null;)Sm(p,m,C),p=p.sibling}function Am(p,m,C){var A=p.tag;if(A===5||A===6)p=p.stateNode,m?Cn(C,p,m):ye(C,p);else if(A!==4&&(p=p.child)!==null)for(Am(p,m,C),p=p.sibling;p!==null;)Am(p,m,C),p=p.sibling}var $n=null,Qs=!1;function Ks(p,m,C){for(C=C.child;C!==null;)Tm(p,m,C),C=C.sibling}
890function Tm(p,m,C){if(Ci&&typeof Ci.onCommitFiberUnmount=="function")try{Ci.onCommitFiberUnmount(bc,C)}catch{}switch(C.tag){case 5:Sn||Bc(C,m);case 6:if(Ze){var A=$n,T=Qs;$n=null,Ks(p,m,C),Qs=T,($n=A)!==null&&(Qs?ln($n,C.stateNode):Ha($n,C.stateNode))}else Ks(p,m,C);break;case 18:Ze&&$n!==null&&(Qs?Zl($n,C.stateNode):M0($n,C.stateNode));break;case 4:Ze?(A=$n,T=Qs,$n=C.stateNode.containerInfo,Qs=!0,Ks(p,m,C),$n=A,Qs=T):(st&&(A=C.stateNode.containerInfo,T=xs(A),H0(A,T)),Ks(p,m,C));break;case 0:case 11:case 14:case 15:if(!Sn&&(A=C.updateQueue)!==null&&(A=A.lastEffect)!==null){T=A=A.next;do{var M=T,z=M.destroy;M=M.tag,z!==void 0&&(2&M||4&M)&&Ix(C,m,z),T=T.next}while(T!==A)}Ks(p,m,C);break;case 1:if(!Sn&&(Bc(C,m),typeof(A=C.stateNode).componentWillUnmount=="function"))try{A.props=C.memoizedProps,A.state=C.memoizedState,A.componentWillUnmount()}catch(K){or(C,m,K)}Ks(p,m,C);break;case 21:Ks(p,m,C);break;case 22:1&C.mode?(Sn=(A=Sn)||C.memoizedState!==null,Ks(p,m,C),Sn=A):Ks(p,m,C);break;default:Ks(p,m,C)}}function Ox(p){var m=p.updateQueue;if(m!==null){p.updateQueue=null;var C=p.stateNode;C===null&&(C=p.stateNode=new LD),m.forEach(function(A){var T=jD.bind(null,p,A);C.has(A)||(C.add(A),A.then(T,T))})}}function Ss(p,m){var C=m.deletions;if(C!==null)for(var A=0;A<C.length;A++){var T=C[A];try{var M=p,z=m;if(Ze){var K=z;e:for(;K!==null;){switch(K.tag){case 5:$n=K.stateNode,Qs=!1;break e;case 3:case 4:$n=K.stateNode.containerInfo,Qs=!0;break e}K=K.return}if($n===null)throw Error(s(160));Tm(M,z,T),$n=null,Qs=!1}else Tm(M,z,T);var ie=T.alternate;ie!==null&&(ie.return=null),T.return=null}catch(ue){or(T,m,ue)}}if(12854&m.subtreeFlags)for(m=m.child;m!==null;)Nx(m,p),m=m.sibling}function Nx(p,m){var C=p.alternate,A=p.flags;switch(p.tag){case 0:case 11:case 14:case 15:if(Ss(m,p),Js(p),4&A){try{d1(3,p,p.return),o2(3,p)}catch(ce){or(p,p.return,ce)}try{d1(5,p,p.return)}catch(ce){or(p,p.return,ce)}}break;case 1:Ss(m,p),Js(p),512&A&&C!==null&&Bc(C,C.return);break;case 5:if(Ss(m,p),Js(p),512&A&&C!==null&&Bc(C,C.return),Ze){if(32&p.flags){var T=p.stateNode;try{yc(T)}catch(ce){or(p,p.return,ce)}}if(4&A&&(T=p.stateNode)!=null){var M=p.memoizedProps;if(C=C!==null?C.memoizedProps:M,A=p.type,m=p.updateQueue,p.updateQueue=null,m!==null)try{vo(T,m,A,C,M,p)}catch(ce){or(p,p.return,ce)}}}break;case 6:if(Ss(m,p),Js(p),4&A&&Ze){if(p.stateNode===null)throw Error(s(162));T=p.stateNode,M=p.memoizedProps,C=C!==null?C.memoizedProps:M;try{on(T,C,M)}catch(ce){or(p,p.return,ce)}}break;case 3:if(Ss(m,p),Js(p),4&A){if(Ze&&Pe&&C!==null&&C.memoizedState.isDehydrated)try{im(m.containerInfo)}catch(ce){or(p,p.return,ce)}if(st){T=m.containerInfo,M=m.pendingChildren;try{H0(T,M)}catch(ce){or(p,p.return,ce)}}}break;case 4:if(Ss(m,p),Js(p),4&A&&st){T=(M=p.stateNode).containerInfo,M=M.pendingChildren;try{H0(T,M)}catch(ce){or(p,p.return,ce)}}break;case 13:Ss(m,p),Js(p),8192&(T=p.child).flags&&(M=T.memoizedState!==null,T.stateNode.isHidden=M,!M||T.alternate!==null&&T.alternate.memoizedState!==null||(Mm=zt())),4&A&&Ox(p);break;case 22:var z=C!==null&&C.memoizedState!==null;if(1&p.mode?(Sn=(C=Sn)||z,Ss(m,p),Sn=C):Ss(m,p),Js(p),8192&A){if(C=p.memoizedState!==null,(p.stateNode.isHidden=C)&&!z&&(1&p.mode)!=0)for(Be=p,A=p.child;A!==null;){for(m=Be=A;Be!==null;){var K=(z=Be).child;switch(z.tag){case 0:case 11:case 14:case 15:d1(4,z,z.return);break;case 1:Bc(z,z.return);var ie=z.stateNode;if(typeof ie.componentWillUnmount=="function"){var ue=z,he=z.return;try{var De=ue;ie.props=De.memoizedProps,ie.state=De.memoizedState,ie.componentWillUnmount()}catch(ce){or(ue,he,ce)}}break;case 5:Bc(z,z.return);break;case 22:if(z.memoizedState!==null){$x(m);continue}}K!==null?(K.return=z,Be=K):$x(m)}A=A.sibling}if(Ze){e:if(A=null,Ze)for(m=p;;){if(m.tag===5){if(A===null){A=m;try{T=m.stateNode,C?Xl(T):ka(m.stateNode,m.memoizedProps)}catch(ce){or(p,p.return,ce)}}}else if(m.tag===6){if(A===null)try{M=m.stateNode,C?_o(M):vc(M,m.memoizedProps)}catch(ce){or(p,p.return,ce)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===p)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break e;for(;m.sibling===null;){if(m.return===null||m.return===p)break e;A===m&&(A=null),m=m.return}A===m&&(A=null),m.sibling.return=m.return,m=m.sibling}}}break;case 19:Ss(m,p),Js(p),4&A&&Ox(p);break;case 21:break;default:Ss(m,p),Js(p)}}function Js(p){var m=p.flags;if(2&m){try{if(Ze){e:{for(var C=p.return;C!==null;){if(Fx(C)){var A=C;break e}C=C.return}throw Error(s(160))}switch(A.tag){case 5:var T=A.stateNode;32&A.flags&&(yc(T),A.flags&=-33),Am(p,Lx(p),T);break;case 3:case 4:var M=A.stateNode.containerInfo;Sm(p,Lx(p),M);break;default:throw Error(s(161))}}}catch(z){or(p,p.return,z)}p.flags&=-3}4096&m&&(p.flags&=-4097)}function OD(p,m,C){Be=p,Bx(p)}function Bx(p,m,C){for(var A=(1&p.mode)!=0;Be!==null;){var T=Be,M=T.child;if(T.tag===22&&A){var z=T.memoizedState!==null||a2;if(!z){var K=T.alternate,ie=K!==null&&K.memoizedState!==null||Sn;K=a2;var ue=Sn;if(a2=z,(Sn=ie)&&!ue)for(Be=T;Be!==null;)ie=(z=Be).child,z.tag===22&&z.memoizedState!==null?zx(T):ie!==null?(ie.return=z,Be=ie):zx(T);for(;M!==null;)Be=M,Bx(M),M=M.sibling;Be=T,a2=K,Sn=ue}Ux(p)}
890else 8772&T.subtreeFlags&&M!==null?(M.return=T,Be=M):Ux(p)}}function Ux(p){for(;Be!==null;){var m=Be;if(8772&m.flags){var C=m.alternate;try{if(8772&m.flags)switch(m.tag){case 0:case 11:case 15:Sn||o2(5,m);break;case 1:var A=m.stateNode;if(4&m.flags&&!Sn)if(C===null)A.componentDidMount();else{var T=m.elementType===m.type?C.memoizedProps:Si(m.type,C.memoizedProps);A.componentDidUpdate(T,C.memoizedState,A.__reactInternalSnapshotBeforeUpdate)}var M=m.updateQueue;M!==null&&Q0(m,M,A);break;case 3:var z=m.updateQueue;if(z!==null){if(C=null,m.child!==null)switch(m.child.tag){case 5:C=q(m.child.stateNode);break;case 1:C=m.child.stateNode}Q0(m,z,C)}break;case 5:var K=m.stateNode;C===null&&4&m.flags&&On(K,m.type,m.memoizedProps,m);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Pe&&m.memoizedState===null){var ie=m.alternate;if(ie!==null){var ue=ie.memoizedState;if(ue!==null){var he=ue.dehydrated;he!==null&&Yl(he)}}}break;default:throw Error(s(163))}Sn||512&m.flags&&bm(m)}catch(De){or(m,m.return,De)}}if(m===p){Be=null;break}if((C=m.sibling)!==null){C.return=m.return,Be=C;break}Be=m.return}}function $x(p){for(;Be!==null;){var m=Be;if(m===p){Be=null;break}var C=m.sibling;if(C!==null){C.return=m.return,Be=C;break}Be=m.return}}function zx(p){for(;Be!==null;){var m=Be;try{switch(m.tag){case 0:case 11:case 15:var C=m.return;try{o2(4,m)}catch(ie){or(m,C,ie)}break;case 1:var A=m.stateNode;if(typeof A.componentDidMount=="function"){var T=m.return;try{A.componentDidMount()}catch(ie){or(m,T,ie)}}var M=m.return;try{bm(m)}catch(ie){or(m,M,ie)}break;case 5:var z=m.return;try{bm(m)}catch(ie){or(m,z,ie)}}}catch(ie){or(m,m.return,ie)}if(m===p){Be=null;break}var K=m.sibling;if(K!==null){K.return=m.return,Be=K;break}Be=m.return}}var l2=0,u2=1,c2=2,h2=3,d2=4;if(typeof Symbol=="function"&&Symbol.for){var f1=Symbol.for;l2=f1("selector.component"),u2=f1("selector.has_pseudo_class"),c2=f1("selector.role"),h2=f1("selector.test_id"),d2=f1("selector.text")}function Em(p){var m=rt(p);if(m!=null){if(typeof m.memoizedProps["data-testname"]!="string")throw Error(s(364));return m}if((p=Ee(p))===null)throw Error(s(362));return p.stateNode.current}function Pm(p,m){switch(m.$$typeof){case l2:if(p.type===m.value)return!0;break;case u2:e:{m=m.value,p=[p,0];for(var C=0;C<p.length;){var A=p[C++],T=p[C++],M=m[T];if(A.tag!==5||!Fe(A)){for(;M!=null&&Pm(A,M);)M=m[++T];if(T===m.length){m=!0;break e}for(A=A.child;A!==null;)p.push(A,T),A=A.sibling}}m=!1}return m;case c2:if(p.tag===5&&Ne(p.stateNode,m.value))return!0;break;case d2:if((p.tag===5||p.tag===6)&&(p=xe(p))!==null&&0<=p.indexOf(m.value))return!0;break;case h2:if(p.tag===5&&typeof(p=p.memoizedProps["data-testname"])=="string"&&p.toLowerCase()===m.value.toLowerCase())return!0;break;default:throw Error(s(365))}return!1}function Dm(p){switch(p.$$typeof){case l2:return"<"+(E(p.value)||"Unknown")+">";case u2:return":has("+(Dm(p)||"")+")";case c2:return'[role="'+p.value+'"]';case d2:return'"'+p.value+'"';case h2:return'[data-testname="'+p.value+'"]';default:throw Error(s(365))}}function jx(p,m){var C=[];p=[p,0];for(var A=0;A<p.length;){var T=p[A++],M=p[A++],z=m[M];if(T.tag!==5||!Fe(T)){for(;z!=null&&Pm(T,z);)z=m[++M];if(M===m.length)C.push(T);else for(T=T.child;T!==null;)p.push(T,M),T=T.sibling}}return C}function Hm(p,m){if(!oe)throw Error(s(363));p=jx(p=Em(p),m),m=[],p=Array.from(p);for(var C=0;C<p.length;){var A=p[C++];if(A.tag===5)Fe(A)||m.push(A.stateNode);else for(A=A.child;A!==null;)p.push(A),A=A.sibling}return m}var ND=Math.ceil,f2=a.ReactCurrentDispatcher,km=a.ReactCurrentOwner,Tr=a.ReactCurrentBatchConfig,wt=0,Kr=null,Or=null,cn=0,Ti=0,Uc=xi(0),zr=0,p1=null,au=0,p2=0,Im=0,m1=null,Ei=null,Mm=0,Rm=1/0,Bo=null;function $c(){Rm=zt()+500}var Vx,m2=!1,Fm=null,Uo=null,g2=!1,$o=null,y2=0,g1=0,Lm=null,v2=-1,_2=0;function An(){return 6&wt?zt():v2!==-1?v2:v2=zt()}function zo(p){return 1&p.mode?2&wt&&cn!==0?cn&-cn:dm.transition!==null?(_2===0&&(_2=O0()),_2):(p=Tt)!==0?p:xt():1}function Ji(p,m,C,A){if(50<g1)throw g1=0,Lm=null,Error(s(185));Jl(p,C,A),2&wt&&p===Kr||(p===Kr&&(!(2&wt)&&(p2|=C),zr===4&&jo(p,cn)),si(p,A),C===1&&wt===0&&!(1&m.mode)&&($c(),Eo&&Xi()))}function si(p,m){var C=p.callbackNode;(function(T,M){for(var z=T.suspendedLanes,K=T.pingedLanes,ie=T.expirationTimes,ue=T.pendingLanes;0<ue;){var he=31-Kn(ue),De=1<<he,ce=ie[he];ce===-1?De&z&&!(De&K)||(ie[he]=um(De,M)):ce<=M&&(T.expiredLanes|=De),ue&=~De}})(p,m);var A=Rr(p,p===Kr?cn:0);if(A===0)C!==null&&B0(C),p.callbackNode=null,p.callbackPriority=0;else if(m=A&-A,p.callbackPriority!==m){if(C!=null&&B0(C),m===1)p.tag===0?function(T){Eo=!0,Sc(T)}(Wx.bind(null,p)):Sc(Wx.bind(null,p)),W?te(function(){!(6&wt)&&Xi()}):N0(tu,Xi),C=null;else{switch(wc(A)){case 1:C=tu;break;case 4:C=hm;break;case 16:default:C=jf;break;case 536870912:C=Ra}C=eC(C,Gx.bind(null,p))}p.callbackPriority=m,p.callbackNode=C}}function Gx(p,m){if(v2=-1,_2=0,(6&wt)!=0)throw Error(s(327));var C=p.callbackNode;
890if(lu()&&p.callbackNode!==C)return null;var A=Rr(p,p===Kr?cn:0);if(A===0)return null;if(30&A||A&p.expiredLanes||m)m=x2(p,A);else{m=A;var T=wt;wt|=2;var M=Zx();for(Kr===p&&cn===m||(Bo=null,$c(),ou(p,m));;)try{UD();break}catch(K){Yx(p,K)}X0(),f2.current=M,wt=T,Or!==null?m=0:(Kr=null,cn=0,m=zr)}if(m!==0){if(m===2&&(T=Cc(p))!==0&&(A=T,m=Om(p,T)),m===1)throw C=p1,ou(p,0),jo(p,A),si(p,zt()),C;if(m===6)jo(p,A);else{if(T=p.current.alternate,(30&A)==0&&!function(K){for(var ie=K;;){if(16384&ie.flags){var ue=ie.updateQueue;if(ue!==null&&(ue=ue.stores)!==null)for(var he=0;he<ue.length;he++){var De=ue[he],ce=De.getSnapshot;De=De.value;try{if(!wi(ce(),De))return!1}catch{return!1}}}if(ue=ie.child,16384&ie.subtreeFlags&&ue!==null)ue.return=ie,ie=ue;else{if(ie===K)break;for(;ie.sibling===null;){if(ie.return===null||ie.return===K)return!0;ie=ie.return}ie.sibling.return=ie.return,ie=ie.sibling}}return!0}(T)&&((m=x2(p,A))===2&&(M=Cc(p))!==0&&(A=M,m=Om(p,M)),m===1))throw C=p1,ou(p,0),jo(p,A),si(p,zt()),C;switch(p.finishedWork=T,p.finishedLanes=A,m){case 0:case 1:throw Error(s(345));case 2:case 5:zc(p,Ei,Bo);break;case 3:if(jo(p,A),(130023424&A)===A&&10<(m=Mm+500-zt())){if(Rr(p,0)!==0)break;if(((T=p.suspendedLanes)&A)!==A){An(),p.pingedLanes|=p.suspendedLanes&T;break}p.timeoutHandle=qe(zc.bind(null,p,Ei,Bo),m);break}zc(p,Ei,Bo);break;case 4:if(jo(p,A),(4194240&A)===A)break;for(m=p.eventTimes,T=-1;0<A;){var z=31-Kn(A);M=1<<z,(z=m[z])>T&&(T=z),A&=~M}if(A=T,10<(A=(120>(A=zt()-A)?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*ND(A/1960))-A)){p.timeoutHandle=qe(zc.bind(null,p,Ei,Bo),A);break}zc(p,Ei,Bo);break;default:throw Error(s(329))}}}return si(p,zt()),p.callbackNode===C?Gx.bind(null,p):null}function Om(p,m){var C=m1;return p.current.memoizedState.isDehydrated&&(ou(p,m).flags|=256),(p=x2(p,m))!==2&&(m=Ei,Ei=C,m!==null&&Nm(m)),p}function Nm(p){Ei===null?Ei=p:Ei.push.apply(Ei,p)}function jo(p,m){for(m&=~Im,m&=~p2,p.suspendedLanes|=m,p.pingedLanes&=~m,p=p.expirationTimes;0<m;){var C=31-Kn(m),A=1<<C;p[C]=-1,m&=~A}}function Wx(p){if(6&wt)throw Error(s(327));lu();var m=Rr(p,0);if(!(1&m))return si(p,zt()),null;var C=x2(p,m);if(p.tag!==0&&C===2){var A=Cc(p);A!==0&&(m=A,C=Om(p,A))}if(C===1)throw C=p1,ou(p,0),jo(p,m),si(p,zt()),C;if(C===6)throw Error(s(345));return p.finishedWork=p.current.alternate,p.finishedLanes=m,zc(p,Ei,Bo),si(p,zt()),null}function Xx(p){$o!==null&&$o.tag===0&&!(6&wt)&&lu();var m=wt;wt|=1;var C=Tr.transition,A=Tt;try{if(Tr.transition=null,Tt=1,p)return p()}finally{Tt=A,Tr.transition=C,!(6&(wt=m))&&Xi()}}function Bm(){Ti=Uc.current,Ft(Uc)}function ou(p,m){p.finishedWork=null,p.finishedLanes=0;var C=p.timeoutHandle;if(C!==lt&&(p.timeoutHandle=lt,$e(C)),Or!==null)for(C=Or.return;C!==null;){var A=C;switch(j0(A),A.tag){case 1:(A=A.type.childContextTypes)!=null&&F0();break;case 3:Lo(),Ft(wn),Ft(Qr),a1();break;case 5:i1(A);break;case 4:Lo();break;case 13:case 19:Ft(ar);break;case 10:Y0(A.type._context);break;case 22:case 23:Bm()}C=C.return}if(Kr=p,Or=p=Vo(p.current,null),cn=Ti=m,zr=0,p1=null,Im=p2=au=0,Ei=m1=null,Na!==null){for(m=0;m<Na.length;m++)if((A=(C=Na[m]).interleaved)!==null){C.interleaved=null;var T=A.next,M=C.pending;if(M!==null){var z=M.next;M.next=T,A.next=z}C.pending=A}Na=null}return p}function Yx(p,m){for(;;){var C=Or;try{if(X0(),Fc.current=t2,Lc){for(var A=tr.memoizedState;A!==null;){var T=A.queue;T!==null&&(T.pending=null),A=A.next}Lc=!1}if(Ua=0,Lr=Fr=tr=null,Zs=!1,Oo=0,km.current=null,C===null||C.return===null){zr=1,p1=m,Or=null;break}e:{var M=p,z=C.return,K=C,ie=m;if(m=cn,K.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var ue=ie,he=K,De=he.tag;if(!(1&he.mode)&&(De===0||De===11||De===15)){var ce=he.alternate;ce?(he.updateQueue=ce.updateQueue,he.memoizedState=ce.memoizedState,he.lanes=ce.lanes):(he.updateQueue=null,he.memoizedState=null)}var Se=yx(z);if(Se!==null){Se.flags&=-257,vx(Se,z,K,0,m),1&Se.mode&&gx(M,ue,m),ie=ue;var je=(m=Se).updateQueue;if(je===null){var ft=new Set;ft.add(ie),m.updateQueue=ft}else je.add(ie);break e}if(!(1&m)){gx(M,ue,m),Um();break e}ie=Error(s(426))}else if(Zt&&1&K.mode){var de=yx(z);
890if(de!==null){!(65536&de.flags)&&(de.flags|=256),vx(de,z,K,0,m),G0(Nc(ie,K));break e}}M=ie=Nc(ie,K),zr!==4&&(zr=2),m1===null?m1=[M]:m1.push(M),M=z;do{switch(M.tag){case 3:M.flags|=65536,m&=-m,M.lanes|=m,su(M,px(0,ie,m));break e;case 1:K=ie;var ne=M.type,le=M.stateNode;if(!(128&M.flags)&&(typeof ne.getDerivedStateFromError=="function"||le!==null&&typeof le.componentDidCatch=="function"&&(Uo===null||!Uo.has(le)))){M.flags|=65536,m&=-m,M.lanes|=m,su(M,mx(M,K,m));break e}}M=M.return}while(M!==null)}Qx(C)}catch(me){m=me,Or===C&&C!==null&&(Or=C=C.return);continue}break}}function Zx(){var p=f2.current;return f2.current=t2,p===null?t2:p}function Um(){zr!==0&&zr!==3&&zr!==2||(zr=4),Kr===null||!(268435455&au)&&!(268435455&p2)||jo(Kr,cn)}function x2(p,m){var C=wt;wt|=2;var A=Zx();for(Kr===p&&cn===m||(Bo=null,ou(p,m));;)try{BD();break}catch(T){Yx(p,T)}if(X0(),wt=C,f2.current=A,Or!==null)throw Error(s(261));return Kr=null,cn=0,zr}function BD(){for(;Or!==null;)qx(Or)}function UD(){for(;Or!==null&&!cm();)qx(Or)}function qx(p){var m=Vx(p.alternate,p,Ti);p.memoizedProps=p.pendingProps,m===null?Qx(p):Or=m,km.current=null}function Qx(p){var m=p;do{var C=m.alternate;if(p=m.return,(32768&m.flags)==0){if((C=RD(C,m,Ti))!==null)return void(Or=C)}else{if((C=FD(C,m))!==null)return C.flags&=32767,void(Or=C);if(p===null)return zr=6,void(Or=null);p.flags|=32768,p.subtreeFlags=0,p.deletions=null}if((m=m.sibling)!==null)return void(Or=m);Or=m=p}while(m!==null);zr===0&&(zr=5)}function zc(p,m,C){var A=Tt,T=Tr.transition;try{Tr.transition=null,Tt=1,function(M,z,K,ie){do lu();while($o!==null);if(6&wt)throw Error(s(327));K=M.finishedWork;var ue=M.finishedLanes;if(K===null)return null;if(M.finishedWork=null,M.finishedLanes=0,K===M.current)throw Error(s(177));M.callbackNode=null,M.callbackPriority=0;var he=K.lanes|K.childLanes;if(function(Se,je){var ft=Se.pendingLanes&~je;Se.pendingLanes=je,Se.suspendedLanes=0,Se.pingedLanes=0,Se.expiredLanes&=je,Se.mutableReadLanes&=je,Se.entangledLanes&=je,je=Se.entanglements;var de=Se.eventTimes;for(Se=Se.expirationTimes;0<ft;){var ne=31-Kn(ft),le=1<<ne;je[ne]=0,de[ne]=-1,Se[ne]=-1,ft&=~le}}(M,he),M===Kr&&(Or=Kr=null,cn=0),!(2064&K.subtreeFlags)&&!(2064&K.flags)||g2||(g2=!0,eC(jf,function(){return lu(),null})),he=(15990&K.flags)!=0,(15990&K.subtreeFlags)!=0||he){he=Tr.transition,Tr.transition=null;var De=Tt;Tt=1;var ce=wt;wt|=4,km.current=null,function(Se,je){for(Y(Se.containerInfo),Be=je;Be!==null;)if(je=(Se=Be).child,(1028&Se.subtreeFlags)!=0&&je!==null)je.return=Se,Be=je;else for(;Be!==null;){Se=Be;try{var ft=Se.alternate;if(1024&Se.flags)switch(Se.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(ft!==null){var de=ft.memoizedProps,ne=ft.memoizedState,le=Se.stateNode,me=le.getSnapshotBeforeUpdate(Se.elementType===Se.type?de:Si(Se.type,de),ne);le.__reactInternalSnapshotBeforeUpdate=me}break;case 3:Ze&&Rf(Se.stateNode.containerInfo);break;default:throw Error(s(163))}}catch(Ke){or(Se,Se.return,Ke)}if((je=Se.sibling)!==null){je.return=Se.return,Be=je;break}Be=Se.return}ft=Mx,Mx=!1}(M,K),Nx(K,M),G(M.containerInfo),M.current=K,OD(K),U0(),wt=ce,Tt=De,Tr.transition=he}else M.current=K;if(g2&&(g2=!1,$o=M,y2=ue),he=M.pendingLanes,he===0&&(Uo=null),function(Se){if(Ci&&typeof Ci.onCommitFiberRoot=="function")try{Ci.onCommitFiberRoot(bc,Se,void 0,(128&Se.current.flags)==128)}catch{}}(K.stateNode),si(M,zt()),z!==null)for(ie=M.onRecoverableError,K=0;K<z.length;
890K++)ue=z[K],ie(ue.value,{componentStack:ue.stack,digest:ue.digest});if(m2)throw m2=!1,M=Fm,Fm=null,M;1&y2&&M.tag!==0&&lu(),he=M.pendingLanes,1&he?M===Lm?g1++:(g1=0,Lm=M):g1=0,Xi()}(p,m,C,A)}finally{Tr.transition=T,Tt=A}return null}function lu(){if($o!==null){var p=wc(y2),m=Tr.transition,C=Tt;try{if(Tr.transition=null,Tt=16>p?16:p,$o===null)var A=!1;else{if(p=$o,$o=null,y2=0,(6&wt)!=0)throw Error(s(331));var T=wt;for(wt|=4,Be=p.current;Be!==null;){var M=Be,z=M.child;if(16&Be.flags){var K=M.deletions;if(K!==null){for(var ie=0;ie<K.length;ie++){var ue=K[ie];for(Be=ue;Be!==null;){var he=Be;switch(he.tag){case 0:case 11:case 15:d1(8,he,M)}var De=he.child;if(De!==null)De.return=he,Be=De;else for(;Be!==null;){var ce=(he=Be).sibling,Se=he.return;if(Rx(he),he===ue){Be=null;break}if(ce!==null){ce.return=Se,Be=ce;break}Be=Se}}}var je=M.alternate;if(je!==null){var ft=je.child;if(ft!==null){je.child=null;do{var de=ft.sibling;ft.sibling=null,ft=de}while(ft!==null)}}Be=M}}if(2064&M.subtreeFlags&&z!==null)z.return=M,Be=z;else e:for(;Be!==null;){if(2048&(M=Be).flags)switch(M.tag){case 0:case 11:case 15:d1(9,M,M.return)}var ne=M.sibling;if(ne!==null){ne.return=M.return,Be=ne;break e}Be=M.return}}var le=p.current;for(Be=le;Be!==null;){var me=(z=Be).child;if(2064&z.subtreeFlags&&me!==null)me.return=z,Be=me;else e:for(z=le;Be!==null;){if(2048&(K=Be).flags)try{switch(K.tag){case 0:case 11:case 15:o2(9,K)}}catch(Nt){or(K,K.return,Nt)}if(K===z){Be=null;break e}var Ke=K.sibling;if(Ke!==null){Ke.return=K.return,Be=Ke;break e}Be=K.return}}if(wt=T,Xi(),Ci&&typeof Ci.onPostCommitFiberRoot=="function")try{Ci.onPostCommitFiberRoot(bc,p)}catch{}A=!0}return A}finally{Tt=C,Tr.transition=m}}return!1}function Kx(p,m,C){p=bs(p,m=px(0,m=Nc(C,m),1),1),m=An(),p!==null&&(Jl(p,1,m),si(p,m))}function or(p,m,C){if(p.tag===3)Kx(p,p,C);else for(;m!==null;){if(m.tag===3){Kx(m,p,C);break}if(m.tag===1){var A=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(Uo===null||!Uo.has(A))){m=bs(m,p=mx(m,p=Nc(C,p),1),1),p=An(),m!==null&&(Jl(m,1,p),si(m,p));break}}m=m.return}}function $D(p,m,C){var A=p.pingCache;A!==null&&A.delete(m),m=An(),p.pingedLanes|=p.suspendedLanes&C,Kr===p&&(cn&C)===C&&(zr===4||zr===3&&(130023424&cn)===cn&&500>zt()-Mm?ou(p,0):Im|=C),si(p,m)}function Jx(p,m){m===0&&(1&p.mode?(m=L0,!(130023424&(L0<<=1))&&(L0=4194304)):m=1);var C=An();(p=qi(p,m))!==null&&(Jl(p,m,C),si(p,C))}function zD(p){var m=p.memoizedState,C=0;m!==null&&(C=m.retryLane),Jx(p,C)}function jD(p,m){var C=0;switch(p.tag){case 13:var A=p.stateNode,T=p.memoizedState;T!==null&&(C=T.retryLane);break;case 19:A=p.stateNode;break;default:throw Error(s(314))}A!==null&&A.delete(m),Jx(p,C)}function eC(p,m){return N0(p,m)}function VD(p,m,C,A){this.tag=p,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function es(p,m,C,A){return new VD(p,m,C,A)}function $m(p){return!(!(p=p.prototype)||!p.isReactComponent)}function Vo(p,m){var C=p.alternate;return C===null?((C=es(p.tag,m,p.key,p.mode)).elementType=p.elementType,C.type=p.type,C.stateNode=p.stateNode,C.alternate=p,p.alternate=C):(C.pendingProps=m,C.type=p.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=14680064&p.flags,C.childLanes=p.childLanes,C.lanes=p.lanes,C.child=p.child,C.memoizedProps=p.memoizedProps,C.memoizedState=p.memoizedState,C.updateQueue=p.updateQueue,m=p.dependencies,C.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},C.sibling=p.sibling,C.index=p.index,C.ref=p.ref,C}function C2(p,m,C,A,T,M){var z=2;if(A=p,typeof p=="function")$m(p)&&(z=1);else if(typeof p=="string")z=5;else e:switch(p){case u:return uu(C.children,T,M,m);case h:z=8,T|=8;break;case c:return(p=es(12,C,m,2|T)).elementType=c,p.lanes=M,p;case y:return(p=es(13,C,m,T)).elementType=y,p.lanes=M,p;case v:return(p=es(19,C,m,T)).elementType=v,p.lanes=M,p;case w:return w2(C,T,M,m);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case d:z=10;break e;case f:z=9;break e;case g:z=11;break e;case _:z=14;break e;case x:z=16,A=null;break e}throw Error(s(130,p==null?p:typeof p,""))}return(m=es(z,C,m,T)).elementType=p,m.type=A,m.lanes=M,m}function uu(p,m,C,A){return(p=es(7,p,A,m)).lanes=C,p}function w2(p,m,C,A){return(p=es(22,p,A,m)).elementType=w,p.lanes=C,p.stateNode={isHidden:!1},p}function zm(p,m,C){return(p=es(6,p,null,m)).lanes=C,p}function jm(p,m,C){return(m=es(4,p.children!==null?p.children:[],p.key,m)).lanes=C,m.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},m}function GD(p,m,C,A,T){this.tag=m,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lt,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=A,this.onRecoverableError=T,Pe&&(this.mutableSourceEagerHydrationData=null)}function tC(p,m,C,A,T,M,z,K,ie){return p=new GD(p,m,C,K,ie),m===1?(m=1,M===!0&&(m|=8)):m=0,M=es(3,null,null,m),p.current=M,M.stateNode=p,M.memoizedState={element:A,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},q0(M),p}function rC(p){if(!p)return Wi;e:{if(P(p=p._reactInternals)!==p||p.tag!==1)throw Error(s(170));var m=p;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(un(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(s(171))}if(p.tag===1){var C=p.type;if(un(C))return $f(p,C,m)}return m}function nC(p){var m=p._reactInternals;if(m===void 0)throw typeof p.render=="function"?Error(s(188)):(p=Object.keys(p).join(","),Error(s(268,p)));return(p=U(m))===null?null:p.stateNode}function iC(p,m){if((p=p.memoizedState)!==null&&p.dehydrated!==null){var C=p.retryLane;p.retryLane=C!==0&&C<m?C:m}}function b2(p,m){iC(p,m),(p=p.alternate)&&iC(p,m)}function WD(p){return(p=U(p))===null?null:p.stateNode}function XD(){return null}
890return Vx=function(p,m,C){if(p!==null)if(p.memoizedProps!==m.pendingProps||wn.current)ni=!0;else{if(!(p.lanes&C)&&!(128&m.flags))return ni=!1,function(De,ce,Se){switch(ce.tag){case 3:Ax(ce),Ho();break;case 5:e2(ce);break;case 1:un(ce.type)&&xc(ce);break;case 4:n1(ce,ce.stateNode.containerInfo);break;case 10:Hc(0,ce.type._context,ce.memoizedProps.value);break;case 13:var je=ce.memoizedState;if(je!==null)return je.dehydrated!==null?(Ut(ar,1&ar.current),ce.flags|=128,null):Se&ce.child.childLanes?Ex(De,ce,Se):(Ut(ar,1&ar.current),(De=$a(De,ce,Se))!==null?De.sibling:null);Ut(ar,1&ar.current);break;case 19:if(je=(Se&ce.childLanes)!=0,(128&De.flags)!=0){if(je)return Dx(De,ce,Se);ce.flags|=128}var ft=ce.memoizedState;if(ft!==null&&(ft.rendering=null,ft.tail=null,ft.lastEffect=null),Ut(ar,ar.current),je)break;return null;case 22:case 23:return ce.lanes=0,wx(De,ce,Se)}return $a(De,ce,Se)}(p,m,C);ni=(131072&p.flags)!=0}else ni=!1,Zt&&1048576&m.flags&&Vf(m,Tc,m.index);switch(m.lanes=0,m.tag){case 2:var A=m.type;s2(p,m),p=m.pendingProps;var T=So(m,Qr.current);Io(m,C),T=$(null,m,A,p,T,C);var M=Q();return m.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,un(A)?(M=!0,xc(m)):M=!1,m.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,q0(m),T.updater=Mc,m.stateNode=T,T._reactInternals=m,e1(m,A,p,C),m=vm(null,m,A,!0,M,C)):(m.tag=0,Zt&&M&&z0(m),ii(null,m,T,C),m=m.child),m;case 16:A=m.elementType;e:{switch(s2(p,m),p=m.pendingProps,A=(T=A._init)(A._payload),m.type=A,T=m.tag=function(De){if(typeof De=="function")return $m(De)?1:0;if(De!=null){if((De=De.$$typeof)===g)return 11;if(De===_)return 14}return 2}(A),p=Si(A,p),T){case 0:m=ym(null,m,A,p,C);break e;case 1:m=Sx(null,m,A,p,C);break e;case 11:m=_x(null,m,A,p,C);break e;case 14:m=xx(null,m,A,Si(A.type,p),C);break e}throw Error(s(306,A,""))}return m;case 0:return A=m.type,T=m.pendingProps,ym(p,m,A,T=m.elementType===A?T:Si(A,T),C);case 1:return A=m.type,T=m.pendingProps,Sx(p,m,A,T=m.elementType===A?T:Si(A,T),C);case 3:e:{if(Ax(m),p===null)throw Error(s(387));A=m.pendingProps,T=(M=m.memoizedState).element,qf(p,m),Ic(m,A,null,C);var z=m.memoizedState;if(A=z.element,Pe&&M.isDehydrated){if(M={element:A,isDehydrated:!1,cache:z.cache,pendingSuspenseBoundaries:z.pendingSuspenseBoundaries,transitions:z.transitions},m.updateQueue.baseState=M,m.memoizedState=M,256&m.flags){m=Tx(p,m,A,C,T=Nc(Error(s(423)),m));break e}if(A!==T){m=Tx(p,m,A,C,T=Nc(Error(s(424)),m));break e}for(Pe&&(ti=Lf(m.stateNode.containerInfo),Nn=m,Zt=!0,bi=null,ru=!1),C=r1(m,null,A,C),m.child=C;C;)C.flags=-3&C.flags|4096,C=C.sibling}else{if(Ho(),A===T){m=$a(p,m,C);break e}ii(p,m,A,C)}m=m.child}return m;case 5:return e2(m),p===null&&nu(m),A=m.type,T=m.pendingProps,M=p!==null?p.memoizedProps:null,z=T.children,Oe(A,T)?z=null:M!==null&&Oe(A,M)&&(m.flags|=32),bx(p,m),ii(p,m,z,C),m.child;case 6:return p===null&&nu(m),null;case 13:return Ex(p,m,C);case 4:return n1(m,m.stateNode.containerInfo),A=m.pendingProps,p===null?m.child=cr(m,null,A,C):ii(p,m,A,C),m.child;case 11:return A=m.type,T=m.pendingProps,_x(p,m,A,T=m.elementType===A?T:Si(A,T),C);case 7:return ii(p,m,m.pendingProps,C),m.child;case 8:case 12:return ii(p,m,m.pendingProps.children,C),m.child;case 10:e:{if(A=m.type._context,T=m.pendingProps,M=m.memoizedProps,Hc(0,A,z=T.value),M!==null)if(wi(M.value,z)){if(M.children===T.children&&!wn.current){m=$a(p,m,C);break e}}else for((M=m.child)!==null&&(M.return=m);M!==null;){var K=M.dependencies;if(K!==null){z=M.child;for(var ie=K.firstContext;ie!==null;){if(ie.context===A){if(M.tag===1){(ie=ws(-1,C&-C)).tag=2;var ue=M.updateQueue;if(ue!==null){var he=(ue=ue.shared).pending;he===null?ie.next=ie:(ie.next=he.next,he.next=ie),ue.pending=ie}}M.lanes|=C,(ie=M.alternate)!==null&&(ie.lanes|=C),Oa(M.return,C,m),K.lanes|=C;break}ie=ie.next}}else if(M.tag===10)z=M.type===m.type?null:M.child;else if(M.tag===18){if((z=M.return)===null)throw Error(s(341));z.lanes|=C,(K=z.alternate)!==null&&(K.lanes|=C),Oa(z,C,m),z=M.sibling}else z=M.child;if(z!==null)z.return=M;else for(z=M;z!==null;){if(z===m){z=null;break}if((M=z.sibling)!==null){M.return=z.return,z=M;break}z=z.return}M=z}ii(p,m,T.children,C),m=m.child}return m;case 9:return T=m.type,A=m.pendingProps.children,Io(m,C),A=A(T=ri(T)),m.flags|=1,ii(p,m,A,C),m.child;case 14:return T=Si(A=m.type,m.pendingProps),xx(p,m,A,T=Si(A.type,T),C);case 15:return Cx(p,m,m.type,m.pendingProps,C);case 17:return A=m.type,T=m.pendingProps,T=m.elementType===A?T:Si(A,T),s2
890(p,m),m.tag=1,un(A)?(p=!0,xc(m)):p=!1,Io(m,C),Kf(m,A,T),e1(m,A,T,C),vm(null,m,A,!0,p,C);case 19:return Dx(p,m,C);case 22:return wx(p,m,C)}throw Error(s(156,m.tag))},e.attemptContinuousHydration=function(p){if(p.tag===13){var m=qi(p,134217728);m!==null&&Ji(m,p,134217728,An()),b2(p,134217728)}},e.attemptDiscreteHydration=function(p){if(p.tag===13){var m=qi(p,1);m!==null&&Ji(m,p,1,An()),b2(p,1)}},e.attemptHydrationAtCurrentPriority=function(p){if(p.tag===13){var m=zo(p),C=qi(p,m);C!==null&&Ji(C,p,m,An()),b2(p,m)}},e.attemptSynchronousHydration=function(p){switch(p.tag){case 3:var m=p.stateNode;if(m.current.memoizedState.isDehydrated){var C=Kl(m.pendingLanes);C!==0&&(eu(m,1|C),si(m,zt()),!(6&wt)&&($c(),Xi()))}break;case 13:Xx(function(){var A=qi(p,1);if(A!==null){var T=An();Ji(A,p,1,T)}}),b2(p,1)}},e.batchedUpdates=function(p,m){var C=wt;wt|=1;try{return p(m)}finally{(wt=C)===0&&($c(),Eo&&Xi())}},e.createComponentSelector=function(p){return{$$typeof:l2,value:p}},e.createContainer=function(p,m,C,A,T,M,z){return tC(p,m,!1,null,0,A,0,M,z)},e.createHasPseudoClassSelector=function(p){return{$$typeof:u2,value:p}},e.createHydrationContainer=function(p,m,C,A,T,M,z,K,ie){return(p=tC(C,A,!0,p,0,M,0,K,ie)).context=rC(null),C=p.current,(M=ws(A=An(),T=zo(C))).callback=m??null,bs(C,M,T),p.current.lanes=T,Jl(p,T,A),si(p,A),p},e.createPortal=function(p,m,C){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:A==null?null:""+A,children:p,containerInfo:m,implementation:C}},e.createRoleSelector=function(p){return{$$typeof:c2,value:p}},e.createTestNameSelector=function(p){return{$$typeof:h2,value:p}},e.createTextSelector=function(p){return{$$typeof:d2,value:p}},e.deferredUpdates=function(p){var m=Tt,C=Tr.transition;try{return Tr.transition=null,Tt=16,p()}finally{Tt=m,Tr.transition=C}},e.discreteUpdates=function(p,m,C,A,T){var M=Tt,z=Tr.transition;try{return Tr.transition=null,Tt=1,p(m,C,A,T)}finally{Tt=M,Tr.transition=z,wt===0&&$c()}},e.findAllNodes=Hm,e.findBoundingRects=function(p,m){if(!oe)throw Error(s(363));m=Hm(p,m),p=[];for(var C=0;C<m.length;C++)p.push(Ce(m[C]));for(m=p.length-1;0<m;m--)for(var A=(C=p[m]).x,T=A+C.width,M=C.y,z=M+C.height,K=m-1;0<=K;K--)if(m!==K){var ie=p[K],ue=ie.x,he=ue+ie.width,De=ie.y,ce=De+ie.height;if(A>=ue&&M>=De&&T<=he&&z<=ce){p.splice(m,1);break}if(!(A!==ue||C.width!==ie.width||ce<M||De>z)){De>M&&(ie.height+=De-M,ie.y=M),ce<z&&(ie.height=z-De),p.splice(m,1);break}if(!(M!==De||C.height!==ie.height||he<A||ue>T)){ue>A&&(ie.width+=ue-A,ie.x=A),he<T&&(ie.width=T-ue),p.splice(m,1);break}}return p},e.findHostInstance=nC,e.findHostInstanceWithNoPortals=function(p){return(p=(p=R(p))!==null?F(p):null)===null?null:p.stateNode},e.findHostInstanceWithWarning=function(p){return nC(p)},e.flushControlled=function(p){var m=wt;wt|=1;var C=Tr.transition,A=Tt;try{Tr.transition=null,Tt=1,p()}finally{Tt=A,Tr.transition=C,(wt=m)===0&&($c(),Xi())}},e.flushPassiveEffects=lu,e.flushSync=Xx,e.focusWithin=function(p,m){if(!oe)throw Error(s(363));for(m=jx(p=Em(p),m),m=Array.from(m),p=0;p<m.length;){var C=m[p++];if(!Fe(C)){if(C.tag===5&&it(C.stateNode))return!0;for(C=C.child;C!==null;)m.push(C),C=C.sibling}}return!1},e.getCurrentUpdatePriority=function(){return Tt},e.getFindAllNodesFailureDescription=function(p,m){if(!oe)throw Error(s(363));var C=0,A=[];p=[Em(p),0];for(var T=0;T<p.length;){var M=p[T++],z=p[T++],K=m[z];if((M.tag!==5||!Fe(M))&&(Pm(M,K)&&(A.push(Dm(K)),++z>C&&(C=z)),z<m.length))for(M=M.child;M!==null;)p.push(M,z),M=M.sibling}if(C<m.length){for(p=[];C<m.length;C++)p.push(Dm(m[C]));return`findAllNodes was able to match part of the selector:
891  `+A.join(" > ")+`
892
893No matching component was found for:
894  `+p.join(" > ")}return null},e.getPublicRootInstance=function(p){return(p=p.current).child?p.child.tag===5?q(p.child.stateNode):p.child.stateNode:null},e.injectIntoDevTools=function(p){if(p={bundleType:p.bundleType,version:p.version,rendererPackageName:p.rendererPackageName,rendererConfig:p.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:WD,findFiberByHostInstance:p.findFiberByHostInstance||XD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")p=!1;else{var m=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(m.isDisabled||!m.supportsFiber)p=!0;else{try{bc=m.inject(p),Ci=m}catch{}p=!!m.checkDCE}}return p},e.isAlreadyRendering=function(){return!1},e.observeVisibleRects=function(p,m,C,A){if(!oe)throw Error(s(363));p=Hm(p,m);var T=Wt(p,C,A).disconnect;return{disconnect:function(){T()}}},e.registerMutableSourceForHydration=function(p,m){var C=m._getVersion;C=C(m._source),p.mutableSourceEagerHydrationData==null?p.mutableSourceEagerHydrationData=[m,C]:p.mutableSourceEagerHydrationData.push(m,C)},e.runWithPriority=function(p,m){var C=Tt;try{return Tt=p,m()}finally{Tt=C}},e.shouldError=function(){return null},e.shouldSuspend=function(){return!1},e.updateContainer=function(p,m,C,A){var T=m.current,M=An(),z=zo(T);return C=rC(C),m.context===null?m.context=C:m.pendingContext=C,(m=ws(M,z)).payload={element:p},(A=A===void 0?null:A)!==null&&(m.callback=A),(p=bs(T,m,z))!==null&&(Ji(p,T,z,M),kc(p,T,z)),z},e}),mw}({get exports(){return Gy},set exports(r){Gy=r}}).exports=p$();var m$=$U(Gy),QE={name:"root",private:!0,workspaces:["packages/*"],scripts:{build:"nx run-many --target=build --all --parallel","build:force":"nx run-many --target=build --all --parallel --skip-nx-cache","build:docs":"nx run @pixi/react-docs:deploy",clean:"rimraf packages/*/dist packages/*/build",lint:"eslint .",prepare:"husky install",prerelease:"./scripts/checkReleaseBranch.mjs && npm run lint && npm run test:force && npm run build:force",release:"lerna publish --no-private",test:"nx run-many --target=test --all --parallel","test:force":"nx run-many --target=test --all --parallel --skip-nx-cache","test:ci":"nx run-many --target=test:ci --all --parallel","test:ci:force":"nx run-many --target=test:ci --all --parallel --skip-nx-cache","test:types":"nx run-many --target=test:types --all --parallel","test:types:force":"nx run-many --target=test:types --all --parallel --skip-nx-cache"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,js,mjs}":["eslint --cache --fix"]},resolutions:{"get-pkg-repo":"4.1.1","hosted-git-info":"^2.1.4"},dependencies:{"@babel/runtime":"^7.14.8","@pixi/app":"^7.1.1","@pixi/constants":"^7.1.1","@pixi/core":"^7.1.1","@pixi/display":"^7.1.1","@pixi/extensions":"^7.1.1","@pixi/graphics":"^7.1.1","@pixi/math":"^7.1.1","@pixi/mesh":"^7.1.1","@pixi/mesh-extras":"^7.1.1","@pixi/particle-container":"^7.1.1","@pixi/sprite":"^7.1.1","@pixi/sprite-animated":"^7.1.1","@pixi/sprite-tiling":"^7.1.1","@pixi/text":"^7.1.1","@pixi/text-bitmap":"^7.1.1","@pixi/ticker":"^7.1.1","@react-spring/animated":"^9.6.1","@react-spring/types":"^9.6.1",react:"^18.0.0","react-dom":"^18.0.0","react-reconciler":"0.29.0","react-spring":"^9.6.1"},devDependencies:{"@babel/cli":"^7.20.7","@babel/core":"^7.20.7","@babel/eslint-parser":"^7.19.1","@babel/plugin-transform-runtime":"^7.19.6","@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@
894nrwl/nx-cloud":"latest","@pixi/eslint-config":"^4.0.1","@rollup/plugin-alias":"^4.0.2","@rollup/plugin-babel":"^6.0.3","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-replace":"^5.0.2","@rollup/plugin-terser":"^0.2.1","@rollup/plugin-typescript":"^10.0.1","@types/jest":"^29.2.4","@types/react":"17.0.15","@types/react-dom":"17.0.9","@types/react-reconciler":"0.28.2","babel-jest":"^29.3.1","babel-plugin-module-resolver":"4.1.0","cross-env":"^7.0.3",eslint:"^8.29.0","eslint-plugin-react":"^7.31.11",husky:"^8.0.2",jest:"^29.3.1","jest-environment-jsdom":"^29.3.1","jest-extended":"^3.2.0","jest-watch-typeahead":"^2.2.1",lerna:"^6.0.3","lint-staged":"^13.1.0",nx:"15.3.0",rimraf:"^3.0.2",rollup:"^3.7.0","rollup-plugin-filesize":"^9.1.2","rollup-plugin-visualizer":"^5.9.0","ts-jest":"^29.0.3","ts-node":"^10.9.1",typescript:"^4.9.4"}},Xy={},cp={get exports(){return Xy},set exports(r){Xy=r}};(function(){var r,e,t,n,i,s;typeof performance<"u"&&performance!==null&&performance.now?cp.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(cp.exports=function(){return(r()-i)/1e6},e=process.hrtime,n=(r=function(){var a;return 1e9*(a=e())[0]+a[1]})(),s=1e9*process.uptime(),i=n-s):Date.now?(cp.exports=function(){return Date.now()-t},t=Date.now()):(cp.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(UU);var vw,Sh={},pu={};({get exports(){return Sh},set exports(r){Sh=r}}).exports=(vw||(vw=1,pu.ConcurrentRoot=1,pu.ContinuousEventPriority=4,pu.DefaultEventPriority=16,pu.DiscreteEventPriority=1,pu.IdleEventPriority=536870912,pu.LegacyRoot=0),pu);var g$={};function y9(r,e){r.addChild&&(r.addChild(e),typeof e.didMount=="function"&&e.didMount(e,r))}function KE(r,e){var t,n,i;(t=r.willUnmount)===null||t===void 0||t.call(r,r,e),((n=r.config)===null||n===void 0?void 0:n.destroyChildren)!==!1&&(i=r.children)!==null&&i!==void 0&&i.length&&po(r.children).forEach(function(s){KE(s,r)})}function _w(r,e){var t;KE(e,r),r.removeChild(e);var n=(t=e.config)!==null&&t!==void 0?t:{},i=n.destroy,s=i===void 0||i,a=n.destroyChildren,o=a===void 0||a,l=n.destroyTexture,u=l!==void 0&&l,h=n.destroyBaseTexture,c=h!==void 0&&h;s&&e.destroy({children:o,texture:u,baseTexture:c})}function xw(r,e,t){var n,i;Sr(e!==t,"Cannot insert node before itself"),r.children.indexOf(e)!==-1&&r.removeChild(e);var s=r.getChildIndex(t);r.addChildAt(e,s),(n=r.__reactpixi)===null||n===void 0||(i=n.root)===null||i===void 0||i.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"insertBefore"})}var Cw=null,Ns=m$({getRootHostContext:function(){return g$},getChildHostContext:function(r){return r},getChildHostContextForEventComponent:function(r){return r},getPublicInstance:function(r){return r},getCurrentEventPriority:function(){return function(){var r,e;if(typeof window>"u")return Sh.DefaultEventPriority;switch((r=window)===null||r===void 0||(e=r.event)===null||e===void 0?void 0:e.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Sh.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Sh.ContinuousEventPriority;default:return Sh.DefaultEventPriority}}()},prepareForCommit:function(){return null},resetAfterCommit:function(){},createInstance:function(r){var e,t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=c$[r];if(typeof s=="function"&&(e=s(i,n)),!e){var a=qE[r];a&&((e=a.create(n,{root:i})).didMount=a.didMount?a.didMount.bind(e):void 0,e.willUnmount=a.willUnmount?a.willUnmount.bind(e):void 0,e.applyProps=a.applyProps?a.applyProps.bind(e):void 0,e.config=a.config)}return e&&(e.__reactpixi={root:i},(typeof((t=e)===null||t===void 0?void 0:t.applyProps)=="function"?e.applyProps:Aa)(e,{},n)),e},hideInstance:function(r){r.visible=!1},unhideInstance:function(r,e){var t=e==null||!e.hasOwnProperty("visible")||e.visible;r.visible=t},finalizeInitialChildren:function(r,e,t){return!1},prepareUpdate:function(r,e,t,n,i,s){return Cw=function(a,o,l,u){var h=null;for(var c in l)!u.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!==null&&(c===jy||(h||(h=[]),h.push(c,null)));for(var d in u){var f=u[d],g=l!==null?l[d]:void 0;!u.hasOwnProperty(d)||f===g||f===null&&g===null||d===jy||(h||(h=[]),h.push(d,f))}return h}(0,0,t,n)},shouldSetTextContent:function(r,e){return!1},shouldDeprioritizeSubtree:function(r,e){var t=e.alpha===void 0||e.alpha>0,n=e.renderable===void 0||e.renderable===!0,i=e.visible===void 0||e.visible===!0;return!(t&&n&&i)},createTextInstance:function(r,e,t){Sr(!1,'Error trying to add text node "'.concat(r,'"'),"text str
894ings as children of a Pixi component is not supported. To add some text, use &lt;Text text={string} /&gt;")},unhideTextInstance:function(r,e){},mountEventComponent:function(){},updateEventComponent:function(){},handleEventTarget:function(){},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,warnsIfNotActing:!1,now:Xy,isPrimaryRenderer:!1,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,appendInitialChild:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=y9.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"appendInitialChild"}),s},appendChild:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=y9.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"appendChild"}),s},appendChildToContainer:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=y9.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"appendChildToContainer"}),s},removeChild:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=_w.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"removeChild"}),s},removeChildFromContainer:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=_w.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"removeChildFromContainer"}),s},insertBefore:xw,insertInContainerBefore:function(){for(var r,e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=xw.apply(null,n);return(r=n[0].__reactpixi)===null||r===void 0||(e=r.root)===null||e===void 0||e.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"insertInContainerBefore"}),s},commitUpdate:function(r,e,t,n,i){var s,a,o=r&&r.applyProps;typeof o!="function"&&(o=Aa),(o(r,n,i)||Cw)&&((s=r.__reactpixi)===null||s===void 0||(a=s.root)===null||a===void 0||a.emit("__REACT_PIXI_REQUEST_RENDER__",{detail:"commitUpdate"}))},commitMount:function(r,e,t,n,i){},commitTextUpdate:function(r,e,t){},resetTextContent:function(r){},clearContainer:function(r){},getFundamentalComponentInstance:function(r){throw new Error("Not yet implemented.")},mountFundamentalComponent:function(r){throw new Error("Not yet implemented.")},shouldUpdateFundamentalComponent:function(r){throw new Error("Not yet implemented.")},unmountFundamentalComponent:function(r){throw new Error("Not yet implemented.")},getInstanceFromNode:function(r){throw new Error("Not yet implemented.")},isOpaqueHydratingObject:function(r){throw new Error("Not yet implemented")},makeOpaqueHydratingObject:function(r){throw new Error("Not yet implemented.")},makeClientIdInDEV:function(r){throw new Error("Not yet implemented")},beforeActiveInstanceBlur:function(r){},afterActiveInstanceBlur:function(){},detachDeletedInstance:function(){},preparePortalMount:function(r){}}),y$=QE.dependencies["react-dom"].replace(/[^0-9.]/g,""),v$=QE.name;Ns.injectIntoDevTools({bundleType:0,version:y$,rendererPackageName:v$,findHostInstanceByFiber:Ns.findHostInstance});var Tl=new Map;function JE(r){if(Sr(ji.prototype.isPrototypeOf(r),"Invalid argument `container`, expected instance of `Container`."),Tl.has(r)){var e=Tl.get(r).pixiFiberContainer;Ns.updateContainer(null,e,void 0,function(){Tl.delete(r)})}}function eP(r){Sr(ji.prototype.isPrototypeOf(r),"Invalid argument `container`, expected instance of `Container`.");var e=Tl.get(r);if(Sr(!e,"createRoot should only be called once"),!e){var t=Ns.createContainer(r);e={pixiFiberContainer:t,reactRoot:{render:function(n){return Ns.updateContainer(n,t,void 0),Ns.getPublicRootInstance(t)},unmount:function(){JE(r),Tl.delete(r)}}},Tl.set(r,e)}return e.reactRoot}function _$(r,e,t){var n;return console.warn("Pixi React Deprecation Warning: render is deprecated, use createRoot instead"),t!==void 0&&console.warn("Pixi React Deprecation Warning: render callback no longer exists in React 18"),Tl.has(e)?n=Tl.get(e).reactRoot:n=eP(e),n.render(r)}function x$(r){JE(r)}function tf(){return tf=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},tf.apply(this,arguments)}function C$(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function w$(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,XE(n.key),n)}}function Ga(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function e4(r,e){return e4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e4(r,e)}function b$(r,e){if(e&&(Bi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ga(r)}function t4(r){return t4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t4(r)}var X4=Ht.createContext(null),tP=X4.Provider,rP=X4.Consumer,S$=function(r){var e=Ht.forwardRef(function(t,n){return Ht.createElement(rP,null,function(i){return Ht.createElement(r,tf({},t,{ref:n,app:i}))})});return e.displayName="withPIXIApp(".concat(r.displayName||r.name,")"),e};function A$(r){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,n=t4(r);
894if(e){var i=t4(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return b$(this,t)}}function ww(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hp(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ww(Object(t),!0).forEach(function(n){Pr(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ww(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var bw=function(){},nP={width:nr.number,height:nr.number,onMount:nr.func,onUnmount:nr.func,raf:nr.bool,renderOnComponentChange:nr.bool,children:nr.node,options:nr.shape({autoStart:nr.bool,width:nr.number,height:nr.number,useContextAlpha:nr.bool,backgroundAlpha:nr.number,autoDensity:nr.bool,antialias:nr.bool,preserveDrawingBuffer:nr.bool,resolution:nr.number,forceCanvas:nr.bool,backgroundColor:nr.number,clearBeforeRender:nr.bool,powerPreference:nr.string,sharedTicker:nr.bool,sharedLoader:nr.bool,resizeTo:function(r,e){var t=r[e];t&&Sr(t===window||t instanceof HTMLElement,"Invalid prop `resizeTo` of type ".concat(Bi(t),", expect `window` or an `HTMLElement`."))},view:function(r,e,t){var n=r[e];n&&Sr(n instanceof HTMLCanvasElement,"Invalid prop `view` of type ".concat(Bi(n),", supplied to ").concat(t,", expected `<canvas> Element`"))}})},T$={width:800,height:600,onMount:bw,onUnmount:bw,raf:!0,renderOnComponentChange:!0},Yy=function(r){(function(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),a&&e4(s,a)})(i,Ht.Component);var e,t,n=A$(i);function i(){var s;C$(this,i);for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return Pr(Ga(s=n.call.apply(n,[this].concat(o))),"_canvas",null),Pr(Ga(s),"_mediaQuery",null),Pr(Ga(s),"_ticker",null),Pr(Ga(s),"_needsUpdate",!0),Pr(Ga(s),"app",null),Pr(Ga(s),"updateSize",function(){var u=s.props,h=u.width,c=u.height,d=u.options;d!=null&&d.resolution||(s.app.renderer.resolution=window.devicePixelRatio,s.resetInteractionManager()),s.app.renderer.resize(h,c)}),Pr(Ga(s),"needsRenderUpdate",function(){s._needsUpdate=!0}),Pr(Ga(s),"renderStage",function(){var u=s.props,h=u.renderOnComponentChange;!u.raf&&h&&s._needsUpdate&&(s._needsUpdate=!1,s.app.renderer.render(s.app.stage))}),s}return e=i,(t=[{key:"componentDidMount",value:function(){var s=this.props,a=s.onMount,o=s.width,l=s.height,u=s.options,h=s.raf,c=s.renderOnComponentChange;this.app=new W4(hp(hp({width:o,height:l,view:this._canvas},u),{},{autoDensity:(u==null?void 0:u.autoDensity)!==!1})),this.app.ticker.autoStart=!1,this.app.ticker[h?"start":"stop"](),this.app.stage.__reactpixi={root:this.app.stage},this.mountNode=Ns.createContainer(this.app.stage),Ns.updateContainer(this.getChildren(),this.mountNode,this),a(this.app),u!=null&&u.autoDensity&&window.matchMedia&&(u==null?void 0:u.resolution)===void 0&&(this._mediaQuery=window.matchMedia("(-webkit-min-device-pixel-ratio: 1.3), (min-resolution: 120dpi)"),this._mediaQuery.addListener(this.updateSize)),c&&!h&&(this._ticker=new Wn,this._ticker.autoStart=!0,this._ticker.add(this.renderStage),this.app.stage.on("__REACT_PIXI_REQUEST_RENDER__",this.needsRenderUpdate)),this.updateSize(),this.renderStage()}},{key:"componentDidUpdate",value:function(s,a,o){var l,u=this.props,h=u.width,c=u.height,d=u.raf,f=u.renderOnComponentChange,g=u.options;(g==null?void 0:g.resolution)!==void 0&&(s==null?void 0:s.options.resolution)!==(g==null?void 0:g.resolution)&&(this.app.renderer.resolution=g.resolution,this.resetInteractionManager()),s.height===c&&s.width===h&&((l=s.options)===null||l===void 0?void 0:l.resolution)===(g==null?void 0:g.resolution)||this.updateSize(),s.raf!==d&&this.app.ticker[d?"start":"stop"](),Ns.updateContainer(this.getChildren(),this.mountNode,this),s.width===h&&s.height===c&&s.raf===d&&s.renderOnComponentChange===f&&s.options===g||(this._needsUpdate=!0,this.renderStage())}},{key:"resetInteractionManager",value:function(){var s=this.app.renderer.plugins.interaction;s!=null&&s.resolution&&(s.resolution=this.app.renderer.resolution)}},{key:"getChildren",value:function(){var s=this.props.children;return Ht.createElement(tP,{value:this.app},s)}},{key:"componentDidCatch",value:function(s,a){console.error("Error occurred in `Stage`."),console.error(s),console.error(a)}},{key:"componentWillUnmount",value:function(){this.props.onUnmount(this.app),this._ticker&&(this._ticker.remove(this.renderStage),this._ticker.destroy()),this.app.stage.off("__REACT_PIXI_REQUEST_RENDER__",this.needsRenderUpd
894ate),Ns.updateContainer(null,this.mountNode,this),this._mediaQuery&&(this._mediaQuery.removeListener(this.updateSize),this._mediaQuery=null),this.app.destroy()}},{key:"render",value:function(){var s,a,o=this,l=this.props.options;return l&&l.view?(Sr(l.view instanceof HTMLCanvasElement,"options.view needs to be a `HTMLCanvasElement`"),null):Ht.createElement("canvas",tf({},(s=this.props,a=[].concat(po(Object.keys(nP)),po(Object.keys(Vy))),Object.keys(s).filter(function(u){return!a.includes(u)}).reduce(function(u,h){return hp(hp({},u),{},Pr({},h,s[h]))},{})),{ref:function(u){return o._canvas=u}}))}}])&&w$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Yy.propTypes=nP,Yy.defaultProps=T$;var E$=Yy;function iP(){var r=X.useContext(X4);return Sr(r instanceof W4,"No Context found with `%s`. Make sure to wrap component with `%s`","Application","AppProvider"),r}function P$(r){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],t=iP();Sr(typeof r=="function","`useTick` needs a callback function."),Sr(t instanceof W4,"No Context found with `%s`. Make sure to wrap component with `%s`","Application","AppProvider");var n=X.useRef(null);X.useEffect(function(){n.current=r},[r]),X.useEffect(function(){if(e){var i=function(s){return n.current.apply(t.ticker,[s,t.ticker])};return t.ticker.add(i),function(){t.ticker&&t.ticker.remove(i)}}},[e])}function D$(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zy(r,e,t){return Zy=D$()?Reflect.construct.bind():function(n,i,s){var a=[null];a.push.apply(a,i);var o=new(Function.bind.apply(n,a));return s&&e4(o,s.prototype),o},Zy.apply(null,arguments)}var H$=["children","apply"];function Sw(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function dp(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Sw(Object(t),!0).forEach(function(n){Pr(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Sw(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var k$=function(r,e){Sr(Bi(e)==="object","Second argument needs to be an indexed object with { prop: Filter }");var t=Object.keys(e),n=function(i){var s=i.children,a=i.apply,o=Gl(i,H$),l=X.useRef(X.useMemo(function(){return t.map(function(c){var d,f=(o==null||(d=o[c])===null||d===void 0?void 0:d.construct)||[];return Zy(e[c],po(f))})},[t])),u=X.useMemo(function(){return t.reduce(function(c,d,f){return dp(dp({},c),{},Pr({},d,l.current[f]))},{})},[t]),h=X.useMemo(function(){return Object.keys(o).filter(ZE(YE(t))).reduce(function(c,d){return dp(dp({},c),{},Pr({},d,o[d]))},{})},[o,t]);return t.forEach(function(c,d){return Object.assign(l.current[d],o[c])}),a&&function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return d.every(function(g){return typeof g=="function"})}(a)&&a.call(r,u),Ht.createElement(r,tf({},h,{filters:l.current}),s)};return n.displayName="FilterWrapper",n.propTypes={children:nr.node,apply:nr.func},n},I$=yi.BitmapText,M$=yi.Container,R$=yi.Graphics,F$=yi.NineSlicePlane,L$=yi.ParticleContainer,O$=yi.Sprite,N$=yi.AnimatedSprite,B$=yi.Text,U$=yi.TilingSprite,$$=yi.SimpleMesh,z$=yi.SimpleRope;const j$=Object.freeze(Object.defineProperty({__proto__:null,AnimatedSprite:N$,AppConsumer:rP,AppContext:X4,AppProvider:tP,BitmapText:I$,Container:M$,Graphics:R$,NineSlicePlane:F$,ParticleContainer:L$,PixiComponent:h$,PixiFiber:Ns,SimpleMesh:$$,SimpleRope:z$,Sprite:O$,Stage:E$,TYPES:yi,Text:B$,TilingSprite:U$,applyDefaultProps:Aa,createRoot:eP,eventHandlers:J3,render:_$,unmountComponentAtNode:x$,useApp:iP,useTick:P$,withFilters:k$,withPixiApp:S$},Symbol.toStringTag,{value:"Module"})),V$=bb(j$);AE.exports=V$;var Vt=AE.exports;const ca="/images/particles/bubble.png",G$="/images/particles/soap.png",Xp="/images/particles/leaf.png",W$=()=>{const r=Vt.useApp(),{pixiViewStep:e}=xn(),t=[{particles:20,asset:ca,rotation:!1,scale:zM([1,.75,.5,.25,.1],"power2")},{particles:5,asset:G$,rotation:!0,scale:ge.utils.random(.25,1,!0)},{particles:10,asset:Xp,rotation:!0,scale:ge.utils.random(.25,1,!0)}],n=-1,i=-174,s=r.screen.height+174,a=ge.utils.random(r.screen.width/3,r.screen.width/3+r.screen.width/3,!0),o=ge.utils.random(1.5,2,!0),[l,u]=X.useState(t.map(h=>Array(h.particles).fill().map(()=>({x:a(),y:s+Math.random()*r.screen.height,vx:ge.utils.random(.1,1)*n,vy:o()*n,s:h.scale(),scale:h.scale,r:h.rotation&&Math.random()*360,vr:h.rotation&&ge.utils.random(-.01,.01),a:h.asset}))));return Vt.useTick(h=>{u(l.map(c=>c.map((d,f)=>({...d,x:(d.y<i?a():d.x)+Math[f%2?"sin":"cos"](d.y*.01)*d.vx,y:d.y<i?s:d.y+d.vy*h,vy:d.y<i?o()*n:d.vy,s:d.y<i?d.scale():d.s,r:d.r&&d.r+d.vr}))))}),B.jsx(B.Fragment,{children:l.map((h,c)=>B.jsx(Vt.ParticleContainer,{alpha:e===nc||e===Ws?1:.5,children:h.map(({x:d,y:f,s:g,r:y,a:v},_)=>B.jsx(Vt.Sprite,{x:d,y:f,scale:g,rotation:y,anchor:.5,image:v},_))},c))})},X$="/images/welcome/background.png";function Y$(r,e){const[t,n]=X.useState(r);return X.useEffect(()=>{const i=setTimeout(()=>{n(r)},e);return()=>{clearTimeout(i)}},[r,e]),t}function Z$(){const[r,e]=X.useState({x:0,y:0,elementX:0,elementY:0,elementPositionX:0,elementPositionY:0}),t=X.useRef(null);return X.useLayoutEffect(()=>{const n=i=>{var a;let s={x:i.pageX,y:i.pageY};if(((a=t.current)==null?void 0:a.nodeType)===Node.ELEMENT_NODE){const{left:o,top:l}=t.current.getBoundingClientRect(),u=o+window.scrollX,h=l+window.scrollY,c=i.pageX-u,d=i.pageY-h;s.elementX=c,s.elementY=d,s.elementPositionX=u,s.elementPositionY=h}e(o=>({...o,...s}))};return document.addEventListener("mousemove",n),()=>{document.removeEventListener("mousemove",n)}},[]),[r,t]}function q$(){const[r,e]=X.useState({width:null,height:null});return X.useLayoutEffect(()=>{const t=()=>{e({width:window.innerWidth,height:window.innerHeight})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),r}const Q$=()=>{const r=Vt.useApp(),{pixiViewTransition:e,pixiDeviceType:t}=xn(),[n,i]=X.useState({x:r.screen.width/2,y:r.screen.height/2-(t==="Desktop"?0:50)}),[s,a]=X.useState({value:0}),o=Y$(()=>
894{i({x:r.screen.width/2,y:r.screen.height/2-(t==="Desktop"?0:50)})},50);return X.useEffect(()=>(window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),[]),X.useEffect(()=>{ge.to(s,{value:t==="Desktop"?.75:r.screen.width/1024*1.75,duration:1.5,ease:"back.out",onUpdate:()=>a({...s})})},[]),X.useEffect(()=>{if(e!==Oh)return;const l=ge.timeline();l.to(n,{y:-r.screen.height/2,duration:2,ease:"expo.inOut",onUpdate:()=>i({...n})}),l.set(s,{value:0})},[e]),B.jsx(B.Fragment,{children:B.jsx(Vt.Sprite,{x:n.x,y:n.y,scale:s.value,anchor:.5,image:X$})})},K$=()=>{const[r,e]=X.useState({x:0,y:0,speed:0,verticalSpeed:0,horizontalSpeed:0,verticalDirection:0,horizontalDirection:0,acceleration:0,verticalAcceleration:0,horizontalAcceleration:0}),t=X.useRef({prevSpeed:0,prevVerticalSpeed:0,prevHorizontalSpeed:0,prevEvent:null,currentEvent:null}),n=X.useRef(0),i=X.useRef(0),s=X.useRef(null),a=X.useRef(!1),o=l=>{if(l-i.current<100)return;if(i.current=l,!t.current.currentEvent||!t.current.prevEvent){t.current.prevEvent=t.current.currentEvent;return}const u=t.current.currentEvent.screenX-t.current.prevEvent.screenX,h=t.current.currentEvent.screenY-t.current.prevEvent.screenY,c=Math.abs(u),d=Math.abs(h),f=Math.sqrt(c*c+d*d),g={x:t.current.currentEvent.clientX,y:t.current.currentEvent.clientY,speed:10*f,verticalSpeed:10*d,horizontalSpeed:10*c,verticalDirection:Math.sign(h),horizontalDirection:Math.sign(u),acceleration:10*(10*f-t.current.prevSpeed),verticalAcceleration:10*(10*d-t.current.prevVerticalSpeed),horizontalAcceleration:10*(10*c-t.current.prevHorizontalSpeed)};g.speed===0&&g.verticalSpeed===0&&g.horizontalSpeed===0&&g.acceleration===r.acceleration&&g.verticalAcceleration===r.verticalAcceleration&&g.horizontalAcceleration===r.horizontalAcceleration&&(a.current=!1),e(Object.assign({},g)),t.current.prevSpeed=g.speed,t.current.prevVerticalSpeed=g.verticalSpeed,t.current.prevHorizontalSpeed=g.horizontalSpeed,t.current.prevEvent=t.current.currentEvent};return X.useEffect(()=>{const l=c=>{t.current.currentEvent=c},u=()=>{if(a.current)return;a.current=!0;const c=d=>{a.current&&(s.current||(s.current=d),s.current=d,o(d),n.current=requestAnimationFrame(c))};n.current=requestAnimationFrame(c)},h=c=>{l(c),u()};return window.addEventListener("mousemove",h),()=>{window.removeEventListener("mousemove",h),cancelAnimationFrame(n.current)}},[]),r};function U_(r,e=0){X.useEffect(()=>{if(r)return ud.add(r,e),()=>ud.remove(r)},[r,e])}const J$=()=>{const r=Vt.useApp(),{pixiViewStep:e}=xn(),[t]=Z$(),{speed:n}=K$(),[i,s]=X.useState([]),a=X.useRef(0),o=-1;return U_(l=>{a.current=Math.floor(l),i.length!==0&&s(i.filter(u=>!u.d).map((u,h)=>({...u,x:u.x+Math[h%2?"sin":"cos"](l*.001)*u.vx,y:u.y+u.vy,d:u.y<u.deadline})))}),X.useEffect(()=>{e===Wd||n<800||a.current%3||s([...i,{x:t.x,y:t.y,vx:ge.utils.random(.1,1)*o,vy:ge.utils.random(.5,1)*
894o,s:ge.utils.random(.1,.25),d:!1,deadline:t.y-ge.utils.random(r.screen.height*.1,r.screen.height*.3)}])},[t]),B.jsx(B.Fragment,{children:B.jsx(Vt.ParticleContainer,{children:i.map(({x:l,y:u,s:h},c)=>B.jsx(Vt.Sprite,{x:l,y:u,scale:h,anchor:.5,image:ca},c))})})};var sP={exports:{}};/*!
895 * matter-js 0.19.0 by @liabru
896 * http://brm.io/matter-js/
897 * License MIT
898 * 
899 * The MIT License (MIT)
900 * 
901 * Copyright (c) Liam Brummitt and contributors.
902 * 
903 * Permission is hereby granted, free of charge, to any person obtaining a copy
904 * of this software and associated documentation files (the "Software"), to deal
905 * in the Software without restriction, including without limitation the rights
906 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
907 * copies of the Software, and to permit persons to whom the Software is
908 * furnished to do so, subject to the following conditions:
909 * 
910 * The above copyright notice and this permission notice shall be included in
911 * all copies or substantial portions of the Software.
912 * 
913 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
914 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
915 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
916 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
917 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
918 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
919 * THE SOFTWARE.
920 */(function(r,e){(function(n,i){r.exports=i()})(fn,function(){return function(t){var n={};function i(s){if(n[s])return n[s].exports;var a=n[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=n,i.d=function(s,a,o){i.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:o})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,a){if(a&1&&(s=i(s)),a&8||a&4&&typeof s=="object"&&s&&s.__esModule)return s;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:s}),a&2&&typeof s!="string")for(var l in s)i.d(o,l,(function(u){return s[u]}).bind(null,l));return o},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=20)}([function(t,n){var i={};t.exports=i,function(){i._baseDelta=1e3/60,i._nextId=0,i._seed=0,i._nowStartTime=+new Date,i._warnedOnce={},i._decomp=null,i.extend=function(a,o){var l,u;typeof o=="boolean"?(l=2,u=o):(l=1,u=!0);for(var h=l;h<arguments.length;h++){var c=arguments[h];if(c)for(var d in c)u&&c[d]&&c[d].constructor===Object&&(!a[d]||a[d].constructor===Object)?(a[d]=a[d]||{},i.extend(a[d],u,c[d])):a[d]=c[d]}return a},i.clone=function(a,o){return i.extend({},o,a)},i.keys=function(a){if(Object.keys)return Object.keys(a);var o=[];for(var l in a)o.push(l);return o},i.values=function(a){var o=[];if(Object.keys){for(var l=Object.keys(a),u=0;u<l.length;u++)o.push(a[l[u]]);return o}for(var h in a)o.push(a[h]);return o},i.get=function(a,o,l,u){o=o.split(".").slice(l,u);for(var h=0;h<o.length;h+=1)a=a[o[h]];return a},i.set=function(a,o,l,u,h){var c=o.split(".").slice(u,h);return i.get(a,o,0,-1)[c[c.length-1]]=l,l},i.shuffle=function(a){for(var o=a.length-1;o>0;o--){var l=Math.floor(i.random()*(o+1)),u=a[o];a[o]=a[l],a[l]=u}return a},i.choose=function(a){return a[Math.floor(i.random()*a.length)]},i.isElement=function(a){return typeof HTMLElement<"u"?a instanceof HTMLElement:!!(a&&a.nodeType&&a.nodeName)},i.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"},i.isFunction=function(a){return typeof a=="function"},i.isPlainObject=function(a){return typeof a=="object"&&a.constructor===Object},i.isString=function(a){return toString.call(a)==="[object String]"},i.clamp=function(a,o,l){return a<o?o:a>l?l:a},i.sign=function(a){return a<0?-1:1},i.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-i._nowStartTime},i.random=function(a,o){return a=typeof a<"u"?a:0,o=typeof o<"u"?o:1,a+s()*(o-a)};var s=function(){return i._seed=(i._seed*9301+49297)%233280,i._seed/233280};i.colorToNumber=function(a){return a=a.replace("#",""),a.length==3&&(a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)),parseInt(a,16)},i.logLevel=1,i.log=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.info=function(){console&&i.logLevel>0&&i.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warn=function(){console&&i.logLevel>0&&i.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},i.warnOnce=function(){var a=Array.prototype.slice.call(arguments).join(" ");i._warnedOnce[a]||(i.warn(a),i._warnedOnce[a]=!0)},i.deprecated=function(a,o,l){a[o]=i.chain(function(){i.warnOnce("🔅 deprecated 🔅",l)},a[o])},i.nextId=function(){return i._nextId++},i.indexOf=function(a,o){if(a.indexOf)return a.indexOf(o);for(var l=0;l<a.length;l++)if(a[l]===o)return l;return-1},i.map=function(a,o){if(a.map)return a.map(o);for(var l=[],u=0;u<a.length;
920u+=1)l.push(o(a[u]));return l},i.topologicalSort=function(a){var o=[],l=[],u=[];for(var h in a)!l[h]&&!u[h]&&i._topologicalSort(h,l,u,a,o);return o},i._topologicalSort=function(a,o,l,u,h){var c=u[a]||[];l[a]=!0;for(var d=0;d<c.length;d+=1){var f=c[d];l[f]||o[f]||i._topologicalSort(f,o,l,u,h)}l[a]=!1,o[a]=!0,h.push(a)},i.chain=function(){for(var a=[],o=0;o<arguments.length;o+=1){var l=arguments[o];l._chained?a.push.apply(a,l._chained):a.push(l)}var u=function(){for(var h,c=new Array(arguments.length),d=0,f=arguments.length;d<f;d++)c[d]=arguments[d];for(d=0;d<a.length;d+=1){var g=a[d].apply(h,c);typeof g<"u"&&(h=g)}return h};return u._chained=a,u},i.chainPathBefore=function(a,o,l){return i.set(a,o,i.chain(l,i.get(a,o)))},i.chainPathAfter=function(a,o,l){return i.set(a,o,i.chain(i.get(a,o),l))},i.setDecomp=function(a){i._decomp=a},i.getDecomp=function(){var a=i._decomp;try{!a&&typeof window<"u"&&(a=window.decomp),!a&&typeof fn<"u"&&(a=fn.decomp)}catch{a=null}return a}}()},function(t,n){var i={};t.exports=i,function(){i.create=function(s){var a={min:{x:0,y:0},max:{x:0,y:0}};return s&&i.update(a,s),a},i.update=function(s,a,o){s.min.x=1/0,s.max.x=-1/0,s.min.y=1/0,s.max.y=-1/0;for(var l=0;l<a.length;l++){var u=a[l];u.x>s.max.x&&(s.max.x=u.x),u.x<s.min.x&&(s.min.x=u.x),u.y>s.max.y&&(s.max.y=u.y),u.y<s.min.y&&(s.min.y=u.y)}o&&(o.x>0?s.max.x+=o.x:s.min.x+=o.x,o.y>0?s.max.y+=o.y:s.min.y+=o.y)},i.contains=function(s,a){return a.x>=s.min.x&&a.x<=s.max.x&&a.y>=s.min.y&&a.y<=s.max.y},i.overlaps=function(s,a){return s.min.x<=a.max.x&&s.max.x>=a.min.x&&s.max.y>=a.min.y&&s.min.y<=a.max.y},i.translate=function(s,a){s.min.x+=a.x,s.max.x+=a.x,s.min.y+=a.y,s.max.y+=a.y},i.shift=function(s,a){var o=s.max.x-s.min.x,l=s.max.y-s.min.y;s.min.x=a.x,s.max.x=a.x+o,s.min.y=a.y,s.max.y=a.y+l}}()},function(t,n){var i={};t.exports=i,function(){i.create=function(s,a){return{x:s||0,y:a||0}},i.clone=function(s){return{x:s.x,y:s.y}},i.magnitude=function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},i.magnitudeSquared=function(s){return s.x*s.x+s.y*s.y},i.rotate=function(s,a,o){var l=Math.cos(a),u=Math.sin(a);o||(o={});var h=s.x*l-s.y*u;return o.y=s.x*u+s.y*l,o.x=h,o},i.rotateAbout=function(s,a,o,l){var u=Math.cos(a),h=Math.sin(a);l||(l={});var c=o.x+((s.x-o.x)*u-(s.y-o.y)*h);return l.y=o.y+((s.x-o.x)*h+(s.y-o.y)*u),l.x=c,l},i.normalise=function(s){var a=i.magnitude(s);return a===0?{x:0,y:0}:{x:s.x/a,y:s.y/a}},i.dot=function(s,a){return s.x*a.x+s.y*a.y},i.cross=function(s,a){return s.x*a.y-s.y*a.x},i.cross3=function(s,a,o){return(a.x-s.x)*(o.y-s.y)-(a.y-s.y)*(o.x-s.x)},i.add=function(s,a,o){return o||(o={}),o.x=s.x+a.x,o.y=s.y+a.y,o},i.sub=function(s,a,o){return o||(o={}),o.x=s.x-a.x,o.y=s.y-a.y,o},i.mult=function(s,a){return{x:s.x*a,y:s.y*a}},i.div=function(s,a){return{x:s.x/a,y:s.y/a}},i.perp=function(s,a){return a=a===!0?-1:1,{x:a*-s.y,y:a*s.x}},i.neg=function(s){return{x:-s.x,y:-s.y}},i.angle=function(s,a){return Math.atan2(a.y-s.y,a.x-s.x)},i._temp=[i.create(),i.create(),i.create(),i.create(),i.create(),i.create()]}()},function(t,n,i){var s={};t.exports=s;var a=i(2),o=i(0);(function(){s.create=function(l,u){for(var h=[],c=0;c<l.length;c++){var d=l[c],f={x:d.x,y:d.y,index:c,body:u,isInternal:!1};h.push(f)}return h},s.fromPath=function(l,u){var h=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,c=[];return l.replace(h,function(d,f,g){c.push({x:parseFloat(f),y:parseFloat(g)})}),s.create(c,u)},s.centre=function(l){for(var u=s.area(l,!0),h={x:0,y:0},c,d,f,g=0;g<l.length;g++)f=(g+1)%l.length,c=a.cross(l[g],l[f]),d=a.mult(a.add(l[g],l[f]),c),h=a.add(h,d);return a.div(h,6*u)},s.mean=function(l){for(var u={x:0,y:0},h=0;h<l.length;h++)u.x+=l[h].x,u.y+=l[h].y;return a.div(u,l.length)},s.area=function(l,u){for(var h=0,c=l.length-1,d=0;d<l.length;d++)h+=(l[c].x-l[d].x)*(l[c].y+l[d].y),c=d;return u?h/2:Math.abs(h)/2},s.inertia=function(l,u){for(var h=0,c=0,d=l,f,g,y=0;y<d.length;y++)g=(y+1)%d.length,f=Math.abs(a.cross(d[g],d[y])),h+=f*(a.dot(d[g],d[g])+a.dot(d[g],d[y])+a.dot(d[y],d[y])),c+=f;return u/6*(h/c)},s.translate=function(l,u,h){h=typeof h<"u"?h:1;var c=l.length,d=u.x*h,f=u.y*h,g;for(g=0;g<c;g++)l[g].x+=d,l[g].y+=f;return l},s.rotate=function(l,u,h){if(u!==0){var c=Math.cos(u),d=Math.sin(u),f=h.x,g=h.y,y=l.length,v,_,x,w;for(w=0;w<y;w++)v=l[w],_=v.x-f,x=v.y-g,v.x=f+(_*c-x*d),v.y=g+(_*d+x*c);return l}},s.contains=function(l,u){for(var h=u.x,c=u.y,d=l.length,f=l[d-1],g,y=0;y<d;y++){if(g=l[y],(h-f.x)*(g.y-f.y)+(c-f.y)*(f.x-g.x)>0)return!1;f=g}return!0},s.scale=function(l,u,h,c){if(u===1&&h===1)return l;c=c||s.centre(l);for(var d,f,g=0;g<l.length;g++)d=l[g],f=a.sub(d,c),l[g].x=c.x+f.x*u,l[g].y=c.y+f.y*h;return l},s.chamfer=function(l,u,h,c,d){typeof u=="number"?u=[u]:u=u||[8],h=typeof h<"u"?h:-1,c=c||2,d=d||14;
920for(var f=[],g=0;g<l.length;g++){var y=l[g-1>=0?g-1:l.length-1],v=l[g],_=l[(g+1)%l.length],x=u[g<u.length?g:u.length-1];if(x===0){f.push(v);continue}var w=a.normalise({x:v.y-y.y,y:y.x-v.x}),S=a.normalise({x:_.y-v.y,y:v.x-_.x}),b=Math.sqrt(2*Math.pow(x,2)),E=a.mult(o.clone(w),x),D=a.normalise(a.mult(a.add(w,S),.5)),P=a.sub(v,a.mult(D,b)),I=h;h===-1&&(I=Math.pow(x,.32)*1.75),I=o.clamp(I,c,d),I%2===1&&(I+=1);for(var R=Math.acos(a.dot(w,S)),U=R/I,N=0;N<I;N++)f.push(a.add(a.rotate(E,U*N),P))}return f},s.clockwiseSort=function(l){var u=s.mean(l);return l.sort(function(h,c){return a.angle(u,h)-a.angle(u,c)}),l},s.isConvex=function(l){var u=0,h=l.length,c,d,f,g;if(h<3)return null;for(c=0;c<h;c++)if(d=(c+1)%h,f=(c+2)%h,g=(l[d].x-l[c].x)*(l[f].y-l[d].y),g-=(l[d].y-l[c].y)*(l[f].x-l[d].x),g<0?u|=1:g>0&&(u|=2),u===3)return!1;return u!==0?!0:null},s.hull=function(l){var u=[],h=[],c,d;for(l=l.slice(0),l.sort(function(f,g){var y=f.x-g.x;return y!==0?y:f.y-g.y}),d=0;d<l.length;d+=1){for(c=l[d];h.length>=2&&a.cross3(h[h.length-2],h[h.length-1],c)<=0;)h.pop();h.push(c)}for(d=l.length-1;d>=0;d-=1){for(c=l[d];u.length>=2&&a.cross3(u[u.length-2],u[u.length-1],c)<=0;)u.pop();u.push(c)}return u.pop(),h.pop(),u.concat(h)}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(2),l=i(7),u=i(0),h=i(1),c=i(11);(function(){s._timeCorrection=!0,s._inertiaScale=4,s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,s._baseDelta=1e3/60,s.create=function(f){var g={id:u.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:a.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},y=u.extend(g,f);return d(y,f),y},s.nextGroup=function(f){return f?s._nextNonCollidingGroupId--:s._nextCollidingGroupId++},s.nextCategory=function(){return s._nextCategory=s._nextCategory<<1,s._nextCategory};var d=function(f,g){g=g||{},s.set(f,{bounds:f.bounds||h.create(f.vertices),positionPrev:f.positionPrev||o.clone(f.position),anglePrev:f.anglePrev||f.angle,vertices:f.vertices,parts:f.parts||[f],isStatic:f.isStatic,isSleeping:f.isSleeping,parent:f.parent||f}),a.rotate(f.vertices,f.angle,f.position),c.rotate(f.axes,f.angle),h.update(f.bounds,f.vertices,f.velocity),s.set(f,{axes:g.axes||f.axes,area:g.area||f.area,mass:g.mass||f.mass,inertia:g.inertia||f.inertia});var y=f.isStatic?"#14151f":u.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),v=f.isStatic?"#555":"#ccc",_=f.isStatic&&f.render.fillStyle===null?1:0;f.render.fillStyle=f.render.fillStyle||y,f.render.strokeStyle=f.render.strokeStyle||v,f.render.lineWidth=f.render.lineWidth||_,f.render.sprite.xOffset+=-(f.bounds.min.x-f.position.x)/(f.bounds.max.x-f.bounds.min.x),f.render.sprite.yOffset+=-(f.bounds.min.y-f.position.y)/(f.bounds.max.y-f.bounds.min.y)};s.set=function(f,g,y){var v;typeof g=="string"&&(v=g,g={},g[v]=y);for(v in g)if(Object.prototype.hasOwnProperty.call(g,v))switch(y=g[v],v){case"isStatic":s.setStatic(f,y);break;case"isSleeping":l.set(f,y);break;case"mass":s.setMass(f,y);break;case"density":s.setDensity(f,y);break;case"inertia":s.setInertia(f,y);break;case"vertices":s.setVertices(f,y);break;case"position":s.setPosition(f,y);break;case"angle":s.setAngle(f,y);break;case"velocity":s.setVelocity(f,y);break;case"angularVelocity":s.setAngularVelocity(f,y);break;case"speed":s.setSpeed(f,y);break;case"angularSpeed":s.setAngularSpeed(f,y);break;case"parts":s.setParts(f,y);break;case"centre":s.setCentre(f,y);break;default:f[v]=y}},s.setStatic=function(f,g){for(var y=0;y<f.parts.length;y++){var v=f.parts[y];v.isStatic=g,g?(v._original={restitution:v.restitution,friction:v.friction,mass:v.mass,inertia:v.inertia,density:v.density,inverseMass:v.inverseMass,inverseInertia:v.inverseInertia},v.restitution=0,v.friction=1,v.mass=v.inertia=v.density=1/0,v.inverseMass=v.inverseInertia=0,v.positionPrev.x=v.position.x,v.positionPrev.y=v.position.y,v.anglePrev=v.angle,v.angularVelocity=0,v.speed=0,v.angularSpeed=0,v.motion=0):v._original&&(v.restitution=v._original.restitution,v.friction=v._original.friction,v.mass=v._original.mass,v.inertia=v._original.inertia,v.density=v._original.density,v.inverseMass=v._original.inverseMass,v.inverseInertia=v._original.inverseInertia,v._original=null)}},s.setMass=function(f,g){var y=f.inertia/(f.mass/6);f.inertia=y*(g/6),f.inverseInertia=1/f.inertia,f.mass=g,f.inverseMass=1/f.mass,f.density=f.mass/f.area},s.setDensity=function(f,g){s.setMass(f,g*f.area),f.density=g},s.setInertia=function(f,g){f.inertia=g,f.inverseInertia=1/f.inertia},s.setVertices=function(f,g){g[0].body===f?f.vertices=g:f.vertices=a.create(g,f),f.axes=c.fromVertices(f.vertices),f.area=a.area(f.vertices),s.setMass(f,f.density
vendor: 5,590 bytes, line 920
920*f.area);var y=a.centre(f.vertices);a.translate(f.vertices,y,-1),s.setInertia(f,s._inertiaScale*a.inertia(f.vertices,f.mass)),a.translate(f.vertices,f.position),h.update(f.bounds,f.vertices,f.velocity)},s.setParts=function(f,g,y){var v;for(g=g.slice(0),f.parts.length=0,f.parts.push(f),f.parent=f,v=0;v<g.length;v++){var _=g[v];_!==f&&(_.parent=f,f.parts.push(_))}if(f.parts.length!==1){if(y=typeof y<"u"?y:!0,y){var x=[];for(v=0;v<g.length;v++)x=x.concat(g[v].vertices);a.clockwiseSort(x);var w=a.hull(x),S=a.centre(w);s.setVertices(f,w),a.translate(f.vertices,S)}var b=s._totalProperties(f);f.area=b.area,f.parent=f,f.position.x=b.centre.x,f.position.y=b.centre.y,f.positionPrev.x=b.centre.x,f.positionPrev.y=b.centre.y,s.setMass(f,b.mass),s.setInertia(f,b.inertia),s.setPosition(f,b.centre)}},s.setCentre=function(f,g,y){y?(f.positionPrev.x+=g.x,f.positionPrev.y+=g.y,f.position.x+=g.x,f.position.y+=g.y):(f.positionPrev.x=g.x-(f.position.x-f.positionPrev.x),f.positionPrev.y=g.y-(f.position.y-f.positionPrev.y),f.position.x=g.x,f.position.y=g.y)},s.setPosition=function(f,g,y){var v=o.sub(g,f.position);y?(f.positionPrev.x=f.position.x,f.positionPrev.y=f.position.y,f.velocity.x=v.x,f.velocity.y=v.y,f.speed=o.magnitude(v)):(f.positionPrev.x+=v.x,f.positionPrev.y+=v.y);for(var _=0;_<f.parts.length;_++){var x=f.parts[_];x.position.x+=v.x,x.position.y+=v.y,a.translate(x.vertices,v),h.update(x.bounds,x.vertices,f.velocity)}},s.setAngle=function(f,g,y){var v=g-f.angle;y?(f.anglePrev=f.angle,f.angularVelocity=v,f.angularSpeed=Math.abs(v)):f.anglePrev+=v;for(var _=0;_<f.parts.length;_++){var x=f.parts[_];x.angle+=v,a.rotate(x.vertices,v,f.position),c.rotate(x.axes,v),h.update(x.bounds,x.vertices,f.velocity),_>0&&o.rotateAbout(x.position,v,f.position,x.position)}},s.setVelocity=function(f,g){var y=f.deltaTime/s._baseDelta;f.positionPrev.x=f.position.x-g.x*y,f.positionPrev.y=f.position.y-g.y*y,f.velocity.x=(f.position.x-f.positionPrev.x)/y,f.velocity.y=(f.position.y-f.positionPrev.y)/y,f.speed=o.magnitude(f.velocity)},s.getVelocity=function(f){var g=s._baseDelta/f.deltaTime;return{x:(f.position.x-f.positionPrev.x)*g,y:(f.position.y-f.positionPrev.y)*g}},s.getSpeed=function(f){return o.magnitude(s.getVelocity(f))},s.setSpeed=function(f,g){s.setVelocity(f,o.mult(o.normalise(s.getVelocity(f)),g))},s.setAngularVelocity=function(f,g){var y=f.deltaTime/s._baseDelta;f.anglePrev=f.angle-g*y,f.angularVelocity=(f.angle-f.anglePrev)/y,f.angularSpeed=Math.abs(f.angularVelocity)},s.getAngularVelocity=function(f){return(f.angle-f.anglePrev)*s._baseDelta/f.deltaTime},s.getAngularSpeed=function(f){return Math.abs(s.getAngularVelocity(f))},s.setAngularSpeed=function(f,g){s.setAngularVelocity(f,u.sign(s.getAngularVelocity(f))*g)},s.translate=function(f,g,y){s.setPosition(f,o.add(f.position,g),y)},s.rotate=function(f,g,y,v){if(!y)s.setAngle(f,f.angle+g,v);else{var _=Math.cos(g),x=Math.sin(g),w=f.position.x-y.x,S=f.position.y-y.y;s.setPosition(f,{x:y.x+(w*_-S*x),y:y.y+(w*x+S*_)},v),s.setAngle(f,f.angle+g,v)}},s.scale=function(f,g,y,v){var _=0,x=0;v=v||f.position;for(var w=0;w<f.parts.length;w++){var S=f.parts[w];a.scale(S.vertices,g,y,v),S.axes=c.fromVertices(S.vertices),S.area=a.area(S.vertices),s.setMass(S,f.density*S.area),a.translate(S.vertices,{x:-S.position.x,y:-S.position.y}),s.setInertia(S,s._inertiaScale*a.inertia(S.vertices,S.mass)),a.translate(S.vertices,{x:S.position.x,y:S.position.y}),w>0&&(_+=S.area,x+=S.inertia),S.position.x=v.x+(S.position.x-v.x)*g,S.position.y=v.y+(S.position.y-v.y)*y,h.update(S.bounds,S.vertices,f.velocity)}f.parts.length>1&&(f.area=_,f.isStatic||(s.setMass(f,f.density*_),s.setInertia(f,x))),f.circleRadius&&(g===y?f.circleRadius*=g:f.circleRadius=null)},s.update=function(f,g){g=(typeof g<"u"?g:1e3/60)*f.timeScale;var y=g*g,v=s._timeCorrection?g/(f.deltaTime||g):1,_=1-f.frictionAir*(g/u._baseDelta),x=(f.position.x-f.positionPrev.x)*v,w=(f.position.y-f.positionPrev.y)*v;f.velocity.x=x*_+f.force.x/f.mass*y,f.velocity.y=w*_+f.force.y/f.mass*y,f.positionPrev.x=f.position.x,f.positionPrev.y=f.position.y,f.position.x+=f.velocity.x,f.position.y+=f.velocity.y,f.deltaTime=g,f.angularVelocity=(f.angle-f.anglePrev)*_*v+f.torque/f.inertia*y,f.anglePrev=f.angle,f.angle+=f.angularVelocity;for(var S=0;S<f.parts.length;S++){var b=f.parts[S];a.translate(b.vertices,f.velocity),S>0&&(b.position.x+=f.velocity.x,b.position.y+=f.velocity.y),f.angularVelocity!==0&&(a.rotate(b.vertices,f.angularVelocity,f.position),c.rotate(b.axes,f.angularVelocity),S>0&&o.rotateAbout(b.position,f.angularVelocity,f.position,b.position)),h.update(b.bounds,b.vertices,f.velocity)}},s.updateVelocities=function(f){var g=s._baseDelta/f.deltaTime,y=f.velocity;y.x=(f.position.x-f.positionPrev.x)*g,y.y=(f.position.y-f.positionPrev.y)*g,f.speed=Math.sqrt(y.x*y.x+y.y*y.y),f.angularVelocity=(f.angle-f.anglePrev)*g,f.angularSpeed=Math.abs(f.angularVelocity)},s.applyForce=function(f,g,y){var v={x:g.x-f.position.x,y:g.y-f.position.y};f.force.x+=y.x,f.force.y+=y.y,f.torque+=v.x*y.y-v.y*y.x},s._totalProperties=function(f){for(var g={mass:0,area:0,inertia:0,centre:{x:0,y:0}},y=f.parts.length===1?0:1;y<f.parts.length;y++){var v=f.parts[y],_=v.mass!==1/0?v.mass:1;g.mass+=_,g.area+=v.area,g.inertia+=v.inertia,g.centre=o.add(g.centre,o.mult(v.position,_))}return g.centre=o.div(g.centre,g.mass),g}})()},function(t,n,i){var s={};t.exports=s;var a=i(0);(function(){s.on=function(o,l,u){for(var h=l.split(" "),c,d=0;d<h.length;d++)c=h[d],o.events=o.events||{},o.events[c]=o.events[c]||[],o.events[c].push(u);return u},s.off=function(o,l,u){if(!l){o.events={};return}
920typeof l=="function"&&(u=l,l=a.keys(o.events).join(" "));for(var h=l.split(" "),c=0;c<h.length;c++){var d=o.events[h[c]],f=[];if(u&&d)for(var g=0;g<d.length;g++)d[g]!==u&&f.push(d[g]);o.events[h[c]]=f}},s.trigger=function(o,l,u){var h,c,d,f,g=o.events;if(g&&a.keys(g).length>0){u||(u={}),h=l.split(" ");for(var y=0;y<h.length;y++)if(c=h[y],d=g[c],d){f=a.clone(u,!1),f.name=c,f.source=o;for(var v=0;v<d.length;v++)d[v].apply(o,[f])}}}})()},function(t,n,i){var s={};t.exports=s;var a=i(5),o=i(0),l=i(1),u=i(4);(function(){s.create=function(h){return o.extend({id:o.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},h)},s.setModified=function(h,c,d,f){if(h.isModified=c,c&&h.cache&&(h.cache.allBodies=null,h.cache.allConstraints=null,h.cache.allComposites=null),d&&h.parent&&s.setModified(h.parent,c,d,f),f)for(var g=0;g<h.composites.length;g++){var y=h.composites[g];s.setModified(y,c,d,f)}},s.add=function(h,c){var d=[].concat(c);a.trigger(h,"beforeAdd",{object:c});for(var f=0;f<d.length;f++){var g=d[f];switch(g.type){case"body":if(g.parent!==g){o.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}s.addBody(h,g);break;case"constraint":s.addConstraint(h,g);break;case"composite":s.addComposite(h,g);break;case"mouseConstraint":s.addConstraint(h,g.constraint);break}}return a.trigger(h,"afterAdd",{object:c}),h},s.remove=function(h,c,d){var f=[].concat(c);a.trigger(h,"beforeRemove",{object:c});for(var g=0;g<f.length;g++){var y=f[g];switch(y.type){case"body":s.removeBody(h,y,d);break;case"constraint":s.removeConstraint(h,y,d);break;case"composite":s.removeComposite(h,y,d);break;case"mouseConstraint":s.removeConstraint(h,y.constraint);break}}return a.trigger(h,"afterRemove",{object:c}),h},s.addComposite=function(h,c){return h.composites.push(c),c.parent=h,s.setModified(h,!0,!0,!1),h},s.removeComposite=function(h,c,d){var f=o.indexOf(h.composites,c);if(f!==-1&&s.removeCompositeAt(h,f),d)for(var g=0;g<h.composites.length;g++)s.removeComposite(h.composites[g],c,!0);return h},s.removeCompositeAt=function(h,c){return h.composites.splice(c,1),s.setModified(h,!0,!0,!1),h},s.addBody=function(h,c){return h.bodies.push(c),s.setModified(h,!0,!0,!1),h},s.removeBody=function(h,c,d){var f=o.indexOf(h.bodies,c);if(f!==-1&&s.removeBodyAt(h,f),d)for(var g=0;g<h.composites.length;g++)s.removeBody(h.composites[g],c,!0);return h},s.removeBodyAt=function(h,c){return h.bodies.splice(c,1),s.setModified(h,!0,!0,!1),h},s.addConstraint=function(h,c){return h.constraints.push(c),s.setModified(h,!0,!0,!1),h},s.removeConstraint=function(h,c,d){var f=o.indexOf(h.constraints,c);if(f!==-1&&s.removeConstraintAt(h,f),d)for(var g=0;g<h.composites.length;g++)s.removeConstraint(h.composites[g],c,!0);return h},s.removeConstraintAt=function(h,c){return h.constraints.splice(c,1),s.setModified(h,!0,!0,!1),h},s.clear=function(h,c,d){if(d)for(var f=0;f<h.composites.length;f++)s.clear(h.composites[f],c,!0);return c?h.bodies=h.bodies.filter(function(g){return g.isStatic}):h.bodies.length=0,h.constraints.length=0,h.composites.length=0,s.setModified(h,!0,!0,!1),h},s.allBodies=function(h){if(h.cache&&h.cache.allBodies)return h.cache.allBodies;for(var c=[].concat(h.bodies),d=0;d<h.composites.length;d++)c=c.concat(s.allBodies(h.composites[d]));return h.cache&&(h.cache.allBodies=c),c},s.allConstraints=function(h){if(h.cache&&h.cache.allConstraints)return h.cache.allConstraints;for(var c=[].concat(h.constraints),d=0;d<h.composites.length;
920d++)c=c.concat(s.allConstraints(h.composites[d]));return h.cache&&(h.cache.allConstraints=c),c},s.allComposites=function(h){if(h.cache&&h.cache.allComposites)return h.cache.allComposites;for(var c=[].concat(h.composites),d=0;d<h.composites.length;d++)c=c.concat(s.allComposites(h.composites[d]));return h.cache&&(h.cache.allComposites=c),c},s.get=function(h,c,d){var f,g;switch(d){case"body":f=s.allBodies(h);break;case"constraint":f=s.allConstraints(h);break;case"composite":f=s.allComposites(h).concat(h);break}return f?(g=f.filter(function(y){return y.id.toString()===c.toString()}),g.length===0?null:g[0]):null},s.move=function(h,c,d){return s.remove(h,c),s.add(d,c),h},s.rebase=function(h){for(var c=s.allBodies(h).concat(s.allConstraints(h)).concat(s.allComposites(h)),d=0;d<c.length;d++)c[d].id=o.nextId();return h},s.translate=function(h,c,d){for(var f=d?s.allBodies(h):h.bodies,g=0;g<f.length;g++)u.translate(f[g],c);return h},s.rotate=function(h,c,d,f){for(var g=Math.cos(c),y=Math.sin(c),v=f?s.allBodies(h):h.bodies,_=0;_<v.length;_++){var x=v[_],w=x.position.x-d.x,S=x.position.y-d.y;u.setPosition(x,{x:d.x+(w*g-S*y),y:d.y+(w*y+S*g)}),u.rotate(x,c)}return h},s.scale=function(h,c,d,f,g){for(var y=g?s.allBodies(h):h.bodies,v=0;v<y.length;v++){var _=y[v],x=_.position.x-f.x,w=_.position.y-f.y;u.setPosition(_,{x:f.x+x*c,y:f.y+w*d}),u.scale(_,c,d)}return h},s.bounds=function(h){for(var c=s.allBodies(h),d=[],f=0;f<c.length;f+=1){var g=c[f];d.push(g.bounds.min,g.bounds.max)}return l.create(d)}})()},function(t,n,i){var s={};t.exports=s;var a=i(4),o=i(5),l=i(0);(function(){s._motionWakeThreshold=.18,s._motionSleepThreshold=.08,s._minBias=.9,s.update=function(u,h){for(var c=h/l._baseDelta,d=s._motionSleepThreshold,f=0;f<u.length;f++){var g=u[f],y=a.getSpeed(g),v=a.getAngularSpeed(g),_=y*y+v*v;if(g.force.x!==0||g.force.y!==0){s.set(g,!1);continue}var x=Math.min(g.motion,_),w=Math.max(g.motion,_);g.motion=s._minBias*x+(1-s._minBias)*w,g.sleepThreshold>0&&g.motion<d?(g.sleepCounter+=1,g.sleepCounter>=g.sleepThreshold/c&&s.set(g,!0)):g.sleepCounter>0&&(g.sleepCounter-=1)}},s.afterCollisions=function(u){for(var h=s._motionSleepThreshold,c=0;c<u.length;c++){var d=u[c];if(d.isActive){var f=d.collision,g=f.bodyA.parent,y=f.bodyB.parent;if(!(g.isSleeping&&y.isSleeping||g.isStatic||y.isStatic)&&(g.isSleeping||y.isSleeping)){var v=g.isSleeping&&!g.isStatic?g:y,_=v===g?y:g;!v.isStatic&&_.motion>h&&s.set(v,!1)}}}},s.set=function(u,h){var c=u.isSleeping;h?(u.isSleeping=!0,u.sleepCounter=u.sleepThreshold,u.positionImpulse.x=0,u.positionImpulse.y=0,u.positionPrev.x=u.position.x,u.positionPrev.y=u.position.y,u.anglePrev=u.angle,u.speed=0,u.angularSpeed=0,u.motion=0,c||o.trigger(u,"sleepStart")):(u.isSleeping=!1,u.sleepCounter=0,c&&o.trigger(u,"sleepEnd"))}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(9);(function(){var l=[],u={overlap:0,axis:null},h={overlap:0,axis:null};s.create=function(c,d){return{pair:null,collided:!1,bodyA:c,bodyB:d,parentA:c.parent,parentB:d.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},s.collides=function(c,d,f){if(s._overlapAxes(u,c.vertices,d.vertices,c.axes),u.overlap<=0||(s._overlapAxes(h,d.vertices,c.vertices,d.axes),h.overlap<=0))return null;var g=f&&f.table[o.id(c,d)],y;g?y=g.collision:(y=s.create(c,d),y.collided=!0,y.bodyA=c.id<d.id?c:d,y.bodyB=c.id<d.id?d:c,y.parentA=y.bodyA.parent,y.parentB=y.bodyB.parent),c=y.bodyA,d=y.bodyB;var v;u.overlap<h.overlap?v=u:v=h;var _=y.normal,x=y.supports,w=v.axis,S=w.x,b=w.y;S*(d.position.x-c.position.x)+b*(d.position.y-c.position.y)<0?(_.x=S,_.y=b):(_.x=-S,_.y=-b),y.tangent.x=-_.y,y.tangent.y=_.x,y.depth=v.overlap,y.penetration.x=_.x*y.depth,y.penetration.y=_.y*y.depth;var E=s._findSupports(c,d,_,1),D=0;if(a.contains(c.vertices,E[0])&&(x[D++]=E[0]),a.contains(c.vertices,E[1])&&(x[D++]=E[1]),D<2){var P=s._findSupports(d,c,_,-1);a.contains(d.vertices,P[0])&&(x[D++]=P[0]),D<2&&a.contains(d.vertices,P[1])&&(x[D++]=P[1])}return D===0&&(x[D++]=E[0]),x.length=D,y},s._overlapAxes=function(c,d,f,g){var y=d.length,v=f.length,_=d[0].x,x=d[0].y,w=f[0].x,S=f[0].y,b=g.length,E=Number.MAX_VALUE,D=0,P,I,R,U,N,F;for(N=0;N<b;N++){var O=g[N],V=O.x,q=O.y,Z=_*V+x*q,j=w*V+S*q,Y=Z,G=j;for(F=1;F<y;F+=1)U=d[F].x*V+d[F].y*q,U>Y?Y=U:U<Z&&(Z=U);for(F=1;F<v;F+=1)U=f[F].x*V+f[F].y*q,U>G?G=U:U<j&&(j=U);if(I=Y-j,R=G-Z,P=I<R?I:R,P<E&&(E=P,D=N,P<=0))break}c.axis=g[D],c.overlap=E}
920,s._projectToAxis=function(c,d,f){for(var g=d[0].x*f.x+d[0].y*f.y,y=g,v=1;v<d.length;v+=1){var _=d[v].x*f.x+d[v].y*f.y;_>y?y=_:_<g&&(g=_)}c.min=g,c.max=y},s._findSupports=function(c,d,f,g){var y=d.vertices,v=y.length,_=c.position.x,x=c.position.y,w=f.x*g,S=f.y*g,b=Number.MAX_VALUE,E,D,P,I,R;for(R=0;R<v;R+=1)D=y[R],I=w*(_-D.x)+S*(x-D.y),I<b&&(b=I,E=D);return P=y[(v+E.index-1)%v],b=w*(_-P.x)+S*(x-P.y),D=y[(E.index+1)%v],w*(_-D.x)+S*(x-D.y)<b?(l[0]=E,l[1]=D,l):(l[0]=E,l[1]=P,l)}})()},function(t,n,i){var s={};t.exports=s;var a=i(16);(function(){s.create=function(o,l){var u=o.bodyA,h=o.bodyB,c={id:s.id(u,h),bodyA:u,bodyB:h,collision:o,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:u.isSensor||h.isSensor,timeCreated:l,timeUpdated:l,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return s.update(c,o,l),c},s.update=function(o,l,u){var h=o.contacts,c=l.supports,d=o.activeContacts,f=l.parentA,g=l.parentB,y=f.vertices.length;o.isActive=!0,o.timeUpdated=u,o.collision=l,o.separation=l.depth,o.inverseMass=f.inverseMass+g.inverseMass,o.friction=f.friction<g.friction?f.friction:g.friction,o.frictionStatic=f.frictionStatic>g.frictionStatic?f.frictionStatic:g.frictionStatic,o.restitution=f.restitution>g.restitution?f.restitution:g.restitution,o.slop=f.slop>g.slop?f.slop:g.slop,l.pair=o,d.length=0;for(var v=0;v<c.length;v++){var _=c[v],x=_.body===f?_.index:y+_.index,w=h[x];w?d.push(w):d.push(h[x]=a.create(_))}},s.setActive=function(o,l,u){l?(o.isActive=!0,o.timeUpdated=u):(o.isActive=!1,o.activeContacts.length=0)},s.id=function(o,l){return o.id<l.id?"A"+o.id+"B"+l.id:"A"+l.id+"B"+o.id}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(2),l=i(7),u=i(1),h=i(11),c=i(0);(function(){s._warming=.4,s._torqueDampen=1,s._minLength=1e-6,s.create=function(d){var f=d;f.bodyA&&!f.pointA&&(f.pointA={x:0,y:0}),f.bodyB&&!f.pointB&&(f.pointB={x:0,y:0});var g=f.bodyA?o.add(f.bodyA.position,f.pointA):f.pointA,y=f.bodyB?o.add(f.bodyB.position,f.pointB):f.pointB,v=o.magnitude(o.sub(g,y));f.length=typeof f.length<"u"?f.length:v,f.id=f.id||c.nextId(),f.label=f.label||"Constraint",f.type="constraint",f.stiffness=f.stiffness||(f.length>0?1:.7),f.damping=f.damping||0,f.angularStiffness=f.angularStiffness||0,f.angleA=f.bodyA?f.bodyA.angle:f.angleA,f.angleB=f.bodyB?f.bodyB.angle:f.angleB,f.plugin={};var _={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return f.length===0&&f.stiffness>.1?(_.type="pin",_.anchors=!1):f.stiffness<.9&&(_.type="spring"),f.render=c.extend(_,f.render),f},s.preSolveAll=function(d){for(var f=0;f<d.length;f+=1){var g=d[f],y=g.constraintImpulse;g.isStatic||y.x===0&&y.y===0&&y.angle===0||(g.position.x+=y.x,g.position.y+=y.y,g.angle+=y.angle)}},s.solveAll=function(d,f){for(var g=c.clamp(f/c._baseDelta,0,1),y=0;y<d.length;y+=1){var v=d[y],_=!v.bodyA||v.bodyA&&v.bodyA.isStatic,x=!v.bodyB||v.bodyB&&v.bodyB.isStatic;(_||x)&&s.solve(d[y],g)}for(y=0;y<d.length;y+=1)v=d[y],_=!v.bodyA||v.bodyA&&v.bodyA.isStatic,x=!v.bodyB||v.bodyB&&v.bodyB.isStatic,!_&&!x&&s.solve(d[y],g)},s.solve=function(d,f){var g=d.bodyA,y=d.bodyB,v=d.pointA,_=d.pointB;if(!(!g&&!y)){g&&!g.isStatic&&(o.rotate(v,g.angle-d.angleA,v),d.angleA=g.angle),y&&!y.isStatic&&(o.rotate(_,y.angle-d.angleB,_),d.angleB=y.angle);var x=v,w=_;if(g&&(x=o.add(g.position,v)),y&&(w=o.add(y.position,_)),!(!x||!w)){var S=o.sub(x,w),b=o.magnitude(S);b<s._minLength&&(b=s._minLength);var E=(b-d.length)/b,D=d.stiffness>=1||d.length===0,P=D?d.stiffness*f:d.stiffness*f*f,I=d.damping*f,R=o.mult(S,E*P),U=(g?g.inverseMass:0)+(y?y.inverseMass:0),N=(g?g.inverseInertia:0)+(y?y.inverseInertia:0),F=U+N,O,V,q,Z,j;if(I>0){var Y=o.create();q=o.div(S,b),j=o.sub(y&&o.sub(y.position,y.positionPrev)||Y,g&&o.sub(g.position,g.positionPrev)||Y),Z=o.dot(q,j)}g&&!g.isStatic&&(V=g.inverseMass/U,g.constraintImpulse.x-=R.x*V,g.constraintImpulse.y-=R.y*V,g.position.x-=R.x*V,g.position.y-=R.y*V,I>0&&(g.positionPrev.x-=I*q.x*Z*V,g.positionPrev.y-=I*q.y*Z*V),O=o.cross(v,R)/F*s._torqueDampen*g.inverseInertia*(1-d.angularStiffness),g.constraintImpulse.angle-=O,g.angle-=O),y&&!y.isStatic&&(V=y.inverseMass/U,y.constraintImpulse.x+=R.x*V,y.constraintImpulse.y+=R.y*V,y.position.x+=R.x*V,y.position.y+=R.y*V,I>
9200&&(y.positionPrev.x+=I*q.x*Z*V,y.positionPrev.y+=I*q.y*Z*V),O=o.cross(_,R)/F*s._torqueDampen*y.inverseInertia*(1-d.angularStiffness),y.constraintImpulse.angle+=O,y.angle+=O)}}},s.postSolveAll=function(d){for(var f=0;f<d.length;f++){var g=d[f],y=g.constraintImpulse;if(!(g.isStatic||y.x===0&&y.y===0&&y.angle===0)){l.set(g,!1);for(var v=0;v<g.parts.length;v++){var _=g.parts[v];a.translate(_.vertices,y),v>0&&(_.position.x+=y.x,_.position.y+=y.y),y.angle!==0&&(a.rotate(_.vertices,y.angle,g.position),h.rotate(_.axes,y.angle),v>0&&o.rotateAbout(_.position,y.angle,g.position,_.position)),u.update(_.bounds,_.vertices,g.velocity)}y.angle*=s._warming,y.x*=s._warming,y.y*=s._warming}}},s.pointAWorld=function(d){return{x:(d.bodyA?d.bodyA.position.x:0)+(d.pointA?d.pointA.x:0),y:(d.bodyA?d.bodyA.position.y:0)+(d.pointA?d.pointA.y:0)}},s.pointBWorld=function(d){return{x:(d.bodyB?d.bodyB.position.x:0)+(d.pointB?d.pointB.x:0),y:(d.bodyB?d.bodyB.position.y:0)+(d.pointB?d.pointB.y:0)}}})()},function(t,n,i){var s={};t.exports=s;var a=i(2),o=i(0);(function(){s.fromVertices=function(l){for(var u={},h=0;h<l.length;h++){var c=(h+1)%l.length,d=a.normalise({x:l[c].y-l[h].y,y:l[h].x-l[c].x}),f=d.y===0?1/0:d.x/d.y;f=f.toFixed(3).toString(),u[f]=d}return o.values(u)},s.rotate=function(l,u){if(u!==0)for(var h=Math.cos(u),c=Math.sin(u),d=0;d<l.length;d++){var f=l[d],g;g=f.x*h-f.y*c,f.y=f.x*c+f.y*h,f.x=g}}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(0),l=i(4),u=i(1),h=i(2);(function(){s.rectangle=function(c,d,f,g,y){y=y||{};var v={label:"Rectangle Body",position:{x:c,y:d},vertices:a.fromPath("L 0 0 L "+f+" 0 L "+f+" "+g+" L 0 "+g)};if(y.chamfer){var _=y.chamfer;v.vertices=a.chamfer(v.vertices,_.radius,_.quality,_.qualityMin,_.qualityMax),delete y.chamfer}return l.create(o.extend({},v,y))},s.trapezoid=function(c,d,f,g,y,v){v=v||{},y*=.5;var _=(1-y*2)*f,x=f*y,w=x+_,S=w+x,b;y<.5?b="L 0 0 L "+x+" "+-g+" L "+w+" "+-g+" L "+S+" 0":b="L 0 0 L "+w+" "+-g+" L "+S+" 0";var E={label:"Trapezoid Body",position:{x:c,y:d},vertices:a.fromPath(b)};if(v.chamfer){var D=v.chamfer;E.vertices=a.chamfer(E.vertices,D.radius,D.quality,D.qualityMin,D.qualityMax),delete v.chamfer}return l.create(o.extend({},E,v))},s.circle=function(c,d,f,g,y){g=g||{};var v={label:"Circle Body",circleRadius:f};y=y||25;var _=Math.ceil(Math.max(10,Math.min(y,f)));return _%2===1&&(_+=1),s.polygon(c,d,_,f,o.extend({},v,g))},s.polygon=function(c,d,f,g,y){if(y=y||{},f<3)return s.circle(c,d,g,y);for(var v=2*Math.PI/f,_="",x=v*.5,w=0;w<f;w+=1){var S=x+w*v,b=Math.cos(S)*g,E=Math.sin(S)*g;_+="L "+b.toFixed(3)+" "+E.toFixed(3)+" "}var D={label:"Polygon Body",position:{x:c,y:d},vertices:a.fromPath(_)};if(y.chamfer){var P=y.chamfer;D.vertices=a.chamfer(D.vertices,P.radius,P.quality,P.qualityMin,P.qualityMax),delete y.chamfer}return l.create(o.extend({},D,y))},s.fromVertices=function(c,d,f,g,y,v,_,x){var w=o.getDecomp(),S,b,E,D,P,I,R,U,N,F,O;for(S=!!(w&&w.quickDecomp),g=g||{},E=[],y=typeof y<"u"?y:!1,v=typeof v<"u"?v:.01,_=typeof _<"u"?_:10,x=typeof x<"u"?x:.01,o.isArray(f[0])||(f=[f]),F=0;F<f.length;F+=1)if(I=f[F],D=a.isConvex(I),P=!D,P&&!S&&o.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),D||!S)D?I=a.clockwiseSort(I):I=a.hull(I),E.push({position:{x:c,y:d},vertices:I});else{var V=I.map(function(Te){return[Te.x,Te.y]});w.makeCCW(V),v!==!1&&w.removeCollinearPoints(V,v),x!==!1&&w.removeDuplicatePoints&&w.removeDuplicatePoints(V,x);var q=w.quickDecomp(V);for(R=0;R<q.length;R++){var Z=q[R],j=Z.map(function(Te){return{x:Te[0],y:Te[1]}});_>0&&a.area(j)<_||E.push({position:a.centre(j),vertices:j})}}for(R=0;R<E.length;R++)E[R]=l.create(o.extend(E[R],g));if(y){var Y=5;for(R=0;R<E.length;R++){var G=E[R];for(U=R+1;U<E.length;U++){var J=E[U];if(u.overlaps(G.bounds,J.bounds)){var ee=G.vertices,ve=J.vertices;for(N=0;N<G.vertices.length;N++)for(O=0;O<J.vertices.length;O++){var _e=h.magnitudeSquared(h.sub(ee[(N+1)%ee.length],ve[O])),Oe=h.magnitudeSquared(h.sub(ee[N],ve[(O+1)%ve.length]));_e<Y&&Oe<Y&&(ee[N].isInternal=!0,ve[O].isInternal=!0)}}}}}return E.length>1?(b=l.create(o.extend({parts:E.slice(0)},g)),l.setPosition(b,{x:c,y:d}),b):E[0]}})()},function(t,n,i){var s={};t.exports=s;var a=i(0),o=i(8);(function(){s.create=function(l){var u={bodies:[],pairs:null};return a.extend(u,l)},s.setBodies=function(l,u){l.bodies=u.slice(0)},s.clear=function(l){l.bodies=[]},s.collisions=function(l){var u=[],h=l.pairs,c=l.bodies,d=c.length,f=s.canCollide,g=o.collides,y,v;for(c.sort(s._compareBoundsX),y=0;y<d;y++){var _=c[y],x=_.bounds,w=_.bounds.max.x,S=_.bounds.max.y,b=_.bounds.min.y,E=_.isStatic||_.isSleeping,D=_.parts.length,P=D===1;for(v=y+1;v<d;v++){var I=c[v],R=I.bounds;if(R.min.x>w)break;if(!(S<R.min.y||b>R.max.y)&&!(E&&(I.isStatic||I.isSleeping))&&f(_.collisionFilter,I.collisionFilter)){var U=I.parts.length;if(P&&U===1){var N=g(_,I,h);N&&u.push(N)}else for(var F=D>1?1:0,O=U>1?1:0,V=F;V<D;V++)for(var q=_.parts[V],x=q.bounds,Z=O;Z<U;Z++){var j=I.parts[Z],R=j.bounds;if(!(x.min.x>R.max.x||x.max.x<R.min.x||x.max.y<R.min.y||x.min.y>R.max.y)){var N=g(q,j,h);N&&u.push(N)}}}}}return u},s.canCollide=function(l,u){return l.group===u.group&&l.group!==0?l.group>0:(l.mask&u.category)!==0&&(u.mask&l.category)!==0}
920,s._compareBoundsX=function(l,u){return l.bounds.min.x-u.bounds.min.x}})()},function(t,n,i){var s={};t.exports=s;var a=i(0);(function(){s.create=function(o){var l={};return o||a.log("Mouse.create: element was undefined, defaulting to document.body","warn"),l.element=o||document.body,l.absolute={x:0,y:0},l.position={x:0,y:0},l.mousedownPosition={x:0,y:0},l.mouseupPosition={x:0,y:0},l.offset={x:0,y:0},l.scale={x:1,y:1},l.wheelDelta=0,l.button=-1,l.pixelRatio=parseInt(l.element.getAttribute("data-pixel-ratio"),10)||1,l.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},l.mousemove=function(u){var h=s._getRelativeMousePosition(u,l.element,l.pixelRatio),c=u.changedTouches;c&&(l.button=0,u.preventDefault()),l.absolute.x=h.x,l.absolute.y=h.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.sourceEvents.mousemove=u},l.mousedown=function(u){var h=s._getRelativeMousePosition(u,l.element,l.pixelRatio),c=u.changedTouches;c?(l.button=0,u.preventDefault()):l.button=u.button,l.absolute.x=h.x,l.absolute.y=h.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mousedownPosition.x=l.position.x,l.mousedownPosition.y=l.position.y,l.sourceEvents.mousedown=u},l.mouseup=function(u){var h=s._getRelativeMousePosition(u,l.element,l.pixelRatio),c=u.changedTouches;c&&u.preventDefault(),l.button=-1,l.absolute.x=h.x,l.absolute.y=h.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mouseupPosition.x=l.position.x,l.mouseupPosition.y=l.position.y,l.sourceEvents.mouseup=u},l.mousewheel=function(u){l.wheelDelta=Math.max(-1,Math.min(1,u.wheelDelta||-u.detail)),u.preventDefault()},s.setElement(l,l.element),l},s.setElement=function(o,l){o.element=l,l.addEventListener("mousemove",o.mousemove),l.addEventListener("mousedown",o.mousedown),l.addEventListener("mouseup",o.mouseup),l.addEventListener("mousewheel",o.mousewheel),l.addEventListener("DOMMouseScroll",o.mousewheel),l.addEventListener("touchmove",o.mousemove),l.addEventListener("touchstart",o.mousedown),l.addEventListener("touchend",o.mouseup)},s.clearSourceEvents=function(o){o.sourceEvents.mousemove=null,o.sourceEvents.mousedown=null,o.sourceEvents.mouseup=null,o.sourceEvents.mousewheel=null,o.wheelDelta=0},s.setOffset=function(o,l){o.offset.x=l.x,o.offset.y=l.y,o.position.x=o.absolute.x*o.scale.x+o.offset.x,o.position.y=o.absolute.y*o.scale.y+o.offset.y},s.setScale=function(o,l){o.scale.x=l.x,o.scale.y=l.y,o.position.x=o.absolute.x*o.scale.x+o.offset.x,o.position.y=o.absolute.y*o.scale.y+o.offset.y},s._getRelativeMousePosition=function(o,l,u){var h=l.getBoundingClientRect(),c=document.documentElement||document.body.parentNode||document.body,d=window.pageXOffset!==void 0?window.pageXOffset:c.scrollLeft,f=window.pageYOffset!==void 0?window.pageYOffset:c.scrollTop,g=o.changedTouches,y,v;return g?(y=g[0].pageX-h.left-d,v=g[0].pageY-h.top-f):(y=o.pageX-h.left-d,v=o.pageY-h.top-f),{x:y/(l.clientWidth/(l.width||l.clientWidth)*u),y:v/(l.clientHeight/(l.height||l.clientHeight)*u)}}})()},function(t,n,i){var s={};t.exports=s;var a=i(0);(function(){s._registry={},s.register=function(o){if(s.isPlugin(o)||a.warn("Plugin.register:",s.toString(o),"does not implement all required fields."),o.name in s._registry){var l=s._registry[o.name],u=s.versionParse(o.version).number,h=s.versionParse(l.version).number;u>h?(a.warn("Plugin.register:",s.toString(l),"was upgraded to",s.toString(o)),s._registry[o.name]=o):u<h?a.warn("Plugin.register:",s.toString(l),"can not be downgraded to",s.toString(o)):o!==l&&a.warn("Plugin.register:",s.toString(o),"is already registered to different plugin object")}else s._registry[o.name]=o;return o},s.resolve=function(o){return s._registry[s.dependencyParse(o).name]},s.toString=function(o){return typeof o=="string"?o:(o.name||"anonymous")+"@"+(o.version||o.range||"0.0.0")},s.isPlugin=function(o){return o&&o.name&&o.version&&o.install},s.isUsed=function(o,l){return o.used.indexOf(l)>-1},s.isFor=function(o,l){var u=o.for&&s.dependencyParse(o.for);return!o.for||l.name===u.name&&s.versionSatisfies(l.version,u.range)},s.use=function(o,l){if(o.uses=(o.uses||[]).concat(l||[]),o.uses.length===0){a.warn("Plugin.use:",s.toString(o),"does not specify any dependencies to install.");return}for(var u=s.dependencies(o),h=a.topologicalSort(u),c=[],d=0;d<h.length;d+=1)if(h[d]!==o.name){var f=s.resolve(h[d]);if(!f){c.push("❌ "+h[d]);continue}s.isUsed(o,f.name)||(s.isFor(f,o)||(a.warn("Plugin.use:",s.toString(f),"is for",f.for,"but installed on",s.toString(o)+"."),f._warned=!0),f.install?f.install(o):(a.warn("Plugin.use:",s.toString(f),"does not specify an install function."),f._warned=!0),f._warned?(c.push("🔶 "+s.toString(f)),delete f._warned):c.push("✅ "+s.toString(f)),o.used.push(f.name))}c.length>0&&a.info(c.join("  "))},s.dependencies=function(o,l){var u=s.dependencyParse(o),h=u.name;if(l=l||{},!(h in l)){o=s.resolve(o)||o,l[h]=a.map(o.uses||[],function(d){s.isPlugin(d)&&s.register(d);var f=s.dependencyParse(d),g=s.resolve(d);
920return g&&!s.versionSatisfies(g.version,f.range)?(a.warn("Plugin.dependencies:",s.toString(g),"does not satisfy",s.toString(f),"used by",s.toString(u)+"."),g._warned=!0,o._warned=!0):g||(a.warn("Plugin.dependencies:",s.toString(d),"used by",s.toString(u),"could not be resolved."),o._warned=!0),f.name});for(var c=0;c<l[h].length;c+=1)s.dependencies(l[h][c],l);return l}},s.dependencyParse=function(o){if(a.isString(o)){var l=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return l.test(o)||a.warn("Plugin.dependencyParse:",o,"is not a valid dependency string."),{name:o.split("@")[0],range:o.split("@")[1]||"*"}}return{name:o.name,range:o.range||o.version}},s.versionParse=function(o){var l=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;l.test(o)||a.warn("Plugin.versionParse:",o,"is not a valid version or range.");var u=l.exec(o),h=Number(u[4]),c=Number(u[5]),d=Number(u[6]);return{isRange:!!(u[1]||u[2]),version:u[3],range:o,operator:u[1]||u[2]||"",major:h,minor:c,patch:d,parts:[h,c,d],prerelease:u[7],number:h*1e8+c*1e4+d}},s.versionSatisfies=function(o,l){l=l||"*";var u=s.versionParse(l),h=s.versionParse(o);if(u.isRange){if(u.operator==="*"||o==="*")return!0;if(u.operator===">")return h.number>u.number;if(u.operator===">=")return h.number>=u.number;if(u.operator==="~")return h.major===u.major&&h.minor===u.minor&&h.patch>=u.patch;if(u.operator==="^")return u.major>0?h.major===u.major&&h.number>=u.number:u.minor>0?h.minor===u.minor&&h.patch>=u.patch:h.patch===u.patch}return o===l||o==="*"}})()},function(t,n){var i={};t.exports=i,function(){i.create=function(s){return{vertex:s,normalImpulse:0,tangentImpulse:0}}}()},function(t,n,i){var s={};t.exports=s;var a=i(7),o=i(18),l=i(13),u=i(19),h=i(5),c=i(6),d=i(10),f=i(0),g=i(4);(function(){s.create=function(y){y=y||{};var v={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},_=f.extend(v,y);return _.world=y.world||c.create({label:"World"}),_.pairs=y.pairs||u.create(),_.detector=y.detector||l.create(),_.grid={buckets:[]},_.world.gravity=_.gravity,_.broadphase=_.grid,_.metrics={},_},s.update=function(y,v){var _=f.now(),x=y.world,w=y.detector,S=y.pairs,b=y.timing,E=b.timestamp,D;v=typeof v<"u"?v:f._baseDelta,v*=b.timeScale,b.timestamp+=v,b.lastDelta=v;var P={timestamp:b.timestamp,delta:v};h.trigger(y,"beforeUpdate",P);var I=c.allBodies(x),R=c.allConstraints(x);for(x.isModified&&(l.setBodies(w,I),c.setModified(x,!1,!1,!0)),y.enableSleeping&&a.update(I,v),s._bodiesApplyGravity(I,y.gravity),v>0&&s._bodiesUpdate(I,v),d.preSolveAll(I),D=0;D<y.constraintIterations;D++)d.solveAll(R,v);d.postSolveAll(I),w.pairs=y.pairs;var U=l.collisions(w);u.update(S,U,E),y.enableSleeping&&a.afterCollisions(S.list),S.collisionStart.length>0&&h.trigger(y,"collisionStart",{pairs:S.collisionStart});var N=f.clamp(20/y.positionIterations,0,1);for(o.preSolvePosition(S.list),D=0;D<y.positionIterations;D++)o.solvePosition(S.list,v,N);for(o.postSolvePosition(I),d.preSolveAll(I),D=0;D<y.constraintIterations;D++)d.solveAll(R,v);for(d.postSolveAll(I),o.preSolveVelocity(S.list),D=0;D<y.velocityIterations;D++)o.solveVelocity(S.list,v);return s._bodiesUpdateVelocities(I),S.collisionActive.length>0&&h.trigger(y,"collisionActive",{pairs:S.collisionActive}),S.collisionEnd.length>0&&h.trigger(y,"collisionEnd",{pairs:S.collisionEnd}),s._bodiesClearForces(I),h.trigger(y,"afterUpdate",P),y.timing.lastElapsed=f.now()-_,y},s.merge=function(y,v){if(f.extend(y,v),v.world){y.world=v.world,s.clear(y);for(var _=c.allBodies(y.world),x=0;x<_.length;x++){var w=_[x];a.set(w,!1),w.id=f.nextId()}}},s.clear=function(y){u.clear(y.pairs),l.clear(y.detector)},s._bodiesClearForces=function(y){for(var v=y.length,_=0;_<v;_++){var x=y[_];x.force.x=0,x.force.y=0,x.torque=0}},s._bodiesApplyGravity=function(y,v){var _=typeof v.scale<"u"?v.scale:.001,x=y.length;if(!(v.x===0&&v.y===0||_===0))for(var w=0;w<x;w++){var S=y[w];S.isStatic||S.isSleeping||(S.force.y+=S.mass*v.y*_,S.force.x+=S.mass*v.x*_)}},s._bodiesUpdate=function(y,v){for(var _=y.length,x=0;x<_;x++){var w=y[x];w.isStatic||w.isSleeping||g.update(w,v)}},s._bodiesUpdateVelocities=function(y){for(var v=y.length,_=0;_<v;_++)g.updateVelocities(y[_])}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(0),l=i(1);(function(){s._restingThresh=2,s._restingThreshTangent=Math.sqrt(6),s._positionDampen=.9,s._positionWarming=.8,s._frictionNormalMultiplier=5,s._frictionMaxStatic=Number.MAX_VALUE,s.preSolvePosition=function(u){var h,c,d,f=u.length;for(h=0;h<f;h++)c=u[h],c.isActive&&(d=c.activeContacts.length,c.collision.parentA.totalContacts+=d,c.collision.parentB.totalContacts+=d)},s.solvePosition=function(u,h,c){var d,f,g,y,v,_,x,w,S=s._positionDampen*(c||1),b=o.clamp(h/o._baseDelta,0,1),E=u.length;for(d=0;d<E;d++)f=u[d],!(!f.isActive||f.isSensor)&&(g=f.collision,y=g.parentA,v=g.parentB,_=g.normal,f.separation=_.x*(v.positionImpulse.x+g.penetration.x-y.positionImpulse.x)+_.y*(v.positionImpulse.y+g.penetration.y-y.positionImpulse.y));for(d=0;d<E;d++)f=u[d],!(!f.isActive||f.isSensor)&&(g=f.collision,y=g.parentA,v=g.parentB,_=g.normal,w=f.separation-f.slop*b,(y.isStatic||v.isStatic)&&(w*=2),y.isStatic||y.isSleeping||(x=S/y.totalContacts,y.positionImpulse.x+=_.x*w*x,y.positionImpulse.y+=_.y*w*x),v.isStatic||v.isSleeping||(x=S/v.totalContacts,v.positionImpulse.x-=_.x*w*x,v.positionImpulse.y-=_.y*w*x))},s.postSolvePosition=function(u){for(var h=s._positionWarming,c=u.length,d=a.translate,f=l.update,g=0;g<c;
920g++){var y=u[g],v=y.positionImpulse,_=v.x,x=v.y,w=y.velocity;if(y.totalContacts=0,_!==0||x!==0){for(var S=0;S<y.parts.length;S++){var b=y.parts[S];d(b.vertices,v),f(b.bounds,b.vertices,w),b.position.x+=_,b.position.y+=x}y.positionPrev.x+=_,y.positionPrev.y+=x,_*w.x+x*w.y<0?(v.x=0,v.y=0):(v.x*=h,v.y*=h)}}},s.preSolveVelocity=function(u){var h=u.length,c,d;for(c=0;c<h;c++){var f=u[c];if(!(!f.isActive||f.isSensor)){var g=f.activeContacts,y=g.length,v=f.collision,_=v.parentA,x=v.parentB,w=v.normal,S=v.tangent;for(d=0;d<y;d++){var b=g[d],E=b.vertex,D=b.normalImpulse,P=b.tangentImpulse;if(D!==0||P!==0){var I=w.x*D+S.x*P,R=w.y*D+S.y*P;_.isStatic||_.isSleeping||(_.positionPrev.x+=I*_.inverseMass,_.positionPrev.y+=R*_.inverseMass,_.anglePrev+=_.inverseInertia*((E.x-_.position.x)*R-(E.y-_.position.y)*I)),x.isStatic||x.isSleeping||(x.positionPrev.x-=I*x.inverseMass,x.positionPrev.y-=R*x.inverseMass,x.anglePrev-=x.inverseInertia*((E.x-x.position.x)*R-(E.y-x.position.y)*I))}}}}},s.solveVelocity=function(u,h){var c=h/o._baseDelta,d=c*c,f=d*c,g=-s._restingThresh*c,y=s._restingThreshTangent,v=s._frictionNormalMultiplier*c,_=s._frictionMaxStatic,x=u.length,w,S,b,E;for(b=0;b<x;b++){var D=u[b];if(!(!D.isActive||D.isSensor)){var P=D.collision,I=P.parentA,R=P.parentB,U=I.velocity,N=R.velocity,F=P.normal.x,O=P.normal.y,V=P.tangent.x,q=P.tangent.y,Z=D.activeContacts,j=Z.length,Y=1/j,G=I.inverseMass+R.inverseMass,J=D.friction*D.frictionStatic*v;for(U.x=I.position.x-I.positionPrev.x,U.y=I.position.y-I.positionPrev.y,N.x=R.position.x-R.positionPrev.x,N.y=R.position.y-R.positionPrev.y,I.angularVelocity=I.angle-I.anglePrev,R.angularVelocity=R.angle-R.anglePrev,E=0;E<j;E++){var ee=Z[E],ve=ee.vertex,_e=ve.x-I.position.x,Oe=ve.y-I.position.y,Te=ve.x-R.position.x,qe=ve.y-R.position.y,$e=U.x-Oe*I.angularVelocity,lt=U.y+_e*I.angularVelocity,We=N.x-qe*R.angularVelocity,Ze=N.y+Te*R.angularVelocity,st=$e-We,Pe=lt-Ze,rt=F*st+O*Pe,ut=V*st+q*Pe,xt=D.separation+rt,vt=Math.min(xt,1);vt=xt<0?0:vt;var W=vt*J;ut<-W||ut>W?(S=ut>0?ut:-ut,w=D.friction*(ut>0?1:-1)*f,w<-S?w=-S:w>S&&(w=S)):(w=ut,S=_);var te=_e*O-Oe*F,oe=Te*O-qe*F,Ee=Y/(G+I.inverseInertia*te*te+R.inverseInertia*oe*oe),Ce=(1+D.restitution)*rt*Ee;if(w*=Ee,rt<g)ee.normalImpulse=0;else{var xe=ee.normalImpulse;ee.normalImpulse+=Ce,ee.normalImpulse>0&&(ee.normalImpulse=0),Ce=ee.normalImpulse-xe}if(ut<-y||ut>y)ee.tangentImpulse=0;else{var Fe=ee.tangentImpulse;ee.tangentImpulse+=w,ee.tangentImpulse<-S&&(ee.tangentImpulse=-S),ee.tangentImpulse>S&&(ee.tangentImpulse=S),w=ee.tangentImpulse-Fe}var Ne=F*Ce+V*w,it=O*Ce+q*w;I.isStatic||I.isSleeping||(I.positionPrev.x+=Ne*I.inverseMass,I.positionPrev.y+=it*I.inverseMass,I.anglePrev+=(_e*it-Oe*Ne)*I.inverseInertia),R.isStatic||R.isSleeping||(R.positionPrev.x-=Ne*R.inverseMass,R.positionPrev.y-=it*R.inverseMass,R.anglePrev-=(Te*it-qe*Ne)*R.inverseInertia)}}}}})()},function(t,n,i){var s={};t.exports=s;var a=i(9),o=i(0);(function(){s.create=function(l){return o.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},l)},s.update=function(l,u,h){var c=l.list,d=c.length,f=l.table,g=u.length,y=l.collisionStart,v=l.collisionEnd,_=l.collisionActive,x,w,S,b;for(y.length=0,v.length=0,_.length=0,b=0;b<d;b++)c[b].confirmedActive=!1;for(b=0;b<g;b++)x=u[b],S=x.pair,S?(S.isActive?_.push(S):y.push(S),a.update(S,x,h),S.confirmedActive=!0):(S=a.create(x,h),f[S.id]=S,y.push(S),c.push(S));var E=[];for(d=c.length,b=0;b<d;b++)S=c[b],S.confirmedActive||(a.setActive(S,!1,h),v.push(S),!S.collision.bodyA.isSleeping&&!S.collision.bodyB.isSleeping&&E.push(b));for(b=0;b<E.length;b++)w=E[b]-b,S=c[w],c.splice(w,1),delete f[S.id]},s.clear=function(l){return l.table={},l.list.length=0,l.collisionStart.length=0,l.collisionActive.length=0,l.collisionEnd.length=0,l}})()},function(t,n,i){var s=t.exports=i(21);s.Axes=i(11),s.Bodies=i(12),s.Body=i(4),s.Bounds=i(1),s.Collision=i(8),s.Common=i(0),s.Composite=i(6),s.Composites=i(22),s.Constraint=i(10),s.Contact=i(16),s.Detector=i(13),s.Engine=i(17),s.Events=i(5),s.Grid=i(23),s.Mouse=i(14),s.MouseConstraint=i(24),s.Pair=i(9),s.Pairs=i(19),s.Plugin=i(15),s.Query=i(25),s.Render=i(26),s.Resolver=i(18),s.Runner=i(27),s.SAT=i(28),s.Sleeping=i(7),s.Svg=i(29),s.Vector=i(2),s.Vertices=i(3),s.World=i(30),s.Engine.run=s.Runner.run,s.Common.deprecated(s.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(t,n,i){var s={};t.exports=s;var a=i(15),o=i(0);(function(){s.name="matter-js",s.version="0.19.0",s.uses=[],s.used=[],s.use=function(){a.use(s,Array.prototype.slice.call(arguments))},s.before=function(l,u){return l=l.replace(/^Matter./,""),o.chainPathBefore(s,l,u)},s.after=function(l,u){return l=l.replace(/^Matter./,""),o.chainPathAfter(s,l,u)}})()},function(t,n,i){var s={};t.exports=s;var a=i(6),o=i(10),l=i(0),u=i(4),h=i(12),c=l.deprecated;(function(){s.stack=function(d,f,g,y,v,_,x){for(var w=a.create({label:"Stack"}),S=d,b=f,E,D=0,P=0;P<y;P++){for(var I=0,R=0;R<g;R++){var U=x(S,b,R,P,E,D);if(U){var N=U.bounds.max.y-U.bounds.min.y,F=U.bounds.max.x-U.bounds.min.x;N>I&&(I=N),u.translate(U,{x:F*.5,y:N*.5}),S=U.bounds.max.x+v,a.addBody(w,U),E=U,D+=1}else S+=v}b+=I+_,S=d}return w},s.chain=function(d,f,g,y,v,_){for(var x=d.bodies,w=1;w<x.length;w++){var S=x[w-1],b=x[w],E=S.bounds.max.y-S.bounds.min.y,D=S.bounds.max.x-S.bounds.min.x,P=b.bounds.max.y-b.bounds.min.y,I=b.bounds.max.x-b.bounds.min.x,R={bodyA:S,pointA:{x:D*f,y:E*g},bodyB:b,pointB:{x:I*y,y:P*v}},U=l.extend(R,_);a.addConstraint(d,o.create(U))}return d.label+=" Chain",d},s.mesh=function(d,f,g,y,v){var _=d.bodies,x,w,S,b,E;for(x=0;x<g;x++){for(w=1;w<f;w++)S=_[w-1+x*f],b=_[w+x*f],a.addConstraint(d,o.create(l.extend({bodyA:S,bodyB:b},v)));if(x>0)for(w=0;w<f;w++)S=_[w+(x-1)*f],b=_[w+x*f],a.addConstraint(d,o.create(l.extend({bodyA:S,bodyB:b},v))),y&&w>0&&(E=_[w-1+(x-1)*f],a.addConstraint(d,o.create(l.extend({bodyA:E,bodyB:b},v)))),y&&w<f-1&&(E=_[w+1+(x-1)*f],a.addConstraint(d,o.create(l.extend({bodyA:E,bodyB:b},v))))}return d.label+=" Mesh",d},s.pyramid=function(d,f,g,y,v,_,x){return s.stack(d,f,g,y,v,_,function(w,S,b,E,D,P){var I=Math.min(y,Math.ceil(g/2)),R=D?D.bounds.max.x-D.bounds.min.x:0;if(!(E>I)){E=I-E;var U=E,N=g-1-E;if(!(b<U||b>N)){P===1&&u.translate(D,{x:(b+(g%2===1?1:-1))*R,y:0});var F=D?b*R:0;return x(d+F+b*v,S,b,E,D,P)}}})},s.newtonsCradle=function(d,f,g,y,v){for(var _=a.create({label:"Newtons Cradle"}),x=0;x<g;x++){var w=1.9,S=h.circle(d+x*(y*w),f+v,y,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),b=o.create({pointA:{x:d+x*(y*w),y:f},bodyB:S});a.addBody(_,S),a.addConstraint(_,b)}return _},c(s,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),s.car=function(d,f,g,y,v){var _=u.nextGroup(!0),x=20,w=-g*.5+x,S=g*.5-x,b=0,E=a.create({label:"Car"}),D=h.rectangle(d,f,g,y,{collisionFilter:{group:_},chamfer:{radius:y*.5},density:2e-4}),P=h.circle(d+w,f+b,v,{collisionFilter:{group:_},friction:.8}),I=h.circle(d+S,f+b,v,{collisionFilter:{group:_},friction:.8}),R=o.create({bodyB:D,pointB:{x:w,y:b},bodyA:P,stiffness:1,length:0}),U=o.create({bodyB:D,pointB:{x:S,y:b},bodyA:I,stiffness:1,length:0});return a.addBody(E,D),a.addBody(E,P),a.addBody(E,I),a.addConstraint(E,R),a.addConstraint(E,U),E},c(s,"car","Composites.car ➤ moved to car example"),s.softBody=function(d,f,g,y,v,_,x,w,S,b){S=l.extend({inertia:1/0},S),b=l.extend({stiffness:.2,render:{type:"line",anchors:!1}},b);var E=s.stack(d,f,g,y,v,_,function(D,P){return h.circle(D,P,w,S)});return s.mesh(E,g,y,x,b),E.label="Soft Body",E},c(s,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()},function(t,n,i){var s={};t.exports=s;var a=i(9),o=i(0),l=o.deprecated;(function(){s.create=function(u){var h={buckets:{},pairs:{}
920,pairsList:[],bucketWidth:48,bucketHeight:48};return o.extend(h,u)},s.update=function(u,h,c,d){var f,g,y,v=c.world,_=u.buckets,x,w,S=!1;for(f=0;f<h.length;f++){var b=h[f];if(!(b.isSleeping&&!d)&&!(v.bounds&&(b.bounds.max.x<v.bounds.min.x||b.bounds.min.x>v.bounds.max.x||b.bounds.max.y<v.bounds.min.y||b.bounds.min.y>v.bounds.max.y))){var E=s._getRegion(u,b);if(!b.region||E.id!==b.region.id||d){(!b.region||d)&&(b.region=E);var D=s._regionUnion(E,b.region);for(g=D.startCol;g<=D.endCol;g++)for(y=D.startRow;y<=D.endRow;y++){w=s._getBucketId(g,y),x=_[w];var P=g>=E.startCol&&g<=E.endCol&&y>=E.startRow&&y<=E.endRow,I=g>=b.region.startCol&&g<=b.region.endCol&&y>=b.region.startRow&&y<=b.region.endRow;!P&&I&&I&&x&&s._bucketRemoveBody(u,x,b),(b.region===E||P&&!I||d)&&(x||(x=s._createBucket(_,w)),s._bucketAddBody(u,x,b))}b.region=E,S=!0}}}S&&(u.pairsList=s._createActivePairsList(u))},l(s,"update","Grid.update ➤ replaced by Matter.Detector"),s.clear=function(u){u.buckets={},u.pairs={},u.pairsList=[]},l(s,"clear","Grid.clear ➤ replaced by Matter.Detector"),s._regionUnion=function(u,h){var c=Math.min(u.startCol,h.startCol),d=Math.max(u.endCol,h.endCol),f=Math.min(u.startRow,h.startRow),g=Math.max(u.endRow,h.endRow);return s._createRegion(c,d,f,g)},s._getRegion=function(u,h){var c=h.bounds,d=Math.floor(c.min.x/u.bucketWidth),f=Math.floor(c.max.x/u.bucketWidth),g=Math.floor(c.min.y/u.bucketHeight),y=Math.floor(c.max.y/u.bucketHeight);return s._createRegion(d,f,g,y)},s._createRegion=function(u,h,c,d){return{id:u+","+h+","+c+","+d,startCol:u,endCol:h,startRow:c,endRow:d}},s._getBucketId=function(u,h){return"C"+u+"R"+h},s._createBucket=function(u,h){var c=u[h]=[];return c},s._bucketAddBody=function(u,h,c){var d=u.pairs,f=a.id,g=h.length,y;for(y=0;y<g;y++){var v=h[y];if(!(c.id===v.id||c.isStatic&&v.isStatic)){var _=f(c,v),x=d[_];x?x[2]+=1:d[_]=[c,v,1]}}h.push(c)},s._bucketRemoveBody=function(u,h,c){var d=u.pairs,f=a.id,g;h.splice(o.indexOf(h,c),1);var y=h.length;for(g=0;g<y;g++){var v=d[f(c,h[g])];v&&(v[2]-=1)}},s._createActivePairsList=function(u){var h,c=u.pairs,d=o.keys(c),f=d.length,g=[],y;for(y=0;y<f;y++)h=c[d[y]],h[2]>0?g.push(h):delete c[d[y]];return g}})()},function(t,n,i){var s={};t.exports=s;var a=i(3),o=i(7),l=i(14),u=i(5),h=i(13),c=i(10),d=i(6),f=i(0),g=i(1);(function(){s.create=function(y,v){var _=(y?y.mouse:null)||(v?v.mouse:null);_||(y&&y.render&&y.render.canvas?_=l.create(y.render.canvas):v&&v.element?_=l.create(v.element):(_=l.create(),f.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var x=c.create({label:"Mouse Constraint",pointA:_.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),w={type:"mouseConstraint",mouse:_,element:null,body:null,constraint:x,collisionFilter:{category:1,mask:4294967295,group:0}},S=f.extend(w,v);return u.on(y,"beforeUpdate",function(){var b=d.allBodies(y.world);s.update(S,b),s._triggerEvents(S)}),S},s.update=function(y,v){var _=y.mouse,x=y.constraint,w=y.body;if(_.button===0){if(x.bodyB)o.set(x.bodyB,!1),x.pointA=_.position;else for(var S=0;S<v.length;S++)if(w=v[S],g.contains(w.bounds,_.position)&&h.canCollide(w.collisionFilter,y.collisionFilter))for(var b=w.parts.length>1?1:0;b<w.parts.length;b++){var E=w.parts[b];if(a.contains(E.vertices,_.position)){x.pointA=_.position,x.bodyB=y.body=w,x.pointB={x:_.position.x-w.position.x,y:_.position.y-w.position.y},x.angleB=w.angle,o.set(w,!1),u.trigger(y,"startdrag",{mouse:_,body:w});break}}}else x.bodyB=y.body=null,x.pointB=null,w&&u.trigger(y,"enddrag",{mouse:_,body:w})},s._triggerEvents=function(y){var v=y.mouse,_=v.sourceEvents;_.mousemove&&u.trigger(y,"mousemove",{mouse:v}),_.mousedown&&u.trigger(y,"mousedown",{mouse:v}),_.mouseup&&u.trigger(y,"mouseup",{mouse:v}),l.clearSourceEvents(v)}})()},function(t,n,i){var s={};t.exports=s;var a=i(2),o=i(8),l=i(1),u=i(12),h=i(3);(function(){s.collides=function(c,d){for(var f=[],g=d.length,y=c.bounds,v=o.collides,_=l.overlaps,x=0;x<g;x++){var w=d[x],S=w.parts.length,b=S===1?0:1;if(_(w.bounds,y))for(var E=b;E<S;E++){var D=w.parts[E];if(_(D.bounds,y)){var P=v(D,c);if(P){f.push(P);break}}}}return f},s.ray=function(c,d,f,g){g=g||1e-100;for(var y=a.angle(d,f),v=a.magnitude(a.sub(d,f)),_=(f.x+d.x)*.5,x=(f.y+d.y)*.5,w=u.rectangle(_,x,v,g,{angle:y}),S=s.collides(w,c),b=0;b<S.length;b+=1){var E=S[b];E.body=E.bodyB=E.bodyA}return S},s.region=function(c,d,f){for(var g=[],y=0;y<c.length;y++){var v=c[y],_=l.overlaps(v.bounds,d);(_&&!f||!_&&f)&&g.push(v)}return g},s.point=function(c,d){for(var f=[],g=0;g<c.length;g++){var y=c[g];if(l.contains(y.bounds,d))for(var v=y.parts.length===1?0:1;v<y.parts.length;v++){var _=y.parts[v];if(l.contains(_.bounds,d)&&h.contains(_.vertices,d)){f.push(y);break}}}return f}})()},function(t,n,i){var s={};t.exports=s;var a=i(4),o=i(0),l=i(6),u=i(1),h=i(5),c=i(2),d=i(14);(function(){var f,g;typeof window<"u"&&(f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(b){window.setTimeout(function(){b(o.now())},1e3/60)},g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),s._goodFps=30,s._goodDelta=1e3/60,s.create=function(b){var E={engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackgroun
920d:"#14151f",hasBounds:!!b.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},D=o.extend(E,b);return D.canvas&&(D.canvas.width=D.options.width||D.canvas.width,D.canvas.height=D.options.height||D.canvas.height),D.mouse=b.mouse,D.engine=b.engine,D.canvas=D.canvas||_(D.options.width,D.options.height),D.context=D.canvas.getContext("2d"),D.textures={},D.bounds=D.bounds||{min:{x:0,y:0},max:{x:D.canvas.width,y:D.canvas.height}},D.controller=s,D.options.showBroadphase=!1,D.options.pixelRatio!==1&&s.setPixelRatio(D,D.options.pixelRatio),o.isElement(D.element)&&D.element.appendChild(D.canvas),D},s.run=function(b){(function E(D){b.frameRequestId=f(E),y(b,D),s.world(b,D),(b.options.showStats||b.options.showDebug)&&s.stats(b,b.context,D),(b.options.showPerformance||b.options.showDebug)&&s.performance(b,b.context,D)})()},s.stop=function(b){g(b.frameRequestId)},s.setPixelRatio=function(b,E){var D=b.options,P=b.canvas;E==="auto"&&(E=x(P)),D.pixelRatio=E,P.setAttribute("data-pixel-ratio",E),P.width=D.width*E,P.height=D.height*E,P.style.width=D.width+"px",P.style.height=D.height+"px"},s.lookAt=function(b,E,D,P){P=typeof P<"u"?P:!0,E=o.isArray(E)?E:[E],D=D||{x:0,y:0};for(var I={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},R=0;R<E.length;R+=1){var U=E[R],N=U.bounds?U.bounds.min:U.min||U.position||U,F=U.bounds?U.bounds.max:U.max||U.position||U;N&&F&&(N.x<I.min.x&&(I.min.x=N.x),F.x>I.max.x&&(I.max.x=F.x),N.y<I.min.y&&(I.min.y=N.y),F.y>I.max.y&&(I.max.y=F.y))}var O=I.max.x-I.min.x+2*D.x,V=I.max.y-I.min.y+2*D.y,q=b.canvas.height,Z=b.canvas.width,j=Z/q,Y=O/V,G=1,J=1;Y>j?J=Y/j:G=j/Y,b.options.hasBounds=!0,b.bounds.min.x=I.min.x,b.bounds.max.x=I.min.x+O*G,b.bounds.min.y=I.min.y,b.bounds.max.y=I.min.y+V*J,P&&(b.bounds.min.x+=O*.5-O*G*.5,b.bounds.max.x+=O*.5-O*G*.5,b.bounds.min.y+=V*.5-V*J*.5,b.bounds.max.y+=V*.5-V*J*.5),b.bounds.min.x-=D.x,b.bounds.max.x-=D.x,b.bounds.min.y-=D.y,b.bounds.max.y-=D.y,b.mouse&&(d.setScale(b.mouse,{x:(b.bounds.max.x-b.bounds.min.x)/b.canvas.width,y:(b.bounds.max.y-b.bounds.min.y)/b.canvas.height}),d.setOffset(b.mouse,b.bounds.min))},s.startViewTransform=function(b){var E=b.bounds.max.x-b.bounds.min.x,D=b.bounds.max.y-b.bounds.min.y,P=E/b.options.width,I=D/b.options.height;b.context.setTransform(b.options.pixelRatio/P,0,0,b.options.pixelRatio/I,0,0),b.context.translate(-b.bounds.min.x,-b.bounds.min.y)},s.endViewTransform=function(b){b.context.setTransform(b.options.pixelRatio,0,0,b.options.pixelRatio,0,0)},s.world=function(b,E){var D=o.now(),P=b.engine,I=P.world,R=b.canvas,U=b.context,N=b.options,F=b.timing,O=l.allBodies(I),V=l.allConstraints(I),q=N.wireframes?N.wireframeBackground:N.background,Z=[],j=[],Y,G={timestamp:P.timing.timestamp};if(h.trigger(b,"beforeRender",G),b.currentBackground!==q&&S(b,q),U.globalCompositeOperation="source-in",U.fillStyle="transparent",U.fillRect(0,0,R.width,R.height),U.globalCompositeOperation="source-over",N.hasBounds){for(Y=0;Y<O.length;Y++){var J=O[Y];u.overlaps(J.bounds,b.bounds)&&Z.push(J)}for(Y=0;Y<V.length;Y++){var ee=V[Y],ve=ee.bodyA,_e=ee.bodyB,Oe=ee.pointA,Te=ee.pointB;ve&&(Oe=c.add(ve.position,ee.pointA)),_e&&(Te=c.add(_e.position,ee.pointB)),!(!Oe||!Te)&&(u.contains(b.bounds,Oe)||u.contains(b.bounds,Te))&&j.push(ee)}s.startViewTransform(b),b.mouse&&(d.setScale(b.mouse,{x:(b.bounds.max.x-b.bounds.min.x)/b.options.width,y:(b.bounds.max.y-b.bounds.min.y)/b.options.height}),d.setOffset(b.mouse,b.bounds.min))}else j=V,Z=O,b.options.pixelRatio!==1&&b.context.setTransform(b.options.pixelRatio,0,0,b.options.pixelRatio,0,0);!N.wireframes||P.enableSleeping&&N.showSleeping?s.bodies(b,Z,U):(N.showConvexHulls&&s.bodyConvexHulls(b,Z,U),s.bodyWireframes(b,Z,U)),N.showBounds&&s.bodyBounds(b,Z,U),(N.showAxes||N.showAngleIndicator)&&s.bodyAxes(b,Z,U),N.showPositions&&s.bodyPositions(b,Z,U),N.showVelocity&&s.bodyVelocity(b,Z,U),N.showIds&&s.bodyIds(b,Z,U),N.showSeparations&&s.separations(b,P.pairs.list,U),N.showCollisions&&s.collisions(b,P.pairs.list,U),N.showVertexNumbers&&s.vertexNumbers(b,Z,U),N.showMousePosition&&s.mousePosition(b,b.mouse,U),s.constraints(j,U),N.hasBounds&&s.endViewTransform(b),h.trigger(b,"afterRe
920nder",G),F.lastElapsed=o.now()-D},s.stats=function(b,E,D){for(var P=b.engine,I=P.world,R=l.allBodies(I),U=0,N=55,F=44,O=0,V=0,q=0;q<R.length;q+=1)U+=R[q].parts.length;var Z={Part:U,Body:R.length,Cons:l.allConstraints(I).length,Comp:l.allComposites(I).length,Pair:P.pairs.list.length};E.fillStyle="#0e0f19",E.fillRect(O,V,N*5.5,F),E.font="12px Arial",E.textBaseline="top",E.textAlign="right";for(var j in Z){var Y=Z[j];E.fillStyle="#aaa",E.fillText(j,O+N,V+8),E.fillStyle="#eee",E.fillText(Y,O+N,V+26),O+=N}},s.performance=function(b,E){var D=b.engine,P=b.timing,I=P.deltaHistory,R=P.elapsedHistory,U=P.timestampElapsedHistory,N=P.engineDeltaHistory,F=P.engineElapsedHistory,O=D.timing.lastDelta,V=v(I),q=v(R),Z=v(N),j=v(F),Y=v(U),G=Y/V||0,J=1e3/V||0,ee=4,ve=12,_e=60,Oe=34,Te=10,qe=69;E.fillStyle="#0e0f19",E.fillRect(0,50,ve*4+_e*5+22,Oe),s.status(E,Te,qe,_e,ee,I.length,Math.round(J)+" fps",J/s._goodFps,function($e){return I[$e]/V-1}),s.status(E,Te+ve+_e,qe,_e,ee,N.length,O.toFixed(2)+" dt",s._goodDelta/O,function($e){return N[$e]/Z-1}),s.status(E,Te+(ve+_e)*2,qe,_e,ee,F.length,j.toFixed(2)+" ut",1-j/s._goodFps,function($e){return F[$e]/j-1}),s.status(E,Te+(ve+_e)*3,qe,_e,ee,R.length,q.toFixed(2)+" rt",1-q/s._goodFps,function($e){return R[$e]/q-1}),s.status(E,Te+(ve+_e)*4,qe,_e,ee,U.length,G.toFixed(2)+" x",G*G*G,function($e){return(U[$e]/I[$e]/G||0)-1})},s.status=function(b,E,D,P,I,R,U,N,F){b.strokeStyle="#888",b.fillStyle="#444",b.lineWidth=1,b.fillRect(E,D+7,P,1),b.beginPath(),b.moveTo(E,D+7-I*o.clamp(.4*F(0),-2,2));for(var O=0;O<P;O+=1)b.lineTo(E+O,D+7-(O<R?I*o.clamp(.4*F(O),-2,2):0));b.stroke(),b.fillStyle="hsl("+o.clamp(25+95*N,0,120)+",100%,60%)",b.fillRect(E,D-7,4,4),b.font="12px Arial",b.textBaseline="middle",b.textAlign="right",b.fillStyle="#eee",b.fillText(U,E+P,D-5)},s.constraints=function(b,E){for(var D=E,P=0;P<b.length;P++){var I=b[P];if(!(!I.render.visible||!I.pointA||!I.pointB)){var R=I.bodyA,U=I.bodyB,N,F;if(R?N=c.add(R.position,I.pointA):N=I.pointA,I.render.type==="pin")D.beginPath(),D.arc(N.x,N.y,3,0,2*Math.PI),D.closePath();else{if(U?F=c.add(U.position,I.pointB):F=I.pointB,D.beginPath(),D.moveTo(N.x,N.y),I.render.type==="spring")for(var O=c.sub(F,N),V=c.perp(c.normalise(O)),q=Math.ceil(o.clamp(I.length/5,12,20)),Z,j=1;j<q;j+=1)Z=j%2===0?1:-1,D.lineTo(N.x+O.x*(j/q)+V.x*Z*4,N.y+O.y*(j/q)+V.y*Z*4);D.lineTo(F.x,F.y)}I.render.lineWidth&&(D.lineWidth=I.render.lineWidth,D.strokeStyle=I.render.strokeStyle,D.stroke()),I.render.anchors&&(D.fillStyle=I.render.strokeStyle,D.beginPath(),D.arc(N.x,N.y,3,0,2*Math.PI),D.arc(F.x,F.y,3,0,2*Math.PI),D.closePath(),D.fill())}}},s.bodies=function(b,E,D){var P=D;b.engine;var I=b.options,R=I.showInternalEdges||!I.wireframes,U,N,F,O;for(F=0;F<E.length;F++)if(U=E[F],!!U.render.visible){for(O=U.parts.length>1?1:0;O<U.parts.length;O++)if(N=U.parts[O],!!N.render.visible){if(I.showSleeping&&U.isSleeping?P.globalAlpha=.5*N.render.opacity:N.render.opacity!==1&&(P.globalAlpha=N.render.opacity),N.render.sprite&&N.render.sprite.texture&&!I.wireframes){var V=N.render.sprite,q=w(b,V.texture);P.translate(N.position.x,N.position.y),P.rotate(N.angle),P.drawImage(q,q.width*-V.xOffset*V.xScale,q.height*-V.yOffset*V.yScale,q.width*V.xScale,q.height*V.yScale),P.rotate(-N.angle),P.translate(-N.position.x,-N.position.y)}else{if(N.circleRadius)P.beginPath(),P.arc(N.position.x,N.position.y,N.circleRadius,0,2*Math.PI);else{P.beginPath(),P.moveTo(N.vertices[0].x,N.vertices[0].y);for(var Z=1;Z<N.vertices.length;Z++)!N.vertices[Z-1].isInternal||R?P.lineTo(N.vertices[Z].x,N.vertices[Z].y):P.moveTo(N.vertices[Z].x,N.vertices[Z].y),N.vertices[Z].isInternal&&!R&&P.moveTo(N.vertices[(Z+1)%N.vertices.length].x,N.vertices[(Z+1)%N.vertices.length].y);P.lineTo(N.vertices[0].x,N.vertices[0].y),P.closePath()}I.wireframes?(P.lineWidth=1,P.strokeStyle="#bbb",P.stroke()):(P.fillStyle=N.render.fillStyle,N.render.lineWidth&&(P.lineWidth=N.render.lineWidth,P.strokeStyle=N.render.strokeStyle,P.stroke()),P.fill())}P.globalAlpha=1}}},s.bodyWireframes=function(b,E,D){var P=D,I=b.options.showInternalEdges,R,U,N,F,O;for(P.beginPath(),N=0;N<E.length;N++)if(R=E[N],!!R.render.visible)for(O=R.parts.length>1?1:0;O<R.parts.length;O++){for(U=R.parts[O],P.moveTo(U.vertices[0].x,U.vertices[0].y),F=1;F<U.vertices.length;F++)!U.vertices[F-1].isInternal||I?P.lineTo(U.vertices[F].x,U.vertices[F].y):P.moveTo(U.vertices[F].x,U.vertices[F].y),U.vertices[F].isInternal&&!I&&P.moveTo(U.vertices[(F+1)%U.vertices.length].x,U.vertices[(F+1)%U.vertices.length].y);P.lineTo(U.vertices[0].x,U.vertices[0].y)}P.lineWidth=1,P.strokeStyle="#bbb",P.stroke()},s.bodyConvexHulls=function(b,E,D){var P=D,I,R,U;for(P.beginPath(),R=0;R<E.length;R++)if(I=E[R],!(!I.render.visible||I.parts.length===1)){for(P.moveTo(I.vertices[0].x,I.vertices[0].y),U=1;U<I.vertices.length;U++)P.lineTo(I.vertices[U].x,I.vertices[U].y);P.lineTo(I.vertices[0].x,I.vertices[0].y)}P.lineWidth=1,P.strokeStyle="rgba(255,255,255,0.2)",P.stroke()},s.vertexNumbers=function(b,E,D){var P=D,I,R,U;for(I=0;I<E.length;I++){var N=E[I].parts;for(U=N.length>1?1:0;U<N.length;U++){var F=N[U];for(R=0;R<F.vertices.length;R++)P.fillStyle="rgba(255,255,255,0.2)",P.fillText(I+"_"+R,F.position.x+(F.vertices[R].x-F.position.x)*.8,F.position.y+(F.vertices[R].y-F.position.y)*.8)}}},s.mousePosition=function(b,E,D){var P=D;P.fillStyle="rgba(255,255,255,0.8)",P.fillText(E.position.x+"  "+E.position.y,E.position.x+5,E.position.y-5)},s.bodyBounds=function(b,E,D){var P=D;b.engine;var I=b.options;P.beginPath();for(var R=0;R<E.length;R++){var U=E[R];if(U.render.visible)for(var N=E[R].parts,F=N.length>1?1:0;F<N.length;F++){var O=N[F];P.rect(O.bounds.min.x,O.bounds.min.y,O.bounds.max.x-O.bounds.min.x,O.bounds.max.y-O.boun
920ds.min.y)}}I.wireframes?P.strokeStyle="rgba(255,255,255,0.08)":P.strokeStyle="rgba(0,0,0,0.1)",P.lineWidth=1,P.stroke()},s.bodyAxes=function(b,E,D){var P=D;b.engine;var I=b.options,R,U,N,F;for(P.beginPath(),U=0;U<E.length;U++){var O=E[U],V=O.parts;if(O.render.visible)if(I.showAxes)for(N=V.length>1?1:0;N<V.length;N++)for(R=V[N],F=0;F<R.axes.length;F++){var q=R.axes[F];P.moveTo(R.position.x,R.position.y),P.lineTo(R.position.x+q.x*20,R.position.y+q.y*20)}else for(N=V.length>1?1:0;N<V.length;N++)for(R=V[N],F=0;F<R.axes.length;F++)P.moveTo(R.position.x,R.position.y),P.lineTo((R.vertices[0].x+R.vertices[R.vertices.length-1].x)/2,(R.vertices[0].y+R.vertices[R.vertices.length-1].y)/2)}I.wireframes?(P.strokeStyle="indianred",P.lineWidth=1):(P.strokeStyle="rgba(255, 255, 255, 0.4)",P.globalCompositeOperation="overlay",P.lineWidth=2),P.stroke(),P.globalCompositeOperation="source-over"},s.bodyPositions=function(b,E,D){var P=D;b.engine;var I=b.options,R,U,N,F;for(P.beginPath(),N=0;N<E.length;N++)if(R=E[N],!!R.render.visible)for(F=0;F<R.parts.length;F++)U=R.parts[F],P.arc(U.position.x,U.position.y,3,0,2*Math.PI,!1),P.closePath();for(I.wireframes?P.fillStyle="indianred":P.fillStyle="rgba(0,0,0,0.5)",P.fill(),P.beginPath(),N=0;N<E.length;N++)R=E[N],R.render.visible&&(P.arc(R.positionPrev.x,R.positionPrev.y,2,0,2*Math.PI,!1),P.closePath());P.fillStyle="rgba(255,165,0,0.8)",P.fill()},s.bodyVelocity=function(b,E,D){var P=D;P.beginPath();for(var I=0;I<E.length;I++){var R=E[I];if(R.render.visible){var U=a.getVelocity(R);P.moveTo(R.position.x,R.position.y),P.lineTo(R.position.x+U.x,R.position.y+U.y)}}P.lineWidth=3,P.strokeStyle="cornflowerblue",P.stroke()},s.bodyIds=function(b,E,D){var P=D,I,R;for(I=0;I<E.length;I++)if(E[I].render.visible){var U=E[I].parts;for(R=U.length>1?1:0;R<U.length;R++){var N=U[R];P.font="12px Arial",P.fillStyle="rgba(255,255,255,0.5)",P.fillText(N.id,N.position.x+10,N.position.y-10)}}},s.collisions=function(b,E,D){var P=D,I=b.options,R,U,N,F;for(P.beginPath(),N=0;N<E.length;N++)if(R=E[N],!!R.isActive)for(U=R.collision,F=0;F<R.activeContacts.length;F++){var O=R.activeContacts[F],V=O.vertex;P.rect(V.x-1.5,V.y-1.5,3.5,3.5)}for(I.wireframes?P.fillStyle="rgba(255,255,255,0.7)":P.fillStyle="orange",P.fill(),P.beginPath(),N=0;N<E.length;N++)if(R=E[N],!!R.isActive&&(U=R.collision,R.activeContacts.length>0)){var q=R.activeContacts[0].vertex.x,Z=R.activeContacts[0].vertex.y;R.activeContacts.length===2&&(q=(R.activeContacts[0].vertex.x+R.activeContacts[1].vertex.x)/2,Z=(R.activeContacts[0].vertex.y+R.activeContacts[1].vertex.y)/2),U.bodyB===U.supports[0].body||U.bodyA.isStatic===!0?P.moveTo(q-U.normal.x*8,Z-U.normal.y*8):P.moveTo(q+U.normal.x*8,Z+U.normal.y*8),P.lineTo(q,Z)}I.wireframes?P.strokeStyle="rgba(255,165,0,0.7)":P.strokeStyle="orange",P.lineWidth=1,P.stroke()},s.separations=function(b,E,D){var P=D,I=b.options,R,U,N,F,O;for(P.beginPath(),O=0;O<E.length;O++)if(R=E[O],!!R.isActive){U=R.collision,N=U.bodyA,F=U.bodyB;var V=1;!F.isStatic&&!N.isStatic&&(V=.5),F.isStatic&&(V=0),P.moveTo(F.position.x,F.position.y),P.lineTo(F.position.x-U.penetration.x*V,F.position.y-U.penetration.y*V),V=1,!F.isStatic&&!N.isStatic&&(V=.5),N.isStatic&&(V=0),P.moveTo(N.position.x,N.position.y),P.lineTo(N.position.x+U.penetration.x*V,N.position.y+U.penetration.y*V)}I.wireframes?P.strokeStyle="rgba(255,165,0,0.5)":P.strokeStyle="orange",P.stroke()},s.inspector=function(b,E){b.engine;var D=b.selected,P=b.render,I=P.options,R;if(I.hasBounds){var U=P.bounds.max.x-P.bounds.min.x,N=P.bounds.max.y-P.bounds.min.y,F=U/P.options.width,O=N/P.options.height;E.scale(1/F,1/O),E.translate(-P.bounds.min.x,-P.bounds.min.y)}for(var V=0;V<D.length;V++){var q=D[V].data;switch(E.translate(.5,.5),E.lineWidth=1,E.strokeStyle="rgba(255,165,0,0.9)",E.setLineDash([1,2]),q.type){case"body":R=q.bounds,E.beginPath(),E.rect(Math.floor(R.min.x-3),Math.floor(R.min.y-3),Math.floor(R.max.x-R.min.x+6),Math.floor(R.max.y-R.min.y+6)),E.closePath(),E.stroke();break;case"constraint":var Z=q.pointA;q.bodyA&&(Z=q.pointB),E.beginPath(),E.arc(Z.x,Z.y,10,0,2*Math.PI),E.closePath(),E.stroke();break}E.setLineDash([]),E.translate(-.5,-.5)}b.selectStart!==null&&(E.translate(.5,.5),E.lineWidth=1,E.strokeStyle="rgba(255,165,0,0.6)",E.fillStyle="rgba(255,165,0,0.1)",R=b.selectBounds,E.beginPath(),E.rect(Math.floor(R.min.x),Math.floor(R.min.y),Math.floor(R.max.x-R.min.x),Math.floor(R.max.y-R.min.y)),E.closePath(),E.stroke(),E.fill(),E.translate(-.5,-.5)),I.hasBounds&&E.setTransform(1,0,0,1,0,0)};var y=function(b,E){var D=b.engine,P=b.timing,I=P.historySize,R=D.timing.timestamp;P.delta=E-P.lastTime||s._goodDelta,P.lastTime=E,P.timestampElapsed=R-P.lastTimestamp||0,P.lastTimestamp=R,P.deltaHistory.unshift(P.delta),P.deltaHistory.length=Math.min(P.deltaHistory.length,I),P.engineDeltaHistory.unshift(D.timing.lastDelta),P.engineDeltaHistory.length=Math.min(P.engineDeltaHistory.length,I),P.timestampElapsedHistory.unshift(P.timestampElapsed),P.timestampElapsedHistory.length=Math.min(P.timestampElapsedHistory.length,I),P.engineElapsedHistory.unshift(D.timing.lastElapsed),P.engineElapsedHistory.length=Math.min(P.engineElapsedHistory.length,I),P.elapsedHistory.unshift(P.lastElapsed),P.elapsedHistory.length=Math.min(P.elapsedHistory.length,I)},v=function(b){for(var E=0,D=0;D<b.length;D+=1)E+=b[D];return E/b.length||0},_=function(b,E){var D=document.createElement("canvas");return D.width=b,D.height=E,D.oncontextmenu=function(){return!1},D.onselectstart=function(){return!1},D},x=function(b){var E=b.getContext("2d"),D=window.devicePixelRatio||1,P=E.webkitBackingStorePixelRatio||E.mozBackingStorePixelRatio||E.msBackingStorePixelRatio||E.oBackingStorePixelRatio||E.backingStorePixelRatio||1;return D/P},w=function(b,E){var D=b.textures[E];return D||(D=b.textures[E]=new Image,D.src=E,D)},S=function(b,E){var D=E;/(jpg|gif|png)$/.test(E)&&(D="url("+E+")"),b.canvas.style.background=D,b.canvas.style.backgroundSize="contain",b.currentBackgroun
920d=E}})()},function(t,n,i){var s={};t.exports=s;var a=i(5),o=i(17),l=i(0);(function(){var u,h;if(typeof window<"u"&&(u=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,h=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!u){var c;u=function(d){c=setTimeout(function(){d(l.now())},1e3/60)},h=function(){clearTimeout(c)}}s.create=function(d){var f={fps:60,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,frameRequestId:null,isFixed:!1,enabled:!0},g=l.extend(f,d);return g.delta=g.delta||1e3/g.fps,g.deltaMin=g.deltaMin||1e3/g.fps,g.deltaMax=g.deltaMax||1e3/(g.fps*.5),g.fps=1e3/g.delta,g},s.run=function(d,f){return typeof d.positionIterations<"u"&&(f=d,d=s.create()),function g(y){d.frameRequestId=u(g),y&&d.enabled&&s.tick(d,f,y)}(),d},s.tick=function(d,f,g){var y=f.timing,v;d.isFixed?v=d.delta:(v=g-d.timePrev||d.delta,d.timePrev=g,d.deltaHistory.push(v),d.deltaHistory=d.deltaHistory.slice(-d.deltaSampleSize),v=Math.min.apply(null,d.deltaHistory),v=v<d.deltaMin?d.deltaMin:v,v=v>d.deltaMax?d.deltaMax:v,d.delta=v);var _={timestamp:y.timestamp};a.trigger(d,"beforeTick",_),d.frameCounter+=1,g-d.counterTimestamp>=1e3&&(d.fps=d.frameCounter*((g-d.counterTimestamp)/1e3),d.counterTimestamp=g,d.frameCounter=0),a.trigger(d,"tick",_),a.trigger(d,"beforeUpdate",_),o.update(f,v),a.trigger(d,"afterUpdate",_),a.trigger(d,"afterTick",_)},s.stop=function(d){h(d.frameRequestId)},s.start=function(d,f){s.run(d,f)}})()},function(t,n,i){var s={};t.exports=s;var a=i(8),o=i(0),l=o.deprecated;(function(){s.collides=function(u,h){return a.collides(u,h)},l(s,"collides","SAT.collides ➤ replaced by Collision.collides")})()},function(t,n,i){var s={};t.exports=s,i(1);var a=i(0);(function(){s.pathToVertices=function(o,l){typeof window<"u"&&!("SVGPathSeg"in window)&&a.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var u,h,c,d,f,g,y,v,_,x,w=[],S,b,E=0,D=0,P=0;l=l||15;var I=function(U,N,F){var O=F%2===1&&F>1;if(!_||U!=_.x||N!=_.y){_&&O?(S=_.x,b=_.y):(S=0,b=0);var V={x:S+U,y:b+N};(O||!_)&&(_=V),w.push(V),D=S+U,P=b+N}},R=function(U){var N=U.pathSegTypeAsLetter.toUpperCase();if(N!=="Z"){switch(N){case"M":case"L":case"T":case"C":case"S":case"Q":D=U.x,P=U.y;break;case"H":D=U.x;break;case"V":P=U.y;break}I(D,P,U.pathSegType)}};for(s._svgPathToAbsolute(o),c=o.getTotalLength(),g=[],u=0;u<o.pathSegList.numberOfItems;u+=1)g.push(o.pathSegList.getItem(u));for(y=g.concat();E<c;){if(x=o.getPathSegAtLength(E),f=g[x],f!=v){for(;y.length&&y[0]!=f;)R(y.shift());v=f}switch(f.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":d=o.getPointAtLength(E),I(d.x,d.y,0);break}E+=l}for(u=0,h=y.length;u<h;++u)R(y[u]);return w},s._svgPathToAbsolute=function(o){for(var l,u,h,c,d,f,g=o.pathSegList,y=0,v=0,_=g.numberOfItems,x=0;x<_;++x){var w=g.getItem(x),S=w.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(S))"x"in w&&(y=w.x),"y"in w&&(v=w.y);else switch("x1"in w&&(h=y+w.x1),"x2"in w&&(d=y+w.x2),"y1"in w&&(c=v+w.y1),"y2"in w&&(f=v+w.y2),"x"in w&&(y+=w.x),"y"in w&&(v+=w.y),S){case"m":g.replaceItem(o.createSVGPathSegMovetoAbs(y,v),x);break;case"l":g.replaceItem(o.createSVGPathSegLinetoAbs(y,v),x);break;case"h":g.replaceItem(o.createSVGPathSegLinetoHorizontalAbs(y),x);break;case"v":g.replaceItem(o.createSVGPathSegLinetoVerticalAbs(v),x);break;case"c":g.replaceItem(o.createSVGPathSegCurvetoCubicAbs(y,v,h,c,d,f),x);break;case"s":g.replaceItem(o.createSVGPathSegCurvetoCubicSmoothAbs(y,v,d,f),x);break;case"q":g.replaceItem(o.createSVGPathSegCurvetoQuadraticAbs(y,v,h,c),x);break;case"t":g.replaceItem(o.createSVGPathSegCurvetoQuadraticSmoothAbs(y,v),x);break;case"a":g.replaceItem(o.createSVGPathSegArcAbs(y,v,w.r1,w.r2,w.angle,w.largeArcFlag,w.sweepFlag),x);break;case"z":case"Z":y=l,v=u;break}(S=="M"||S=="m")&&(l=y,u=v)}}})()},function(t,n,i){var s={};t.exports=s;var a=i(6);i(0),function(){s.create=a.create,s.add=a.add,s.remove=a.remove,s.clear=a.clear,s.addComposite=a.addComposite,s.addBody=a.addBody,s.addConstraint=a.addConstraint}()}])})})(sP);var Qt=sP.exports;const aP=()=>{const[r,e]=X.useState("");return X.useEffect(()=>{const t=()=>{const n=navigator.userAgent.toLowerCase(),i=/iphone|ipad|ipod|android|blackberry|windows phone/g.test(n),s=/(ipad|tablet|playbook|silk)|(android(?!.*mobile))/g.test(n);e(i?"Mobile":s?"Tablet":"Desktop")};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),r},ez="/images/particles/selector/orange/bubble_orange.png",tz="/images/particles/selector/orange/explosion_1.png",rz="/images/particles/selector/orange/explosion_2.png",nz="/images/particles/selector/orange/explosion_3.png",iz="/images/particles/selector/green/bubble_green.png",Aw="/images/particles/selector/green/explosion_1.png",Tw="/images/particles/selector/green/explosion_2.png",sz="/images/particles/selector/purple/bubble_purple.png",az="/images/particles/selector/purple/explosion_1.png",oz="/images/particles/selector/purple/explosion_2.png",Ew="/images/particles/selector/purple/explosion_3.png",lz="/images/particles/selector/aqua/bubble_aqua.png",uz="/images/particles/selector/aqua/explosion_1.png",cz="/images/particles/selector/aqua/explosion_2.png",hz="/images/particles/selector/aqua/explosion_3.png",dz="/images/particles/selector/aqua/explosion_4.png",fz="/images/particles/selector/red/bubble_red.png",Pw="/images/particles/selector/red/explosion_1.png",pz="/images/particles/selector/red/explosion_2.png",Dw="/images/particles/selector/red/explosion_3.png",mz="/images/particles/selector/blue/bubble_blue.png",Hw="/images/particles/selector/blue/explosion_1.png",gz="/images/particles/selector/blue/explosion_2.png",yz="/images/particles/selector/blue/explosion_3.png",vz="/images/particles/selector/blue/explosion_4.png",_z="/images/particles/selector/blue/explosion_5.png",xz="/images/particles/selector/blue/explosion_6.png",Cz="/images/particles/selector/blue/explosion_7.png",oP={orange:{bubble:ez,particles:[{asset:tz,scale:!1},{asset:rz,scale:!1},{asset:nz,scale:!1},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]})),...Array(5).fill().map(()=>({asset:Xp,scale:[.25,.5]}))]},green:{bubble:iz,particles:[{asset:Aw,scale:!1},{asset:Tw,scale:!1},{asset:Aw,scale:[.25,.5]},{asset:Tw,scale:[.25,.5]},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]})),...Array(5).fill().map(()=>({asset:Xp,scale:[.25,.5]}))]},purple:{bubble:sz,particles:[{asset:az,scale:!1},{asset:oz,scale:!1},{asset:Ew,scale:!1},{asset:Ew,scale:[.25,.5]},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]}))]},aqua:{bubble:lz,particles:[{asset:uz,scale:!1},{asset:cz,scale:!1},{asset:hz,scale:!1},{asset:dz,scale:!1},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]})),...Array(5).fill().map(()=>({asset:Xp,scale:[.25,.5]}))]},red:{bubble:fz,particles:[{asset:Pw,scale:!1},{asset:Pw,scale:[.25,.5]},{asset:pz,scale:!1},{asset:Dw,scale:!1},{asset:Dw,scale:[.25,.5]},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]}))]},blue:{bubble:mz,particles:[{asset:Hw,scale:!1},{asset:Hw,scale:[.25,.5]},{asset:gz,scale:!1},{asset:yz,scale:!1},{asset:vz,scale:!1},{asset:_z,scale:!1},{asset:xz,scale:!1},{asset:Cz,scale:!1},...Array(5).fill().map(()=>({asset:ca,scale:[.1,.2]}))]}},wz=({origin:r={x:0,y:0},theme:e="orange",forced:t=!1,onComplete:n=()=>{}})=>{const i=X.useRef(!1),[s,a]=X.useState(oP[e].particles.map(u=>({image:u.asset,dir:jM(),...r,r:ge.utils.random(0,360),vr:Math.random()*.25,s:u.scale?ge.utils.random(u.scale):1}))),[o,l]=X.useState({value:0});return Vt.useTick(u=>{i.current&&a(s.map(h=>({...h,x:h.x+h.dir.x*5*u,y:h.y+h.dir.y*5*u,r:h.r+h.vr*u})))}),X.useEffect(()=>{const u=ge.timeline({onUpdate:()=>l({...o}
920),delay:t?1:0,onStart:()=>{i.current=!0},onComplete:n});u.to(o,{value:1,duration:.25,ease:"expo.out"}),u.to(o,{value:0,duration:1,ease:"expo.out"})},[]),B.jsx(B.Fragment,{children:B.jsx(Vt.Container,{alpha:o.value,children:s.map(({x:u,y:h,r:c,s:d,image:f},g)=>B.jsx(Vt.Sprite,{image:f,x:u,y:h,rotation:c,scale:d,anchor:.5},g))})})},bz=({x:r,y:e,s:t,intent:n="",moodForPrompt:i="",theme:s="orange",forceExplosion:a=!1,onSelect:o=()=>{}})=>{const{updateSelectorState:l,setSelectorEnabled:u,pixiViewTransition:h}=xn(),c=aP(),[d,f]=X.useState({scale:t,alpha:1}),[g,y]=X.useState(!1),[v,_]=X.useState(!1),x=D=>{const P=ge.timeline({delay:D?1:0});P.to(d,{scale:`+=${t*.25}`,ease:"expo.out",duration:.25,onUpdate:()=>f({...d})}),P.to(d,{alpha:0,ease:"expo.out",duration:.5,onUpdate:()=>f({...d})},"-=.20"),y(!0)},w=()=>{_(!0),x(),o(),gt.play("main-sfx","reason_selection")},S=()=>{h===rc||h===kl||(ge.to(d,{scale:`+=${t*.25}`,ease:"expo.out",duration:.5,onUpdate:()=>f({...d})}),u(!0))},b=()=>{h===rc||h===kl||(ge.to(d,{scale:t,ease:"expo.out",duration:.5,onUpdate:()=>f({...d})}),u(!1))},E=()=>l({enabled:!1,selected:i});return X.useEffect(()=>{!a||v||x(!0)},[a,v]),B.jsxs(B.Fragment,{children:[B.jsxs(Vt.Container,{x:r,y:e,scale:d.scale,alpha:d.alpha,interactive:!0,onclick:w,ontap:w,onpointerover:c==="Desktop"?S:null,onpointerleave:c==="Desktop"?b:null,children:[B.jsx(Vt.Sprite,{image:oP[s].bubble,anchor:.5}),B.jsx(Vt.Text,{text:n,anchor:.5,style:{align:"center",fontFamily:'"Bebas Neue", sans-serif',fontSize:18,fill:"white",wordWrap:!0,wordWrapWidth:140}})]}),g&&B.jsx(wz,{origin:{x:r,y:e},theme:s,onComplete:v?E:void 0,forced:!v&&a})]})},Sz=()=>{const r=Vt.useApp(),{selectorState:e,pixiViewTransition:t,pixiViewStep:n,pixiDeviceType:i}=xn(),s=X.useRef(0),a=174,o={y:-.3},l=X.useRef(Qt.Engine.create({gravity:o})),u=X.useRef([]),h=i==="Desktop"?ge.utils.random(r.screen.width*.5,r.screen.width*.8,!0):ge.utils.random(r.screen.width*.4,r.screen.width*.6,!0),c=i==="Desktop"?ge.utils.random(.9,1.25,!0):ge.utils.random(.7,1.1,!0),[d,f]=X.useState($A(["orange","green","purple","aqua","red","blue"],5).map((b,E)=>({x:h(),y:r.screen.height+200*(E+1),s:c(),theme:b,...e.options[E]}))),[g,y]=X.useState(!1),v=X.useMemo(()=>d.map(({x:b,y:E,s:D})=>Qt.Bodies.circle(b,E,a*D*.9/2,{restitution:.7,friction:0,frictionAir:.01})),[]),_=()=>{const b=i==="Desktop"?400:r.screen.width,E=10,D={x:i==="Desktop"?r.screen.width*.7:b/2,y:i==="Desktop"?r.screen.height*.25:r.screen.height*.3},P=1,I=Qt.Bodies.rectangle(D.x,D.y,b,E,{restitution:P}),R=Qt.Bodies.rectangle(D.x-b/2-(i==="Desktop"?100:0),D.y+b/2,E,b,{restitution:P});i==="Desktop"&&Qt.Body.rotate(R,Math.PI/10);const U=Qt.Bodies.rectangle(D.x+b/2+(i==="Desktop"?100:0),D.y+b/2,E,b,{restitution:P});return i==="Desktop"&&Qt.Body.rotate(U,-(Math.PI/10)),Qt.Body.create({parts:[I,R,U],isStatic:!0})},x=()=>{setTimeout(()=>{gt.play("main-sfx","reason_extra_pop_1"),gt.play("main-sfx","reason_extra_pop_2"),gt.play("main-sfx","reason_extra_pop_3"),gt.play("main-sfx","reason_extra_pop_4")},1e3)};X.useEffect(()=>(Qt.Composite.add(l.current.world,_()),v.forEach(b=>Qt.Composite.add(l.current.world,b)),()=>Qt.Engine.clear(l.current)),[]),X.useEffect(()=>{t===rc&&n===ic&&(y(!0),x())},[t,n]);const w=b=>{const I={x:Math.sin(s.current+Math.random())*5e-5*50,y:-5e-5};Qt.Body.applyForce(b,b.position,I),s.current+=.01};Vt.useTick(()=>{f(d.map((b,E)=>{const D=v[E];return w(D),!u.current[E]&&D.position.y<r.screen.height&&(gt.play("main-sfx",`bubble_pop_${ge.utils.random(0,12,1)}`),u.current[E]=!0),{...b,x:D.position.x,y:D.position.y}})),Qt.Engine.update(l.current)});const S=()=>{y(!0),x()};return B.jsx(B.Fragment,{children:d.map((b,E)=>X.createElement(bz,{...b,onSelect:S,forceExplosion:g,key:E}))})},Az=`
921  #ifdef GL_ES
922  precision mediump float;
923  #endif
924
925  #define PI 3.14159265359
926
927  uniform float u_transition;
928  uniform float u_curveDirection;
929  uniform vec2 u_times;
930
931  varying vec2 vTextureCoord;
932
933  void main() {
934    vec2 st = vTextureCoord;
935    
936    // MORNING
937    vec3 morning = vec3(0.21875, 0.70703125, 0.94921875);
938    
939    // AFTERNOON GRADIENT
940    vec3 afternoon_color1 = vec3(0.9764705882, 0.2, 0.2);
941    vec3 afternoon_color2 = vec3(0.9960784314, 0.4549019608, 0.1568627451);
942    vec3 afternoon_color3 = vec3(1., 0.7960784314, 0.5607843137);
943    vec3 afternoon = mix(afternoon_color1, afternoon_color2, smoothstep(.31, .64, st.y));
944    afternoon = mix(afternoon, afternoon_color3, smoothstep(.64, 1., st.y));
945    
946    // NIGHT GRADIENT
947    vec3 night_color1 = vec3(0.007843137255, 0.0862745098, 0.2039215686);
948    vec3 night_color2 = vec3(0.09019607843, 0.2117647059, 0.3960784314);
949    vec3 night_color3 = vec3(0.5019607843, 0.4235294118, 0.7647058824);
950    vec3 night = mix(night_color1, night_color2, smoothstep(.31, .64, st.y));
951    night = mix(night, night_color3, smoothstep(.64, 1., st.y));
952    
953    // CONTROLS
954    float curve = cos((st.y-.5)*PI*.5);
955    float offset = .05 * ( 4. * u_transition * ( 1. - u_transition ) );
956    float curveSize = (u_curveDirection * (4. * u_transition * ( 1. - u_transition )))*.25;
957    float cut = (u_transition + curve * curveSize);
958    
959    // COLOR
960    vec3 color = vec3(0.);
961    color += mix(
962      mix(mix(morning, afternoon, u_times.x), night, step(2.0, u_times.x)),
963      mix(mix(morning, afternoon, u_times.y), night, step(2.0, u_times.y)),
964      smoothstep(cut-offset, cut+offset, st.x)
965    );
966
967    //DEBUG
968    // color = vec3(smoothstep(max(0., cut-offset), min(1., cut+offset), st.x));
969    
970    gl_FragColor = vec4(color, 1.);
971  }
972`,Tz=()=>{const r=Vt.useApp(),{pixiTimeState:e,setPixiTimeDirection:t,pixiViewTransition:n}=xn(),i=X.useRef(!1),s=q$(),a=X.useRef(new fl(null,Az,{u_transition:0,u_curveDirection:1,u_times:[0,0]})),o=X.useRef(new cB(0));X.useEffect(()=>{ge.fromTo(o.current,{alpha:0},{alpha:1,duration:2,ease:"expo.inOut",onComplete:()=>{i.current=!0}})},[]),X.useEffect(()=>{n!==k3||!i.current||ge.fromTo(o.current,{alpha:1},{alpha:0,duration:2,ease:"expo.inOut"})},[n,i]),X.useEffect(()=>{const{dir:u,prev:h,current:c}=e;if(u==="idle")return;const d=u==="right";a.current.uniforms.u_times=d?[h,c]:[c,h];const f=ge.timeline({onComplete:()=>{t("idle")}});f.set(a.current.uniforms,{u_curveDirection:d?-1:1}),f.fromTo(a.current.uniforms,{u_transition:d?1:0},{u_transition:d?0:1,duration:2,ease:"expo.out"})},[e,a]);const l=X.useCallback(u=>{u.clear(),u.beginFill(),u.drawRect(0,0,r.screen.width,r.screen.height),u.endFill()},[s]);return B.jsx(B.Fragment,{children:B.jsx(Vt.Graphics,{draw:l,filters:[a.current,o.current]})})},Ez=()=>{const r=Vt.useApp(),{pixiLoaderProgress:e}=xn(),[t,n]=X.useState(!1),[i,s]=X.useState([]),a=X.useRef(0),o=X.useRef(0),l=-1,u=-174,h=r.screen.height+174,c=ge.utils.random(r.screen.width/3,r.screen.width/3+r.screen.width/3,!0),d=ge.utils.random(1,.5,!0);return U_((f,g)=>{n(!!(Math.floor(f/1e3)%2)),s(i.filter(y=>!y.dead).map((y,v)=>({...y,x:y.x+Math[v%2?"sin":"cos"](y.y*.01)*y.vx,y:y.y+y.vy*g,vy:y.vy,s:y.s,r:y.r&&y.r+y.vr,dead:y.y<u})))}),X.useEffect(()=>{a.current=e},[e]),X.useEffect(()=>{!t||o.current===a.current||(o.current=a.current,s([...i,{x:c(),y:h,vx:ge.utils.random(.1,1)*l,vy:.1*l,s:d(),r:Math.random()*360,vr:ge.utils.random(-.01,.01),t:a.current+"%"}]))},[t]),B.jsx(B.Fragment,{children:i.map(({x:f,y:g,s:y,r:v,t:_},x)=>B.jsxs(Vt.Container,{x:f,y:g,scale:y,rotation:v,children:[B.jsx(Vt.Sprite,{image:ca,anchor:.5}),B.jsx(Vt.Text,{text:_,anchor:.5,style:{align:"center",fontFamily:'"Bebas Neue", sans-serif',fontSize:64,fill:"white",wordWrap:!0,wordWrapWidth:140}})]},x))})},Pz=()=>{const e={y:-.3},t=Vt.useApp(),{pixiDeviceType:n,setPixiAppReady:i}=xn(),[s,a]=X.useState({x:0,y:0}),[o,l]=X.useState({scale:1,alpha:1}),u=X.useRef(Qt.Engine.create({gravity:e})),h=X.useMemo(()=>{const _=t.screen.width/2,x=t.screen.height+200,w=174/2;return Qt.Bodies.circle(_,x,w,{restitution:.7,friction:0,frictionAir:.01})},[]),c=()=>{const w={x:t.screen.width/2,y:t.screen.height/2},S=1,b=Qt.Bodies.rectangle(w.x,w.y,261,10,{restitution:S}),E=Qt.Bodies.rectangle(w.x-261/2-(n==="Desktop"?100:0),w.y+261/2,10,261,{restitution:S});n==="Desktop"&&Qt.Body.rotate(E,Math.PI/10);const D=Qt.Bodies.rectangle(w.x+261/2+(n==="Desktop"?100:0),w.y+261/2,10,261,{restitution:S});return n==="Desktop"&&Qt.Body.rotate(D,-(Math.PI/10)),Qt.Body.create({parts:[b,E,D],isStatic:!0})},d=(_,x)=>{const E={x:Math.sin(x+Math.random())*5e-5*50,y:-5e-5};Qt.Body.applyForce(_,_.position,E)};X.useEffect(()=>(Qt.Composite.add(u.current.world,c()),Qt.Composite.add(u.current.world,h),()=>Qt.Engine.clear(u.current)),[]),U_(_=>{d(h,_),a({...h.position}),Qt.Engine.update(u.current)});const f=()=>{const _=ge.timeline();_.to(o,{scale:"+=.25",ease:"expo.out",duration:.25,onUpdate:()=>l({...o}
972)}),_.to(o,{alpha:0,ease:"expo.out",duration:.5,onUpdate:()=>l({...o})},"-=.20")},g=()=>{ge.to(o,{scale:"+=.25",ease:"expo.out",duration:.5,onUpdate:()=>l({...o})})},y=()=>{ge.to(o,{scale:1,ease:"expo.out",duration:.5,onUpdate:()=>l({...o})})},v=()=>{f(),i(!0)};return B.jsx(B.Fragment,{children:B.jsxs(Vt.Container,{x:s.x,y:s.y,scale:o.scale,alpha:o.alpha,interactive:!0,onclick:v,ontap:v,onpointerover:n==="Desktop"?g:null,onpointerleave:n==="Desktop"?y:null,children:[B.jsx(Vt.Sprite,{image:ca,anchor:.5}),B.jsx(Vt.Text,{text:n==="Desktop"?"Haz Click para Iniciar":"Tap para Iniciar",anchor:.5,style:{align:"center",fontFamily:'"Bebas Neue", sans-serif',fontSize:n==="Desktop"?24:28,fill:"white",wordWrap:!0,wordWrapWidth:140}})]})})},Dz=({children:r,...e})=>B.jsx(XM,{render:t=>B.jsx(Vt.Stage,{...e,children:t}),children:r}),Hz=()=>{const{step:r,transition:e}=vs(),{pixiLoaderComplete:t}=xn();return B.jsx(B.Fragment,{children:B.jsxs(Dz,{width:window.innerWidth,height:window.innerHeight,options:{backgroundAlpha:0,background:"#0089CD",resizeTo:window},className:"fixed top-0 left-0",children:[r===Ws&&B.jsx(Q$,{}),B.jsx(W$,{}),B.jsx(J$,{}),(r===nc||r===Ws)&&B.jsx(Ez,{}),r===nc&&t&&B.jsx(Pz,{}),(e===Oh||e===tc||e===a0||r===Wd)&&B.jsx(Tz,{}),(e===I3||r===ic)&&B.jsx(Sz,{})]})})},lP=X.createContext(),kz=({children:r})=>{const[e,t]=X.useState(null),[n,i]=X.useState(!1);return B.jsx(lP.Provider,{value:{videoReady:n,setVideoReady:i,videoUrl:e,setVideoUrl:t},children:r})},Y4=()=>X.useContext(lP),Iz=()=>{const r=X.useRef(null),{videoUrl:e,setVideoReady:t}=Y4();return X.useEffect(()=>{if(!e)return;let n=r.current;n||(n=document.createElement("video"),r.current=n),n.src=e,n.preload="auto",n.style.display="none";const i=()=>{t(!0)};return n.addEventListener("canplaythrough",i),document.body.appendChild(n),n.load(),()=>{n.removeEventListener("canplaythrough",i),document.body.contains(n)&&document.body.removeChild(n),r.current=null}},[e,t]),null},Mz="modulepreload",Rz=function(r){return"/"+r},kw={},uP=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(t.map(o=>{if(o=Rz(o),o in kw)return;kw[o]=!0;const l=o.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Mz,l||(h.as="script",h.crossOrigin=""),h.href=o,a&&h.setAttribute("nonce",a),document.head.appendChild(h),l)return new Promise((c,d)=>{h.addEventListener("load",c),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})}))}return i.then(()=>e()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};var dt=(r=>(r.Application="application",r.WebGLPipes="webgl-pipes",r.WebGLPipesAdaptor="webgl-pipes-adaptor",r.WebGLSystem="webgl-system",r.WebGPUPipes="webgpu-pipes",r.WebGPUPipesAdaptor="webgpu-pipes-adaptor",r.WebGPUSystem="webgpu-system",r.CanvasSystem="canvas-system",r.CanvasPipesAdaptor="canvas-pipes-adaptor",r.CanvasPipes="canvas-pipes",r.Asset="asset",r.LoadParser="load-parser",r.ResolveParser="resolve-parser",r.CacheParser="cache-parser",r.DetectionParser="detection-parser",r.MaskEffect="mask-effect",r.BlendMode="blend-mode",r.TextureSource="texture-source",r.Environment="environment",r))(dt||{});const qy=r=>{if(typeof r=="function"||typeof r=="object"&&r.extension){if(!r.extension)throw new Error("Extension class must have an extension object");r={...typeof r.extension!="object"?{type:r.extension}:r.extension,ref:r}}if(typeof r=="object")r={...r};else throw new Error("Invalid extension type");return typeof r.type=="string"&&(r.type=[r.type]),r},fp=(r,e)=>qy(r).priority??e,Ca={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...r){return r.map(qy).forEach(e=>{e.type.forEach(t=>{var n,i;return(i=(n=this._removeHandlers)[t])==null?void 0:i.call(n,e)})}),this}
vendor: 34,572 bytes, lines 972-977
972,add(...r){return r.map(qy).forEach(e=>{e.type.forEach(t=>{var s,a;const n=this._addHandlers,i=this._queue;n[t]?(a=n[t])==null||a.call(n,e):(i[t]=i[t]||[],(s=i[t])==null||s.push(e))})}),this},handle(r,e,t){var a;const n=this._addHandlers,i=this._removeHandlers;if(n[r]||i[r])throw new Error(`Extension type ${r} already has a handler`);n[r]=e,i[r]=t;const s=this._queue;return s[r]&&((a=s[r])==null||a.forEach(o=>e(o)),delete s[r]),this},handleByMap(r,e){return this.handle(r,t=>{t.name&&(e[t.name]=t.ref)},t=>{t.name&&delete e[t.name]})},handleByNamedList(r,e,t=-1){return this.handle(r,n=>{e.findIndex(s=>s.name===n.name)>=0||(e.push({name:n.name,value:n.ref}),e.sort((s,a)=>fp(a.value,t)-fp(s.value,t)))},n=>{const i=e.findIndex(s=>s.name===n.name);i!==-1&&e.splice(i,1)})},handleByList(r,e,t=-1){return this.handle(r,n=>{e.includes(n.ref)||(e.push(n.ref),e.sort((i,s)=>fp(s,t)-fp(i,t)))},n=>{const i=e.indexOf(n.ref);i!==-1&&e.splice(i,1)})}},Fz={extension:{type:dt.Environment,name:"browser",priority:-1},test:()=>!0,load:async()=>{await uP(()=>import("./browserAll-BEoF3qfT.js"),__vite__mapDeps([0,1]))}},Lz={extension:{type:dt.Environment,name:"webworker",priority:0},test:()=>typeof self<"u"&&self.WorkerGlobalScope!==void 0,load:async()=>{await uP(()=>import("./webworkerAll-CAAxoo6L.js"),[])}};class Mi{constructor(e,t,n){this._x=t||0,this._y=n||0,this._observer=e}clone(e){return new Mi(e??this._observer,this._x,this._y)}set(e=0,t=e){return(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this._observer._onUpdate(this)),this}copyFrom(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this._observer._onUpdate(this)),this}copyTo(e){return e.set(this._x,this._y),e}equals(e){return e.x===this._x&&e.y===this._y}toString(){return`[pixi.js/math:ObservablePoint x=0 y=0 scope=${this._observer}]`}get x(){return this._x}set x(e){this._x!==e&&(this._x=e,this._observer._onUpdate(this))}get y(){return this._y}set y(e){this._y!==e&&(this._y=e,this._observer._onUpdate(this))}}var cP={exports:{}};(function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(l,u,h){this.fn=l,this.context=u,this.once=h||!1}function s(l,u,h,c,d){if(typeof h!="function")throw new TypeError("The listener must be a function");var f=new i(h,c||l,d),g=t?t+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],f]:l._events[g].push(f):(l._events[g]=f,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],h,c;if(this._eventsCount===0)return u;for(c in h=this._events)e.call(h,c)&&u.push(t?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},o.prototype.listeners=function(u){var h=t?t+u:u,c=this._events[h];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,f=c.length,g=new Array(f);d<f;d++)g[d]=c[d].fn;return g},o.prototype.listenerCount=function(u){var h=t?t+u:u,c=this._events[h];return c?c.fn?1:c.length:0},o.prototype.emit=function(u,h,c,d,f,g){var y=t?t+u:u;if(!this._events[y])return!1;var v=this._events[y],_=arguments.length,x,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),_){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,h),!0;case 3:return v.fn.call(v.context,h,c),!0;case 4:return v.fn.call(v.context,h,c,d),!0;case 5:return v.fn.call(v.context,h,c,d,f),!0;case 6:return v.fn.call(v.context,h,c,d,f,g),!0}for(w=1,x=new Array(_-1);w<_;w++)x[w-1]=arguments[w];v.fn.apply(v.context,x)}else{var S=v.length,b;for(w=0;w<S;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),_){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,h);break;case 3:v[w].fn.call(v[w].context,h,c);break;case 4:v[w].fn.call(v[w].context,h,c,d);break;default:if(!x)for(b=1,x=new Array(_-1);b<_;b++)x[b-1]=arguments[b];v[w].fn.apply(v[w].context,x)}}return!0},o.prototype.on=function(u,h,c){return s(this,u,h,c,!1)},o.prototype.once=function(u,h,c){return s(this,u,h,c,!0)},o.prototype.removeListener=function(u,h,c,d){var f=t?t+u:u;if(!this._events[f])return this;if(!h)return a(this,f),this;var g=this._events[f];if(g.fn)g.fn===h&&(!d||g.once)&&(!c||g.context===c)&&a(this,f);else{for(var y=0,v=[],_=g.length;y<_;y++)(g[y].fn!==h||d&&!g[y].once||c&&g[y].context!==c)&&v.push(g[y]);v.length?this._events[f]=v.length===1?v[0]:v:a(this,f)}return this},o.prototype.removeAllListeners=function(u){var h;return u?(h=t?t+u:u,this._events[h]&&a(this,h)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,r.exports=o})(cP);var Oz=cP.exports;const mc=cc(Oz),Nz=Math.PI*2,Bz=180/Math.PI,Uz=Math.PI/180;class kn{constructor(e=0,t=0){this.x=0,this.y=0,this.x=e,this.y=t}clone(){return new kn(this.x,this.y)}copyFrom(e){return this.set(e.x,e.y),this}copyTo(e){return e.set(this.x,this.y),e}equals(e){return e.x===this.x&&e.y===this.y}set(e=0,t=e){return this.x=e,this.y=t,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return v9.x=0,v9.y=0,v9}}const v9=new kn;class Gt{constructor(e=1,t=0,n=0,i=1,s=0,a=0){this.array=null,this.a=e,this.b=t,this.c=n,this.d=i,this.tx=s,this.ty=a}fromArray(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]}set(e,t,n,i,s,a){return this.a=e,this.b=t,this.c=n,this.d=i,this.tx=s,this.ty=a,this}toArray(e,t){this.array||(this.array=new Float32Array(9));const n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n}apply(e,t){t=t||new kn;const n=e.x,i=e.y;return t.x=this.a*n+this.c*i+this.tx,t.y=this.b*n+this.d*i+this.ty,t}applyInverse(e,t){t=t||new kn;const n=this.a,i=this.b,s=this.c,a=this.d,o=this.tx,l=this.ty,u=1/(n*a+s*-i),h=e.x,c=e.y;return t.x=a*u*h+-s*u*c+(l*s-o*a)*u,t.y=n*u*c+-i*u*h+(-l*n+o*i)*u,t}translate(e,t){return this.tx+=e,this.ty+=t,this}scale(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this}rotate(e){const t=Math.cos(e),n=Math.sin(e),i=this.a,s=this.c,a=this.tx;return this.a=i*t-this.b*n,this.b=i*n+this.b*t,this.c=s*t-this.d*n,this.d=s*n+this.d*t,this.tx=a*t-this.ty*n,this.ty=a*n+this.ty*t,this}append(e){const t=this.a,n=this.b,i=this.c,s=this.d;return this.a=e.a*t+e.b*i,this.b=e.a*n+e.b*s,this.c=e.c*t+e.d*i,this.d=e.c*n+e.d*s,this.tx=e.tx*t+e.ty*i+this.tx,this.ty=e.tx*n+e.ty*s+this.ty,this}appendFrom(e,t){const n=e.a,i=e.b,s=e.c,a=e.d,o=e.tx,l=e.ty,u=t.a,h=t.b,c=t.c,d=t.d;return this.a=n*u+i*c,this.b=n*h+i*d,this.c=s*u+a*c,this.d=s*h+a*d,this.tx=o*u+l*c+t.tx,this.ty=o*h+l*d+t.ty,this}setTransform(e,t,n,i,s,a,o,l,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-l)*a,this.d=Math.cos(o-l)*a,this.tx=e-(n*this.a+i*this.c),this.ty=t-(n*this.b+i*this.d),this}prepend(e){const t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){const n=this.a,i=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this}decompose(e){const t=this.a,n=this.b,i=this.c,s=this.d,a=e.pivot,o=-Math.atan2(-i,s),l=Math.atan2(n,t),u=Math.abs(o+l);return u<1e-5||Math.abs(Nz-u)<1e-5?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=l),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(i*i+s*s),e.position.x=this.tx+(a.x*t+a.y*i),e.position.y=this.ty+(a.x*n+a.y*s),e}invert(){const e=this.a,t=this.b,n=this.c,i=this.d,s=this.tx,a=e*i-t*n;return this.a=i/a,this.b=-t/a,this.c=-n/a,this.d=e/a,this.tx=(n*this.ty-i*s)/a,this.ty=-(e*this.ty-t*s)/a,this}isIdentity(){return this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.tx===0&&this.ty===0}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const e=new Gt;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyFrom(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this}equals(e){return e.a===this.a&&e.b===this.b&&e.c===this.c&&e.d===this.d&&e.tx===this.tx&&e.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return zz.identity()}static get shared(){return $z.identity()}}const $z=new Gt,zz=new Gt,Eu=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Pu=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Du=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Hu=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Qy=[],hP=[],pp=Math.sign;function jz(){for(let r=0;r<16;r++){const e=[];Qy.push(e);for(let t=0;t<16;t++){const n=pp(Eu[r]*Eu[t]+Du[r]*Pu[t]),i=pp(Pu[r]*Eu[t]+Hu[r]*Pu[t]),s=pp(Eu[r]*Du[t]+Du[r]*Hu[t]),a=pp(Pu[r]*Du[t]+Hu[r]*Hu[t]);for(let o=0;o<16;o++)if(Eu[o]===n&&Pu[o]===i&&Du[o]===s&&Hu[o]===a){e.push(o);break}}}for(let r=0;r<16;r++){const e=new Gt;e.set(Eu[r],Pu[r],Du[r],Hu[r],0,0),hP.push(e)}}jz();const fr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:r=>Eu[r],uY:r=>Pu[r],vX:r=>Du[r],vY:r=>Hu[r],inv:r=>r&8?r&15:-r&7,add:(r,e)=>Qy[r][e],sub:(r,e)=>Qy[r][fr.inv(e)],rotate180:r=>r^4,isVertical:r=>(r&3)===2,byDirection:(r,e)=>Math.abs(r)*2<=Math.abs(e)?e>=0?fr.S:fr.N:Math.abs(e)*2<=Math.abs(r)?r>0?fr.E:fr.W:e>0?r>0?fr.SE:fr.SW:r>0?fr.NE:fr.NW,matrixAppendRotationInv:(r,e,t=0,n=0)=>{const i=hP[fr.inv(e)];i.tx=t,i.ty=n,r.append(i)}},mp=[new kn,new kn,new kn,new kn];class mn{constructor(e=0,t=0,n=0,i=0){this.type="rectangle",this.x=Number(e),this.y=Number(t),this.width=Number(n),this.height=Number(i)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new mn(0,0,0,0)}clone(){return new mn(this.x,this.y,this.width,this.height)}copyFromBounds(e){return this.x=e.minX,this.y=e.minY,this.width=e.maxX-e.minX,this.height=e.maxY-e.minY,this}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height}strokeContains(e,t,n){const{width:i,height:s}=this;if(i<=0||s<=0)return!1;const a=this.x,o=this.y,l=a-n/2,u=a+i+n/2,h=o-n/2,c=o+s+n/2,d=a+n/2,f=a+i-n/2,g=o+n/2,y=o+s-n/2;return e>=l&&e<=u&&t>=h&&t<=c&&!(e>d&&e<f&&t>g&&t<y)}intersects(e,t){if(!t){const P=this.x<e.x?e.x:this.x;if((this.right>e.right?e.right:this.right)<=P)return!1;const R=this.y<e.y?e.y:this.y;return(this.bottom>e.bottom?e.bottom:this.bottom)>R}const n=this.left,i=this.right,s=this.top,a=this.bottom;if(i<=n||a<=s)return!1;const o=mp[0].set(e.left,e.top),l=mp[1].set(e.left,e.bottom),u=mp[2].set(e.right,e.top),h=mp[3].set(e.right,e.bottom);if(u.x<=o.x||l.y<=o.y)return!1;const c=Math.sign(t.a*t.d-t.b*t.c);if(c===0||(t.apply(o,o),t.apply(l,l),t.apply(u,u),t.apply(h,h),Math.max(o.x,l.x,u.x,h.x)<=n||Math.min(o.x,l.x,u.x,h.x)>=i||Math.max(o.y,l.y,u.y,h.y)<=s||Math.min(o.y,l.y,u.y,h.y)>=a))return!1;const d=c*(l.y-o.y),f=c*(o.x-l.x),g=d*n+f*s,y=d*i+f*s,v=d*n+f*a,_=d*i+f*a;if(Math.max(g,y,v,_)<=d*o.x+f*o.y||Math.min(g,y,v,_)>=d*h.x+f*h.y)return!1;const x=c*(o.y-u.y),w=c*(u.x-o.x),S=x*n+w*s,b=x*i+w*s,E=x*n+w*a,D=x*i+w*a;return!(Math.max(S,b,E,D)<=x*o.x+w*o.y||Math.min(S,b,E,D)>=x*h.x+w*h.y)}pad(e=0,t=e){return this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this}fit(e){const t=Math.max(this.x,e.x),n=Math.min(this.x+this.width,e.x+e.width),i=Math.max(this.y,e.y),s=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(n-t,0),this.y=i,this.height=Math.max(s-i,0),this}ceil(e=1,t=.001){const n=Math.ceil((this.x+this.width-t)*e)/e,i=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=i-this.y,this}enlarge(e){const t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),i=Math.min(this.y,e.y),s=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=n-t,this.y=i,this.height=s-i,this}getBounds(e){return e=e||new mn,e.copyFrom(this),e}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}const _9={default:-1};function gn(r="default"){return _9[r]===void 0&&(_9[r]=-1),++_9[r]}const Iw={},ac="8.0.0";function oc(r,e,t=3){if(Iw[e])return;let n=new Error().stack;typeof n>"u"?console.warn("PixiJS Deprecation Warning: ",`${e}
973Deprecated since v${r}`):(n=n.split(`
974`).splice(t).join(`
975`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
976Deprecated since v${r}`),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
977Deprecated since v${r}`),console.warn(n))),Iw[e]=!0}const dP=()=>{};function nZ(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function Mw(r){return!(r&r-1)&&!!r}function Vz(r){const e={};for(const t in r)r[t]!==void 0&&(e[t]=r[t]);return e}const Rw=Object.create(null);function Gz(r){const e=Rw[r];return e===void 0&&(Rw[r]=gn("resource")),e}const fP=class pP extends mc{constructor(e={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,e={...pP.defaultOptions,...e},this.addressMode=e.addressMode,this.addressModeU=e.addressModeU??this.addressModeU,this.addressModeV=e.addressModeV??this.addressModeV,this.addressModeW=e.addressModeW??this.addressModeW,this.scaleMode=e.scaleMode,this.magFilter=e.magFilter??this.magFilter,this.minFilter=e.minFilter??this.minFilter,this.mipmapFilter=e.mipmapFilter??this.mipmapFilter,this.lodMinClamp=e.lodMinClamp,this.lodMaxClamp=e.lodMaxClamp,this.compare=e.compare,this.maxAnisotropy=e.maxAnisotropy??1}set addressMode(e){this.addressModeU=e,this.addressModeV=e,this.addressModeW=e}get addressMode(){return this.addressModeU}set wrapMode(e){oc(ac,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=e}get wrapMode(){return this.addressMode}set scaleMode(e){this.magFilter=e,this.minFilter=e,this.mipmapFilter=e}get scaleMode(){return this.magFilter}set maxAnisotropy(e){this._maxAnisotropy=Math.min(e,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this.emit("change",this),this._sharedResourceId=null}_generateResourceId(){const e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=Gz(e),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};fP.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let Wz=fP;const mP=class gP extends mc{constructor(e={}){super(),this.options=e,this.uid=gn("textureSource"),this._resourceType="textureSource",this._resourceId=gn("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.antialias=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,e={...gP.defaultOptions,...e},this.label=e.label??"",this.resource=e.resource,this.autoGarbageCollect=e.autoGarbageCollect,this._resolution=e.resolution,e.width?this.pixelWidth=e.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,e.height?this.pixelHeight=e.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=e.format,this.dimension=e.dimensions,this.mipLevelCount=e.mipLevelCount,this.autoGenerateMipmaps=e.autoGenerateMipmaps,this.sampleCount=e.sampleCount,this.antialias=e.antialias,this.alphaMode=e.alphaMode,this.style=new Wz(Vz(e)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(e){var t,n;this.style!==e&&((t=this._style)==null||t.off("change",this._onStyleChange,this),this._style=e,(n=this._style)==null||n.on("change",this._onStyleChange,this),this._onStyleChange())}get addressMode(){return this._style.addressMode}set addressMode(e){this._style.addressMode=e}get repeatMode(){return this._style.addressMode}set repeatMode(e){this._style.addressMode=e}get magFilter(){return this._style.magFilter}set magFilter(e){this._style.magFilter=e}get minFilter(){return this._style.minFilter}set minFilter(e){this._style.minFilter=e}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(e){this._style.mipmapFilter=e}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(e){this._style.lodMinClamp=e}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(e){this._style.lodMaxClamp=e}_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){const e=this._resolution;if(this.resize(this.resourceWidth/e,this.resourceHeight/e))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){this._resourceId=gn("resource"),this.emit("change",this),this.emit("unload",this)}get resourceWidth(){const{resource:e}=this;return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}get resourceHeight(){const{resource:e}=this;return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}get resolution(){return this._resolution}set resolution(e){this._resolution!==e&&(this._resolution=e,this.width=this.pixelWidth/e,this.height=this.pixelHeight/e)}resize(e,t,n){n=n||this._resolution,e=e||this.width,t=t||this.height;const i=Math.round(e*n),s=Math.round(t*n);return this.width=i/n,this.height=s/n,this._resolution=n,this.pixelWidth===i&&this.pixelHeight===s?!1:(this._refreshPOT(),this.pixelWidth=i,this.pixelHeight=s,this.emit("resize",this),this._resourceId=gn("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(e){this._style.wrapMode=e}get wrapMode(){return this._style.wrapMode}set scaleMode(e){this._style.scaleMode=e}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=Mw(this.pixelWidth)&&Mw(this.pixelHeight)}static test(e){throw new Error("Unimplemented")}};mP.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};let Wl=mP;class $_ extends Wl{constructor(e){const t=e.resource||new Float32Array(e.width*e.height*4);let n=e.format;n||(t instanceof Float32Array?n="rgba32float":t instanceof Int32Array||t instanceof Uint32Array?n="rgba32uint":t instanceof Int16Array||t instanceof Uint16Array?n="rgba16uint":(t instanceof Int8Array,n="bgra8unorm")),super({...e,resource:t,format:n}),this.uploadMethodId="buffer"}static test(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}$_.extension=dt.TextureSource;const Fw=new Gt;class Xz{constructor(e,t){this.mapCoord=new Gt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,typeof t>"u"?this.clampMargin=e.width<10?0:.5:this.clampMargin=t,this.isSimple=!1,this.texture=e}get texture(){return this._texture}set texture(e){var t;this.texture!==e&&((t=this._texture)==null||t.removeListener("update",this.update,this),this._texture=e,this._texture.addListener("update",this.update,this),this.update())}multiplyUvs(e,t){t===void 0&&(t=e);const n=this.mapCoord;for(let i=0;i<e.length;i+=2){const s=e[i],a=e[i+1];t[i]=s*n.a+a*n.c+n.tx,t[i+1]=s*n.b+a*n.d+n.ty}return t}update(){const e=this._texture;this._updateID++;const t=e.uvs;this.mapCoord.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0);const n=e.orig,i=e.trim;i&&(Fw.set(n.width/i.width,0,0,n.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(Fw));const s=e.source,a=this.uClampFrame,o=this.clampMargin/s._resolution,l=this.clampOffset;return a[0]=(e.frame.x+o+l)/s.width,a[1]=(e.frame.y+o+l)/s.height,a[2]=(e.frame.x+e.frame.width-o+l)/s.width,a[3]=(e.frame.y+e.frame.height-o+l)/s.height,this.uClampOffset[0]=l/s.pixelWidth,this.uClampOffset[1]=l/s.pixelHeight,this.isSimple=e.frame.width===s.width&&e.frame.height===s.height&&e.rotate===0,!0}}class Yt extends mc{constructor({source:e,label:t,frame:n,orig:i,trim:s,defaultAnchor:a,defaultBorders:o,rotate:l,dynamic:u}={}){if(super(),this.uid=gn("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new mn,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=t,this.source=(e==null?void 0:e.source)??new Wl,this.noFrame=!n,n)this.frame.copyFrom(n);else{const{width:h,height:c}=this._source;this.frame.width=h,this.frame.height=c}this.orig=i||this.frame,this.trim=s,this.rotate=l??0,this.defaultAnchor=a,this.defaultBorders=o,this.destroyed=!1,this.dynamic=u||!1,this.updateUvs()}set source(e){this._source&&this._source.off("resize",this.update,this),this._source=e,e.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new Xz(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){const{uvs:e,frame:t}=this,{width:n,height:i}=this._source,s=t.x/n,a=t.y/i,o=t.width/n,l=t.height/i;let u=this.rotate;if(u){const h=o/2,c=l/2,d=s+h,f=a+c;u=fr.add(u,fr.NW),e.x0=d+h*fr.uX(u),e.y0=f+c*fr.uY(u),u=fr.add(u,2),e.x1=d+h*fr.uX(u),e.y1=f+c*fr.uY(u),u=fr.add(u,2),e.x2=d+h*fr.uX(u),e.y2=f+c*fr.uY(u),u=fr.add(u,2),e.x3=d+h*fr.uX(u),e.y3=f+c*fr.uY(u)}else e.x0=s,e.y0=a,e.x1=s+o,e.y1=a,e.x2=s+o,e.y2=a+l,e.x3=s,e.y3=a+l}destroy(e=!1){this._source&&e&&(this._source.destroy(),this._source=null),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}get baseTexture(){return oc(ac,"Texture.baseTexture is now Texture.source"),this._source}}Yt.EMPTY=new Yt({label:"EMPTY",source:new Wl({label:"EMPTY"})});Yt.EMPTY.destroy=dP;Yt.WHITE=new Yt({source:new $_({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"});Yt.WHITE.destroy=dP;function Yz(r,e,t,n){const{width:i,height:s}=t.orig,a=t.trim;if(a){const o=a.width,l=a.height;r.minX=a.x-e._x*i-n,r.maxX=r.minX+o,r.minY=a.y-e._y*s-n,r.maxY=r.minY+l}else r.minX=-e._x*i-n,r.maxX=r.minX+i,r.minY=-e._y*s-n,r.maxY=r.minY+s}AT([TT]);const f0=class Z1{constructor(e=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=e}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(e){return this.value=e,this}set value(e){if(e instanceof Z1)this._value=this._cloneSource(e._value),this._int=e._int,this._components.set(e._components);else{if(e===null)throw new Error("Cannot set Color#value to null");(this._value===null||!this._isSourceEqual(this._value,e))&&(this._normalize(e),this._value=this._cloneSource(e))}}get value(){return this._value}_cloneSource(e){return typeof e=="string"||typeof e=="number"||e instanceof Number||e===null?e:Array.isArray(e)||ArrayBuffer.isView(e)?e.slice(0):typeof e=="object"&&e!==null?{...e}:e}_isSourceEqual(e,t){const n=typeof e;if(n!==typeof t)return!1;if(n==="number"||n==="string"||e instanceof Number)return e===t;if(Array.isArray(e)&&Array.isArray(t)||ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return e.length!==t.length?!1:e.every((s,a)=>s===t[a]);if(e!==null&&t!==null){const s=Object.keys(e),a=Object.keys(t);return s.length!==a.length?!1:s.every(o=>e[o]===t[o])}return e===t}toRgba(){const[e,t,n,i]=this._components;return{r:e,g:t,b:n,a:i}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,i]=this._components;return this._arrayRgb||(this._arrayRgb=[]),e=e||this._arrayRgb,e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(i*255),e}toArray(e){this._arrayRgba||(this._arrayRgba=[]),e=e||this._arrayRgba;const[t,n,i,s]=this._components;return e[0]=t,e[1]=n,e[2]=i,e[3]=s,e}toRgbArray(e){this._arrayRgb||(this._arrayRgb=[]),e=e||this._arrayRgb;const[t,n,i]=this._components;return e[0]=t,e[1]=n,e[2]=i,e}toNumber(){return this._int}toBgrNumber(){const[e,t,n]=this.toUint8RgbArray();return(n<<16)+(t<<8)+e}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,i,s]=Z1._temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=i,this._components[3]*=s,this._refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this._refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,i=this._int>>8&255,s=this._int&255;return t&&(n=n*e+.5|0,i=i*e+.5|0,s=s*e+.5|0),(e*255<<24)+(n<<16)+(i<<8)+s}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}_normalize(e){let t,n,i,s;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const a=e;t=(a>>16&255)/255,n=(a>>8&255)/255,i=(a&255)/255,s=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,i,s=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,i,s=255]=e,t/=255,n/=255,i/=255,s/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const o=Z1.HEX_PATTERN.exec(e);o&&(e=`#${o[2]}`)}const a=Hs(e);a.isValid()&&({r:t,g:n,b:i,a:s}=a.rgba,t/=255,n/=255,i/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=i,this._components[3]=s,this._refreshInt();else throw new Error(`Unable to convert color ${e}`)}_refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((i,s)=>{e[s]=Math.min(Math.max(i,t),n)}),e)}static isColorLike(e){return typeof e=="number"||typeof e=="string"||e instanceof Number||e instanceof Z1||Array.isArray(e)||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||e.r!==void 0&&e.g!==void 0&&e.b!==void 0||e.r!==void 0&&e.g!==void 0&&e.b!==void 0&&e.a!==void 0||e.h!==void 0&&e.s!==void 0&&e.l!==void 0||e.h!==void 0&&e.s!==void 0&&e.l!==void 0&&e.a!==void 0||e.h!==void 0&&e.s!==void 0&&e.v!==void 0||e.h!==void 0&&e.s!==void 0&&e.v!==void 0&&e.a!==void 0}};f0.shared=new f0;f0._temp=new f0;f0.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let pa=f0;const Zz={cullArea:null,cullable:!1,cullableChildren:!0};function qz(r,e,t){const n=r.length;let i;if(e>=n||t===0)return;t=e+t>n?n-e:t;const s=n-t;for(i=e;i<s;++i)r[i]=r[i+t];r.length=s}const Qz={allowChildren:!0,removeChildren(r=0,e){const t=e??this.children.length,n=t-r,i=[];if(n>0&&n<=t){for(let a=t-1;a>=r;a--){const o=this.children[a];o&&(i.push(o),o.parent=null)}qz(this.children,r,t);const s=this.renderGroup||this.parentRenderGroup;s&&s.removeChildren(i);for(let a=0;a<i.length;++a)this.emit("childRemoved",i[a],this,a),i[a].emit("removed",this);return i}else if(n===0&&this.children.length===0)return i;throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(r){const e=this.getChildAt(r);return this.removeChild(e)},getChildAt(r){if(r<0||r>=this.children.length)throw new Error(`getChildAt: Index (${r}) does not exist.`);return this.children[r]},setChildIndex(r,e){if(e<0||e>=this.children.length)throw new Error(`The index ${e} supplied is out of bounds ${this.children.length}`);this.getChildIndex(r),this.addChildAt(r,e)},getChildIndex(r){const e=this.children.indexOf(r);if(e===-1)throw new Error("The supplied Container must be a child of the caller");return e},addChildAt(r,e){this.allowChildren||oc(ac,"addChildAt: Only Containers will be allowed to add children in v8.0.0");const{children:t}=this;if(e<0||e>t.length)throw new Error(`${r}addChildAt: The index ${e} supplied is out of bounds ${t.length}`);if(r.parent){const i=r.parent.children.indexOf(r);if(r.parent===this&&i===e)return r;i!==-1&&r.parent.children.splice(i,1)}e===t.length?t.push(r):t.splice(e,0,r),r.parent=this,r.didChange=!0,r.didViewUpdate=!1,r._updateFlags=15;const n=this.renderGroup||this.parentRenderGroup;return n&&n.addChild(r),this.sortableChildren&&(this.sortDirty=!0),this.emit("childAdded",r,this,e),r.emit("added",this),r},swapChildren(r,e){if(r===e)return;const t=this.getChildIndex(r),n=this.getChildIndex(e);this.children[t]=e,this.children[n]=r},removeFromParent(){var r;(r=this.parent)==null||r.removeChild(this)}};class Lw{constructor(){this.pipe="filter",this.priority=1}destroy(){for(let e=0;e<this.filters.length;e++)this.filters[e].destroy();this.filters=null,this.filterArea=null}}class z_{constructor(e,t){this._pool=[],this._count=0,this._index=0,this._classType=e,t&&this.prepopulate(t)}prepopulate(e){for(let t=0;t<e;t++)this._pool[this._index++]=new this._classType;this._count+=e}get(e){var n;let t;return this._index>0?t=this._pool[--this._index]:t=new this._classType,(n=t.init)==null||n.call(t,e),t}return(e){var t;(t=e.reset)==null||t.call(e),this._pool[this._index++]=e}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}}class Kz{constructor(){this._poolsByClass=new Map}prepopulate(e,t){this.getPool(e).prepopulate(t)}get(e,t){return this.getPool(e).get(t)}return(e){this.getPool(e.constructor).return(e)}getPool(e){return this._poolsByClass.has(e)||this._poolsByClass.set(e,new z_(e)),this._poolsByClass.get(e)}stats(){const e={};return this._poolsByClass.forEach(t=>{const n=e[t._classType.name]?t._classType.name+t._classType.ID:t._classType.name;e[n]={free:t.totalFree,used:t.totalUsed,size:t.totalSize}}),e}}const Qa=new Kz;class Jz{constructor(){this._effectClasses=[],this._tests=[],this._initialized=!1}init(){this._initialized||(this._initialized=!0,this._effectClasses.forEach(e=>{this.add({test:e.test,maskClass:e})}))}add(e){this._tests.push(e)}getMaskEffect(e){this._initialized||this.init();for(let t=0;t<this._tests.length;t++){const n=this._tests[t];if(n.test(e))return Qa.get(n.maskClass,e)}return e}returnMaskEffect(e){Qa.return(e)}}const Ky=new Jz;Ca.handleByList(dt.MaskEffect,Ky._effectClasses);const ej={_maskEffect:null,_filterEffect:null,effects:[],addEffect(r){if(this.effects.indexOf(r)!==-1)return;this.effects.push(r),this.effects.sort((n,i)=>n.priority-i.priority);const t=this.renderGroup||this.parentRenderGroup;t&&(t.structureDidChange=!0),this._updateIsSimple()},removeEffect(r){const e=this.effects.indexOf(r);e!==-1&&(this.effects.splice(e,1),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateIsSimple())},set mask(r){const e=this._maskEffect;(e==null?void 0:e.mask)!==r&&(e&&(this.removeEffect(e),Ky.returnMaskEffect(e),this._maskEffect=null),r!=null&&(this._maskEffect=Ky.getMaskEffect(r),this.addEffect(this._maskEffect)))},get mask(){var r;return(r=this._maskEffect)==null?void 0:r.mask},set filters(r){var s;!Array.isArray(r)&&r&&(r=[r]);const e=this._filterEffect||(this._filterEffect=new Lw);r=r;const t=(r==null?void 0:r.length)>0,n=((s=e.filters)==null?void 0:s.length)>0,i=t!==n;r=Array.isArray(r)?r.slice(0):r,e.filters=Object.freeze(r),i&&(t?this.addEffect(e):(this.removeEffect(e),e.filters=r??null))},get filters(){var r;return(r=this._filterEffect)==null?void 0:r.filters},set filterArea(r){this._filterEffect||(this._filterEffect=new Lw),this._filterEffect.filterArea=r},get filterArea(){var r;return(r=this._filterEffect)==null?void 0:r.filterArea}},tj={label:null,get name(){return oc(ac,"Container.name property has been removed, use Container.label instead"),this.label},set name(r){oc(ac,"Container.name property has been removed, use Container.label instead"),this.label=r},getChildByName(r,e=!1){return this.getChildByLabel(r,e)},getChildByLabel(r,e=!1){const t=this.children;for(let n=0;n<t.length;n++){const i=t[n];if(i.label===r||r instanceof RegExp&&r.test(i.label))return i}if(e)for(let n=0;n<t.length;n++){const s=t[n].getChildByLabel(r,!0);if(s)return s}return null},getChildrenByLabel(r,e=!1,t=[]){const n=this.children;for(let i=0;i<n.length;i++){const s=n[i];(s.label===r||r instanceof RegExp&&r.test(s.label))&&t.push(s)}if(e)for(let i=0;i<n.length;i++)n[i].getChildrenByLabel(r,!0,t);return t}},Ow=new Gt;class mo{constructor(e=1/0,t=1/0,n=-1/0,i=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=Ow,this.minX=e,this.minY=t,this.maxX=n,this.maxY=i}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new mn);const e=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(e.x=0,e.y=0,e.width=0,e.height=0):e.copyFromBounds(this),e}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=Ow,this}set(e,t,n,i){this.minX=e,this.minY=t,this.maxX=n,this.maxY=i}
vendor: 10,008 bytes, line 977
977addFrame(e,t,n,i,s){s||(s=this.matrix);const a=s.a,o=s.b,l=s.c,u=s.d,h=s.tx,c=s.ty;let d=this.minX,f=this.minY,g=this.maxX,y=this.maxY,v=a*e+l*t+h,_=o*e+u*t+c;v<d&&(d=v),_<f&&(f=_),v>g&&(g=v),_>y&&(y=_),v=a*n+l*t+h,_=o*n+u*t+c,v<d&&(d=v),_<f&&(f=_),v>g&&(g=v),_>y&&(y=_),v=a*e+l*i+h,_=o*e+u*i+c,v<d&&(d=v),_<f&&(f=_),v>g&&(g=v),_>y&&(y=_),v=a*n+l*i+h,_=o*n+u*i+c,v<d&&(d=v),_<f&&(f=_),v>g&&(g=v),_>y&&(y=_),this.minX=d,this.minY=f,this.maxX=g,this.maxY=y}addRect(e,t){this.addFrame(e.x,e.y,e.x+e.width,e.y+e.height,t)}addBounds(e,t){this.addFrame(e.minX,e.minY,e.maxX,e.maxY,t)}addBoundsMask(e){this.minX=this.minX>e.minX?this.minX:e.minX,this.minY=this.minY>e.minY?this.minY:e.minY,this.maxX=this.maxX<e.maxX?this.maxX:e.maxX,this.maxY=this.maxY<e.maxY?this.maxY:e.maxY}applyMatrix(e){const t=this.minX,n=this.minY,i=this.maxX,s=this.maxY,{a,b:o,c:l,d:u,tx:h,ty:c}=e;let d=a*t+l*n+h,f=o*t+u*n+c;this.minX=d,this.minY=f,this.maxX=d,this.maxY=f,d=a*i+l*n+h,f=o*i+u*n+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=a*t+l*s+h,f=o*t+u*s+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY,d=a*i+l*s+h,f=o*i+u*s+c,this.minX=d<this.minX?d:this.minX,this.minY=f<this.minY?f:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=f>this.maxY?f:this.maxY}fit(e){return this.minX<e.left&&(this.minX=e.left),this.maxX>e.right&&(this.maxX=e.right),this.minY<e.top&&(this.minY=e.top),this.maxY>e.bottom&&(this.maxY=e.bottom),this}fitBounds(e,t,n,i){return this.minX<e&&(this.minX=e),this.maxX>t&&(this.maxX=t),this.minY<n&&(this.minY=n),this.maxY>i&&(this.maxY=i),this}pad(e,t=e){return this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new mo(this.minX,this.minY,this.maxX,this.maxY)}scale(e,t=e){return this.minX*=e,this.minY*=t,this.maxX*=e,this.maxY*=t,this}get x(){return this.minX}set x(e){const t=this.maxX-this.minX;this.minX=e,this.maxX=e+t}get y(){return this.minY}set y(e){const t=this.maxY-this.minY;this.minY=e,this.maxY=e+t}get width(){return this.maxX-this.minX}set width(e){this.maxX=this.minX+e}get height(){return this.maxY-this.minY}set height(e){this.maxY=this.minY+e}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(e,t,n,i){let s=this.minX,a=this.minY,o=this.maxX,l=this.maxY;i||(i=this.matrix);const u=i.a,h=i.b,c=i.c,d=i.d,f=i.tx,g=i.ty;for(let y=t;y<n;y+=2){const v=e[y],_=e[y+1],x=u*v+c*_+f,w=h*v+d*_+g;s=x<s?x:s,a=w<a?w:a,o=x>o?x:o,l=w>l?w:l}this.minX=s,this.minY=a,this.maxX=o,this.maxY=l}containsPoint(e,t){return this.minX<=e&&this.minY<=t&&this.maxX>=e&&this.maxY>=t}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}}const so=new z_(Gt),p0=new z_(mo);function yP(r,e,t){t.clear();let n,i;return r.parent?e?n=r.parent.worldTransform:(i=so.get().identity(),n=r4(r,i)):n=Gt.IDENTITY,vP(r,t,n,e),i&&so.return(i),t.isValid||t.set(0,0,0,0),t}function vP(r,e,t,n){var o,l;if(!r.visible||!r.measurable)return;let i;n?i=r.worldTransform:(r.updateLocalTransform(),i=so.get(),i.appendFrom(r.localTransform,t));const s=e,a=!!r.effects.length;if(a&&(e=p0.get().clear()),r.boundsArea)e.addRect(r.boundsArea,i);else{r.addBounds&&(e.matrix=i,r.addBounds(e));for(let u=0;u<r.children.length;u++)vP(r.children[u],e,i,n)}if(a){for(let u=0;u<r.effects.length;u++)(l=(o=r.effects[u]).addBounds)==null||l.call(o,e);s.addBounds(e,Gt.IDENTITY),p0.return(e)}n||so.return(i)}function r4(r,e){const t=r.parent;return t&&(r4(t,e),t.updateLocalTransform(),e.append(t.localTransform)),e}let x9=0;const Nw=500;function yn(...r){x9!==Nw&&(x9++,x9===Nw?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...r))}function _P(r,e,t){return e.clear(),t||(t=Gt.IDENTITY),xP(r,e,t,r,!0),e.isValid||e.set(0,0,0,0),e}function xP(r,e,t,n,i){var l,u;let s;if(i)s=so.get(),s=t.copyTo(s);else{if(!r.visible||!r.measurable)return;r.updateLocalTransform();const h=r.localTransform;s=so.get(),s.appendFrom(h,t)}const a=e,o=!!r.effects.length;if(o&&(e=p0.get().clear()),r.boundsArea)e.addRect(r.boundsArea,s);else{r.renderPipeId&&(e.matrix=s,r.addBounds(e));const h=r.children;for(let c=0;c<h.length;c++)xP(h[c],e,s,n,!1)}if(o){for(let h=0;h<r.effects.length;h++)(u=(l=r.effects[h]).addLocalBounds)==null||u.call(l,e,n);a.addBounds(e,Gt.IDENTITY),p0.return(e)}so.return(s)}function CP(r,e){const t=r.children;for(let n=0;n<t.length;n++){const i=t[n],s=(i.uid&255)<<24|i._didChangeId&16777215;e.data[e.index]!==s&&(e.data[e.index]=s,e.didChange=!0),e.index++,i.children.length&&CP(i,e)}return e.didChange}const rj=new Gt,nj={_localBoundsCacheId:-1,_localBoundsCacheData:null,_setWidth(r,e){const t=Math.sign(this.scale.x)||1;e!==0?this.scale.x=r/e*t:this.scale.x=t},_setHeight(r,e){const t=Math.sign(this.scale.y)||1;e!==0?this.scale.y=r/e*t:this.scale.y=t},getLocalBounds(){this._localBoundsCacheData||(this._localBoundsCacheData={data:[],index:1,didChange:!1,localBounds:new mo});const r=this._localBoundsCacheData;return r.index=1,r.didChange=!1,r.data[0]!==this._didChangeId>>12&&(r.didChange=!0,r.data[0]=this._didChangeId>>12),CP(this,r),r.didChange&&_P(this,r.localBounds,rj),r.localBounds},getBounds(r,e){return yP(this,r,e||new mo)}},ij={_onRender:null,set onRender(r){const e=this.renderGroup||this.parentRenderGroup;if(!r){this._onRender&&(e==null||e.removeOnRender(this)),this._onRender=null;return}this._onRender||e==null||e.addOnRender(this),this._onRender=r},get onRender(){return this._onRender}},sj={_zIndex:0,sortDirty:!1,sortableChildren:!1,get zIndex(){return this._zIndex},set zIndex(r){this._zIndex!==r&&(this._zIndex=r,this.depthOfChildModified())},depthOfChildModified(){this.parent&&(this.parent.sortableChildren=!0,this.parent.sortDirty=!0),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0)},sortChildren(){this.sortDirty&&(this.sortDirty=!1,this.children.sort(aj))}};function aj(r,e){return r._zIndex-e._zIndex}const oj={getGlobalPosition(r=new kn,e=!1){return this.parent?this.parent.toGlobal(this._position,r,e):(r.x=this._position.x,r.y=this._position.y),r},toGlobal(r,e,t=!1){if(!t){this.updateLocalTransform();const n=r4(this,new Gt);return n.append(this.localTransform),n.apply(r,e)}return this.worldTransform.apply(r,e)},toLocal(r,e,t,n){if(e&&(r=e.toGlobal(r,t,n)),!n){this.updateLocalTransform();const i=r4(this,new Gt);return i.append(this.localTransform),i.applyInverse(r,t)}return this.worldTransform.applyInverse(r,t)}};class wP{constructor(){this.uid=gn("instructionSet"),this.instructions=[],this.instructionSize=0}reset(){this.instructionSize=0}add(e){this.instructions[this.instructionSize++]=e}log(){this.instructions.length=this.instructionSize,console.table(this.instructions,["type","action"])}}class lj{constructor(e){this.renderPipeId="renderGroup",this.root=null,this.canBundle=!1,this.renderGroupParent=null,this.renderGroupChildren=[],this.worldTransform=new Gt,this.worldColorAlpha=4294967295,this.worldColor=16777215,this.worldAlpha=1,this.childrenToUpdate=Object.create(null),this.updateTick=0,this.childrenRenderablesToUpdate={list:[],index:0},this.structureDidChange=!0,this.instructionSet=new wP,this._onRenderContainers=[],this.root=e,e._onRender&&this.addOnRender(e),e.didChange=!0;const t=e.children;for(let n=0;n<t.length;n++)this.addChild(t[n])}get localTransform(){return this.root.localTransform}addRenderGroupChild(e){e.renderGroupParent&&e.renderGroupParent._removeRenderGroupChild(e),e.renderGroupParent=this,this.renderGroupChildren.push(e)}_removeRenderGroupChild(e){const t=this.renderGroupChildren.indexOf(e);t>-1&&this.renderGroupChildren.splice(t,1),e.renderGroupParent=null}addChild(e){if(this.structureDidChange=!0,e.parentRenderGroup=this,e.updateTick=-1,e.parent===this.root?e.relativeRenderGroupDepth=1:e.relativeRenderGroupDepth=e.parent.relativeRenderGroupDepth+1,e.didChange=!0,this.onChildUpdate(e),e.renderGroup){this.addRenderGroupChild(e.renderGroup);return}e._onRender&&this.addOnRender(e);const t=e.children;for(let n=0;n<t.length;n++)this.addChild(t[n])}removeChild(e){if(this.structureDidChange=!0,e._onRender&&(e.renderGroup||this.removeOnRender(e)),e.parentRenderGroup=null,e.renderGroup){this._removeRenderGroupChild(e.renderGroup);return}const t=e.children;for(let n=0;n<t.length;n++)this.removeChild(t[n])}removeChildren(e){for(let t=0;t<e.length;t++)this.removeChild(e[t])}onChildUpdate(e){let t=this.childrenToUpdate[e.relativeRenderGroupDepth];t||(t=this.childrenToUpdate[e.relativeRenderGroupDepth]={index:0,list:[]}),t.list[t.index++]=e}updateRenderable(e){e.globalDisplayStatus<7||(e.didViewUpdate=!1,this.instructionSet.renderPipes[e.renderPipeId].updateRenderable(e))}onChildViewUpdate(e){this.childrenRenderablesToUpdate.list[this.childrenRenderablesToUpdate.index++]=e}get isRenderable(){return this.root.localDisplayStatus===7&&this.worldAlpha>0}addOnRender(e){this._onRenderContainers.push(e)}removeOnRender(e){this._onRenderContainers.splice(this._onRenderContainers.indexOf(e),1)}runOnRender(){for(let e=0;e<this._onRenderContainers.length;e++)this._onRenderContainers[e]._onRender()}getChildren(e=[]){const t=this.root.children;for(let n=0;n<t.length;n++)this._getChildren(t[n],e);return e}_getChildren(e,t=[]){if(t.push(e),e.renderGroup)return t;const n=e.children;for(let i=0;i<n.length;i++)this._getChildren(n[i],t);return t}}function uj(r,e,t={}){for(const n in e)!t[n]&&e[n]!==void 0&&(r[n]=e[n])}const C9=new Mi(null),w9=new Mi(null),b9=new Mi(null,1,1),Bw=1,cj=2,S9=4;
977class _s extends mc{constructor(e={}){var t,n;super(),this.uid=gn("renderable"),this._updateFlags=15,this.renderGroup=null,this.parentRenderGroup=null,this.parentRenderGroupIndex=0,this.didChange=!1,this.didViewUpdate=!1,this.relativeRenderGroupDepth=0,this.children=[],this.parent=null,this.includeInBuild=!0,this.measurable=!0,this.isSimple=!0,this.updateTick=-1,this.localTransform=new Gt,this.relativeGroupTransform=new Gt,this.groupTransform=this.relativeGroupTransform,this.destroyed=!1,this._position=new Mi(this,0,0),this._scale=b9,this._pivot=w9,this._skew=C9,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._rotation=0,this.localColor=16777215,this.localAlpha=1,this.groupAlpha=1,this.groupColor=16777215,this.groupColorAlpha=4294967295,this.localBlendMode="inherit",this.groupBlendMode="normal",this.localDisplayStatus=7,this.globalDisplayStatus=7,this._didChangeId=0,this._didLocalTransformChangeId=-1,uj(this,e,{children:!0,parent:!0,effects:!0}),(t=e.children)==null||t.forEach(i=>this.addChild(i)),this.effects=[],(n=e.parent)==null||n.addChild(this)}static mixin(e){Object.defineProperties(_s.prototype,Object.getOwnPropertyDescriptors(e))}addChild(...e){if(this.allowChildren||oc(ac,"addChild: Only Containers will be allowed to add children in v8.0.0"),e.length>1){for(let i=0;i<e.length;i++)this.addChild(e[i]);return e[0]}const t=e[0];if(t.parent===this)return this.children.splice(this.children.indexOf(t),1),this.children.push(t),this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),t;t.parent&&t.parent.removeChild(t),this.children.push(t),this.sortableChildren&&(this.sortDirty=!0),t.parent=this,t.didChange=!0,t.didViewUpdate=!1,t._updateFlags=15;const n=this.renderGroup||this.parentRenderGroup;return n&&n.addChild(t),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this),this._didChangeId+=4096,t._zIndex!==0&&t.depthOfChildModified(),t}removeChild(...e){if(e.length>1){for(let i=0;i<e.length;i++)this.removeChild(e[i]);return e[0]}const t=e[0],n=this.children.indexOf(t);return n>-1&&(this._didChangeId+=4096,this.children.splice(n,1),this.renderGroup?this.renderGroup.removeChild(t):this.parentRenderGroup&&this.parentRenderGroup.removeChild(t),t.parent=null,this.emit("childRemoved",t,this,n),t.emit("removed",this)),t}_onUpdate(e){e&&e===this._skew&&this._updateSkew(),this._didChangeId++,!this.didChange&&(this.didChange=!0,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this))}set isRenderGroup(e){if(this.renderGroup&&e===!1)throw new Error("[Pixi] cannot undo a render group just yet");e&&this.enableRenderGroup()}get isRenderGroup(){return!!this.renderGroup}enableRenderGroup(){if(this.renderGroup)return;const e=this.parentRenderGroup;e&&e.removeChild(this),this.renderGroup=new lj(this),e&&e.addChild(this),this._updateIsSimple(),this.groupTransform=Gt.IDENTITY}_updateIsSimple(){this.isSimple=!this.renderGroup&&this.effects.length===0}get worldTransform(){return this._worldTransform||(this._worldTransform=new Gt),this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}get x(){return this._position.x}set x(e){this._position.x=e}get y(){return this._position.y}set y(e){this._position.y=e}get position(){return this._position}set position(e){this._position.copyFrom(e)}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._onUpdate(this._skew))}get angle(){return this.rotation*Bz}set angle(e){this.rotation=e*Uz}get pivot(){return this._pivot===w9&&(this._pivot=new Mi(this,0,0)),this._pivot}set pivot(e){this._pivot===w9&&(this._pivot=new Mi(this,0,0)),typeof e=="number"?this._pivot.set(e):this._pivot.copyFrom(e)}get skew(){return this._skew===C9&&(this._skew=new Mi(this,0,0)),this._skew}set skew(e){this._skew===C9&&(this._skew=new Mi(this,0,0)),this._skew.copyFrom(e)}get scale(){return this._scale===b9&&(this._scale=new Mi(this,1,1)),this._scale}set scale(e){this._scale===b9&&(this._scale=new Mi(this,0,0)),typeof e=="number"?this._scale.set(e):this._scale.copyFrom(e)}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(e){const t=this.getLocalBounds().width;
977this._setWidth(e,t)}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(e){const t=this.getLocalBounds().height;this._setHeight(e,t)}getSize(e){e||(e={});const t=this.getLocalBounds();return e.width=Math.abs(this.scale.x*t.width),e.height=Math.abs(this.scale.y*t.height),e}setSize(e,t){const n=this.getLocalBounds();let i,s;typeof e!="object"?(i=e,s=t??e):(i=e.width,s=e.height??e.width),i!==void 0&&this._setWidth(i,n.width),s!==void 0&&this._setHeight(s,n.height)}_updateSkew(){const e=this._rotation,t=this._skew;this._cx=Math.cos(e+t._y),this._sx=Math.sin(e+t._y),this._cy=-Math.sin(e-t._x),this._sy=Math.cos(e-t._x)}updateTransform(e){return this.position.set(typeof e.x=="number"?e.x:this.position.x,typeof e.y=="number"?e.y:this.position.y),this.scale.set(typeof e.scaleX=="number"?e.scaleX||1:this.scale.x,typeof e.scaleY=="number"?e.scaleY||1:this.scale.y),this.rotation=typeof e.rotation=="number"?e.rotation:this.rotation,this.skew.set(typeof e.skewX=="number"?e.skewX:this.skew.x,typeof e.skewY=="number"?e.skewY:this.skew.y),this.pivot.set(typeof e.pivotX=="number"?e.pivotX:this.pivot.x,typeof e.pivotY=="number"?e.pivotY:this.pivot.y),this}setFromMatrix(e){e.decompose(this)}updateLocalTransform(){if((this._didLocalTransformChangeId&15)===this._didChangeId)return;this._didLocalTransformChangeId=this._didChangeId;const e=this.localTransform,t=this._scale,n=this._pivot,i=this._position,s=t._x,a=t._y,o=n._x,l=n._y;e.a=this._cx*s,e.b=this._sx*s,e.c=this._cy*a,e.d=this._sy*a,e.tx=i._x-(o*e.a+l*e.c),e.ty=i._y-(o*e.b+l*e.d)}set alpha(e){e!==this.localAlpha&&(this.localAlpha=e,this._updateFlags|=Bw,this._onUpdate())}get alpha(){return this.localAlpha}set tint(e){const n=pa.shared.setValue(e??16777215).toBgrNumber();n!==this.localColor&&(this.localColor=n,this._updateFlags|=Bw,this._onUpdate())}get tint(){const e=this.localColor;return((e&255)<<16)+(e&65280)+(e>>16&255)}set blendMode(e){this.localBlendMode!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=cj,this.localBlendMode=e,this._onUpdate())}get blendMode(){return this.localBlendMode}get visible(){return!!(this.localDisplayStatus&2)}set visible(e){const t=e?1:0;(this.localDisplayStatus&2)>>1!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=S9,this.localDisplayStatus^=2,this._onUpdate())}get culled(){return!(this.localDisplayStatus&4)}set culled(e){const t=e?1:0;(this.localDisplayStatus&4)>>2!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=S9,this.localDisplayStatus^=4,this._onUpdate())}get renderable(){return!!(this.localDisplayStatus&1)}set renderable(e){const t=e?1:0;(this.localDisplayStatus&1)!==t&&(this._updateFlags|=S9,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._onUpdate())}get isRenderable(){return this.localDisplayStatus===7&&this.groupAlpha>0}destroy(e=!1){if(this.destroyed)return;this.destroyed=!0;const t=this.removeChildren(0,this.children.length);if(this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners(),typeof e=="boolean"?e:e==null?void 0:e.children)for(let i=0;i<t.length;++i)t[i].destroy(e)}}_s.mixin(Qz);_s.mixin(oj);_s.mixin(ij);_s.mixin(nj);_s.mixin(ej);_s.mixin(tj);_s.mixin(sj);_s.mixin(Zz);class rf extends _s{constructor(e=Yt.EMPTY){e instanceof Yt&&(e={texture:e});const{texture:t=Yt.EMPTY,anchor:n,roundPixels:i,width:s,height:a,...o}=e;super({label:"Sprite",...o}),this.renderPipeId="sprite",this.batched=!0,this._didSpriteUpdate=!1,this._bounds={minX:0,maxX:1,minY:0,maxY:0},this._sourceBounds={minX:0,maxX:1,minY:0,maxY:0},this._boundsDirty=!0,this._sourceBoundsDirty=!0,this._roundPixels=0,this._anchor=new Mi({_onUpdate:()=>{this.onViewUpdate()}}),n?this.anchor=n:t.defaultAnchor&&(this.anchor=t.defaultAnchor),this.texture=t,this.allowChildren=!1,this.roundPixels=i??!1,s&&(this.width=s),a&&(this.height=a)}static from(e,t=!1){return e instanceof Yt?new rf(e):new rf(Yt.from(e,t))}set texture(e){e||(e=Yt.EMPTY);const t=this._texture;t!==e&&(t&&t.dynamic&&t.off("update",this.onViewUpdate,this),e.dynamic&&e.on("update",this.onViewUpdate,this),this._texture=e,this.onViewUpdate())}get texture(){return this._texture}get bounds(){return this._boundsDirty&&(this._updateBounds(),this._boundsDirty=!1),this._bounds}get sourceBounds(){return this._sourceBoundsDirty&&(this._updateSourceBounds(),this._sourceBoundsDirty=!1),this._sourceBounds}containsPoint(e){const t=this.sourceBounds;return e.x>=t.maxX&&e.x<=t.minX&&e.y>=t.maxY&&e.y<=t.minY}addBounds(e){const t=this._texture.trim?this.sourceBounds:this.bounds;e.addFrame(t.minX,t.minY,t.maxX,t.maxY)}onViewUpdate(){if(this._didChangeId+=4096,this._didSpriteUpdate=!0,this._sourceBoundsDirty=this._boundsDirty=!0,this.didViewUpdate)return;this.didViewUpdate=!0;const e=this.renderGroup||this.parentRenderGroup;e&&e.onChildViewUpdate(this)}_updateBounds(){Yz(this._bounds,this._anchor,this._texture,0)}_updateSourceBounds(){const e=this._anchor,t=this._texture,n=this._sourceBounds,{width:i,height:s}=t.orig;n.maxX=-e._x*i,n.minX=n.maxX+i,n.maxY=-e._y*s,n.minY=n.maxY+s}destroy(e=!1){if(super.destroy(e),typeof e=="boolean"?e:e==null?void 0:e.texture){const n=typeof e=="boolean"?e:e==null?void 0:e.textureSource;this._texture.destroy(n)}this._texture=null,this._bounds=null,this._sourceBounds=null,this._anchor=null}get anchor(){return this._anchor}
vendor: 53,442 bytes, lines 977-978
977set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get roundPixels(){return!!this._roundPixels}set roundPixels(e){this._roundPixels=e?1:0}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(e){this._setWidth(e,this._texture.orig.width)}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(e){this._setHeight(e,this._texture.orig.height)}getSize(e){return e||(e={}),e.width=Math.abs(this.scale.x)*this._texture.orig.width,e.height=Math.abs(this.scale.y)*this._texture.orig.height,e}setSize(e,t){let n,i;typeof e!="object"?(n=e,i=t??e):(n=e.width,i=e.height??e.width),n!==void 0&&this._setWidth(n,this._texture.orig.width),i!==void 0&&this._setHeight(i,this._texture.orig.height)}}const hj=new mo;function bP(r,e,t){const n=hj;r.measurable=!0,yP(r,t,n),e.addBoundsMask(n),r.measurable=!1}function SP(r,e,t){const n=p0.get();r.measurable=!0;const i=so.get().identity(),s=AP(r,t,i);_P(r,n,s),r.measurable=!1,e.addBoundsMask(n),so.return(i),p0.return(n)}function AP(r,e,t){return r?(r!==e&&(AP(r.parent,e,t),r.updateLocalTransform(),t.append(r.localTransform)),t):(yn("Mask bounds, renderable is not inside the root container"),t)}class TP{constructor(e){this.priority=0,this.pipe="alphaMask",e!=null&&e.mask&&this.init(e.mask)}init(e){this.mask=e,this.renderMaskToTexture=!(e instanceof rf),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask=null}addBounds(e,t){bP(this.mask,e,t)}addLocalBounds(e,t){SP(this.mask,e,t)}containsPoint(e,t){const n=this.mask;return t(n,e)}destroy(){this.reset()}static test(e){return e instanceof rf}}TP.extension=dt.MaskEffect;class EP{constructor(e){this.priority=0,this.pipe="colorMask",e!=null&&e.mask&&this.init(e.mask)}init(e){this.mask=e}destroy(){}static test(e){return typeof e=="number"}}EP.extension=dt.MaskEffect;class PP{constructor(e){this.priority=0,this.pipe="stencilMask",e!=null&&e.mask&&this.init(e.mask)}init(e){this.mask=e,this.mask.includeInBuild=!1,this.mask.measurable=!1}reset(){this.mask.measurable=!0,this.mask.includeInBuild=!0,this.mask=null}addBounds(e,t){bP(this.mask,e,t)}addLocalBounds(e,t){SP(this.mask,e,t)}containsPoint(e,t){const n=this.mask;return t(n,e)}destroy(){this.reset()}static test(e){return e instanceof _s}}PP.extension=dt.MaskEffect;const dj={createCanvas:(r,e)=>{const t=document.createElement("canvas");return t.width=r,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(r,e)=>fetch(r,e),parseXML:r=>new DOMParser().parseFromString(r,"text/xml")};let Uw=dj;const ys={get(){return Uw},set(r){Uw=r}};class DP extends Wl{constructor(e){e.resource||(e.resource=ys.get().createCanvas()),e.width||(e.width=e.resource.width,e.autoDensity||(e.width/=e.resolution)),e.height||(e.height=e.resource.height,e.autoDensity||(e.height/=e.resolution)),super(e),this.uploadMethodId="image",this.autoDensity=e.autoDensity;const t=e.resource;(this.pixelWidth!==t.width||this.pixelWidth!==t.height)&&this.resizeCanvas(),this.transparent=!!e.transparent}resizeCanvas(){this.autoDensity&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight)}resize(e=this.width,t=this.height,n=this._resolution){const i=super.resize(e,t,n);return i&&this.resizeCanvas(),i}static test(e){return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&e instanceof OffscreenCanvas}}DP.extension=dt.TextureSource;class Hf extends Wl{constructor(e){if(e.resource&&globalThis.HTMLImageElement&&e.resource instanceof HTMLImageElement){const t=ys.get().createCanvas(e.resource.width,e.resource.height);t.getContext("2d").drawImage(e.resource,0,0),e.resource=t,yn("ImageSource: Image element passed, converting to canvas. Use CanvasSource instead.")}super(e),this.uploadMethodId="image",this.autoGarbageCollect=!0}static test(e){return globalThis.HTMLImageElement&&e instanceof HTMLImageElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap}}Hf.extension=dt.TextureSource;var Jy=(r=>(r[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY",r))(Jy||{});class A9{constructor(e,t=null,n=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=t,this.priority=n,this._once=i}match(e,t=null){return this._fn===e&&this._context===t}emit(e){this._fn&&(this._context?this._fn.call(this._context,e):this._fn(e));const t=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),t}connect(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this}destroy(e=!1){this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const t=this.next;return this.next=e?null:t,this.previous=null,t}}const HP=class Di{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new A9(null,null,1/0),this.deltaMS=1/Di.targetFPMS,this.elapsedMS=1/Di.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=Jy.NORMAL){return this._addListener(new A9(e,t,n))}addOnce(e,t,n=Jy.NORMAL){return this._addListener(new A9(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const s=e-this._lastFrame|0;if(s<this._minElapsedMS)return;this._lastFrame=e-s%this._minElapsedMS}this.deltaMS=t,this.deltaTime=this.deltaMS*Di.targetFPMS;const n=this._head;let i=n.next;for(;i;)i=i.emit(this);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(e){const t=Math.min(this.maxFPS,e),n=Math.min(Math.max(0,t)/1e3,Di.targetFPMS);this._maxElapsedMS=1/n}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(e){if(e===0)this._minElapsedMS=0;else{const t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}}static get shared(){if(!Di._shared){const e=Di._shared=new Di;e.autoStart=!0,e._protected=!0}return Di._shared}static get system(){if(!Di._system){const e=Di._system=new Di;e.autoStart=!0,e._protected=!0}return Di._system}};HP.targetFPMS=.06;let gp=HP,T9;async function kP(){return T9??(T9=(async()=>{var a;const e=document.createElement("canvas").getContext("webgl");if(!e)return"premultiply-alpha-on-upload";const t=await new Promise(o=>{const l=document.createElement("video");l.onloadeddata=()=>o(l),l.onerror=()=>o(null),l.autoplay=!1,l.crossOrigin="anonymous",l.preload="auto",l.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",l.load()});if(!t)return"premultiply-alpha-on-upload";const n=e.createTexture();e.bindTexture(e.TEXTURE_2D,n);const i=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,i),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);const s=new Uint8Array(4);return e.readPixels(0,0,1,1,e.RGBA,e.UNSIGNED_BYTE,s),e.deleteFramebuffer(i),e.deleteTexture(n),(a=e.getExtension("WEBGL_lose_context"))==null||a.loseContext(),s[0]<=s[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),T9}const Z4=class IP extends Wl{constructor(e){super(e),this.isReady=!1,this.uploadMethodId="video",e={...IP.defaultOptions,...e},this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=e.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=e.autoPlay!==!1,this.alphaMode=e.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),e.autoLoad!==!1&&this.load()}updateFrame(){if(!this.destroyed){if(this._updateFPS){const e=gp.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-e)}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update()}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback)}get isValid(){return!!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;const e=this.resource,t=this.options;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(t.preload||e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlayThrough),e.addEventListener("error",this._onError,!0)),this.alphaMode=await kP(),this._load=new Promise((n,i)=>{this.isValid?n(this):(this._resolve=n,this._reject=i,t.preloadTimeoutMs!==void 0&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${t.preloadTimeoutMs}ms`))})),e.load())}),this._load}_onError(e){this.resource.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=null,this._resolve=null)}_isSourcePlaying(){const e=this.resource;return!e.paused&&!e.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}_mediaReady(){const e=this.resource;this.isValid&&(this.isReady=!0,this.resize(e.videoWidth,e.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}destroy(){this._configureAutoUpdate();const e=this.resource;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlayThrough),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.destroy()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(gp.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),this._videoFrameRequestCallbackHandle===null&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(gp.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(gp.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||globalThis.VideoFrame&&e instanceof VideoFrame}};Z4.extension=dt.TextureSource;Z4.defaultOptions={...Wl.defaultOptions,autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1};Z4.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let Yp=Z4;const Fs=(r,e,t=!1)=>(Array.isArray(r)||(r=[r]),e?r.map(n=>typeof n=="string"||t?e(n):n):r);class fj{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(e){return this._cache.has(e)}get(e){const t=this._cache.get(e);return t||yn(`[Assets] Asset id ${e} was not found in the Cache`),t}set(e,t){const n=Fs(e);let i;for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];if(u.test(t)){i=u.getCacheableAssets(n,t);break}}const s=new Map(Object.entries(i||{}));i||n.forEach(l=>{s.set(l,t)});const a=[...s.keys()],o={cacheKeys:a,keys:n};n.forEach(l=>{this._cacheMap.set(l,o)}),a.forEach(l=>{const u=i?i[l]:t;this._cache.has(l)&&this._cache.get(l)!==u&&yn("[Cache] already has key:",l),this._cache.set(l,s.get(l))})}remove(e){if(!this._cacheMap.has(e)){yn(`[Assets] Asset id ${e} was not found in the Cache`);return}const t=this._cacheMap.get(e);t.cacheKeys.forEach(i=>{this._cache.delete(i)}),t.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const Gn=new fj,ev=[];Ca.handleByList(dt.TextureSource,ev);function pj(r={}){const e=r&&r.resource,t=e?r.resource:r,n=e?r:{resource:r};for(let i=0;i<ev.length;i++){const s=ev[i];if(s.test(t))return new s(n)}throw new Error(`Could not find a source type for resource: ${n.resource}`)}function mj(r={},e=!1){const t=r&&r.resource,n=t?r.resource:r,i=t?r:{resource:r};if(!e&&Gn.has(n))return Gn.get(n);const s=new Yt({source:pj(i)});return s.on("destroy",()=>{Gn.has(n)&&Gn.remove(n)}),e||Gn.set(n,s),s}function gj(r,e=!1){return typeof r=="string"?Gn.get(r):r instanceof Wl?new Yt({source:r}):mj(r,e)}Yt.from=gj;Ca.add(TP,EP,PP,Yp,Hf,DP,$_);var gc=(r=>(r[r.Low=0]="Low",r[r.Normal=1]="Normal",r[r.High=2]="High",r))(gc||{});function Es(r){if(typeof r!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(r)}`)}function I1(r){return r.split("?")[0].split("#")[0]}function yj(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vj(r,e,t){return r.replace(new RegExp(yj(e),"g"),t)}function _j(r,e){let t="",n=0,i=-1,s=0,a=-1;for(let o=0;o<=r.length;++o){if(o<r.length)a=r.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",n=0):(t=t.slice(0,l),n=t.length-1-t.lastIndexOf("/")),i=o,s=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=o,s=0;continue}}}else t.length>0?t+=`/${r.slice(i+1,o)}`:t=r.slice(i+1,o),n=o-i-1;i=o,s=0}else a===46&&s!==-1?++s:s=-1}return t}const Ta={toPosix(r){return vj(r,"\\","/")},isUrl(r){return/^https?:/.test(this.toPosix(r))},isDataUrl(r){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(r)},isBlobUrl(r){return r.startsWith("blob:")},hasProtocol(r){return/^[^/:]+:/.test(this.toPosix(r))},getProtocol(r){Es(r),r=this.toPosix(r);const e=/^file:\/\/\//.exec(r);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(r);return t?t[0]:""},toAbsolute(r,e,t){if(Es(r),this.isDataUrl(r)||this.isBlobUrl(r))return r;const n=I1(this.toPosix(e??ys.get().getBaseUrl())),i=I1(this.toPosix(t??this.rootname(n)));return r=this.toPosix(r),r.startsWith("/")?Ta.join(i,r.slice(1)):this.isAbsolute(r)?r:this.join(n,r)},normalize(r){if(Es(r),r.length===0)return".";if(this.isDataUrl(r)||this.isBlobUrl(r))return r;r=this.toPosix(r);let e="";const t=r.startsWith("/");this.hasProtocol(r)&&(e=this.rootname(r),r=r.slice(e.length));const n=r.endsWith("/");return r=_j(r),r.length>0&&n&&(r+="/"),t?`/${r}`:e+r},isAbsolute(r){return Es(r),r=this.toPosix(r),this.hasProtocol(r)?!0:r.startsWith("/")},join(...r){if(r.length===0)return".";let e;for(let t=0;t<r.length;++t){const n=r[t];if(Es(n),n.length>0)if(e===void 0)e=n;else{const i=r[t-1]??"";this.joinExtensions.includes(this.extname(i).toLowerCase())?e+=`/../${n}`:e+=`/${n}`}}return e===void 0?".":this.normalize(e)},dirname(r){if(Es(r),r.length===0)return".";r=this.toPosix(r);let e=r.charCodeAt(0);const t=e===47;let n=-1,i=!0;const s=this.getProtocol(r),a=r;r=r.slice(s.length);for(let o=r.length-1;o>=1;--o)if(e=r.charCodeAt(o),e===47){if(!i){n=o;break}}else i=!1;return n===-1?t?"/":this.isUrl(a)?s+r:s:t&&n===1?"//":s+r.slice(0,n)},rootname(r){Es(r),r=this.toPosix(r);let e="";if(r.startsWith("/")?e="/":e=this.getProtocol(r),this.isUrl(r)){const t=r.indexOf("/",e.length);t!==-1?e=r.slice(0,t):e=r,e.endsWith("/")||(e+="/")}return e},basename(r,e){Es(r),e&&Es(e),r=I1(this.toPosix(r));let t=0,n=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e.length===r.length&&e===r)return"";let a=e.length-1,o=-1;for(s=r.length-1;s>=0;--s){const l=r.charCodeAt(s);if(l===47){if(!i){t=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(n=s):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=r.length),r.slice(t,n)}for(s=r.length-1;s>=0;--s)if(r.charCodeAt(s)===47){if(!i){t=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":r.slice(t,n)},extname(r){Es(r),r=I1(this.toPosix(r));let e=-1,t=0,n=-1,i=!0,s=0;for(let a=r.length-1;a>=0;--a){const o=r.charCodeAt(a);if(o===47){if(!i){t=a+1;break}continue}n===-1&&(i=!1,n=a+1),o===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||n===-1||s===0||s===1&&e===n-1&&e===t+1?"":r.slice(e,n)},parse(r){Es(r);const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;r=I1(this.toPosix(r));let t=r.charCodeAt(0);const n=this.isAbsolute(r);let i;e.root=this.rootname(r),n||this.hasProtocol(r)?i=1:i=0;let s=-1,a=0,o=-1,l=!0,u=r.length-1,h=0;for(;u>=i;--u){if(t=r.charCodeAt(u),t===47){if(!l){a=u+1;break}continue}o===-1&&(l=!1,o=u+1),t===46?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||o===-1||h===0||h===1&&s===o-1&&s===a+1?o!==-1&&(a===0&&n?e.base=e.name=r.slice(1,o):e.base=e.name=r.slice(a,o)):(a===0&&n?(e.name=r.slice(1,s),e.base=r.slice(1,o)):(e.name=r.slice(a,s),e.base=r.slice(a,o)),e.ext=r.slice(s,o)),e.dir=this.dirname(r),e},sep:"/",delimiter:":",joinExtensions:[".html"]};function MP(r,e,t,n,i){const s=e[t];for(let a=0;a<s.length;a++){const o=s[a];t<e.length-1?MP(r.replace(n[t],o),e,t+1,n,i):i.push(r.replace(n[t],o))}}function xj(r){const e=/\{(.*?)\}/g,t=r.match(e),n=[];if(t){const i=[];t.forEach(s=>{const a=s.substring(1,s.length-1).split(",");i.push(a)}),MP(r,i,0,t,n)}else n.push(r);return n}const n4=r=>!Array.isArray(r);class E0{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(e){if(this._bundleIdConnector=e.connector??this._bundleIdConnector,this._createBundleAssetId=e.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=e.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...e){e.forEach(t=>{this._preferredOrder.push(t),t.priority||(t.priority=Object.keys(t.params))}),this._resolverHash={}}set basePath(e){this._basePath=e}get basePath(){return this._basePath}set rootPath(e){this._rootPath=e}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(e){if(typeof e=="string")this._defaultSearchParams=e;else{const t=e;this._defaultSearchParams=Object.keys(t).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`).join("&")}}getAlias(e){const{alias:t,src:n}=e;return Fs(t||n,s=>typeof s=="string"?s:Array.isArray(s)?s.map(a=>(a==null?void 0:a.src)??a):s!=null&&s.src?s.src:s,!0)}addManifest(e){this._manifest&&yn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=e,e.bundles.forEach(t=>{this.addBundle(t.name,t.assets)})}addBundle(e,t){const n=[];let i=t;Array.isArray(t)||(i=Object.entries(t).map(([s,a])=>typeof a=="string"||Array.isArray(a)?{alias:s,src:a}:{alias:s,...a})),i.forEach(s=>{const a=s.src,o=s.alias;let l;if(typeof o=="string"){const u=this._createBundleAssetId(e,o);n.push(u),l=[o,u]}else{const u=o.map(h=>this._createBundleAssetId(e,h));n.push(...u),l=[...o,...u]}this.add({...s,alias:l,src:a})}),this._bundles[e]=n}add(e){const t=[];Array.isArray(e)?t.push(...e):t.push(e);let n;n=s=>{this.hasKey(s)&&yn(`[Resolver] already has key: ${s} overwriting`)},Fs(t).forEach(s=>{const{src:a}=s;let{data:o,format:l,loadParser:u}=s;const h=Fs(a).map(f=>typeof f=="string"?xj(f):Array.isArray(f)?f:[f]),c=this.getAlias(s);Array.isArray(c)?c.forEach(n):n(c);const d=[];h.forEach(f=>{f.forEach(g=>{let y={};if(typeof g!="object"){y.src=g;for(let v=0;v<this._parsers.length;v++){const _=this._parsers[v];if(_.test(g)){y=_.parse(g);break}}}else o=g.data??o,l=g.format??l,u=g.loadParser??u,y={...y,...g};if(!c)throw new Error(`[Resolver] alias is undefined for this asset: ${y.src}`);y=this._buildResolvedAsset(y,{aliases:c,data:o,format:l,loadParser:u}),d.push(y)})}),c.forEach(f=>{this._assetMap[f]=d})})}resolveBundle(e){const t=n4(e);e=Fs(e);const n={};return e.forEach(i=>{const s=this._bundles[i];if(s){const a=this.resolve(s),o={};for(const l in a){const u=a[l];o[this._extractAssetIdFromBundle(i,l)]=u}n[i]=o}}),t?n[e[0]]:n}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const n={};for(const i in t)n[i]=t[i].src;return n}return t.src}resolve(e){const t=n4(e);e=Fs(e);const n={};return e.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let s=this._assetMap[i];const a=this._getPreferredOrder(s);a==null||a.priority.forEach(o=>{a.params[o].forEach(l=>{const u=s.filter(h=>h[o]?h[o]===l:!1);u.length&&(s=u)})}),this._resolverHash[i]=s[0]}else this._resolverHash[i]=this._buildResolvedAsset({alias:[i],src:i},{});n[i]=this._resolverHash[i]}),t?n[e[0]]:n}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const n=e[0],i=this._preferredOrder.find(s=>s.params.format.includes(n.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}_buildResolvedAsset(e,t){const{aliases:n,data:i,loadParser:s,format:a}=t;return(this._basePath||this._rootPath)&&(e.src=Ta.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=n??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...i||{},...e.data},e.loadParser=s??e.loadParser,e.format=a??e.format??Cj(e.src),e}}E0.RETINA_PREFIX=/@([0-9\.]+)x/;function Cj(r){return r.split(".").pop().split("?").shift().split("#").shift()}const $w=(r,e)=>{const t=e.split("?")[1];return t&&(r+=`?${t}`),r},RP=class q1{constructor(e,t){this.linkedSheets=[],this._texture=e instanceof Yt?e:null,this.textureSource=e.source,this.textures={},this.animations={},this.data=t;const n=parseFloat(t.meta.scale);n?(this.resolution=n,e.source.resolution=this.resolution):this.resolution=e.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=q1.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=q1.BATCH_SIZE;for(;t-e<n&&t<this._frameKeys.length;){const i=this._frameKeys[t],s=this._frames[i],a=s.frame;if(a){let o=null,l=null;const u=s.trimmed!==!1&&s.sourceSize?s.sourceSize:s.frame,h=new mn(0,0,Math.floor(u.w)/this.resolution,Math.floor(u.h)/this.resolution);s.rotated?o=new mn(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):o=new mn(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),s.trimmed!==!1&&s.spriteSourceSize&&(l=new mn(Math.floor(s.spriteSourceSize.x)/this.resolution,Math.floor(s.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[i]=new Yt({source:this.textureSource,frame:o,orig:h,trim:l,rotate:s.rotated?2:0,defaultAnchor:s.anchor,defaultBorders:s.borders,label:i.toString()})}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let n=0;n<e[t].length;n++){const i=e[t][n];this.animations[t].push(this.textures[i])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*q1.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*q1.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)==null||t.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}};RP.BATCH_SIZE=1e3;let zw=RP;const wj=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"];function FP(r,e,t){const n={};if(r.forEach(i=>{n[i]=e}),Object.keys(e.textures).forEach(i=>{n[i]=e.textures[i]}),!t){const i=Ta.dirname(r[0]);e.linkedSheets.forEach((s,a)=>{const o=FP([`${i}/${e.data.meta.related_multi_packs[a]}`],s,!0);Object.assign(n,o)})}return n}const bj={extension:dt.Asset,cache:{test:r=>r instanceof zw,getCacheableAssets:(r,e)=>FP(r,e,!1)},resolver:{test:r=>{const t=r.split("?")[0].split("."),n=t.pop(),i=t.pop();return n==="json"&&wj.includes(i)},parse:r=>{var t;const e=r.split(".");return{resolution:parseFloat(((t=E0.RETINA_PREFIX.exec(r))==null?void 0:t[1])??"1"),format:e[e.length-2],src:r}}},loader:{name:"spritesheetLoader",extension:{type:dt.LoadParser,priority:gc.Normal},async testParse(r,e){return Ta.extname(e.src).toLowerCase()===".json"&&!!r.frames},async parse(r,e,t){var u,h;const{texture:n,imageFilename:i}=(e==null?void 0:e.data)??{};let s=Ta.dirname(e.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");let a;if(n instanceof Yt)a=n;else{const c=$w(s+(i??r.meta.image),e.src);a=(await t.load([c]))[c]}const o=new zw(a.source,r);await o.parse();const l=(u=r==null?void 0:r.meta)==null?void 0:u.related_multi_packs;if(Array.isArray(l)){const c=[];for(const f of l){if(typeof f!="string")continue;let g=s+f;(h=e.data)!=null&&h.ignoreMultiPack||(g=$w(g,e.src),c.push(t.load({src:g,data:{ignoreMultiPack:!0}})))}const d=await Promise.all(c);o.linkedSheets=d,d.forEach(f=>{f.linkedSheets=[o].concat(o.linkedSheets.filter(g=>g!==f))})}return o},async unload(r,e,t){await t.unload(r.textureSource._sourceOrigin),r.destroy(!1)}}};Ca.add(bj);let Qc;function Sj(){return(!Qc||Qc!=null&&Qc.isContextLost())&&(Qc=ys.get().createCanvas().getContext("webgl",{})),Qc}class Aj{constructor(e){this.resources=Object.create(null),this._dirty=!0;let t=0;for(const n in e){const i=e[n];this.setResource(i,t++)}this._updateKey()}_updateKey(){if(!this._dirty)return;this._dirty=!1;const e=[];let t=0;for(const n in this.resources)e[t++]=this.resources[n]._resourceId;this._key=e.join("|")}setResource(e,t){var i,s;const n=this.resources[t];e!==n&&(n&&((i=e.off)==null||i.call(e,"change",this.onResourceChange,this)),(s=e.on)==null||s.call(e,"change",this.onResourceChange,this),this.resources[t]=e,this._dirty=!0)}getResource(e){return this.resources[e]}_touch(e){const t=this.resources;for(const n in t)t[n]._touched=e}destroy(){var t;const e=this.resources;for(const n in e){const i=e[n];(t=i.off)==null||t.call(i,"change",this.onResourceChange,this)}this.resources=null}onResourceChange(e){if(this._dirty=!0,e.destroyed){const t=this.resources;for(const n in t)t[n]===e&&(t[n]=null)}else this._updateKey()}}class Tj{constructor(e,t=!1){this._loader=e,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=t}add(e){e.forEach(t=>{this._assetList.push(t)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const e=[],t=Math.min(this._assetList.length,this._maxConcurrent);for(let n=0;n<t;n++)e.push(this._assetList.pop());await this._loader.load(e),this._isLoading=!1,this._next()}}get active(){return this._isActive}set active(e){this._isActive!==e&&(this._isActive=e,e&&!this._isLoading&&this._next())}}const Ej={extension:dt.CacheParser,test:r=>Array.isArray(r)&&r.every(e=>e instanceof Yt),getCacheableAssets:(r,e)=>{const t={};return r.forEach(n=>{e.forEach((i,s)=>{t[n+(s===0?"":s+1)]=i})}),t}};async function LP(r){if("Image"in globalThis)return new Promise(e=>{const t=new Image;t.onload=()=>{e(!0)},t.onerror=()=>{e(!1)},t.src=r});if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{const e=await(await fetch(r)).blob();await createImageBitmap(e)}catch{return!1}return!0}return!1}const Pj={extension:{type:dt.DetectionParser,priority:1},test:async()=>LP("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async r=>[...r,"avif"],remove:async r=>r.filter(e=>e!=="avif")},jw=["png","jpg","jpeg"],Dj={extension:{type:dt.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async r=>[...r,...jw],remove:async r=>r.filter(e=>!jw.includes(e))},Hj="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function j_(r){return Hj?!1:document.createElement("video").canPlayType(r)!==""}const kj={extension:{type:dt.DetectionParser,priority:0},test:async()=>j_("video/mp4"),add:async r=>[...r,"mp4","m4v"],remove:async r=>r.filter(e=>e!=="mp4"&&e!=="m4v")},Ij={extension:{type:dt.DetectionParser,priority:0},test:async()=>j_("video/ogg"),add:async r=>[...r,"ogv"],remove:async r=>r.filter(e=>e!=="ogv")},Mj={extension:{type:dt.DetectionParser,priority:0},test:async()=>j_("video/webm"),add:async r=>[...r,"webm"],remove:async r=>r.filter(e=>e!=="webm")},Rj={extension:{type:dt.DetectionParser,priority:0},test:async()=>LP("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async r=>[...r,"webp"],remove:async r=>r.filter(e=>e!=="webp")};let Fj=class{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(e,t,n)=>(this._parsersValidated=!1,e[t]=n,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(e,t){const n={promise:null,parser:null};return n.promise=(async()=>{var a,o;let i=null,s=null;if(t.loadParser&&(s=this._parserHash[t.loadParser],s||yn(`[Assets] specified load parser "${t.loadParser}" not found while loading ${e}`)),!s){for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];if(u.load&&((a=u.test)!=null&&a.call(u,e,t,this))){s=u;break}}if(!s)return yn(`[Assets] ${e} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}i=await s.load(e,t,this),n.parser=s;for(let l=0;l<this.parsers.length;l++){const u=this.parsers[l];u.parse&&u.parse&&await((o=u.testParse)==null?void 0:o.call(u,i,t,this))&&(i=await u.parse(i,t,this)||i,n.parser=u)}return i})(),n}async load(e,t){this._parsersValidated||this._validateParsers();let n=0;const i={},s=n4(e),a=Fs(e,u=>({alias:[u],src:u})),o=a.length,l=a.map(async u=>{const h=Ta.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[h]||(this.promiseCache[h]=this._getLoadPromiseAndParser(h,u)),i[u.src]=await this.promiseCache[h].promise,t&&t(++n/o)}catch(c){throw delete this.promiseCache[h],delete i[u.src],new Error(`[Loader.load] Failed to load ${h}.
978${c}`)}});return await Promise.all(l),s?i[a[0].src]:i}async unload(e){const n=Fs(e,i=>({alias:[i],src:i})).map(async i=>{var o,l;const s=Ta.toAbsolute(i.src),a=this.promiseCache[s];if(a){const u=await a.promise;delete this.promiseCache[s],await((l=(o=a.parser)==null?void 0:o.unload)==null?void 0:l.call(o,u,i,this))}});await Promise.all(n)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(t.name?e[t.name]&&yn(`[Assets] loadParser name conflict "${t.name}"`):yn("[Assets] loadParser should have a name"),{...e,[t.name]:t}),{})}};function P0(r,e){if(Array.isArray(e)){for(const t of e)if(r.startsWith(`data:${t}`))return!0;return!1}return r.startsWith(`data:${e}`)}function D0(r,e){const t=r.split("?")[0],n=Ta.extname(t).toLowerCase();return Array.isArray(e)?e.includes(n):n===e}const Lj=".json",Oj="application/json",Nj={extension:{type:dt.LoadParser,priority:gc.Low},name:"loadJson",test(r){return P0(r,Oj)||D0(r,Lj)},async load(r){return await(await ys.get().fetch(r)).json()}},Bj=".txt",Uj="text/plain",$j={name:"loadTxt",extension:{type:dt.LoadParser,priority:gc.Low},test(r){return P0(r,Uj)||D0(r,Bj)},async load(r){return await(await ys.get().fetch(r)).text()}},zj=["normal","bold","100","200","300","400","500","600","700","800","900"],jj=[".ttf",".otf",".woff",".woff2"],Vj=["font/ttf","font/otf","font/woff","font/woff2"],Gj=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function Wj(r){const e=Ta.extname(r),i=Ta.basename(r,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1));let s=i.length>0;for(const o of i)if(!o.match(Gj)){s=!1;break}let a=i.join(" ");return s||(a=`"${a.replace(/[\\"]/g,"\\$&")}"`),a}const Xj=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function Yj(r){return Xj.test(r)?r:encodeURI(r)}const Zj={extension:{type:dt.LoadParser,priority:gc.Low},name:"loadWebFont",test(r){return P0(r,Vj)||D0(r,jj)},async load(r,e){var n,i,s;const t=ys.get().getFontFaceSet();if(t){const a=[],o=((n=e.data)==null?void 0:n.family)??Wj(r),l=((s=(i=e.data)==null?void 0:i.weights)==null?void 0:s.filter(h=>zj.includes(h)))??["normal"],u=e.data??{};for(let h=0;h<l.length;h++){const c=l[h],d=new FontFace(o,`url(${Yj(r)})`,{...u,weight:c});await d.load(),t.add(d),a.push(d)}return Gn.set(`${o}-and-url`,{url:r,fontFaces:a}),a.length===1?a[0]:a}return yn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(r){(Array.isArray(r)?r:[r]).forEach(e=>{Gn.remove(e.family),ys.get().getFontFaceSet().delete(e)})}};var qj=Kj,E9={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Qj=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Kj(r){var e=[];return r.replace(Qj,function(t,n,i){var s=n.toLowerCase();for(i=eV(i),s=="m"&&i.length>2&&(e.push([n].concat(i.splice(0,2))),s="l",n=n=="m"?"l":"L");;){if(i.length==E9[s])return i.unshift(n),e.push(i);if(i.length<E9[s])throw new Error("malformed path data");e.push([n].concat(i.splice(0,E9[s])))}}),e}var Jj=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function eV(r){var e=r.match(Jj);return e?e.map(Number):[]}const tV=cc(qj);function rV(r,e){const t=tV(r),n=[];let i=null,s=0,a=0;for(let o=0;o<t.length;o++){const l=t[o],u=l[0],h=l;switch(u){case"M":s=h[1],a=h[2],e.moveTo(s,a);break;case"m":s+=h[1],a+=h[2],e.moveTo(s,a);break;case"H":s=h[1],e.lineTo(s,a);break;case"h":s+=h[1],e.lineTo(s,a);break;case"V":a=h[1],e.lineTo(s,a);break;case"v":a+=h[1],e.lineTo(s,a);break;case"L":s=h[1],a=h[2],e.lineTo(s,a);break;case"l":s+=h[1],a+=h[2],e.lineTo(s,a);break;case"C":s=h[5],a=h[6],e.bezierCurveTo(h[1],h[2],h[3],h[4],s,a);break;case"c":e.bezierCurveTo(s+h[1],a+h[2],s+h[3],a+h[4],s+h[5],a+h[6]),s+=h[5],a+=h[6];break;case"S":s=h[3],a=h[4],e.bezierCurveToShort(h[1],h[2],s,a);break;case"s":e.bezierCurveToShort(s+h[1],a+h[2],s+h[3],a+h[4]),s+=h[3],a+=h[4];break;case"Q":s=h[3],a=h[4],e.quadraticCurveTo(h[1],h[2],s,a);break;case"q":e.quadraticCurveTo(s+h[1],a+h[2],s+h[3],a+h[4]),s+=h[3],a+=h[4];break;case"T":s=h[1],a=h[2],e.quadraticCurveToShort(s,a);break;case"t":s+=h[1],a+=h[2],e.quadraticCurveToShort(s,a);break;case"A":s=h[6],a=h[7],e.arcToSvg(h[1],h[2],h[3],h[4],h[5],s,a);break;case"a":s+=h[6],a+=h[7],e.arcToSvg(h[1],h[2],h[3],h[4],h[5],s,a);break;case"Z":case"z":e.closePath(),n.length>0&&(i=n.pop(),i?(s=i.startX,a=i.startY):(s=0,a=0)),i=null;break;default:yn(`Unknown SVG path command: ${u}`)}u!=="Z"&&u!=="z"&&i===null&&(i={startX:s,startY:a},n.push(i))}return e}class V_{constructor(e=0,t=0,n=0){this.type="circle",this.x=e,this.y=t,this.radius=n}clone(){return new V_(this.x,this.y,this.radius)}contains(e,t){if(this.radius<=0)return!1;const n=this.radius*this.radius;let i=this.x-e,s=this.y-t;return i*=i,s*=s,i+s<=n}strokeContains(e,t,n){if(this.radius===0)return!1;const i=this.x-e,s=this.y-t,a=this.radius,o=n/2,l=Math.sqrt(i*i+s*s);return l<a+o&&l>a-o}getBounds(e){return e=e||new mn,e.x=this.x-this.radius,e.y=this.y-this.radius,e.width=this.radius*2,e.height=this.radius*2,e}copyFrom(e){return this.x=e.x,this.y=e.y,this.radius=e.radius,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class G_{constructor(e=0,t=0,n=0,i=0){this.type="ellipse",this.x=e,this.y=t,this.halfWidth=n,this.halfHeight=i}clone(){return new G_(this.x,this.y,this.halfWidth,this.halfHeight)}contains(e,t){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let n=(e-this.x)/this.halfWidth,i=(t-this.y)/this.halfHeight;return n*=n,i*=i,n+i<=1}strokeContains(e,t,n){const{halfWidth:i,halfHeight:s}=this;if(i<=0||s<=0)return!1;const a=n/2,o=i-a,l=s-a,u=i+a,h=s+a,c=e-this.x,d=t-this.y,f=c*c/(o*o)+d*d/(l*l),g=c*c/(u*u)+d*d/(h*h);return f>1&&g<=1}getBounds(){return new mn(this.x-this.halfWidth,this.y-this.halfHeight,this.halfWidth*2,this.halfHeight*2)}copyFrom(e){return this.x=e.x,this.y=e.y,this.halfWidth=e.halfWidth,this.halfHeight=e.halfHeight,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function nV(r,e,t,n,i,s){const a=r-t,o=e-n,l=i-t,u=s-n,h=a*l+o*u,c=l*l+u*u;let d=-1;c!==0&&(d=h/c);let f,g;d<0?(f=t,g=n):d>1?(f=i,g=s):(f=t+d*l,g=n+d*u);const y=r-f,v=e-g;return y*y+v*v}class _d{constructor(...e){this.type="polygon";let t=Array.isArray(e[0])?e[0]:e;if(typeof t[0]!="number"){const n=[];for(let i=0,s=t.length;i<s;i++)n.push(t[i].x,t[i].y);t=n}this.points=t,this.closePath=!0}clone(){const e=this.points.slice(),t=new _d(e);return t.closePath=this.closePath,t}contains(e,t){let n=!1;const i=this.points.length/2;for(let s=0,a=i-1;s<i;a=s++){const o=this.points[s*2],l=this.points[s*2+1],u=this.points[a*2],h=this.points[a*2+1];l>t!=h>t&&e<(u-o)*((t-l)/(h-l))+o&&(n=!n)}return n}strokeContains(e,t,n){const i=n/2,s=i*i,{points:a}=this,o=a.length-(this.closePath?0:2);for(let l=0;l<o;l+=2){const u=a[l],h=a[l+1],c=a[(l+2)%a.length],d=a[(l+3)%a.length];if(nV(e,t,u,h,c,d)<=s)return!0}return!1}getBounds(e){e=e||new mn;const t=this.points;let n=1/0,i=-1/0,s=1/0,a=-1/0;for(let o=0,l=t.length;o<l;o+=2){const u=t[o],h=t[o+1];n=u<n?u:n,i=u>i?u:i,s=h<s?h:s,a=h>a?h:a}return e.x=n,e.width=i-n,e.y=s,e.height=a-s,e}copyFrom(e){return this.points=e.points.slice(),this.closePath=e.closePath,this}copyTo(e){return e.copyFrom(this),e}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((e,t)=>`${e}, ${t}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return this.points[this.points.length-2]}get y(){return this.points[this.points.length-1]}}const yp=(r,e,t,n,i,s)=>{const a=r-t,o=e-n,l=Math.sqrt(a*a+o*o);return l>=i-s&&l<=i+s};class W_{constructor(e=0,t=0,n=0,i=0,s=20){this.type="roundedRectangle",this.x=e,this.y=t,this.width=n,this.height=i,this.radius=s}getBounds(e){return e=e||new mn,e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e}clone(){return new W_(this.x,this.y,this.width,this.height,this.radius)}copyFrom(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this}copyTo(e){return e.copyFrom(this),e}contains(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){const n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+n&&t<=this.y+this.height-n||e>=this.x+n&&e<=this.x+this.width-n)return!0;let i=e-(this.x+n),s=t-(this.y+n);const a=n*n;if(i*i+s*s<=a||(i=e-(this.x+this.width-n),i*i+s*s<=a)||(s=t-(this.y+this.height-n),i*i+s*s<=a)||(i=e-(this.x+n),i*i+s*s<=a))return!0}return!1}strokeContains(e,t,n){const{x:i,y:s,width:a,height:o,radius:l}=this,u=n/2,h=i+l,c=s+l,d=a-l*2,f=o-l*2,g=i+a,y=s+o;return(e>=i-u&&e<=i+u||e>=g-u&&e<=g+u)&&t>=c&&t<=c+f||(t>=s-u&&t<=s+u||t>=y-u&&t<=y+u)&&e>=h&&e<=h+d?!0:e<h&&t<c&&yp(e,t,h,c,l,u)||e>g-l&&t<c&&yp(e,t,g-l,c,l,u)||e>g-l&&t>y-l&&yp(e,t,g-l,y-l,l,u)||e<h&&t>y-l&&yp(e,t,h,y-l,l,u)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}var oi=(r=>(r[r.MAP_READ=1]="MAP_READ",r[r.MAP_WRITE=2]="MAP_WRITE",r[r.COPY_SRC=4]="COPY_SRC",r[r.COPY_DST=8]="COPY_DST",r[r.INDEX=16]="INDEX",r[r.VERTEX=32]="VERTEX",r[r.UNIFORM=64]="UNIFORM",r[r.STORAGE=128]="STORAGE",r[r.INDIRECT=256]="INDIRECT",r[r.QUERY_RESOLVE=512]="QUERY_RESOLVE",r[r.STATIC=1024]="STATIC",r))(oi||{});class nf extends mc{constructor(e){let{data:t,size:n}=e;const{usage:i,label:s,shrinkToFit:a}=e;super(),this.uid=gn("buffer"),this._resourceType="buffer",this._resourceId=gn("resource"),this._touched=0,this._updateID=1,this.shrinkToFit=!0,this.destroyed=!1,t instanceof Array&&(t=new Float32Array(t)),this._data=t,n=n??(t==null?void 0:t.byteLength);const o=!!t;this.descriptor={size:n,usage:i,mappedAtCreation:o,label:s},this.shrinkToFit=a??!0}get data(){return this._data}set data(e){this.setDataWithSize(e,e.length,!0)}get static(){return!!(this.descriptor.usage&oi.STATIC)}set static(e){e?this.descriptor.usage|=oi.STATIC:this.descriptor.usage&=~oi.STATIC}setDataWithSize(e,t,n){if(this._updateID++,this._updateSize=t*e.BYTES_PER_ELEMENT,this._data===e){n&&this.emit("update",this);return}const i=this._data;if(this._data=e,i.length!==e.length){!this.shrinkToFit&&e.byteLength<i.byteLength?n&&this.emit("update",this):(this.descriptor.size=e.byteLength,this._resourceId=gn("resource"),this.emit("change",this));return}n&&this.emit("update",this)}update(e){this._updateSize=e??this._updateSize,this._updateID++,this.emit("update",this)}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._data=null,this.descriptor=null,this.removeAllListeners()}}function OP(r,e){if(!(r instanceof nf)){let t=e?oi.INDEX:oi.VERTEX;r instanceof Array&&(e?(r=new Uint32Array(r),t=oi.INDEX|oi.COPY_DST):(r=new Float32Array(r),t=oi.VERTEX|oi.COPY_DST)),r=new nf({data:r,label:e?"index-mesh-buffer":"vertex-mesh-buffer",usage:t})}return r}function iV(r,e,t){const n=r.getAttribute(e);if(!n)return t.minX=0,t.minY=0,t.maxX=0,t.maxY=0,t;const i=n.buffer.data;let s=1/0,a=1/0,o=-1/0,l=-1/0;const u=i.BYTES_PER_ELEMENT,h=(n.offset||0)/u,c=(n.stride||2*4)/u;for(let d=h;d<i.length;d+=c){const f=i[d],g=i[d+1];f>o&&(o=f),g>l&&(l=g),f<s&&(s=f),g<a&&(a=g)}return t.minX=s,t.minY=a,t.maxX=o,t.maxY=l,t}function sV(r){return(r instanceof nf||Array.isArray(r)||r.BYTES_PER_ELEMENT)&&(r={buffer:r}),r.buffer=OP(r.buffer,!1),r}class aV extends mc{constructor(e){const{attributes:t,indexBuffer:n,topology:i}=e;super(),this.uid=gn("geometry"),this._layoutKey=0,this.instanceCount=1,this._bounds=new mo,this._boundsDirty=!0,this.attributes=t,this.buffers=[],this.instanceCount=e.instanceCount||1;for(const s in t){const a=t[s]=sV(t[s]);this.buffers.indexOf(a.buffer)===-1&&(this.buffers.push(a.buffer),a.buffer.on("update",this.onBufferUpdate,this),a.buffer.on("change",this.onBufferUpdate,this))}n&&(this.indexBuffer=OP(n,!0),this.buffers.push(this.indexBuffer)),this.topology=i||"triangle-list"}onBufferUpdate(){this._boundsDirty=!0,this.emit("update",this)}getAttribute(e){return this.attributes[e]}getIndex(){return this.indexBuffer}getBuffer(e){return this.getAttribute(e).buffer}getSize(){for(const e in this.attributes){const t=this.attributes[e];return t.buffer.data.length/(t.stride/4||t.size)}return 0}get bounds(){return this._boundsDirty?(this._boundsDirty=!1,iV(this,"aPosition",this._bounds)):this._bounds}destroy(e=!1){this.emit("destroy",this),this.removeAllListeners(),e&&this.buffers.forEach(t=>t.destroy()),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}}const oV=new Float32Array(1),lV=new Uint32Array(1);class uV extends aV{constructor(){const t=new nf({data:oV,label:"attribute-batch-buffer",usage:oi.VERTEX|oi.COPY_DST,shrinkToFit:!1}),n=new nf({data:lV,label:"index-batch-buffer",usage:oi.INDEX|oi.COPY_DST,shrinkToFit:!1}),i=6*4;super({attributes:{aPosition:{buffer:t,format:"float32x2",stride:i,offset:0,location:1},aUV:{buffer:t,format:"float32x2",stride:i,offset:2*4,location:3},aColor:{buffer:t,format:"unorm8x4",stride:i,offset:4*4,location:0},aTextureIdAndRound:{buffer:t,format:"uint16x2",stride:i,offset:5*4,location:2}},indexBuffer:n})}}let vp=null;function NP(){if(vp)return vp;const r=Sj();return vp=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),vp}const BP={};function cV(r,e){let t=0;for(let n=0;n<e;n++)t=t*31+r[n].uid>>>0;return BP[t]||hV(r,t)}let P9=0;function hV(r,e){const t={};let n=0;P9||(P9=NP());for(let s=0;s<P9;s++){const a=s<r.length?r[s]:Yt.EMPTY.source;t[n++]=a.source,t[n++]=a.style}const i=new Aj(t);return BP[e]=i,i}class Vw{constructor(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(e){return this[`${e}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this.uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${e} isn't a valid view type`)}}}function Gw(r,e){const t=r.byteLength/8|0,n=new Float64Array(r,0,t);new Float64Array(e,0,t).set(n);const s=r.byteLength-t*8;if(s>0){const a=new Uint8Array(r,t*8,s);new Uint8Array(e,t*8,s).set(a)}}const dV={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};function Ww(r,e){return e.alphaMode==="no-premultiply-alpha"&&dV[r]||r}class Xw{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let e=0;e<this.count;e++){const t=this.textures[e];this.textures[e]=null,this.ids[t.uid]=null}this.count=0}}class Yw{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.blendMode="normal",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null}}let M1=0;const UP=class $P{constructor(e={}){this.uid=gn("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._vertexSize=6,this._elements=[],this._batchPool=[],this._batchPoolIndex=0,this._textureBatchPool=[],this._textureBatchPoolIndex=0,e={...$P.defaultOptions,...e};const{vertexSize:t,indexSize:n}=e;this.attributeBuffer=new Vw(t*this._vertexSize*4),this.indexBuffer=new Uint16Array(n),this._maxTextures=NP()}begin(){this.batchIndex=0,this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0,this._batchPoolIndex=0,this._textureBatchPoolIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(e){this._elements[this.elementSize++]=e,e.indexStart=this.indexSize,e.location=this.attributeSize,e.batcher=this,this.indexSize+=e.indexSize,this.attributeSize+=e.vertexSize*this._vertexSize}checkAndUpdateTexture(e,t){const n=e.batch.textures.ids[t._source.uid];return!n&&n!==0?!1:(e.textureId=n,e.texture=t,!0)}updateElement(e){this.dirty=!0,e.packAttributes(this.attributeBuffer.float32View,this.attributeBuffer.uint32View,e.location,e.textureId)}break(e){const t=this._elements;let n=this._textureBatchPool[this._textureBatchPoolIndex++]||new Xw;if(n.clear(),!t[this.elementStart])return;const i=t[this.elementStart];let s=Ww(i.blendMode,i.texture._source);this.attributeSize*4>this.attributeBuffer.size&&this._resizeAttributeBuffer(this.attributeSize*4),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);const a=this.attributeBuffer.float32View,o=this.attributeBuffer.uint32View,l=this.indexBuffer;let u=this._batchIndexSize,h=this._batchIndexStart,c="startBatch",d=this._batchPool[this._batchPoolIndex++]||new Yw;const f=this._maxTextures;for(let g=this.elementStart;g<this.elementSize;++g){const y=t[g];t[g]=null;const _=y.texture._source,x=Ww(y.blendMode,_),w=s!==x;
978if(_._batchTick===M1&&!w){y.textureId=_._textureBindLocation,u+=y.indexSize,y.packAttributes(a,o,y.location,y.textureId),y.packIndex(l,y.indexStart,y.location/this._vertexSize),y.batch=d;continue}_._batchTick=M1,(n.count>=f||w)&&(this._finishBatch(d,h,u-h,n,s,e,c),c="renderBatch",h=u,s=x,n=this._textureBatchPool[this._textureBatchPoolIndex++]||new Xw,n.clear(),d=this._batchPool[this._batchPoolIndex++]||new Yw,++M1),y.textureId=_._textureBindLocation=n.count,n.ids[_.uid]=n.count,n.textures[n.count++]=_,y.batch=d,u+=y.indexSize,y.packAttributes(a,o,y.location,y.textureId),y.packIndex(l,y.indexStart,y.location/this._vertexSize)}n.count>0&&(this._finishBatch(d,h,u-h,n,s,e,c),h=u,++M1),this.elementStart=this.elementSize,this._batchIndexStart=h,this._batchIndexSize=u}_finishBatch(e,t,n,i,s,a,o){e.gpuBindGroup=null,e.action=o,e.batcher=this,e.textures=i,e.blendMode=s,e.start=t,e.size=n,++M1,a.add(e)}finish(e){this.break(e)}ensureAttributeBuffer(e){e*4<=this.attributeBuffer.size||this._resizeAttributeBuffer(e*4)}ensureIndexBuffer(e){e<=this.indexBuffer.length||this._resizeIndexBuffer(e)}_resizeAttributeBuffer(e){const t=Math.max(e,this.attributeBuffer.size*2),n=new Vw(t);Gw(this.attributeBuffer.rawBinaryData,n.rawBinaryData),this.attributeBuffer=n}_resizeIndexBuffer(e){const t=this.indexBuffer;let n=Math.max(e,t.length*1.5);n+=n%2;const i=n>65535?new Uint32Array(n):new Uint16Array(n);if(i.BYTES_PER_ELEMENT!==t.BYTES_PER_ELEMENT)for(let s=0;s<t.length;s++)i[s]=t[s];else Gw(t.buffer,i.buffer);this.indexBuffer=i}destroy(){for(let e=0;e<this.batches.length;e++)this.batches[e].destroy();this.batches=null;for(let e=0;e<this._elements.length;e++)this._elements[e].batch=null;this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}};UP.defaultOptions={vertexSize:4,indexSize:6};let fV=UP;function pV(r,e,t,n,i,s,a,o=null){let l=0;t*=e,i*=s;const u=o.a,h=o.b,c=o.c,d=o.d,f=o.tx,g=o.ty;for(;l<a;){const y=r[t],v=r[t+1];n[i]=u*y+c*v+f,n[i+1]=h*y+d*v+g,i+=s,t+=e,l++}}function mV(r,e,t,n){let i=0;for(e*=t;i<n;)r[e]=0,r[e+1]=0,e+=t,i++}function zP(r,e,t,n,i){const s=e.a,a=e.b,o=e.c,l=e.d,u=e.tx,h=e.ty;t=t||0,n=n||2,i=i||r.length/n-t;let c=t*n;for(let d=0;d<i;d++){const f=r[c],g=r[c+1];r[c]=s*f+o*g+u,r[c+1]=a*f+l*g+h,c+=n}}function gV(r,e){if(r===16777215||!e)return e;if(e===16777215||!r)return r;const t=r>>16&255,n=r>>8&255,i=r&255,s=e>>16&255,a=e>>8&255,o=e&255,l=t*s/255,u=n*a/255,h=i*o/255;return(l<<16)+(u<<8)+h}class jP{constructor(){this.batcher=null,this.batch=null,this.applyTransform=!0,this.roundPixels=0}get blendMode(){return this.applyTransform?this.renderable.groupBlendMode:"normal"}packIndex(e,t,n){const i=this.geometryData.indices;for(let s=0;s<this.indexSize;s++)e[t++]=i[s+this.indexOffset]+n-this.vertexOffset}packAttributes(e,t,n,i){const s=this.geometryData,a=this.renderable,o=s.vertices,l=s.uvs,u=this.vertexOffset*2,h=(this.vertexOffset+this.vertexSize)*2,c=this.color,d=c>>16|c&65280|(c&255)<<16;if(this.applyTransform){const f=gV(d,a.groupColor)+(this.alpha*a.groupAlpha*255<<24),g=a.groupTransform,y=i<<16|this.roundPixels&65535,v=g.a,_=g.b,x=g.c,w=g.d,S=g.tx,b=g.ty;for(let E=u;E<h;E+=2){const D=o[E],P=o[E+1];e[n]=v*D+x*P+S,e[n+1]=_*D+w*P+b,e[n+2]=l[E],e[n+3]=l[E+1],t[n+4]=f,t[n+5]=y,n+=6}}else{const f=d+(this.alpha*255<<24);for(let g=u;g<h;g+=2)e[n]=o[g],e[n+1]=o[g+1],e[n+2]=l[g],e[n+3]=l[g+1],t[n+4]=f,t[n+5]=i<<16,n+=6}}get vertSize(){return this.vertexSize}copyTo(e){e.indexOffset=this.indexOffset,e.indexSize=this.indexSize,e.vertexOffset=this.vertexOffset,e.vertexSize=this.vertexSize,e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.geometryData=this.geometryData}reset(){this.applyTransform=!0}}const D9={build(r,e){let t,n,i,s,a,o;if(r.type==="circle"){const S=r;t=S.x,n=S.y,a=o=S.radius,i=s=0}else if(r.type==="ellipse"){const S=r;t=S.x,n=S.y,a=S.halfWidth,o=S.halfHeight,i=s=0}else{const S=r,b=S.width/2,E=S.height/2;t=S.x+b,n=S.y+E,a=o=Math.max(0,Math.min(S.radius,Math.min(b,E))),i=b-a,s=E-o}if(!(a>=0&&o>=0&&i>=0&&s>=0))return e;const l=Math.ceil(2.3*Math.sqrt(a+o)),u=l*8+(i?4:0)+(s?4:0);if(u===0)return e;if(l===0)return e[0]=e[6]=t+i,e[1]=e[3]=n+s,e[2]=e[4]=t-i,e[5]=e[7]=n-s,e;let h=0,c=l*4+(i?2:0)+2,d=c,f=u,g=i+a,y=s,v=t+g,_=t-g,x=n+y;if(e[h++]=v,e[h++]=x,e[--c]=x,e[--c]=_,s){const S=n-y;e[d++]=_,e[d++]=S,e[--f]=S,e[--f]=v}for(let S=1;S<l;S++){const b=Math.PI/2*(S/l),E=i+Math.cos(b)*a,D=s+Math.sin(b)*o,P=t+E,I=t-E,R=n+D,U=n-D;e[h++]=P,e[h++]=R,e[--c]=R,e[--c]=I,e[d++]=I,e[d++]=U,e[--f]=U,e[--f]=P}g=i,y=s+o,v=t+g,_=t-g,x=n+y;const w=n-y;return e[h++]=v,e[h++]=x,e[--f]=w,e[--f]=v,i&&(e[h++]=_,e[h++]=x,e[--f]=w,e[--f]=_),e}
vendor: 32,436 bytes, line 978
978,triangulate(r,e,t,n,i,s){if(r.length===0)return;let a=0,o=0;for(let h=0;h<r.length;h+=2)a+=r[h],o+=r[h+1];a/=r.length/2,o/=r.length/2;let l=n;e[l*t]=a,e[l*t+1]=o;const u=l++;for(let h=0;h<r.length;h+=2)e[l*t]=r[h],e[l*t+1]=r[h+1],h>0&&(i[s++]=l,i[s++]=u,i[s++]=l-1),l++;i[s++]=u+1,i[s++]=u,i[s++]=l-1}},yV=1e-4,Zw=1e-4;function vV(r){const e=r.length;if(e<6)return 1;let t=0;for(let n=0,i=r[e-2],s=r[e-1];n<e;n+=2){const a=r[n],o=r[n+1];t+=(a-i)*(o+s),i=a,s=o}return t<0?-1:1}function qw(r,e,t,n,i,s,a,o){const l=r-t*i,u=e-n*i,h=r+t*s,c=e+n*s;let d,f;a?(d=n,f=-t):(d=-n,f=t);const g=l+d,y=u+f,v=h+d,_=c+f;return o.push(g,y),o.push(v,_),2}function mu(r,e,t,n,i,s,a,o){const l=t-r,u=n-e;let h=Math.atan2(l,u),c=Math.atan2(i-r,s-e);o&&h<c?h+=Math.PI*2:!o&&h>c&&(c+=Math.PI*2);let d=h;const f=c-h,g=Math.abs(f),y=Math.sqrt(l*l+u*u),v=(15*g*Math.sqrt(y)/Math.PI>>0)+1,_=f/v;if(d+=_,o){a.push(r,e),a.push(t,n);for(let x=1,w=d;x<v;x++,w+=_)a.push(r,e),a.push(r+Math.sin(w)*y,e+Math.cos(w)*y);a.push(r,e),a.push(i,s)}else{a.push(t,n),a.push(r,e);for(let x=1,w=d;x<v;x++,w+=_)a.push(r+Math.sin(w)*y,e+Math.cos(w)*y),a.push(r,e);a.push(i,s),a.push(r,e)}return v*2}function _V(r,e,t,n,i,s,a,o,l){const u=yV;if(r.length===0)return;const h=e;let c=h.alignment;if(e.alignment!==.5){let ee=vV(r);c=(c-.5)*ee+.5}const d=new kn(r[0],r[1]),f=new kn(r[r.length-2],r[r.length-1]),g=n,y=Math.abs(d.x-f.x)<u&&Math.abs(d.y-f.y)<u;if(g){r=r.slice(),y&&(r.pop(),r.pop(),f.set(r[r.length-2],r[r.length-1]));const ee=(d.x+f.x)*.5,ve=(f.y+d.y)*.5;r.unshift(ee,ve),r.push(ee,ve)}const v=i,_=r.length/2;let x=r.length;const w=v.length/2,S=h.width/2,b=S*S,E=h.miterLimit*h.miterLimit;let D=r[0],P=r[1],I=r[2],R=r[3],U=0,N=0,F=-(P-R),O=D-I,V=0,q=0,Z=Math.sqrt(F*F+O*O);F/=Z,O/=Z,F*=S,O*=S;const j=c,Y=(1-j)*2,G=j*2;g||(h.cap==="round"?x+=mu(D-F*(Y-G)*.5,P-O*(Y-G)*.5,D-F*Y,P-O*Y,D+F*G,P+O*G,v,!0)+2:h.cap==="square"&&(x+=qw(D,P,F,O,Y,G,!0,v))),v.push(D-F*Y,P-O*Y),v.push(D+F*G,P+O*G);for(let ee=1;ee<_-1;++ee){D=r[(ee-1)*2],P=r[(ee-1)*2+1],I=r[ee*2],R=r[ee*2+1],U=r[(ee+1)*2],N=r[(ee+1)*2+1],F=-(P-R),O=D-I,Z=Math.sqrt(F*F+O*O),F/=Z,O/=Z,F*=S,O*=S,V=-(R-N),q=I-U,Z=Math.sqrt(V*V+q*q),V/=Z,q/=Z,V*=S,q*=S;const ve=I-D,_e=P-R,Oe=I-U,Te=N-R,qe=ve*Oe+_e*Te,$e=_e*Oe-Te*ve,lt=$e<0;if(Math.abs($e)<.001*Math.abs(qe)){v.push(I-F*Y,R-O*Y),v.push(I+F*G,R+O*G),qe>=0&&(h.join==="round"?x+=mu(I,R,I-F*Y,R-O*Y,I-V*Y,R-q*Y,v,!1)+4:x+=2,v.push(I-V*G,R-q*G),v.push(I+V*Y,R+q*Y));continue}const We=(-F+D)*(-O+R)-(-F+I)*(-O+P),Ze=(-V+U)*(-q+R)-(-V+I)*(-q+N),st=(ve*Ze-Oe*We)/$e,Pe=(Te*We-_e*Ze)/$e,rt=(st-I)*(st-I)+(Pe-R)*(Pe-R),ut=I+(st-I)*Y,xt=R+(Pe-R)*Y,vt=I-(st-I)*G,W=R-(Pe-R)*G,te=Math.min(ve*ve+_e*_e,Oe*Oe+Te*Te),oe=lt?Y:G,Ee=te+oe*oe*b;rt<=Ee?h.join==="bevel"||rt/b>E?(lt?(v.push(ut,xt),v.push(I+F*G,R+O*G),v.push(ut,xt),v.push(I+V*G,R+q*G)):(v.push(I-F*Y,R-O*Y),v.push(vt,W),v.push(I-V*Y,R-q*Y),v.push(vt,W)),x+=2):h.join==="round"?lt?(v.push(ut,xt),v.push(I+F*G,R+O*G),x+=mu(I,R,I+F*G,R+O*G,I+V*G,R+q*G,v,!0)+4,v.push(ut,xt),v.push(I+V*G,R+q*G)):(v.push(I-F*Y,R-O*Y),v.push(vt,W),x+=mu(I,R,I-F*Y,R-O*Y,I-V*Y,R-q*Y,v,!1)+4,v.push(I-V*Y,R-q*Y),v.push(vt,W)):(v.push(ut,xt),v.push(vt,W)):(v.push(I-F*Y,R-O*Y),v.push(I+F*G,R+O*G),h.join==="round"?lt?x+=mu(I,R,I+F*G,R+O*G,I+V*G,R+q*G,v,!0)+2:x+=mu(I,R,I-F*Y,R-O*Y,I-V*Y,R-q*Y,v,!1)+2:h.join==="miter"&&rt/b<=E&&(lt?(v.push(vt,W),v.push(vt,W)):(v.push(ut,xt),v.push(ut,xt)),x+=2),v.push(I-V*Y,R-q*Y),v.push(I+V*G,R+q*G),x+=2)}D=r[(_-2)*2],P=r[(_-2)*2+1],I=r[(_-1)*2],R=r[(_-1)*2+1],F=-(P-R),O=D-I,Z=Math.sqrt(F*F+O*O),F/=Z,O/=Z,F*=S,O*=S,v.push(I-F*Y,R-O*Y),v.push(I+F*G,R+O*G),g||(h.cap==="round"?x+=mu(I-F*(Y-G)*.5,R-O*(Y-G)*.5,I-F*Y,R-O*Y,I+F*G,R+O*G,v,!1)+2:h.cap==="square"&&(x+=qw(I,R,F,O,Y,G,!1,v)));const J=Zw*Zw;for(let ee=w;ee<x+w-2;++ee)D=v[ee*2],P=v[ee*2+1],I=v[(ee+1)*2],R=v[(ee+1)*2+1],U=v[(ee+2)*2],N=v[(ee+2)*2+1],!(Math.abs(D*(R-N)+I*(N-P)+U*(P-R))<J)&&o.push(ee,ee+1,ee+2)}function VP(r,e,t,n,i,s,a){const o=tT(r,e,2);if(!o)return;for(let u=0;u<o.length;u+=3)s[a++]=o[u]+i,s[a++]=o[u+1]+i,s[a++]=o[u+2]+i;let l=i*n;for(let u=0;u<r.length;u+=2)t[l]=r[u],t[l+1]=r[u+1],l+=n}const xV=[],CV={build(r,e){for(let t=0;t<r.points.length;t++)e[t]=r.points[t];return e},triangulate(r,e,t,n,i,s){VP(r,xV,e,t,n,i,s)}},wV={build(r,e){const t=r,n=t.x,i=t.y,s=t.width,a=t.height;return s>=0&&a>=0&&(e[0]=n,e[1]=i,e[2]=n+s,e[3]=i,e[4]=n+s,e[5]=i+a,e[6]=n,e[7]=i+a),e},triangulate(r,e,t,n,i,s){let a=0;n*=t,e[n+a]=r[0],e[n+a+1]=r[1],a+=t,e[n+a]=r[2],e[n+a+1]=r[3],a+=t,e[n+a]=r[6],e[n+a+1]=r[7],a+=t,e[n+a]=r[4],e[n+a+1]=r[5],a+=t;const o=n/t;i[s++]=o,i[s++]=o+1,i[s++]=o+2,i[s++]=o+1,i[s++]=o+3,i[s++]=o+2}},bV={build(r,e){return e[0]=r.x,e[1]=r.y,e[2]=r.x2,e[3]=r.y2,e[4]=r.x3,e[5]=r.y3,e},triangulate(r,e,t,n,i,s){let a=0;n*=t,e[n+a]=r[0],e[n+a+1]=r[1],a+=t,e[n+a]=r[2],e[n+a+1]=r[3],a+=t,e[n+a]=r[4],e[n+a+1]=r[5];const o=n/t;i[s++]=o,i[s++]=o+1,i[s++]=o+2}},X_={rectangle:wV,polygon:CV,triangle:bV,circle:D9,ellipse:D9,roundedRectangle:D9},SV=new mn;function AV(r,e){const{geometryData:t,batches:n}=e;n.length=0,t.indices.length=0,t.vertices.length=0,t.uvs.length=0;for(let i=0;i<r.instructions.length;i++){const s=r.instructions[i];if(s.action==="texture")TV(s.data,n,t);else if(s.action==="fill"||s.action==="stroke"){const a=s.action==="stroke",o=s.data.path.shapePath,l=s.data.style,u=s.data.hole;a&&u&&Qw(u.shapePath,l,null,!0,n,t),Qw(o,l,u,a,n,t)}}}function TV(r,e,t){const{vertices:n,uvs:i,indices:s}=t,a=s.length,o=n.length/2,l=[],u=X_.rectangle,h=SV,c=r.image;h.x=r.dx,h.y=r.dy,h.width=r.dw,h.height=r.dh;const d=r.transform;u.build(h,l),d&&zP(l,d),u.triangulate(l,n,2,o,s,a);const f=c.uvs;i.push(f.x0,f.y0,f.x1,f.y1,f.x3,f.y3,f.x2,f.y2);const g=Qa.get(jP);g.indexOffset=a,g.indexSize=s.length-a,g.vertexOffset=o,g.vertexSize=n.length/2-o,g.color=r.style,g.alpha=r.alpha,g.texture=c,g.geometryData=t,e.push(g)}function Qw(r,e,t,n,i,s){const{vertices:a,uvs:o,indices:l}=s,u=r.shapePrimitives.length-1;r.shapePrimitives.forEach(({shape:h,transform:c},d)=>{const f=l.length,g=a.length/2,y=[],v=X_[h.type];if(v.build(h,y),c&&zP(y,c),n){const S=h.closePath??!0;_V(y,e,!1,S,a,2,g,l)}else if(t&&u===d){u!==0&&console.warn("[Pixi Graphics] only the last shape have be cut out");const S=[],b=y.slice();EV(t.shapePath).forEach(D=>{S.push(b.length/2),b.push(...D)}),VP(b,S,a,2,g,l,f)}else v.triangulate(y,a,2,g,l,f);const _=o.length/2,x=e.texture;if(x!==Yt.WHITE){const S=e.matrix;c&&S.append(c.clone().invert()),pV(a,2,g,o,_,2,a.length/2-g,S)}else mV(o,_,2,a.length/2-g);const w=Qa.get(jP);w.indexOffset=f,w.indexSize=l.length-f,w.vertexOffset=g,w.vertexSize=a.length/2-g,w.color=e.color,w.alpha=e.alpha,w.texture=x,w.geometryData=s,i.push(w)})}function EV(r){if(!r)return[];const e=r.shapePrimitives,t=[];for(let n=0;n<e.length;n++){const i=e[n].shape,s=[];X_[i.type].build(i,s),t.push(s)}return t}class PV{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}}class DV{constructor(){this.geometry=new uV,this.instructions=new wP}init(){this.instructions.reset()}}const Y_=class tv{constructor(){this._activeBatchers=[],this._gpuContextHash={},this._graphicsDataContextHash=Object.create(null)}init(e){tv.defaultOptions.bezierSmoothness=(e==null?void 0:e.bezierSmoothness)??tv.defaultOptions.bezierSmoothness}prerender(){this._returnActiveBatchers()}getContextRenderData(e){return this._graphicsDataContextHash[e.uid]||this._initContextRenderData(e)}updateGpuContext(e){let t=this._gpuContextHash[e.uid]||this._initContext(e);if(e.dirty){t?this._cleanGraphicsContextData(e):t=this._initContext(e),AV(e,t);const n=e.batchMode;e.customShader||n==="no-batch"?t.isBatchable=!1:n==="auto"&&(t.isBatchable=t.geometryData.vertices.length<400),e.dirty=!1}return t}getGpuContext(e){return this._gpuContextHash[e.uid]||this._initContext(e)}_returnActiveBatchers(){for(let e=0;e<this._activeBatchers.length;e++)Qa.return(this._activeBatchers[e]);this._activeBatchers.length=0}_initContextRenderData(e){const t=Qa.get(DV),{batches:n,geometryData:i}=this._gpuContextHash[e.uid],s=i.vertices.length,a=i.indices.length;for(let h=0;h<n.length;h++)n[h].applyTransform=!1;const o=Qa.get(fV);this._activeBatchers.push(o),o.ensureAttributeBuffer(s),o.ensureIndexBuffer(a),o.begin();for(let h=0;h<n.length;h++){const c=n[h];o.add(c)}o.finish(t.instructions);const l=t.geometry;l.indexBuffer.setDataWithSize(o.indexBuffer,o.indexSize,!0),l.buffers[0].setDataWithSize(o.attributeBuffer.float32View,o.attributeSize,!0);const u=o.batches;for(let h=0;h<u.length;h++){const c=u[h];c.bindGroup=cV(c.textures.textures,c.textures.count)}return this._graphicsDataContextHash[e.uid]=t,t}_initContext(e){const t=new PV;return t.context=e,this._gpuContextHash[e.uid]=t,e.on("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]}onGraphicsContextDestroy(e){this._cleanGraphicsContextData(e),e.off("destroy",this.onGraphicsContextDestroy,this),this._gpuContextHash[e.uid]=null}_cleanGraphicsContextData(e){const t=this._gpuContextHash[e.uid];t.isBatchable||this._graphicsDataContextHash[e.uid]&&(Qa.return(this.getContextRenderData(e)),this._graphicsDataContextHash[e.uid]=null),t.batches&&t.batches.forEach(n=>{Qa.return(n)})}destroy(){for(const e in this._gpuContextHash)this._gpuContextHash[e]&&this.onGraphicsContextDestroy(this._gpuContextHash[e].context)}};Y_.extension={type:[dt.WebGLSystem,dt.WebGPUSystem,dt.CanvasSystem],name:"graphicsContext"};Y_.defaultOptions={bezierSmoothness:.5};let GP=Y_;const HV=8,_p=11920929e-14,kV=1;function WP(r,e,t,n,i,s,a,o,l,u){const c=Math.min(.99,Math.max(0,u??GP.defaultOptions.bezierSmoothness));let d=(kV-c)/1;return d*=d,IV(e,t,n,i,s,a,o,l,r,d),r}function IV(r,e,t,n,i,s,a,o,l,u){rv(r,e,t,n,i,s,a,o,l,u,0),l.push(a,o)}function rv(r,e,t,n,i,s,a,o,l,u,h){if(h>HV)return;const c=(r+t)/2,d=(e+n)/2,f=(t+i)/2,g=(n+s)/2,y=(i+a)/2,v=(s+o)/2,_=(c+f)/2,x=(d+g)/2,w=(f+y)/2,S=(g+v)/2,b=(_+w)/2,E=(x+S)/2;if(h>0){let D=a-r,P=o-e;const I=Math.abs((t-a)*P-(n-o)*D),R=Math.abs((i-a)*P-(s-o)*D);if(I>_p&&R>_p){if((I+R)*(I+R)<=u*(D*D+P*P)){l.push(b,E);return}}else if(I>_p){if(I*I<=u*(D*D+P*P)){l.push(b,E);return}}else if(R>_p){if(R*R<=u*(D*D+P*P)){l.push(b,E);return}}else if(D=b-(r+a)/2,P=E-(e+o)/2,D*D+P*P<=u){l.push(b,E);return}}rv(r,e,c,d,_,x,b,E,l,u,h+1),rv(b,E,w,S,y,v,a,o,l,u,h+1)}const MV=8,RV=11920929e-14,FV=1;function LV(r,e,t,n,i,s,a,o){const u=Math.min(.99,Math.max(0,o??GP.defaultOptions.bezierSmoothness));let h=(FV-u)/1;return h*=h,OV(e,t,n,i,s,a,r,h),r}function OV(r,e,t,n,i,s,a,o){nv(a,r,e,t,n,i,s,o,0),a.push(i,s)}function nv(r,e,t,n,i,s,a,o,l){if(l>MV)return;const u=(e+n)/2,h=(t+i)/2,c=(n+s)/2,d=(i+a)/2,f=(u+c)/2,g=(h+d)/2;let y=s-e,v=a-t;const _=Math.abs((n-s)*v-(i-a)*y);if(_>RV){if(_*_<=o*(y*y+v*v)){r.push(f,g);return}}else if(y=f-(e+s)/2,v=g-(t+a)/2,y*y+v*v<=o){r.push(f,g);return}nv(r,e,t,u,h,f,g,o,l+1),nv(r,f,g,c,d,s,a,o,l+1)}function XP(r,e,t,n,i,s,a,o){let l=Math.abs(i-s);(!a&&i>s||a&&s>i)&&(l=2*Math.PI-l),o=o||Math.max(6,Math.floor(6*Math.pow(n,1/3)*(l/Math.PI))),o=Math.max(o,3);let u=l/o,h=i;u*=a?-1:1;for(let c=0;c<o+1;c++){const d=Math.cos(h),f=Math.sin(h),g=e+d*n,y=t+f*n;r.push(g,y),h+=u}}function NV(r,e,t,n,i,s){const a=r[r.length-2],l=r[r.length-1]-t,u=a-e,h=i-t,c=n-e,d=Math.abs(l*c-u*h);if(d<1e-8||s===0){(r[r.length-2]!==e||r[r.length-1]!==t)&&r.push(e,t);return}const f=l*l+u*u,g=h*h+c*c,y=l*h+u*c,v=s*Math.sqrt(f)/d,_=s*Math.sqrt(g)/d,x=v*y/f,w=_*y/g,S=v*c+_*u,b=v*h+_*l,E=u*(_+x),D=l*(_+x),P=c*(v+w),I=h*(v+w),R=Math.atan2(D-b,E-S),U=Math.atan2(I-b,P-S);XP(r,S+e,b+t,s,R,U,u*h>c*l)}const xd=Math.PI*2,H9={centerX:0,centerY:0,ang1:0,ang2:0},k9=({x:r,y:e},t,n,i,s,a,o,l)=>{r*=t,e*=n;const u=i*r-s*e,h=s*r+i*e;return l.x=u+a,l.y=h+o,l};function BV(r,e){const t=e===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(e/4),n=e===1.5707963267948966?.551915024494:t,i=Math.cos(r),s=Math.sin(r),a=Math.cos(r+e),o=Math.sin(r+e);return[{x:i-s*n,y:s+i*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]}const Kw=(r,e,t,n)=>{const i=r*n-e*t<0?-1:1;let s=r*t+e*n;return s>1&&(s=1),s<-1&&(s=-1),i*Math.acos(s)},UV=(r,e,t,n,i,s,a,o,l,u,h,c,d)=>{const f=Math.pow(i,2),g=Math.pow(s,2),y=Math.pow(h,2),v=Math.pow(c,2);let _=f*g-f*v-g*y;_<0&&(_=0),_/=f*v+g*y,_=Math.sqrt(_)*(a===o?-1:1);const x=_*i/s*c,w=_*-s/i*h,S=u*x-l*w+(r+t)/2,b=l*x+u*w+(e+n)/2,E=(h-x)/i,D=(c-w)/s,P=(-h-x)/i,I=(-c-w)/s,R=Kw(1,0,E,D);let U=Kw(E,D,P,I);o===0&&U>0&&(U-=xd),o===1&&U<0&&(U+=xd),d.centerX=S,d.centerY=b,d.ang1=R,d.ang2=U};function $V(r,e,t,n,i,s,a,o=0,l=0,u=0){if(s===0||a===0)return;const h=Math.sin(o*xd/360),c=Math.cos(o*xd/360),d=c*(e-n)/2+h*(t-i)/2,f=-h*(e-n)/2+c*(t-i)/2;if(d===0&&f===0)return;s=Math.abs(s),a=Math.abs(a);const g=Math.pow(d,2)/Math.pow(s,2)+Math.pow(f,2)/Math.pow(a,2);g>1&&(s*=Math.sqrt(g),a*=Math.sqrt(g)),UV(e,t,n,i,s,a,l,u,h,c,d,f,H9);let{ang1:y,ang2:v}=H9;const{centerX:_,centerY:x}=H9;let w=Math.abs(v)/(xd/4);Math.abs(1-w)<1e-7&&(w=1);const S=Math.max(Math.ceil(w),1);v/=S;let b=r[r.length-2],E=r[r.length-1];const D={x:0,y:0};for(let P=0;P<S;P++){const I=BV(y,v),{x:R,y:U}=k9(I[0],s,a,c,h,_,x,D),{x:N,y:F}=k9(I[1],s,a,c,h,_,x,D),{x:O,y:V}=k9(I[2],s,a,c,h,_,x,D);WP(r,b,E,R,U,N,F,O,V),b=O,E=V,y+=v}}function zV(r,e,t){const n=(a,o)=>{const l=o.x-a.x,u=o.y-a.y,h=Math.sqrt(l*l+u*u),c=l/h,d=u/h;return{len:h,nx:c,ny:d}},i=(a,o)=>{a===0?r.moveTo(o.x,o.y):r.lineTo(o.x,o.y)};let s=e[e.length-1];for(let a=0;a<e.length;a++){const o=e[a%e.length],l=o.radius??t;if(l<=0){i(a,o),s=o;continue}const u=e[(a+1)%e.length],h=n(o,s),c=n(o,u);if(h.len<1e-4||c.len<1e-4){i(a,o),s=o;continue}let d=Math.asin(h.nx*c.ny-h.ny*c.nx),f=1,g=!1;h.nx*c.nx-h.ny*-c.ny<0?d<0?d=Math.PI+d:(d=Math.PI-d,f=-1,g=!0):d>0&&(f=-1,g=!0);const y=d/2;let v,_=Math.abs(Math.cos(y)*l/Math.sin(y));_>Math.min(h.len/2,c.len/2)?(_=Math.min(h.len/2,c.len/2),v=Math.abs(_*Math.sin(y)/Math.cos(y))):v=l;const x=o.x+c.nx*_+-c.ny*v*f,w=o.y+c.ny*_+c.nx*v*f,S=Math.atan2(h.ny,h.nx)+Math.PI/2*f,b=Math.atan2(c.ny,c.nx)-Math.PI/2*f;a===0&&r.moveTo(x+Math.cos(S)*v,w+Math.sin(S)*v),r.arc(x,w,v,S,b,g),s=o}}function jV(r,e,t,n){const i=(o,l)=>Math.sqrt((o.x-l.x)**2+(o.y-l.y)**2),s=(o,l,u)=>({x:o.x+(l.x-o.x)*u,y:o.y+(l.y-o.y)*u}),a=e.length;for(let o=0;o<a;o++){const l=e[(o+1)%a],u=l.radius??t;if(u<=0){o===0?r.moveTo(l.x,l.y):r.lineTo(l.x,l.y);continue}const h=e[o],c=e[(o+2)%a],d=i(h,l);let f;if(d<1e-4)f=l;else{const v=Math.min(d/2,u);f=s(l,h,v/d)}const g=i(c,l);let y;if(g<1e-4)y=l;else{const v=Math.min(g/2,u);y=s(l,c,v/g)}o===0?r.moveTo(f.x,f.y):r.lineTo(f.x,f.y),r.quadraticCurveTo(l.x,l.y,y.x,y.y,n)}}const VV=new mn;class GV{constructor(e){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new mo,this._graphicsPath2D=e}moveTo(e,t){return this.startPoly(e,t),this}lineTo(e,t){this._ensurePoly();const n=this._currentPoly.points,i=n[n.length-2],s=n[n.length-1];return(i!==e||s!==t)&&n.push(e,t),this}arc(e,t,n,i,s,a){this._ensurePoly(!1);const o=this._currentPoly.points;return XP(o,e,t,n,i,s,a),this}arcTo(e,t,n,i,s){this._ensurePoly();const a=this._currentPoly.points;return NV(a,e,t,n,i,s),this}arcToSvg(e,t,n,i,s,a,o){const l=this._currentPoly.points;return $V(l,this._currentPoly.lastX,this._currentPoly.lastY,a,o,e,t,n,i,s),this}bezierCurveTo(e,t,n,i,s,a,o){this._ensurePoly();const l=this._currentPoly;return WP(this._currentPoly.points,l.lastX,l.lastY,e,t,n,i,s,a,o),this}quadraticCurveTo(e,t,n,i,s){this._ensurePoly();const a=this._currentPoly;return LV(this._currentPoly.points,a.lastX,a.lastY,e,t,n,i,s),this}closePath(){return this.endPoly(!0),this}addPath(e,t){this.endPoly(),t&&!t.isIdentity()&&(e=e.clone(!0),e.transform(t));for(let n=0;n<e.instructions.length;n++){const i=e.instructions[n];this[i.action](...i.data)}return this}finish(e=!1){this.endPoly(e)}rect(e,t,n,i,s){return this.drawShape(new mn(e,t,n,i),s),this}circle(e,t,n,i){return this.drawShape(new V_(e,t,n),i),this}poly(e,t,n){const i=new _d(e);return i.closePath=t,this.drawShape(i,n),this}regularPoly(e,t,n,i,s=0,a){i=Math.max(i|0,3);const o=-1*Math.PI/2+s,l=Math.PI*2/i,u=[];for(let h=0;h<i;h++){const c=h*l+o;u.push(e+n*Math.cos(c),t+n*Math.sin(c))}return this.poly(u,!0,a),this}roundPoly(e,t,n,i,s,a=0,o){if(i=Math.max(i|0,3),s<=0)return this.regularPoly(e,t,n,i,a);const l=n*Math.sin(Math.PI/i)-.001;s=Math.min(s,l);const u=-1*Math.PI/2+a,h=Math.PI*2/i,c=(i-2)*Math.PI/i/2;for(let d=0;d<i;d++){const f=d*h+u,g=e+n*Math.cos(f),y=t+n*Math.sin(f),v=f+Math.PI+c,_=f-Math.PI-c,x=g+s*Math.cos(v),w=y+s*Math.sin(v),S=g+s*Math.cos(_),b=y+s*Math.sin(_);d===0?this.moveTo(x,w):this.lineTo(x,w),this.quadraticCurveTo(g,y,S,b,o)}return this.closePath()}roundShape(e,t,n=!1,i){return e.length<3?this:(n?jV(this,e,t,i):zV(this,e,t),this.closePath())}filletRect(e,t,n,i,s){if(s===0)return this.rect(e,t,n,i);const a=Math.min(n,i)/2,o=Math.min(a,Math.max(-a,s)),l=e+n,u=t+i,h=o<0?-o:0,c=Math.abs(o);return this.moveTo(e,t+c).arcTo(e+h,t+h,e+c,t,c).lineTo(l-c,t).arcTo(l-h,t+h,l,t+c,c).lineTo(l,u-c).arcTo(l-h,u-h,e+n-c,u,c).lineTo(e+c,u).arcTo(e+h,u-h,e,u-c,c).closePath()}chamferRect(e,t,n,i,s,a){if(s<=0)return this.rect(e,t,n,i);const o=Math.min(s,Math.min(n,i)/2),l=e+n,u=t+i,h=[e+o,t,l-o,t,l,t+o,l,u-o,l-o,u,e+o,u,e,u-o,e,t+o];for(let c=h.length-1;c>=2;c-=2)h[c]===h[c-2]&&h[c-1]===h[c-3]&&h.splice(c-1,2);return this.poly(h,!0,a)}ellipse(e,t,n,i,s){return this.drawShape(new G_(e,t,n,i),s),this}roundRect(e,t,n,i,s,a){return this.drawShape(new W_(e,t,n,i,s),a),this}drawShape(e,t){return this.endPoly(),this.shapePrimitives.push({shape:e,transform:t}),this}startPoly(e,t){let n=this._currentPoly;return n&&this.endPoly(),n=new _d,n.points.push(e,t),this._currentPoly=n,this}endPoly(e=!1){const t=this._currentPoly;return t&&t.points.length>2&&(t.closePath=e,this.shapePrimitives.push({shape:t})),this._currentPoly=null,this}_ensurePoly(e=!0){if(!this._currentPoly&&(this._currentPoly=new _d,e)){const t=this.shapePrimitives[this.shapePrimitives.length-1];if(t){let n=t.shape.x,i=t.shape.y;if(!t.transform.isIdentity()){const s=t.transform,a=n;n=s.a*n+s.c*i+s.tx,i=s.b*a+s.d*i+s.ty}this._currentPoly.points.push(n,i)}else this._currentPoly.points.push(0,0)}}buildPath(){const e=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let t=0;t<e.instructions.length;t++){const n=e.instructions[t];this[n.action](...n.data)}this.finish()}get bounds(){const e=this._bounds;e.clear();const t=this.shapePrimitives;for(let n=0;n<t.length;n++){const i=t[n],s=i.shape.getBounds(VV);i.transform?e.addRect(s,i.transform):e.addRect(s)}return e}}class m0{constructor(e){this.instructions=[],this.uid=gn("graphicsPath"),this._dirty=!0,typeof e=="string"?rV(e,this):this.instructions=(e==null?void 0:e.slice())??[]}get shapePath(){return this._shapePath||(this._shapePath=new GV(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}addPath(e,t){return e=e.clone(),this.instructions.push({action:"addPath",data:[e,t]}),this._dirty=!0,this}arc(...e){return this.instructions.push({action:"arc",data:e}),this._dirty=!0,this}arcTo(...e){return this.instructions.push({action:"arcTo",data:e}),this._dirty=!0,this}arcToSvg(...e){return this.instructions.push({action:"arcToSvg",data:e}),this._dirty=!0,this}bezierCurveTo(...e){return this.instructions.push({action:"bezierCurveTo",data:e}),this._dirty=!0,this}bezierCurveToShort(e,t,n,i,s){const a=this.instructions[this.instructions.length-1],o=this.getLastPoint(kn.shared);let l=0,u=0;if(!a||a.action!=="bezierCurveTo")l=o.x,u=o.y;else{l=a.data[2],u=a.data[3];const h=o.x,c=o.y;l=h+(h-l),u=c+(c-u)}return this.instructions.push({action:"bezierCurveTo",data:[l,u,e,t,n,i,s]}),this._dirty=!0,this}closePath(){return this.instructions.push({action:"closePath",data:[]}),this._dirty=!0,this}ellipse(...e){return this.instructions.push({action:"ellipse",data:e}),this._dirty=!0,this}lineTo(...e){return this.instructions.push({action:"lineTo",data:e}),this._dirty=!0,this}moveTo(...e){return this.instructions.push({action:"moveTo",data:e}),this}quadraticCurveTo(...e){return this.instructions.push({action:"quadraticCurveTo",data:e}),this._dirty=!0,this}quadraticCurveToShort(e,t,n){const i=this.instructions[this.instructions.length-1],s=this.getLastPoint(kn.shared);let a=0,o=0;if(!i||i.action!=="quadraticCurveTo")a=s.x,o=s.y;else{a=i.data[0],o=i.data[1];const l=s.x,u=s.y;a=l+(l-a),o=u+(u-o)}return this.instructions.push({action:"quadraticCurveTo",data:[a,o,e,t,n]}),this._dirty=!0,this}rect(e,t,n,i,s){return this.instructions.push({action:"rect",data:[e,t,n,i,s]}),this._dirty=!0,this}circle(e,t,n,i){return this.instructions.push({action:"circle",data:[e,t,n,i]}),this._dirty=!0,this}roundRect(...e){return this.instructions.push({action:"roundRect",data:e}),this._dirty=!0,this}poly(...e){return this.instructions.push({action:"poly",data:e}),this._dirty=!0,this}regularPoly(...e){return this.instructions.push({action:"regularPoly",data:e}),this._dirty=!0,this}roundPoly(...e){return this.instructions.push({action:"roundPoly",data:e}),this._dirty=!0,this}roundShape(...e){return this.instructions.push({action:"roundShape",data:e}),this._dirty=!0,this}filletRect(...e){return this.instructions.push({action:"filletRect",data:e}),this._dirty=!0,this}chamferRect(...e){return this.instructions.push({action:"chamferRect",data:e}),this._dirty=!0,this}star(e,t,n,i,s,a,o){s=s||i/2;const l=-1*Math.PI/2+a,u=n*2,h=Math.PI*2/u,c=[];for(let d=0;d<u;d++){const f=d%2?s:i,g=d*h+l;c.push(e+f*Math.cos(g),t+f*Math.sin(g))}return this.poly(c,!0,o),this}clone(e=!1){const t=new m0;if(!e)t.instructions=this.instructions.slice();else for(let n=0;n<this.instructions.length;n++){const i=this.instructions[n];t.instructions.push({action:i.action,data:i.data.slice()})}return t}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(e){if(e.isIdentity())return this;const t=e.a,n=e.b,i=e.c,s=e.d,a=e.tx,o=e.ty;let l=0,u=0,h=0,c=0,d=0,f=0,g=0,y=0;for(let v=0;v<this.instructions.length;v++){const _=this.instructions[v],x=_.data;switch(_.action){case"moveTo":case"lineTo":l=x[0],u=x[1],x[0]=t*l+i*u+a,x[1]=n*l+s*u+o;break;case"bezierCurveTo":h=x[0],c=x[1],d=x[2],f=x[3],l=x[4],u=x[5],x[0]=t*h+i*c+a,x[1]=n*h+s*c+o,x[2]=t*d+i*f+a,x[3]=n*d+s*f+o,x[4]=t*l+i*u+a,x[5]=n*l+s*u+o;break;case"quadraticCurveTo":h=x[0],c=x[1],l=x[2],u=x[3],x[0]=t*h+i*c+a,x[1]=n*h+s*c+o,x[2]=t*l+i*u+a,x[3]=n*l+s*u+o;break;case"arcToSvg":l=x[5],u=x[6],g=x[0],y=x[1],x[0]=t*g+i*y,x[1]=n*g+s*y,x[5]=t*l+i*u+a,x[6]=n*l+s*u+o;break;case"circle":x[4]=R1(x[3],e);break;case"rect":x[4]=R1(x[4],e);break;case"ellipse":x[8]=R1(x[8],e);break;case"roundRect":x[5]=R1(x[5],e);break;case"addPath":x[0].transform(e);break;case"poly":x[2]=R1(x[2],e);break;default:yn("unknown transform action",_.action);break}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(e){let t=this.instructions.length-1,n=this.instructions[t];if(!n)return e.x=0,e.y=0,e;for(;n.action==="closePath";){if(t--,t<0)return e.x=0,e.y=0,e;n=this.instructions[t]}switch(n.action){case"moveTo":case"lineTo":e.x=n.data[0],e.y=n.data[1];break;case"quadraticCurveTo":e.x=n.data[2],e.y=n.data[3];break;case"bezierCurveTo":e.x=n.data[4],e.y=n.data[5];break;case"arc":case"arcToSvg":e.x=n.data[5],e.y=n.data[6];break;case"addPath":n.data[0].getLastPoint(e);break}return e}}function R1(r,e){return r?r.prepend(e):e.clone()}function WV(r,e){if(typeof r=="string"){const n=document.createElement("div");n.innerHTML=r.trim(),r=n.querySelector("svg")}const t={context:e,path:new m0};return YP(r,t,null,null),e}function YP(r,e,t,n){const i=r.children,{fillStyle:s,strokeStyle:a}=XV(r);s&&t?t={...t,...s}:s&&(t=s),a&&n?n={...n,...a}:a&&(n=a),e.context.fillStyle=t,e.context.strokeStyle=n;let o,l,u,h,c,d,f,g,y,v,_,x,w,S,b,E,D;switch(r.nodeName.toLowerCase()){case"path":S=r.getAttribute("d"),b=new m0(S),e.context.path(b),t&&e.context.fill(),n&&e.context.stroke();break;case"circle":f=Jr(r,"cx",0),g=Jr(r,"cy",0),y=Jr(r,"r",0),e.context.ellipse(f,g,y,y),t&&e.context.fill(),n&&e.context.stroke();break;case"rect":o=Jr(r,"x",0),l=Jr(r,"y",0),E=Jr(r,"width",0),D=Jr(r,"height",0),v=Jr(r,"rx",0),_=Jr(r,"ry",0),v||_?e.context.roundRect(o,l,E,D,v||_):e.context.rect(o,l,E,D),t&&e.context.fill(),n&&e.context.stroke();break;case"ellipse":f=Jr(r,"cx",0),g=Jr(r,"cy",0),v=Jr(r,"rx",0),_=Jr(r,"ry",0),e.context.beginPath(),e.context.ellipse(f,g,v,_),t&&e.context.fill(),n&&e.context.stroke();break;case"line":u=Jr(r,"x1",0),h=Jr(r,"y1",0),c=Jr(r,"x2",0),d=Jr(r,"y2",0),e.context.beginPath(),e.context.moveTo(u,h),e.context.lineTo(c,d),n&&e.context.stroke();break;case"polygon":w=r.getAttribute("points"),x=w.match(/\d+/g).map(P=>parseInt(P,10)),e.context.poly(x,!0),t&&e.context.fill(),n&&e.context.stroke();break;case"polyline":w=r.getAttribute("points"),x=w.match(/\d+/g).map(P=>parseInt(P,10)),e.context.poly(x,!1),n&&e.context.stroke();break;case"g":case"svg":break;default:{console.info(`[SVG parser] <${r.nodeName}> elements unsupported`);break}}for(let P=0;P<i.length;P++)YP(i[P],e,t,n)}function Jr(r,e,t){const n=r.getAttribute(e);return n?Number(n):t}function XV(r){const e=r.getAttribute("style"),t={},n={};let i=!1,s=!1;if(e){const a=e.split(";");for(let o=0;o<a.length;o++){const l=a[o],[u,h]=l.split(":");switch(u){case"stroke":h!=="none"&&(t.color=pa.shared.setValue(h).toNumber(),s=!0);break;case"stroke-width":t.width=Number(h);break;case"fill":h!=="none"&&(i=!0,n.color=pa.shared.setValue(h).toNumber());break;case"fill-opacity":n.alpha=Number(h);break;case"stroke-opacity":t.alpha=Number(h);break;case"opacity":n.alpha=Number(h),t.alpha=Number(h);break}}}else{const a=r.getAttribute("stroke");a&&a!=="none"&&(s=!0,t.color=pa.shared.setValue(a).toNumber(),t.width=Jr(r,"stroke-width",1));const o=r.getAttribute("fill");o&&o!=="none"&&(i=!0,n.color=pa.shared.setValue(o).toNumber())}return{strokeStyle:s?t:null,fillStyle:i?n:null}}const ZP=class iv{constructor(e,t,n,i){this.uid=gn("fillGradient"),this.type="linear",this.gradientStops=[],this.x0=e,this.y0=t,this.x1=n,this.y1=i}addColorStop(e,t){return this.gradientStops.push({offset:e,color:pa.shared.setValue(t).toHex()}),this}buildLinearGradient(){const e=iv.defaultTextureSize,{gradientStops:t}=this,n=ys.get().createCanvas();n.width=e,n.height=e;const i=n.getContext("2d"),s=i.createLinearGradient(0,0,iv.defaultTextureSize,1);for(let y=0;y<t.length;y++){const v=t[y];s.addColorStop(v.offset,v.color)}i.fillStyle=s,i.fillRect(0,0,e,e),this.texture=new Yt({source:new Hf({resource:n,addressModeU:"clamp-to-edge",addressModeV:"repeat"})});const{x0:a,y0:o,x1:l,y1:u}=this,h=new Gt,c=l-a,d=u-o,f=Math.sqrt(c*c+d*d),g=Math.atan2(d,c);h.translate(-a,-o),h.scale(1/e,1/e),h.rotate(-g),h.scale(256/f,1),this.transform=h}};ZP.defaultTextureSize=256;let YV=ZP;const Jw={repeat:{addressModeU:"repeat",addressModeV:"repeat"},"repeat-x":{addressModeU:"repeat",addressModeV:"clamp-to-edge"},"repeat-y":{addressModeU:"clamp-to-edge",addressModeV:"repeat"},"no-repeat":{addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}};class ZV{constructor(e,t){this.uid=gn("fillPattern"),this.transform=new Gt,this.texture=e,this.transform.scale(1/e.frame.width,1/e.frame.height),t&&(e.source.style.addressModeU=Jw[t].addressModeU,e.source.style.addressModeV=Jw[t].addressModeV)}setTransform(e){const t=this.texture;this.transform.copyFrom(e),this.transform.invert(),this.transform.scale(1/t.frame.width,1/t.frame.height)}}function Kc(r,e){var a;if(r==null)return null;let t,n;if(r!=null&&r.fill?(n=r.fill,t={...e,...r}):(n=r,t=e),pa.isColorLike(n)){const o=pa.shared.setValue(n??0);return{...t,color:o.toNumber(),alpha:o.alpha===1?t.alpha:o.alpha,texture:Yt.WHITE}}else if(n instanceof ZV){const o=n;return{...t,color:16777215,texture:o.texture,matrix:o.transform,fill:t.fill??null}}else if(n instanceof YV){const o=n;return o.buildLinearGradient(),{...t,color:16777215,texture:o.texture,matrix:o.transform}}const i={...e,...r};if(i.texture){if(i.texture!==Yt.WHITE){const l=((a=i.matrix)==null?void 0:a.invert())||new Gt;l.scale(1/i.texture.frame.width,1/i.texture.frame.height),i.matrix=l}const o=i.texture.source.style;o.addressMode==="clamp-to-edge"&&(o.addressMode="repeat")}const s=pa.shared.setValue(i.color);return i.alpha*=s.alpha,i.color=s.toNumber(),i.matrix=i.matrix?i.matrix.clone():null,i}const qV=new kn,eb=new Gt,Z_=class sa extends mc{constructor(){super(...arguments),this.uid=gn("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this._activePath=new m0,this._transform=new Gt,this._fillStyle={...sa.defaultFillStyle},this._strokeStyle={...sa.defaultStrokeStyle},this._stateStack=[],this._tick=0,this._bounds=new mo,this._boundsDirty=!0}clone(){const e=new sa;return e.batchMode=this.batchMode,e.instructions=this.instructions.slice(),e._activePath=this._activePath.clone(),e._transform=this._transform.clone(),e._fillStyle={...this._fillStyle},e._strokeStyle={...this._strokeStyle},e._stateStack=this._stateStack.slice(),e._bounds=this._bounds.clone(),e._boundsDirty=!0,e}get fillStyle(){return this._fillStyle}set fillStyle(e){this._fillStyle=Kc(e,sa.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(e){this._strokeStyle=Kc(e,sa.defaultStrokeStyle)}setFillStyle(e){return this._fillStyle=Kc(e,sa.defaultFillStyle),this}setStrokeStyle(e){return this._strokeStyle=Kc(e,sa.defaultStrokeStyle),this}texture(e,t,n,i,s,a){return this.instructions.push({action:"texture",data:{image:e,dx:n||0,dy:i||0,dw:s||e.frame.width,dh:a||e.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:t?pa.shared.setValue(t).toNumber():16777215}}),this.onUpdate(),this}beginPath(){return this._activePath=new m0,this}fill(e,t){let n;const i=this.instructions[this.instructions.length-1];return this._tick===0&&i&&i.action==="stroke"?n=i.data.path:n=this._activePath.clone(),n?(e!=null&&(t!==void 0&&typeof e=="number"&&(oc(ac,"GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),e={color:e,alpha:t}),this._fillStyle=Kc(e,sa.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:n}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0,this):this}_initNextPathLocation(){const{x:e,y:t}=this._activePath.getLastPoint(kn.shared);this._activePath.clear(),this._activePath.moveTo(e,t)}stroke(e){let t;const n=this.instructions[this.instructions.length-1];return this._tick===0&&n&&n.action==="fill"?t=n.data.path:t=this._activePath.clone(),t?(e!=null&&(this._strokeStyle=Kc(e,sa.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:t}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0,this):this}cut(){for(let e=0;e<2;e++){const t=this.instructions[this.instructions.length-1-e],n=this._activePath.clone();if(t&&(t.action==="stroke"||t.action==="fill"))if(t.data.hole)t.data.hole.addPath(n);else{t.data.hole=n;break}}return this._initNextPathLocation(),this}arc(e,t,n,i,s,a){this._tick++;const o=this._transform;return this._activePath.arc(o.a*e+o.c*t+o.tx,o.b*e+o.d*t+o.ty,n,i,s,a),this}arcTo(e,t,n,i,s){this._tick++;const a=this._transform;return this._activePath.arcTo(a.a*e+a.c*t+a.tx,a.b*e+a.d*t+a.ty,a.a*n+a.c*i+a.tx,a.b*n+a.d*i+a.ty,s),this}arcToSvg(e,t,n,i,s,a,o){this._tick++;const l=this._transform;return this._activePath.arcToSvg(e,t,n,i,s,l.a*a+l.c*o+l.tx,l.b*a+l.d*o+l.ty),this}bezierCurveTo(e,t,n,i,s,a,o){this._tick++;const l=this._transform;return this._activePath.bezierCurveTo(l.a*e+l.c*t+l.tx,l.b*e+l.d*t+l.ty,l.a*n+l.c*i+l.tx,l.b*n+l.d*i+l.ty,l.a*s+l.c*a+l.tx,l.b*s+l.d*a+l.ty,o),this}closePath(){var e;return this._tick++,(e=this._activePath)==null||e.closePath(),this}ellipse(e,t,n,i){return this._tick++,this._activePath.ellipse(e,t,n,i,this._transform.clone()),this}circle(e,t,n){return this._tick++,this._activePath.circle(e,t,n,this._transform.clone()),this}path(e){return this._tick++,this._activePath.addPath(e,this._transform.clone()),this}lineTo(e,t){this._tick++;const n=this._transform;return this._activePath.lineTo(n.a*e+n.c*t+n.tx,n.b*e+n.d*t+n.ty),this}moveTo(e,t){this._tick++;const n=this._transform,i=this._activePath.instructions,s=n.a*e+n.c*t+n.tx,a=n.b*e+n.d*t+n.ty;return i.length===1&&i[0].action==="moveTo"?(i[0].data[0]=s,i[0].data[1]=a,this):(this._activePath.moveTo(s,a),this)}quadraticCurveTo(e,t,n,i,s){this._tick++;const a=this._transform;return this._activePath.quadraticCurveTo(a.a*e+a.c*t+a.tx,a.b*e+a.d*t+a.ty,a.a*n+a.c*i+a.tx,a.b*n+a.d*i+a.ty,s),this}rect(e,t,n,i){return this._tick++,this._activePath.rect(e,t,n,i,this._transform.clone()),this}
978roundRect(e,t,n,i,s){return this._tick++,this._activePath.roundRect(e,t,n,i,s,this._transform.clone()),this}poly(e,t){return this._tick++,this._activePath.poly(e,t,this._transform.clone()),this}regularPoly(e,t,n,i,s=0,a){return this._tick++,this._activePath.regularPoly(e,t,n,i,s,a),this}roundPoly(e,t,n,i,s,a){return this._tick++,this._activePath.roundPoly(e,t,n,i,s,a),this}roundShape(e,t,n,i){return this._tick++,this._activePath.roundShape(e,t,n,i),this}filletRect(e,t,n,i,s){return this._tick++,this._activePath.filletRect(e,t,n,i,s),this}chamferRect(e,t,n,i,s,a){return this._tick++,this._activePath.chamferRect(e,t,n,i,s,a),this}star(e,t,n,i,s=0,a=0){return this._tick++,this._activePath.star(e,t,n,i,s,a,this._transform.clone()),this}svg(e){return this._tick++,WV(e,this),this}restore(){const e=this._stateStack.pop();return e&&(this._transform=e.transform,this._fillStyle=e.fillStyle,this._strokeStyle=e.strokeStyle),this}save(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:{...this._fillStyle},strokeStyle:{...this._strokeStyle}}),this}getTransform(){return this._transform}resetTransform(){return this._transform.identity(),this}rotate(e){return this._transform.rotate(e),this}scale(e,t=e){return this._transform.scale(e,t),this}setTransform(e,t,n,i,s,a){return e instanceof Gt?(this._transform.set(e.a,e.b,e.c,e.d,e.tx,e.ty),this):(this._transform.set(e,t,n,i,s,a),this)}transform(e,t,n,i,s,a){return e instanceof Gt?(this._transform.append(e),this):(eb.set(e,t,n,i,s,a),this._transform.append(eb),this)}translate(e,t=e){return this._transform.translate(e,t),this}clear(){return this._activePath.clear(),this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}onUpdate(){this.dirty||(this.emit("update",this,16),this.dirty=!0,this._boundsDirty=!0)}get bounds(){if(!this._boundsDirty)return this._bounds;const e=this._bounds;e.clear();for(let t=0;t<this.instructions.length;t++){const n=this.instructions[t],i=n.action;if(i==="fill"){const s=n.data;e.addBounds(s.path.bounds)}else if(i==="texture"){const s=n.data;e.addFrame(s.dx,s.dy,s.dx+s.dw,s.dy+s.dh,s.transform)}if(i==="stroke"){const s=n.data,a=s.style.width/2,o=s.path.bounds;e.addFrame(o.minX-a,o.minY-a,o.maxX+a,o.maxY+a)}}return e}containsPoint(e){var i;if(!this.bounds.containsPoint(e.x,e.y))return!1;const t=this.instructions;let n=!1;for(let s=0;s<t.length;s++){const a=t[s],o=a.data,l=o.path;if(!a.action||!l)continue;const u=o.style,h=l.shapePath.shapePrimitives;for(let c=0;c<h.length;c++){const d=h[c].shape;if(!u||!d)continue;const f=h[c].transform,g=f?f.applyInverse(e,qV):e;a.action==="fill"?n=d.contains(g.x,g.y):n=d.strokeContains(g.x,g.y,u.width);const y=o.hole;if(y){const v=(i=y.shapePath)==null?void 0:i.shapePrimitives;if(v)for(let _=0;_<v.length;_++)v[_].shape.contains(g.x,g.y)&&(n=!1)}if(n)return!0}}return n}destroy(e=!1){if(this._stateStack.length=0,this._transform=null,this.emit("destroy",this),this.removeAllListeners(),typeof e=="boolean"?e:e==null?void 0:e.texture){const n=typeof e=="boolean"?e:e==null?void 0:e.textureSource;this._fillStyle.texture&&this._fillStyle.texture.destroy(n),this._strokeStyle.texture&&this._strokeStyle.texture.destroy(n)}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}};Z_.defaultFillStyle={color:16777215,alpha:1,texture:Yt.WHITE,matrix:null,fill:null};Z_.defaultStrokeStyle={width:1,color:16777215,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:Yt.WHITE,matrix:null,fill:null};let QV=Z_;function q_(r,e=1){var n;const t=(n=E0.RETINA_PREFIX)==null?void 0:n.exec(r);return t?parseFloat(t[1]):e}function Q_(r,e,t){r.label=t,r._sourceOrigin=t;const n=new Yt({source:r,label:t}),i=()=>{delete e.promiseCache[t],Gn.has(t)&&Gn.remove(t)};return n.source.once("destroy",()=>{e.promiseCache[t]&&(yn("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),i())}),n.once("destroy",()=>{r.destroyed||(yn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),i())}),n}const KV=".svg",JV="image/svg+xml",eG={extension:{type:dt.LoadParser,priority:gc.Low},name:"loadSVG",config:{crossOrigin:"anonymous",parseAsGraphicsContext:!1},test(r){return P0(r,JV)||D0(r,KV)},async load(r,e,t){return e.data.parseAsGraphicsContext??this.config.parseAsGraphicsContext?rG(r):tG(r,e,t,this.config.crossOrigin)},unload(r){r.destroy(!0)}};async function tG(r,e,t,n){var v,_,x;const s=await(await ys.get().fetch(r)).blob(),a=URL.createObjectURL(s),o=new Image;o.src=a,o.crossOrigin=n,await o.decode(),URL.revokeObjectURL(a);const l=document.createElement("canvas"),u=l.getContext("2d"),h=((v=e.data)==null?void 0:v.resolution)||q_(r),c=((_=e.data)==null?void 0:_.width)??o.width,d=((x=e.data)==null?void 0:x.height)??o.height;
978l.width=c*h,l.height=d*h,u.drawImage(o,0,0,c*h,d*h);const{parseAsGraphicsContext:f,...g}=e.data,y=new Hf({resource:l,alphaMode:"premultiply-alpha-on-upload",resolution:h,...g});return Q_(y,t,r)}async function rG(r){const t=await(await ys.get().fetch(r)).text(),n=new QV;return n.svg(t),n}const nG=`(function () {
979    'use strict';
980
981    const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
982    async function checkImageBitmap() {
983      try {
984        if (typeof createImageBitmap !== "function")
985          return false;
986        const response = await fetch(WHITE_PNG);
987        const imageBlob = await response.blob();
988        const imageBitmap = await createImageBitmap(imageBlob);
989        return imageBitmap.width === 1 && imageBitmap.height === 1;
990      } catch (e) {
991        return false;
992      }
993    }
994    void checkImageBitmap().then((result) => {
995      self.postMessage(result);
996    });
997
998})();
999`;let Gh=null,sv=class{constructor(){Gh||(Gh=URL.createObjectURL(new Blob([nG],{type:"application/javascript"}))),this.worker=new Worker(Gh)}};sv.revokeObjectURL=function(){Gh&&(URL.revokeObjectURL(Gh),Gh=null)};const iG=`(function () {
1000    'use strict';
1001
1002    async function loadImageBitmap(url) {
1003      const response = await fetch(url);
1004      if (!response.ok) {
1005        throw new Error(\`[WorkerManager.loadImageBitmap] Failed to fetch \${url}: \${response.status} \${response.statusText}\`);
1006      }
1007      const imageBlob = await response.blob();
1008      const imageBitmap = await createImageBitmap(imageBlob);
1009      return imageBitmap;
1010    }
1011    self.onmessage = async (event) => {
1012      try {
1013        const imageBitmap = await loadImageBitmap(event.data.data[0]);
1014        self.postMessage({
1015          data: imageBitmap,
1016          uuid: event.data.uuid,
1017          id: event.data.id
1018        }, [imageBitmap]);
1019      } catch (e) {
1020        self.postMessage({
1021          error: e,
1022          uuid: event.data.uuid,
1023          id: event.data.id
1024        });
1025      }
1026    };
1027
1028})();
1029`;let Wh=null;class qP{constructor(){Wh||(Wh=URL.createObjectURL(new Blob([iG],{type:"application/javascript"}))),this.worker=new Worker(Wh)}}qP.revokeObjectURL=function(){Wh&&(URL.revokeObjectURL(Wh),Wh=null)};let tb=0,I9;class sG{constructor(){this._initialized=!1,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(e=>{const{worker:t}=new sv;t.addEventListener("message",n=>{t.terminate(),sv.revokeObjectURL(),e(n.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}_getWorker(){I9===void 0&&(I9=navigator.hardwareConcurrency||4);let e=this._workerPool.pop();return!e&&this._createdWorkers<I9&&(this._createdWorkers++,e=new qP().worker,e.addEventListener("message",t=>{this._complete(t.data),this._returnWorker(t.target),this._next()})),e}_returnWorker(e){this._workerPool.push(e)}_complete(e){e.error!==void 0?this._resolveHash[e.uuid].reject(e.error):this._resolveHash[e.uuid].resolve(e.data),this._resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const n=new Promise((i,s)=>{this._queue.push({id:e,arguments:t,resolve:i,reject:s})});return this._next(),n}_next(){if(!this._queue.length)return;const e=this._getWorker();if(!e)return;const t=this._queue.pop(),n=t.id;this._resolveHash[tb]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:tb++,id:n})}}const rb=new sG,aG=[".jpeg",".jpg",".png",".webp",".avif"],oG=["image/jpeg","image/png","image/webp","image/avif"];async function lG(r){const e=await ys.get().fetch(r);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${r}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const QP={name:"loadTextures",extension:{type:dt.LoadParser,priority:gc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(r){return P0(r,oG)||D0(r,aG)},async load(r,e,t){var s;let n=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await rb.isImageBitmapSupported()?n=await rb.loadImageBitmap(r):n=await lG(r):n=await new Promise(a=>{n=new Image,n.crossOrigin=this.config.crossOrigin,n.src=r,n.complete?a(n):n.onload=()=>{a(n)}});const i=new Hf({resource:n,alphaMode:"premultiply-alpha-on-upload",resolution:((s=e.data)==null?void 0:s.resolution)||q_(r),...e.data});return Q_(i,t,r)},unload(r){r.destroy(!0)}},KP=[".mp4",".m4v",".webm",".ogg",".ogv",".h264",".avi",".mov"],uG=KP.map(r=>`video/${r.substring(1)}`);function cG(r,e,t){t===void 0&&!e.startsWith("data:")?r.crossOrigin=dG(e):t!==!1&&(r.crossOrigin=typeof t=="string"?t:"anonymous")}function hG(r){return new Promise((e,t)=>
1029{r.addEventListener("canplaythrough",n),r.addEventListener("error",i),r.load();function n(){s(),e()}function i(a){s(),t(a)}function s(){r.removeEventListener("canplaythrough",n),r.removeEventListener("error",i)}})}function dG(r,e=globalThis.location){if(r.startsWith("data:"))return"";e=e||globalThis.location;const t=new URL(r,document.baseURI);return t.hostname!==e.hostname||t.port!==e.port||t.protocol!==e.protocol?"anonymous":""}const fG={name:"loadVideo",extension:{type:dt.LoadParser},config:null,test(r){const e=P0(r,uG),t=D0(r,KP);return e||t},async load(r,e,t){var l,u;const n={...Yp.defaultOptions,resolution:((l=e.data)==null?void 0:l.resolution)||q_(r),alphaMode:((u=e.data)==null?void 0:u.alphaMode)||await kP(),...e.data},i=document.createElement("video"),s={preload:n.autoLoad!==!1?"auto":void 0,"webkit-playsinline":n.playsinline!==!1?"":void 0,playsinline:n.playsinline!==!1?"":void 0,muted:n.muted===!0?"":void 0,loop:n.loop===!0?"":void 0,autoplay:n.autoPlay!==!1?"":void 0};Object.keys(s).forEach(h=>{const c=s[h];c!==void 0&&i.setAttribute(h,c)}),n.muted===!0&&(i.muted=!0),cG(i,r,n.crossorigin);const a=document.createElement("source");let o;if(r.startsWith("data:"))o=r.slice(5,r.indexOf(";"));else if(!r.startsWith("blob:")){const h=r.split("?")[0].slice(r.lastIndexOf(".")+1).toLowerCase();o=Yp.MIME_TYPES[h]||`video/${h}`}return a.src=r,o&&(a.type=o),new Promise(h=>{const c=async()=>{const d=new Yp({...n,resource:i});i.removeEventListener("canplay",c),e.data.preload&&await hG(i),h(Q_(d,t,r))};i.addEventListener("canplay",c),i.appendChild(a)})},unload(r){r.destroy(!0)}},JP={extension:dt.ResolveParser,test:QP.test,parse:r=>{var e;return{resolution:parseFloat(((e=E0.RETINA_PREFIX.exec(r))==null?void 0:e[1])??"1"),format:r.split(".").pop(),src:r}}},pG={extension:dt.ResolveParser,test:r=>E0.RETINA_PREFIX.test(r)&&r.endsWith(".json"),parse:JP.parse};class mG{constructor(){this._detections=[],this._initialized=!1,this.resolver=new E0,this.loader=new Fj,this.cache=Gn,this._backgroundLoader=new Tj(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var s,a;if(this._initialized){yn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let o=e.manifest;typeof o=="string"&&(o=await this.load(o)),this.resolver.addManifest(o)}const t=((s=e.texturePreference)==null?void 0:s.resolution)??1,n=typeof t=="number"?[t]:t,i=await this._detectFormats({preferredFormats:(a=e.texturePreference)==null?void 0:a.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:i,resolution:n}}),e.preferences&&this.setPreferences(e.preferences)}add(e){this.resolver.add(e)}async load(e,t){this._initialized||await this.init();const n=n4(e),i=Fs(e).map(o=>{if(typeof o!="string"){const l=this.resolver.getAlias(o);return l.some(u=>!this.resolver.hasKey(u))&&this.add(o),Array.isArray(l)?l[0]:l}return this.resolver.hasKey(o)||this.add({alias:o,src:o}),o}),s=this.resolver.resolve(i),a=await this._mapLoadToResolve(s,t);return n?a[i[0]]:a}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let n=!1;typeof e=="string"&&(n=!0,e=[e]);const i=this.resolver.resolveBundle(e),s={},a=Object.keys(i);let o=0,l=0;const u=()=>{t==null||t(++o/l)},h=a.map(c=>{const d=i[c];return l+=Object.keys(d).length,this._mapLoadToResolve(d,u).then(f=>{s[c]=f})});return await Promise.all(h),n?s[e[0]]:s}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(n=>{this._backgroundLoader.add(Object.values(n))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Gn.get(e);const t={};for(let n=0;n<e.length;n++)t[n]=Gn.get(e[n]);return t}async _mapLoadToResolve(e,t){const n=[...new Set(Object.values(e))];this._backgroundLoader.active=!1;const i=await this.loader.load(n,t);this._backgroundLoader.active=!0;const s={};
1029return n.forEach(a=>{const o=i[a.src],l=[a.src];a.alias&&l.push(...a.alias),l.forEach(u=>{s[u]=o}),Gn.set(l,o)}),s}async unload(e){this._initialized||await this.init();const t=Fs(e).map(i=>typeof i!="string"?i.src:i),n=this.resolver.resolve(t);await this._unloadFromResolved(n)}async unloadBundle(e){this._initialized||await this.init(),e=Fs(e);const t=this.resolver.resolveBundle(e),n=Object.keys(t).map(i=>this._unloadFromResolved(t[i]));await Promise.all(n)}async _unloadFromResolved(e){const t=Object.values(e);t.forEach(n=>{Gn.remove(n.src)}),await this.loader.unload(t)}async _detectFormats(e){let t=[];e.preferredFormats&&(t=Array.isArray(e.preferredFormats)?e.preferredFormats:[e.preferredFormats]);for(const n of e.detections)e.skipDetections||await n.test()?t=await n.add(t):e.skipDetections||(t=await n.remove(t));return t=t.filter((n,i)=>t.indexOf(n)===i),t}get detections(){return this._detections}setPreferences(e){this.loader.parsers.forEach(t=>{t.config&&Object.keys(t.config).filter(n=>n in e).forEach(n=>{t.config[n]=e[n]})})}}const Q1=new mG;Ca.handleByList(dt.LoadParser,Q1.loader.parsers).handleByList(dt.ResolveParser,Q1.resolver.parsers).handleByList(dt.CacheParser,Q1.cache.parsers).handleByList(dt.DetectionParser,Q1.detections);Ca.add(Ej,Dj,Pj,Rj,kj,Ij,Mj,Nj,$j,Zj,eG,QP,fG,JP,pG);const nb={loader:dt.LoadParser,resolver:dt.ResolveParser,cache:dt.CacheParser,detection:dt.DetectionParser};Ca.handle(dt.Asset,r=>{const e=r.ref;Object.entries(nb).filter(([t])=>!!e[t]).forEach(([t,n])=>Ca.add(Object.assign(e[t],{extension:e[t].extension??n})))},r=>{const e=r.ref;Object.keys(nb).filter(t=>!!e[t]).forEach(t=>Ca.remove(e[t]))});Ca.add(Fz,Lz);const gG=({assets:r,onComplete:e,onProgress:t})=>{const[n,i]=X.useState(0),s=X.useRef(0),a=X.useRef(new Set),[o,l]=X.useState([]);return X.useEffect(()=>{if(r.length===0){e();return}const u=c=>{a.current.has(c)||(a.current.add(c),s.current++,i(s.current),t(Math.round(s.current/r.length*100)))},h=[];r.forEach(async c=>{if(c.type==="image"){const d=new Image;d.src=c.url,d.onload=()=>u(c.url),h.push(d)}else c.type==="pixi"&&await Q1.load(c.url).then(()=>{u(c.url)})}),l(h)},[r,e,t]),X.useEffect(()=>{n===r.length&&e()},[n,r.length,e]),B.jsx(B.Fragment,{children:B.jsx("div",{style:{display:"none"},children:o.map((u,h)=>B.jsx("img",{src:u.src,alt:""},h))})})},yG=[{type:"image",url:"/images/disk/disk.png"},{type:"image",url:"/images/disk/ellipse.png"},{type:"image",url:"/images/genre/disk.png"},{type:"image",url:"/images/genre/cumbia.png"},{type:"image",url:"/images/genre/electronica.png"},{type:"image",url:"/images/genre/hiphop.png"},{type:"image",url:"/images/genre/perreo.png"},{type:"image",url:"/images/genre/popero.png"},{type:"image",url:"/images/genre/rockeron.png"},{type:"image",url:"/images/genre/tropical.png"},{type:"image",url:"/images/genre/tumbado.png"},{type:"image",url:"/images/time/morning/cloud_bottom.png"},{type:"image",url:"/images/time/morning/cloud_top.png"},{type:"image",url:"/images/time/morning/sun.png"},{type:"image",url:"/images/time/afternoon/cloud_bottom.png"},{type:"image",url:"/images/time/afternoon/cloud_top.png"},{type:"image",url:"/images/time/afternoon/sun.png"},{type:"image",url:"/images/time/night/cloud_bottom.png"},{type:"image",url:"/images/time/night/cloud_top.png"},{type:"image",url:"/images/time/night/moon.png"},{type:"image",url:"/images/particles/selector/aqua/bubble_aqua.png"},{type:"image",url:"/images/particles/selector/aqua/explosion_1.png"},{type:"image",url:"/images/particles/selector/aqua/explosion_2.png"},{type:"image",url:"/images/particles/selector/aqua/explosion_3.png"},{type:"image",url:"/images/particles/selector/aqua/explosion_4.png"},{type:"image",url:"/images/particles/selector/blue/bubble_blue.png"},{type:"image",url:"/images/particles/selector/blue/explosion_1.png"},{type:"image",url:"/images/particles/selector/blue/explosion_2.png"},{type:"image",url:"/images/particles/selector/blue/explosion_3.png"},{type:"image",url:"/images/particles/selector/blue/explosion_4.png"},{type:"image",url:"/images/particles/selector/blue/explosion_5.png"},{type:"image",url:"/images/particles/selector/blue/explosion_6.png"},{type:"image",url:"/images/particles/selector/blue/explosion_7.png"},{type:"image",url:"/images/particles/selector/green/bubble_green.png"},{type:"image",url:"/images/particles/selector/green/explosion_1.png"},{type:"image",url:"/images/particles/selector/green/explosion_2.png"},{type:"image",url:"/images/particles/selector/orange/bubble_orange.png"},{type:"image",url:"/images/particles/selector/orange/explosion_1.png"},{type:"image",url:"/images/particles/selector/orange/explosion_2.png"},{type:"image",url:"/images/particles/selector/orange/explosion_3.png"},{type:"image",url:"/images/particles/selector/purple/bubble_purple.png"},{type:"image",url:"/images/particles/selector/purple/explosion_1.png"},{type:"image",url:"/images/particles/selector/purple/explosion_2.png"},{type:"image",url:"/images/particles/selector/purple/explosion_3.png"},{type:"image",url:"/images/particles/selector/red/bubble_red.png"},{type:"image",url:"/images/particles/selector/red/explosion_1.png"},{type:"image",url:"/images/particles/selector/red/explosion_2.png"},{type:"image",url:"/images/particles/selector/red/explosion_3.png"},{type:"image",url:"/images/particles/bubble.png"},{type:"image",url:"/images/particles/leaf.png"},{type:"image",url:"/images/particles/soap.png"},{type:"image",url:"/images/welcome/background.png"}],vG=()=>{const r=X.useRef(),{setTransition:e,setStep:t}=vs(),{pixiLoaderProgress:n,setPixiLoaderProgress:i,setPixiLoaderComplete:s,pixiAppReady:a}=xn(),[o,l]=X.useState(!1);pt(()=>{o&&ge.to(r.current,{y:-10,autoAlpha:0,duration:1,ease:"expo.inOut",onComplete:()=>s(!0)})},{scope:r,dependencies:[o]}),X.useEffect(()=>{a&&(async()=>(await E3(1e3),e(C_),t(Ws)))()},[a,e,t]);const u=()=>{l(!0)},h=c=>{i(c)};return B.jsxs(B.Fragment,{children:[B.jsx(gG,{assets:yG,onComplete:u,onProgress:h}),B.jsx("div",{ref:r,className:"flex justify-center items-center size-full pb-16",children:B.jsxs("h2",{className:"text-white text-[5rem] leading-[100%]",children:[n,"%"]})})]})},_G=r=>X.createElement("svg",{width:48,height:41,viewBox:"0 0 48 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},X.createElement("path",{className:"arrow",d:"M24.9973 22.9376L24.9107 22.8819H24.9028C24.8836 22.8711 24.8636 22.8604 24.8431 22.8501C24.8413 22.8491 24.8393 22.848 24.8373 22.8469C24.83 22.843 24.821 22.8383 24.8103 22.8336C24.7682 22.8133 24.7274 22.7959 24.6942 22.7817L24.6914 22.7805L24.6914 22.7805L24.688 22.7791L24.6552 22.7654L24.6454 22.7614L24.6354 22.7579L24.632 22.7
1029567C24.6013 22.7461 24.5595 22.7316 24.5158 22.7195L24.5158 22.7195L24.5137 22.7189L24.5104 22.7179L24.5013 22.715C24.4906 22.7116 24.4694 22.7052 24.4422 22.7001C24.4188 22.6945 24.3869 22.6871 24.3513 22.6812C24.3333 22.6771 24.3049 22.671 24.2738 22.667C24.234 22.6609 24.1964 22.6579 24.1714 22.6559L24.1678 22.6557L24.1539 22.6545H24.1481C24.1475 22.6545 24.1469 22.6544 24.1462 22.6543L24.1444 22.6541C24.1346 22.653 24.1073 22.65 24.0765 22.65H24.0763H24.0761H24.076H24.0758H24.0756H24.0754H24.0753H24.0751H24.0749H24.0748H24.0746H24.0744H24.0743H24.0741H24.0739H24.0738H24.0736H24.0734H24.0733H24.0731H24.0729H24.0728H24.0726H24.0724H24.0723H24.0721H24.0719H24.0718H24.0716H24.0714H24.0713H24.0711H24.0709H24.0708H24.0706H24.0704H24.0702H24.0701H24.0699H24.0697H24.0696H24.0694H24.0692H24.0691H24.0689H24.0687H24.0686H24.0684H24.0682H24.0681H24.0679H24.0677H24.0675H24.0674H24.0672H24.067H24.0669H24.0667H24.0665H24.0664H24.0662H24.066H24.0659H24.0657H24.0655H24.0653H24.0652H24.065H24.0648H24.0647H24.0645H24.0643H24.0642H24.064H24.0638H24.0636H24.0635H24.0633H24.0631H24.063H24.0628H24.0626H24.0625H24.0623H24.0621H24.0619H24.0618H24.0616H24.0614H24.0613H24.0611H24.0609H24.0607H24.0606H24.0604H24.0602H24.0601H24.0599H24.0597H24.0596H24.0594H24.0592H24.059H24.0589H24.0587H24.0585H24.0584H24.0582H24.058H24.0578H24.0577H24.0575H24.0573H24.0572H24.057H24.0568H24.0566H24.0565H24.0563H24.0561H24.056H24.0558H24.0556H24.0554H24.0553H24.0551H24.0549H24.0548H24.0546H24.0544H24.0542H24.0541H24.0539H24.0537H24.0536H24.0534H24.0532H24.053H24.0529H24.0527H24.0525H24.0524H24.0522H24.052H24.0518H24.0517H24.0515H24.0513H24.0511H24.051H24.0508H24.0506H24.0505H24.0503H24.0501H24.0499H24.0498H24.0496H24.0494H24.0493H24.0491H24.0489H24.0487H24.0486H24.0484H24.0482H24.048H24.0479H24.0477H24.0475H24.0474H24.0472H24.047H24.0468H24.0467H24.0465H24.0463H24.0462H24.046H24.0458H24.0456H24.0455H24.0453H24.0451H24.0449H24.0448H24.0446H24.0444H24.0443H24.0441H24.0439H24.0437H24.0436H24.0434H24.0432H24.043H24.0429H24.0427H24.0425H24.0423H24.0422H24.042H24.0418H24.0417H24.0415H24.0413H24.0411H24.041H24.0408H24.0406H24.0404H24.0403H24.0401H24.0399H24.0398H24.0396H24.0394H24.0392H24.0391H24.0389H24.0387H24.0385H24.0384H24.0382H24.038H24.0379H24.0377H24.0375H24.0373H24.0372H24.037H24.0368H24.0366H24.0365H24.0363H24.0361H24.0359H24.0358H24.0356H24.0354H24.0353H24.0351H24.0349H24.0347H24.0346H24.0344H24.0342H24.034H24.0339H24.0337H24.0335H24.0333H24.0332H24.033H24.0328H24.0327H24.0325H24.0323H24.0321H24.032H24.0318H24.0316H24.0314H24.0313H24.0311H24.0309H24.0308H24.0306H24.0304H24.0302H24.0301H24.0299H24.0297H24.0295H24.0294H24.0292H24.029H24.0288H24.0287H24.0285H24.0283H24.0282H24.028H24.0278H24.0276H24.0275H24.0273H24.0271H24.0269H24.0268H24.0266H24.0264H24.0262H24.0261H24.0259H24.0257H24.0256H24.0254H24.0252H24.025H24.0249H24.0247H24.0245H24.0243H24.0242H24.024H24.0238H24.0237H24.0235H24.0233H24.0231H24.023H24.0228H24.0226H24.0224H24.0223H24.0221H24.0219H24.0218H24.0216H24.0214H24.0212H24.0211H24.0209H24.0207H24.0205H24.0204H24.0202H24.02H24.0199H24.0197H24.0195H24.0193H24.0192H24.019H24.0188H24.0186H24.0185H24.0183H24.0181H24.018H24.0178H24.0176H24.0174H24.0173H24.0171H24.0169H24.0167H24.0166H24.0164H24.0162H24.0161H24.0159H24.0157H24.0155H24.0154H24.0152H24.015H24.0149H24.0147H24.0145H24.0143H24.0142H24.014H24.0138H24.0136H24.0135H24.0133H24.0131H24.013H24.0128H24.0126H24.0124H24.0123H24.0121H24.0119H24.0118H24.0116H24.0114H24.0112H24.0111H24.0109H24.0107H24.0106H24.0104H24.0102H24.01H24.0099H24.0097H24.0095H24.0094H24.0092H24.009H24.0088H24.0087H24.0085H24.0083H24.0082H24.008H24.0078H24.0076H24.0075H24.0073H24.0071H24.007H24.0068H24.0066H24.0064H24.0063H24.0061H24.0059H24.0058H24.0056H24.0054H24.0052H24.0051H24.0049H24.0047H24.0046H24.0044H24.0042H24.0041H24.0039H24.0037H24.0035H24.0034H24.0032H24.003H24.0029H24.0027H24.0025H24.0023H24.0022H24.002H24.0018H24.0017H24.0015H24.0013H24.0012H24.001H24.0008H24.0006H24.0005H24.0003H24.0001H24H23.9998H23.9996H23.9995H23.9993H23.9991H23.999H23.9988H23.9986H23.9984H23.9983H23.9981H23.9979H23.9978H23.9976H23.9974H23.9973H23.9971H23.9969H23.9968H23.9966H23.9964H23.9962H23.9961H23.9959H23.9957H23.9956H23.9954H23.9952H23.9951H23.9949H23.9947H23.9946H23.9944H23.9942H23.9941H23.9939H23.9937H23.9936H23.9934H23.9932H23.993H23.9929H23.9927H23.9925H23.9924H23.9922H23.992H23.9919H23.9917H23.9915H23.9914H23.9912H23.991H23.9909H23.9907H23.9905H23.9904H23.9902H23.99H23.9899H23.9897H23.9895H23.9894H23.9892H23.989H23.9889H23.9887H23.9886H23.9885H23.9884H23.9883H23.9882H23.9881H23.9879H23.9878H23.9877H23.9876H23.9875H23.9874H23.9872H23.9871H23.987H23.9869H23.9868H23.9867H23.9866H23.9864H23.9863H23.9862H23.9861H23.986H23.9859H23.9857H23.9856H23.9855H23.9854H23.9853H23.9852H23.9851H23.9849H23.9848H23.9847H23.9846H23.9845H23.9844H23.9842H23.9841H23.984H23.9839H23.9838H23.9837H23.9835H23.9834H23.9833H23.9832H23.9831H23.983H23.9829H23.9827H23.9826H23.9825H23.9824H23.9823H23.9822H23.982H23.9819H23.9818H23.9817H23.9816H23.9815H23.9814H23.9812H23.9811H23.981H23.9809H23.9808H23.9807H23.9805H23.9804H23.9803H23.9802H23.9801H23.98H23.9799H23.9797H23.9796H23.9795H23.9794H23.9793H23.9792H23.979H23.9789H23.9788H23.9787H23.9786H23.9785H23.9784H23.9782H23.9781H23.978H23.9779H23.9778H23.9777H23.9775H23.9774H23.9773H23.9772H23.9771H23.977H23.9769H23.9767H23.9766H23.9765H23.9764H23.9763H23.9762H23.976H23.9759H23.9758H23.9757H23.9756H23.9755H23.9754H23.9752H23.9751H23.975H23.9749H23.9748H23.9747H23.9745H23.9744H23.9743H23.9742H23.974
10291H23.974H23.9739H23.9737H23.9736H23.9735H23.9734H23.9733H23.9732H23.973H23.9729H23.9728H23.9727H23.9726H23.9725H23.9723H23.9722H23.9721H23.972H23.9719H23.9718H23.9717H23.9715H23.9714H23.9713H23.9712H23.9711H23.971H23.9708H23.9707H23.9706H23.9705H23.9704H23.9703H23.9702H23.97H23.9699H23.9698H23.9697H23.9696H23.9695H23.9693H23.9692H23.9691H23.969H23.9689H23.9688H23.9687H23.9685H23.9684H23.9683H23.9682H23.9681H23.968H23.9678H23.9677H23.9676H23.9675H23.9674H23.9673H23.9672H23.967H23.9669H23.9668H23.9667H23.9666H23.9665H23.9663H23.9662H23.9661H23.966H23.9659H23.9658H23.9657H23.9655H23.9654H23.9653H23.9652H23.9651H23.965H23.9648H23.9647H23.9646H23.9645H23.9644H23.9643H23.9641H23.964H23.9639H23.9638H23.9637H23.9636H23.9635H23.9633H23.9632H23.9631H23.963H23.9629H23.9628H23.9626H23.9625H23.9624H23.9623H23.9622H23.9621H23.962H23.9618H23.9617H23.9616H23.9615H23.9614H23.9613H23.9611H23.961H23.9609H23.9608H23.9607H23.9606H23.9605H23.9603H23.9602H23.9601H23.96H23.9599H23.9598H23.9596H23.9595H23.9594H23.9593H23.9592H23.9591H23.959H23.9588H23.9587H23.9586H23.9585H23.9584H23.9583H23.9581H23.958H23.9579H23.9578H23.9577H23.9576H23.9575H23.9573H23.9572H23.9571H23.957H23.9569H23.9568H23.9566H23.9565H23.9564H23.9563H23.9562H23.9561H23.956H23.9558H23.9557H23.9556H23.9555H23.9554H23.9553H23.9551H23.955H23.9549H23.9548H23.9547H23.9546H23.9545H23.9543H23.9542H23.9541H23.954H23.9539H23.9538H23.9536H23.9535H23.9534H23.9533H23.9532H23.9531H23.9529H23.9528H23.9527H23.9526H23.9525H23.9524H23.9523H23.9521H23.952H23.9519H23.9518H23.9517H23.9516H23.9514H23.9513H23.9512H23.9511H23.951H23.9509H23.9508H23.9506H23.9505H23.9504H23.9503H23.9502H23.9501H23.9499H23.9498H23.9497H23.9496H23.9495H23.9494H23.9493H23.9491H23.949H23.9489H23.9488H23.9487H23.9486H23.9484H23.9483H23.9482H23.9481H23.948H23.9479H23.9478H23.9476H23.9475H23.9474H23.9473H23.9472H23.9471H23.9469H23.9468H23.9467H23.9466H23.9465H23.9464H23.9463H23.9461H23.946H23.9459H23.9458H23.9457H23.9456H23.9454H23.9453H23.9452H23.9451H23.945H23.9449H23.9447H23.9446H23.9445H23.9444H23.9443H23.9442H23.9441H23.9439H23.9438H23.9437H23.9436H23.9435H23.9434H23.9432H23.9431H23.943H23.9429H23.9428H23.9427H23.9426H23.9424H23.9423H23.9422H23.9421H23.942H23.9419H23.9417H23.9416H23.9415H23.9414H23.9413H23.9412H23.9411H23.9409H23.9408H23.9407H23.9406H23.9405H23.9404H23.9402H23.9401H23.94H23.9399H23.9398H23.9397H23.9396H23.9394H23.9393H23.9392H23.9391H23.939H23.9389H23.9387H23.9386H23.9385H23.9384H23.9383H23.9382H23.9381H23.9379H23.9378H23.9377H23.9376H23.9375H23.9374H23.9372H23.9371H23.937H23.9369H23.9368H23.9367H23.9366H23.9364H23.9363H23.9362H23.9361H23.936H23.9359H23.9357H23.9356H23.9355H23.9354H23.9353H23.9352H23.935H23.9349H23.9348H23.9347H23.9346H23.9345H23.9344H23.9342H23.9341H23.934H23.9339H23.9338H23.9337H23.9335H23.9334H23.9333H23.9332H23.9331H23.933H23.9329H23.9327H23.9326H23.9325H23.9324H23.9323H23.9322H23.932H23.9319H23.9318H23.9317H23.9316H23.9315H23.9314H23.9312H23.9311H23.931H23.9309H23.9308H23.9307H23.9305H23.9304H23.9303H23.9302H23.9301H23.93H23.9299H23.9297C23.882 22.65 23.8366 22.6559 23.8066 22.6604C23.7875 22.6617 23.772 22.6639 23.7626 22.6652L23.7454 22.6678C23.7436 22.6681 23.7427 22.6682 23.7423 22.6683L23.7353 22.6691L23.7278 22.6703C23.7002 22.6747 23.6635 22.6808 23.6235 22.6907L23.5652 22.7028L23.5485 22.7062L23.5322 22.7113C23.5099 22.7183 23.4922 22.7238 23.4731 22.7292L23.4634 22.7319L23.454 22.7352C23.4505 22.7364 23.4485 22.737 23.4436 22.7385C23.4397 22.7397 23.4338 22.7414 23.4238 22.7445C23.4073 22.7497 23.3792 22.7587 23.3485 22.772L23.3484 22.772L23.3451 22.7734L23.3408 22.7753L23.3276 22.7788L23.305 22.7882L23.302 22.7894C23.2709 22.8023 23.2301 22.8193 23.1881 22.8396L23.188 22.8395L23.1818 22.8427L23.1799 22.8437L23.1796 22.8438C23.1772 22.845 23.1715 22.8478 23.1652 22.851C23.1583 22.8546 23.1474 22.8605 23.1341 22.8687C23.097 22.8882 23.0593 22.9091 23.0207 22.9326C23.0177 22.9343 23.0144 22.9363 23.0109 22.9385L23.0103 22.9388C23.0074 22.9406 23.0004 22.945 22.991 22.9517L1.53632 36.7572L1.53627 36.7572C0.652835 37.3259 0.389659 38.5167 0.930125 39.4221C1.28337 40.0164 1.90012 40.3455 2.53592 40.3455C2.87813 40.3455 3.22188 40.2493 3.53062 40.0514L3.53119 40.0511L24.002 26.874L44.4728 40.0488L44.4734 40.0491C44.7821 40.247 45.1259 40.3432 45.4681 40.3432C46.1031 40.3432 46.7185 40.0107 47.0731 39.4211L47.0737 39.4202C47.6148 38.5142 47.3485 37.3236 46.4681 36.7552L46.2263 36.599L46.2238 36.6016L24.9973 22.9376ZM24.8589 22.8595C24.8596 22.86 24.8599 22.8602 24.8593 22.8598L24.8589 22.8595Z",fill:"white",stroke:"white",strokeWidth:.7}),X.createElement("g",{opacity:.35,className:"arrow"},X.createElement("path",{d:"M43.3675 23.4017L24.7009 11.2047C24.7009 11.2047 24.7009 11.2047 24.699 11.2047C24.6647 11.1826 24.6285 11.1605 24.5924 11.1425C24.5867 11.1404 24.5828 11.1364 24.5771 11.1344C24.5448 11.1184 24.5124 11.1043 24.48 11.0903C24.4705 11.0863 24.461 11.0823 24.4515 11.0783C24.4229 11.0682 24.3944 11.0582 24.3658 11.0502C24.3506 11.0461 24.3372 11.0401 24.322 11.0381C24.2972 11.0321 24.2725 11.0261 24.2458 11.0221C24.2287 11.0181 24.2116 11.014 24.1944 11.012C24.1697 11.008 24.1449 11.006 24.1202 11.
1029004C24.1011 11.004 24.084 11 24.065 11C24.0402 11 24.0136 11 23.9888 11C23.9717 11 23.9545 11 23.9374 11C23.9126 11 23.886 11.004 23.8612 11.008C23.8441 11.008 23.827 11.012 23.8098 11.014C23.7851 11.0181 23.7622 11.0221 23.7394 11.0281C23.7203 11.0321 23.7013 11.0361 23.6823 11.0401C23.6632 11.0461 23.6442 11.0522 23.6232 11.0582C23.6004 11.0662 23.5756 11.0722 23.5528 11.0823C23.5395 11.0883 23.5261 11.0943 23.5109 11.0983C23.4823 11.1104 23.4538 11.1224 23.4252 11.1364C23.4176 11.1404 23.4081 11.1445 23.4005 11.1505C23.3662 11.1685 23.3338 11.1866 23.3015 11.2067C23.3015 11.2067 23.2977 11.2087 23.2958 11.2107L4.63101 23.4017C4.0046 23.811 3.81229 24.6758 4.20071 25.3359C4.45203 25.7652 4.88804 26 5.33548 26C5.57538 26 5.81719 25.9318 6.03615 25.7893L24.0002 14.0518L41.9643 25.7873C42.1833 25.9298 42.4251 25.998 42.665 25.998C43.1105 25.998 43.5465 25.7612 43.7997 25.3339C44.1882 24.6738 43.994 23.809 43.3694 23.3997L43.3675 23.4017Z",fill:"white"}),X.createElement("path",{d:"M43.3675 23.4017L42.9846 23.9877L43.4732 24.3069L43.8751 23.8837L43.3675 23.4017ZM24.7009 11.2047L25.0838 10.6187L24.9093 10.5047H24.7009V11.2047ZM24.699 11.2047L24.32 11.7932L24.4931 11.9047H24.699V11.2047ZM24.5924 11.1425L24.905 10.5161L24.8657 10.4966L24.8244 10.482L24.5924 11.1425ZM24.5771 11.1344L24.2661 11.7616L24.3046 11.7806L24.3451 11.7949L24.5771 11.1344ZM24.48 11.0903L24.7587 10.4481L24.7519 10.4453L24.48 11.0903ZM24.4515 11.0783L24.7234 10.4332L24.7037 10.4249L24.6835 10.4178L24.4515 11.0783ZM24.3658 11.0502L24.5552 10.3762L24.5441 10.3733L24.3658 11.0502ZM24.322 11.0381L24.1566 11.7183L24.1932 11.7272L24.2306 11.7321L24.322 11.0381ZM24.2458 11.0221L24.0862 11.7036L24.1137 11.7101L24.1416 11.7143L24.2458 11.0221ZM24.1944 11.012L24.0824 11.703L24.0977 11.7055L24.113 11.7073L24.1944 11.012ZM24.1202 11.004L24.1767 10.3063L24.1485 10.304H24.1202V11.004ZM23.8612 11.008V11.708H23.9176L23.9733 11.699L23.8612 11.008ZM23.8098 11.014L23.7284 10.3188L23.7131 10.3206L23.6978 10.3231L23.8098 11.014ZM23.7394 11.0281L23.8837 11.713L23.9008 11.7094L23.9177 11.705L23.7394 11.0281ZM23.6823 11.0401L23.5379 10.3552L23.5041 10.3623L23.4713 10.3727L23.6823 11.0401ZM23.6232 11.0582L23.4299 10.3854L23.4104 10.391L23.3912 10.3977L23.6232 11.0582ZM23.5528 11.0823L23.2714 10.4413L23.2647 10.4443L23.5528 11.0823ZM23.5109 11.0983L23.3326 10.4214L23.2847 10.434L23.239 10.4533L23.5109 11.0983ZM23.4252 11.1364L23.1163 10.5083L23.1076 10.5126L23.0989 10.5171L23.4252 11.1364ZM23.4005 11.1505L23.7268 11.7698L23.7839 11.7397L23.8345 11.6997L23.4005 11.1505ZM23.3015 11.2067L23.6277 11.826L23.6494 11.8146L23.6703 11.8016L23.3015 11.2067ZM23.2958 11.2107L23.6785 11.7967L23.7471 11.7519L23.8035 11.6925L23.2958 11.2107ZM4.63101 23.4017L4.24821 22.8156L4.24811 22.8157L4.63101 23.4017ZM4.20071 25.3359L4.80483 24.9823L4.80402 24.9809L4.20071 25.3359ZM6.03615 25.7893L6.41789 26.3761L6.41903 26.3753L6.03615 25.7893ZM24.0002 14.0518L24.3831 13.4657L24.0002 13.2156L23.6173 13.4658L24.0002 14.0518ZM41.9643 25.7873L41.5815 26.3734L41.5826 26.3741L41.9643 25.7873ZM43.7997 25.3339L44.402 25.6907L44.4031 25.6889L43.7997 25.3339ZM43.3694 23.3997L43.7532 22.8142L43.2643 22.4938L42.8619 22.9176L43.3694 23.3997ZM43.7504 22.8157L25.0838 10.6187L24.318 11.7906L42.9846 23.9877L43.7504 22.8157ZM24.7009 11.2047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047H24.7009C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047H24.7009C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047H24.7009H24.7009C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047H24.7009C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047H24.7009C24.7009 10.5047 24.7009 10.5047 24.7009 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047H24.7008H24.7008H24.7008C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7008 10.5047 24.7008 10.5047 24.7008 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007H24.7007H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7007C24.7007 10.5047 24.7007 10.5047 24.7007 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047H24.7006C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7006 10.5047 24.7006 10.5047C24.7006 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047H24.7005C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7005 10.5047C24.7005 10.5047 24.7005 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7004 10.5047C24.7004 10.5047 24.7004 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7003 10.5047 24.7003 10.5047C24.7003 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7002 10.5047 24.7002 10.5047 24.7002 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7001 10.5047 24.7001 10.5047 24.7001 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.7 10.5047 24.7 10.5047 24.7 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6999 10.5047C24.6999 10.5047 24.6999 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6998 10.5047C24.6998 10.5047 24.6998 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6997 10.5047 24.6997 10.5047 24.6997 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.699
10296 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6996 10.5047C24.6996 10.5047 24.6996 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6995 10.5047C24.6995 10.5047 24.6995 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6994 10.5047 24.6994 10.5047C24.6994 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6993 10.5047 24.6993 10.5047C24.6993 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6992 10.5047 24.6992 10.5047 24.6992 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.6991 10.5047 24.6991 10.5047C24.6991 10.5047 24.699 10.5047 24.699 10.5047C24.699 10.5047 24.699 10.5047 24.699 10.5047C24.699 10.5047 24.699 10.5047 24.699 10.5047C24.699 10.5047 24.699 10.5047 24.699 10.5047C24.699 10.5047 24.699 10.5047 24.699 10.5047C24.699 10.5047 24.699 10.5047 24.699 10.5047V11.9047C24.699 11.9047 24.699 11.9047 24.699 11.9047C24.699 11.9047 24.699 11.9047 24.699 11.9047C24.699 11.9047 24.699 11.9047 24.699 11.9047C24.699 11.9047 24.699 11.9047 24.699 11.9047C24.699 11.9047 24.699 11.9047 24.699 11.9047C24.699 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6991 11.9047C24.6991 11.9047 24.6991 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6992 11.9047 24.6992 11.9047C24.6992 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6993 11.9047 24.6993 11.9047C24.6993 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6994 11.9047 24.6994 11.9047 24.6994 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6995 11.9047 24.6995 11.9047 24.6995 11.9047C24.6996 11.9
1029047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6996 11.9047C24.6996 11.9047 24.6996 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6997 11.9047 24.6997 11.9047 24.6997 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6998 11.9047 24.6998 11.9047 24.6998 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.6999 11.9047C24.6999 11.9047 24.6999 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7 11.9047C24.7 11.9047 24.7 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7001 11.9047C24.7001 11.9047 24.7001 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7002 11.9047 24.7002 11.9047C24.7002 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7003 11.9047 24.7003 11.9047 24.7003 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7004 11.9047 24.7004 11.9047 24.7004 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047H24.7005C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7005 11.9047 24.7005 11.9047C24.7005 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7006C24.7006 11.9047 24.7006 11.9047 24.7006 11.9047H24.7007C24.7007 11.9
1029047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007H24.7007C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047H24.7007H24.7007H24.7007C24.7007 11.9
1029047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7007 11.9047C24.7007 11.9047 24.7007 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008H24.7008H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047H24.7008C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7008 11.9047C24.7008 11.9047 24.7008 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047H24.7009C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047H24.7009C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047H24.7009H24.7009C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047H24.7009C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047H24.7009C24.7009 11.9047 24.7009 11.9047 24.7009 11.9047C24.7009 11.9047 24.7009 11.9047 24.7009 11.2047ZM25.078 10.6161C25.0363 10.5893 24.9751 10.5512 24.905 10.5161L24.2797 11.7688C24.2797 11.7688 24.2831 11.7705 24.2906 11.7749C24.2981 11.7793 24.3075 11.7851 24.32 11.7932L25.078 10.6161ZM24.8244 10.482C24.8691 10.4977 24.904 10.5153 24.9267 10.5278C24.9378 10.534 24.9465 10.5392 24.9517 10.5424C24.9543 10.544 24.9564 10.5452 24.9575 10.5459C24.9585 10.5466 24.9593 10.5471 24.9588 10.5468C24.9587 10.5467 24.9573 10.5458 24.9557 10.5448C24.954 10.5437 24.9513 10.5421 24.9481 10.5401C24.9418 10.5362 24.9318 10.5303 24.9194 10.5234C24.8942 10.5095 24.8567 10.4907 24.8091 10.474L24.3451 11.7949C24.3004 11.7792 24.2655 11.7616 24.2428 11.7491C24.2317 11.7429 24.2229 11.7377 24.2178 11.7345C24.2152 11.7329 24.2131 11.7317 24.212 11.7309C24.211 11.7303 24.2102 11.7298 24.2107 11.7301C24.2108 11.7302 24.2122 11.7311 24.2138 11.7321C24.2155 11.7332 24.2182 11.7348 24.2214 11.7368C24.2277 11.74
102907 24.2377 11.7466 24.2501 11.7535C24.2753 11.7674 24.3128 11.7862 24.3604 11.8029L24.8244 10.482ZM24.8881 10.5073C24.8372 10.4821 24.7886 10.4611 24.7587 10.4481L24.2014 11.7324C24.2362 11.7475 24.2523 11.7547 24.2661 11.7616L24.8881 10.5073ZM24.7519 10.4453C24.7472 10.4432 24.7424 10.4412 24.7377 10.4392C24.7329 10.4372 24.7281 10.4352 24.7234 10.4332L24.1796 11.7233C24.1843 11.7253 24.1891 11.7273 24.1938 11.7293C24.1986 11.7313 24.2034 11.7333 24.2081 11.7353L24.7519 10.4453ZM24.6835 10.4178C24.6587 10.4091 24.6089 10.3914 24.5552 10.3763L24.1764 11.7241C24.1763 11.724 24.177 11.7242 24.1789 11.7248C24.1807 11.7254 24.1834 11.7262 24.1871 11.7275C24.1952 11.7302 24.2043 11.7334 24.2195 11.7387L24.6835 10.4178ZM24.5441 10.3733C24.5571 10.3767 24.5664 10.3797 24.5678 10.3801C24.5683 10.3803 24.5687 10.3804 24.5661 10.3795C24.5643 10.379 24.5599 10.3775 24.5549 10.376C24.5364 10.3701 24.4827 10.3532 24.4134 10.3441L24.2306 11.7321C24.2025 11.7284 24.1795 11.7234 24.163 11.7193C24.1472 11.7153 24.1357 11.7117 24.1329 11.7108C24.1315 11.7104 24.1306 11.7101 24.1324 11.7107C24.1334 11.711 24.1374 11.7123 24.1416 11.7136C24.1502 11.7164 24.1669 11.7216 24.1875 11.7271L24.5441 10.3733ZM24.4874 10.3579C24.4664 10.3528 24.4123 10.3392 24.35 10.3299L24.1416 11.7143C24.1356 11.7134 24.1328 11.7127 24.1351 11.7132C24.1362 11.7134 24.1383 11.7139 24.142 11.7148C24.1459 11.7157 24.1501 11.7167 24.1566 11.7183L24.4874 10.3579ZM24.4054 10.3405C24.3954 10.3382 24.3392 10.3242 24.2758 10.3168L24.113 11.7073C24.0955 11.7052 24.0832 11.7028 24.0796 11.7021C24.0776 11.7016 24.0769 11.7015 24.0781 11.7017C24.0796 11.7021 24.0816 11.7025 24.0862 11.7036L24.4054 10.3405ZM24.3065 10.3211C24.2496 10.3118 24.197 10.3079 24.1767 10.3063L24.0636 11.7017C24.0701 11.7022 24.0745 11.7026 24.0787 11.703C24.0826 11.7033 24.0851 11.7035 24.0867 11.7037C24.0901 11.7041 24.0879 11.7039 24.0824 11.703L24.3065 10.3211ZM24.1202 10.304C24.1398 10.304 24.1551 10.305 24.1635 10.3057C24.1705 10.3063 24.1758 10.307 24.1697 10.3063C24.1668 10.3059 24.1524 10.3043 24.1362 10.303C24.1187 10.3015 24.0941 10.3 24.065 10.3V11.7C24.0453 11.7 24.03 11.699 24.0217 11.6983C24.0146 11.6977 24.0093 11.6971 24.0154 11.6977C24.0183 11.6981 24.0327 11.6997 24.0489 11.701C24.0664 11.7025 24.091 11.704 24.1202 11.704V10.304ZM24.065 10.3C24.0649 10.3 24.0649 10.3 24.0648 10.3C24.0648 10.3 24.0647 10.3 24.0647 10.3C24.0646 10.3 24.0646 10.3 24.0645 10.3C24.0645 10.3 24.0644 10.3 24.0644 10.3C24.0643 10.3 24.0643 10.3 24.0642 10.3C24.0642 10.3 24.0641 10.3 24.0641 10.3C24.064 10.3 24.064 10.3 24.0639 10.3C24.0639 10.3 24.0638 10.3 24.0638 10.3C24.0638 10.3 24.0637 10.3 24.0637 10.3C24.0636 10.3 24.0636 10.3 24.0635 10.3C24.0635 10.3 24.0634 10.3 24.0634 10.3C24.0633 10.3 24.0633 10.3 24.0632 10.3C24.0632 10.3 24.0631 10.3 24.0631 10.3C24.063 10.3 24.063 10.3 24.0629 10.3C24.0629 10.3 24.0628 10.3 24.0628 10.3C24.0627 10.3 24.0627 10.3 24.0626 10.3C24.0626 10.3 24.0625 10.3 24.0625 10.3C24.0624 10.3 24.0624 10.3 24.0623 10.3C24.0623 10.3 24.0622 10.3 24.0622 10.3C24.0621 10.3 24.0621 10.3 24.0621 10.3C24.062 10.3 24.062 10.3 24.0619 10.3C24.0619 10.3 24.0618 10.3 24.0618 10.3C24.0617 10.3 24.0617 10.3 24.0616 10.3C24.0616 10.3 24.0615 10.3 24.0615 10.3C24.0614 10.3 24.0614 10.3 24.0613 10.3C24.0613 10.3 24.0612 10.3 24.0612 10.3C24.0611 10.3 24.0611 10.3 24.061 10.3C24.061 10.3 24.0609 10.3 24.0609 10.3C24.0608 10.3 24.0608 10.3 24.0607 10.3C24.0607 10.3 24.0606 10.3 24.0606 10.3C24.0605 10.3 24.0605 10.3 24.0604 10.3C24.0604 10.3 24.0603 10.3 24.0603 10.3C24.0603 10.3 24.0602 10.3 24.0602 10.3C24.0601 10.3 24.0601 10.3 24.06 10.3C24.06 10.3 24.0599 10.3 24.0599 10.3C24.0598 10.3 24.0598 10.3 24.0597 10.3C24.0597 10.3 24.0596 10.3 24.0596 10.3C24.0595 10.3 24.0595 10.3 24.0594 10.3C24.0594 10.3 24.0593 10.3 24.0593 10.3C24.0592 10.3 24.0592 10.3 24.0591 10.3C24.0591 10.3 24.059 10.3 24.059 10.3C24.0589 10.3 24.0589 10.3 24.0588 10.3C24.0588 10.3 24.0587 10.3 24.0587 10.3C24.0586 10.3 24.0586 10.3 24.0585 10.3C24.0585 10.3 24.0584 10.3 24.0584 10.3C24.0583 10.3 24.0583 10.3 24.0582 10.3C24.0582 10.3 24.0581 10.3 24.0581 10.3C24.0581 10.3 24.058 10.3 24.058 10.3C24.0579 10.3 24.0579 10.3 24.0578 10.3C24.0578 10.3 24.0577 10.3 24.0577 10.3C24.0576 10.3 24.0576 10.3 24.0575 10.3C24.0575 10.3 24.0574 10.3 24.0574 10.3C24.0573 10.3 24.0573 10.3 24.0572 10.3C24.0572 10.3 24.0571 10.3 24.0571 10.3C24.057 10.3 24.057 10.3 24.0569 10.3C24.0569 10.3 24.0568 10.3 24.0568 10.3C24.0567 10.3 24.0567 10.3 24.0566 10.3C24.0566 10.3 24.0565 10.3 24.0565 10.3C24.0564 10.3 24.0564 10.3 24.0563 10.3C24.0563 10.3 24.0562 10.3 24.0562 10.3C24.0561 10.3 24.0561 10.3 24.056 10.3C24.056 10.3 24.0559 10.3 24.0559 10.3C24.0558 10.3 24.0558 10.3 24.0557 10.3C24.0557 10.3 24.0556 10.3 24.0556 10.3C24.0555 10.3 24.0555 10.3 24.0555 10.3C24.0554 10.3 24.0554 10.3 24.0553 10.3C24.0553 10.3 24.0552 10.3 24.0552 10.3C24.0551 10.3 24.0551 10.3 24.055 10.3C24.055 10.3 24.0549 10.3 24.0549 10.3C24.0548 10.3 24.0548 10.3 24.0547 10.3C24.0547 10.3 24.0546 10.3 24.0546 10.3C24.0545 10.3 24.0545 10.3 24.0544 10.3C24.0544 10.3 24.0543 10.3 24.0543 10.3C24.0542 10.3 24.0542 10.3 24.0541 10.3C24.0541 10.3 24.054 10.3 24.054 10.3C24.0539 10.3 24.0539 10.3 24.0538 10.3C24.0538 10.3 24.0537 10.3 24.0537 10.3C24.0536 10.3 24.0536 10.3 24.0535 10.3C24.0535 10.3 24.0534 10.3 24.0534 10.3C24.0533 10.3 24.0533 10.3 24.0532 10.3C24.0532 10.3 24.0531 10.3 24.0531 10.3C24.053 10.3 24.053 10.3 24.0529 10.3C24.0529 10.3 24.0528 10.3 24.0528 10.3C24.0527 10.3 24.0527 10.3 24.0526 10.3
1029C24.0526 10.3 24.0525 10.3 24.0525 10.3C24.0524 10.3 24.0524 10.3 24.0523 10.3C24.0523 10.3 24.0522 10.3 24.0522 10.3C24.0521 10.3 24.0521 10.3 24.052 10.3C24.052 10.3 24.052 10.3 24.0519 10.3C24.0519 10.3 24.0518 10.3 24.0518 10.3C24.0517 10.3 24.0517 10.3 24.0516 10.3C24.0516 10.3 24.0515 10.3 24.0515 10.3C24.0514 10.3 24.0514 10.3 24.0513 10.3C24.0513 10.3 24.0512 10.3 24.0512 10.3C24.0511 10.3 24.0511 10.3 24.051 10.3C24.051 10.3 24.0509 10.3 24.0509 10.3C24.0508 10.3 24.0508 10.3 24.0507 10.3C24.0507 10.3 24.0506 10.3 24.0506 10.3C24.0505 10.3 24.0505 10.3 24.0504 10.3C24.0504 10.3 24.0503 10.3 24.0503 10.3C24.0502 10.3 24.0502 10.3 24.0501 10.3C24.0501 10.3 24.05 10.3 24.05 10.3C24.0499 10.3 24.0499 10.3 24.0498 10.3C24.0498 10.3 24.0497 10.3 24.0497 10.3C24.0496 10.3 24.0496 10.3 24.0495 10.3C24.0495 10.3 24.0494 10.3 24.0494 10.3C24.0493 10.3 24.0493 10.3 24.0492 10.3C24.0492 10.3 24.0491 10.3 24.0491 10.3C24.049 10.3 24.049 10.3 24.0489 10.3C24.0489 10.3 24.0488 10.3 24.0488 10.3C24.0487 10.3 24.0487 10.3 24.0486 10.3C24.0486 10.3 24.0485 10.3 24.0485 10.3C24.0484 10.3 24.0484 10.3 24.0483 10.3C24.0483 10.3 24.0482 10.3 24.0482 10.3C24.0481 10.3 24.0481 10.3 24.048 10.3C24.048 10.3 24.0479 10.3 24.0479 10.3C24.0478 10.3 24.0478 10.3 24.0477 10.3C24.0477 10.3 24.0476 10.3 24.0476 10.3C24.0475 10.3 24.0475 10.3 24.0474 10.3C24.0474 10.3 24.0473 10.3 24.0473 10.3C24.0472 10.3 24.0472 10.3 24.0471 10.3C24.0471 10.3 24.047 10.3 24.047 10.3C24.0469 10.3 24.0469 10.3 24.0468 10.3C24.0468 10.3 24.0467 10.3 24.0467 10.3C24.0466 10.3 24.0466 10.3 24.0465 10.3C24.0465 10.3 24.0464 10.3 24.0464 10.3C24.0463 10.3 24.0463 10.3 24.0462 10.3C24.0462 10.3 24.0462 10.3 24.0461 10.3C24.0461 10.3 24.046 10.3 24.046 10.3C24.0459 10.3 24.0459 10.3 24.0458 10.3C24.0458 10.3 24.0457 10.3 24.0457 10.3C24.0456 10.3 24.0456 10.3 24.0455 10.3C24.0455 10.3 24.0454 10.3 24.0454 10.3C24.0453 10.3 24.0453 10.3 24.0452 10.3C24.0452 10.3 24.0451 10.3 24.0451 10.3C24.045 10.3 24.045 10.3 24.0449 10.3C24.0449 10.3 24.0448 10.3 24.0448 10.3C24.0447 10.3 24.0447 10.3 24.0446 10.3C24.0446 10.3 24.0445 10.3 24.0445 10.3C24.0444 10.3 24.0444 10.3 24.0443 10.3C24.0443 10.3 24.0442 10.3 24.0442 10.3C24.0441 10.3 24.0441 10.3 24.044 10.3C24.044 10.3 24.0439 10.3 24.0439 10.3C24.0438 10.3 24.0438 10.3 24.0437 10.3C24.0437 10.3 24.0436 10.3 24.0436 10.3C24.0435 10.3 24.0435 10.3 24.0434 10.3C24.0434 10.3 24.0433 10.3 24.0433 10.3C24.0432 10.3 24.0432 10.3 24.0431 10.3C24.0431 10.3 24.043 10.3 24.043 10.3C24.0429 10.3 24.0429 10.3 24.0428 10.3C24.0428 10.3 24.0427 10.3 24.0427 10.3C24.0426 10.3 24.0426 10.3 24.0425 10.3C24.0425 10.3 24.0424 10.3 24.0424 10.3C24.0423 10.3 24.0423 10.3 24.0422 10.3C24.0422 10.3 24.0421 10.3 24.0421 10.3C24.042 10.3 24.042 10.3 24.0419 10.3C24.0419 10.3 24.0418 10.3 24.0418 10.3C24.0417 10.3 24.0417 10.3 24.0416 10.3C24.0416 10.3 24.0415 10.3 24.0415 10.3C24.0414 10.3 24.0414 10.3 24.0413 10.3C24.0413 10.3 24.0412 10.3 24.0412 10.3C24.0411 10.3 24.0411 10.3 24.041 10.3C24.041 10.3 24.0409 10.3 24.0409 10.3C24.0408 10.3 24.0408 10.3 24.0407 10.3C24.0407 10.3 24.0406 10.3 24.0406 10.3C24.0405 10.3 24.0405 10.3 24.0404 10.3C24.0404 10.3 24.0403 10.3 24.0403 10.3C24.0402 10.3 24.0402 10.3 24.0401 10.3C24.0401 10.3 24.04 10.3 24.04 10.3C24.0399 10.3 24.0399 10.3 24.0398 10.3C24.0398 10.3 24.0397 10.3 24.0397 10.3C24.0396 10.3 24.0396 10.3 24.0395 10.3C24.0395 10.3 24.0394 10.3 24.0394 10.3C24.0393 10.3 24.0393 10.3 24.0392 10.3C24.0392 10.3 24.0391 10.3 24.0391 10.3C24.039 10.3 24.039 10.3 24.0389 10.3C24.0389 10.3 24.0388 10.3 24.0388 10.3C24.0387 10.3 24.0387 10.3 24.0386 10.3C24.0386 10.3 24.0385 10.3 24.0385 10.3C24.0384 10.3 24.0384 10.3 24.0383 10.3C24.0383 10.3 24.0382 10.3 24.0382 10.3C24.0381 10.3 24.0381 10.3 24.038 10.3C24.038 10.3 24.0379 10.3 24.0379 10.3C24.0378 10.3 24.0378 10.3 24.0377 10.3C24.0377 10.3 24.0376 10.3 24.0376 10.3C24.0375 10.3 24.0375 10.3 24.0374 10.3C24.0374 10.3 24.0373 10.3 24.0373 10.3C24.0372 10.3 24.0372 10.3 24.0371 10.3C24.0371 10.3 24.037 10.3 24.037 10.3C24.0369 10.3 24.0369 10.3 24.0368 10.3C24.0368 10.3 24.0367 10.3 24.0367 10.3C24.0366 10.3 24.0366 10.3 24.0365 10.3C24.0365 10.3 24.0364 10.3 24.0364 10.3C24.0363 10.3 24.0363 10.3 24.0362 10.3C24.0362 10.3 24.0361 10.3 24.0361 10.3C24.036 10.3 24.036 10.3 24.0359 10.3C24.0359 10.3 24.0358 10.3 24.0358 10.3C24.0357 10.3 24.0357 10.3 24.0356 10.3C24.0356 10.3 24.0355 10.3 24.0355 10.3
1029C24.0354 10.3 24.0354 10.3 24.0353 10.3C24.0353 10.3 24.0352 10.3 24.0352 10.3C24.0351 10.3 24.0351 10.3 24.035 10.3C24.035 10.3 24.0349 10.3 24.0349 10.3C24.0348 10.3 24.0348 10.3 24.0347 10.3C24.0347 10.3 24.0346 10.3 24.0346 10.3C24.0345 10.3 24.0345 10.3 24.0344 10.3C24.0344 10.3 24.0343 10.3 24.0343 10.3C24.0342 10.3 24.0342 10.3 24.0341 10.3C24.0341 10.3 24.034 10.3 24.034 10.3C24.0339 10.3 24.0339 10.3 24.0338 10.3C24.0338 10.3 24.0337 10.3 24.0337 10.3C24.0336 10.3 24.0336 10.3 24.0335 10.3C24.0335 10.3 24.0334 10.3 24.0334 10.3C24.0333 10.3 24.0333 10.3 24.0332 10.3C24.0332 10.3 24.0331 10.3 24.0331 10.3C24.033 10.3 24.033 10.3 24.0329 10.3C24.0329 10.3 24.0328 10.3 24.0328 10.3C24.0327 10.3 24.0327 10.3 24.0326 10.3C24.0326 10.3 24.0325 10.3 24.0325 10.3C24.0324 10.3 24.0324 10.3 24.0323 10.3C24.0323 10.3 24.0322 10.3 24.0322 10.3C24.0321 10.3 24.0321 10.3 24.032 10.3C24.032 10.3 24.0319 10.3 24.0319 10.3C24.0318 10.3 24.0318 10.3 24.0317 10.3C24.0317 10.3 24.0316 10.3 24.0316 10.3C24.0315 10.3 24.0315 10.3 24.0314 10.3C24.0313 10.3 24.0313 10.3 24.0312 10.3C24.0312 10.3 24.0311 10.3 24.0311 10.3C24.031 10.3 24.031 10.3 24.0309 10.3C24.0309 10.3 24.0308 10.3 24.0308 10.3C24.0307 10.3 24.0307 10.3 24.0306 10.3C24.0306 10.3 24.0305 10.3 24.0305 10.3C24.0304 10.3 24.0304 10.3 24.0303 10.3C24.0303 10.3 24.0302 10.3 24.0302 10.3C24.0301 10.3 24.0301 10.3 24.03 10.3C24.03 10.3 24.0299 10.3 24.0299 10.3C24.0298 10.3 24.0298 10.3 24.0297 10.3C24.0297 10.3 24.0296 10.3 24.0296 10.3C24.0295 10.3 24.0295 10.3 24.0294 10.3C24.0294 10.3 24.0293 10.3 24.0293 10.3C24.0292 10.3 24.0292 10.3 24.0291 10.3C24.0291 10.3 24.029 10.3 24.029 10.3C24.0289 10.3 24.0289 10.3 24.0288 10.3C24.0288 10.3 24.0287 10.3 24.0287 10.3C24.0286 10.3 24.0286 10.3 24.0285 10.3C24.0285 10.3 24.0284 10.3 24.0284 10.3C24.0283 10.3 24.0283 10.3 24.0282 10.3C24.0282 10.3 24.0281 10.3 24.0281 10.3C24.028 10.3 24.028 10.3 24.0279 10.3C24.0279 10.3 24.0278 10.3 24.0278 10.3C24.0277 10.3 24.0277 10.3 24.0276 10.3C24.0276 10.3 24.0275 10.3 24.0275 10.3C24.0274 10.3 24.0274 10.3 24.0273 10.3C24.0273 10.3 24.0272 10.3 24.0272 10.3C24.0271 10.3 24.0271 10.3 24.027 10.3C24.027 10.3 24.0269 10.3 24.0269 10.3C24.0268 10.3 24.0268 10.3 24.0267 10.3C24.0267 10.3 24.0266 10.3 24.0266 10.3C24.0265 10.3 24.0265 10.3 24.0264 10.3C24.0264 10.3 24.0263 10.3 24.0263 10.3C24.0262 10.3 24.0262 10.3 24.0261 10.3C24.0261 10.3 24.026 10.3 24.026 10.3C24.0259 10.3 24.0259 10.3 24.0258 10.3C24.0258 10.3 24.0257 10.3 24.0257 10.3C24.0256 10.3 24.0256 10.3 24.0255 10.3C24.0255 10.3 24.0254 10.3 24.0254 10.3C24.0253 10.3 24.0253 10.3 24.0252 10.3C24.0252 10.3 24.0251 10.3 24.0251 10.3C24.025 10.3 24.025 10.3 24.0249 10.3C24.0249 10.3 24.0248 10.3 24.0248 10.3C24.0247 10.3 24.0247 10.3 24.0246 10.3C24.0246 10.3 24.0245 10.3 24.0245 10.3C24.0244 10.3 24.0244 10.3 24.0243 10.3C24.0243 10.3 24.0242 10.3 24.0242 10.3C24.0241 10.3 24.0241 10.3 24.024 10.3C24.024 10.3 24.0239 10.3 24.0239 10.3C24.0238 10.3 24.0238 10.3 24.0237 10.3C24.0237 10.3 24.0236 10.3 24.0236 10.3C24.0235 10.3 24.0235 10.3 24.0234 10.3C24.0234 10.3 24.0233 10.3 24.0233 10.3C24.0232 10.3 24.0232 10.3 24.0231 10.3C24.0231 10.3 24.023 10.3 24.023 10.3C24.0229 10.3 24.0229 10.3 24.0228 10.3C24.0228 10.3 24.0227 10.3 24.0227 10.3C24.0226 10.3 24.0226 10.3 24.0225 10.3C24.0225 10.3 24.0224 10.3 24.0224 10.3C24.0223 10.3 24.0223 10.3 24.0222 10.3C24.0222 10.3 24.0221 10.3 24.0221 10.3C24.022 10.3 24.022 10.3 24.0219 10.3C24.0219 10.3 24.0218 10.3 24.0218 10.3C24.0217 10.3 24.0217 10.3 24.0216 10.3C24.0216 10.3 24.0215 10.3 24.0215 10.3C24.0214 10.3 24.0214 10.3 24.0213 10.3C24.0213 10.3 24.0212 10.3 24.0212 10.3C24.0211 10.3 24.0211 10.3 24.021 10.3C24.021 10.3 24.0209 10.3 24.0209 10.3C24.0208 10.3 24.0208 10.3 24.0207 10.3C24.0207 10.3 24.0206 10.3 24.0206 10.3C24.0205 10.3 24.0205 10.3 24.0204 10.3C24.0204 10.3 24.0203 10.3 24.0203 10.3C24.0202 10.3 24.0202 10.3 24.0201 10.3C24.0201 10.3 24.02 10.3 24.02 10.3C24.0199 10.3 24.0199 10.3 24.0198 10.3C24.0198 10.3 24.0197 10.3 24.0197 10.3C24.0196 10.3 24.0196 10.3 24.0195 10.3C24.0195 10.3 24.0194 10.3 24.0194 10.3C24.0193 10.3 24.0193 10.3 24.0192 10.3C24.0192 10.3 24.0191 10.3 24.0191 10.3C24.019 10.3 24.019 
102910.3 24.0189 10.3C24.0189 10.3 24.0188 10.3 24.0188 10.3C24.0187 10.3 24.0187 10.3 24.0186 10.3C24.0186 10.3 24.0185 10.3 24.0185 10.3C24.0184 10.3 24.0184 10.3 24.0183 10.3C24.0183 10.3 24.0182 10.3 24.0182 10.3C24.0181 10.3 24.0181 10.3 24.018 10.3C24.018 10.3 24.0179 10.3 24.0179 10.3C24.0178 10.3 24.0178 10.3 24.0177 10.3C24.0177 10.3 24.0176 10.3 24.0176 10.3C24.0175 10.3 24.0175 10.3 24.0174 10.3C24.0174 10.3 24.0173 10.3 24.0173 10.3C24.0172 10.3 24.0172 10.3 24.0171 10.3C24.0171 10.3 24.017 10.3 24.017 10.3C24.0169 10.3 24.0169 10.3 24.0168 10.3C24.0168 10.3 24.0167 10.3 24.0167 10.3C24.0166 10.3 24.0166 10.3 24.0165 10.3C24.0165 10.3 24.0164 10.3 24.0163 10.3C24.0163 10.3 24.0163 10.3 24.0162 10.3C24.0161 10.3 24.0161 10.3 24.0161 10.3C24.016 10.3 24.0159 10.3 24.0159 10.3C24.0159 10.3 24.0158 10.3 24.0157 10.3C24.0157 10.3 24.0156 10.3 24.0156 10.3C24.0155 10.3 24.0155 10.3 24.0154 10.3C24.0154 10.3 24.0153 10.3 24.0153 10.3C24.0152 10.3 24.0152 10.3 24.0151 10.3C24.0151 10.3 24.015 10.3 24.015 10.3C24.0149 10.3 24.0149 10.3 24.0148 10.3C24.0148 10.3 24.0147 10.3 24.0147 10.3C24.0146 10.3 24.0146 10.3 24.0145 10.3C24.0145 10.3 24.0144 10.3 24.0144 10.3C24.0143 10.3 24.0143 10.3 24.0142 10.3C24.0142 10.3 24.0141 10.3 24.0141 10.3C24.014 10.3 24.014 10.3 24.0139 10.3C24.0139 10.3 24.0138 10.3 24.0138 10.3C24.0137 10.3 24.0137 10.3 24.0136 10.3C24.0136 10.3 24.0135 10.3 24.0135 10.3C24.0134 10.3 24.0134 10.3 24.0133 10.3C24.0133 10.3 24.0132 10.3 24.0132 10.3C24.0131 10.3 24.0131 10.3 24.0131 10.3C24.013 10.3 24.0129 10.3 24.0129 10.3C24.0128 10.3 24.0128 10.3 24.0127 10.3C24.0127 10.3 24.0126 10.3 24.0126 10.3C24.0126 10.3 24.0125 10.3 24.0124 10.3C24.0124 10.3 24.0124 10.3 24.0123 10.3C24.0123 10.3 24.0122 10.3 24.0121 10.3C24.0121 10.3 24.0121 10.3 24.012 10.3C24.0119 10.3 24.0119 10.3 24.0119 10.3C24.0118 10.3 24.0118 10.3 24.0117 10.3C24.0117 10.3 24.0116 10.3 24.0116 10.3C24.0115 10.3 24.0115 10.3 24.0114 10.3C24.0114 10.3 24.0113 10.3 24.0113 10.3C24.0112 10.3 24.0112 10.3 24.0111 10.3C24.0111 10.3 24.011 10.3 24.011 10.3C24.0109 10.3 24.0109 10.3 24.0108 10.3C24.0108 10.3 24.0107 10.3 24.0107 10.3C24.0106 10.3 24.0106 10.3 24.0105 10.3C24.0105 10.3 24.0104 10.3 24.0104 10.3C24.0103 10.3 24.0103 10.3 24.0102 10.3C24.0102 10.3 24.0101 10.3 24.0101 10.3C24.01 10.3 24.01 10.3 24.0099 10.3C24.0099 10.3 24.0098 10.3 24.0098 10.3C24.0097 10.3 24.0097 10.3 24.0096 10.3C24.0096 10.3 24.0095 10.3 24.0095 10.3C24.0094 10.3 24.0094 10.3 24.0093 10.3C24.0093 10.3 24.0092 10.3 24.0092 10.3C24.0091 10.3 24.0091 10.3 24.009 10.3C24.009 10.3 24.0089 10.3 24.0089 10.3C24.0088 10.3 24.0088 10.3 24.0087 10.3C24.0087 10.3 24.0086 10.3 24.0086 10.3C24.0085 10.3 24.0085 10.3 24.0084 10.3C24.0084 10.3 24.0083 10.3 24.0083 10.3C24.0082 10.3 24.0082 10.3 24.0081 10.3C24.0081 10.3 24.008 10.3 24.008 10.3C24.0079 10.3 24.0079 10.3 24.0078 10.3C24.0078 10.3 24.0077 10.3 24.0077 10.3C24.0076 10.3 24.0076 10.3 24.0075 10.3C24.0075 10.3 24.0074 10.3 24.0074 10.3C24.0073 10.3 24.0073 10.3 24.0072 10.3C24.0072 10.3 24.0071 10.3 24.0071 10.3C24.007 10.3 24.007 10.3 24.0069 10.3C24.0069 10.3 24.0068 10.3 24.0068 10.3C24.0067 10.3 24.0067 10.3 24.0066 10.3C24.0066 10.3 24.0065 10.3 24.0065 10.3C24.0064 10.3 24.0064 10.3 24.0063 10.3C24.0063 10.3 24.0062 10.3 24.0062 10.3C24.0061 10.3 24.0061 10.3 24.006 10.3C24.006 10.3 24.0059 10.3 24.0059 10.3C24.0058 10.3 24.0058 10.3 24.0057 10.3C24.0057 10.3 24.0056 10.3 24.0056 10.3C24.0055 10.3 24.0055 10.3 24.0054 10.3C24.0054 10.3 24.0053 10.3 24.0053 10.3C24.0052 10.3 24.0052 10.3 24.0051 10.3C24.0051 10.3 24.005 10.3 24.005 10.3C24.0049 10.3 24.0049 10.3 24.0048 10.3C24.0048 10.3 24.0047 10.3 24.0047 10.3C24.0046 10.3 24.0046 10.3 24.0045 10.3C24.0045 10.3 24.0044 10.3 24.0044 10.3C24.0043 10.3 24.0043 10.3 24.0042 10.3C24.0042 10.3 24.0041 10.3 24.0041 10.3
1029C24.004 10.3 24.004 10.3 24.0039 10.3C24.0039 10.3 24.0038 10.3 24.0038 10.3C24.0037 10.3 24.0037 10.3 24.0036 10.3C24.0036 10.3 24.0035 10.3 24.0035 10.3C24.0034 10.3 24.0034 10.3 24.0033 10.3C24.0033 10.3 24.0032 10.3 24.0032 10.3C24.0031 10.3 24.0031 10.3 24.003 10.3C24.003 10.3 24.003 10.3 24.0029 10.3C24.0029 10.3 24.0028 10.3 24.0028 10.3C24.0027 10.3 24.0027 10.3 24.0026 10.3C24.0026 10.3 24.0025 10.3 24.0025 10.3C24.0024 10.3 24.0024 10.3 24.0023 10.3C24.0023 10.3 24.0022 10.3 24.0022 10.3C24.0021 10.3 24.0021 10.3 24.002 10.3C24.002 10.3 24.0019 10.3 24.0019 10.3C24.0018 10.3 24.0018 10.3 24.0017 10.3C24.0017 10.3 24.0016 10.3 24.0016 10.3C24.0015 10.3 24.0015 10.3 24.0014 10.3C24.0014 10.3 24.0013 10.3 24.0013 10.3C24.0012 10.3 24.0012 10.3 24.0011 10.3C24.0011 10.3 24.001 10.3 24.001 10.3C24.0009 10.3 24.0009 10.3 24.0008 10.3C24.0008 10.3 24.0007 10.3 24.0007 10.3C24.0006 10.3 24.0006 10.3 24.0005 10.3C24.0005 10.3 24.0004 10.3 24.0004 10.3C24.0003 10.3 24.0003 10.3 24.0002 10.3C24.0002 10.3 24.0001 10.3 24.0001 10.3C24 10.3 24 10.3 23.9999 10.3C23.9999 10.3 23.9998 10.3 23.9998 10.3C23.9997 10.3 23.9997 10.3 23.9996 10.3C23.9996 10.3 23.9995 10.3 23.9995 10.3C23.9994 10.3 23.9994 10.3 23.9993 10.3C23.9993 10.3 23.9993 10.3 23.9992 10.3C23.9992 10.3 23.9991 10.3 23.9991 10.3C23.999 10.3 23.999 10.3 23.9989 10.3C23.9989 10.3 23.9988 10.3 23.9988 10.3C23.9987 10.3 23.9987 10.3 23.9986 10.3C23.9986 10.3 23.9985 10.3 23.9985 10.3C23.9984 10.3 23.9984 10.3 23.9983 10.3C23.9983 10.3 23.9982 10.3 23.9982 10.3C23.9981 10.3 23.9981 10.3 23.998 10.3C23.998 10.3 23.9979 10.3 23.9979 10.3C23.9978 10.3 23.9978 10.3 23.9977 10.3C23.9977 10.3 23.9976 10.3 23.9976 10.3C23.9975 10.3 23.9975 10.3 23.9974 10.3C23.9974 10.3 23.9973 10.3 23.9973 10.3C23.9972 10.3 23.9972 10.3 23.9971 10.3C23.9971 10.3 23.997 10.3 23.997 10.3C23.9969 10.3 23.9969 10.3 23.9968 10.3C23.9968 10.3 23.9967 10.3 23.9967 10.3C23.9966 10.3 23.9966 10.3 23.9965 10.3C23.9965 10.3 23.9964 10.3 23.9964 10.3C23.9964 10.3 23.9963 10.3 23.9963 10.3C23.9962 10.3 23.9962 10.3 23.9961 10.3C23.9961 10.3 23.996 10.3 23.996 10.3C23.9959 10.3 23.9959 10.3 23.9958 10.3C23.9958 10.3 23.9957 10.3 23.9957 10.3C23.9956 10.3 23.9956 10.3 23.9955 10.3C23.9955 10.3 23.9954 10.3 23.9954 10.3C23.9953 10.3 23.9953 10.3 23.9952 10.3C23.9952 10.3 23.9951 10.3 23.9951 10.3C23.995 10.3 23.995 10.3 23.9949 10.3C23.9949 10.3 23.9948 10.3 23.9948 10.3C23.9947 10.3 23.9947 10.3 23.9946 10.3C23.9946 10.3 23.9945 10.3 23.9945 10.3C23.9944 10.3 23.9944 10.3 23.9943 10.3C23.9943 10.3 23.9942 10.3 23.9942 10.3C23.9942 10.3 23.9941 10.3 23.9941 10.3C23.994 10.3 23.994 10.3 23.9939 10.3C23.9939 10.3 23.9938 10.3 23.9938 10.3C23.9937 10.3 23.9937 10.3 23.9936 10.3C23.9936 10.3 23.9935 10.3 23.9935 10.3C23.9934 10.3 23.9934 10.3 23.9933 10.3C23.9933 10.3 23.9932 10.3 23.9932 10.3C23.9931 10.3 23.9931 10.3 23.993 10.3C23.993 10.3 23.9929 10.3 23.9929 10.3C23.9928 10.3 23.9928 10.3 23.9927 10.3C23.9927 10.3 23.9926 10.3 23.9926 10.3C23.9925 10.3 23.9925 10.3 23.9924 10.3C23.9924 10.3 23.9923 10.3 23.9923 10.3C23.9922 10.3 23.9922 10.3 23.9922 10.3C23.9921 10.3 23.9921 10.3 23.992 10.3C23.992 10.3 23.9919 10.3 23.9919 10.3C23.9918 10.3 23.9918 10.3 23.9917 10.3C23.9917 10.3 23.9916 10.3 23.9916 10.3C23.9915 10.3 23.9915 10.3 23.9914 10.3C23.9914 10.3 23.9913 10.3 23.9913 10.3C23.9912 10.3 23.9912 10.3 23.9911 10.3C23.9911 10.3 23.991 10.3 23.991 10.3C23.9909 10.3 23.9909 10.3 23.9908 10.3C23.9908 10.3 23.9907 10.3 23.9907 10.3C23.9906 10.3 23.9906 10.3 23.9905 10.3C23.9905 10.3 23.9904 10.3 23.9904 10.3C23.9904 10.3 23.9903 10.3 23.9903 10.3C23.9902 10.3 23.9902 10.3 23.9901 10.3C23.9901 10.3 23.99 10.3 23.99 10.3C23.9899 10.3 23.9899 10.3 23.9898 10.3C23.9898 10.3 23.9897 10.3 23.9897 10.3C23.9896 10.3 23.9896 10.3 23.9895 10.3C23.9895 10.3 23.9894 10.3 23.9894 10.3C23.9893 10.3 23.9893 10.3 23.9892 10.3C23.9892 10.3 23.9891 10.3 23.9891 10.3C23.989 10.3 23.989 10.3 23.9889 10.3C23.9889 10.3 23.9889 10.3 23.9888 10.3V11.7C23.9889 11.7 23.9889 11.7 23.9889 11.7C23.989 11.7 23.989 11.7 23.9891 11.7C23.9891 11.7 23.9892 11.7 23.9892 11.7C23.9893 11.7 23.9893 11.7 23.9894 11.7C23.9894 11.7 23.9895 11.7 23.9895 11.7C23.9896 11.7 23.9896 11.7 23.9897 11.7C23.9897 11.7 23.9898 11.7 23.9898 11.7C23.9899 11.7 23.9899 11.7 23.99 11.7C23.99 11.7 23.9901 11.7 23.9901 11.7C23.9902 11.7 23.9902 11.7 23.9903 11.7C23.9903 11.7 23.9904 11.7 23.9904 11.7C23.9904 11.7 23.9905 11.7 23.9905 11.7C23.9906 11.7 23.9906 11.7 23.9907 11.7C23.9907 11.7 23.9908 11.7 23.9908 11.7C23.9909 11.7 23.9909 11.7 23.991 11.7C23.991 11.7 23.9911 11.7 23.9911 11.7C23.9912 11.7 23.9912 11.7 23.9913 11.7C23.9913 11.7 23.9914 11.7 23.9914 11.7C23.9915 11.7 23.9915 11.7 23.9916 11.7C23.9916 11.7 23.9917 11.7 23.9917 11.7C23.9918 11.7 23.9918 11.7 23.9919 11.7C23.9919 11.7 23.992 11.7 23.992 11.7C23.9921 11.7 23.9921 11.7 23.9922 11.7C23.9922 11.7 23.9922 11.7 23.9923 11.7C23.9923 11.7 23.9924 11.7 23.9924 11.7C23.9925 11.7 23.9925 11.7 23.9926 11.7C23.9926 11.7 23.9927 11.7 23.9927 11.7C23.9928 11.7 23.9928 11.7 23.9929 11.7C23.9929 11.7 23.993 11.7 23.993 11.7C23.9931 11.7 23.9931 11.7 23.9932 11.7C23.9932 11.7 23.9933 11.7 23.9933 11.7C23.9934 11.7 23.9934 11.7 23.9935 11.7C23.9935 11.7 23.9936 11.7 23.9936 11.7C23.9937 11.7 23.9937 11.7 23.9938 11.7C23.9938 11.7 23.9939 11.7 23.9939 11.7C23.994 11.7 23.994 11.7 23.9941 11.7C23.9941 11.7 23.9942 11.7 23.9942 11.7C23.9942 11.7 23.9943 11.7 23.9943 11.7C23.9944 11.7 23.9944 11.7 23.9945 11.7C23.9945 11.7 23.9946 11.7 23.9946 11.7C23.9947 11.7 23.9947 11.7 23.9948 11.7C23.9948 11.7 23.9949 11.7 23.9949 11.7C23.995 11.7 23.995 11.7 23.9951 11.7C23.9951 11.7 23.9952 11.7 23.9952 11.7C23.9953 11.7 23.9953 11.7 23.9954 11.7C23.9954 11.7 23.9955 11.7 23.9955 11.7C23.9956 11.7 23.9956 11.7 23.9957 11.7C23.9957 11.7 23.9958 11.7 23.9958 11.7C23.9959 11.7 23.9959 11.7 23.996 11.7C23.996 11.7 23.9961 11.7 23.9961 11.7C23.9962 11.7 23.9962 11.7 23.9963 11.7C23.9963 11.7 23.9964 11.7 23.9964 11.7C23.9964 11.7 23.9965 11.7 23.9965 11.7C23.9966 11.7 23.9966 11.7 23.9967 11.7C23.9967 11.7 23.9968 11.7 23.9968 11.7C23.9969 11.7 23.9969 11.7 23.997 11.7C23.997 11.7 23.9971 11.7 23.9971 11.7C23.9972 11.7 23.9972 11.7 23.9973 11.7C23.9973 11.7 23.9974 11.7 23.9974 11.7C23.9975 11.7 23.9975 11.7 23.9976 11.7C23.9976 11.7 23.9977 11.7 23.9977 11.7C23.9978 11.7 23.9978 11.7 23.9979 11.7C23.9979 11.7 23.998 11.7 23.998 11.7C23.9981 11.7 23.9981 11.7 23.9982 11.7C23.9982 11.7 23.9983 11.7 23.9983 11.7C23.9984 11.7 23.9984 11.7 23.9985 11.7C23.9985 11.7 23.9986 11.7 23.9986 11.7C23.9987 11.7 23.9987 11.7 23.9988 11.7C23.9988 11.7 23.9989 11.7 23.9989 11.7C23.999 11.7 23.999 11.7 23.9991 11.7C23.9991 11.7 23.9992 11.7 23.9992 11.7C23.9993 11.7 23.9993 11.7 23.9993 11.7C23.9994 11.7 23.9994 11.7 23.9995 11.7C23.9995 11.7 23.9996 11.7 23.9996 11.7C23.9997 11.7 23.9997 11.7 23.9998 11.7C23.9998 11.7 23.9999 11.7 23.9999 11.7C24 11.7 24 11.7 24.0001 11.7C24.0001 11.7 24.0002 11.7 24.0002 11.7C24.0003 11.7 24.0003 11.7 24.0004 11.7C24.0004 11.7 24.0005 11.7 24.0005 11.7C24.0006 11.7 24.0006 11.7 24.0007 11.7C24.0007 11.7 24.0008 11.7 24.0008 11.7C24.0009 11.7 24.0009 11.7 24.001 11.7C24.001 11.7 24.0011 11.7 24.0011 11.7C24.0012 11.7 24.0012 11.7 24.0013 11.7C24.0013 11.7 24.0014 11.7 24.0014 11.7C24.0015 11.7 24.0015 11.7 24.0016 11.7C24.0016 11.7 24.0017 11.7 24.0017 11.7C24.0018 11.7 24.0018 11.7 24.0019 11.7C24.0019 11.7 24.002 11.7 24.002 11.7C24.0021 11.7 24.0021 11.7 24.0022 11.7C24.0022 11.7 24.0023 11.7 24.0023 11.7C24.0024 11.7 24.0024 11.7 24.0025 11.7C24.0025 11.7 24.0026 11.7 24.0026 11.7C24.0027 11.7 24.0027 11.7 24.0028 11.7C24.0028 11.7 24.0029 11.7 24.0029 11.7C24.003 11.7 24.003 11.7 24.003 11.7C24.0031 11.7 24.0031 11.7 24.0032 11.7C24.0032 11.7 24.0033 11.7 24.0033 11.7C24.0034 11.7 24.0034 11.7 24.0035 11.7C24.0035 11.7 24.0036 11.7 24.0036 11.7C24.0037 11.7 24.0037 11.7 24.0038 11.7C24.0038 11.7 24.0039 11.7 24.0039 11.7C24.004 11.7 24.004 11.7 24.0041 11.7C24.0041 11.7 24.0042 11.7 24.0042 11.7C24.0043 11.7 24.0043 11.7 24.0044 11.7C24.0044 11.7 24.0045 11.7 24.0045 11.7C24.0046 11.7 24.0046 11.7 24.0047 11.7C24.0047 11.7 24.0048 11.7 24.0048 11.7C24.0049 11.7 24.0049 11.7 24.005 11.7C24.005 11.7 24.0051 11.7 24.0051 11.7C24.0052 11.7 24.0052 11.7 24.0053 
102911.7C24.0053 11.7 24.0054 11.7 24.0054 11.7C24.0055 11.7 24.0055 11.7 24.0056 11.7C24.0056 11.7 24.0057 11.7 24.0057 11.7C24.0058 11.7 24.0058 11.7 24.0059 11.7C24.0059 11.7 24.006 11.7 24.006 11.7C24.0061 11.7 24.0061 11.7 24.0062 11.7C24.0062 11.7 24.0063 11.7 24.0063 11.7C24.0064 11.7 24.0064 11.7 24.0065 11.7C24.0065 11.7 24.0066 11.7 24.0066 11.7C24.0067 11.7 24.0067 11.7 24.0068 11.7C24.0068 11.7 24.0069 11.7 24.0069 11.7C24.007 11.7 24.007 11.7 24.0071 11.7C24.0071 11.7 24.0072 11.7 24.0072 11.7C24.0073 11.7 24.0073 11.7 24.0074 11.7C24.0074 11.7 24.0075 11.7 24.0075 11.7C24.0076 11.7 24.0076 11.7 24.0077 11.7C24.0077 11.7 24.0078 11.7 24.0078 11.7C24.0079 11.7 24.0079 11.7 24.008 11.7C24.008 11.7 24.0081 11.7 24.0081 11.7C24.0082 11.7 24.0082 11.7 24.0083 11.7C24.0083 11.7 24.0084 11.7 24.0084 11.7C24.0085 11.7 24.0085 11.7 24.0086 11.7C24.0086 11.7 24.0087 11.7 24.0087 11.7C24.0088 11.7 24.0088 11.7 24.0089 11.7C24.0089 11.7 24.009 11.7 24.009 11.7C24.0091 11.7 24.0091 11.7 24.0092 11.7C24.0092 11.7 24.0093 11.7 24.0093 11.7C24.0094 11.7 24.0094 11.7 24.0095 11.7C24.0095 11.7 24.0096 11.7 24.0096 11.7C24.0097 11.7 24.0097 11.7 24.0098 11.7C24.0098 11.7 24.0099 11.7 24.0099 11.7C24.01 11.7 24.01 11.7 24.0101 11.7C24.0101 11.7 24.0102 11.7 24.0102 11.7C24.0103 11.7 24.0103 11.7 24.0104 11.7C24.0104 11.7 24.0105 11.7 24.0105 11.7C24.0106 11.7 24.0106 11.7 24.0107 11.7C24.0107 11.7 24.0108 11.7 24.0108 11.7C24.0109 11.7 24.0109 11.7 24.011 11.7C24.011 11.7 24.0111 11.7 24.0111 11.7C24.0112 11.7 24.0112 11.7 24.0113 11.7C24.0113 11.7 24.0114 11.7 24.0114 11.7C24.0115 11.7 24.0115 11.7 24.0116 11.7C24.0116 11.7 24.0117 11.7 24.0117 11.7C24.0118 11.7 24.0118 11.7 24.0119 11.7C24.0119 11.7 24.0119 11.7 24.012 11.7C24.0121 11.7 24.0121 11.7 24.0121 11.7C24.0122 11.7 24.0123 11.7 24.0123 11.7C24.0124 11.7 24.0124 11.7 24.0124 11.7C24.0125 11.7 24.0126 11.7 24.0126 11.7C24.0126 11.7 24.0127 11.7 24.0127 11.7C24.0128 11.7 24.0128 11.7 24.0129 11.7C24.0129 11.7 24.013 11.7 24.0131 11.7C24.0131 11.7 24.0131 11.7 24.0132 11.7C24.0132 11.7 24.0133 11.7 24.0133 11.7C24.0134 11.7 24.0134 11.7 24.0135 11.7C24.0135 11.7 24.0136 11.7 24.0136 11.7C24.0137 11.7 24.0137 11.7 24.0138 11.7C24.0138 11.7 24.0139 11.7 24.0139 11.7C24.014 11.7 24.014 11.7 24.0141 11.7C24.0141 11.7 24.0142 11.7 24.0142 11.7C24.0143 11.7 24.0143 11.7 24.0144 11.7C24.0144 11.7 24.0145 11.7 24.0145 11.7C24.0146 11.7 24.0146 11.7 24.0147 11.7C24.0147 11.7 24.0148 11.7 24.0148 11.7C24.0149 11.7 24.0149 11.7 24.015 11.7C24.015 11.7 24.0151 11.7 24.0151 11.7C24.0152 11.7 24.0152 11.7 24.0153 11.7C24.0153 11.7 24.0154 11.7 24.0154 11.7C24.0155 11.7 24.0155 11.7 24.0156 11.7C24.0156 11.7 24.0157 11.7 24.0157 11.7C24.0158 11.7 24.0159 11.7 24.0159 11.7C24.0159 11.7 24.016 11.7 24.0161 11.7C24.0161 11.7 24.0161 11.7 24.0162 11.7C24.0163 11.7 24.0163 11.7 24.0163 11.7C24.0164 11.7 24.0165 11.7 24.0165 11.7C24.0166 11.7 24.0166 11.7 24.0167 11.7C24.0167 11.7 24.0168 11.7 24.0168 11.7C24.0169 11.7 24.0169 11.7 24.017 11.7C24.017 11.7 24.0171 11.7 24.0171 11.7C24.0172 11.7 24.0172 11.7 24.0173 11.7C24.0173 11.7 24.0174 11.7 24.0174 11.7C24.0175 11.7 24.0175 11.7 24.0176 11.7C24.0176 11.7 24.0177 11.7 24.0177 11.7C24.0178 11.7 24.0178 11.7 24.0179 11.7C24.0179 11.7 24.018 11.7 24.018 11.7C24.0181 11.7 24.0181 11.7 24.0182 11.7C24.0182 11.7 24.0183 11.7 24.0183 11.7C24.0184 11.7 24.0184 11.7 24.0185 11.7C24.0185 11.7 24.0186 11.7 24.0186 11.7C24.0187 11.7 24.0187 11.7 24.0188 11.7C24.0188 11.7 24.0189 11.7 24.0189 11.7C24.019 11.7 24.019 11.7 24.0191 11.7C24.0191 11.7 24.0192 11.7 24.0192 11.7C24.0193 11.7 24.0193 11.7 24.0194 11.7C24.0194 11.7 24.0195 11.7 24.0195 11.7C24.0196 11.7 24.0196 11.7 24.0197 11.7C24.0197 11.7 24.0198 11.7 24.0198 11.7C24.0199 11.7 24.0199 11.7 24.02 11.7C24.02 11.7 24.0201 11.7 24.0201 11.7C24.0202 11.7 24.0202 11.7 24.0203 11.7C24.0203 11.7 24.0204 11.7 24.0204 11.7C24.0205 11.7 24.0205 11.7 24.0206 11.7C24.0206 11.7 24.0207 11.7 24.0207 11.7C24.0208 11.7 24.0208 11.7 24.0209 11.7C24.0209 11.7 24.021 11.7 24.021 11.7C24.0211 11.7 24.0211 11.7 24.0212 11.7C24.0212 11.7 24.0213 11.7 24.0213 11.7C24.0214 11.7 24.0214 11.7 24.0215 11.7C24.0215 11.7 24.0216 11.7 24.0216 11.7C24.0217 11.7 24.0217 11.7 24.0218 11.7C24.0218 11.7 24.0219 11.7 24.0219 11.7C24.022 11.7 24.022 11.7 24.0221 11.7C24.0221 11.7 24.0222 11.7 24.0222 11.7C24.0223 11.7 24.0223 11.7 24.0224 11.7C24.0224 11.7 24.0225 11.7 24.0225 11.7C24.0226 11.7 24.0226 11.7 24.0227 11.7C24.0227 11.7 24.0228 11.7 24.0228 11.7C24.0229 11.7 24.0229 11.7 24.023 11.7C24.023 11.7 24.0231 11.7 24.0231 11.7C24.0232 11.7 24.0232 11.7 24.0233 11.7C24.0233 11.7 24.0234 11.7 24.0234 11.7C24.0235 11.7 24.0235 11.7 24.0236 11.7C24.0236 11.7 24.0237 11.7 24.0237 11.7C24.0238 11.7 24.0238 11.7 24.0239 11.7C24.0239 11.7 24.024 11.7 24.024 11.7C24.0241 11.7 24.0241 11.7 24.0242 11.7C24.0242 11.7 24.0243 11.7 24.0243 11.7C24.0244 11.7 24.0244 11.7 24.0245 11.7C24.0245 11.7 24.0246 11.7 24.0246 11.7C24.0247 11.7 24.0247 11.7 24.0248 11.7C24.0248 11.7 24.0249 11.7 24.0249 11.7C24.025 11.7 24.025 11.7 24.0251 11.7C24.0251 11.7 24.0252 11.7 24.0252 11.7C24.0253 11.7 24.0253 11.7 24.0254 11.7C24.0254 11.7 24.0255 11.7 24.0255 11.7C24.0256 11.7 24.0256 11.7 24.0257 11.7C24.0257 11.7 24.0258 11.7 24.0258 11.7C24.0259 11.7 24.0259 11.7 24.026 11.7C24.026 11.7 24.0261 11.7 24.0261 11.7C24.0262 11.7 24.0262 11.7 24.0263 11.7C24.0263 11.7 24.0264 11.7 24.0264 11.7C24.0265 11.7 24.0265 11.7 24.0266 11.7C24.0266 11.7 24.0267 11.7 24.0267 11.7C24.0268 11.7 24.0268 11.7 24.0269 11.7C24.0269 11.7 24.027 11.7 24.027 11.7C24.0271 11.7 24.0271 11.7 24.0272 11.7C24.0272 11.7 24.0273 11.7 24.0273 11.7C24.0274 11.7 24.0274 11.7 24.0275 11.7C24.0275 11.7 24.0276 11.7 24.0276 11.7C24.0277 11.7 24.0277 11.7 24.0278 11.7C24.0278 11.7 24.0279 11.7 24.0279 11.7C24.028 11.7 24.028 11.7 24.0281 11.7C24.0281 11.7 24.0282 11.7 24.0282 11.7C24.0283 11.7 24.0283 11.7 24.0284 11.7C24.0284 11.7 24.0285 11.7 24.0285 11.7C24.0286 11.7 24.0286 11.7 24.0287 11.7C24.0287 11.7 24.0288 11.7 24.0288 11.7C24.0289 11.7 24.0289 11.7 24.029 11.7C24.029 11.7 24.0291 11.7 24.0291 11.7C24.0292 11.7 24.0292 11.7 24.0293 11.7C24.0293 11.7 24.0294 11.7 24.0294 11.7C24.0295 11.7 24.0295 11.7 24.0296 11.7C24.0296 11.7 24.0297 11.7 24.0297 11.7C24.0298 11.7 24.0298 11.7 24.0299 11.7C24.0299 11.7 24.03 11.7 24.03 11.7C24.0301 11.7 24.0301 11.7 24.0302 11.7C24.0302 11.7 24.0303 11.7 24.0303 11.7C24.0304 11.7 24.0304 11.7 24.0305 11.7C24.0305 11.7 24.0306 11.7 24.0306 11.7C24.0307 11.7 24.0307 11.7 24.0308 11.7C24.0308 11.7 24.0309 11.7 24.0309 11.7C24.031 11.7 24.031 11.7 24.0311 11.7C24.0311 11.7 24.0312 11.7 24.0312 11.7C24.0313 11.7 24.0313 11.7 24.0314 11.7C24.0315 11.7 24.0315 11.7 24.0316 11.7C24.0316 11.7 24.0317 11.7 24.0317 11.7C24.0318 11.7 24.0318 11.7 24.0319 11.7C24.0319 11.7 24.032 11.7 24.032 11.7C24.0321 11.7 24.0321 11.7 24.0322 11.7C24.0322 11.7 24.0323 11.7 24.0323 11.7C24.0324 11.7 24.0324 11.7 24.0325 11.7C24.0325 11.7 24.0326 11.7 24.0326 11.7C24.0327 11.7 24.0327 11.7 24.0328 11.7C24.0328 11.7 24.0329 11.7 24.0329 11.7C24.033 11.7 24.033 11.7 24.0331 11.7C24.0331 11.7 24.0332 11.7 24.0332 11.7C24.0333 11.7 24.0333 11.7 24.0334 11.7C24.0334 11.7 24.0335 11.7 24.0335 11.7C24.0336 11.7 24.0336 11.7 24.0337 11.7C24.0337 11.7 24.0338 11.7 24.0338 11.7C24.0339 11.7 24.0339 11.7 24.034 11.7C24.034 11.7 24.0341 11.7 24.0341 11.7C24.0342 11.7 24.0342 11.7 24.0343 11.7C24.0343 11.7 24.0344 11.7 24.0344 11.7C24.0345 11.7 24.0345 11.7 24.0346 11.7C24.0346 11.7 24.0347 11.7 24.0347 11.7C24.0348 11.7 24.0348 11.7 24.0349 11.7C24.0349 11.7 24.035 11.7 24.035 11.7C24.0351 11.7 24.0351 11.7 24.0352 11.7C24.0352 11.7 24.0353 11.7 24.0353 11.7C24.0354 11.7 24.0354 11.7 24.0355 11.7C24.0355 11.7 24.0356 11.7 24.0356 11.7C24.0357 11.7 24.0357 11.7 24.0358 11.7C24.0358 11.7 24.0359 11.7 24.0359 11.7C24.036 11.7 24.036 11.7 24.0361 11.7C24.0361 11.7 24.0362 11.7 24.0362 11.7C24.0363 11.7 24.0363 11.7 24.0364 11.7C24.0364 11.7 24.0365 11.7 24.0365 11.7C24.0366 11.7 24.0366 11.7 24.0367 11.7C24.0367 11.7 24.0368 11.7 24.0368 11.7C24.0369 11.7 24.0369 11.7 24.037 11.7C24.037 11.7 24.0371 11.7 24.0371 11.7C24.0372 11.7 24.0372 11.7 24.0373 11.7C24.0373 11.7 24.0374 11.7 24.0374 11.7C24.0375 11.7 24.0375 11.7 24.0376 11.7C24.0376 11.7 24.0377 11.7 24.0377 11.7C24.0378 11.7 24.0378 11.7 24.0379 11.7C24.0379 11.7 24.038 11.7 24.038 11.7C24.0381 11.7 24.0381 11.7 24.0382 11.7C24.0382 11.7 24.0383 11.7 24.0383 11.7C24.0384 11.7 24.0384 11.7 24.0385 11.7C24.0385 11.7 24.0386 11.7 24.0386 11.7C24.0387 11.7 24.0387 11.7 24.0388 11.7C24.0388 11.7 24.0389 11.7 24.0389 11.7C24.039 11.7 24.039 11.7 24.0391 11.7C24.0391 11.7 24.0392 11.7 24.0392 11.7C24.0393 11.7 24.0393 11.7 24.0394 11.7C24.0394 11.7 24.0395 11.7 24.0395 11.7C24.0396 11.7 24.0396 11.7 24.0397 11.7C24.0397 11.7 24.0398 11.7 24.0398 11.7C24.0399 11.7 24.0399 11.7 24.04 11.7C24.04 11.7 24.0401 11.7 24.0401 11.7C24.0402 11.7 24.0402 11.7 24.0403 
102911.7C24.0403 11.7 24.0404 11.7 24.0404 11.7C24.0405 11.7 24.0405 11.7 24.0406 11.7C24.0406 11.7 24.0407 11.7 24.0407 11.7C24.0408 11.7 24.0408 11.7 24.0409 11.7C24.0409 11.7 24.041 11.7 24.041 11.7C24.0411 11.7 24.0411 11.7 24.0412 11.7C24.0412 11.7 24.0413 11.7 24.0413 11.7C24.0414 11.7 24.0414 11.7 24.0415 11.7C24.0415 11.7 24.0416 11.7 24.0416 11.7C24.0417 11.7 24.0417 11.7 24.0418 11.7C24.0418 11.7 24.0419 11.7 24.0419 11.7C24.042 11.7 24.042 11.7 24.0421 11.7C24.0421 11.7 24.0422 11.7 24.0422 11.7C24.0423 11.7 24.0423 11.7 24.0424 11.7C24.0424 11.7 24.0425 11.7 24.0425 11.7C24.0426 11.7 24.0426 11.7 24.0427 11.7C24.0427 11.7 24.0428 11.7 24.0428 11.7C24.0429 11.7 24.0429 11.7 24.043 11.7C24.043 11.7 24.0431 11.7 24.0431 11.7C24.0432 11.7 24.0432 11.7 24.0433 11.7C24.0433 11.7 24.0434 11.7 24.0434 11.7C24.0435 11.7 24.0435 11.7 24.0436 11.7C24.0436 11.7 24.0437 11.7 24.0437 11.7C24.0438 11.7 24.0438 11.7 24.0439 11.7C24.0439 11.7 24.044 11.7 24.044 11.7C24.0441 11.7 24.0441 11.7 24.0442 11.7C24.0442 11.7 24.0443 11.7 24.0443 11.7C24.0444 11.7 24.0444 11.7 24.0445 11.7C24.0445 11.7 24.0446 11.7 24.0446 11.7C24.0447 11.7 24.0447 11.7 24.0448 11.7C24.0448 11.7 24.0449 11.7 24.0449 11.7C24.045 11.7 24.045 11.7 24.0451 11.7C24.0451 11.7 24.0452 11.7 24.0452 11.7C24.0453 11.7 24.0453 11.7 24.0454 11.7C24.0454 11.7 24.0455 11.7 24.0455 11.7C24.0456 11.7 24.0456 11.7 24.0457 11.7C24.0457 11.7 24.0458 11.7 24.0458 11.7C24.0459 11.7 24.0459 11.7 24.046 11.7C24.046 11.7 24.0461 11.7 24.0461 11.7C24.0462 11.7 24.0462 11.7 24.0462 11.7C24.0463 11.7 24.0463 11.7 24.0464 11.7C24.0464 11.7 24.0465 11.7 24.0465 11.7C24.0466 11.7 24.0466 11.7 24.0467 11.7C24.0467 11.7 24.0468 11.7 24.0468 11.7C24.0469 11.7 24.0469 11.7 24.047 11.7C24.047 11.7 24.0471 11.7 24.0471 11.7C24.0472 11.7 24.0472 11.7 24.0473 11.7C24.0473 11.7 24.0474 11.7 24.0474 11.7C24.0475 11.7 24.0475 11.7 24.0476 11.7C24.0476 11.7 24.0477 11.7 24.0477 11.7C24.0478 11.7 24.0478 11.7 24.0479 11.7C24.0479 11.7 24.048 11.7 24.048 11.7C24.0481 11.7 24.0481 11.7 24.0482 11.7C24.0482 11.7 24.0483 11.7 24.0483 11.7C24.0484 11.7 24.0484 11.7 24.0485 11.7C24.0485 11.7 24.0486 11.7 24.0486 11.7C24.0487 11.7 24.0487 11.7 24.0488 11.7C24.0488 11.7 24.0489 11.7 24.0489 11.7C24.049 11.7 24.049 11.7 24.0491 11.7C24.0491 11.7 24.0492 11.7 24.0492 11.7C24.0493 11.7 24.0493 11.7 24.0494 11.7C24.0494 11.7 24.0495 11.7 24.0495 11.7C24.0496 11.7 24.0496 11.7 24.0497 11.7C24.0497 11.7 24.0498 11.7 24.0498 11.7C24.0499 11.7 24.0499 11.7 24.05 11.7C24.05 11.7 24.0501 11.7 24.0501 11.7C24.0502 11.7 24.0502 11.7 24.0503 11.7C24.0503 11.7 24.0504 11.7 24.0504 11.7C24.0505 11.7 24.0505 11.7 24.0506 11.7C24.0506 11.7 24.0507 11.7 24.0507 11.7C24.0508 11.7 24.0508 11.7 24.0509 11.7C24.0509 11.7 24.051 11.7 24.051 11.7C24.0511 11.7 24.0511 11.7 24.0512 11.7C24.0512 11.7 24.0513 11.7 24.0513 11.7C24.0514 11.7 24.0514 11.7 24.0515 11.7C24.0515 11.7 24.0516 11.7 24.0516 11.7C24.0517 11.7 24.0517 11.7 24.0518 11.7C24.0518 11.7 24.0519 11.7 24.0519 11.7C24.052 11.7 24.052 11.7 24.052 11.7C24.0521 11.7 24.0521 11.7 24.0522 11.7C24.0522 11.7 24.0523 11.7 24.0523 11.7C24.0524 11.7 24.0524 11.7 24.0525 11.7C24.0525 11.7 24.0526 11.7 24.0526 11.7C24.0527 11.7 24.0527 11.7 24.0528 11.7C24.0528 11.7 24.0529 11.7 24.0529 11.7C24.053 11.7 24.053 11.7 24.0531 11.7C24.0531 11.7 24.0532 11.7 24.0532 11.7C24.0533 11.7 24.0533 11.7 24.0534 11.7C24.0534 11.7 24.0535 11.7 24.0535 11.7C24.0536 11.7 24.0536 11.7 24.0537 11.7C24.0537 11.7 24.0538 11.7 24.0538 11.7C24.0539 11.7 24.0539 11.7 24.054 11.7C24.054 11.7 24.0541 11.7 24.0541 11.7C24.0542 11.7 24.0542 11.7 24.0543 11.7C24.0543 11.7 24.0544 11.7 24.0544 11.7C24.0545 11.7 24.0545 11.7 24.0546 11.7C24.0546 11.7 24.0547 11.7 24.0547 11.7C24.0548 11.7 24.0548 11.7 24.0549 11.7C24.0549 11.7 24.055 11.7 24.055 11.7C24.0551 11.7 24.0551 11.7 24.0552 11.7C24.0552 11.7 24.0553 11.7 24.0553 11.7C24.0554 11.7 24.0554 11.7 24.0555 11.7C24.0555 11.7 24.0555 11.7 24.0556 11.7C24.0556 11.7 24.0557 11.7 24.0557 11.7C24.0558 11.7 24.0558 11.7 24.0559 11.7C24.0559 11.7 24.056 11.7 24.056 11.7C24.0561 11.7 24.0561 11.7 24.0562 11.7C24.0562 11.7 24.0563 11.7 24.0563 11.7C24.0564 11.7 24.0564 11.7 24.0565 11.7C24.0565 11.7 24.0566 11.7 24.0566 11.7C24.0567 11.7 24.0567 11.7 24.0568 11.7C24.0568 11.7 24.0569 11.7 24.0569 11.7C24.057 11.7 24.057 11.7 24.0571 11.7C24.0571 11.7 24.0572 11.7 24.0572 11.7C24.0573 11.7 24.0573 11.7 24.0574 11.7C24.0574 11.7 24.0575 11.7 24.0575 11.7C24.0576 11.7 24.0576 11.7 24.0577 11.7C24.0577 11.7 24.0578 11.7 24.0578 11.7C24.0579 11.7 24.0579 11.7 24.058 11.7C24.058 11.7 24.0581 11.7 24.0581 11.7C24.0581 11.7 24.0582 11.7 24.0582 11.7C24.0583 11.7 24.0583 11.7 24.0584 
102911.7C24.0584 11.7 24.0585 11.7 24.0585 11.7C24.0586 11.7 24.0586 11.7 24.0587 11.7C24.0587 11.7 24.0588 11.7 24.0588 11.7C24.0589 11.7 24.0589 11.7 24.059 11.7C24.059 11.7 24.0591 11.7 24.0591 11.7C24.0592 11.7 24.0592 11.7 24.0593 11.7C24.0593 11.7 24.0594 11.7 24.0594 11.7C24.0595 11.7 24.0595 11.7 24.0596 11.7C24.0596 11.7 24.0597 11.7 24.0597 11.7C24.0598 11.7 24.0598 11.7 24.0599 11.7C24.0599 11.7 24.06 11.7 24.06 11.7C24.0601 11.7 24.0601 11.7 24.0602 11.7C24.0602 11.7 24.0603 11.7 24.0603 11.7C24.0603 11.7 24.0604 11.7 24.0604 11.7C24.0605 11.7 24.0605 11.7 24.0606 11.7C24.0606 11.7 24.0607 11.7 24.0607 11.7C24.0608 11.7 24.0608 11.7 24.0609 11.7C24.0609 11.7 24.061 11.7 24.061 11.7C24.0611 11.7 24.0611 11.7 24.0612 11.7C24.0612 11.7 24.0613 11.7 24.0613 11.7C24.0614 11.7 24.0614 11.7 24.0615 11.7C24.0615 11.7 24.0616 11.7 24.0616 11.7C24.0617 11.7 24.0617 11.7 24.0618 11.7C24.0618 11.7 24.0619 11.7 24.0619 11.7C24.062 11.7 24.062 11.7 24.0621 11.7C24.0621 11.7 24.0621 11.7 24.0622 11.7C24.0622 11.7 24.0623 11.7 24.0623 11.7C24.0624 11.7 24.0624 11.7 24.0625 11.7C24.0625 11.7 24.0626 11.7 24.0626 11.7C24.0627 11.7 24.0627 11.7 24.0628 11.7C24.0628 11.7 24.0629 11.7 24.0629 11.7C24.063 11.7 24.063 11.7 24.0631 11.7C24.0631 11.7 24.0632 11.7 24.0632 11.7C24.0633 11.7 24.0633 11.7 24.0634 11.7C24.0634 11.7 24.0635 11.7 24.0635 11.7C24.0636 11.7 24.0636 11.7 24.0637 11.7C24.0637 11.7 24.0638 11.7 24.0638 11.7C24.0638 11.7 24.0639 11.7 24.0639 11.7C24.064 11.7 24.064 11.7 24.0641 11.7C24.0641 11.7 24.0642 11.7 24.0642 11.7C24.0643 11.7 24.0643 11.7 24.0644 11.7C24.0644 11.7 24.0645 11.7 24.0645 11.7C24.0646 11.7 24.0646 11.7 24.0647 11.7C24.0647 11.7 24.0648 11.7 24.0648 11.7C24.0649 11.7 24.0649 11.7 24.065 11.7V10.3ZM23.9888 10.3C23.9888 10.3 23.9887 10.3 23.9887 10.3C23.9887 10.3 23.9886 10.3 23.9886 10.3C23.9886 10.3 23.9885 10.3 23.9885 10.3C23.9885 10.3 23.9884 10.3 23.9884 10.3C23.9884 10.3 23.9883 10.3 23.9883 10.3C23.9883 10.3 23.9882 10.3 23.9882 10.3C23.9882 10.3 23.9881 10.3 23.9881 10.3C23.9881 10.3 23.988 10.3 23.988 10.3C23.988 10.3 23.9879 10.3 23.9879 10.3C23.9879 10.3 23.9878 10.3 23.9878 10.3C23.9878 10.3 23.9877 10.3 23.9877 10.3C23.9877 10.3 23.9876 10.3 23.9876 10.3C23.9876 10.3 23.9875 10.3 23.9875 10.3C23.9875 10.3 23.9874 10.3 23.9874 10.3C23.9874 10.3 23.9873 10.3 23.9873 10.3C23.9873 10.3 23.9872 10.3 23.9872 10.3C23.9872 10.3 23.9871 10.3 23.9871 10.3C23.9871 10.3 23.987 10.3 23.987 10.3C23.987 10.3 23.9869 10.3 23.9869 10.3C23.9869 10.3 23.9868 10.3 23.9868 10.3C23.9868 10.3 23.9867 10.3 23.9867 10.3C23.9867 10.3 23.9866 10.3 23.9866 10.3C23.9866 10.3 23.9865 10.3 23.9865 10.3C23.9865 10.3 23.9864 10.3 23.9864 10.3C23.9864 10.3 23.9863 10.3 23.9863 10.3C23.9863 10.3 23.9862 10.3 23.9862 10.3C23.9862 10.3 23.9861 10.3 23.9861 10.3C23.9861 10.3 23.986 10.3 23.986 10.3C23.986 10.3 23.9859 10.3 23.9859 10.3C23.9859 10.3 23.9858 10.3 23.9858 10.3C23.9858 10.3 23.9857 10.3 23.9857 10.3C23.9857 10.3 23.9856 10.3 23.9856 10.3C23.9856 10.3 23.9855 10.3 23.9855 10.3C23.9855 10.3 23.9854 10.3 23.9854 10.3C23.9854 10.3 23.9853 10.3 23.9853 10.3C23.9853 10.3 23.9852 10.3 23.9852 10.3C23.9852 10.3 23.9851 10.3 23.9851 10.3C23.9851 10.3 23.985 10.3 23.985 10.3C23.985 10.3 23.9849 10.3 23.9849 10.3C23.9849 10.3 23.9848 10.3 23.9848 10.3C23.9848 10.3 23.9847 10.3 23.9847 10.3C23.9847 10.3 23.9846 10.3 23.9846 10.3C23.9846 10.3 23.9845 10.3 23.9845 10.3C23.9845 10.3 23.9844 10.3 23.9844 10.3C23.9844 10.3 23.9843 10.3 23.9843 10.3C23.9843 10.3 23.9842 10.3 23.9842 10.3C23.9842 10.3 23.9841 10.3 23.9841 10.3C23.9841 10.3 23.984 10.3 23.984 10.3C23.984 10.3 23.9839 10.3 23.9839 10.3C23.9839 10.3 23.9838 10.3 23.9838 10.3C23.9837 10.3 23.9837 10.3 23.9837 10.3C23.9837 10.3 23.9836 10.3 23.9836 10.3C23.9835 10.3 23.9835 10.3 23.9835 10.3C23.9834 10.3 23.9834 10.3 23.9834 10.3C23.9833 10.3 23.9833 10.3 23.9833 10.3C23.9832 10.3 23.9832 10.3 23.9832 10.3C23.9831 10.3 23.9831 10.3 23.9831 10.3C23.983 10.3 23.983 10.3 23.983 10.3C23.9829 10.3 23.9829 10.3 23.9829 10.3C23.9828 10.3 23.9828 10.3 23.9828 10.3C23.9827 10.3 23.9827 10.3 23.9827 10.3C23.9826 10.3 23.9826 10.3 23.9826 10.3C23.9825 10.3 23.9825 10.3 23.9825 10.3C23.9824 10.3 23.9824 
102910.3 23.9824 10.3C23.9823 10.3 23.9823 10.3 23.9823 10.3C23.9822 10.3 23.9822 10.3 23.9822 10.3C23.9821 10.3 23.9821 10.3 23.9821 10.3C23.982 10.3 23.982 10.3 23.982 10.3C23.9819 10.3 23.9819 10.3 23.9819 10.3C23.9818 10.3 23.9818 10.3 23.9818 10.3C23.9817 10.3 23.9817 10.3 23.9817 10.3C23.9816 10.3 23.9816 10.3 23.9816 10.3C23.9815 10.3 23.9815 10.3 23.9815 10.3C23.9814 10.3 23.9814 10.3 23.9814 10.3C23.9813 10.3 23.9813 10.3 23.9813 10.3C23.9812 10.3 23.9812 10.3 23.9812 10.3C23.9811 10.3 23.9811 10.3 23.9811 10.3C23.981 10.3 23.981 10.3 23.981 10.3C23.9809 10.3 23.9809 10.3 23.9809 10.3C23.9808 10.3 23.9808 10.3 23.9808 10.3C23.9807 10.3 23.9807 10.3 23.9807 10.3C23.9806 10.3 23.9806 10.3 23.9806 10.3C23.9805 10.3 23.9805 10.3 23.9805 10.3C23.9804 10.3 23.9804 10.3 23.9804 10.3C23.9803 10.3 23.9803 10.3 23.9803 10.3C23.9802 10.3 23.9802 10.3 23.9802 10.3C23.9801 10.3 23.9801 10.3 23.9801 10.3C23.98 10.3 23.98 10.3 23.98 10.3C23.9799 10.3 23.9799 10.3 23.9799 10.3C23.9798 10.3 23.9798 10.3 23.9798 10.3C23.9797 10.3 23.9797 10.3 23.9797 10.3C23.9796 10.3 23.9796 10.3 23.9796 10.3C23.9795 10.3 23.9795 10.3 23.9795 10.3C23.9794 10.3 23.9794 10.3 23.9794 10.3C23.9793 10.3 23.9793 10.3 23.9793 10.3C23.9792 10.3 23.9792 10.3 23.9792 10.3C23.9791 10.3 23.9791 10.3 23.9791 10.3C23.979 10.3 23.979 10.3 23.979 10.3C23.9789 10.3 23.9789 10.3 23.9789 10.3C23.9788 10.3 23.9788 10.3 23.9788 10.3C23.9787 10.3 23.9787 10.3 23.9787 10.3C23.9786 10.3 23.9786 10.3 23.9786 10.3C23.9785 10.3 23.9785 10.3 23.9785 10.3C23.9784 10.3 23.9784 10.3 23.9784 10.3C23.9783 10.3 23.9783 10.3 23.9783 10.3C23.9782 10.3 23.9782 10.3 23.9782 10.3C23.9781 10.3 23.9781 10.3 23.9781 10.3C23.978 10.3 23.978 10.3 23.978 10.3C23.9779 10.3 23.9779 10.3 23.9779 10.3C23.9778 10.3 23.9778 10.3 23.9778 10.3C23.9777 10.3 23.9777 10.3 23.9777 10.3C23.9776 10.3 23.9776 10.3 23.9776 10.3C23.9775 10.3 23.9775 10.3 23.9775 10.3C23.9774 10.3 23.9774 10.3 23.9774 10.3C23.9773 10.3 23.9773 10.3 23.9773 10.3C23.9772 10.3 23.9772 10.3 23.9772 10.3C23.9771 10.3 23.9771 10.3 23.9771 10.3C23.977 10.3 23.977 10.3 23.977 10.3
1029C23.9769 10.3 23.9769 10.3 23.9769 10.3C23.9768 10.3 23.9768 10.3 23.9768 10.3C23.9767 10.3 23.9767 10.3 23.9767 10.3C23.9766 10.3 23.9766 10.3 23.9766 10.3C23.9765 10.3 23.9765 10.3 23.9765 10.3C23.9764 10.3 23.9764 10.3 23.9764 10.3C23.9763 10.3 23.9763 10.3 23.9763 10.3C23.9762 10.3 23.9762 10.3 23.9762 10.3C23.9761 10.3 23.9761 10.3 23.9761 10.3C23.976 10.3 23.976 10.3 23.976 10.3C23.9759 10.3 23.9759 10.3 23.9759 10.3C23.9758 10.3 23.9758 10.3 23.9757 10.3C23.9757 10.3 23.9757 10.3 23.9757 10.3C23.9756 10.3 23.9756 10.3 23.9755 10.3C23.9755 10.3 23.9755 10.3 23.9755 10.3C23.9754 10.3 23.9754 10.3 23.9753 10.3C23.9753 10.3 23.9753 10.3 23.9752 10.3C23.9752 10.3 23.9752 10.3 23.9751 10.3C23.9751 10.3 23.9751 10.3 23.975 10.3C23.975 10.3 23.975 10.3 23.9749 10.3C23.9749 10.3 23.9749 10.3 23.9748 10.3C23.9748 10.3 23.9748 10.3 23.9747 10.3C23.9747 10.3 23.9747 10.3 23.9746 10.3C23.9746 10.3 23.9746 10.3 23.9745 10.3C23.9745 10.3 23.9745 10.3 23.9744 10.3C23.9744 10.3 23.9744 10.3 23.9743 10.3C23.9743 10.3 23.9743 10.3 23.9742 10.3C23.9742 10.3 23.9742 10.3 23.9741 10.3C23.9741 10.3 23.9741 10.3 23.974 10.3C23.974 10.3 23.974 10.3 23.9739 10.3C23.9739 10.3 23.9739 10.3 23.9738 10.3C23.9738 10.3 23.9738 10.3 23.9737 10.3C23.9737 10.3 23.9737 10.3 23.9736 10.3C23.9736 10.3 23.9736 10.3 23.9735 10.3C23.9735 10.3 23.9735 10.3 23.9734 10.3C23.9734 10.3 23.9734 10.3 23.9733 10.3C23.9733 10.3 23.9733 10.3 23.9732 10.3C23.9732 10.3 23.9732 10.3 23.9731 10.3C23.9731 10.3 23.9731 10.3 23.973 10.3C23.973 10.3 23.973 10.3 23.9729 10.3C23.9729 10.3 23.9729 10.3 23.9728 10.3C23.9728 10.3 23.9728 10.3 23.9727 10.3C23.9727 10.3 23.9727 10.3 23.9726 10.3C23.9726 10.3 23.9726 10.3 23.9725 10.3C23.9725 10.3 23.9725 10.3 23.9724 10.3C23.9724 10.3 23.9724 10.3 23.9723 10.3C23.9723 10.3 23.9723 10.3 23.9722 10.3C23.9722 10.3 23.9722 10.3 23.9721 10.3C23.9721 10.3 23.9721 10.3 23.972 10.3C23.972 10.3 23.972 10.3 23.9719 10.3C23.9719 10.3 23.9719 10.3 23.9718 10.3C23.9718 10.3 23.9718 10.3 23.9717 10.3C23.9717 10.3 23.9717 10.3 23.9716 10.3C23.9716 10.3 23.9716 10.3 23.9715 10.3
1029C23.9715 10.3 23.9715 10.3 23.9714 10.3C23.9714 10.3 23.9714 10.3 23.9713 10.3C23.9713 10.3 23.9713 10.3 23.9712 10.3C23.9712 10.3 23.9712 10.3 23.9711 10.3C23.9711 10.3 23.9711 10.3 23.971 10.3C23.971 10.3 23.971 10.3 23.9709 10.3C23.9709 10.3 23.9709 10.3 23.9708 10.3C23.9708 10.3 23.9708 10.3 23.9707 10.3C23.9707 10.3 23.9707 10.3 23.9706 10.3C23.9706 10.3 23.9706 10.3 23.9705 10.3C23.9705 10.3 23.9705 10.3 23.9704 10.3C23.9704 10.3 23.9704 10.3 23.9703 10.3C23.9703 10.3 23.9703 10.3 23.9702 10.3C23.9702 10.3 23.9702 10.3 23.9701 10.3C23.9701 10.3 23.9701 10.3 23.97 10.3C23.97 10.3 23.97 10.3 23.9699 10.3C23.9699 10.3 23.9699 10.3 23.9698 10.3C23.9698 10.3 23.9698 10.3 23.9697 10.3C23.9697 10.3 23.9697 10.3 23.9696 10.3C23.9696 10.3 23.9696 10.3 23.9695 10.3C23.9695 10.3 23.9695 10.3 23.9694 10.3C23.9694 10.3 23.9694 10.3 23.9693 10.3C23.9693 10.3 23.9693 10.3 23.9692 10.3C23.9692 10.3 23.9692 10.3 23.9691 10.3C23.9691 10.3 23.9691 10.3 23.969 10.3C23.969 10.3 23.969 10.3 23.9689 10.3C23.9689 10.3 23.9689 10.3 23.9688 10.3C23.9688 10.3 23.9688 10.3 23.9687 10.3C23.9687 10.3 23.9687 10.3 23.9686 10.3C23.9686 10.3 23.9686 10.3 23.9685 10.3C23.9685 10.3 23.9685 10.3 23.9684 10.3C23.9684 10.3 23.9684 10.3 23.9683 10.3C23.9683 10.3 23.9683 10.3 23.9682 10.3C23.9682 10.3 23.9682 10.3 23.9681 10.3C23.9681 10.3 23.9681 10.3 23.968 10.3C23.968 10.3 23.968 10.3 23.9679 10.3C23.9679 10.3 23.9679 10.3 23.9678 10.3C23.9678 10.3 23.9678 10.3 23.9677 10.3C23.9677 10.3 23.9677 10.3 23.9676 10.3C23.9676 10.3 23.9676 10.3 23.9675 10.3C23.9675 10.3 23.9675 10.3 23.9674 10.3C23.9674 10.3 23.9674 10.3 23.9673 10.3C23.9673 10.3 23.9672 10.3 23.9672 10.3C23.9672 10.3 23.9671 10.3 23.9671 10.3C23.9671 10.3 23.967 10.3 23.967 10.3C23.967 10.3 23.9669 10.3 23.9669 10.3C23.9669 10.3 23.9668 10.3 23.9668 10.3C23.9668 10.3 23.9667 10.3 23.9667 10.3C23.9667 10.3 23.9666 10.3 23.9666 10.3C23.9666 10.3 23.9665 10.3 23.9665 10.3C23.9665 10.3 23.9664 10.3 23.9664 10.3C23.9664 10.3 23.9663 10.3 23.9663 10.3C23.9663 10.3 23.9662 10.3 23.9662 10.3C23.9662 10.3 23.9661 10.3 23.9661 10.3C23.9661 10.3 23.966 10.3 23.966 10.3C23.966 10.3 23.9659 10.3 23.9659 10.3C23.9659 10.3 23.9658 10.3 23.9658 10.3C23.9658 10.3 23.9657 10.3 23.9657 10.3C23.9657 10.3 23.9656 10.3 23.9656 10.3C23.9656 10.3 23.9655 10.3 23.9655 10.3C23.9655 10.3 23.9654 10.3 23.9654 10.3C23.9654 10.3 23.9653 10.3 23.9653 10.3C23.9653 10.3 23.9652 10.3 23.9652 10.3C23.9652 10.3 23.9651 10.3 23.9651 10.3C23.9651 10.3 23.965 10.3 23.965 10.3C23.965 10.3 23.9649 10.3 23.9649 10.3C23.9649 10.3 23.9648 10.3 23.9648 10.3C23.9648 10.3 23.9647 10.3 23.9647 10.3C23.9647 10.3 23.9646 10.3 23.9646 10.3C23.9646 10.3 23.9645 10.3 23.9645 10.3C23.9645 10.3 23.9644 10.3 23.9644 10.3C23.9644 10.3 23.9643 10.3 23.9643 10.3C23.9643 10.3 23.9642 10.3 23.9642 10.3C23.9642 10.3 23.9641 10.3 23.9641 10.3C23.9641 10.3 23.964 10.3 23.964 10.3C23.964 10.3 23.9639 10.3 23.9639 10.3C23.9639 10.3 23.9638 10.3 23.9638 10.3C23.9638 10.3 23.9637 10.3 23.9637 10.3C23.9637 10.3 23.9636 10.3 23.9636 10.3C23.9636 10.3 23.9635 10.3 23.9635 10.3C23.9635 10.3 23.9634 10.3 23.9634 10.3C23.9634 10.3 23.9633 10.3 23.9633 10.3C23.9633 10.3 23.9632 10.3 23.9632 10.3C23.9632 10.3 23.9631 10.3 23.9631 10.3C23.9631 10.3 23.963 10.3 23.963 10.3C23.963 10.3 23.9629 10.3 23.9629 10.3C23.9629 10.3 23.9628 10.3 23.9628 10.3C23.9628 10.3 23.9627 10.3 23.9627 10.3C23.9627 10.3 23.9626 10.3 23.9626 10.3C23.9626 10.3 23.9625 10.3 23.9625 10.3C23.9625 10.3 23.9624 10.3 23.9624 10.3C23.9624 10.3 23.9623 10.3 23.9623 10.3C23.9623 10.3 23.9622 10.3 23.9622 10.3C23.9622 10.3 23.9621 10.3 23.9621 10.3C23.9621 10.3 23.962 10.3 23.962 10.3C23.962 10.3 23.9619 10.3 23.9619 10.3C23.9619 10.3 23.9618 10.3 23.9618 10.3C23.9618 10.3 23.9617 10.3 23.9617 10.3C23.9617 10.3 23.9616 10.3 23.9616 10.3C23.9616 10.3 23.9615 10.3 23.9615 10.3C23.9615 10.3 23.9614 10.3 23.9614 10.3C23.9614 10.3 23.9613 10.3 23.9613 10.3C23.9613 10.3 23.9612 10.3 23.9612 10.3C23.9612 10.3 23.9611 10.3 23.9611 10.3C23.9611 10.3 23.961 10.3 23.961 10.3C23.961 10.3 23.9609 10.3 23.9609 10.3C23.9609 10.3 23.9608 10.3 23.9608 10.3C23.9608 10.3 23.9607 10.3 23.9607 10.3
1029C23.9607 10.3 23.9606 10.3 23.9606 10.3C23.9606 10.3 23.9605 10.3 23.9605 10.3C23.9605 10.3 23.9604 10.3 23.9604 10.3C23.9604 10.3 23.9603 10.3 23.9603 10.3C23.9603 10.3 23.9602 10.3 23.9602 10.3C23.9602 10.3 23.9601 10.3 23.9601 10.3C23.9601 10.3 23.96 10.3 23.96 10.3C23.96 10.3 23.9599 10.3 23.9599 10.3C23.9599 10.3 23.9598 10.3 23.9598 10.3C23.9598 10.3 23.9597 10.3 23.9597 10.3C23.9597 10.3 23.9596 10.3 23.9596 10.3C23.9596 10.3 23.9595 10.3 23.9595 10.3C23.9595 10.3 23.9594 10.3 23.9594 10.3C23.9594 10.3 23.9593 10.3 23.9593 10.3C23.9593 10.3 23.9592 10.3 23.9592 10.3C23.9592 10.3 23.9591 10.3 23.9591 10.3C23.959 10.3 23.959 10.3 23.959 10.3C23.959 10.3 23.9589 10.3 23.9589 10.3C23.9588 10.3 23.9588 10.3 23.9588 10.3C23.9587 10.3 23.9587 10.3 23.9587 10.3C23.9586 10.3 23.9586 10.3 23.9586 10.3C23.9585 10.3 23.9585 10.3 23.9585 10.3C23.9584 10.3 23.9584 10.3 23.9584 10.3C23.9583 10.3 23.9583 10.3 23.9583 10.3C23.9582 10.3 23.9582 10.3 23.9582 10.3C23.9581 10.3 23.9581 10.3 23.9581 10.3C23.958 10.3 23.958 10.3 23.958 10.3C23.9579 10.3 23.9579 10.3 23.9579 10.3C23.9578 10.3 23.9578 10.3 23.9578 10.3C23.9577 10.3 23.9577 10.3 23.9577 10.3C23.9576 10.3 23.9576 10.3 23.9576 10.3C23.9575 10.3 23.9575 10.3 23.9575 10.3C23.9574 10.3 23.9574 10.3 23.9574 10.3C23.9573 10.3 23.9573 10.3 23.9573 10.3C23.9572 10.3 23.9572 10.3 23.9572 10.3C23.9571 10.3 23.9571 10.3 23.9571 10.3C23.957 10.3 23.957 10.3 23.957 10.3C23.9569 10.3 23.9569 10.3 23.9569 10.3C23.9568 10.3 23.9568 10.3 23.9568 10.3C23.9567 10.3 23.9567 10.3 23.9567 10.3C23.9566 10.3 23.9566 10.3 23.9566 10.3C23.9565 10.3 23.9565 10.3 23.9565 10.3
1029C23.9564 10.3 23.9564 10.3 23.9564 10.3C23.9563 10.3 23.9563 10.3 23.9563 10.3C23.9562 10.3 23.9562 10.3 23.9562 10.3C23.9561 10.3 23.9561 10.3 23.9561 10.3C23.956 10.3 23.956 10.3 23.956 10.3C23.9559 10.3 23.9559 10.3 23.9559 10.3C23.9558 10.3 23.9558 10.3 23.9558 10.3C23.9557 10.3 23.9557 10.3 23.9557 10.3C23.9556 10.3 23.9556 10.3 23.9556 10.3C23.9555 10.3 23.9555 10.3 23.9555 10.3C23.9554 10.3 23.9554 10.3 23.9554 10.3C23.9553 10.3 23.9553 10.3 23.9553 10.3C23.9552 10.3 23.9552 10.3 23.9552 10.3C23.9551 10.3 23.9551 10.3 23.9551 10.3C23.955 10.3 23.955 10.3 23.955 10.3C23.9549 10.3 23.9549 10.3 23.9549 10.3C23.9548 10.3 23.9548 10.3 23.9548 10.3C23.9547 10.3 23.9547 10.3 23.9547 10.3C23.9546 10.3 23.9546 10.3 23.9546 10.3C23.9545 10.3 23.9545 10.3 23.9545 10.3C23.9544 10.3 23.9544 10.3 23.9544 10.3C23.9543 10.3 23.9543 10.3 23.9543 10.3C23.9542 10.3 23.9542 10.3 23.9542 10.3C23.9541 10.3 23.9541 10.3 23.9541 10.3C23.954 10.3 23.954 10.3 23.954 10.3C23.9539 10.3 23.9539 10.3 23.9539 10.3C23.9538 10.3 23.9538 10.3 23.9538 10.3C23.9537 10.3 23.9537 10.3 23.9537 10.3C23.9536 10.3 23.9536 10.3 23.9536 10.3C23.9535 10.3 23.9535 10.3 23.9535 10.3C23.9534 10.3 23.9534 10.3 23.9534 10.3C23.9533 10.3 23.9533 10.3 23.9533 10.3C23.9532 10.3 23.9532 10.3 23.9532 10.3C23.9531 10.3 23.9531 10.3 23.9531 10.3C23.953 10.3 23.953 10.3 23.953 10.3C23.9529 10.3 23.9529 10.3 23.9529 10.3C23.9528 10.3 23.9528 10.3 23.9528 10.3C23.9527 10.3 23.9527 10.3 23.9527 10.3C23.9526 10.3 23.9526 10.3 23.9526 10.3C23.9525 10.3 23.9525 10.3 23.9525 10.3C23.9524 10.3 23.9524 10.3 23.9524 10.3C23.9523 10.3 23.9523 10.3 23.9523 10.3C23.9522 10.3 23.9522 10.3 23.9522 10.3C23.9521 10.3 23.9521 10.3 23.9521 10.3C23.952 10.3 23.952 10.3 23.952 10.3C23.9519 10.3 23.9519 10.3 23.9519 10.3C23.9518 10.3 23.9518 10.3 23.9518 10.3C23.9517 10.3 23.9517 10.3 23.9517 10.3C23.9516 10.3 23.9516 10.3 23.9516 10.3C23.9515 10.3 23.9515 10.3 23.9515 10.3C23.9514 10.3 23.9514 10.3 23.9514 10.3C23.9513 10.3 23.9513 10.3 23.9513 10.3C23.9512 10.3 23.9512 10.3 23.9512 10.3C23.9511 10.3 23.9511 10.3 23.951 10.3C23.951 10.3 23.951 10.3 23.951 10.3C23.9509 10.3 23.9509 10.3 23.9508 10.3C23.9508 10.3 23.9508 10.3 23.9507 10.3C23.9507 10.3 23.9507 10.3 23.9506 10.3C23.9506 10.3 23.9506 10.3 23.9505 10.3C23.9505 10.3 23.9505 10.3 23.9504 10.3C23.9504 10.3 23.9504 10.3 23.9503 10.3C23.9503 10.3 23.9503 10.3 23.9502 10.3C23.9502 10.3 23.9502 10.3 23.9501 10.3C23.9501 10.3 23.9501 10.3 23.95 10.3C23.95 10.3 23.95 10.3 23.9499 10.3C23.9499 10.3 23.9499 10.3 23.9498 10.3C23.9498 10.3 23.9498 10.3 23.9497 10.3C23.9497 10.3 23.9497 10.3 23.9496 10.3C23.9496 10.3 23.9496 10.3 23.9495 10.3C23.9495 10.3 23.9495 10.3 23.9494 10.3C23.9494 10.3 23.9494 10.3 23.9493 10.3C23.9493 10.3 23.9493 10.3 23.9492 10.3C23.9492 10.3 23.9492 10.3 23.9491 10.3C23.9491 10.3 23.9491 10.3 23.949 10.3C23.949 10.3 23.949 10.3 23.9489 10.3C23.9489 10.3 23.9489 10.3 23.9488 10.3C23.9488 10.3 23.9488 10.3 23.9487 10.3C23.9487 10.3 23.9487 10.3 23.9486 10.3C23.9486 10.3 23.9486 10.3 23.9485 10.3C23.9485 10.3 23.9485 10.3 23.9484 10.3C23.9484 10.3 23.9484 10.3 23.9483 10.3C23.9483 10.3 23.9483 10.3 23.9482 10.3C23.9482 10.3 23.9482 10.3 23.9481 10.3C23.9481 10.3 23.9481 10.3 23.948 10.3C23.948 10.3 23.948 10.3 23.9479 10.3C23.9479 10.3 23.9479 10.3 23.9478 10.3C23.9478 10.3 23.9478 10.3 23.9477 10.3C23.9477 10.3 23.9477 10.3 23.9476 10.3C23.9476 10.3 23.9476 10.3 23.9475 10.3C23.9475 10.3 23.9475 10.3 23.9474 10.3C23.9474 10.3 23.9474 10.3 23.9473 10.3C23.9473 10.3 23.9473 10.3 23.9472 10.3C23.9472 10.3 23.9472 10.3 23.9471 10.3C23.9471 10.3 23.9471 10.3 23.947 10.3C23.947 10.3 23.947 10.3 23.9469 10.3C23.9469 10.3 23.9469 10.3 23.9468 10.3C23.9468 10.3 23.9468 10.3 23.9467 10.3C23.9467 10.3 23.9467 10.3 23.9466 10.3C23.9466 10.3 23.9466 10.3 23.9465 10.3C23.9465 10.3 23.9465 10.3 23.9464 10.3C23.9464 10.3 23.9464 10.3 23.9463 10.3C23.9463 10.3 23.9463 10.3 23.9462 10.3C23.9462 10.3 23.9462 10.3 23.9461 10.3C23.9461 10.3 23.9461 10.3 23.946 10.3C23.946 10.3 23.946 10.3 23.9459 10.3C23.9459 10.3 23.9459 10.3 23.9458 10.3C23.9458 10.3 23.9458 10.3 23.9457 10.3C23.9457 10.3 23.9457 10.3 23.9456 10.3C23.9456 10.3 23.9456 10.3 23.945
10295 10.3C23.9455 10.3 23.9455 10.3 23.9454 10.3C23.9454 10.3 23.9454 10.3 23.9453 10.3C23.9453 10.3 23.9453 10.3 23.9452 10.3C23.9452 10.3 23.9452 10.3 23.9451 10.3C23.9451 10.3 23.9451 10.3 23.945 10.3C23.945 10.3 23.945 10.3 23.9449 10.3C23.9449 10.3 23.9449 10.3 23.9448 10.3C23.9448 10.3 23.9448 10.3 23.9447 10.3C23.9447 10.3 23.9447 10.3 23.9446 10.3C23.9446 10.3 23.9446 10.3 23.9445 10.3C23.9445 10.3 23.9445 10.3 23.9444 10.3C23.9444 10.3 23.9444 10.3 23.9443 10.3C23.9443 10.3 23.9443 10.3 23.9442 10.3C23.9442 10.3 23.9442 10.3 23.9441 10.3C23.9441 10.3 23.9441 10.3 23.944 10.3C23.944 10.3 23.944 10.3 23.9439 10.3C23.9439 10.3 23.9439 10.3 23.9438 10.3C23.9438 10.3 23.9438 10.3 23.9437 10.3C23.9437 10.3 23.9437 10.3 23.9436 10.3C23.9436 10.3 23.9436 10.3 23.9435 10.3C23.9435 10.3 23.9435 10.3 23.9434 10.3C23.9434 10.3 23.9434 10.3 23.9433 10.3C23.9433 10.3 23.9433 10.3 23.9432 10.3C23.9432 10.3 23.9432 10.3 23.9431 10.3C23.9431 10.3 23.9431 10.3 23.943 10.3C23.943 10.3 23.943 10.3 23.9429 10.3C23.9429 10.3 23.9429 10.3 23.9428 10.3C23.9428 10.3 23.9428 10.3 23.9427 10.3C23.9427 10.3 23.9426 10.3 23.9426 10.3C23.9426 10.3 23.9425 10.3 23.9425 10.3C23.9425 10.3 23.9424 10.3 23.9424 10.3C23.9424 10.3 23.9423 10.3 23.9423 10.3C23.9423 10.3 23.9422 10.3 23.9422 10.3C23.9422 10.3 23.9421 10.3 23.9421 10.3C23.9421 10.3 23.942 10.3 23.942 10.3C23.942 10.3 23.9419 10.3 23.9419 10.3C23.9419 10.3 23.9418 10.3 23.9418 10.3C23.9418 10.3 23.9417 10.3 23.9417 10.3C23.9417 10.3 23.9416 10.3 23.9416 10.3C23.9416 10.3 23.9415 10.3 23.9415 10.3C23.9415 10.3 23.9414 10.3 23.9414 10.3C23.9414 10.3 23.9413 10.3 23.9413 10.3C23.9413 10.3 23.9412 10.3 23.9412 10.3C23.9412 10.3 23.9411 10.3 23.9411 10.3C23.9411 10.3 23.941 10.3 23.941 10.3C23.941 10.3 23.9409 10.3 23.9409 10.3C23.9409 10.3 23.9408 10.3 23.9408 10.3C23.9408 10.3 23.9407 10.3 23.9407 10.3C23.9407 10.3 23.9406 10.3 23.9406 10.3C23.9406 10.3 23.9405 10.3 23.9405 10.3C23.9405 10.3 23.9404 10.3 23.9404 10.3C23.9404 10.3 23.9403 10.3 23.9403 10.3C23.9403 10.3 23.9402 10.3 23.9402 10.3C23.9402 10.3 23.9401 10.3 23.9401 10.3C23.9401 10.3 23.94 10.3 23.94 10.3C23.94 10.3 23.9399 10.3 23.9399 10.3C23.9399 10.3 23.9398 10.3 23.9398 10.3C23.9398 10.3 23.9397 10.3 23.9397 10.3C23.9397 10.3 23.9396 10.3 23.9396 10.3
1029C23.9396 10.3 23.9395 10.3 23.9395 10.3C23.9395 10.3 23.9394 10.3 23.9394 10.3C23.9394 10.3 23.9393 10.3 23.9393 10.3C23.9393 10.3 23.9392 10.3 23.9392 10.3C23.9392 10.3 23.9391 10.3 23.9391 10.3C23.9391 10.3 23.939 10.3 23.939 10.3C23.939 10.3 23.9389 10.3 23.9389 10.3C23.9389 10.3 23.9388 10.3 23.9388 10.3C23.9388 10.3 23.9387 10.3 23.9387 10.3C23.9387 10.3 23.9386 10.3 23.9386 10.3C23.9386 10.3 23.9385 10.3 23.9385 10.3C23.9385 10.3 23.9384 10.3 23.9384 10.3C23.9384 10.3 23.9383 10.3 23.9383 10.3C23.9383 10.3 23.9382 10.3 23.9382 10.3C23.9382 10.3 23.9381 10.3 23.9381 10.3C23.9381 10.3 23.938 10.3 23.938 10.3C23.938 10.3 23.9379 10.3 23.9379 10.3C23.9379 10.3 23.9378 10.3 23.9378 10.3C23.9378 10.3 23.9377 10.3 23.9377 10.3C23.9377 10.3 23.9376 10.3 23.9376 10.3C23.9376 10.3 23.9375 10.3 23.9375 10.3C23.9375 10.3 23.9374 10.3 23.9374 10.3V11.7C23.9374 11.7 23.9375 11.7 23.9375 11.7C23.9375 11.7 23.9376 11.7 23.9376 11.7C23.9376 11.7 23.9377 11.7 23.9377 11.7C23.9377 11.7 23.9378 11.7 23.9378 11.7C23.9378 11.7 23.9379 11.7 23.9379 11.7C23.9379 11.7 23.938 11.7 23.938 11.7C23.938 11.7 23.9381 11.7 23.9381 11.7C23.9381 11.7 23.9382 11.7 23.9382 11.7C23.9382 11.7 23.9383 11.7 23.9383 11.7C23.9383 11.7 23.9384 11.7 23.9384 11.7C23.9384 11.7 23.9385 11.7 23.9385 11.7C23.9385 11.7 23.9386 11.7 23.9386 11.7C23.9386 11.7 23.9387 11.7 23.9387 11.7C23.9387 11.7 23.9388 11.7 23.9388 11.7C23.9388 11.7 23.9389 11.7 23.9389 11.7C23.9389 11.7 23.939 11.7 23.939 11.7C23.939 11.7 23.9391 11.7 23.9391 11.7C23.9391 11.7 23.9392 11.7 23.9392 11.7C23.9392 11.7 23.9393 11.7 23.9393 11.7C23.9393 11.7 23.9394 11.7 23.9394 11.7C23.9394 11.7 23.9395 11.7 23.9395 11.7C23.9395 11.7 23.9396 11.7 23.9396 11.7C23.9396 11.7 23.9397 11.7 23.9397 11.7C23.9397 11.7 23.9398 11.7 23.9398 11.7C23.9398 11.7 23.9399 11.7 23.9399 11.7C23.9399 11.7 23.94 11.7 23.94 11.7C23.94 11.7 23.9401 11.7 23.9401 11.7C23.9401 11.7 23.9402 11.7 23.9402 11.7C23.9402 11.7 23.9403 11.7 23.9403 11.7C23.9403 11.7 23.9404 11.7 23.9404 11.7C23.9404 11.7 23.9405 11.7 23.9405 11.7C23.9405 11.7 23.9406 11.7 23.9406 11.7C23.9406 11.7 23.9407 11.7 23.9407 11.7C23.9407 11.7 23.9408 11.7 23.9408 11.7C23.9408 11.7 23.9409 11.7 23.9409 11.7C23.9409 11.7 23.941 11.7 23.941 11.7C23.941 11.7 23.9411 11.7 23.9411 11.7C23.9411 11.7 23.9412 11.7 23.9412 11.7C23.9412 11.7 23.9413 11.7 23.9413 11.7C23.9413 11.7 23.9414 11.7 23.9414 11.7C23.9414 11.7 23.9415 11.7 23.9415 11.7C23.9415 11.7 23.9416 11.7 23.9416 11.7C23.9416 11.7 23.9417 11.7 23.9417 11.7C23.9417 11.7 23.9418 11.7 23.9418 11.7C23.9418 11.7 23.9419 11.7 23.9419 11.7C23.9419 11.7 23.942 11.7 23.942 11.7C23.942 11.7 23.9421 11.7 23.9421 11.7C23.9421 11.7 23.9422 11.7 23.9422 11.7C23.9422 11.7 23.9423 11.7 23.9423 11.7C23.9423 11.7 23.9424 11.7 23.9424 11.7C23.9424 11.7 23.9425 11.7 23.9425 11.7C23.9425 11.7 23.9426 11.7 23.9426 11.7C23.9426 11.7 23.9427 11.7 23.9427 11.7C23.9428 11.7 23.9428 11.7 23.9428 11.7C23.9429 11.7 23.9429 11.7 23.9429 11.7C23.943 11.7 23.943 11.7 23.943 11.7C23.9431 11.7 23.9431 11.7 23.9431 11.7C23.9432 11.7 23.9432 11.7 23.9432 11.7C23.9433 11.7 23.9433 11.7 23.9433 11.7C23.9434 11.7 23.9434 11.7 23.9434 11.7C23.9435 11.7 23.9435 11.7 23.9435 11.7C23.9436 11.7 23.9436 11.7 23.9436 11.7C23.9437 11.7 23.9437 11.7 23.9437 11.7C23.9438 11.7 23.9438 11.7 23.9438 11.7C23.9439 11.7 23.9439 11.7 23.9439 11.7C23.944 11.7 23.944 11.7 23.944 11.7C23.9441 11.7 23.9441 11.7 23.9441 11.7C23.9442 11.7 23.9442 11.7 23.9442 11.7C23.9443 11.7 23.9443 11.7 23.9443 11.7C23.9444 11.7 23.9444 11.7 23.9444 11.7C23.9445 11.7 23.9445 11.7 23.9445 11.7C23.9446 11.7 23.9446 11.7 23.9446 11.7C23.9447 11.7 23.9447 11.7 23.9447 11.7C23.9448 11.7 23.9448 11.7 23.9448 11.7C23.9449 11.7 23.9449 11.7 23.9449 11.7C23.945 11.7 23.945 11.7 23.945 11.7C23.9451 11.7 23.9451 11.7 23.9451 11.7C23.9452 11.7 23.9452 11.7 23.9452 11.7C23.9453 11.7 23.9453 11.7 23.9453 11.7C23.9454 11.7 23.9454 11.7 23.9454 11.7C23.9455 11.7 23.9455 11.7 23.9455 11.7C23.9456 11.7 23.9456 11.7 23.9456 11.7C23.9457 11.7 23.9457 11.7 23.9457 11.7C23.9458 11.7 23.9458 11.7 23.9458 11.7C23.9459 11.7 23.9459 11.7 23.9459 11.7C23.946 11.7 23.946 11.7 23.946 11.7C23.9461 11.7 23.9461 11.7 23.9461 11.7C23.9462 11.7 23.9462 11.7 23.9462 11.7C23.9463 11.7 23.9463 11.7 23.9463 11.7C23.9464 11.7 23.9464 11.7 23.9464 11.7C23.9465 11.7 23.9465 11.7 23.9465 11.7C23.9466 11.7 23.9466 11.7 23.9466 11.7C23.9467 11.7 23.9467 11.7 23.9467 11.7C23.9468 11.7 23.9468 11.7 23.9468 11.7C23.9469 11.7 23.9469 11.7 23.9469 11.7C23.947 11.7 23.947 11.7 23.947 11.7C23.9471 11.7 23.9471 11.7 23.9471 11.7C23.9472 11.7 23.9472 11.7 23.9472 11.7C23.9473 11.7 23.9473 11.7 23.9473 11.7C23.9474 11.7 23.9474 11.7 23.9474 11.7C23.9475 11.7 23.9475 11.7 23.9475 11.7C23.9476 11.7 23.9476 11.7 23.9476 11.7C23.9477 11.7 23.9477 11.7 23.9477 11.7C23.9478 11.7 23.9478 11.7 23.9478 11.7C23.9479 11.7 23.9479 11.7 23.9479 11.7C23.948 11.7 23.948 11.7 23.948 11.7C23.9481 11.7 23.9481 11.7 23.9481 11.7C23.9482 11.7 23.9482 11.7 23.9482 11.7C23.9483 11.7 23.9483 11.7 23.9483 11.7C23.9484 11.7 23.9484 11.7 23.9484 11.7C23.9485 11.7 23.9485 11.7 23.9485 11.7C23.9486 11.7 23.9486 11.7 23.9486 11.7C23.9487 11.7 23.9487 11.7 23.9487 11.7C23.9488 11.7 23.9488 11.7 23.9488 11.7C23.9489 11.7 23.9489 11.7 23.9489 11.7C23.949 11.7 23.949 11.7 23.949 11.7C23.9491 11.7 23.9491 11.7 23.9491 11.7C23.9492 11.7 23.9492 11.7 23.9492 11.7C23.9493 11.7 23.9493 11.7 23.9493 11.7C23.9494 11.7 23.9494 11.7 23.9494 11.7C23.9495 11.7 23.9495 11.7 23.9495 11.7C23.9496 11.7 23.9496 11.7 23.9496 11.7C23.9497 11.7 23.9497 11.7 23.9497 11.7C23.9498 11.7 23.9498 11.7 23.9498 11.7C23.9499 11.7 23.9499 11.7 23.9499 11.7C23.95 11.7 23.95 11.7 23.95 11.7C23.9501 11.7 23.9501 11.7 23.9501 11.7C23.9502 11.7 23.9502 11.7 23.9502 11.7C23.9503 11.7 23.9503 11.7 23.9503 11.7C23.9504 11.7 23.9504 11.7 23.9504 11.7C23.9505 11.7 23.9505 11.7 23.9505 11.7C23.9506 11.7 23.9506 11.7 23.9506 11.7C23.9507 11.7 23.9507 11.7 23.9507 11.7C23.9508 11.7 23.9508 11.7 23.9508 11.7C23.9509 11.7 23.9509 11.7 23.951 11.7C23.951 11.7 23.951 11.7 23.951 11.7C23.9511 11.7 23.9511 11.7 23.9512 11.7C23.9512 11.7 23.9512 11.7 23.9513 11.7C23.9513 11.7 23.9513 11.7 23.9514 11.7C23.9514 11.7 23.9514 11.7 23.9515 11.7C23.9515 11.7 23.9515 11.7 23.9516 11.7C23.9516 11.7 23.9516 11.7 23.9517 11.7C23.9517 11.7 23.9517 11.7 23.9518 11.7C23.9518 11.7 23.9518 11.7 23.9519 11.7C23.9519 11.7 23.9519 11.7 23.952 11.7C23.952 11.7 23.952 11.7 23.9521 11.7C23.9521 11.7 23.9521 11.7 23.9522 11.7C23.9522 11.7 23.9522 11.7 23.9523 11.7C23.9523 11.7 23.9523 11.7 23.9524 11.7C23.9524 11.7 23.9524 11.7 23.9525 11.7C23.9525 11.7 23.9525 11.7 23.9526 11.7C23.9526 11.7 23.9526 11.7 23.9527 11.7C23.9527 11.7 23.9527 11.7 23.9528 11.7C23.9528 11.7 23.9528 11.7 23.9529 11.7C23.9529 11.7 23.9529 11.7 23.953 11.7C23.953 11.7 23.953 11.7 23.9531 11.7C23.9531 11.7 23.9531 11.7 23.9532 11.7C23.9532 11.7 23.9532 11.7 23.9533 11.7C23.9533 11.7 23.9533 11.7 23.9534 11.7C23.9534 11.7 23.9534 11.7 23.9535 11.7C23.9535 11.7 23.9535 11.7 23.9536 11.7C23.9536 11.7 23.9536 11.7 23.9537 11.7C23.9537 11.7 23.9537 11.7 23.9538 11.7C23.9538 11.7 23.9538 11.7 23.9539 11.7C23.9539 11.7 23.9539 11.7 23.954 11.7C23.954 11.7 23.954 11.7 23.9541 11.7C23.9541 11.7 23.9541 11.7 23.9542 11.7C23.9542 11.7 23.9542 11.7 23.9543 11.7C23.9543 11.7 23.9543 11.7 23.9544 11.7C23.9544 11.7 23.9544 11.7 23.9545 11.7C23.9545 11.7 23.9545 11.7 23.9546 11.7C23.9546 11.7 23.9546 11.7 23.9547 11.7C23.9547 11.7 23.9547 11.7 23.9548 11.7C23.9548 11.7 23.9548 11.7 23.9549 11.7C23.9549 11.7 23.9549 11.7 23.955 11.7C23.955 11.7 23.955 11.7 23.9551 11.7C23.9551 11.7 23.9551 11.7 23.9552 11.7C23.9552 11.7 23.9552 11.7 23.9553 11.7C23.9553 
102911.7 23.9553 11.7 23.9554 11.7C23.9554 11.7 23.9554 11.7 23.9555 11.7C23.9555 11.7 23.9555 11.7 23.9556 11.7C23.9556 11.7 23.9556 11.7 23.9557 11.7C23.9557 11.7 23.9557 11.7 23.9558 11.7C23.9558 11.7 23.9558 11.7 23.9559 11.7C23.9559 11.7 23.9559 11.7 23.956 11.7C23.956 11.7 23.956 11.7 23.9561 11.7C23.9561 11.7 23.9561 11.7 23.9562 11.7C23.9562 11.7 23.9562 11.7 23.9563 11.7C23.9563 11.7 23.9563 11.7 23.9564 11.7C23.9564 11.7 23.9564 11.7 23.9565 11.7C23.9565 11.7 23.9565 11.7 23.9566 11.7C23.9566 11.7 23.9566 11.7 23.9567 11.7C23.9567 11.7 23.9567 11.7 23.9568 11.7C23.9568 11.7 23.9568 11.7 23.9569 11.7C23.9569 11.7 23.9569 11.7 23.957 11.7C23.957 11.7 23.957 11.7 23.9571 11.7C23.9571 11.7 23.9571 11.7 23.9572 11.7C23.9572 11.7 23.9572 11.7 23.9573 11.7C23.9573 11.7 23.9573 11.7 23.9574 11.7C23.9574 11.7 23.9574 11.7 23.9575 11.7C23.9575 11.7 23.9575 11.7 23.9576 11.7C23.9576 11.7 23.9576 11.7 23.9577 11.7C23.9577 11.7 23.9577 11.7 23.9578 11.7C23.9578 11.7 23.9578 11.7 23.9579 11.7C23.9579 11.7 23.9579 11.7 23.958 11.7C23.958 11.7 23.958 11.7 23.9581 11.7C23.9581 11.7 23.9581 11.7 23.9582 11.7C23.9582 11.7 23.9582 11.7 23.9583 11.7C23.9583 11.7 23.9583 11.7 23.9584 11.7C23.9584 11.7 23.9584 11.7 23.9585 11.7C23.9585 11.7 23.9585 11.7 23.9586 11.7C23.9586 11.7 23.9586 11.7 23.9587 11.7C23.9587 11.7 23.9587 11.7 23.9588 11.7C23.9588 11.7 23.9588 11.7 23.9589 11.7C23.9589 11.7 23.959 11.7 23.959 11.7C23.959 11.7 23.959 11.7 23.9591 11.7C23.9591 11.7 23.9592 11.7 23.9592 11.7C23.9592 11.7 23.9593 11.7 23.9593 11.7C23.9593 11.7 23.9594 11.7 23.9594 11.7C23.9594 11.7 23.9595 11.7 23.9595 11.7C23.9595 11.7 23.9596 11.7 23.9596 11.7C23.9596 11.7 23.9597 11.7 23.9597 11.7C23.9597 11.7 23.9598 11.7 23.9598 11.7C23.9598 11.7 23.9599 11.7 23.9599 11.7C23.9599 11.7 23.96 11.7 23.96 11.7C23.96 11.7 23.9601 11.7 23.9601 11.7C23.9601 11.7 23.9602 11.7 23.9602 11.7C23.9602 11.7 23.9603 11.7 23.9603 11.7C23.9603 11.7 23.9604 11.7 23.9604 11.7C23.9604 11.7 23.9605 11.7 23.9605 11.7C23.9605 11.7 23.9606 11.7 23.9606 11.7C23.9606 11.7 23.9607 11.7 23.9607 11.7C23.9607 11.7 23.9608 11.7 23.9608 11.7C23.9608 11.7 23.9609 11.7 23.9609 11.7C23.9609 11.7 23.961 11.7 23.961 11.7C23.961 11.7 23.9611 11.7 23.9611 11.7C23.9611 11.7 23.9612 11.7 23.9612 11.7C23.9612 11.7 23.9613 11.7 23.9613 11.7C23.9613 11.7 23.9614 11.7 23.9614 11.7C23.9614 11.7 23.9615 11.7 23.9615 11.7C23.9615 11.7 23.9616 11.7 23.9616 11.7C23.9616 11.7 23.9617 11.7 23.9617 11.7C23.9617 11.7 23.9618 11.7 23.9618 11.7C23.9618 11.7 23.9619 11.7 23.9619 11.7C23.9619 11.7 23.962 11.7 23.962 11.7C23.962 11.7 23.9621 11.7 23.9621 11.7C23.9621 11.7 23.9622 11.7 23.9622 11.7C23.9622 11.7 23.9623 11.7 23.9623 11.7C23.9623 11.7 23.9624 11.7 23.9624 11.7C23.9624 11.7 23.9625 11.7 23.9625 11.7C23.9625 11.7 23.9626 11.7 23.9626 11.7C23.9626 11.7 23.9627 11.7 23.9627 11.7C23.9627 11.7 23.9628 11.7 23.9628 11.7C23.9628 11.7 23.9629 11.7 23.9629 11.7C23.9629 11.7 23.963 11.7 23.963 11.7C23.963 11.7 23.9631 11.7 23.9631 11.7C23.9631 11.7 23.9632 11.7 23.9632 11.7C23.9632 11.7 23.9633 11.7 23.9633 11.7C23.9633 11.7 23.9634 11.7 23.9634 11.7C23.9634 11.7 23.9635 11.7 23.9635 11.7C23.9635 11.7 23.9636 11.7 23.9636 11.7C23.9636 11.7 23.9637 11.7 23.9637 11.7C23.9637 11.7 23.9638 11.7 23.9638 11.7C23.9638 11.7 23.9639 11.7 23.9639 11.7C23.9639 11.7 23.964 11.7 23.964 11.7C23.964 11.7 23.9641 11.7 23.9641 11.7C23.9641 11.7 23.9642 11.7 23.9642 11.7C23.9642 11.7 23.9643 11.7 23.9643 11.7C23.9643 11.7 23.9644 11.7 23.9644 11.7C23.9644 11.7 23.9645 11.7 23.9645 11.7C23.9645 11.7 23.9646 11.7 23.9646 11.7C23.9646 11.7 23.9647 11.7 23.9647 11.7C23.9647 11.7 23.9648 11.7 23.9648 11.7C23.9648 11.7 23.9649 11.7 23.9649 11.7C23.9649 11.7 23.965 11.7 23.965 11.7C23.965 11.7 23.9651 11.7 23.9651 11.7C23.9651 11.7 23.9652 11.7 23.9652 11.7C23.9652 11.7 23.9653 11.7 23.9653 11.7C23.9653 11.7 23.9654 11.7 23.9654 11.7C23.9654 11.7 23.9655 11.7 23.9655 11.7C23.9655 11.7 23.9656 11.7 23.9656 11.7C23.9656 11.7 23.9657 11.7 23.9657 11.7C23.9657 11.7 23.9658 11.7 23.9658 11.7C23.9658 11.7 23.9659 11.7 23.9659 11.7C23.9659 11.7 23.966 11.7 23.966 11.7C23.966 11.7 23.9661 11.7 23.9661 11.7C23.9661 11.7 23.9662 11.7 23.9662 11.7C23.9662 11.7 23.9663 11.7 23.9663 11.7C23.9663 11.7 23.9664 11.7 23.9664 11.7C23.9664 11.7 23.9665 11.7 23.9665 11.7C23.9665 11.7 23.9666 11.7 23.9666 11.7C23.9666 11.7 23.9667 11.7 23.9667 11.7C23.9667 11.7 23.9668 11.7 23.9668 11.7C23.9668 11.7 23.9669 11.7 23.9669 11.7C23.9669 11.7 23.967 11.7 23.967 11.7C23.967 11.7 23.9671 11.7 23.9671 11.7C23.9671 11.7 23.9672 11.7 23.9672 11.7C23.9672 11.7 23.9673 11.7 23.9673 11.7C23.9674 11.7 23.9674 11.7 23.9674 11.7C23.9675 11.7 23.9675 11.7 23.9675 11.7C23.9676 11.7 23.9676 11.7 23.9676 11.7C23.9677 11.7 23.9677 11.7 23.9677 11.7C23.9678 11.7 23.9678 11.7 23.9678 11.7C23.9679 11.7 23.9679 11.7 23.9679 11.7C23.968 11.7 23.968 11.7 23.968 11.7C23.9681 11.7 23.9681 11.7 23.9681 11.7C23.9682 11.7 23.9682 11.7 23.9682 11.7C23.9683 11.7 23.9683 11.7 23.9683 11.7C23.9684 11.7 23.9684 11.7 23.9684 11.7C23.9685 11.7 23.9685 11.7 23.9685 11.7C23.9686 11.7 23.9686 11.7 23.9686 11.7C23.9687 11.7 23.9687 11.7 23.9687 11.7C23.9688 11.7 23.9688 11.7 23.9688 11.7C23.9689 11.7 23.9689 11.7 23.9689 11.7C23.969 11.7 23.969 11.7 23.969 11.7C23.9691 11.7 23.9691 11.7 23.9691 11.7C23.9692 11.7 23.9692 11.7 23.9692 11.7C23.9693 11.7 23.9693 11.7 23.9693 11.7C23.9694 11.7 23.9694 11.7 23.9694 11.7C23.9695 11.7 23.9695 11.7 23.9695 11.7C23.9696 11.7 23.9696 11.7 23.9696 11.7C23.9697 11.7 23.9697 11.7 23.9697 11.7C23.9698 11.7 23.9698 11.7 23.9698 11.7C23.9699 11.7 23.9699 11.7 23.9699 11.7C23.97 11.7 23.97 11.7 23.97 11.7C23.9701 11.7 23.9701 11.7 23.9701 11.7C23.9702 11.7 23.9702 11.7 23.9702 11.7C23.9703 11.7 23.9703 11.7 23.9703 11.7C23.9704 11.7 23.9704 11.7 23.9704 11.7C23.9705 11.7 23.9705 11.7 23.9705 11.7C23.9706 11.7 23.9706 11.7 23.9706 11.7C23.9707 11.7 23.9707 11.7 23.9707 11.7C23.9708 11.7 23.9708 11.7 23.9708 11.7C23.9709 11.7 23.9709 11.7 23.9709 11.7C23.971 11.7 23.971 11.7 23.971 11.7C23.9711 11.7 23.9711 11.7 23.9711 11.7C23.9712 11.7 23.9712 11.7 23.9712 11.7C23.9713 11.7 23.9713 11.7 23.9713 11.7C23.9714 11.7 23.9714 11.7 23.9714 11.7C23.9715 11.7 23.9715 11.7 23.9715 11.7C23.9716 11.7 23.9716 11.7 23.9716 11.7C23.9717 11.7 23.9717 11.7 23.9717 11.7C23.9718 11.7 23.9718 11.7 23.9718 11.7C23.9719 11.7 23.9719 11.7 23.9719 11.7C23.972 11.7 23.972 11.7 23.972 11.7C23.9721 11.7 23.9721 11.7 23.9721 11.7C23.9722 11.7 23.9722 11.7 23.9722 11.7C23.9723 11.7 23.9723 11.7 23.9723 11.7C23.9724 11.7 23.9724 11.7 23.9724 11.7C23.9725 11.7 23.9725 11.7 23.9725 11.7C23.9726 11.7 23.9726 11.7 23.9726 11.7C23.9727 11.7 23.9727 11.7 23.9727 11.7C23.9728 11.7 23.9728 11.7 23.9728 11.7C23.9729 11.7 23.9729 11.7 23.9729 11.7C23.973 11.7 23.973 11.7 23.973 11.7C23.9731 11.7 23.9731 11.7 23.9731 11.7C23.9732 11.7 23.9732 11.7 23.9732 11.7C23.9733 11.7 23.9733 11.7 23.9733 11.7C23.9734 11.7 23.9734 11.7 23.9734 11.7C23.9735 11.7 23.9735 11.7 23.9735 11.7C23.9736 11.7 23.9736 11.7 23.9736 11.7C23.9737 11.7 23.9737 11.7 23.9737 11.7C23.9738 11.7 23.9738 11.7 23.9738 11.7C23.9739 11.7 23.9739 11.7 23.9739 11.7C23.974 11.7 23.974 11.7 23.974 11.7C23.974
10291 11.7 23.9741 11.7 23.9741 11.7C23.9742 11.7 23.9742 11.7 23.9742 11.7C23.9743 11.7 23.9743 11.7 23.9743 11.7C23.9744 11.7 23.9744 11.7 23.9744 11.7C23.9745 11.7 23.9745 11.7 23.9745 11.7C23.9746 11.7 23.9746 11.7 23.9746 11.7C23.9747 11.7 23.9747 11.7 23.9747 11.7C23.9748 11.7 23.9748 11.7 23.9748 11.7C23.9749 11.7 23.9749 11.7 23.9749 11.7C23.975 11.7 23.975 11.7 23.975 11.7C23.9751 11.7 23.9751 11.7 23.9751 11.7C23.9752 11.7 23.9752 11.7 23.9752 11.7C23.9753 11.7 23.9753 11.7 23.9753 11.7C23.9754 11.7 23.9754 11.7 23.9755 11.7C23.9755 11.7 23.9755 11.7 23.9755 11.7C23.9756 11.7 23.9756 11.7 23.9757 11.7C23.9757 11.7 23.9757 11.7 23.9757 11.7C23.9758 11.7 23.9758 11.7 23.9759 11.7C23.9759 11.7 23.9759 11.7 23.976 11.7C23.976 11.7 23.976 11.7 23.9761 11.7C23.9761 11.7 23.9761 11.7 23.9762 11.7C23.9762 11.7 23.9762 11.7 23.9763 11.7C23.9763 11.7 23.9763 11.7 23.9764 11.7C23.9764 11.7 23.9764 11.7 23.9765 11.7C23.9765 11.7 23.9765 11.7 23.9766 11.7C23.9766 11.7 23.9766 11.7 23.9767 11.7C23.9767 11.7 23.9767 11.7 23.9768 11.7C23.9768 11.7 23.9768 11.7 23.9769 11.7C23.9769 11.7 23.9769 11.7 23.977 11.7C23.977 11.7 23.977 11.7 23.9771 11.7C23.9771 11.7 23.9771 11.7 23.9772 11.7C23.9772 11.7 23.9772 11.7 23.9773 11.7C23.9773 11.7 23.9773 11.7 23.9774 11.7C23.9774 11.7 23.9774 11.7 23.9775 11.7C23.9775 11.7 23.9775 11.7 23.9776 11.7C23.9776 11.7 23.9776 11.7 23.9777 11.7C23.9777 11.7 23.9777 11.7 23.9778 11.7C23.9778 11.7 23.9778 11.7 23.9779 11.7C23.9779 11.7 23.9779 11.7 23.978 11.7C23.978 11.7 23.978 11.7 23.9781 11.7C23.9781 11.7 23.9781 11.7 23.9782 11.7C23.9782 11.7 23.9782 11.7 23.9783 11.7C23.9783 11.7 23.9783 11.7 23.9784 11.7C23.9784 11.7 23.9784 11.7 23.9785 11.7C23.9785 11.7 23.9785 11.7 23.9786 11.7C23.9786 11.7 23.9786 11.7 23.9787 11.7C23.9787 11.7 23.9787 11.7 23.9788 11.7C23.9788 11.7 23.9788 11.7 23.9789 11.7C23.9789 11.7 23.9789 11.7 23.979 11.7C23.979 11.7 23.979 11.7 23.9791 11.7C23.9791 11.7 23.9791 11.7 23.9792 11.7C23.9792 11.7 23.9792 11.7 23.9793 11.7C23.9793 11.7 23.9793 11.7 23.9794 11.7C23.9794 11.7 23.9794 11.7 23.9795 11.7C23.9795 11.7 23.9795 11.7 23.9796 11.7C23.9796 11.7 23.9796 11.7 23.9797 11.7C23.9797 11.7 23.9797 11.7 23.9798 11.7C23.9798 11.7 23.9798 11.7 23.9799 11.7C23.9799 11.7 23.9799 11.7 23.98 11.7C23.98 11.7 23.98 11.7 23.9801 11.7C23.9801 11.7 23.9801 11.7 23.9802 11.7C23.9802 11.7 23.9802 11.7 23.9803 11.7C23.9803 11.7 23.9803 11.7 23.9804 11.7C23.9804 11.7 23.9804 11.7 23.9805 11.7C23.9805 11.7 23.9805 11.7 23.9806 11.7C23.9806 11.7 23.9806 11.7 23.9807 11.7C23.9807 11.7 23.9807 11.7 23.9808 11.7C23.9808 11.7 23.9808 11.7 23.9809 11.7C23.9809 11.7 23.9809 11.7 23.981 11.7C23.981 11.7 23.981 11.7 23.9811 11.7C23.9811 11.7 23.9811 11.7 23.9812 11.7C23.9812 11.7 23.9812 11.7 23.9813 11.7C23.9813 11.7 23.9813 11.7 23.9814 11.7C23.9814 11.7 23.9814 11.7 23.9815 11.7C23.9815 11.7 23.9815 11.7 23.9816 11.7C23.9816 11.7 23.9816 11.7 23.9817 11.7C23.9817 11.7 23.9817 11.7 23.9818 11.7C23.9818 11.7 23.9818 11.7 23.9819 11.7C23.9819 11.7 23.9819 11.7 23.982 11.7C23.982 11.7 23.982 11.7 23.9821 11.7C23.9821 11.7 23.9821 11.7 23.9822 11.7C23.9822 11.7 23.9822 11.7 23.9823 11.7C23.9823 11.7 23.9823 11.7 23.9824 11.7C23.9824 11.7 23.9824 11.7 23.9825 11.7C23.9825 11.7 23.9825 11.7 23.9826 11.7C23.9826 11.7 23.9826 11.7 23.9827 11.7C23.9827 11.7 23.9827 11.7 23.9828 11.7C23.9828 11.7 23.9828 11.7 23.9829 11.7C23.9829 11.7 23.9829 11.7 23.983 11.7C23.983 11.7 23.983 11.7 23.9831 11.7C23.9831 11.7 23.9831 11.7 23.9832 11.7C23.9832 11.7 23.9832 11.7 23.9833 11.7C23.9833 11.7 23.9833 11.7 23.9834 11.7C23.9834 11.7 23.9834 11.7 23.9835 11.7C23.9835 11.7 23.9835 11.7 23.9836 11.7C23.9836 11.7 23.9837 11.7 23.9837 11.7C23.9837 11.7 23.9837 11.7 23.9838 11.7C23.9838 11.7 23.9839 11.7 23.9839 11.7C23.9839 11.7 23.984 11.7 23.984 11.7C23.984 11.7 23.9841 11.7 23.9841 11.7C23.9841 11.7 23.9842 11.7 23.9842 11.7C23.9842 11.7 23.9843 11.7 23.9843 11.7C23.9843 11.7 23.9844 11.7 23.9844 11.7C23.9844 11.7 23.9845 11.7 23.9845 11.7C23.9845 11.7 23.9846 11.7 23.9846 11.7C23.9846 11.7 23.9847 11.7 23.9847 11.7C23.9847 11.7 23.9848 11.7 23.9848 11.7C23.9848 11.7 23.9849 11.7 23.9849 11.7C23.9849 11.7 23.985 11.7 23.985 11.7C23.985 11.7 23.9851 11.7 23.9851 11.7C23.9851 11.7 23.9852 11.7 23.9852 11.7C23.9852 11.7 23.9853 11.7 23.9853 11.7C23.9853 11.7 23.9854 11.7 23.9854 11.7C23.9854 11.7 23.9855 11.7 23.9855 11.7C23.9855 11.7 23.9856 11.7 23.9856 11.7C23.9856 11.7 23.9857 11.7 23.9857 11.7C23.9857 11.7 23.9858 11.7 23.9858 11.7C23.9858 11.7 23.9859 
102911.7 23.9859 11.7C23.9859 11.7 23.986 11.7 23.986 11.7C23.986 11.7 23.9861 11.7 23.9861 11.7C23.9861 11.7 23.9862 11.7 23.9862 11.7C23.9862 11.7 23.9863 11.7 23.9863 11.7C23.9863 11.7 23.9864 11.7 23.9864 11.7C23.9864 11.7 23.9865 11.7 23.9865 11.7C23.9865 11.7 23.9866 11.7 23.9866 11.7C23.9866 11.7 23.9867 11.7 23.9867 11.7C23.9867 11.7 23.9868 11.7 23.9868 11.7C23.9868 11.7 23.9869 11.7 23.9869 11.7C23.9869 11.7 23.987 11.7 23.987 11.7C23.987 11.7 23.9871 11.7 23.9871 11.7C23.9871 11.7 23.9872 11.7 23.9872 11.7C23.9872 11.7 23.9873 11.7 23.9873 11.7C23.9873 11.7 23.9874 11.7 23.9874 11.7C23.9874 11.7 23.9875 11.7 23.9875 11.7C23.9875 11.7 23.9876 11.7 23.9876 11.7C23.9876 11.7 23.9877 11.7 23.9877 11.7C23.9877 11.7 23.9878 11.7 23.9878 11.7C23.9878 11.7 23.9879 11.7 23.9879 11.7C23.9879 11.7 23.988 11.7 23.988 11.7C23.988 11.7 23.9881 11.7 23.9881 11.7C23.9881 11.7 23.9882 11.7 23.9882 11.7C23.9882 11.7 23.9883 11.7 23.9883 11.7C23.9883 11.7 23.9884 11.7 23.9884 11.7C23.9884 11.7 23.9885 11.7 23.9885 11.7C23.9885 11.7 23.9886 11.7 23.9886 11.7C23.9886 11.7 23.9887 11.7 23.9887 11.7C23.9887 11.7 23.9888 11.7 23.9888 11.7V10.3ZM23.9374 10.3C23.8489 10.3 23.77 10.3137 23.7492 10.317L23.9733 11.699C23.9783 11.6982 23.9808 11.6978 23.9824 11.6976C23.9838 11.6973 23.9831 11.6975 23.9807 11.6978C23.9784 11.698 23.9735 11.6986 23.9667 11.699
1029C23.9599 11.6995 23.9499 11.7 23.9374 11.7V10.3ZM23.8612 10.308C23.8011 10.308 23.7526 10.315 23.7342 10.3177C23.7289 10.3184 23.7243 10.3191 23.7215 10.3196C23.7176 10.3202 23.7178 10.3202 23.7164 10.3204C23.7146 10.3207 23.7201 10.3198 23.7284 10.3188L23.8912 11.7093C23.9081 11.7073 23.9222 11.7052 23.929 11.7041C23.9319 11.7037 23.9363 11.703 23.9367 11.7029C23.9382 11.7027 23.9379 11.7028 23.9369 11.7029C23.9352 11.7032 23.9267 11.7044 23.9147 11.7055C23.9024 11.7067 23.884 11.708 23.8612 11.708V10.308ZM23.6978 10.3231C23.6704 10.3275 23.619 10.3359 23.5611 10.3512L23.9177 11.705C23.9106 11.7069 23.9064 11.7077 23.9069 11.7076C23.908 11.7074 23.9116 11.7067 23.9219 11.705L23.6978 10.3231ZM23.595 10.3431C23.5855 10.3451 23.576 10.3472 23.5665 10.3492C23.5569 10.3512 23.5474 10.3532 23.5379 10.3552L23.8266 11.7251C23.8361 11.7231 23.8457 11.7211 23.8552 11.7191C23.8647 11.7171 23.8742 11.715 23.8837 11.713L23.595 10.3431ZM23.4713 10.3727C23.4513 10.379 23.4407 10.3823 23.4299 10.3854L23.8166 11.731C23.8477 11.722 23.8751 11.7133 23.8933 11.7076L23.4713 10.3727ZM23.3912 10.3977C23.3964 10.3959 23.3991 10.3951 23.3961 10.3961C23.3945 10.3966 23.393 10.3971 23.3895 10.3981C23.3865 10.3991 23.3819 10.4005 23.377 10.402C23.3592 10.4077 23.3183 10.4207 23.2714 10.4413L23.8342 11.7232C23.8212 11.7289 23.811 11.7327 23.8053 11.7347C23.7999 11.7367 23.7969 11.7376 23.799 11.7369C23.8001 11.7366 23.8015 11.7361 23.8044 11.7352C23.8068 11.7345 23.8112 11.7331 23.8155 11.7318C23.8242 11.729 23.8387 11.7244 23.8552 11.7186L23.3912 10.3977ZM23.2647 10.4443C23.2558 10.4483 23.263 10.4449 23.2727 10.441C23.2845 10.4363 23.3054 10.4286 23.3326 10.4214L23.6892 11.7752C23.7693 11.7541 23.8336 11.7235 23.8409 11.7202L23.2647 10.4443ZM23.239 10.4533C23.2132 10.4642 23.1661 10.4838 23.1163 10.5083L23.7341 11.7646C23.7415 11.761 23.7515 11.7566 23.7828 11.7434L23.239 10.4533ZM23.0989 10.5171C23.1059 10.5135 23.1119 10.5105 23.1078 10.5126C23.1064 10.5133 23.0971 10.5178 23.0865 10.5234C23.0666 10.5339 23.0192 10.5596 22.9664 10.6013L23.8345 11.6997C23.7894 11.7354 23.7505 11.756 23.7392 11.762C23.7329 11.7653 23.7279 11.7678 23.7307 11.7664C23.7307 11.7663 23.7408 11.7614 23.7515 11.7557L23.0989 10.5171ZM23.0742 10.5312C23.0304 10.5542 22.983 10.5805 22.9327 10.6117L23.6703 11.8016C23.6847 11.7927 23.702 11.7828 23.7268 11.7698L23.0742 10.5312ZM23.3015 11.2067C22.9752 10.5873 22.9752 10.5874 22.9751 10.5874C22.9751 10.5874 22.975 10.5874 22.975 10.5875C22.9749 10.5875 22.9748 10.5875 22.9747 10.5876C22.9746 10.5877 22.9744 10.5878 22.9742 10.5879C22.9739 10.588 22.9735 10.5882 22.9732 10.5884C22.9725 10.5888 22.9718 10.5892 22.971 10.5896C22.9696 10.5904 22.968 10.5912 22.9664 10.5921C22.9631 10.5939 22.9595 10.5959 22.9555 10.5981C22.9478 10.6025 22.9374 10.6086 22.9253 10.6162C22.9147 10.6229 22.8516 10.6618 22.788 10.7288L23.8035 11.6925C23.7418 11.7576 23.6816 11.7944 23.6733 11.7996C23.6625 11.8065 23.6531 11.8119 23.6462 11.8159C23.6426 11.8179 23.6393 11.8198 23.6362 11.8214C23.6347 11.8223 23.6332 11.823 23.6318 11.8238C23.6311 11.8242 23.6304 11.8246 23.6297 11.8249C23.6294 11.8251 23.629 11.8253 23.6287 11.8255C23.6285 11.8256 23.6284 11.8256 23.6282 11.8257C23.6281 11.8258 23.628 11.8258 23.6279 11.8259C23.6279 11.8259 23.6278 11.8259 23.6278 11.8259C23.6278 11.826 23.6277 11.826 23.3015 11.2067ZM22.913 10.6246L4.24821 22.8156L5.0138 23.9877L23.6785 11.7967L22.913 10.6246ZM4.24811 22.8157C3.29672 23.4374 3.02678 24.7211 3.5974 25.6909L4.80402 24.9809C4.59781 24.6304 4.71248 24.1846 5.01391 23.9877L4.24811 22.8157ZM3.59659 25.6895C3.97396 26.3342 4.64037 26.7 5.33548 26.7V25.3C5.13572 25.3 4.93011 25.1963 4.80483 24.9823L3.59659 25.6895ZM5.33548 26.7C5.71023 26.7 6.08476 26.5928 6.41789 26.3761L5.6544 25.2026C5.54961 25.2708 5.44053 25.3 5.33548 25.3V26.7ZM6.41903 26.3753L24.3831 14.6378L23.6173 13.4658L5.65326 25.2033L6.41903 26.3753ZM23.6174 14.6378L41.5815 26.3734L42.3471 25.2013L24.3831 13.4657L23.6174 14.6378ZM41.5826 26.3741C41.9157 26.5908 42.2902 26.698 42.665 26.698V25.298C42.5599 25.298 42.4508 25.2687 42.3461 25.2006L41.5826 26.3741ZM42.665 26.698C43.3607 26.698 44.0242 26.3282 44.402 25.6907L43.1975 24.977C43.0688 25.1943 42.8603 25.298 42.665 25.298V26.698ZM44.4031 25.6889C44.9744 24.7179 44.7006 23.4352 43.7532 22.8142L42.9857 23.9851C43.2873 24.1828 43.4019 24.6296 43.1964 24.9789L44.4031 25.6889ZM42.8619 22.9176L42.86 22.9196L43.8751 23.8837L43.877 23.8817L42.8619 22.9176Z",fill:"white",mask:"url(#path-2-outside-1_1434_3340)"})),X.createElement("path",{className:"arrow",opacity:.1,d:"M24.7898 0.886091L24.7017 0.827368H24.6921C24.6845 0.823204 24.6768 0.819072 24.669 0.815009C24.6679 0.814378 24.6668 0.813728 24.6656 0.813063C24.6588 0.809239 24.6503 0.804733 24.6403 0.800052C24.6075 0.783793 24.5762 0.769937 24.5522 0.759315L24.5496 0.758175L24.5496 0.758157L24.5462 0.756697L24.5219 0.746252L24.512 0.741971L24.5018 0.738315L24.4987 0.737224C24.4763 0.729196 24.4427 0.717161 24.4073 0.706964L24.4072 0.706946L24.4069 0.706839L24.3997 0.704483C24.3909 0.701638 24.372 0.695638 24.3472 0.690666C24.3302 0.686475 24.3059 0.680713 24.2784 0.67588C24.264 0.672504 24.2408 0.66746 24.2151 0.663974C24.1824 0.658901 24.1521 0.6564
102906 24.1341 0.654922L24.131 0.654667L24.1166 0.653478H24.1138C24.1095 0.653006 24.1031 0.652335 24.0963 0.651764C24.0858 0.650887 24.0717 0.65 24.0552 0.65H24.0551H24.055H24.0548H24.0547H24.0546H24.0545H24.0544H24.0542H24.0541H24.054H24.0539H24.0537H24.0536H24.0535H24.0534H24.0532H24.0531H24.053H24.0529H24.0527H24.0526H24.0525H24.0524H24.0522H24.0521H24.052H24.0519H24.0518H24.0516H24.0515H24.0514H24.0513H24.0511H24.051H24.0509H24.0508H24.0506H24.0505H24.0504H24.0503H24.0501H24.05H24.0499H24.0498H24.0496H24.0495H24.0494H24.0493H24.0491H24.049H24.0489H24.0488H24.0486H24.0485H24.0484H24.0483H24.0481H24.048H24.0479H24.0478H24.0476H24.0475H24.0474H24.0473H24.0471H24.047H24.0469H24.0468H24.0466H24.0465H24.0464H24.0463H24.0461H24.046H24.0459H24.0458H24.0456H24.0455H24.0454H24.0452H24.0451H24.045H24.0449H24.0447H24.0446H24.0445H24.0444H24.0442H24.0441H24.044H24.0439H24.0437H24.0436H24.0435H24.0434H24.0432H24.0431H24.043H24.0429H24.0427H24.0426H24.0425H24.0423H24.0422H24.0421H24.042H24.0418H24.0417H24.0416H24.0415H24.0413H24.0412H24.0411H24.041H24.0408H24.0407H24.0406H24.0405H24.0403H24.0402H24.0401H24.0399H24.0398H24.0397H24.0396H24.0394H24.0393H24.0392H24.0391H24.0389H24.0388H24.0387H24.0385H24.0384H24.0383H24.0382H24.038H24.0379H24.0378H24.0377H24.0375H24.0374H24.0373H24.0372H24.037H24.0369H24.0368H24.0366H24.0365H24.0364H24.0363H24.0361H24.036H24.0359H24.0358H24.0356H24.0355H24.0354H24.0352H24.0351H24.035H24.0349H24.0347H24.0346H24.0345H24.0344H24.0342H24.0341H24.034H24.0338H24.0337H24.0336H24.0335H24.0333H24.0332H24.0331H24.0329H24.0328H24.0327H24.0326H24.0324H24.0323H24.0322H24.0321H24.0319H24.0318H24.0317H24.0315H24.0314H24.0313H24.0312H24.031H24.0309H24.0308H24.0307H24.0305H24.0304H24.0303H24.0301H24.03H24.0299H24.0298H24.0296H24.0295H24.0294H24.0292H24.0291H24.029H24.0289H24.0287H24.0286H24.0285H24.0284H24.0282H24.0281H24.028H24.0278H24.0277H24.0276H24.0275H24.0273H24.0272H24.0271H24.0269H24.0268H24.0267H24.0266H24.0264H24.0263H24.0262H24.026H24.0259H24.0258H24.0257H24.0255H24.0254H24.0253H24.0252H24.025H24.0249H24.0248H24.0246H24.0245H24.0244H24.0243H24.0241H24.024H24.0239H24.0237H24.0236H24.0235H24.0234H24.0232H24.0231H24.023H24.0229H24.0227H24.0226H24.0225H24.0223H24.0222H24.0221H24.022H24.0218H24.0217H24.0216H24.0214H24.0213H24.0212H24.0211H24.0209H24.0208H24.0207H24.0205H24.0204H24.0203H24.0202H24.02H24.0199H24.0198H24.0196H24.0195H24.0194H24.0193H24.0191H24.019H24.0189H24.0188H24.0186H24.0185H24.0184H24.0182H24.0181H24.018H24.0179H24.0177H24.0176H24.0175H24.0173H24.0172H24.0171H24.017H24.0168H24.0167H24.0166H24.0165H24.0163H24.0162H24.0161H24.0159H24.0158H24.0157H24.0156H24.0154H24.0153H24.0152H24.015H24.0149H24.0148H24.0147H24.0145H24.0144H24.0143H24.0142H24.014H24.0139H24.0138H24.0136H24.0135H24.0134H24.0133H24.0131H24.013H24.0129H24.0127H24.0126H24.0125H24.0124H24.0122H24.0121H24.012H24.0119H24.0117H24.0116H24.0115H24.0113H24.0112H24.0111H24.011H24.0108H24.0107H24.0106H24.0105H24.0103H24.0102H24.0101H24.0099H24.0098H24.0097H24.0096H24.0094H24.0093H24.0092H24.0091H24.0089H24.0088H24.0087H24.0085H24.0084H24.0083H24.0082H24.008H24.0079H24.0078H24.0077H24.0075H24.0074H24.0073H24.0071H24.007H24.0069H24.0068H24.0066H24.0065H24.0064H24.0063H24.0061H24.006H24.0059H24.0058H24.0056H24.0055H24.0054H24.0052H24.0051H24.005H24.0049H24.0047H24.0046H24.0045H24.0044H24.0042H24.0041H24.004H24.0039H24.0037H24.0036H24.0035H24.0033H24.0032H24.0031H24.003H24.0028H24.0027H24.0026H24.0025H24.0023H24.0022H24.0021H24.002H24.0018H24.0017H24.0016H24.0015H24.0013H24.0012H24.0011H24.001H24.0008H24.0007H24.0006H24.0005H24.0003H24.0002H24.0001H23.9999H23.9998H23.9997H23.9996H23.9994H23.9993H23.9992H23.9991H23.9989H23.9988H23.9987H23.9986H23.9984H23.9983H23.9982H23.9981H23.9979H23.9978H23.9977H23.9976H23.9974H23.9973H23.9972H23.9971H23.9969H23.9968H23.9967H23.9966H23.9964H23.9963H23.9962H23.9961H23.9959H23.9958H23.9957H23.9956H23.9954H23.9953H23.9952H23.9951H23.9949H23.9948H23.9947H23.9946H23.9944H23.9943H23.9942H23.9941H23.9939H23.9938H23.9937H23.9936H23.9935H23.9933H23.9932H23.9931H23.993H23.9928H23.9927H23.9926H23.9925H23.9923H23.9922H23.9921H23.992H23.9918H23.9917H23.9916H23.9915H23.9913H23.9912H23.9911H23.991H23.9909H23.9907H23.9906H23.9905H23.9904H23.9903H23.9902H23.9901H23.9901H23.99H23.9899H23.9898H23.9897H23.9896H23.9895H23.9895H23.9894H23.9893H23.9892H23.9891H23.989H23.9889H23.9889H23.9888H23.9887H23.9886H23.9885H23.9884H23.9883H23.9883H23.9882H23.9881H23.988H23.9879H23.9878H23.9878H23.9877H23.9876H23.9875H23.9874H23.9873H23.9872H23.9872H23.9871H23.987H23.9869H23.9868H23.9867H23.9866H23.9866H23.9865H23.9864H23.9863H23.9862H23.9861H23.986H23.986H23.9859H23.9858H23.9857H23.9856H23.9855H23.9854H23.9854H23.9853H23.9852H23.9851H23.985H23.9849H23.9848H23.9848H23.9847H23.9846H23.9845H23.9844H23.9843H23.9843H23.9842H23.9841H23.984H23.9839H23.9838H23.9837H23.9837H23.9836H23.9835H23.9834H23.9833H23.9832H23.9831H23.9831H23.983H23.9829H23.9828H23.9827H23.9826H23.9825H23.9825H23.9824H23.9823H23.9822H23.9821H23.982H23.9819H23.9819H23.9818H23.9817H23.9816H23.9815H23.9814H23.9813H23.9813H23.9812H23.9811H23.981H23.9809H23.9808H23.9808H23.9807H23.9806H23.9805H23.9804H23.9803H23.9802H23.9802H23.9801H23.98H23.9799H23.9798H23.9797H23.9796H23.9796H23.9795H23.9794H23.9793H23.9792H23.9791H23.979H23.979H23.9789H23.9788H23.9787H23.9786H23.9785H23.9784H23.9784H23.9783H23.9782H23.9781H23.978H23.9779H23.9778H23.9778H23.9777H23.9776H23.9775H23.9774H23.9773H23.9773H23.9772H23.9771H23.977H23.9769H23.9768H23.9767H23.9767H23.9766H23.9765H23.9764H23.9763H23.9762H23.9761H23.9761H23.976H23.9759H23.9758H23.9757H23.9756H23.9755H23.9755H23.9754H23.9753H23.9752H23.9751H23.975H23.9749H23.9749H23.9748H23.9747H23.9746H23.9745H23.9744H23.9744H23.9743H23.9742H23.974
10291H23.974H23.9739H23.9738H23.9738H23.9737H23.9736H23.9735H23.9734H23.9733H23.9732H23.9732H23.9731H23.973H23.9729H23.9728H23.9727H23.9726H23.9726H23.9725H23.9724H23.9723H23.9722H23.9721H23.972H23.972H23.9719H23.9718H23.9717H23.9716H23.9715H23.9714H23.9714H23.9713H23.9712H23.9711H23.971H23.9709H23.9709H23.9708H23.9707H23.9706H23.9705H23.9704H23.9703H23.9703H23.9702H23.9701H23.97H23.9699H23.9698H23.9697H23.9697H23.9696H23.9695H23.9694H23.9693H23.9692H23.9691H23.9691H23.969H23.9689H23.9688H23.9687H23.9686H23.9685H23.9685H23.9684H23.9683H23.9682H23.9681H23.968H23.968H23.9679H23.9678H23.9677H23.9676H23.9675H23.9674H23.9674H23.9673H23.9672H23.9671H23.967H23.9669H23.9668H23.9668H23.9667H23.9666H23.9665H23.9664H23.9663H23.9662H23.9662H23.9661H23.966H23.9659H23.9658H23.9657H23.9656H23.9656H23.9655H23.9654H23.9653H23.9652H23.9651H23.965H23.965H23.9649H23.9648H23.9647H23.9646H23.9645H23.9645H23.9644H23.9643H23.9642H23.9641H23.964H23.9639H23.9639H23.9638H23.9637H23.9636H23.9635H23.9634H23.9633H23.9633H23.9632H23.9631H23.963H23.9629H23.9628H23.9627H23.9627H23.9626H23.9625H23.9624H23.9623H23.9622H23.9621H23.9621H23.962H23.9619H23.9618H23.9617H23.9616H23.9615H23.9615H23.9614H23.9613H23.9612H23.9611H23.961H23.961H23.9609H23.9608H23.9607H23.9606H23.9605H23.9604H23.9604H23.9603H23.9602H23.9601H23.96H23.9599H23.9598H23.9598H23.9597H23.9596H23.9595H23.9594H23.9593H23.9592H23.9592H23.9591H23.959H23.9589H23.9588H23.9587H23.9586H23.9586H23.9585H23.9584H23.9583H23.9582H23.9581H23.958H23.958H23.9579H23.9578H23.9577H23.9576H23.9575H23.9575H23.9574H23.9573H23.9572H23.9571H23.957H23.9569H23.9569H23.9568H23.9567H23.9566H23.9565H23.9564H23.9563H23.9563H23.9562H23.9561H23.956H23.9559H23.9558H23.9557H23.9557H23.9556H23.9555H23.9554H23.9553H23.9552H23.9551H23.9551H23.955H23.9549H23.9548H23.9547H23.9546H23.9546H23.9545H23.9544H23.9543H23.9542H23.9541H23.954H23.954H23.9539H23.9538H23.9537H23.9536H23.9535H23.9534H23.9534H23.9533H23.9532H23.9531H23.953H23.9529H23.9528H23.9528H23.9527H23.9526H23.9525H23.9524H23.9523H23.9522H23.9522H23.9521H23.952H23.9519H23.9518H23.9517H23.9516H23.9516H23.9515H23.9514H23.9513H23.9512H23.9511H23.9511H23.951H23.9509H23.9508H23.9507H23.9506H23.9505H23.9505H23.9504H23.9503H23.9502H23.9501H23.95H23.9499H23.9499H23.9498H23.9497H23.9496H23.9495H23.9494H23.9493H23.9493H23.9492H23.9491H23.949H23.9489H23.9488H23.9487H23.9487H23.9486H23.9485H23.9484H23.9483H23.9482H23.9482H23.9481H23.948H23.9479H23.9478H23.9477H23.9476H23.9476H23.9475H23.9474H23.9473H23.9472H23.9471H23.947H23.947H23.9469H23.9468C23.9064 0.65 23.8685 0.654831 23.8441 0.658556C23.8282 0.659864 23.8158 0.661668 23.8085 0.662745L23.7951 0.664843L23.789 0.665574L23.7813 0.666858C23.7609 0.670226 23.731 0.675291 23.6977 0.683703L23.6564 0.69259L23.6392 0.696275L23.6225 0.701656C23.6059 0.707018 23.594 0.710841 23.5813 0.71455L23.5714 0.717449L23.562 0.720843C23.562 0.720843 23.562 0.720846 23.5619 0.720852C23.5618 0.72091 23.5607 0.721264 23.5582 0.722069L23.5518 0.724101L23.5424 0.727089C23.5295 0.731258 23.5052 0.739254 23.478 0.751354L23.4692 0.753715L23.4461 0.763649L23.4434 0.764798C23.4206 0.774587 23.3882 0.788515 23.3546 0.805371L23.3545 0.805246L23.3482 0.808654L23.3478 0.808862L23.3353 0.815361C23.3295 0.81847 23.3203 0.823543 23.309 0.830639C23.2814 0.84576 23.2529 0.862105 23.2236 0.880504C23.2209 0.882122 23.218 0.883964 23.2148 0.886015L23.2142 0.886366C23.2116 0.888092 23.2054 0.892034 23.1972 0.898082L7.34235 11.4568L7.3423 11.4569C6.6484 11.9191 6.44996 12.8755 6.86728 13.5991C7.14245 14.0781 7.62782 14.35 8.13516 14.35C8.40799 14.35 8.6808 14.2705 8.9242 14.1091L8.92478 14.1087L24.0002 4.06541L39.0756 14.107L39.0762 14.1073C39.3196 14.2688 39.5924 14.3483 39.8652 14.3483C40.3723 14.3483 40.8564 14.0735 41.1324 13.5985L41.1329 13.5976C41.5508 12.8735 41.3499 11.9174 40.6585 11.4554L40.4107 11.2898L40.4088 11.2918L24.7898 0.886091ZM24.6867 0.825816L24.6837 0.823955C24.6858 0.825268 24.6876 0.82638 24.6867 0.825816ZM24.4099 0.707843L24.4099 0.707825L24.4099 0.707843Z",fill:"white",stroke:"white",strokeWidth:.7})),xG=[1,.35,.1],CG=({className:r=""})=>{const e=X.useRef(),t=w0();return pt(()=>{const n={duration:.5,stagger:.25},i=ge.timeline({repeat:-1});i.to(".arrow",{autoAlpha:0,...n}),i.to(".arrow",{autoAlpha:s=>xG[s],...n})},{scope:e}),B.jsx(B.Fragment,{children:B.jsxs("div",{ref:e,className:`flex flex-col justify-center items-center ${r}`,children:[B.jsxs("p",{className:"mb-2",children:[t==="Mobile"?"De
1029sliza":"Scroll"," hacia arriba"]}),B.jsx(_G,{className:""})]})})},K_=r=>X.createElement("svg",{width:9,height:16,viewBox:"0 0 9 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r},X.createElement("path",{d:"M7 9C6.44772 9 6 8.55228 6 8C6 7.44772 6.44772 7 7 7L7 9ZM8.20711 7.29289C8.59763 7.68342 8.59763 8.31658 8.20711 8.70711L1.84315 15.0711C1.45262 15.4616 0.819457 15.4616 0.428932 15.0711C0.0384078 14.6805 0.0384078 14.0474 0.428932 13.6569L6.08579 8L0.428932 2.34315C0.0384078 1.95262 0.0384078 1.31946 0.428932 0.928932C0.819457 0.538408 1.45262 0.538408 1.84315 0.928932L8.20711 7.29289ZM7 7H7.5L7.5 9H7L7 7Z"})),Rl=({children:r,dir:e="right",className:t="",type:n="button",onClick:i=()=>{},loading:s=!1,disabled:a=!1})=>{const o=X.useRef(),l=X.useRef(null),u=X.useRef(null),h=X.useRef(null),[c,d]=X.useState(!1),[f,g]=X.useState(!1),y=w0();pt(()=>{l.current=ge.timeline(),l.current.pause(),l.current.to(".button__label",{scale:0,duration:.5,ease:"expo.inOut"}),l.current.fromTo(".button__loader",{scale:0},{scale:1,duration:.5,ease:"expo.inOut"},"-=.25"),u.current=ge.timeline(),u.current.pause(),u.current.to(o.current,{scale:1.1,duration:.1,ease:"expo.InOut"}),u.current.to(".button__icon",{x:e==="left"?-4:4,duration:.1,ease:"expo.InOut"},"-=.1"),u.current.to(".button__label-text",{x:e==="left"?4:-4,duration:.1,ease:"expo.InOut"},"-=.1"),h.current=ge.timeline(),h.current.pause(),h.current.to(".button__icon",{x:e==="left"?"-=2":"+=2",duration:.1,ease:"expo.InOut"}),h.current.to(".button__label-text",{x:e==="left"?"+=2":"-=2",duration:.1,ease:"expo.InOut"},"-=.1")},{scope:o}),pt(()=>{var b;(b=l.current)==null||b[s?"play":"reverse"]()},{scope:o,dependencies:[s]}),pt(()=>{var b;(b=u.current)==null||b[c?"play":"reverse"]()},{scope:o,dependencies:[c]}),pt(()=>{var b;(b=h.current)==null||b[f?"play":"reverse"]()},{scope:o,dependencies:[f]});const v=()=>{d(!0)},_=()=>{d(!1)},x=()=>{y==="Desktop"&&gt.play("main-sfx","click_button"),g(!0)},w=()=>{g(!1)},S=()=>{y==="Mobile"&&gt.play("main-sfx","click_button"),i()};return B.jsx(B.Fragment,{children:B.jsxs("button",{className:`${t} relative flex justify-center items-center px-6 py-3 rounded-[30px] bg-white text-bayofmany`,onClick:S,type:n,ref:o,disabled:a,onMouseOver:v,onMouseOut:_,onMouseDown:x,onMouseUp:w,children:[B.jsx("span",{className:"button__loader absolute block w-[30px] h-[30px] pointer-events-none",children:B.jsx("span",{className:"block size-full border-4 border-x-current rounded-full animate-spin"})}),B.jsxs("span",{className:"flex justify-center items-center gap-2 leading-[100%] pointer-events-none button__label",children:[e!=="none"&&e==="left"&&B.jsx(F4,{className:"button__icon w-[0.5rem]"}),B.jsx("span",{className:"mt-[2px] button__label-text",children:r}),e!=="none"&&e==="right"&&B.jsx(K_,{className:"button__icon w-[0.5rem]"})]})]})})};function wG(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var eD=wG,bG=typeof fn=="object"&&fn&&fn.Object===Object&&fn,SG=bG,AG=SG,TG=typeof self=="object"&&self&&self.Object===Object&&self,EG=AG||TG||Function("return this")(),tD=EG,PG=tD,DG=function(){return PG.Date.now()},HG=DG,kG=/\s/;function IG(r){for(var e=r.length;e--&&kG.test(r.charAt(e)););return e}var MG=IG,RG=MG,FG=/^\s+/;function LG(r){return r&&r.slice(0,RG(r)+1).replace(FG,"")}var OG=LG,NG=tD,BG=NG.Symbol,rD=BG,ib=rD,nD=Object.prototype,UG=nD.hasOwnProperty,$G=nD.toString,F1=ib?ib.toStringTag:void 0;function zG(r){var e=UG.call(r,F1),t=r[F1];try{r[F1]=void 0;var n=!0}catch{}var i=$G.call(r);return n&&(e?r[F1]=t:delete r[F1]),i}var jG=zG,VG=Object.prototype,GG=VG.toString;function WG(r){return GG.call(r)}var XG=WG,sb=rD,YG=jG,ZG=XG,qG="[object Null]",QG="[object Undefined]",ab=sb?sb.toStringTag:void 0;function KG(r){return r==null?r===void 0?QG:qG:ab&&ab in Object(r)?YG(r):ZG(r)}var JG=KG;function eW(r){return r!=null&&typeof r=="object"}var tW=eW,rW=JG,nW=tW,iW="[object Symbol]";function sW(r){return typeof r=="symbol"||nW(r)&&rW(r)==iW}var aW=sW,oW=OG,ob=eD,lW=aW,lb=NaN,uW=/^[-+]0x[0-9a-f]+$/i,cW=/^0b[01]+$/i,hW=/^0o[0-7]+$/i,dW=parseInt;function fW(r){if(typeof r=="number")return r;if(lW(r))return lb;if(ob(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=ob(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=oW(r);var t=cW.test(r);return t||hW.test(r)?dW(r.slice(2),t?2:8):uW.test(r)?lb:+r}var pW=fW,mW=eD,M9=HG,ub=pW,gW="Expected a function",yW=Math.max,vW=Math.min;function _W(r,e,t){var n,i,s,a,o,l,u=0,h=!1,c=!1,d=!0;if(typeof r!="function")throw new TypeError(gW);e=ub(e)||0,mW(t)&&(h=!!t.leading,c="maxWait"in t,s=c?yW(ub(t.maxWait)||0,e):s,d="trailing"in t?!!t.trailing:d);function f(E){var D=n,P=i;return n=i=void 0,u=E,a=r.apply(P,D),a}function g(E){return u=E,o=setTimeout(_,e),h?f(E):a}function y(E){var D=E-l,P=E-u,I=e-D;return c?vW(I,s-P):I}function v(E){var D=E-l,P=E-u;return l===void 0||D>
1029=e||D<0||c&&P>=s}function _(){var E=M9();if(v(E))return x(E);o=setTimeout(_,y(E))}function x(E){return o=void 0,d&&n?f(E):(n=i=void 0,a)}function w(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function S(){return o===void 0?a:x(M9())}function b(){var E=M9(),D=v(E);if(n=arguments,i=this,l=E,D){if(o===void 0)return g(l);if(c)return clearTimeout(o),o=setTimeout(_,e),f(l)}return o===void 0&&(o=setTimeout(_,e)),a}return b.cancel=w,b.flush=S,b}var xW=_W;const CW=cc(xW),J_=(r,e=100)=>{X.useEffect(()=>{const t="ontouchstart"in window||navigator.maxTouchPoints>0,n=CW(u=>{const h={x:"",y:""};u.deltaY<0?h.y="down":u.deltaY>0&&(h.y="up"),u.deltaX<0?h.x="right":u.deltaX>0&&(h.x="left"),r(h)},e),i=u=>{o={x:u.touches[0].clientX,y:u.touches[0].clientY},l={...o}},s=u=>{l={x:u.touches[0].clientX,y:u.touches[0].clientY}},a=()=>{const u={x:"",y:""},h={x:o.x-l.x,y:o.y-l.y};Math.abs(h.y)>Math.abs(h.x)?h.y>0?u.y="up":h.y<0&&(u.y="down"):h.x>0?u.x="right":h.x<0&&(u.x="left"),r(u)};let o={x:0,y:0},l={x:0,y:0};return t?(window.addEventListener("touchstart",i),window.addEventListener("touchmove",s),window.addEventListener("touchend",a)):window.addEventListener("wheel",n),()=>{t?(window.removeEventListener("touchstart",i),window.removeEventListener("touchmove",s),window.removeEventListener("touchend",a)):window.removeEventListener("wheel",n)}},[r,e])},wW=()=>{const r=X.useRef(),e=ge.utils.selector(r),{transition:t,setTransition:n,step:i}=vs(),{pixiLoaderComplete:s}=xn(),a=aP(),o=X.useRef(!1);J_(({y:u})=>{a!=="Desktop"&&(u==="up"||u==="down")&&i===Ws&&n(Oh)}),pt(()=>{VM(".intro p"),ge.set(".animate",{autoAlpha:0})},{scope:r}),pt(()=>{t===C_&&(gt.play("main-sfx","welcome"),ge.set(".intro",{autoAlpha:1}),ge.fromTo([".headline",".intro .line",".drag"],{autoAlpha:0,y:"-100%"},{autoAlpha:1,y:0,duration:2,delay:.5,ease:"expo.out",stagger:.1}))},{scope:r,dependencies:[t]}),pt(()=>{if(t!==Oh)return;const u=e(".logo")[0],{top:h}=Ou(u),c=ge.timeline();c.to([".headline",".intro .line",".drag"],{autoAlpha:0,y:"-100%",duration:2,ease:"expo.inOut"});const d=a==="Desktop"?.75:.5,f=a==="Desktop"?16*3:16*4.15;c.to(".logo",{scale:d,y:-(h+f),duration:2,ease:"expo.inOut"},"-=2")},{scope:r,dependencies:[t]}),X.useEffect(()=>{o.current=s},[s]);const l=X.useCallback(async u=>{await E3(()=>o.current),u.play()},[]);return B.jsx(B.Fragment,{children:B.jsxs("section",{className:Lh("absolute top-0 left-0 flex flex-col justify-center items-center size-full text-center text-white",{"z-40":i===Ws}),ref:r,children:[B.jsxs("div",{className:Lh("relative flex flex-col justify-center items-center max-w-[349px]",{"pb-[75px]":a==="Desktop","pb-[150px]":a==="Mobile"}),children:[B.jsx("h2",{className:"animate headline text-[2.5rem]",children:"Bienvenido a"}),B.jsx(VA,{onLoad:l,className:"logo mt-[-5rem] mb-2 w-[400px] sm:w-[400px]"}),B.jsxs("div",{className:"flex flex-col gap-4 text-lg leading-[110%] animate intro",children:[B.jsx("p",{className:"",children:"Darte un baño con Zest y la música correcta hace especial cualquier día."}),B.jsx("p",{className:"",children:"Únete a un México más fresco y siente la energía."})]}),a==="Desktop"&&B.jsx(Rl,{className:"!absolute bottom-20 sm:bottom-0 drag animate",onClick:()=>n(Oh),children:"Continuar"})]}),a==="Mobile"&&B.jsx(CG,{className:"drag animate absolute bottom-[5rem]"})]})})},iD=X.createContext(),bW=({children:r})=>{const[e,t]=X.useState({title:"tu_cancion_zest",time_of_day:null,mood:null,genre:null}),[n,i]=X.useState(null),s=l=>{t({...e,time_of_day:l})},a=l=>{t({...e,genre:l})},o=l=>{t({...e,mood:l})};return B.jsx(iD.Provider,{value:{answers:e,setAnswer1:s,setAnswer2:a,setAnswer3:o,setUrlVideo:i,urlVideo:n},children:r})},q4=()=>X.useContext(iD),SW="/images/time/morning/sun.png",AW="/images/time/morning/cloud_top.png",TW="/images/time/morning/cloud_bottom.png",EW="/images/time/afternoon/sun.png",PW="/images/time/afternoon/cloud_top.png",DW="/images/time/afternoon/cloud_bottom.png",HW="/images/time/night/moon.png",kW="/images/time/night/cloud_top.png",IW="/images/time/night/cloud_bottom.png",Yo=[{index:0,title:"Por la mañana",id:"manana",graphics:{top:AW,bottom:TW,center:SW},background:"linear-gradient(183deg, #38B5F3 28.61%, #38B5F3 62.46%, #38B5F3 100%)"},{index:1,title:"Por la tarde",id:"tarde",graphics:{top:PW,bottom:DW,center:EW},background:"linear-gradient(183deg, #F9334B 28.61%, #FE7428 62.46%, #FFCB8F 100%)"},{index:2,title:"Por la noche",id:"noche",graphics:{top:kW,bottom:IW,center:HW},background:"linear-gradient(183deg, #0E206C 28.61%, #0E206C 62.46%, #046CB2 100%)"}],MW=()=>{const{transition:r,setStep:e,setTransition:t,step:n}=vs(),i=X.useRef(),s=ge.utils.selector(i),a=X.useRef(null),[o,l]=X.useState({prev:Yo[0],current:Yo[0]}),[u,h]=X.useState(null),[c,d]=X.useState(!1),{setAnswer1:f}=q4(),{setOptions:g,setPixiTimeState:y}=xn(),v=w0();J_(({x:S})=>{n===Wd&&(S==="right"?_():S==="left"&&x())}),X.useEffect(()=>{u!==null&&(gt.stop("main-sfx",`time_${o.prev.id}`),gt.play("main-sfx",`time_${o.current.id}`),gt.play("main-sfx","time_transition"))},[o,u]),pt(()=>{a.current=s(".center-layer")[0],ge.set(".cloud.left",{x:"-100%",autoAlpha:0}),ge.set(".cloud.right",{x:"100%",autoAlpha:0}),ge.set(".intro-anim",{y:"100%",autoAlpha:0})},{scope:i}),pt(()=>{if(n!==Ws)return;const{top:S,height:b}=Ou(a.current);ge.fromTo(".center-layer",{y:window.innerHeight-S},{y:`-=${b/3}`,scale:1.5,duration:2,ease:"expo.out"})},{scope:i,dependencies:[n]}),pt(()=>{if(r!==Oh&&r!==tc&&r!==a0)return;const S=ge.timeline({onComplete:()=>{e(Wd)},onStart:()=>{gt.play("main-sfx",`time_${o.current.id}`)}});S.to([".cloud.left",".cloud.right"],{x:0,autoAlpha:1,ease:"expo.inOut",duration:2,stagger:.1}),n===Ws?S.to(".center-layer",{y:0,scale:1,ease:"expo.inOut",duration:2},"-=2.2"):S.fromTo(".center-layer",{y:window.innerHeight},{y:0,ease:"expo.inOut",duration:2},"-=2.2"),S.to(".intro-anim",{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",stagger:.1,onStart:()=>{gt.play("main-sfx","time_animate_in"),gt.stop("main-sfx","background_bubbles")}},"-=2")},{scope:i,dependencies:[r]}),pt(()=>{s(".cloud .cloud__inner").forEach((b,E)=>ge.to(b,{x:ge.utils.random(20,50)*(E%2===0?1:-1),duration:ge.utils.random(1,5),repeat:-1,yoyo:!0}))},{scope:i}),pt(()=>{if(u===null)return;const S=ge.timeline({onStart:()=>{d(!0)},onComplete:()=>d(!1)}),b=u==="right"?[".current.right",".current.center",".current.left"]:[".current.left",".current.center",".current.right"];S.fromTo(b,{autoAlpha:0},{autoAlpha:1,duration:1,ease:"expo.out",stagger:.05});const E=u==="right"?[".prev.right",".prev.center",".prev.left"]:[".prev.left",".prev.center",".prev.right"];S.fromTo(E,{autoAlpha:1},{autoAlpha:0,duration:1,ease:"expo.out",stagger:.05},"-=1"),S.fromTo(".label.prev",{y:0},{y:u==="right"?"100%":"-100%",duration:1,ease:"expo.out"},"-=1.5"),S.fromTo(".label.current",{y:u==="right"?"-100%":"100%"},{y:0,duration:1,ease:"expo.out"},"-=1.5")},{scope:i,dependencies:[o,u]}),pt(()=>{if(r!==k3)return;setTimeout(()=>{gt.play("main-sfx","time_animate_out"),gt.play("main-sfx","background_bubbles")},750);const S=ge.timeline();S.to(".cloud.left",{x:"-100%",autoAlpha:0,ease:"expo.inOut",duration:2,stagger:.1}),S.to(".cloud.right",{x:"100%",autoAlpha:0,ease:"expo.inOut",duration:2,stagger:.1},"-=2.2");const{top:b,height:E}=Ou(a.current);S.to(".center-layer",{y:-(b+E),ease:"expo.inOut",duration:2},"-=2.2"),S.to(".intro-anim",{y:"-100%",autoAlpha:0,duration:2,ease:"expo.inOut",stagger:.1},"-=2.2"),S.to(i.current,{autoAlpha:0,duration:2,ease:"expo.inOut"}
1029,"-=2.2")},{scope:i,dependencies:[r]});const _=()=>{if(c)return;const S=o.current.index,b=o.current.index===Yo.length-1?0:o.current.index+1;l({prev:Yo[S],current:Yo[b]}),h("right"),y({dir:"right",current:b,prev:S})},x=()=>{if(c)return;const S=o.current.index,b=o.current.index===0?Yo.length-1:o.current.index-1;l({prev:Yo[S],current:Yo[b]}),h("left"),y({dir:"left",current:b,prev:S})},w=()=>{const{id:S}=o.current;f(S),g(S),t(k3)};return B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full flex flex-col justify-center sm:justify-center items-center h-full text-center text-white",ref:i,children:[B.jsx("header",{className:"max-w-[250px] sm:max-w-[487px]",children:B.jsx("h2",{className:"intro-anim title text-[2.5rem] sm:text-[3.2rem] leading-[100%]",children:"¿A qué hora te vas a bañar?"})}),B.jsxs("div",{className:"flex flex-col justify-center items-center w-full mt-[-2rem]",ref:i,children:[B.jsxs("div",{className:"relative",children:[B.jsx("figure",{className:"cloud left absolute top-[calc(50%-2rem)] left-[-4rem] z-10 w-[153px]",children:B.jsxs("div",{className:"cloud__inner",children:[B.jsx("img",{src:o.prev.graphics.top,alt:"Morning",className:"prev left w-full"}),B.jsx("img",{src:o.current.graphics.top,alt:"Morning",className:"current left absolute top-0 left-0 z-10 w-full"})]})}),B.jsx("figure",{className:"cloud right absolute top-[calc(50%-1rem)] left-[calc(50%+2rem)] z-10 w-[153px]",children:B.jsxs("div",{className:"cloud__inner",children:[B.jsx("img",{src:o.prev.graphics.top,alt:"Morning",className:"prev right scale-x-[-1] w-full"}),B.jsx("img",{src:o.current.graphics.top,alt:"Morning",className:"current right absolute top-0 left-0 z-10 scale-x-[-1] w-full"})]})}),B.jsxs("figure",{className:"center-layer relative z-20 w-[272px]",children:[B.jsx("img",{src:o.prev.graphics.center,alt:"Morning",className:"prev center w-full"}),B.jsx("img",{src:o.current.graphics.center,alt:"Morning",className:"current center absolute top-0 left-0 z-10 w-full"})]}),B.jsx("figure",{className:"cloud left absolute top-[calc(50%+1rem)] left-[-3rem] z-30 w-[112px]",children:B.jsxs("div",{className:"cloud__inner",children:[B.jsx("img",{src:o.prev.graphics.bottom,alt:"Morning",className:"prev left w-full"}),B.jsx("img",{src:o.current.graphics.bottom,alt:"Morning",className:"current left absolute top-0 left-0 w-full"})]})}),B.jsx("figure",{className:"cloud right absolute top-[calc(50%+2rem)] left-[calc(50%+4rem)] z-30 w-[112px]",children:B.jsxs("div",{className:"cloud__inner",children:[B.jsx("img",{src:o.prev.graphics.bottom,alt:"Morning",className:"prev right w-full scale-x-[-1]"}),B.jsx("img",{src:o.current.graphics.bottom,alt:"Morning",className:"current right absolute top-0 left-0 w-full scale-x-[-1]"})]})})]}),B.jsxs("div",{className:"intro-anim controls flex justify-between items-center w-full max-w-[300px]",children:[B.jsx("button",{onClick:x,className:"scale-[2]",children:B.jsx(F4,{})}),B.jsxs("div",{className:"relative overflow-hidden grow mt-[2px]",children:[B.jsx("p",{className:"label prev text-[2.75rem] leading-[125%]",children:o.prev.title}),B.jsx("p",{className:"label current absolute top-0 left-0 text-[2.75rem] leading-[125%] translate-y-[100%] w-full",children:o.current.title})]}),B.jsx("button",{onClick:_,className:"scale-[2]",children:B.jsx(K_,{})})]}),v==="Mobile"&&B.jsx("p",{className:"intro-anim instructions",children:"Desliza para cambiar"})]}),B.jsx("footer",{className:"intro-anim footer flex flex-col justify-center items-center mt-8",children:B.jsx(Rl,{onClick:w,children:"Continuar"})})]})})},RW="/images/genre/cumbia.png",FW="/images/genre/tumbado.png",LW="/images/genre/perreo.png",OW="/images/genre/electronica.png",NW="/images/genre/tropical.png",BW="/images/genre/popero.png",UW="/images/genre/rockeron.png",$W="/images/genre/hiphop.png",Zo=[{index:0,id:"cumbia",label:"Cumbión",asset:RW},{index:1,id:"electronica",label:"Electrónica",asset:OW},{index:2,id:"hiphop",label:"Hip Hop",asset:$W},{index:3,id:"pop",label:"Popero",asset:BW},{index:4,id:"ranchero",label:"Tumbado",asset:FW},{index:5,id:"reggaeton",label:"Perreo",asset:LW},{index:6,id:"rock",label:"Rockerón",asset:UW},{index:7,id:"tropical",label:"Tropical",asset:NW}],zW="/images/genre/disk.png",jW=()=>{const r=X.useRef(),{transition:e,setStep:t,setTransition:n}=vs(),[i,s]=X.useState({prev:Zo[0],current:Zo[0]}),[a,o]=X.useState(null),[l,u]=X.useState(!1),[h,c]=X.useState(!1),{setAnswer2:d}=q4(),f=w0(),g=X.useRef(ge.timeline());g.current.timeScalar=1,J_(({x:w})=>{f==="Mobile"&&(w==="right"?y():w==="left"&&v())}),pt(()=>{const w=ge.timeline({onComplete:()=>{t(R4),c(!0)},delay:.5});w.fromTo(".animate",{y:100,autoAlpha:0},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",stagger:.05}),w.fromTo(".graphic",{x:"50%",autoAlpha:0},{x:0,autoAlpha:1,duration:2,ease:"expo.inOut"}
1029,"-=2"),w.call(()=>{gt.play("main-sfx","genre_disk_animate_in"),gt.play("main-sfx",`genre_${i.current.id}`)},null,"-=1.4"),w.fromTo(".label .current",{y:"100%"},{y:0,duration:1.5,ease:"expo.inOut"},"-=1"),w.fromTo(".arrow-prev",{x:"100%",autoAlpha:0},{x:0,autoAlpha:1,duration:2,ease:"expo.inOut"},"-=1.5"),w.fromTo(".arrow-next",{x:"-100%",autoAlpha:0},{x:0,autoAlpha:1,duration:2,ease:"expo.inOut"},"-=2")},{scope:r}),pt(()=>{g.current.to(".graphic",{rotate:"-360",ease:"none",duration:2,repeat:-1})},{scope:r}),pt(()=>{if(a===null)return;const w=ge.timeline({onStart:()=>{u(!0),gt.stop("main-sfx",`genre_${i.prev.id}`),gt.play("main-sfx","genre_disk_rewind")},onComplete:()=>{u(!1),gt.play("main-sfx",`genre_${i.current.id}`)}});w.to(g.current,{timeScalar:10,duration:.75,onUpdate:()=>{g.current.timeScale(g.current.timeScalar)}}),w.fromTo(".label .prev",{y:0},{y:a==="right"?"-100%":"100%",duration:1,ease:"expo.inOut"},"-=.5"),w.fromTo(".label .current",{y:a==="right"?"100%":"-100%"},{y:0,duration:1,ease:"expo.inOut"},"-=1"),w.fromTo(".graphic-center.prev",{autoAlpha:1},{autoAlpha:0,duration:1,ease:"expo.inOut"},"-=1"),w.to(g.current,{timeScalar:1,duration:1,onUpdate:()=>{g.current.timeScale(g.current.timeScalar)}},"-=.5")},{scope:r,dependencies:[i]}),pt(()=>{if(e!==I3&&e!==tc)return;const w=ge.timeline();w.to(".animate",{y:-100,autoAlpha:0,duration:2,ease:"expo.inOut",stagger:.05}),w.call(()=>gt.play("main-sfx","genre_disk_animate_out"),null,"-=1"),w.to(".slider",{y:100,autoAlpha:0,duration:2,ease:"expo.inOut"},"-=2"),w.to(".label .current",{y:"-100%",autoAlpha:0,duration:2,ease:"expo.inOut"},"-=2")},{scope:r,dependencies:[e]});const y=()=>{if(l)return;const w=i.current.index,S=i.current.index===Zo.length-1?0:i.current.index+1;s({prev:Zo[w],current:Zo[S]}),o("right")},v=()=>{if(l)return;const w=i.current.index,S=i.current.index===0?Zo.length-1:i.current.index-1;s({prev:Zo[w],current:Zo[S]}),o("left")},_=()=>{n(tc)},x=()=>{d(i.current.id),n(I3)};return B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full flex flex-col sm:flex-row justify-center items-center h-full text-white text-center sm:text-left",ref:r,children:[B.jsxs("div",{className:"relative z-10 flex flex-col gap-4 items-center sm:items-start h-full sm:h-auto pt-[100px] pb-[4rem] sm:p-0",children:[B.jsxs("header",{className:"max-w-[250px] sm:max-w-[400px]",children:[B.jsx("h2",{className:"animate text-[2.5rem] sm:text-[3.4375rem] leading-[100%] mb-2",children:"¿Cuál es tu estilo favorito?"}),B.jsx("p",{className:"animate text-bayofmany",children:"Selecciona tu género favorito para personalizar Tu Canción Zest"})]}),B.jsxs("div",{className:"animate flex gap-8 items-end grow",children:[f==="Desktop"&&B.jsx(Rl,{dir:"left",onClick:_,disabled:!h,children:"Regresar"}),B.jsx(Rl,{dir:"right",onClick:x,disabled:!h,children:"Continuar"})]})]}),B.jsx("div",{className:"slider absolute sm:relative bottom-0 left-0",children:B.jsxs("div",{className:"scale-[1.7] translate-y-[15%] sm:transform-none origin-center flex justify-center items-center",children:[B.jsxs("div",{className:"absolute z-30 top-1/2 -translate-y-1/2 flex justify-between items-center w-[65%] sm:w-[85%] px-10 sm:p-0",children:[B.jsx("button",{onClick:v,className:"arrow-prev scale-[1.3] sm:scale-[2]",children:B.jsx(F4,{})}),B.jsx("button",{onClick:y,className:"arrow-next scale-[1.3] sm:scale-[2]",children:B.jsx(K_,{})})]}),B.jsxs("figure",{className:"flex justify-center items-center",children:[B.jsxs("div",{className:"graphic relative flex justify-center items-center",children:[B.jsx("img",{src:zW,alt:"Genre",className:"w-[560px]"}),B.jsx("img",{src:i.current.asset,alt:"Genre",className:"absolute z-10 w-full graphic-center current"}),B.jsx("img",{src:i.prev.asset,alt:"Genre",className:"absolute z-20 w-full graphic-center prev"})]}),B.jsxs("figcaption",{className:"label absolute w-[200px] z-20 bottom-[65%] text-[1.75rem] sm:text-5xl text-center overflow-hidden",children:[B.jsx("span",{className:"prev block translate-y-[100%] leading-[125%]",children:i.prev.label}),B.jsx("span",{className:"current absolute top-0 left-0 w-full block leading-[125%]",children:i.current.label})]})]})]})})]})})},VW=()=>{const r=X.useRef(),{transition:e,setStep:t,setTransition:n}=vs(),{selectorState:i}=xn(),{setAnswer3:s}=q4(),a=w0(),[o,l]=X.useState(!1);X.useEffect(()=>{i.selected&&(s(i.selected),n(kl))},[i.selected]),pt(()=>{ge.fromTo(".animate",{y:100,autoAlpha:0},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",stagger:.05,delay:.5,onComplete:()=>{t(ic),l(!0)}})},{scope:r}),pt(()=>{e!==rc&&e!==kl||ge.to(".animate",{y:-100,autoAlpha:0,duration:2,ease:"expo.inOut",stagger:.05})},{scope:r,dependencies:[e]});const u=()=>{n(rc)};return B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full flex flex-col sm:flex-row justify-center items-center h-full text-white text-center sm:text-left pt-[100px] pb-[4rem] sm:p-0",ref:r,children:[B.jsxs("div",{className:"relative z-10 flex flex-col gap-4 items-center sm:items-start h-full sm:h-auto justify-between",children:[B.jsxs("header",{className:"flex flex-col items-center sm:items-start max-w-[250px] sm:max-w-[400px]",children:[B.jsx("h2",{className:"text-[2.375rem] sm:text-[3.4375rem] leading-[100%] animate mb-2",children:"¿Cuál es el motivo de tu baño?"}),B.jsx("p",{className:"animate text-bayofmany",children:"Selecciona una opción para continuar."})]}),a==="Desktop"&&B.jsx("footer",{className:"animate",children:B.jsx(Rl,{dir:"left",onClick:u,disabled:!o,children:"Anterior"})})]}),B.jsx("div",{className:"hidden sm:block w-1/2 max-w-[560px]"})]})})},R9=({id:r,label:e=!1,type:t=!1,placeholder:n="",className:i="",error:s=!1,register:a=()=>{},required:o=!1,onChange:l=()=>{},hidden:u=!1,value:h})=>{const c=()=>{gt.play("main-sfx","key_press")};return B.jsx(B.Fragment,{children:B.jsxs("div",{className:Lh("flex flex-col gap-1",{hidden:u}),children:[e&&B.jsx("label",{htmlFor:r,className:"text-sm text-white",children:e}),B.jsx("input",{type:t||"text",id:r,name:r,placeholder:n,onKeyDown:c,className:`${i} w-full border ${s?"border-rose-500":"border-white"} rounded-[32px] px-4 py-2 text-turquoise placeholder:text-white/40 bg-lochmara/90`,...a(r,{required:o}),onChange:l,value:h}),s&&B.jsx("span",{className:"text-sm text-red-500","aria-live":"polite","aria-atomic":"true",children:s})]})})},cb=({children:r,id:e,className:t="",error:n=!1,register:i=()=>{},required:s=!1})=>{const[a,o]=X.useState(!1),l=()=>{gt.play("main-sfx","input_checkbox_click"),o(!a)};return B.jsx(B.Fragment,{children:B.jsxs("div",{className:`flex flex-col gap-2 ${t}`,children:[B.jsxs("label",{htmlFor:e,className:"flex gap-4 items-start text-white",children:[B.jsx("input",{type:"checkbox",name:e,id:e,className:"absolute invisible",onClick:l,checked:a,...i(e,{required:s})}),B.jsx("span",{className:"flex justify-center items-center w-[25px] h-[25px] bg-white border border-white/50 rounded-full shrink-0",children:a&&B.jsx("span",{className:"block w-[60%] h-[60%] rounded-full bg-turquoise"})}),B.jsx("span",{className:"leading-tight",children:r})]}),n&&B.jsx("span",{className:"text-sm text-red-500","aria-live":"polite","aria-atomic":"true",children:n})]})})};var kf=r=>r.type==="checkbox",Ah=r=>r instanceof Date,jn=r=>r==null;const sD=r=>typeof r=="object";var qr=r=>!jn(r)&&!Array.isArray(r)&&sD(r)&&!Ah(r),GW=r=>qr(r)&&r.target?kf(r.target)?r.target.checked:r.target.value:r,WW=r=>r.substring(0,r.search(/\.\d+(\.|$)/))||r,XW=(r,e)=>r.has(WW(e)),YW=r=>{const e=r.constructor&&r.constructor.prototype;return qr(e)&&e.hasOwnProperty("isPrototypeOf")},ex=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ts(r){let e;const t=Array.isArray(r);if(r instanceof Date)e=new Date(r);else if(r instanceof Set)e=new Set(r);else if(!(ex&&(r instanceof Blob||r instanceof FileList))&&(t||qr(r)))if(e=t?[]:{},!t&&!YW(r))e=r;else for(const n in r)r.hasOwnProperty(n)&&(e[n]=ts(r[n]));else return r;return e}var If=r=>Array.isArray(r)?r.filter(Boolean):[],Dr=r=>r===void 0,Le=(r,e,t)=>{if(!e||!qr(r))return t;const n=If(e.split(/[,[\].]+?/)).reduce((i,s)=>jn(i)?i:i[s],r);return Dr(n)||n===r?Dr(r[e])?t:r[e]:n},il=r=>typeof r=="boolean",tx=r=>/^\w*$/.test(r),aD=r=>If(r.replace(/["|']|\]/g,"").split(/\.|\[/)),ir=(r,e,t)=>{let n=-1;const i=tx(e)?[e]:aD(e),s=i.length,a=s-1;for(;++n<s;){const o=i[n];let l=t;if(n!==a){const u=r[o];
1029l=qr(u)||Array.isArray(u)?u:isNaN(+i[n+1])?{}:[]}if(o==="__proto__")return;r[o]=l,r=r[o]}return r};const hb={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ls={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Va={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ZW=Ht.createContext(null),qW=()=>Ht.useContext(ZW);var QW=(r,e,t,n=!0)=>{const i={defaultValues:e._defaultValues};for(const s in r)Object.defineProperty(i,s,{get:()=>{const a=s;return e._proxyFormState[a]!==Ls.all&&(e._proxyFormState[a]=!n||Ls.all),r[a]}});return i},Hi=r=>qr(r)&&!Object.keys(r).length,KW=(r,e,t,n)=>{t(r);const{name:i,...s}=r;return Hi(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===Ls.all)},F9=r=>Array.isArray(r)?r:[r];function JW(r){const e=Ht.useRef(r);e.current=r,Ht.useEffect(()=>{const t=!r.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{t&&t.unsubscribe()}},[r.disabled])}var ma=r=>typeof r=="string",eX=(r,e,t,n,i)=>ma(r)?(n&&e.watch.add(r),Le(t,r,i)):Array.isArray(r)?r.map(s=>(n&&e.watch.add(s),Le(t,s))):(n&&(e.watchAll=!0),t);const tX="post";function rX(r){const e=qW(),[t,n]=Ht.useState(!1),{control:i=e.control,onSubmit:s,children:a,action:o,method:l=tX,headers:u,encType:h,onError:c,render:d,onSuccess:f,validateStatus:g,...y}=r,v=async _=>{let x=!1,w="";await i.handleSubmit(async S=>{const b=new FormData;let E="";try{E=JSON.stringify(S)}catch{}for(const D of i._names.mount)b.append(D,Le(S,D));if(s&&await s({data:S,event:_,method:l,formData:b,formDataJson:E}),o)try{const D=[u&&u["Content-Type"],h].some(I=>I&&I.includes("json")),P=await fetch(o,{method:l,headers:{...u,...h?{"Content-Type":h}:{}},body:D?E:b});P&&(g?!g(P.status):P.status<200||P.status>=300)?(x=!0,c&&c({response:P}),w=String(P.status)):f&&f({response:P})}catch(D){x=!0,c&&c({error:D})}})(_),x&&r.control&&(r.control._subjects.state.next({isSubmitSuccessful:!1}),r.control.setError("root.server",{type:w}))};return Ht.useEffect(()=>{n(!0)},[]),d?Ht.createElement(Ht.Fragment,null,d({submit:v})):Ht.createElement("form",{noValidate:t,action:o,method:l,encType:h,onSubmit:v,...y},a)}var oD=(r,e,t,n,i)=>e?{...t[r],types:{...t[r]&&t[r].types?t[r].types:{},[n]:i||!0}}:{},db=r=>({isOnSubmit:!r||r===Ls.onSubmit,isOnBlur:r===Ls.onBlur,isOnChange:r===Ls.onChange,isOnAll:r===Ls.all,isOnTouch:r===Ls.onTouched}),fb=(r,e,t)=>!t&&(e.watchAll||e.watch.has(r)||[...e.watch].some(n=>r.startsWith(n)&&/^\.\w+/.test(r.slice(n.length))));const Cd=(r,e,t,n)=>{for(const i of t||Object.keys(r)){const s=Le(r,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],i)&&!n)break;if(a.ref&&e(a.ref,a.name)&&!n)break;Cd(o,e)}else qr(o)&&Cd(o,e)}}};var nX=(r,e,t)=>{const n=If(Le(r,t));return ir(n,"root",e[t]),ir(r,t,n),r},rx=r=>r.type==="file",ml=r=>typeof r=="function",i4=r=>{if(!ex)return!1;const e=r?r.ownerDocument:0;return r instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Zp=r=>ma(r),nx=r=>r.type==="radio",s4=r=>r instanceof RegExp;const pb={value:!1,isValid:!1},mb={value:!0,isValid:!0};var lD=r=>{if(Array.isArray(r)){if(r.length>1){const e=r.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return r[0].checked&&!r[0].disabled?r[0].attributes&&!Dr(r[0].attributes.value)?Dr(r[0].value)||r[0].value===""?mb:{value:r[0].value,isValid:!0}:mb:pb}return pb};const gb={isValid:!1,value:null};var uD=r=>Array.isArray(r)?r.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,gb):gb;function yb(r,e,t="validate"){if(Zp(r)||Array.isArray(r)&&r.every(Zp)||il(r)&&!r)return{type:t,message:Zp(r)?r:"",ref:e}}var Jc=r=>qr(r)&&!s4(r)?r:{value:r,message:""},vb=async(r,e,t,n,i)=>{const{ref:s,refs:a,required:o,maxLength:l,minLength:u,min:h,max:c,pattern:d,validate:f,name:g,valueAsNumber:y,mount:v,disabled:_}=r._f,x=Le(e,g);if(!v||_)return{};const w=a?a[0]:s,S=N=>{n&&w.reportValidity&&(w.setCustomValidity(il(N)?"":N||""),w.reportValidity())},b={},E=nx(s),D=kf(s),P=E||D,I=(y||rx(s))&&Dr(s.value)&&Dr(x)||i4(s)&&s.value===""||x===""||Array.isArray(x)&&!x.length,R=oD.bind(null,g,t,b),U=(N,F,O,V=Va.maxLength,q=Va.minLength)=>{const Z=N?F:O;b[g]={type:N?V:q,message:Z,ref:s,...R(N?V:q,Z)}};if(i?!Array.isArray(x)||!x.length:o&&(!P&&(I||jn(x))||il(x)&&!x||D&&!lD(a).isValid||E&&!uD(a).isValid)){const{value:N,message:F}=Zp(o)?{value:!!o,message:o}:Jc(o);if(N&&(b[g]={type:Va.required,message:F,ref:w,...R(Va.required,F)},!t))return S(F),b}if(!I&&(!jn(h)||!jn(c))){let N,F;const O=Jc(c),V=Jc(h);if(!jn(x)&&!isNaN(x)){const q=s.valueAsNumber||x&&+x;jn(O.value)||(N=q>O.value),jn(V.value)||(F=q<V.value)}else{const q=s.valueAsDate||new Date(x),Z=G=>new Date(new Date().toDateString()+" "+G),j=s.type=="time",Y=s.type=="week";ma(O.value)&&x&&(N=j?Z(x)>Z(O.value):Y?x>O.value:q>new Date(O.value)),ma(V.value)&&x&&(F=j?Z(x)<Z(V.value):Y?x<V.value:q<new Date(V.value))}if((N||F)&&(U(!!N,O.message,V.message,Va.max,Va.min),!t))return S(b[g].message),b}if((l||u)&&!I&&(ma(x)||i&&Array.isArray(x))){const N=Jc(l),F=Jc(u),O=!jn(N.value)&&x.length>+N.value,V=!jn(F.value)&&x.length<+F.value;if((O||V)&&(U(O,N.message,F.message),!t))return S(b[g].message),b}if(d&&!I&&ma(x)){const{value:N,message:F}=Jc(d);if(s4(N)&&!x.match(N)&&(b[g]={type:Va.pattern,message:F,ref:s,...R(Va.pattern,F)},!t))return S(F),b}if(f){if(ml(f)){const N=await f(x,e),F=yb(N,w);if(F&&(b[g]={...F,...R(Va.validate,F.message)},!t))return S(F.message),b}else if(qr(f)){let N={};for(const F in f){if(!Hi(N)&&!t)break;const O=yb(await f[F](x,e),w,F);O&&(N={...O,...R(F,O.message)},S(O.message),t&&(b[g]=N))}
vendor: 13,827 bytes, line 1029
1029if(!Hi(N)&&(b[g]={ref:w,...N},!t))return b}}return S(!0),b};function iX(r,e){const t=e.slice(0,-1).length;let n=0;for(;n<t;)r=Dr(r)?n++:r[e[n++]];return r}function sX(r){for(const e in r)if(r.hasOwnProperty(e)&&!Dr(r[e]))return!1;return!0}function jr(r,e){const t=Array.isArray(e)?e:tx(e)?[e]:aD(e),n=t.length===1?r:iX(r,t),i=t.length-1,s=t[i];return n&&delete n[s],i!==0&&(qr(n)&&Hi(n)||Array.isArray(n)&&sX(n))&&jr(r,t.slice(0,-1)),r}var L9=()=>{let r=[];return{get observers(){return r},next:i=>{for(const s of r)s.next&&s.next(i)},subscribe:i=>(r.push(i),{unsubscribe:()=>{r=r.filter(s=>s!==i)}}),unsubscribe:()=>{r=[]}}},a4=r=>jn(r)||!sD(r);function Nu(r,e){if(a4(r)||a4(e))return r===e;if(Ah(r)&&Ah(e))return r.getTime()===e.getTime();const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(const i of t){const s=r[i];if(!n.includes(i))return!1;if(i!=="ref"){const a=e[i];if(Ah(s)&&Ah(a)||qr(s)&&qr(a)||Array.isArray(s)&&Array.isArray(a)?!Nu(s,a):s!==a)return!1}}return!0}var cD=r=>r.type==="select-multiple",aX=r=>nx(r)||kf(r),O9=r=>i4(r)&&r.isConnected,hD=r=>{for(const e in r)if(ml(r[e]))return!0;return!1};function o4(r,e={}){const t=Array.isArray(r);if(qr(r)||t)for(const n in r)Array.isArray(r[n])||qr(r[n])&&!hD(r[n])?(e[n]=Array.isArray(r[n])?[]:{},o4(r[n],e[n])):jn(r[n])||(e[n]=!0);return e}function dD(r,e,t){const n=Array.isArray(r);if(qr(r)||n)for(const i in r)Array.isArray(r[i])||qr(r[i])&&!hD(r[i])?Dr(e)||a4(t[i])?t[i]=Array.isArray(r[i])?o4(r[i],[]):{...o4(r[i])}:dD(r[i],jn(e)?{}:e[i],t[i]):t[i]=!Nu(r[i],e[i]);return t}var xp=(r,e)=>dD(r,e,o4(e)),fD=(r,{valueAsNumber:e,valueAsDate:t,setValueAs:n})=>Dr(r)?r:e?r===""?NaN:r&&+r:t&&ma(r)?new Date(r):n?n(r):r;function N9(r){const e=r.ref;if(!(r.refs?r.refs.every(t=>t.disabled):e.disabled))return rx(e)?e.files:nx(e)?uD(r.refs).value:cD(e)?[...e.selectedOptions].map(({value:t})=>t):kf(e)?lD(r.refs).value:fD(Dr(e.value)?r.ref.value:e.value,r)}var oX=(r,e,t,n)=>{const i={};for(const s of r){const a=Le(e,s);a&&ir(i,s,a._f)}return{criteriaMode:t,names:[...r],fields:i,shouldUseNativeValidation:n}},L1=r=>Dr(r)?r:s4(r)?r.source:qr(r)?s4(r.value)?r.value.source:r.value:r,lX=r=>r.mount&&(r.required||r.min||r.max||r.maxLength||r.minLength||r.pattern||r.validate);function _b(r,e,t){const n=Le(r,t);if(n||tx(t))return{error:n,name:t};const i=t.split(".");for(;i.length;){const s=i.join("."),a=Le(e,s),o=Le(r,s);if(a&&!Array.isArray(a)&&t!==s)return{name:t};if(o&&o.type)return{name:s,error:o};i.pop()}return{name:t}}var uX=(r,e,t,n,i)=>i.isOnAll?!1:!t&&i.isOnTouch?!(e||r):(t?n.isOnBlur:i.isOnBlur)?!r:(t?n.isOnChange:i.isOnChange)?r:!0,cX=(r,e)=>!If(Le(r,e)).length&&jr(r,e);const hX={mode:Ls.onSubmit,reValidateMode:Ls.onChange,shouldFocusError:!0};function dX(r={}){let e={...hX,...r},t={submitCount:0,isDirty:!1,isLoading:ml(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=qr(e.defaultValues)||qr(e.values)?ts(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:ts(i),a={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},c={values:L9(),array:L9(),state:L9()},d=db(e.mode),f=db(e.reValidateMode),g=e.criteriaMode===Ls.all,y=W=>te=>{clearTimeout(u),u=setTimeout(W,te)},v=async W=>{if(h.isValid||W){const te=e.resolver?Hi((await P()).errors):await R(n,!0);te!==t.isValid&&c.state.next({isValid:te})}},_=(W,te)=>{(h.isValidating||h.validatingFields)&&((W||Array.from(o.mount)).forEach(oe=>{oe&&(te?ir(t.validatingFields,oe,te):jr(t.validatingFields,oe))}),c.state.next({validatingFields:t.validatingFields,isValidating:!Hi(t.validatingFields)}))},x=(W,te=[],oe,Ee,Ce=!0,xe=!0)=>{if(Ee&&oe){if(a.action=!0,xe&&Array.isArray(Le(n,W))){const Fe=oe(Le(n,W),Ee.argA,Ee.argB);Ce&&ir(n,W,Fe)}if(xe&&Array.isArray(Le(t.errors,W))){const Fe=oe(Le(t.errors,W),Ee.argA,Ee.argB);Ce&&ir(t.errors,W,Fe),cX(t.errors,W)}if(h.touchedFields&&xe&&Array.isArray(Le(t.touchedFields,W))){const Fe=oe(Le(t.touchedFields,W),Ee.argA,Ee.argB);Ce&&ir(t.touchedFields,W,Fe)}h.dirtyFields&&(t.dirtyFields=xp(i,s)),c.state.next({name:W,isDirty:N(W,te),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else ir(s,W,te)},w=(W,te)=>{ir(t.errors,W,te),c.state.next({errors:t.errors})},S=W=>{t.errors=W,c.state.next({errors:t.errors,isValid:!1})},b=(W,te,oe,Ee)=>{const Ce=Le(n,W);if(Ce){const xe=Le(s,W,Dr(oe)?Le(i,W):oe);Dr(xe)||Ee&&Ee.defaultChecked||te?ir(s,W,te?xe:N9(Ce._f)):V(W,xe),a.mount&&v()}},E=(W,te,oe,Ee,Ce)=>{let xe=!1,Fe=!1;const Ne={name:W},it=!!(Le(n,W)&&Le(n,W)._f.disabled);if(!oe||Ee){h.isDirty&&(Fe=t.isDirty,t.isDirty=Ne.isDirty=N(),xe=Fe!==Ne.isDirty);const Wt=it||Nu(Le(i,W),te);Fe=!!(!it&&Le(t.dirtyFields,W)),Wt||it?jr(t.dirtyFields,W):ir(t.dirtyFields,W,!0),Ne.dirtyFields=t.dirtyFields,xe=xe||h.dirtyFields&&Fe!==!Wt}if(oe){const Wt=Le(t.touchedFields,W);Wt||(ir(t.touchedFields,W,oe),Ne.touchedFields=t.touchedFields,xe=xe||h.touchedFields&&Wt!==oe)}return xe&&Ce&&c.state.next(Ne),xe?Ne:{}},D=(W,te,oe,Ee)=>{const Ce=Le(t.errors,W),xe=h.isValid&&il(te)&&t.isValid!==te;if(r.delayError&&oe?(l=y(()=>w(W,oe)),l(r.delayError)):(clearTimeout(u),l=null,oe?ir(t.errors,W,oe):jr(t.errors,W)),(oe?!Nu(Ce,oe):Ce)||!Hi(Ee)||xe){const Fe={...Ee,...xe&&il(te)?{isValid:te}:{},errors:t.errors,name:W};t={...t,...Fe},c.state.next(Fe)}},P=async W=>{_(W,!0);const te=await e.resolver(s,e.context,oX(W||o.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return _(W),te},I=async W=>{const{errors:te}=await P(W);if(W)for(const oe of W){const Ee=Le(te,oe);Ee?ir(t.errors,oe,Ee):jr(t.errors,oe)}else t.errors=te;return te},R=async(W,te,oe={valid:!0})=>{for(const Ee in W){const Ce=W[Ee];if(Ce){const{_f:xe,...Fe}=Ce;if(xe){const Ne=o.array.has(xe.name);_([Ee],!0);const it=await vb(Ce,s,g,e.shouldUseNativeValidation&&!te,Ne);if(_([Ee]),it[xe.name]&&(oe.valid=!1,te))break;!te&&(Le(it,xe.name)?Ne?nX(t.errors,it,xe.name):ir(t.errors,xe.name,it[xe.name]):jr(t.errors,xe.name))}Fe&&await R(Fe,te,oe)}}return oe.valid},U=()=>{for(const W of o.unMount){const te=Le(n,W);te&&(te._f.refs?te._f.refs.every(oe=>!O9(oe)):!O9(te._f.ref))&&Te(W)}o.unMount=new Set},N=(W,te)=>(W&&te&&ir(s,W,te),!Nu(J(),i)),F=(W,te,oe)=>eX(W,o,{...a.mount?s:Dr(te)?i:ma(W)?{[W]:te}:te},oe,te),O=W=>If(Le(a.mount?s:i,W,r.shouldUnregister?Le(i,W,[]):[])),V=(W,te,oe={})=>{const Ee=Le(n,W);let Ce=te;if(Ee){const xe=Ee._f;xe&&(!xe.disabled&&ir(s,W,fD(te,xe)),Ce=i4(xe.ref)&&jn(te)?"":te,cD(xe.ref)?[...xe.ref.options].forEach(Fe=>Fe.selected=Ce.includes(Fe.value)):xe.refs?kf(xe.ref)?xe.refs.length>1?xe.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(Ce)?!!Ce.find(Ne=>Ne===Fe.value):Ce===Fe.value)):xe.refs[0]&&(xe.refs[0].checked=!!Ce):xe.refs.forEach(Fe=>Fe.checked=Fe.value===Ce):rx(xe.ref)?xe.ref.value="":(xe.ref.value=Ce,xe.ref.type||c.values.next({name:W,values:{...s}})))}(oe.shouldDirty||oe.shouldTouch)&&E(W,Ce,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&G(W)},q=(W,te,oe)=>{for(const Ee in te){const Ce=te[Ee],xe=`${W}.${Ee}`,Fe=Le(n,xe);(o.array.has(W)||!a4(Ce)||Fe&&!Fe._f)&&!Ah(Ce)?q(xe,Ce,oe):V(xe,Ce,oe)}},Z=(W,te,oe={})=>{const Ee=Le(n,W),Ce=o.array.has(W),xe=ts(te);ir(s,W,xe),Ce?(c.array.next({name:W,values:{...s}}),(h.isDirty||h.dirtyFields)&&oe.shouldDirty&&c.state.next({name:W,dirtyFields:xp(i,s),isDirty:N(W,xe)})):Ee&&!Ee._f&&!jn(xe)?q(W,xe,oe):V(W,xe,oe),fb(W,o)&&c.state.next({...t}),c.values.next({name:a.mount?W:void 0,values:{...s}})},j=async W=>{a.mount=!0;const te=W.target;let oe=te.name,Ee=!0;const Ce=Le(n,oe),xe=()=>te.type?N9(Ce._f):GW(W),Fe=Ne=>{Ee=Number.isNaN(Ne)||Ne===Le(s,oe,Ne)};if(Ce){let Ne,it;const Wt=xe(),ye=W.type===hb.BLUR||W.type===hb.FOCUS_OUT,vi=!lX(Ce._f)&&!e.resolver&&!Le(t.errors,oe)&&!Ce._f.deps||uX(ye,Le(t.touchedFields,oe),t.isSubmitted,f,d),on=fb(oe,o,ye);ir(s,oe,Wt),ye?(Ce._f.onBlur&&Ce._f.onBlur(W),l&&l(0)):Ce._f.onChange&&Ce._f.onChange(W);const On=E(oe,Wt,ye,!1),vo=!Hi(On)||on;if(!ye&&c.values.next({name:oe,type:W.type,values:{...s}}),vi)return h.isValid&&v(),vo&&c.state.next({name:oe,...on?{}:On});if(!ye&&on&&c.state.next({...t}),e.resolver){const{errors:Cn}=await P([oe]);if(Fe(Wt),Ee){const er=_b(t.errors,n,oe),Ha=_b(Cn,n,er.name||oe);Ne=Ha.error,oe=Ha.name,it=Hi(Cn)}}else _([oe],!0),Ne=(await vb(Ce,s,g,e.shouldUseNativeValidation))[oe],_([oe]),Fe(Wt),Ee&&(Ne?it=!1:h.isValid&&(it=await R(n,!0)));Ee&&(Ce._f.deps&&G(Ce._f.deps),D(oe,it,Ne,On))}},Y=(W,te)=>{if(Le(t.errors,te)&&W.focus)return W.focus(),1},G=async(W,te={})=>{let oe,Ee;const Ce=F9(W);if(e.resolver){const xe=await I(Dr(W)?W:Ce);oe=Hi(xe),Ee=W?!Ce.some(Fe=>Le(xe,Fe)):oe}else W?(Ee=(await Promise.all(Ce.map(async xe=>{const Fe=Le(n,xe);return await R(Fe&&Fe._f?{[xe]:Fe}:Fe)}))).every(Boolean),!(!Ee&&!t.isValid)&&v()):Ee=oe=await R(n);return c.state.next({...!ma(W)||h.isValid&&oe!==t.isValid?{}:{name:W},...e.resolver||!W?{isValid:oe}:{},errors:t.errors}),te.shouldFocus&&!Ee&&Cd(n,Y,W?Ce:o.mount),Ee},J=W=>{const te={...a.mount?s:i};return Dr(W)?te:ma(W)?Le(te,W):W.map(oe=>Le(te,oe))},ee=(W,te)=>({invalid:!!Le((te||t).errors,W),isDirty:!!Le((te||t).dirtyFields,W),isTouched:!!Le((te||t).touchedFields,W),isValidating:!!Le((te||t).validatingFields,W),error:Le((te||t).errors,W)}),ve=W=>{W&&F9(W).forEach(te=>jr(t.errors,te)),c.state.next({errors:W?t.errors:{}})},_e=(W,te,oe)=>{const Ee=(Le(n,W,{_f:{}})._f||{}).ref,Ce=Le(t.errors,W)||{},{ref:xe,message:Fe,type:Ne,...it}=Ce;ir(t.errors,W,{...it,...te,ref:Ee}),c.state.next({name:W,errors:t.errors,isValid:!1}),oe&&oe.shouldFocus&&Ee&&Ee.focus&&Ee.focus()},Oe=(W,te)=>ml(W)?c.values.subscribe({next:oe=>W(F(void 0,te),oe)}):F(W,te,!0),Te=(W,te={})=>{for(const oe of W?F9(W):o.mount)o.mount.delete(oe),o.array.delete(oe),te.keepValue||(jr(n,oe),jr(s,oe)),!te.keepError&&jr(t.errors,oe),!te.keepDirty&&jr(t.dirtyFields,oe),!te.keepTouched&&jr(t.touchedFields,oe),!te.keepIsValidating&&jr(t.validatingFields,oe),!e.shouldUnregister&&!te.keepDefaultValue&&jr(i,oe);c.values.next({values:{...s}}),c.state.next({...t,...te.keepDirty?{isDirty:N()}:{}}),!te.keepIsValid&&v()},qe=({disabled:W,name:te,field:oe,fields:Ee,value:Ce})=>{if(il(W)&&a.mount||W){const xe=W?void 0:Dr(Ce)?N9(oe?oe._f:Le(Ee,te)._f):Ce;ir(s,te,xe),E(te,xe,!1,!1,!0)}},$e=(W,te={})=>{let oe=Le(n,W);const Ee=il(te.disabled);return ir(n,W,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:W}},name:W,mount:!0,...te}}),o.mount.add(W),oe?qe({field:oe,disabled:te.disabled,name:W,value:te.value}):b(W,!0,te.value),{...Ee?{disabled:te.disabled}:{},...e.progressive?{required:!!te.required,min:L1(te.min),max:L1(te.max),minLength:L1(te.minLength),maxLength:L1(te.maxLength),pattern:L1(te.pattern)}:{},name:W,onChange:j,onBlur:j,ref:Ce=>{if(Ce){$e(W,te),oe=Le(n,W);const xe=Dr(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,Fe=aX(xe),Ne=oe._f.refs||[];if(Fe?Ne.find(it=>it===xe):xe===oe._f.ref)return;ir(n,W,{_f:{...oe._f,...Fe?{refs:[...Ne.filter(O9),xe,...Array.isArray(Le(i,W))?[{}]:[]],ref:{type:xe.type,name:W}}:{ref:xe}}}),b(W,!1,void 0,xe)}else oe=Le(n,W,{}),oe._f&&(oe._f.mount=!1),(e.shouldUnregister||te.shouldUnregister)&&!(XW(o.array,W)&&a.action)&&o.unMount.add(W)}}},lt=()=>e.shouldFocusError&&Cd(n,Y,o.mount),We=W=>{il(W)&&(c.state.next({disabled:W}),Cd(n,(te,oe)=>{const Ee=Le(n,oe);Ee&&(te.disabled=Ee._f.disabled||W,Array.isArray(Ee._f.refs)&&Ee._f.refs.forEach(Ce=>{Ce.disabled=Ee._f.disabled||W}))},0,!1))},Ze=(W,te)=>async oe=>{let Ee;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Ce=ts(s);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:xe,values:Fe}=await P();t.errors=xe,Ce=Fe}else await R(n);if(jr(t.errors,"root"),Hi(t.errors)){c.state.next({errors:{}});try{await W(Ce,oe)}catch(xe){Ee=xe}}else te&&await te({...t.errors},oe),lt(),setTimeout(lt);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hi(t.errors)&&!Ee,submitCount:t.submitCount+1,errors:t.errors}),Ee)throw Ee},st=(W,te={})=>{Le(n,W)&&(Dr(te.defaultValue)?Z(W,ts(Le(i,W))):(Z(W,te.defaultValue),ir(i,W,ts(te.defaultValue))),te.keepTouched||jr(t.touchedFields,W),te.keepDirty||(jr(t.dirtyFields,W),t.isDirty=te.defaultValue?N(W,ts(Le(i,W))):N()),te.keepError||(jr(t.errors,W),h.isValid&&v()),c.state.next({...t}))},Pe=(W,te={})=>{const oe=W?ts(W):i,Ee=ts(oe),Ce=Hi(W),xe=Ce?i:Ee;if(te.keepDefaultValues||(i=oe),!te.keepValues){if(te.keepDirtyValues)for(const Fe of o.mount)Le(t.dirtyFields,Fe)?ir(xe,Fe,Le(s,Fe)):Z(Fe,Le(xe,Fe));else{if(ex&&Dr(W))for(const Fe of o.mount){const Ne=Le(n,Fe);if(Ne&&Ne._f){const it=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(i4(it)){const Wt=it.closest("form");if(Wt){Wt.reset();break}}}}n={}}s=r.shouldUnregister?te.keepDefaultValues?ts(i):{}:ts(xe),c.array.next({values:{...xe}}),c.values.next({values:{...xe}})}o={mount:te.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!te.keepIsValid||!!te.keepDirtyValues,a.watch=!!r.shouldUnregister,c.state.next({submitCount:te.keepSubmitCount?t.submitCount:0,isDirty:Ce?!1:te.keepDirty?t.isDirty:!!(te.keepDefaultValues&&!Nu(W,i)),isSubmitted:te.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:Ce?[]:te.keepDirtyValues?te.keepDefaultValues&&s?xp(i,s):t.dirtyFields:te.keepDefaultValues&&W?xp(i,W):{},touchedFields:te.keepTouched?t.touchedFields:{},errors:te.keepErrors?t.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},rt=(W,te)=>Pe(ml(W)?W(s):W,te);return{control:{register:$e,unregister:Te,getFieldState:ee,handleSubmit:Ze,setError:_e,_executeSchema:P,_getWatch:F,_getDirty:N,_updateV
1029alid:v,_removeUnmounted:U,_updateFieldArray:x,_updateDisabledField:qe,_getFieldArray:O,_reset:Pe,_resetDefaultValues:()=>ml(e.defaultValues)&&e.defaultValues().then(W=>{rt(W,e.resetOptions),c.state.next({isLoading:!1})}),_updateFormState:W=>{t={...t,...W}},_disableForm:We,_subjects:c,_proxyFormState:h,_setErrors:S,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(W){a=W},get _defaultValues(){return i},get _names(){return o},set _names(W){o=W},get _formState(){return t},set _formState(W){t=W},get _options(){return e},set _options(W){e={...e,...W}}},trigger:G,register:$e,handleSubmit:Ze,watch:Oe,setValue:Z,getValues:J,reset:rt,resetField:st,clearErrors:ve,unregister:Te,setError:_e,setFocus:(W,te={})=>{const oe=Le(n,W),Ee=oe&&oe._f;if(Ee){const Ce=Ee.refs?Ee.refs[0]:Ee.ref;Ce.focus&&(Ce.focus(),te.shouldSelect&&Ce.select())}},getFieldState:ee}}function fX(r={}){const e=Ht.useRef(),t=Ht.useRef(),[n,i]=Ht.useState({isDirty:!1,isValidating:!1,isLoading:ml(r.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1,defaultValues:ml(r.defaultValues)?void 0:r.defaultValues});e.current||(e.current={...dX(r),formState:n});const s=e.current.control;return s._options=r,JW({subject:s._subjects.state,next:a=>{KW(a,s._proxyFormState,s._updateFormState)&&i({...s._formState})}}),Ht.useEffect(()=>s._disableForm(r.disabled),[s,r.disabled]),Ht.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==n.isDirty&&s._subjects.state.next({isDirty:a})}},[s,n.isDirty]),Ht.useEffect(()=>{r.values&&!Nu(r.values,t.current)?(s._reset(r.values,s._options.resetOptions),t.current=r.values,i(a=>({...a}))):s._resetDefaultValues()},[r.values,s]),Ht.useEffect(()=>{r.errors&&s._setErrors(r.errors)},[r.errors,s]),Ht.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),Ht.useEffect(()=>{r.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[r.shouldUnregister,s]),e.current.formState=QW(n,s),e.current}var xb=function(r,e,t){if(r&&"reportValidity"in r){var n=Le(t,e);r.setCustomValidity(n&&n.message||""),r.reportValidity()}},pD=function(r,e){var t=function(i){var s=e.fields[i];s&&s.ref&&"reportValidity"in s.ref?xb(s.ref,i,r):s.refs&&s.refs.forEach(function(a){return xb(a,i,r)})};for(var n in e.fields)t(n)},pX=function(r){return r instanceof Date},mX=function(r){return r==null},gX=function(r){return typeof r=="object"},yX=function(r){return!mX(r)&&!Array.isArray(r)&&gX(r)&&!pX(r)},vX=function(r){return/^\w*$/.test(r)},B9=function(r,e,t){for(var n=-1,i=vX(e)?[e]:function(h){return c=h.replace(/["|']|\]/g,"").split(/\.|\[/),Array.isArray(c)?c.filter(Boolean):[];var c}(e),s=i.length,a=s-1;++n<s;){var o=i[n],l=t;if(n!==a){var u=r[o];
vendor: 7,390 bytes, line 1029
1029l=yX(u)||Array.isArray(u)?u:isNaN(+i[n+1])?{}:[]}r[o]=l,r=r[o]}return r},_X=function(r,e){e.shouldUseNativeValidation&&pD(r,e);var t={};for(var n in r){var i=Le(e.fields,n),s=Object.assign(r[n]||{},{ref:i&&i.ref});if(xX(e.names||Object.keys(r),n)){var a=Object.assign({},Le(t,n));B9(a,"root",s),B9(t,n,a)}else B9(t,n,s)}return t},xX=function(r,e){return r.some(function(t){return t.startsWith(e+".")})},CX=function(r,e){for(var t={};r.length;){var n=r[0],i=n.code,s=n.message,a=n.path.join(".");if(!t[a])if("unionErrors"in n){var o=n.unionErrors[0].errors[0];t[a]={message:o.message,type:o.code}}else t[a]={message:s,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(h){return h.errors.forEach(function(c){return r.push(c)})}),e){var l=t[a].types,u=l&&l[n.code];t[a]=oD(a,e,t,i,u?[].concat(u,n.message):n.message)}r.shift()}return t},wX=function(r,e,t){return t===void 0&&(t={}),function(n,i,s){try{return Promise.resolve(function(a,o){try{var l=Promise.resolve(r[t.mode==="sync"?"parse":"parseAsync"](n,e)).then(function(u){return s.shouldUseNativeValidation&&pD({},s),{errors:{},values:t.raw?n:u}})}catch(u){return o(u)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(function(o){return o.errors!=null}(a))return{values:{},errors:_X(CX(a.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw a}))}catch(a){return Promise.reject(a)}}},Et;(function(r){r.assertEqual=i=>i;function e(i){}r.assertIs=e;function t(i){throw new Error}r.assertNever=t,r.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return r.objectValues(a)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},r.find=(i,s)=>{for(const a of i)if(s(a))return a},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}r.joinValues=n,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Et||(Et={}));var av;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(av||(av={}));const Re=Et.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),sl=r=>{switch(typeof r){case"undefined":return Re.undefined;case"string":return Re.string;case"number":return isNaN(r)?Re.nan:Re.number;case"boolean":return Re.boolean;case"function":return Re.function;case"bigint":return Re.bigint;case"symbol":return Re.symbol;case"object":return Array.isArray(r)?Re.array:r===null?Re.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Re.promise:typeof Map<"u"&&r instanceof Map?Re.map:typeof Set<"u"&&r instanceof Set?Re.set:typeof Date<"u"&&r instanceof Date?Re.date:Re.object;default:return Re.unknown}},be=Et.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bX=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class Ui extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(s){return s.message},n={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(t(a));else{let o=n,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(t(a))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),n}static assert(e){if(!(e instanceof Ui))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Et.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ui.create=r=>new Ui(r);const g0=(r,e)=>{let t;switch(r.code){case be.invalid_type:r.received===Re.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case be.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,Et.jsonStringifyReplacer)}`;break;case be.unrecognized_keys:t=`Unrecognized key(s) in object: ${Et.joinValues(r.keys,", ")}`;break;case be.invalid_union:t="Invalid input";break;case be.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Et.joinValues(r.options)}`;break;case be.invalid_enum_value:t=`Invalid enum value. Expected ${Et.joinValues(r.options)}, received '${r.received}'`;break;case be.invalid_arguments:t="Invalid function arguments";break;case be.invalid_return_type:t="Invalid function return type";break;case be.invalid_date:t="Invalid date";break;case be.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:Et.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case be.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case be.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case be.custom:t="Invalid input";break;
vendor: 4,875 bytes, line 1029
1029case be.invalid_intersection_types:t="Intersection results could not be merged";break;case be.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case be.not_finite:t="Number must be finite";break;default:t=e.defaultError,Et.assertNever(r)}return{message:t}};let mD=g0;function SX(r){mD=r}function l4(){return mD}const u4=r=>{const{data:e,path:t,errorMaps:n,issueData:i}=r,s=[...t,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)o=u(a,{data:e,defaultError:o}).message;return{...i,path:s,message:o}},AX=[];function ke(r,e){const t=l4(),n=u4({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===g0?void 0:g0].filter(i=>!!i)});r.common.issues.push(n)}class Ln{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if(i.status==="aborted")return nt;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const i of t){const s=await i.key,a=await i.value;n.push({key:s,value:a})}return Ln.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return nt;s.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[s.value]=a.value)}return{status:e.value,value:n}}}const nt=Object.freeze({status:"aborted"}),Th=r=>({status:"dirty",value:r}),Yn=r=>({status:"valid",value:r}),ov=r=>r.status==="aborted",lv=r=>r.status==="dirty",sf=r=>r.status==="valid",af=r=>typeof Promise<"u"&&r instanceof Promise;function c4(r,e,t,n){if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(r)}function gD(r,e,t,n,i){if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(r,t),t}var Xe;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(Xe||(Xe={}));var K1,J1;class Ea{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Cb=(r,e)=>{if(sf(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Ui(r.common.issues);return this._error=t,this._error}}};function ht(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:n,description:i}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(a,o)=>{var l,u;const{message:h}=r;return a.code==="invalid_enum_value"?{message:h??o.defaultError}:typeof o.data>"u"?{message:(l=h??n)!==null&&l!==void 0?l:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(u=h??t)!==null&&u!==void 0?u:o.defaultError}},description:i}}class mt{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return sl(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ln,ctx:{common:e.parent.common,data:e.data,parsedType:sl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);
vendor: 46,752 bytes, line 1029
1029if(af(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:(n=t==null?void 0:t.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:sl(e)},s=this._parseSync({data:e,path:i.path,parent:i});return Cb(i,s)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:sl(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(af(i)?i:Promise.resolve(i));return Cb(n,s)}refine(e,t){const n=i=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(i):t;return this._refinement((i,s)=>{const a=e(i),o=()=>s.addIssue({code:be.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof t=="function"?t(n,i):t),!1))}_refinement(e){return new Xs({schema:this,typeName:tt.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return wa.create(this,this._def)}nullable(){return Nl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vs.create(this,this._def)}promise(){return v0.create(this,this._def)}or(e){return cf.create([this,e],this._def)}and(e){return hf.create(this,e,this._def)}transform(e){return new Xs({...ht(this._def),schema:this,typeName:tt.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new gf({...ht(this._def),innerType:this,defaultValue:t,typeName:tt.ZodDefault})}brand(){return new ix({typeName:tt.ZodBranded,type:this,...ht(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new yf({...ht(this._def),innerType:this,catchValue:t,typeName:tt.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Mf.create(this,e)}readonly(){return vf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const TX=/^c[^\s-]{8,}$/i,EX=/^[0-9a-z]+$/,PX=/^[0-9A-HJKMNP-TV-Z]{26}$/,DX=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,HX=/^[a-z0-9_-]{21}$/i,kX=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,IX=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let U9;const RX=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,FX=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,LX=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yD="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",OX=new RegExp(`^${yD}$`);function vD(r){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`),e}function NX(r){return new RegExp(`^${vD(r)}$`)}function _D(r){let e=`${yD}T${vD(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function BX(r,e){return!!((e==="v4"||!e)&&RX.test(r)||(e==="v6"||!e)&&FX.test(r))}class Bs extends mt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Re.string){const s=this._getOrReturnCtx(e);return ke(s,{code:be.invalid_type,expected:Re.string,received:s.parsedType}),nt}const n=new Ln;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),ke(i,{code:be.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),ke(i,{code:be.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const a=e.data.length>s.value,o=e.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(e,i),a?ke(i,{code:be.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&ke(i,{code:be.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")IX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"email",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")U9||(U9=new RegExp(MX,"u")),U9.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"emoji",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")DX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"uuid",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")HX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"nanoid",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")TX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"cuid",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")EX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"cuid2",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")PX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"ulid",code:be.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ke(i,{validation:"url",code:be.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"regex",code:be.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?_D(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?OX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?NX(s).test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{code:be.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?kX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"duration",code:be.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?BX(e.data,s.version)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"ip",code:be.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?LX.test(e.data)||(i=this._getOrReturnCtx(e,i),ke(i,{validation:"base64",code:be.invalid_string,message:s.message}),n.dirty()):Et.assertNever(s);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(i=>e.test(i),{validation:t,code:be.invalid_string,...Xe.errToObj(n)})}_addCheck(e){return new Bs({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Xe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Xe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Xe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Xe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Xe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Xe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Xe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Xe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Xe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Xe.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...Xe.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...Xe.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Xe.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Xe.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...Xe.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Xe.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Xe.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Xe.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Xe.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Xe.errToObj(t)})}nonempty(e){return this.min(1,Xe.errToObj(e))}trim(){return new Bs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Bs.create=r=>{var e;return new Bs({checks:[],typeName:tt.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ht(r)})};function UX(r,e){const t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=t>n?t:n,s=parseInt(r.toFixed(i).replace(".","")),a=parseInt(e.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}class Fl extends mt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Re.number){const s=this._getOrReturnCtx(e);return ke(s,{code:be.invalid_type,expected:Re.number,received:s.parsedType}),nt}let n;const i=new Ln;for(const s of this._def.checks)s.kind==="int"?Et.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ke(n,{code:be.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?UX(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ke(n,{code:be.not_finite,message:s.message}),i.dirty()):Et.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Xe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Xe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Xe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Xe.toString(t))}setLimit(e,t,n,i){return new Fl({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Xe.toString(i)}]})}_addCheck(e){return new Fl({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Xe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Xe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Xe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Xe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Xe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Xe.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Xe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Xe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Xe.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Et.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Fl.create=r=>new Fl({checks:[],typeName:tt.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...ht(r)});class Ll extends mt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Re.bigint){const s=this._getOrReturnCtx(e);return ke(s,{code:be.invalid_type,expected:Re.bigint,received:s.parsedType}),nt}let n;const i=new Ln;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ke(n,{code:be.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Et.assertNever(s);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Xe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Xe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Xe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Xe.toString(t))}setLimit(e,t,n,i){return new Ll({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Xe.toString(i)}]})}_addCheck(e){return new Ll({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Xe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Xe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Xe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Xe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Xe.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Ll.create=r=>{var e;return new Ll({checks:[],typeName:tt.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ht(r)})};class of extends mt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Re.boolean){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.boolean,received:n.parsedType}),nt}return Yn(e.data)}}of.create=r=>new of({typeName:tt.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...ht(r)});class lc extends mt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Re.date){const s=this._getOrReturnCtx(e);return ke(s,{code:be.invalid_type,expected:Re.date,received:s.parsedType}),nt}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return ke(s,{code:be.invalid_date}),nt}const n=new Ln;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),ke(i,{code:be.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),ke(i,{code:be.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Et.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new lc({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Xe.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Xe.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}lc.create=r=>new lc({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:tt.ZodDate,...ht(r)});class h4 extends mt{_parse(e){if(this._getType(e)!==Re.symbol){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.symbol,received:n.parsedType}),nt}return Yn(e.data)}}h4.create=r=>new h4({typeName:tt.ZodSymbol,...ht(r)});class lf extends mt{_parse(e){if(this._getType(e)!==Re.undefined){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.undefined,received:n.parsedType}),nt}return Yn(e.data)}}lf.create=r=>new lf({typeName:tt.ZodUndefined,...ht(r)});class uf extends mt{_parse(e){if(this._getType(e)!==Re.null){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.null,received:n.parsedType}),nt}return Yn(e.data)}}uf.create=r=>new uf({typeName:tt.ZodNull,...ht(r)});class y0 extends mt{constructor(){super(...arguments),this._any=!0}_parse(e){return Yn(e.data)}}y0.create=r=>new y0({typeName:tt.ZodAny,...ht(r)});class Xu extends mt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Yn(e.data)}}Xu.create=r=>new Xu({typeName:tt.ZodUnknown,...ht(r)});class go extends mt{_parse(e){const t=this._getOrReturnCtx(e);return ke(t,{code:be.invalid_type,expected:Re.never,received:t.parsedType}),nt}}go.create=r=>new go({typeName:tt.ZodNever,...ht(r)});class d4 extends mt{_parse(e){if(this._getType(e)!==Re.undefined){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.void,received:n.parsedType}),nt}return Yn(e.data)}}d4.create=r=>new d4({typeName:tt.ZodVoid,...ht(r)});class Vs extends mt{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==Re.array)return ke(t,{code:be.invalid_type,expected:Re.array,received:t.parsedType}),nt;if(i.exactLength!==null){const a=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(a||o)&&(ke(t,{code:a?be.too_big:be.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&t.data.length<i.minLength.value&&(ke(t,{code:be.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&t.data.length>i.maxLength.value&&(ke(t,{code:be.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((a,o)=>i.type._parseAsync(new Ea(t,a,t.path,o)))).then(a=>Ln.mergeArray(n,a));const s=[...t.data].map((a,o)=>i.type._parseSync(new Ea(t,a,t.path,o)));return Ln.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new Vs({...this._def,minLength:{value:e,message:Xe.toString(t)}})}max(e,t){return new Vs({...this._def,maxLength:{value:e,message:Xe.toString(t)}})}length(e,t){return new Vs({...this._def,exactLength:{value:e,message:Xe.toString(t)}})}nonempty(e){return this.min(1,e)}}Vs.create=(r,e)=>new Vs({type:r,minLength:null,maxLength:null,exactLength:null,typeName:tt.ZodArray,...ht(e)});function sh(r){if(r instanceof pr){const e={};for(const t in r.shape){const n=r.shape[t];e[t]=wa.create(sh(n))}return new pr({...r._def,shape:()=>e})}else return r instanceof Vs?new Vs({...r._def,type:sh(r.element)}):r instanceof wa?wa.create(sh(r.unwrap())):r instanceof Nl?Nl.create(sh(r.unwrap())):r instanceof Pa?Pa.create(r.items.map(e=>sh(e))):r}class pr extends mt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=Et.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Re.object){const u=this._getOrReturnCtx(e);return ke(u,{code:be.invalid_type,expected:Re.object,received:u.parsedType}),nt}const{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof go&&this._def.unknownKeys==="strip"))for(const u in i.data)a.includes(u)||o.push(u);const l=[];for(const u of a){const h=s[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:h._parse(new Ea(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof go){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of o)l.push({key:{status:"valid",value:h},value:{status:"valid",value:i.data[h]}});else if(u==="strict")o.length>0&&(ke(i,{code:be.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of o){const c=i.data[h];l.push({key:{status:"valid",value:h},value:u._parse(new Ea(i,c,i.path,h)),alwaysSet:h in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of l){const c=await h.key,d=await h.value;u.push({key:c,value:d,alwaysSet:h.alwaysSet})}return u}).then(u=>Ln.mergeObjectSync(n,u)):Ln.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return Xe.errToObj,new pr({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var i,s,a,o;const l=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,t,n).message)!==null&&a!==void 0?a:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=Xe.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new pr({...this._def,unknownKeys:"strip"})}passthrough(){return new pr({...this._def,unknownKeys:"passthrough"})}extend(e){return new pr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new pr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tt.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new pr({...this._def,catchall:e})}pick(e){const t={};return Et.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new pr({...this._def,shape:()=>t})}omit(e){const t={};return Et.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new pr({...this._def,shape:()=>t})}deepPartial(){return sh(this)}partial(e){const t={};return Et.objectKeys(this.shape).forEach(n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()}),new pr({...this._def,shape:()=>t})}required(e){const t={};return Et.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof wa;)s=s._def.innerType;t[n]=s}}),new pr({...this._def,shape:()=>t})}keyof(){return xD(Et.objectKeys(this.shape))}}pr.create=(r,e)=>new pr({shape:()=>r,unknownKeys:"strip",catchall:go.create(),typeName:tt.ZodObject,...ht(e)});pr.strictCreate=(r,e)=>new pr({shape:()=>r,unknownKeys:"strict",catchall:go.create(),typeName:tt.ZodObject,...ht(e)});pr.lazycreate=(r,e)=>new pr({shape:r,unknownKeys:"strip",catchall:go.create(),typeName:tt.ZodObject,...ht(e)});class cf extends mt{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new Ui(o.ctx.common.issues));return ke(t,{code:be.invalid_union,unionErrors:a}),nt}if(t.common.async)return Promise.all(n.map(async s=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await s._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const l of n){const u={...t,common:{...t.common,issues:[]},parent:null},h=l._parseSync({data:t.data,path:t.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(l=>new Ui(l));return ke(t,{code:be.invalid_union,unionErrors:o}),nt}}get options(){return this._def.options}}cf.create=(r,e)=>new cf({options:r,typeName:tt.ZodUnion,...ht(e)});const Wa=r=>r instanceof ff?Wa(r.schema):r instanceof Xs?Wa(r.innerType()):r instanceof pf?[r.value]:r instanceof Ol?r.options:r instanceof mf?Et.objectValues(r.enum):r instanceof gf?Wa(r._def.innerType):r instanceof lf?[void 0]:r instanceof uf?[null]:r instanceof wa?[void 0,...Wa(r.unwrap())]:r instanceof Nl?[null,...Wa(r.unwrap())]:r instanceof ix||r instanceof vf?Wa(r.unwrap()):r instanceof yf?Wa(r._def.innerType):[];class Q4 extends mt{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Re.object)return ke(t,{code:be.invalid_type,expected:Re.object,received:t.parsedType}),nt;const n=this.discriminator,i=t.data[n],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(ke(t,{code:be.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),nt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const s of t){const a=Wa(s.shape[e]);if(!a.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of a){if(i.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Q4({typeName:tt.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...ht(n)})}}function uv(r,e){const t=sl(r),n=sl(e);if(r===e)return{valid:!0,data:r};if(t===Re.object&&n===Re.object){const i=Et.objectKeys(e),s=Et.objectKeys(r).filter(o=>i.indexOf(o)!==-1),a={...r,...e};for(const o of s){const l=uv(r[o],e[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(t===Re.array&&n===Re.array){if(r.length!==e.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const a=r[s],o=e[s],l=uv(a,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return t===Re.date&&n===Re.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class hf extends mt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(s,a)=>{if(ov(s)||ov(a))return nt;const o=uv(s.value,a.value);return o.valid?((lv(s)||lv(a))&&t.dirty(),{status:t.value,value:o.data}):(ke(n,{code:be.invalid_intersection_types}),nt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}hf.create=(r,e,t)=>new hf({left:r,right:e,typeName:tt.ZodIntersection,...ht(t)});class Pa extends mt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.array)return ke(n,{code:be.invalid_type,expected:Re.array,received:n.parsedType}),nt;if(n.data.length<this._def.items.length)return ke(n,{code:be.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),nt;!this._def.rest&&n.data.length>this._def.items.length&&(ke(n,{code:be.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...n.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Ea(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>Ln.mergeArray(t,a)):Ln.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Pa({...this._def,rest:e})}}Pa.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Pa({items:r,typeName:tt.ZodTuple,rest:null,...ht(e)})};class df extends mt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.object)return ke(n,{code:be.invalid_type,expected:Re.object,received:n.parsedType}),nt;const i=[],s=this._def.keyType,a=this._def.valueType;for(const o in n.data)i.push({key:s._parse(new Ea(n,o,n.path,o)),value:a._parse(new Ea(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ln.mergeObjectAsync(t,i):Ln.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof mt?new df({keyType:e,valueType:t,typeName:tt.ZodRecord,...ht(n)}):new df({keyType:Bs.create(),valueType:e,typeName:tt.ZodRecord,...ht(t)})}}class f4 extends mt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.map)return ke(n,{code:be.invalid_type,expected:Re.map,received:n.parsedType}),nt;const i=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([o,l],u)=>({key:i._parse(new Ea(n,o,n.path,[u,"key"])),value:s._parse(new Ea(n,l,n.path,[u,"value"]))}));if(n.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const u=await l.key,h=await l.value;if(u.status==="aborted"||h.status==="aborted")return nt;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),o.set(u.value,h.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const l of a){const u=l.key,h=l.value;if(u.status==="aborted"||h.status==="aborted")return nt;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),o.set(u.value,h.value)}return{status:t.value,value:o}}}}f4.create=(r,e,t)=>new f4({valueType:e,keyType:r,typeName:tt.ZodMap,...ht(t)});class uc extends mt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Re.set)return ke(n,{code:be.invalid_type,expected:Re.set,received:n.parsedType}),nt;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ke(n,{code:be.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ke(n,{code:be.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const s=this._def.valueType;function a(l){const u=new Set;for(const h of l){if(h.status==="aborted")return nt;h.status==="dirty"&&t.dirty(),u.add(h.value)}return{status:t.value,value:u}}const o=[...n.data.values()].map((l,u)=>s._parse(new Ea(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(e,t){return new uc({...this._def,minSize:{value:e,message:Xe.toString(t)}})}max(e,t){return new uc({...this._def,maxSize:{value:e,message:Xe.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}uc.create=(r,e)=>new uc({valueType:r,minSize:null,maxSize:null,typeName:tt.ZodSet,...ht(e)});class Xh extends mt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Re.function)return ke(t,{code:be.invalid_type,expected:Re.function,received:t.parsedType}),nt;function n(o,l){return u4({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l4(),g0].filter(u=>!!u),issueData:{code:be.invalid_arguments,argumentsError:l}})}function i(o,l){return u4({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l4(),g0].filter(u=>!!u),issueData:{code:be.invalid_return_type,returnTypeError:l}})}const s={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof v0){const o=this;return Yn(async function(...l){const u=new Ui([]),h=await o._def.args.parseAsync(l,s).catch(f=>{throw u.addIssue(n(l,f)),u}),c=await Reflect.apply(a,this,h);return await o._def.returns._def.type.parseAsync(c,s).catch(f=>{throw u.addIssue(i(c,f)),u})})}else{const o=this;return Yn(function(...l){const u=o._def.args.safeParse(l,s);if(!u.success)throw new Ui([n(l,u.error)]);const h=Reflect.apply(a,this,u.data),c=o._def.returns.safeParse(h,s);if(!c.success)throw new Ui([i(h,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Xh({...this._def,args:Pa.create(e).rest(Xu.create())})}returns(e){return new Xh({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Xh({args:e||Pa.create([]).rest(Xu.create()),returns:t||Xu.create(),typeName:tt.ZodFunction,...ht(n)})}}class ff extends mt{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ff.create=(r,e)=>new ff({getter:r,typeName:tt.ZodLazy,...ht(e)});class pf extends mt{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return ke(t,{received:t.data,code:be.invalid_literal,expected:this._def.value}),nt}return{status:"valid",value:e.data}}get value(){return this._def.value}}pf.create=(r,e)=>new pf({value:r,typeName:tt.ZodLiteral,...ht(e)});function xD(r,e){return new Ol({values:r,typeName:tt.ZodEnum,...ht(e)})}class Ol extends mt{constructor(){super(...arguments),K1.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),n=this._def.values;return ke(t,{expected:Et.joinValues(n),received:t.parsedType,code:be.invalid_type}),nt}if(c4(this,K1)||gD(this,K1,new Set(this._def.values)),!c4(this,K1).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return ke(t,{received:t.data,code:be.invalid_enum_value,options:n}),nt}return Yn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ol.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ol.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}}K1=new WeakMap;Ol.create=xD;class mf extends mt{constructor(){super(...arguments),J1.set(this,void 0)}_parse(e){const t=Et.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Re.string&&n.parsedType!==Re.number){const i=Et.objectValues(t);return ke(n,{expected:Et.joinValues(i),received:n.parsedType,code:be.invalid_type}),nt}if(c4(this,J1)||gD(this,J1,new Set(Et.getValidEnumValues(this._def.values))),!c4(this,J1).has(e.data)){const i=Et.objectValues(t);return ke(n,{received:n.data,code:be.invalid_enum_value,options:i}),nt}return Yn(e.data)}get enum(){return this._def.values}}J1=new WeakMap;mf.create=(r,e)=>new mf({values:r,typeName:tt.ZodNativeEnum,...ht(e)});class v0 extends mt{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Re.promise&&t.common.async===!1)return ke(t,{code:be.invalid_type,expected:Re.promise,received:t.parsedType}),nt;const n=t.parsedType===Re.promise?t.data:Promise.resolve(t.data);return Yn(n.then(i=>this._def.type.parseAsync(i,{path:t.path,errorMap:t.common.contextualErrorMap})))}}v0.create=(r,e)=>new v0({type:r,typeName:tt.ZodPromise,...ht(e)});class Xs extends mt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:a=>{ke(n,a),a.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async o=>{if(t.value==="aborted")return nt;const l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?nt:l.status==="dirty"||t.value==="dirty"?Th(l.value):l});{if(t.value==="aborted")return nt;const o=this._def.schema._parseSync({data:a,path:n.path,parent:n});return o.status==="aborted"?nt:o.status==="dirty"||t.value==="dirty"?Th(o.value):o}}if(i.type==="refinement"){const a=o=>{const l=i.refinement(o,s);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?nt:(o.status==="dirty"&&t.dirty(),a(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?nt:(o.status==="dirty"&&t.dirty(),a(o.value).then(()=>({status:t.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!sf(a))return a;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>sf(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:t.value,value:o})):a);Et.assertNever(i)}}Xs.create=(r,e,t)=>new Xs({schema:r,typeName:tt.ZodEffects,effect:e,...ht(t)});Xs.createWithPreprocess=(r,e,t)=>new Xs({schema:e,effect:{type:"preprocess",transform:r},typeName:tt.ZodEffects,...ht(t)});class wa extends mt{_parse(e){return this._getType(e)===Re.undefined?Yn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wa.create=(r,e)=>new wa({innerType:r,typeName:tt.ZodOptional,...ht(e)});class Nl extends mt{_parse(e){return this._getType(e)===Re.null?Yn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Nl.create=(r,e)=>new Nl({innerType:r,typeName:tt.ZodNullable,...ht(e)});class gf extends mt{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Re.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}gf.create=(r,e)=>new gf({innerType:r,typeName:tt.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ht(e)});class yf extends mt{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return af(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ui(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ui(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}yf.create=(r,e)=>new yf({innerType:r,typeName:tt.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ht(e)});class p4 extends mt{_parse(e){if(this._getType(e)!==Re.nan){const n=this._getOrReturnCtx(e);return ke(n,{code:be.invalid_type,expected:Re.nan,received:n.parsedType}),nt}return{status:"valid",value:e.data}}}p4.create=r=>new p4({typeName:tt.ZodNaN,...ht(r)});const $X=Symbol("zod_brand");class ix extends mt{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Mf extends mt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?nt:s.status==="dirty"?(t.dirty(),Th(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?nt:i.status==="dirty"?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,t){return new Mf({in:e,out:t,typeName:tt.ZodPipeline})}}class vf extends mt{_parse(e){const t=this._def.innerType._parse(e),n=i=>(sf(i)&&(i.value=Object.freeze(i.value)),i);return af(t)?t.then(i=>n(i)):n(t)}unwrap(){return this._def.innerType}}vf.create=(r,e)=>new vf({innerType:r,typeName:tt.ZodReadonly,...ht(e)});function CD(r,e={},t){return r?y0.create().superRefine((n,i)=>{var s,a;if(!r(n)){const o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,l=(a=(s=o.fatal)!==null&&s!==void 0?s:t)!==null&&a!==void 0?a:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:l})}}):y0.create()}const zX={object:pr.lazycreate};var tt;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(tt||(tt={}));const jX=(r,e={message:`Input not instance of ${r.name}`})=>CD(t=>t instanceof r,e),wD=Bs.create,bD=Fl.create,VX=p4.create,GX=Ll.create,SD=of.create,WX=lc.create,XX=h4.create,YX=lf.create,ZX=uf.create,qX=y0.create,QX=Xu.create,KX=go.create,JX=d4.create,eY=Vs.create,tY=pr.create,rY=pr.strictCreate,nY=cf.create,iY=Q4.create,sY=hf.create,aY=Pa.create,oY=df.create,lY=f4.create,uY=uc.create,cY=Xh.create,hY=ff.create,dY=pf.create,fY=Ol.create,pY=mf.create,mY=v0.create,wb=Xs.create,gY=wa.create,yY=Nl.create,vY=Xs.createWithPreprocess,_Y=Mf.create,xY=()=>wD().optional(),CY=()=>bD().optional(),wY=()=>SD().optional(),bY={string:r=>Bs.create({...r,coerce:!0}),number:r=>Fl.create({...r,coerce:!0}),boolean:r=>of.create({...r,coerce:!0}),bigint:r=>Ll.create({...r,coerce:!0}),date:r=>lc.create({...r,coerce:!0})},SY=nt;var eh=Object.freeze({__proto__:null,defaultErrorMap:g0,setErrorMap:SX,getErrorMap:l4,makeIssue:u4,EMPTY_PATH:AX,addIssueToContext:ke,ParseStatus:Ln,INVALID:nt,DIRTY:Th,OK:Yn,isAborted:ov,isDirty:lv,isValid:sf,isAsync:af,get util(){return Et},get objectUtil(){return av},ZodParsedType:Re,getParsedType:sl,ZodType:mt,datetimeRegex:_D,ZodString:Bs,ZodNumber:Fl,ZodBigInt:Ll,ZodBoolean:of,ZodDate:lc,ZodSymbol:h4,ZodUndefined:lf,ZodNull:uf,ZodAny:y0,ZodUnknown:Xu,ZodNever:go,ZodVoid:d4,ZodArray:Vs,ZodObject:pr,ZodUnion:cf,ZodDiscriminatedUnion:Q4,ZodIntersection:hf,ZodTuple:Pa,ZodRecord:df,ZodMap:f4,ZodSet:uc,ZodFunction:Xh,ZodLazy:ff,ZodLiteral:pf,ZodEnum:Ol,ZodNativeEnum:mf,ZodPromise:v0,ZodEffects:Xs,ZodTransformer:Xs,ZodOptional:wa,ZodNullable:Nl,ZodDefault:gf,ZodCatch:yf,ZodNaN:p4,BRAND:$X,ZodBranded:ix,ZodPipeline:Mf,ZodReadonly:vf,custom:CD,Schema:mt,ZodSchema:mt,late:zX,get ZodFirstPartyTypeKind(){return tt},coerce:bY,any:qX,array:eY,bigint:GX,boolean:SD,date:WX,discriminatedUnion:iY,effect:wb,enum:fY,function:cY,instanceof:jX,intersection:sY,lazy:hY,literal:dY,map:lY,nan:VX,nativeEnum:pY,never:KX,null:ZX,nullable:yY,number:bD,object:tY,oboolean:wY,onumber:CY,optional:gY,ostring:xY,pipeline:_Y,preprocess:vY,promise:mY,re
1029cord:oY,set:uY,strictObject:rY,string:wD,symbol:XX,transformer:wb,tuple:aY,undefined:YX,union:nY,unknown:QX,void:JX,NEVER:SY,ZodIssueCode:be,quotelessJson:bX,ZodError:Ui});const AY=eh.object({first_name:eh.string().min(1,"Por favor ingresa tu nombre"),last_name:eh.string().min(1,"Por favor ingresa tu apellido"),user_email:eh.string().min(1,"Por favor ingresa tu correo electrónico").email({message:"Por favor escribe un correo válido"}),legal_age:eh.boolean().refine(r=>r===!0,"Es necesario aceptar los Términos y Condiciones"),send_promos:eh.boolean().optional()}),TY="/images/disk/disk.png",$9="/images/disk/ellipse.png",AD=({className:r,delay:e=0})=>{const t=X.useRef(),n=ge.utils.selector(t),[i,s]=X.useState(!1);return pt(()=>{ge.fromTo(".animate",{scale:0},{scale:1,duration:1,ease:"back.out",stagger:.1,delay:e,onComplete:()=>s(!0),onStart:()=>gt.play("main-sfx","disk_pulse_animate_in")})},{scope:t}),pt(()=>{ge.to(".disk",{rotate:"-360",ease:"none",duration:2,repeat:-1})},{scope:t}),pt(()=>{if(!i)return;n(".ellipse").forEach((o,l)=>{ge.to(o,{scale:1.1,duration:.5,repeat:-1,yoyo:!0,delay:.1*l})})},{scope:t,dependencies:[i]}),B.jsx(B.Fragment,{children:B.jsxs("figure",{className:`relative flex justify-center items-center ${r}`,ref:t,children:[B.jsx("img",{src:TY,alt:"Zest",className:"animate disk absolute z-40 w-[90%]"}),B.jsx("img",{src:$9,alt:"Zest",className:"animate ellipse absolute z-30 w-[80%]"}),B.jsx("img",{src:$9,alt:"Zest",className:"animate ellipse absolute z-20 w-[90%]"}),B.jsx("img",{src:$9,alt:"Zest",className:"animate ellipse relative z-10 w-full"})]})})};function EY(r,e=[]){const[t,n]=X.useState(!0),[i,s]=X.useState(),[a,o]=X.useState(),l=X.useCallback(()=>{n(!0),s(void 0),o(void 0),r().then(o).catch(s).finally(()=>n(!1))},e);return X.useEffect(()=>{l()},[l]),{loading:t,error:i,value:a}}const PY={headers:{"Content-Type":"application/json"}};function DY(r,e={},t=[]){return EY(()=>fetch(r,{...PY,...e}).then(n=>n.ok?n.json():n.json().then(i=>Promise.reject(i))),t)}const HY=()=>{var w,S,b,E;const{register:r,control:e,formState:{errors:t}}=fX({resolver:wX(AY)}),n=X.useRef(),i=ge.utils.selector(n),{answers:s}=q4(),{setVideoUrl:a}=Y4(),{transition:o,setStep:l,setTransition:u}=vs(),[h,c]=X.useState(!1),d=X.useRef(!1),{value:f,loading:g,error:y}=DY("https://zest-ffmpeg.monwiredev.com/api/video",{method:"POST",body:JSON.stringify(s)});X.useEffect(()=>{f&&a(f.File)},[f,a]),X.useEffect(()=>{d.current=!0},[]),pt(()=>{if(!d.current)return;const D=i(".header")[0],P=i(".title")[0],I=i(".title__second")[0],R=i(".title__disk")[0],{width:U,left:N}=Ou(D),{width:F}=Ou(P),{width:O}=Ou(I),{width:V,left:q}=Ou(R),Z=(U-F)/2;ge.set(P,{x:Z});const j=(F-O)/2;ge.set(I,{x:j});const Y=-(q-N)+(U/2-V/2);ge.set(R,{x:Y,y:"250%",scale:3})},{scope:n,dependencies:[d]}),pt(()=>{const D=ge.timeline({delay:1,onComplete:()=>l(GA)});D.fromTo(".title",{autoAlpha:0,y:"50%"},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut"}),D.to(".title",{x:0,duration:2,ease:"expo.inOut"}),D.to(".title__second",{x:0,duration:2,ease:"expo.inOut"},"-=2"),D.to(".title__disk",{x:0,y:0,scale:1,duration:2,ease:"expo.inOut"},"-=2"),D.call(()=>gt.play("main-sfx","form_disk_animate_in"),null,"-=1.6"),D.fromTo(".form .animate",{y:50,autoAlpha:0},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",stagger:.1},"-=1.5")},{scope:n}),pt(()=>{o===Qg&&ge.to(n.current,{autoAlpha:0,duration:2,ease:"expo.out"})},{scope:n,dependencies:[o]});const v=({data:D})=>{c(!0);const P={...D,url_video:f.File,user_prompt:s};fetch("https://zest-registration.monwiredev.com/api/collections/registration/records",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE3Mjg0MjQxMDYsImlkIjoiM3VxN29zdmwxOWtrYWJ6IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.9OQtUjBAnwZOTcjOAKJW0hpe5pO22Tdv8IOdeUwK4E4"},body:JSON.stringify(P)}).then(I=>I.json()).then(_).catch(x)},_=()=>{var D;u(Qg),(D=window.fbq)==null||D.call(window,"track","CompleteRegistration")},x=()=>{c(!1)};return B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full sm:flex sm:flex-col sm:justify-start sm:items-center min-h-full text-white px-4 pt-[100px] sm:pt-[150px] overflow-auto pb-12",ref:n,children:[B.jsxs("header",{className:"header flex sm:justify-between items-center gap-4 mb-4 sm:w-[448px]",children:[B.jsxs("h2",{className:"title leading-[100%] text-[2.1875rem] sm:text-[3.4375rem] shrink-0",children:[B.jsx("span",{className:"block",children:"Estamos creando"}),B.jsx("span",{className:"title__second inline-block",children:"Tu Canción Zest"})]}),B.jsx("div",{className:"title__disk w-[80px] sm:w-[118px]",children:B.jsx(AD,{className:"size-full shrink-0",delay:1})})]}),B.jsxs(rX,{onSubmit:v,control:e,className:"form flex flex-col gap-4 sm:max-w-[430px]",children:[B.jsx("p",{className:"animate leading-[100%] text-center text-lg text-bayofmany",children:"Mientras tanto completa tus datos personales"}),B.jsxs("div",{className:"form__inner flex flex-col gap-4",children:[B.jsx(R9,{id:"first_name",placeholder:"Nombre",required:!0,register:r,error:(w=t.first_name)==null?void 0:w.message,className:"animate"}),B.jsx(R9,{id:"last_name",placeholder:"Apellido",required:!0,register:r,error:(S=t.last_name)==null?void 0:S.message,className:"animate"}),B.jsx(R9,{id:"user_email",type:"email",placeholder:"Correo Electrónico",required:!0,register:r,error:(b=t.user_email)==null?void 0:b.message,className:"animate"}),B.jsxs("div",{className:"flex flex-col gap-6 pl-8",children:[B.jsx(cb,{id:"legal_age",className:"animate",required:!0,register:r,error:(E=t.legal_age)==null?void 0:E.message,children:"*Confirmo que tengo 18 años o más"}),B.jsx(cb,{id:"send_promos",className:"animate",register:r,children:"¡Si! Quiero recibir promociones, noticias, campañas y ofertas personalizadas sobre otras marcas Unilever y sus acciones para hacer el bien (opcional)"})]}),B.jsxs("footer",{className:"flex flex-col gap-4 mt-4",children:[B.jsxs("p",{className:"animate",children:["Lee nuestro ",B.jsx("a",{href:"https://www.unilevernotices.com/privacy-notices/mexico-spanish.html",className:"text-turquoise underline",target:"_blank",children:"Aviso de privacidad"})," y ",B.jsx("a",{href:"https://www.unilevernotices.com/cookie-notices/mexico-spanish.html",className:"text-turquoise underline",target:"_blank",children:"Aviso de cookies"})," para entender mejor como utilizamos tus datos personales"]}),B.jsx(Rl,{type:"submit",className:"m-auto animate",loading:h,disabled:h,children:"Continuar"})]})]})]})]})})},kY=()=>{const r=X.useRef(),e=X.useRef(!1),{transition:t,setTransition:n,setStep:i}=vs(),{videoReady:s}=Y4();return X.useEffect(()=>{e.current=s},[s]),pt(()=>{ge.fromTo(".title",{y:"50%",autoAlpha:0},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",delay:1,onComplete:()=>i(WA),onStart:()=>{gt.fade("main-sfx","background_music",1,0,2e3),gt.fade("main-sfx","background_bubbles",1,0,2e3)}})},{scope:r}),pt(()=>{t===M3&&ge.to(r.current,{autoAlpha:0,duration:2,ease:"expo.inOut"})},{scope:r,dependencies:[t]}),X.useEffect(()=>{(async()=>(await E3(4e3),await E3(()=>e.current),n(M3)))()},[n]),B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full flex flex-col gap-10 justify-center items-center h-full px-4 text-center text-white",ref:r,children:[B.jsx("header",{children:B.jsxs("h2",{className:"text-[2.1875rem] sm:text-[3.4375rem] leading-[100%] title",children:["Un momento más... ",B.jsx("br",{})," Tu Canción Zest está casi lista"]})}),B.jsx(AD,{className:"w-[300px]",delay:1})]})})},IY=({className:r="",url:e=""})=>{const t=()=>{const i=document.createElement("a");i.href=e,i.download=!0,i.click()},n=async()=>
1029{if(navigator.share)try{await navigator.share({title:"Tu Cancion Zest",url:e})}catch(i){i.contains("AbortError")&&t()}else t()};return B.jsx(B.Fragment,{children:B.jsx(Rl,{theme:"light",className:`${r}`,onClick:n,children:"Compartir"})})},MY=({src:r,volume:e=1,className:t=""})=>{const n=X.useRef(),i=X.useRef(),[s,a]=X.useState(!1);pt(()=>{ge.fromTo("button",{scale:+!s},{scale:+s,duration:.5,ease:"back.inOut"})},{scope:n,dependencies:[s]}),X.useEffect(()=>{const l=i.current,u=()=>{a(!1)},h=()=>{a(!0)},c=()=>{setTimeout(()=>{l.paused?a(!0):a(!1)},3e3)};return l.addEventListener("play",u),l.addEventListener("error",h),l.addEventListener("waiting",c),l.play().catch(()=>{a(!0)}),()=>{l.removeEventListener("play",u),l.removeEventListener("error",h),l.removeEventListener("waiting",c)}},[]),X.useEffect(()=>{i.current.volume=e},[e]);const o=()=>{i.current.play().catch(()=>{a(!0)})};return B.jsx(B.Fragment,{children:B.jsxs("div",{ref:n,className:`${t} relative flex justify-center items-center`,children:[B.jsx("button",{className:"absolute z-10 text-white mt-32 sm:mt-0",onClick:o,children:B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-[30px]",fill:"currentColor",viewBox:"0 0 384 512",children:B.jsx("path",{d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"})})}),B.jsx("video",{ref:i,src:r,className:"size-full object-cover",playsInline:!0,autoPlay:!0,loop:!0})]})})},RY=()=>{const r=X.useRef(),{resetSelectorState:e}=xn(),{transition:t,setTransition:n,setStep:i}=vs(),{videoUrl:s}=Y4(),[a,o]=X.useState(1),l=()=>{e(),n(a0),gt.fade("main-sfx","background_music",0,1,2e3),gt.fade("main-sfx","background_bubbles",0,1,2e3)};return pt(()=>{const u=ge.timeline({onComplete:()=>i(XA)});u.fromTo(".video",{autoAlpha:0},{autoAlpha:1,duration:2,ease:"expo.inOut"}),u.fromTo([".title span",".footer button"],{y:"50%",autoAlpha:0},{y:0,autoAlpha:1,duration:2,ease:"expo.inOut",stagger:.05},"-=1.6"),u.call(()=>gt.play("main-sfx","final_animate_in"),null,"-=1.25")},{scope:r}),pt(()=>{if(t!==a0)return;const u=ge.timeline();u.to([".title > span",".footer button"],{y:"-50%",autoAlpha:0,duration:2,ease:"expo.inOut",stagger:.05}),u.to(".video",{y:-50,autoAlpha:0,duration:2,ease:"expo.inOut"},"-=1.9");const h={value:1};u.to(h,{value:0,duration:1,onUpdate:()=>{o(h.value)}},"-=2")},{scope:r,dependencies:[t]}),B.jsx(B.Fragment,{children:B.jsxs("section",{className:"absolute top-0 left-0 size-full flex justify-center items-center gap-20 h-full text-white pt-[23vh] pb-[4rem] sm:p-0",ref:r,children:[B.jsxs("div",{className:"relative z-[10] flex flex-col justify-between sm:justify-center items-center sm:items-start h-full sm:h-auto sm:max-w-[450px]",children:[B.jsx("header",{className:"mb-8",children:B.jsxs("h2",{className:"text-[2.1875rem] sm:text-[2.8125rem] leading-[100%] text-center sm:text-left title",children:[B.jsxs("span",{className:"block mb-4 sm:mb-0",children:["Aquí tienes ",B.jsx("span",{className:"sm:hidden",children:"Tu Canción Zest."})]}),B.jsx("span",{className:"hidden sm:block",children:"Tu Canción Zest."}),B.jsx("span",{className:"block",children:"¡Súbele al volumen"}),B.jsx("span",{className:"block",children:"y únete a un México más fresco!"})]})}),B.jsxs("footer",{className:"flex flex-col justify-center items-center sm:items-start gap-2 footer",children:[B.jsx(IY,{className:"w-full",url:s}),B.jsx(Rl,{className:"",onClick:l,children:"Quiero hacer otra"})]})]}),B.jsx("div",{className:"video absolute sm:relative top-0 left-0 size-full sm:w-[316px] sm:h-[547px] overflow-hidden",children:B.jsx(MY,{src:s,className:"size-full",volume:a})})]})})};function FY(){const{step:r,transition:e}=vs();return B.jsxs(B.Fragment,{children:[B.jsx(Iz,{}),B.jsx(UM,{}),B.jsx(LM,{}),B.jsx(Hz,{}),B.jsxs(wR,{children:[B.jsx(vG,{}),(r===Ws||r===nc)&&B.jsx(B.Fragment,{children:B.jsx(wW,{})}),(r===Ws||r===Wd||e===a0||e===tc)&&B.jsx(B.Fragment,{children:B.jsx(MW,{})}),(e.includes("TO_GENRE")||r===R4)&&B.jsx(B.Fragment,{children:B.jsx(jW,{})}),(r===ic||e===I3)&&B.jsx(B.Fragment,{children:B.jsx(VW,{})}),(r===GA||e===kl)&&B.jsx(B.Fragment,{children:B.jsx(HY,{})}),(r===WA||e===Qg)&&B.jsx(B.Fragment,{children:B.jsx(kY,{})}),(r===XA||e===M3)&&B.jsx(B.Fragment,{children:B.jsx(RY,{})})]})]})}const LY=X.createContext(),OY=({children:r})=>{const[e,t]=X.useState(0),n=()=>t(e+1),i=()=>t(e-1),s=()=>t(0);return B.jsx(LY.Provider,{value:{step:e,nextStep:n,prevStep:i,restartStep:s},children:r})},NY=({children:r})=>B.jsx(WM,{children:B.jsx(NM,{children:B.jsx(_R,{children:B.jsx(vR,{children:B.jsx(bW,{children:B.jsx(OY,{children:B.jsx(kz,{children:r})})})})})})});z9.createRoot(document.getElementById("root")).render(B.jsx(Ht.StrictMode,{children:B.jsx(NY,{children:B.jsx(FY,{})})}));export{Yz as A,Aj as B,_s as C,ys as D,dt as E,YV as F,aV as G,GP as H,Hf as I,gc as L,Gt as M,kn as P,mn as R,gp as T,Jy as U,mc as a,Wl as b,Yt as c,p0 as d,Ca as e,mo as f,Sj as g,QV as h,X5 as i,oc as j,nf as k,oi as l,Kc as m,nZ as n,pa as o,ZV as p,Gn as q,qz as r,NP as s,Qa as t,gn as u,ac as v,yn as w,jP as x,Ta as y,$w as z};

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